@ckeditor/ckeditor5-track-changes 48.1.0-alpha.8 → 48.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x2fa907(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2d55da,_0x2ff9fe){super(),this['id']=_0x2ff9fe['id'],this['type']=_0x2ff9fe['type'],this['subType']=_0x2ff9fe['subType']||null,this['author']=_0x2ff9fe['author'],this['creator']=_0x2ff9fe['creator']||_0x2ff9fe['author'],this['isExternal']=Boolean(_0x2ff9fe['attributes']&&_0x2ff9fe['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2ff9fe['originalSuggestionId']||null,this['_model']=_0x2d55da,this['_onAccept']=_0x2ff9fe['onAccept'],this['_onDiscard']=_0x2ff9fe['onDiscard'],this['_onAttributesChange']=_0x2ff9fe['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2ff9fe['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 _0x1850bf=this;for(;_0x1850bf['previous'];)_0x1850bf=_0x1850bf['previous'];return _0x1850bf;}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'](_0x3ac275){this['_markerNames']['add'](_0x3ac275);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x98813=>this['_model']['markers']['get'](_0x98813))['filter'](_0x125212=>_0x125212);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ef447=>{for(const _0x128ada of this['getMarkers']())_0x1ef447['removeMarker'](_0x128ada);}),this['_markerNames']['clear']();}['removeMarker'](_0x55d8c4){this['_model']['change'](_0x39a219=>{_0x39a219['removeMarker'](_0x55d8c4);}),this['_markerNames']['delete'](_0x55d8c4);}['addRange'](_0x27b7cd){const _0x21dad2='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x21dad2),this['_model']['change'](_0x3ab37b=>{_0x3ab37b['addMarker'](_0x21dad2,{'range':_0x27b7cd,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b43f3){for(const _0x503e89 of this['getRanges']())if(_0x503e89['isIntersecting'](_0x4b43f3))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2421d6=>_0x2421d6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f38f5,_0x3e8b08)=>[..._0x4f38f5,..._0x3e8b08['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3160ce=this['getRanges']();if(0x1!=_0x3160ce['length'])return null;const _0x2799f3=_0x3160ce[0x0],_0x4ef3fd=_0x2799f3['start']['nodeAfter'],_0x2752d7=_0x2799f3['end']['nodeBefore'];return _0x4ef3fd instanceof _0x1fca72?_0x4ef3fd!=_0x2752d7?null:_0x4ef3fd: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 _0x143479=[];let _0x338341=this['head'];for(;_0x338341;)_0x143479['push'](_0x338341),_0x338341=_0x338341['next'];return _0x143479;}['setAttribute'](_0x5d39f5,_0x4703ee){const _0x46fed9=nt(this['attributes']);it(_0x46fed9,_0x5d39f5,_0x4703ee),st(_0x46fed9,this['attributes'])||(this['attributes']=_0x46fed9,this['_onAttributesChange'](_0x46fed9));}['removeAttribute'](_0x533455){const _0x3bac23=nt(this['attributes']);rt(_0x3bac23,_0x533455),st(_0x3bac23,this['attributes'])||(this['attributes']=_0x3bac23,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 _0x5bdaf9()['substr'](0x1,0x5);}}function At(_0x2063c,_0x2e8772,_0x5dcf2c){const _0x19bb18=_0x2063c['t'],t=_0x2063c['t'];switch(_0x2e8772){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x5dcf2c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5dcf2c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5dcf2c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5dcf2c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5dcf2c);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',_0x5dcf2c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5dcf2c);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5dcf2c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5dcf2c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5dcf2c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5dcf2c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5dcf2c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5dcf2c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5dcf2c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5dcf2c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5dcf2c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5dcf2c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5dcf2c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5dcf2c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5dcf2c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5dcf2c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5dcf2c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5dcf2c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5dcf2c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5dcf2c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5dcf2c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5dcf2c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5dcf2c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5dcf2c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5dcf2c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5dcf2c);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x5dcf2c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5dcf2c);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'},_0x5dcf2c);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x5dcf2c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5dcf2c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x5dcf2c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x5dcf2c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x5dcf2c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5dcf2c);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'},_0x5dcf2c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5dcf2c);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 _0x19bb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5dcf2c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x19bb18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5dcf2c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5dcf2c);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'},_0x5dcf2c);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'},_0x5dcf2c);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'},_0x5dcf2c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e8772;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x47420b,_0x413c64){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x47420b,this['_locale']=_0x413c64;}['getDescriptions'](_0x390a09){const _0x2e3886=[],_0x2d2017=new Set(),_0x3aa86e=new Set();for(let _0x4a4057=0x0;_0x4a4057<_0x390a09['length'];_0x4a4057++){const _0xff525a=_0x390a09[_0x4a4057];if(!_0xff525a['isInContent'])continue;const _0x511c9f=this['_handleCustomCallbackDescription'](_0xff525a);if(_0x511c9f){if(null!=_0xff525a['subType']){if(_0x2d2017['has'](_0xff525a['subType']))continue;_0x2d2017['add'](_0xff525a['subType']);}_0x2e3886['push'](_0x511c9f);}else{if('attribute'==_0xff525a['type']){const _0x40b776=_0xff525a['data']['key'];if(_0x3aa86e['has'](_0x40b776))continue;_0x3aa86e['add'](_0xff525a['data']['key']),_0x40b776==Ke?this['_handleRenameSuggestionDescription'](_0x2e3886,_0xff525a):this['_handleAttributeSuggestionDescription'](_0x2e3886,_0xff525a);continue;}'insertion'!=_0xff525a['type']&&'deletion'!=_0xff525a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2e3886,_0xff525a,_0x390a09[_0x4a4057+0x1]);}}return this['_resolveDescriptionItems'](_0x2e3886);}['registerDescriptionCallback'](_0x84ff66){this['_customCallbacks']['push'](_0x84ff66);}['registerElementLabel'](_0x41c44c,_0x431d7d,_0x364e9c=_0x47ef2c['normal']){'function'==typeof _0x41c44c?_0x1c74f1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x41c44c,'label':_0x431d7d,'priority':_0x364e9c}):this['_itemLabels']['set'](_0x41c44c,_0x431d7d);}['registerAttributeLabel'](_0x2a89a5,_0x2372a8){this['_attributeLabels']['set'](_0x2a89a5,_0x2372a8);}['getItemLabel'](_0xfa1a7b,_0x2a2973=0x1){let _0x55e421;for(const _0xe2c5c1 of this['_itemLabelsCallbacks'])if(_0xe2c5c1['matchingCallback'](_0xfa1a7b)){_0x55e421=_0xe2c5c1['label'];break;}return _0x55e421||(_0x55e421=this['_itemLabels']['get'](_0xfa1a7b['name'])),_0x55e421?_0x55e421(_0x2a2973):0x1!==_0x2a2973?_0x2a2973+'\x20'+_0xfa1a7b['name']+'s':''+_0xfa1a7b['name'];}['_addDescriptionItems'](_0x4d373c,_0x35239b){const _0x4b8bcd=_0x35239b['getFirstRange']()['getWalker'](),_0x2c78fd='insertion'==_0x35239b['type']?'add':'remove';for(const _0x2086b6 of _0x4b8bcd){const _0x1b9395=_0x2086b6['item'],_0x1131da=_0x4d373c[_0x4d373c['length']-0x1];if(_0x1b9395['is']('$textProxy'))_0x1131da&&_0x1131da['type']['indexOf']('Container')>-0x1&&_0x4d373c['pop'](),_0x1131da&&'text'==_0x1131da['type']?_0x1131da[_0x2c78fd]+=_0x1b9395['data']:_0x4d373c['push']({'type':'text','add':'add'==_0x2c78fd?_0x1b9395['data']:'','remove':'remove'==_0x2c78fd?_0x1b9395['data']:''});else{if(this['_schema']['isObject'](_0x1b9395)){const _0x2dfbb4=_0x1b9395;if(_0x1131da&&_0x1131da['type']['indexOf']('Container')>-0x1&&_0x4d373c['pop'](),'elementEnd'==_0x2086b6['type'])continue;_0x1131da&&_0x1131da['type']==_0x2c78fd+'Object'&&_0x1131da['element']['name']==_0x2dfbb4['name']?_0x1131da['quantity']++:_0x4d373c['push']({'type':_0x2c78fd+'Object','element':_0x2dfbb4,'quantity':0x1}),_0x4b8bcd['skip'](_0x151a34=>!('elementEnd'==_0x151a34['type']&&_0x151a34['item']==_0x1b9395));}else{if(this['_schema']['checkChild'](_0x1b9395,'$text')||_0x1b9395['is']('element','softBreak')){const _0x4a5efe=_0x1b9395;if('add'==_0x2c78fd&&'elementStart'==_0x2086b6['type']||'remove'==_0x2c78fd&&'elementEnd'==_0x2086b6['type'])continue;if(_0x1131da&&-0x1==_0x1131da['type']['indexOf']('Container')){'text'==_0x1131da['type']&&(_0x1131da[_0x2c78fd]+='\x0a');continue;}let _0x17881c;if(_0x17881c='add'==_0x2c78fd?_0x4a5efe['nextSibling']&&!this['_schema']['isObject'](_0x4a5efe['nextSibling'])?_0x4a5efe['nextSibling']:null:_0x4a5efe['previousSibling']&&!this['_schema']['isObject'](_0x4a5efe['previousSibling'])?_0x4a5efe['previousSibling']:null,_0x4a5efe['isEmpty']||_0x17881c&&_0x17881c['isEmpty']){const _0x4b3ef0=_0x17881c&&_0x17881c['isEmpty']?_0x17881c:_0x4a5efe;_0x1131da&&_0x1131da['type']==_0x2c78fd+'EmptyContainer'&&_0x1131da['element']['name']==_0x4b3ef0['name']?_0x1131da['quantity']++:_0x4d373c['push']({'type':_0x2c78fd+'EmptyContainer','element':_0x4b3ef0,'quantity':0x1});}else _0x4d373c['push']({'type':_0x2c78fd+'Container','element':_0x4a5efe});}}}}}['_resolveDescriptionItems'](_0x1c73a6){const _0x3852c0=this['_locale'],_0x46662b=[],_0x41cd69=[],_0x5997e1=[];for(const _0x28e965 of _0x1c73a6)switch(_0x28e965['type']){case'text':if(_0x28e965['add']=_0x28e965['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x28e965['remove']=_0x28e965['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x28e965['add']&&''!=_0x28e965['remove']){_0x46662b['push']({'type':'replace','content':At(_0x3852c0,'REPLACE_TEXT',['\x22'+_0x28e965['remove']+'\x22','\x22'+_0x28e965['add']+'\x22'])});continue;}if(null!=_0x28e965['add']['match'](/^ +$/)){_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0',At(_0x3852c0,'ELEMENT_SPACE',_0x28e965['add']['length']))});continue;}if(null!=_0x28e965['remove']['match'](/^ +$/)){_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0',At(_0x3852c0,'ELEMENT_SPACE',_0x28e965['remove']['length']))});continue;}if(''!=_0x28e965['add']){_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0','\x22'+_0x28e965['add']+'\x22')});continue;}_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0','\x22'+_0x28e965['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Insert:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Remove:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'addContainer':_0x46662b['push']({'type':'insertion','content':At(_0x3852c0,'*Split:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'removeContainer':_0x46662b['push']({'type':'deletion','content':At(_0x3852c0,'*Merge:*\x20%0',this['getItemLabel'](_0x28e965['element'],_0x28e965['quantity']))});continue;case'addFormat':_0x41cd69['push'](_0x28e965['key']);continue;case'removeFormat':_0x5997e1['push'](_0x28e965['key']);continue;default:_0x46662b['push'](_0x28e965);}if(_0x41cd69['length']){const _0x5854e3=_0x41cd69['map'](_0x72972d=>this['_attributeLabels']['has'](_0x72972d)?this['_attributeLabels']['get'](_0x72972d):_0x72972d)['join'](',\x20');_0x46662b['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x5854e3)});}if(_0x5997e1['length']){const _0x19d737=_0x5997e1['map'](_0x55fe86=>this['_attributeLabels']['has'](_0x55fe86)?this['_attributeLabels']['get'](_0x55fe86):_0x55fe86)['join'](',\x20');_0x46662b['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x19d737)});}return _0x46662b;}['_handleCustomCallbackDescription'](_0x311cc9){for(const _0x5eb0cf of this['_customCallbacks']){const _0x52601b=_0x5eb0cf(_0x311cc9);if(_0x52601b&&'type'in _0x52601b)return _0x52601b;}}['_handleAttributeSuggestionDescription'](_0x244578,_0x52f81c){const _0x3c1fea=_0x52f81c['data'],_0xb4ae5b=void 0x0===_0x3c1fea['newValue']?'removeFormat':'addFormat';_0x244578['push']({'type':_0xb4ae5b,'key':_0x3c1fea['key']});}['_handleRenameSuggestionDescription'](_0x313eeb,_0x3e897b){_0x313eeb['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3e897b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x438676,_0x3e43b7,_0x49cc01){if(this['_addDescriptionItems'](_0x438676,_0x3e43b7),_0x49cc01&&_0x49cc01['getFirstRange']()&&!_0x3e43b7['getFirstRange']()['end']['isEqual'](_0x49cc01['getFirstRange']()['start'])){const _0x4d5fdd=_0x438676[_0x438676['length']-0x1],_0x4805ca='insertion'==_0x3e43b7['type']?'add':'remove';_0x4d5fdd&&'text'==_0x4d5fdd['type']&&(_0x4d5fdd[_0x4805ca]+='\x0a');}}}class Ct extends _0x40e6e8{['afterInit'](){const _0x34459b=this['editor'],_0x2439c3=_0x34459b['plugins']['get']('TrackChangesEditing');_0x34459b['commands']['get']('showAIAssistant')&&_0x2439c3['enableCommand']('showAIAssistant');}}class yt extends _0x40e6e8{['afterInit'](){const _0x5e0492=this['editor'],_0x32148b=_0x5e0492['plugins']['get']('TrackChangesEditing');_0x5e0492['commands']['get']('toggleAi')&&_0x32148b['enableCommand']('toggleAi');}}class Nt extends _0x40e6e8{['afterInit'](){const _0x58a48a=this['editor'],_0x1c78da=_0x58a48a['plugins']['get']('TrackChangesEditing');_0x58a48a['commands']['get']('aiQuickAction')&&_0x1c78da['enableCommand']('aiQuickAction');}}class Rt extends _0x40e6e8{['afterInit'](){const _0x5377b0=this['editor'],_0x428f94=_0x5377b0['locale'];if(!_0x5377b0['plugins']['has']('AlignmentEditing'))return;const _0x1dc2dc=_0x5377b0['plugins']['get']('TrackChangesEditing');_0x1dc2dc['enableDefaultAttributesIntegration']('alignment'),_0x1dc2dc['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x428f94,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20d259=this['editor'],_0x4ab435=_0x20d259['locale'];_0x20d259['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e15d7=>{if('formatBlock'!=_0x5e15d7['type'])return;const {data:_0x3ff87c}=_0x5e15d7;if(_0x3ff87c&&'alignment'==_0x3ff87c['commandName']){const _0xfc4e79=_0x3ff87c['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x4ab435,'*Format:*\x20%0',function(_0x4a31c2){switch(_0x4a31c2){case'left':return At(_0x4ab435,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x4ab435,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x4ab435,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x4ab435,'FORMAT_JUSTIFY_TEXT');}}(_0xfc4e79))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x40e6e8{['afterInit'](){const _0x180211=this['editor'],_0x4a3d7b=_0x180211['plugins']['get']('TrackChangesEditing'),_0x926339=_0x180211['locale'];for(const _0x419d60 of St){if(!_0x180211['plugins']['has'](_0x419d60))continue;const _0x25f6eb=_0x419d60['slice'](0x0,-0x7)['toLowerCase'](),_0x20efa3='FORMAT_'+_0x25f6eb['toUpperCase']();_0x4a3d7b['enableDefaultAttributesIntegration'](_0x25f6eb),_0x4a3d7b['descriptionFactory']['registerAttributeLabel'](_0x25f6eb,At(_0x926339,_0x20efa3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e2f3c=this['editor'],_0x5abcc7=_0x5e2f3c['locale'],_0x22fc8b=_0x5e2f3c['plugins']['get']('TrackChangesEditing');function _0x5adf54(_0x282e80,_0x3a2000){_0x22fc8b['descriptionFactory']['registerDescriptionCallback'](_0x43e58f=>{if('formatInline'!=_0x43e58f['type'])return;const {data:_0x2fc8d5}=_0x43e58f;return _0x2fc8d5&&_0x2fc8d5['commandName']===_0x282e80?_0x2fc8d5['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5abcc7,'*Format:*\x20%0',_0x3a2000)}:{'type':'format','content':At(_0x5abcc7,'*Remove\x20format:*\x20%0',_0x3a2000)}:void 0x0;});}_0x5adf54('bold',At(_0x5abcc7,'FORMAT_BOLD')),_0x5adf54('italic',At(_0x5abcc7,'FORMAT_ITALIC')),_0x5adf54('underline',At(_0x5abcc7,'FORMAT_UNDERLINE')),_0x5adf54('code',At(_0x5abcc7,'FORMAT_CODE')),_0x5adf54('strikethrough',At(_0x5abcc7,'FORMAT_STRIKETHROUGH')),_0x5adf54('subscript',At(_0x5abcc7,'FORMAT_SUBSCRIPT')),_0x5adf54('superscript',At(_0x5abcc7,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x40e6e8{['afterInit'](){const _0x20c40f=this['editor'],_0xf01fbc=_0x20c40f['locale'];if(!_0x20c40f['plugins']['has']('BlockQuoteEditing'))return;const _0x2d1d09=_0x20c40f['plugins']['get']('TrackChangesEditing'),_0x3892d1=this['editor']['commands']['get']('blockQuote');_0x2d1d09['enableCommand']('blockQuote',(_0x505c8c,_0x27346d={})=>{const _0x175052=this['editor']['model']['document']['selection'],_0x2555ea=_0x27346d&&void 0x0!==_0x27346d['forceValue']?_0x27346d['forceValue']:!_0x3892d1['value'];let _0x275ac0=[];if(_0x2555ea){const _0x3083c9=Array['from'](_0x175052['getSelectedBlocks']())['filter'](_0x43616a=>wt(_0x43616a)||function(_0x4d6204,_0x259ea3){const _0xff5b33=_0x259ea3['checkChild'](_0x4d6204['parent'],'blockQuote'),_0x57fdce=_0x259ea3['checkChild'](['$root','blockQuote'],_0x4d6204);return _0xff5b33&&_0x57fdce;}(_0x43616a,this['editor']['model']['schema']));_0x275ac0=Tt(_0x3083c9,_0x20c40f['model']);}else{const _0x35b20f=Array['from'](_0x175052['getSelectedBlocks']())['filter'](_0x389cbd=>wt(_0x389cbd));_0x275ac0=Tt(_0x35b20f,_0x20c40f['model']);}_0x20c40f['model']['change'](()=>{for(const _0x146223 of _0x275ac0)_0x2d1d09['markBlockFormat'](_0x146223,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2555ea}]});});}),_0x2d1d09['descriptionFactory']['registerDescriptionCallback'](_0x2a6082=>{const {data:_0x39c3c7}=_0x2a6082;if(_0x39c3c7&&'blockQuote'==_0x39c3c7['commandName']){const _0x39a28a=At(_0xf01fbc,'ELEMENT_BLOCK_QUOTE');return _0x39c3c7['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xf01fbc,'*Set\x20format:*\x20%0',_0x39a28a)}:{'type':'format','content':At(_0xf01fbc,'*Remove\x20format:*\x20%0',_0x39a28a)};}});}}function wt(_0x4d54ee){return'blockQuote'==_0x4d54ee['parent']['name'];}class Bt extends _0x40e6e8{['afterInit'](){const _0xb3d857=this['editor'],_0x4d20c0=_0xb3d857['locale'],_0x656544=_0xb3d857['plugins']['get']('TrackChangesEditing');_0xb3d857['plugins']['has']('BookmarkEditing')&&(_0x656544['enableCommand']('insertBookmark'),_0x656544['enableDefaultAttributesIntegration']('updateBookmark'),_0x656544['descriptionFactory']['registerDescriptionCallback'](_0x38ce66=>{if('insertion'!=_0x38ce66['type']&&'deletion'!=_0x38ce66['type']&&'attribute'!=_0x38ce66['type'])return;const _0x1bc0d5=_0x38ce66['getContainedElement']();if(null==_0x1bc0d5)return;if(!_0x1bc0d5['is']('element','bookmark'))return;const _0x454d13=_0x1bc0d5['getAttribute']('bookmarkId');if('insertion'==_0x38ce66['type'])return{'type':'insertion','content':At(_0x4d20c0,'*Insert:*\x20%0','\x22'+_0x454d13+'\x22\x20'+At(_0x4d20c0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x38ce66['type'])return{'type':'deletion','content':At(_0x4d20c0,'*Remove:*\x20%0','\x22'+_0x454d13+'\x22\x20'+At(_0x4d20c0,'ELEMENT_BOOKMARK'))};const {data:_0x17dd88}=_0x38ce66;if(!_0x17dd88||'bookmarkId'!=_0x17dd88['key'])return;return{'type':'format','content':At(_0x4d20c0,'*Set\x20bookmark:*\x20%0','\x22'+_0x17dd88['newValue']+'\x22')};}));}}class Ft extends _0x40e6e8{['afterInit'](){const _0x3907c9=this['editor'];_0x3907c9['plugins']['has']('CaseChange')&&(_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3907c9['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x40e6e8{['afterInit'](){const _0x4aa3b2=this['editor'];_0x4aa3b2['commands']['get']('ckbox')&&_0x4aa3b2['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x40e6e8{['afterInit'](){const _0x2be102=this['editor'];if(!_0x2be102['plugins']['has']('CodeBlock'))return;const _0x5c6111=_0x2be102['plugins']['get']('TrackChangesEditing'),_0x1eb42a=_0x2be102['locale'],_0x4ba791=_0x2be102['config']['get']('codeBlock')['languages'],_0x46c0ae=_0x2be102['commands']['get']('codeBlock');_0x5c6111['enableCommand']('indentCodeBlock'),_0x5c6111['enableCommand']('outdentCodeBlock'),_0x5c6111['enableCommand']('codeBlock',(_0x595427,_0x373a9a={})=>{const _0x57d678=_0x2be102['model'],_0x2213e0=_0x2be102['model']['document']['selection'],_0x36995d=_0x373a9a&&void 0x0!==_0x373a9a['forceValue']?_0x373a9a['forceValue']:!_0x46c0ae['value'];let _0x4e617b;_0x373a9a['language']||(_0x373a9a['language']=_0x4ba791[0x0]['language']),_0x4e617b=_0x36995d?Array['from'](_0x2213e0['getSelectedBlocks']())['filter'](_0x5bf8a1=>xt(_0x5bf8a1)||function(_0x423c83,_0x26aed9){if(_0x423c83['is']('rootElement')||_0x26aed9['isLimit'](_0x423c83))return!0x1;return _0x26aed9['checkChild'](_0x423c83['parent'],'codeBlock');}(_0x5bf8a1,_0x57d678['schema'])):Array['from'](_0x2213e0['getSelectedBlocks']())['filter'](_0x1dbdaf=>xt(_0x1dbdaf));const _0x3e29b9=Tt(_0x4e617b,_0x57d678);_0x57d678['change'](()=>{for(const _0x20695d of _0x3e29b9)_0x5c6111['markBlockFormat'](_0x20695d,{'commandName':'codeBlock','commandParams':[{..._0x373a9a,'forceValue':_0x36995d}],'formatGroupId':'blockName'});});}),(_0x5c6111['descriptionFactory']['registerElementLabel']('codeBlock',_0x5b14b7=>At(_0x1eb42a,'ELEMENT_CODE_BLOCK',_0x5b14b7)),_0x5c6111['descriptionFactory']['registerDescriptionCallback'](_0x36a396=>{if('formatBlock'!=_0x36a396['type'])return;const _0x1728c6=_0x1eb42a['t'],{data:_0xf05dc8}=_0x36a396;if(!_0xf05dc8||'codeBlock'!=_0xf05dc8['commandName'])return;const _0x46d74d=_0xf05dc8['commandParams'][0x0]['language'],_0x30b20a=_0x1728c6(_0x4ba791['find'](_0xb9ec35=>_0xb9ec35['language']===_0x46d74d)['label'])['toLowerCase']();return _0xf05dc8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1eb42a,'*Set\x20format:*\x20%0',At(_0x1eb42a,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30b20a+')')}:{'type':'format','content':At(_0x1eb42a,'*Remove\x20format:*\x20%0',At(_0x1eb42a,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x2d36de){return'codeBlock'==_0x2d36de['name'];}class Pt extends _0x40e6e8{['afterInit'](){const _0x139d33=this['editor'];if(!_0x139d33['plugins']['has']('CommentsEditing'))return;_0x139d33['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x40e6e8{static get['requires'](){return[at];}['init'](){const _0x4aca73=this['editor'],_0x1574f4=_0x4aca73['plugins']['get']('TrackChangesEditing');_0x1574f4['enableCommand']('delete');const _0x551d9b=_0x4aca73['commands']['get']('deleteForward');_0x1574f4['enableCommand']('deleteForward',(_0x1c7eac,_0x42d99a={})=>{const _0x5e6c9a=_0x4aca73['model']['createSelection'](_0x4aca73['model']['document']['selection']);_0x5e6c9a['isCollapsed']&&_0x4aca73['model']['modifySelection'](_0x5e6c9a,{'direction':'forward','unit':_0x42d99a['unit']});const _0x2a26b8=_0x5e6c9a['getFirstRange'](),_0x57c4ad=_0x2db68d['fromRange'](_0x2a26b8);let _0x274761;_0x1c7eac(_0x42d99a),_0x274761='$graveyard'==_0x57c4ad['root']['rootName']?_0x4aca73['model']['createRange'](_0x2a26b8['start']):_0x4aca73['model']['createRange'](_0x57c4ad['start'],_0x57c4ad['end']),_0x57c4ad['detach'](),_0x4aca73['model']['enqueueChange'](_0x551d9b['buffer']['batch'],_0x502c81=>{_0x551d9b['buffer']['lock'](),_0x502c81['setSelection'](_0x502c81['createRange'](_0x274761['end'])),_0x551d9b['buffer']['unlock']();});});}}class Gt extends _0x40e6e8{['afterInit'](){const _0x144752=this['editor'];if(!_0x144752['plugins']['has']('ListEditing'))return;const _0x221cc0=_0x144752['locale'],_0x470ea0=_0x144752['plugins']['get']('TrackChangesEditing'),_0x2ca692=_0x144752['plugins']['has']('TodoListEditing'),_0x5ec0ae=!!_0x144752['config']['get']('list.multiBlock');function _0x2b9db9(_0x384c8a){return{'type':'format','content':''+At(_0x221cc0,'*Set\x20format:*\x20%0',_0x384c8a)};}function _0x7295c9(_0x107070){return{'type':'format','content':''+At(_0x221cc0,'*Remove\x20format:*\x20%0',_0x107070)};}_0x470ea0['enableDefaultAttributesIntegration']('numberedList'),_0x470ea0['enableDefaultAttributesIntegration']('bulletedList'),_0x470ea0['enableDefaultAttributesIntegration']('customNumberedList'),_0x470ea0['enableDefaultAttributesIntegration']('customBulletedList'),_0x470ea0['enableDefaultAttributesIntegration']('indentList'),_0x470ea0['enableDefaultAttributesIntegration']('outdentList'),_0x470ea0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x470ea0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ec0ae&&(_0x470ea0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x470ea0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ca692&&(_0x470ea0['enableDefaultAttributesIntegration']('todoList'),_0x470ea0['enableDefaultAttributesIntegration']('checkTodoList'),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x3c34f9=>{const {data:_0x4e699a}=_0x3c34f9;if(_0x4e699a&&'todoListChecked'==_0x4e699a['key'])return{'type':'format','content':_0x4e699a['newValue']?At(_0x221cc0,'*Check\x20item*'):At(_0x221cc0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x28f722=>{if(_0x28f722['batch']['isUndo'])return!0x1;let _0xe61488=!0x1;const _0x3c515f=_0x470ea0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234174=>'todoListChecked'===_0x470ea0['_getAttributeKey'](_0x234174));for(const _0xbee475 of _0x3c515f){'todo'!=_0xbee475['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x470ea0['_findSuggestions'](_0xbee475['getFirstRange'](),'attribute')['find'](_0x335590=>'listType'===_0x470ea0['_getAttributeKey'](_0x335590['suggestion']))||(_0x28f722['removeMarker'](_0xbee475['getFirstMarker']()),_0xe61488=!0x0));}return _0xe61488;})),_0x470ea0['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x221cc0,'FORMAT_INDENT'));const _0x316d9a={'type':'format','content':''};_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x5e2299=>{const {data:_0x494fe6}=_0x5e2299;if(!_0x494fe6||'listType'!=_0x494fe6['key'])return;let _0x5c8715=_0x5e2299['head'];for(;_0x5c8715;){if(_0x5c8715['data']&&(('listStyle'==_0x5c8715['data']['key']||'listMarkerStyle'==_0x5c8715['data']['key'])&&(_0x5c8715['data']['newValue']&&'default'!=_0x5c8715['data']['newValue']||'default'!=_0x5c8715['data']['oldValue']&&!_0x494fe6['newValue'])||!_0x5ec0ae&&_0x5c8715['data']['key']==Ke))return _0x316d9a;_0x5c8715=_0x5c8715['next'];}if(null==_0x494fe6['newValue'])switch(_0x494fe6['oldValue']){case'bulleted':return _0x7295c9(At(_0x221cc0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x7295c9(At(_0x221cc0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x7295c9(At(_0x221cc0,'ELEMENT_TODO_LIST'));}switch(_0x494fe6['newValue']){case'bulleted':return _0x2b9db9(At(_0x221cc0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b9db9(At(_0x221cc0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b9db9(At(_0x221cc0,'ELEMENT_TODO_LIST'));}}),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x1a1e89=>{const {data:_0x48ef57}=_0x1a1e89;if(_0x48ef57&&'listIndent'==_0x48ef57['key'])return null==_0x48ef57['newValue']||null==_0x48ef57['oldValue']&&0x0==_0x48ef57['newValue']?_0x316d9a:void 0x0;}),_0x470ea0['descriptionFactory']['registerDescriptionCallback'](_0x580ab9=>{if('attribute'!=_0x580ab9['type'])return;const {data:_0x40a773}=_0x580ab9;if(!_0x40a773||'listItemId'!=_0x40a773['key'])return;const _0x334900=Ht(_0x580ab9);return'newValue'==_0x334900?{'type':'format','content':At(_0x221cc0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x334900?{'type':'format','content':At(_0x221cc0,'*Split:*\x20list\x20item')}:_0x316d9a;}),_0x144752['model']['document']['registerPostFixer'](_0x52b790=>this['listItemIdFixer'](_0x52b790)),_0x144752['model']['document']['registerPostFixer'](_0x1a5867=>this['noTrackChangesFixer'](_0x1a5867)),_0x144752['model']['document']['on']('change:data',(_0x5f51f1,_0x6aa600)=>{if(_0x6aa600['isUndo']||!_0x6aa600['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf65dd6){if(_0xf65dd6['batch']['isUndo']||!_0xf65dd6['batch']['isLocal'])return!0x1;let _0x4229dd=!0x1;const _0x3a925b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4e7c42=>_0x4e7c42['data']&&'listItemId'==_0x4e7c42['data']['key'])['filter'](_0x1f117f=>_0x1f117f['data']['newValue']&&_0x1f117f['data']['oldValue']);for(const _0x4439ac of _0x3a925b)Ht(_0x4439ac)||(_0xf65dd6['removeMarker'](_0x4439ac['getFirstMarker']()),_0x4229dd=!0x0);return _0x4229dd;}['noTrackChangesFixer'](_0x4e295d){if(_0x4e295d['batch']['isUndo']||!_0x4e295d['batch']['isLocal'])return!0x1;const _0x1d951d=this['editor']['model']['document']['differ'],_0x2f3245=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2f3245['trackChangesCommand']['value'])return!0x1;let _0x3271e8=!0x1;const _0x26aaef=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x4ad828=_0x1d951d['getChanges']()['filter'](_0x3c767d=>'attribute'==_0x3c767d['type'])['filter'](_0x2540bc=>_0x26aaef['has'](_0x2540bc['attributeKey']));if(0x0==_0x4ad828['length'])return _0x3271e8;const _0x29d751=new Set(_0x1d951d['getMarkersToAdd']()['filter'](_0x18cd2e=>{if(!_0x18cd2e['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x5979b2=_0x4e67eb(_0x18cd2e['name'])['subType']['split']('|')[0x0];return _0x26aaef['has'](_0x5979b2);})['map'](_0x31a20c=>_0x4e67eb(_0x31a20c['name'])['id']));for(const _0x23e9b4 of _0x4ad828){const _0x4510b2=_0x2f3245['_findSuggestions'](_0x23e9b4['range'],'attribute')['filter'](_0x4ff6c2=>{if(_0x4ff6c2['meta']['isNextTo'])return!0x1;if(_0x29d751['has'](_0x4ff6c2['suggestion']['id']))return!0x1;const _0x3a691e=_0x2f3245['_getAttributeKey'](_0x4ff6c2['suggestion']);return _0x26aaef['has'](_0x3a691e);})['map'](_0x3335f6=>_0x3335f6['suggestion']);if(_0x4510b2['length']){for(const _0x236b1d of _0x4510b2)_0x4e295d['removeMarker'](_0x236b1d['getFirstMarker']());_0x3271e8=!0x0;}}return _0x3271e8;}['assureChains'](){const _0x4b92c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x84d1f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1377e7;const _0x4c47da=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xdbcd7e=>{if(_0xdbcd7e['data']['oldRange']||!_0xdbcd7e['data']['newRange'])return null;if(!_0xdbcd7e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ffa83}=_0x4e67eb(_0xdbcd7e['name']);if(!_0x4b92c8['hasSuggestion'](_0x1ffa83))return null;const _0xc67c14=_0x4b92c8['getSuggestion'](_0x1ffa83);return _0x84d1f2['includes'](_0xc67c14['data']['key']);})['map'](_0x3b0f8d=>{const {id:_0x26ff57}=_0x4e67eb(_0x3b0f8d['name']),_0x23b916=_0x4b92c8['getSuggestion'](_0x26ff57);return _0x1377e7=_0x23b916['attributes']['groupId'],_0x23b916['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4c47da['size'])return;const _0x41aaf5=_0x4b92c8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a397f=>'attribute'==_0x4a397f['type']&&_0x4a397f['data']&&_0x84d1f2['includes'](_0x4a397f['data']['key'])&&_0x4a397f['attributes']['groupId']!=_0x1377e7)['map'](_0x10f250=>({'listItem':_0x10f250['getFirstRange']()['start']['nodeAfter'],'groupId':_0x10f250['attributes']['groupId']})),_0x153951=new Set();for(const {groupId:_0x2dfdc7,listItem:_0x1ac996}of _0x41aaf5)_0x4c47da['has'](_0x1ac996)&&_0x153951['add'](_0x2dfdc7);for(const _0x4982ca of _0x4b92c8['getSuggestions']())_0x153951['has'](_0x4982ca['attributes']['groupId'])&&_0x4982ca['setAttribute']('groupId',_0x1377e7);}['_supportLegacySuggestions'](){const _0x45fb19=this['editor'],_0x4449c4=_0x45fb19['locale'],_0x11e6df=_0x45fb19['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x11e6df['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1a5372,_0x10eb14){const _0x38627b=[];for(let _0x2bb1fe of _0x1a5372)_0x2bb1fe['start']['nodeAfter']===_0x2bb1fe['end']['parent']&&(_0x2bb1fe=_0x45fb19['model']['createRange'](_0x45fb19['model']['createPositionAt'](_0x2bb1fe['start']['nodeAfter'],0x0))),_0x38627b['push'](_0x2bb1fe);_0x45fb19['model']['change'](_0x25de48=>{const _0x5d440c=_0x45fb19['model']['document']['selection'],_0x49cf28=Array['from'](_0x5d440c['getRanges']())['map'](_0x37c9f2=>_0x2db68d['fromRange'](_0x37c9f2));_0x25de48['setSelection'](_0x38627b),_0x45fb19['commands']['get'](_0x10eb14['commandName'])['refresh'](),_0x10eb14['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45fb19['execute'](_0x10eb14['commandName'],..._0x10eb14['commandParams']),_0x25de48['setSelection'](_0x49cf28);for(const _0x178d7f of _0x49cf28)_0x178d7f['detach']();});}),_0x11e6df['descriptionFactory']['registerElementLabel'](function(_0x48b43e){const _0x3965cc=!_0x45fb19['model']['schema']['isObject'](_0x48b43e),_0x351707=_0x48b43e['previousSibling'],_0x1b87d7=_0x48b43e['nextSibling'],_0x314ff7=_0x48b43e['getAttribute']('listItemId'),_0x2c16e4=!_0x351707||_0x351707['getAttribute']('listItemId')!==_0x314ff7,_0x4c5a0b=!_0x1b87d7||_0x1b87d7['getAttribute']('listItemId')!==_0x314ff7;return _0x3965cc&&Boolean(_0x314ff7)&&_0x2c16e4&&_0x4c5a0b;},_0xca753=>At(_0x4449c4,'ELEMENT_LIST_ITEM',_0xca753));}['_registerLegacyDescription'](){const _0xcbc231=this['editor'],_0x52f07a=_0xcbc231['locale'];function _0x201d96(_0x48b194){const _0x4b0666=_0xcbc231['commands']['get']('bulletedList')['value'],_0x5b6cc3=_0xcbc231['commands']['get']('numberedList')['value'];return'numberedList'===_0x48b194?_0x4b0666:_0x5b6cc3;}_0xcbc231['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xda2260){if('formatBlock'!=_0xda2260['type'])return;const {data:_0x41515d}=_0xda2260;if(!_0x41515d)return;let _0x5b105b,_0x5aa24c,_0x696a06,_0x1f5eae;switch(_0x41515d['commandName']){case'bulletedList':_0x696a06=_0x41515d['commandParams'][0x0]['forceValue'],_0x1f5eae=_0x201d96(_0x41515d['commandName']),_0x5b105b=_0x696a06?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5eae&&_0xcbc231['config']['get']('list.multiBlock')||(_0x5b105b='*Change\x20to:*\x20%0'),_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x696a06=_0x41515d['commandParams'][0x0]['forceValue'],_0x1f5eae=_0x201d96(_0x41515d['commandName']),_0x5b105b=_0x696a06?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1f5eae&&_0xcbc231['config']['get']('list.multiBlock')||(_0x5b105b='*Change\x20to:*\x20%0'),_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5b105b='*Indent:*\x20%0',_0x5aa24c={'type':'format','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5b105b=function(_0x18c750){const _0x35b62f=_0x18c750['getFirstRange']();let _0x393f16=_0x35b62f['start']['nodeAfter'];for(;_0x393f16&&_0x35b62f['containsItem'](_0x393f16);){if(_0x393f16['getAttribute']('listIndent')>0x0)return!0x1;_0x393f16=_0x393f16['nextSibling'];}return!0x0;}(_0xda2260)?At(_0x52f07a,'*Format:*\x20remove\x20from\x20%0',At(_0x52f07a,function(_0x1c8d0a){return'ELEMENT_'+_0x1c8d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xda2260))):At(_0x52f07a,'*Outdent:*\x20%0',At(_0x52f07a,'ELEMENT_LIST_ITEM')),_0x5aa24c={'type':'format','content':_0x5b105b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x41515d['multipleBlocks']&&(_0x5b105b='*Merge:*\x20%0',_0x5aa24c={'type':'deletion','content':At(_0x52f07a,_0x5b105b,At(_0x52f07a,'ELEMENT_LIST_ITEM'))});}return _0x5aa24c;});}}function Ht(_0x96f198){let _0x8e04a9=_0x96f198['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x8e04a9;){const _0xdeb88=_0x8e04a9['getAttribute']('listItemId');if(!_0xdeb88)return!0x1;if(_0xdeb88==_0x96f198['data']['newValue'])return'newValue';if(_0xdeb88==_0x96f198['data']['oldValue'])return'oldValue';_0x8e04a9=_0x8e04a9['previousSibling'];}return!0x1;}class $t extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x58acb7=this['editor']['config']['get']('list.properties'),_0x2d27db=this['editor']['plugins']['get']('TrackChangesEditing');_0x58acb7['styles']&&_0x2d27db['enableDefaultAttributesIntegration']('listStyle'),_0x58acb7['reversed']&&_0x2d27db['enableDefaultAttributesIntegration']('listReversed'),_0x58acb7['startIndex']&&_0x2d27db['enableDefaultAttributesIntegration']('listStart');const _0x7727e9={'type':'format','content':''};_0x2d27db['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1391d1=this['editor']['locale'];_0x2d27db['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1391d1,'FORMAT_LIST_REVERSED')),_0x2d27db['descriptionFactory']['registerDescriptionCallback'](_0x5a10f8=>{const {data:_0x512e05}=_0x5a10f8;if(_0x512e05&&'listReversed'==_0x512e05['key'])return null==_0x512e05['newValue']||0x0==_0x512e05['newValue']&&null==_0x512e05['oldValue']?_0x7727e9:void 0x0;}),_0x2d27db['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1391d1,'FORMAT_LIST_START')),_0x2d27db['descriptionFactory']['registerDescriptionCallback'](_0x15092e=>{const {data:_0x190def}=_0x15092e;if(_0x190def&&'listStart'==_0x190def['key'])return null==_0x190def['newValue']||0x1==_0x190def['newValue']&&null==_0x190def['oldValue']?_0x7727e9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4f0664=>{if(_0x4f0664['batch']['isUndo'])return!0x1;let _0x4774bb=!0x1;const _0x1d7acf=_0x2d27db['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42f027=>{const _0x45bd6c=_0x2d27db['_getAttributeKey'](_0x42f027);return'listStart'==_0x45bd6c||'listReversed'==_0x45bd6c;});for(const _0x51d5d7 of _0x1d7acf){const _0x280359=_0x51d5d7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x280359||'customNumbered'==_0x280359)continue;_0x2d27db['_findSuggestions'](_0x51d5d7['getFirstRange'](),'attribute')['find'](_0xaf445e=>'listType'==_0x2d27db['_getAttributeKey'](_0xaf445e['suggestion']))||(_0x4f0664['removeMarker'](_0x51d5d7['getFirstMarker']()),_0x4774bb=!0x0);}return _0x4774bb;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5db836){const _0x23f42d=this['editor']['locale'],{data:_0x154811}=_0x5db836,_0x2c94f7={'type':'format','content':''};if(!_0x154811||'listStyle'!=_0x154811['key'])return;if(!_0x154811['oldValue'])return'default'==_0x154811['newValue']?_0x2c94f7:{'type':'format','content':''+At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['newValue'])))};if(!_0x154811['newValue']){if('default'==_0x154811['oldValue'])return _0x2c94f7;let _0x3f418c=_0x5db836['head'];for(;_0x3f418c;){if(_0x3f418c['data']&&'listType'==_0x3f418c['data']['key']&&_0x3f418c['data']['newValue'])return _0x2c94f7;_0x3f418c=_0x3f418c['next'];}return{'type':'format','content':''+At(_0x23f42d,'*Remove\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['oldValue'])))};}if('default'!=_0x154811['newValue'])return{'type':'format','content':''+At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,this['_getTranslationKeyForListStyle'](_0x154811['newValue'])))};let _0x58c5ff=_0x5db836['head'];for(;_0x58c5ff;){if(_0x58c5ff['data']&&'listType'==_0x58c5ff['data']['key']&&_0x58c5ff['data']['newValue']&&_0x58c5ff['data']['oldValue'])return _0x2c94f7;_0x58c5ff=_0x58c5ff['next'];}return{'type':'format','content':At(_0x23f42d,'*Set\x20format:*\x20%0',At(_0x23f42d,'ELEMENT_'+_0x5db836['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x591382=this['editor'],_0x43778a=_0x591382['locale'];_0x591382['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1279fd=>{if('formatBlock'!=_0x1279fd['type'])return;const {data:_0x40629b}=_0x1279fd;if(!_0x40629b)return;let _0x1bc45d,_0x211d62;switch(_0x40629b['commandName']){case'listStyle':_0x1bc45d='*Change\x20to:*\x20%0',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d,At(_0x43778a,this['_getTranslationKeyForListStyle'](_0x40629b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bc45d=_0x40629b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d)};break;case'listStart':_0x1bc45d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x211d62={'type':'format','content':At(_0x43778a,_0x1bc45d,_0x40629b['commandParams'][0x0]['startIndex'])};}return _0x211d62;});}['_getTranslationKeyForListStyle'](_0x37833c){return'ELEMENT_'+function(_0x2ed22f){if(Wt['includes'](_0x2ed22f))return'bulleted';if(Vt['includes'](_0x2ed22f))return'numbered';return null;}(_0x37833c)['toUpperCase']()+'_LIST_'+_0x37833c['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x40e6e8{['afterInit'](){const _0x2891f5=this['editor'];_0x2891f5['commands']['get']('emoji')&&_0x2891f5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x40e6e8{static get['requires'](){return[lt];}['init'](){const _0x115030=this['editor'],_0x1120a4=_0x115030['plugins']['get']('TrackChangesEditing'),_0x1fe5bf=_0x115030['commands']['get']('enter');_0x1120a4['enableCommand']('enter',()=>{_0x115030['model']['change'](_0x213945=>{const _0x335f6f=_0x115030['model']['document']['selection'],_0x2adb6b=_0x335f6f['getFirstPosition'](),_0x2d96b3=_0x2db68d['fromRange'](_0x335f6f['getFirstRange']());if(_0x1fe5bf['enterBlock'](_0x213945)){const _0x1ef632=_0x115030['model']['createPositionAt'](_0x2adb6b['parent']['nextSibling'],0x0),_0x2d1654=_0x213945['createRange'](_0x2adb6b,_0x1ef632);_0x1120a4['markInsertion'](_0x2d1654);}else _0x213945['setSelection'](_0x213945['createRange'](_0x2d96b3['end']));_0x2d96b3['detach'](),_0x1fe5bf['fire']('afterExecute',{'writer':_0x213945});});});}}class Kt extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x438185=this['editor']['plugins']['get']('TrackChangesEditing');_0x438185['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x438185['enableCommand']('findNext'),_0x438185['enableCommand']('findPrevious'),_0x438185['enableCommand']('replace'),_0x438185['enableCommand']('replaceAll');}['handleFindCommand'](_0x13a98e,_0x1f4f6c,_0x5b6e19={}){const _0x59df74=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13a98e(_0x219bb6=>{let _0x67f053=('string'==typeof _0x1f4f6c?_0x59df74['findByTextCallback'](_0x1f4f6c,_0x5b6e19):_0x1f4f6c)(_0x219bb6);Array['isArray'](_0x67f053)&&(_0x67f053={'results':_0x67f053,'searchText':'string'==typeof _0x1f4f6c?_0x1f4f6c:''});const _0x2a3971=_0x67f053['results']['filter'](_0x3f546b=>!0x1===this['_isInDeletionRange'](_0x3f546b,_0x219bb6['item']));return{..._0x67f053,'results':_0x2a3971};},_0x5b6e19);}['_isInDeletionRange'](_0x11da7a,_0x20cdb9){const _0x4de4a2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x20cdb9,_0x11da7a['start']),this['editor']['model']['createPositionAt'](_0x20cdb9,_0x11da7a['end']));for(const _0x54a6d3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4de4a2['getIntersection'](_0x54a6d3['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x40e6e8{['afterInit'](){const _0x18091a=this['editor']['locale'],_0x28ddb2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x35eea7,commandName:_0x43bc85}of Xt)this['editor']['plugins']['has'](_0x35eea7)&&_0x28ddb2['enableDefaultAttributesIntegration'](_0x43bc85);_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x18091a,'FORMAT_FONT_SIZE')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x18091a,'FORMAT_FONT_FAMILY')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x18091a,'FORMAT_FONT_COLOR')),_0x28ddb2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x18091a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3bbe06=this['editor'],_0xdd82bc=_0x3bbe06['locale'];_0x3bbe06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46120b=>{const _0x1b00fb=_0xdd82bc['t'];if('formatInline'!=_0x46120b['type'])return;const {data:_0x5595bb}=_0x46120b;if(null!=_0x5595bb){if('fontSize'==_0x5595bb['commandName']){const _0x5e7771=_0x5595bb['commandParams'][0x0]['value'];if(_0x5e7771){const _0x3ceab6=_0x1b00fb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e99c5=>_0x4e99c5['model']==_0x5e7771)['title'])['toLowerCase']();return{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20size:*\x20%0',_0x3ceab6)};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5595bb['commandName']){const _0x3a145d=_0x5595bb['commandParams'][0x0]['value'];return _0x3a145d?{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20family:*\x20%0',_0x3a145d)}:{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5595bb['commandName']){const _0x19982a=_0x5595bb['commandParams'][0x0]['value'];if(_0x19982a){const _0x481b8f=_0x3d7480(this['editor']['config']['get']('fontColor.colors'))['find'](_0x27f854=>_0x27f854['model']==_0x19982a);let _0x246ccc=_0x19982a,_0x1ba101='';return _0x481b8f&&(_0x246ccc=_0x481b8f['label'],_0x1ba101=_0x1b00fb(_0x246ccc)['toLowerCase']()),{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20color:*\x20%0',_0x1ba101)['trim'](),'color':{'value':_0x19982a,'title':_0x1ba101||_0x246ccc}};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5595bb['commandName']){const _0x59c59d=_0x5595bb['commandParams'][0x0]['value'];if(_0x59c59d){const _0x1181b3=_0x3d7480(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59a44d=>_0x59a44d['model']==_0x59c59d);let _0x57a9b6=_0x59c59d,_0xcc7335='';return _0x1181b3&&(_0x57a9b6=_0x1181b3['label'],_0xcc7335=_0x1b00fb(_0x57a9b6)['toLowerCase']()),{'type':'format','content':At(_0xdd82bc,'*Set\x20font\x20background\x20color:*\x20%0',_0xcc7335)['trim'](),'color':{'value':_0x59c59d,'title':_0xcc7335||_0x57a9b6}};}return{'type':'format','content':At(_0xdd82bc,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x40e6e8{['afterInit'](){const {plugins:_0x460c12}=this['editor'];_0x460c12['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x460c12['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x368186,plugins:_0x1de44f,commands:_0xe6021}=this['editor'],_0xb1ca19=_0x1de44f['get']('TrackChangesEditing');_0xe6021['get']('footnotesStyle')&&_0xb1ca19['enableDefaultAttributesIntegration']('footnotesStyle'),_0xe6021['get']('footnotesStart')&&_0xb1ca19['enableDefaultAttributesIntegration']('footnotesStart'),_0xb1ca19['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x368186,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xb1ca19['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x368186,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x50536f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4e80bd,commands:_0x38386d}=this['editor'];_0x38386d['get']('insertFootnote')&&_0x50536f['enableCommand']('insertFootnote'),_0x50536f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1ca1eb=>At(_0x4e80bd,'ELEMENT_FOOTNOTE_REF',_0x1ca1eb)),_0x50536f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4ea4d0=>At(_0x4e80bd,'ELEMENT_FOOTNOTE_DEFINITION',_0x4ea4d0)),_0x50536f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x2515f0=>At(_0x4e80bd,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x2515f0));}}class Qt extends _0x40e6e8{['afterInit'](){const _0x2a60bf=this['editor'],_0x5dab4d=_0x2a60bf['plugins']['get']('TrackChangesEditing'),_0x6d19c9=_0x2a60bf['commands']['get']('copyFormat'),_0x5e7595=_0x2a60bf['commands']['get']('pasteFormat');_0x6d19c9&&_0x5e7595&&(_0x5dab4d['enableDefaultAttributesIntegration']('pasteFormat'),_0x5dab4d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x49b36a=this['editor'],_0x348ee2=_0x49b36a['locale'];_0x49b36a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x505706=>{if('formatBlock'!=_0x505706['type']&&'formatInline'!=_0x505706['type'])return;const {data:_0x3fda47}=_0x505706;if(_0x3fda47&&'pasteFormat'===_0x3fda47['commandName']){const _0x4802e7=[],_0x4987cd=_0x3fda47['commandParams'][0x0];for(const [_0x501a7d,_0x13ae24]of Object['entries'](_0x4987cd))_0x4802e7['push'](Zt(_0x49b36a,_0x501a7d,_0x13ae24));return _0x4802e7['length']?{'type':'format','content':At(_0x348ee2,'*Set\x20format\x20to:*\x20%0',_0x4802e7['join'](',\x20'))}:{'type':'format','content':At(_0x348ee2,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x252544,_0x222612,_0x14cc81){const _0x383f56=_0x252544['locale']['t'],_0x1404c0=_0x222612['split'](/(?=[A-Z])/)['join']('\x20'),_0x37165b=_0x383f56(_0x1404c0['charAt'](0x0)['toUpperCase']()+_0x1404c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x14cc81)return _0x37165b;if('fontColor'===_0x222612||'fontBackgroundColor'===_0x222612){const _0x521aee=_0x3d7480(_0x252544['config']['get']('fontColor.colors'))['find'](_0x64ee7f=>_0x64ee7f['model']==_0x14cc81);return _0x37165b+'\x20('+(_0x521aee?_0x383f56(_0x521aee['label'])['toLowerCase']():_0x14cc81)+')';}if('fontSize'===_0x222612&&isNaN(parseFloat(_0x14cc81))){const _0x3d1c04=_0x252544['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x252544['config']['get']('fontSize.options'))['find'](_0x38c221=>_0x38c221['model']==_0x14cc81);return _0x37165b+'\x20('+(_0x3d1c04?_0x383f56(_0x3d1c04['title'])['toLowerCase']():_0x14cc81)+')';}return _0x37165b+'\x20('+_0x14cc81+')';}class Jt extends _0x40e6e8{['_headingOptions'];['afterInit'](){const _0x58adc4=this['editor'];if(!_0x58adc4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x58adc4['config']['get']('heading.options');const _0x4935de=_0x58adc4['locale'],_0x16ecb6=_0x58adc4['plugins']['get']('TrackChangesEditing');_0x16ecb6['enableDefaultAttributesIntegration']('heading');for(const _0x4eb6d2 of this['_headingOptions'])'paragraph'!=_0x4eb6d2['model']&&_0x16ecb6['descriptionFactory']['registerElementLabel'](_0x4eb6d2['model'],_0x46e1e2=>{const _0x3dfcd8=this['_getHeadingLevel'](_0x4eb6d2['model']);return null!==_0x3dfcd8?_0x3230ca(_0x46e1e2,_0x3dfcd8):_0x132c8f(_0x46e1e2,_0x4eb6d2['title']);});function _0x3230ca(_0x30fc73,_0x18187c){return At(_0x4935de,'ELEMENT_HEADING',[_0x30fc73,_0x18187c]);}function _0x132c8f(_0x5b8cc2,_0x21e11f){return At(_0x4935de,'ELEMENT_HEADING_CUSTOM',[_0x5b8cc2,_0x21e11f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x516ccf=this['editor'],_0x540a4a=_0x516ccf['locale'];function _0x3b9067(_0x232ec1,_0x5105b3){return At(_0x540a4a,'ELEMENT_HEADING_CUSTOM',[_0x232ec1,_0x5105b3]);}_0x516ccf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4eea81=>{if('formatBlock'!=_0x4eea81['type'])return;const {data:_0x16a9c3}=_0x4eea81;if(_0x16a9c3&&'heading'==_0x16a9c3['commandName']){const _0x3a2316=_0x16a9c3['commandParams'][0x0]['value'],_0x2a1084=this['_getHeadingLevel'](_0x3a2316);if(null!==_0x2a1084)return{'type':'format','content':At(_0x540a4a,'*Change\x20to:*\x20%0',(_0x28af48=0x1,_0x57bd7d=_0x2a1084,At(_0x540a4a,'ELEMENT_HEADING',[_0x28af48,_0x57bd7d])))};const _0x47bf07=this['_headingOptions']['find'](_0x429318=>_0x429318['model']===_0x3a2316)['title'];return{'type':'format','content':At(_0x540a4a,'*Change\x20to:*\x20%0',_0x3b9067(0x1,_0x47bf07))};}var _0x28af48,_0x57bd7d;});}['_getHeadingLevel'](_0x3ac200){const _0x41282a=_0x3ac200['match'](/^heading(\d+)/);if(_0x41282a)return _0x41282a[0x1];const _0x4faf4b=this['_headingOptions']?.['find'](_0x272a46=>_0x272a46['model']==_0x3ac200);if(_0x4faf4b&&_0x4faf4b['view']){const _0x1f4265=_0x4faf4b['view'],_0x416208=(_0x1f4265['name']??_0x1f4265)['match'](/^h(\d+)/);if(_0x416208)return _0x416208[0x1];}return null;}}class te extends _0x40e6e8{['afterInit'](){const _0x50318f=this['editor'];if(!_0x50318f['plugins']['has']('HighlightEditing'))return;const _0x56f16e=_0x50318f['plugins']['get']('TrackChangesEditing'),_0x841593=_0x50318f['locale'];_0x56f16e['enableDefaultAttributesIntegration']('highlight'),_0x56f16e['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x841593,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48282a=this['editor'],_0x2b85fa=_0x48282a['locale'];_0x48282a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38029a=>{if('formatInline'!=_0x38029a['type'])return;const {data:_0x4e944c}=_0x38029a;if(_0x4e944c&&'highlight'==_0x4e944c['commandName']){const _0x4633ea=_0x2b85fa['t'],_0x52a201=_0x4e944c['commandParams'][0x0]['value'];if(_0x52a201){const _0x31da4d=_0x48282a['config']['get']('highlight.options')['find'](_0x6de1c0=>_0x6de1c0['model']==_0x52a201),_0x26193a=_0x4633ea(_0x31da4d['title'])['toLowerCase']();return{'type':'format','content':At(_0x2b85fa,'*Set\x20highlight:*\x20%0',_0x26193a),'color':{'value':_0x31da4d['color'],'title':_0x31da4d['title']}};}return{'type':'format','content':At(_0x2b85fa,'*Remove\x20highlight*',At(_0x2b85fa,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x40e6e8{['afterInit'](){const _0x17d660=this['editor'];if(!_0x17d660['plugins']['has']('HorizontalLineEditing'))return;_0x17d660['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x124b72=_0x17d660['plugins']['get']('TrackChangesEditing'),_0x3bec20=_0x17d660['locale'];_0x124b72['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1a35e3=>At(_0x3bec20,'ELEMENT_HORIZONTAL_LINE',_0x1a35e3));}}class ne extends _0x40e6e8{['afterInit'](){const _0x346aab=this['editor'];if(!_0x346aab['plugins']['has']('HtmlEmbed'))return;const _0x917699=_0x346aab['plugins']['get']('TrackChangesEditing'),_0x42fb8a=_0x346aab['locale'];_0x917699['descriptionFactory']['registerElementLabel']('rawHtml',_0x26ba62=>At(_0x42fb8a,'ELEMENT_HTML_EMBED',_0x26ba62)),_0x917699['enableDefaultAttributesIntegration']('htmlEmbed'),_0x917699['descriptionFactory']['registerDescriptionCallback'](_0x53fe28=>{if('attribute'!=_0x53fe28['type'])return;const {data:_0xc975fd}=_0x53fe28;if(_0xc975fd&&'value'==_0xc975fd['key']&&_0x53fe28['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x37a8a4=At(_0x42fb8a,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x42fb8a,'*Change\x20%0\x20content*',_0x37a8a4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3de12c=this['editor'],_0x5651f5=_0x3de12c['locale'];_0x3de12c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f9d4c=>{if('formatBlock'!=_0x6f9d4c['type'])return;const {data:_0x172875}=_0x6f9d4c;if(_0x172875&&'htmlEmbed'==_0x172875['commandName']){const _0x550760=At(_0x5651f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x5651f5,'*Change\x20%0\x20content*',_0x550760)};}});}}class ie extends _0x40e6e8{['afterInit'](){const _0xbaca8b=this['editor'];if(!_0xbaca8b['plugins']['has']('ImageEditing'))return;const _0x2a449e=_0xbaca8b['plugins']['get']('TrackChangesEditing'),_0x4eaa95=_0xbaca8b['plugins']['get']('ImageUtils'),_0x4dd032=_0xbaca8b['locale'];_0x2a449e['enableCommand']('insertImage'),_0x2a449e['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c6887=>At(_0x4dd032,'ELEMENT_IMAGE',_0x2c6887)),_0x2a449e['descriptionFactory']['registerElementLabel']('imageInline',_0x489ade=>At(_0x4dd032,'ELEMENT_INLINE_IMAGE',_0x489ade)),_0x2a449e['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x4dd032,'ELEMENT_CAPTION')),_0xbaca8b['plugins']['has']('ImageUploadEditing')&&_0x2a449e['enableCommand']('uploadImage'),_0xbaca8b['plugins']['has']('ImageBlockEditing')&&_0xbaca8b['plugins']['has']('ImageInlineEditing')&&(_0x2a449e['enableCommand']('imageTypeInline',(_0x548fb6,_0x4f4d4b)=>{const _0x488361=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']);_0xbaca8b['model']['change'](()=>{_0x2a449e['markBlockFormat'](_0x488361,{'commandName':'imageTypeInline','commandParams':[_0x4f4d4b]},[],'convertBlockImageToInline');});}),_0x2a449e['enableCommand']('imageTypeBlock',(_0x599cd1,_0x38e0e8)=>{_0xbaca8b['model']['change'](_0x309e6e=>{let _0x1af36d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4faa5e=_0x309e6e['createRangeOn'](_0x1af36d);const _0x420b2d=tt['fromPosition'](_0x4faa5e['start'],'toPrevious'),_0x1e999f=tt['fromPosition'](_0x4faa5e['end'],'toNext');_0x2a449e['forceDefaultExecution'](()=>_0x599cd1(_0x38e0e8)),_0x1af36d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4faa5e=_0x309e6e['createRangeOn'](_0x1af36d);const _0x32e4ff=_0x309e6e['createRange'](_0x420b2d,_0x1e999f);_0x420b2d['detach'](),_0x1e999f['detach'](),_0x2a449e['markBlockFormat'](_0x1af36d,{'commandName':'imageTypeInline','commandParams':[_0x38e0e8]},[],'convertInlineImageToBlock'),_0x32e4ff['start']['isBefore'](_0x4faa5e['start'])&&_0x2a449e['markInsertion'](_0x309e6e['createRange'](_0x32e4ff['start'],_0x4faa5e['start']),'convertInlineImageToBlock'),_0x4faa5e['end']['isBefore'](_0x32e4ff['end'])&&_0x2a449e['markInsertion'](_0x309e6e['createRange'](_0x4faa5e['end'],_0x32e4ff['end']),'convertInlineImageToBlock');});}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a449e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x21a26f])=>{const _0x53b2a4=_0x2a449e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5bea70=_0x21a26f['start'],_0x11b48f=_0x21a26f['end'];const _0x2c2077=_0xbaca8b['model']['schema']['getNearestSelectionRange'](_0x5bea70,'backward'),_0x2101eb=_0xbaca8b['model']['schema']['getNearestSelectionRange'](_0x11b48f,'forward');_0x2c2077['isCollapsed']&&(_0x5bea70=_0x2c2077['start']),_0x2101eb['isCollapsed']&&(_0x11b48f=_0x2101eb['end']),_0x53b2a4([_0xbaca8b['model']['createRange'](_0x5bea70,_0x11b48f)]);}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4b8731),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4b8731)),_0xbaca8b['plugins']['has']('ImageCaptionEditing')&&(_0x2a449e['enableCommand']('toggleImageCaption',(_0x2ada79,_0x1fa883)=>{const _0x4e75a3=_0xbaca8b['plugins']['get']('ImageCaptionUtils');let _0x5e496d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4646e8=_0x4e75a3['getCaptionFromImageModelElement'](_0x5e496d);_0xbaca8b['model']['change'](()=>{if(_0x4646e8)return void _0x2a449e['markDeletion'](_0xbaca8b['model']['createRangeOn'](_0x4646e8));const _0x2e9a2f=_0x4eaa95['isBlockImage'](_0x5e496d);_0x2ada79(_0x1fa883),_0x5e496d=_0x4eaa95['getClosestSelectedImageElement'](_0xbaca8b['model']['document']['selection']),_0x4646e8=_0x4e75a3['getCaptionFromImageModelElement'](_0x5e496d),_0x2a449e['markInsertion'](_0xbaca8b['model']['createRangeOn'](_0x4646e8),_0x2e9a2f?null:'imageCaption');});}),_0x2a449e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4b8731));const _0x13b086=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50e263(_0x307c43,_0x100520){const _0x56760c=_0x13b086['findIndex'](({type:_0x1f06c7,subType:_0x502a88})=>_0x307c43['type']==_0x1f06c7&&_0x307c43['subType']==_0x502a88),_0x381171=_0x13b086['findIndex'](({type:_0x25b86d,subType:_0x3d7236})=>_0x100520['type']==_0x25b86d&&_0x100520['subType']==_0x3d7236);if(_0x56760c<0x0||_0x381171<0x0)return!0x1;const _0x183689=_0x307c43['getFirstRange'](),_0x1fe6a5=_0x100520['getFirstRange']();if((0x0==_0x56760c||0x1==_0x56760c)&&0x2==_0x381171&&_0x183689['isIntersecting'](_0x1fe6a5))return!0x0;if(0x2==_0x56760c&&0x3==_0x381171){const _0x4753fe=_0x2a449e['_findSuggestions'](_0x183689,'insertion')['filter'](({suggestion:_0x10addc,meta:_0x2f6276})=>_0x2f6276['isOwn']&&'convertInlineImageToBlock'==_0x10addc['subType']);if(_0x4753fe['length']>0x1&&_0x1fe6a5['end']['isEqual'](_0x183689['start']))return!0x0;if(0x1==_0x4753fe['length']&&(_0x183689['start']['isEqual'](_0x1fe6a5['end'])||_0x183689['end']['isEqual'](_0x1fe6a5['start'])))return!0x0;}if(0x3==_0x56760c&&0x3==_0x381171&&_0x183689['start']['isBefore'](_0x1fe6a5['start'])){const _0x4fda57=_0x183689['end']['nodeAfter'],_0x43aec6=_0x1fe6a5['start']['nodeBefore'];return _0x4eaa95['isBlockImage'](_0x4fda57)&&_0x4fda57===_0x43aec6;}return!0x1;}function _0x4b8731(_0x636a52,_0x57fb8b){return _0x50e263(_0x636a52,_0x57fb8b)?[_0x636a52,_0x57fb8b]:_0x50e263(_0x57fb8b,_0x636a52)?[_0x57fb8b,_0x636a52]:null;}_0xbaca8b['plugins']['has']('ImageResize')&&(_0x2a449e['enableDefaultAttributesIntegration']('resizeImage'),_0x2a449e['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x4dd032,'FORMAT_IMAGE_SIZE'))),_0xbaca8b['plugins']['has']('ImageTextAlternativeEditing')&&_0x2a449e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xbaca8b['plugins']['has']('PictureEditing')&&_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x35e123=>{if('attribute'!=_0x35e123['type'])return;const {data:_0x3f11ea}=_0x35e123;return _0x3f11ea&&'sources'==_0x3f11ea['key']?{'type':'format','content':''}:void 0x0;}),_0xbaca8b['plugins']['has']('ImageSizeAttributes')&&_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x45ad29=>{if('attribute'!=_0x45ad29['type'])return;const {data:_0x45acb9}=_0x45ad29;return!_0x45acb9||'width'!=_0x45acb9['key']&&'height'!=_0x45acb9['key']?void 0x0:{'type':'format','content':''};}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0xbcc448=>{if(!!_0x13b086['find'](({type:_0x16eeed,subType:_0x4312dd})=>_0xbcc448['type']==_0x16eeed&&_0xbcc448['subType']==_0x4312dd))return _0xbcc448['previous']?{}:void 0x0;}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x1140f2=>{if('insertion'==_0x1140f2['type']||'deletion'==_0x1140f2['type']){const _0x277f26=_0x1140f2['getContainedElement']();if(_0x277f26&&_0x277f26['is']('element','caption'))return{'type':'insertion'==_0x1140f2['type']?'addObject':'removeObject','element':_0x277f26,'quantity':0x1};}}),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x39a41f=>'formatBlock'==_0x39a41f['type']&&'convertInlineImageToBlock'==_0x39a41f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x39a41f['type']&&'convertBlockImageToInline'==_0x39a41f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a449e['descriptionFactory']['registerDescriptionCallback'](_0x716033=>{if('attribute'!=_0x716033['type'])return;const {data:_0x309e8a}=_0x716033;if(!_0x309e8a||'alt'!=_0x309e8a['key'])return;const _0x2948b2=_0x309e8a['newValue'];return _0x2948b2?{'type':'format','content':At(_0x4dd032,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2948b2+'\x22')}:{'type':'format','content':At(_0x4dd032,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb44fe6=this['editor'],_0x51d430=_0xb44fe6['locale'];_0xb44fe6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5640f0=>{if('formatBlock'!=_0x5640f0['type']&&'formatInline'!=_0x5640f0['type'])return;const {data:_0x5579f5}=_0x5640f0;if(_0x5579f5){if('imageTextAlternative'==_0x5579f5['commandName']){const _0x566391=_0x5579f5['commandParams'][0x0]['newValue'];return _0x566391?{'type':'format','content':At(_0x51d430,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x566391+'\x22')}:{'type':'format','content':At(_0x51d430,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5579f5['commandName']){const _0x3b36e7=_0x5579f5['commandParams'][0x0]['width'];return _0x3b36e7?{'type':'format','content':At(_0x51d430,'*Set\x20image\x20width:*\x20%0',_0x3b36e7)}:{'type':'format','content':At(_0x51d430,'*Reset\x20image\x20width*')};}}});}}class se extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x149168=this['editor']['locale'],_0x12b2ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x12b2ee['enableDefaultAttributesIntegration']('replaceImageSource'),_0x12b2ee['descriptionFactory']['registerDescriptionCallback'](_0x11dc7a=>{if('attribute'!=_0x11dc7a['type'])return;const {data:_0x3d8a88}=_0x11dc7a;return _0x3d8a88&&'src'==_0x3d8a88['key']?_0x3d8a88['newValue']&&_0x3d8a88['oldValue']?{'type':'format','content':At(_0x149168,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x248ca3=this['editor']['plugins']['get']('TrackChangesEditing');_0x248ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x248ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x248ca3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x248ca3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4693d5=this['editor'],_0x394820=_0x4693d5['locale'];_0x4693d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1270ee=>{if('formatBlock'!=_0x1270ee['type']&&'formatInline'!=_0x1270ee['type'])return;const {data:_0x2f046a}=_0x1270ee;if(!_0x2f046a||'replaceImageSource'!=_0x2f046a['commandName'])return;return{'type':'format','content':At(_0x394820,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x40e6e8{['afterInit'](){const _0x20a574=this['editor'];if(!_0x20a574['plugins']['has']('ImageStyleEditing'))return;const _0x15232e=_0x20a574['plugins']['get']('TrackChangesEditing'),_0x162b1b=_0x20a574['plugins']['get']('ImageUtils'),_0x4dd223={};_0x15232e['enableCommand']('imageStyle',(_0x3d44fc,_0x338d29)=>{const _0xc1c572=_0x20a574['plugins']['get']('Users')['me'],_0xdc2ba=_0x20a574['commands']['get']('imageStyle');let _0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),_0x53a977=_0x20a574['model']['createRangeOn'](_0x1f9e51),_0x38cb67=_0xdc2ba['value'];if(_0x38cb67==_0x338d29['value'])return;const _0x28420c={'commandName':'imageStyle','commandParams':[_0x338d29],'formatGroupId':_0x5bdaf9()};_0x20a574['model']['change'](()=>{if(_0x15232e['getSuggestions']()['filter'](_0x29c128=>_0x29c128['isInContent']&&_0xc1c572==_0x29c128['author']&&('formatBlock'==_0x29c128['type']||'formatInline'==_0x29c128['type'])&&('imageStylePreApply'==_0x29c128['subType']||'imageStylePostApply'==_0x29c128['subType'])&&_0x29c128['getFirstRange']()['isEqual'](_0x53a977))['forEach'](_0x4af31e=>_0x15232e['discardSuggestion'](_0x4af31e['head'])),_0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),_0x53a977=_0x20a574['model']['createRangeOn'](_0x1f9e51),_0xdc2ba['refresh'](),_0x20a574['commands']['get']('imageTypeInline')['refresh'](),_0x20a574['commands']['get']('imageTypeBlock')['refresh'](),_0x38cb67=_0xdc2ba['value'],_0x38cb67!=_0x338d29['value'])return _0x162b1b['isInlineImage'](_0x1f9e51)&&_0xdc2ba['shouldConvertImageType'](_0x338d29['value'],_0x1f9e51)?(_0x3d44fc({..._0x338d29,'setImageSizes':!0x1}),_0x1f9e51=_0x162b1b['getClosestSelectedImageElement'](_0x20a574['model']['document']['selection']),void _0x15232e['markBlockFormat'](_0x1f9e51,{..._0x28420c,'commandReversedParams':[{'value':_0x38cb67||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x162b1b['isBlockImage'](_0x1f9e51)?_0x15232e['markBlockFormat'](_0x1f9e51,_0x28420c,[],'imageStylePostApply'):_0x15232e['markInlineFormat'](_0x53a977,_0x28420c,'imageStylePostApply'));});});for(const _0x3e30ab of _0x20a574['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4dd223[_0x3e30ab['name']]=_0x3e30ab['title']['toLowerCase']();_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x35c519])=>{_0x162b1b['setImageNaturalSizeAttributes'](_0x35c519['getContainedElement']());}),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x11c67f,_0x2a3cad)=>{_0x15232e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x11c67f,{'commandName':_0x2a3cad['commandName'],'commandParams':_0x2a3cad['commandReversedParams']});}),_0x15232e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e557d,_0x33526c){if(_0x198fff(_0x2e557d,_0x33526c))return[_0x2e557d,_0x33526c];if(_0x198fff(_0x33526c,_0x2e557d))return[_0x33526c,_0x2e557d];return null;});const _0x33c0c0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x198fff(_0x449d38,_0x1e449b){const _0x1f4868=_0x33c0c0['findIndex'](({type:_0x326762,subType:_0x3d3899})=>_0x449d38['type']==_0x326762&&_0x449d38['subType']==_0x3d3899),_0x52fd11=_0x33c0c0['findIndex'](({type:_0x1d3207,subType:_0x20d036})=>_0x1e449b['type']==_0x1d3207&&_0x1e449b['subType']==_0x20d036);if(_0x1f4868<0x0||_0x52fd11<0x0)return!0x1;const _0xd857d6=_0x449d38['getFirstRange'](),_0x2432da=_0x1e449b['getFirstRange']();if((0x0==_0x1f4868||0x1==_0x1f4868)&&0x2==_0x52fd11&&_0xd857d6['isIntersecting'](_0x2432da))return!0x0;if(0x2==_0x1f4868&&0x3==_0x52fd11){const _0x22e9e0=_0x15232e['_findSuggestions'](_0xd857d6,'insertion')['filter'](({suggestion:_0x21476b,meta:_0x2b17c5})=>_0x2b17c5['isOwn']&&'convertInlineImageToBlock'==_0x21476b['subType']);if(_0x22e9e0['length']>0x1&&_0x2432da['end']['isEqual'](_0xd857d6['start']))return!0x0;if(0x1==_0x22e9e0['length']&&(_0xd857d6['start']['isEqual'](_0x2432da['end'])||_0xd857d6['end']['isEqual'](_0x2432da['start'])))return!0x0;}if(0x3==_0x1f4868&&0x3==_0x52fd11&&_0xd857d6['start']['isBefore'](_0x2432da['start'])){const _0x3390c0=_0xd857d6['end']['nodeAfter'],_0x59c094=_0x2432da['start']['nodeBefore'];return _0x162b1b['isBlockImage'](_0x3390c0)&&_0x3390c0===_0x59c094;}return!0x1;}_0x20a574['model']['document']['registerPostFixer'](()=>{let _0x8fd38d=!0x1;const _0x28a801=Array['from'](_0x20a574['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x319578,data:_0xdb3d0a}of _0x28a801){const {group:_0x3e8651,type:_0x4be21b,subType:_0x419fb9,id:_0x4e13c7}=_0x4e67eb(_0x319578);if('suggestion'==_0x3e8651&&_0x15232e['hasSuggestion'](_0x4e13c7)){if('formatBlock'==_0x4be21b&&('imageStylePreApply'==_0x419fb9||'imageStylePostApply'==_0x419fb9)){const _0x151b51=_0x15232e['getSuggestion'](_0x4e13c7);if(_0xdb3d0a['newRange']){const _0x47af4b=_0x151b51['getFirstRange']()['getContainedElement']();if(_0x162b1b['isBlockImage'](_0x47af4b))continue;_0x15232e['discardSuggestion'](_0x151b51),_0x8fd38d=!0x0;}}if('insertion'==_0x4be21b&&'imageCaption'==_0x419fb9&&!_0xdb3d0a['newRange']){const _0x1dd727=_0x15232e['getSuggestion'](_0x4e13c7);_0x1dd727['next']&&_0x1dd727['next']['isInContent']&&(_0x15232e['discardSuggestion'](_0x1dd727['next']),_0x8fd38d=!0x0);}}}return _0x8fd38d;}),this['_registerLegacyDescription'](_0x4dd223);}['_registerLegacyDescription'](_0x7a0b5a){const _0xae64d4=this['editor'],_0x4b7b79=_0xae64d4['locale'];_0xae64d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353bc7=>{if('formatBlock'!=_0x353bc7['type']&&'formatInline'!=_0x353bc7['type'])return;const {data:_0x4ff4dc}=_0x353bc7;if(!_0x4ff4dc||'imageStyle'!=_0x4ff4dc['commandName'])return;const _0x4ac583=_0x4ff4dc['commandParams'][0x0]['value'];return _0x1f00ee('side'===_0x4ac583?At(_0x4b7b79,'FORMAT_SIDE_IMAGE'):_0x7a0b5a[_0x4ac583]||_0x4ac583);function _0x1f00ee(_0x4803ed){return{'type':'format','content':At(_0x4b7b79,'*Format:*\x20%0',_0x4803ed)};}});}}class oe extends _0x40e6e8{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x23fb7b){super(_0x23fb7b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xfad4ca=this['editor'],_0x296951=_0xfad4ca['commands']['get']('importWord'),_0x536874=_0xfad4ca['commands']['get']('trackChanges');_0x296951&&(_0x296951['on']('execute',(_0x4dbf18,[,_0x258c98])=>{this['_trackChangesValueDuringImport']=_0x536874['value'],_0x258c98['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x296951,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x296951,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x536874['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xfad4ca['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4c69a5,_0x3da560){const {suggestions:_0x442e1b}=_0x3da560,_0x17ec11=this['editor']['commands']['get']('trackChanges'),_0xe12720=_0x17ec11['value'];this['_trackChangesValueDuringImport']!==_0xe12720&&(_0x17ec11['execute'](),this['_trackChangesExecuted']=!0x0),_0x442e1b&&_0x442e1b['forEach'](({id:_0x3b91fd,type:_0x237687,author:_0x4cf05f,created_at:_0xfd1737})=>{const _0x3b9150={'id':_0x3b91fd,'type':_0x237687,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4cf05f,'createdAt':_0xfd1737?new Date(_0xfd1737):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3b9150);});}}class ae extends _0x40e6e8{['afterInit'](){const _0x193256=this['editor'],_0x3d73b3=_0x193256['plugins']['get']('TrackChangesEditing');if(_0x193256['plugins']['has']('IndentEditing')&&(_0x3d73b3['enableCommand']('indent'),_0x3d73b3['enableCommand']('outdent')),_0x193256['plugins']['has']('IndentBlock')){for(const _0x5a3c78 of['indentBlock','outdentBlock'])_0x3d73b3['enableDefaultAttributesIntegration'](_0x5a3c78);if(_0x193256['plugins']['has']('ListEditing')){for(const _0x705f3b of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3d73b3['enableDefaultAttributesIntegration'](_0x705f3b);}}const _0x1ee406=_0x193256['locale'];_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x1ee406,'FORMAT_INDENT')),_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x1ee406,'FORMAT_INDENT')),_0x3d73b3['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x1ee406,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3878e7=this['editor'],_0x564207=_0x3878e7['locale'],_0x49d43d=_0x3878e7['plugins']['get']('TrackChangesEditing');_0x49d43d['descriptionFactory']['registerDescriptionCallback'](_0x877e48=>{if('formatBlock'!=_0x877e48['type'])return;const {data:_0x4f5911}=_0x877e48;if(!_0x4f5911)return;if('indentBlock'!=_0x4f5911['commandName']&&'outdentBlock'!=_0x4f5911['commandName'])return;const _0x5e6be7=_0x877e48['getItems']()[0x0],_0x43e80a=_0x49d43d['descriptionFactory']['getItemLabel'](_0x5e6be7);return'indentBlock'==_0x4f5911['commandName']?{'type':'format','content':At(_0x564207,'*Indent:*\x20%0',_0x43e80a)}:'outdentBlock'==_0x4f5911['commandName']?{'type':'format','content':At(_0x564207,'*Outdent:*\x20%0',_0x43e80a)}:void 0x0;});}}class ce extends _0x40e6e8{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x40e6e8{['afterInit'](){const _0x24d2b0=this['editor'];if(!_0x24d2b0['plugins']['has']('LinkEditing'))return;const _0x57fce9=_0x24d2b0['plugins']['get']('TrackChangesEditing'),_0x213159=_0x24d2b0['commands']['get']('link');_0x57fce9['enableDefaultAttributesIntegration']('link'),_0x57fce9['enableDefaultAttributesIntegration']('unlink');for(const _0xaa5308 of _0x213159['manualDecorators'])_0x57fce9['descriptionFactory']['registerAttributeLabel'](_0xaa5308['id'],'link\x20('+_0xaa5308['label']['toLowerCase']()+')');_0x57fce9['descriptionFactory']['registerDescriptionCallback'](_0x391072=>{if('attribute'!=_0x391072['type'])return;const {data:_0x189db1}=_0x391072;if(!_0x189db1||'linkHref'!=_0x189db1['key'])return;const _0xcd235d=_0x189db1['newValue'],_0x26a8cc=_0x24d2b0['locale'];return{'type':'format','content':null==_0xcd235d?At(_0x26a8cc,'*Remove\x20link*'):At(_0x26a8cc,'*Set\x20link:*\x20%0','\x22'+_0xcd235d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x711991=this['editor'],_0xdac9e1=_0x711991['locale'];_0x711991['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290dcd=>{if('formatInline'!=_0x290dcd['type'])return;const {data:_0x5e1a82}=_0x290dcd;if(_0x5e1a82){if('link'==_0x5e1a82['commandName']){const _0x2376ee=_0x5e1a82['commandParams'][0x0];return{'type':'format','content':At(_0xdac9e1,'*Set\x20link:*\x20%0','\x22'+_0x2376ee+'\x22')};}return'unlink'==_0x5e1a82['commandName']?{'type':'format','content':At(_0xdac9e1,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x40e6e8{['afterInit'](){const _0x29f010=this['editor'],_0x2c8878=_0x29f010['locale'];if(!_0x29f010['plugins']['has']('LegacyListEditing'))return;const _0x3c6e82=_0x29f010['plugins']['get']('TrackChangesEditing'),_0xb77a31=_0x29f010['plugins']['has']('LegacyTodoListEditing');function _0x6067a7(_0x1cd262){return()=>{const _0x644671=_0x29f010['model']['document']['selection'],_0x463d65=_0x29f010['commands']['get'](_0x1cd262);if(_0x463d65['value'])return void _0x29f010['execute']('paragraph',{});const _0x231ec1=_0x1cd262['slice'](0x0,-0x4),_0x54f4b0=function(_0x4ce216,_0x3b499d,_0x2469a1){let _0x31135b=Array['from'](_0x4ce216)['filter'](_0x3d8d70=>function(_0xcda2df,_0x29bf24){return _0x29bf24['checkChild'](_0xcda2df['parent'],'listItem')&&!_0x29bf24['isObject'](_0xcda2df);}(_0x3d8d70,_0x2469a1));_0x31135b=_0x31135b['filter'](_0xb4bf12=>!_0xb4bf12['is']('element','listItem')||_0xb4bf12['getAttribute']('listType')!=_0x3b499d);const _0x52c209=new Set();for(const _0x367949 of _0x31135b)_0x367949['is']('element','listItem')?_0x52c209['add'](he(_0x367949)):_0x52c209['add'](_0x367949);return Array['from'](_0x52c209);}(_0x644671['getSelectedBlocks'](),_0x231ec1,_0x29f010['model']['schema']);_0x29f010['model']['change'](()=>{for(const _0x106b08 of _0x54f4b0)_0x3c6e82['markBlockFormat'](_0x106b08,{'commandName':_0x1cd262,'commandParams':[{'forceValue':!_0x463d65['value']}],'formatGroupId':'blockName'},de(_0x106b08));});};}function _0x2fbec1(_0x2853ed){return()=>{const _0x37260c=function(_0x3c5232){let _0x5b009d=Array['from'](_0x3c5232);const _0x21e403=_0x5b009d['findIndex'](_0x3458c3=>'listItem'!=_0x3458c3['name']);return _0x21e403>-0x1&&(_0x5b009d=_0x5b009d['slice'](0x0,_0x21e403)),_0x5b009d;}(_0x29f010['model']['document']['selection']['getSelectedBlocks']()),_0x52d295=_0x29f010['model']['createRange'](_0x29f010['model']['createPositionAt'](_0x37260c[0x0],'before'),_0x29f010['model']['createPositionAt'](_0x37260c[_0x37260c['length']-0x1],'end'));_0x29f010['model']['change'](()=>{_0x3c6e82['markBlockFormat'](_0x52d295,{'commandName':_0x2853ed,'commandParams':[],'formatGroupId':'listIndent'},function(_0x438fe1){const _0x17c831=new Set();for(const _0x22b9fc of _0x438fe1){let _0x7415c0=_0x22b9fc['nextSibling'];for(;_0x7415c0&&_0x7415c0['getAttribute']('listIndent')>_0x22b9fc['getAttribute']('listIndent');)_0x17c831['add'](_0x7415c0),_0x7415c0=_0x7415c0['nextSibling'];}return Array['from'](_0x17c831);}(_0x37260c));});};}_0x3c6e82['enableCommand']('numberedList',_0x6067a7('numberedList')),_0x3c6e82['enableCommand']('bulletedList',_0x6067a7('bulletedList')),_0xb77a31&&_0x3c6e82['enableCommand']('todoList',_0x6067a7('todoList')),_0x3c6e82['enableCommand']('indentList',_0x2fbec1('indentList')),_0x3c6e82['enableCommand']('outdentList',_0x2fbec1('outdentList')),_0xb77a31&&_0x3c6e82['enableCommand']('checkTodoList',()=>{const _0x2b434d=_0x29f010['commands']['get']('checkTodoList'),_0x26c983=Array['from'](_0x2b434d['_selectedElements']);_0x26c983['filter'](_0x1987b3=>_0x1987b3['getAttribute']('todoListChecked')!=_0x2b434d['value']),_0x29f010['model']['change'](()=>{for(const _0x5e6b73 of _0x26c983)_0x3c6e82['markBlockFormat'](_0x5e6b73,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2b434d['value']}]});});}),_0x3c6e82['descriptionFactory']['registerElementLabel']('listItem',_0x48bf82=>At(_0x2c8878,'ELEMENT_LIST_ITEM',_0x48bf82)),_0x3c6e82['descriptionFactory']['registerDescriptionCallback'](_0x4aae27=>{if('formatBlock'!=_0x4aae27['type']&&'formatInline'!=_0x4aae27['type'])return;const {data:_0x4c9ed6}=_0x4aae27;if(_0x4c9ed6){if('numberedList'==_0x4c9ed6['commandName']||'bulletedList'==_0x4c9ed6['commandName']||'todoList'==_0x4c9ed6['commandName'])switch(_0x4c9ed6['commandName']['replace']('List','')){case'bulleted':return _0x492884(At(_0x2c8878,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x492884(At(_0x2c8878,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x492884(At(_0x2c8878,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c9ed6['commandName'])return{'type':'format','content':At(_0x2c8878,'*Indent:*\x20%0',At(_0x2c8878,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c9ed6['commandName'])return{'type':'format','content':At(_0x2c8878,'*Outdent:*\x20%0',At(_0x2c8878,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c9ed6['commandName'])return _0x4c9ed6['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2c8878,'*Check\x20item*')}:{'type':'format','content':At(_0x2c8878,'*Uncheck\x20item*')};}function _0x492884(_0x192898){return{'type':'format','content':At(_0x2c8878,'*Change\x20to:*\x20%0',_0x192898)};}});}}function he(_0x267a55){const _0x27cc1e=_0x267a55['getAttribute']('listIndent');if(0x0==_0x27cc1e)return _0x267a55;let _0x1e1b86=_0x267a55;for(;_0x267a55['previousSibling']&&_0x267a55['previousSibling']['is']('element','listItem');){const _0xdf2b47=_0x267a55['previousSibling']['getAttribute']('listIndent');if(_0xdf2b47==_0x27cc1e)_0x1e1b86=_0x267a55['previousSibling'];else{if(_0xdf2b47<_0x27cc1e)break;}_0x267a55=_0x267a55['previousSibling'];}return _0x1e1b86;}function de(_0x28c3cb){const _0x459d70=[];if(_0x28c3cb['is']('element','listItem')&&_0x28c3cb['getAttribute']('listIndent')>0x0){let _0x44f443=_0x28c3cb['nextSibling'];for(;_0x44f443&&'listItem'==_0x44f443['name']&&_0x44f443['getAttribute']('listIndent')==_0x28c3cb['getAttribute']('listIndent');)_0x459d70['push'](_0x44f443),_0x44f443=_0x44f443['nextSibling'];}return _0x459d70;}class fe extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4628c4=this['editor']['config']['get']('list.properties'),_0x51543f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4628c4['styles']&&_0x51543f['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4628c4['reversed']&&_0x51543f['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4628c4['startIndex']&&_0x51543f['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x51543f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xc2cceb,_0x4be047={}){const _0x1d5743=this['editor']['plugins']['get']('TrackChangesEditing'),_0x708fd0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1d5743['markMultiRangeBlockFormat'](_0x708fd0,{'commandName':'listStyle','commandParams':[{'type':_0x4be047['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1e94d3,_0x210500={}){const _0x96d43e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47119a=this['_getSuggestionBlocks'](_0x547329=>_0x547329['is']('element','listItem')&&'numbered'===_0x547329['getAttribute']('listType'));if(_0x47119a['length']<0x1)return;const _0xa15479=_0x47119a['map'](_0x2792c8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2792c8,'before'),this['editor']['model']['createPositionAt'](_0x2792c8,0x0)));this['editor']['model']['change'](()=>{_0x96d43e['markMultiRangeBlockFormat'](_0xa15479,{'commandName':'listReversed','commandParams':[{'reversed':_0x210500['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x440029,_0x5f37cc={}){const _0x4fd427=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5310ec=this['_getSuggestionBlocks'](_0x5edfd5=>_0x5edfd5['is']('element','listItem')&&'numbered'===_0x5edfd5['getAttribute']('listType'));if(_0x5310ec['length']<0x1)return;const _0x1ca84f=_0x5310ec['map'](_0x8d6ccb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x8d6ccb,'before'),this['editor']['model']['createPositionAt'](_0x8d6ccb,0x0)));this['editor']['model']['change'](()=>{_0x4fd427['markMultiRangeBlockFormat'](_0x1ca84f,{'commandName':'listStart','commandParams':[{'startIndex':_0x5f37cc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x29640d){if('formatBlock'!=_0x29640d['type']&&'formatInline'!=_0x29640d['type'])return;const _0xae89dc=this['editor']['locale'],{data:_0x3795ab}=_0x29640d;if(!_0x3795ab)return;let _0x44f2b0,_0xaca95;switch(_0x3795ab['commandName']){case'listStyle':_0x44f2b0='*Change\x20to:*\x20%0',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0,At(_0xae89dc,this['_getTranslationKeyForListStyle'](_0x3795ab['commandParams'][0x0]['type'])))};break;case'listReversed':_0x44f2b0=_0x3795ab['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0)};break;case'listStart':_0x44f2b0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xaca95={'type':'format','content':At(_0xae89dc,_0x44f2b0,_0x3795ab['commandParams'][0x0]['startIndex'])};}return _0xaca95;}['_getSuggestionBlocksForListStyle'](){const _0x136db1=this['editor']['plugins']['get']('LegacyListUtils');let _0x45709b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x45709b[0x0]?.['is']('element','listItem')&&_0x45709b['unshift'](..._0x136db1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x45709b[_0x45709b['length']-0x1]?.['is']('element','listItem')&&_0x45709b['push'](..._0x136db1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x45709b=[...new Set(_0x45709b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x45709b=_0x45709b['filter'](_0x3d4478=>_0x3d4478['is']('element','listItem'))),_0x45709b;}['_getSuggestionBlocks'](_0x4afe18){const _0x519ba9=this['editor']['plugins']['get']('LegacyListUtils');let _0x5357a4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4afe18)['map'](_0x25373f=>{const _0x1f1daf=this['editor']['model']['createPositionAt'](_0x25373f,0x0);return[..._0x519ba9['getSiblingNodes'](_0x1f1daf,'backward'),..._0x519ba9['getSiblingNodes'](_0x1f1daf,'forward')];})['flat']();return _0x5357a4=[...new Set(_0x5357a4)],_0x5357a4;}['_getTranslationKeyForListStyle'](_0x304492){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x304492)||'default')['toUpperCase']()+'_LIST_'+_0x304492['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x40e6e8{['afterInit'](){const _0x29a76b=this['editor'];if(!_0x29a76b['plugins']['has']('MediaEmbedEditing'))return;const _0x476eb2=_0x29a76b['plugins']['get']('TrackChangesEditing'),_0x3c8926=_0x29a76b['locale'];_0x476eb2['enableCommand']('mediaEmbed'),_0x476eb2['descriptionFactory']['registerElementLabel']('media',_0x3d3e71=>At(_0x3c8926,'ELEMENT_MEDIA',_0x3d3e71));}}class me extends _0x40e6e8{['afterInit'](){const _0x5988d2=this['editor'];_0x5988d2['plugins']['has']('MentionEditing')&&_0x5988d2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x40e6e8{['afterInit'](){const _0x1e5890=this['editor'];if(!_0x1e5890['plugins']['has']('MergeFieldsEditing'))return;const _0x37cf66=_0x1e5890['plugins']['get']('TrackChangesEditing'),_0x155665=_0x1e5890['locale'];_0x37cf66['enableCommand']('insertMergeField'),_0x37cf66['enableCommand']('insertMergeFieldBlock'),_0x37cf66['enableCommand']('insertMergeFieldImage'),_0x37cf66['descriptionFactory']['registerElementLabel']('mergeField',_0x5c9c19=>At(_0x155665,'ELEMENT_MERGE_FIELD',_0x5c9c19)),_0x37cf66['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x468ac2=>At(_0x155665,'ELEMENT_MERGE_FIELD',_0x468ac2)),_0x37cf66['descriptionFactory']['registerDescriptionCallback'](_0x211c1b=>{if('insertion'!=_0x211c1b['type']&&'deletion'!=_0x211c1b['type'])return;const _0x3891f2=_0x211c1b['getContainedElement']();if(null==_0x3891f2)return;const _0x4f1f47=_0x1e5890['plugins']['get']('MergeFieldsEditing');let _0x21dc2f;switch(_0x4f1f47['getMergeFieldType'](_0x3891f2)){case null:return;case'image':{const _0x263e49=_0x4f1f47['unwrapAffixes'](_0x3891f2['getAttribute']('src'));_0x21dc2f=_0x4f1f47['getLabel'](_0x263e49)||_0x263e49;break;}default:{const _0x23b20c=_0x3891f2['getAttribute']('id');_0x21dc2f=_0x4f1f47['getLabel'](_0x23b20c)||_0x23b20c;break;}}return'insertion'==_0x211c1b['type']?{'type':'insertion','content':At(_0x155665,'*Insert:*\x20%0','\x22'+_0x21dc2f+'\x22\x20'+At(_0x155665,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x155665,'*Remove:*\x20%0','\x22'+_0x21dc2f+'\x22\x20'+At(_0x155665,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x40e6e8{['afterInit'](){const _0x27479e=this['editor'],_0x4c510d=_0x27479e['plugins']['get']('TrackChangesEditing');_0x27479e['plugins']['has']('MultiLevelList')&&(_0x4c510d['enableDefaultAttributesIntegration']('multiLevelList'),_0x4c510d['descriptionFactory']['registerDescriptionCallback'](_0x2bbc1e=>this['handleDescriptions'](_0x2bbc1e)));}['handleDescriptions'](_0x18767b){const _0x342fa4=this['editor']['locale'],{data:_0x34ce73}=_0x18767b,_0x592b41={'type':'format','content':''};if(_0x34ce73&&'listMarkerStyle'==_0x34ce73['key']){if(!_0x34ce73['oldValue'])return{'type':'format','content':At(_0x342fa4,'*Set\x20format:*\x20%0',At(_0x342fa4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34ce73['newValue']+')'};if(!_0x34ce73['newValue']){let _0x565aa9=_0x18767b['head'];for(;_0x565aa9;){if(_0x565aa9['data']&&'listType'==_0x565aa9['data']['key']&&_0x565aa9['data']['newValue'])return _0x592b41;_0x565aa9=_0x565aa9['next'];}return{'type':'format','content':At(_0x342fa4,'*Remove\x20format:*\x20%0',At(_0x342fa4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x34ce73['oldValue']+')'};}}}}class _e extends _0x40e6e8{['afterInit'](){const _0xa2fd01=this['editor'];if(!_0xa2fd01['plugins']['has']('PageBreakEditing'))return;_0xa2fd01['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5779b0=_0xa2fd01['plugins']['get']('TrackChangesEditing'),_0x3375e6=_0xa2fd01['locale'];_0x5779b0['descriptionFactory']['registerElementLabel']('pageBreak',_0x5beb85=>At(_0x3375e6,'ELEMENT_PAGE_BREAK',_0x5beb85));}}class pe extends _0x40e6e8{['afterInit'](){const _0x11c483=this['editor'];if(!_0x11c483['plugins']['has']('Paragraph'))return;const _0x4fe396=_0x11c483['locale'],_0x1dcdc1=_0x11c483['plugins']['get']('TrackChangesEditing');_0x1dcdc1['descriptionFactory']['registerElementLabel']('paragraph',_0x577052=>At(_0x4fe396,'ELEMENT_PARAGRAPH',_0x577052)),_0x1dcdc1['enableDefaultAttributesIntegration']('paragraph'),_0x1dcdc1['enableCommand']('insertParagraph');const _0x39830c=_0x1dcdc1['descriptionFactory'];_0x39830c['registerDescriptionCallback'](_0x1290ef=>{if('insertion'!==_0x1290ef['type'])return;const {start:_0x38f4dd,end:_0x50657e}=_0x1290ef['getFirstRange']();if(!_0x38f4dd['isTouching'](_0x50657e)||!_0x38f4dd['nodeAfter'])return;const _0x251614=_0x11c483['model']['schema'],_0x4926e6=_0x38f4dd['nodeAfter'];return _0x251614['isBlock'](_0x4926e6)&&!_0x251614['isLimit'](_0x4926e6)&&_0x251614['checkChild'](_0x4926e6,'$text')?{'type':'insertion','content':At(_0x4fe396,'*Insert:*\x20%0',_0x39830c['getItemLabel'](_0x4926e6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2419c5=this['editor'],_0x2e5145=_0x2419c5['locale'];_0x2419c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c614f=>{if('formatBlock'!=_0x5c614f['type'])return;const {data:_0xc0cdb3}=_0x5c614f;return _0xc0cdb3&&'paragraph'==_0xc0cdb3['commandName']?{'type':'format','content':At(_0x2e5145,'*Change\x20to:*\x20%0',At(_0x2e5145,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x40e6e8{['afterInit'](){const _0x1ff369=this['editor'];_0x1ff369['commands']['get']('replaceSource')&&_0x1ff369['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x40e6e8{['afterInit'](){const _0x1fd3d6=this['editor'];if(!_0x1fd3d6['plugins']['has']('RemoveFormatEditing'))return;_0x1fd3d6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x592aa6=this['editor'];_0x592aa6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14231c=>{if('formatBlock'!=_0x14231c['type']&&'formatInline'!=_0x14231c['type'])return;const {data:_0x43427b}=_0x14231c;return _0x43427b&&'removeFormat'==_0x43427b['commandName']?{'type':'format','content':At(_0x592aa6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x40e6e8{['afterInit'](){const _0x5dd759=this['editor'];if(!_0x5dd759['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x75db78=_0x5dd759['plugins']['get']('TrackChangesEditing');_0x75db78['enableCommand']('goToPreviousRestrictedEditingException'),_0x75db78['enableCommand']('goToNextRestrictedEditingException');const _0x29a3d2=_0x5dd759['plugins']['get']('RestrictedEditingModeEditing');_0x29a3d2['enableCommand']('trackChanges'),_0x29a3d2['enableCommand']('acceptSuggestion'),_0x29a3d2['enableCommand']('discardSuggestion'),_0x29a3d2['enableCommand']('acceptAllSuggestions'),_0x29a3d2['enableCommand']('discardAllSuggestions'),_0x29a3d2['enableCommand']('acceptSelectedSuggestions'),_0x29a3d2['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x40e6e8{['afterInit'](){const _0x33fcbe=this['editor'];if(!_0x33fcbe['plugins']['has']('ShiftEnter'))return;const _0x11c5c4=_0x33fcbe['plugins']['get']('TrackChangesEditing');_0x11c5c4['enableCommand']('shiftEnter'),_0x11c5c4['descriptionFactory']['registerElementLabel']('softBreak',_0x11aa0b=>At(_0x33fcbe['locale'],'ELEMENT_LINE_BREAK',_0x11aa0b));}}function ke(_0x5dfc2a,_0x416030,_0x5bd2d4){const _0x501869=[];for(const _0x289c92 of _0x416030['getItems']())_0x289c92['hasAttribute'](_0x5dfc2a)&&_0x501869['push'](_0x5bd2d4['createRangeOn'](_0x289c92));return _0x501869;}class Ce extends _0x40e6e8{['afterInit'](){const _0x132471=this['editor'],_0x9dc98c=_0x132471['plugins']['get']('TrackChangesEditing');_0x132471['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x9dc98c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x38e839=this['editor'],_0x2da147=_0x38e839['model'],_0x361a49=_0x38e839['locale'],_0x42bcce=_0x38e839['plugins']['get']('TrackChangesEditing'),_0x4ba79f='restrictedEditingException',_0x2c2e4a=_0x38e839['commands']['get'](_0x4ba79f);_0x42bcce['enableCommand'](_0x4ba79f,(_0x14f558,_0x521897={})=>{const _0x35bd46=_0x2da147['document']['selection'];if(_0x35bd46['isCollapsed'])return void _0x14f558(_0x521897);const _0x104698=void 0x0!==_0x521897['forceValue']?_0x521897['forceValue']:!_0x2c2e4a['value'];_0x2da147['change'](()=>{const _0x2a4135=Array['from'](_0x35bd46['getRanges']());for(const _0x25fd66 of _0x2a4135){const _0x5666f9=_0x104698?[_0x25fd66]:ke(_0x4ba79f,_0x25fd66,_0x2da147);for(const _0x5103da of _0x5666f9)_0x42bcce['markInlineFormat'](_0x5103da,{'commandName':_0x4ba79f,'commandParams':[{'forceValue':_0x104698}]});}});}),_0x42bcce['descriptionFactory']['registerDescriptionCallback'](_0x521654=>{if('formatBlock'!=_0x521654['type']&&'formatInline'!=_0x521654['type'])return;const {data:_0x1c44c8}=_0x521654;return _0x1c44c8&&_0x1c44c8['commandName']==_0x4ba79f?_0x1c44c8['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x361a49,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x361a49,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x55ed23=this['editor'],_0x473aa8=_0x55ed23['locale'],_0x3ce7bb=_0x55ed23['plugins']['get']('TrackChangesEditing'),_0x439870='restrictedEditingExceptionBlock',_0x35de72=this['editor']['commands']['get'](_0x439870);_0x3ce7bb['enableCommand'](_0x439870,(_0x936648,_0x4839ed={})=>{const _0xb78a44=this['editor']['model']['document']['selection'],_0x373b2b=_0x4839ed&&void 0x0!==_0x4839ed['forceValue']?_0x4839ed['forceValue']:!_0x35de72['value'];let _0x51dea9=[];if(_0x373b2b){const _0x13c48f=Array['from'](_0xb78a44['getSelectedBlocks']())['filter'](_0x17beda=>function(_0x45eabc){return!!_0x45eabc['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x17beda)||function(_0x3dbe9e,_0x401598){const _0x1f6606=_0x401598['createContext'](_0x3dbe9e['parent']);if(!_0x401598['checkChild'](_0x1f6606,'restrictedEditingException'))return!0x1;if(!_0x401598['checkChild'](_0x1f6606['push']('restrictedEditingException'),_0x3dbe9e))return!0x1;return!0x0;}(_0x17beda,this['editor']['model']['schema']));_0x51dea9=Tt(_0x13c48f,_0x55ed23['model']);}else{const _0x5396c1=Array['from'](_0xb78a44['getSelectedBlocks']())['map'](_0x6fb6c3=>function(_0x2d4ff6){let _0x581d3c=_0x2d4ff6;for(;_0x581d3c['parent'];){if('restrictedEditingException'==_0x581d3c['parent']['name'])return _0x581d3c;_0x581d3c=_0x581d3c['parent'];}return null;}(_0x6fb6c3))['filter'](_0x2423b5=>!!_0x2423b5);_0x51dea9=Tt(_0x5396c1,_0x55ed23['model']);}_0x55ed23['model']['change'](()=>{for(const _0x2f167f of _0x51dea9)_0x3ce7bb['markBlockFormat'](_0x2f167f,{'commandName':_0x439870,'commandParams':[{'forceValue':_0x373b2b}]});});}),_0x3ce7bb['descriptionFactory']['registerDescriptionCallback'](_0x1b5508=>{const {data:_0x1b593e}=_0x1b5508;if(_0x1b593e&&_0x1b593e['commandName']==_0x439870)return _0x1b593e['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x473aa8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x473aa8,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x40e6e8{['afterInit'](){const _0x2aafdd=this['editor'];if(!_0x2aafdd['plugins']['has']('Style')||!_0x2aafdd['plugins']['has']('DataSchema'))return;const _0x566368=_0x2aafdd['plugins']['get']('TrackChangesEditing'),_0xd769b8=_0x2aafdd['locale'],_0x499816=_0x2aafdd['config']['get']('style')||{},_0x1da012=_0x2aafdd['plugins']['get']('GeneralHtmlSupport'),_0xa55c0d=_0x2aafdd['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2aafdd['plugins']['get']('DataSchema'),_0x499816['definitions']);_0x566368['enableDefaultAttributesIntegration']('style');const _0x5b71ac=new Set();for(const _0x553966 of _0xa55c0d['block']){const _0x956f87=_0x1da012['getGhsAttributeNameForElement'](_0x553966['element']);_0x5b71ac['add'](_0x956f87);}const _0x1bb399=new Set();for(const _0x266dae of _0xa55c0d['inline']){const _0x76f54a=_0x1da012['getGhsAttributeNameForElement'](_0x266dae['element']);_0x1bb399['add'](_0x76f54a);for(const _0x2595c5 of _0x266dae['ghsAttributes'])_0x1bb399['add'](_0x2595c5);}for(const _0x1a8b0a of _0x5b71ac)_0x566368['descriptionFactory']['registerAttributeLabel'](_0x1a8b0a,At(_0xd769b8,'FORMAT_STYLE'));for(const _0x1d96cd of _0x1bb399)_0x566368['descriptionFactory']['registerAttributeLabel'](_0x1d96cd,At(_0xd769b8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e6429=this['editor'],_0xa9a983=_0x1e6429['locale'];_0x1e6429['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44753a=>{if('formatBlock'!=_0x44753a['type']&&'formatInline'!=_0x44753a['type'])return;const {data:_0x2feebd}=_0x44753a;return _0x2feebd&&'style'===_0x2feebd['commandName']?_0x2feebd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa9a983,'*Set\x20format:*\x20%0',_0x2feebd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0xa9a983,'*Remove\x20format:*\x20%0',_0x2feebd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x40e6e8{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x699793){super(_0x699793),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2a7a22=this['editor'],_0x826edb=_0x2a7a22['model']['document']['selection'];if(!_0x2a7a22['plugins']['has']('TableEditing'))return;const _0x3ed837=_0x2a7a22['locale'],_0x39c595=_0x2a7a22['plugins']['get']('TrackChangesEditing'),_0x391f6b=_0x2a7a22['plugins']['get']('TableUtils');_0x39c595['descriptionFactory']['registerElementLabel']('table',_0x262797=>At(_0x3ed837,'ELEMENT_TABLE',_0x262797)),this['_setupColumnsRowsFixing'](),_0x39c595['enableCommand']('insertTable'),_0x39c595['enableCommand']('selectTableRow'),_0x39c595['enableCommand']('selectTableColumn');for(const _0x301c1f of['insertTableRowAbove','insertTableRowBelow']){const _0x484ef9=_0x2a7a22['commands']['get'](_0x301c1f);_0x39c595['enableCommand'](_0x301c1f,_0x544dec=>{_0x2a7a22['model']['change'](_0x252ab5=>{_0x544dec();const _0x5ba37b='above'===_0x484ef9['order'],_0x5b5902=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x42fd3a=_0x391f6b['getRowIndexes'](_0x5b5902),_0x3d9ea6=_0x5ba37b?_0x42fd3a['first']-0x1:_0x42fd3a['last']+0x1,_0x26ff11=_0x5b5902[0x0]['findAncestor']('table'),_0x59e053=_0x391f6b['createTableWalker'](_0x26ff11,{'startRow':_0x3d9ea6,'endRow':_0x3d9ea6}),_0x2416a3=Array['from'](_0x59e053)['map'](_0x560898=>_0x252ab5['createRangeOn'](_0x560898['cell']));_0x39c595['markMultiRangeInsertion'](_0x2416a3,'tableRow');});});}for(const _0x3c8575 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3bf448=_0x2a7a22['commands']['get'](_0x3c8575);_0x39c595['enableCommand'](_0x3c8575,_0x320a21=>{_0x2a7a22['model']['change'](_0x80bb3b=>{_0x320a21();const _0x45a881='left'===_0x3bf448['order'],_0x3752db=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x25df9a=_0x391f6b['getColumnIndexes'](_0x3752db),_0x175cdc=_0x45a881?_0x25df9a['first']-0x1:_0x25df9a['last']+0x1,_0x390993=_0x3752db[0x0]['findAncestor']('table'),_0x522edc=_0x391f6b['createTableWalker'](_0x390993,{'startRow':0x0,'column':_0x175cdc,'includeAllSlots':!0x1}),_0xcf3709=Array['from'](_0x522edc)['map'](_0x2e2f1e=>_0x80bb3b['createRangeOn'](_0x2e2f1e['cell']));_0x39c595['markMultiRangeInsertion'](_0xcf3709,'tableColumn');});});}for(const _0x340b1d of['removeTableRow','removeTableColumn']){const _0x6ab1f3=_0x340b1d['substr'](0xb),_0x5c7eb8=_0x6ab1f3['toLowerCase'](),_0x616ece=_0x5c7eb8['substr'](0x0,0x3)+'span',_0x45baf5='table'+_0x6ab1f3,_0x51a10c='min'+_0x6ab1f3,_0x1a920b='max'+_0x6ab1f3;_0x39c595['enableCommand'](_0x340b1d,()=>{_0x2a7a22['model']['change'](_0x545dbe=>{const _0x11ce65=_0x391f6b['getSelectionAffectedTableCells'](_0x826edb),_0x32df70=_0x11ce65[0x0]['findAncestor']('table');let _0x5b6ed7;if('removeTableRow'==_0x340b1d){const _0x5827da=_0x391f6b['getRowIndexes'](_0x11ce65);_0x5b6ed7={'startRow':_0x5827da['first'],'endRow':_0x5827da['last'],'includeAllSlots':!0x0};}else{const _0xe372da=_0x391f6b['getColumnIndexes'](_0x11ce65);_0x5b6ed7={'startColumn':_0xe372da['first'],'endColumn':_0xe372da['last'],'includeAllSlots':!0x0};}const _0xc4aa7b=_0x391f6b['createTableWalker'](_0x32df70,_0x5b6ed7),_0x2021a4=Array['from'](_0xc4aa7b)['map'](({cell:_0x2eb57f})=>_0x2eb57f),_0x93c4dd=Re(_0x2021a4['filter'](_0x507950=>_0x507950['hasAttribute'](_0x616ece))),_0x19b9fd=Re(_0x2021a4['filter'](_0x1fbc62=>!_0x1fbc62['hasAttribute'](_0x616ece)))['map'](_0x2e4927=>_0x545dbe['createRangeOn'](_0x2e4927)),_0x4c6858=_0x39c595['markMultiRangeDeletion'](_0x19b9fd,_0x45baf5);if(_0x4c6858&&('tableRow'==_0x4c6858['subType']||'tableColumn'==_0x4c6858['subType'])){const _0x24d442=this['_getSuggestionCoords'](_0x4c6858);for(const _0x3ab7bb of _0x93c4dd){const _0xc10a00=_0x545dbe['createRangeOn'](_0x3ab7bb),_0x3ae476=_0x391f6b['getCellLocation'](_0x3ab7bb),_0x1d4dc0=_0x3ab7bb['getAttribute'](_0x616ece)-0x1,_0x54caae=_0x24d442[_0x51a10c],_0x3b6d03=_0x24d442[_0x1a920b];_0x54caae<=_0x3ae476[_0x5c7eb8]&&_0x3ae476[_0x5c7eb8]+_0x1d4dc0<=_0x3b6d03&&_0x4c6858['addRange'](_0xc10a00);}}});});}function _0x30b844(_0x31dcd0){const _0x2f2e1=Array['from'](_0x826edb['getRanges']())['map'](_0x5cff06=>_0x2db68d['fromRange'](_0x5cff06));_0x2a7a22['model']['change'](_0x150327=>{const _0x4d949c=_0x150327['batch'];_0x31dcd0=_0x31dcd0['filter'](_0x33b1bc=>'$graveyard'!=_0x33b1bc['root']['rootName']),_0x150327['setSelection'](_0x31dcd0),_0x2a7a22['commands']['get']('removeTableRow')['refresh'](),_0x2a7a22['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2a7a22['model']['enqueueChange'](()=>{_0x2a7a22['model']['enqueueChange'](_0x4d949c,_0x55156b=>{const _0x30f97d=_0x2f2e1['filter'](_0x5da239=>'$graveyard'!=_0x5da239['root']['rootName']);_0x30f97d['length']>0x0&&_0x55156b['setSelection'](_0x30f97d);for(const _0x18e3e9 of _0x2f2e1)_0x18e3e9['detach']();});});});}function _0xf03149(_0x2005eb){_0x2a7a22['model']['change'](_0x23dc91=>{const _0x4a97b5=Array['from'](_0x826edb['getRanges']())['map'](_0x2f0592=>_0x2db68d['fromRange'](_0x2f0592)),_0x319581=[];for(const _0x57049f of _0x2005eb)for(const _0x414193 of _0x57049f['getItems']({'shallow':!0x0}))_0x319581['push'](_0x414193);for(const _0x36ce06 of _0x319581)'$graveyard'!=_0x36ce06['root']['rootName']&&(_0x23dc91['setSelection'](_0x23dc91['createPositionAt'](_0x36ce06,0x0)),_0x2a7a22['commands']['get']('removeTableColumn')['refresh'](),_0x2a7a22['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xb9e81f=_0x4a97b5['filter'](_0x3aca6a=>'$graveyard'!=_0x3aca6a['root']['rootName']);_0xb9e81f['length']>0x0&&_0x23dc91['setSelection'](_0xb9e81f);for(const _0x4a4e07 of _0x4a97b5)_0x4a4e07['detach']();});}function _0x43e3bf(_0xc171b0,_0x58df72){return _0x58df72['every'](_0x4ce92b=>_0xc171b0['some'](_0x576bf9=>_0x576bf9['end']['isEqual'](_0x4ce92b['start'])||_0x4ce92b['end']['isEqual'](_0x576bf9['start'])));}function _0x4241f4(_0x53c971,_0x582f63){return!_0x53c971['some'](_0x163adb=>_0x582f63['some'](_0x3460bd=>_0x163adb['isIntersecting'](_0x3460bd)))&&_0x53c971['some'](_0x154218=>_0x582f63['some'](_0xa0eab6=>_0x154218['end']['isTouching'](_0xa0eab6['start'])));}_0x39c595['descriptionFactory']['registerDescriptionCallback'](_0x2d56e6=>{if('insertion'!=_0x2d56e6['type']&&'deletion'!=_0x2d56e6['type'])return;const _0x91bf57=_0x2d56e6['getContainedElement']();if(null!=_0x91bf57&&_0x91bf57['is']('element','table')){if('insertion'==_0x2d56e6['type']){const _0x403f64=_0x2d56e6['getItems']()['filter'](_0x4b6b7f=>_0x4b6b7f['is']('$textProxy'))['map'](_0x4fc015=>_0x4fc015['data']);if(_0x403f64['length'])return{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x403f64['join']('\x20')+'\x22'))};}if('deletion'==_0x2d56e6['type']){const _0x2c2ddd=_0x2d56e6['getItems']()['filter'](_0x3702c4=>_0x3702c4['is']('$textProxy'))['map'](_0x40f57e=>_0x40f57e['data']);if(_0x2c2ddd['length'])return{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2c2ddd['join']('\x20')+'\x22'))};}}}),_0x39c595['descriptionFactory']['registerDescriptionCallback'](_0x4c1471=>{if('tableRow'==_0x4c1471['subType']){const _0x507a70=_0x4c1471['getItems']()['filter'](_0x30c638=>_0x30c638['is']('$textProxy'))['map'](_0x5535bc=>_0x5535bc['data']),_0x251bee=this['_getSuggestionCoords'](_0x4c1471),_0x3584db=_0x251bee['maxRow']-_0x251bee['minRow']+0x1;if('insertion'==_0x4c1471['type'])return _0x507a70['length']?{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3584db,'\x22'+_0x507a70['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW',_0x3584db))};if('deletion'==_0x4c1471['type'])return _0x507a70['length']?{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3584db,'\x22'+_0x507a70['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_ROW',_0x3584db))};}if('tableColumn'==_0x4c1471['subType']){const _0x149d36=_0x4c1471['getItems']()['filter'](_0xf28f02=>_0xf28f02['is']('$textProxy'))['map'](_0x7668e3=>_0x7668e3['data']),_0x178a7c=this['_getSuggestionCoords'](_0x4c1471),_0x2d74ad=_0x178a7c['maxColumn']-_0x178a7c['minColumn']+0x1;if('insertion'==_0x4c1471['type'])return _0x149d36['length']?{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d74ad,'\x22'+_0x149d36['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x3ed837,'*Insert:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN',_0x2d74ad))};if('deletion'==_0x4c1471['type'])return _0x149d36['length']?{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d74ad,'\x22'+_0x149d36['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x3ed837,'*Remove:*\x20%0',At(_0x3ed837,'ELEMENT_TABLE_COLUMN',_0x2d74ad))};}}),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30b844),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30b844),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xf03149),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xf03149),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x43e3bf),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x43e3bf),_0x39c595['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4241f4),_0x39c595['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4241f4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1ef64a=this['editor'],_0x2850ee=_0x1ef64a['model']['document']['selection'];return(_0x5a0521,_0x2db728)=>{_0x1ef64a['model']['change'](_0x5825c3=>{const {commandName:_0x1965c7,commandParams:_0x57fb26}=_0x2db728;let _0x55d258=_0x5a0521[0x0]['end']['nodeBefore'];_0x57fb26&&_0x57fb26[0x0]&&!0x1===_0x57fb26[0x0]['forceValue']&&(_0x55d258=_0x5a0521[0x0]['start']['nodeAfter']);const _0x29fcce=_0x5825c3['createRangeIn'](_0x55d258);if('$graveyard'==_0x29fcce['root']['rootName'])return;const _0x23bca1=Array['from'](_0x2850ee['getRanges']())['map'](_0x3126d7=>_0x2db68d['fromRange'](_0x3126d7));_0x5825c3['setSelection'](_0x29fcce),_0x1ef64a['commands']['get'](_0x1965c7)['refresh'](),_0x57fb26['push']({'forceDefaultExecution':!0x0}),_0x1ef64a['execute'](_0x1965c7,..._0x57fb26);const _0x13ccf0=_0x23bca1['filter'](_0x3084a2=>'$graveyard'!=_0x3084a2['root']['rootName']);_0x13ccf0['length']>0x0&&_0x5825c3['setSelection'](_0x13ccf0);for(const _0x3c2b74 of _0x23bca1)_0x3c2b74['detach']();});};}['_getCoordsForCells'](_0x1449fa){const _0x557f6d=this['editor']['plugins']['get']('TableUtils');let _0x21ec9d=Number['MAX_SAFE_INTEGER'],_0x3225cb=Number['MIN_SAFE_INTEGER'],_0x4d9b76=Number['MAX_SAFE_INTEGER'],_0x14cb12=Number['MIN_SAFE_INTEGER'];for(const _0x401588 of _0x1449fa){if('$graveyard'==_0x401588['root']['rootName'])continue;const {row:_0xb7ecdb,column:_0x16764b}=_0x557f6d['getCellLocation'](_0x401588),_0x5bbb8f=_0x401588['hasAttribute']('rowspan')?_0x401588['getAttribute']('rowspan')-0x1:0x0,_0x4c9763=_0x401588['hasAttribute']('colspan')?_0x401588['getAttribute']('colspan')-0x1:0x0;_0x21ec9d=_0xb7ecdb<_0x21ec9d?_0xb7ecdb:_0x21ec9d,_0x3225cb=_0xb7ecdb+_0x5bbb8f>_0x3225cb?_0xb7ecdb+_0x5bbb8f:_0x3225cb,_0x4d9b76=_0x16764b<_0x4d9b76?_0x16764b:_0x4d9b76,_0x14cb12=_0x16764b+_0x4c9763>_0x14cb12?_0x16764b+_0x4c9763:_0x14cb12;}return{'minRow':_0x21ec9d,'maxRow':_0x3225cb,'minColumn':_0x4d9b76,'maxColumn':_0x14cb12};}['_setupColumnsRowsFixing'](){const _0x2d59a2=this['editor'],_0x29e2b0=_0x2d59a2['plugins']['get']('TrackChangesEditing'),_0x3bb7e1=_0x2d59a2['plugins']['get']('TableUtils');_0x2d59a2['model']['document']['on']('change:data',()=>{const _0x19fac1=Array['from'](_0x2d59a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd3b445,data:_0x1fc06b}of _0x19fac1){const {group:_0x21a702,id:_0x316f81,subType:_0x58dbb3}=_0x4e67eb(_0xd3b445);if('suggestion'!=_0x21a702)continue;if(null!=_0x1fc06b['oldRange'])continue;const _0x191516=_0x29e2b0['getSuggestion'](_0x316f81);this['_tablePostFixingSubtypes']['includes'](_0x58dbb3)&&this['_tableSuggestions']['add'](_0x191516);}},{'priority':'low'});const _0x178407=(_0x4f6442,_0x10919e)=>{let _0x3e7b88=!0x1;const _0x636ad1=_0x10919e['createRangeOn'](_0x4f6442),_0x21233f=_0x4f6442['findAncestor']('table'),_0x241f37=_0x3bb7e1['getCellLocation'](_0x4f6442);for(const _0x45790f of this['_tableSuggestions']){const _0x29290e=_0x45790f['subType'],_0xbb4372=_0x29290e['startsWith']('tablePaste'),_0x1a3764=_0x29290e['substr'](_0xbb4372?0xa:0x5),_0x56d107=_0x1a3764['toLowerCase'](),_0x29f266=_0x56d107['substr'](0x0,0x3)+'span',_0xd33358='min'+_0x1a3764,_0xd0c79d='max'+_0x1a3764;if(!_0x45790f['isInContent'])continue;if(_0x21233f!=_0x45790f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x45790f['isIntersectingWithRange'](_0x636ad1))continue;const _0x59f617=_0x4f6442['hasAttribute'](_0x29f266)?_0x4f6442['getAttribute'](_0x29f266)-0x1:0x0,_0x37b2ce=this['_getSuggestionCoords'](_0x45790f),_0x4d5972=_0x37b2ce[_0xd33358],_0x41bf98=_0x37b2ce[_0xd0c79d];_0x4d5972<=_0x241f37[_0x56d107]&&_0x241f37[_0x56d107]+_0x59f617<=_0x41bf98&&(_0x45790f['addRange'](_0x636ad1),_0x3e7b88=!0x0);}return _0x3e7b88;};_0x2d59a2['model']['document']['registerPostFixer'](_0x278755=>{let _0x35af91=!0x1;for(const _0x493cae of _0x2d59a2['model']['document']['differ']['getChanges']())if('insert'==_0x493cae['type']){if('tableRow'==_0x493cae['name']){for(const _0xfe151f of _0x493cae['position']['nodeAfter']['getChildren']())_0x35af91=_0x35af91||_0x178407(_0xfe151f,_0x278755);}else'tableCell'==_0x493cae['name']&&(_0x35af91=_0x35af91||_0x178407(_0x493cae['position']['nodeAfter'],_0x278755));}return _0x35af91;});}['_getSuggestionCoords'](_0x30030b){return this['_getCoordsForCells'](_0x30030b['getRanges']()['map'](_0xa87cf3=>_0xa87cf3['start']['nodeAfter']));}}function Re(_0x41d2b1){return Array['from'](new Set(_0x41d2b1)['values']());}class Se extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x5a1c44=this['editor'],_0x433a0f=_0x5a1c44['model']['document']['selection'],_0x1a7ef3=_0x5a1c44['locale'];if(!_0x5a1c44['plugins']['has']('TableEditing'))return;const _0x21786b=_0x5a1c44['plugins']['get']('TrackChangesEditing'),_0x47f8e2=_0x5a1c44['plugins']['get']('TableUtils'),_0x19d7ef=_0x5a1c44['plugins']['get'](Ne);_0x19d7ef['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21786b['enableCommand']('mergeTableCells',()=>{const _0x5973db=_0x47f8e2['getSelectionAffectedTableCells'](_0x5a1c44['model']['document']['selection']);_0x5a1c44['model']['change'](()=>{_0x21786b['markMultiRangeBlockFormat'](_0x5973db,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5a1c44['commands']['get']('mergeTableCells')['on']('execute',(_0x35ba77,_0x2bed9c)=>{_0x5a1c44['commands']['get']('trackChanges')['value']&&(_0x2bed9c['length']>0x0&&_0x2bed9c[_0x2bed9c['length']-0x1]&&_0x2bed9c[_0x2bed9c['length']-0x1]['forceDefaultExecution']||_0x21786b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x35ba77['stop']());},{'priority':'highest'});for(const _0x4ca425 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x330947=_0x5a1c44['commands']['get'](_0x4ca425);_0x21786b['enableCommand'](_0x4ca425,()=>{const _0x488f4c=_0x5a1c44['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4d3f70=>_0x4d3f70['is']('element','tableCell')),_0x1bd47b=_0x330947['value'];_0x5a1c44['model']['change'](()=>{_0x21786b['markMultiRangeBlockFormat']([_0x488f4c,_0x1bd47b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x32f070 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52e942=_0x5a1c44['commands']['get'](_0x32f070);_0x21786b['enableCommand'](_0x32f070,()=>{const _0x8d4cc5=_0x47f8e2['getSelectionAffectedTableCells'](_0x5a1c44['model']['document']['selection'])[0x0],_0x5eb692=_0x8d4cc5['findAncestor']('table'),{column:_0x53dfc1,row:_0x5b1bc4}=_0x47f8e2['getCellLocation'](_0x8d4cc5);let _0x2a9c75=[];if('horizontally'==_0x52e942['direction']){const _0x2b3daa=_0x47f8e2['createTableWalker'](_0x5eb692,{'startRow':_0x5b1bc4,'endRow':_0x5b1bc4,'includeAllSlots':!0x0});_0x2a9c75=Array['from'](_0x2b3daa)['map'](_0x207349=>_0x207349['cell']);}else{const _0x4868c4=_0x47f8e2['createTableWalker'](_0x5eb692,{'column':_0x53dfc1,'includeAllSlots':!0x0});_0x2a9c75=Array['from'](_0x4868c4)['map'](_0x4fffec=>_0x4fffec['cell']);}_0x5a1c44['model']['change'](_0x2e03c3=>{_0x21786b['markBlockFormat'](_0x2e03c3['createRangeOn'](_0x8d4cc5),{'commandName':_0x32f070,'commandParams':[]},_0x2a9c75,_0x32f070);});});}_0x21786b['descriptionFactory']['registerDescriptionCallback'](_0x2a6559=>{if('formatBlock'!=_0x2a6559['type']&&'formatInline'!=_0x2a6559['type'])return;const {data:_0x1238d5}=_0x2a6559;return _0x1238d5&&'mergeTableCells'==_0x1238d5['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Merge\x20cells*')}:void 0x0;}),_0x21786b['descriptionFactory']['registerDescriptionCallback'](_0x1aa1b7=>{if('formatBlock'!=_0x1aa1b7['type']&&'formatInline'!=_0x1aa1b7['type'])return;const {data:_0x37a887}=_0x1aa1b7;return _0x37a887?'splitTableCellVertically'==_0x37a887['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x37a887['commandName']?{'type':'format','content':At(_0x1a7ef3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1532c3=_0x19d7ef['_acceptFormatSuggestionCallbackFactory']();for(const _0x1309cf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1309cf,'accept',_0x1532c3);for(const _0x54bf61 of['splitTableCellVertically','splitTableCellHorizontally'])_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54bf61,'accept',_0x1532c3);_0x21786b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x46c8e8=>{_0x5a1c44['model']['change'](_0x746998=>{const _0x21b85c=Array['from'](_0x433a0f['getRanges']())['map'](_0x392e76=>_0x2db68d['fromRange'](_0x392e76));_0x746998['setSelection'](_0x46c8e8),_0x5a1c44['commands']['get']('mergeTableCells')['refresh'](),_0x5a1c44['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56bde3=_0x21b85c['filter'](_0x380fff=>'$graveyard'!=_0x380fff['root']['rootName']);_0x56bde3['length']>0x0&&_0x746998['setSelection'](_0x56bde3);for(const _0xd2d81a of _0x21b85c)_0xd2d81a['detach']();});});for(const _0x4673d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x822c40=_0x5a1c44['commands']['get'](_0x4673d0);_0x822c40['on']('set:isEnabled',(_0x1e767e,_0x5a1d30,_0x1cd0c0)=>{if(_0x1cd0c0){const _0x25be1a=_0x5a1c44['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bb307=>_0x5bb307['is']('element','tableCell'));this['_areMergableCells'](_0x822c40['value'],_0x25be1a)||(_0x1e767e['return']=!0x1,_0x1e767e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5a96ee=this['editor']['commands']['get']('mergeTableCells'),_0x5b0d0c=this['editor']['plugins']['get']('TableUtils');if(!_0x5a96ee['isEnabled'])return!0x1;const _0x378357=_0x5b0d0c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2faa94 of _0x378357)for(const _0x439e5c of _0x378357)if(_0x2faa94!=_0x439e5c&&!this['_areMergableCells'](_0x2faa94,_0x439e5c))return!0x1;return!0x0;}['_areMergableCells'](_0x49d1e1,_0x763cbf){const _0x3601f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe04523=this['editor']['model']['createRangeOn'](_0x49d1e1),_0x585aa8=this['editor']['model']['createRangeOn'](_0x763cbf),_0x51da0f=new Set(),_0x3f25f7=new Set();for(const _0x7731e of _0x3601f0['getSuggestions']())if(('insertion'==_0x7731e['type']||'deletion'==_0x7731e['type']||'mergeTableCells'==_0x7731e['subType'])&&_0x7731e['isInContent']){for(const _0x1cbe1a of _0x7731e['getRanges']())_0x1cbe1a['containsRange'](_0xe04523,!0x0)&&_0x51da0f['add'](_0x7731e['type']+':'+_0x7731e['author']['id']),_0x1cbe1a['containsRange'](_0x585aa8,!0x0)&&_0x3f25f7['add'](_0x7731e['type']+':'+_0x7731e['author']['id']);}if(_0x51da0f['size']!=_0x3f25f7['size'])return!0x1;for(const _0x39a088 of _0x51da0f)if(!_0x3f25f7['has'](_0x39a088))return!0x1;return!0x0;}}class Me extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x5d1871=this['editor'];if(!_0x5d1871['plugins']['has']('TableEditing'))return;const _0x5fb6bd=_0x5d1871['locale'],_0x515d61=_0x5d1871['plugins']['get']('TrackChangesEditing');_0x515d61['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x515d61['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x515d61['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x5fb6bd,'FORMAT_HEADER_ROW')),_0x515d61['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x5fb6bd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12d87e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44d0a7=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x12d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x44d0a7),_0x12d87e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x44d0a7),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x8a124f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ef2ce=this['editor']['plugins']['get']('TableUtils');function _0x1b312f({showActiveMarker:_0x48066e=!0x0,setDataAttribute:_0x3a6616=!0x0}={}){return(_0x1dc92d,_0x1b3c49,_0x376fec)=>{const {type:_0x75d8fd,id:_0x15126b}=_0x4e67eb(_0x1b3c49['markerName']);if(!_0x8a124f['hasSuggestion'](_0x15126b))return;const _0x344ec3=_0x8a124f['getSuggestion'](_0x15126b),_0x1b4f5a=_0x344ec3['data'];if('formatBlock'!=_0x344ec3['type']||!_0x1b4f5a||'setTableColumnHeader'!=_0x1b4f5a['commandName'])return;if(_0x1b3c49['item'])return void _0x1dc92d['stop']();if(!_0x376fec['consumable']['consume'](_0x1b3c49['markerRange'],_0x1dc92d['name']))return;const _0x4619f4=_0x1b3c49['markerRange']['start']['nodeAfter'],_0x5af7c5=_0x1b3c49['markerRange']['end']['nodeBefore'],_0x196f2d=_0x4619f4['parent']['parent'],{column:_0x1c1dca}=_0x4ef2ce['getCellLocation'](_0x4619f4),{column:_0xa9195a}=_0x4ef2ce['getCellLocation'](_0x5af7c5);for(let _0x351127=_0x1c1dca;_0x351127<=_0xa9195a;_0x351127++){const _0x29a38f=_0x4ef2ce['createTableWalker'](_0x196f2d,{'column':_0x351127,'includeAllSlots':!0x1});for(const _0x5423fb of _0x29a38f){const _0x16fd0d=_0x5423fb['cell'],_0x584ec9=_0x376fec['mapper']['toViewElement'](_0x16fd0d);_0x376fec['writer']['addClass']('ck-suggestion-marker-'+_0x75d8fd,_0x584ec9),_0x3a6616&&_0x376fec['writer']['setAttribute']('data-suggestion',_0x15126b,_0x584ec9),_0x376fec['mapper']['bindElementToMarker'](_0x584ec9,_0x1b3c49['markerName']),_0x48066e&&(_0x8a124f['activeMarkers']['includes'](_0x1b3c49['markerName'])?_0x376fec['writer']['addClass']('ck-suggestion-marker--active',_0x584ec9):_0x376fec['writer']['removeClass']('ck-suggestion-marker--active',_0x584ec9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1b312f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x128f6e,_0x5b69ff,_0x475750)=>{_0x475750['options']['showSuggestionHighlights']&&_0x1b312f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x128f6e,_0x5b69ff,_0x475750);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3abbfe,_0x52a6d0,_0x2cb0cb)=>{const {type:_0x2d0011,id:_0x114782}=_0x4e67eb(_0x52a6d0['markerName']);if(!_0x8a124f['hasSuggestion'](_0x114782))return;const _0x3e1477=_0x8a124f['getSuggestion'](_0x114782),_0x2fb73b=_0x3e1477['data'];if('formatBlock'!=_0x3e1477['type']||!_0x2fb73b||'setTableColumnHeader'!=_0x2fb73b['commandName'])return;const _0xc9f0ae=_0x2cb0cb['mapper']['markerNameToElements'](_0x52a6d0['markerName']);if(_0xc9f0ae){for(const _0x593c01 of _0xc9f0ae)_0x2cb0cb['writer']['removeClass']('ck-suggestion-marker-'+_0x2d0011,_0x593c01),_0x2cb0cb['writer']['removeClass']('ck-suggestion-marker--active',_0x593c01),_0x2cb0cb['writer']['removeAttribute']('data-suggestion',_0x593c01),_0x2cb0cb['mapper']['unbindElementFromMarkerName'](_0x593c01,_0x52a6d0['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4e3cb8=this['editor'],_0x17a173=_0x4e3cb8['locale'];function _0x1f9080(_0x4fff0c){return{'type':'format','content':At(_0x17a173,'*Format:*\x20%0',_0x4fff0c)};}_0x4e3cb8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b28cb=>{if('formatBlock'!=_0x1b28cb['type'])return;const {data:_0x5c6a5a}=_0x1b28cb;if(_0x5c6a5a){if('setTableRowHeader'==_0x5c6a5a['commandName']){const _0x1cc3cd=_0x5c6a5a['commandParams'][0x0]['forceValue'];return _0x1f9080(At(_0x17a173,_0x1cc3cd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5c6a5a['commandName']){const _0x5330db=_0x5c6a5a['commandParams'][0x0]['forceValue'];return _0x1f9080(At(_0x17a173,_0x5330db?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x1a1cfa=this['editor'];if(!_0x1a1cfa['plugins']['has']('TableEditing')||!_0x1a1cfa['config']['get']('table.enableFooters'))return;const _0x3b80a0=_0x1a1cfa['locale'],_0x297573=_0x1a1cfa['plugins']['get']('TrackChangesEditing');_0x297573['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x297573['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x3b80a0,'FORMAT_FOOTER_ROW'));}}class we extends _0x40e6e8{['afterInit'](){const _0x1189e1=this['editor'],_0x56b359=_0x1189e1['locale'],_0x1e4b2b=_0x1189e1['plugins']['get']('TrackChangesEditing');function _0x451f62(_0x2a4e9b){return{'type':'format','content':''+At(_0x56b359,'*Set\x20table\x20type:*\x20%0',_0x2a4e9b)};}_0x1189e1['plugins']['has']('TableLayout')&&(_0x1e4b2b['enableCommand']('insertTableLayout'),_0x1e4b2b['enableDefaultAttributesIntegration']('tableType'),_0x1e4b2b['descriptionFactory']['registerElementLabel'](_0x4c6157=>_0x4c6157['is']('element','table')&&'layout'===_0x4c6157['getAttribute']('tableType'),_0x227836=>At(_0x56b359,'ELEMENT_LAYOUT_TABLE',_0x227836)),_0x1e4b2b['descriptionFactory']['registerDescriptionCallback'](_0x12191b=>{const {data:_0x1c57a}=_0x12191b;if(_0x1c57a&&'tableType'==_0x1c57a['key'])switch(_0x1c57a['newValue']){case'layout':return _0x451f62(At(_0x56b359,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x451f62(At(_0x56b359,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x96581c=>[_0x96581c,null]));class De extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x23999c=this['editor'];if(!_0x23999c['plugins']['has']('TableClipboard'))return;const _0x186e42=_0x23999c['plugins']['get']('TrackChangesEditing'),_0x15e1bb=_0x23999c['plugins']['get']('TableUtils'),_0x2fbd10=_0x23999c['plugins']['get'](Ne),_0x4cae63=_0x23999c['plugins']['get']('TableClipboard'),_0x3d5eac=_0x23999c['plugins']['get']('TableSelection'),_0x1e83f9=_0x23999c['plugins']['get'](ut);_0x2fbd10['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x23999c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x23999c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1b8a56=null,_0x51e550=!0x1;_0x1e83f9['on']('contentInsertion',(_0x5b1027,_0x26e830)=>{_0x51e550='paste'===_0x26e830['method'];}),_0x23999c['model']['on']('insertContent',(_0x24e548,_0x478a23)=>{if(!_0x51e550&&null===_0x3d5eac['getSelectedTableCells']())return;const [_0x368d35,_0x465810]=_0x478a23,_0x3f3c53=_0x478a23[_0x478a23['length']-0x1];_0x3f3c53&&_0x3f3c53['forceDefaultExecution']||_0x186e42['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x451f08,_0x1b7c64,_0x2cc44b,_0x1ec680,_0x32f2cc){if(_0x1b7c64&&!_0x1b7c64['is']('documentSelection'))return!0x1;const _0x251d42=_0x32f2cc['getTableIfOnlyTableInContent'](_0x451f08,_0x2cc44b);if(!_0x251d42||!xe(_0x251d42,void 0x0,_0x1ec680))return!0x1;const _0x4fd456=_0x1ec680['getSelectionAffectedTableCells'](_0x2cc44b['document']['selection']);if(!_0x4fd456['length'])return!0x1;const _0x282bab=_0x4fd456[0x0]['findAncestor']('table'),_0x123e1c=_0x1ec680['getRowIndexes'](_0x4fd456),_0x4f1768=_0x1ec680['getColumnIndexes'](_0x4fd456),_0xca3241={'startRow':_0x123e1c['first'],'endRow':_0x123e1c['last'],'startColumn':_0x4f1768['first'],'endColumn':_0x4f1768['last']};return 0x1==_0x4fd456['length']&&(_0xca3241['endRow']+=_0x1ec680['getRows'](_0x251d42)-0x1,_0xca3241['endColumn']+=_0x1ec680['getColumns'](_0x251d42)-0x1),xe(_0x282bab,_0xca3241,_0x1ec680);}(_0x368d35,_0x465810,_0x23999c['model'],_0x15e1bb,_0x4cae63)&&(_0x24e548['stop'](),_0x1b8a56={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x23999c['model']['change'](()=>{_0x23999c['model']['insertContent'](_0x478a23[0x0],_0x478a23[0x1],_0x478a23[0x2],{'forceDefaultExecution':!0x0});const _0x540346=_0x5bdaf9(),{rowInsertionRanges:_0x1f6b9d,columnInsertionRanges:_0x3ff6f2,insertionRanges:_0x43c644,deletionRanges:_0x53ac6f,cells:_0x4360f6}=_0x1b8a56;_0x1f6b9d['length']&&_0x186e42['markMultiRangeInsertion'](_0x1f6b9d,'tablePasteRow',{'tablePasteChainId':_0x540346}),_0x3ff6f2['length']&&_0x186e42['markMultiRangeInsertion'](_0x3ff6f2,'tablePasteColumn',{'tablePasteChainId':_0x540346}),_0x43c644['length']&&(_0x186e42['markMultiRangeInsertion'](_0x43c644,'tablePaste',{'tablePasteChainId':_0x540346,'skipNestingCheck':!0x0}),_0x43c644['forEach'](_0x256a3d=>_0x256a3d['detach']?.())),_0x53ac6f['length']&&(_0x186e42['markMultiRangeDeletion'](_0x53ac6f,'tablePaste',{'tablePasteChainId':_0x540346,'skipNestingCheck':!0x0}),_0x53ac6f['forEach'](_0x427436=>_0x427436['detach']?.()));const _0x83ddfc=_0x186e42['markMultiRangeBlockFormat'](_0x4360f6['map'](({element:_0x5d384c})=>_0x5d384c),{'formatGroupId':_0x5bdaf9()},[],'tablePasteCell',{'tablePasteChainId':_0x540346});if(_0x83ddfc){const _0x15dc7f=_0x83ddfc['getMarkers'](),_0x5c476b=[];for(const {element:_0xf9b369,attributes:_0x480dc1}of _0x4360f6){if(!_0x480dc1)continue;const _0x39e6f1=_0x23999c['model']['createRangeOn'](_0xf9b369),_0x3eb537=_0x15dc7f['find'](_0x41bfcf=>_0x41bfcf['getRange']()['isEqual'](_0x39e6f1));_0x3eb537&&_0x5c476b['push']([_0x3eb537['name'],_0x480dc1]);}_0x5c476b['length']&&_0x83ddfc['setAttribute']('markerAttributes',Object['fromEntries'](_0x5c476b));}_0x1b8a56=null;}));},{'priority':_0x47ef2c['high']+0xa}),_0x1e83f9['on']('contentInsertion',()=>{_0x51e550=!0x1;},{'priority':'lowest'}),_0x23999c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2abbfd,_0x40cc38)=>{const [_0x34f4a0,_0xd50679,,_0x31a1ef]=_0x40cc38;if(!_0x1b8a56)return;_0x2abbfd['stop']();const _0x389172=_0x34f4a0['cell'],_0x5216e6=_0xd50679,_0x4cccb6=ve(_0x389172),_0x339c3f=ve(_0x5216e6);_0x2abbfd['return']=_0x389172;let _0xcf2fbf=null,_0x549cf9=null;if(_0x339c3f||_0x4cccb6){if(_0x4cccb6&&!_0x339c3f){_0x31a1ef['remove'](_0x389172['getChild'](0x0));for(const _0x34728d of Array['from'](_0x5216e6['getChildren']()))_0x31a1ef['insert'](_0x34728d,_0x389172,'end');const _0x526b80=_0x1b8a56['rowInsertionIndexes']['includes'](_0x34f4a0['row']),_0x5f10bc=_0x1b8a56['columnInsertionIndexes']['includes'](_0x34f4a0['column']);_0x526b80||_0x5f10bc||(_0xcf2fbf=_0x2db68d['fromRange'](_0x31a1ef['createRangeIn'](_0x389172)));}else _0x339c3f&&!_0x4cccb6&&(_0x549cf9=_0x31a1ef['createRangeIn'](_0x389172));}else{const _0x2c79ce=_0x31a1ef['createElement']('tableCellSuggestion'),_0x43af06=_0x31a1ef['createElement']('tableCellSuggestion');_0x31a1ef['wrap'](_0x31a1ef['createRangeIn'](_0x389172),_0x43af06),_0x31a1ef['insert'](_0x2c79ce,_0x389172,0x0);for(const _0x3122fa of Array['from'](_0x5216e6['getChildren']()))_0x31a1ef['insert'](_0x3122fa,_0x2c79ce,'end');_0xcf2fbf=_0x2db68d['fromRange'](_0x31a1ef['createRangeOn'](_0x2c79ce)),_0x549cf9=_0x2db68d['fromRange'](_0x31a1ef['createRangeOn'](_0x43af06));}const _0x35a43b=Array['from'](_0x5216e6['getAttributes']())['filter'](([_0x30dff9])=>Be['includes'](_0x30dff9));_0x1b8a56['cells']['push']({'element':_0x389172,'attributes':_0x35a43b['length']?Object['fromEntries'](_0x35a43b):null}),_0xcf2fbf&&_0x1b8a56['insertionRanges']['push'](_0xcf2fbf),_0x549cf9&&_0x1b8a56['deletionRanges']['push'](_0x549cf9);},{'priority':'high'}),_0x15e1bb['on']('insertColumns',(_0x128c5c,_0x945ad9)=>{const [_0x2c3c41,_0xf3256e={}]=_0x945ad9;if(!_0x1b8a56)return;const _0x2661b4=_0xf3256e['at']||0x0,_0x52f226=_0xf3256e['columns']||0x1;_0x1b8a56['columnInsertionIndexes']=new Array(_0x52f226)['fill'](_0x2661b4)['map']((_0x219af7,_0x2597c4)=>_0x219af7+_0x2597c4);for(const {cell:_0x1a9ddf}of _0x15e1bb['createTableWalker'](_0x2c3c41,{'startColumn':_0x2661b4,'endColumn':_0x2661b4+_0x52f226-0x1}))_0x1b8a56['columnInsertionRanges']['push'](_0x23999c['model']['createRangeOn'](_0x1a9ddf));},{'priority':'low'}),_0x15e1bb['on']('insertRows',(_0xbd3d79,_0x47c901)=>{const [_0x583b80,_0x5b6283={}]=_0x47c901;if(!_0x1b8a56)return;const _0x270343=_0x5b6283['at']||0x0,_0x174a4d=_0x5b6283['rows']||0x1;_0x1b8a56['rowInsertionIndexes']=new Array(_0x174a4d)['fill'](_0x270343)['map']((_0x1ed0f5,_0x4e4fc1)=>_0x1ed0f5+_0x4e4fc1);for(const {cell:_0x47ee81}of _0x15e1bb['createTableWalker'](_0x583b80,{'startRow':_0x270343,'endRow':_0x270343+_0x174a4d-0x1}))_0x1b8a56['rowInsertionRanges']['push'](_0x23999c['model']['createRangeOn'](_0x47ee81));},{'priority':'low'}),_0x186e42['descriptionFactory']['registerDescriptionCallback'](_0x129049=>{if(_0x129049['subType']&&_0x129049['subType']['startsWith']('tablePaste'))return _0x129049['previous']?{}:{'type':'insertion','content':At(_0x23999c['locale'],'*Replace\x20table\x20cells*')};});const _0x53a13d=()=>!0x1;for(const _0x9706b3 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion',_0x9706b3,'join',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('deletion',_0x9706b3,'join',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9706b3,'join',_0x53a13d);_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x53a13d),_0x186e42['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5e4146,_0x4d888b,_0x149f15)=>{const _0x3f2cce=_0x5e4146['map'](_0x29a66f=>_0x29a66f['getContainedElement']())['filter'](_0x3ec334=>_0x3ec334),_0x698219=new Map(_0x3f2cce['map'](_0x3401bd=>[_0x3401bd,null]));if(_0x1b8a56){for(const {element:_0x157735,attributes:_0x418ac3}of _0x1b8a56['cells'])_0x418ac3&&_0x698219['set'](_0x157735,_0x418ac3);}else{if(_0x149f15&&_0x149f15['markerAttributes'])for(const [_0x16b258,_0xdd9d72]of Object['entries'](_0x149f15['markerAttributes'])){const _0x3f18f5=_0x23999c['model']['markers']['get'](_0x16b258),_0x18660d=_0x3f18f5?_0x3f18f5['getRange']()['getContainedElement']():null;_0x18660d&&_0x698219['set'](_0x18660d,_0xdd9d72);}}_0x23999c['model']['change'](_0x483750=>{for(const [_0x560022,_0x592cd0]of _0x698219)_0x483750['setAttributes']({...Fe,..._0x592cd0},_0x560022);});});const _0x472271=(_0x479ae7,_0x26b037)=>{_0x186e42['_suggestionFactory']['registerCustomCallback'](_0x479ae7,'tablePaste',_0x26b037,(_0x4f757d,_0x395e5e,_0x57f72c)=>{_0x23999c['model']['change'](_0x576b4f=>{const _0x4c9c0a=[];for(const _0xdf1a5c of _0x4f757d){const _0x52808f=_0xdf1a5c['start']['nodeAfter'];_0x52808f['is']('element','tableCellSuggestion')&&_0x4c9c0a['push'](_0x52808f);}_0x186e42['_suggestionFactory']['getSuggestionCallback'](_0x479ae7,null,_0x26b037)(_0x4f757d,_0x395e5e,_0x57f72c);for(const _0x3da763 of _0x4c9c0a)'$graveyard'!=_0x3da763['root']['rootName']&&_0x576b4f['unwrap'](_0x3da763);});});};_0x472271('insertion','accept'),_0x472271('insertion','discard'),_0x472271('deletion','accept'),_0x472271('deletion','discard'),_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59ab94=>{const _0x298f4d=_0x59ab94['map'](_0x172144=>_0x172144['getContainedElement']()),_0xd01ea8=_0x298f4d[0x0]['findAncestor']('table'),{minRow:_0x28f8ac,maxRow:_0x506093}=_0x2fbd10['_getCoordsForCells'](_0x298f4d);_0x15e1bb['removeRows'](_0xd01ea8,{'at':_0x28f8ac,'rows':_0x506093-_0x28f8ac+0x1});}),_0x186e42['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b1506=>{const _0x5b10e2=_0x1b1506['map'](_0x188e29=>_0x188e29['getContainedElement']()),_0x386d21=_0x5b10e2[0x0]['findAncestor']('table'),{minColumn:_0x2401ca,maxColumn:_0x17af4f}=_0x2fbd10['_getCoordsForCells'](_0x5b10e2);_0x15e1bb['removeColumns'](_0x386d21,{'at':_0x2401ca,'columns':_0x17af4f-_0x2401ca+0x1});});const _0x4280db=(_0x3b2143,_0x29489a)=>{if(!_0x29489a['subType']||!_0x29489a['subType']['startsWith']('tablePaste'))return;const _0x41ae87=_0x29489a['attributes']['tablePasteChainId'],_0x473158=_0x186e42['getSuggestions']()['filter'](_0x266e8e=>_0x266e8e['isInContent']&&_0x266e8e['attributes']&&_0x266e8e['attributes']['tablePasteChainId']==_0x41ae87);_0x473158['length']&&_0x29489a['getAllAdjacentSuggestions']()['length']!=_0x473158['length']&&_0x473158['reduce']((_0x323c91,_0x1588c5)=>(_0x323c91['next']=_0x1588c5,_0x1588c5['previous']=_0x323c91,_0x1588c5));};function _0x436657(_0x4f3afc,_0x3701c1=!0x0){const {id:_0x302400,authorId:_0x2a2232}=_0x4e67eb(_0x4f3afc['markerName']),_0x267a42=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5c1064=_0x186e42['activeMarkers']['includes'](_0x4f3afc['markerName']);return _0x5c1064&&_0x267a42['push']('ck-suggestion-marker--active'),{'classes':_0x267a42,'attributes':{'data-suggestion':_0x302400,'data-author-id':_0x2a2232},'priority':_0x5c1064&&_0x3701c1?0xbc2:0xbb8};}_0x186e42['on']('suggestionLoaded',_0x4280db,{'priority':'high'}),_0x186e42['on']('suggestionUnloaded',_0x4280db,{'priority':'high'}),_0x23999c['model']['document']['registerPostFixer'](()=>{let _0x3aef4f=!0x1;const _0x2f26ff=Array['from'](_0x23999c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31f2e5,data:_0x2aa878}of _0x2f26ff){const {group:_0x33519a,type:_0xd4c018,id:_0x4ff278}=_0x4e67eb(_0x31f2e5);if('suggestion'!=_0x33519a||'deletion'!=_0xd4c018||_0x2aa878['oldRange'])continue;if(!_0x186e42['hasSuggestion'](_0x4ff278))continue;const _0x2ab6b4=_0x186e42['getSuggestion'](_0x4ff278)['getRanges'](),_0x47cf83=_0x23999c['plugins']['get']('Users')['me'];for(const _0x4a2569 of _0x186e42['getSuggestions']()){if(!_0x4a2569['isInContent']||_0x4a2569['author']!=_0x47cf83)continue;if('formatBlock'!=_0x4a2569['type']||'tablePasteCell'!=_0x4a2569['subType'])continue;if(_0x4a2569['getRanges']()['every'](_0x3ee2ae=>_0x2ab6b4['some'](_0x25b5ae=>_0x25b5ae['containsRange'](_0x3ee2ae,!0x0)))){for(const _0x38c35e of _0x4a2569['getAllAdjacentSuggestions']())_0x38c35e['isInContent']&&(_0x38c35e['discard'](),_0x3aef4f=!0x0);}}}return _0x3aef4f;}),_0x23999c['model']['document']['registerPostFixer'](_0x4d35d4=>{const _0x487041=_0x23999c['commands']['get']('redo');if(!_0x487041||!_0x487041['_createdBatches']['has'](_0x4d35d4['batch']))return!0x1;let _0x45b7b4=!0x1;const _0x348415=_0x23999c['plugins']['get']('Users')['me'],_0x560366=_0x23999c['model']['document']['differ']['getChanges'](),_0xfbba4c=Array['from'](_0x23999c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x310316,data:_0x4c66f6})=>{const {group:_0x21bc59,subType:_0x545dac,authorId:_0x145e80}=_0x4e67eb(_0x310316);return'suggestion'==_0x21bc59&&'tablePaste'==_0x545dac&&_0x145e80==_0x348415['id']&&!_0x4c66f6['oldRange'];});for(const _0x462f74 of _0x560366){if('insert'!=_0x462f74['type']||'tableCellSuggestion'!=_0x462f74['name']||0x1!=_0x462f74['length'])continue;const _0x4b59a7=_0x4d35d4['createRange'](_0x462f74['position'],_0x462f74['position']['getShiftedBy'](0x1));if(!_0xfbba4c['find'](({data:_0x1e0ee9})=>_0x1e0ee9['newRange']['isEqual'](_0x4b59a7))){for(const {name:_0x53e1ae,data:_0x3c8b76}of _0xfbba4c)if(_0x4b59a7['containsRange'](_0x3c8b76['newRange'])){_0x4d35d4['updateMarker'](_0x53e1ae,{'range':_0x4b59a7}),_0x45b7b4=!0x0;break;}}}return _0x45b7b4;}),_0x23999c['model']['document']['registerPostFixer'](_0x2fcaa3=>{let _0x19afe9=!0x1;const _0x1fcf31=_0x23999c['plugins']['get']('Users')['me'],_0x390d1a=_0x186e42['getSuggestions']()['filter'](_0x2b73fe=>_0x2b73fe['isInContent']&&_0x2b73fe['author']==_0x1fcf31),_0x150219=new Set(),_0xc5ffad=new Set();for(const _0x380025 of _0x390d1a)if('tablePaste'==_0x380025['subType'])for(const _0x295091 of _0x380025['getMarkers']()){const _0x57b021=_0x295091['getRange']()['getContainedElement']();if(_0x57b021){if(_0x57b021['is']('element','tableCellSuggestion')&&ve(_0x57b021)){_0x380025['removeMarker'](_0x295091['name']),_0x150219['add'](_0x57b021),_0x19afe9=!0x0;const _0x5dc8af=_0x57b021['nextSibling'],_0x21e60e=_0x57b021['previousSibling'],_0x4992f7=_0x5dc8af&&_0x5dc8af['is']('element','tableCellSuggestion'),_0x263353=_0x21e60e&&_0x21e60e['is']('element','tableCellSuggestion');_0x4992f7&&!_0x150219['has'](_0x5dc8af)&&_0xc5ffad['add'](_0x5dc8af),_0x263353&&!_0x150219['has'](_0x21e60e)&&_0xc5ffad['add'](_0x21e60e);}else _0x57b021['is']('element','paragraph')&&_0x57b021['isEmpty']&&(_0x380025['removeMarker'](_0x295091['name']),_0x19afe9=!0x0);}}else{if('tablePasteCell'==_0x380025['subType']){if(!_0x380025['attributes']||!_0x380025['attributes']['tablePasteChainId'])continue;const _0x46315f=_0x380025['attributes']['markerAttributes'];if(_0x46315f&&Object['keys'](_0x46315f)['length'])continue;const _0x184e4c=_0x380025['attributes']['tablePasteChainId'];let _0x3189be=!0x0,_0x43a9ce=!0x0;for(const _0x455982 of _0x390d1a)if(_0x455982['subType']&&_0x455982['subType']['startsWith']('tablePaste')){if(!_0x455982['attributes']['tablePasteChainId']){_0x43a9ce=!0x1;break;}if(_0x455982['id']!=_0x380025['id']&&_0x455982['attributes']['tablePasteChainId']==_0x184e4c){_0x3189be=!0x1;break;}}_0x43a9ce&&_0x3189be&&(_0x380025['removeMarkers'](),_0x19afe9=!0x0);}}for(const _0xc86a19 of _0x150219)_0x2fcaa3['remove'](_0xc86a19);for(const _0x3be401 of _0xc5ffad)_0x2fcaa3['unwrap'](_0x3be401);return _0x19afe9;}),_0x23999c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x270630=>_0x436657(_0x270630),'converterPriority':'high'}),_0x23999c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x8dd9f7,_0x42188b)=>_0x42188b['options']['showSuggestionHighlights']?_0x436657(_0x8dd9f7,!0x1):null,'converterPriority':'high'});const _0x521670=_0x23999c['editing']['view'];this['listenTo'](_0x521670['document'],'clipboardOutput',(_0x8d6d45,_0x576259)=>{const _0x55d2b9=[];for(const _0x5bc2f7 of _0x521670['createRangeIn'](_0x576259['content'])['getItems']())_0x5bc2f7['is']('element','suggestion-td')&&_0x55d2b9['push'](_0x5bc2f7);_0x521670['change'](_0x3b74d4=>{for(const _0x206c4f of _0x55d2b9)_0x3b74d4['move'](_0x3b74d4['createRangeIn'](_0x206c4f),_0x3b74d4['createPositionBefore'](_0x206c4f)),_0x3b74d4['remove'](_0x206c4f);});});}}function ve(_0xb9fb6c){if(_0xb9fb6c['isEmpty'])return!0x0;const _0x5d5c62=_0xb9fb6c['getChild'](0x0);return _0x5d5c62['is']('element','paragraph')&&_0x5d5c62['isEmpty'];}function xe(_0x553b57,_0x3f2cb5={},_0x281407){for(const {isAnchor:_0x474361,cellHeight:_0x14afc1,cellWidth:_0x547edc}of _0x281407['createTableWalker'](_0x553b57,{'includeAllSlots':!0x0,..._0x3f2cb5}))if(!_0x474361||0x1!=_0x14afc1||0x1!=_0x547edc)return!0x1;return!0x0;}class Pe extends _0x40e6e8{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x14160d=this['editor']['plugins']['get']('TrackChangesEditing');_0x14160d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x14160d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x14160d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14160d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x14160d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x14160d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x90b54c,_0x34be6a){const _0xadd198=this['editor']['plugins']['get']('TrackChangesEditing'),_0x177811=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d21ae=_0x34be6a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd4006f=_0x177811['getColumnGroupElement'](_0x4d21ae);let _0x324981=_0xd4006f?_0x177811['getTableColumnsWidths'](_0xd4006f):null,_0x1c7255=_0x4d21ae['getAttribute']('tableWidth')||null;const _0x2a4851=_0x34be6a['tableWidth']||_0x1c7255,_0x235cdc=_0x34be6a['columnWidths']||_0x324981,_0x18eb2b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4f272f of _0xadd198['getSuggestions']()){const _0x57204a=_0x4f272f['getContainedElement']();if('resizeTable'===_0x4f272f['subType']&&_0x57204a===_0x4d21ae){_0x4f272f['author']!==_0x18eb2b&&_0x4f272f['discard']();const _0x5cf124=_0x4f272f['data']['commandParams'];_0x1c7255=_0x5cf124[0x0]['tableWidth'],_0x324981=_0x5cf124[0x0]['columnWidths'];break;}}_0x90b54c({'table':_0x4d21ae,'tableWidth':_0x2a4851,'columnWidths':_0x235cdc}),_0xadd198['markBlockFormat'](_0x4d21ae,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1c7255,'columnWidths':_0x324981}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2253fb){if('formatBlock'!=_0x2253fb['type']&&'formatInline'!=_0x2253fb['type'])return;const {data:_0x1b16b4}=_0x2253fb;if(_0x1b16b4&&'resizeTable'===_0x1b16b4['formatGroupId']){const _0x15e3e6='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x15e3e6)};}}}class Ue extends _0x40e6e8{['afterInit'](){const _0x2b7c48=this['editor'];_0x2b7c48['plugins']['has']('Template')&&_0x2b7c48['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x40e6e8{['afterInit'](){const _0x41f247=this['editor'];if(!_0x41f247['commands']['get']('insertTableOfContents'))return;_0x41f247['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f9ffb=_0x41f247['plugins']['get']('TrackChangesEditing'),_0x1c83df=_0x41f247['locale'];_0x1f9ffb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ce8e6=>At(_0x1c83df,'ELEMENT_TABLE_OF_CONTENTS',_0x3ce8e6));}}class He extends _0x40e6e8{['afterInit'](){const _0x283ea5=this['editor'];if(!_0x283ea5['plugins']['has']('Title'))return;_0x283ea5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x283ea5['locale'],'ELEMENT_TITLE')),_0x283ea5['model']['document']['registerPostFixer'](_0x4a64d6=>{let _0xa68e99=!0x1;const _0x14882f=Array['from'](_0x283ea5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x53e120,data:_0x5d07b7}of _0x14882f){const {group:_0x3d8f47}=_0x4e67eb(_0x53e120);if('suggestion'!==_0x3d8f47||!_0x5d07b7['newRange'])continue;const _0x371c63=_0x5d07b7['newRange'],_0x4c8067=_0x371c63['end']['nodeBefore'];if(!_0x4c8067||!_0x4c8067['is']('element','title-content'))continue;if(!_0x371c63['start']['isTouching'](_0x371c63['end']))continue;const _0x2f6c04=_0x283ea5['model']['schema']['getNearestSelectionRange'](_0x371c63['end'],'forward');if(_0x2f6c04&&_0x2f6c04['isCollapsed']){const _0x5d4f71=_0x4a64d6['createRange'](_0x371c63['start'],_0x2f6c04['start']);_0x5d4f71['isEqual'](_0x371c63)||(_0x4a64d6['updateMarker'](_0x53e120,{'range':_0x5d4f71}),_0xa68e99=!0x0);}_0xa68e99||(_0x4a64d6['removeMarker'](_0x53e120),_0xa68e99=!0x0);}return _0xa68e99;});}}class $e extends _0x40e6e8{['afterInit'](){const _0x4af368=this['editor'],_0x4e80d9=_0x4af368['plugins']['get']('TrackChangesEditing');_0x4af368['plugins']['has']('Uploadcare')&&(_0x4e80d9['enableCommand']('uploadcare'),_0x4af368['plugins']['has']('UploadcareImageEdit')&&(_0x4e80d9['enableCommand']('uploadcareImageEdit'),_0x4e80d9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4e80d9['descriptionFactory']['registerDescriptionCallback'](_0x251748=>{if('attribute'!=_0x251748['type'])return;const {data:_0x2c41b9}=_0x251748;return _0x2c41b9&&'uploadcareImageId'==_0x2c41b9['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x40e6e8{['afterInit'](){const _0x35c0ab=this['editor'],_0x3b2703=_0x35c0ab['plugins']['get']('TrackChangesEditing');_0x35c0ab['plugins']['has']('UndoEditing')&&(_0x3b2703['enableCommand']('undo'),_0x3b2703['enableCommand']('redo'));}}class Ve extends _0x40e6e8{static get['requires'](){return[Ne];}['afterInit'](){const _0x553c12=this['editor'];if(!_0x553c12['plugins']['has']('TableCaptionEditing'))return;_0x553c12['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x40e6e8{['tableProperties'];['tableCellProperties'];constructor(_0x1e5a13){super(_0x1e5a13),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x11e282=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x262b53 of this['tableProperties'])_0x11e282['enableCommand'](_0x262b53,(_0x138520,_0x35465f)=>{const _0x4d727f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x262b53,[_0x4d727f],this['tableProperties'],'tableProperties',_0x138520,_0x35465f);});_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x11e282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xbc9cb4,_0x134922)=>this['handleDiscardAction'](this['tableProperties'],_0xbc9cb4,_0x134922)),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x15e582 of this['tableCellProperties'])this['editor']['commands']['get'](_0x15e582)&&_0x11e282['enableCommand'](_0x15e582,(_0x181768,_0x5c3f8b)=>{const _0x5bdbc9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x15e582,_0x5bdbc9,this['tableCellProperties'],'tableCellProperties',_0x181768,_0x5c3f8b);});_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x11e282['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3c563e,_0x1c196d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3c563e,_0x1c196d)),_0x11e282['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x11e282['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x11e282['descriptionFactory']['registerDescriptionCallback'](_0x430b86=>this['handleSuggestionDescription'](_0x430b86)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4f7eec,_0x4f56ff,_0x4a64fb,_0x5e0b3f,_0x5f49b0,_0x266754){const _0x2efee0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x266754['batch'],()=>{for(const _0x4cf94f of _0x4f56ff){if(this['_getSuggestion'](_0x4cf94f,_0x5e0b3f))_0x5f49b0(_0x266754);else{const _0x1b8fd3={};for(const _0xedb36 of _0x4a64fb){const _0xdc6ad4=_0x4cf94f['getAttribute'](_0xedb36);void 0x0!==_0xdc6ad4&&(_0x1b8fd3[_0xedb36]=_0xdc6ad4);}_0x5f49b0(_0x266754),_0x2efee0['markBlockFormat'](_0x4cf94f,{'commandParams':[_0x1b8fd3]},[],_0x5e0b3f);}}});}['handleDiscardAction'](_0x37d867,_0x51e6ed,_0x41edc0){const _0x2bdb4d=_0x51e6ed[0x0]['start']['nodeAfter'],_0x584623=_0x41edc0['commandParams'][0x0];this['editor']['model']['change'](_0x5853f9=>{for(const _0x2215cd of _0x37d867)void 0x0!==_0x584623[_0x2215cd]?_0x5853f9['setAttribute'](_0x2215cd,_0x584623[_0x2215cd],_0x2bdb4d):_0x5853f9['removeAttribute'](_0x2215cd,_0x2bdb4d);});}['handleSuggestionDescription'](_0x3ef4b){if(_0x3ef4b['data'])switch(_0x3ef4b['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1aa6e5,_0x4f6674){const _0x399b98=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c00cf of _0x399b98['getSuggestions']({'skipNotAttached':!0x0})){const _0x3aee72=_0x4c00cf['getContainedElement']();if(_0x4c00cf['subType']===_0x4f6674&&_0x3aee72===_0x1aa6e5)return _0x4c00cf;}return null;}['_registerTablePropertiesAttributes'](){const _0x1df89c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x822908=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x73d373 of _0x822908){const _0x2f4632=_0x73d373['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1df89c['descriptionFactory']['registerAttributeLabel'](_0x73d373,At(this['editor']['locale'],'FORMAT_'+_0x2f4632));}}}class ze extends _0x40e6e8{['afterInit'](){const _0x37a2d1=this['editor'];if(!_0x37a2d1['plugins']['has']('LineHeight'))return;const _0x11055e=_0x37a2d1['plugins']['get']('TrackChangesEditing'),_0x1c9f6c=_0x37a2d1['locale'];_0x11055e['enableDefaultAttributesIntegration']('lineHeight'),_0x11055e['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x1c9f6c,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x40e6e8{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xfd6006,_0x6f2dbb,_0x28a6ab,_0xcf9ddf,_0x5e953e,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x155ad1){super(_0x155ad1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5e7362,_0x5ac44e,_0x52cfec,_0x10b678)=>{this['_model']['change'](()=>{for(const _0x953a6e of[..._0x10b678,..._0x52cfec])this['_model']['markers']['has'](_0x953a6e)&&_0x155ad1['editing']['reconvertMarker'](_0x953a6e);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x155ad1['plugins']['get'](_0xfd6006),this['_suggestionsConversion']=_0x155ad1['plugins']['get'](_0x6f2dbb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x155ad1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x155ad1['config']['get']('trackChanges.trackFormatChanges'),_0x155ad1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x155ad1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x155ad1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x27909e=this['editor'];_0x27909e['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x10d9ef,{writer:_0x2adb3a})=>{let _0x528db0='suggestion:'+_0x10d9ef['getAttribute']('suggestion-type')+':'+_0x10d9ef['getAttribute']('id');return _0x10d9ef['getAttribute']('marker-count')&&(_0x528db0+=':'+_0x10d9ef['getAttribute']('marker-count')),_0x2adb3a['createElement']('$marker',{'data-name':_0x528db0});}}),_0x27909e['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x27909e['model']['document']['registerPostFixer'](_0x5911b4=>{let _0x3f33b8=!0x1;const _0x4eb390=Array['from'](_0x27909e['model']['document']['differ']['getChangedMarkers']()),_0x4724b6=new Set();for(const {name:_0x43c499,data:_0x2dc0df}of _0x4eb390){const {group:_0x48e7b2,type:_0x4c8af4,subType:_0x1010a9,id:_0xd8064b}=_0x4e67eb(_0x43c499);if('suggestion'!==_0x48e7b2)continue;const _0x55cd0f=_0x1010a9?'suggestion:'+_0x4c8af4+':'+_0x1010a9+':'+_0xd8064b:'suggestion:'+_0x4c8af4+':'+_0xd8064b,_0x3abf03=_0x27909e['model']['markers']['getMarkersGroup'](_0x55cd0f),_0x3b3e67=_0x27909e['model']['markers']['get'](_0x43c499),_0x2f633a=this['_suggestions']['get'](_0xd8064b);if(null!=_0x2dc0df['newRange']){'formatInline'==_0x4c8af4&&(_0x3f33b8=_0x3f33b8||Ze(_0x2dc0df['newRange'],_0x43c499,_0x5911b4,_0x27909e['model']['schema']));const _0x3bdf78='attribute'==_0x4c8af4&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x1010a9)),_0x8e90e0='attribute'==_0x4c8af4&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x1010a9));if(_0x2dc0df['newRange']['isCollapsed']||'$graveyard'==_0x2dc0df['newRange']['root']['rootName']||'formatBlock'==_0x4c8af4&&!tn(_0x2dc0df['newRange'])||_0x3bdf78&&!tn(_0x2dc0df['newRange'])||_0x8e90e0&&en(_0x2dc0df['newRange'])||'deletion'==_0x4c8af4&&en(_0x2dc0df['newRange'])||_0x3b3e67&&nn(_0x3b3e67,_0x3abf03))_0x5911b4['removeMarker'](_0x43c499),_0x3f33b8=!0x0;else{if(!_0x2f633a||!_0x2f633a['isInContent'])continue;if(_0x2dc0df['newRange']&&_0x2dc0df['oldRange']&&_0x2dc0df['newRange']['isEqual'](_0x2dc0df['oldRange']))continue;_0x4724b6['add'](_0x2f633a);}}}return _0x4724b6['size']>0x0&&(_0x3f33b8=!!this['_joinWithAdjacentSuggestions'](_0x4724b6)||_0x3f33b8),_0x3f33b8;}),_0x27909e['model']['document']['registerPostFixer'](_0x30d0aa=>{let _0x5f0019=!0x1;for(const _0x5e4d57 of _0x27909e['model']['document']['differ']['getChanges']())if('insert'==_0x5e4d57['type'])for(const _0x4fec9a of this['_suggestions']['values']()){if(_0x4fec9a['isMultiRange']||!_0x4fec9a['isInContent'])continue;const _0x5ae1cc='formatBlock'==_0x4fec9a['type'],_0x5f5d08=this['_getAttributeKey'](_0x4fec9a),_0x523ee9=_0x5f5d08&&this['_suggestionsConversion']['isBlockAttribute'](_0x5f5d08);if(!_0x5ae1cc&&!_0x523ee9)continue;const _0xb3daa5=_0x4fec9a['getFirstRange']();if(_0xb3daa5['start']['parent']!=_0xb3daa5['end']['parent']&&!_0xb3daa5['end']['isAtEnd']){const _0x72fc38=_0x27909e['model']['createPositionAt'](_0xb3daa5['start']['nodeAfter'],'end'),_0x56fc2d=_0x27909e['model']['createRange'](_0xb3daa5['start'],_0x72fc38);_0x30d0aa['updateMarker'](_0x4fec9a['getFirstMarker'](),{'range':_0x56fc2d}),_0x5f0019=!0x0;}}return _0x5f0019;}),_0x27909e['model']['document']['registerPostFixer'](_0x597667=>this['_processAttributeChanges'](_0x597667)),_0x27909e['model']['document']['registerPostFixer'](_0x45106f=>!_0x45106f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x45106f)),_0x27909e['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x27909e['model']['document']['on']('change:data',(_0x41d1c9,_0x1f90ff)=>{if(!_0x1f90ff['isLocal']||_0x1f90ff['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x418f35=_0x27909e['model']['document']['differ']['getChanges']();if(0x0==_0x418f35['length'])return;const _0x21b2ad=[],_0x52de4f=_0x418f35['filter'](_0x12fec1=>'attribute'==_0x12fec1['type']),_0x3830cd=_0x418f35['filter'](_0x427991=>'insert'==_0x427991['type']&&'$text'!=_0x427991['name']);for(const _0x80f98e of _0x52de4f)this['_suggestionsConversion']['isRegisteredAttribute'](_0x80f98e['attributeKey'])&&_0x21b2ad['push']({'key':_0x80f98e['attributeKey'],'newValue':_0x80f98e['attributeNewValue'],'oldValue':_0x80f98e['attributeOldValue'],'range':sn(_0x80f98e['range'],_0x27909e['model'])});for(const _0x367a37 of _0x3830cd){if('rename'!=_0x367a37['action']&&'refresh'!=_0x367a37['action'])continue;const _0x1d710f=rn(_0x367a37['position']['nodeAfter'],_0x27909e['model']),_0x501cee=_0x367a37['before'];'rename'==_0x367a37['action']&&_0x21b2ad['push']({'key':Ke,'newValue':_0x367a37['name'],'oldValue':_0x501cee['name'],'range':_0x1d710f});for(const [_0x4b406c,_0x35268f]of _0x501cee['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b406c))continue;const _0x5501a1=_0x367a37['attributes']['get'](_0x4b406c);_0x35268f!==_0x5501a1&&_0x21b2ad['push']({'key':_0x4b406c,'newValue':_0x5501a1,'oldValue':_0x35268f,'range':_0x1d710f});}for(const [_0x503154,_0x1d7ea9]of _0x367a37['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x503154)&&(_0x501cee['attributes']['has'](_0x503154)||_0x21b2ad['push']({'key':_0x503154,'newValue':_0x1d7ea9,'oldValue':null,'range':_0x1d710f}));}0x0!=_0x21b2ad['length']&&_0x27909e['model']['enqueueChange'](_0x1f90ff,_0x15064a=>{const _0x388bcc=_0x5bdaf9();for(const {range:_0x22c3c1,key:_0x19e755,oldValue:_0x58c5e4,newValue:_0x479fa9}of _0x21b2ad)this['markAttributeChange'](_0x22c3c1,_0x19e755,_0x58c5e4,_0x479fa9,{'groupId':_0x388bcc});this['_reduceExistingSuggestions'](_0x15064a,_0x21b2ad);});},{'priority':'lowest'}),_0x27909e['model']['markers']['on']('update:suggestion',(_0x39eeae,_0x1fceee,_0x4b0d5f)=>{if(null==_0x4b0d5f){const {id:_0x48503f}=_0x4e67eb(_0x1fceee['name']),_0x157e01=this['_suggestions']['get'](_0x48503f);_0x157e01&&_0x157e01['addMarkerName'](_0x1fceee['name']);}}),_0x27909e['model']['document']['on']('change:data',()=>{const _0x5c81c5=Array['from'](_0x27909e['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3faa93=>'suggestion'===_0x4e67eb(_0x3faa93['name'])['group']);if(0x0===_0x5c81c5['length'])return;_0x5c81c5['sort']((_0x559b40,_0x550c7b)=>{const _0x1ae666=_0x559b40['data']['oldRange'],_0xa6c0a8=_0x550c7b['data']['oldRange'];return null===_0x1ae666&&null===_0xa6c0a8?0x0:null===_0x1ae666&&null!==_0xa6c0a8?-0x1:null!==_0x1ae666&&null===_0xa6c0a8?0x1:_0x1ae666['start']['isBefore'](_0xa6c0a8['start'])?-0x1:0x1;});const _0x458bd6=new Set(),_0x18b579=new Set();for(const {name:_0x1d8192,data:_0x5b65e5}of _0x5c81c5){const {id:_0x3d6e23}=_0x4e67eb(_0x1d8192);if(null===_0x5b65e5['oldRange']){const _0x3d20ef=this['_handleNewSuggestionMarker'](_0x1d8192);_0x18b579['add'](_0x3d20ef);}else{const _0x238f76=this['_suggestions']['get'](_0x3d6e23);null!==_0x5b65e5['newRange']||_0x238f76['isInContent']?(_0x458bd6['add'](_0x238f76['head']),_0x18b579['add'](_0x238f76)):this['_removeSuggestion'](_0x238f76);}}_0x18b579['size']>0x0&&this['_refreshSuggestionsChain'](_0x18b579);for(const _0x4ca10f of _0x458bd6)this['fire']('suggestionChanged',_0x4ca10f);}),_0x27909e['model']['on']('applyOperation',(_0x3c77cd,_0x489e92)=>{const _0x1f97c1=_0x489e92[0x0];if(!this['_suggestions']['size'])return;if(!_0x1f97c1['isDocumentOperation'])return;if(_0x1f97c1['batch']['isUndo']||!_0x1f97c1['batch']['isLocal'])return;let _0x427512,_0x13a056;switch(_0x1f97c1['type']){case'insert':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['position']),_0x13a056=_0x427512['getShiftedBy'](_0x1f97c1['howMany']);break;case'split':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['splitPosition']),_0x13a056=_0x27909e['model']['createPositionAt'](_0x1f97c1['moveTargetPosition']);break;case'move':_0x427512=_0x27909e['model']['createPositionAt'](_0x1f97c1['targetPosition']),_0x13a056=_0x427512['getShiftedBy'](_0x1f97c1['howMany']);break;default:return;}const _0x40959e=_0x27909e['model']['createRange'](_0x427512,_0x13a056);_0x27909e['model']['change'](()=>{for(const {suggestion:_0x90c65d,meta:_0x3e3020}of this['_findSuggestions'](_0x40959e)){if(_0x90c65d['isMultiRange'])continue;if('formatInline'==_0x90c65d['type'])continue;const _0x1cb1b1=this['_getAttributeKey'](_0x90c65d);if(_0x1cb1b1&&this['_suggestionsConversion']['isBlockAttribute'](_0x1cb1b1)&&'split'!=_0x1f97c1['type'])continue;const _0x2b3c95=_0x90c65d['data']&&_0x90c65d['data']['multipleBlocks'];('formatBlock'!=_0x90c65d['type']||'split'==_0x1f97c1['type']&&!_0x2b3c95)&&(_0x3e3020['containsRangeInObject']||'insertion'==_0x90c65d['type']&&_0x3e3020['isOwn']||_0x90c65d['getFirstRange']()['containsRange'](_0x40959e)&&this['_breakSuggestionMarker'](_0x90c65d,_0x427512,_0x13a056));}});},{'priority':'lowest'}),_0x27909e['model']['on']('deleteContent',(_0x4773c,_0x1ff9e1)=>{const _0x38064e=_0x1ff9e1[0x0],_0x3a22a3=_0x1ff9e1[0x1];if(_0x3a22a3&&_0x3a22a3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38064e['isCollapsed'])return;const _0x34a851=_0x27909e['model']['schema'],{start:_0x5db943,end:_0x2b4564}=_0x38064e['getFirstRange'](),_0x1d83fa=_0x5db943['nodeAfter']&&_0x34a851['isLimit'](_0x5db943['nodeAfter'])?null:_0x34a851['getNearestSelectionRange'](_0x5db943,'forward'),_0x530a74=_0x2b4564['nodeBefore']&&_0x34a851['isLimit'](_0x2b4564['nodeBefore'])?null:_0x34a851['getNearestSelectionRange'](_0x2b4564,'backward'),_0x19b2ce=_0x27909e['model']['createRange'](_0x1d83fa?_0x1d83fa['start']:_0x5db943,_0x530a74?_0x530a74['end']:_0x2b4564);_0x27909e['model']['change'](_0x1b16bb=>{this['markDeletion'](_0x19b2ce);const _0x249f8b=_0x27909e['model']['schema']['getNearestSelectionRange'](_0x19b2ce['start']);_0x38064e['is']('documentSelection')?_0x1b16bb['setSelection'](_0x249f8b):_0x38064e['setTo'](_0x249f8b);}),_0x4773c['stop']();},{'priority':_0x47ef2c['normal']+0xa}),_0x27909e['model']['on']('insertContent',(_0xbd4312,_0x14b175)=>{const _0x1d3cb4=_0x14b175[_0x14b175['length']-0x1];_0x1d3cb4&&_0x1d3cb4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x27909e['model']['change'](()=>{let _0x4c04c2=_0x27909e['model']['insertContent'](_0x14b175[0x0],_0x14b175[0x1],_0x14b175[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c04c2)return;_0xbd4312['return']=_0x4c04c2['clone']();const _0x3ef7a6=_0x4c04c2['end']['nodeBefore'],_0x6a1edc=_0x27909e['model']['schema'];_0x3ef7a6&&_0x6a1edc['isBlock'](_0x3ef7a6)&&!_0x6a1edc['isObject'](_0x3ef7a6)&&(_0x4c04c2=_0x27909e['model']['createRange'](_0x4c04c2['start'],_0x27909e['model']['createPositionAt'](_0x3ef7a6,'end'))),this['markInsertion'](_0x4c04c2);}),_0xbd4312['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xa64cb7=new dt(_0x27909e,this['_suggestions']);_0x27909e['commands']['add']('acceptSuggestion',_0xa64cb7),this['enableCommand']('acceptSuggestion');const _0x5e1403=new ft(_0x27909e,this['_suggestions']);_0x27909e['commands']['add']('discardSuggestion',_0x5e1403),this['enableCommand']('discardSuggestion'),_0x27909e['commands']['add']('acceptAllSuggestions',new Lt(_0x27909e,_0xa64cb7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x27909e['commands']['add']('discardAllSuggestions',new Lt(_0x27909e,_0x5e1403,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x27909e['commands']['add']('acceptSelectedSuggestions',new It(_0x27909e,_0xa64cb7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x27909e['commands']['add']('discardSelectedSuggestions',new It(_0x27909e,_0x5e1403,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1d4a8b=_0x27909e['plugins']['get'](_0xfd6006);this['listenTo'](_0x1d4a8b,'addComment',(_0x119e38,{threadId:_0x46c0de})=>{const _0x57306d=this['_suggestions']['get'](_0x46c0de);_0x57306d&&_0x57306d['commentThread']&&0x1===_0x57306d['commentThread']['length']&&this['_updateSuggestionData'](_0x46c0de,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1d4a8b,'removeComment',(_0x3701dd,{threadId:_0x3108d0})=>{const _0x2eb79d=this['_suggestions']['get'](_0x3108d0);_0x2eb79d&&_0x2eb79d['commentThread']&&!_0x2eb79d['commentThread']['length']&&this['_updateSuggestionData'](_0x3108d0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x38512e){const _0x21d511=_0x4f729a([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x87f8a7=0x3d8d0df,_0x137c2e=0x3df592f^_0x87f8a7,_0x2275f3=window[_0x4f729a([0x44,0x61,0x74,0x65])][_0x4f729a([0x6e,0x6f,0x77])](),_0x351ac2=_0x38512e[_0x4f729a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50024d=new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36c360=>{_0x351ac2[_0x4f729a([0x6f,0x6e,0x63,0x65])](_0x4f729a([0x72,0x65,0x61,0x64,0x79]),_0x36c360);}),_0x2884a8={[_0x4f729a([0x6b,0x74,0x79])]:_0x4f729a([0x45,0x43]),[_0x4f729a([0x75,0x73,0x65])]:_0x4f729a([0x73,0x69,0x67]),[_0x4f729a([0x63,0x72,0x76])]:_0x4f729a([0x50,0x2d,0x32,0x35,0x36]),[_0x4f729a([0x78])]:_0x4f729a([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x4f729a([0x79])]:_0x4f729a([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x4f729a([0x61,0x6c,0x67])]:_0x4f729a([0x45,0x53,0x32,0x35,0x36])},_0x4e5331=_0x351ac2[_0x4f729a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f729a([0x67,0x65,0x74])](_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x27f840(){let _0x3d9340,_0xe9084b=null,_0x184c49=null;try{if(_0x4e5331==_0x4f729a([0x47,0x50,0x4c]))return _0x4f729a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d9340=_0x3f367d(),!_0x3d9340)return _0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d9340[_0x4f729a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x184c49=_0x3a0a2b(_0x3d9340[_0x4f729a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d9340[_0x4f729a([0x6a,0x74,0x69])])),await _0x37b3ea()?_0x2d5f57()?_0x5f21b5()?_0x4f729a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b88f6()?(_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f729a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe9084b=_0x3648fe(_0x4f729a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15632a()):_0x4f729a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f729a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4f729a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f21b5(){const _0x151bfa=[_0x4f729a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f729a([0x74,0x72,0x69,0x61,0x6c])][_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2275f3/0x3e8:0xe10*_0x137c2e;return _0x3d9340[_0x4f729a([0x65,0x78,0x70])]<_0x151bfa;}function _0x2d5f57(){const _0x4461fd=_0x3d9340[_0x4f729a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4461fd)return!0x1;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x2a])))return!0x0;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x54,0x43])))return!0x0;if(_0x4461fd[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x52,0x54,0x43]))){if(_0x4bce7f())return!0x0;if(_0x1187be()||_0x158db9())return!0x0;}return!0x1;}function _0x4b88f6(){const _0x5aa734=_0x3d9340[_0x4f729a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5aa734||0x0==_0x5aa734[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x504bc4}=new URL(window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5aa734[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x504bc4))return!0x0;const _0x4ff476=_0x504bc4[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e]));return _0x5aa734[_0x4f729a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b6546=>_0x5b6546[_0x4f729a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f729a([0x2a])))[_0x4f729a([0x6d,0x61,0x70])](_0x1a8254=>_0x1a8254[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e])))[_0x4f729a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x361f63=>_0x361f63[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4ff476[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f729a([0x6d,0x61,0x70])](_0xfd5c27=>Array(_0x4ff476[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xfd5c27[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4f729a([0x66,0x69,0x6c,0x6c])](_0xfd5c27[0x0]===_0x4f729a([0x2a])?_0x4f729a([0x2a]):'')[_0x4f729a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xfd5c27))[_0x4f729a([0x73,0x6f,0x6d,0x65])](_0x218e26=>_0x4ff476[_0x4f729a([0x65,0x76,0x65,0x72,0x79])]((_0x5ce158,_0x5d597f)=>_0x218e26[_0x5d597f]===_0x5ce158||_0x218e26[_0x5d597f]===_0x4f729a([0x2a])));}function _0x15632a(){return _0xe9084b&&_0x184c49?new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x488a9a,_0x7c9ac9)=>{_0xe9084b[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x488a9a,_0x7c9ac9),_0x184c49[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x2709ed=>{_0x2709ed!=_0x4f729a([0x56,0x61,0x6c,0x69,0x64])&&_0x488a9a(_0x2709ed);},_0x7c9ac9);}):_0xe9084b||_0x184c49||_0x4f729a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3a0a2b(_0x3e1438,_0x5b8c98){return new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ceb44=>{if(_0x491f43())return _0x4ceb44(_0x4f729a([0x56,0x61,0x6c,0x69,0x64]));_0x2747e6(),_0x351ac2[_0x4f729a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f3fbf=!0x1;const _0x1d51a1=_0x5bdaf9();function _0x169600(_0x40f1b9){return!!_0x40f1b9&&(typeof _0x40f1b9===_0x4f729a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40f1b9===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40f1b9[_0x4f729a([0x74,0x68,0x65,0x6e])]===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40f1b9[_0x4f729a([0x63,0x61,0x74,0x63,0x68])]===_0x4f729a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x295ab2(_0x202c2f){_0x282ba1(_0x202c2f)[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x5b565f=>{if(!_0x5b565f||_0x5b565f[_0x4f729a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f729a([0x6f,0x6b]))return _0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5885d9(_0x3dcc25(_0x1d51a1+_0x5b8c98))!=_0x5b565f[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f729a([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x37001b=>(_0xe52357(),_0x37001b),()=>{const _0x3b3676=_0x3f16e1();return null==_0x3b3676?(_0xe52357(),_0x4f729a([0x56,0x61,0x6c,0x69,0x64])):_0x4f729a(_0x2275f3-_0x3b3676>(0x27d454df^_0x87f8a7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x4ceb44)[_0x4f729a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xc2efd8=0x3ee3e5f^_0x87f8a7;function _0xe52357(){const _0x1e978e=_0x4f729a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5885d9(_0x3dcc25(_0x3e1438)),_0x2be32e=_0x230f62(_0x5885d9(window[_0x4f729a([0x4d,0x61,0x74,0x68])][_0x4f729a([0x63,0x65,0x69,0x6c])](_0x2275f3/_0xc2efd8)));window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f729a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e978e,_0x2be32e);}function _0x3f16e1(){const _0x8009a6=_0x4f729a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5885d9(_0x3dcc25(_0x3e1438)),_0x25d727=window[_0x4f729a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f729a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x8009a6);return _0x25d727?window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x230f62(_0x25d727),0x10)*_0xc2efd8:null;}function _0x282ba1(_0x9c3ed5){return new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x211ceb,_0x4d38eb)=>{_0x9c3ed5[_0x4f729a([0x74,0x68,0x65,0x6e])](_0x211ceb,_0x4d38eb),window[_0x4f729a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d38eb,0x3d9041f^_0x87f8a7);});}}_0x351ac2[_0x4f729a([0x6f,0x6e])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38d026,_0x6454f)=>{if(_0x6454f[0x0]!=_0x3e1438)return _0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6454f[0x1]={..._0x6454f[0x1],[_0x4f729a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d51a1};},{[_0x4f729a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f729a([0x68,0x69,0x67,0x68])}),_0x351ac2[_0x4f729a([0x6f,0x6e])](_0x4f729a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cdf2b=>{_0x169600(_0x5cdf2b[_0x4f729a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f3fbf=!0x0,_0x295ab2(_0x5cdf2b[_0x4f729a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f729a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f729a([0x6c,0x6f,0x77])}),_0x50024d[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>{_0x2f3fbf||_0x4ceb44(_0x4f729a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x491f43(){return _0x351ac2[_0x4f729a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f729a([0x76,0x69,0x65,0x77])][_0x4f729a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f729a([0x61,0x75,0x74,0x6f]);}function _0x2747e6(){_0x351ac2[_0x4f729a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f729a([0x76,0x69,0x65,0x77])][_0x4f729a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f729a([0x61,0x75,0x74,0x6f]);}}function _0x3648fe(_0x3ab828){const _0x54fc0f=[new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58eab5=>setTimeout(_0x58eab5,0x3d1ee13^_0x87f8a7)),_0x50024d[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f65c7=>{let _0x45a447=0x0;_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x6f,0x6e])](_0x4f729a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x100bab,_0x584300)=>{_0x584300[0x0][_0x4f729a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45a447++,_0x45a447==(0x3d8d537^_0x87f8a7)&&(_0x1f65c7(),_0x100bab[_0x4f729a([0x6f,0x66,0x66])]());});}))];return window[_0x4f729a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f729a([0x72,0x61,0x63,0x65])](_0x54fc0f)[_0x4f729a([0x74,0x68,0x65,0x6e])](()=>_0x3ab828);}async function _0x5d83c9(){await _0x50024d,_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xefedb2,_0x351ac2[_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f729a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xefedb2,_0x351ac2[_0x4f729a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f729a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4bce7f(){return _0xa3b4bd(_0x4f729a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2c7e0f(_0x4f729a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f729a([0x73,0x74,0x61,0x74,0x65])]==_0x4f729a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1187be(){return _0xa3b4bd(_0x4f729a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x158db9(){return _0xa3b4bd(_0x4f729a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x54883c(_0x511265){const _0x389be9=_0x218cee();_0x351ac2[_0x389be9]=_0x4f729a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x511265,_0x511265!=_0x4f729a([0x56,0x61,0x6c,0x69,0x64])&&_0x5d83c9();}function _0x218cee(){const _0x54fabf=window[_0x4f729a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f729a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f729a([0x6e,0x6f,0x77])]())[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f729a([0x2e]),'');let _0x434202=_0x4f729a([0x52]);for(let _0x42a139=0x0;_0x42a139<_0x54fabf[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42a139+=0x2){let _0x1169f2=window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54fabf[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42a139,_0x42a139+0x2));_0x1169f2>=_0x21d511[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1169f2-=_0x21d511[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x434202+=_0x21d511[_0x1169f2];}return _0x434202;}function _0x3f367d(){const _0x9ba4a2=_0x4e5331[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e]));if(0x3!=_0x9ba4a2[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3756bc(_0x9ba4a2[0x1]);function _0x3756bc(_0x33ba3f){const _0x4a39da=_0x4c0b74(_0x33ba3f);return _0x4a39da&&_0x22d387()?_0x4a39da:null;function _0x22d387(){const _0x51ac8a=_0x4a39da[_0x4f729a([0x6a,0x74,0x69])],_0x1cf1fa=window[_0x4f729a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x51ac8a[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x51ac8a[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e6fea={..._0x4a39da,[_0x4f729a([0x6a,0x74,0x69])]:_0x51ac8a[_0x4f729a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x51ac8a[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e6fea[_0x4f729a([0x76,0x63])],_0x3dcc25(_0x3e6fea)==_0x1cf1fa;}}}async function _0x37b3ea(){let _0x3e2d37=!0x0;try{const _0x34250e=_0x4e5331[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])](_0x4f729a([0x2e])),[_0x3b3fb9,_0x2c7413,_0x132104]=_0x34250e;return _0x508769(_0x3b3fb9),await _0x327731(_0x3b3fb9,_0x2c7413,_0x132104),_0x3e2d37;}catch{return!0x1;}function _0x508769(_0x301ba6){const _0x557dae=_0x4c0b74(_0x301ba6);_0x557dae&&_0x557dae[_0x4f729a([0x61,0x6c,0x67])]==_0x4f729a([0x45,0x53,0x32,0x35,0x36])||(_0x3e2d37=!0x1);}async function _0x327731(_0x86c313,_0x4028cb,_0x2aea09){const _0x7e72f7=window[_0x4f729a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f729a([0x66,0x72,0x6f,0x6d])](_0x2b8874(_0x2aea09),_0x45a93f=>_0x45a93f[_0x4f729a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f6bd7=new window[(_0x4f729a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f729a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x86c313+_0x4f729a([0x2e])+_0x4028cb),_0x5b0029=window[_0x4f729a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f729a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5b0029)return;const _0x5c7924=await _0x5b0029[_0x4f729a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f729a([0x6a,0x77,0x6b]),_0x2884a8,{[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x45,0x43,0x44,0x53,0x41]),[_0x4f729a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f729a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5b0029[_0x4f729a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x45,0x43,0x44,0x53,0x41]),[_0x4f729a([0x68,0x61,0x73,0x68])]:{[_0x4f729a([0x6e,0x61,0x6d,0x65])]:_0x4f729a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c7924,_0x7e72f7,_0x4f6bd7)||(_0x3e2d37=!0x1);}}function _0x4c0b74(_0x434c86){return _0x434c86[_0x4f729a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f729a([0x65,0x79]))?JSON[_0x4f729a([0x70,0x61,0x72,0x73,0x65])](_0x2b8874(_0x434c86)):null;}function _0x2b8874(_0x206c99){return window[_0x4f729a([0x61,0x74,0x6f,0x62])](_0x206c99[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f729a([0x2b]))[_0x4f729a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f729a([0x2f])));}function _0x3dcc25(_0x7ce0e9){let _0x1ba8ec=0x1505;function _0x28cc47(_0x4bf37e){for(let _0x104eed=0x0;_0x104eed<_0x4bf37e[_0x4f729a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x104eed++){const _0x32832c=_0x4bf37e[_0x4f729a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x104eed);_0x1ba8ec=(_0x1ba8ec<<0x5)+_0x1ba8ec+_0x32832c,_0x1ba8ec&=_0x1ba8ec;}}function _0x49855a(_0x54e7fd){Array[_0x4f729a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54e7fd)?_0x54e7fd[_0x4f729a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x49855a):_0x54e7fd&&typeof _0x54e7fd==_0x4f729a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f729a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54e7fd)[_0x4f729a([0x73,0x6f,0x72,0x74])]()[_0x4f729a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14e2db,_0x50dad0])=>{_0x28cc47(_0x14e2db),_0x49855a(_0x50dad0);}):_0x28cc47(window[_0x4f729a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54e7fd));}return _0x49855a(_0x7ce0e9),_0x1ba8ec>>>0x0;}function _0x5885d9(_0x41247c){return _0x41247c[_0x4f729a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f729a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f729a([0x30]));}function _0x230f62(_0x220971){return _0x220971[_0x4f729a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f729a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f729a([0x6a,0x6f,0x69,0x6e])]('');}function _0xa3b4bd(_0x54c6d8){return _0x351ac2[_0x4f729a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f729a([0x68,0x61,0x73])](_0x54c6d8);}function _0x2c7e0f(_0x69365a){return _0x351ac2[_0x4f729a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f729a([0x67,0x65,0x74])](_0x69365a);}function _0xefedb2(){}function _0x4f729a(_0x5bec3e){return _0x5bec3e['map'](_0x24a4d1=>String['fromCharCode'](_0x24a4d1))['join']('');}_0x54883c(await _0x27f840());}(this);}set['adapter'](_0x28f56e){if(this['_adapter'])throw new _0x39508c('track-changes-adapter-already-set',this);this['_adapter']=_0x28f56e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x236c7f=!0x1,toJSON:_0x1678af=!0x1}={}){const _0x1002a4=[];for(const _0x2d0971 of this['_suggestions']['values']())_0x236c7f&&!_0x2d0971['isInContent']||_0x1002a4['push'](_0x2d0971);return _0x1678af?_0x1002a4['map'](_0x144849=>_0x144849['toJSON']()):_0x1002a4;}['getSuggestion'](_0x9d43bb){const _0xd4a870=this['_suggestions']['get'](_0x9d43bb);if(!_0xd4a870)throw new _0x39508c('track-changes-suggestion-not-found',this);return _0xd4a870;}['hasSuggestion'](_0x2fd56b){return this['_suggestions']['has'](_0x2fd56b);}['addSuggestionData'](_0x58402f){const {authorId:_0x370c92,id:_0x52f8c0,originalSuggestionId:_0x3e6ca4,attributes:_0x420d63}=_0x58402f,[_0x2aa028,_0x5d6643]=_0x58402f['type']['split'](':'),_0x10f937=this['_suggestions']['get'](_0x52f8c0)||this['_createSuggestion'](_0x2aa028,_0x5d6643,_0x52f8c0,_0x370c92,_0x420d63,_0x3e6ca4);if(this['_addThreadToSuggestion'](_0x10f937),this['_checkSuggestionCorrectness'](_0x10f937,_0x2aa028,_0x5d6643||null,_0x370c92),_0x10f937['createdAt']=_0x58402f['createdAt'],_0x10f937['_isDataLoaded']=!0x0,_0x420d63&&_0x420d63['@external']){const _0x360644=_0x420d63['@external'],_0x4e7d3a=this['_getExternalAuthor'](_0x360644['authorName']);_0x10f937['authoredAt']=_0x360644['createdAt'],_0x10f937['author']=_0x4e7d3a,_0x10f937['isExternal']=!0x0;}else _0x10f937['authoredAt']=_0x58402f['createdAt'];switch(_0x58402f['data']&&(_0x10f937['data']=_0x58402f['data']),_0x58402f['attributes']&&(_0x10f937['attributes']=_0x58402f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x10f937['_saved']=!0x0),this['_suggestionState']['get'](_0x10f937)){case'notReady':this['_suggestionState']['set'](_0x10f937,'dataReady');break;case'markerReady':_0x10f937['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x10f937])),this['_refreshSuggestionsChain'](new Set([_0x10f937])),this['_suggestionState']['set'](_0x10f937,'ready'),this['fire']('suggestionLoaded',_0x10f937)):this['_suggestionState']['set'](_0x10f937,'removed');}return _0x10f937;}['acceptSuggestion'](_0x4a0899){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x97446b of _0x4a0899['getAllAdjacentSuggestions']())_0x97446b['accept']();});});}['discardSuggestion'](_0x2fbb29){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1b2f9c of _0x2fbb29['getAllAdjacentSuggestions']())_0x1b2f9c['discard']();});});}['enableCommand'](_0x56f51c,_0x420524){const _0x1ae436=this['editor']['commands']['get'](_0x56f51c);if(!_0x1ae436)throw new _0x39508c('track-changes-command-not-found',this,{'commandName':_0x56f51c});if(this['_enabledCommands']['has'](_0x1ae436))throw new _0x39508c('track-changes-enable-command-twice',this,{'commandName':_0x56f51c});this['_enabledCommands']['add'](_0x1ae436),_0x420524&&_0x1ae436['on']('execute',(_0x56b32f,_0x347900)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x347900['length']>0x0&&_0x347900[_0x347900['length']-0x1]&&_0x347900[_0x347900['length']-0x1]['forceDefaultExecution']?_0x347900['pop']():(_0x56b32f['return']=_0x420524((..._0x5443f8)=>_0x1ae436['execute'](..._0x5443f8,{'forceDefaultExecution':!0x0}),..._0x347900),_0x56b32f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x6a6ab0){let _0x533ed5,_0x3f2d73;const _0x3b1b38=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x533ed5=_0x6a6ab0();}catch(_0x2af548){_0x3f2d73=_0x2af548;}return _0x3b1b38||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3f2d73&&_0x39508c['rethrowUnexpectedError'](_0x3f2d73,this),_0x533ed5;}['markInsertion'](_0x53367e,_0x16946c=null,_0x2f1c7b={}){if(_0x53367e['isCollapsed'])return null;const _0x11e12d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2f1c7b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5ddeac,meta:_0x131a8c}of this['_findSuggestions'](_0x53367e,'insertion'))if(_0x131a8c['isOwn']){if(!_0x131a8c['isNextTo']){if(_0x131a8c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x5ddeac,_0x2f1c7b))continue;return _0x5ddeac;}if(cn(_0x5ddeac,_0x2f1c7b))return _0x5ddeac;this['_breakSuggestionMarker'](_0x5ddeac,_0x53367e['start'],_0x53367e['end']);break;}if(_0x16946c==_0x5ddeac['subType']&&cn(_0x5ddeac,_0x2f1c7b)){const _0xcf253d=_0x5ddeac['getFirstRange']();return _0xcf253d['start']['isEqual'](_0x53367e['end'])?this['_setSuggestionRange'](_0x5ddeac,this['_model']['createRange'](_0x53367e['start'],_0xcf253d['end'])):this['_setSuggestionRange'](_0x5ddeac,this['_model']['createRange'](_0xcf253d['start'],_0x53367e['end'])),_0x5ddeac;}}const _0x3141fe=_0x5bdaf9(),_0x2b56ef=_0x11e12d['id'],_0x94b4b2=_0x16946c?'insertion:'+_0x16946c:'insertion',_0x580280=this['_setSuggestionData']({'id':_0x3141fe,'type':_0x94b4b2,'createdAt':new Date(),'authorId':_0x2b56ef,'attributes':_0x2f1c7b});return this['_addSuggestionMarker'](_0x94b4b2,_0x3141fe,_0x2b56ef,_0x53367e),_0x580280;}['markMultiRangeInsertion'](_0x526675,_0x274cef='multi',_0x2218f6={}){const _0x310c2f=this['editor']['plugins']['get']('Users')['me'],_0x351f8a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x274cef,'join');this['_trackingSessionId']&&(_0x2218f6['trackingSessionId']=this['_trackingSessionId']);for(const _0xe6658a of this['getSuggestions']())if(_0xe6658a['author']['id']==_0x310c2f['id']&&'insertion'==_0xe6658a['type']&&_0xe6658a['subType']==_0x274cef&&cn(_0xe6658a,_0x2218f6)&&(_0x351f8a(_0xe6658a['getRanges'](),_0x526675)||_0x351f8a(_0x526675,_0xe6658a['getRanges']()))){for(const _0x30bfe2 of _0x526675)_0xe6658a['addRange'](_0x30bfe2);return _0xe6658a;}for(const {suggestion:_0x2fb8e0,meta:_0x47e064}of this['_findSuggestions'](_0x526675,'insertion')){if(!_0x47e064['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x47e064['containsRangeInObject'])continue;if(!cn(_0x2fb8e0,_0x2218f6))continue;let _0x2c98ce=!0x0;for(const _0x523271 of _0x2fb8e0['getRanges']())for(const _0x5df548 of _0x526675)if(!_0x523271['containsRange'](_0x5df548)){_0x2c98ce=!0x1;break;}if(_0x2c98ce)return _0x2fb8e0;}const _0x48fc29=_0x5bdaf9(),_0x44b808=_0x310c2f['id'],_0x39188f='insertion:'+_0x274cef,_0x93bdab=this['_setSuggestionData']({'id':_0x48fc29,'type':_0x39188f,'createdAt':new Date(),'authorId':_0x44b808,'attributes':_0x2218f6});for(const _0x1410bc of _0x526675)this['_addSuggestionMarker'](_0x39188f,_0x48fc29,_0x44b808,_0x1410bc,bt['getMultiRangeId']());return _0x93bdab;}['markInlineFormat'](_0x177acc,_0x331f78,_0xad6ccf=null,_0x534a8d={}){if(_0xad6ccf=_0xad6ccf||Je(_0x331f78),_0x177acc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x534a8d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28400d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xad6ccf,'accept');return this['forceDefaultExecution'](()=>_0x28400d([_0x177acc],_0x331f78,_0x534a8d)),null;}const _0x1f0235=this['editor']['plugins']['get']('Users')['me'],_0x2a1572=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x742a56,meta:_0x15fb1b}of this['_findSuggestions'](_0x177acc,'insertion'))_0x15fb1b['isOwn']&&!_0x15fb1b['isInsideObject']&&_0x2a1572['push'](..._0x742a56['getRanges']());}const _0x2b8ee8=function(_0x2bf0a1,_0x31944f){const _0xc891e3=[];for(const _0x5e411c of _0x31944f){const _0x56cdf0=_0x2bf0a1['getIntersection'](_0x5e411c);_0x56cdf0&&_0xc891e3['push'](_0x56cdf0);}return _0xc891e3;}(_0x177acc,_0x2a1572),_0x507099=function(_0x544a5a,_0x1dd8d1){const _0x72d556=[_0x544a5a];for(const _0x2b5d78 of _0x1dd8d1){let _0x448cf2=0x0;for(;_0x448cf2<_0x72d556['length'];){const _0x416106=_0x72d556[_0x448cf2]['getDifference'](_0x2b5d78);_0x72d556['splice'](_0x448cf2,0x1,..._0x416106),_0x448cf2+=_0x416106['length'];}}return _0x72d556;}(_0x177acc,_0x2a1572);_0x2b8ee8['length']&&this['_model']['change'](()=>{for(const _0xe359bb of _0x2b8ee8){const _0x37a2dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xad6ccf,'accept');this['forceDefaultExecution'](()=>_0x37a2dc([_0xe359bb],_0x331f78,_0x534a8d));}});for(const _0x251850 of _0x507099){let _0x56aaa2=null,_0x4834c7=_0x251850['start'],_0x3050c7=_0x251850['end'];for(const {suggestion:_0x3fa72e,meta:_0x5436d1}of this['_findSuggestions'](_0x251850,'formatInline')){if(!_0x5436d1['isOwn'])continue;if(_0x3fa72e['subType']!=_0xad6ccf)continue;if(!cn(_0x3fa72e,_0x534a8d))continue;const _0xf78bae=_0x3fa72e['getFirstRange']();if(_0xf78bae['containsRange'](_0x251850,!0x0))return null;_0x4834c7=_0x4834c7['isBefore'](_0xf78bae['start'])?_0x4834c7:_0xf78bae['start'],_0x3050c7=_0x3050c7['isAfter'](_0xf78bae['end'])?_0x3050c7:_0xf78bae['end'],_0x56aaa2?_0xf78bae['start']['isBefore'](_0x56aaa2['getFirstRange']()['start'])?(_0x56aaa2['removeMarkers'](),_0x56aaa2=_0x3fa72e):_0x3fa72e['removeMarkers']():_0x56aaa2=_0x3fa72e;}const _0x533139=this['_model']['createRange'](_0x4834c7,_0x3050c7);if(_0x56aaa2)this['_setSuggestionRange'](_0x56aaa2,_0x533139);else{const _0x4f611d=_0x5bdaf9(),_0x22680a=_0x1f0235['id'];this['_setSuggestionData']({'id':_0x4f611d,'type':'formatInline:'+_0xad6ccf,'data':_0x331f78,'createdAt':new Date(),'authorId':_0x22680a,'attributes':_0x534a8d}),this['_addSuggestionMarker']('formatInline:'+_0xad6ccf,_0x4f611d,_0x22680a,_0x533139);}}return null;}['markBlockFormat'](_0x4c0f75,_0x183720,_0x54d759=[],_0x147a43=null,_0x30e281={}){_0x183720['formatGroupId']||(_0x183720['formatGroupId']=_0x183720['commandName']),_0x183720['multipleBlocks']=_0x4c0f75['is']('range'),_0x147a43=_0x147a43||Je(_0x183720);const _0x50d8de=_0x54d759['map'](_0x4e2ff7=>rn(_0x4e2ff7,this['_model'])),_0x59de06=_0x4c0f75['is']('range')?_0x4c0f75:rn(_0x4c0f75,this['_model']);if(this['_trackingSessionId']&&(_0x30e281['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xbc5548=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a43,'accept');return this['forceDefaultExecution'](()=>_0xbc5548([_0x59de06],_0x183720,_0x30e281)),null;}_0x50d8de['push'](_0x59de06);let _0x4a7d79=!0x0;for(const _0x2761da of _0x50d8de)if(!this['_rangeIsInLocalUserInsertion'](_0x2761da)){_0x4a7d79=!0x1;break;}if(_0x4a7d79&&'always'!==this['_trackFormatChanges']){const _0x17c404=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x147a43,'accept');return this['forceDefaultExecution'](()=>_0x17c404([_0x59de06],_0x183720,_0x30e281)),null;}let _0x41b27c=null,_0x495e24=_0x59de06['start'],_0x2fdc54=_0x59de06['end'];for(const {suggestion:_0x3360e7,meta:_0xb6362f}of this['_findSuggestions'](_0x59de06,'formatBlock')){if(!_0xb6362f['isOwn'])continue;if(_0xb6362f['isNextTo']||_0xb6362f['containsRangeInObject']||_0xb6362f['isInsideObject'])continue;if(_0x3360e7['data']['formatGroupId']!=_0x183720['formatGroupId'])continue;if(!cn(_0x3360e7,_0x30e281))continue;const _0x55ae7f=_0x3360e7['getFirstRange']();if(_0x3360e7['subType']==_0x147a43){if(_0x55ae7f['containsRange'](_0x59de06,!0x0))return null;_0x495e24=_0x495e24['isBefore'](_0x55ae7f['start'])?_0x495e24:_0x55ae7f['start'],_0x2fdc54=_0x2fdc54['isAfter'](_0x55ae7f['end'])?_0x2fdc54:_0x55ae7f['end'],_0x41b27c?_0x55ae7f['start']['isBefore'](_0x41b27c['getFirstRange']()['start'])?(_0x41b27c['removeMarkers'](),_0x41b27c=_0x3360e7):_0x3360e7['removeMarkers']():_0x41b27c=_0x3360e7;}else{const _0x486c63=_0x59de06['getIntersection'](_0x55ae7f);this['_cutOutSuggestionMarker'](_0x3360e7,_0x486c63);}}const _0x225c27=this['editor']['plugins']['get']('Users')['me'],_0x173211=_0x5bdaf9(),_0x380dfa=_0x225c27['id'];if(_0x41b27c)return this['_setSuggestionRange'](_0x41b27c,this['_model']['createRange'](_0x495e24,_0x2fdc54)),_0x41b27c;{const _0x3b099d=this['_setSuggestionData']({'id':_0x173211,'type':'formatBlock:'+_0x147a43,'data':_0x183720,'createdAt':new Date(),'authorId':_0x380dfa,'attributes':_0x30e281});return this['_addSuggestionMarker']('formatBlock:'+_0x147a43,_0x173211,_0x380dfa,this['_model']['createRange'](_0x495e24,_0x2fdc54)),_0x3b099d;}}['markMultiRangeBlockFormat'](_0xc4fc5b,_0x403247,_0xe2b0b7=[],_0x108de2=null,_0x15cc4d={}){_0x403247['formatGroupId']||(_0x403247['formatGroupId']=_0x403247['commandName']);const _0x2f2fcd=_0xc4fc5b[0x0];_0x403247['multipleBlocks']=_0x2f2fcd['is']('range'),_0x108de2=_0x108de2||Je(_0x403247);const _0x1c48d2=_0xe2b0b7['map'](_0xd11448=>rn(_0xd11448,this['_model'])),_0x2fdf92=_0x2f2fcd['is']('range')?_0xc4fc5b:_0xc4fc5b['map'](_0x25e5da=>rn(_0x25e5da,this['_model']));if(this['_trackingSessionId']&&(_0x15cc4d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x31a31c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'accept');return this['forceDefaultExecution'](()=>_0x31a31c(_0x2fdf92,_0x403247,_0x15cc4d)),null;}_0x1c48d2['push'](..._0x2fdf92);let _0x5a581c=!0x0;for(const _0x5ee458 of _0x1c48d2)if(!this['_rangeIsInLocalUserInsertion'](_0x5ee458)){_0x5a581c=!0x1;break;}if(_0x5a581c&&'always'!==this['_trackFormatChanges']){const _0x30797a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'accept');return this['forceDefaultExecution'](()=>_0x30797a(_0x2fdf92,_0x403247,_0x15cc4d)),null;}const _0x4d4a9e=this['editor']['plugins']['get']('Users')['me'];for(const _0x4d2391 of this['getSuggestions']()){const _0x4f6f41=_0x4d2391['data'];if(_0x4d2391['author']['id']!=_0x4d4a9e['id'])continue;if('formatBlock'!=_0x4d2391['type']||_0x4f6f41['formatGroupId']!=_0x403247['formatGroupId'])continue;if(!cn(_0x4d2391,_0x15cc4d))continue;const _0x3daa3d=_0x4d2391['subType']==_0x108de2;for(let _0x5910ed=0x0;_0x5910ed<_0x2fdf92['length'];_0x5910ed++){const _0x4795ca=_0x2fdf92[_0x5910ed];for(const _0x36a802 of _0x4d2391['getMarkers']()){const _0x2a07d3=_0x36a802['getRange']();if(_0x4795ca['isEqual'](_0x2a07d3)){_0x3daa3d?(_0x2fdf92['splice'](_0x5910ed,0x1),_0x5910ed--):_0x4d2391['removeMarker'](_0x36a802['name']);break;}}}}if(0x0==_0x2fdf92['length'])return null;const _0x119705=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x108de2,'join');for(const _0x2c5b57 of this['getSuggestions']()){const _0x2bb9c=_0x2c5b57['data'];if(_0x2c5b57['author']['id']==_0x4d4a9e['id']&&('formatBlock'==_0x2c5b57['type']&&_0x2bb9c['formatGroupId']==_0x403247['formatGroupId']&&_0x2c5b57['subType']==_0x108de2&&cn(_0x2c5b57,_0x15cc4d)&&(_0x119705(_0x2c5b57['getRanges'](),_0x2fdf92)||_0x119705(_0x2fdf92,_0x2c5b57['getRanges']())))){for(const _0x48cf92 of _0x2fdf92)_0x2c5b57['addRange'](_0x48cf92);return _0x2c5b57;}}const _0x4ed611=_0x5bdaf9(),_0x4fdde4=_0x4d4a9e['id'],_0xb8ac52='formatBlock:'+_0x108de2,_0x27b518=this['_setSuggestionData']({'id':_0x4ed611,'type':_0xb8ac52,'data':_0x403247,'createdAt':new Date(),'authorId':_0x4fdde4,'attributes':_0x15cc4d});for(const _0x3d4784 of _0x2fdf92)this['_addSuggestionMarker'](_0xb8ac52,_0x4ed611,_0x4fdde4,_0x3d4784,bt['getMultiRangeId']());return _0x27b518;}['markDeletion'](_0x1cad06,_0x3cd3bd=null,_0x28bf21={}){if(_0x1cad06['isCollapsed'])return null;const _0x5ae477=this['editor']['plugins']['get']('Users')['me'],_0x55c6c4=new _0x2db68d(_0x1cad06['start'],_0x1cad06['end']);this['_trackingSessionId']&&(_0x28bf21['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x38ae9e,meta:_0x5e1c21}of this['_findSuggestions'](_0x55c6c4,'insertion'))if(_0x5e1c21['isOwn']&&!_0x5e1c21['isNextTo']){if(_0x38ae9e['isMultiRange']){const _0x119101=_0x38ae9e['getRanges']()['filter'](_0x439959=>'$graveyard'!=_0x439959['root']['rootName']);_0x119101['every'](_0x381ba0=>_0x55c6c4['containsRange'](_0x381ba0,!0x0))&&_0x38ae9e['discard']();if(_0x119101['some'](_0x1c6082=>_0x1c6082['containsRange'](_0x55c6c4,!0x0))){const _0x20f79f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3cd3bd,'accept');return this['forceDefaultExecution'](()=>_0x20f79f([_0x55c6c4],null,_0x28bf21)),null;}}else{const _0x3f143d=_0x55c6c4['getIntersection'](_0x38ae9e['getFirstRange']());null!==_0x3f143d&&_0x38ae9e['_onDiscard']([_0x3f143d],null,_0x28bf21);}}if(_0x55c6c4['detach'](),_0x55c6c4['isCollapsed']||'$graveyard'==_0x55c6c4['root']['rootName'])return null;let _0x2d4d35=null,_0x37da35=_0x55c6c4['start'],_0xc1ab85=_0x55c6c4['end'];const _0x46a06c=this['_findSuggestions'](_0x55c6c4,'deletion');for(const {suggestion:_0x142fed,meta:_0x548e12}of _0x46a06c){const _0x202525=this['_model']['createRange'](_0x37da35,_0xc1ab85);if(_0x548e12['isOwn']&&(this['_mergeNestedSuggestions']||!_0x548e12['containsRangeInObject']&&!_0x548e12['isInsideObject'])){if(_0x142fed['isMultiRange']){if(!cn(_0x142fed,_0x28bf21))continue;let _0x1fa30f=!0x0;for(const _0x5f2701 of _0x142fed['getRanges']()){if(_0x5f2701['containsRange'](_0x202525,!0x0))return _0x142fed;_0x202525['containsRange'](_0x5f2701)||(_0x1fa30f=!0x1);}_0x1fa30f&&_0x142fed['discard']();}else{const _0x2642e0=_0x142fed['getFirstRange']();if(_0x2642e0['containsRange'](_0x202525,!0x0))return _0x142fed;if(!cn(_0x142fed,_0x28bf21)){_0x202525['containsRange'](_0x2642e0)?_0x142fed['removeMarkers']():_0x2642e0['containsPosition'](_0x37da35)?_0x37da35=_0x2642e0['end']:_0x2642e0['containsPosition'](_0xc1ab85)&&(_0xc1ab85=_0x2642e0['start']);continue;}_0x37da35=_0x37da35['isBefore'](_0x2642e0['start'])?_0x37da35:_0x2642e0['start'],_0xc1ab85=_0xc1ab85['isAfter'](_0x2642e0['end'])?_0xc1ab85:_0x2642e0['end'],_0x28bf21=Object['assign']({},_0x142fed['attributes']),_0x2d4d35?_0x2642e0['start']['isBefore'](_0x2d4d35['getFirstRange']()['start'])?(_0x2d4d35['removeMarkers'](),_0x2d4d35=_0x142fed):_0x142fed['removeMarkers']():_0x2d4d35=_0x142fed;}}}if(_0x2d4d35)return this['_setSuggestionRange'](_0x2d4d35,this['_model']['createRange'](_0x37da35,_0xc1ab85)),_0x2d4d35;{const _0x5e7dad=_0x5bdaf9(),_0x5eaf94=this['_model']['createRange'](_0x37da35,_0xc1ab85),_0xf26b07=_0x5ae477['id'],_0x51583c=_0x3cd3bd?'deletion:'+_0x3cd3bd:'deletion',_0x1754f8=this['_setSuggestionData']({'id':_0x5e7dad,'type':_0x51583c,'createdAt':new Date(),'authorId':_0xf26b07,'attributes':_0x28bf21});return this['_addSuggestionMarker'](_0x51583c,_0x5e7dad,_0xf26b07,_0x5eaf94),_0x1754f8;}}['markMultiRangeDeletion'](_0x5ddaa5,_0x16e132='multi',_0x57a4fc={}){const _0x426575=this['editor']['plugins']['get']('Users')['me'],_0x55b350=_0x5ddaa5['map'](_0x37e76d=>new _0x2db68d(_0x37e76d['start'],_0x37e76d['end'])),_0x24d6b1=new Set();this['_trackingSessionId']&&(_0x57a4fc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b40b1,meta:_0x518cda}of this['_findSuggestions'](_0x55b350,'insertion'))_0x518cda['isOwn']&&!_0x518cda['isNextTo']&&_0x24d6b1['add'](_0x5b40b1);for(const _0x337708 of _0x24d6b1)if(_0x337708['isMultiRange']){const _0xb930ea=_0x337708['getRanges']();(!_0x337708['attributes']||!_0x337708['attributes']['skipNestingCheck'])&&(_0xb930ea['every'](_0x161966=>_0x55b350['some'](_0x4074ac=>_0x4074ac['containsRange'](_0x161966,!0x0)))&&_0x337708['discard']());if(_0x55b350['every'](_0x53d57b=>_0xb930ea['some'](_0x1816c6=>_0x1816c6['containsRange'](_0x53d57b,!0x0)))){const _0x565046=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'accept');return this['forceDefaultExecution'](()=>_0x565046(_0x5ddaa5,null,_0x57a4fc)),null;}}else{const _0x4c54f9=_0x337708['getFirstRange']();_0x55b350['some'](_0x244b5d=>_0x244b5d['containsRange'](_0x4c54f9,!0x0))&&_0x337708['discard']();if(_0x55b350['every'](_0x2ef894=>_0x4c54f9['containsRange'](_0x2ef894,!0x0))){const _0x9c55b0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'accept');return this['forceDefaultExecution'](()=>_0x9c55b0(_0x55b350,null,_0x57a4fc)),null;}}const _0x248197=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16e132,'join');let _0x46af78=null;for(const _0x4110e9 of this['getSuggestions']())if(_0x4110e9['author']['id']==_0x426575['id']&&_0x4110e9['isInContent']&&'deletion'==_0x4110e9['type']&&_0x4110e9['subType']==_0x16e132&&cn(_0x4110e9,_0x57a4fc)&&(_0x248197(_0x4110e9['getRanges'](),_0x55b350)||_0x248197(_0x55b350,_0x4110e9['getRanges']()))){if(_0x46af78){if(_0x4110e9['commentThread']&&_0x4110e9['commentThread']['length'])continue;for(const _0x5af4b4 of _0x4110e9['getRanges']())_0x46af78['isIntersectingWithRange'](_0x5af4b4)||_0x46af78['addRange'](_0x5af4b4);_0x4110e9['removeMarkers']();}else{_0x46af78=_0x4110e9;for(const _0xa7fa68 of _0x55b350)_0x4110e9['isIntersectingWithRange'](_0xa7fa68)||_0x4110e9['addRange'](_0xa7fa68);}}if(_0x46af78)return _0x46af78;_0x24d6b1['clear']();for(const {suggestion:_0x5508e2,meta:_0x14f4f7}of this['_findSuggestions'](_0x55b350,'deletion'))_0x14f4f7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14f4f7['containsRangeInObject']&&!_0x14f4f7['isInsideObject'])&&cn(_0x5508e2,_0x57a4fc)&&_0x24d6b1['add'](_0x5508e2);for(const _0x465dc7 of _0x24d6b1){const _0x53051e=_0x465dc7['getRanges']();if(!_0x57a4fc||!_0x57a4fc['skipNestingCheck']){if(_0x55b350['every'](_0x218f9c=>_0x53051e['some'](_0x1a2f17=>_0x1a2f17['containsRange'](_0x218f9c,!0x0))))return _0x465dc7;}(!_0x465dc7['attributes']||!_0x465dc7['attributes']['skipNestingCheck'])&&(_0x53051e['every'](_0x569d2e=>_0x55b350['some'](_0x2971a8=>_0x2971a8['containsRange'](_0x569d2e,!0x0)))&&_0x465dc7['discard']());}const _0xa8c455=_0x5bdaf9(),_0x3af975=_0x426575['id'],_0x3d523a='deletion:'+_0x16e132,_0x118b53=this['_setSuggestionData']({'id':_0xa8c455,'type':_0x3d523a,'createdAt':new Date(),'authorId':_0x3af975,'attributes':_0x57a4fc});for(const _0xd72dcc of _0x55b350)_0xd72dcc['detach'](),_0xd72dcc['isCollapsed']||'$graveyard'==_0xd72dcc['root']['rootName']||this['_addSuggestionMarker'](_0x3d523a,_0xa8c455,_0x3af975,_0xd72dcc,bt['getMultiRangeId']());return _0x118b53;}['markAttributeChange'](_0x341370,_0x27f898,_0x124d8a,_0x5c0f15,_0x51e958){if(_0x341370['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x537a59=this['editor']['plugins']['get']('Users')['me']['id'],_0x561844=Array['from'](this['_suggestions']['values']())['filter'](_0x1b0121=>'attribute'==_0x1b0121['type']&&_0x1b0121['data']['key']==_0x27f898&&_0x1b0121['isIntersectingWithRange'](_0x341370));if(this['_trackingSessionId']&&(_0x51e958['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x48e51e=this['_findSuggestions'](_0x341370,'insertion')['filter'](({meta:_0x354db8})=>_0x354db8['isOwn']&&!_0x354db8['isInsideObject']&&!_0x354db8['isNextTo'])['map'](({suggestion:_0x33c972})=>_0x33c972);_0x561844['unshift'](..._0x48e51e);}const _0x5a3e9a=new Map([[_0x341370,_0x124d8a]]);for(const _0x2e0498 of _0x561844){const _0x49241e='attribute'==_0x2e0498['type']?_0x2e0498['data']['oldValue']:void 0x0,_0x3429db=_0x2e0498['getFirstRange'](),_0x539c69=Array['from'](_0x5a3e9a['keys']())['find'](_0x4a761a=>_0x4a761a['isIntersecting'](_0x3429db));if(!_0x539c69)continue;const _0x36cff1=_0x539c69['getDifference'](_0x3429db);this['_suggestionsConversion']['isBlockAttribute'](_0x27f898)&&'insertion'==_0x2e0498['type']&&0x0!=_0x36cff1['length']||(_0x5a3e9a['delete'](_0x539c69),_0x36cff1['forEach'](_0x49f7db=>{_0x5a3e9a['set'](_0x49f7db,_0x124d8a);}),'insertion'!=_0x2e0498['type']&&_0x49241e!=_0x5c0f15&&_0x5a3e9a['set'](_0x539c69['getIntersection'](_0x3429db),_0x49241e));}const _0x4cc3b4=[];for(const [_0x2267d9,_0x43fba1]of _0x5a3e9a){const _0x391eca=_0x5bdaf9(),_0x378362={'key':_0x27f898,'oldValue':_0x43fba1,'newValue':_0x5c0f15};_0x27f898['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':_0x27f898});const _0xb45fb7=('attribute:'+(_0x27f898+'|'+Je({'newValue':_0x5c0f15})))['substring'](0x0,0x3c),_0x11aa90=this['_setSuggestionData']({'id':_0x391eca,'type':_0xb45fb7,'data':_0x378362,'createdAt':new Date(),'authorId':_0x537a59,'attributes':_0x51e958});_0x4cc3b4['push'](_0x11aa90),this['_addSuggestionMarker'](_0xb45fb7,_0x391eca,_0x537a59,_0x2267d9);}return _0x4cc3b4;}['enableDefaultAttributesIntegration'](_0x37651e){this['enableCommand'](_0x37651e,(_0x51aabc,..._0x1994c9)=>{this['recordAttributeChanges'](()=>{_0x51aabc(..._0x1994c9);});});}['startTrackingSession'](_0x55568e){return this['_trackingSessionId']=void 0x0!==_0x55568e?_0x55568e:_0x5bdaf9(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b0817){return'attribute'==_0x2b0817['type']?un(_0x2b0817['subType']):null;}['_applyOperationsAsSuggestions'](_0x4a3125){if(0x0==_0x4a3125['length'])return;const _0x38a728=this['editor'],_0x11e987=_0x38a728['plugins']['get'](_0x5e953e),_0x180570=[];_0x38a728['model']['change'](_0x4793e2=>{for(let _0x30d545=0x0;_0x30d545<_0x4a3125['length'];_0x30d545++){const _0x5d1d80=_0x4a3125[_0x30d545];if(_0x5d1d80['baseVersion']=_0x38a728['model']['document']['version'],_0x5d1d80['isDocumentOperation']=!0x0,_0x11e987['isMarkedRemoveOperation'](_0x5d1d80)){const _0x1ab227=_0x40840e(_0x5d1d80['newRange'],_0x38a728['model']);_0x180570['unshift'](_0x2db68d['fromRange'](_0x1ab227));}else switch(_0x5d1d80['type']){case'rename':{const _0x15f344=_0x5d1d80['oldName'],_0xe690b=_0x5d1d80['newName'];if(_0x15f344==_0xe690b)break;_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x445406='$elementName',_0x44b94d=_0x5d1d80['position'],_0x154a3c=_0x38a728['model']['createRange'](_0x44b94d,_0x38a728['model']['createPositionAt'](_0x44b94d['nodeAfter'],'end'));this['markAttributeChange'](_0x154a3c,_0x445406,_0x15f344,_0xe690b,{'groupId':_0x5bdaf9()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xcaaf52=_0x5d1d80['oldValue'],_0xaa79a8=_0x5d1d80['newValue'];if(_0xcaaf52==_0xaa79a8)break;_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x4f9bfe=_0x5d1d80['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4f9bfe))break;const _0x5f7760=_0x40840e(_0x5d1d80['range'],_0x38a728['model']);this['markAttributeChange'](_0x5f7760,_0x4f9bfe,_0xcaaf52,_0xaa79a8,{'groupId':_0x5bdaf9()});break;}case'insert':{_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);if(_0x4a3125[_0x30d545+0x1]&&'move'==_0x4a3125[_0x30d545+0x1]['type'])break;const _0x3a4190=_0x5d1d80['position'],_0x5f004b=_0x5d1d80['howMany'],_0xf1d014=_0x40840e(_0x38a728['model']['createRange'](_0x3a4190,_0x3a4190['getShiftedBy'](_0x5f004b)),_0x38a728['model']);this['markInsertion'](_0xf1d014);break;}case'split':{_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);const _0x3de26a=_0x5d1d80['splitPosition'],_0x1e89ab=_0x5d1d80['moveTargetPosition'];this['markInsertion'](_0x38a728['model']['createRange'](_0x3de26a,_0x1e89ab));break;}case'move':case'remove':_0x4793e2['batch']['addOperation'](_0x5d1d80),_0x38a728['model']['applyOperation'](_0x5d1d80);}}for(const _0x3be639 of _0x180570)_0x3be639['detach'](),this['markDeletion'](_0x3be639);});}['_setSuggestionRange'](_0x5b822c,_0xe25363){const _0x1abf71=_0x5b822c['getFirstMarker']();this['_model']['change'](_0x53f478=>{_0x53f478['updateMarker'](_0x1abf71,{'range':_0xe25363});});}['_addThreadToSuggestion'](_0x52dca2){const _0x334a42=_0x52dca2['id'],_0x1fe008=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x334a42)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1fe008,'threadId':_0x334a42,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1933a3=this['_commentsRepository']['getCommentThread'](_0x334a42);_0x1933a3['unbind']('isRemovable'),_0x1933a3['isRemovable']=!0x1,_0x52dca2['commentThread']=_0x1933a3;}['_checkSuggestionCorrectness'](_0x44cce3,_0xa8dae5,_0x41ed5a,_0xfc30f7){if(_0x44cce3['type']!=_0xa8dae5||_0x44cce3['subType']!=_0x41ed5a||_0x44cce3['creator']['id']!=_0xfc30f7)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x39508c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x42e0b6,_0x27d20c){const _0x468fce=_0x42e0b6['getFirstRange']();if(_0x27d20c['isEqual'](_0x468fce))_0x42e0b6['removeMarkers']();else{if(_0x468fce['containsRange'](_0x27d20c)){const _0x39f431=this['_model']['createPositionAt'](_0x27d20c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x468fce['start'],_0x39f431));const _0x44dd1b=_0x5bdaf9(),_0x1d5147=_0x42e0b6['creator']['id'],_0x4b830b=_0x42e0b6['type']+':'+_0x42e0b6['subType'];this['_setSuggestionData']({'id':_0x44dd1b,'type':_0x4b830b,'createdAt':new Date(),'authorId':_0x1d5147,'data':_0x42e0b6['data'],'attributes':_0x42e0b6['attributes']});const _0x2b4614=this['_model']['createPositionAt'](_0x27d20c['end']['parent'],'after'),_0x54b641=this['_model']['createRange'](_0x2b4614,_0x468fce['end']);this['_addSuggestionMarker'](_0x4b830b,_0x44dd1b,_0x1d5147,_0x54b641);}else{if(_0x468fce['containsPosition'](_0x27d20c['start'])){const _0x542ed9=this['_model']['createPositionAt'](_0x27d20c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x468fce['start'],_0x542ed9));}else{const _0x40c5f1=this['_model']['createPositionAt'](_0x27d20c['end']['parent'],'after');this['_setSuggestionRange'](_0x42e0b6,this['_model']['createRange'](_0x40c5f1,_0x468fce['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x35ccf6){for(const {suggestion:_0x976c06,meta:_0x5c3dfb}of this['_findSuggestions'](_0x35ccf6,'insertion')){if(!_0x5c3dfb['isOwn'])continue;const _0x439f63=_0x976c06['getRanges']();for(const _0x239d76 of _0x439f63)if(!_0x35ccf6['getDifference'](_0x239d76)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x259b64){return this['editor']['plugins']['get']('Users')['getUser'](_0x259b64);}['_getExternalAuthor'](_0x54580c){const _0x189c1b=this['editor']['plugins']['get']('Users'),_0x383d91=_0x2461a5('external:'+_0x54580c),_0x31ea44=_0x189c1b['getUser'](_0x383d91);return _0x31ea44||_0x189c1b['addUser']({'id':_0x383d91,'name':_0x54580c});}['_createSuggestion'](_0x5014e7,_0x12e0da,_0x43397c,_0x427ec0,_0x19d9d6,_0x3c9249){const _0x5eabc8=this['_getAuthorFromId'](_0x427ec0);if(!_0x5eabc8)throw new _0x39508c('track-changes-user-not-found',this,{'authorId':_0x427ec0,'suggestionId':_0x43397c});const _0xba4db7=this['_suggestionFactory']['buildSuggestion'](_0x5014e7,_0x12e0da,_0x43397c,_0x5eabc8,_0x19d9d6,_0x20ce96=>{this['_updateSuggestionData'](_0x43397c,{'attributes':_0x20ce96});const _0x39d7e5=this['getSuggestion'](_0x43397c);this['_joinWithAdjacentSuggestions'](new Set([_0x39d7e5])),this['_refreshSuggestionsChain'](new Set([_0x39d7e5]));},_0x3c9249);return this['listenTo'](_0xba4db7,'accept',()=>{this['_updateSuggestionData'](_0x43397c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xba4db7,'discard',()=>{this['_updateSuggestionData'](_0x43397c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x43397c,_0xba4db7),this['_suggestionState']['set'](_0xba4db7,'notReady'),_0xba4db7;}['_breakSuggestionMarker'](_0x2841e0,_0x53da81,_0x163e16){const _0x4f698b=_0x2841e0['getFirstRange'](),_0x54c6cd=_0x4f698b['start'],_0x1a2555=_0x4f698b['end'];this['_setSuggestionRange'](_0x2841e0,this['_model']['createRange'](_0x54c6cd,_0x53da81));const _0x22eb3b=_0x5bdaf9(),_0x362058=_0x2841e0['creator']['id'],_0x2fe9b2=_0x2841e0['type']+(_0x2841e0['subType']?':'+_0x2841e0['subType']:'');this['_setSuggestionData']({'id':_0x22eb3b,'type':_0x2fe9b2,'createdAt':new Date(),'authorId':_0x362058,'originalSuggestionId':_0x2841e0['_originalSuggestionId']||_0x2841e0['id'],'attributes':_0x2841e0['attributes'],'data':_0x2841e0['data']});const _0x3cad52=this['_getAttributeKey'](_0x2841e0);('formatBlock'==_0x2841e0['type']||_0x3cad52&&this['_suggestionsConversion']['isBlockAttribute'](_0x3cad52))&&(_0x163e16=this['_model']['createPositionBefore'](_0x163e16['parent'])),this['_addSuggestionMarker'](_0x2fe9b2,_0x22eb3b,_0x362058,this['_model']['createRange'](_0x163e16,_0x1a2555));}['_findSuggestions'](_0x4700d9,_0x39d971=null){const _0x577a57=[],_0x5a3d53=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4700d9)||(_0x4700d9=[_0x4700d9]);for(const _0x13f05e of this['getSuggestions']()){if(!_0x13f05e['isInContent'])continue;if(_0x39d971&&_0x13f05e['type']!=_0x39d971)continue;let _0x126300=!0x1;for(const _0x561bf0 of _0x13f05e['getRanges']()){for(const _0x4b9bbb of _0x4700d9){const _0x110c41=_0x4b9bbb['start']['isEqual'](_0x561bf0['end'])||_0x4b9bbb['end']['isEqual'](_0x561bf0['start']);if(_0x110c41||_0x4b9bbb['getIntersection'](_0x561bf0)){const _0x489dc3=_0x4b9bbb['containsRange'](_0x561bf0)&&qe(this['_model']['schema'],_0x561bf0['start'],_0x4b9bbb),_0x4c1380=_0x561bf0['containsRange'](_0x4b9bbb)&&qe(this['_model']['schema'],_0x4b9bbb['start'],_0x561bf0);_0x577a57['push']({'suggestion':_0x13f05e,'meta':{'isOwn':_0x5a3d53==_0x13f05e['author'],'isNextTo':_0x110c41,'isInsideObject':_0x489dc3,'containsRangeInObject':_0x4c1380}}),_0x126300=!0x0;break;}}if(_0x126300)break;}}return _0x577a57;}['_addSuggestionMarker'](_0x3d8d86,_0x1a0a7f,_0x36adb0,_0x5db382,_0x38c0f2){this['_model']['change'](_0x4e5e66=>{let _0x2e0fa4='suggestion:'+_0x3d8d86+':'+_0x1a0a7f+':'+_0x36adb0;_0x38c0f2&&(_0x2e0fa4=_0x2e0fa4+':'+_0x38c0f2),_0x4e5e66['addMarker'](_0x2e0fa4,{'range':_0x5db382,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x40cc6d){const _0x3f8089=_0x40cc6d['previous'],_0x3a9c7a=_0x40cc6d['next'];_0x40cc6d['previous']=null,_0x40cc6d['next']=null,null!=_0x3f8089&&_0x3f8089['next']==_0x40cc6d&&(_0x3f8089['next']=_0x3a9c7a),null!=_0x3a9c7a&&_0x3a9c7a['previous']==_0x40cc6d&&(_0x3a9c7a['previous']=_0x3f8089),'ready'==this['_suggestionState']['get'](_0x40cc6d)&&(this['_suggestionState']['set'](_0x40cc6d,'removed'),this['fire']('suggestionUnloaded',_0x40cc6d,_0x3f8089,_0x3a9c7a));}['_setSuggestionData'](_0x5ab2bc){const _0x11decf=_0x5ab2bc['id'],_0x5660be=this['addSuggestionData'](_0x5ab2bc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x399ef1=this['editor']['plugins']['get']('PendingActions'),_0x5f26df=_0x5660be['hasComments'],_0x59fb5f=_0x5660be['subType']?_0x5660be['type']+':'+_0x5660be['subType']:_0x5660be['type'],_0x5212c9=this['editor']['locale'],_0x48b1d1=_0x399ef1['add'](At(_0x5212c9,'PENDING_ACTION_SUGGESTION')),_0x35b302={'id':_0x11decf,'type':_0x59fb5f,'hasComments':_0x5f26df,'data':_0x5ab2bc['data']||null,'originalSuggestionId':_0x5ab2bc['originalSuggestionId']||null,'attributes':_0x5660be['attributes']};this['_adapter']['addSuggestion'](_0x35b302)['then'](_0x452c31=>{_0x5660be['_saved']=!0x0,_0x399ef1['remove'](_0x48b1d1),_0x452c31&&_0x452c31['createdAt']&&(this['_suggestions']['get'](_0x11decf)['createdAt']=_0x452c31['createdAt']);})['catch'](_0x268fb0=>{throw _0x995e46('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5660be['discard']();}),_0x5660be['stopListening'](),this['_suggestions']['delete'](_0x5660be['id']),this['_suggestionState']['delete'](_0x5660be),_0x268fb0;});}return _0x5660be;}['_updateSuggestionData'](_0x49a337,_0x44e9c0){const _0x23e531=this['editor']['plugins']['get']('PendingActions'),_0x48ced5=this['getSuggestion'](_0x49a337);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48ced5['_saved']){const _0xb59b87=_0x23e531['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x49a337,_0x44e9c0)['then'](()=>{_0x23e531['remove'](_0xb59b87);});}else _0x48ced5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x49a337,_0x44e9c0);});}}['_getSuggestionData'](_0x10fd26){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x39508c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x10fd26);}['_handleNewSuggestionMarker'](_0x16800d){const {id:_0x5bd6f0,type:_0x25f653,subType:_0x5bddcd,authorId:_0x2cefec}=_0x4e67eb(_0x16800d),_0x35fb3b=this['_suggestions']['get'](_0x5bd6f0)||this['_createSuggestion'](_0x25f653,_0x5bddcd,_0x5bd6f0,_0x2cefec,{});switch(this['_checkSuggestionCorrectness'](_0x35fb3b,_0x25f653,_0x5bddcd,_0x2cefec),this['_suggestionState']['get'](_0x35fb3b)){case'notReady':this['_getSuggestionData'](_0x5bd6f0)['then'](_0x1e4274=>{let _0x519f1a=Promise['resolve']();_0x1e4274['hasComments']&&(_0x519f1a=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5bd6f0})),_0x519f1a['then'](()=>{this['addSuggestionData'](_0x1e4274)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35fb3b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5bd6f0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35fb3b,'ready'),this['fire']('suggestionLoaded',_0x35fb3b);break;case'ready':this['fire']('suggestionChanged',_0x35fb3b);}return _0x35fb3b['addMarkerName'](_0x16800d),_0x35fb3b;}['_refreshSuggestionsChain'](_0x359259){const _0x3f7e70=Array['from'](_0x359259),_0x3d0739=_0x3f7e70['filter'](_0x3afb0f=>'attribute'==_0x3afb0f['type']);this['_refreshAttributeSuggestionsChain'](_0x3d0739);const _0x2c15c0=_0x3f7e70['filter'](_0x186edb=>!_0x186edb['isMultiRange']&&'attribute'!=_0x186edb['type']),_0x7a76fe=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46caae=>!_0x46caae['isMultiRange']&&'attribute'!=_0x46caae['type']),_0x5a363c=_0x7a76fe['filter'](_0x1080c8=>!_0x359259['has'](_0x1080c8)),_0xa98c60=new Map(_0x7a76fe['map'](_0x4149d3=>[_0x4149d3,this['_suggestionFactory']['getSuggestionCallback'](_0x4149d3['type'],_0x4149d3['subType'],'chain')])),_0x1503a0=new Map(_0x7a76fe['map'](_0x3a1af4=>[_0x3a1af4,_0x3a1af4['getFirstRange']()])),_0x3ef736=new Set(),_0x10ae5b=new Set();for(let _0x1b65f0=0x0;_0x1b65f0<_0x2c15c0['length'];_0x1b65f0++)_0x70cd06(_0x2c15c0[_0x1b65f0],_0x2c15c0,_0x1b65f0+0x1);for(let _0x477c6e=0x0;_0x477c6e<_0x2c15c0['length'];_0x477c6e++)_0x70cd06(_0x2c15c0[_0x477c6e],_0x5a363c,0x0);const _0x53f226=new Set();for(let _0x123d6b=0x0;_0x123d6b<_0x2c15c0['length'];_0x123d6b++){const _0x3af6a0=_0x2c15c0[_0x123d6b];!_0x10ae5b['has'](_0x3af6a0)&&_0x3af6a0['previous']&&(_0x53f226['add'](_0x3af6a0['previous']),_0x3af6a0['previous']['next']===_0x3af6a0&&(_0x3af6a0['previous']['next']=null),_0x3af6a0['previous']=null),!_0x3ef736['has'](_0x3af6a0)&&_0x3af6a0['next']&&(_0x53f226['add'](_0x3af6a0['next']),_0x3af6a0['next']['previous']===_0x3af6a0&&(_0x3af6a0['next']['previous']=null),_0x3af6a0['next']=null);}function _0x70cd06(_0x2b698b,_0x204696,_0x4a34d3){for(let _0x4a7cbb=_0x4a34d3;_0x4a7cbb<_0x204696['length'];_0x4a7cbb++){const _0x2d1c19=_0x53a721(_0x2b698b,_0x204696[_0x4a7cbb]);_0x2d1c19&&(_0x2d1c19[0x0]['next']=_0x2d1c19[0x1],_0x2d1c19[0x1]['previous']=_0x2d1c19[0x0],_0x3ef736['add'](_0x2d1c19[0x0]),_0x10ae5b['add'](_0x2d1c19[0x1]));}}function _0x53a721(_0x526381,_0x7312cb){if(_0x526381['author']['id']!==_0x7312cb['author']['id'])return null;const _0x3d2706=_0xa98c60['get'](_0x526381)(_0x526381,_0x7312cb,_0x1503a0['get'](_0x526381),_0x1503a0['get'](_0x7312cb));if(!_0x3d2706)return null;return _0xa98c60['get'](_0x7312cb)(_0x526381,_0x7312cb,_0x1503a0['get'](_0x526381),_0x1503a0['get'](_0x7312cb))?_0x3d2706[0x1]['commentThread']&&_0x3d2706[0x1]['commentThread']['length']?null:_0x3d2706:null;}_0x53f226['size']&&this['_refreshSuggestionsChain'](_0x53f226);}['_refreshAttributeSuggestionsChain'](_0x13625e){if(0x0==_0x13625e['length'])return;const _0xcdce87=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x235b6d=>'attribute'==_0x235b6d['type']&&_0x235b6d['_isDataLoaded']),_0x1396e2=[],_0x4bfdb9=new Map();for(const _0x284a8b of _0xcdce87){const _0x19d8be=_0x2461a5(_0x284a8b['attributes']);_0x4bfdb9['has'](_0x19d8be)||(_0x4bfdb9['set'](_0x19d8be,_0x1396e2['length']),_0x1396e2['push']([]));const _0x32e5a7=_0x4bfdb9['get'](_0x19d8be);_0x1396e2[_0x32e5a7]['push'](_0x284a8b);}!(function(){_0x1396e2['sort']((_0x5825c9,_0x7b86c7)=>{const _0x2d6da1=_0x5825c9[0x0]['createdAt'],_0x5b1f16=_0x7b86c7[0x0]['createdAt'];return _0x2d6da1==_0x5b1f16?_0x5825c9[0x0]['attributes']['groupId']<_0x7b86c7[0x0]['attributes']['groupId']?-0x1:0x1:_0x2d6da1<_0x5b1f16?-0x1:0x1;});for(const _0x2272d5 of _0x1396e2)_0x2272d5['sort']((_0x2698ce,_0xd37da)=>_0x2698ce['id']<_0xd37da['id']?-0x1:0x1);}());for(let _0x1c6130=0x0;_0x1c6130<_0x1396e2['length'];_0x1c6130++){if(0x0==_0x1396e2[_0x1c6130]['length'])continue;const _0x4de951=[];for(let _0x4768a9=_0x1c6130+0x1;_0x4768a9<_0x1396e2['length'];_0x4768a9++)0x0!=_0x1396e2[_0x4768a9]['length']&&_0x2da896(_0x1396e2[_0x1c6130],_0x1396e2[_0x4768a9])&&_0x4de951['push'](_0x4768a9);for(const _0x2f8cc0 of _0x4de951)_0x1396e2[_0x1c6130]=_0x1396e2[_0x1c6130]['concat'](_0x1396e2[_0x2f8cc0]),_0x1396e2[_0x2f8cc0]=[];}for(const _0x374037 of _0x1396e2)for(let _0x45f853=0x0;_0x45f853<_0x374037['length'];_0x45f853++){const _0x3eb022=_0x374037[_0x45f853+0x1]||null;_0x374037[_0x45f853]['next']!==_0x3eb022&&(_0x374037[_0x45f853]['next']=_0x3eb022);}for(const _0x45e0b6 of _0x1396e2)for(let _0x5718cf=0x0;_0x5718cf<_0x45e0b6['length'];_0x5718cf++){const _0x344a75=_0x45e0b6[_0x5718cf-0x1]||null;_0x45e0b6[_0x5718cf]['previous']!==_0x344a75&&(_0x45e0b6[_0x5718cf]['previous']=_0x344a75);}function _0x2da896(_0x2c80df,_0x20b056){if(_0x2c80df[0x0]['attributes']['groupId']!==_0x20b056[0x0]['attributes']['groupId']&&_0x2c80df[0x0]['author']!==_0x20b056[0x0]['author'])return!0x1;if(!function(_0x151b2e,_0x55fa0b){if(!_0x151b2e['hasComments']&&!_0x55fa0b['hasComments'])return!0x0;if(_0x151b2e['hasComments']&&_0x55fa0b['hasComments'])return!0x1;if(_0x151b2e['hasComments']&&_0x55fa0b['createdAt']<_0x151b2e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x55fa0b['hasComments']&&_0x151b2e['createdAt']<_0x55fa0b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c80df[0x0],_0x20b056[0x0]))return!0x1;const _0x491902=ot(_0x2c80df[0x0]['attributes'],['groupId','trackingSessionId']),_0x2951c1=ot(_0x20b056[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x491902,_0x2951c1))return!0x1;if(_0x2c80df[0x0]['attributes']['groupId']==_0x20b056[0x0]['attributes']['groupId'])return!0x0;if(_0x2c80df[0x0]['attributes']['trackingSessionId']!==_0x20b056[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2c80df['every'](_0x4d7afb=>_0x20b056['some'](_0x354dd0=>_0x4d7afb['getFirstRange']()['isEqual'](_0x354dd0['getFirstRange']())))&&_0x20b056['every'](_0x10fb6d=>_0x2c80df['some'](_0x39ef4e=>_0x10fb6d['getFirstRange']()['isEqual'](_0x39ef4e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4a1617){const _0x2c4ddc=Array['from'](_0x4a1617),_0x554600=this['getSuggestions']({'skipNotAttached':!0x0}),_0x359ccd=_0x554600['filter'](_0x44efd3=>!_0x4a1617['has'](_0x44efd3)),_0x3dae5f=new Map(_0x2c4ddc['map'](_0x20b3d3=>[_0x20b3d3,this['_suggestionFactory']['getSuggestionCallback'](_0x20b3d3['type'],_0x20b3d3['subType'],'join')])),_0x58b268=new Map(_0x554600['map'](_0x12416c=>[_0x12416c,_0x12416c['getRanges']()]));for(let _0x4f93eb=0x0;_0x4f93eb<_0x2c4ddc['length'];_0x4f93eb++){if(_0x574c4b(this,_0x2c4ddc[_0x4f93eb],_0x2c4ddc,_0x4f93eb+0x1))return!0x0;}for(let _0x328140=0x0;_0x328140<_0x2c4ddc['length'];_0x328140++){if(_0x574c4b(this,_0x2c4ddc[_0x328140],_0x359ccd,0x0))return!0x0;}return!0x1;function _0x574c4b(_0x380407,_0xdb6222,_0x2980f0,_0x42ccf3){for(let _0x3e3bfe=_0x42ccf3;_0x3e3bfe<_0x2980f0['length'];_0x3e3bfe++){const _0x3b6724=_0x2980f0[_0x3e3bfe];if(_0x3b6724['type']!==_0xdb6222['type']||_0x3b6724['author']['id']!==_0xdb6222['author']['id']||_0x3b6724['subType']!==_0xdb6222['subType'])continue;if(!an(_0xdb6222,_0x3b6724))continue;if('attribute'==_0xdb6222['type']&&_0xdb6222['data']['oldValue']!=_0x3b6724['data']['oldValue'])continue;if('attribute'==_0xdb6222['type']&&_0x380407['_suggestionsConversion']['isBlockAttribute'](_0xdb6222['data']['key']))continue;if('formatBlock'==_0xdb6222['type']){const _0x5c4837=_0x380407['editor']['model'],_0x42f95d=_0xdb6222['getContainedElement']();if(_0x42f95d&&(_0x5c4837['schema']['isObject'](_0x42f95d)||_0x5c4837['schema']['isLimit'](_0x42f95d)))continue;}const _0x139d72=_0x3dae5f['get'](_0xdb6222),_0x3159d0=_0x58b268['get'](_0xdb6222),_0x49e299=_0x58b268['get'](_0x3b6724),_0x17eafd=_0xdb6222['commentThread']&&_0xdb6222['commentThread']['length'],_0x2a12a3=_0x3b6724['commentThread']&&_0x3b6724['commentThread']['length'];if(!_0x17eafd&&_0x139d72(_0x49e299,_0x3159d0))return _0x380407['_joinSuggestions'](_0x3b6724,_0xdb6222),_0x58b268['delete'](_0xdb6222),!0x0;if(!_0x2a12a3&&_0x139d72(_0x3159d0,_0x49e299))return _0x380407['_joinSuggestions'](_0xdb6222,_0x3b6724),_0x58b268['delete'](_0x3b6724),!0x0;}return!0x1;}}['_joinSuggestions'](_0x33efbe,_0xb95323){if(_0x33efbe['isMultiRange']){for(const _0x259d47 of _0xb95323['getRanges']())_0x33efbe['addRange'](_0x259d47);}else{const _0x4b6a63=_0xb95323['getFirstRange']()['end'];this['_setSuggestionRange'](_0x33efbe,this['_model']['createRange'](_0x33efbe['getFirstRange']()['start'],_0x4b6a63));}_0xb95323['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b3af2,_0x30a22c,_0x3fc2b1){const _0x275046=_0x3b3af2['startsWith']('format')||_0x3b3af2['startsWith']('attribute')?'FORMATTING':_0x3b3af2['toUpperCase']();return At(this['editor']['locale'],_0x30a22c+'_'+_0x275046+'_SUGGESTION_ANNOUNCEMENT',_0x3fc2b1);}['_initAriaMarkerChangeAnnouncements'](){const _0x49831d=this['editor'];if(!_0x49831d['ui'])return;const {ariaLiveAnnouncer:_0x134551}=_0x49831d['ui'];_0x440ad8(this['_model'],({left:_0x460972,entered:_0x2eb3ee})=>{for(const _0x5cf698 of _0x460972){const {group:_0x5b9610,type:_0x58cef0}=_0x4e67eb(_0x5cf698['name']);if('suggestion'===_0x5b9610){_0x134551['announce'](this['_getMarkerAnnouncementText'](_0x58cef0,'LEAVE'));break;}}for(const _0xd0d927 of _0x2eb3ee){const {group:_0x4965d5,type:_0x4ec564}=_0x4e67eb(_0xd0d927['name']);if('suggestion'===_0x4965d5){_0x134551['announce'](this['_getMarkerAnnouncementText'](_0x4ec564,'ENTER',_0x54ce12(_0xbae3dd)));break;}}});}['_processAttributeChanges'](_0x46261f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c12c5=this['editor'],_0x56f16d=_0x1c12c5['model']['document']['differ']['getChanges']();if(0x0==_0x56f16d['length'])return!0x1;const _0x2c6fd9=[],_0x497bde=_0x56f16d['filter'](_0x5a4940=>'attribute'==_0x5a4940['type']),_0x377932=_0x56f16d['filter'](_0x342d85=>'insert'==_0x342d85['type']&&'$text'!=_0x342d85['name']),_0x57de56=_0x56f16d['filter'](_0x568561=>'remove'==_0x568561['type']&&'$text'!=_0x568561['name']);for(const _0x3a63dc of _0x497bde)_0x2c6fd9['push']({'key':_0x3a63dc['attributeKey'],'newValue':_0x3a63dc['attributeNewValue'],'oldValue':_0x3a63dc['attributeOldValue'],'range':sn(_0x3a63dc['range'],_0x1c12c5['model'])});for(const _0x1d36a8 of _0x377932){const _0x2e1130=_0x57de56['find'](_0xa542fb=>_0xa542fb['position']['isEqual'](_0x1d36a8['position']));_0x2e1130&&_0x2c6fd9['push']({'key':Ke,'newValue':_0x1d36a8['name'],'oldValue':_0x2e1130['name'],'range':_0x1c12c5['model']['createRangeOn'](_0x1d36a8['position']['nodeAfter'])});}return 0x0!=_0x2c6fd9['length']&&this['_reduceExistingSuggestions'](_0x46261f,_0x2c6fd9);}['_processAttributeSuggestions'](_0xf44f11){let _0x3781a2=!0x1;const _0x4e7eda=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcaef5b=>_0xcaef5b['data']['newRange']&&_0xcaef5b['name']['startsWith']('suggestion:attribute:'));for(const _0x58927a of _0x4e7eda){const {subType:_0x3a459f,id:_0x11d7d8}=_0x4e67eb(_0x58927a['name']),_0xb068a6=_0x3a459f['split']('|')[0x0];for(const _0x22d62b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x22d62b['id']!=_0x11d7d8&&'attribute'==_0x22d62b['type']&&_0x22d62b['data']&&_0x22d62b['data']['key']==_0xb068a6&&_0x22d62b['getFirstRange']()['isIntersecting'](_0x58927a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x22d62b,_0x58927a['data']['newRange'],_0xf44f11),_0x3781a2=!0x0);}return _0x3781a2;}['recordAttributeChanges'](_0x590560){this['_recordAttributeSuggestions']=!0x0,_0x590560();}['_reduceExistingSuggestions'](_0xceb165,_0x57c942){if(0x0==_0x57c942['length'])return!0x1;let _0x35662a=!0x1;for(const _0x2a606d of _0x57c942){const _0x4bda88=this['_findSuggestions'](_0x2a606d['range'],'attribute')['filter'](_0x2bf2e0=>!_0x2bf2e0['meta']['isNextTo'])['map'](_0x40aad2=>_0x40aad2['suggestion']),_0x1032f8=_0x2461a5({'newValue':_0x2a606d['newValue']});_0x4bda88['filter'](_0xaf5445=>{const [_0x104a5f,_0x5d58b3]=_0xaf5445['subType']['split']('|');return _0x104a5f==_0x2a606d['key']&&_0x5d58b3!=_0x1032f8;})['forEach'](_0x14a01b=>{this['_reduceSuggestionAttributeRange'](_0x14a01b,_0x2a606d['range'],_0xceb165),_0x35662a=!0x0;});}return _0x35662a;}['_reduceSuggestionAttributeRange'](_0x477271,_0x27501b,_0x42e971){const _0x3c8569=_0x477271['getFirstRange']()['getDifference'](_0x27501b);0x0!==_0x3c8569['length']?0x1!==_0x3c8569['length']?this['_breakSuggestionMarker'](_0x477271,_0x27501b['start'],_0x27501b['end']):this['_setSuggestionRange'](_0x477271,_0x3c8569[0x0]):_0x42e971['removeMarker'](_0x477271['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x272be2){this['_editor']=_0x272be2,this['_model']=_0x272be2['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x88172a,_0x562368,_0x35bbbc,_0x266c2b,_0x52f9ec,_0x5006e4,_0x505d50){return new bt(this['_model'],{'type':_0x88172a,'subType':_0x562368,'id':_0x35bbbc,'originalSuggestionId':_0x505d50,'author':_0x266c2b,'creator':_0x266c2b,'attributes':_0x52f9ec,'onAttributesChange':_0x5006e4,'onAccept':(..._0x59e1f8)=>this['getSuggestionCallback'](_0x88172a,_0x562368,'accept')(..._0x59e1f8),'onDiscard':(..._0x549189)=>this['getSuggestionCallback'](_0x88172a,_0x562368,'discard')(..._0x549189)});}['registerCustomCallback'](_0x474080,_0x3e43a3,_0x6ea9e1,_0x3ff86f){const _0x51f755=_0x474080+':'+_0x3e43a3+':'+_0x6ea9e1;this['_customCallbacks']['set'](_0x51f755,_0x3ff86f);}['getSuggestionCallback'](_0x52ed17,_0x584b41,_0x476ac9){const _0x507e84=_0x52ed17+':'+_0x584b41+':'+_0x476ac9;return this['_customCallbacks']['get'](_0x507e84)||this['_defaultCallbacks']['get'](_0x52ed17+':'+_0x476ac9);}['_registerDefaultCallbacks'](){const _0x369557=()=>!0x1,_0x1422b7=_0x4886a0=>{_0x4886a0['sort']((_0x32a735,_0x44623f)=>_0x32a735['start']['isBefore'](_0x44623f['start'])?0x1:-0x1),this['_model']['change'](_0x29c39d=>{for(const _0xb054c6 of _0x4886a0){let _0x2cc328;_0x2cc328=_0xb054c6['end']['isAtEnd']&&_0xb054c6['end']['parent']==_0xb054c6['start']['nodeAfter']?_0x29c39d['createSelection'](_0xb054c6['start']['nodeAfter'],'on'):_0x29c39d['createSelection'](_0xb054c6),this['_model']['deleteContent'](_0x2cc328,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x182296=(_0x265924,_0x5b5239)=>{_0x5b5239&&this['_model']['change'](_0x32db7c=>{const {commandName:_0x345d3f,commandParams:_0x542b0f=[]}=_0x5b5239,_0x31249e=_0x265924['map'](_0x54fe59=>(Qe(_0x54fe59)&&(_0x54fe59=this['_model']['createRange'](_0x54fe59['end'])),_0x54fe59))['filter'](_0x24d8f6=>'$graveyard'!==_0x24d8f6['root']['rootName']);if(_0x31249e['length']<0x1)return;const _0x490f3b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x160343=>_0x2db68d['fromRange'](_0x160343));_0x32db7c['setSelection'](_0x31249e);for(const _0x11d9d0 of this['_editor']['commands']['commands']())_0x11d9d0['refresh']();_0x542b0f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x345d3f,..._0x542b0f);const _0x33fd3e=_0x490f3b['filter'](_0x2b3bb7=>'$graveyard'!=_0x2b3bb7['root']['rootName']);_0x33fd3e['length']>0x0&&_0x32db7c['setSelection'](_0x33fd3e);for(const _0x306062 of _0x490f3b)_0x306062['detach']();});},_0x14f52a=(_0x21aceb,_0x40a5f5)=>0x1==_0x21aceb['length']&&0x1==_0x40a5f5['length']&&_0x21aceb[0x0]['end']['isEqual'](_0x40a5f5[0x0]['start']),_0x3843cc=(_0x4f655f,_0x1eeb09,_0x4e3b98,_0x5a5fd4)=>on(_0x4f655f,_0x1eeb09,_0x4e3b98,_0x5a5fd4)?[_0x4f655f,_0x1eeb09]:on(_0x1eeb09,_0x4f655f,_0x5a5fd4,_0x4e3b98)?[_0x1eeb09,_0x4f655f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x369557),this['_defaultCallbacks']['set']('insertion:discard',_0x1422b7),this['_defaultCallbacks']['set']('insertion:join',_0x14f52a),this['_defaultCallbacks']['set']('insertion:chain',_0x3843cc),this['_defaultCallbacks']['set']('deletion:accept',_0x1422b7),this['_defaultCallbacks']['set']('deletion:discard',_0x369557),this['_defaultCallbacks']['set']('deletion:join',_0x14f52a),this['_defaultCallbacks']['set']('deletion:chain',_0x3843cc),this['_defaultCallbacks']['set']('formatInline:accept',_0x182296),this['_defaultCallbacks']['set']('formatInline:discard',_0x369557),this['_defaultCallbacks']['set']('formatInline:join',_0x14f52a),this['_defaultCallbacks']['set']('formatInline:chain',_0x369557),this['_defaultCallbacks']['set']('formatBlock:accept',_0x182296),this['_defaultCallbacks']['set']('formatBlock:discard',_0x369557),this['_defaultCallbacks']['set']('formatBlock:join',_0x14f52a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x369557),this['_defaultCallbacks']['set']('attribute:accept',_0x369557),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c04ac,_0x368e5b)=>{if(!_0x368e5b)return;const _0x23f8ed=this['_editor']['plugins']['get'](_0x6f2dbb);this['_model']['change'](_0x5d86=>{if(_0x368e5b['key']==Ke)for(const _0x337b69 of _0x2c04ac){const _0x159b9b=_0x337b69['start']['nodeAfter'],_0xa5f146=_0x368e5b['oldValue'];_0x5d86['rename'](_0x159b9b,_0xa5f146);}else{if(_0x23f8ed['isBlockAttribute'](_0x368e5b['key'])){for(const _0x3e74e7 of _0x2c04ac)void 0x0!==_0x368e5b['oldValue']?_0x5d86['setAttribute'](_0x368e5b['key'],_0x368e5b['oldValue'],_0x3e74e7['start']['nodeAfter']):_0x5d86['removeAttribute'](_0x368e5b['key'],_0x3e74e7['start']['nodeAfter']);}else{for(const _0xa4dfc9 of _0x2c04ac)_0x368e5b['oldValue']?_0x5d86['setAttribute'](_0x368e5b['key'],_0x368e5b['oldValue'],_0xa4dfc9):_0x5d86['removeAttribute'](_0x368e5b['key'],_0xa4dfc9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x14f52a);}}function qe(_0x4af829,_0x221802,_0x3d7ea5){for(const _0x216d20 of _0x221802['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x216d20['root']==_0x216d20)return!0x1;if(!_0x3d7ea5['containsItem'](_0x216d20))return!0x1;if(_0x4af829['isObject'](_0x216d20)||_0x4af829['isLimit'](_0x216d20))return!0x0;}return!0x1;}function Qe(_0x5b39ee){return _0x5b39ee['end']['parent']==_0x5b39ee['start']['nodeAfter']&&_0x5b39ee['end']['isAtStart'];}function Ze(_0x490d4f,_0x2feec4,_0x5e33af,_0x5971bc){const _0x44cee1=_0x2c6a37=>!_0x2c6a37['item']['is']('$textProxy')&&!_0x5971bc['isObject'](_0x2c6a37['item']),_0x327d76=_0x490d4f['start']['getLastMatchingPosition'](_0x44cee1),_0x4b4518=_0x490d4f['end']['getLastMatchingPosition'](_0x44cee1,{'direction':'backward'});return(!_0x490d4f['start']['isEqual'](_0x327d76)||!_0x490d4f['end']['isEqual'](_0x4b4518))&&(_0x327d76['isBefore'](_0x4b4518)?_0x5e33af['updateMarker'](_0x2feec4,{'range':_0x5e33af['createRange'](_0x327d76,_0x4b4518)}):_0x5e33af['removeMarker'](_0x2feec4),!0x0);}function Je(_0x8b7749){return _0x2461a5(_0x8b7749);}function tn(_0x424c82){const _0x2a4191=_0x424c82['start']['nodeAfter'];return _0x2a4191&&_0x2a4191['is']('element');}function en(_0x4457c9){return Qe(_0x4457c9)||function(_0xd5d09b){return _0xd5d09b['start']['parent']==_0xd5d09b['end']['nodeBefore']&&_0xd5d09b['start']['isAtEnd'];}(_0x4457c9);}function nn(_0x315d4c,_0x512030){try{const _0x56a648=_0x315d4c['getRange']();for(const _0x2e7f7e of _0x512030)if(_0x315d4c!==_0x2e7f7e&&_0x56a648&&_0x56a648['isIntersecting'](_0x2e7f7e['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x3a29b0,_0x1e9377){return null==_0x3a29b0['end']['nodeBefore']&&_0x3a29b0['end']['parent']==_0x3a29b0['start']['nodeAfter']?rn(_0x3a29b0['start']['nodeAfter'],_0x1e9377):_0x3a29b0;}function rn(_0x3f577a,_0x1ebe82){const _0x18d220=_0x1ebe82['schema']['isObject'](_0x3f577a)||_0x1ebe82['schema']['isSelectable'](_0x3f577a);return _0x1ebe82['createRange'](_0x1ebe82['createPositionAt'](_0x3f577a,'before'),_0x18d220?_0x1ebe82['createPositionAfter'](_0x3f577a):_0x1ebe82['createPositionAt'](_0x3f577a,'end'));}function on(_0x2a17cb,_0x4010e8,_0x5c873e,_0x51072e){return!!an(_0x2a17cb,_0x4010e8)&&_0x5c873e['end']['isEqual'](_0x51072e['start']);}function an(_0x405870,_0x82ff75){if(!_0x405870['_isDataLoaded']||!_0x82ff75['_isDataLoaded'])return!0x1;const _0x218c5a=new Set(Object['keys'](_0x405870['attributes'])),_0x416047=new Set(Object['keys'](_0x82ff75['attributes']));if(_0x218c5a['delete']('groupId'),_0x416047['delete']('groupId'),0x0==_0x218c5a['size']&&0x0==_0x416047['size'])return!0x0;if(_0x218c5a['size']!=_0x416047['size'])return!0x1;const _0x21741a={..._0x405870['attributes']},_0x582510={..._0x82ff75['attributes']};return delete _0x21741a['groupId'],delete _0x582510['groupId'],JSON['stringify'](_0x21741a)==JSON['stringify'](_0x582510);}function cn(_0x4958e2,_0x91f557){const _0x161156=ln(_0x4958e2['attributes']),_0x213823=ln(_0x91f557);if(!_0x4958e2['_isDataLoaded'])return!0x1;for(const _0x258a49 of Object['keys'](_0x213823))if(!st(_0x161156[_0x258a49],_0x213823[_0x258a49]))return!0x1;return!0x0;}function ln(_0x1e7fe5){const _0x5d2c29=Object['assign']({},_0x1e7fe5);return delete _0x5d2c29['skipNestingCheck'],delete _0x5d2c29['tablePasteChainId'],_0x5d2c29;}function un(_0x1b7714){return _0x1b7714['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x2fa907(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd741fe,_0x3d73a4,_0x2e20fa,_0x5e66c8){super(),this['model']=_0x3d73a4,this['view']=_0x2e20fa,this['commentThreadController']=_0x5e66c8,this['_editor']=_0xd741fe,this['_acceptCommand']=_0xd741fe['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd741fe['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x59bf5f,_0x367639)=>_0x59bf5f||_0x367639),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x284982=>_0x284982&&this['_editor']['model']['canEditAt'](_0x3d73a4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24de6d=>_0x24de6d&&this['_editor']['model']['canEditAt'](_0x3d73a4['getRanges']())),this['_pendingAction']=null,_0x2e20fa['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e20fa,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e20fa,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e20fa,'change:isDirty',()=>{_0x2e20fa['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 _0x337ed1=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x337ed1);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x13db81{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xe23237,_0x9eb548,_0x14ee62,_0x2e51ec){super(_0xe23237),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3975d4(_0xe23237,At(_0xe23237,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9eb548['authoredAt']),this['bind']('authoredAt')['to'](_0x9eb548),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',_0x9eb548,'authoredAt',this,'descriptionParts',(_0x3efcfa,_0x236903,_0x2ce7fa)=>{const _0x5e1442=_0x2ce7fa['map'](_0x5ae39f=>gt(_0x5ae39f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3efcfa-0x1,_0x9eb548['author']['name'],_0x236903?_0x2e51ec['formatDateTime'](_0x236903):'',new DOMParser()['parseFromString'](_0x5e1442,'text/html')['body']['textContent']]);}),this['focusables']=new _0x50b7e0(),this['focusTracker']=new _0x4587e6(),this['keystrokes']=new _0x4b9860(),this['focusCycler']=new _0x332e99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5872ab=>_0x5872ab['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9eb548,this['_localUser']=_0x14ee62,this['_config']=_0x2e51ec,_0x2e51ec['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3d2b16(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1ec8bf}=this['_config'];this['commentsListView']=new _0x1ec8bf(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',_0x2bb794=>_0x2bb794+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1220d2,_0xd51326)=>_0x1220d2||!!_0xd51326);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x302214}=this['_config'],_0x387f84=new _0x302214(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ef37c=_0x387f84['commentInputView'];return _0x387f84['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ef37c,'value',(_0x28f3cc,_0x2f6aac,_0x3f6b7f)=>!!_0x3f6b7f||_0x28f3cc&&!_0x2f6aac),_0x1ef37c['on']('submit',(_0x5f364d,_0x535902)=>{this['fire']('addComment',_0x535902),_0x1ef37c['editor']['setData']('');}),_0x1ef37c['on']('cancel',()=>this['focus']()),_0x1ef37c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x387f84;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x1d4088,_0x25f872,_0x150ff6,_0x3562c4){super(_0x1d4088,_0x25f872,_0x150ff6,_0x3562c4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xdeb076=>_0xdeb076&&_0xdeb076[0x0]?_0xdeb076[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x13fe3a,_0x1e97fc)=>{let _0x4a0c5c='';for(const _0x3818be of _0x13fe3a)_0x4a0c5c+='<p>'+gt(_0x3818be['content'],_0x3818be['color'])+'</p>';return _0x1e97fc?_0x4a0c5c:_0x45c4cd(_0x4a0c5c,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3562c4['SuggestionView'](_0x1d4088,_0x25f872,{'formatDateTime':_0x3562c4['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 _0x2fd55d=this['bindTemplate'],_0x19f3ff=[this['suggestionView']];return this['commentsListView']&&_0x19f3ff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x19f3ff['push'](this['commentThreadInputView']),_0x19f3ff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2fd55d['if']('isActive','ck-suggestion-wrapper--active'),_0x2fd55d['to']('type',_0x2dfbd9=>'ck-suggestion-'+_0x2dfbd9),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':_0x2fd55d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x19f3ff};}['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 gn extends _0x13db81{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4265b4,_0x3de5b0,_0x2c1561){super(_0x4265b4),this['_model']=_0x3de5b0,this['_config']=_0x2c1561,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3de5b0),this['acceptButton']=this['_createButton'](At(_0x4265b4,'Accept\x20suggestion'),_0x4dc961,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x4265b4,'Discard\x20suggestion'),_0x13289a,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x33f779(_0x4265b4,_0x3de5b0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x50b7e0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4587e6(),this['keystrokes']=new _0x4b9860(),this['focusCycler']=new _0x332e99({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1f03bf=>_0x1f03bf['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4678af=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4678af['innerHTML']=this['description'],this['on']('change:description',(_0x5d5d17,_0x56eace,_0x49dbbd)=>{_0x4678af['innerHTML']=_0x49dbbd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5d7ec8=this['bindTemplate'],_0x11652f=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5d7ec8['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5d7ec8['to']('authoredAt',_0xb15caf=>this['_config']['formatDateTime'](_0xb15caf))}]}]},{'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']&&_0x11652f['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':_0x11652f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x45017b,_0x2cd0d4,_0x4ea356,_0x376db3,_0x173c9f){const _0x15ab78=new _0x1d23bb(this['locale']);return _0x15ab78['set']({'label':_0x45017b,'icon':_0x2cd0d4,'tooltip':!0x0,'tooltipPosition':_0x173c9f}),_0x15ab78['extendTemplate']({'attributes':{'class':_0x4ea356}}),_0x15ab78['on']('execute',()=>{this['fire'](_0x376db3,this['_model']['id']);}),_0x15ab78;}['_setupKeyboardNavigation'](){const _0xf424d=this['element'];this['keystrokes']['listenTo'](_0xf424d);for(const _0x107384 of this['focusables'])this['focusTracker']['add'](_0x107384['element']),this['keystrokes']['listenTo'](_0x107384['element']);this['keystrokes']['set']('enter',(_0x4b4312,_0x577607)=>{_0xf424d===_0x4b4312['target']&&(this['focusCycler']['focusFirst'](),_0x577607());}),this['keystrokes']['set']('esc',(_0x2bf116,_0x483758)=>{_0xf424d!==_0x2bf116['target']&&(this['focus'](),_0x483758());});}}class mn extends _0x40e6e8{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x28a6ab,_0xfd6006,_0xe7d6fa,_0x4cdd92];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x362519){super(_0x362519),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14e3ee=this['editor']['config'];_0x14e3ee['define']('trackChanges.SuggestionThreadView',fn),_0x14e3ee['define']('trackChanges.SuggestionView',gn),_0x14e3ee['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14e3ee['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x55e81c,_0x5b73c9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x400042,_0x42f99f]of this['_handleControllerBuffer']){const _0x5d6c19=this['_suggestionToController']['has'](_0x400042);_0x5d6c19||_0x42f99f?_0x5d6c19&&_0x42f99f&&this['_destroyController'](_0x400042):this['_initializeController'](_0x400042);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4cdd92)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x55e81c,_0x5b73c9);}['init'](){const _0x280cd3=this['editor'],_0x3ddcdf=_0x280cd3['plugins']['get'](Xe),_0x413185=_0x280cd3['plugins']['get'](_0xe7d6fa),_0x433995=_0x280cd3['plugins']['get'](_0x4cdd92),_0x5a6cea=_0x280cd3['plugins']['get'](_0xfd6006);this['_addUIComponentsToFactory'](),_0x433995['addSourceCollector'](()=>{const _0x279c7a=[];for(const [_0x533662,_0x225c4e]of Array['from'](this['_suggestionToController'])){const _0x46746d=_0x533662['getAllAdjacentSuggestions'](),_0x350174=[];for(const _0x450165 of _0x46746d){if(!_0x450165['isInContent'])continue;if(_0x450165['isMultiRange']){_0x350174['push'](..._0x450165['getRanges']());continue;}const _0x205fbf=_0x450165['getFirstRange']();if(_0x350174['length']>0x0){const _0x36bd78=_0x350174[0x0]['getJoined'](_0x205fbf);if(_0x36bd78){_0x350174[0x0]=_0x36bd78;continue;}}_0x350174['push'](_0x205fbf);}_0x279c7a['push']([_0x225c4e['view'],_0x350174]);}return _0x279c7a;}),this['listenTo'](_0x3ddcdf,'suggestionLoaded',(_0x1c235e,_0x4cee3b)=>{this['listenTo'](_0x4cee3b,'change:previous',(_0x573f62,_0x588557,_0x1bbb5b,_0x1bc6cf)=>{_0x4cee3b['isInContent']&&(null==_0x1bbb5b?(this['_updateController'](_0x1bc6cf['head']),this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x1)):(this['_updateController'](_0x1bbb5b['head']),null==_0x1bc6cf&&this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x0)));}),null!==_0x4cee3b['previous']?this['_updateController'](_0x4cee3b['head']):this['_handleSuggestionControllerDelayed'](_0x4cee3b,!0x1);}),this['listenTo'](_0x3ddcdf,'suggestionUnloaded',(_0x5717ab,_0x3c8e07,_0x48d2dc)=>{this['stopListening'](_0x3c8e07,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3c8e07),this['_suggestionToController']['has'](_0x3c8e07)&&this['_destroyController'](_0x3c8e07),_0x48d2dc&&this['_updateController'](_0x48d2dc['head']);}),this['listenTo'](_0x3ddcdf,'suggestionChanged',(_0x4dc67b,_0x200f94)=>{this['_updateController'](_0x200f94);}),this['listenTo'](_0x413185,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5a6cea,'addComment',(_0xa6455,{threadId:_0x17befa,isFromAdapter:_0x2ba428})=>{if(_0x2ba428||!_0x3ddcdf['hasSuggestion'](_0x17befa))return;const _0x32e368=_0x3ddcdf['getSuggestion'](_0x17befa);this['_suggestionToController']['get'](_0x32e368)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x36d878=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3976be;for(const _0x29c9f0 in _0x36d878){const _0x35d883=_0x29c9f0,_0x172ff9=_0x36d878[_0x35d883];if('trackChangesLicenseKeyValid'==_0x172ff9||'trackChangesLicenseKeyInvalid'==_0x172ff9||'trackChangesLicenseKeyExpired'==_0x172ff9||'trackChangesLicenseKeyDomainLimit'==_0x172ff9||'trackChangesLicenseKeyNotAllowed'==_0x172ff9||'trackChangesLicenseKeyEvaluationLimit'==_0x172ff9||'trackChangesLicenseKeyUsageLimit'==_0x172ff9){delete _0x36d878[_0x35d883],_0x3976be=_0x172ff9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3976be&&_0x36d878['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3976be&&_0x36d878['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3976be&&_0x36d878['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3976be&&_0x36d878['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3976be&&_0x36d878['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3976be&&_0x36d878['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4d5d7b){const _0x2b5872=this['_suggestionToController']['get'](_0x4d5d7b);if(!_0x2b5872)return null;return this['editor']['plugins']['get'](_0xe7d6fa)['getByInnerView'](_0x2b5872['view'])||null;}['getSuggestionForAnnotation'](_0x342cda){const _0x10f69e=this['_viewToController']['get'](_0x342cda['innerView']);return _0x10f69e?_0x10f69e['model']:null;}['_refreshActiveMarkers'](){const _0x3805e7=this['editor']['plugins']['get'](_0xe7d6fa),_0x18251e=this['editor']['plugins']['get'](Xe),_0x56e42a=Array['from'](_0x3805e7['activeAnnotations'],_0x38d206=>_0x38d206['innerView'])['filter'](_0x1d6ef8=>this['_viewToController']['has'](_0x1d6ef8)),_0x3b1e7c=[];for(const _0x217654 of _0x56e42a){const _0x39acb6=this['_viewToController']['get'](_0x217654)['model']['getAllAdjacentSuggestions']();_0x3b1e7c['push'](..._0x39acb6['reduce']((_0x227d74,_0x3391fa)=>[..._0x227d74,..._0x3391fa['getMarkerNames']()],[]));}_0x18251e['activeMarkers']=_0x3b1e7c;}['_addUIComponentsToFactory'](){const _0xb32cd5=this['editor'],_0x4ef0a8=_0xb32cd5['locale'],_0x5749d2=At(_0x4ef0a8,'Track\x20changes'),_0x5f2585=new _0x21c64a([{'type':'switchbutton','model':new _0x371bdb({'withText':!0x0,'isToggleable':!0x0,'label':_0x5749d2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xb32cd5['plugins']['has']('TrackChangesPreview')&&_0x5f2585['addMany']([{'type':'separator'},{'type':'button','model':new _0x371bdb({'withText':!0x0,'label':At(_0x4ef0a8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xcaacbd of _0x5f2585)if(En(_0xcaacbd)){const _0x3658db=_0xb32cd5['commands']['get'](_0xcaacbd['model']['commandName']);_0xcaacbd['model']['bind']('isOn','isEnabled')['to'](_0x3658db,'value','isEnabled');}_0xb32cd5['ui']['componentFactory']['add']('trackChanges',_0x5a7ff7=>this['_createToolbarButton'](_0x5a7ff7,_0x5f2585,_0x5749d2)),_0xb32cd5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x268811=>this['_createMenuBarMenu'](_0x268811,_0x5f2585,_0x5749d2));}['_createToolbarButton'](_0x462f80,_0x5df3a5,_0x5ca22){const _0x357cc6=_0x4be376(_0x462f80,_0xc3efb),_0x5c620b=this['editor']['commands']['get']('trackChanges');_0x357cc6['buttonView']['set']({'tooltip':_0x5ca22,'label':_0x5ca22,'icon':_0x4d400d}),_0x357cc6['buttonView']['bind']('isOn')['to'](_0x5c620b,'value'),_0x357cc6['buttonView']['on']('execute',()=>{_0x5c620b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2fc987(_0x357cc6,_0x5df3a5,{'role':'menu'});const _0x32ffdc=[];for(const _0x1bda20 of _0x5df3a5)En(_0x1bda20)&&_0x32ffdc['push'](this['editor']['commands']['get'](_0x1bda20['model']['commandName']));const _0x14a8a3=_0x357cc6['buttonView'];return _0x14a8a3['actionView']['unbind']('isEnabled'),_0x14a8a3['arrowView']['unbind']('isEnabled'),_0x14a8a3['actionView']['bind']('isEnabled')['to'](_0x5c620b,'isEnabled'),_0x14a8a3['arrowView']['bind']('isEnabled')['toMany'](_0x32ffdc,'isEnabled',(..._0x3e285c)=>_0x3e285c['some'](_0x506737=>_0x506737)),_0x357cc6['on']('execute',_0x32ac37=>{this['editor']['execute'](_0x32ac37['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x357cc6;}['_createMenuBarMenu'](_0x4896eb,_0x58541e,_0x70681f){const _0x90f204=new _0x21a499(_0x4896eb),_0x48365c=this['editor']['commands']['get']('trackChanges');_0x90f204['buttonView']['set']({'label':_0x70681f,'icon':_0x4d400d});const _0x2b461e=new _0x6cd25d(_0x4896eb);for(const _0x2abf74 of _0x58541e){if('separator'==_0x2abf74['type']){_0x2b461e['items']['add'](new _0x372b10(_0x4896eb));continue;}const _0xc751de=new _0x1d2e19(_0x4896eb,_0x90f204),_0x4e9514=new _0x24d5a3(_0x4896eb),_0x1d55f9=_0x2abf74['model'];_0x4e9514['bind'](...Object['keys'](_0x1d55f9))['to'](_0x1d55f9),_0x4e9514['delegate']('execute')['to'](_0x90f204),_0x4e9514['on']('execute',()=>{this['editor']['execute'](_0x1d55f9['commandName']),this['editor']['editing']['view']['focus']();}),_0xc751de['children']['add'](_0x4e9514),_0x2b461e['items']['add'](_0xc751de);}return _0x90f204['bind']('isEnabled')['to'](_0x48365c,'isEnabled'),_0x90f204['panelView']['children']['add'](_0x2b461e),_0x90f204;}['_initializeController'](_0x45d768){const _0x54f3f7=this['editor'],_0x1c5fe4=_0x54f3f7['config'],_0x18976a=_0x54f3f7['plugins']['get'](_0xe7d6fa),_0x245ab4=_0x54f3f7['plugins']['get'](_0xfd6006),_0x28a415=_0x54f3f7['plugins']['get'](_0x4cdd92),_0x5965c8=_0x54f3f7['plugins']['get'](_0x28a6ab)['me'],_0x35a734=_0x1c5fe4['get']('trackChanges')['SuggestionThreadView'],_0x1ed8ce=_0x1c5fe4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x388339,CommentThreadInputView:_0xeec57c}=_0x54f3f7['plugins']['get']('CommentsUI');let _0x43f2d8,_0x3130b0,_0x1fa642;this['_annotationViews']['has'](_0x45d768['id'])?(_0x3130b0=this['_annotationViews']['get'](_0x45d768['id']),_0x43f2d8=_0x3130b0['mainView']):(_0x43f2d8=new _0x35a734(_0x54f3f7['locale'],_0x45d768,_0x5965c8,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c5fe4['get']('comments.editorConfig'),'licenseKey':_0x1c5fe4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c5fe4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c5fe4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c5fe4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xcd4b37(_0x1c5fe4['get']('locale'),_0x54f3f7['locale']),'CommentView':_0x1c5fe4['get']('comments')['CommentView'],'CommentsListView':_0x388339,'CommentThreadInputView':_0xeec57c,'SuggestionView':_0x1ed8ce}),_0x43f2d8['suggestionView']['acceptButton']['on']('execute',()=>{_0x54f3f7['editing']['view']['focus']();}),_0x43f2d8['suggestionView']['discardButton']['on']('execute',()=>{_0x54f3f7['editing']['view']['focus']();}),_0x3130b0=_0x18976a['createAnnotationView'](this['editor']['locale'],_0x43f2d8),_0x3130b0['bind']('isDirty')['to'](_0x43f2d8,'isDirty'),_0x3130b0['bind']('length')['to'](_0x43f2d8),_0x3130b0['bind']('type')['to'](_0x43f2d8,'type',_0x44119b=>'suggestion-'+_0x44119b),_0x43f2d8['on']('escape',()=>{_0x1fa642['fire']('escape');}),this['_annotationViews']['set'](_0x45d768['id'],_0x3130b0));const _0x506c59=_0x245ab4['createCommentThreadController'](_0x45d768['commentThread'],_0x43f2d8),_0x438c0c=new hn(_0x54f3f7,_0x45d768,_0x43f2d8,_0x506c59),_0x10724d=_0x45d768['getAllAdjacentSuggestions']()['filter'](_0x49ab51=>_0x49ab51['isInContent']);_0x43f2d8['descriptionParts']=_0x54f3f7['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x10724d),this['_suggestionToController']['set'](_0x45d768,_0x438c0c),this['_viewToController']['set'](_0x43f2d8,_0x438c0c);const _0x97a5a8=()=>{const _0x18b869=[],_0x23b47b=_0x45d768['getAllAdjacentSuggestions']()['filter'](_0xad23f9=>_0xad23f9['isInContent']);for(const _0x15a60e of _0x23b47b)_0x18b869['push'](..._0x15a60e['getMarkers']());return _0x4044ac(_0x54f3f7['editing'],_0x18b869);};_0x1fa642=_0x18976a['createAnnotation']({'view':_0x3130b0,'target':_0x97a5a8,'type':()=>'suggestion-'+_0x438c0c['view']['type'],'isVisible':!!_0x97a5a8()}),_0x245ab4['_bindAnnotationToEditors'](_0x43f2d8,_0x1fa642),_0x18976a['add'](_0x1fa642),_0x28a415['registerAnnotation'](_0x1fa642);}['_destroyController'](_0x35c597){const _0x45c7a5=this['editor']['plugins']['get'](_0xfd6006),_0x277bdf=this['editor']['plugins']['get'](_0xe7d6fa),_0xf4bc32=this['_suggestionToController']['get'](_0x35c597),_0x171c7e=_0xf4bc32['view'],_0x5e87ec=_0x277bdf['getByInnerView'](_0x171c7e);_0x45c7a5['_unbindEditors'](_0x171c7e),_0x5e87ec&&_0x277bdf['remove'](_0x5e87ec),this['_suggestionToController']['delete'](_0x35c597),this['_viewToController']['delete'](_0x171c7e),_0xf4bc32['destroy']();}['_updateController'](_0x40d956){if(!_0x40d956['isInContent']||!this['_suggestionToController']['has'](_0x40d956))return;const _0x1bb97e=this['editor']['plugins']['get'](Xe),_0x3dfa33=this['_suggestionToController']['get'](_0x40d956),_0x2baed1=_0x40d956['getAllAdjacentSuggestions']();_0x3dfa33['view']['descriptionParts']=_0x1bb97e['descriptionFactory']['getDescriptions'](_0x2baed1);}['destroy'](){for(const _0x24707b of this['_suggestionToController']['keys']())this['_destroyController'](_0x24707b);for(const _0x45cc88 of this['_annotationViews']['values']())_0x45cc88['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x5de1cd){return'model'in _0x5de1cd;}class Tn extends _0x40e6e8{static get['requires'](){return[Xe,mn,_0x30ece3];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x13e177){this['editor']['plugins']['get'](Xe)['adapter']=_0x13e177;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x246dc2){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x246dc2);}['getSuggestions']({skipNotAttached:_0x5bcc33=!0x1,toJSON:_0x2f930d=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x5bcc33,'toJSON':_0x2f930d});}['getSuggestion'](_0x255c81){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x255c81);}}const _n=['Pagination'];class pn extends _0x40e6e8{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x248bcb=this['editor'];if(_0x248bcb['config']['define']('trackChangesData.editorCreator',_0x2b4485=>{const _0x598fc6=_0x248bcb['model']['document']['getRootNames']()['reduce']((_0x2013b4,_0x3bc6b7)=>(_0x2013b4[_0x3bc6b7]='',_0x2013b4),{});return _0x248bcb['constructor']['create'](_0x598fc6,_0x2b4485);}),'function'!=typeof _0x248bcb['config']['get']('trackChangesData')['editorCreator'])throw new _0x39508c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15a79f){return bn(this['editor'],!0x0,_0x15a79f);}['getDataWithDiscardedSuggestions'](_0x408a0a){return bn(this['editor'],!0x1,_0x408a0a);}}class Ln extends _0x40e6e8{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4129c6){function _0x4e6de2(_0x5df0af){return _0x5df0af['map'](_0x32966b=>String['fromCharCode'](_0x32966b))['join']('');}super(_0x4129c6),this['result']='end',_0x4129c6[_0x4e6de2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e6de2([0x76,0x69,0x65,0x77])][_0x4e6de2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e6de2([0x61,0x75,0x74,0x6f]),_0x4129c6[_0x4e6de2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4e6de2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e6de2([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4e6de2([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4e6de2([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function In(_0x4fb961){return void 0x0!==_0x4fb961['getRootsAttributes'];}async function bn(_0x1aa1bc,_0xc62e68,_0x3198b9){const _0x246204=_0x30df67(_0x1aa1bc,_n);if(_0x246204['plugins']['push'](Xe,Ln),In(_0x1aa1bc)){_0x246204['roots']=Object['create'](null);for(const _0x1d0cd7 of _0x1aa1bc['model']['document']['getRootNames']())_0x246204['roots'][_0x1d0cd7]={'modelAttributes':_0x1aa1bc['getRootAttributes'](_0x1d0cd7)};}const _0x3cea9e=document['createDocumentFragment'](),_0x552651=_0x1aa1bc['config']['get']('trackChangesData')['editorCreator'],_0xe5b773=await _0x552651(_0x246204,()=>function(_0x339897){const _0x1d1e86=document['createElement']('div');return _0x339897['appendChild'](_0x1d1e86),_0x1d1e86;}(_0x3cea9e));!function(_0x2aa855,_0x24619f){const _0x1a37bb=_0x2aa855['model']['document']['getRootNames']()['reduce']((_0x37c481,_0x4f6275)=>(_0x37c481[_0x4f6275]=_0x2aa855['data']['get']({'rootName':_0x4f6275}),_0x37c481),{}),_0x1a5b2b=_0x2aa855['plugins']['get']('Users')['users']['map'](_0x1d288a=>({'id':_0x1d288a['id'],'name':_0x1d288a['name']})),_0x302a31=_0x2aa855['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43c472=_0x2aa855['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4054ae=_0x24619f['plugins']['get']('Users'),_0x235f91=_0x24619f['plugins']['get']('TrackChangesEditing'),_0x28949c=_0x24619f['plugins']['get']('CommentsRepository');for(const _0x377beb of _0x28949c['getCommentThreads']())_0x377beb['remove']();for(const _0x5a9976 of _0x1a5b2b)_0x4054ae['getUser'](_0x5a9976['id'])||_0x4054ae['addUser'](_0x5a9976);_0x4054ae['me']||_0x4054ae['useAnonymousUser']();for(const _0x181f89 of _0x43c472)_0x28949c['addCommentThread'](_0x181f89);for(const _0x1dab3c of _0x302a31)_0x235f91['addSuggestionData'](_0x1dab3c);_0x24619f['data']['set'](_0x1a37bb);}(_0x1aa1bc,_0xe5b773),_0xe5b773['execute'](_0xc62e68?'acceptAllSuggestions':'discardAllSuggestions');const _0x43ca3a=In(_0xe5b773)?_0xe5b773['getFullData'](_0x3198b9):_0xe5b773['data']['get'](_0x3198b9);return await _0xe5b773['destroy'](),_0x43ca3a;}class An extends _0x13db81{['options'];constructor(_0x2875e9,_0x27c761){super(_0x2875e9),this['options']=_0x27c761,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x11e468,_0x1478b5){if(!this['element'])return;const _0xaa3474=[];for(const [_0x53c1c0,_0x483420]of _0x11e468){const _0x2bc35b=document['createElement']('div');_0x2bc35b['setAttribute']('data-ck-root-name',_0x53c1c0),_0x2bc35b['className']=_0x483420['classes']+'\x20ck-track-changes-preview__root-container',_0x2bc35b['innerHTML']=_0x483420['content'],_0xaa3474['push'](_0x2bc35b);}_0x1478b5(this['element'],_0xaa3474),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x34a0df{constructor(_0xb1f4f4){super(_0xb1f4f4),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x65f718=this['editor'],_0x37b1b6=_0x65f718['locale'],_0x17abe7=_0x65f718['plugins']['get']('Dialog');let _0x28abdd;const _0x595b75=function(_0x17b86c){const _0x3aa4e0={};if('editables'in _0x17b86c['ui']['view']){for(const [_0x3dcb3c,_0x5881cc]of Object['entries'](_0x17b86c['ui']['view']['editables']))_0x3aa4e0[_0x3dcb3c]=_0x5881cc['element'];}else _0x3aa4e0[_0x17b86c['model']['document']['getRootNames']()[0x0]]=_0x17b86c['ui']['view']['editable']['element'];return _0x3aa4e0;}(_0x65f718),_0x29849f=function(_0x20198e){let _0x39e08d=0x0;for(const _0x24f4f1 of Object['values'](_0x20198e))_0x39e08d=Math['max'](_0x39e08d,_0x24f4f1['getBoundingClientRect']()['width']);let _0x465203=0x0;for(const _0x191b8d of Object['values'](_0x20198e))_0x465203+=_0x191b8d['getBoundingClientRect']()['height'];const _0xf06ee4=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5d3965=Math['min'](_0x465203,_0xf06ee4);return{'width':_0x39e08d,'height':_0x5d3965};}(_0x595b75);_0x17abe7['show']({'id':'finalContentPreview','title':At(_0x37b1b6,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x37b1b6,{'dialogRects':_0x29849f}),'onHide':()=>{_0x28abdd['detachFromDom']();},'onShow':()=>{_0x65f718['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x491b60=>{const _0x2b9556=this['_standarizeRootsData'](_0x491b60,_0x65f718,_0x595b75);_0x17abe7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2b9556,_0x65f718['config']['get']('trackChanges.preview.renderFunction'));}),_0x28abdd=new _0x347ddb(_0x37b1b6,[_0x17abe7['view']]),_0x28abdd['attachToDom'](),_0x28abdd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x65f718['once']('destroy',()=>{_0x28abdd['detachFromDom']();});const _0x4cafb4=_0x17abe7['view']['headerView']['class'];_0x17abe7['view']['headerView']['class']=_0x4cafb4?_0x4cafb4+'\x20ck-reset_all':'ck-reset_all',_0x17abe7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x17abe7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x21f3e3=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3e1d90=_0x21f3e3['previewMode'],_0x58b520={};if('$labels'===_0x3e1d90){for(const _0x1ad219 of _0x21f3e3['getMergeFieldsIds']())_0x58b520[_0x1ad219]=_0x21f3e3['getLabel'](_0x1ad219)||_0x1ad219;}else{const _0x11b1d1='$defaultValues'===_0x3e1d90?_0x21f3e3['getDefaultValues']():_0x21f3e3['getDataSetValues'](_0x3e1d90,!0x0);for(const _0x310633 of Object['entries'](_0x11b1d1)){const [_0x52883c,_0x277b51]=_0x310633;_0x58b520[_0x52883c]=null!==_0x277b51?_0x277b51:_0x21f3e3['getLabel'](_0x52883c)||_0x52883c;}}return{'mergeFieldsData':_0x58b520};}['_standarizeRootsData'](_0x2d5d56,_0x565f9c,_0x11bce1){let _0x2b9b38;if('string'==typeof _0x2d5d56){const _0x577ed1=_0x565f9c['model']['document']['getRootNames']()[0x0];_0x2b9b38={[_0x577ed1]:_0x2d5d56};}else _0x2b9b38=_0x2d5d56;const _0x1f58c8=this['_fixMediaEmbeds'](_0x2b9b38,_0x565f9c),_0x5556bd=function(_0x383f22,_0x1d33a0){for(const [_0x1feaff,_0x30d2fb]of _0x383f22)_0x30d2fb['classes']=_0x1d33a0[_0x1feaff]['classList']['value']['replace']('ck-focused','');return _0x383f22;}(this['_sortRoots'](_0x565f9c)['reduce']((_0x126151,_0x6dd8e4)=>(_0x126151['push']([_0x6dd8e4,{'content':_0x1f58c8[_0x6dd8e4],'classes':''}]),_0x126151),[]),_0x11bce1);return _0x5556bd;}['_fixMediaEmbeds'](_0x385150,_0x7014b4){if(!_0x7014b4['plugins']['has']('MediaEmbedEditing'))return _0x385150;const _0xaad81d=_0x7014b4['plugins']['get']('MediaEmbedEditing');for(const [_0x7684c,_0x54b67b]of Object['entries'](_0x385150)){const _0xeabdf=document['createElement']('div');_0xeabdf['innerHTML']=_0x54b67b,(_0xeabdf['querySelectorAll']('figure.media')['forEach'](_0x2539d5=>{const _0x4c38dd=_0x2539d5['querySelector']('oembed');if(_0x4c38dd){const _0x45e5d6=_0x4c38dd['getAttribute']('url');if(_0x45e5d6){const _0x153732=_0xaad81d['registry']['getMediaViewElement'](new et(_0x7014b4['editing']['view']['document']),_0x45e5d6,{'elementName':'','renderForEditingView':!0x0}),_0x12ad2f=document['createElement']('div');_0x12ad2f['classList']['add']('ck-media__wrapper'),_0x153732['render'](_0x12ad2f,_0x7014b4['editing']['view']['domConverter']),_0x4c38dd['replaceWith'](_0x12ad2f);}}}),_0x385150[_0x7684c]=_0xeabdf['innerHTML']);}return _0x385150;}['_sortRoots'](_0x4e47c2){if(!function(_0x2abde4){return void 0x0!==_0x2abde4['getRootsAttributes'];}(_0x4e47c2))return _0x4e47c2['model']['document']['getRootNames']();const _0x20f6a3=[],_0x2a4a37=new Map();for(const _0x2dd598 of _0x4e47c2['model']['document']['getRootNames']()){const _0x2fe59c=_0x4e47c2['editing']['view']['getDomRoot'](_0x2dd598)['getClientRects']()['item'](0x0);_0x20f6a3['push'](_0x2dd598),_0x2a4a37['set'](_0x2dd598,_0x2fe59c);}return _0x20f6a3['sort']((_0x246930,_0x13c666)=>{const _0x37651d=_0x2a4a37['get'](_0x246930),_0x3f3a9a=_0x2a4a37['get'](_0x13c666);return _0x37651d['y']-_0x3f3a9a['y']||_0x37651d['x']-_0x3f3a9a['x'];}),_0x20f6a3;}}class Cn extends _0x40e6e8{static get['requires'](){return[pn,_0x1abf3f];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1603bb){super(_0x1603bb),_0x1603bb['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x1603bb['config']['define']('trackChanges.preview.renderFunction',(_0x42b936,_0x3b5280)=>{for(const _0x532d58 of _0x3b5280)_0x42b936['appendChild'](_0x532d58);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x4b255d,Plugin as _0x48a7fd,PendingActions as _0x14f12c}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x5e2282,Annotations as _0x271cdf,EditorAnnotations as _0x2a166b,Comments as _0x86a160}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x2f698f,ObservableMixin as _0x1f2d5b,uid as _0x2296a0,priorities as _0x5c3de4,insertToPriorityArray as _0x18adcc,logWarning as _0x2cfc05,getEnvKeystrokeText as _0xd6dee4,FocusTracker as _0x32a67d,KeystrokeHandler as _0x262fa2,Collection as _0x20fd31}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3b242e,IconCancel as _0x4d8886,IconTrackChanges as _0x30fa92}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x5e9d45,View as _0x2d90fc,ViewCollection as _0x20ed56,FocusCycler as _0xee41c2,UIModel as _0x21e271,createDropdown as _0x68695f,SplitButtonView as _0x19fadc,addListToDropdown as _0x24cf66,MenuBarMenuView as _0x2f3156,MenuBarMenuListView as _0x1f80df,ListSeparatorView as _0x4079d5,MenuBarMenuListItemView as _0x2f6d9d,MenuBarMenuListItemButtonView as _0x285b3c,BodyCollection as _0x37230f,Dialog as _0x3e94ca}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x2cca50,SuggestionsConversion as _0x2cd1a4,Users as _0x4031ac,DocumentCompare as _0x556581,fixElementSuggestionRange as _0x40880f,hashObject as _0x65b7cc,surroundingMarkersDetector as _0x1b7ae6,FOCUS_ANNOTATION_KEYSTROKE as _0x3c357b,AriaDescriptionView as _0x48ee17,setupThreadKeyboardNavigation as _0x2800ed,trimHtml as _0x2fbd2c,UserView as _0x343dc5,LateFocusButtonView as _0x56cf4e,getDateTimeFormatter as _0x5aa53a,getAllMarkersDomElementsSorted as _0x1f97dd,sanitizeEditorConfig as _0x294bf3}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x5be9d0,ModelLiveRange as _0x211ae6,ModelLivePosition as tt,ViewDowncastWriter as et}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as nt,set as it,isEqual as st,unset as rt,omit as ot}from'es-toolkit/compat';import{Delete as at,Input as ct}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as lt}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as ut}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class ht extends _0x4b255d{['_enabledCommands'];constructor(_0x152eb1,_0x28bfe8){super(_0x152eb1),this['_enabledCommands']=_0x28bfe8,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 _0x5ef9bd of this['editor']['commands']['commands']())_0x5ef9bd['affectsData']&&!this['_enabledCommands']['has'](_0x5ef9bd)&&_0x5ef9bd['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1cdd0c of this['editor']['commands']['commands']())_0x1cdd0c['affectsData']&&!this['_enabledCommands']['has'](_0x1cdd0c)&&_0x1cdd0c['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4b255d{['_suggestions'];constructor(_0x490896,_0x22351e){super(_0x490896),this['_suggestions']=_0x22351e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f025b){const _0x587f7d=this['_suggestions']['get'](_0x4f025b);if(!_0x587f7d)throw new _0x2f698f('track-changes-accept-suggestion-not-found',this);const _0x3ca926=_0x587f7d['getRanges']();this['editor']['model']['canEditAt'](_0x3ca926)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x587f7d);}}class ft extends _0x4b255d{['_suggestions'];constructor(_0x4d31fe,_0x412687){super(_0x4d31fe),this['_suggestions']=_0x412687,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1273f3){const _0x30883b=this['_suggestions']['get'](_0x1273f3);if(!_0x30883b)throw new _0x2f698f('track-changes-discard-suggestion-not-found',this);const _0x53422f=_0x30883b['getRanges']();this['editor']['model']['canEditAt'](_0x53422f)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x30883b);}}function gt(_0x91fd94,_0x5db1a8){let _0x1b0ff6='';return _0x1b0ff6+=_0x91fd94['split']('*')['map']((_0x50f6cd,_0xdfdad6)=>_0xdfdad6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x50f6cd)+'</span>':mt(_0x50f6cd))['join'](''),_0x5db1a8&&(_0x1b0ff6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5db1a8['value']+'\x22\x20title=\x22'+_0x5db1a8['title']+'\x22></span>'),_0x1b0ff6;}function mt(_0x30650f){const _0x557cbb=document['createElement']('span');return _0x557cbb['innerText']=_0x30650f,_0x557cbb['innerHTML'];}function Et(_0x14e218){return _0x14e218['sort']((_0xce79bd,_0x2b84be)=>'attribute'===_0xce79bd['type']&&'attribute'!==_0x2b84be['type']?-0x1:'attribute'!==_0xce79bd['type']&&'attribute'===_0x2b84be['type']?0x1:'deletion'==_0xce79bd['type']&&'deletion'!=_0x2b84be['type']?-0x1:'deletion'!=_0xce79bd['type']&&'deletion'==_0x2b84be['type']?0x1:0x0);}function Tt(_0x39fbac,_0x3a5c66){let _0x5ff9e5,_0x3be6bf=0x0;const _0x462f71=[],_0x324cd3=_0x3a5c66['schema'];for(;_0x3be6bf<_0x39fbac['length'];){const _0x1fa3fa=_0x39fbac[_0x3be6bf],_0x53416c=_0x39fbac[_0x3be6bf+0x1];_0x5ff9e5||(_0x5ff9e5=_0x3a5c66['createPositionBefore'](_0x1fa3fa)),_t(_0x3a5c66,_0x1fa3fa,_0x53416c)||(_0x462f71['push'](_0x3a5c66['createRange'](_0x5ff9e5,_0x324cd3['isObject'](_0x1fa3fa)?_0x3a5c66['createPositionAfter'](_0x1fa3fa):_0x3a5c66['createPositionAt'](_0x1fa3fa,'end'))),_0x5ff9e5=null),_0x3be6bf++;}return _0x462f71;}function _t(_0x5b46af,_0x36e6d1,_0x3c8f8f){if(!_0x3c8f8f)return!0x1;const _0x9245f8=_0x5b46af['createPositionAfter'](_0x36e6d1),_0x1d86f7=_0x5b46af['createPositionBefore'](_0x3c8f8f);return _0x9245f8['isTouching'](_0x1d86f7);}function pt(_0x488551,_0xa1428e,_0x43770f){for(;_0x43770f['length'];){const _0x4f6664=_0x43770f['splice'](0x0,0x64);_0x488551['change'](()=>{for(const _0x5b7470 of _0x4f6664)_0x5b7470['isInContent']&&_0xa1428e['execute'](_0x5b7470['id']);});}}class Lt extends _0x4b255d{['_command'];['_suggestions'];constructor(_0xa74139,_0x8744dc,_0x955a96){super(_0xa74139),this['_command']=_0x8744dc,this['_suggestions']=_0x955a96,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a7919=Array['from'](this['_suggestions']['values']())['some'](_0x2aebd6=>_0x2aebd6['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2a7919;}['execute'](){const _0x43477b=Et(Array['from'](this['_suggestions']['values']()));for(const _0x4211d3 of _0x43477b){const _0x32926a=_0x4211d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x32926a))return;}pt(this['editor']['model'],this['_command'],_0x43477b);}}class It extends _0x4b255d{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2ed106,_0x5ab101,_0x166108){super(_0x2ed106),this['_command']=_0x5ab101,this['_suggestions']=_0x166108,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5a2a75=this['editor']['model']['document']['selection'],_0x3c360b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b00bd,_0x3700aa){const _0x47be4c=Array['from'](_0x3b00bd['getRanges']()),_0x418514=new Set();for(const _0x670ad2 of _0x3700aa)if(_0x670ad2['isInContent']){for(const _0x5933d5 of _0x47be4c)for(const _0x549616 of _0x670ad2['getRanges']())(_0x5933d5['isIntersecting'](_0x549616)||_0x3b00bd['isCollapsed']&&!_0x670ad2['isMultiRange']&&_0x670ad2['next']&&_0x549616['end']['isTouching'](_0x5933d5['start']))&&_0x418514['add'](_0x670ad2);}return _0x418514;}(_0x5a2a75,_0x3c360b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x34bfb6=Et(Array['from'](this['_selectedSuggestions']));for(const _0x52890e of _0x34bfb6){const _0x9c5e4f=_0x52890e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9c5e4f))return;}pt(this['editor']['model'],this['_command'],_0x34bfb6);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f2d5b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x13a330,_0x47db3d){super(),this['id']=_0x47db3d['id'],this['type']=_0x47db3d['type'],this['subType']=_0x47db3d['subType']||null,this['author']=_0x47db3d['author'],this['creator']=_0x47db3d['creator']||_0x47db3d['author'],this['isExternal']=Boolean(_0x47db3d['attributes']&&_0x47db3d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x47db3d['originalSuggestionId']||null,this['_model']=_0x13a330,this['_onAccept']=_0x47db3d['onAccept'],this['_onDiscard']=_0x47db3d['onDiscard'],this['_onAttributesChange']=_0x47db3d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x47db3d['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 _0x5bfb2c=this;for(;_0x5bfb2c['previous'];)_0x5bfb2c=_0x5bfb2c['previous'];return _0x5bfb2c;}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'](_0x22b1b5){this['_markerNames']['add'](_0x22b1b5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x33ec60=>this['_model']['markers']['get'](_0x33ec60))['filter'](_0x14d085=>_0x14d085);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x41fbb7=>{for(const _0x3f191c of this['getMarkers']())_0x41fbb7['removeMarker'](_0x3f191c);}),this['_markerNames']['clear']();}['removeMarker'](_0x13a7a4){this['_model']['change'](_0x36a32b=>{_0x36a32b['removeMarker'](_0x13a7a4);}),this['_markerNames']['delete'](_0x13a7a4);}['addRange'](_0x3164bb){const _0x1093bc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x1093bc),this['_model']['change'](_0x4c9e83=>{_0x4c9e83['addMarker'](_0x1093bc,{'range':_0x3164bb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x24f985){for(const _0xaed357 of this['getRanges']())if(_0xaed357['isIntersecting'](_0x24f985))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5c984b=>_0x5c984b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1a9b9e,_0x2dd252)=>[..._0x1a9b9e,..._0x2dd252['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x6765b5=this['getRanges']();if(0x1!=_0x6765b5['length'])return null;const _0x290571=_0x6765b5[0x0],_0x445a18=_0x290571['start']['nodeAfter'],_0x407392=_0x290571['end']['nodeBefore'];return _0x445a18 instanceof _0x5be9d0?_0x445a18!=_0x407392?null:_0x445a18: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 _0x35da52=[];let _0x168a29=this['head'];for(;_0x168a29;)_0x35da52['push'](_0x168a29),_0x168a29=_0x168a29['next'];return _0x35da52;}['setAttribute'](_0x2d3a99,_0x49931b){const _0x5c0689=nt(this['attributes']);it(_0x5c0689,_0x2d3a99,_0x49931b),st(_0x5c0689,this['attributes'])||(this['attributes']=_0x5c0689,this['_onAttributesChange'](_0x5c0689));}['removeAttribute'](_0x443bc5){const _0x25de1b=nt(this['attributes']);rt(_0x25de1b,_0x443bc5),st(_0x25de1b,this['attributes'])||(this['attributes']=_0x25de1b,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 _0x2296a0()['substr'](0x1,0x5);}}function At(_0x4a574b,_0x1fd766,_0x18633d){const _0x190c91=_0x4a574b['t'],t=_0x4a574b['t'];switch(_0x1fd766){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x18633d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x18633d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x18633d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x18633d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x18633d);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',_0x18633d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x18633d);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x18633d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x18633d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x18633d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x18633d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x18633d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x18633d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x18633d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x18633d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x18633d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x18633d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x18633d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x18633d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x18633d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x18633d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x18633d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x18633d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x18633d);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x18633d);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'},_0x18633d);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x18633d);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x18633d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x18633d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x18633d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x18633d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x18633d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x18633d);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'},_0x18633d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x18633d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x18633d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x18633d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x18633d);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x18633d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x18633d);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'},_0x18633d);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x18633d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x18633d);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'},_0x18633d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x18633d);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'},_0x18633d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x18633d);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x18633d);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x18633d);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x18633d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x18633d);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'},_0x18633d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x18633d);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 _0x190c91({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x18633d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x190c91({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x18633d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x18633d);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'},_0x18633d);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'},_0x18633d);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'},_0x18633d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1fd766;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2b5349,_0x537a55){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2b5349,this['_locale']=_0x537a55;}['getDescriptions'](_0x531253){const _0x490f7e=[],_0x538846=new Set(),_0xa4852b=new Set();for(let _0x1d6be0=0x0;_0x1d6be0<_0x531253['length'];_0x1d6be0++){const _0x3717ec=_0x531253[_0x1d6be0];if(!_0x3717ec['isInContent'])continue;const _0x3e10d9=this['_handleCustomCallbackDescription'](_0x3717ec);if(_0x3e10d9){if(null!=_0x3717ec['subType']){if(_0x538846['has'](_0x3717ec['subType']))continue;_0x538846['add'](_0x3717ec['subType']);}_0x490f7e['push'](_0x3e10d9);}else{if('attribute'==_0x3717ec['type']){const _0x4083e6=_0x3717ec['data']['key'];if(_0xa4852b['has'](_0x4083e6))continue;_0xa4852b['add'](_0x3717ec['data']['key']),_0x4083e6==Ke?this['_handleRenameSuggestionDescription'](_0x490f7e,_0x3717ec):this['_handleAttributeSuggestionDescription'](_0x490f7e,_0x3717ec);continue;}'insertion'!=_0x3717ec['type']&&'deletion'!=_0x3717ec['type']||this['_handleInsertRemoveSuggestionDescription'](_0x490f7e,_0x3717ec,_0x531253[_0x1d6be0+0x1]);}}return this['_resolveDescriptionItems'](_0x490f7e);}['registerDescriptionCallback'](_0x20ccc8){this['_customCallbacks']['push'](_0x20ccc8);}['registerElementLabel'](_0xa7813c,_0x5d1d4f,_0x249ff9=_0x5c3de4['normal']){'function'==typeof _0xa7813c?_0x18adcc(this['_itemLabelsCallbacks'],{'matchingCallback':_0xa7813c,'label':_0x5d1d4f,'priority':_0x249ff9}):this['_itemLabels']['set'](_0xa7813c,_0x5d1d4f);}['registerAttributeLabel'](_0x37bbcb,_0x1ff8e9){this['_attributeLabels']['set'](_0x37bbcb,_0x1ff8e9);}['getItemLabel'](_0x727b73,_0x33ce13=0x1){let _0x1718a7;for(const _0x22cc5b of this['_itemLabelsCallbacks'])if(_0x22cc5b['matchingCallback'](_0x727b73)){_0x1718a7=_0x22cc5b['label'];break;}return _0x1718a7||(_0x1718a7=this['_itemLabels']['get'](_0x727b73['name'])),_0x1718a7?_0x1718a7(_0x33ce13):0x1!==_0x33ce13?_0x33ce13+'\x20'+_0x727b73['name']+'s':''+_0x727b73['name'];}['_addDescriptionItems'](_0x171ddd,_0x2d0863){const _0xa97f7=_0x2d0863['getFirstRange']()['getWalker'](),_0x393485='insertion'==_0x2d0863['type']?'add':'remove';for(const _0xca7ef5 of _0xa97f7){const _0x13a321=_0xca7ef5['item'],_0x2715ba=_0x171ddd[_0x171ddd['length']-0x1];if(_0x13a321['is']('$textProxy'))_0x2715ba&&_0x2715ba['type']['indexOf']('Container')>-0x1&&_0x171ddd['pop'](),_0x2715ba&&'text'==_0x2715ba['type']?_0x2715ba[_0x393485]+=_0x13a321['data']:_0x171ddd['push']({'type':'text','add':'add'==_0x393485?_0x13a321['data']:'','remove':'remove'==_0x393485?_0x13a321['data']:''});else{if(this['_schema']['isObject'](_0x13a321)){const _0xc68260=_0x13a321;if(_0x2715ba&&_0x2715ba['type']['indexOf']('Container')>-0x1&&_0x171ddd['pop'](),'elementEnd'==_0xca7ef5['type'])continue;_0x2715ba&&_0x2715ba['type']==_0x393485+'Object'&&_0x2715ba['element']['name']==_0xc68260['name']?_0x2715ba['quantity']++:_0x171ddd['push']({'type':_0x393485+'Object','element':_0xc68260,'quantity':0x1}),_0xa97f7['skip'](_0x11663e=>!('elementEnd'==_0x11663e['type']&&_0x11663e['item']==_0x13a321));}else{if(this['_schema']['checkChild'](_0x13a321,'$text')||_0x13a321['is']('element','softBreak')){const _0x4bee31=_0x13a321;if('add'==_0x393485&&'elementStart'==_0xca7ef5['type']||'remove'==_0x393485&&'elementEnd'==_0xca7ef5['type'])continue;if(_0x2715ba&&-0x1==_0x2715ba['type']['indexOf']('Container')){'text'==_0x2715ba['type']&&(_0x2715ba[_0x393485]+='\x0a');continue;}let _0x138428;if(_0x138428='add'==_0x393485?_0x4bee31['nextSibling']&&!this['_schema']['isObject'](_0x4bee31['nextSibling'])?_0x4bee31['nextSibling']:null:_0x4bee31['previousSibling']&&!this['_schema']['isObject'](_0x4bee31['previousSibling'])?_0x4bee31['previousSibling']:null,_0x4bee31['isEmpty']||_0x138428&&_0x138428['isEmpty']){const _0x587b05=_0x138428&&_0x138428['isEmpty']?_0x138428:_0x4bee31;_0x2715ba&&_0x2715ba['type']==_0x393485+'EmptyContainer'&&_0x2715ba['element']['name']==_0x587b05['name']?_0x2715ba['quantity']++:_0x171ddd['push']({'type':_0x393485+'EmptyContainer','element':_0x587b05,'quantity':0x1});}else _0x171ddd['push']({'type':_0x393485+'Container','element':_0x4bee31});}}}}}['_resolveDescriptionItems'](_0x4b1ae3){const _0x1626d6=this['_locale'],_0x3d9f8c=[],_0x54af49=[],_0xbbb467=[];for(const _0x396dc2 of _0x4b1ae3)switch(_0x396dc2['type']){case'text':if(_0x396dc2['add']=_0x396dc2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x396dc2['remove']=_0x396dc2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x396dc2['add']&&''!=_0x396dc2['remove']){_0x3d9f8c['push']({'type':'replace','content':At(_0x1626d6,'REPLACE_TEXT',['\x22'+_0x396dc2['remove']+'\x22','\x22'+_0x396dc2['add']+'\x22'])});continue;}if(null!=_0x396dc2['add']['match'](/^ +$/)){_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0',At(_0x1626d6,'ELEMENT_SPACE',_0x396dc2['add']['length']))});continue;}if(null!=_0x396dc2['remove']['match'](/^ +$/)){_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0',At(_0x1626d6,'ELEMENT_SPACE',_0x396dc2['remove']['length']))});continue;}if(''!=_0x396dc2['add']){_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0','\x22'+_0x396dc2['add']+'\x22')});continue;}_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0','\x22'+_0x396dc2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Insert:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Remove:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'addContainer':_0x3d9f8c['push']({'type':'insertion','content':At(_0x1626d6,'*Split:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'removeContainer':_0x3d9f8c['push']({'type':'deletion','content':At(_0x1626d6,'*Merge:*\x20%0',this['getItemLabel'](_0x396dc2['element'],_0x396dc2['quantity']))});continue;case'addFormat':_0x54af49['push'](_0x396dc2['key']);continue;case'removeFormat':_0xbbb467['push'](_0x396dc2['key']);continue;default:_0x3d9f8c['push'](_0x396dc2);}if(_0x54af49['length']){const _0x445c7b=_0x54af49['map'](_0x57e6f0=>this['_attributeLabels']['has'](_0x57e6f0)?this['_attributeLabels']['get'](_0x57e6f0):_0x57e6f0)['join'](',\x20');_0x3d9f8c['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x445c7b)});}if(_0xbbb467['length']){const _0x54b9eb=_0xbbb467['map'](_0x29fe5e=>this['_attributeLabels']['has'](_0x29fe5e)?this['_attributeLabels']['get'](_0x29fe5e):_0x29fe5e)['join'](',\x20');_0x3d9f8c['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x54b9eb)});}return _0x3d9f8c;}['_handleCustomCallbackDescription'](_0x281973){for(const _0x2b2fad of this['_customCallbacks']){const _0x531566=_0x2b2fad(_0x281973);if(_0x531566&&'type'in _0x531566)return _0x531566;}}['_handleAttributeSuggestionDescription'](_0x532b99,_0x435824){const _0x33217d=_0x435824['data'],_0x21c270=void 0x0===_0x33217d['newValue']?'removeFormat':'addFormat';_0x532b99['push']({'type':_0x21c270,'key':_0x33217d['key']});}['_handleRenameSuggestionDescription'](_0x168d22,_0x3ffaa7){_0x168d22['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ffaa7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xdad7d6,_0x560261,_0x1c97bc){if(this['_addDescriptionItems'](_0xdad7d6,_0x560261),_0x1c97bc&&_0x1c97bc['getFirstRange']()&&!_0x560261['getFirstRange']()['end']['isEqual'](_0x1c97bc['getFirstRange']()['start'])){const _0xa3bd2c=_0xdad7d6[_0xdad7d6['length']-0x1],_0x34a05a='insertion'==_0x560261['type']?'add':'remove';_0xa3bd2c&&'text'==_0xa3bd2c['type']&&(_0xa3bd2c[_0x34a05a]+='\x0a');}}}class Ct extends _0x48a7fd{['afterInit'](){const _0x555d82=this['editor'],_0x5a913b=_0x555d82['plugins']['get']('TrackChangesEditing');_0x555d82['commands']['get']('showAIAssistant')&&_0x5a913b['enableCommand']('showAIAssistant');}}class yt extends _0x48a7fd{['afterInit'](){const _0x4ef9ee=this['editor'],_0x144d33=_0x4ef9ee['plugins']['get']('TrackChangesEditing');_0x4ef9ee['commands']['get']('toggleAi')&&_0x144d33['enableCommand']('toggleAi');}}class Nt extends _0x48a7fd{['afterInit'](){const _0x44fde0=this['editor'],_0x2f1b7e=_0x44fde0['plugins']['get']('TrackChangesEditing');_0x44fde0['commands']['get']('aiQuickAction')&&_0x2f1b7e['enableCommand']('aiQuickAction');}}class Rt extends _0x48a7fd{['afterInit'](){const _0x461535=this['editor'],_0xb9983e=_0x461535['locale'];if(!_0x461535['plugins']['has']('AlignmentEditing'))return;const _0x5bf499=_0x461535['plugins']['get']('TrackChangesEditing');_0x5bf499['enableDefaultAttributesIntegration']('alignment'),_0x5bf499['descriptionFactory']['registerAttributeLabel']('alignment',At(_0xb9983e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35be34=this['editor'],_0xe808ba=_0x35be34['locale'];_0x35be34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a1b72=>{if('formatBlock'!=_0x3a1b72['type'])return;const {data:_0x1244c8}=_0x3a1b72;if(_0x1244c8&&'alignment'==_0x1244c8['commandName']){const _0x20d720=_0x1244c8['commandParams'][0x0]['value'];return{'type':'format','content':At(_0xe808ba,'*Format:*\x20%0',function(_0x41e59e){switch(_0x41e59e){case'left':return At(_0xe808ba,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0xe808ba,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0xe808ba,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0xe808ba,'FORMAT_JUSTIFY_TEXT');}}(_0x20d720))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x48a7fd{['afterInit'](){const _0xf7aa45=this['editor'],_0x2b313f=_0xf7aa45['plugins']['get']('TrackChangesEditing'),_0x7dad33=_0xf7aa45['locale'];for(const _0x27bf5d of St){if(!_0xf7aa45['plugins']['has'](_0x27bf5d))continue;const _0x5bd31b=_0x27bf5d['slice'](0x0,-0x7)['toLowerCase'](),_0x4265d0='FORMAT_'+_0x5bd31b['toUpperCase']();_0x2b313f['enableDefaultAttributesIntegration'](_0x5bd31b),_0x2b313f['descriptionFactory']['registerAttributeLabel'](_0x5bd31b,At(_0x7dad33,_0x4265d0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17c3ff=this['editor'],_0x5456e1=_0x17c3ff['locale'],_0x3cfc38=_0x17c3ff['plugins']['get']('TrackChangesEditing');function _0x2c0d2c(_0x15f260,_0xd32d10){_0x3cfc38['descriptionFactory']['registerDescriptionCallback'](_0x660bd7=>{if('formatInline'!=_0x660bd7['type'])return;const {data:_0x561d9a}=_0x660bd7;return _0x561d9a&&_0x561d9a['commandName']===_0x15f260?_0x561d9a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5456e1,'*Format:*\x20%0',_0xd32d10)}:{'type':'format','content':At(_0x5456e1,'*Remove\x20format:*\x20%0',_0xd32d10)}:void 0x0;});}_0x2c0d2c('bold',At(_0x5456e1,'FORMAT_BOLD')),_0x2c0d2c('italic',At(_0x5456e1,'FORMAT_ITALIC')),_0x2c0d2c('underline',At(_0x5456e1,'FORMAT_UNDERLINE')),_0x2c0d2c('code',At(_0x5456e1,'FORMAT_CODE')),_0x2c0d2c('strikethrough',At(_0x5456e1,'FORMAT_STRIKETHROUGH')),_0x2c0d2c('subscript',At(_0x5456e1,'FORMAT_SUBSCRIPT')),_0x2c0d2c('superscript',At(_0x5456e1,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x48a7fd{['afterInit'](){const _0x122783=this['editor'],_0x23fe27=_0x122783['locale'];if(!_0x122783['plugins']['has']('BlockQuoteEditing'))return;const _0x956c02=_0x122783['plugins']['get']('TrackChangesEditing'),_0x173179=this['editor']['commands']['get']('blockQuote');_0x956c02['enableCommand']('blockQuote',(_0x3d7b18,_0x47da9f={})=>{const _0x586239=this['editor']['model']['document']['selection'],_0x31ada7=_0x47da9f&&void 0x0!==_0x47da9f['forceValue']?_0x47da9f['forceValue']:!_0x173179['value'];let _0xb95f8f=[];if(_0x31ada7){const _0x464c7e=Array['from'](_0x586239['getSelectedBlocks']())['filter'](_0x489f33=>wt(_0x489f33)||function(_0x2f2553,_0x31fb2f){const _0x385981=_0x31fb2f['checkChild'](_0x2f2553['parent'],'blockQuote'),_0x5c2bba=_0x31fb2f['checkChild'](['$root','blockQuote'],_0x2f2553);return _0x385981&&_0x5c2bba;}(_0x489f33,this['editor']['model']['schema']));_0xb95f8f=Tt(_0x464c7e,_0x122783['model']);}else{const _0x415c43=Array['from'](_0x586239['getSelectedBlocks']())['filter'](_0x52bf4d=>wt(_0x52bf4d));_0xb95f8f=Tt(_0x415c43,_0x122783['model']);}_0x122783['model']['change'](()=>{for(const _0x833da5 of _0xb95f8f)_0x956c02['markBlockFormat'](_0x833da5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x31ada7}]});});}),_0x956c02['descriptionFactory']['registerDescriptionCallback'](_0x221eef=>{const {data:_0x22b93b}=_0x221eef;if(_0x22b93b&&'blockQuote'==_0x22b93b['commandName']){const _0xe1062c=At(_0x23fe27,'ELEMENT_BLOCK_QUOTE');return _0x22b93b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x23fe27,'*Set\x20format:*\x20%0',_0xe1062c)}:{'type':'format','content':At(_0x23fe27,'*Remove\x20format:*\x20%0',_0xe1062c)};}});}}function wt(_0x4ff510){return'blockQuote'==_0x4ff510['parent']['name'];}class Bt extends _0x48a7fd{['afterInit'](){const _0x126232=this['editor'],_0x294167=_0x126232['locale'],_0x2c2b56=_0x126232['plugins']['get']('TrackChangesEditing');_0x126232['plugins']['has']('BookmarkEditing')&&(_0x2c2b56['enableCommand']('insertBookmark'),_0x2c2b56['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c2b56['descriptionFactory']['registerDescriptionCallback'](_0x472afc=>{if('insertion'!=_0x472afc['type']&&'deletion'!=_0x472afc['type']&&'attribute'!=_0x472afc['type'])return;const _0x547feb=_0x472afc['getContainedElement']();if(null==_0x547feb)return;if(!_0x547feb['is']('element','bookmark'))return;const _0x250eb2=_0x547feb['getAttribute']('bookmarkId');if('insertion'==_0x472afc['type'])return{'type':'insertion','content':At(_0x294167,'*Insert:*\x20%0','\x22'+_0x250eb2+'\x22\x20'+At(_0x294167,'ELEMENT_BOOKMARK'))};if('deletion'==_0x472afc['type'])return{'type':'deletion','content':At(_0x294167,'*Remove:*\x20%0','\x22'+_0x250eb2+'\x22\x20'+At(_0x294167,'ELEMENT_BOOKMARK'))};const {data:_0x2046be}=_0x472afc;if(!_0x2046be||'bookmarkId'!=_0x2046be['key'])return;return{'type':'format','content':At(_0x294167,'*Set\x20bookmark:*\x20%0','\x22'+_0x2046be['newValue']+'\x22')};}));}}class Ft extends _0x48a7fd{['afterInit'](){const _0x2a2bb2=this['editor'];_0x2a2bb2['plugins']['has']('CaseChange')&&(_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2a2bb2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x48a7fd{['afterInit'](){const _0x4dc01a=this['editor'];_0x4dc01a['commands']['get']('ckbox')&&_0x4dc01a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x48a7fd{['afterInit'](){const _0x57dc6c=this['editor'];if(!_0x57dc6c['plugins']['has']('CodeBlock'))return;const _0xc80236=_0x57dc6c['plugins']['get']('TrackChangesEditing'),_0x57f11d=_0x57dc6c['locale'],_0x3d5124=_0x57dc6c['config']['get']('codeBlock')['languages'],_0x11a342=_0x57dc6c['commands']['get']('codeBlock');_0xc80236['enableCommand']('indentCodeBlock'),_0xc80236['enableCommand']('outdentCodeBlock'),_0xc80236['enableCommand']('codeBlock',(_0x2ed294,_0x55c6fb={})=>{const _0x2ebbb7=_0x57dc6c['model'],_0x20903f=_0x57dc6c['model']['document']['selection'],_0xa00772=_0x55c6fb&&void 0x0!==_0x55c6fb['forceValue']?_0x55c6fb['forceValue']:!_0x11a342['value'];let _0x47f3b3;_0x55c6fb['language']||(_0x55c6fb['language']=_0x3d5124[0x0]['language']),_0x47f3b3=_0xa00772?Array['from'](_0x20903f['getSelectedBlocks']())['filter'](_0x2d6b9f=>xt(_0x2d6b9f)||function(_0x3983ac,_0x3bf6b3){if(_0x3983ac['is']('rootElement')||_0x3bf6b3['isLimit'](_0x3983ac))return!0x1;return _0x3bf6b3['checkChild'](_0x3983ac['parent'],'codeBlock');}(_0x2d6b9f,_0x2ebbb7['schema'])):Array['from'](_0x20903f['getSelectedBlocks']())['filter'](_0x380a46=>xt(_0x380a46));const _0x17d483=Tt(_0x47f3b3,_0x2ebbb7);_0x2ebbb7['change'](()=>{for(const _0x2fe966 of _0x17d483)_0xc80236['markBlockFormat'](_0x2fe966,{'commandName':'codeBlock','commandParams':[{..._0x55c6fb,'forceValue':_0xa00772}],'formatGroupId':'blockName'});});}),(_0xc80236['descriptionFactory']['registerElementLabel']('codeBlock',_0xffda2a=>At(_0x57f11d,'ELEMENT_CODE_BLOCK',_0xffda2a)),_0xc80236['descriptionFactory']['registerDescriptionCallback'](_0x3cb0fd=>{if('formatBlock'!=_0x3cb0fd['type'])return;const _0x21bb7f=_0x57f11d['t'],{data:_0x16c2ae}=_0x3cb0fd;if(!_0x16c2ae||'codeBlock'!=_0x16c2ae['commandName'])return;const _0x5b40f1=_0x16c2ae['commandParams'][0x0]['language'],_0x1091ce=_0x21bb7f(_0x3d5124['find'](_0x413855=>_0x413855['language']===_0x5b40f1)['label'])['toLowerCase']();return _0x16c2ae['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x57f11d,'*Set\x20format:*\x20%0',At(_0x57f11d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1091ce+')')}:{'type':'format','content':At(_0x57f11d,'*Remove\x20format:*\x20%0',At(_0x57f11d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x15ba15){return'codeBlock'==_0x15ba15['name'];}class Pt extends _0x48a7fd{['afterInit'](){const _0x585c77=this['editor'];if(!_0x585c77['plugins']['has']('CommentsEditing'))return;_0x585c77['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x48a7fd{static get['requires'](){return[at];}['init'](){const _0x3c1b8a=this['editor'],_0x2a6be8=_0x3c1b8a['plugins']['get']('TrackChangesEditing');_0x2a6be8['enableCommand']('delete');const _0x5cc4c9=_0x3c1b8a['commands']['get']('deleteForward');_0x2a6be8['enableCommand']('deleteForward',(_0x498640,_0x1fc7dd={})=>{const _0x247a95=_0x3c1b8a['model']['createSelection'](_0x3c1b8a['model']['document']['selection']);_0x247a95['isCollapsed']&&_0x3c1b8a['model']['modifySelection'](_0x247a95,{'direction':'forward','unit':_0x1fc7dd['unit']});const _0x3d40d1=_0x247a95['getFirstRange'](),_0x226efa=_0x211ae6['fromRange'](_0x3d40d1);let _0x3147b8;_0x498640(_0x1fc7dd),_0x3147b8='$graveyard'==_0x226efa['root']['rootName']?_0x3c1b8a['model']['createRange'](_0x3d40d1['start']):_0x3c1b8a['model']['createRange'](_0x226efa['start'],_0x226efa['end']),_0x226efa['detach'](),_0x3c1b8a['model']['enqueueChange'](_0x5cc4c9['buffer']['batch'],_0x19f18e=>{_0x5cc4c9['buffer']['lock'](),_0x19f18e['setSelection'](_0x19f18e['createRange'](_0x3147b8['end'])),_0x5cc4c9['buffer']['unlock']();});});}}class Gt extends _0x48a7fd{['afterInit'](){const _0x345f04=this['editor'];if(!_0x345f04['plugins']['has']('ListEditing'))return;const _0x1f7640=_0x345f04['locale'],_0x46622f=_0x345f04['plugins']['get']('TrackChangesEditing'),_0xdb3543=_0x345f04['plugins']['has']('TodoListEditing'),_0x5ab573=!!_0x345f04['config']['get']('list.multiBlock');function _0x3da52d(_0x2a30cc){return{'type':'format','content':''+At(_0x1f7640,'*Set\x20format:*\x20%0',_0x2a30cc)};}function _0x1be26b(_0x74debf){return{'type':'format','content':''+At(_0x1f7640,'*Remove\x20format:*\x20%0',_0x74debf)};}_0x46622f['enableDefaultAttributesIntegration']('numberedList'),_0x46622f['enableDefaultAttributesIntegration']('bulletedList'),_0x46622f['enableDefaultAttributesIntegration']('customNumberedList'),_0x46622f['enableDefaultAttributesIntegration']('customBulletedList'),_0x46622f['enableDefaultAttributesIntegration']('indentList'),_0x46622f['enableDefaultAttributesIntegration']('outdentList'),_0x46622f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x46622f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5ab573&&(_0x46622f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x46622f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdb3543&&(_0x46622f['enableDefaultAttributesIntegration']('todoList'),_0x46622f['enableDefaultAttributesIntegration']('checkTodoList'),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x647879=>{const {data:_0x4a4083}=_0x647879;if(_0x4a4083&&'todoListChecked'==_0x4a4083['key'])return{'type':'format','content':_0x4a4083['newValue']?At(_0x1f7640,'*Check\x20item*'):At(_0x1f7640,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x26d020=>{if(_0x26d020['batch']['isUndo'])return!0x1;let _0xc6ab9f=!0x1;const _0x31ff68=_0x46622f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc70ead=>'todoListChecked'===_0x46622f['_getAttributeKey'](_0xc70ead));for(const _0x458e59 of _0x31ff68){'todo'!=_0x458e59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x46622f['_findSuggestions'](_0x458e59['getFirstRange'](),'attribute')['find'](_0xb389e8=>'listType'===_0x46622f['_getAttributeKey'](_0xb389e8['suggestion']))||(_0x26d020['removeMarker'](_0x458e59['getFirstMarker']()),_0xc6ab9f=!0x0));}return _0xc6ab9f;})),_0x46622f['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x1f7640,'FORMAT_INDENT'));const _0x41fcb1={'type':'format','content':''};_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x1ed0e9=>{const {data:_0x4427a9}=_0x1ed0e9;if(!_0x4427a9||'listType'!=_0x4427a9['key'])return;let _0x173fae=_0x1ed0e9['head'];for(;_0x173fae;){if(_0x173fae['data']&&(('listStyle'==_0x173fae['data']['key']||'listMarkerStyle'==_0x173fae['data']['key'])&&(_0x173fae['data']['newValue']&&'default'!=_0x173fae['data']['newValue']||'default'!=_0x173fae['data']['oldValue']&&!_0x4427a9['newValue'])||!_0x5ab573&&_0x173fae['data']['key']==Ke))return _0x41fcb1;_0x173fae=_0x173fae['next'];}if(null==_0x4427a9['newValue'])switch(_0x4427a9['oldValue']){case'bulleted':return _0x1be26b(At(_0x1f7640,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1be26b(At(_0x1f7640,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1be26b(At(_0x1f7640,'ELEMENT_TODO_LIST'));}switch(_0x4427a9['newValue']){case'bulleted':return _0x3da52d(At(_0x1f7640,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3da52d(At(_0x1f7640,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3da52d(At(_0x1f7640,'ELEMENT_TODO_LIST'));}}),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x5806eb=>{const {data:_0x30509d}=_0x5806eb;if(_0x30509d&&'listIndent'==_0x30509d['key'])return null==_0x30509d['newValue']||null==_0x30509d['oldValue']&&0x0==_0x30509d['newValue']?_0x41fcb1:void 0x0;}),_0x46622f['descriptionFactory']['registerDescriptionCallback'](_0x5a4802=>{if('attribute'!=_0x5a4802['type'])return;const {data:_0x219ee0}=_0x5a4802;if(!_0x219ee0||'listItemId'!=_0x219ee0['key'])return;const _0x1bfa9a=Ht(_0x5a4802);return'newValue'==_0x1bfa9a?{'type':'format','content':At(_0x1f7640,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bfa9a?{'type':'format','content':At(_0x1f7640,'*Split:*\x20list\x20item')}:_0x41fcb1;}),_0x345f04['model']['document']['registerPostFixer'](_0x20d85f=>this['listItemIdFixer'](_0x20d85f)),_0x345f04['model']['document']['registerPostFixer'](_0x2062c8=>this['noTrackChangesFixer'](_0x2062c8)),_0x345f04['model']['document']['on']('change:data',(_0x14b36f,_0x520f9b)=>{if(_0x520f9b['isUndo']||!_0x520f9b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4e6737){if(_0x4e6737['batch']['isUndo']||!_0x4e6737['batch']['isLocal'])return!0x1;let _0x8fd76a=!0x1;const _0x5cdf0b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x500d74=>_0x500d74['data']&&'listItemId'==_0x500d74['data']['key'])['filter'](_0xf093f7=>_0xf093f7['data']['newValue']&&_0xf093f7['data']['oldValue']);for(const _0x340cff of _0x5cdf0b)Ht(_0x340cff)||(_0x4e6737['removeMarker'](_0x340cff['getFirstMarker']()),_0x8fd76a=!0x0);return _0x8fd76a;}['noTrackChangesFixer'](_0x2980d8){if(_0x2980d8['batch']['isUndo']||!_0x2980d8['batch']['isLocal'])return!0x1;const _0xc6865e=this['editor']['model']['document']['differ'],_0xa2798a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa2798a['trackChangesCommand']['value'])return!0x1;let _0x4cce13=!0x1;const _0x2d7663=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle']),_0x189737=_0xc6865e['getChanges']()['filter'](_0x51830b=>'attribute'==_0x51830b['type'])['filter'](_0x51f5cc=>_0x2d7663['has'](_0x51f5cc['attributeKey']));if(0x0==_0x189737['length'])return _0x4cce13;const _0xff2117=new Set(_0xc6865e['getMarkersToAdd']()['filter'](_0x3ed93b=>{if(!_0x3ed93b['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x38f695=_0x2cca50(_0x3ed93b['name'])['subType']['split']('|')[0x0];return _0x2d7663['has'](_0x38f695);})['map'](_0x537c8=>_0x2cca50(_0x537c8['name'])['id']));for(const _0x450ee6 of _0x189737){const _0x11da90=_0xa2798a['_findSuggestions'](_0x450ee6['range'],'attribute')['filter'](_0x1a041d=>{if(_0x1a041d['meta']['isNextTo'])return!0x1;if(_0xff2117['has'](_0x1a041d['suggestion']['id']))return!0x1;const _0x4ad724=_0xa2798a['_getAttributeKey'](_0x1a041d['suggestion']);return _0x2d7663['has'](_0x4ad724);})['map'](_0x557a7c=>_0x557a7c['suggestion']);if(_0x11da90['length']){for(const _0x4bad55 of _0x11da90)_0x2980d8['removeMarker'](_0x4bad55['getFirstMarker']());_0x4cce13=!0x0;}}return _0x4cce13;}['assureChains'](){const _0x2ce795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33d247=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2454f8;const _0x1c1dc2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x98f50d=>{if(_0x98f50d['data']['oldRange']||!_0x98f50d['data']['newRange'])return null;if(!_0x98f50d['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5ac16f}=_0x2cca50(_0x98f50d['name']);if(!_0x2ce795['hasSuggestion'](_0x5ac16f))return null;const _0xeeb5b0=_0x2ce795['getSuggestion'](_0x5ac16f);return _0x33d247['includes'](_0xeeb5b0['data']['key']);})['map'](_0x4dcb69=>{const {id:_0x278a3e}=_0x2cca50(_0x4dcb69['name']),_0x43d4b1=_0x2ce795['getSuggestion'](_0x278a3e);return _0x2454f8=_0x43d4b1['attributes']['groupId'],_0x43d4b1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1c1dc2['size'])return;const _0x5590a6=_0x2ce795['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x593e3e=>'attribute'==_0x593e3e['type']&&_0x593e3e['data']&&_0x33d247['includes'](_0x593e3e['data']['key'])&&_0x593e3e['attributes']['groupId']!=_0x2454f8)['map'](_0x2c2f56=>({'listItem':_0x2c2f56['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2c2f56['attributes']['groupId']})),_0x2efa2d=new Set();for(const {groupId:_0x1c5fc8,listItem:_0x100de2}of _0x5590a6)_0x1c1dc2['has'](_0x100de2)&&_0x2efa2d['add'](_0x1c5fc8);for(const _0x431333 of _0x2ce795['getSuggestions']())_0x2efa2d['has'](_0x431333['attributes']['groupId'])&&_0x431333['setAttribute']('groupId',_0x2454f8);}['_supportLegacySuggestions'](){const _0x3a86bd=this['editor'],_0x5a311d=_0x3a86bd['locale'],_0x57ffe9=_0x3a86bd['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x57ffe9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54fbe0,_0x130615){const _0x4c81f0=[];for(let _0x186561 of _0x54fbe0)_0x186561['start']['nodeAfter']===_0x186561['end']['parent']&&(_0x186561=_0x3a86bd['model']['createRange'](_0x3a86bd['model']['createPositionAt'](_0x186561['start']['nodeAfter'],0x0))),_0x4c81f0['push'](_0x186561);_0x3a86bd['model']['change'](_0x298b40=>{const _0x3b3723=_0x3a86bd['model']['document']['selection'],_0x3233f6=Array['from'](_0x3b3723['getRanges']())['map'](_0x2d6c15=>_0x211ae6['fromRange'](_0x2d6c15));_0x298b40['setSelection'](_0x4c81f0),_0x3a86bd['commands']['get'](_0x130615['commandName'])['refresh'](),_0x130615['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3a86bd['execute'](_0x130615['commandName'],..._0x130615['commandParams']),_0x298b40['setSelection'](_0x3233f6);for(const _0x24da3d of _0x3233f6)_0x24da3d['detach']();});}),_0x57ffe9['descriptionFactory']['registerElementLabel'](function(_0xf3ad7f){const _0x2ddf37=!_0x3a86bd['model']['schema']['isObject'](_0xf3ad7f),_0x37361f=_0xf3ad7f['previousSibling'],_0x5ec09f=_0xf3ad7f['nextSibling'],_0x4df96c=_0xf3ad7f['getAttribute']('listItemId'),_0x110555=!_0x37361f||_0x37361f['getAttribute']('listItemId')!==_0x4df96c,_0x21dd84=!_0x5ec09f||_0x5ec09f['getAttribute']('listItemId')!==_0x4df96c;return _0x2ddf37&&Boolean(_0x4df96c)&&_0x110555&&_0x21dd84;},_0x74957=>At(_0x5a311d,'ELEMENT_LIST_ITEM',_0x74957));}['_registerLegacyDescription'](){const _0x4bdaa3=this['editor'],_0x2b2dd9=_0x4bdaa3['locale'];function _0x34583c(_0x4d62a8){const _0x5c580d=_0x4bdaa3['commands']['get']('bulletedList')['value'],_0x12c28f=_0x4bdaa3['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d62a8?_0x5c580d:_0x12c28f;}_0x4bdaa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x24c55b){if('formatBlock'!=_0x24c55b['type'])return;const {data:_0x3af056}=_0x24c55b;if(!_0x3af056)return;let _0x48e636,_0x19fb6a,_0x42d18a,_0x297589;switch(_0x3af056['commandName']){case'bulletedList':_0x42d18a=_0x3af056['commandParams'][0x0]['forceValue'],_0x297589=_0x34583c(_0x3af056['commandName']),_0x48e636=_0x42d18a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x297589&&_0x4bdaa3['config']['get']('list.multiBlock')||(_0x48e636='*Change\x20to:*\x20%0'),_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42d18a=_0x3af056['commandParams'][0x0]['forceValue'],_0x297589=_0x34583c(_0x3af056['commandName']),_0x48e636=_0x42d18a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x297589&&_0x4bdaa3['config']['get']('list.multiBlock')||(_0x48e636='*Change\x20to:*\x20%0'),_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x48e636='*Indent:*\x20%0',_0x19fb6a={'type':'format','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x48e636=function(_0x2ca1ef){const _0x199634=_0x2ca1ef['getFirstRange']();let _0x1539f0=_0x199634['start']['nodeAfter'];for(;_0x1539f0&&_0x199634['containsItem'](_0x1539f0);){if(_0x1539f0['getAttribute']('listIndent')>0x0)return!0x1;_0x1539f0=_0x1539f0['nextSibling'];}return!0x0;}(_0x24c55b)?At(_0x2b2dd9,'*Format:*\x20remove\x20from\x20%0',At(_0x2b2dd9,function(_0x5beb35){return'ELEMENT_'+_0x5beb35['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x24c55b))):At(_0x2b2dd9,'*Outdent:*\x20%0',At(_0x2b2dd9,'ELEMENT_LIST_ITEM')),_0x19fb6a={'type':'format','content':_0x48e636};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3af056['multipleBlocks']&&(_0x48e636='*Merge:*\x20%0',_0x19fb6a={'type':'deletion','content':At(_0x2b2dd9,_0x48e636,At(_0x2b2dd9,'ELEMENT_LIST_ITEM'))});}return _0x19fb6a;});}}function Ht(_0x559600){let _0x1bb966=_0x559600['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1bb966;){const _0x10aaed=_0x1bb966['getAttribute']('listItemId');if(!_0x10aaed)return!0x1;if(_0x10aaed==_0x559600['data']['newValue'])return'newValue';if(_0x10aaed==_0x559600['data']['oldValue'])return'oldValue';_0x1bb966=_0x1bb966['previousSibling'];}return!0x1;}class $t extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3f0050=this['editor']['config']['get']('list.properties'),_0x507272=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f0050['styles']&&_0x507272['enableDefaultAttributesIntegration']('listStyle'),_0x3f0050['reversed']&&_0x507272['enableDefaultAttributesIntegration']('listReversed'),_0x3f0050['startIndex']&&_0x507272['enableDefaultAttributesIntegration']('listStart');const _0x4d58d3={'type':'format','content':''};_0x507272['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2907f8=this['editor']['locale'];_0x507272['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x2907f8,'FORMAT_LIST_REVERSED')),_0x507272['descriptionFactory']['registerDescriptionCallback'](_0x2b12f1=>{const {data:_0x3389b3}=_0x2b12f1;if(_0x3389b3&&'listReversed'==_0x3389b3['key'])return null==_0x3389b3['newValue']||0x0==_0x3389b3['newValue']&&null==_0x3389b3['oldValue']?_0x4d58d3:void 0x0;}),_0x507272['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x2907f8,'FORMAT_LIST_START')),_0x507272['descriptionFactory']['registerDescriptionCallback'](_0x10c0f0=>{const {data:_0x5563a3}=_0x10c0f0;if(_0x5563a3&&'listStart'==_0x5563a3['key'])return null==_0x5563a3['newValue']||0x1==_0x5563a3['newValue']&&null==_0x5563a3['oldValue']?_0x4d58d3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x223412=>{if(_0x223412['batch']['isUndo'])return!0x1;let _0xb35447=!0x1;const _0x2a7d46=_0x507272['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x289506=>{const _0x25bfc9=_0x507272['_getAttributeKey'](_0x289506);return'listStart'==_0x25bfc9||'listReversed'==_0x25bfc9;});for(const _0x40103f of _0x2a7d46){const _0x546410=_0x40103f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x546410||'customNumbered'==_0x546410)continue;_0x507272['_findSuggestions'](_0x40103f['getFirstRange'](),'attribute')['find'](_0xd644bf=>'listType'==_0x507272['_getAttributeKey'](_0xd644bf['suggestion']))||(_0x223412['removeMarker'](_0x40103f['getFirstMarker']()),_0xb35447=!0x0);}return _0xb35447;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a8e03){const _0x6d8896=this['editor']['locale'],{data:_0x4442c6}=_0x1a8e03,_0x4bc916={'type':'format','content':''};if(!_0x4442c6||'listStyle'!=_0x4442c6['key'])return;if(!_0x4442c6['oldValue'])return'default'==_0x4442c6['newValue']?_0x4bc916:{'type':'format','content':''+At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['newValue'])))};if(!_0x4442c6['newValue']){if('default'==_0x4442c6['oldValue'])return _0x4bc916;let _0x1b9939=_0x1a8e03['head'];for(;_0x1b9939;){if(_0x1b9939['data']&&'listType'==_0x1b9939['data']['key']&&_0x1b9939['data']['newValue'])return _0x4bc916;_0x1b9939=_0x1b9939['next'];}return{'type':'format','content':''+At(_0x6d8896,'*Remove\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['oldValue'])))};}if('default'!=_0x4442c6['newValue'])return{'type':'format','content':''+At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,this['_getTranslationKeyForListStyle'](_0x4442c6['newValue'])))};let _0x58bd00=_0x1a8e03['head'];for(;_0x58bd00;){if(_0x58bd00['data']&&'listType'==_0x58bd00['data']['key']&&_0x58bd00['data']['newValue']&&_0x58bd00['data']['oldValue'])return _0x4bc916;_0x58bd00=_0x58bd00['next'];}return{'type':'format','content':At(_0x6d8896,'*Set\x20format:*\x20%0',At(_0x6d8896,'ELEMENT_'+_0x1a8e03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1ea31f=this['editor'],_0x47123c=_0x1ea31f['locale'];_0x1ea31f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ef50a=>{if('formatBlock'!=_0x4ef50a['type'])return;const {data:_0x32ad4d}=_0x4ef50a;if(!_0x32ad4d)return;let _0x26a6ad,_0x280910;switch(_0x32ad4d['commandName']){case'listStyle':_0x26a6ad='*Change\x20to:*\x20%0',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad,At(_0x47123c,this['_getTranslationKeyForListStyle'](_0x32ad4d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26a6ad=_0x32ad4d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad)};break;case'listStart':_0x26a6ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x280910={'type':'format','content':At(_0x47123c,_0x26a6ad,_0x32ad4d['commandParams'][0x0]['startIndex'])};}return _0x280910;});}['_getTranslationKeyForListStyle'](_0x153bec){return'ELEMENT_'+function(_0xbd4582){if(Wt['includes'](_0xbd4582))return'bulleted';if(Vt['includes'](_0xbd4582))return'numbered';return null;}(_0x153bec)['toUpperCase']()+'_LIST_'+_0x153bec['toUpperCase']()['replace'](/-/g,'_');}}const Wt=['disc','circle','square'],Vt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class jt extends _0x48a7fd{['afterInit'](){const _0x13f0c8=this['editor'];_0x13f0c8['commands']['get']('emoji')&&_0x13f0c8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x48a7fd{static get['requires'](){return[lt];}['init'](){const _0x39577c=this['editor'],_0x5221d7=_0x39577c['plugins']['get']('TrackChangesEditing'),_0x176721=_0x39577c['commands']['get']('enter');_0x5221d7['enableCommand']('enter',()=>{_0x39577c['model']['change'](_0x37c001=>{const _0x362887=_0x39577c['model']['document']['selection'],_0x1c821e=_0x362887['getFirstPosition'](),_0x2c693f=_0x211ae6['fromRange'](_0x362887['getFirstRange']());if(_0x176721['enterBlock'](_0x37c001)){const _0x5ca482=_0x39577c['model']['createPositionAt'](_0x1c821e['parent']['nextSibling'],0x0),_0x59b713=_0x37c001['createRange'](_0x1c821e,_0x5ca482);_0x5221d7['markInsertion'](_0x59b713);}else _0x37c001['setSelection'](_0x37c001['createRange'](_0x2c693f['end']));_0x2c693f['detach'](),_0x176721['fire']('afterExecute',{'writer':_0x37c001});});});}}class Kt extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x473b61=this['editor']['plugins']['get']('TrackChangesEditing');_0x473b61['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x473b61['enableCommand']('findNext'),_0x473b61['enableCommand']('findPrevious'),_0x473b61['enableCommand']('replace'),_0x473b61['enableCommand']('replaceAll');}['handleFindCommand'](_0xf0c9fb,_0x169d3f,_0x175a5a={}){const _0x40776e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xf0c9fb(_0x2924b6=>{let _0x15c665=('string'==typeof _0x169d3f?_0x40776e['findByTextCallback'](_0x169d3f,_0x175a5a):_0x169d3f)(_0x2924b6);Array['isArray'](_0x15c665)&&(_0x15c665={'results':_0x15c665,'searchText':'string'==typeof _0x169d3f?_0x169d3f:''});const _0x2c2740=_0x15c665['results']['filter'](_0x2a24fa=>!0x1===this['_isInDeletionRange'](_0x2a24fa,_0x2924b6['item']));return{..._0x15c665,'results':_0x2c2740};},_0x175a5a);}['_isInDeletionRange'](_0x2dced1,_0x2d13a2){const _0x3144e0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d13a2,_0x2dced1['start']),this['editor']['model']['createPositionAt'](_0x2d13a2,_0x2dced1['end']));for(const _0x1df4ff of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3144e0['getIntersection'](_0x1df4ff['getRange']()))return!0x0;return!0x1;}}const Xt=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Yt extends _0x48a7fd{['afterInit'](){const _0x4dc020=this['editor']['locale'],_0x43037d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3f8bb4,commandName:_0x566e7b}of Xt)this['editor']['plugins']['has'](_0x3f8bb4)&&_0x43037d['enableDefaultAttributesIntegration'](_0x566e7b);_0x43037d['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4dc020,'FORMAT_FONT_SIZE')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4dc020,'FORMAT_FONT_FAMILY')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4dc020,'FORMAT_FONT_COLOR')),_0x43037d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4dc020,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430e29=this['editor'],_0x79758b=_0x430e29['locale'];_0x430e29['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x391951=>{const _0x1f7b47=_0x79758b['t'];if('formatInline'!=_0x391951['type'])return;const {data:_0x68d53d}=_0x391951;if(null!=_0x68d53d){if('fontSize'==_0x68d53d['commandName']){const _0x4dd96c=_0x68d53d['commandParams'][0x0]['value'];if(_0x4dd96c){const _0x4c66c9=_0x1f7b47(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x11901b=>_0x11901b['model']==_0x4dd96c)['title'])['toLowerCase']();return{'type':'format','content':At(_0x79758b,'*Set\x20font\x20size:*\x20%0',_0x4c66c9)};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x68d53d['commandName']){const _0x4c3298=_0x68d53d['commandParams'][0x0]['value'];return _0x4c3298?{'type':'format','content':At(_0x79758b,'*Set\x20font\x20family:*\x20%0',_0x4c3298)}:{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20family*')};}if('fontColor'==_0x68d53d['commandName']){const _0xd77e72=_0x68d53d['commandParams'][0x0]['value'];if(_0xd77e72){const _0x1f4291=_0x5e9d45(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e78ba=>_0x3e78ba['model']==_0xd77e72);let _0x13472a=_0xd77e72,_0x4345d4='';return _0x1f4291&&(_0x13472a=_0x1f4291['label'],_0x4345d4=_0x1f7b47(_0x13472a)['toLowerCase']()),{'type':'format','content':At(_0x79758b,'*Set\x20font\x20color:*\x20%0',_0x4345d4)['trim'](),'color':{'value':_0xd77e72,'title':_0x4345d4||_0x13472a}};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x68d53d['commandName']){const _0x1045de=_0x68d53d['commandParams'][0x0]['value'];if(_0x1045de){const _0x5b1f36=_0x5e9d45(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4272df=>_0x4272df['model']==_0x1045de);let _0x49db08=_0x1045de,_0x982986='';return _0x5b1f36&&(_0x49db08=_0x5b1f36['label'],_0x982986=_0x1f7b47(_0x49db08)['toLowerCase']()),{'type':'format','content':At(_0x79758b,'*Set\x20font\x20background\x20color:*\x20%0',_0x982986)['trim'](),'color':{'value':_0x1045de,'title':_0x982986||_0x49db08}};}return{'type':'format','content':At(_0x79758b,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x48a7fd{['afterInit'](){const {plugins:_0x481e3f}=this['editor'];_0x481e3f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x481e3f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2b37,plugins:_0x296ead,commands:_0x3d42b2}=this['editor'],_0x1a929e=_0x296ead['get']('TrackChangesEditing');_0x3d42b2['get']('footnotesStyle')&&_0x1a929e['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3d42b2['get']('footnotesStart')&&_0x1a929e['enableDefaultAttributesIntegration']('footnotesStart'),_0x1a929e['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x2b37,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x1a929e['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x2b37,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x4e6984=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x413986,commands:_0x22f98a}=this['editor'];_0x22f98a['get']('insertFootnote')&&_0x4e6984['enableCommand']('insertFootnote'),_0x4e6984['descriptionFactory']['registerElementLabel']('footnoteRef',_0x514666=>At(_0x413986,'ELEMENT_FOOTNOTE_REF',_0x514666)),_0x4e6984['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4aa06e=>At(_0x413986,'ELEMENT_FOOTNOTE_DEFINITION',_0x4aa06e)),_0x4e6984['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xbe3a7c=>At(_0x413986,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xbe3a7c));}}class Qt extends _0x48a7fd{['afterInit'](){const _0x161525=this['editor'],_0x48c103=_0x161525['plugins']['get']('TrackChangesEditing'),_0x117575=_0x161525['commands']['get']('copyFormat'),_0x2cff0f=_0x161525['commands']['get']('pasteFormat');_0x117575&&_0x2cff0f&&(_0x48c103['enableDefaultAttributesIntegration']('pasteFormat'),_0x48c103['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x21f552=this['editor'],_0x7331e5=_0x21f552['locale'];_0x21f552['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ba82=>{if('formatBlock'!=_0x47ba82['type']&&'formatInline'!=_0x47ba82['type'])return;const {data:_0x4fa271}=_0x47ba82;if(_0x4fa271&&'pasteFormat'===_0x4fa271['commandName']){const _0x4dbc56=[],_0x6941b=_0x4fa271['commandParams'][0x0];for(const [_0xf1fde2,_0x1ed93e]of Object['entries'](_0x6941b))_0x4dbc56['push'](Zt(_0x21f552,_0xf1fde2,_0x1ed93e));return _0x4dbc56['length']?{'type':'format','content':At(_0x7331e5,'*Set\x20format\x20to:*\x20%0',_0x4dbc56['join'](',\x20'))}:{'type':'format','content':At(_0x7331e5,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x59fa95,_0x3ed283,_0x34a48f){const _0x48ff50=_0x59fa95['locale']['t'],_0x11819a=_0x3ed283['split'](/(?=[A-Z])/)['join']('\x20'),_0x110e9f=_0x48ff50(_0x11819a['charAt'](0x0)['toUpperCase']()+_0x11819a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x34a48f)return _0x110e9f;if('fontColor'===_0x3ed283||'fontBackgroundColor'===_0x3ed283){const _0x76edc6=_0x5e9d45(_0x59fa95['config']['get']('fontColor.colors'))['find'](_0x29ef07=>_0x29ef07['model']==_0x34a48f);return _0x110e9f+'\x20('+(_0x76edc6?_0x48ff50(_0x76edc6['label'])['toLowerCase']():_0x34a48f)+')';}if('fontSize'===_0x3ed283&&isNaN(parseFloat(_0x34a48f))){const _0x94a3c0=_0x59fa95['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59fa95['config']['get']('fontSize.options'))['find'](_0x37b550=>_0x37b550['model']==_0x34a48f);return _0x110e9f+'\x20('+(_0x94a3c0?_0x48ff50(_0x94a3c0['title'])['toLowerCase']():_0x34a48f)+')';}return _0x110e9f+'\x20('+_0x34a48f+')';}class Jt extends _0x48a7fd{['_headingOptions'];['afterInit'](){const _0x259a04=this['editor'];if(!_0x259a04['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x259a04['config']['get']('heading.options');const _0x553922=_0x259a04['locale'],_0x17135d=_0x259a04['plugins']['get']('TrackChangesEditing');_0x17135d['enableDefaultAttributesIntegration']('heading');for(const _0x4a3e62 of this['_headingOptions'])'paragraph'!=_0x4a3e62['model']&&_0x17135d['descriptionFactory']['registerElementLabel'](_0x4a3e62['model'],_0x1000be=>{const _0xe95bcc=this['_getHeadingLevel'](_0x4a3e62['model']);return null!==_0xe95bcc?_0x1fbde6(_0x1000be,_0xe95bcc):_0x3feb26(_0x1000be,_0x4a3e62['title']);});function _0x1fbde6(_0x384e79,_0x5f0065){return At(_0x553922,'ELEMENT_HEADING',[_0x384e79,_0x5f0065]);}function _0x3feb26(_0x22cbd1,_0x202041){return At(_0x553922,'ELEMENT_HEADING_CUSTOM',[_0x22cbd1,_0x202041]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432d80=this['editor'],_0xd53b15=_0x432d80['locale'];function _0x3ec2e9(_0x31a8da,_0x4172af){return At(_0xd53b15,'ELEMENT_HEADING_CUSTOM',[_0x31a8da,_0x4172af]);}_0x432d80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d57bd=>{if('formatBlock'!=_0x4d57bd['type'])return;const {data:_0x3f8701}=_0x4d57bd;if(_0x3f8701&&'heading'==_0x3f8701['commandName']){const _0x1e6d3e=_0x3f8701['commandParams'][0x0]['value'],_0x202a54=this['_getHeadingLevel'](_0x1e6d3e);if(null!==_0x202a54)return{'type':'format','content':At(_0xd53b15,'*Change\x20to:*\x20%0',(_0x344fd3=0x1,_0x871567=_0x202a54,At(_0xd53b15,'ELEMENT_HEADING',[_0x344fd3,_0x871567])))};const _0x1d1edf=this['_headingOptions']['find'](_0x3c4a2b=>_0x3c4a2b['model']===_0x1e6d3e)['title'];return{'type':'format','content':At(_0xd53b15,'*Change\x20to:*\x20%0',_0x3ec2e9(0x1,_0x1d1edf))};}var _0x344fd3,_0x871567;});}['_getHeadingLevel'](_0x821e08){const _0x45688b=_0x821e08['match'](/^heading(\d+)/);if(_0x45688b)return _0x45688b[0x1];const _0x47da5d=this['_headingOptions']?.['find'](_0x9d87dc=>_0x9d87dc['model']==_0x821e08);if(_0x47da5d&&_0x47da5d['view']){const _0x1e854f=_0x47da5d['view'],_0x4a4430=(_0x1e854f['name']??_0x1e854f)['match'](/^h(\d+)/);if(_0x4a4430)return _0x4a4430[0x1];}return null;}}class te extends _0x48a7fd{['afterInit'](){const _0x7fc86f=this['editor'];if(!_0x7fc86f['plugins']['has']('HighlightEditing'))return;const _0x4947a8=_0x7fc86f['plugins']['get']('TrackChangesEditing'),_0x568f03=_0x7fc86f['locale'];_0x4947a8['enableDefaultAttributesIntegration']('highlight'),_0x4947a8['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x568f03,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2feb49=this['editor'],_0xeec22f=_0x2feb49['locale'];_0x2feb49['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378182=>{if('formatInline'!=_0x378182['type'])return;const {data:_0x261cc7}=_0x378182;if(_0x261cc7&&'highlight'==_0x261cc7['commandName']){const _0x30e6e1=_0xeec22f['t'],_0x26cdb5=_0x261cc7['commandParams'][0x0]['value'];if(_0x26cdb5){const _0x2cfb96=_0x2feb49['config']['get']('highlight.options')['find'](_0x33a414=>_0x33a414['model']==_0x26cdb5),_0x68aa32=_0x30e6e1(_0x2cfb96['title'])['toLowerCase']();return{'type':'format','content':At(_0xeec22f,'*Set\x20highlight:*\x20%0',_0x68aa32),'color':{'value':_0x2cfb96['color'],'title':_0x2cfb96['title']}};}return{'type':'format','content':At(_0xeec22f,'*Remove\x20highlight*',At(_0xeec22f,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x48a7fd{['afterInit'](){const _0x24bbb0=this['editor'];if(!_0x24bbb0['plugins']['has']('HorizontalLineEditing'))return;_0x24bbb0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x47d26b=_0x24bbb0['plugins']['get']('TrackChangesEditing'),_0x3b106f=_0x24bbb0['locale'];_0x47d26b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x758365=>At(_0x3b106f,'ELEMENT_HORIZONTAL_LINE',_0x758365));}}class ne extends _0x48a7fd{['afterInit'](){const _0x6c4683=this['editor'];if(!_0x6c4683['plugins']['has']('HtmlEmbed'))return;const _0x198386=_0x6c4683['plugins']['get']('TrackChangesEditing'),_0x1cf44c=_0x6c4683['locale'];_0x198386['descriptionFactory']['registerElementLabel']('rawHtml',_0x2cac00=>At(_0x1cf44c,'ELEMENT_HTML_EMBED',_0x2cac00)),_0x198386['enableDefaultAttributesIntegration']('htmlEmbed'),_0x198386['descriptionFactory']['registerDescriptionCallback'](_0x3bdf9a=>{if('attribute'!=_0x3bdf9a['type'])return;const {data:_0x12fb3f}=_0x3bdf9a;if(_0x12fb3f&&'value'==_0x12fb3f['key']&&_0x3bdf9a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2175f0=At(_0x1cf44c,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x1cf44c,'*Change\x20%0\x20content*',_0x2175f0)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b954b=this['editor'],_0x114cb1=_0x1b954b['locale'];_0x1b954b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28517e=>{if('formatBlock'!=_0x28517e['type'])return;const {data:_0x4981d3}=_0x28517e;if(_0x4981d3&&'htmlEmbed'==_0x4981d3['commandName']){const _0x41ed13=At(_0x114cb1,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x114cb1,'*Change\x20%0\x20content*',_0x41ed13)};}});}}class ie extends _0x48a7fd{['afterInit'](){const _0x5857ac=this['editor'];if(!_0x5857ac['plugins']['has']('ImageEditing'))return;const _0x401a1d=_0x5857ac['plugins']['get']('TrackChangesEditing'),_0x23b596=_0x5857ac['plugins']['get']('ImageUtils'),_0x1c2b3f=_0x5857ac['locale'];_0x401a1d['enableCommand']('insertImage'),_0x401a1d['descriptionFactory']['registerElementLabel']('imageBlock',_0x3181dc=>At(_0x1c2b3f,'ELEMENT_IMAGE',_0x3181dc)),_0x401a1d['descriptionFactory']['registerElementLabel']('imageInline',_0x20a763=>At(_0x1c2b3f,'ELEMENT_INLINE_IMAGE',_0x20a763)),_0x401a1d['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x1c2b3f,'ELEMENT_CAPTION')),_0x5857ac['plugins']['has']('ImageUploadEditing')&&_0x401a1d['enableCommand']('uploadImage'),_0x5857ac['plugins']['has']('ImageBlockEditing')&&_0x5857ac['plugins']['has']('ImageInlineEditing')&&(_0x401a1d['enableCommand']('imageTypeInline',(_0x10818d,_0x16ba41)=>{const _0x273f17=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']);_0x5857ac['model']['change'](()=>{_0x401a1d['markBlockFormat'](_0x273f17,{'commandName':'imageTypeInline','commandParams':[_0x16ba41]},[],'convertBlockImageToInline');});}),_0x401a1d['enableCommand']('imageTypeBlock',(_0x1423a6,_0x488792)=>{_0x5857ac['model']['change'](_0x5a36f8=>{let _0x1491b3=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x66eb2b=_0x5a36f8['createRangeOn'](_0x1491b3);const _0x4286d3=tt['fromPosition'](_0x66eb2b['start'],'toPrevious'),_0x1b90c8=tt['fromPosition'](_0x66eb2b['end'],'toNext');_0x401a1d['forceDefaultExecution'](()=>_0x1423a6(_0x488792)),_0x1491b3=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x66eb2b=_0x5a36f8['createRangeOn'](_0x1491b3);const _0x4fed93=_0x5a36f8['createRange'](_0x4286d3,_0x1b90c8);_0x4286d3['detach'](),_0x1b90c8['detach'](),_0x401a1d['markBlockFormat'](_0x1491b3,{'commandName':'imageTypeInline','commandParams':[_0x488792]},[],'convertInlineImageToBlock'),_0x4fed93['start']['isBefore'](_0x66eb2b['start'])&&_0x401a1d['markInsertion'](_0x5a36f8['createRange'](_0x4fed93['start'],_0x66eb2b['start']),'convertInlineImageToBlock'),_0x66eb2b['end']['isBefore'](_0x4fed93['end'])&&_0x401a1d['markInsertion'](_0x5a36f8['createRange'](_0x66eb2b['end'],_0x4fed93['end']),'convertInlineImageToBlock');});}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x401a1d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x7382e1])=>{const _0x3ac91a=_0x401a1d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5034df=_0x7382e1['start'],_0x562b75=_0x7382e1['end'];const _0xa39201=_0x5857ac['model']['schema']['getNearestSelectionRange'](_0x5034df,'backward'),_0x381426=_0x5857ac['model']['schema']['getNearestSelectionRange'](_0x562b75,'forward');_0xa39201['isCollapsed']&&(_0x5034df=_0xa39201['start']),_0x381426['isCollapsed']&&(_0x562b75=_0x381426['end']),_0x3ac91a([_0x5857ac['model']['createRange'](_0x5034df,_0x562b75)]);}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40eba7),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40eba7)),_0x5857ac['plugins']['has']('ImageCaptionEditing')&&(_0x401a1d['enableCommand']('toggleImageCaption',(_0xd4e88a,_0x28a00d)=>{const _0xaeefe0=_0x5857ac['plugins']['get']('ImageCaptionUtils');let _0x4c3376=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x59a4e4=_0xaeefe0['getCaptionFromImageModelElement'](_0x4c3376);_0x5857ac['model']['change'](()=>{if(_0x59a4e4)return void _0x401a1d['markDeletion'](_0x5857ac['model']['createRangeOn'](_0x59a4e4));const _0x5815bf=_0x23b596['isBlockImage'](_0x4c3376);_0xd4e88a(_0x28a00d),_0x4c3376=_0x23b596['getClosestSelectedImageElement'](_0x5857ac['model']['document']['selection']),_0x59a4e4=_0xaeefe0['getCaptionFromImageModelElement'](_0x4c3376),_0x401a1d['markInsertion'](_0x5857ac['model']['createRangeOn'](_0x59a4e4),_0x5815bf?null:'imageCaption');});}),_0x401a1d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40eba7));const _0x4cf847=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x23e4fc(_0x1b0c42,_0x224252){const _0x54e0a9=_0x4cf847['findIndex'](({type:_0x3e6e12,subType:_0x73e973})=>_0x1b0c42['type']==_0x3e6e12&&_0x1b0c42['subType']==_0x73e973),_0x5594a5=_0x4cf847['findIndex'](({type:_0x40b492,subType:_0x237bbf})=>_0x224252['type']==_0x40b492&&_0x224252['subType']==_0x237bbf);if(_0x54e0a9<0x0||_0x5594a5<0x0)return!0x1;const _0x26c11c=_0x1b0c42['getFirstRange'](),_0x5a6922=_0x224252['getFirstRange']();if((0x0==_0x54e0a9||0x1==_0x54e0a9)&&0x2==_0x5594a5&&_0x26c11c['isIntersecting'](_0x5a6922))return!0x0;if(0x2==_0x54e0a9&&0x3==_0x5594a5){const _0x597f65=_0x401a1d['_findSuggestions'](_0x26c11c,'insertion')['filter'](({suggestion:_0x2b356a,meta:_0x44ac55})=>_0x44ac55['isOwn']&&'convertInlineImageToBlock'==_0x2b356a['subType']);if(_0x597f65['length']>0x1&&_0x5a6922['end']['isEqual'](_0x26c11c['start']))return!0x0;if(0x1==_0x597f65['length']&&(_0x26c11c['start']['isEqual'](_0x5a6922['end'])||_0x26c11c['end']['isEqual'](_0x5a6922['start'])))return!0x0;}if(0x3==_0x54e0a9&&0x3==_0x5594a5&&_0x26c11c['start']['isBefore'](_0x5a6922['start'])){const _0x318c1b=_0x26c11c['end']['nodeAfter'],_0x329017=_0x5a6922['start']['nodeBefore'];return _0x23b596['isBlockImage'](_0x318c1b)&&_0x318c1b===_0x329017;}return!0x1;}function _0x40eba7(_0x11d18f,_0x31d20c){return _0x23e4fc(_0x11d18f,_0x31d20c)?[_0x11d18f,_0x31d20c]:_0x23e4fc(_0x31d20c,_0x11d18f)?[_0x31d20c,_0x11d18f]:null;}_0x5857ac['plugins']['has']('ImageResize')&&(_0x401a1d['enableDefaultAttributesIntegration']('resizeImage'),_0x401a1d['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x1c2b3f,'FORMAT_IMAGE_SIZE'))),_0x5857ac['plugins']['has']('ImageTextAlternativeEditing')&&_0x401a1d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5857ac['plugins']['has']('PictureEditing')&&_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x2e94f5=>{if('attribute'!=_0x2e94f5['type'])return;const {data:_0x2bead2}=_0x2e94f5;return _0x2bead2&&'sources'==_0x2bead2['key']?{'type':'format','content':''}:void 0x0;}),_0x5857ac['plugins']['has']('ImageSizeAttributes')&&_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x59f3f1=>{if('attribute'!=_0x59f3f1['type'])return;const {data:_0x7f3540}=_0x59f3f1;return!_0x7f3540||'width'!=_0x7f3540['key']&&'height'!=_0x7f3540['key']?void 0x0:{'type':'format','content':''};}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x21b741=>{if(!!_0x4cf847['find'](({type:_0x275dcc,subType:_0x587b72})=>_0x21b741['type']==_0x275dcc&&_0x21b741['subType']==_0x587b72))return _0x21b741['previous']?{}:void 0x0;}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x293312=>{if('insertion'==_0x293312['type']||'deletion'==_0x293312['type']){const _0x2bf1a4=_0x293312['getContainedElement']();if(_0x2bf1a4&&_0x2bf1a4['is']('element','caption'))return{'type':'insertion'==_0x293312['type']?'addObject':'removeObject','element':_0x2bf1a4,'quantity':0x1};}}),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x5a40a7=>'formatBlock'==_0x5a40a7['type']&&'convertInlineImageToBlock'==_0x5a40a7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a40a7['type']&&'convertBlockImageToInline'==_0x5a40a7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x401a1d['descriptionFactory']['registerDescriptionCallback'](_0x445b1a=>{if('attribute'!=_0x445b1a['type'])return;const {data:_0x57f7b7}=_0x445b1a;if(!_0x57f7b7||'alt'!=_0x57f7b7['key'])return;const _0x40c493=_0x57f7b7['newValue'];return _0x40c493?{'type':'format','content':At(_0x1c2b3f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40c493+'\x22')}:{'type':'format','content':At(_0x1c2b3f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2abba8=this['editor'],_0x4ec260=_0x2abba8['locale'];_0x2abba8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19c1a4=>{if('formatBlock'!=_0x19c1a4['type']&&'formatInline'!=_0x19c1a4['type'])return;const {data:_0x57a778}=_0x19c1a4;if(_0x57a778){if('imageTextAlternative'==_0x57a778['commandName']){const _0xf19336=_0x57a778['commandParams'][0x0]['newValue'];return _0xf19336?{'type':'format','content':At(_0x4ec260,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf19336+'\x22')}:{'type':'format','content':At(_0x4ec260,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57a778['commandName']){const _0x4957b1=_0x57a778['commandParams'][0x0]['width'];return _0x4957b1?{'type':'format','content':At(_0x4ec260,'*Set\x20image\x20width:*\x20%0',_0x4957b1)}:{'type':'format','content':At(_0x4ec260,'*Reset\x20image\x20width*')};}}});}}class se extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3afabb=this['editor']['locale'],_0x1d6c69=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d6c69['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1d6c69['descriptionFactory']['registerDescriptionCallback'](_0x22e188=>{if('attribute'!=_0x22e188['type'])return;const {data:_0x3ae062}=_0x22e188;return _0x3ae062&&'src'==_0x3ae062['key']?_0x3ae062['newValue']&&_0x3ae062['oldValue']?{'type':'format','content':At(_0x3afabb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2244a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2244a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2244a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2244a4['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2244a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88f9c5=this['editor'],_0x371dc=_0x88f9c5['locale'];_0x88f9c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x444015=>{if('formatBlock'!=_0x444015['type']&&'formatInline'!=_0x444015['type'])return;const {data:_0x19c203}=_0x444015;if(!_0x19c203||'replaceImageSource'!=_0x19c203['commandName'])return;return{'type':'format','content':At(_0x371dc,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x48a7fd{['afterInit'](){const _0x13a02f=this['editor'];if(!_0x13a02f['plugins']['has']('ImageStyleEditing'))return;const _0x3b561e=_0x13a02f['plugins']['get']('TrackChangesEditing'),_0x3f4bf3=_0x13a02f['plugins']['get']('ImageUtils'),_0x5f38bb={};_0x3b561e['enableCommand']('imageStyle',(_0x29180a,_0x2c2b7b)=>{const _0x4b0fd6=_0x13a02f['plugins']['get']('Users')['me'],_0x1ed309=_0x13a02f['commands']['get']('imageStyle');let _0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),_0x177192=_0x13a02f['model']['createRangeOn'](_0x33377a),_0x162a18=_0x1ed309['value'];if(_0x162a18==_0x2c2b7b['value'])return;const _0x329e9e={'commandName':'imageStyle','commandParams':[_0x2c2b7b],'formatGroupId':_0x2296a0()};_0x13a02f['model']['change'](()=>{if(_0x3b561e['getSuggestions']()['filter'](_0x23e72d=>_0x23e72d['isInContent']&&_0x4b0fd6==_0x23e72d['author']&&('formatBlock'==_0x23e72d['type']||'formatInline'==_0x23e72d['type'])&&('imageStylePreApply'==_0x23e72d['subType']||'imageStylePostApply'==_0x23e72d['subType'])&&_0x23e72d['getFirstRange']()['isEqual'](_0x177192))['forEach'](_0x4dea01=>_0x3b561e['discardSuggestion'](_0x4dea01['head'])),_0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),_0x177192=_0x13a02f['model']['createRangeOn'](_0x33377a),_0x1ed309['refresh'](),_0x13a02f['commands']['get']('imageTypeInline')['refresh'](),_0x13a02f['commands']['get']('imageTypeBlock')['refresh'](),_0x162a18=_0x1ed309['value'],_0x162a18!=_0x2c2b7b['value'])return _0x3f4bf3['isInlineImage'](_0x33377a)&&_0x1ed309['shouldConvertImageType'](_0x2c2b7b['value'],_0x33377a)?(_0x29180a({..._0x2c2b7b,'setImageSizes':!0x1}),_0x33377a=_0x3f4bf3['getClosestSelectedImageElement'](_0x13a02f['model']['document']['selection']),void _0x3b561e['markBlockFormat'](_0x33377a,{..._0x329e9e,'commandReversedParams':[{'value':_0x162a18||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3f4bf3['isBlockImage'](_0x33377a)?_0x3b561e['markBlockFormat'](_0x33377a,_0x329e9e,[],'imageStylePostApply'):_0x3b561e['markInlineFormat'](_0x177192,_0x329e9e,'imageStylePostApply'));});});for(const _0x88cd0e of _0x13a02f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5f38bb[_0x88cd0e['name']]=_0x88cd0e['title']['toLowerCase']();_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x107fe0])=>{_0x3f4bf3['setImageNaturalSizeAttributes'](_0x107fe0['getContainedElement']());}),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x469f34,_0x4f99a2)=>{_0x3b561e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x469f34,{'commandName':_0x4f99a2['commandName'],'commandParams':_0x4f99a2['commandReversedParams']});}),_0x3b561e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x29ec0f,_0x4e417a){if(_0x1159f3(_0x29ec0f,_0x4e417a))return[_0x29ec0f,_0x4e417a];if(_0x1159f3(_0x4e417a,_0x29ec0f))return[_0x4e417a,_0x29ec0f];return null;});const _0xecc338=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1159f3(_0x1c9025,_0x10f345){const _0x28f217=_0xecc338['findIndex'](({type:_0x1e9738,subType:_0x38b5bd})=>_0x1c9025['type']==_0x1e9738&&_0x1c9025['subType']==_0x38b5bd),_0x28a588=_0xecc338['findIndex'](({type:_0x34f19a,subType:_0x5b40ef})=>_0x10f345['type']==_0x34f19a&&_0x10f345['subType']==_0x5b40ef);if(_0x28f217<0x0||_0x28a588<0x0)return!0x1;const _0x243fd3=_0x1c9025['getFirstRange'](),_0x4d7fb2=_0x10f345['getFirstRange']();if((0x0==_0x28f217||0x1==_0x28f217)&&0x2==_0x28a588&&_0x243fd3['isIntersecting'](_0x4d7fb2))return!0x0;if(0x2==_0x28f217&&0x3==_0x28a588){const _0x15ad16=_0x3b561e['_findSuggestions'](_0x243fd3,'insertion')['filter'](({suggestion:_0x424c46,meta:_0x15f726})=>_0x15f726['isOwn']&&'convertInlineImageToBlock'==_0x424c46['subType']);if(_0x15ad16['length']>0x1&&_0x4d7fb2['end']['isEqual'](_0x243fd3['start']))return!0x0;if(0x1==_0x15ad16['length']&&(_0x243fd3['start']['isEqual'](_0x4d7fb2['end'])||_0x243fd3['end']['isEqual'](_0x4d7fb2['start'])))return!0x0;}if(0x3==_0x28f217&&0x3==_0x28a588&&_0x243fd3['start']['isBefore'](_0x4d7fb2['start'])){const _0x4a291d=_0x243fd3['end']['nodeAfter'],_0x2143e0=_0x4d7fb2['start']['nodeBefore'];return _0x3f4bf3['isBlockImage'](_0x4a291d)&&_0x4a291d===_0x2143e0;}return!0x1;}_0x13a02f['model']['document']['registerPostFixer'](()=>{let _0xf4a8a=!0x1;const _0xb4f8c7=Array['from'](_0x13a02f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b088f,data:_0x3387a3}of _0xb4f8c7){const {group:_0x38088d,type:_0x35f595,subType:_0x458ab3,id:_0x2b5601}=_0x2cca50(_0x1b088f);if('suggestion'==_0x38088d&&_0x3b561e['hasSuggestion'](_0x2b5601)){if('formatBlock'==_0x35f595&&('imageStylePreApply'==_0x458ab3||'imageStylePostApply'==_0x458ab3)){const _0xdaa4b7=_0x3b561e['getSuggestion'](_0x2b5601);if(_0x3387a3['newRange']){const _0x4189e5=_0xdaa4b7['getFirstRange']()['getContainedElement']();if(_0x3f4bf3['isBlockImage'](_0x4189e5))continue;_0x3b561e['discardSuggestion'](_0xdaa4b7),_0xf4a8a=!0x0;}}if('insertion'==_0x35f595&&'imageCaption'==_0x458ab3&&!_0x3387a3['newRange']){const _0x50dc31=_0x3b561e['getSuggestion'](_0x2b5601);_0x50dc31['next']&&_0x50dc31['next']['isInContent']&&(_0x3b561e['discardSuggestion'](_0x50dc31['next']),_0xf4a8a=!0x0);}}}return _0xf4a8a;}),this['_registerLegacyDescription'](_0x5f38bb);}['_registerLegacyDescription'](_0x133afd){const _0x467324=this['editor'],_0x479582=_0x467324['locale'];_0x467324['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41301c=>{if('formatBlock'!=_0x41301c['type']&&'formatInline'!=_0x41301c['type'])return;const {data:_0x26cc26}=_0x41301c;if(!_0x26cc26||'imageStyle'!=_0x26cc26['commandName'])return;const _0x39be53=_0x26cc26['commandParams'][0x0]['value'];return _0x1282c5('side'===_0x39be53?At(_0x479582,'FORMAT_SIDE_IMAGE'):_0x133afd[_0x39be53]||_0x39be53);function _0x1282c5(_0x22ae49){return{'type':'format','content':At(_0x479582,'*Format:*\x20%0',_0x22ae49)};}});}}class oe extends _0x48a7fd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2ef4f4){super(_0x2ef4f4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x576666=this['editor'],_0x2b3b92=_0x576666['commands']['get']('importWord'),_0x2b58d1=_0x576666['commands']['get']('trackChanges');_0x2b3b92&&(_0x2b3b92['on']('execute',(_0x32ed90,[,_0x56af82])=>{this['_trackChangesValueDuringImport']=_0x2b58d1['value'],_0x56af82['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b3b92,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b3b92,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2b58d1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x576666['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x486dce,_0x50a3a9){const {suggestions:_0x5188e4}=_0x50a3a9,_0x4084c0=this['editor']['commands']['get']('trackChanges'),_0xc735d1=_0x4084c0['value'];this['_trackChangesValueDuringImport']!==_0xc735d1&&(_0x4084c0['execute'](),this['_trackChangesExecuted']=!0x0),_0x5188e4&&_0x5188e4['forEach'](({id:_0xc2c1ef,type:_0x4719c5,author:_0x35ec94,created_at:_0x148b7f})=>{const _0x78e77={'id':_0xc2c1ef,'type':_0x4719c5,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x35ec94,'createdAt':_0x148b7f?new Date(_0x148b7f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x78e77);});}}class ae extends _0x48a7fd{['afterInit'](){const _0x4d1610=this['editor'],_0x2f4125=_0x4d1610['plugins']['get']('TrackChangesEditing');if(_0x4d1610['plugins']['has']('IndentEditing')&&(_0x2f4125['enableCommand']('indent'),_0x2f4125['enableCommand']('outdent')),_0x4d1610['plugins']['has']('IndentBlock')){for(const _0x597108 of['indentBlock','outdentBlock'])_0x2f4125['enableDefaultAttributesIntegration'](_0x597108);if(_0x4d1610['plugins']['has']('ListEditing')){for(const _0x27c963 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x2f4125['enableDefaultAttributesIntegration'](_0x27c963);}}const _0x4b3da1=_0x4d1610['locale'];_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x4b3da1,'FORMAT_INDENT')),_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x4b3da1,'FORMAT_INDENT')),_0x2f4125['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x4b3da1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb417aa=this['editor'],_0x448901=_0xb417aa['locale'],_0x38f5ad=_0xb417aa['plugins']['get']('TrackChangesEditing');_0x38f5ad['descriptionFactory']['registerDescriptionCallback'](_0x3b9b51=>{if('formatBlock'!=_0x3b9b51['type'])return;const {data:_0x5bae56}=_0x3b9b51;if(!_0x5bae56)return;if('indentBlock'!=_0x5bae56['commandName']&&'outdentBlock'!=_0x5bae56['commandName'])return;const _0x772adf=_0x3b9b51['getItems']()[0x0],_0x401a20=_0x38f5ad['descriptionFactory']['getItemLabel'](_0x772adf);return'indentBlock'==_0x5bae56['commandName']?{'type':'format','content':At(_0x448901,'*Indent:*\x20%0',_0x401a20)}:'outdentBlock'==_0x5bae56['commandName']?{'type':'format','content':At(_0x448901,'*Outdent:*\x20%0',_0x401a20)}:void 0x0;});}}class ce extends _0x48a7fd{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x48a7fd{['afterInit'](){const _0x4818ed=this['editor'];if(!_0x4818ed['plugins']['has']('LinkEditing'))return;const _0x18b174=_0x4818ed['plugins']['get']('TrackChangesEditing'),_0x2fa829=_0x4818ed['commands']['get']('link');_0x18b174['enableDefaultAttributesIntegration']('link'),_0x18b174['enableDefaultAttributesIntegration']('unlink');for(const _0x1f15e2 of _0x2fa829['manualDecorators'])_0x18b174['descriptionFactory']['registerAttributeLabel'](_0x1f15e2['id'],'link\x20('+_0x1f15e2['label']['toLowerCase']()+')');_0x18b174['descriptionFactory']['registerDescriptionCallback'](_0x11dd86=>{if('attribute'!=_0x11dd86['type'])return;const {data:_0x579003}=_0x11dd86;if(!_0x579003||'linkHref'!=_0x579003['key'])return;const _0x550f7c=_0x579003['newValue'],_0x73a3d1=_0x4818ed['locale'];return{'type':'format','content':null==_0x550f7c?At(_0x73a3d1,'*Remove\x20link*'):At(_0x73a3d1,'*Set\x20link:*\x20%0','\x22'+_0x550f7c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d959d=this['editor'],_0x5e2d0b=_0x1d959d['locale'];_0x1d959d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b6796=>{if('formatInline'!=_0x5b6796['type'])return;const {data:_0x11cfc6}=_0x5b6796;if(_0x11cfc6){if('link'==_0x11cfc6['commandName']){const _0x128df0=_0x11cfc6['commandParams'][0x0];return{'type':'format','content':At(_0x5e2d0b,'*Set\x20link:*\x20%0','\x22'+_0x128df0+'\x22')};}return'unlink'==_0x11cfc6['commandName']?{'type':'format','content':At(_0x5e2d0b,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x48a7fd{['afterInit'](){const _0x4a844e=this['editor'],_0x503cd4=_0x4a844e['locale'];if(!_0x4a844e['plugins']['has']('LegacyListEditing'))return;const _0x212152=_0x4a844e['plugins']['get']('TrackChangesEditing'),_0x51bced=_0x4a844e['plugins']['has']('LegacyTodoListEditing');function _0x1a6af7(_0x5b5005){return()=>{const _0x4cdfe4=_0x4a844e['model']['document']['selection'],_0x13f713=_0x4a844e['commands']['get'](_0x5b5005);if(_0x13f713['value'])return void _0x4a844e['execute']('paragraph',{});const _0x4bece0=_0x5b5005['slice'](0x0,-0x4),_0x50db6e=function(_0x5709eb,_0x46b612,_0xdc7236){let _0x5333af=Array['from'](_0x5709eb)['filter'](_0x15dcc9=>function(_0x1bdd16,_0x20208b){return _0x20208b['checkChild'](_0x1bdd16['parent'],'listItem')&&!_0x20208b['isObject'](_0x1bdd16);}(_0x15dcc9,_0xdc7236));_0x5333af=_0x5333af['filter'](_0x49649b=>!_0x49649b['is']('element','listItem')||_0x49649b['getAttribute']('listType')!=_0x46b612);const _0x42ec7d=new Set();for(const _0x3bbff7 of _0x5333af)_0x3bbff7['is']('element','listItem')?_0x42ec7d['add'](he(_0x3bbff7)):_0x42ec7d['add'](_0x3bbff7);return Array['from'](_0x42ec7d);}(_0x4cdfe4['getSelectedBlocks'](),_0x4bece0,_0x4a844e['model']['schema']);_0x4a844e['model']['change'](()=>{for(const _0x2ea82c of _0x50db6e)_0x212152['markBlockFormat'](_0x2ea82c,{'commandName':_0x5b5005,'commandParams':[{'forceValue':!_0x13f713['value']}],'formatGroupId':'blockName'},de(_0x2ea82c));});};}function _0x390564(_0x1b4b67){return()=>{const _0x2732d3=function(_0x58f381){let _0x506d64=Array['from'](_0x58f381);const _0x4eefa3=_0x506d64['findIndex'](_0x1de17a=>'listItem'!=_0x1de17a['name']);return _0x4eefa3>-0x1&&(_0x506d64=_0x506d64['slice'](0x0,_0x4eefa3)),_0x506d64;}(_0x4a844e['model']['document']['selection']['getSelectedBlocks']()),_0x58f3e3=_0x4a844e['model']['createRange'](_0x4a844e['model']['createPositionAt'](_0x2732d3[0x0],'before'),_0x4a844e['model']['createPositionAt'](_0x2732d3[_0x2732d3['length']-0x1],'end'));_0x4a844e['model']['change'](()=>{_0x212152['markBlockFormat'](_0x58f3e3,{'commandName':_0x1b4b67,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4f6ed5){const _0x126863=new Set();for(const _0x557c7e of _0x4f6ed5){let _0x370f88=_0x557c7e['nextSibling'];for(;_0x370f88&&_0x370f88['getAttribute']('listIndent')>_0x557c7e['getAttribute']('listIndent');)_0x126863['add'](_0x370f88),_0x370f88=_0x370f88['nextSibling'];}return Array['from'](_0x126863);}(_0x2732d3));});};}_0x212152['enableCommand']('numberedList',_0x1a6af7('numberedList')),_0x212152['enableCommand']('bulletedList',_0x1a6af7('bulletedList')),_0x51bced&&_0x212152['enableCommand']('todoList',_0x1a6af7('todoList')),_0x212152['enableCommand']('indentList',_0x390564('indentList')),_0x212152['enableCommand']('outdentList',_0x390564('outdentList')),_0x51bced&&_0x212152['enableCommand']('checkTodoList',()=>{const _0x79c407=_0x4a844e['commands']['get']('checkTodoList'),_0x1cbfc3=Array['from'](_0x79c407['_selectedElements']);_0x1cbfc3['filter'](_0x121e26=>_0x121e26['getAttribute']('todoListChecked')!=_0x79c407['value']),_0x4a844e['model']['change'](()=>{for(const _0x1129f6 of _0x1cbfc3)_0x212152['markBlockFormat'](_0x1129f6,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x79c407['value']}]});});}),_0x212152['descriptionFactory']['registerElementLabel']('listItem',_0x730d75=>At(_0x503cd4,'ELEMENT_LIST_ITEM',_0x730d75)),_0x212152['descriptionFactory']['registerDescriptionCallback'](_0x6c4f3a=>{if('formatBlock'!=_0x6c4f3a['type']&&'formatInline'!=_0x6c4f3a['type'])return;const {data:_0x3d3452}=_0x6c4f3a;if(_0x3d3452){if('numberedList'==_0x3d3452['commandName']||'bulletedList'==_0x3d3452['commandName']||'todoList'==_0x3d3452['commandName'])switch(_0x3d3452['commandName']['replace']('List','')){case'bulleted':return _0x2366fd(At(_0x503cd4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2366fd(At(_0x503cd4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2366fd(At(_0x503cd4,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3d3452['commandName'])return{'type':'format','content':At(_0x503cd4,'*Indent:*\x20%0',At(_0x503cd4,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3d3452['commandName'])return{'type':'format','content':At(_0x503cd4,'*Outdent:*\x20%0',At(_0x503cd4,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3d3452['commandName'])return _0x3d3452['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x503cd4,'*Check\x20item*')}:{'type':'format','content':At(_0x503cd4,'*Uncheck\x20item*')};}function _0x2366fd(_0x1f768c){return{'type':'format','content':At(_0x503cd4,'*Change\x20to:*\x20%0',_0x1f768c)};}});}}function he(_0x32f84e){const _0x5e7b5d=_0x32f84e['getAttribute']('listIndent');if(0x0==_0x5e7b5d)return _0x32f84e;let _0x41c659=_0x32f84e;for(;_0x32f84e['previousSibling']&&_0x32f84e['previousSibling']['is']('element','listItem');){const _0x61329=_0x32f84e['previousSibling']['getAttribute']('listIndent');if(_0x61329==_0x5e7b5d)_0x41c659=_0x32f84e['previousSibling'];else{if(_0x61329<_0x5e7b5d)break;}_0x32f84e=_0x32f84e['previousSibling'];}return _0x41c659;}function de(_0x4d7ea7){const _0x486f58=[];if(_0x4d7ea7['is']('element','listItem')&&_0x4d7ea7['getAttribute']('listIndent')>0x0){let _0x3468f3=_0x4d7ea7['nextSibling'];for(;_0x3468f3&&'listItem'==_0x3468f3['name']&&_0x3468f3['getAttribute']('listIndent')==_0x4d7ea7['getAttribute']('listIndent');)_0x486f58['push'](_0x3468f3),_0x3468f3=_0x3468f3['nextSibling'];}return _0x486f58;}class fe extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x24426c=this['editor']['config']['get']('list.properties'),_0x129633=this['editor']['plugins']['get']('TrackChangesEditing');_0x24426c['styles']&&_0x129633['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x24426c['reversed']&&_0x129633['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x24426c['startIndex']&&_0x129633['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x129633['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xe5255b,_0x4fa4fa={}){const _0x521092=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdb6cd3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x521092['markMultiRangeBlockFormat'](_0xdb6cd3,{'commandName':'listStyle','commandParams':[{'type':_0x4fa4fa['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5c5cd6,_0x3cbf96={}){const _0x22fc02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x146ac3=this['_getSuggestionBlocks'](_0x2017c7=>_0x2017c7['is']('element','listItem')&&'numbered'===_0x2017c7['getAttribute']('listType'));if(_0x146ac3['length']<0x1)return;const _0x51d04e=_0x146ac3['map'](_0x46ddd5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46ddd5,'before'),this['editor']['model']['createPositionAt'](_0x46ddd5,0x0)));this['editor']['model']['change'](()=>{_0x22fc02['markMultiRangeBlockFormat'](_0x51d04e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3cbf96['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x583fd1,_0x2115ee={}){const _0x19743f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c6c7=this['_getSuggestionBlocks'](_0x2f72a6=>_0x2f72a6['is']('element','listItem')&&'numbered'===_0x2f72a6['getAttribute']('listType'));if(_0x13c6c7['length']<0x1)return;const _0x4b4e6c=_0x13c6c7['map'](_0x352ffd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x352ffd,'before'),this['editor']['model']['createPositionAt'](_0x352ffd,0x0)));this['editor']['model']['change'](()=>{_0x19743f['markMultiRangeBlockFormat'](_0x4b4e6c,{'commandName':'listStart','commandParams':[{'startIndex':_0x2115ee['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d7ef8){if('formatBlock'!=_0x1d7ef8['type']&&'formatInline'!=_0x1d7ef8['type'])return;const _0xc0279=this['editor']['locale'],{data:_0x3675d0}=_0x1d7ef8;if(!_0x3675d0)return;let _0x578426,_0x45115a;switch(_0x3675d0['commandName']){case'listStyle':_0x578426='*Change\x20to:*\x20%0',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426,At(_0xc0279,this['_getTranslationKeyForListStyle'](_0x3675d0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x578426=_0x3675d0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426)};break;case'listStart':_0x578426='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x45115a={'type':'format','content':At(_0xc0279,_0x578426,_0x3675d0['commandParams'][0x0]['startIndex'])};}return _0x45115a;}['_getSuggestionBlocksForListStyle'](){const _0x4c5921=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d6cf=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11d6cf[0x0]?.['is']('element','listItem')&&_0x11d6cf['unshift'](..._0x4c5921['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11d6cf[_0x11d6cf['length']-0x1]?.['is']('element','listItem')&&_0x11d6cf['push'](..._0x4c5921['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11d6cf=[...new Set(_0x11d6cf)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11d6cf=_0x11d6cf['filter'](_0x3e762e=>_0x3e762e['is']('element','listItem'))),_0x11d6cf;}['_getSuggestionBlocks'](_0x25816b){const _0x55050f=this['editor']['plugins']['get']('LegacyListUtils');let _0x42071a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x25816b)['map'](_0x5f2b3f=>{const _0x374635=this['editor']['model']['createPositionAt'](_0x5f2b3f,0x0);return[..._0x55050f['getSiblingNodes'](_0x374635,'backward'),..._0x55050f['getSiblingNodes'](_0x374635,'forward')];})['flat']();return _0x42071a=[...new Set(_0x42071a)],_0x42071a;}['_getTranslationKeyForListStyle'](_0x71b7e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x71b7e2)||'default')['toUpperCase']()+'_LIST_'+_0x71b7e2['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x48a7fd{['afterInit'](){const _0x5d8d63=this['editor'];if(!_0x5d8d63['plugins']['has']('MediaEmbedEditing'))return;const _0x3628f7=_0x5d8d63['plugins']['get']('TrackChangesEditing'),_0x286003=_0x5d8d63['locale'];_0x3628f7['enableCommand']('mediaEmbed'),_0x3628f7['descriptionFactory']['registerElementLabel']('media',_0x269b6b=>At(_0x286003,'ELEMENT_MEDIA',_0x269b6b));}}class me extends _0x48a7fd{['afterInit'](){const _0x611c1f=this['editor'];_0x611c1f['plugins']['has']('MentionEditing')&&_0x611c1f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x48a7fd{['afterInit'](){const _0x429ad9=this['editor'];if(!_0x429ad9['plugins']['has']('MergeFieldsEditing'))return;const _0x26a3af=_0x429ad9['plugins']['get']('TrackChangesEditing'),_0x171bc4=_0x429ad9['locale'];_0x26a3af['enableCommand']('insertMergeField'),_0x26a3af['enableCommand']('insertMergeFieldBlock'),_0x26a3af['enableCommand']('insertMergeFieldImage'),_0x26a3af['descriptionFactory']['registerElementLabel']('mergeField',_0x586e56=>At(_0x171bc4,'ELEMENT_MERGE_FIELD',_0x586e56)),_0x26a3af['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1893fd=>At(_0x171bc4,'ELEMENT_MERGE_FIELD',_0x1893fd)),_0x26a3af['descriptionFactory']['registerDescriptionCallback'](_0x1e0109=>{if('insertion'!=_0x1e0109['type']&&'deletion'!=_0x1e0109['type'])return;const _0x4292c3=_0x1e0109['getContainedElement']();if(null==_0x4292c3)return;const _0x1972ca=_0x429ad9['plugins']['get']('MergeFieldsEditing');let _0x3859e6;switch(_0x1972ca['getMergeFieldType'](_0x4292c3)){case null:return;case'image':{const _0x536466=_0x1972ca['unwrapAffixes'](_0x4292c3['getAttribute']('src'));_0x3859e6=_0x1972ca['getLabel'](_0x536466)||_0x536466;break;}default:{const _0x3a51d1=_0x4292c3['getAttribute']('id');_0x3859e6=_0x1972ca['getLabel'](_0x3a51d1)||_0x3a51d1;break;}}return'insertion'==_0x1e0109['type']?{'type':'insertion','content':At(_0x171bc4,'*Insert:*\x20%0','\x22'+_0x3859e6+'\x22\x20'+At(_0x171bc4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x171bc4,'*Remove:*\x20%0','\x22'+_0x3859e6+'\x22\x20'+At(_0x171bc4,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x48a7fd{['afterInit'](){const _0x3490ba=this['editor'],_0x19e96f=_0x3490ba['plugins']['get']('TrackChangesEditing');_0x3490ba['plugins']['has']('MultiLevelList')&&(_0x19e96f['enableDefaultAttributesIntegration']('multiLevelList'),_0x19e96f['descriptionFactory']['registerDescriptionCallback'](_0x536ac1=>this['handleDescriptions'](_0x536ac1)));}['handleDescriptions'](_0x736fb6){const _0x2232ae=this['editor']['locale'],{data:_0x3317f3}=_0x736fb6,_0x51689f={'type':'format','content':''};if(_0x3317f3&&'listMarkerStyle'==_0x3317f3['key']){if(!_0x3317f3['oldValue'])return{'type':'format','content':At(_0x2232ae,'*Set\x20format:*\x20%0',At(_0x2232ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3317f3['newValue']+')'};if(!_0x3317f3['newValue']){let _0x290e45=_0x736fb6['head'];for(;_0x290e45;){if(_0x290e45['data']&&'listType'==_0x290e45['data']['key']&&_0x290e45['data']['newValue'])return _0x51689f;_0x290e45=_0x290e45['next'];}return{'type':'format','content':At(_0x2232ae,'*Remove\x20format:*\x20%0',At(_0x2232ae,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3317f3['oldValue']+')'};}}}}class _e extends _0x48a7fd{['afterInit'](){const _0x3c8a54=this['editor'];if(!_0x3c8a54['plugins']['has']('PageBreakEditing'))return;_0x3c8a54['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f2863=_0x3c8a54['plugins']['get']('TrackChangesEditing'),_0x2ca343=_0x3c8a54['locale'];_0x2f2863['descriptionFactory']['registerElementLabel']('pageBreak',_0x3f1252=>At(_0x2ca343,'ELEMENT_PAGE_BREAK',_0x3f1252));}}class pe extends _0x48a7fd{['afterInit'](){const _0x1bf6c5=this['editor'];if(!_0x1bf6c5['plugins']['has']('Paragraph'))return;const _0x4c34ba=_0x1bf6c5['locale'],_0x2257cb=_0x1bf6c5['plugins']['get']('TrackChangesEditing');_0x2257cb['descriptionFactory']['registerElementLabel']('paragraph',_0x1867f3=>At(_0x4c34ba,'ELEMENT_PARAGRAPH',_0x1867f3)),_0x2257cb['enableDefaultAttributesIntegration']('paragraph'),_0x2257cb['enableCommand']('insertParagraph');const _0x32b225=_0x2257cb['descriptionFactory'];_0x32b225['registerDescriptionCallback'](_0x203884=>{if('insertion'!==_0x203884['type'])return;const {start:_0x5c961c,end:_0x27b504}=_0x203884['getFirstRange']();if(!_0x5c961c['isTouching'](_0x27b504)||!_0x5c961c['nodeAfter'])return;const _0x3ad5ed=_0x1bf6c5['model']['schema'],_0x3d8f5a=_0x5c961c['nodeAfter'];return _0x3ad5ed['isBlock'](_0x3d8f5a)&&!_0x3ad5ed['isLimit'](_0x3d8f5a)&&_0x3ad5ed['checkChild'](_0x3d8f5a,'$text')?{'type':'insertion','content':At(_0x4c34ba,'*Insert:*\x20%0',_0x32b225['getItemLabel'](_0x3d8f5a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c2d89=this['editor'],_0x500d8e=_0x1c2d89['locale'];_0x1c2d89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f1b9=>{if('formatBlock'!=_0x17f1b9['type'])return;const {data:_0x2541fa}=_0x17f1b9;return _0x2541fa&&'paragraph'==_0x2541fa['commandName']?{'type':'format','content':At(_0x500d8e,'*Change\x20to:*\x20%0',At(_0x500d8e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x48a7fd{['afterInit'](){const _0xd43dc6=this['editor'];_0xd43dc6['commands']['get']('replaceSource')&&_0xd43dc6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x48a7fd{['afterInit'](){const _0x50e803=this['editor'];if(!_0x50e803['plugins']['has']('RemoveFormatEditing'))return;_0x50e803['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b49b3=this['editor'];_0x1b49b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd07935=>{if('formatBlock'!=_0xd07935['type']&&'formatInline'!=_0xd07935['type'])return;const {data:_0x4e9287}=_0xd07935;return _0x4e9287&&'removeFormat'==_0x4e9287['commandName']?{'type':'format','content':At(_0x1b49b3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x48a7fd{['afterInit'](){const _0x2c9783=this['editor'];if(!_0x2c9783['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17f96f=_0x2c9783['plugins']['get']('TrackChangesEditing');_0x17f96f['enableCommand']('goToPreviousRestrictedEditingException'),_0x17f96f['enableCommand']('goToNextRestrictedEditingException');const _0x6baa24=_0x2c9783['plugins']['get']('RestrictedEditingModeEditing');_0x6baa24['enableCommand']('trackChanges'),_0x6baa24['enableCommand']('acceptSuggestion'),_0x6baa24['enableCommand']('discardSuggestion'),_0x6baa24['enableCommand']('acceptAllSuggestions'),_0x6baa24['enableCommand']('discardAllSuggestions'),_0x6baa24['enableCommand']('acceptSelectedSuggestions'),_0x6baa24['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x48a7fd{['afterInit'](){const _0x54c138=this['editor'];if(!_0x54c138['plugins']['has']('ShiftEnter'))return;const _0x34d9fb=_0x54c138['plugins']['get']('TrackChangesEditing');_0x34d9fb['enableCommand']('shiftEnter'),_0x34d9fb['descriptionFactory']['registerElementLabel']('softBreak',_0x497bc2=>At(_0x54c138['locale'],'ELEMENT_LINE_BREAK',_0x497bc2));}}function ke(_0x8730e,_0x29178b,_0x414b8b){const _0x391269=[];for(const _0x1de825 of _0x29178b['getItems']())_0x1de825['hasAttribute'](_0x8730e)&&_0x391269['push'](_0x414b8b['createRangeOn'](_0x1de825));return _0x391269;}class Ce extends _0x48a7fd{['afterInit'](){const _0x66d4c2=this['editor'],_0x558e79=_0x66d4c2['plugins']['get']('TrackChangesEditing');_0x66d4c2['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x558e79['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x11c0db=this['editor'],_0x43c0d3=_0x11c0db['model'],_0xa3946f=_0x11c0db['locale'],_0x560aef=_0x11c0db['plugins']['get']('TrackChangesEditing'),_0x4f2d1e='restrictedEditingException',_0x55c799=_0x11c0db['commands']['get'](_0x4f2d1e);_0x560aef['enableCommand'](_0x4f2d1e,(_0x4c2f03,_0x89787a={})=>{const _0xf482e4=_0x43c0d3['document']['selection'];if(_0xf482e4['isCollapsed'])return void _0x4c2f03(_0x89787a);const _0x562971=void 0x0!==_0x89787a['forceValue']?_0x89787a['forceValue']:!_0x55c799['value'];_0x43c0d3['change'](()=>{const _0x3e27f4=Array['from'](_0xf482e4['getRanges']());for(const _0x50b393 of _0x3e27f4){const _0x51322d=_0x562971?[_0x50b393]:ke(_0x4f2d1e,_0x50b393,_0x43c0d3);for(const _0xf57eec of _0x51322d)_0x560aef['markInlineFormat'](_0xf57eec,{'commandName':_0x4f2d1e,'commandParams':[{'forceValue':_0x562971}]});}});}),_0x560aef['descriptionFactory']['registerDescriptionCallback'](_0x1d8a90=>{if('formatBlock'!=_0x1d8a90['type']&&'formatInline'!=_0x1d8a90['type'])return;const {data:_0x2369bd}=_0x1d8a90;return _0x2369bd&&_0x2369bd['commandName']==_0x4f2d1e?_0x2369bd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xa3946f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0xa3946f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x51c59f=this['editor'],_0x2ae83e=_0x51c59f['locale'],_0x2b42e7=_0x51c59f['plugins']['get']('TrackChangesEditing'),_0x4e479c='restrictedEditingExceptionBlock',_0x2db468=this['editor']['commands']['get'](_0x4e479c);_0x2b42e7['enableCommand'](_0x4e479c,(_0x97ca5e,_0x1aa201={})=>{const _0x296fa5=this['editor']['model']['document']['selection'],_0x398fe0=_0x1aa201&&void 0x0!==_0x1aa201['forceValue']?_0x1aa201['forceValue']:!_0x2db468['value'];let _0x4fae75=[];if(_0x398fe0){const _0x30dc07=Array['from'](_0x296fa5['getSelectedBlocks']())['filter'](_0x51ff73=>function(_0x20d0d5){return!!_0x20d0d5['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51ff73)||function(_0x6e3504,_0x5f43c8){const _0xe54387=_0x5f43c8['createContext'](_0x6e3504['parent']);if(!_0x5f43c8['checkChild'](_0xe54387,'restrictedEditingException'))return!0x1;if(!_0x5f43c8['checkChild'](_0xe54387['push']('restrictedEditingException'),_0x6e3504))return!0x1;return!0x0;}(_0x51ff73,this['editor']['model']['schema']));_0x4fae75=Tt(_0x30dc07,_0x51c59f['model']);}else{const _0xfea3e6=Array['from'](_0x296fa5['getSelectedBlocks']())['map'](_0x33fef4=>function(_0x2a440e){let _0xec57b=_0x2a440e;for(;_0xec57b['parent'];){if('restrictedEditingException'==_0xec57b['parent']['name'])return _0xec57b;_0xec57b=_0xec57b['parent'];}return null;}(_0x33fef4))['filter'](_0x1b9275=>!!_0x1b9275);_0x4fae75=Tt(_0xfea3e6,_0x51c59f['model']);}_0x51c59f['model']['change'](()=>{for(const _0x4db943 of _0x4fae75)_0x2b42e7['markBlockFormat'](_0x4db943,{'commandName':_0x4e479c,'commandParams':[{'forceValue':_0x398fe0}]});});}),_0x2b42e7['descriptionFactory']['registerDescriptionCallback'](_0x231bab=>{const {data:_0x56b12d}=_0x231bab;if(_0x56b12d&&_0x56b12d['commandName']==_0x4e479c)return _0x56b12d['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2ae83e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x2ae83e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x48a7fd{['afterInit'](){const _0x463547=this['editor'];if(!_0x463547['plugins']['has']('Style')||!_0x463547['plugins']['has']('DataSchema'))return;const _0x111d64=_0x463547['plugins']['get']('TrackChangesEditing'),_0x310aa0=_0x463547['locale'],_0x61b602=_0x463547['config']['get']('style')||{},_0x18b08d=_0x463547['plugins']['get']('GeneralHtmlSupport'),_0x859605=_0x463547['plugins']['get']('StyleUtils')['normalizeConfig'](_0x463547['plugins']['get']('DataSchema'),_0x61b602['definitions']);_0x111d64['enableDefaultAttributesIntegration']('style');const _0x424615=new Set();for(const _0x2d7d0 of _0x859605['block']){const _0x3b580a=_0x18b08d['getGhsAttributeNameForElement'](_0x2d7d0['element']);_0x424615['add'](_0x3b580a);}const _0x1b01ac=new Set();for(const _0x27b30c of _0x859605['inline']){const _0x387c02=_0x18b08d['getGhsAttributeNameForElement'](_0x27b30c['element']);_0x1b01ac['add'](_0x387c02);for(const _0x2e0f81 of _0x27b30c['ghsAttributes'])_0x1b01ac['add'](_0x2e0f81);}for(const _0x29d826 of _0x424615)_0x111d64['descriptionFactory']['registerAttributeLabel'](_0x29d826,At(_0x310aa0,'FORMAT_STYLE'));for(const _0x38e25b of _0x1b01ac)_0x111d64['descriptionFactory']['registerAttributeLabel'](_0x38e25b,At(_0x310aa0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d71d5=this['editor'],_0xd6e3f9=_0x2d71d5['locale'];_0x2d71d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a728=>{if('formatBlock'!=_0x40a728['type']&&'formatInline'!=_0x40a728['type'])return;const {data:_0x488ddd}=_0x40a728;return _0x488ddd&&'style'===_0x488ddd['commandName']?_0x488ddd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0xd6e3f9,'*Set\x20format:*\x20%0',_0x488ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0xd6e3f9,'*Remove\x20format:*\x20%0',_0x488ddd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x48a7fd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4520e3){super(_0x4520e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3397e0=this['editor'],_0x237a35=_0x3397e0['model']['document']['selection'];if(!_0x3397e0['plugins']['has']('TableEditing'))return;const _0x50e768=_0x3397e0['locale'],_0x4ed850=_0x3397e0['plugins']['get']('TrackChangesEditing'),_0x529ddc=_0x3397e0['plugins']['get']('TableUtils');_0x4ed850['descriptionFactory']['registerElementLabel']('table',_0x8a463=>At(_0x50e768,'ELEMENT_TABLE',_0x8a463)),this['_setupColumnsRowsFixing'](),_0x4ed850['enableCommand']('insertTable'),_0x4ed850['enableCommand']('selectTableRow'),_0x4ed850['enableCommand']('selectTableColumn');for(const _0x5e071b of['insertTableRowAbove','insertTableRowBelow']){const _0x179182=_0x3397e0['commands']['get'](_0x5e071b);_0x4ed850['enableCommand'](_0x5e071b,_0x52360c=>{_0x3397e0['model']['change'](_0x55e20b=>{_0x52360c();const _0x50bdf0='above'===_0x179182['order'],_0xd9a411=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x3a2e47=_0x529ddc['getRowIndexes'](_0xd9a411),_0x6c49a6=_0x50bdf0?_0x3a2e47['first']-0x1:_0x3a2e47['last']+0x1,_0x50256a=_0xd9a411[0x0]['findAncestor']('table'),_0x5772d=_0x529ddc['createTableWalker'](_0x50256a,{'startRow':_0x6c49a6,'endRow':_0x6c49a6}),_0x2231ba=Array['from'](_0x5772d)['map'](_0x4aa597=>_0x55e20b['createRangeOn'](_0x4aa597['cell']));_0x4ed850['markMultiRangeInsertion'](_0x2231ba,'tableRow');});});}for(const _0x32d2e6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x138b2d=_0x3397e0['commands']['get'](_0x32d2e6);_0x4ed850['enableCommand'](_0x32d2e6,_0x2e13f3=>{_0x3397e0['model']['change'](_0x5749fd=>{_0x2e13f3();const _0x56ca4e='left'===_0x138b2d['order'],_0x3bbc13=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x9ad864=_0x529ddc['getColumnIndexes'](_0x3bbc13),_0x33924f=_0x56ca4e?_0x9ad864['first']-0x1:_0x9ad864['last']+0x1,_0x351836=_0x3bbc13[0x0]['findAncestor']('table'),_0x49793a=_0x529ddc['createTableWalker'](_0x351836,{'startRow':0x0,'column':_0x33924f,'includeAllSlots':!0x1}),_0x1563a3=Array['from'](_0x49793a)['map'](_0x3ebce6=>_0x5749fd['createRangeOn'](_0x3ebce6['cell']));_0x4ed850['markMultiRangeInsertion'](_0x1563a3,'tableColumn');});});}for(const _0x4bbed0 of['removeTableRow','removeTableColumn']){const _0x48cd53=_0x4bbed0['substr'](0xb),_0x1bd23b=_0x48cd53['toLowerCase'](),_0x483249=_0x1bd23b['substr'](0x0,0x3)+'span',_0x13f342='table'+_0x48cd53,_0x4f6589='min'+_0x48cd53,_0x4e2a0e='max'+_0x48cd53;_0x4ed850['enableCommand'](_0x4bbed0,()=>{_0x3397e0['model']['change'](_0x3e8523=>{const _0x32a739=_0x529ddc['getSelectionAffectedTableCells'](_0x237a35),_0x56fa0e=_0x32a739[0x0]['findAncestor']('table');let _0x50c17b;if('removeTableRow'==_0x4bbed0){const _0x1e79be=_0x529ddc['getRowIndexes'](_0x32a739);_0x50c17b={'startRow':_0x1e79be['first'],'endRow':_0x1e79be['last'],'includeAllSlots':!0x0};}else{const _0x507a50=_0x529ddc['getColumnIndexes'](_0x32a739);_0x50c17b={'startColumn':_0x507a50['first'],'endColumn':_0x507a50['last'],'includeAllSlots':!0x0};}const _0x32d82e=_0x529ddc['createTableWalker'](_0x56fa0e,_0x50c17b),_0xd1dd3b=Array['from'](_0x32d82e)['map'](({cell:_0x5cb11b})=>_0x5cb11b),_0x549973=Re(_0xd1dd3b['filter'](_0x5234a5=>_0x5234a5['hasAttribute'](_0x483249))),_0x4f17f6=Re(_0xd1dd3b['filter'](_0x1ea114=>!_0x1ea114['hasAttribute'](_0x483249)))['map'](_0x50cc7f=>_0x3e8523['createRangeOn'](_0x50cc7f)),_0x4b149a=_0x4ed850['markMultiRangeDeletion'](_0x4f17f6,_0x13f342);if(_0x4b149a&&('tableRow'==_0x4b149a['subType']||'tableColumn'==_0x4b149a['subType'])){const _0x34d815=this['_getSuggestionCoords'](_0x4b149a);for(const _0x10fbf0 of _0x549973){const _0x3cd9ba=_0x3e8523['createRangeOn'](_0x10fbf0),_0xcbd4c5=_0x529ddc['getCellLocation'](_0x10fbf0),_0xcf21e7=_0x10fbf0['getAttribute'](_0x483249)-0x1,_0x2826f2=_0x34d815[_0x4f6589],_0x5044a9=_0x34d815[_0x4e2a0e];_0x2826f2<=_0xcbd4c5[_0x1bd23b]&&_0xcbd4c5[_0x1bd23b]+_0xcf21e7<=_0x5044a9&&_0x4b149a['addRange'](_0x3cd9ba);}}});});}function _0x3a81de(_0x16e24d){const _0x14cb33=Array['from'](_0x237a35['getRanges']())['map'](_0xd782ed=>_0x211ae6['fromRange'](_0xd782ed));_0x3397e0['model']['change'](_0x580593=>{const _0x120fc8=_0x580593['batch'];_0x16e24d=_0x16e24d['filter'](_0x5e62db=>'$graveyard'!=_0x5e62db['root']['rootName']),_0x580593['setSelection'](_0x16e24d),_0x3397e0['commands']['get']('removeTableRow')['refresh'](),_0x3397e0['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3397e0['model']['enqueueChange'](()=>{_0x3397e0['model']['enqueueChange'](_0x120fc8,_0x5b802e=>{const _0x983aad=_0x14cb33['filter'](_0x1fe5c2=>'$graveyard'!=_0x1fe5c2['root']['rootName']);_0x983aad['length']>0x0&&_0x5b802e['setSelection'](_0x983aad);for(const _0x55928c of _0x14cb33)_0x55928c['detach']();});});});}function _0x3a745f(_0xb00cbc){_0x3397e0['model']['change'](_0x2009f0=>{const _0x143325=Array['from'](_0x237a35['getRanges']())['map'](_0x81e027=>_0x211ae6['fromRange'](_0x81e027)),_0x169013=[];for(const _0x51bec2 of _0xb00cbc)for(const _0xb00d2e of _0x51bec2['getItems']({'shallow':!0x0}))_0x169013['push'](_0xb00d2e);for(const _0x443c1f of _0x169013)'$graveyard'!=_0x443c1f['root']['rootName']&&(_0x2009f0['setSelection'](_0x2009f0['createPositionAt'](_0x443c1f,0x0)),_0x3397e0['commands']['get']('removeTableColumn')['refresh'](),_0x3397e0['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x51f1f8=_0x143325['filter'](_0x2ef171=>'$graveyard'!=_0x2ef171['root']['rootName']);_0x51f1f8['length']>0x0&&_0x2009f0['setSelection'](_0x51f1f8);for(const _0x3f228e of _0x143325)_0x3f228e['detach']();});}function _0x5858ab(_0x43d6c1,_0x4d7380){return _0x4d7380['every'](_0x14e7b0=>_0x43d6c1['some'](_0xfd9803=>_0xfd9803['end']['isEqual'](_0x14e7b0['start'])||_0x14e7b0['end']['isEqual'](_0xfd9803['start'])));}function _0x234770(_0x4d3b2b,_0x3834ac){return!_0x4d3b2b['some'](_0x3e8406=>_0x3834ac['some'](_0x3b1bfa=>_0x3e8406['isIntersecting'](_0x3b1bfa)))&&_0x4d3b2b['some'](_0x3a319e=>_0x3834ac['some'](_0x2b33ea=>_0x3a319e['end']['isTouching'](_0x2b33ea['start'])));}_0x4ed850['descriptionFactory']['registerDescriptionCallback'](_0x4414f7=>{if('insertion'!=_0x4414f7['type']&&'deletion'!=_0x4414f7['type'])return;const _0xc57aec=_0x4414f7['getContainedElement']();if(null!=_0xc57aec&&_0xc57aec['is']('element','table')){if('insertion'==_0x4414f7['type']){const _0x53b08b=_0x4414f7['getItems']()['filter'](_0xccd7de=>_0xccd7de['is']('$textProxy'))['map'](_0x3c84ff=>_0x3c84ff['data']);if(_0x53b08b['length'])return{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x53b08b['join']('\x20')+'\x22'))};}if('deletion'==_0x4414f7['type']){const _0xb2d41d=_0x4414f7['getItems']()['filter'](_0x52acb3=>_0x52acb3['is']('$textProxy'))['map'](_0x19b532=>_0x19b532['data']);if(_0xb2d41d['length'])return{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb2d41d['join']('\x20')+'\x22'))};}}}),_0x4ed850['descriptionFactory']['registerDescriptionCallback'](_0x74919d=>{if('tableRow'==_0x74919d['subType']){const _0x537306=_0x74919d['getItems']()['filter'](_0x27b6a0=>_0x27b6a0['is']('$textProxy'))['map'](_0x485898=>_0x485898['data']),_0x41a2d8=this['_getSuggestionCoords'](_0x74919d),_0x3f5270=_0x41a2d8['maxRow']-_0x41a2d8['minRow']+0x1;if('insertion'==_0x74919d['type'])return _0x537306['length']?{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f5270,'\x22'+_0x537306['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW',_0x3f5270))};if('deletion'==_0x74919d['type'])return _0x537306['length']?{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f5270,'\x22'+_0x537306['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_ROW',_0x3f5270))};}if('tableColumn'==_0x74919d['subType']){const _0x3ad3ca=_0x74919d['getItems']()['filter'](_0x16b481=>_0x16b481['is']('$textProxy'))['map'](_0x5f24f8=>_0x5f24f8['data']),_0x17ea75=this['_getSuggestionCoords'](_0x74919d),_0x2e41cf=_0x17ea75['maxColumn']-_0x17ea75['minColumn']+0x1;if('insertion'==_0x74919d['type'])return _0x3ad3ca['length']?{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e41cf,'\x22'+_0x3ad3ca['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x50e768,'*Insert:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN',_0x2e41cf))};if('deletion'==_0x74919d['type'])return _0x3ad3ca['length']?{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e41cf,'\x22'+_0x3ad3ca['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x50e768,'*Remove:*\x20%0',At(_0x50e768,'ELEMENT_TABLE_COLUMN',_0x2e41cf))};}}),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3a81de),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3a81de),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3a745f),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3a745f),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5858ab),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5858ab),_0x4ed850['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x234770),_0x4ed850['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x234770);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3557cb=this['editor'],_0x8e06e6=_0x3557cb['model']['document']['selection'];return(_0x3decd1,_0xd3053e)=>{_0x3557cb['model']['change'](_0x18c277=>{const {commandName:_0x3090d3,commandParams:_0x3e9ee2}=_0xd3053e;let _0x5965dc=_0x3decd1[0x0]['end']['nodeBefore'];_0x3e9ee2&&_0x3e9ee2[0x0]&&!0x1===_0x3e9ee2[0x0]['forceValue']&&(_0x5965dc=_0x3decd1[0x0]['start']['nodeAfter']);const _0x682194=_0x18c277['createRangeIn'](_0x5965dc);if('$graveyard'==_0x682194['root']['rootName'])return;const _0x5627f9=Array['from'](_0x8e06e6['getRanges']())['map'](_0x5e4fe4=>_0x211ae6['fromRange'](_0x5e4fe4));_0x18c277['setSelection'](_0x682194),_0x3557cb['commands']['get'](_0x3090d3)['refresh'](),_0x3e9ee2['push']({'forceDefaultExecution':!0x0}),_0x3557cb['execute'](_0x3090d3,..._0x3e9ee2);const _0x1d9a9d=_0x5627f9['filter'](_0x1123e5=>'$graveyard'!=_0x1123e5['root']['rootName']);_0x1d9a9d['length']>0x0&&_0x18c277['setSelection'](_0x1d9a9d);for(const _0x465f12 of _0x5627f9)_0x465f12['detach']();});};}['_getCoordsForCells'](_0x18859c){const _0x4c4657=this['editor']['plugins']['get']('TableUtils');let _0x19ae58=Number['MAX_SAFE_INTEGER'],_0x3de96e=Number['MIN_SAFE_INTEGER'],_0x386e53=Number['MAX_SAFE_INTEGER'],_0xd1dcaf=Number['MIN_SAFE_INTEGER'];for(const _0xc18132 of _0x18859c){if('$graveyard'==_0xc18132['root']['rootName'])continue;const {row:_0x4bf345,column:_0x3d8841}=_0x4c4657['getCellLocation'](_0xc18132),_0x416597=_0xc18132['hasAttribute']('rowspan')?_0xc18132['getAttribute']('rowspan')-0x1:0x0,_0x3f687e=_0xc18132['hasAttribute']('colspan')?_0xc18132['getAttribute']('colspan')-0x1:0x0;_0x19ae58=_0x4bf345<_0x19ae58?_0x4bf345:_0x19ae58,_0x3de96e=_0x4bf345+_0x416597>_0x3de96e?_0x4bf345+_0x416597:_0x3de96e,_0x386e53=_0x3d8841<_0x386e53?_0x3d8841:_0x386e53,_0xd1dcaf=_0x3d8841+_0x3f687e>_0xd1dcaf?_0x3d8841+_0x3f687e:_0xd1dcaf;}return{'minRow':_0x19ae58,'maxRow':_0x3de96e,'minColumn':_0x386e53,'maxColumn':_0xd1dcaf};}['_setupColumnsRowsFixing'](){const _0x3dea1f=this['editor'],_0x518af5=_0x3dea1f['plugins']['get']('TrackChangesEditing'),_0x4acdc1=_0x3dea1f['plugins']['get']('TableUtils');_0x3dea1f['model']['document']['on']('change:data',()=>{const _0x2d24bc=Array['from'](_0x3dea1f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x59f9cf,data:_0x312251}of _0x2d24bc){const {group:_0xd9da9a,id:_0x3a816e,subType:_0x17120d}=_0x2cca50(_0x59f9cf);if('suggestion'!=_0xd9da9a)continue;if(null!=_0x312251['oldRange'])continue;const _0x1e92cd=_0x518af5['getSuggestion'](_0x3a816e);this['_tablePostFixingSubtypes']['includes'](_0x17120d)&&this['_tableSuggestions']['add'](_0x1e92cd);}},{'priority':'low'});const _0x281c44=(_0x46a634,_0x5f2504)=>{let _0x19eb06=!0x1;const _0x37d066=_0x5f2504['createRangeOn'](_0x46a634),_0x108403=_0x46a634['findAncestor']('table'),_0x50de35=_0x4acdc1['getCellLocation'](_0x46a634);for(const _0x18c2ac of this['_tableSuggestions']){const _0x132d8b=_0x18c2ac['subType'],_0x42647d=_0x132d8b['startsWith']('tablePaste'),_0x2687e1=_0x132d8b['substr'](_0x42647d?0xa:0x5),_0x14bbef=_0x2687e1['toLowerCase'](),_0x391f0d=_0x14bbef['substr'](0x0,0x3)+'span',_0x46e0b1='min'+_0x2687e1,_0x1aa37c='max'+_0x2687e1;if(!_0x18c2ac['isInContent'])continue;if(_0x108403!=_0x18c2ac['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x18c2ac['isIntersectingWithRange'](_0x37d066))continue;const _0x32dc3e=_0x46a634['hasAttribute'](_0x391f0d)?_0x46a634['getAttribute'](_0x391f0d)-0x1:0x0,_0x5514e8=this['_getSuggestionCoords'](_0x18c2ac),_0x423653=_0x5514e8[_0x46e0b1],_0x476ce5=_0x5514e8[_0x1aa37c];_0x423653<=_0x50de35[_0x14bbef]&&_0x50de35[_0x14bbef]+_0x32dc3e<=_0x476ce5&&(_0x18c2ac['addRange'](_0x37d066),_0x19eb06=!0x0);}return _0x19eb06;};_0x3dea1f['model']['document']['registerPostFixer'](_0xc46140=>{let _0x579f49=!0x1;for(const _0x111279 of _0x3dea1f['model']['document']['differ']['getChanges']())if('insert'==_0x111279['type']){if('tableRow'==_0x111279['name']){for(const _0x23debf of _0x111279['position']['nodeAfter']['getChildren']())_0x579f49=_0x579f49||_0x281c44(_0x23debf,_0xc46140);}else'tableCell'==_0x111279['name']&&(_0x579f49=_0x579f49||_0x281c44(_0x111279['position']['nodeAfter'],_0xc46140));}return _0x579f49;});}['_getSuggestionCoords'](_0x3cbd29){return this['_getCoordsForCells'](_0x3cbd29['getRanges']()['map'](_0x385fae=>_0x385fae['start']['nodeAfter']));}}function Re(_0xe15c7e){return Array['from'](new Set(_0xe15c7e)['values']());}class Se extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x4a8493=this['editor'],_0x12c638=_0x4a8493['model']['document']['selection'],_0x3e7286=_0x4a8493['locale'];if(!_0x4a8493['plugins']['has']('TableEditing'))return;const _0x255bd4=_0x4a8493['plugins']['get']('TrackChangesEditing'),_0x3c7665=_0x4a8493['plugins']['get']('TableUtils'),_0x25f78e=_0x4a8493['plugins']['get'](Ne);_0x25f78e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x255bd4['enableCommand']('mergeTableCells',()=>{const _0x4cacbf=_0x3c7665['getSelectionAffectedTableCells'](_0x4a8493['model']['document']['selection']);_0x4a8493['model']['change'](()=>{_0x255bd4['markMultiRangeBlockFormat'](_0x4cacbf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4a8493['commands']['get']('mergeTableCells')['on']('execute',(_0x36cb2d,_0x3e47ef)=>{_0x4a8493['commands']['get']('trackChanges')['value']&&(_0x3e47ef['length']>0x0&&_0x3e47ef[_0x3e47ef['length']-0x1]&&_0x3e47ef[_0x3e47ef['length']-0x1]['forceDefaultExecution']||_0x255bd4['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36cb2d['stop']());},{'priority':'highest'});for(const _0x11712a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x87f9f7=_0x4a8493['commands']['get'](_0x11712a);_0x255bd4['enableCommand'](_0x11712a,()=>{const _0x4af043=_0x4a8493['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x309800=>_0x309800['is']('element','tableCell')),_0x4713e6=_0x87f9f7['value'];_0x4a8493['model']['change'](()=>{_0x255bd4['markMultiRangeBlockFormat']([_0x4af043,_0x4713e6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x209362 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1883f0=_0x4a8493['commands']['get'](_0x209362);_0x255bd4['enableCommand'](_0x209362,()=>{const _0x251f85=_0x3c7665['getSelectionAffectedTableCells'](_0x4a8493['model']['document']['selection'])[0x0],_0x17b157=_0x251f85['findAncestor']('table'),{column:_0xe2078d,row:_0x2506ec}=_0x3c7665['getCellLocation'](_0x251f85);let _0x540264=[];if('horizontally'==_0x1883f0['direction']){const _0x1981f5=_0x3c7665['createTableWalker'](_0x17b157,{'startRow':_0x2506ec,'endRow':_0x2506ec,'includeAllSlots':!0x0});_0x540264=Array['from'](_0x1981f5)['map'](_0x42dbfa=>_0x42dbfa['cell']);}else{const _0x21d3b9=_0x3c7665['createTableWalker'](_0x17b157,{'column':_0xe2078d,'includeAllSlots':!0x0});_0x540264=Array['from'](_0x21d3b9)['map'](_0x33b735=>_0x33b735['cell']);}_0x4a8493['model']['change'](_0x58a1b8=>{_0x255bd4['markBlockFormat'](_0x58a1b8['createRangeOn'](_0x251f85),{'commandName':_0x209362,'commandParams':[]},_0x540264,_0x209362);});});}_0x255bd4['descriptionFactory']['registerDescriptionCallback'](_0x3cc31a=>{if('formatBlock'!=_0x3cc31a['type']&&'formatInline'!=_0x3cc31a['type'])return;const {data:_0xd3d6f4}=_0x3cc31a;return _0xd3d6f4&&'mergeTableCells'==_0xd3d6f4['commandName']?{'type':'format','content':At(_0x3e7286,'*Merge\x20cells*')}:void 0x0;}),_0x255bd4['descriptionFactory']['registerDescriptionCallback'](_0xbaa3b7=>{if('formatBlock'!=_0xbaa3b7['type']&&'formatInline'!=_0xbaa3b7['type'])return;const {data:_0x1ae401}=_0xbaa3b7;return _0x1ae401?'splitTableCellVertically'==_0x1ae401['commandName']?{'type':'format','content':At(_0x3e7286,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1ae401['commandName']?{'type':'format','content':At(_0x3e7286,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1457f9=_0x25f78e['_acceptFormatSuggestionCallbackFactory']();for(const _0x9230d2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9230d2,'accept',_0x1457f9);for(const _0x465f34 of['splitTableCellVertically','splitTableCellHorizontally'])_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x465f34,'accept',_0x1457f9);_0x255bd4['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1b788e=>{_0x4a8493['model']['change'](_0x59db06=>{const _0x518983=Array['from'](_0x12c638['getRanges']())['map'](_0x4cee34=>_0x211ae6['fromRange'](_0x4cee34));_0x59db06['setSelection'](_0x1b788e),_0x4a8493['commands']['get']('mergeTableCells')['refresh'](),_0x4a8493['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x489fe0=_0x518983['filter'](_0x3b3c34=>'$graveyard'!=_0x3b3c34['root']['rootName']);_0x489fe0['length']>0x0&&_0x59db06['setSelection'](_0x489fe0);for(const _0x12d435 of _0x518983)_0x12d435['detach']();});});for(const _0x5b0170 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x13c7d4=_0x4a8493['commands']['get'](_0x5b0170);_0x13c7d4['on']('set:isEnabled',(_0x4442b4,_0x357fcb,_0x43f626)=>{if(_0x43f626){const _0x25767d=_0x4a8493['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3db91b=>_0x3db91b['is']('element','tableCell'));this['_areMergableCells'](_0x13c7d4['value'],_0x25767d)||(_0x4442b4['return']=!0x1,_0x4442b4['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x145ecf=this['editor']['commands']['get']('mergeTableCells'),_0x45cfa2=this['editor']['plugins']['get']('TableUtils');if(!_0x145ecf['isEnabled'])return!0x1;const _0x370a2e=_0x45cfa2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a8d07 of _0x370a2e)for(const _0x1d91d3 of _0x370a2e)if(_0x3a8d07!=_0x1d91d3&&!this['_areMergableCells'](_0x3a8d07,_0x1d91d3))return!0x1;return!0x0;}['_areMergableCells'](_0x41a10f,_0x3d6296){const _0x1bc030=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4418cb=this['editor']['model']['createRangeOn'](_0x41a10f),_0x56983d=this['editor']['model']['createRangeOn'](_0x3d6296),_0x2b144c=new Set(),_0x56715c=new Set();for(const _0x50c1ec of _0x1bc030['getSuggestions']())if(('insertion'==_0x50c1ec['type']||'deletion'==_0x50c1ec['type']||'mergeTableCells'==_0x50c1ec['subType'])&&_0x50c1ec['isInContent']){for(const _0xb7e4e3 of _0x50c1ec['getRanges']())_0xb7e4e3['containsRange'](_0x4418cb,!0x0)&&_0x2b144c['add'](_0x50c1ec['type']+':'+_0x50c1ec['author']['id']),_0xb7e4e3['containsRange'](_0x56983d,!0x0)&&_0x56715c['add'](_0x50c1ec['type']+':'+_0x50c1ec['author']['id']);}if(_0x2b144c['size']!=_0x56715c['size'])return!0x1;for(const _0x55f72c of _0x2b144c)if(!_0x56715c['has'](_0x55f72c))return!0x1;return!0x0;}}class Me extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x2228a6=this['editor'];if(!_0x2228a6['plugins']['has']('TableEditing'))return;const _0xd49b1=_0x2228a6['locale'],_0x55e477=_0x2228a6['plugins']['get']('TrackChangesEditing');_0x55e477['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55e477['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55e477['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0xd49b1,'FORMAT_HEADER_ROW')),_0x55e477['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0xd49b1,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10ab57=this['editor']['plugins']['get']('TrackChangesEditing'),_0xee1937=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x10ab57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xee1937),_0x10ab57['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xee1937),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x32c069=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29a99b=this['editor']['plugins']['get']('TableUtils');function _0x18588d({showActiveMarker:_0x5c6d0c=!0x0,setDataAttribute:_0x344620=!0x0}={}){return(_0x370ffc,_0x49e6d1,_0x164bb2)=>{const {type:_0x5f0b74,id:_0x34217c}=_0x2cca50(_0x49e6d1['markerName']);if(!_0x32c069['hasSuggestion'](_0x34217c))return;const _0xd483ba=_0x32c069['getSuggestion'](_0x34217c),_0x1eb64b=_0xd483ba['data'];if('formatBlock'!=_0xd483ba['type']||!_0x1eb64b||'setTableColumnHeader'!=_0x1eb64b['commandName'])return;if(_0x49e6d1['item'])return void _0x370ffc['stop']();if(!_0x164bb2['consumable']['consume'](_0x49e6d1['markerRange'],_0x370ffc['name']))return;const _0x324841=_0x49e6d1['markerRange']['start']['nodeAfter'],_0x4b175f=_0x49e6d1['markerRange']['end']['nodeBefore'],_0x30a3f3=_0x324841['parent']['parent'],{column:_0x1be039}=_0x29a99b['getCellLocation'](_0x324841),{column:_0x3b2f50}=_0x29a99b['getCellLocation'](_0x4b175f);for(let _0x4884db=_0x1be039;_0x4884db<=_0x3b2f50;_0x4884db++){const _0x5518bb=_0x29a99b['createTableWalker'](_0x30a3f3,{'column':_0x4884db,'includeAllSlots':!0x1});for(const _0x4ca9a9 of _0x5518bb){const _0x2ca914=_0x4ca9a9['cell'],_0x1aafca=_0x164bb2['mapper']['toViewElement'](_0x2ca914);_0x164bb2['writer']['addClass']('ck-suggestion-marker-'+_0x5f0b74,_0x1aafca),_0x344620&&_0x164bb2['writer']['setAttribute']('data-suggestion',_0x34217c,_0x1aafca),_0x164bb2['mapper']['bindElementToMarker'](_0x1aafca,_0x49e6d1['markerName']),_0x5c6d0c&&(_0x32c069['activeMarkers']['includes'](_0x49e6d1['markerName'])?_0x164bb2['writer']['addClass']('ck-suggestion-marker--active',_0x1aafca):_0x164bb2['writer']['removeClass']('ck-suggestion-marker--active',_0x1aafca));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x18588d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e44d2,_0x89dfd5,_0x4216b8)=>{_0x4216b8['options']['showSuggestionHighlights']&&_0x18588d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1e44d2,_0x89dfd5,_0x4216b8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2c55dc,_0x4811c2,_0x1b1cad)=>{const {type:_0x70d828,id:_0x4e843f}=_0x2cca50(_0x4811c2['markerName']);if(!_0x32c069['hasSuggestion'](_0x4e843f))return;const _0x5265a3=_0x32c069['getSuggestion'](_0x4e843f),_0x54caf6=_0x5265a3['data'];if('formatBlock'!=_0x5265a3['type']||!_0x54caf6||'setTableColumnHeader'!=_0x54caf6['commandName'])return;const _0x44fc5f=_0x1b1cad['mapper']['markerNameToElements'](_0x4811c2['markerName']);if(_0x44fc5f){for(const _0x3537a0 of _0x44fc5f)_0x1b1cad['writer']['removeClass']('ck-suggestion-marker-'+_0x70d828,_0x3537a0),_0x1b1cad['writer']['removeClass']('ck-suggestion-marker--active',_0x3537a0),_0x1b1cad['writer']['removeAttribute']('data-suggestion',_0x3537a0),_0x1b1cad['mapper']['unbindElementFromMarkerName'](_0x3537a0,_0x4811c2['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x4a1072=this['editor'],_0x306d0b=_0x4a1072['locale'];function _0x38915a(_0x36e060){return{'type':'format','content':At(_0x306d0b,'*Format:*\x20%0',_0x36e060)};}_0x4a1072['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x417b3b=>{if('formatBlock'!=_0x417b3b['type'])return;const {data:_0x3a6ec5}=_0x417b3b;if(_0x3a6ec5){if('setTableRowHeader'==_0x3a6ec5['commandName']){const _0x1dafe9=_0x3a6ec5['commandParams'][0x0]['forceValue'];return _0x38915a(At(_0x306d0b,_0x1dafe9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3a6ec5['commandName']){const _0x2eb3d6=_0x3a6ec5['commandParams'][0x0]['forceValue'];return _0x38915a(At(_0x306d0b,_0x2eb3d6?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x65725a=this['editor'];if(!_0x65725a['plugins']['has']('TableEditing')||!_0x65725a['config']['get']('table.enableFooters'))return;const _0x404bbd=_0x65725a['locale'],_0x564e1c=_0x65725a['plugins']['get']('TrackChangesEditing');_0x564e1c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x564e1c['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x404bbd,'FORMAT_FOOTER_ROW'));}}class we extends _0x48a7fd{['afterInit'](){const _0x1a05fb=this['editor'],_0x1d55cd=_0x1a05fb['locale'],_0x3ef4dc=_0x1a05fb['plugins']['get']('TrackChangesEditing');function _0x38f3f5(_0x22e242){return{'type':'format','content':''+At(_0x1d55cd,'*Set\x20table\x20type:*\x20%0',_0x22e242)};}_0x1a05fb['plugins']['has']('TableLayout')&&(_0x3ef4dc['enableCommand']('insertTableLayout'),_0x3ef4dc['enableDefaultAttributesIntegration']('tableType'),_0x3ef4dc['descriptionFactory']['registerElementLabel'](_0x88b6a6=>_0x88b6a6['is']('element','table')&&'layout'===_0x88b6a6['getAttribute']('tableType'),_0x3695d5=>At(_0x1d55cd,'ELEMENT_LAYOUT_TABLE',_0x3695d5)),_0x3ef4dc['descriptionFactory']['registerDescriptionCallback'](_0x20939b=>{const {data:_0x162af7}=_0x20939b;if(_0x162af7&&'tableType'==_0x162af7['key'])switch(_0x162af7['newValue']){case'layout':return _0x38f3f5(At(_0x1d55cd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x38f3f5(At(_0x1d55cd,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x2c14a3=>[_0x2c14a3,null]));class De extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x36f1c0=this['editor'];if(!_0x36f1c0['plugins']['has']('TableClipboard'))return;const _0x453bf3=_0x36f1c0['plugins']['get']('TrackChangesEditing'),_0x47cce3=_0x36f1c0['plugins']['get']('TableUtils'),_0x3d9921=_0x36f1c0['plugins']['get'](Ne),_0x449693=_0x36f1c0['plugins']['get']('TableClipboard'),_0x520115=_0x36f1c0['plugins']['get']('TableSelection'),_0x3dd0bb=_0x36f1c0['plugins']['get'](ut);_0x3d9921['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x36f1c0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x36f1c0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x181aef=null,_0x114b1a=!0x1;_0x3dd0bb['on']('contentInsertion',(_0x3d635f,_0x34c826)=>{_0x114b1a='paste'===_0x34c826['method'];}),_0x36f1c0['model']['on']('insertContent',(_0x209d57,_0x421d71)=>{if(!_0x114b1a&&null===_0x520115['getSelectedTableCells']())return;const [_0x3cda61,_0x5de316]=_0x421d71,_0xd94c6a=_0x421d71[_0x421d71['length']-0x1];_0xd94c6a&&_0xd94c6a['forceDefaultExecution']||_0x453bf3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x311f71,_0x1b7f11,_0x2b001a,_0x5c75e4,_0x3f8684){if(_0x1b7f11&&!_0x1b7f11['is']('documentSelection'))return!0x1;const _0x1b7120=_0x3f8684['getTableIfOnlyTableInContent'](_0x311f71,_0x2b001a);if(!_0x1b7120||!xe(_0x1b7120,void 0x0,_0x5c75e4))return!0x1;const _0x42e1c0=_0x5c75e4['getSelectionAffectedTableCells'](_0x2b001a['document']['selection']);if(!_0x42e1c0['length'])return!0x1;const _0x1c692f=_0x42e1c0[0x0]['findAncestor']('table'),_0x551325=_0x5c75e4['getRowIndexes'](_0x42e1c0),_0xbb293c=_0x5c75e4['getColumnIndexes'](_0x42e1c0),_0x2c55c4={'startRow':_0x551325['first'],'endRow':_0x551325['last'],'startColumn':_0xbb293c['first'],'endColumn':_0xbb293c['last']};return 0x1==_0x42e1c0['length']&&(_0x2c55c4['endRow']+=_0x5c75e4['getRows'](_0x1b7120)-0x1,_0x2c55c4['endColumn']+=_0x5c75e4['getColumns'](_0x1b7120)-0x1),xe(_0x1c692f,_0x2c55c4,_0x5c75e4);}(_0x3cda61,_0x5de316,_0x36f1c0['model'],_0x47cce3,_0x449693)&&(_0x209d57['stop'](),_0x181aef={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x36f1c0['model']['change'](()=>{_0x36f1c0['model']['insertContent'](_0x421d71[0x0],_0x421d71[0x1],_0x421d71[0x2],{'forceDefaultExecution':!0x0});const _0x1a9979=_0x2296a0(),{rowInsertionRanges:_0x50fc67,columnInsertionRanges:_0x18be06,insertionRanges:_0x5a92f1,deletionRanges:_0x16ab2a,cells:_0x3c39ec}=_0x181aef;_0x50fc67['length']&&_0x453bf3['markMultiRangeInsertion'](_0x50fc67,'tablePasteRow',{'tablePasteChainId':_0x1a9979}),_0x18be06['length']&&_0x453bf3['markMultiRangeInsertion'](_0x18be06,'tablePasteColumn',{'tablePasteChainId':_0x1a9979}),_0x5a92f1['length']&&(_0x453bf3['markMultiRangeInsertion'](_0x5a92f1,'tablePaste',{'tablePasteChainId':_0x1a9979,'skipNestingCheck':!0x0}),_0x5a92f1['forEach'](_0x3da207=>_0x3da207['detach']?.())),_0x16ab2a['length']&&(_0x453bf3['markMultiRangeDeletion'](_0x16ab2a,'tablePaste',{'tablePasteChainId':_0x1a9979,'skipNestingCheck':!0x0}),_0x16ab2a['forEach'](_0x1b6fa2=>_0x1b6fa2['detach']?.()));const _0x34bc3b=_0x453bf3['markMultiRangeBlockFormat'](_0x3c39ec['map'](({element:_0x2ae3bb})=>_0x2ae3bb),{'formatGroupId':_0x2296a0()},[],'tablePasteCell',{'tablePasteChainId':_0x1a9979});if(_0x34bc3b){const _0x3fb60c=_0x34bc3b['getMarkers'](),_0x5de11a=[];for(const {element:_0x3e1cf4,attributes:_0xac9e7d}of _0x3c39ec){if(!_0xac9e7d)continue;const _0x1e2d87=_0x36f1c0['model']['createRangeOn'](_0x3e1cf4),_0x20dd46=_0x3fb60c['find'](_0x376c2f=>_0x376c2f['getRange']()['isEqual'](_0x1e2d87));_0x20dd46&&_0x5de11a['push']([_0x20dd46['name'],_0xac9e7d]);}_0x5de11a['length']&&_0x34bc3b['setAttribute']('markerAttributes',Object['fromEntries'](_0x5de11a));}_0x181aef=null;}));},{'priority':_0x5c3de4['high']+0xa}),_0x3dd0bb['on']('contentInsertion',()=>{_0x114b1a=!0x1;},{'priority':'lowest'}),_0x36f1c0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x47200d,_0x52079b)=>{const [_0x5a7096,_0x3b21fb,,_0x6c5ebc]=_0x52079b;if(!_0x181aef)return;_0x47200d['stop']();const _0x1eaa85=_0x5a7096['cell'],_0x30f8ca=_0x3b21fb,_0x4d2892=ve(_0x1eaa85),_0x7c8b31=ve(_0x30f8ca);_0x47200d['return']=_0x1eaa85;let _0x2f18e8=null,_0x14eb84=null;if(_0x7c8b31||_0x4d2892){if(_0x4d2892&&!_0x7c8b31){_0x6c5ebc['remove'](_0x1eaa85['getChild'](0x0));for(const _0x25035e of Array['from'](_0x30f8ca['getChildren']()))_0x6c5ebc['insert'](_0x25035e,_0x1eaa85,'end');const _0x2134c1=_0x181aef['rowInsertionIndexes']['includes'](_0x5a7096['row']),_0x1e62db=_0x181aef['columnInsertionIndexes']['includes'](_0x5a7096['column']);_0x2134c1||_0x1e62db||(_0x2f18e8=_0x211ae6['fromRange'](_0x6c5ebc['createRangeIn'](_0x1eaa85)));}else _0x7c8b31&&!_0x4d2892&&(_0x14eb84=_0x6c5ebc['createRangeIn'](_0x1eaa85));}else{const _0x1b67da=_0x6c5ebc['createElement']('tableCellSuggestion'),_0x231b67=_0x6c5ebc['createElement']('tableCellSuggestion');_0x6c5ebc['wrap'](_0x6c5ebc['createRangeIn'](_0x1eaa85),_0x231b67),_0x6c5ebc['insert'](_0x1b67da,_0x1eaa85,0x0);for(const _0x516c52 of Array['from'](_0x30f8ca['getChildren']()))_0x6c5ebc['insert'](_0x516c52,_0x1b67da,'end');_0x2f18e8=_0x211ae6['fromRange'](_0x6c5ebc['createRangeOn'](_0x1b67da)),_0x14eb84=_0x211ae6['fromRange'](_0x6c5ebc['createRangeOn'](_0x231b67));}const _0x37e5cc=Array['from'](_0x30f8ca['getAttributes']())['filter'](([_0x2eee48])=>Be['includes'](_0x2eee48));_0x181aef['cells']['push']({'element':_0x1eaa85,'attributes':_0x37e5cc['length']?Object['fromEntries'](_0x37e5cc):null}),_0x2f18e8&&_0x181aef['insertionRanges']['push'](_0x2f18e8),_0x14eb84&&_0x181aef['deletionRanges']['push'](_0x14eb84);},{'priority':'high'}),_0x47cce3['on']('insertColumns',(_0x46ffdc,_0xcc87f2)=>{const [_0x5cbb93,_0x24d226={}]=_0xcc87f2;if(!_0x181aef)return;const _0x1079de=_0x24d226['at']||0x0,_0x2884ae=_0x24d226['columns']||0x1;_0x181aef['columnInsertionIndexes']=new Array(_0x2884ae)['fill'](_0x1079de)['map']((_0x1fbe9f,_0x39d0af)=>_0x1fbe9f+_0x39d0af);for(const {cell:_0x5ecbb4}of _0x47cce3['createTableWalker'](_0x5cbb93,{'startColumn':_0x1079de,'endColumn':_0x1079de+_0x2884ae-0x1}))_0x181aef['columnInsertionRanges']['push'](_0x36f1c0['model']['createRangeOn'](_0x5ecbb4));},{'priority':'low'}),_0x47cce3['on']('insertRows',(_0x1e1525,_0x2d0111)=>{const [_0x3293c1,_0x46e054={}]=_0x2d0111;if(!_0x181aef)return;const _0x37bb42=_0x46e054['at']||0x0,_0x3151ab=_0x46e054['rows']||0x1;_0x181aef['rowInsertionIndexes']=new Array(_0x3151ab)['fill'](_0x37bb42)['map']((_0x1fb59a,_0x82669d)=>_0x1fb59a+_0x82669d);for(const {cell:_0x1ee20b}of _0x47cce3['createTableWalker'](_0x3293c1,{'startRow':_0x37bb42,'endRow':_0x37bb42+_0x3151ab-0x1}))_0x181aef['rowInsertionRanges']['push'](_0x36f1c0['model']['createRangeOn'](_0x1ee20b));},{'priority':'low'}),_0x453bf3['descriptionFactory']['registerDescriptionCallback'](_0xb4125d=>{if(_0xb4125d['subType']&&_0xb4125d['subType']['startsWith']('tablePaste'))return _0xb4125d['previous']?{}:{'type':'insertion','content':At(_0x36f1c0['locale'],'*Replace\x20table\x20cells*')};});const _0x50a58c=()=>!0x1;for(const _0x3effa0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion',_0x3effa0,'join',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('deletion',_0x3effa0,'join',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3effa0,'join',_0x50a58c);_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50a58c),_0x453bf3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f7d1f,_0x4f8f32,_0x5ce5b2)=>{const _0x34a385=_0x1f7d1f['map'](_0x5e86de=>_0x5e86de['getContainedElement']())['filter'](_0x294c2a=>_0x294c2a),_0x264990=new Map(_0x34a385['map'](_0x2de465=>[_0x2de465,null]));if(_0x181aef){for(const {element:_0x270520,attributes:_0x37dc3c}of _0x181aef['cells'])_0x37dc3c&&_0x264990['set'](_0x270520,_0x37dc3c);}else{if(_0x5ce5b2&&_0x5ce5b2['markerAttributes'])for(const [_0x3482fc,_0x14c71a]of Object['entries'](_0x5ce5b2['markerAttributes'])){const _0x19f069=_0x36f1c0['model']['markers']['get'](_0x3482fc),_0x5b2850=_0x19f069?_0x19f069['getRange']()['getContainedElement']():null;_0x5b2850&&_0x264990['set'](_0x5b2850,_0x14c71a);}}_0x36f1c0['model']['change'](_0x46aeba=>{for(const [_0x1b08e6,_0x232850]of _0x264990)_0x46aeba['setAttributes']({...Fe,..._0x232850},_0x1b08e6);});});const _0x23f65d=(_0x1ae397,_0xb80b23)=>{_0x453bf3['_suggestionFactory']['registerCustomCallback'](_0x1ae397,'tablePaste',_0xb80b23,(_0x399e35,_0x351c58,_0x1a4b4c)=>{_0x36f1c0['model']['change'](_0x33e228=>{const _0x32dafa=[];for(const _0x548643 of _0x399e35){const _0x30bd8f=_0x548643['start']['nodeAfter'];_0x30bd8f['is']('element','tableCellSuggestion')&&_0x32dafa['push'](_0x30bd8f);}_0x453bf3['_suggestionFactory']['getSuggestionCallback'](_0x1ae397,null,_0xb80b23)(_0x399e35,_0x351c58,_0x1a4b4c);for(const _0x58599b of _0x32dafa)'$graveyard'!=_0x58599b['root']['rootName']&&_0x33e228['unwrap'](_0x58599b);});});};_0x23f65d('insertion','accept'),_0x23f65d('insertion','discard'),_0x23f65d('deletion','accept'),_0x23f65d('deletion','discard'),_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xec10aa=>{const _0x50e06b=_0xec10aa['map'](_0x290ab7=>_0x290ab7['getContainedElement']()),_0x39c0a3=_0x50e06b[0x0]['findAncestor']('table'),{minRow:_0x25c3a6,maxRow:_0x393a10}=_0x3d9921['_getCoordsForCells'](_0x50e06b);_0x47cce3['removeRows'](_0x39c0a3,{'at':_0x25c3a6,'rows':_0x393a10-_0x25c3a6+0x1});}),_0x453bf3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3bcbb4=>{const _0x380bfc=_0x3bcbb4['map'](_0xacc65e=>_0xacc65e['getContainedElement']()),_0x56c6c1=_0x380bfc[0x0]['findAncestor']('table'),{minColumn:_0x1e2ef0,maxColumn:_0x19f817}=_0x3d9921['_getCoordsForCells'](_0x380bfc);_0x47cce3['removeColumns'](_0x56c6c1,{'at':_0x1e2ef0,'columns':_0x19f817-_0x1e2ef0+0x1});});const _0x4c12e8=(_0xfca8ff,_0x4dd48a)=>{if(!_0x4dd48a['subType']||!_0x4dd48a['subType']['startsWith']('tablePaste'))return;const _0x3a05a5=_0x4dd48a['attributes']['tablePasteChainId'],_0x4210f3=_0x453bf3['getSuggestions']()['filter'](_0x4adb1a=>_0x4adb1a['isInContent']&&_0x4adb1a['attributes']&&_0x4adb1a['attributes']['tablePasteChainId']==_0x3a05a5);_0x4210f3['length']&&_0x4dd48a['getAllAdjacentSuggestions']()['length']!=_0x4210f3['length']&&_0x4210f3['reduce']((_0xc85133,_0x2360f1)=>(_0xc85133['next']=_0x2360f1,_0x2360f1['previous']=_0xc85133,_0x2360f1));};function _0x1e4034(_0xcb74f5,_0x2063e6=!0x0){const {id:_0x36dac6,authorId:_0x2645ca}=_0x2cca50(_0xcb74f5['markerName']),_0x523345=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x468e09=_0x453bf3['activeMarkers']['includes'](_0xcb74f5['markerName']);return _0x468e09&&_0x523345['push']('ck-suggestion-marker--active'),{'classes':_0x523345,'attributes':{'data-suggestion':_0x36dac6,'data-author-id':_0x2645ca},'priority':_0x468e09&&_0x2063e6?0xbc2:0xbb8};}_0x453bf3['on']('suggestionLoaded',_0x4c12e8,{'priority':'high'}),_0x453bf3['on']('suggestionUnloaded',_0x4c12e8,{'priority':'high'}),_0x36f1c0['model']['document']['registerPostFixer'](()=>{let _0x43a042=!0x1;const _0x20758c=Array['from'](_0x36f1c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x224a88,data:_0x57c8ed}of _0x20758c){const {group:_0x123619,type:_0x8b8727,id:_0x52953b}=_0x2cca50(_0x224a88);if('suggestion'!=_0x123619||'deletion'!=_0x8b8727||_0x57c8ed['oldRange'])continue;if(!_0x453bf3['hasSuggestion'](_0x52953b))continue;const _0x31a73f=_0x453bf3['getSuggestion'](_0x52953b)['getRanges'](),_0x100a8c=_0x36f1c0['plugins']['get']('Users')['me'];for(const _0x4c8ff4 of _0x453bf3['getSuggestions']()){if(!_0x4c8ff4['isInContent']||_0x4c8ff4['author']!=_0x100a8c)continue;if('formatBlock'!=_0x4c8ff4['type']||'tablePasteCell'!=_0x4c8ff4['subType'])continue;if(_0x4c8ff4['getRanges']()['every'](_0x45d066=>_0x31a73f['some'](_0x576391=>_0x576391['containsRange'](_0x45d066,!0x0)))){for(const _0x473d35 of _0x4c8ff4['getAllAdjacentSuggestions']())_0x473d35['isInContent']&&(_0x473d35['discard'](),_0x43a042=!0x0);}}}return _0x43a042;}),_0x36f1c0['model']['document']['registerPostFixer'](_0x3a2db2=>{const _0x1877f1=_0x36f1c0['commands']['get']('redo');if(!_0x1877f1||!_0x1877f1['_createdBatches']['has'](_0x3a2db2['batch']))return!0x1;let _0xada322=!0x1;const _0x24b515=_0x36f1c0['plugins']['get']('Users')['me'],_0x20091b=_0x36f1c0['model']['document']['differ']['getChanges'](),_0x229764=Array['from'](_0x36f1c0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x42f883,data:_0x18b583})=>{const {group:_0x28dbc3,subType:_0xf92814,authorId:_0x76d5d9}=_0x2cca50(_0x42f883);return'suggestion'==_0x28dbc3&&'tablePaste'==_0xf92814&&_0x76d5d9==_0x24b515['id']&&!_0x18b583['oldRange'];});for(const _0x7b5a6e of _0x20091b){if('insert'!=_0x7b5a6e['type']||'tableCellSuggestion'!=_0x7b5a6e['name']||0x1!=_0x7b5a6e['length'])continue;const _0x884202=_0x3a2db2['createRange'](_0x7b5a6e['position'],_0x7b5a6e['position']['getShiftedBy'](0x1));if(!_0x229764['find'](({data:_0x457acc})=>_0x457acc['newRange']['isEqual'](_0x884202))){for(const {name:_0x96bad9,data:_0x50b366}of _0x229764)if(_0x884202['containsRange'](_0x50b366['newRange'])){_0x3a2db2['updateMarker'](_0x96bad9,{'range':_0x884202}),_0xada322=!0x0;break;}}}return _0xada322;}),_0x36f1c0['model']['document']['registerPostFixer'](_0xbcdd1f=>{let _0x4ee574=!0x1;const _0x599eb1=_0x36f1c0['plugins']['get']('Users')['me'],_0x20ec01=_0x453bf3['getSuggestions']()['filter'](_0x2f44eb=>_0x2f44eb['isInContent']&&_0x2f44eb['author']==_0x599eb1),_0x4e4ae2=new Set(),_0x5e5335=new Set();for(const _0x27d642 of _0x20ec01)if('tablePaste'==_0x27d642['subType'])for(const _0x391aa2 of _0x27d642['getMarkers']()){const _0xddbc9c=_0x391aa2['getRange']()['getContainedElement']();if(_0xddbc9c){if(_0xddbc9c['is']('element','tableCellSuggestion')&&ve(_0xddbc9c)){_0x27d642['removeMarker'](_0x391aa2['name']),_0x4e4ae2['add'](_0xddbc9c),_0x4ee574=!0x0;const _0x539a0f=_0xddbc9c['nextSibling'],_0x39f431=_0xddbc9c['previousSibling'],_0x2b3c0c=_0x539a0f&&_0x539a0f['is']('element','tableCellSuggestion'),_0x242095=_0x39f431&&_0x39f431['is']('element','tableCellSuggestion');_0x2b3c0c&&!_0x4e4ae2['has'](_0x539a0f)&&_0x5e5335['add'](_0x539a0f),_0x242095&&!_0x4e4ae2['has'](_0x39f431)&&_0x5e5335['add'](_0x39f431);}else _0xddbc9c['is']('element','paragraph')&&_0xddbc9c['isEmpty']&&(_0x27d642['removeMarker'](_0x391aa2['name']),_0x4ee574=!0x0);}}else{if('tablePasteCell'==_0x27d642['subType']){if(!_0x27d642['attributes']||!_0x27d642['attributes']['tablePasteChainId'])continue;const _0x5eb7d6=_0x27d642['attributes']['markerAttributes'];if(_0x5eb7d6&&Object['keys'](_0x5eb7d6)['length'])continue;const _0x26e82c=_0x27d642['attributes']['tablePasteChainId'];let _0xfbd4ce=!0x0,_0x27b1e8=!0x0;for(const _0x2ef261 of _0x20ec01)if(_0x2ef261['subType']&&_0x2ef261['subType']['startsWith']('tablePaste')){if(!_0x2ef261['attributes']['tablePasteChainId']){_0x27b1e8=!0x1;break;}if(_0x2ef261['id']!=_0x27d642['id']&&_0x2ef261['attributes']['tablePasteChainId']==_0x26e82c){_0xfbd4ce=!0x1;break;}}_0x27b1e8&&_0xfbd4ce&&(_0x27d642['removeMarkers'](),_0x4ee574=!0x0);}}for(const _0x2c9d2e of _0x4e4ae2)_0xbcdd1f['remove'](_0x2c9d2e);for(const _0x491ca0 of _0x5e5335)_0xbcdd1f['unwrap'](_0x491ca0);return _0x4ee574;}),_0x36f1c0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x221d34=>_0x1e4034(_0x221d34),'converterPriority':'high'}),_0x36f1c0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38f6dd,_0x4897b9)=>_0x4897b9['options']['showSuggestionHighlights']?_0x1e4034(_0x38f6dd,!0x1):null,'converterPriority':'high'});const _0x10a281=_0x36f1c0['editing']['view'];this['listenTo'](_0x10a281['document'],'clipboardOutput',(_0x2e4373,_0x314f43)=>{const _0x501ee4=[];for(const _0x171869 of _0x10a281['createRangeIn'](_0x314f43['content'])['getItems']())_0x171869['is']('element','suggestion-td')&&_0x501ee4['push'](_0x171869);_0x10a281['change'](_0x3e2811=>{for(const _0x4889b4 of _0x501ee4)_0x3e2811['move'](_0x3e2811['createRangeIn'](_0x4889b4),_0x3e2811['createPositionBefore'](_0x4889b4)),_0x3e2811['remove'](_0x4889b4);});});}}function ve(_0x52207e){if(_0x52207e['isEmpty'])return!0x0;const _0x460533=_0x52207e['getChild'](0x0);return _0x460533['is']('element','paragraph')&&_0x460533['isEmpty'];}function xe(_0x55b116,_0xea1f58={},_0x560d30){for(const {isAnchor:_0x555766,cellHeight:_0x189a1f,cellWidth:_0x5c2c48}of _0x560d30['createTableWalker'](_0x55b116,{'includeAllSlots':!0x0,..._0xea1f58}))if(!_0x555766||0x1!=_0x189a1f||0x1!=_0x5c2c48)return!0x1;return!0x0;}class Pe extends _0x48a7fd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b99fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b99fa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b99fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b99fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b99fa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b99fa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b99fa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xc753c3,_0x5d45a5){const _0x52bc58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4657b0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5bd3c5=_0x5d45a5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x587fff=_0x4657b0['getColumnGroupElement'](_0x5bd3c5);let _0x42b7b4=_0x587fff?_0x4657b0['getTableColumnsWidths'](_0x587fff):null,_0x234298=_0x5bd3c5['getAttribute']('tableWidth')||null;const _0x1d9399=_0x5d45a5['tableWidth']||_0x234298,_0x8aa6d3=_0x5d45a5['columnWidths']||_0x42b7b4,_0x5bf00f=this['editor']['plugins']['get']('Users')['me'];for(const _0x5c5a09 of _0x52bc58['getSuggestions']()){const _0x38b78d=_0x5c5a09['getContainedElement']();if('resizeTable'===_0x5c5a09['subType']&&_0x38b78d===_0x5bd3c5){_0x5c5a09['author']!==_0x5bf00f&&_0x5c5a09['discard']();const _0x12d4d3=_0x5c5a09['data']['commandParams'];_0x234298=_0x12d4d3[0x0]['tableWidth'],_0x42b7b4=_0x12d4d3[0x0]['columnWidths'];break;}}_0xc753c3({'table':_0x5bd3c5,'tableWidth':_0x1d9399,'columnWidths':_0x8aa6d3}),_0x52bc58['markBlockFormat'](_0x5bd3c5,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x234298,'columnWidths':_0x42b7b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3bc8fb){if('formatBlock'!=_0x3bc8fb['type']&&'formatInline'!=_0x3bc8fb['type'])return;const {data:_0x4ab51e}=_0x3bc8fb;if(_0x4ab51e&&'resizeTable'===_0x4ab51e['formatGroupId']){const _0xa60481='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0xa60481)};}}}class Ue extends _0x48a7fd{['afterInit'](){const _0x1b9013=this['editor'];_0x1b9013['plugins']['has']('Template')&&_0x1b9013['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x48a7fd{['afterInit'](){const _0x2e74ca=this['editor'];if(!_0x2e74ca['commands']['get']('insertTableOfContents'))return;_0x2e74ca['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1122df=_0x2e74ca['plugins']['get']('TrackChangesEditing'),_0x18f968=_0x2e74ca['locale'];_0x1122df['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4a76b8=>At(_0x18f968,'ELEMENT_TABLE_OF_CONTENTS',_0x4a76b8));}}class He extends _0x48a7fd{['afterInit'](){const _0x1fdb79=this['editor'];if(!_0x1fdb79['plugins']['has']('Title'))return;_0x1fdb79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x1fdb79['locale'],'ELEMENT_TITLE')),_0x1fdb79['model']['document']['registerPostFixer'](_0x52be26=>{let _0x2215b5=!0x1;const _0x4f346a=Array['from'](_0x1fdb79['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3005cd,data:_0xfea79f}of _0x4f346a){const {group:_0x1fa090}=_0x2cca50(_0x3005cd);if('suggestion'!==_0x1fa090||!_0xfea79f['newRange'])continue;const _0xb8e9ba=_0xfea79f['newRange'],_0x5ed38a=_0xb8e9ba['end']['nodeBefore'];if(!_0x5ed38a||!_0x5ed38a['is']('element','title-content'))continue;if(!_0xb8e9ba['start']['isTouching'](_0xb8e9ba['end']))continue;const _0x31841a=_0x1fdb79['model']['schema']['getNearestSelectionRange'](_0xb8e9ba['end'],'forward');if(_0x31841a&&_0x31841a['isCollapsed']){const _0x40ab17=_0x52be26['createRange'](_0xb8e9ba['start'],_0x31841a['start']);_0x40ab17['isEqual'](_0xb8e9ba)||(_0x52be26['updateMarker'](_0x3005cd,{'range':_0x40ab17}),_0x2215b5=!0x0);}_0x2215b5||(_0x52be26['removeMarker'](_0x3005cd),_0x2215b5=!0x0);}return _0x2215b5;});}}class $e extends _0x48a7fd{['afterInit'](){const _0x2d2ecb=this['editor'],_0x5981be=_0x2d2ecb['plugins']['get']('TrackChangesEditing');_0x2d2ecb['plugins']['has']('Uploadcare')&&(_0x5981be['enableCommand']('uploadcare'),_0x2d2ecb['plugins']['has']('UploadcareImageEdit')&&(_0x5981be['enableCommand']('uploadcareImageEdit'),_0x5981be['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5981be['descriptionFactory']['registerDescriptionCallback'](_0x14fe9=>{if('attribute'!=_0x14fe9['type'])return;const {data:_0x3a283a}=_0x14fe9;return _0x3a283a&&'uploadcareImageId'==_0x3a283a['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x48a7fd{['afterInit'](){const _0x37501f=this['editor'],_0x515b13=_0x37501f['plugins']['get']('TrackChangesEditing');_0x37501f['plugins']['has']('UndoEditing')&&(_0x515b13['enableCommand']('undo'),_0x515b13['enableCommand']('redo'));}}class Ve extends _0x48a7fd{static get['requires'](){return[Ne];}['afterInit'](){const _0x14b4f4=this['editor'];if(!_0x14b4f4['plugins']['has']('TableCaptionEditing'))return;_0x14b4f4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x48a7fd{['tableProperties'];['tableCellProperties'];constructor(_0x4dc181){super(_0x4dc181),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3ed74c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x39a92b of this['tableProperties'])_0x3ed74c['enableCommand'](_0x39a92b,(_0x17fd4f,_0x5363e3)=>{const _0x43caf2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x39a92b,[_0x43caf2],this['tableProperties'],'tableProperties',_0x17fd4f,_0x5363e3);});_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ed74c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x56dcd6,_0x2fcc81)=>this['handleDiscardAction'](this['tableProperties'],_0x56dcd6,_0x2fcc81)),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4e3b01 of this['tableCellProperties'])this['editor']['commands']['get'](_0x4e3b01)&&_0x3ed74c['enableCommand'](_0x4e3b01,(_0x380c6d,_0x1c8365)=>{const _0x5f5c96=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4e3b01,_0x5f5c96,this['tableCellProperties'],'tableCellProperties',_0x380c6d,_0x1c8365);});_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ed74c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xdd5d4f,_0x554efc)=>this['handleDiscardAction'](this['tableCellProperties'],_0xdd5d4f,_0x554efc)),_0x3ed74c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3ed74c['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3ed74c['descriptionFactory']['registerDescriptionCallback'](_0x327664=>this['handleSuggestionDescription'](_0x327664)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x616ac5,_0x1f82db,_0x140aff,_0x3b6711,_0x338b91,_0x5137e1){const _0x39cb62=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5137e1['batch'],()=>{for(const _0x5a5bd8 of _0x1f82db){if(this['_getSuggestion'](_0x5a5bd8,_0x3b6711))_0x338b91(_0x5137e1);else{const _0x3d9ea0={};for(const _0x2d4c95 of _0x140aff){const _0x599e71=_0x5a5bd8['getAttribute'](_0x2d4c95);void 0x0!==_0x599e71&&(_0x3d9ea0[_0x2d4c95]=_0x599e71);}_0x338b91(_0x5137e1),_0x39cb62['markBlockFormat'](_0x5a5bd8,{'commandParams':[_0x3d9ea0]},[],_0x3b6711);}}});}['handleDiscardAction'](_0x29262a,_0x233672,_0x20d1db){const _0x2716b4=_0x233672[0x0]['start']['nodeAfter'],_0x5b45db=_0x20d1db['commandParams'][0x0];this['editor']['model']['change'](_0x3f09ac=>{for(const _0x5bf227 of _0x29262a)void 0x0!==_0x5b45db[_0x5bf227]?_0x3f09ac['setAttribute'](_0x5bf227,_0x5b45db[_0x5bf227],_0x2716b4):_0x3f09ac['removeAttribute'](_0x5bf227,_0x2716b4);});}['handleSuggestionDescription'](_0x32573f){if(_0x32573f['data'])switch(_0x32573f['subType']){case'tableProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':At(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x32439a,_0x15269c){const _0x5f581e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x11f131 of _0x5f581e['getSuggestions']({'skipNotAttached':!0x0})){const _0x208ca0=_0x11f131['getContainedElement']();if(_0x11f131['subType']===_0x15269c&&_0x208ca0===_0x32439a)return _0x11f131;}return null;}['_registerTablePropertiesAttributes'](){const _0x948e35=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b3b82=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3e4cd6 of _0x5b3b82){const _0x1e955e=_0x3e4cd6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x948e35['descriptionFactory']['registerAttributeLabel'](_0x3e4cd6,At(this['editor']['locale'],'FORMAT_'+_0x1e955e));}}}class ze extends _0x48a7fd{['afterInit'](){const _0x52c7b0=this['editor'];if(!_0x52c7b0['plugins']['has']('LineHeight'))return;const _0x538291=_0x52c7b0['plugins']['get']('TrackChangesEditing'),_0xda041a=_0x52c7b0['locale'];_0x538291['enableDefaultAttributesIntegration']('lineHeight'),_0x538291['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0xda041a,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x48a7fd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x5e2282,_0x2cd1a4,_0x4031ac,_0x14f12c,_0x556581,Ct,yt,Nt,Rt,Mt,Ot,Bt,Dt,Ft,vt,Pt,Ut,jt,zt,Kt,Yt,qt,Qt,Jt,te,ee,ne,ie,re,se,oe,ae,ce,ue,fe,Te,le,Gt,ze,$t,ge,me,Ee,_e,pe,Le,Ie,be,Ae,Ce,ye,Ne,Se,Me,Oe,we,Ve,De,Pe,Ge,je,Ue,He,$e,We];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c0e0b){super(_0x3c0e0b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x24dbbb,_0xd14dc9,_0xb43a2c,_0x98c7c2)=>{this['_model']['change'](()=>{for(const _0x538dc0 of[..._0x98c7c2,..._0xb43a2c])this['_model']['markers']['has'](_0x538dc0)&&_0x3c0e0b['editing']['reconvertMarker'](_0x538dc0);});}),this['descriptionFactory']=new kt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ye(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3c0e0b['plugins']['get'](_0x5e2282),this['_suggestionsConversion']=_0x3c0e0b['plugins']['get'](_0x2cd1a4),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3c0e0b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3c0e0b['config']['get']('trackChanges.trackFormatChanges'),_0x3c0e0b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3c0e0b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x3c0e0b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x18e1c0=this['editor'];_0x18e1c0['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4dcf2b,{writer:_0x1bf5cc})=>{let _0x4b9c47='suggestion:'+_0x4dcf2b['getAttribute']('suggestion-type')+':'+_0x4dcf2b['getAttribute']('id');return _0x4dcf2b['getAttribute']('marker-count')&&(_0x4b9c47+=':'+_0x4dcf2b['getAttribute']('marker-count')),_0x1bf5cc['createElement']('$marker',{'data-name':_0x4b9c47});}}),_0x18e1c0['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x18e1c0['model']['document']['registerPostFixer'](_0x1c966f=>{let _0x26f8b4=!0x1;const _0x2bbdef=Array['from'](_0x18e1c0['model']['document']['differ']['getChangedMarkers']()),_0x1f0794=new Set();for(const {name:_0x4c04f5,data:_0x304309}of _0x2bbdef){const {group:_0x2776a4,type:_0x551542,subType:_0x723173,id:_0x1406ca}=_0x2cca50(_0x4c04f5);if('suggestion'!==_0x2776a4)continue;const _0xf15513=_0x723173?'suggestion:'+_0x551542+':'+_0x723173+':'+_0x1406ca:'suggestion:'+_0x551542+':'+_0x1406ca,_0x1eeb2d=_0x18e1c0['model']['markers']['getMarkersGroup'](_0xf15513),_0x38a5d8=_0x18e1c0['model']['markers']['get'](_0x4c04f5),_0x5d2fb7=this['_suggestions']['get'](_0x1406ca);if(null!=_0x304309['newRange']){'formatInline'==_0x551542&&(_0x26f8b4=_0x26f8b4||Ze(_0x304309['newRange'],_0x4c04f5,_0x1c966f,_0x18e1c0['model']['schema']));const _0x1ec473='attribute'==_0x551542&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x723173)),_0x4f082a='attribute'==_0x551542&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x723173));if(_0x304309['newRange']['isCollapsed']||'$graveyard'==_0x304309['newRange']['root']['rootName']||'formatBlock'==_0x551542&&!tn(_0x304309['newRange'])||_0x1ec473&&!tn(_0x304309['newRange'])||_0x4f082a&&en(_0x304309['newRange'])||'deletion'==_0x551542&&en(_0x304309['newRange'])||_0x38a5d8&&nn(_0x38a5d8,_0x1eeb2d))_0x1c966f['removeMarker'](_0x4c04f5),_0x26f8b4=!0x0;else{if(!_0x5d2fb7||!_0x5d2fb7['isInContent'])continue;if(_0x304309['newRange']&&_0x304309['oldRange']&&_0x304309['newRange']['isEqual'](_0x304309['oldRange']))continue;_0x1f0794['add'](_0x5d2fb7);}}}return _0x1f0794['size']>0x0&&(_0x26f8b4=!!this['_joinWithAdjacentSuggestions'](_0x1f0794)||_0x26f8b4),_0x26f8b4;}),_0x18e1c0['model']['document']['registerPostFixer'](_0x4f7e26=>{let _0x5bd82d=!0x1;for(const _0x2e1651 of _0x18e1c0['model']['document']['differ']['getChanges']())if('insert'==_0x2e1651['type'])for(const _0x588545 of this['_suggestions']['values']()){if(_0x588545['isMultiRange']||!_0x588545['isInContent'])continue;const _0x558298='formatBlock'==_0x588545['type'],_0x28bd6f=this['_getAttributeKey'](_0x588545),_0x3062c6=_0x28bd6f&&this['_suggestionsConversion']['isBlockAttribute'](_0x28bd6f);if(!_0x558298&&!_0x3062c6)continue;const _0x3143c5=_0x588545['getFirstRange']();if(_0x3143c5['start']['parent']!=_0x3143c5['end']['parent']&&!_0x3143c5['end']['isAtEnd']){const _0xb19df6=_0x18e1c0['model']['createPositionAt'](_0x3143c5['start']['nodeAfter'],'end'),_0x4b84c8=_0x18e1c0['model']['createRange'](_0x3143c5['start'],_0xb19df6);_0x4f7e26['updateMarker'](_0x588545['getFirstMarker'](),{'range':_0x4b84c8}),_0x5bd82d=!0x0;}}return _0x5bd82d;}),_0x18e1c0['model']['document']['registerPostFixer'](_0x44cf34=>this['_processAttributeChanges'](_0x44cf34)),_0x18e1c0['model']['document']['registerPostFixer'](_0x443809=>!_0x443809['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x443809)),_0x18e1c0['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x18e1c0['model']['document']['on']('change:data',(_0x1b6455,_0x2ab761)=>{if(!_0x2ab761['isLocal']||_0x2ab761['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x148638=_0x18e1c0['model']['document']['differ']['getChanges']();if(0x0==_0x148638['length'])return;const _0x578cbe=[],_0x29adc7=_0x148638['filter'](_0x140c1f=>'attribute'==_0x140c1f['type']),_0x1e8206=_0x148638['filter'](_0x57a6c9=>'insert'==_0x57a6c9['type']&&'$text'!=_0x57a6c9['name']);for(const _0xbb4757 of _0x29adc7)this['_suggestionsConversion']['isRegisteredAttribute'](_0xbb4757['attributeKey'])&&_0x578cbe['push']({'key':_0xbb4757['attributeKey'],'newValue':_0xbb4757['attributeNewValue'],'oldValue':_0xbb4757['attributeOldValue'],'range':sn(_0xbb4757['range'],_0x18e1c0['model'])});for(const _0x2c1280 of _0x1e8206){if('rename'!=_0x2c1280['action']&&'refresh'!=_0x2c1280['action'])continue;const _0x48ea8a=rn(_0x2c1280['position']['nodeAfter'],_0x18e1c0['model']),_0x93954c=_0x2c1280['before'];'rename'==_0x2c1280['action']&&_0x578cbe['push']({'key':Ke,'newValue':_0x2c1280['name'],'oldValue':_0x93954c['name'],'range':_0x48ea8a});for(const [_0x121dfc,_0x35a1ef]of _0x93954c['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x121dfc))continue;const _0xd43fc3=_0x2c1280['attributes']['get'](_0x121dfc);_0x35a1ef!==_0xd43fc3&&_0x578cbe['push']({'key':_0x121dfc,'newValue':_0xd43fc3,'oldValue':_0x35a1ef,'range':_0x48ea8a});}for(const [_0x43e5a9,_0x102d4c]of _0x2c1280['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x43e5a9)&&(_0x93954c['attributes']['has'](_0x43e5a9)||_0x578cbe['push']({'key':_0x43e5a9,'newValue':_0x102d4c,'oldValue':null,'range':_0x48ea8a}));}0x0!=_0x578cbe['length']&&_0x18e1c0['model']['enqueueChange'](_0x2ab761,_0x56a5c5=>{const _0x5c3f31=_0x2296a0();for(const {range:_0x459a7a,key:_0x1a9fbf,oldValue:_0x2b2363,newValue:_0x4ec2ea}of _0x578cbe)this['markAttributeChange'](_0x459a7a,_0x1a9fbf,_0x2b2363,_0x4ec2ea,{'groupId':_0x5c3f31});this['_reduceExistingSuggestions'](_0x56a5c5,_0x578cbe);});},{'priority':'lowest'}),_0x18e1c0['model']['markers']['on']('update:suggestion',(_0x47fcd9,_0x47ff8e,_0x292cb5)=>{if(null==_0x292cb5){const {id:_0x244c4e}=_0x2cca50(_0x47ff8e['name']),_0x388ced=this['_suggestions']['get'](_0x244c4e);_0x388ced&&_0x388ced['addMarkerName'](_0x47ff8e['name']);}}),_0x18e1c0['model']['document']['on']('change:data',()=>{const _0x51d2c6=Array['from'](_0x18e1c0['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2857c2=>'suggestion'===_0x2cca50(_0x2857c2['name'])['group']);if(0x0===_0x51d2c6['length'])return;_0x51d2c6['sort']((_0x4accc2,_0x3b984e)=>{const _0x5cc9d4=_0x4accc2['data']['oldRange'],_0x42f507=_0x3b984e['data']['oldRange'];return null===_0x5cc9d4&&null===_0x42f507?0x0:null===_0x5cc9d4&&null!==_0x42f507?-0x1:null!==_0x5cc9d4&&null===_0x42f507?0x1:_0x5cc9d4['start']['isBefore'](_0x42f507['start'])?-0x1:0x1;});const _0x55d5c1=new Set(),_0x3b8ac1=new Set();for(const {name:_0x3b8c44,data:_0x4a179a}of _0x51d2c6){const {id:_0x558bd5}=_0x2cca50(_0x3b8c44);if(null===_0x4a179a['oldRange']){const _0x2da788=this['_handleNewSuggestionMarker'](_0x3b8c44);_0x3b8ac1['add'](_0x2da788);}else{const _0x4e89=this['_suggestions']['get'](_0x558bd5);null!==_0x4a179a['newRange']||_0x4e89['isInContent']?(_0x55d5c1['add'](_0x4e89['head']),_0x3b8ac1['add'](_0x4e89)):this['_removeSuggestion'](_0x4e89);}}_0x3b8ac1['size']>0x0&&this['_refreshSuggestionsChain'](_0x3b8ac1);for(const _0x3e10e5 of _0x55d5c1)this['fire']('suggestionChanged',_0x3e10e5);}),_0x18e1c0['model']['on']('applyOperation',(_0x12d9d6,_0x45f66a)=>{const _0x1261bd=_0x45f66a[0x0];if(!this['_suggestions']['size'])return;if(!_0x1261bd['isDocumentOperation'])return;if(_0x1261bd['batch']['isUndo']||!_0x1261bd['batch']['isLocal'])return;let _0x59462e,_0x577cd5;switch(_0x1261bd['type']){case'insert':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['position']),_0x577cd5=_0x59462e['getShiftedBy'](_0x1261bd['howMany']);break;case'split':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['splitPosition']),_0x577cd5=_0x18e1c0['model']['createPositionAt'](_0x1261bd['moveTargetPosition']);break;case'move':_0x59462e=_0x18e1c0['model']['createPositionAt'](_0x1261bd['targetPosition']),_0x577cd5=_0x59462e['getShiftedBy'](_0x1261bd['howMany']);break;default:return;}const _0x31807e=_0x18e1c0['model']['createRange'](_0x59462e,_0x577cd5);_0x18e1c0['model']['change'](()=>{for(const {suggestion:_0xff22f7,meta:_0x1aca54}of this['_findSuggestions'](_0x31807e)){if(_0xff22f7['isMultiRange'])continue;if('formatInline'==_0xff22f7['type'])continue;const _0x19970b=this['_getAttributeKey'](_0xff22f7);if(_0x19970b&&this['_suggestionsConversion']['isBlockAttribute'](_0x19970b)&&'split'!=_0x1261bd['type'])continue;const _0x131d4b=_0xff22f7['data']&&_0xff22f7['data']['multipleBlocks'];('formatBlock'!=_0xff22f7['type']||'split'==_0x1261bd['type']&&!_0x131d4b)&&(_0x1aca54['containsRangeInObject']||'insertion'==_0xff22f7['type']&&_0x1aca54['isOwn']||_0xff22f7['getFirstRange']()['containsRange'](_0x31807e)&&this['_breakSuggestionMarker'](_0xff22f7,_0x59462e,_0x577cd5));}});},{'priority':'lowest'}),_0x18e1c0['model']['on']('deleteContent',(_0x51af29,_0x17bd90)=>{const _0x3782e5=_0x17bd90[0x0],_0x82e14b=_0x17bd90[0x1];if(_0x82e14b&&_0x82e14b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3782e5['isCollapsed'])return;const _0x45a82b=_0x18e1c0['model']['schema'],{start:_0x4e9a7c,end:_0x28303d}=_0x3782e5['getFirstRange'](),_0x9d82f1=_0x4e9a7c['nodeAfter']&&_0x45a82b['isLimit'](_0x4e9a7c['nodeAfter'])?null:_0x45a82b['getNearestSelectionRange'](_0x4e9a7c,'forward'),_0x20425f=_0x28303d['nodeBefore']&&_0x45a82b['isLimit'](_0x28303d['nodeBefore'])?null:_0x45a82b['getNearestSelectionRange'](_0x28303d,'backward'),_0x1fc553=_0x18e1c0['model']['createRange'](_0x9d82f1?_0x9d82f1['start']:_0x4e9a7c,_0x20425f?_0x20425f['end']:_0x28303d);_0x18e1c0['model']['change'](_0x414de2=>{this['markDeletion'](_0x1fc553);const _0x38ef5=_0x18e1c0['model']['schema']['getNearestSelectionRange'](_0x1fc553['start']);_0x3782e5['is']('documentSelection')?_0x414de2['setSelection'](_0x38ef5):_0x3782e5['setTo'](_0x38ef5);}),_0x51af29['stop']();},{'priority':_0x5c3de4['normal']+0xa}),_0x18e1c0['model']['on']('insertContent',(_0xcafea4,_0x5bdf1c)=>{const _0x30119c=_0x5bdf1c[_0x5bdf1c['length']-0x1];_0x30119c&&_0x30119c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x18e1c0['model']['change'](()=>{let _0x123e17=_0x18e1c0['model']['insertContent'](_0x5bdf1c[0x0],_0x5bdf1c[0x1],_0x5bdf1c[0x2],{'forceDefaultExecution':!0x0});if(!_0x123e17)return;_0xcafea4['return']=_0x123e17['clone']();const _0x2806d8=_0x123e17['end']['nodeBefore'],_0x41bfcd=_0x18e1c0['model']['schema'];_0x2806d8&&_0x41bfcd['isBlock'](_0x2806d8)&&!_0x41bfcd['isObject'](_0x2806d8)&&(_0x123e17=_0x18e1c0['model']['createRange'](_0x123e17['start'],_0x18e1c0['model']['createPositionAt'](_0x2806d8,'end'))),this['markInsertion'](_0x123e17);}),_0xcafea4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x227e66=new dt(_0x18e1c0,this['_suggestions']);_0x18e1c0['commands']['add']('acceptSuggestion',_0x227e66),this['enableCommand']('acceptSuggestion');const _0x4645be=new ft(_0x18e1c0,this['_suggestions']);_0x18e1c0['commands']['add']('discardSuggestion',_0x4645be),this['enableCommand']('discardSuggestion'),_0x18e1c0['commands']['add']('acceptAllSuggestions',new Lt(_0x18e1c0,_0x227e66,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x18e1c0['commands']['add']('discardAllSuggestions',new Lt(_0x18e1c0,_0x4645be,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x18e1c0['commands']['add']('acceptSelectedSuggestions',new It(_0x18e1c0,_0x227e66,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x18e1c0['commands']['add']('discardSelectedSuggestions',new It(_0x18e1c0,_0x4645be,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x411129=_0x18e1c0['plugins']['get'](_0x5e2282);this['listenTo'](_0x411129,'addComment',(_0x3c5cd6,{threadId:_0x65aa29})=>{const _0x5b4446=this['_suggestions']['get'](_0x65aa29);_0x5b4446&&_0x5b4446['commentThread']&&0x1===_0x5b4446['commentThread']['length']&&this['_updateSuggestionData'](_0x65aa29,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x411129,'removeComment',(_0x4379ea,{threadId:_0xd39310})=>{const _0x556934=this['_suggestions']['get'](_0xd39310);_0x556934&&_0x556934['commentThread']&&!_0x556934['commentThread']['length']&&this['_updateSuggestionData'](_0xd39310,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4bdac0){const _0x16bbdf=_0x14d0d3([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x46706e=0x3d8d0df,_0x533c96=0x3df592f^_0x46706e,_0x45d1e7=window[_0x14d0d3([0x44,0x61,0x74,0x65])][_0x14d0d3([0x6e,0x6f,0x77])](),_0x4e1952=_0x4bdac0[_0x14d0d3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36cc63=new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234b04=>{_0x4e1952[_0x14d0d3([0x6f,0x6e,0x63,0x65])](_0x14d0d3([0x72,0x65,0x61,0x64,0x79]),_0x234b04);}),_0x43c1b3={[_0x14d0d3([0x6b,0x74,0x79])]:_0x14d0d3([0x45,0x43]),[_0x14d0d3([0x75,0x73,0x65])]:_0x14d0d3([0x73,0x69,0x67]),[_0x14d0d3([0x63,0x72,0x76])]:_0x14d0d3([0x50,0x2d,0x32,0x35,0x36]),[_0x14d0d3([0x78])]:_0x14d0d3([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x14d0d3([0x79])]:_0x14d0d3([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x14d0d3([0x61,0x6c,0x67])]:_0x14d0d3([0x45,0x53,0x32,0x35,0x36])},_0xf0c33f=_0x4e1952[_0x14d0d3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14d0d3([0x67,0x65,0x74])](_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36145a(){let _0x4c3030,_0x1617fb=null,_0x4c9b02=null;try{if(_0xf0c33f==_0x14d0d3([0x47,0x50,0x4c]))return _0x14d0d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3030=_0x5b7355(),!_0x4c3030)return _0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3030[_0x14d0d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c9b02=_0x3e2b21(_0x4c3030[_0x14d0d3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3030[_0x14d0d3([0x6a,0x74,0x69])])),await _0x2a5eef()?_0x39191c()?_0x425c6b()?_0x14d0d3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x40743e()?(_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14d0d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1617fb=_0x212083(_0x14d0d3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x45a07a()):_0x14d0d3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14d0d3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14d0d3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x425c6b(){const _0x1ef0fa=[_0x14d0d3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14d0d3([0x74,0x72,0x69,0x61,0x6c])][_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45d1e7/0x3e8:0xe10*_0x533c96;return _0x4c3030[_0x14d0d3([0x65,0x78,0x70])]<_0x1ef0fa;}function _0x39191c(){const _0x1c98d5=_0x4c3030[_0x14d0d3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c98d5)return!0x1;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x2a])))return!0x0;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x54,0x43])))return!0x0;if(_0x1c98d5[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x52,0x54,0x43]))){if(_0x55fd3e())return!0x0;if(_0x584764()||_0x1b387b())return!0x0;}return!0x1;}function _0x40743e(){const _0x5c0d2f=_0x4c3030[_0x14d0d3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c0d2f||0x0==_0x5c0d2f[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49cad3}=new URL(window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c0d2f[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49cad3))return!0x0;const _0x3a820e=_0x49cad3[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e]));return _0x5c0d2f[_0x14d0d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1937d0=>_0x1937d0[_0x14d0d3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14d0d3([0x2a])))[_0x14d0d3([0x6d,0x61,0x70])](_0x2cd47d=>_0x2cd47d[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e])))[_0x14d0d3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4615ff=>_0x4615ff[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3a820e[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d0d3([0x6d,0x61,0x70])](_0x5dd8b5=>Array(_0x3a820e[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5dd8b5[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14d0d3([0x66,0x69,0x6c,0x6c])](_0x5dd8b5[0x0]===_0x14d0d3([0x2a])?_0x14d0d3([0x2a]):'')[_0x14d0d3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5dd8b5))[_0x14d0d3([0x73,0x6f,0x6d,0x65])](_0x5ad982=>_0x3a820e[_0x14d0d3([0x65,0x76,0x65,0x72,0x79])]((_0x196431,_0x4ebd65)=>_0x5ad982[_0x4ebd65]===_0x196431||_0x5ad982[_0x4ebd65]===_0x14d0d3([0x2a])));}function _0x45a07a(){return _0x1617fb&&_0x4c9b02?new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x320317,_0x44e915)=>{_0x1617fb[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x320317,_0x44e915),_0x4c9b02[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x5a3854=>{_0x5a3854!=_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])&&_0x320317(_0x5a3854);},_0x44e915);}):_0x1617fb||_0x4c9b02||_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e2b21(_0x264c86,_0x434df5){return new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cd111=>{if(_0x3fa76b())return _0x3cd111(_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]));_0x48920d(),_0x4e1952[_0x14d0d3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x153065=!0x1;const _0x18510f=_0x2296a0();function _0x2eb271(_0x4db488){return!!_0x4db488&&(typeof _0x4db488===_0x14d0d3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4db488===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4db488[_0x14d0d3([0x74,0x68,0x65,0x6e])]===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4db488[_0x14d0d3([0x63,0x61,0x74,0x63,0x68])]===_0x14d0d3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2fadcd(_0x3e8cc7){_0x899ac1(_0x3e8cc7)[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x59d623=>{if(!_0x59d623||_0x59d623[_0x14d0d3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14d0d3([0x6f,0x6b]))return _0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3046f2(_0x1ce12e(_0x18510f+_0x434df5))!=_0x59d623[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14d0d3([0x56,0x61,0x6c,0x69,0x64]);})[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x4d71aa=>(_0x3614ca(),_0x4d71aa),()=>{const _0x27dc2e=_0x5b1b2b();return null==_0x27dc2e?(_0x3614ca(),_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])):_0x14d0d3(_0x45d1e7-_0x27dc2e>(0x27d454df^_0x46706e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x3cd111)[_0x14d0d3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xcb5283=0x3ee3e5f^_0x46706e;function _0x3614ca(){const _0x182431=_0x14d0d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3046f2(_0x1ce12e(_0x264c86)),_0x2d2a1b=_0x254532(_0x3046f2(window[_0x14d0d3([0x4d,0x61,0x74,0x68])][_0x14d0d3([0x63,0x65,0x69,0x6c])](_0x45d1e7/_0xcb5283)));window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d0d3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x182431,_0x2d2a1b);}function _0x5b1b2b(){const _0x53022a=_0x14d0d3([0x6c,0x6c,0x63,0x74,0x2d])+_0x3046f2(_0x1ce12e(_0x264c86)),_0x264b54=window[_0x14d0d3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14d0d3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53022a);return _0x264b54?window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x254532(_0x264b54),0x10)*_0xcb5283:null;}function _0x899ac1(_0x469bf2){return new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x125b37,_0x4ca2c6)=>{_0x469bf2[_0x14d0d3([0x74,0x68,0x65,0x6e])](_0x125b37,_0x4ca2c6),window[_0x14d0d3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ca2c6,0x3d9041f^_0x46706e);});}}_0x4e1952[_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4e94ab,_0xba8b8)=>{if(_0xba8b8[0x0]!=_0x264c86)return _0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xba8b8[0x1]={..._0xba8b8[0x1],[_0x14d0d3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18510f};},{[_0x14d0d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d0d3([0x68,0x69,0x67,0x68])}),_0x4e1952[_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49c91c=>{_0x2eb271(_0x49c91c[_0x14d0d3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x153065=!0x0,_0x2fadcd(_0x49c91c[_0x14d0d3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14d0d3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14d0d3([0x6c,0x6f,0x77])}),_0x36cc63[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>{_0x153065||_0x3cd111(_0x14d0d3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fa76b(){return _0x4e1952[_0x14d0d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d0d3([0x76,0x69,0x65,0x77])][_0x14d0d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14d0d3([0x61,0x75,0x74,0x6f]);}function _0x48920d(){_0x4e1952[_0x14d0d3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14d0d3([0x76,0x69,0x65,0x77])][_0x14d0d3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14d0d3([0x61,0x75,0x74,0x6f]);}}function _0x212083(_0x30aff2){const _0x4516d9=[new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e391a=>setTimeout(_0x2e391a,0x3d1ee13^_0x46706e)),_0x36cc63[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43e48a=>{let _0x44827c=0x0;_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x6f,0x6e])](_0x14d0d3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa7ccb3,_0x5ab3bf)=>{_0x5ab3bf[0x0][_0x14d0d3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44827c++,_0x44827c==(0x3d8d537^_0x46706e)&&(_0x43e48a(),_0xa7ccb3[_0x14d0d3([0x6f,0x66,0x66])]());});}))];return window[_0x14d0d3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14d0d3([0x72,0x61,0x63,0x65])](_0x4516d9)[_0x14d0d3([0x74,0x68,0x65,0x6e])](()=>_0x30aff2);}async function _0x16c9e5(){await _0x36cc63,_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5f40e4,_0x4e1952[_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c])][_0x14d0d3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5f40e4,_0x4e1952[_0x14d0d3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14d0d3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55fd3e(){return _0x8f9123(_0x14d0d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xa5da5a(_0x14d0d3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x14d0d3([0x73,0x74,0x61,0x74,0x65])]==_0x14d0d3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x584764(){return _0x8f9123(_0x14d0d3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1b387b(){return _0x8f9123(_0x14d0d3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3965c5(_0x37df6b){const _0x563503=_0x27091d();_0x4e1952[_0x563503]=_0x14d0d3([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x37df6b,_0x37df6b!=_0x14d0d3([0x56,0x61,0x6c,0x69,0x64])&&_0x16c9e5();}function _0x27091d(){const _0x4ed7c9=window[_0x14d0d3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14d0d3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14d0d3([0x6e,0x6f,0x77])]())[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14d0d3([0x2e]),'');let _0x283945=_0x14d0d3([0x52]);for(let _0x580627=0x0;_0x580627<_0x4ed7c9[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x580627+=0x2){let _0x59fed8=window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ed7c9[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x580627,_0x580627+0x2));_0x59fed8>=_0x16bbdf[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x59fed8-=_0x16bbdf[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x283945+=_0x16bbdf[_0x59fed8];}return _0x283945;}function _0x5b7355(){const _0x508e33=_0xf0c33f[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e]));if(0x3!=_0x508e33[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xf73a6(_0x508e33[0x1]);function _0xf73a6(_0x17f392){const _0x3567fe=_0x363728(_0x17f392);return _0x3567fe&&_0x46bf74()?_0x3567fe:null;function _0x46bf74(){const _0x381735=_0x3567fe[_0x14d0d3([0x6a,0x74,0x69])],_0x45d8db=window[_0x14d0d3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x381735[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x381735[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1eaa5a={..._0x3567fe,[_0x14d0d3([0x6a,0x74,0x69])]:_0x381735[_0x14d0d3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x381735[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1eaa5a[_0x14d0d3([0x76,0x63])],_0x1ce12e(_0x1eaa5a)==_0x45d8db;}}}async function _0x2a5eef(){let _0x2288a4=!0x0;try{const _0x49847f=_0xf0c33f[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])](_0x14d0d3([0x2e])),[_0x518b55,_0x5e88d1,_0x1ef2c3]=_0x49847f;return _0x6b4d47(_0x518b55),await _0x459699(_0x518b55,_0x5e88d1,_0x1ef2c3),_0x2288a4;}catch{return!0x1;}function _0x6b4d47(_0x3e7601){const _0x42f41d=_0x363728(_0x3e7601);_0x42f41d&&_0x42f41d[_0x14d0d3([0x61,0x6c,0x67])]==_0x14d0d3([0x45,0x53,0x32,0x35,0x36])||(_0x2288a4=!0x1);}async function _0x459699(_0x16b4de,_0x20114e,_0x1969aa){const _0x367a70=window[_0x14d0d3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14d0d3([0x66,0x72,0x6f,0x6d])](_0xc9f816(_0x1969aa),_0xdcb2ca=>_0xdcb2ca[_0x14d0d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a4755=new window[(_0x14d0d3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14d0d3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x16b4de+_0x14d0d3([0x2e])+_0x20114e),_0x4b452e=window[_0x14d0d3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14d0d3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b452e)return;const _0x2340dd=await _0x4b452e[_0x14d0d3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14d0d3([0x6a,0x77,0x6b]),_0x43c1b3,{[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x45,0x43,0x44,0x53,0x41]),[_0x14d0d3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14d0d3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b452e[_0x14d0d3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x45,0x43,0x44,0x53,0x41]),[_0x14d0d3([0x68,0x61,0x73,0x68])]:{[_0x14d0d3([0x6e,0x61,0x6d,0x65])]:_0x14d0d3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2340dd,_0x367a70,_0x5a4755)||(_0x2288a4=!0x1);}}function _0x363728(_0x48f4ca){return _0x48f4ca[_0x14d0d3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14d0d3([0x65,0x79]))?JSON[_0x14d0d3([0x70,0x61,0x72,0x73,0x65])](_0xc9f816(_0x48f4ca)):null;}function _0xc9f816(_0x370943){return window[_0x14d0d3([0x61,0x74,0x6f,0x62])](_0x370943[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14d0d3([0x2b]))[_0x14d0d3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14d0d3([0x2f])));}function _0x1ce12e(_0x554db2){let _0x195a97=0x1505;function _0x2631d0(_0x16a946){for(let _0x543e73=0x0;_0x543e73<_0x16a946[_0x14d0d3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x543e73++){const _0x566bdd=_0x16a946[_0x14d0d3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x543e73);_0x195a97=(_0x195a97<<0x5)+_0x195a97+_0x566bdd,_0x195a97&=_0x195a97;}}function _0x43b458(_0x4d1c25){Array[_0x14d0d3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d1c25)?_0x4d1c25[_0x14d0d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x43b458):_0x4d1c25&&typeof _0x4d1c25==_0x14d0d3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14d0d3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d1c25)[_0x14d0d3([0x73,0x6f,0x72,0x74])]()[_0x14d0d3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x594089,_0x3f4356])=>{_0x2631d0(_0x594089),_0x43b458(_0x3f4356);}):_0x2631d0(window[_0x14d0d3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d1c25));}return _0x43b458(_0x554db2),_0x195a97>>>0x0;}function _0x3046f2(_0x1db2da){return _0x1db2da[_0x14d0d3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14d0d3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14d0d3([0x30]));}function _0x254532(_0x355981){return _0x355981[_0x14d0d3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14d0d3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14d0d3([0x6a,0x6f,0x69,0x6e])]('');}function _0x8f9123(_0x426884){return _0x4e1952[_0x14d0d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14d0d3([0x68,0x61,0x73])](_0x426884);}function _0xa5da5a(_0x339f92){return _0x4e1952[_0x14d0d3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x14d0d3([0x67,0x65,0x74])](_0x339f92);}function _0x5f40e4(){}function _0x14d0d3(_0xa3792d){return _0xa3792d['map'](_0x2e3b90=>String['fromCharCode'](_0x2e3b90))['join']('');}_0x3965c5(await _0x36145a());}(this);}set['adapter'](_0x41ef80){if(this['_adapter'])throw new _0x2f698f('track-changes-adapter-already-set',this);this['_adapter']=_0x41ef80;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x264e32=!0x1,toJSON:_0x3d0fee=!0x1}={}){const _0x620dee=[];for(const _0x3d107a of this['_suggestions']['values']())_0x264e32&&!_0x3d107a['isInContent']||_0x620dee['push'](_0x3d107a);return _0x3d0fee?_0x620dee['map'](_0x139345=>_0x139345['toJSON']()):_0x620dee;}['getSuggestion'](_0x20fec5){const _0x4200ea=this['_suggestions']['get'](_0x20fec5);if(!_0x4200ea)throw new _0x2f698f('track-changes-suggestion-not-found',this);return _0x4200ea;}['hasSuggestion'](_0x3604ef){return this['_suggestions']['has'](_0x3604ef);}['addSuggestionData'](_0x3aa8e8){const {authorId:_0x3d8922,id:_0xace08f,originalSuggestionId:_0x45a35f,attributes:_0x4f2f79}=_0x3aa8e8,[_0x40174e,_0x1c0e78]=_0x3aa8e8['type']['split'](':'),_0x103b44=this['_suggestions']['get'](_0xace08f)||this['_createSuggestion'](_0x40174e,_0x1c0e78,_0xace08f,_0x3d8922,_0x4f2f79,_0x45a35f);if(this['_addThreadToSuggestion'](_0x103b44),this['_checkSuggestionCorrectness'](_0x103b44,_0x40174e,_0x1c0e78||null,_0x3d8922),_0x103b44['createdAt']=_0x3aa8e8['createdAt'],_0x103b44['_isDataLoaded']=!0x0,_0x4f2f79&&_0x4f2f79['@external']){const _0xc1502b=_0x4f2f79['@external'],_0x8accd=this['_getExternalAuthor'](_0xc1502b['authorName']);_0x103b44['authoredAt']=_0xc1502b['createdAt'],_0x103b44['author']=_0x8accd,_0x103b44['isExternal']=!0x0;}else _0x103b44['authoredAt']=_0x3aa8e8['createdAt'];switch(_0x3aa8e8['data']&&(_0x103b44['data']=_0x3aa8e8['data']),_0x3aa8e8['attributes']&&(_0x103b44['attributes']=_0x3aa8e8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x103b44['_saved']=!0x0),this['_suggestionState']['get'](_0x103b44)){case'notReady':this['_suggestionState']['set'](_0x103b44,'dataReady');break;case'markerReady':_0x103b44['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x103b44])),this['_refreshSuggestionsChain'](new Set([_0x103b44])),this['_suggestionState']['set'](_0x103b44,'ready'),this['fire']('suggestionLoaded',_0x103b44)):this['_suggestionState']['set'](_0x103b44,'removed');}return _0x103b44;}['acceptSuggestion'](_0xcc3254){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d68e6 of _0xcc3254['getAllAdjacentSuggestions']())_0x1d68e6['accept']();});});}['discardSuggestion'](_0x3f3235){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x308c2d of _0x3f3235['getAllAdjacentSuggestions']())_0x308c2d['discard']();});});}['enableCommand'](_0x421bfc,_0x3fd059){const _0x53249f=this['editor']['commands']['get'](_0x421bfc);if(!_0x53249f)throw new _0x2f698f('track-changes-command-not-found',this,{'commandName':_0x421bfc});if(this['_enabledCommands']['has'](_0x53249f))throw new _0x2f698f('track-changes-enable-command-twice',this,{'commandName':_0x421bfc});this['_enabledCommands']['add'](_0x53249f),_0x3fd059&&_0x53249f['on']('execute',(_0x39fd43,_0x588e0b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x588e0b['length']>0x0&&_0x588e0b[_0x588e0b['length']-0x1]&&_0x588e0b[_0x588e0b['length']-0x1]['forceDefaultExecution']?_0x588e0b['pop']():(_0x39fd43['return']=_0x3fd059((..._0x472ae6)=>_0x53249f['execute'](..._0x472ae6,{'forceDefaultExecution':!0x0}),..._0x588e0b),_0x39fd43['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5348a4){let _0x2ce589,_0x3cc858;const _0x4968b5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2ce589=_0x5348a4();}catch(_0x2fb118){_0x3cc858=_0x2fb118;}return _0x4968b5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3cc858&&_0x2f698f['rethrowUnexpectedError'](_0x3cc858,this),_0x2ce589;}['markInsertion'](_0x47b949,_0x285726=null,_0x306b23={}){if(_0x47b949['isCollapsed'])return null;const _0x15086d=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x306b23['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3484e7,meta:_0x5b7539}of this['_findSuggestions'](_0x47b949,'insertion'))if(_0x5b7539['isOwn']){if(!_0x5b7539['isNextTo']){if(_0x5b7539['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x3484e7,_0x306b23))continue;return _0x3484e7;}if(cn(_0x3484e7,_0x306b23))return _0x3484e7;this['_breakSuggestionMarker'](_0x3484e7,_0x47b949['start'],_0x47b949['end']);break;}if(_0x285726==_0x3484e7['subType']&&cn(_0x3484e7,_0x306b23)){const _0x3aa173=_0x3484e7['getFirstRange']();return _0x3aa173['start']['isEqual'](_0x47b949['end'])?this['_setSuggestionRange'](_0x3484e7,this['_model']['createRange'](_0x47b949['start'],_0x3aa173['end'])):this['_setSuggestionRange'](_0x3484e7,this['_model']['createRange'](_0x3aa173['start'],_0x47b949['end'])),_0x3484e7;}}const _0x47b098=_0x2296a0(),_0x587dbc=_0x15086d['id'],_0x30106a=_0x285726?'insertion:'+_0x285726:'insertion',_0x5d6f8d=this['_setSuggestionData']({'id':_0x47b098,'type':_0x30106a,'createdAt':new Date(),'authorId':_0x587dbc,'attributes':_0x306b23});return this['_addSuggestionMarker'](_0x30106a,_0x47b098,_0x587dbc,_0x47b949),_0x5d6f8d;}['markMultiRangeInsertion'](_0x5a184d,_0xefa7cc='multi',_0x548831={}){const _0x207264=this['editor']['plugins']['get']('Users')['me'],_0x7244b1=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xefa7cc,'join');this['_trackingSessionId']&&(_0x548831['trackingSessionId']=this['_trackingSessionId']);for(const _0x3dddcb of this['getSuggestions']())if(_0x3dddcb['author']['id']==_0x207264['id']&&'insertion'==_0x3dddcb['type']&&_0x3dddcb['subType']==_0xefa7cc&&cn(_0x3dddcb,_0x548831)&&(_0x7244b1(_0x3dddcb['getRanges'](),_0x5a184d)||_0x7244b1(_0x5a184d,_0x3dddcb['getRanges']()))){for(const _0x39fb67 of _0x5a184d)_0x3dddcb['addRange'](_0x39fb67);return _0x3dddcb;}for(const {suggestion:_0x1fb1b8,meta:_0x48ca21}of this['_findSuggestions'](_0x5a184d,'insertion')){if(!_0x48ca21['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x48ca21['containsRangeInObject'])continue;if(!cn(_0x1fb1b8,_0x548831))continue;let _0x1f4ffb=!0x0;for(const _0x1f5d02 of _0x1fb1b8['getRanges']())for(const _0x373d6b of _0x5a184d)if(!_0x1f5d02['containsRange'](_0x373d6b)){_0x1f4ffb=!0x1;break;}if(_0x1f4ffb)return _0x1fb1b8;}const _0x2422a3=_0x2296a0(),_0x5870b9=_0x207264['id'],_0x933ade='insertion:'+_0xefa7cc,_0x3c3993=this['_setSuggestionData']({'id':_0x2422a3,'type':_0x933ade,'createdAt':new Date(),'authorId':_0x5870b9,'attributes':_0x548831});for(const _0x5de2c9 of _0x5a184d)this['_addSuggestionMarker'](_0x933ade,_0x2422a3,_0x5870b9,_0x5de2c9,bt['getMultiRangeId']());return _0x3c3993;}['markInlineFormat'](_0x1c56f2,_0x412709,_0x106384=null,_0x4d8137={}){if(_0x106384=_0x106384||Je(_0x412709),_0x1c56f2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4d8137['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1405a9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x106384,'accept');return this['forceDefaultExecution'](()=>_0x1405a9([_0x1c56f2],_0x412709,_0x4d8137)),null;}const _0x4c7f42=this['editor']['plugins']['get']('Users')['me'],_0x442ab7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x559b4f,meta:_0x133048}of this['_findSuggestions'](_0x1c56f2,'insertion'))_0x133048['isOwn']&&!_0x133048['isInsideObject']&&_0x442ab7['push'](..._0x559b4f['getRanges']());}const _0x6dce77=function(_0x5d67a1,_0x177fd4){const _0x4fc8ab=[];for(const _0xbdca28 of _0x177fd4){const _0xc7be7d=_0x5d67a1['getIntersection'](_0xbdca28);_0xc7be7d&&_0x4fc8ab['push'](_0xc7be7d);}return _0x4fc8ab;}(_0x1c56f2,_0x442ab7),_0x2da13e=function(_0x335df4,_0x1e3d95){const _0xc89ac2=[_0x335df4];for(const _0x41d8c9 of _0x1e3d95){let _0x2c77c4=0x0;for(;_0x2c77c4<_0xc89ac2['length'];){const _0x346353=_0xc89ac2[_0x2c77c4]['getDifference'](_0x41d8c9);_0xc89ac2['splice'](_0x2c77c4,0x1,..._0x346353),_0x2c77c4+=_0x346353['length'];}}return _0xc89ac2;}(_0x1c56f2,_0x442ab7);_0x6dce77['length']&&this['_model']['change'](()=>{for(const _0x28d4c5 of _0x6dce77){const _0x412595=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x106384,'accept');this['forceDefaultExecution'](()=>_0x412595([_0x28d4c5],_0x412709,_0x4d8137));}});for(const _0x3c9ec1 of _0x2da13e){let _0x458ebc=null,_0x26189=_0x3c9ec1['start'],_0x1e9ffe=_0x3c9ec1['end'];for(const {suggestion:_0x3820a5,meta:_0x28cd8e}of this['_findSuggestions'](_0x3c9ec1,'formatInline')){if(!_0x28cd8e['isOwn'])continue;if(_0x3820a5['subType']!=_0x106384)continue;if(!cn(_0x3820a5,_0x4d8137))continue;const _0x4841a8=_0x3820a5['getFirstRange']();if(_0x4841a8['containsRange'](_0x3c9ec1,!0x0))return null;_0x26189=_0x26189['isBefore'](_0x4841a8['start'])?_0x26189:_0x4841a8['start'],_0x1e9ffe=_0x1e9ffe['isAfter'](_0x4841a8['end'])?_0x1e9ffe:_0x4841a8['end'],_0x458ebc?_0x4841a8['start']['isBefore'](_0x458ebc['getFirstRange']()['start'])?(_0x458ebc['removeMarkers'](),_0x458ebc=_0x3820a5):_0x3820a5['removeMarkers']():_0x458ebc=_0x3820a5;}const _0x169bf3=this['_model']['createRange'](_0x26189,_0x1e9ffe);if(_0x458ebc)this['_setSuggestionRange'](_0x458ebc,_0x169bf3);else{const _0x154afd=_0x2296a0(),_0x524923=_0x4c7f42['id'];this['_setSuggestionData']({'id':_0x154afd,'type':'formatInline:'+_0x106384,'data':_0x412709,'createdAt':new Date(),'authorId':_0x524923,'attributes':_0x4d8137}),this['_addSuggestionMarker']('formatInline:'+_0x106384,_0x154afd,_0x524923,_0x169bf3);}}return null;}['markBlockFormat'](_0x41c5d1,_0x5bf78c,_0x3870ba=[],_0x47fc94=null,_0x3aa4f5={}){_0x5bf78c['formatGroupId']||(_0x5bf78c['formatGroupId']=_0x5bf78c['commandName']),_0x5bf78c['multipleBlocks']=_0x41c5d1['is']('range'),_0x47fc94=_0x47fc94||Je(_0x5bf78c);const _0x21585b=_0x3870ba['map'](_0x2e31a3=>rn(_0x2e31a3,this['_model'])),_0x23a178=_0x41c5d1['is']('range')?_0x41c5d1:rn(_0x41c5d1,this['_model']);if(this['_trackingSessionId']&&(_0x3aa4f5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x40a7b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fc94,'accept');return this['forceDefaultExecution'](()=>_0x40a7b4([_0x23a178],_0x5bf78c,_0x3aa4f5)),null;}_0x21585b['push'](_0x23a178);let _0x4b0ae0=!0x0;for(const _0x240403 of _0x21585b)if(!this['_rangeIsInLocalUserInsertion'](_0x240403)){_0x4b0ae0=!0x1;break;}if(_0x4b0ae0&&'always'!==this['_trackFormatChanges']){const _0x57b92a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x47fc94,'accept');return this['forceDefaultExecution'](()=>_0x57b92a([_0x23a178],_0x5bf78c,_0x3aa4f5)),null;}let _0x15c290=null,_0x48bfdb=_0x23a178['start'],_0x12a999=_0x23a178['end'];for(const {suggestion:_0xe58f03,meta:_0x381b14}of this['_findSuggestions'](_0x23a178,'formatBlock')){if(!_0x381b14['isOwn'])continue;if(_0x381b14['isNextTo']||_0x381b14['containsRangeInObject']||_0x381b14['isInsideObject'])continue;if(_0xe58f03['data']['formatGroupId']!=_0x5bf78c['formatGroupId'])continue;if(!cn(_0xe58f03,_0x3aa4f5))continue;const _0xb13302=_0xe58f03['getFirstRange']();if(_0xe58f03['subType']==_0x47fc94){if(_0xb13302['containsRange'](_0x23a178,!0x0))return null;_0x48bfdb=_0x48bfdb['isBefore'](_0xb13302['start'])?_0x48bfdb:_0xb13302['start'],_0x12a999=_0x12a999['isAfter'](_0xb13302['end'])?_0x12a999:_0xb13302['end'],_0x15c290?_0xb13302['start']['isBefore'](_0x15c290['getFirstRange']()['start'])?(_0x15c290['removeMarkers'](),_0x15c290=_0xe58f03):_0xe58f03['removeMarkers']():_0x15c290=_0xe58f03;}else{const _0x324c11=_0x23a178['getIntersection'](_0xb13302);this['_cutOutSuggestionMarker'](_0xe58f03,_0x324c11);}}const _0x279677=this['editor']['plugins']['get']('Users')['me'],_0x5667ff=_0x2296a0(),_0x48948c=_0x279677['id'];if(_0x15c290)return this['_setSuggestionRange'](_0x15c290,this['_model']['createRange'](_0x48bfdb,_0x12a999)),_0x15c290;{const _0x3a375c=this['_setSuggestionData']({'id':_0x5667ff,'type':'formatBlock:'+_0x47fc94,'data':_0x5bf78c,'createdAt':new Date(),'authorId':_0x48948c,'attributes':_0x3aa4f5});return this['_addSuggestionMarker']('formatBlock:'+_0x47fc94,_0x5667ff,_0x48948c,this['_model']['createRange'](_0x48bfdb,_0x12a999)),_0x3a375c;}}['markMultiRangeBlockFormat'](_0x1315dd,_0x25cbb4,_0xf99352=[],_0x58b705=null,_0x2f7171={}){_0x25cbb4['formatGroupId']||(_0x25cbb4['formatGroupId']=_0x25cbb4['commandName']);const _0x3e1eba=_0x1315dd[0x0];_0x25cbb4['multipleBlocks']=_0x3e1eba['is']('range'),_0x58b705=_0x58b705||Je(_0x25cbb4);const _0x5d8a08=_0xf99352['map'](_0x2e975c=>rn(_0x2e975c,this['_model'])),_0x1c257f=_0x3e1eba['is']('range')?_0x1315dd:_0x1315dd['map'](_0x372a81=>rn(_0x372a81,this['_model']));if(this['_trackingSessionId']&&(_0x2f7171['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1cc141=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'accept');return this['forceDefaultExecution'](()=>_0x1cc141(_0x1c257f,_0x25cbb4,_0x2f7171)),null;}_0x5d8a08['push'](..._0x1c257f);let _0x3a3993=!0x0;for(const _0x37b47d of _0x5d8a08)if(!this['_rangeIsInLocalUserInsertion'](_0x37b47d)){_0x3a3993=!0x1;break;}if(_0x3a3993&&'always'!==this['_trackFormatChanges']){const _0x4123ad=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'accept');return this['forceDefaultExecution'](()=>_0x4123ad(_0x1c257f,_0x25cbb4,_0x2f7171)),null;}const _0x15de0b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b5692 of this['getSuggestions']()){const _0x24d5c4=_0x5b5692['data'];if(_0x5b5692['author']['id']!=_0x15de0b['id'])continue;if('formatBlock'!=_0x5b5692['type']||_0x24d5c4['formatGroupId']!=_0x25cbb4['formatGroupId'])continue;if(!cn(_0x5b5692,_0x2f7171))continue;const _0x4ce7eb=_0x5b5692['subType']==_0x58b705;for(let _0x2c56e9=0x0;_0x2c56e9<_0x1c257f['length'];_0x2c56e9++){const _0xd1b7c0=_0x1c257f[_0x2c56e9];for(const _0x22e58e of _0x5b5692['getMarkers']()){const _0xcfb55d=_0x22e58e['getRange']();if(_0xd1b7c0['isEqual'](_0xcfb55d)){_0x4ce7eb?(_0x1c257f['splice'](_0x2c56e9,0x1),_0x2c56e9--):_0x5b5692['removeMarker'](_0x22e58e['name']);break;}}}}if(0x0==_0x1c257f['length'])return null;const _0x1e2709=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x58b705,'join');for(const _0x3a5beb of this['getSuggestions']()){const _0x589604=_0x3a5beb['data'];if(_0x3a5beb['author']['id']==_0x15de0b['id']&&('formatBlock'==_0x3a5beb['type']&&_0x589604['formatGroupId']==_0x25cbb4['formatGroupId']&&_0x3a5beb['subType']==_0x58b705&&cn(_0x3a5beb,_0x2f7171)&&(_0x1e2709(_0x3a5beb['getRanges'](),_0x1c257f)||_0x1e2709(_0x1c257f,_0x3a5beb['getRanges']())))){for(const _0x1db9d1 of _0x1c257f)_0x3a5beb['addRange'](_0x1db9d1);return _0x3a5beb;}}const _0x4b15ef=_0x2296a0(),_0x4ae140=_0x15de0b['id'],_0x3afca0='formatBlock:'+_0x58b705,_0x343e9f=this['_setSuggestionData']({'id':_0x4b15ef,'type':_0x3afca0,'data':_0x25cbb4,'createdAt':new Date(),'authorId':_0x4ae140,'attributes':_0x2f7171});for(const _0x22426b of _0x1c257f)this['_addSuggestionMarker'](_0x3afca0,_0x4b15ef,_0x4ae140,_0x22426b,bt['getMultiRangeId']());return _0x343e9f;}['markDeletion'](_0x16a8d1,_0x45984e=null,_0x21c3df={}){if(_0x16a8d1['isCollapsed'])return null;const _0x3fcdc6=this['editor']['plugins']['get']('Users')['me'],_0x421937=new _0x211ae6(_0x16a8d1['start'],_0x16a8d1['end']);this['_trackingSessionId']&&(_0x21c3df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45f590,meta:_0x288b22}of this['_findSuggestions'](_0x421937,'insertion'))if(_0x288b22['isOwn']&&!_0x288b22['isNextTo']){if(_0x45f590['isMultiRange']){const _0x1a0a5e=_0x45f590['getRanges']()['filter'](_0x120e3d=>'$graveyard'!=_0x120e3d['root']['rootName']);_0x1a0a5e['every'](_0x55e6cd=>_0x421937['containsRange'](_0x55e6cd,!0x0))&&_0x45f590['discard']();if(_0x1a0a5e['some'](_0x56344f=>_0x56344f['containsRange'](_0x421937,!0x0))){const _0x40f71f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45984e,'accept');return this['forceDefaultExecution'](()=>_0x40f71f([_0x421937],null,_0x21c3df)),null;}}else{const _0x9f6244=_0x421937['getIntersection'](_0x45f590['getFirstRange']());null!==_0x9f6244&&_0x45f590['_onDiscard']([_0x9f6244],null,_0x21c3df);}}if(_0x421937['detach'](),_0x421937['isCollapsed']||'$graveyard'==_0x421937['root']['rootName'])return null;let _0x1b7995=null,_0x1157b4=_0x421937['start'],_0x126bd3=_0x421937['end'];const _0x56bf1f=this['_findSuggestions'](_0x421937,'deletion');for(const {suggestion:_0x576541,meta:_0x5cbda4}of _0x56bf1f){const _0x1f9486=this['_model']['createRange'](_0x1157b4,_0x126bd3);if(_0x5cbda4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5cbda4['containsRangeInObject']&&!_0x5cbda4['isInsideObject'])){if(_0x576541['isMultiRange']){if(!cn(_0x576541,_0x21c3df))continue;let _0x587501=!0x0;for(const _0x2d72c3 of _0x576541['getRanges']()){if(_0x2d72c3['containsRange'](_0x1f9486,!0x0))return _0x576541;_0x1f9486['containsRange'](_0x2d72c3)||(_0x587501=!0x1);}_0x587501&&_0x576541['discard']();}else{const _0x5157c5=_0x576541['getFirstRange']();if(_0x5157c5['containsRange'](_0x1f9486,!0x0))return _0x576541;if(!cn(_0x576541,_0x21c3df)){_0x1f9486['containsRange'](_0x5157c5)?_0x576541['removeMarkers']():_0x5157c5['containsPosition'](_0x1157b4)?_0x1157b4=_0x5157c5['end']:_0x5157c5['containsPosition'](_0x126bd3)&&(_0x126bd3=_0x5157c5['start']);continue;}_0x1157b4=_0x1157b4['isBefore'](_0x5157c5['start'])?_0x1157b4:_0x5157c5['start'],_0x126bd3=_0x126bd3['isAfter'](_0x5157c5['end'])?_0x126bd3:_0x5157c5['end'],_0x21c3df=Object['assign']({},_0x576541['attributes']),_0x1b7995?_0x5157c5['start']['isBefore'](_0x1b7995['getFirstRange']()['start'])?(_0x1b7995['removeMarkers'](),_0x1b7995=_0x576541):_0x576541['removeMarkers']():_0x1b7995=_0x576541;}}}if(_0x1b7995)return this['_setSuggestionRange'](_0x1b7995,this['_model']['createRange'](_0x1157b4,_0x126bd3)),_0x1b7995;{const _0x5bd21c=_0x2296a0(),_0x523aa8=this['_model']['createRange'](_0x1157b4,_0x126bd3),_0x2cb3bc=_0x3fcdc6['id'],_0x1d5747=_0x45984e?'deletion:'+_0x45984e:'deletion',_0x529786=this['_setSuggestionData']({'id':_0x5bd21c,'type':_0x1d5747,'createdAt':new Date(),'authorId':_0x2cb3bc,'attributes':_0x21c3df});return this['_addSuggestionMarker'](_0x1d5747,_0x5bd21c,_0x2cb3bc,_0x523aa8),_0x529786;}}['markMultiRangeDeletion'](_0xd50bf9,_0x5c1825='multi',_0x1bf53a={}){const _0x229d20=this['editor']['plugins']['get']('Users')['me'],_0x87b2ad=_0xd50bf9['map'](_0x4765bc=>new _0x211ae6(_0x4765bc['start'],_0x4765bc['end'])),_0x5aba94=new Set();this['_trackingSessionId']&&(_0x1bf53a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x45137d,meta:_0x1102ab}of this['_findSuggestions'](_0x87b2ad,'insertion'))_0x1102ab['isOwn']&&!_0x1102ab['isNextTo']&&_0x5aba94['add'](_0x45137d);for(const _0x1136f5 of _0x5aba94)if(_0x1136f5['isMultiRange']){const _0x1e804b=_0x1136f5['getRanges']();(!_0x1136f5['attributes']||!_0x1136f5['attributes']['skipNestingCheck'])&&(_0x1e804b['every'](_0x5e3d80=>_0x87b2ad['some'](_0x14476d=>_0x14476d['containsRange'](_0x5e3d80,!0x0)))&&_0x1136f5['discard']());if(_0x87b2ad['every'](_0x241a47=>_0x1e804b['some'](_0x2989da=>_0x2989da['containsRange'](_0x241a47,!0x0)))){const _0x49776c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'accept');return this['forceDefaultExecution'](()=>_0x49776c(_0xd50bf9,null,_0x1bf53a)),null;}}else{const _0x45cac3=_0x1136f5['getFirstRange']();_0x87b2ad['some'](_0x145a26=>_0x145a26['containsRange'](_0x45cac3,!0x0))&&_0x1136f5['discard']();if(_0x87b2ad['every'](_0x491c9d=>_0x45cac3['containsRange'](_0x491c9d,!0x0))){const _0x65ddde=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'accept');return this['forceDefaultExecution'](()=>_0x65ddde(_0x87b2ad,null,_0x1bf53a)),null;}}const _0x3308a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c1825,'join');let _0x1453eb=null;for(const _0x11efb6 of this['getSuggestions']())if(_0x11efb6['author']['id']==_0x229d20['id']&&_0x11efb6['isInContent']&&'deletion'==_0x11efb6['type']&&_0x11efb6['subType']==_0x5c1825&&cn(_0x11efb6,_0x1bf53a)&&(_0x3308a3(_0x11efb6['getRanges'](),_0x87b2ad)||_0x3308a3(_0x87b2ad,_0x11efb6['getRanges']()))){if(_0x1453eb){if(_0x11efb6['commentThread']&&_0x11efb6['commentThread']['length'])continue;for(const _0x22130c of _0x11efb6['getRanges']())_0x1453eb['isIntersectingWithRange'](_0x22130c)||_0x1453eb['addRange'](_0x22130c);_0x11efb6['removeMarkers']();}else{_0x1453eb=_0x11efb6;for(const _0x4d8476 of _0x87b2ad)_0x11efb6['isIntersectingWithRange'](_0x4d8476)||_0x11efb6['addRange'](_0x4d8476);}}if(_0x1453eb)return _0x1453eb;_0x5aba94['clear']();for(const {suggestion:_0xb95515,meta:_0x5996f5}of this['_findSuggestions'](_0x87b2ad,'deletion'))_0x5996f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5996f5['containsRangeInObject']&&!_0x5996f5['isInsideObject'])&&cn(_0xb95515,_0x1bf53a)&&_0x5aba94['add'](_0xb95515);for(const _0x369de5 of _0x5aba94){const _0x3d67a8=_0x369de5['getRanges']();if(!_0x1bf53a||!_0x1bf53a['skipNestingCheck']){if(_0x87b2ad['every'](_0x2991c0=>_0x3d67a8['some'](_0x279598=>_0x279598['containsRange'](_0x2991c0,!0x0))))return _0x369de5;}(!_0x369de5['attributes']||!_0x369de5['attributes']['skipNestingCheck'])&&(_0x3d67a8['every'](_0x1ace69=>_0x87b2ad['some'](_0x53e09b=>_0x53e09b['containsRange'](_0x1ace69,!0x0)))&&_0x369de5['discard']());}const _0x56e662=_0x2296a0(),_0x4436eb=_0x229d20['id'],_0x2aef03='deletion:'+_0x5c1825,_0x5a85b5=this['_setSuggestionData']({'id':_0x56e662,'type':_0x2aef03,'createdAt':new Date(),'authorId':_0x4436eb,'attributes':_0x1bf53a});for(const _0x12c171 of _0x87b2ad)_0x12c171['detach'](),_0x12c171['isCollapsed']||'$graveyard'==_0x12c171['root']['rootName']||this['_addSuggestionMarker'](_0x2aef03,_0x56e662,_0x4436eb,_0x12c171,bt['getMultiRangeId']());return _0x5a85b5;}['markAttributeChange'](_0x30de87,_0x5a4e45,_0x2fe7e4,_0x38e43e,_0x305c03){if(_0x30de87['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x56dc5a=this['editor']['plugins']['get']('Users')['me']['id'],_0x50f9a5=Array['from'](this['_suggestions']['values']())['filter'](_0x7a9307=>'attribute'==_0x7a9307['type']&&_0x7a9307['data']['key']==_0x5a4e45&&_0x7a9307['isIntersectingWithRange'](_0x30de87));if(this['_trackingSessionId']&&(_0x305c03['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xde8f34=this['_findSuggestions'](_0x30de87,'insertion')['filter'](({meta:_0xfcb98})=>_0xfcb98['isOwn']&&!_0xfcb98['isInsideObject']&&!_0xfcb98['isNextTo'])['map'](({suggestion:_0x174dd5})=>_0x174dd5);_0x50f9a5['unshift'](..._0xde8f34);}const _0x3dce47=new Map([[_0x30de87,_0x2fe7e4]]);for(const _0x332024 of _0x50f9a5){const _0x1af8d1='attribute'==_0x332024['type']?_0x332024['data']['oldValue']:void 0x0,_0x187534=_0x332024['getFirstRange'](),_0x38889c=Array['from'](_0x3dce47['keys']())['find'](_0x2b7534=>_0x2b7534['isIntersecting'](_0x187534));if(!_0x38889c)continue;const _0x456e28=_0x38889c['getDifference'](_0x187534);this['_suggestionsConversion']['isBlockAttribute'](_0x5a4e45)&&'insertion'==_0x332024['type']&&0x0!=_0x456e28['length']||(_0x3dce47['delete'](_0x38889c),_0x456e28['forEach'](_0x3bf960=>{_0x3dce47['set'](_0x3bf960,_0x2fe7e4);}),'insertion'!=_0x332024['type']&&_0x1af8d1!=_0x38e43e&&_0x3dce47['set'](_0x38889c['getIntersection'](_0x187534),_0x1af8d1));}const _0x3957c1=[];for(const [_0x26f555,_0x292be8]of _0x3dce47){const _0x2abbcd=_0x2296a0(),_0x429e81={'key':_0x5a4e45,'oldValue':_0x292be8,'newValue':_0x38e43e};_0x5a4e45['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':_0x5a4e45});const _0x1a60a8=('attribute:'+(_0x5a4e45+'|'+Je({'newValue':_0x38e43e})))['substring'](0x0,0x3c),_0x1c9187=this['_setSuggestionData']({'id':_0x2abbcd,'type':_0x1a60a8,'data':_0x429e81,'createdAt':new Date(),'authorId':_0x56dc5a,'attributes':_0x305c03});_0x3957c1['push'](_0x1c9187),this['_addSuggestionMarker'](_0x1a60a8,_0x2abbcd,_0x56dc5a,_0x26f555);}return _0x3957c1;}['enableDefaultAttributesIntegration'](_0x1396df){this['enableCommand'](_0x1396df,(_0x28e875,..._0x1c090c)=>{this['recordAttributeChanges'](()=>{_0x28e875(..._0x1c090c);});});}['startTrackingSession'](_0x4b5bb5){return this['_trackingSessionId']=void 0x0!==_0x4b5bb5?_0x4b5bb5:_0x2296a0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2b5038){return'attribute'==_0x2b5038['type']?un(_0x2b5038['subType']):null;}['_applyOperationsAsSuggestions'](_0x4f1d63){if(0x0==_0x4f1d63['length'])return;const _0x4ec3aa=this['editor'],_0x26b96c=_0x4ec3aa['plugins']['get'](_0x556581),_0x549319=[];_0x4ec3aa['model']['change'](_0x33cb75=>{for(let _0x49241a=0x0;_0x49241a<_0x4f1d63['length'];_0x49241a++){const _0x4480e5=_0x4f1d63[_0x49241a];if(_0x4480e5['baseVersion']=_0x4ec3aa['model']['document']['version'],_0x4480e5['isDocumentOperation']=!0x0,_0x26b96c['isMarkedRemoveOperation'](_0x4480e5)){const _0x227d51=_0x40880f(_0x4480e5['newRange'],_0x4ec3aa['model']);_0x549319['unshift'](_0x211ae6['fromRange'](_0x227d51));}else switch(_0x4480e5['type']){case'rename':{const _0x380c0c=_0x4480e5['oldName'],_0xa4ac85=_0x4480e5['newName'];if(_0x380c0c==_0xa4ac85)break;_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0xba0db3='$elementName',_0x2c057c=_0x4480e5['position'],_0x290343=_0x4ec3aa['model']['createRange'](_0x2c057c,_0x4ec3aa['model']['createPositionAt'](_0x2c057c['nodeAfter'],'end'));this['markAttributeChange'](_0x290343,_0xba0db3,_0x380c0c,_0xa4ac85,{'groupId':_0x2296a0()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xfb783b=_0x4480e5['oldValue'],_0x3d39c0=_0x4480e5['newValue'];if(_0xfb783b==_0x3d39c0)break;_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0x303388=_0x4480e5['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x303388))break;const _0x3c4338=_0x40880f(_0x4480e5['range'],_0x4ec3aa['model']);this['markAttributeChange'](_0x3c4338,_0x303388,_0xfb783b,_0x3d39c0,{'groupId':_0x2296a0()});break;}case'insert':{_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);if(_0x4f1d63[_0x49241a+0x1]&&'move'==_0x4f1d63[_0x49241a+0x1]['type'])break;const _0x5da409=_0x4480e5['position'],_0x3a55a9=_0x4480e5['howMany'],_0x130670=_0x40880f(_0x4ec3aa['model']['createRange'](_0x5da409,_0x5da409['getShiftedBy'](_0x3a55a9)),_0x4ec3aa['model']);this['markInsertion'](_0x130670);break;}case'split':{_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);const _0x28cba8=_0x4480e5['splitPosition'],_0x1cbb42=_0x4480e5['moveTargetPosition'];this['markInsertion'](_0x4ec3aa['model']['createRange'](_0x28cba8,_0x1cbb42));break;}case'move':case'remove':_0x33cb75['batch']['addOperation'](_0x4480e5),_0x4ec3aa['model']['applyOperation'](_0x4480e5);}}for(const _0x1fbc7a of _0x549319)_0x1fbc7a['detach'](),this['markDeletion'](_0x1fbc7a);});}['_setSuggestionRange'](_0x83147d,_0x4778d7){const _0x1fb740=_0x83147d['getFirstMarker']();this['_model']['change'](_0x26f54e=>{_0x26f54e['updateMarker'](_0x1fb740,{'range':_0x4778d7});});}['_addThreadToSuggestion'](_0x51c748){const _0x846ca7=_0x51c748['id'],_0x3d8d5b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x846ca7)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d8d5b,'threadId':_0x846ca7,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x286acc=this['_commentsRepository']['getCommentThread'](_0x846ca7);_0x286acc['unbind']('isRemovable'),_0x286acc['isRemovable']=!0x1,_0x51c748['commentThread']=_0x286acc;}['_checkSuggestionCorrectness'](_0x27082a,_0x26b259,_0x208b74,_0x57fbd9){if(_0x27082a['type']!=_0x26b259||_0x27082a['subType']!=_0x208b74||_0x27082a['creator']['id']!=_0x57fbd9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2f698f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x49f7b1,_0x2ff02c){const _0x5ea424=_0x49f7b1['getFirstRange']();if(_0x2ff02c['isEqual'](_0x5ea424))_0x49f7b1['removeMarkers']();else{if(_0x5ea424['containsRange'](_0x2ff02c)){const _0x19c3b3=this['_model']['createPositionAt'](_0x2ff02c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x5ea424['start'],_0x19c3b3));const _0x443ae9=_0x2296a0(),_0x30a989=_0x49f7b1['creator']['id'],_0x57d6c5=_0x49f7b1['type']+':'+_0x49f7b1['subType'];this['_setSuggestionData']({'id':_0x443ae9,'type':_0x57d6c5,'createdAt':new Date(),'authorId':_0x30a989,'data':_0x49f7b1['data'],'attributes':_0x49f7b1['attributes']});const _0x266621=this['_model']['createPositionAt'](_0x2ff02c['end']['parent'],'after'),_0x5ce22e=this['_model']['createRange'](_0x266621,_0x5ea424['end']);this['_addSuggestionMarker'](_0x57d6c5,_0x443ae9,_0x30a989,_0x5ce22e);}else{if(_0x5ea424['containsPosition'](_0x2ff02c['start'])){const _0x1ad3f3=this['_model']['createPositionAt'](_0x2ff02c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x5ea424['start'],_0x1ad3f3));}else{const _0x3a65c0=this['_model']['createPositionAt'](_0x2ff02c['end']['parent'],'after');this['_setSuggestionRange'](_0x49f7b1,this['_model']['createRange'](_0x3a65c0,_0x5ea424['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x13c499){for(const {suggestion:_0x1e4959,meta:_0x420221}of this['_findSuggestions'](_0x13c499,'insertion')){if(!_0x420221['isOwn'])continue;const _0x3bdd42=_0x1e4959['getRanges']();for(const _0x3a33f9 of _0x3bdd42)if(!_0x13c499['getDifference'](_0x3a33f9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2648f7){return this['editor']['plugins']['get']('Users')['getUser'](_0x2648f7);}['_getExternalAuthor'](_0x27e34f){const _0x1d8739=this['editor']['plugins']['get']('Users'),_0x4bd307=_0x65b7cc('external:'+_0x27e34f),_0x4dc25f=_0x1d8739['getUser'](_0x4bd307);return _0x4dc25f||_0x1d8739['addUser']({'id':_0x4bd307,'name':_0x27e34f});}['_createSuggestion'](_0x288359,_0x40a59e,_0x17e04f,_0xc5778a,_0xa3b238,_0x162177){const _0x383147=this['_getAuthorFromId'](_0xc5778a);if(!_0x383147)throw new _0x2f698f('track-changes-user-not-found',this,{'authorId':_0xc5778a,'suggestionId':_0x17e04f});const _0x421a7e=this['_suggestionFactory']['buildSuggestion'](_0x288359,_0x40a59e,_0x17e04f,_0x383147,_0xa3b238,_0x27080e=>{this['_updateSuggestionData'](_0x17e04f,{'attributes':_0x27080e});const _0x386664=this['getSuggestion'](_0x17e04f);this['_joinWithAdjacentSuggestions'](new Set([_0x386664])),this['_refreshSuggestionsChain'](new Set([_0x386664]));},_0x162177);return this['listenTo'](_0x421a7e,'accept',()=>{this['_updateSuggestionData'](_0x17e04f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x421a7e,'discard',()=>{this['_updateSuggestionData'](_0x17e04f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x17e04f,_0x421a7e),this['_suggestionState']['set'](_0x421a7e,'notReady'),_0x421a7e;}['_breakSuggestionMarker'](_0x4b76f2,_0x2b8b43,_0x3c3e3f){const _0x47457f=_0x4b76f2['getFirstRange'](),_0x12e4f5=_0x47457f['start'],_0xf87ccc=_0x47457f['end'];this['_setSuggestionRange'](_0x4b76f2,this['_model']['createRange'](_0x12e4f5,_0x2b8b43));const _0x269a6b=_0x2296a0(),_0x5169a4=_0x4b76f2['creator']['id'],_0x1f16e5=_0x4b76f2['type']+(_0x4b76f2['subType']?':'+_0x4b76f2['subType']:'');this['_setSuggestionData']({'id':_0x269a6b,'type':_0x1f16e5,'createdAt':new Date(),'authorId':_0x5169a4,'originalSuggestionId':_0x4b76f2['_originalSuggestionId']||_0x4b76f2['id'],'attributes':_0x4b76f2['attributes'],'data':_0x4b76f2['data']});const _0x1792bc=this['_getAttributeKey'](_0x4b76f2);('formatBlock'==_0x4b76f2['type']||_0x1792bc&&this['_suggestionsConversion']['isBlockAttribute'](_0x1792bc))&&(_0x3c3e3f=this['_model']['createPositionBefore'](_0x3c3e3f['parent'])),this['_addSuggestionMarker'](_0x1f16e5,_0x269a6b,_0x5169a4,this['_model']['createRange'](_0x3c3e3f,_0xf87ccc));}['_findSuggestions'](_0x4087c5,_0x3af49b=null){const _0x3ebb8e=[],_0xf4413e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4087c5)||(_0x4087c5=[_0x4087c5]);for(const _0x2d9359 of this['getSuggestions']()){if(!_0x2d9359['isInContent'])continue;if(_0x3af49b&&_0x2d9359['type']!=_0x3af49b)continue;let _0x2c9f39=!0x1;for(const _0x3a5c06 of _0x2d9359['getRanges']()){for(const _0x2fcc49 of _0x4087c5){const _0x251118=_0x2fcc49['start']['isEqual'](_0x3a5c06['end'])||_0x2fcc49['end']['isEqual'](_0x3a5c06['start']);if(_0x251118||_0x2fcc49['getIntersection'](_0x3a5c06)){const _0x57da75=_0x2fcc49['containsRange'](_0x3a5c06)&&qe(this['_model']['schema'],_0x3a5c06['start'],_0x2fcc49),_0x5796d7=_0x3a5c06['containsRange'](_0x2fcc49)&&qe(this['_model']['schema'],_0x2fcc49['start'],_0x3a5c06);_0x3ebb8e['push']({'suggestion':_0x2d9359,'meta':{'isOwn':_0xf4413e==_0x2d9359['author'],'isNextTo':_0x251118,'isInsideObject':_0x57da75,'containsRangeInObject':_0x5796d7}}),_0x2c9f39=!0x0;break;}}if(_0x2c9f39)break;}}return _0x3ebb8e;}['_addSuggestionMarker'](_0x3e1ffc,_0x8a7e1e,_0x22c241,_0x3d5c65,_0x33018b){this['_model']['change'](_0x3039f0=>{let _0xf6d262='suggestion:'+_0x3e1ffc+':'+_0x8a7e1e+':'+_0x22c241;_0x33018b&&(_0xf6d262=_0xf6d262+':'+_0x33018b),_0x3039f0['addMarker'](_0xf6d262,{'range':_0x3d5c65,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1aae17){const _0x5e7c7c=_0x1aae17['previous'],_0xceddb=_0x1aae17['next'];_0x1aae17['previous']=null,_0x1aae17['next']=null,null!=_0x5e7c7c&&_0x5e7c7c['next']==_0x1aae17&&(_0x5e7c7c['next']=_0xceddb),null!=_0xceddb&&_0xceddb['previous']==_0x1aae17&&(_0xceddb['previous']=_0x5e7c7c),'ready'==this['_suggestionState']['get'](_0x1aae17)&&(this['_suggestionState']['set'](_0x1aae17,'removed'),this['fire']('suggestionUnloaded',_0x1aae17,_0x5e7c7c,_0xceddb));}['_setSuggestionData'](_0x489a6d){const _0x111fb1=_0x489a6d['id'],_0x25c91c=this['addSuggestionData'](_0x489a6d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4125a5=this['editor']['plugins']['get']('PendingActions'),_0x383e90=_0x25c91c['hasComments'],_0x50f0a3=_0x25c91c['subType']?_0x25c91c['type']+':'+_0x25c91c['subType']:_0x25c91c['type'],_0x406a60=this['editor']['locale'],_0xa943c5=_0x4125a5['add'](At(_0x406a60,'PENDING_ACTION_SUGGESTION')),_0x5ada76={'id':_0x111fb1,'type':_0x50f0a3,'hasComments':_0x383e90,'data':_0x489a6d['data']||null,'originalSuggestionId':_0x489a6d['originalSuggestionId']||null,'attributes':_0x25c91c['attributes']};this['_adapter']['addSuggestion'](_0x5ada76)['then'](_0x25cdfd=>{_0x25c91c['_saved']=!0x0,_0x4125a5['remove'](_0xa943c5),_0x25cdfd&&_0x25cdfd['createdAt']&&(this['_suggestions']['get'](_0x111fb1)['createdAt']=_0x25cdfd['createdAt']);})['catch'](_0x70f454=>{throw _0x2cfc05('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25c91c['discard']();}),_0x25c91c['stopListening'](),this['_suggestions']['delete'](_0x25c91c['id']),this['_suggestionState']['delete'](_0x25c91c),_0x70f454;});}return _0x25c91c;}['_updateSuggestionData'](_0x4be9da,_0x17b604){const _0x10b1f9=this['editor']['plugins']['get']('PendingActions'),_0xd95e32=this['getSuggestion'](_0x4be9da);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xd95e32['_saved']){const _0x14c305=_0x10b1f9['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4be9da,_0x17b604)['then'](()=>{_0x10b1f9['remove'](_0x14c305);});}else _0xd95e32['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4be9da,_0x17b604);});}}['_getSuggestionData'](_0x587a0f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2f698f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x587a0f);}['_handleNewSuggestionMarker'](_0x1e80dc){const {id:_0x3c071d,type:_0x1189a5,subType:_0x1fc7c6,authorId:_0x37fb07}=_0x2cca50(_0x1e80dc),_0x40fb25=this['_suggestions']['get'](_0x3c071d)||this['_createSuggestion'](_0x1189a5,_0x1fc7c6,_0x3c071d,_0x37fb07,{});switch(this['_checkSuggestionCorrectness'](_0x40fb25,_0x1189a5,_0x1fc7c6,_0x37fb07),this['_suggestionState']['get'](_0x40fb25)){case'notReady':this['_getSuggestionData'](_0x3c071d)['then'](_0x3d9ff6=>{let _0x361ffd=Promise['resolve']();_0x3d9ff6['hasComments']&&(_0x361ffd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3c071d})),_0x361ffd['then'](()=>{this['addSuggestionData'](_0x3d9ff6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40fb25,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3c071d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40fb25,'ready'),this['fire']('suggestionLoaded',_0x40fb25);break;case'ready':this['fire']('suggestionChanged',_0x40fb25);}return _0x40fb25['addMarkerName'](_0x1e80dc),_0x40fb25;}['_refreshSuggestionsChain'](_0x2e0935){const _0x445488=Array['from'](_0x2e0935),_0x391705=_0x445488['filter'](_0x4b1dce=>'attribute'==_0x4b1dce['type']);this['_refreshAttributeSuggestionsChain'](_0x391705);const _0x13b41c=_0x445488['filter'](_0x3b381a=>!_0x3b381a['isMultiRange']&&'attribute'!=_0x3b381a['type']),_0xab4969=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x449671=>!_0x449671['isMultiRange']&&'attribute'!=_0x449671['type']),_0x99b5c7=_0xab4969['filter'](_0x220f2e=>!_0x2e0935['has'](_0x220f2e)),_0x117584=new Map(_0xab4969['map'](_0x536196=>[_0x536196,this['_suggestionFactory']['getSuggestionCallback'](_0x536196['type'],_0x536196['subType'],'chain')])),_0xde8cb2=new Map(_0xab4969['map'](_0x19501f=>[_0x19501f,_0x19501f['getFirstRange']()])),_0x5637e0=new Set(),_0x13842e=new Set();for(let _0x4471da=0x0;_0x4471da<_0x13b41c['length'];_0x4471da++)_0x44049(_0x13b41c[_0x4471da],_0x13b41c,_0x4471da+0x1);for(let _0x3e472e=0x0;_0x3e472e<_0x13b41c['length'];_0x3e472e++)_0x44049(_0x13b41c[_0x3e472e],_0x99b5c7,0x0);const _0x4bfb42=new Set();for(let _0x4d18d6=0x0;_0x4d18d6<_0x13b41c['length'];_0x4d18d6++){const _0x26766e=_0x13b41c[_0x4d18d6];!_0x13842e['has'](_0x26766e)&&_0x26766e['previous']&&(_0x4bfb42['add'](_0x26766e['previous']),_0x26766e['previous']['next']===_0x26766e&&(_0x26766e['previous']['next']=null),_0x26766e['previous']=null),!_0x5637e0['has'](_0x26766e)&&_0x26766e['next']&&(_0x4bfb42['add'](_0x26766e['next']),_0x26766e['next']['previous']===_0x26766e&&(_0x26766e['next']['previous']=null),_0x26766e['next']=null);}function _0x44049(_0x38af29,_0x208f37,_0x1ad0ea){for(let _0x2815ea=_0x1ad0ea;_0x2815ea<_0x208f37['length'];_0x2815ea++){const _0x5bfa1f=_0x2ce822(_0x38af29,_0x208f37[_0x2815ea]);_0x5bfa1f&&(_0x5bfa1f[0x0]['next']=_0x5bfa1f[0x1],_0x5bfa1f[0x1]['previous']=_0x5bfa1f[0x0],_0x5637e0['add'](_0x5bfa1f[0x0]),_0x13842e['add'](_0x5bfa1f[0x1]));}}function _0x2ce822(_0x117295,_0x488bd1){if(_0x117295['author']['id']!==_0x488bd1['author']['id'])return null;const _0x21ad01=_0x117584['get'](_0x117295)(_0x117295,_0x488bd1,_0xde8cb2['get'](_0x117295),_0xde8cb2['get'](_0x488bd1));if(!_0x21ad01)return null;return _0x117584['get'](_0x488bd1)(_0x117295,_0x488bd1,_0xde8cb2['get'](_0x117295),_0xde8cb2['get'](_0x488bd1))?_0x21ad01[0x1]['commentThread']&&_0x21ad01[0x1]['commentThread']['length']?null:_0x21ad01:null;}_0x4bfb42['size']&&this['_refreshSuggestionsChain'](_0x4bfb42);}['_refreshAttributeSuggestionsChain'](_0x2ad83d){if(0x0==_0x2ad83d['length'])return;const _0x358fd1=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e1855=>'attribute'==_0x3e1855['type']&&_0x3e1855['_isDataLoaded']),_0x47b474=[],_0x27002e=new Map();for(const _0x391310 of _0x358fd1){const _0x671a57=_0x65b7cc(_0x391310['attributes']);_0x27002e['has'](_0x671a57)||(_0x27002e['set'](_0x671a57,_0x47b474['length']),_0x47b474['push']([]));const _0x502f16=_0x27002e['get'](_0x671a57);_0x47b474[_0x502f16]['push'](_0x391310);}!(function(){_0x47b474['sort']((_0x1d769b,_0x47626b)=>{const _0x1eb91d=_0x1d769b[0x0]['createdAt'],_0x4157ba=_0x47626b[0x0]['createdAt'];return _0x1eb91d==_0x4157ba?_0x1d769b[0x0]['attributes']['groupId']<_0x47626b[0x0]['attributes']['groupId']?-0x1:0x1:_0x1eb91d<_0x4157ba?-0x1:0x1;});for(const _0x2edf89 of _0x47b474)_0x2edf89['sort']((_0x8a60c3,_0x314002)=>_0x8a60c3['id']<_0x314002['id']?-0x1:0x1);}());for(let _0x5f0762=0x0;_0x5f0762<_0x47b474['length'];_0x5f0762++){if(0x0==_0x47b474[_0x5f0762]['length'])continue;const _0x46ef17=[];for(let _0x476747=_0x5f0762+0x1;_0x476747<_0x47b474['length'];_0x476747++)0x0!=_0x47b474[_0x476747]['length']&&_0x12fe66(_0x47b474[_0x5f0762],_0x47b474[_0x476747])&&_0x46ef17['push'](_0x476747);for(const _0x25ff77 of _0x46ef17)_0x47b474[_0x5f0762]=_0x47b474[_0x5f0762]['concat'](_0x47b474[_0x25ff77]),_0x47b474[_0x25ff77]=[];}for(const _0x590df2 of _0x47b474)for(let _0xcf0081=0x0;_0xcf0081<_0x590df2['length'];_0xcf0081++){const _0xe907fd=_0x590df2[_0xcf0081+0x1]||null;_0x590df2[_0xcf0081]['next']!==_0xe907fd&&(_0x590df2[_0xcf0081]['next']=_0xe907fd);}for(const _0x104ee5 of _0x47b474)for(let _0x340cd0=0x0;_0x340cd0<_0x104ee5['length'];_0x340cd0++){const _0x358f19=_0x104ee5[_0x340cd0-0x1]||null;_0x104ee5[_0x340cd0]['previous']!==_0x358f19&&(_0x104ee5[_0x340cd0]['previous']=_0x358f19);}function _0x12fe66(_0xa6e14a,_0x42d3ce){if(_0xa6e14a[0x0]['attributes']['groupId']!==_0x42d3ce[0x0]['attributes']['groupId']&&_0xa6e14a[0x0]['author']!==_0x42d3ce[0x0]['author'])return!0x1;if(!function(_0x551044,_0x293c3e){if(!_0x551044['hasComments']&&!_0x293c3e['hasComments'])return!0x0;if(_0x551044['hasComments']&&_0x293c3e['hasComments'])return!0x1;if(_0x551044['hasComments']&&_0x293c3e['createdAt']<_0x551044['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x293c3e['hasComments']&&_0x551044['createdAt']<_0x293c3e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xa6e14a[0x0],_0x42d3ce[0x0]))return!0x1;const _0x4478cd=ot(_0xa6e14a[0x0]['attributes'],['groupId','trackingSessionId']),_0x88a054=ot(_0x42d3ce[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4478cd,_0x88a054))return!0x1;if(_0xa6e14a[0x0]['attributes']['groupId']==_0x42d3ce[0x0]['attributes']['groupId'])return!0x0;if(_0xa6e14a[0x0]['attributes']['trackingSessionId']!==_0x42d3ce[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xa6e14a['every'](_0x174fa3=>_0x42d3ce['some'](_0x450d87=>_0x174fa3['getFirstRange']()['isEqual'](_0x450d87['getFirstRange']())))&&_0x42d3ce['every'](_0x17fc8d=>_0xa6e14a['some'](_0x21877a=>_0x17fc8d['getFirstRange']()['isEqual'](_0x21877a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xb600ff){const _0x4f0d52=Array['from'](_0xb600ff),_0x47c32a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x312714=_0x47c32a['filter'](_0x598da8=>!_0xb600ff['has'](_0x598da8)),_0x4c1d4e=new Map(_0x4f0d52['map'](_0x3c456d=>[_0x3c456d,this['_suggestionFactory']['getSuggestionCallback'](_0x3c456d['type'],_0x3c456d['subType'],'join')])),_0x43a507=new Map(_0x47c32a['map'](_0x131fa0=>[_0x131fa0,_0x131fa0['getRanges']()]));for(let _0x1cb26a=0x0;_0x1cb26a<_0x4f0d52['length'];_0x1cb26a++){if(_0x28bcf0(this,_0x4f0d52[_0x1cb26a],_0x4f0d52,_0x1cb26a+0x1))return!0x0;}for(let _0x1a246b=0x0;_0x1a246b<_0x4f0d52['length'];_0x1a246b++){if(_0x28bcf0(this,_0x4f0d52[_0x1a246b],_0x312714,0x0))return!0x0;}return!0x1;function _0x28bcf0(_0x45356c,_0x3b4d65,_0x274e5c,_0x13bda8){for(let _0x3622e1=_0x13bda8;_0x3622e1<_0x274e5c['length'];_0x3622e1++){const _0x515028=_0x274e5c[_0x3622e1];if(_0x515028['type']!==_0x3b4d65['type']||_0x515028['author']['id']!==_0x3b4d65['author']['id']||_0x515028['subType']!==_0x3b4d65['subType'])continue;if(!an(_0x3b4d65,_0x515028))continue;if('attribute'==_0x3b4d65['type']&&_0x3b4d65['data']['oldValue']!=_0x515028['data']['oldValue'])continue;if('attribute'==_0x3b4d65['type']&&_0x45356c['_suggestionsConversion']['isBlockAttribute'](_0x3b4d65['data']['key']))continue;if('formatBlock'==_0x3b4d65['type']){const _0x2f3705=_0x45356c['editor']['model'],_0x53f315=_0x3b4d65['getContainedElement']();if(_0x53f315&&(_0x2f3705['schema']['isObject'](_0x53f315)||_0x2f3705['schema']['isLimit'](_0x53f315)))continue;}const _0x3ed468=_0x4c1d4e['get'](_0x3b4d65),_0x15d7bf=_0x43a507['get'](_0x3b4d65),_0x49f58a=_0x43a507['get'](_0x515028),_0x2aae58=_0x3b4d65['commentThread']&&_0x3b4d65['commentThread']['length'],_0x45526a=_0x515028['commentThread']&&_0x515028['commentThread']['length'];if(!_0x2aae58&&_0x3ed468(_0x49f58a,_0x15d7bf))return _0x45356c['_joinSuggestions'](_0x515028,_0x3b4d65),_0x43a507['delete'](_0x3b4d65),!0x0;if(!_0x45526a&&_0x3ed468(_0x15d7bf,_0x49f58a))return _0x45356c['_joinSuggestions'](_0x3b4d65,_0x515028),_0x43a507['delete'](_0x515028),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13ffe2,_0x27977e){if(_0x13ffe2['isMultiRange']){for(const _0x4ceb41 of _0x27977e['getRanges']())_0x13ffe2['addRange'](_0x4ceb41);}else{const _0x5253f4=_0x27977e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13ffe2,this['_model']['createRange'](_0x13ffe2['getFirstRange']()['start'],_0x5253f4));}_0x27977e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x50d9c7,_0x4ab297,_0xbc8b24){const _0x4b190e=_0x50d9c7['startsWith']('format')||_0x50d9c7['startsWith']('attribute')?'FORMATTING':_0x50d9c7['toUpperCase']();return At(this['editor']['locale'],_0x4ab297+'_'+_0x4b190e+'_SUGGESTION_ANNOUNCEMENT',_0xbc8b24);}['_initAriaMarkerChangeAnnouncements'](){const _0x23ca44=this['editor'];if(!_0x23ca44['ui'])return;const {ariaLiveAnnouncer:_0x28a9e8}=_0x23ca44['ui'];_0x1b7ae6(this['_model'],({left:_0x53cd9b,entered:_0xc60bd8})=>{for(const _0x5a83bc of _0x53cd9b){const {group:_0x32e50e,type:_0x4f5a2f}=_0x2cca50(_0x5a83bc['name']);if('suggestion'===_0x32e50e){_0x28a9e8['announce'](this['_getMarkerAnnouncementText'](_0x4f5a2f,'LEAVE'));break;}}for(const _0x4407fa of _0xc60bd8){const {group:_0x209ed5,type:_0x35f21e}=_0x2cca50(_0x4407fa['name']);if('suggestion'===_0x209ed5){_0x28a9e8['announce'](this['_getMarkerAnnouncementText'](_0x35f21e,'ENTER',_0xd6dee4(_0x3c357b)));break;}}});}['_processAttributeChanges'](_0x5ae293){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3bcd52=this['editor'],_0x537d8f=_0x3bcd52['model']['document']['differ']['getChanges']();if(0x0==_0x537d8f['length'])return!0x1;const _0x4d080c=[],_0x1e08da=_0x537d8f['filter'](_0x5308b3=>'attribute'==_0x5308b3['type']),_0xa1a497=_0x537d8f['filter'](_0x3a85b2=>'insert'==_0x3a85b2['type']&&'$text'!=_0x3a85b2['name']),_0x436cb2=_0x537d8f['filter'](_0x2ada65=>'remove'==_0x2ada65['type']&&'$text'!=_0x2ada65['name']);for(const _0x1b0fbc of _0x1e08da)_0x4d080c['push']({'key':_0x1b0fbc['attributeKey'],'newValue':_0x1b0fbc['attributeNewValue'],'oldValue':_0x1b0fbc['attributeOldValue'],'range':sn(_0x1b0fbc['range'],_0x3bcd52['model'])});for(const _0x2c7ab5 of _0xa1a497){const _0x2c046b=_0x436cb2['find'](_0x533e6d=>_0x533e6d['position']['isEqual'](_0x2c7ab5['position']));_0x2c046b&&_0x4d080c['push']({'key':Ke,'newValue':_0x2c7ab5['name'],'oldValue':_0x2c046b['name'],'range':_0x3bcd52['model']['createRangeOn'](_0x2c7ab5['position']['nodeAfter'])});}return 0x0!=_0x4d080c['length']&&this['_reduceExistingSuggestions'](_0x5ae293,_0x4d080c);}['_processAttributeSuggestions'](_0x44cf3e){let _0x50038e=!0x1;const _0x1b3931=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11f4d5=>_0x11f4d5['data']['newRange']&&_0x11f4d5['name']['startsWith']('suggestion:attribute:'));for(const _0x5efa37 of _0x1b3931){const {subType:_0x1e8eeb,id:_0x4b62c9}=_0x2cca50(_0x5efa37['name']),_0xe950e3=_0x1e8eeb['split']('|')[0x0];for(const _0x75c088 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x75c088['id']!=_0x4b62c9&&'attribute'==_0x75c088['type']&&_0x75c088['data']&&_0x75c088['data']['key']==_0xe950e3&&_0x75c088['getFirstRange']()['isIntersecting'](_0x5efa37['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x75c088,_0x5efa37['data']['newRange'],_0x44cf3e),_0x50038e=!0x0);}return _0x50038e;}['recordAttributeChanges'](_0x19b9e2){this['_recordAttributeSuggestions']=!0x0,_0x19b9e2();}['_reduceExistingSuggestions'](_0xe30edd,_0x5e5b8d){if(0x0==_0x5e5b8d['length'])return!0x1;let _0x4deac1=!0x1;for(const _0x5bb38e of _0x5e5b8d){const _0x59d37d=this['_findSuggestions'](_0x5bb38e['range'],'attribute')['filter'](_0x1002c8=>!_0x1002c8['meta']['isNextTo'])['map'](_0x48b27e=>_0x48b27e['suggestion']),_0x438862=_0x65b7cc({'newValue':_0x5bb38e['newValue']});_0x59d37d['filter'](_0x2624c8=>{const [_0x2a0860,_0x4679d4]=_0x2624c8['subType']['split']('|');return _0x2a0860==_0x5bb38e['key']&&_0x4679d4!=_0x438862;})['forEach'](_0x28529b=>{this['_reduceSuggestionAttributeRange'](_0x28529b,_0x5bb38e['range'],_0xe30edd),_0x4deac1=!0x0;});}return _0x4deac1;}['_reduceSuggestionAttributeRange'](_0x30ca84,_0x45b794,_0x502317){const _0x5504ea=_0x30ca84['getFirstRange']()['getDifference'](_0x45b794);0x0!==_0x5504ea['length']?0x1!==_0x5504ea['length']?this['_breakSuggestionMarker'](_0x30ca84,_0x45b794['start'],_0x45b794['end']):this['_setSuggestionRange'](_0x30ca84,_0x5504ea[0x0]):_0x502317['removeMarker'](_0x30ca84['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5c7823){this['_editor']=_0x5c7823,this['_model']=_0x5c7823['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x468414,_0xf8659c,_0x27145d,_0x2a7fbd,_0x1ab793,_0x440345,_0x265263){return new bt(this['_model'],{'type':_0x468414,'subType':_0xf8659c,'id':_0x27145d,'originalSuggestionId':_0x265263,'author':_0x2a7fbd,'creator':_0x2a7fbd,'attributes':_0x1ab793,'onAttributesChange':_0x440345,'onAccept':(..._0x3fedab)=>this['getSuggestionCallback'](_0x468414,_0xf8659c,'accept')(..._0x3fedab),'onDiscard':(..._0x38e86d)=>this['getSuggestionCallback'](_0x468414,_0xf8659c,'discard')(..._0x38e86d)});}['registerCustomCallback'](_0x10b4c3,_0x1a20d6,_0x252613,_0x5dc0a1){const _0x42ee9=_0x10b4c3+':'+_0x1a20d6+':'+_0x252613;this['_customCallbacks']['set'](_0x42ee9,_0x5dc0a1);}['getSuggestionCallback'](_0x36afa5,_0x3bd955,_0x12bcef){const _0x6329e2=_0x36afa5+':'+_0x3bd955+':'+_0x12bcef;return this['_customCallbacks']['get'](_0x6329e2)||this['_defaultCallbacks']['get'](_0x36afa5+':'+_0x12bcef);}['_registerDefaultCallbacks'](){const _0x2ac6d2=()=>!0x1,_0x2deb9f=_0x13fcf1=>{_0x13fcf1['sort']((_0x33a924,_0x139d74)=>_0x33a924['start']['isBefore'](_0x139d74['start'])?0x1:-0x1),this['_model']['change'](_0x2c7776=>{for(const _0x521f83 of _0x13fcf1){let _0x82b47;_0x82b47=_0x521f83['end']['isAtEnd']&&_0x521f83['end']['parent']==_0x521f83['start']['nodeAfter']?_0x2c7776['createSelection'](_0x521f83['start']['nodeAfter'],'on'):_0x2c7776['createSelection'](_0x521f83),this['_model']['deleteContent'](_0x82b47,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1e650d=(_0x5c618a,_0x2d479b)=>{_0x2d479b&&this['_model']['change'](_0x5434ce=>{const {commandName:_0x4a55a2,commandParams:_0x3f9288=[]}=_0x2d479b,_0x406264=_0x5c618a['map'](_0x117add=>(Qe(_0x117add)&&(_0x117add=this['_model']['createRange'](_0x117add['end'])),_0x117add))['filter'](_0x4b8022=>'$graveyard'!==_0x4b8022['root']['rootName']);if(_0x406264['length']<0x1)return;const _0x5a7f29=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2ed4d9=>_0x211ae6['fromRange'](_0x2ed4d9));_0x5434ce['setSelection'](_0x406264);for(const _0x14cc06 of this['_editor']['commands']['commands']())_0x14cc06['refresh']();_0x3f9288['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4a55a2,..._0x3f9288);const _0xbc1830=_0x5a7f29['filter'](_0x5e6ef3=>'$graveyard'!=_0x5e6ef3['root']['rootName']);_0xbc1830['length']>0x0&&_0x5434ce['setSelection'](_0xbc1830);for(const _0x3eeefc of _0x5a7f29)_0x3eeefc['detach']();});},_0x1cf94e=(_0x396e11,_0x2e9ee1)=>0x1==_0x396e11['length']&&0x1==_0x2e9ee1['length']&&_0x396e11[0x0]['end']['isEqual'](_0x2e9ee1[0x0]['start']),_0x50ce97=(_0x24603d,_0x1aaedb,_0xb20660,_0x265989)=>on(_0x24603d,_0x1aaedb,_0xb20660,_0x265989)?[_0x24603d,_0x1aaedb]:on(_0x1aaedb,_0x24603d,_0x265989,_0xb20660)?[_0x1aaedb,_0x24603d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2ac6d2),this['_defaultCallbacks']['set']('insertion:discard',_0x2deb9f),this['_defaultCallbacks']['set']('insertion:join',_0x1cf94e),this['_defaultCallbacks']['set']('insertion:chain',_0x50ce97),this['_defaultCallbacks']['set']('deletion:accept',_0x2deb9f),this['_defaultCallbacks']['set']('deletion:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('deletion:join',_0x1cf94e),this['_defaultCallbacks']['set']('deletion:chain',_0x50ce97),this['_defaultCallbacks']['set']('formatInline:accept',_0x1e650d),this['_defaultCallbacks']['set']('formatInline:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('formatInline:join',_0x1cf94e),this['_defaultCallbacks']['set']('formatInline:chain',_0x2ac6d2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1e650d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2ac6d2),this['_defaultCallbacks']['set']('formatBlock:join',_0x1cf94e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2ac6d2),this['_defaultCallbacks']['set']('attribute:accept',_0x2ac6d2),this['_defaultCallbacks']['set']('attribute:discard',(_0x51eaaf,_0x114183)=>{if(!_0x114183)return;const _0x438e03=this['_editor']['plugins']['get'](_0x2cd1a4);this['_model']['change'](_0x23d14d=>{if(_0x114183['key']==Ke)for(const _0x170169 of _0x51eaaf){const _0x48fd26=_0x170169['start']['nodeAfter'],_0x152c1b=_0x114183['oldValue'];_0x23d14d['rename'](_0x48fd26,_0x152c1b);}else{if(_0x438e03['isBlockAttribute'](_0x114183['key'])){for(const _0x3184e6 of _0x51eaaf)void 0x0!==_0x114183['oldValue']?_0x23d14d['setAttribute'](_0x114183['key'],_0x114183['oldValue'],_0x3184e6['start']['nodeAfter']):_0x23d14d['removeAttribute'](_0x114183['key'],_0x3184e6['start']['nodeAfter']);}else{for(const _0x2b3acf of _0x51eaaf)_0x114183['oldValue']?_0x23d14d['setAttribute'](_0x114183['key'],_0x114183['oldValue'],_0x2b3acf):_0x23d14d['removeAttribute'](_0x114183['key'],_0x2b3acf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1cf94e);}}function qe(_0x559578,_0x31a6ce,_0x559813){for(const _0x54c289 of _0x31a6ce['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x54c289['root']==_0x54c289)return!0x1;if(!_0x559813['containsItem'](_0x54c289))return!0x1;if(_0x559578['isObject'](_0x54c289)||_0x559578['isLimit'](_0x54c289))return!0x0;}return!0x1;}function Qe(_0x30e5c2){return _0x30e5c2['end']['parent']==_0x30e5c2['start']['nodeAfter']&&_0x30e5c2['end']['isAtStart'];}function Ze(_0x3a6968,_0x4a5667,_0x96eaa3,_0x5e51db){const _0x5120f6=_0x2c4ae1=>!_0x2c4ae1['item']['is']('$textProxy')&&!_0x5e51db['isObject'](_0x2c4ae1['item']),_0x5baf2f=_0x3a6968['start']['getLastMatchingPosition'](_0x5120f6),_0x496478=_0x3a6968['end']['getLastMatchingPosition'](_0x5120f6,{'direction':'backward'});return(!_0x3a6968['start']['isEqual'](_0x5baf2f)||!_0x3a6968['end']['isEqual'](_0x496478))&&(_0x5baf2f['isBefore'](_0x496478)?_0x96eaa3['updateMarker'](_0x4a5667,{'range':_0x96eaa3['createRange'](_0x5baf2f,_0x496478)}):_0x96eaa3['removeMarker'](_0x4a5667),!0x0);}function Je(_0x545809){return _0x65b7cc(_0x545809);}function tn(_0x505810){const _0x1363cd=_0x505810['start']['nodeAfter'];return _0x1363cd&&_0x1363cd['is']('element');}function en(_0x1bf3e4){return Qe(_0x1bf3e4)||function(_0x9a8ffa){return _0x9a8ffa['start']['parent']==_0x9a8ffa['end']['nodeBefore']&&_0x9a8ffa['start']['isAtEnd'];}(_0x1bf3e4);}function nn(_0x1c6a57,_0x56c003){try{const _0x2938fb=_0x1c6a57['getRange']();for(const _0x3329aa of _0x56c003)if(_0x1c6a57!==_0x3329aa&&_0x2938fb&&_0x2938fb['isIntersecting'](_0x3329aa['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x5e7547,_0x175a85){return null==_0x5e7547['end']['nodeBefore']&&_0x5e7547['end']['parent']==_0x5e7547['start']['nodeAfter']?rn(_0x5e7547['start']['nodeAfter'],_0x175a85):_0x5e7547;}function rn(_0x1a87e3,_0x525e11){const _0x71aff7=_0x525e11['schema']['isObject'](_0x1a87e3)||_0x525e11['schema']['isSelectable'](_0x1a87e3);return _0x525e11['createRange'](_0x525e11['createPositionAt'](_0x1a87e3,'before'),_0x71aff7?_0x525e11['createPositionAfter'](_0x1a87e3):_0x525e11['createPositionAt'](_0x1a87e3,'end'));}function on(_0x208fa2,_0x39c3e7,_0x540365,_0x3f53e8){return!!an(_0x208fa2,_0x39c3e7)&&_0x540365['end']['isEqual'](_0x3f53e8['start']);}function an(_0x6fa2b4,_0x508494){if(!_0x6fa2b4['_isDataLoaded']||!_0x508494['_isDataLoaded'])return!0x1;const _0x4f152a=new Set(Object['keys'](_0x6fa2b4['attributes'])),_0x1a20f1=new Set(Object['keys'](_0x508494['attributes']));if(_0x4f152a['delete']('groupId'),_0x1a20f1['delete']('groupId'),0x0==_0x4f152a['size']&&0x0==_0x1a20f1['size'])return!0x0;if(_0x4f152a['size']!=_0x1a20f1['size'])return!0x1;const _0x39e049={..._0x6fa2b4['attributes']},_0x26c816={..._0x508494['attributes']};return delete _0x39e049['groupId'],delete _0x26c816['groupId'],JSON['stringify'](_0x39e049)==JSON['stringify'](_0x26c816);}function cn(_0xd62aad,_0x526397){const _0x1d45a5=ln(_0xd62aad['attributes']),_0x21872e=ln(_0x526397);if(!_0xd62aad['_isDataLoaded'])return!0x1;for(const _0x1b6cda of Object['keys'](_0x21872e))if(!st(_0x1d45a5[_0x1b6cda],_0x21872e[_0x1b6cda]))return!0x1;return!0x0;}function ln(_0x4bcea4){const _0x5777d1=Object['assign']({},_0x4bcea4);return delete _0x5777d1['skipNestingCheck'],delete _0x5777d1['tablePasteChainId'],_0x5777d1;}function un(_0x1eb0ee){return _0x1eb0ee['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1f2d5b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xd74bb1,_0x16bd61,_0x31fb46,_0x300629){super(),this['model']=_0x16bd61,this['view']=_0x31fb46,this['commentThreadController']=_0x300629,this['_editor']=_0xd74bb1,this['_acceptCommand']=_0xd74bb1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xd74bb1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27333e,_0x284faf)=>_0x27333e||_0x284faf),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x364ad7=>_0x364ad7&&this['_editor']['model']['canEditAt'](_0x16bd61['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x501a53=>_0x501a53&&this['_editor']['model']['canEditAt'](_0x16bd61['getRanges']())),this['_pendingAction']=null,_0x31fb46['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31fb46,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31fb46,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31fb46,'change:isDirty',()=>{_0x31fb46['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 _0x1a0bb7=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a0bb7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x2d90fc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x38fadc,_0x4b7720,_0x34cc78,_0x4ec647){super(_0x38fadc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x48ee17(_0x38fadc,At(_0x38fadc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4b7720['authoredAt']),this['bind']('authoredAt')['to'](_0x4b7720),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',_0x4b7720,'authoredAt',this,'descriptionParts',(_0x395c55,_0x5a0d4a,_0x23902a)=>{const _0x13f689=_0x23902a['map'](_0x1fd55f=>gt(_0x1fd55f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x395c55-0x1,_0x4b7720['author']['name'],_0x5a0d4a?_0x4ec647['formatDateTime'](_0x5a0d4a):'',new DOMParser()['parseFromString'](_0x13f689,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20ed56(),this['focusTracker']=new _0x32a67d(),this['keystrokes']=new _0x262fa2(),this['focusCycler']=new _0xee41c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11deb3=>_0x11deb3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4b7720,this['_localUser']=_0x34cc78,this['_config']=_0x4ec647,_0x4ec647['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2800ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x170d55}=this['_config'];this['commentsListView']=new _0x170d55(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',_0x1097fe=>_0x1097fe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4b0245,_0x3d69ac)=>_0x4b0245||!!_0x3d69ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3efbcc}=this['_config'],_0x383c23=new _0x3efbcc(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x57b855=_0x383c23['commentInputView'];return _0x383c23['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x57b855,'value',(_0x1b1974,_0xa3a849,_0xeb2410)=>!!_0xeb2410||_0x1b1974&&!_0xa3a849),_0x57b855['on']('submit',(_0x38bd20,_0x179f07)=>{this['fire']('addComment',_0x179f07),_0x57b855['editor']['setData']('');}),_0x57b855['on']('cancel',()=>this['focus']()),_0x57b855['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x383c23;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x3fffab,_0x2f28ab,_0x2d52ef,_0x6f5d1d){super(_0x3fffab,_0x2f28ab,_0x2d52ef,_0x6f5d1d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5269e4=>_0x5269e4&&_0x5269e4[0x0]?_0x5269e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x100095,_0x5b549c)=>{let _0x4494b9='';for(const _0x486c1f of _0x100095)_0x4494b9+='<p>'+gt(_0x486c1f['content'],_0x486c1f['color'])+'</p>';return _0x5b549c?_0x4494b9:_0x2fbd2c(_0x4494b9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6f5d1d['SuggestionView'](_0x3fffab,_0x2f28ab,{'formatDateTime':_0x6f5d1d['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 _0xc05f5a=this['bindTemplate'],_0x1f5058=[this['suggestionView']];return this['commentsListView']&&_0x1f5058['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f5058['push'](this['commentThreadInputView']),_0x1f5058['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xc05f5a['if']('isActive','ck-suggestion-wrapper--active'),_0xc05f5a['to']('type',_0x39eb33=>'ck-suggestion-'+_0x39eb33),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':_0xc05f5a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f5058};}['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 gn extends _0x2d90fc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x505fe1,_0x2a7648,_0x14741c){super(_0x505fe1),this['_model']=_0x2a7648,this['_config']=_0x14741c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2a7648),this['acceptButton']=this['_createButton'](At(_0x505fe1,'Accept\x20suggestion'),_0x3b242e,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x505fe1,'Discard\x20suggestion'),_0x4d8886,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x343dc5(_0x505fe1,_0x2a7648['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20ed56([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x32a67d(),this['keystrokes']=new _0x262fa2(),this['focusCycler']=new _0xee41c2({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2c95d4=>_0x2c95d4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x7cb064=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x7cb064['innerHTML']=this['description'],this['on']('change:description',(_0x575f93,_0x32342f,_0x177819)=>{_0x7cb064['innerHTML']=_0x177819;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3cfb0a=this['bindTemplate'],_0x75da8c=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x3cfb0a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3cfb0a['to']('authoredAt',_0x54373d=>this['_config']['formatDateTime'](_0x54373d))}]}]},{'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']&&_0x75da8c['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':_0x75da8c}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):At(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?At(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):At(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3d3c8a,_0x19700d,_0x4743b6,_0x1433aa,_0x347b44){const _0x2fa047=new _0x56cf4e(this['locale']);return _0x2fa047['set']({'label':_0x3d3c8a,'icon':_0x19700d,'tooltip':!0x0,'tooltipPosition':_0x347b44}),_0x2fa047['extendTemplate']({'attributes':{'class':_0x4743b6}}),_0x2fa047['on']('execute',()=>{this['fire'](_0x1433aa,this['_model']['id']);}),_0x2fa047;}['_setupKeyboardNavigation'](){const _0xca82b9=this['element'];this['keystrokes']['listenTo'](_0xca82b9);for(const _0x513212 of this['focusables'])this['focusTracker']['add'](_0x513212['element']),this['keystrokes']['listenTo'](_0x513212['element']);this['keystrokes']['set']('enter',(_0x530316,_0x29fed3)=>{_0xca82b9===_0x530316['target']&&(this['focusCycler']['focusFirst'](),_0x29fed3());}),this['keystrokes']['set']('esc',(_0x5052f3,_0x509137)=>{_0xca82b9!==_0x5052f3['target']&&(this['focus'](),_0x509137());});}}class mn extends _0x48a7fd{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x4031ac,_0x5e2282,_0x271cdf,_0x2a166b];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558ee0){super(_0x558ee0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x14d62b=this['editor']['config'];_0x14d62b['define']('trackChanges.SuggestionThreadView',fn),_0x14d62b['define']('trackChanges.SuggestionView',gn),_0x14d62b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x14d62b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x37d608,_0x4c1003){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xc32e3,_0x291876]of this['_handleControllerBuffer']){const _0xb288f6=this['_suggestionToController']['has'](_0xc32e3);_0xb288f6||_0x291876?_0xb288f6&&_0x291876&&this['_destroyController'](_0xc32e3):this['_initializeController'](_0xc32e3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2a166b)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x37d608,_0x4c1003);}['init'](){const _0x1ddcf1=this['editor'],_0x311d79=_0x1ddcf1['plugins']['get'](Xe),_0x47a8fc=_0x1ddcf1['plugins']['get'](_0x271cdf),_0x4b344c=_0x1ddcf1['plugins']['get'](_0x2a166b),_0x3ddac2=_0x1ddcf1['plugins']['get'](_0x5e2282);this['_addUIComponentsToFactory'](),_0x4b344c['addSourceCollector'](()=>{const _0x3a2b09=[];for(const [_0x995069,_0x3d115d]of Array['from'](this['_suggestionToController'])){const _0x172a74=_0x995069['getAllAdjacentSuggestions'](),_0x3ed378=[];for(const _0x4826dd of _0x172a74){if(!_0x4826dd['isInContent'])continue;if(_0x4826dd['isMultiRange']){_0x3ed378['push'](..._0x4826dd['getRanges']());continue;}const _0x266e9c=_0x4826dd['getFirstRange']();if(_0x3ed378['length']>0x0){const _0x2f3897=_0x3ed378[0x0]['getJoined'](_0x266e9c);if(_0x2f3897){_0x3ed378[0x0]=_0x2f3897;continue;}}_0x3ed378['push'](_0x266e9c);}_0x3a2b09['push']([_0x3d115d['view'],_0x3ed378]);}return _0x3a2b09;}),this['listenTo'](_0x311d79,'suggestionLoaded',(_0x1af7e2,_0x23819d)=>{this['listenTo'](_0x23819d,'change:previous',(_0x31652b,_0x5ee7e2,_0x1f86db,_0x3bc940)=>{_0x23819d['isInContent']&&(null==_0x1f86db?(this['_updateController'](_0x3bc940['head']),this['_handleSuggestionControllerDelayed'](_0x23819d,!0x1)):(this['_updateController'](_0x1f86db['head']),null==_0x3bc940&&this['_handleSuggestionControllerDelayed'](_0x23819d,!0x0)));}),null!==_0x23819d['previous']?this['_updateController'](_0x23819d['head']):this['_handleSuggestionControllerDelayed'](_0x23819d,!0x1);}),this['listenTo'](_0x311d79,'suggestionUnloaded',(_0x3cad28,_0x448f86,_0x3cdca8)=>{this['stopListening'](_0x448f86,'change:previous'),this['_handleControllerBuffer']['delete'](_0x448f86),this['_suggestionToController']['has'](_0x448f86)&&this['_destroyController'](_0x448f86),_0x3cdca8&&this['_updateController'](_0x3cdca8['head']);}),this['listenTo'](_0x311d79,'suggestionChanged',(_0x4adbc7,_0x251634)=>{this['_updateController'](_0x251634);}),this['listenTo'](_0x47a8fc,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ddac2,'addComment',(_0xb1bc11,{threadId:_0xf61dca,isFromAdapter:_0xd1ae3c})=>{if(_0xd1ae3c||!_0x311d79['hasSuggestion'](_0xf61dca))return;const _0x4a7963=_0x311d79['getSuggestion'](_0xf61dca);this['_suggestionToController']['get'](_0x4a7963)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x16b7ba=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f88b7;for(const _0x45e519 in _0x16b7ba){const _0x2c0f86=_0x45e519,_0x32c626=_0x16b7ba[_0x2c0f86];if('trackChangesLicenseKeyValid'==_0x32c626||'trackChangesLicenseKeyInvalid'==_0x32c626||'trackChangesLicenseKeyExpired'==_0x32c626||'trackChangesLicenseKeyDomainLimit'==_0x32c626||'trackChangesLicenseKeyNotAllowed'==_0x32c626||'trackChangesLicenseKeyEvaluationLimit'==_0x32c626||'trackChangesLicenseKeyUsageLimit'==_0x32c626){delete _0x16b7ba[_0x2c0f86],_0x1f88b7=_0x32c626,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1f88b7&&_0x16b7ba['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2f66ad){const _0xc230c8=this['_suggestionToController']['get'](_0x2f66ad);if(!_0xc230c8)return null;return this['editor']['plugins']['get'](_0x271cdf)['getByInnerView'](_0xc230c8['view'])||null;}['getSuggestionForAnnotation'](_0x389273){const _0x9e2dfb=this['_viewToController']['get'](_0x389273['innerView']);return _0x9e2dfb?_0x9e2dfb['model']:null;}['_refreshActiveMarkers'](){const _0x3cddb9=this['editor']['plugins']['get'](_0x271cdf),_0x456933=this['editor']['plugins']['get'](Xe),_0x5585b0=Array['from'](_0x3cddb9['activeAnnotations'],_0x4530ab=>_0x4530ab['innerView'])['filter'](_0x15ecae=>this['_viewToController']['has'](_0x15ecae)),_0x5741ea=[];for(const _0xa4f80b of _0x5585b0){const _0xa4ba88=this['_viewToController']['get'](_0xa4f80b)['model']['getAllAdjacentSuggestions']();_0x5741ea['push'](..._0xa4ba88['reduce']((_0x98bc49,_0x19aa33)=>[..._0x98bc49,..._0x19aa33['getMarkerNames']()],[]));}_0x456933['activeMarkers']=_0x5741ea;}['_addUIComponentsToFactory'](){const _0x2700dd=this['editor'],_0x54c9cb=_0x2700dd['locale'],_0x3280aa=At(_0x54c9cb,'Track\x20changes'),_0xdfdc05=new _0x20fd31([{'type':'switchbutton','model':new _0x21e271({'withText':!0x0,'isToggleable':!0x0,'label':_0x3280aa,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x2700dd['plugins']['has']('TrackChangesPreview')&&_0xdfdc05['addMany']([{'type':'separator'},{'type':'button','model':new _0x21e271({'withText':!0x0,'label':At(_0x54c9cb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x59aca4 of _0xdfdc05)if(En(_0x59aca4)){const _0x207a14=_0x2700dd['commands']['get'](_0x59aca4['model']['commandName']);_0x59aca4['model']['bind']('isOn','isEnabled')['to'](_0x207a14,'value','isEnabled');}_0x2700dd['ui']['componentFactory']['add']('trackChanges',_0x43b4fa=>this['_createToolbarButton'](_0x43b4fa,_0xdfdc05,_0x3280aa)),_0x2700dd['ui']['componentFactory']['add']('menuBar:trackChanges',_0x160691=>this['_createMenuBarMenu'](_0x160691,_0xdfdc05,_0x3280aa));}['_createToolbarButton'](_0x2d297c,_0x4baf32,_0x4f9a74){const _0x448d55=_0x68695f(_0x2d297c,_0x19fadc),_0x16e0da=this['editor']['commands']['get']('trackChanges');_0x448d55['buttonView']['set']({'tooltip':_0x4f9a74,'label':_0x4f9a74,'icon':_0x30fa92}),_0x448d55['buttonView']['bind']('isOn')['to'](_0x16e0da,'value'),_0x448d55['buttonView']['on']('execute',()=>{_0x16e0da['execute'](),this['editor']['editing']['view']['focus']();}),_0x24cf66(_0x448d55,_0x4baf32,{'role':'menu'});const _0x5f3b5b=[];for(const _0x52124e of _0x4baf32)En(_0x52124e)&&_0x5f3b5b['push'](this['editor']['commands']['get'](_0x52124e['model']['commandName']));const _0x932489=_0x448d55['buttonView'];return _0x932489['actionView']['unbind']('isEnabled'),_0x932489['arrowView']['unbind']('isEnabled'),_0x932489['actionView']['bind']('isEnabled')['to'](_0x16e0da,'isEnabled'),_0x932489['arrowView']['bind']('isEnabled')['toMany'](_0x5f3b5b,'isEnabled',(..._0x27090e)=>_0x27090e['some'](_0x37cada=>_0x37cada)),_0x448d55['on']('execute',_0x10fcce=>{this['editor']['execute'](_0x10fcce['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x448d55;}['_createMenuBarMenu'](_0x190aa0,_0x1e2faf,_0x408f04){const _0x347562=new _0x2f3156(_0x190aa0),_0x87262e=this['editor']['commands']['get']('trackChanges');_0x347562['buttonView']['set']({'label':_0x408f04,'icon':_0x30fa92});const _0x4b7b1a=new _0x1f80df(_0x190aa0);for(const _0x568d3d of _0x1e2faf){if('separator'==_0x568d3d['type']){_0x4b7b1a['items']['add'](new _0x4079d5(_0x190aa0));continue;}const _0x285376=new _0x2f6d9d(_0x190aa0,_0x347562),_0x2a96c2=new _0x285b3c(_0x190aa0),_0x41e814=_0x568d3d['model'];_0x2a96c2['bind'](...Object['keys'](_0x41e814))['to'](_0x41e814),_0x2a96c2['delegate']('execute')['to'](_0x347562),_0x2a96c2['on']('execute',()=>{this['editor']['execute'](_0x41e814['commandName']),this['editor']['editing']['view']['focus']();}),_0x285376['children']['add'](_0x2a96c2),_0x4b7b1a['items']['add'](_0x285376);}return _0x347562['bind']('isEnabled')['to'](_0x87262e,'isEnabled'),_0x347562['panelView']['children']['add'](_0x4b7b1a),_0x347562;}['_initializeController'](_0x433de2){const _0x203a83=this['editor'],_0x45ef3e=_0x203a83['config'],_0x6aac6b=_0x203a83['plugins']['get'](_0x271cdf),_0x139c6e=_0x203a83['plugins']['get'](_0x5e2282),_0x67e304=_0x203a83['plugins']['get'](_0x2a166b),_0x14f0d3=_0x203a83['plugins']['get'](_0x4031ac)['me'],_0xc069e3=_0x45ef3e['get']('trackChanges')['SuggestionThreadView'],_0x537810=_0x45ef3e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c5b1d,CommentThreadInputView:_0x17330a}=_0x203a83['plugins']['get']('CommentsUI');let _0x500122,_0x49d92a,_0xf54345;this['_annotationViews']['has'](_0x433de2['id'])?(_0x49d92a=this['_annotationViews']['get'](_0x433de2['id']),_0x500122=_0x49d92a['mainView']):(_0x500122=new _0xc069e3(_0x203a83['locale'],_0x433de2,_0x14f0d3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x45ef3e['get']('comments.editorConfig'),'licenseKey':_0x45ef3e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x45ef3e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x45ef3e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x45ef3e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5aa53a(_0x45ef3e['get']('locale'),_0x203a83['locale']),'CommentView':_0x45ef3e['get']('comments')['CommentView'],'CommentsListView':_0x2c5b1d,'CommentThreadInputView':_0x17330a,'SuggestionView':_0x537810}),_0x500122['suggestionView']['acceptButton']['on']('execute',()=>{_0x203a83['editing']['view']['focus']();}),_0x500122['suggestionView']['discardButton']['on']('execute',()=>{_0x203a83['editing']['view']['focus']();}),_0x49d92a=_0x6aac6b['createAnnotationView'](this['editor']['locale'],_0x500122),_0x49d92a['bind']('isDirty')['to'](_0x500122,'isDirty'),_0x49d92a['bind']('length')['to'](_0x500122),_0x49d92a['bind']('type')['to'](_0x500122,'type',_0x1e6579=>'suggestion-'+_0x1e6579),_0x500122['on']('escape',()=>{_0xf54345['fire']('escape');}),this['_annotationViews']['set'](_0x433de2['id'],_0x49d92a));const _0x58bfa6=_0x139c6e['createCommentThreadController'](_0x433de2['commentThread'],_0x500122),_0x5a4caf=new hn(_0x203a83,_0x433de2,_0x500122,_0x58bfa6),_0x34e5a8=_0x433de2['getAllAdjacentSuggestions']()['filter'](_0x4d2f98=>_0x4d2f98['isInContent']);_0x500122['descriptionParts']=_0x203a83['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x34e5a8),this['_suggestionToController']['set'](_0x433de2,_0x5a4caf),this['_viewToController']['set'](_0x500122,_0x5a4caf);const _0x314ccb=()=>{const _0x19663f=[],_0x4cc6b9=_0x433de2['getAllAdjacentSuggestions']()['filter'](_0x32365d=>_0x32365d['isInContent']);for(const _0x5a860e of _0x4cc6b9)_0x19663f['push'](..._0x5a860e['getMarkers']());return _0x1f97dd(_0x203a83['editing'],_0x19663f);};_0xf54345=_0x6aac6b['createAnnotation']({'view':_0x49d92a,'target':_0x314ccb,'type':()=>'suggestion-'+_0x5a4caf['view']['type'],'isVisible':!!_0x314ccb()}),_0x139c6e['_bindAnnotationToEditors'](_0x500122,_0xf54345),_0x6aac6b['add'](_0xf54345),_0x67e304['registerAnnotation'](_0xf54345);}['_destroyController'](_0x25cdce){const _0x3fab4e=this['editor']['plugins']['get'](_0x5e2282),_0x1e56a7=this['editor']['plugins']['get'](_0x271cdf),_0x495734=this['_suggestionToController']['get'](_0x25cdce),_0x2a2e0f=_0x495734['view'],_0x1a6c50=_0x1e56a7['getByInnerView'](_0x2a2e0f);_0x3fab4e['_unbindEditors'](_0x2a2e0f),_0x1a6c50&&_0x1e56a7['remove'](_0x1a6c50),this['_suggestionToController']['delete'](_0x25cdce),this['_viewToController']['delete'](_0x2a2e0f),_0x495734['destroy']();}['_updateController'](_0x1a727c){if(!_0x1a727c['isInContent']||!this['_suggestionToController']['has'](_0x1a727c))return;const _0x2b7cbc=this['editor']['plugins']['get'](Xe),_0x328dfc=this['_suggestionToController']['get'](_0x1a727c),_0x2be80d=_0x1a727c['getAllAdjacentSuggestions']();_0x328dfc['view']['descriptionParts']=_0x2b7cbc['descriptionFactory']['getDescriptions'](_0x2be80d);}['destroy'](){for(const _0x546331 of this['_suggestionToController']['keys']())this['_destroyController'](_0x546331);for(const _0x126d3a of this['_annotationViews']['values']())_0x126d3a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x2d8a02){return'model'in _0x2d8a02;}class Tn extends _0x48a7fd{static get['requires'](){return[Xe,mn,_0x86a160];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xf4933f){this['editor']['plugins']['get'](Xe)['adapter']=_0xf4933f;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x40cfc1){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x40cfc1);}['getSuggestions']({skipNotAttached:_0x4b8ae9=!0x1,toJSON:_0x26516e=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x4b8ae9,'toJSON':_0x26516e});}['getSuggestion'](_0x1a01e1){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x1a01e1);}}const _n=['Pagination'];class pn extends _0x48a7fd{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1b1322=this['editor'];if(_0x1b1322['config']['define']('trackChangesData.editorCreator',_0x19c861=>{const _0x23de59=_0x1b1322['model']['document']['getRootNames']()['reduce']((_0x5750e0,_0x4f952a)=>(_0x5750e0[_0x4f952a]='',_0x5750e0),{});return _0x1b1322['constructor']['create'](_0x23de59,_0x19c861);}),'function'!=typeof _0x1b1322['config']['get']('trackChangesData')['editorCreator'])throw new _0x2f698f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xa6de20){return bn(this['editor'],!0x0,_0xa6de20);}['getDataWithDiscardedSuggestions'](_0x2950ca){return bn(this['editor'],!0x1,_0x2950ca);}}class Ln extends _0x48a7fd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4eca76){function _0x248398(_0x29e1c1){return _0x29e1c1['map'](_0x642fd7=>String['fromCharCode'](_0x642fd7))['join']('');}super(_0x4eca76),this['result']='end',_0x4eca76[_0x248398([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x248398([0x76,0x69,0x65,0x77])][_0x248398([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x248398([0x61,0x75,0x74,0x6f]),_0x4eca76[_0x248398([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x248398([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x248398([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x248398([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x248398([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function In(_0xf0ccb4){return void 0x0!==_0xf0ccb4['getRootsAttributes'];}async function bn(_0xbd9d64,_0x4610db,_0x17a266){const _0x5238cf=_0x294bf3(_0xbd9d64,_n);if(_0x5238cf['plugins']['push'](Xe,Ln),In(_0xbd9d64)){_0x5238cf['roots']=Object['create'](null);for(const _0x120f7d of _0xbd9d64['model']['document']['getRootNames']())_0x5238cf['roots'][_0x120f7d]={'modelAttributes':_0xbd9d64['getRootAttributes'](_0x120f7d)};}const _0x3b146d=document['createDocumentFragment'](),_0x4e8471=_0xbd9d64['config']['get']('trackChangesData')['editorCreator'],_0x54104f=await _0x4e8471(_0x5238cf,()=>function(_0x1a6e6e){const _0x3e04bd=document['createElement']('div');return _0x1a6e6e['appendChild'](_0x3e04bd),_0x3e04bd;}(_0x3b146d));!function(_0x2ef6e8,_0x4fa8ba){const _0x5cd41a=_0x2ef6e8['model']['document']['getRootNames']()['reduce']((_0x2c56a7,_0x179b3b)=>(_0x2c56a7[_0x179b3b]=_0x2ef6e8['data']['get']({'rootName':_0x179b3b}),_0x2c56a7),{}),_0x3f3895=_0x2ef6e8['plugins']['get']('Users')['users']['map'](_0x32ef69=>({'id':_0x32ef69['id'],'name':_0x32ef69['name']})),_0x4ee942=_0x2ef6e8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x321e82=_0x2ef6e8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f5923=_0x4fa8ba['plugins']['get']('Users'),_0x48d579=_0x4fa8ba['plugins']['get']('TrackChangesEditing'),_0x4fc112=_0x4fa8ba['plugins']['get']('CommentsRepository');for(const _0x132d6a of _0x4fc112['getCommentThreads']())_0x132d6a['remove']();for(const _0x13fa8a of _0x3f3895)_0x2f5923['getUser'](_0x13fa8a['id'])||_0x2f5923['addUser'](_0x13fa8a);_0x2f5923['me']||_0x2f5923['useAnonymousUser']();for(const _0x1eefac of _0x321e82)_0x4fc112['addCommentThread'](_0x1eefac);for(const _0x230b51 of _0x4ee942)_0x48d579['addSuggestionData'](_0x230b51);_0x4fa8ba['data']['set'](_0x5cd41a);}(_0xbd9d64,_0x54104f),_0x54104f['execute'](_0x4610db?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ad58c=In(_0x54104f)?_0x54104f['getFullData'](_0x17a266):_0x54104f['data']['get'](_0x17a266);return await _0x54104f['destroy'](),_0x2ad58c;}class An extends _0x2d90fc{['options'];constructor(_0x36a9d5,_0x520a92){super(_0x36a9d5),this['options']=_0x520a92,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x48ff94,_0x87689c){if(!this['element'])return;const _0xb0a280=[];for(const [_0x126266,_0x4ae33c]of _0x48ff94){const _0x127a17=document['createElement']('div');_0x127a17['setAttribute']('data-ck-root-name',_0x126266),_0x127a17['className']=_0x4ae33c['classes']+'\x20ck-track-changes-preview__root-container',_0x127a17['innerHTML']=_0x4ae33c['content'],_0xb0a280['push'](_0x127a17);}_0x87689c(this['element'],_0xb0a280),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4b255d{constructor(_0x3b5d82){super(_0x3b5d82),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4b9923=this['editor'],_0x49511e=_0x4b9923['locale'],_0x1617e7=_0x4b9923['plugins']['get']('Dialog');let _0x4017bc;const _0x5bc772=function(_0x83fd2f){const _0x58223f={};if('editables'in _0x83fd2f['ui']['view']){for(const [_0x4f9aaf,_0x4850ef]of Object['entries'](_0x83fd2f['ui']['view']['editables']))_0x58223f[_0x4f9aaf]=_0x4850ef['element'];}else _0x58223f[_0x83fd2f['model']['document']['getRootNames']()[0x0]]=_0x83fd2f['ui']['view']['editable']['element'];return _0x58223f;}(_0x4b9923),_0x35add9=function(_0x2ea78e){let _0x52a505=0x0;for(const _0x38fd35 of Object['values'](_0x2ea78e))_0x52a505=Math['max'](_0x52a505,_0x38fd35['getBoundingClientRect']()['width']);let _0x5772ee=0x0;for(const _0xe984c5 of Object['values'](_0x2ea78e))_0x5772ee+=_0xe984c5['getBoundingClientRect']()['height'];const _0x14d092=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x313304=Math['min'](_0x5772ee,_0x14d092);return{'width':_0x52a505,'height':_0x313304};}(_0x5bc772);_0x1617e7['show']({'id':'finalContentPreview','title':At(_0x49511e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x49511e,{'dialogRects':_0x35add9}),'onHide':()=>{_0x4017bc['detachFromDom']();},'onShow':()=>{_0x4b9923['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x19bc1c=>{const _0x2a0ce6=this['_standarizeRootsData'](_0x19bc1c,_0x4b9923,_0x5bc772);_0x1617e7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2a0ce6,_0x4b9923['config']['get']('trackChanges.preview.renderFunction'));}),_0x4017bc=new _0x37230f(_0x49511e,[_0x1617e7['view']]),_0x4017bc['attachToDom'](),_0x4017bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4b9923['once']('destroy',()=>{_0x4017bc['detachFromDom']();});const _0x2b7337=_0x1617e7['view']['headerView']['class'];_0x1617e7['view']['headerView']['class']=_0x2b7337?_0x2b7337+'\x20ck-reset_all':'ck-reset_all',_0x1617e7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1617e7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3c6152=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x20a4a4=_0x3c6152['previewMode'],_0x26d34f={};if('$labels'===_0x20a4a4){for(const _0x2af860 of _0x3c6152['getMergeFieldsIds']())_0x26d34f[_0x2af860]=_0x3c6152['getLabel'](_0x2af860)||_0x2af860;}else{const _0x10db72='$defaultValues'===_0x20a4a4?_0x3c6152['getDefaultValues']():_0x3c6152['getDataSetValues'](_0x20a4a4,!0x0);for(const _0x3c6a5f of Object['entries'](_0x10db72)){const [_0x54f8b9,_0x492daa]=_0x3c6a5f;_0x26d34f[_0x54f8b9]=null!==_0x492daa?_0x492daa:_0x3c6152['getLabel'](_0x54f8b9)||_0x54f8b9;}}return{'mergeFieldsData':_0x26d34f};}['_standarizeRootsData'](_0x3060ce,_0x9b56c9,_0x27e498){let _0x38efa7;if('string'==typeof _0x3060ce){const _0x42e3f3=_0x9b56c9['model']['document']['getRootNames']()[0x0];_0x38efa7={[_0x42e3f3]:_0x3060ce};}else _0x38efa7=_0x3060ce;const _0x2a53a4=this['_fixMediaEmbeds'](_0x38efa7,_0x9b56c9),_0x19b0af=function(_0x55b369,_0x350f4f){for(const [_0x23194d,_0x36414f]of _0x55b369)_0x36414f['classes']=_0x350f4f[_0x23194d]['classList']['value']['replace']('ck-focused','');return _0x55b369;}(this['_sortRoots'](_0x9b56c9)['reduce']((_0x1a4063,_0x57b7b3)=>(_0x1a4063['push']([_0x57b7b3,{'content':_0x2a53a4[_0x57b7b3],'classes':''}]),_0x1a4063),[]),_0x27e498);return _0x19b0af;}['_fixMediaEmbeds'](_0x3587c4,_0x28ae64){if(!_0x28ae64['plugins']['has']('MediaEmbedEditing'))return _0x3587c4;const _0x213afd=_0x28ae64['plugins']['get']('MediaEmbedEditing');for(const [_0x22346b,_0x864831]of Object['entries'](_0x3587c4)){const _0x421ee1=document['createElement']('div');_0x421ee1['innerHTML']=_0x864831,(_0x421ee1['querySelectorAll']('figure.media')['forEach'](_0x3b8604=>{const _0x2819bc=_0x3b8604['querySelector']('oembed');if(_0x2819bc){const _0x32c613=_0x2819bc['getAttribute']('url');if(_0x32c613){const _0x4c79e2=_0x213afd['registry']['getMediaViewElement'](new et(_0x28ae64['editing']['view']['document']),_0x32c613,{'elementName':'','renderForEditingView':!0x0}),_0x568e51=document['createElement']('div');_0x568e51['classList']['add']('ck-media__wrapper'),_0x4c79e2['render'](_0x568e51,_0x28ae64['editing']['view']['domConverter']),_0x2819bc['replaceWith'](_0x568e51);}}}),_0x3587c4[_0x22346b]=_0x421ee1['innerHTML']);}return _0x3587c4;}['_sortRoots'](_0x2a5fed){if(!function(_0x5f45c9){return void 0x0!==_0x5f45c9['getRootsAttributes'];}(_0x2a5fed))return _0x2a5fed['model']['document']['getRootNames']();const _0x70a80a=[],_0x42798f=new Map();for(const _0x412e91 of _0x2a5fed['model']['document']['getRootNames']()){const _0x8ea3f3=_0x2a5fed['editing']['view']['getDomRoot'](_0x412e91)['getClientRects']()['item'](0x0);_0x70a80a['push'](_0x412e91),_0x42798f['set'](_0x412e91,_0x8ea3f3);}return _0x70a80a['sort']((_0x3ea0f0,_0xc11fdc)=>{const _0x4f12aa=_0x42798f['get'](_0x3ea0f0),_0x231a10=_0x42798f['get'](_0xc11fdc);return _0x4f12aa['y']-_0x231a10['y']||_0x4f12aa['x']-_0x231a10['x'];}),_0x70a80a;}}class Cn extends _0x48a7fd{static get['requires'](){return[pn,_0x3e94ca];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ec0e2){super(_0x5ec0e2),_0x5ec0e2['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x5ec0e2['config']['define']('trackChanges.preview.renderFunction',(_0x174ccf,_0x57090f)=>{for(const _0x3489db of _0x57090f)_0x174ccf['appendChild'](_0x3489db);});}}export{dt as AcceptSuggestionCommand,dn as BaseSuggestionThreadView,ft as DiscardSuggestionCommand,Lt as ExecuteOnAllSuggestionsCommand,It as ExecuteOnSelectedSuggestionsCommand,kn as PreviewFinalContentCommand,bt as Suggestion,kt as SuggestionDescriptionFactory,fn as SuggestionThreadView,gn as SuggestionView,Tn as TrackChanges,ht as TrackChangesCommand,pn as TrackChangesData,Ln as TrackChangesDataGetter,Xe as TrackChangesEditing,Cn as TrackChangesPreview,mn as TrackChangesUI};
|