@ckeditor/ckeditor5-track-changes 48.0.0-alpha.7 → 48.0.0-alpha.9
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
|
-
_0x9eee31(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x304708,_0x2e7c21){super(),this['id']=_0x2e7c21['id'],this['type']=_0x2e7c21['type'],this['subType']=_0x2e7c21['subType']||null,this['author']=_0x2e7c21['author'],this['creator']=_0x2e7c21['creator']||_0x2e7c21['author'],this['isExternal']=Boolean(_0x2e7c21['attributes']&&_0x2e7c21['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x2e7c21['originalSuggestionId']||null,this['_model']=_0x304708,this['_onAccept']=_0x2e7c21['onAccept'],this['_onDiscard']=_0x2e7c21['onDiscard'],this['_onAttributesChange']=_0x2e7c21['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x2e7c21['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 _0x3463a9=this;for(;_0x3463a9['previous'];)_0x3463a9=_0x3463a9['previous'];return _0x3463a9;}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'](_0x5d9fef){this['_markerNames']['add'](_0x5d9fef);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44db2e=>this['_model']['markers']['get'](_0x44db2e))['filter'](_0x520c85=>_0x520c85);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x598652=>{for(const _0x584667 of this['getMarkers']())_0x598652['removeMarker'](_0x584667);}),this['_markerNames']['clear']();}['removeMarker'](_0x6a011c){this['_model']['change'](_0x2ea60f=>{_0x2ea60f['removeMarker'](_0x6a011c);}),this['_markerNames']['delete'](_0x6a011c);}['addRange'](_0x4f5c12){const _0x5f161c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x5f161c),this['_model']['change'](_0x2a9f12=>{_0x2a9f12['addMarker'](_0x5f161c,{'range':_0x4f5c12,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x591254){for(const _0x347e2b of this['getRanges']())if(_0x347e2b['isIntersecting'](_0x591254))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1c8134=>_0x1c8134['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1d3868,_0x44dd1a)=>[..._0x1d3868,..._0x44dd1a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4bcbb3=this['getRanges']();if(0x1!=_0x4bcbb3['length'])return null;const _0x44b71d=_0x4bcbb3[0x0],_0x28ab05=_0x44b71d['start']['nodeAfter'],_0x40a998=_0x44b71d['end']['nodeBefore'];return _0x28ab05 instanceof _0x1f0f7b?_0x28ab05!=_0x40a998?null:_0x28ab05: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 _0x2d969=[];let _0x1e02ff=this['head'];for(;_0x1e02ff;)_0x2d969['push'](_0x1e02ff),_0x1e02ff=_0x1e02ff['next'];return _0x2d969;}['setAttribute'](_0x17af7b,_0x253125){const _0x4be864=nt(this['attributes']);it(_0x4be864,_0x17af7b,_0x253125),st(_0x4be864,this['attributes'])||(this['attributes']=_0x4be864,this['_onAttributesChange'](_0x4be864));}['removeAttribute'](_0x1dfac8){const _0x20c5f4=nt(this['attributes']);rt(_0x20c5f4,_0x1dfac8),st(_0x20c5f4,this['attributes'])||(this['attributes']=_0x20c5f4,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 _0x12e742()['substr'](0x1,0x5);}}function At(_0x13510a,_0x42092a,_0x2fbbfe){const _0x246dab=_0x13510a['t'],t=_0x13510a['t'];switch(_0x42092a){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',_0x2fbbfe);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2fbbfe);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2fbbfe);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2fbbfe);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2fbbfe);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',_0x2fbbfe);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2fbbfe);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',_0x2fbbfe);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2fbbfe);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2fbbfe);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2fbbfe);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2fbbfe);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2fbbfe);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2fbbfe);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2fbbfe);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2fbbfe);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2fbbfe);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2fbbfe);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2fbbfe);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2fbbfe);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2fbbfe);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2fbbfe);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2fbbfe);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2fbbfe);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2fbbfe);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2fbbfe);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2fbbfe);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2fbbfe);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2fbbfe);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2fbbfe);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2fbbfe);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'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2fbbfe);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2fbbfe);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2fbbfe);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2fbbfe);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2fbbfe);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'},_0x2fbbfe);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2fbbfe);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 _0x246dab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2fbbfe);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x246dab({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2fbbfe);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2fbbfe);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'},_0x2fbbfe);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'},_0x2fbbfe);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'},_0x2fbbfe);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x42092a;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2256e9,_0x52d4cc){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2256e9,this['_locale']=_0x52d4cc;}['getDescriptions'](_0x59ba1b){const _0x19614f=[],_0x42286a=new Set(),_0x2571c5=new Set();for(let _0x491574=0x0;_0x491574<_0x59ba1b['length'];_0x491574++){const _0x20bffa=_0x59ba1b[_0x491574];if(!_0x20bffa['isInContent'])continue;const _0x47838c=this['_handleCustomCallbackDescription'](_0x20bffa);if(_0x47838c){if(null!=_0x20bffa['subType']){if(_0x42286a['has'](_0x20bffa['subType']))continue;_0x42286a['add'](_0x20bffa['subType']);}_0x19614f['push'](_0x47838c);}else{if('attribute'==_0x20bffa['type']){const _0x14c482=_0x20bffa['data']['key'];if(_0x2571c5['has'](_0x14c482))continue;_0x2571c5['add'](_0x20bffa['data']['key']),_0x14c482==Ke?this['_handleRenameSuggestionDescription'](_0x19614f,_0x20bffa):this['_handleAttributeSuggestionDescription'](_0x19614f,_0x20bffa);continue;}'insertion'!=_0x20bffa['type']&&'deletion'!=_0x20bffa['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19614f,_0x20bffa,_0x59ba1b[_0x491574+0x1]);}}return this['_resolveDescriptionItems'](_0x19614f);}['registerDescriptionCallback'](_0x5310a3){this['_customCallbacks']['push'](_0x5310a3);}['registerElementLabel'](_0x2552c1,_0x463e72,_0x208857=_0x2043b9['normal']){'function'==typeof _0x2552c1?_0x2527b5(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2552c1,'label':_0x463e72,'priority':_0x208857}):this['_itemLabels']['set'](_0x2552c1,_0x463e72);}['registerAttributeLabel'](_0x1c4ea5,_0x145034){this['_attributeLabels']['set'](_0x1c4ea5,_0x145034);}['getItemLabel'](_0x5d3a62,_0x18dcac=0x1){let _0x235475;for(const _0xf5961f of this['_itemLabelsCallbacks'])if(_0xf5961f['matchingCallback'](_0x5d3a62)){_0x235475=_0xf5961f['label'];break;}return _0x235475||(_0x235475=this['_itemLabels']['get'](_0x5d3a62['name'])),_0x235475?_0x235475(_0x18dcac):0x1!==_0x18dcac?_0x18dcac+'\x20'+_0x5d3a62['name']+'s':''+_0x5d3a62['name'];}['_addDescriptionItems'](_0x3527ff,_0x13b2e4){const _0x212331=_0x13b2e4['getFirstRange']()['getWalker'](),_0xd05d21='insertion'==_0x13b2e4['type']?'add':'remove';for(const _0x437c58 of _0x212331){const _0x3906e9=_0x437c58['item'],_0xd19630=_0x3527ff[_0x3527ff['length']-0x1];if(_0x3906e9['is']('$textProxy'))_0xd19630&&_0xd19630['type']['indexOf']('Container')>-0x1&&_0x3527ff['pop'](),_0xd19630&&'text'==_0xd19630['type']?_0xd19630[_0xd05d21]+=_0x3906e9['data']:_0x3527ff['push']({'type':'text','add':'add'==_0xd05d21?_0x3906e9['data']:'','remove':'remove'==_0xd05d21?_0x3906e9['data']:''});else{if(this['_schema']['isObject'](_0x3906e9)){const _0x1969b8=_0x3906e9;if(_0xd19630&&_0xd19630['type']['indexOf']('Container')>-0x1&&_0x3527ff['pop'](),'elementEnd'==_0x437c58['type'])continue;_0xd19630&&_0xd19630['type']==_0xd05d21+'Object'&&_0xd19630['element']['name']==_0x1969b8['name']?_0xd19630['quantity']++:_0x3527ff['push']({'type':_0xd05d21+'Object','element':_0x1969b8,'quantity':0x1}),_0x212331['skip'](_0x7faef4=>!('elementEnd'==_0x7faef4['type']&&_0x7faef4['item']==_0x3906e9));}else{if(this['_schema']['checkChild'](_0x3906e9,'$text')||_0x3906e9['is']('element','softBreak')){const _0x2a4671=_0x3906e9;if('add'==_0xd05d21&&'elementStart'==_0x437c58['type']||'remove'==_0xd05d21&&'elementEnd'==_0x437c58['type'])continue;if(_0xd19630&&-0x1==_0xd19630['type']['indexOf']('Container')){'text'==_0xd19630['type']&&(_0xd19630[_0xd05d21]+='\x0a');continue;}let _0x206dc9;if(_0x206dc9='add'==_0xd05d21?_0x2a4671['nextSibling']&&!this['_schema']['isObject'](_0x2a4671['nextSibling'])?_0x2a4671['nextSibling']:null:_0x2a4671['previousSibling']&&!this['_schema']['isObject'](_0x2a4671['previousSibling'])?_0x2a4671['previousSibling']:null,_0x2a4671['isEmpty']||_0x206dc9&&_0x206dc9['isEmpty']){const _0x276a9b=_0x206dc9&&_0x206dc9['isEmpty']?_0x206dc9:_0x2a4671;_0xd19630&&_0xd19630['type']==_0xd05d21+'EmptyContainer'&&_0xd19630['element']['name']==_0x276a9b['name']?_0xd19630['quantity']++:_0x3527ff['push']({'type':_0xd05d21+'EmptyContainer','element':_0x276a9b,'quantity':0x1});}else _0x3527ff['push']({'type':_0xd05d21+'Container','element':_0x2a4671});}}}}}['_resolveDescriptionItems'](_0x9a65f){const _0x5c1e5a=this['_locale'],_0x23bd3a=[],_0x20043c=[],_0x3b2f4b=[];for(const _0x4f547d of _0x9a65f)switch(_0x4f547d['type']){case'text':if(_0x4f547d['add']=_0x4f547d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f547d['remove']=_0x4f547d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f547d['add']&&''!=_0x4f547d['remove']){_0x23bd3a['push']({'type':'replace','content':At(_0x5c1e5a,'REPLACE_TEXT',['\x22'+_0x4f547d['remove']+'\x22','\x22'+_0x4f547d['add']+'\x22'])});continue;}if(null!=_0x4f547d['add']['match'](/^ +$/)){_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0',At(_0x5c1e5a,'ELEMENT_SPACE',_0x4f547d['add']['length']))});continue;}if(null!=_0x4f547d['remove']['match'](/^ +$/)){_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0',At(_0x5c1e5a,'ELEMENT_SPACE',_0x4f547d['remove']['length']))});continue;}if(''!=_0x4f547d['add']){_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0','\x22'+_0x4f547d['add']+'\x22')});continue;}_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0','\x22'+_0x4f547d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Insert:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Remove:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'addContainer':_0x23bd3a['push']({'type':'insertion','content':At(_0x5c1e5a,'*Split:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'removeContainer':_0x23bd3a['push']({'type':'deletion','content':At(_0x5c1e5a,'*Merge:*\x20%0',this['getItemLabel'](_0x4f547d['element'],_0x4f547d['quantity']))});continue;case'addFormat':_0x20043c['push'](_0x4f547d['key']);continue;case'removeFormat':_0x3b2f4b['push'](_0x4f547d['key']);continue;default:_0x23bd3a['push'](_0x4f547d);}if(_0x20043c['length']){const _0x37ae86=_0x20043c['map'](_0x2964f9=>this['_attributeLabels']['has'](_0x2964f9)?this['_attributeLabels']['get'](_0x2964f9):_0x2964f9)['join'](',\x20');_0x23bd3a['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x37ae86)});}if(_0x3b2f4b['length']){const _0x21a373=_0x3b2f4b['map'](_0x17c12e=>this['_attributeLabels']['has'](_0x17c12e)?this['_attributeLabels']['get'](_0x17c12e):_0x17c12e)['join'](',\x20');_0x23bd3a['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x21a373)});}return _0x23bd3a;}['_handleCustomCallbackDescription'](_0x2ae7b8){for(const _0x580c10 of this['_customCallbacks']){const _0x4d5271=_0x580c10(_0x2ae7b8);if(_0x4d5271&&'type'in _0x4d5271)return _0x4d5271;}}['_handleAttributeSuggestionDescription'](_0x13a528,_0x434f72){const _0x3adb97=_0x434f72['data'],_0xa3905=void 0x0===_0x3adb97['newValue']?'removeFormat':'addFormat';_0x13a528['push']({'type':_0xa3905,'key':_0x3adb97['key']});}['_handleRenameSuggestionDescription'](_0x4c36af,_0x13dcb9){_0x4c36af['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13dcb9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b5a86,_0xdf7255,_0x412c46){if(this['_addDescriptionItems'](_0x5b5a86,_0xdf7255),_0x412c46&&_0x412c46['getFirstRange']()&&!_0xdf7255['getFirstRange']()['end']['isEqual'](_0x412c46['getFirstRange']()['start'])){const _0x4568ed=_0x5b5a86[_0x5b5a86['length']-0x1],_0x5cbb68='insertion'==_0xdf7255['type']?'add':'remove';_0x4568ed&&'text'==_0x4568ed['type']&&(_0x4568ed[_0x5cbb68]+='\x0a');}}}class Ct extends _0x298b0c{['afterInit'](){const _0x2b1555=this['editor'],_0x19f9b8=_0x2b1555['plugins']['get']('TrackChangesEditing');_0x2b1555['commands']['get']('showAIAssistant')&&_0x19f9b8['enableCommand']('showAIAssistant');}}class yt extends _0x298b0c{['afterInit'](){const _0x2f6109=this['editor'],_0x1ebdb4=_0x2f6109['plugins']['get']('TrackChangesEditing');_0x2f6109['commands']['get']('toggleAi')&&_0x1ebdb4['enableCommand']('toggleAi');}}class Nt extends _0x298b0c{['afterInit'](){const _0x3ca4f8=this['editor'],_0x2abe85=_0x3ca4f8['plugins']['get']('TrackChangesEditing');_0x3ca4f8['commands']['get']('aiQuickAction')&&_0x2abe85['enableCommand']('aiQuickAction');}}class Rt extends _0x298b0c{['afterInit'](){const _0x25db8b=this['editor'],_0x8be80a=_0x25db8b['locale'];if(!_0x25db8b['plugins']['has']('AlignmentEditing'))return;const _0x502ccd=_0x25db8b['plugins']['get']('TrackChangesEditing');_0x502ccd['enableDefaultAttributesIntegration']('alignment'),_0x502ccd['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x8be80a,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14cc07=this['editor'],_0x46bc7a=_0x14cc07['locale'];_0x14cc07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x462093=>{if('formatBlock'!=_0x462093['type'])return;const {data:_0x96c205}=_0x462093;if(_0x96c205&&'alignment'==_0x96c205['commandName']){const _0x52aaa2=_0x96c205['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x46bc7a,'*Format:*\x20%0',function(_0x174515){switch(_0x174515){case'left':return At(_0x46bc7a,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x46bc7a,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x46bc7a,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x46bc7a,'FORMAT_JUSTIFY_TEXT');}}(_0x52aaa2))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x298b0c{['afterInit'](){const _0x40e443=this['editor'],_0x4c0cd4=_0x40e443['plugins']['get']('TrackChangesEditing'),_0x5ee9ae=_0x40e443['locale'];for(const _0x3746b5 of St){if(!_0x40e443['plugins']['has'](_0x3746b5))continue;const _0x47ab40=_0x3746b5['slice'](0x0,-0x7)['toLowerCase'](),_0x1f5eb4='FORMAT_'+_0x47ab40['toUpperCase']();_0x4c0cd4['enableDefaultAttributesIntegration'](_0x47ab40),_0x4c0cd4['descriptionFactory']['registerAttributeLabel'](_0x47ab40,At(_0x5ee9ae,_0x1f5eb4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a7b8b=this['editor'],_0x4808c4=_0x2a7b8b['locale'],_0x30e7b3=_0x2a7b8b['plugins']['get']('TrackChangesEditing');function _0x2c7c66(_0xedf1f,_0x53760e){_0x30e7b3['descriptionFactory']['registerDescriptionCallback'](_0xbf3c=>{if('formatInline'!=_0xbf3c['type'])return;const {data:_0x5cacdb}=_0xbf3c;return _0x5cacdb&&_0x5cacdb['commandName']===_0xedf1f?_0x5cacdb['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4808c4,'*Format:*\x20%0',_0x53760e)}:{'type':'format','content':At(_0x4808c4,'*Remove\x20format:*\x20%0',_0x53760e)}:void 0x0;});}_0x2c7c66('bold',At(_0x4808c4,'FORMAT_BOLD')),_0x2c7c66('italic',At(_0x4808c4,'FORMAT_ITALIC')),_0x2c7c66('underline',At(_0x4808c4,'FORMAT_UNDERLINE')),_0x2c7c66('code',At(_0x4808c4,'FORMAT_CODE')),_0x2c7c66('strikethrough',At(_0x4808c4,'FORMAT_STRIKETHROUGH')),_0x2c7c66('subscript',At(_0x4808c4,'FORMAT_SUBSCRIPT')),_0x2c7c66('superscript',At(_0x4808c4,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x298b0c{['afterInit'](){const _0x4c5350=this['editor'],_0x30db99=_0x4c5350['locale'];if(!_0x4c5350['plugins']['has']('BlockQuoteEditing'))return;const _0x13e822=_0x4c5350['plugins']['get']('TrackChangesEditing'),_0x3e244e=this['editor']['commands']['get']('blockQuote');_0x13e822['enableCommand']('blockQuote',(_0x267d09,_0x4a9a85={})=>{const _0x1ca1c5=this['editor']['model']['document']['selection'],_0x25e729=_0x4a9a85&&void 0x0!==_0x4a9a85['forceValue']?_0x4a9a85['forceValue']:!_0x3e244e['value'];let _0x1c78e2=[];if(_0x25e729){const _0x460372=Array['from'](_0x1ca1c5['getSelectedBlocks']())['filter'](_0x39ecbb=>wt(_0x39ecbb)||function(_0x85090b,_0x145d3c){const _0x59efb3=_0x145d3c['checkChild'](_0x85090b['parent'],'blockQuote'),_0x317730=_0x145d3c['checkChild'](['$root','blockQuote'],_0x85090b);return _0x59efb3&&_0x317730;}(_0x39ecbb,this['editor']['model']['schema']));_0x1c78e2=Tt(_0x460372,_0x4c5350['model']);}else{const _0x4e5ac0=Array['from'](_0x1ca1c5['getSelectedBlocks']())['filter'](_0x2e56c7=>wt(_0x2e56c7));_0x1c78e2=Tt(_0x4e5ac0,_0x4c5350['model']);}_0x4c5350['model']['change'](()=>{for(const _0x485d7f of _0x1c78e2)_0x13e822['markBlockFormat'](_0x485d7f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25e729}]});});}),_0x13e822['descriptionFactory']['registerDescriptionCallback'](_0x4fb9cb=>{const {data:_0x135256}=_0x4fb9cb;if(_0x135256&&'blockQuote'==_0x135256['commandName']){const _0x4fb579=At(_0x30db99,'ELEMENT_BLOCK_QUOTE');return _0x135256['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x30db99,'*Set\x20format:*\x20%0',_0x4fb579)}:{'type':'format','content':At(_0x30db99,'*Remove\x20format:*\x20%0',_0x4fb579)};}});}}function wt(_0x9bf484){return'blockQuote'==_0x9bf484['parent']['name'];}class Bt extends _0x298b0c{['afterInit'](){const _0x302a4c=this['editor'],_0x417b5d=_0x302a4c['locale'],_0x5c2b18=_0x302a4c['plugins']['get']('TrackChangesEditing');_0x302a4c['plugins']['has']('BookmarkEditing')&&(_0x5c2b18['enableCommand']('insertBookmark'),_0x5c2b18['enableDefaultAttributesIntegration']('updateBookmark'),_0x5c2b18['descriptionFactory']['registerDescriptionCallback'](_0x5ee700=>{if('insertion'!=_0x5ee700['type']&&'deletion'!=_0x5ee700['type']&&'attribute'!=_0x5ee700['type'])return;const _0x2a1f93=_0x5ee700['getContainedElement']();if(null==_0x2a1f93)return;if(!_0x2a1f93['is']('element','bookmark'))return;const _0x100d53=_0x2a1f93['getAttribute']('bookmarkId');if('insertion'==_0x5ee700['type'])return{'type':'insertion','content':At(_0x417b5d,'*Insert:*\x20%0','\x22'+_0x100d53+'\x22\x20'+At(_0x417b5d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5ee700['type'])return{'type':'deletion','content':At(_0x417b5d,'*Remove:*\x20%0','\x22'+_0x100d53+'\x22\x20'+At(_0x417b5d,'ELEMENT_BOOKMARK'))};const {data:_0x15d567}=_0x5ee700;if(!_0x15d567||'bookmarkId'!=_0x15d567['key'])return;return{'type':'format','content':At(_0x417b5d,'*Set\x20bookmark:*\x20%0','\x22'+_0x15d567['newValue']+'\x22')};}));}}class Ft extends _0x298b0c{['afterInit'](){const _0x879506=this['editor'];_0x879506['plugins']['has']('CaseChange')&&(_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x879506['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x298b0c{['afterInit'](){const _0x1e17e5=this['editor'];_0x1e17e5['commands']['get']('ckbox')&&_0x1e17e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x298b0c{['afterInit'](){const _0x29aec5=this['editor'];if(!_0x29aec5['plugins']['has']('CodeBlock'))return;const _0xf8b1e1=_0x29aec5['plugins']['get']('TrackChangesEditing'),_0x5d3a96=_0x29aec5['locale'],_0x43022a=_0x29aec5['config']['get']('codeBlock')['languages'],_0x21b456=_0x29aec5['commands']['get']('codeBlock');_0xf8b1e1['enableCommand']('indentCodeBlock'),_0xf8b1e1['enableCommand']('outdentCodeBlock'),_0xf8b1e1['enableCommand']('codeBlock',(_0x19bb55,_0x554e46={})=>{const _0x386179=_0x29aec5['model'],_0x394f16=_0x29aec5['model']['document']['selection'],_0xb38dd1=_0x554e46&&void 0x0!==_0x554e46['forceValue']?_0x554e46['forceValue']:!_0x21b456['value'];let _0x263119;_0x554e46['language']||(_0x554e46['language']=_0x43022a[0x0]['language']),_0x263119=_0xb38dd1?Array['from'](_0x394f16['getSelectedBlocks']())['filter'](_0x4410f4=>xt(_0x4410f4)||function(_0x57e266,_0x376783){if(_0x57e266['is']('rootElement')||_0x376783['isLimit'](_0x57e266))return!0x1;return _0x376783['checkChild'](_0x57e266['parent'],'codeBlock');}(_0x4410f4,_0x386179['schema'])):Array['from'](_0x394f16['getSelectedBlocks']())['filter'](_0x147c7d=>xt(_0x147c7d));const _0x35ff0e=Tt(_0x263119,_0x386179);_0x386179['change'](()=>{for(const _0x5188c1 of _0x35ff0e)_0xf8b1e1['markBlockFormat'](_0x5188c1,{'commandName':'codeBlock','commandParams':[{..._0x554e46,'forceValue':_0xb38dd1}],'formatGroupId':'blockName'});});}),(_0xf8b1e1['descriptionFactory']['registerElementLabel']('codeBlock',_0x156da2=>At(_0x5d3a96,'ELEMENT_CODE_BLOCK',_0x156da2)),_0xf8b1e1['descriptionFactory']['registerDescriptionCallback'](_0x164a6b=>{if('formatBlock'!=_0x164a6b['type'])return;const _0x657e8e=_0x5d3a96['t'],{data:_0x33c0ef}=_0x164a6b;if(!_0x33c0ef||'codeBlock'!=_0x33c0ef['commandName'])return;const _0x35fff0=_0x33c0ef['commandParams'][0x0]['language'],_0x553893=_0x657e8e(_0x43022a['find'](_0x425556=>_0x425556['language']===_0x35fff0)['label'])['toLowerCase']();return _0x33c0ef['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5d3a96,'*Set\x20format:*\x20%0',At(_0x5d3a96,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x553893+')')}:{'type':'format','content':At(_0x5d3a96,'*Remove\x20format:*\x20%0',At(_0x5d3a96,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x417961){return'codeBlock'==_0x417961['name'];}class Pt extends _0x298b0c{['afterInit'](){const _0x4caf32=this['editor'];if(!_0x4caf32['plugins']['has']('CommentsEditing'))return;_0x4caf32['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x298b0c{static get['requires'](){return[at];}['init'](){const _0xa4473c=this['editor'],_0x4c17ed=_0xa4473c['plugins']['get']('TrackChangesEditing');_0x4c17ed['enableCommand']('delete');const _0x2c0629=_0xa4473c['commands']['get']('deleteForward');_0x4c17ed['enableCommand']('deleteForward',(_0x32423d,_0x5c1ffb={})=>{const _0x4f27b9=_0xa4473c['model']['createSelection'](_0xa4473c['model']['document']['selection']);_0x4f27b9['isCollapsed']&&_0xa4473c['model']['modifySelection'](_0x4f27b9,{'direction':'forward','unit':_0x5c1ffb['unit']});const _0x2ca242=_0x4f27b9['getFirstRange'](),_0x1be3f1=_0x3756aa['fromRange'](_0x2ca242);let _0x2cb5f1;_0x32423d(_0x5c1ffb),_0x2cb5f1='$graveyard'==_0x1be3f1['root']['rootName']?_0xa4473c['model']['createRange'](_0x2ca242['start']):_0xa4473c['model']['createRange'](_0x1be3f1['start'],_0x1be3f1['end']),_0x1be3f1['detach'](),_0xa4473c['model']['enqueueChange'](_0x2c0629['buffer']['batch'],_0xfbcdbb=>{_0x2c0629['buffer']['lock'](),_0xfbcdbb['setSelection'](_0xfbcdbb['createRange'](_0x2cb5f1['end'])),_0x2c0629['buffer']['unlock']();});});}}class Gt extends _0x298b0c{['afterInit'](){const _0x5aeb70=this['editor'];if(!_0x5aeb70['plugins']['has']('ListEditing'))return;const _0x5acc1d=_0x5aeb70['locale'],_0x4a3f47=_0x5aeb70['plugins']['get']('TrackChangesEditing'),_0x444450=_0x5aeb70['plugins']['has']('TodoListEditing'),_0x590f5a=!!_0x5aeb70['config']['get']('list.multiBlock');function _0x4e9450(_0x1c6195){return{'type':'format','content':''+At(_0x5acc1d,'*Set\x20format:*\x20%0',_0x1c6195)};}function _0x222f67(_0x47f812){return{'type':'format','content':''+At(_0x5acc1d,'*Remove\x20format:*\x20%0',_0x47f812)};}_0x4a3f47['enableDefaultAttributesIntegration']('numberedList'),_0x4a3f47['enableDefaultAttributesIntegration']('bulletedList'),_0x4a3f47['enableDefaultAttributesIntegration']('customNumberedList'),_0x4a3f47['enableDefaultAttributesIntegration']('customBulletedList'),_0x4a3f47['enableDefaultAttributesIntegration']('indentList'),_0x4a3f47['enableDefaultAttributesIntegration']('outdentList'),_0x4a3f47['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4a3f47['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x590f5a&&(_0x4a3f47['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4a3f47['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x444450&&(_0x4a3f47['enableDefaultAttributesIntegration']('todoList'),_0x4a3f47['enableDefaultAttributesIntegration']('checkTodoList'),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x7414f2=>{const {data:_0x2d803d}=_0x7414f2;if(_0x2d803d&&'todoListChecked'==_0x2d803d['key'])return{'type':'format','content':_0x2d803d['newValue']?At(_0x5acc1d,'*Check\x20item*'):At(_0x5acc1d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x545422=>{if(_0x545422['batch']['isUndo'])return!0x1;let _0x2898db=!0x1;const _0x38f769=_0x4a3f47['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59cccd=>'todoListChecked'===_0x4a3f47['_getAttributeKey'](_0x59cccd));for(const _0x48e10c of _0x38f769){'todo'!=_0x48e10c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4a3f47['_findSuggestions'](_0x48e10c['getFirstRange'](),'attribute')['find'](_0x56614d=>'listType'===_0x4a3f47['_getAttributeKey'](_0x56614d['suggestion']))||(_0x545422['removeMarker'](_0x48e10c['getFirstMarker']()),_0x2898db=!0x0));}return _0x2898db;})),_0x4a3f47['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x5acc1d,'FORMAT_INDENT'));const _0x18d160={'type':'format','content':''};_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0xc5dec0=>{const {data:_0x36a1b9}=_0xc5dec0;if(!_0x36a1b9||'listType'!=_0x36a1b9['key'])return;let _0x5aaee1=_0xc5dec0['head'];for(;_0x5aaee1;){if(_0x5aaee1['data']&&(('listStyle'==_0x5aaee1['data']['key']||'listMarkerStyle'==_0x5aaee1['data']['key'])&&(_0x5aaee1['data']['newValue']&&'default'!=_0x5aaee1['data']['newValue']||'default'!=_0x5aaee1['data']['oldValue']&&!_0x36a1b9['newValue'])||!_0x590f5a&&_0x5aaee1['data']['key']==Ke))return _0x18d160;_0x5aaee1=_0x5aaee1['next'];}if(null==_0x36a1b9['newValue'])switch(_0x36a1b9['oldValue']){case'bulleted':return _0x222f67(At(_0x5acc1d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x222f67(At(_0x5acc1d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x222f67(At(_0x5acc1d,'ELEMENT_TODO_LIST'));}switch(_0x36a1b9['newValue']){case'bulleted':return _0x4e9450(At(_0x5acc1d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e9450(At(_0x5acc1d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e9450(At(_0x5acc1d,'ELEMENT_TODO_LIST'));}}),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x16d8ad=>{const {data:_0x46e093}=_0x16d8ad;if(_0x46e093&&'listIndent'==_0x46e093['key'])return null==_0x46e093['newValue']||null==_0x46e093['oldValue']&&0x0==_0x46e093['newValue']?_0x18d160:void 0x0;}),_0x4a3f47['descriptionFactory']['registerDescriptionCallback'](_0x9fd034=>{if('attribute'!=_0x9fd034['type'])return;const {data:_0x3d34c3}=_0x9fd034;if(!_0x3d34c3||'listItemId'!=_0x3d34c3['key'])return;const _0x3d37ad=Ht(_0x9fd034);return'newValue'==_0x3d37ad?{'type':'format','content':At(_0x5acc1d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d37ad?{'type':'format','content':At(_0x5acc1d,'*Split:*\x20list\x20item')}:_0x18d160;}),_0x5aeb70['model']['document']['registerPostFixer'](_0x143ea7=>this['listItemIdFixer'](_0x143ea7)),_0x5aeb70['model']['document']['registerPostFixer'](_0x30c0c4=>this['noTrackChangesFixer'](_0x30c0c4)),_0x5aeb70['model']['document']['on']('change:data',(_0x475d62,_0x21129c)=>{if(_0x21129c['isUndo']||!_0x21129c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1395ee){if(_0x1395ee['batch']['isUndo']||!_0x1395ee['batch']['isLocal'])return!0x1;let _0xf7ee11=!0x1;const _0x50f80e=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57947c=>_0x57947c['data']&&'listItemId'==_0x57947c['data']['key'])['filter'](_0x1f9f4f=>_0x1f9f4f['data']['newValue']&&_0x1f9f4f['data']['oldValue']);for(const _0x45a696 of _0x50f80e)Ht(_0x45a696)||(_0x1395ee['removeMarker'](_0x45a696['getFirstMarker']()),_0xf7ee11=!0x0);return _0xf7ee11;}['noTrackChangesFixer'](_0x5eae55){if(_0x5eae55['batch']['isUndo']||!_0x5eae55['batch']['isLocal'])return!0x1;const _0x457977=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x457977['trackChangesCommand']['value'])return!0x1;let _0x1cc9c4=!0x1;const _0x5743ce=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x142374=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4b4d4b=>'attribute'==_0x4b4d4b['type'])['filter'](_0x2215e4=>_0x5743ce['includes'](_0x2215e4['attributeKey']));if(0x0==_0x142374['length'])return _0x1cc9c4;for(const _0xa83e04 of _0x142374){const _0x3e5b73=_0x457977['_findSuggestions'](_0xa83e04['range'],'attribute')['filter'](_0x22b191=>!_0x22b191['meta']['isNextTo'])['map'](_0x2a042a=>_0x2a042a['suggestion'])['filter'](_0x5b109f=>{const _0x432309=_0x457977['_getAttributeKey'](_0x5b109f);return _0x5743ce['includes'](_0x432309);});if(_0x3e5b73['length']){for(const _0x5baf23 of _0x3e5b73)_0x5eae55['removeMarker'](_0x5baf23['getFirstMarker']());_0x1cc9c4=!0x0;}}return _0x1cc9c4;}['assureChains'](){const _0x49b6a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18bb16=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x27d368;const _0x1c3e81=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x126457=>{if(_0x126457['data']['oldRange']||!_0x126457['data']['newRange'])return null;if(!_0x126457['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2fafde}=_0x438505(_0x126457['name']);if(!_0x49b6a0['hasSuggestion'](_0x2fafde))return null;const _0x2cf1a8=_0x49b6a0['getSuggestion'](_0x2fafde);return _0x18bb16['includes'](_0x2cf1a8['data']['key']);})['map'](_0x4a274b=>{const {id:_0x161f1d}=_0x438505(_0x4a274b['name']),_0x51e761=_0x49b6a0['getSuggestion'](_0x161f1d);return _0x27d368=_0x51e761['attributes']['groupId'],_0x51e761['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1c3e81['size'])return;const _0x416f35=_0x49b6a0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296520=>'attribute'==_0x296520['type']&&_0x296520['data']&&_0x18bb16['includes'](_0x296520['data']['key'])&&_0x296520['attributes']['groupId']!=_0x27d368)['map'](_0x12a9d4=>({'listItem':_0x12a9d4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12a9d4['attributes']['groupId']})),_0x4f66b3=new Set();for(const {groupId:_0x2d7b47,listItem:_0x58c7c8}of _0x416f35)_0x1c3e81['has'](_0x58c7c8)&&_0x4f66b3['add'](_0x2d7b47);for(const _0x30b6dd of _0x49b6a0['getSuggestions']())_0x4f66b3['has'](_0x30b6dd['attributes']['groupId'])&&_0x30b6dd['setAttribute']('groupId',_0x27d368);}['_supportLegacySuggestions'](){const _0x2e77f0=this['editor'],_0x349e70=_0x2e77f0['locale'],_0x165cd0=_0x2e77f0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x165cd0['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2403f8,_0x13b5d9){const _0x5d6724=[];for(let _0x476553 of _0x2403f8)_0x476553['start']['nodeAfter']===_0x476553['end']['parent']&&(_0x476553=_0x2e77f0['model']['createRange'](_0x2e77f0['model']['createPositionAt'](_0x476553['start']['nodeAfter'],0x0))),_0x5d6724['push'](_0x476553);_0x2e77f0['model']['change'](_0x18bfa9=>{const _0x4e8fd1=_0x2e77f0['model']['document']['selection'],_0x3b894d=Array['from'](_0x4e8fd1['getRanges']())['map'](_0xa4cdc4=>_0x3756aa['fromRange'](_0xa4cdc4));_0x18bfa9['setSelection'](_0x5d6724),_0x2e77f0['commands']['get'](_0x13b5d9['commandName'])['refresh'](),_0x13b5d9['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2e77f0['execute'](_0x13b5d9['commandName'],..._0x13b5d9['commandParams']),_0x18bfa9['setSelection'](_0x3b894d);for(const _0xa4687c of _0x3b894d)_0xa4687c['detach']();});}),_0x165cd0['descriptionFactory']['registerElementLabel'](function(_0x365a9c){const _0x166d89=!_0x2e77f0['model']['schema']['isObject'](_0x365a9c),_0x48efc5=_0x365a9c['previousSibling'],_0x1f1754=_0x365a9c['nextSibling'],_0xd0e707=_0x365a9c['getAttribute']('listItemId'),_0x3392b9=!_0x48efc5||_0x48efc5['getAttribute']('listItemId')!==_0xd0e707,_0x47fbae=!_0x1f1754||_0x1f1754['getAttribute']('listItemId')!==_0xd0e707;return _0x166d89&&Boolean(_0xd0e707)&&_0x3392b9&&_0x47fbae;},_0x2fbc3f=>At(_0x349e70,'ELEMENT_LIST_ITEM',_0x2fbc3f));}['_registerLegacyDescription'](){const _0x282793=this['editor'],_0x57e4a5=_0x282793['locale'];function _0x5e95e5(_0x4ec740){const _0x5a049e=_0x282793['commands']['get']('bulletedList')['value'],_0x5e6951=_0x282793['commands']['get']('numberedList')['value'];return'numberedList'===_0x4ec740?_0x5a049e:_0x5e6951;}_0x282793['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3a87c5){if('formatBlock'!=_0x3a87c5['type'])return;const {data:_0x32ba0a}=_0x3a87c5;if(!_0x32ba0a)return;let _0x2399a8,_0xee042d,_0x569b15,_0x34a0ff;switch(_0x32ba0a['commandName']){case'bulletedList':_0x569b15=_0x32ba0a['commandParams'][0x0]['forceValue'],_0x34a0ff=_0x5e95e5(_0x32ba0a['commandName']),_0x2399a8=_0x569b15?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34a0ff&&_0x282793['config']['get']('list.multiBlock')||(_0x2399a8='*Change\x20to:*\x20%0'),_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x569b15=_0x32ba0a['commandParams'][0x0]['forceValue'],_0x34a0ff=_0x5e95e5(_0x32ba0a['commandName']),_0x2399a8=_0x569b15?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x34a0ff&&_0x282793['config']['get']('list.multiBlock')||(_0x2399a8='*Change\x20to:*\x20%0'),_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2399a8='*Indent:*\x20%0',_0xee042d={'type':'format','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2399a8=function(_0xac6f3d){const _0x584896=_0xac6f3d['getFirstRange']();let _0x3e466b=_0x584896['start']['nodeAfter'];for(;_0x3e466b&&_0x584896['containsItem'](_0x3e466b);){if(_0x3e466b['getAttribute']('listIndent')>0x0)return!0x1;_0x3e466b=_0x3e466b['nextSibling'];}return!0x0;}(_0x3a87c5)?At(_0x57e4a5,'*Format:*\x20remove\x20from\x20%0',At(_0x57e4a5,function(_0x1f3a9a){return'ELEMENT_'+_0x1f3a9a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3a87c5))):At(_0x57e4a5,'*Outdent:*\x20%0',At(_0x57e4a5,'ELEMENT_LIST_ITEM')),_0xee042d={'type':'format','content':_0x2399a8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32ba0a['multipleBlocks']&&(_0x2399a8='*Merge:*\x20%0',_0xee042d={'type':'deletion','content':At(_0x57e4a5,_0x2399a8,At(_0x57e4a5,'ELEMENT_LIST_ITEM'))});}return _0xee042d;});}}function Ht(_0x350705){let _0x19acc5=_0x350705['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x19acc5;){const _0x332d94=_0x19acc5['getAttribute']('listItemId');if(!_0x332d94)return!0x1;if(_0x332d94==_0x350705['data']['newValue'])return'newValue';if(_0x332d94==_0x350705['data']['oldValue'])return'oldValue';_0x19acc5=_0x19acc5['previousSibling'];}return!0x1;}class $t extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c6d2d=this['editor']['config']['get']('list.properties'),_0x271afc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c6d2d['styles']&&_0x271afc['enableDefaultAttributesIntegration']('listStyle'),_0x3c6d2d['reversed']&&_0x271afc['enableDefaultAttributesIntegration']('listReversed'),_0x3c6d2d['startIndex']&&_0x271afc['enableDefaultAttributesIntegration']('listStart');const _0x5515e4={'type':'format','content':''};_0x271afc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x50f17b=this['editor']['locale'];_0x271afc['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x50f17b,'FORMAT_LIST_REVERSED')),_0x271afc['descriptionFactory']['registerDescriptionCallback'](_0xd1e0e7=>{const {data:_0x310988}=_0xd1e0e7;if(_0x310988&&'listReversed'==_0x310988['key'])return null==_0x310988['newValue']||0x0==_0x310988['newValue']&&null==_0x310988['oldValue']?_0x5515e4:void 0x0;}),_0x271afc['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x50f17b,'FORMAT_LIST_START')),_0x271afc['descriptionFactory']['registerDescriptionCallback'](_0x422f1f=>{const {data:_0x57cd20}=_0x422f1f;if(_0x57cd20&&'listStart'==_0x57cd20['key'])return null==_0x57cd20['newValue']||0x1==_0x57cd20['newValue']&&null==_0x57cd20['oldValue']?_0x5515e4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x451de9=>{if(_0x451de9['batch']['isUndo'])return!0x1;let _0x1070af=!0x1;const _0x1e325c=_0x271afc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x296b97=>{const _0x151044=_0x271afc['_getAttributeKey'](_0x296b97);return'listStart'==_0x151044||'listReversed'==_0x151044;});for(const _0x4cc14e of _0x1e325c){const _0x4d6fff=_0x4cc14e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4d6fff||'customNumbered'==_0x4d6fff)continue;_0x271afc['_findSuggestions'](_0x4cc14e['getFirstRange'](),'attribute')['find'](_0x48f15e=>'listType'==_0x271afc['_getAttributeKey'](_0x48f15e['suggestion']))||(_0x451de9['removeMarker'](_0x4cc14e['getFirstMarker']()),_0x1070af=!0x0);}return _0x1070af;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x183978){const _0x168374=this['editor']['locale'],{data:_0x10ea5c}=_0x183978,_0x1d1e24={'type':'format','content':''};if(!_0x10ea5c||'listStyle'!=_0x10ea5c['key'])return;if(!_0x10ea5c['oldValue'])return'default'==_0x10ea5c['newValue']?_0x1d1e24:{'type':'format','content':''+At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['newValue'])))};if(!_0x10ea5c['newValue']){if('default'==_0x10ea5c['oldValue'])return _0x1d1e24;let _0x544948=_0x183978['head'];for(;_0x544948;){if(_0x544948['data']&&'listType'==_0x544948['data']['key']&&_0x544948['data']['newValue'])return _0x1d1e24;_0x544948=_0x544948['next'];}return{'type':'format','content':''+At(_0x168374,'*Remove\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['oldValue'])))};}if('default'!=_0x10ea5c['newValue'])return{'type':'format','content':''+At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,this['_getTranslationKeyForListStyle'](_0x10ea5c['newValue'])))};let _0x360fde=_0x183978['head'];for(;_0x360fde;){if(_0x360fde['data']&&'listType'==_0x360fde['data']['key']&&_0x360fde['data']['newValue']&&_0x360fde['data']['oldValue'])return _0x1d1e24;_0x360fde=_0x360fde['next'];}return{'type':'format','content':At(_0x168374,'*Set\x20format:*\x20%0',At(_0x168374,'ELEMENT_'+_0x183978['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x165de2=this['editor'],_0x473118=_0x165de2['locale'];_0x165de2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dbdae=>{if('formatBlock'!=_0x4dbdae['type'])return;const {data:_0x243016}=_0x4dbdae;if(!_0x243016)return;let _0x2f1693,_0x39b0cf;switch(_0x243016['commandName']){case'listStyle':_0x2f1693='*Change\x20to:*\x20%0',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693,At(_0x473118,this['_getTranslationKeyForListStyle'](_0x243016['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f1693=_0x243016['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693)};break;case'listStart':_0x2f1693='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39b0cf={'type':'format','content':At(_0x473118,_0x2f1693,_0x243016['commandParams'][0x0]['startIndex'])};}return _0x39b0cf;});}['_getTranslationKeyForListStyle'](_0x5ca053){return'ELEMENT_'+function(_0x48a913){if(Wt['includes'](_0x48a913))return'bulleted';if(Vt['includes'](_0x48a913))return'numbered';return null;}(_0x5ca053)['toUpperCase']()+'_LIST_'+_0x5ca053['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 _0x298b0c{['afterInit'](){const _0x2e0165=this['editor'];_0x2e0165['commands']['get']('emoji')&&_0x2e0165['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x298b0c{static get['requires'](){return[lt];}['init'](){const _0x595c17=this['editor'],_0x10c978=_0x595c17['plugins']['get']('TrackChangesEditing'),_0x11c90d=_0x595c17['commands']['get']('enter');_0x10c978['enableCommand']('enter',()=>{_0x595c17['model']['change'](_0x23b270=>{const _0x18ea4c=_0x595c17['model']['document']['selection'],_0x500420=_0x18ea4c['getFirstPosition'](),_0x16cdcd=_0x3756aa['fromRange'](_0x18ea4c['getFirstRange']());if(_0x11c90d['enterBlock'](_0x23b270)){const _0x3b26c1=_0x595c17['model']['createPositionAt'](_0x500420['parent']['nextSibling'],0x0),_0x171516=_0x23b270['createRange'](_0x500420,_0x3b26c1);_0x10c978['markInsertion'](_0x171516);}else _0x23b270['setSelection'](_0x23b270['createRange'](_0x16cdcd['end']));_0x16cdcd['detach'](),_0x11c90d['fire']('afterExecute',{'writer':_0x23b270});});});}}class Kt extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f68ed=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f68ed['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f68ed['enableCommand']('findNext'),_0x4f68ed['enableCommand']('findPrevious'),_0x4f68ed['enableCommand']('replace'),_0x4f68ed['enableCommand']('replaceAll');}['handleFindCommand'](_0x582b32,_0x1464fd,_0x51266f={}){const _0x16fbc2=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x582b32(_0x4a66a0=>{let _0x3248bb=('string'==typeof _0x1464fd?_0x16fbc2['findByTextCallback'](_0x1464fd,_0x51266f):_0x1464fd)(_0x4a66a0);Array['isArray'](_0x3248bb)&&(_0x3248bb={'results':_0x3248bb,'searchText':'string'==typeof _0x1464fd?_0x1464fd:''});const _0x531fe5=_0x3248bb['results']['filter'](_0x491472=>!0x1===this['_isInDeletionRange'](_0x491472,_0x4a66a0['item']));return{..._0x3248bb,'results':_0x531fe5};},_0x51266f);}['_isInDeletionRange'](_0x19ed5e,_0x4c69f7){const _0xee0b85=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c69f7,_0x19ed5e['start']),this['editor']['model']['createPositionAt'](_0x4c69f7,_0x19ed5e['end']));for(const _0x39fb7a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xee0b85['getIntersection'](_0x39fb7a['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 _0x298b0c{['afterInit'](){const _0x4d971a=this['editor']['locale'],_0x543429=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x33f84f,commandName:_0x4d0b7b}of Xt)this['editor']['plugins']['has'](_0x33f84f)&&_0x543429['enableDefaultAttributesIntegration'](_0x4d0b7b);_0x543429['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4d971a,'FORMAT_FONT_SIZE')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4d971a,'FORMAT_FONT_FAMILY')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4d971a,'FORMAT_FONT_COLOR')),_0x543429['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4d971a,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47981f=this['editor'],_0x215356=_0x47981f['locale'];_0x47981f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb276=>{const _0x1659d6=_0x215356['t'];if('formatInline'!=_0x2bb276['type'])return;const {data:_0x57f9c8}=_0x2bb276;if(null!=_0x57f9c8){if('fontSize'==_0x57f9c8['commandName']){const _0x53307f=_0x57f9c8['commandParams'][0x0]['value'];if(_0x53307f){const _0x412f50=_0x1659d6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c5497=>_0x1c5497['model']==_0x53307f)['title'])['toLowerCase']();return{'type':'format','content':At(_0x215356,'*Set\x20font\x20size:*\x20%0',_0x412f50)};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x57f9c8['commandName']){const _0x44e22b=_0x57f9c8['commandParams'][0x0]['value'];return _0x44e22b?{'type':'format','content':At(_0x215356,'*Set\x20font\x20family:*\x20%0',_0x44e22b)}:{'type':'format','content':At(_0x215356,'*Reset\x20font\x20family*')};}if('fontColor'==_0x57f9c8['commandName']){const _0x31b107=_0x57f9c8['commandParams'][0x0]['value'];if(_0x31b107){const _0x404b53=_0x4a7a34(this['editor']['config']['get']('fontColor.colors'))['find'](_0xb2b13d=>_0xb2b13d['model']==_0x31b107);let _0x54b3af=_0x31b107,_0x38da22='';return _0x404b53&&(_0x54b3af=_0x404b53['label'],_0x38da22=_0x1659d6(_0x54b3af)['toLowerCase']()),{'type':'format','content':At(_0x215356,'*Set\x20font\x20color:*\x20%0',_0x38da22)['trim'](),'color':{'value':_0x31b107,'title':_0x38da22||_0x54b3af}};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x57f9c8['commandName']){const _0x1e440f=_0x57f9c8['commandParams'][0x0]['value'];if(_0x1e440f){const _0x59d85d=_0x4a7a34(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2317b1=>_0x2317b1['model']==_0x1e440f);let _0x153050=_0x1e440f,_0xbb7f42='';return _0x59d85d&&(_0x153050=_0x59d85d['label'],_0xbb7f42=_0x1659d6(_0x153050)['toLowerCase']()),{'type':'format','content':At(_0x215356,'*Set\x20font\x20background\x20color:*\x20%0',_0xbb7f42)['trim'](),'color':{'value':_0x1e440f,'title':_0xbb7f42||_0x153050}};}return{'type':'format','content':At(_0x215356,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x298b0c{['afterInit'](){const {plugins:_0x1d8d00}=this['editor'];_0x1d8d00['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1d8d00['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xcab82f,plugins:_0x51b8fd,commands:_0x18fda2}=this['editor'],_0x37d687=_0x51b8fd['get']('TrackChangesEditing');_0x18fda2['get']('footnotesStyle')&&_0x37d687['enableDefaultAttributesIntegration']('footnotesStyle'),_0x18fda2['get']('footnotesStart')&&_0x37d687['enableDefaultAttributesIntegration']('footnotesStart'),_0x37d687['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xcab82f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x37d687['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xcab82f,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xcdeb0f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4e79be,commands:_0x28af1d}=this['editor'];_0x28af1d['get']('insertFootnote')&&_0xcdeb0f['enableCommand']('insertFootnote'),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x261de0=>At(_0x4e79be,'ELEMENT_FOOTNOTE_REF',_0x261de0)),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xb3ada7=>At(_0x4e79be,'ELEMENT_FOOTNOTE_DEFINITION',_0xb3ada7)),_0xcdeb0f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x52d13f=>At(_0x4e79be,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x52d13f));}}class Qt extends _0x298b0c{['afterInit'](){const _0x3a2e61=this['editor'],_0x26a860=_0x3a2e61['plugins']['get']('TrackChangesEditing'),_0x24cff4=_0x3a2e61['commands']['get']('copyFormat'),_0x44f415=_0x3a2e61['commands']['get']('pasteFormat');_0x24cff4&&_0x44f415&&(_0x26a860['enableDefaultAttributesIntegration']('pasteFormat'),_0x26a860['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x10f455=this['editor'],_0x53c391=_0x10f455['locale'];_0x10f455['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccb2f=>{if('formatBlock'!=_0x2ccb2f['type']&&'formatInline'!=_0x2ccb2f['type'])return;const {data:_0x26f274}=_0x2ccb2f;if(_0x26f274&&'pasteFormat'===_0x26f274['commandName']){const _0xff902e=[],_0x598282=_0x26f274['commandParams'][0x0];for(const [_0x299687,_0xc4db20]of Object['entries'](_0x598282))_0xff902e['push'](Zt(_0x10f455,_0x299687,_0xc4db20));return _0xff902e['length']?{'type':'format','content':At(_0x53c391,'*Set\x20format\x20to:*\x20%0',_0xff902e['join'](',\x20'))}:{'type':'format','content':At(_0x53c391,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x3089f8,_0x56165b,_0x71a268){const _0xbd2b30=_0x3089f8['locale']['t'],_0x3c1a24=_0x56165b['split'](/(?=[A-Z])/)['join']('\x20'),_0x1026d7=_0xbd2b30(_0x3c1a24['charAt'](0x0)['toUpperCase']()+_0x3c1a24['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x71a268)return _0x1026d7;if('fontColor'===_0x56165b||'fontBackgroundColor'===_0x56165b){const _0x5aeeeb=_0x4a7a34(_0x3089f8['config']['get']('fontColor.colors'))['find'](_0x447c5e=>_0x447c5e['model']==_0x71a268);return _0x1026d7+'\x20('+(_0x5aeeeb?_0xbd2b30(_0x5aeeeb['label'])['toLowerCase']():_0x71a268)+')';}if('fontSize'===_0x56165b&&isNaN(parseFloat(_0x71a268))){const _0x4110c4=_0x3089f8['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3089f8['config']['get']('fontSize.options'))['find'](_0x3982bb=>_0x3982bb['model']==_0x71a268);return _0x1026d7+'\x20('+(_0x4110c4?_0xbd2b30(_0x4110c4['title'])['toLowerCase']():_0x71a268)+')';}return _0x1026d7+'\x20('+_0x71a268+')';}class Jt extends _0x298b0c{['_headingOptions'];['afterInit'](){const _0xdd8bbc=this['editor'];if(!_0xdd8bbc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xdd8bbc['config']['get']('heading.options');const _0x349d63=_0xdd8bbc['locale'],_0x4f65a5=_0xdd8bbc['plugins']['get']('TrackChangesEditing');_0x4f65a5['enableDefaultAttributesIntegration']('heading');for(const _0x3555ef of this['_headingOptions'])'paragraph'!=_0x3555ef['model']&&_0x4f65a5['descriptionFactory']['registerElementLabel'](_0x3555ef['model'],_0x4e45aa=>{const _0x499536=this['_getHeadingLevel'](_0x3555ef['model']);return null!==_0x499536?_0x4e0522(_0x4e45aa,_0x499536):_0x5a6f67(_0x4e45aa,_0x3555ef['title']);});function _0x4e0522(_0x4c0161,_0x5565c3){return At(_0x349d63,'ELEMENT_HEADING',[_0x4c0161,_0x5565c3]);}function _0x5a6f67(_0x4012db,_0x5e531a){return At(_0x349d63,'ELEMENT_HEADING_CUSTOM',[_0x4012db,_0x5e531a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54b47a=this['editor'],_0x3cb713=_0x54b47a['locale'];function _0x5c8137(_0x36b3fa,_0x36f267){return At(_0x3cb713,'ELEMENT_HEADING_CUSTOM',[_0x36b3fa,_0x36f267]);}_0x54b47a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1668bd=>{if('formatBlock'!=_0x1668bd['type'])return;const {data:_0x1cd9ff}=_0x1668bd;if(_0x1cd9ff&&'heading'==_0x1cd9ff['commandName']){const _0x16acff=_0x1cd9ff['commandParams'][0x0]['value'],_0x410baa=this['_getHeadingLevel'](_0x16acff);if(null!==_0x410baa)return{'type':'format','content':At(_0x3cb713,'*Change\x20to:*\x20%0',(_0x367fd4=0x1,_0xfbdd84=_0x410baa,At(_0x3cb713,'ELEMENT_HEADING',[_0x367fd4,_0xfbdd84])))};const _0x5792e1=this['_headingOptions']['find'](_0x2bb1a4=>_0x2bb1a4['model']===_0x16acff)['title'];return{'type':'format','content':At(_0x3cb713,'*Change\x20to:*\x20%0',_0x5c8137(0x1,_0x5792e1))};}var _0x367fd4,_0xfbdd84;});}['_getHeadingLevel'](_0xd9e32){const _0x2b73d9=_0xd9e32['match'](/^heading(\d+)/);if(_0x2b73d9)return _0x2b73d9[0x1];const _0x5b323e=this['_headingOptions']?.['find'](_0x3f06fe=>_0x3f06fe['model']==_0xd9e32);if(_0x5b323e&&_0x5b323e['view']){const _0x49eb68=_0x5b323e['view'],_0x4e283d=(_0x49eb68['name']??_0x49eb68)['match'](/^h(\d+)/);if(_0x4e283d)return _0x4e283d[0x1];}return null;}}class te extends _0x298b0c{['afterInit'](){const _0x10c98=this['editor'];if(!_0x10c98['plugins']['has']('HighlightEditing'))return;const _0x36c3d6=_0x10c98['plugins']['get']('TrackChangesEditing'),_0x3034fb=_0x10c98['locale'];_0x36c3d6['enableDefaultAttributesIntegration']('highlight'),_0x36c3d6['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x3034fb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x412971=this['editor'],_0x4bbc68=_0x412971['locale'];_0x412971['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e7334=>{if('formatInline'!=_0x6e7334['type'])return;const {data:_0x47ed9b}=_0x6e7334;if(_0x47ed9b&&'highlight'==_0x47ed9b['commandName']){const _0xe65c93=_0x4bbc68['t'],_0x9cd86b=_0x47ed9b['commandParams'][0x0]['value'];if(_0x9cd86b){const _0x9bc8f9=_0x412971['config']['get']('highlight.options')['find'](_0x19745c=>_0x19745c['model']==_0x9cd86b),_0x4c8e3c=_0xe65c93(_0x9bc8f9['title'])['toLowerCase']();return{'type':'format','content':At(_0x4bbc68,'*Set\x20highlight:*\x20%0',_0x4c8e3c),'color':{'value':_0x9bc8f9['color'],'title':_0x9bc8f9['title']}};}return{'type':'format','content':At(_0x4bbc68,'*Remove\x20highlight*',At(_0x4bbc68,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x298b0c{['afterInit'](){const _0x19f268=this['editor'];if(!_0x19f268['plugins']['has']('HorizontalLineEditing'))return;_0x19f268['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x13aa2e=_0x19f268['plugins']['get']('TrackChangesEditing'),_0x3589d1=_0x19f268['locale'];_0x13aa2e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1d6bc2=>At(_0x3589d1,'ELEMENT_HORIZONTAL_LINE',_0x1d6bc2));}}class ne extends _0x298b0c{['afterInit'](){const _0xe6f64=this['editor'];if(!_0xe6f64['plugins']['has']('HtmlEmbed'))return;const _0x3253f4=_0xe6f64['plugins']['get']('TrackChangesEditing'),_0x5d8270=_0xe6f64['locale'];_0x3253f4['descriptionFactory']['registerElementLabel']('rawHtml',_0x44a5a3=>At(_0x5d8270,'ELEMENT_HTML_EMBED',_0x44a5a3)),_0x3253f4['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3253f4['descriptionFactory']['registerDescriptionCallback'](_0x49f2a5=>{if('attribute'!=_0x49f2a5['type'])return;const {data:_0x20622c}=_0x49f2a5;if(_0x20622c&&'value'==_0x20622c['key']&&_0x49f2a5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5e1086=At(_0x5d8270,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x5d8270,'*Change\x20%0\x20content*',_0x5e1086)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59d37a=this['editor'],_0x6d8778=_0x59d37a['locale'];_0x59d37a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x513546=>{if('formatBlock'!=_0x513546['type'])return;const {data:_0x3a43f1}=_0x513546;if(_0x3a43f1&&'htmlEmbed'==_0x3a43f1['commandName']){const _0x413fcd=At(_0x6d8778,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x6d8778,'*Change\x20%0\x20content*',_0x413fcd)};}});}}class ie extends _0x298b0c{['afterInit'](){const _0x2104c8=this['editor'];if(!_0x2104c8['plugins']['has']('ImageEditing'))return;const _0xacae75=_0x2104c8['plugins']['get']('TrackChangesEditing'),_0xf6d622=_0x2104c8['plugins']['get']('ImageUtils'),_0x28787c=_0x2104c8['locale'];_0xacae75['enableCommand']('insertImage'),_0xacae75['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c268a=>At(_0x28787c,'ELEMENT_IMAGE',_0x1c268a)),_0xacae75['descriptionFactory']['registerElementLabel']('imageInline',_0x194aa5=>At(_0x28787c,'ELEMENT_INLINE_IMAGE',_0x194aa5)),_0xacae75['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x28787c,'ELEMENT_CAPTION')),_0x2104c8['plugins']['has']('ImageUploadEditing')&&_0xacae75['enableCommand']('uploadImage'),_0x2104c8['plugins']['has']('ImageBlockEditing')&&_0x2104c8['plugins']['has']('ImageInlineEditing')&&(_0xacae75['enableCommand']('imageTypeInline',(_0x5ee55e,_0x10f6b1)=>{const _0x35ecc0=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']);_0x2104c8['model']['change'](()=>{_0xacae75['markBlockFormat'](_0x35ecc0,{'commandName':'imageTypeInline','commandParams':[_0x10f6b1]},[],'convertBlockImageToInline');});}),_0xacae75['enableCommand']('imageTypeBlock',(_0x5a73ec,_0x1956b4)=>{_0x2104c8['model']['change'](_0x4b44fd=>{let _0x34b0d5=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x4b7618=_0x4b44fd['createRangeOn'](_0x34b0d5);const _0x5cd2ce=tt['fromPosition'](_0x4b7618['start'],'toPrevious'),_0x2f9829=tt['fromPosition'](_0x4b7618['end'],'toNext');_0xacae75['forceDefaultExecution'](()=>_0x5a73ec(_0x1956b4)),_0x34b0d5=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x4b7618=_0x4b44fd['createRangeOn'](_0x34b0d5);const _0x20f5bb=_0x4b44fd['createRange'](_0x5cd2ce,_0x2f9829);_0x5cd2ce['detach'](),_0x2f9829['detach'](),_0xacae75['markBlockFormat'](_0x34b0d5,{'commandName':'imageTypeInline','commandParams':[_0x1956b4]},[],'convertInlineImageToBlock'),_0x20f5bb['start']['isBefore'](_0x4b7618['start'])&&_0xacae75['markInsertion'](_0x4b44fd['createRange'](_0x20f5bb['start'],_0x4b7618['start']),'convertInlineImageToBlock'),_0x4b7618['end']['isBefore'](_0x20f5bb['end'])&&_0xacae75['markInsertion'](_0x4b44fd['createRange'](_0x4b7618['end'],_0x20f5bb['end']),'convertInlineImageToBlock');});}),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xacae75['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x340e1d])=>{const _0x915108=_0xacae75['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x489d16=_0x340e1d['start'],_0xd4cfa0=_0x340e1d['end'];const _0x4bb520=_0x2104c8['model']['schema']['getNearestSelectionRange'](_0x489d16,'backward'),_0x154eb6=_0x2104c8['model']['schema']['getNearestSelectionRange'](_0xd4cfa0,'forward');_0x4bb520['isCollapsed']&&(_0x489d16=_0x4bb520['start']),_0x154eb6['isCollapsed']&&(_0xd4cfa0=_0x154eb6['end']),_0x915108([_0x2104c8['model']['createRange'](_0x489d16,_0xd4cfa0)]);}),_0xacae75['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x316a1e),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x316a1e)),_0x2104c8['plugins']['has']('ImageCaptionEditing')&&(_0xacae75['enableCommand']('toggleImageCaption',(_0x1637f0,_0x395073)=>{const _0x5c0d28=_0x2104c8['plugins']['get']('ImageCaptionUtils');let _0x28d0f9=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x5f0d2a=_0x5c0d28['getCaptionFromImageModelElement'](_0x28d0f9);_0x2104c8['model']['change'](()=>{if(_0x5f0d2a)return void _0xacae75['markDeletion'](_0x2104c8['model']['createRangeOn'](_0x5f0d2a));const _0x51e872=_0xf6d622['isBlockImage'](_0x28d0f9);_0x1637f0(_0x395073),_0x28d0f9=_0xf6d622['getClosestSelectedImageElement'](_0x2104c8['model']['document']['selection']),_0x5f0d2a=_0x5c0d28['getCaptionFromImageModelElement'](_0x28d0f9),_0xacae75['markInsertion'](_0x2104c8['model']['createRangeOn'](_0x5f0d2a),_0x51e872?null:'imageCaption');});}),_0xacae75['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x316a1e));const _0x446602=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32ca33(_0x124791,_0x4f123c){const _0x31a02c=_0x446602['findIndex'](({type:_0x261784,subType:_0xdfd65c})=>_0x124791['type']==_0x261784&&_0x124791['subType']==_0xdfd65c),_0x52d15c=_0x446602['findIndex'](({type:_0x66894d,subType:_0xfb6558})=>_0x4f123c['type']==_0x66894d&&_0x4f123c['subType']==_0xfb6558);if(_0x31a02c<0x0||_0x52d15c<0x0)return!0x1;const _0x25f24c=_0x124791['getFirstRange'](),_0x1c031d=_0x4f123c['getFirstRange']();if((0x0==_0x31a02c||0x1==_0x31a02c)&&0x2==_0x52d15c&&_0x25f24c['isIntersecting'](_0x1c031d))return!0x0;if(0x2==_0x31a02c&&0x3==_0x52d15c){const _0x144142=_0xacae75['_findSuggestions'](_0x25f24c,'insertion')['filter'](({suggestion:_0x13d2d0,meta:_0x192c5c})=>_0x192c5c['isOwn']&&'convertInlineImageToBlock'==_0x13d2d0['subType']);if(_0x144142['length']>0x1&&_0x1c031d['end']['isEqual'](_0x25f24c['start']))return!0x0;if(0x1==_0x144142['length']&&(_0x25f24c['start']['isEqual'](_0x1c031d['end'])||_0x25f24c['end']['isEqual'](_0x1c031d['start'])))return!0x0;}if(0x3==_0x31a02c&&0x3==_0x52d15c&&_0x25f24c['start']['isBefore'](_0x1c031d['start'])){const _0x1fedc5=_0x25f24c['end']['nodeAfter'],_0x32e4be=_0x1c031d['start']['nodeBefore'];return _0xf6d622['isBlockImage'](_0x1fedc5)&&_0x1fedc5===_0x32e4be;}return!0x1;}function _0x316a1e(_0x325016,_0x168146){return _0x32ca33(_0x325016,_0x168146)?[_0x325016,_0x168146]:_0x32ca33(_0x168146,_0x325016)?[_0x168146,_0x325016]:null;}_0x2104c8['plugins']['has']('ImageResize')&&(_0xacae75['enableDefaultAttributesIntegration']('resizeImage'),_0xacae75['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x28787c,'FORMAT_IMAGE_SIZE'))),_0x2104c8['plugins']['has']('ImageTextAlternativeEditing')&&_0xacae75['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2104c8['plugins']['has']('PictureEditing')&&_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x54a4b4=>{if('attribute'!=_0x54a4b4['type'])return;const {data:_0x84f260}=_0x54a4b4;return _0x84f260&&'sources'==_0x84f260['key']?{'type':'format','content':''}:void 0x0;}),_0x2104c8['plugins']['has']('ImageSizeAttributes')&&_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x107a51=>{if('attribute'!=_0x107a51['type'])return;const {data:_0x42eee0}=_0x107a51;return!_0x42eee0||'width'!=_0x42eee0['key']&&'height'!=_0x42eee0['key']?void 0x0:{'type':'format','content':''};}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x23b3e3=>{if(!!_0x446602['find'](({type:_0x16b8cb,subType:_0x1c6434})=>_0x23b3e3['type']==_0x16b8cb&&_0x23b3e3['subType']==_0x1c6434))return _0x23b3e3['previous']?{}:void 0x0;}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0xbf6d72=>{if('insertion'==_0xbf6d72['type']||'deletion'==_0xbf6d72['type']){const _0xb5881c=_0xbf6d72['getContainedElement']();if(_0xb5881c&&_0xb5881c['is']('element','caption'))return{'type':'insertion'==_0xbf6d72['type']?'addObject':'removeObject','element':_0xb5881c,'quantity':0x1};}}),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x1d95cf=>'formatBlock'==_0x1d95cf['type']&&'convertInlineImageToBlock'==_0x1d95cf['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1d95cf['type']&&'convertBlockImageToInline'==_0x1d95cf['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xacae75['descriptionFactory']['registerDescriptionCallback'](_0x5e1932=>{if('attribute'!=_0x5e1932['type'])return;const {data:_0x41f891}=_0x5e1932;if(!_0x41f891||'alt'!=_0x41f891['key'])return;const _0x102bf6=_0x41f891['newValue'];return _0x102bf6?{'type':'format','content':At(_0x28787c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x102bf6+'\x22')}:{'type':'format','content':At(_0x28787c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5eaeeb=this['editor'],_0x27923b=_0x5eaeeb['locale'];_0x5eaeeb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d3471=>{if('formatBlock'!=_0x5d3471['type']&&'formatInline'!=_0x5d3471['type'])return;const {data:_0x14d84f}=_0x5d3471;if(_0x14d84f){if('imageTextAlternative'==_0x14d84f['commandName']){const _0x31783b=_0x14d84f['commandParams'][0x0]['newValue'];return _0x31783b?{'type':'format','content':At(_0x27923b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x31783b+'\x22')}:{'type':'format','content':At(_0x27923b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x14d84f['commandName']){const _0x47432e=_0x14d84f['commandParams'][0x0]['width'];return _0x47432e?{'type':'format','content':At(_0x27923b,'*Set\x20image\x20width:*\x20%0',_0x47432e)}:{'type':'format','content':At(_0x27923b,'*Reset\x20image\x20width*')};}}});}}class se extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x17d867=this['editor']['locale'],_0x28649d=this['editor']['plugins']['get']('TrackChangesEditing');_0x28649d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x28649d['descriptionFactory']['registerDescriptionCallback'](_0x4a115a=>{if('attribute'!=_0x4a115a['type'])return;const {data:_0x1c3395}=_0x4a115a;return _0x1c3395&&'src'==_0x1c3395['key']?_0x1c3395['newValue']&&_0x1c3395['oldValue']?{'type':'format','content':At(_0x17d867,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f4503=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f4503['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f4503['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f4503['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f4503['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dc161=this['editor'],_0x3af539=_0x2dc161['locale'];_0x2dc161['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53f292=>{if('formatBlock'!=_0x53f292['type']&&'formatInline'!=_0x53f292['type'])return;const {data:_0x58e6ad}=_0x53f292;if(!_0x58e6ad||'replaceImageSource'!=_0x58e6ad['commandName'])return;return{'type':'format','content':At(_0x3af539,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x298b0c{['afterInit'](){const _0xdaf816=this['editor'];if(!_0xdaf816['plugins']['has']('ImageStyleEditing'))return;const _0x236caf=_0xdaf816['plugins']['get']('TrackChangesEditing'),_0x83de53=_0xdaf816['plugins']['get']('ImageUtils'),_0x2d6a60={};_0x236caf['enableCommand']('imageStyle',(_0x373103,_0x30a6de)=>{const _0x8ca716=_0xdaf816['plugins']['get']('Users')['me'],_0x34c86d=_0xdaf816['commands']['get']('imageStyle');let _0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),_0x57159d=_0xdaf816['model']['createRangeOn'](_0x1a5182),_0x3f0018=_0x34c86d['value'];if(_0x3f0018==_0x30a6de['value'])return;const _0x46f24c={'commandName':'imageStyle','commandParams':[_0x30a6de],'formatGroupId':_0x12e742()};_0xdaf816['model']['change'](()=>{if(_0x236caf['getSuggestions']()['filter'](_0x365478=>_0x365478['isInContent']&&_0x8ca716==_0x365478['author']&&('formatBlock'==_0x365478['type']||'formatInline'==_0x365478['type'])&&('imageStylePreApply'==_0x365478['subType']||'imageStylePostApply'==_0x365478['subType'])&&_0x365478['getFirstRange']()['isEqual'](_0x57159d))['forEach'](_0x584113=>_0x236caf['discardSuggestion'](_0x584113['head'])),_0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),_0x57159d=_0xdaf816['model']['createRangeOn'](_0x1a5182),_0x34c86d['refresh'](),_0xdaf816['commands']['get']('imageTypeInline')['refresh'](),_0xdaf816['commands']['get']('imageTypeBlock')['refresh'](),_0x3f0018=_0x34c86d['value'],_0x3f0018!=_0x30a6de['value'])return _0x83de53['isInlineImage'](_0x1a5182)&&_0x34c86d['shouldConvertImageType'](_0x30a6de['value'],_0x1a5182)?(_0x373103({..._0x30a6de,'setImageSizes':!0x1}),_0x1a5182=_0x83de53['getClosestSelectedImageElement'](_0xdaf816['model']['document']['selection']),void _0x236caf['markBlockFormat'](_0x1a5182,{..._0x46f24c,'commandReversedParams':[{'value':_0x3f0018||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x83de53['isBlockImage'](_0x1a5182)?_0x236caf['markBlockFormat'](_0x1a5182,_0x46f24c,[],'imageStylePostApply'):_0x236caf['markInlineFormat'](_0x57159d,_0x46f24c,'imageStylePostApply'));});});for(const _0x3bf7ac of _0xdaf816['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2d6a60[_0x3bf7ac['name']]=_0x3bf7ac['title']['toLowerCase']();_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2cacff])=>{_0x83de53['setImageNaturalSizeAttributes'](_0x2cacff['getContainedElement']());}),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2ec623,_0x21c489)=>{_0x236caf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ec623,{'commandName':_0x21c489['commandName'],'commandParams':_0x21c489['commandReversedParams']});}),_0x236caf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x330de2,_0x236b9d){if(_0x377fda(_0x330de2,_0x236b9d))return[_0x330de2,_0x236b9d];if(_0x377fda(_0x236b9d,_0x330de2))return[_0x236b9d,_0x330de2];return null;});const _0x453bed=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x377fda(_0x1c3028,_0x4bb4e8){const _0x3ec313=_0x453bed['findIndex'](({type:_0x327e6f,subType:_0x4f3256})=>_0x1c3028['type']==_0x327e6f&&_0x1c3028['subType']==_0x4f3256),_0x1ff43d=_0x453bed['findIndex'](({type:_0x29dae5,subType:_0x1cf255})=>_0x4bb4e8['type']==_0x29dae5&&_0x4bb4e8['subType']==_0x1cf255);if(_0x3ec313<0x0||_0x1ff43d<0x0)return!0x1;const _0x495663=_0x1c3028['getFirstRange'](),_0x518c1f=_0x4bb4e8['getFirstRange']();if((0x0==_0x3ec313||0x1==_0x3ec313)&&0x2==_0x1ff43d&&_0x495663['isIntersecting'](_0x518c1f))return!0x0;if(0x2==_0x3ec313&&0x3==_0x1ff43d){const _0x5df1ca=_0x236caf['_findSuggestions'](_0x495663,'insertion')['filter'](({suggestion:_0x174eef,meta:_0x4b63fc})=>_0x4b63fc['isOwn']&&'convertInlineImageToBlock'==_0x174eef['subType']);if(_0x5df1ca['length']>0x1&&_0x518c1f['end']['isEqual'](_0x495663['start']))return!0x0;if(0x1==_0x5df1ca['length']&&(_0x495663['start']['isEqual'](_0x518c1f['end'])||_0x495663['end']['isEqual'](_0x518c1f['start'])))return!0x0;}if(0x3==_0x3ec313&&0x3==_0x1ff43d&&_0x495663['start']['isBefore'](_0x518c1f['start'])){const _0x55b46b=_0x495663['end']['nodeAfter'],_0x501246=_0x518c1f['start']['nodeBefore'];return _0x83de53['isBlockImage'](_0x55b46b)&&_0x55b46b===_0x501246;}return!0x1;}_0xdaf816['model']['document']['registerPostFixer'](()=>{let _0x2e5409=!0x1;const _0x1ca40d=Array['from'](_0xdaf816['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf70e15,data:_0x1fcfc2}of _0x1ca40d){const {group:_0x3ac7a3,type:_0x1645e9,subType:_0x247875,id:_0x281ad1}=_0x438505(_0xf70e15);if('suggestion'==_0x3ac7a3&&_0x236caf['hasSuggestion'](_0x281ad1)){if('formatBlock'==_0x1645e9&&('imageStylePreApply'==_0x247875||'imageStylePostApply'==_0x247875)){const _0x41ffe2=_0x236caf['getSuggestion'](_0x281ad1);if(_0x1fcfc2['newRange']){const _0x202507=_0x41ffe2['getFirstRange']()['getContainedElement']();if(_0x83de53['isBlockImage'](_0x202507))continue;_0x236caf['discardSuggestion'](_0x41ffe2),_0x2e5409=!0x0;}}if('insertion'==_0x1645e9&&'imageCaption'==_0x247875&&!_0x1fcfc2['newRange']){const _0x5cb294=_0x236caf['getSuggestion'](_0x281ad1);_0x5cb294['next']&&_0x5cb294['next']['isInContent']&&(_0x236caf['discardSuggestion'](_0x5cb294['next']),_0x2e5409=!0x0);}}}return _0x2e5409;}),this['_registerLegacyDescription'](_0x2d6a60);}['_registerLegacyDescription'](_0x3eb227){const _0x227956=this['editor'],_0x459a1a=_0x227956['locale'];_0x227956['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4af3f7=>{if('formatBlock'!=_0x4af3f7['type']&&'formatInline'!=_0x4af3f7['type'])return;const {data:_0xc11f13}=_0x4af3f7;if(!_0xc11f13||'imageStyle'!=_0xc11f13['commandName'])return;const _0x2b3eab=_0xc11f13['commandParams'][0x0]['value'];return _0x43497d('side'===_0x2b3eab?At(_0x459a1a,'FORMAT_SIDE_IMAGE'):_0x3eb227[_0x2b3eab]||_0x2b3eab);function _0x43497d(_0x5d9bc7){return{'type':'format','content':At(_0x459a1a,'*Format:*\x20%0',_0x5d9bc7)};}});}}class oe extends _0x298b0c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x551d56){super(_0x551d56),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2cb28d=this['editor'],_0x49d12f=_0x2cb28d['commands']['get']('importWord'),_0x4f54af=_0x2cb28d['commands']['get']('trackChanges');_0x49d12f&&(_0x49d12f['on']('execute',(_0x33181e,[,_0x5196f7])=>{this['_trackChangesValueDuringImport']=_0x4f54af['value'],_0x5196f7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x49d12f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x49d12f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4f54af['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2cb28d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x7fc398,_0x407cba){const {suggestions:_0x395bdb}=_0x407cba,_0x1b9528=this['editor']['commands']['get']('trackChanges'),_0x51252b=_0x1b9528['value'];this['_trackChangesValueDuringImport']!==_0x51252b&&(_0x1b9528['execute'](),this['_trackChangesExecuted']=!0x0),_0x395bdb&&_0x395bdb['forEach'](({id:_0x2ec973,type:_0x2474e6,author:_0x57f072,created_at:_0xc8c293})=>{const _0x432c46={'id':_0x2ec973,'type':_0x2474e6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x57f072,'createdAt':_0xc8c293?new Date(_0xc8c293):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x432c46);});}}class ae extends _0x298b0c{['afterInit'](){const _0x53e957=this['editor'],_0x167fff=_0x53e957['plugins']['get']('TrackChangesEditing');if(_0x53e957['plugins']['has']('IndentEditing')&&(_0x167fff['enableCommand']('indent'),_0x167fff['enableCommand']('outdent')),_0x53e957['plugins']['has']('IndentBlock')){for(const _0x3b4106 of['indentBlock','outdentBlock'])_0x167fff['enableDefaultAttributesIntegration'](_0x3b4106);if(_0x53e957['plugins']['has']('ListEditing')){for(const _0x4d7b52 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x167fff['enableDefaultAttributesIntegration'](_0x4d7b52);}}const _0x20643f=_0x53e957['locale'];_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x20643f,'FORMAT_INDENT')),_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x20643f,'FORMAT_INDENT')),_0x167fff['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x20643f,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ab713=this['editor'],_0x157856=_0x1ab713['locale'],_0x28522d=_0x1ab713['plugins']['get']('TrackChangesEditing');_0x28522d['descriptionFactory']['registerDescriptionCallback'](_0x2e7ce6=>{if('formatBlock'!=_0x2e7ce6['type'])return;const {data:_0x1db366}=_0x2e7ce6;if(!_0x1db366)return;if('indentBlock'!=_0x1db366['commandName']&&'outdentBlock'!=_0x1db366['commandName'])return;const _0x151fec=_0x2e7ce6['getItems']()[0x0],_0x156887=_0x28522d['descriptionFactory']['getItemLabel'](_0x151fec);return'indentBlock'==_0x1db366['commandName']?{'type':'format','content':At(_0x157856,'*Indent:*\x20%0',_0x156887)}:'outdentBlock'==_0x1db366['commandName']?{'type':'format','content':At(_0x157856,'*Outdent:*\x20%0',_0x156887)}:void 0x0;});}}class ce extends _0x298b0c{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x298b0c{['afterInit'](){const _0x19e6fe=this['editor'];if(!_0x19e6fe['plugins']['has']('LinkEditing'))return;const _0x16ffbd=_0x19e6fe['plugins']['get']('TrackChangesEditing'),_0x158c0d=_0x19e6fe['commands']['get']('link');_0x16ffbd['enableDefaultAttributesIntegration']('link'),_0x16ffbd['enableDefaultAttributesIntegration']('unlink');for(const _0x59b207 of _0x158c0d['manualDecorators'])_0x16ffbd['descriptionFactory']['registerAttributeLabel'](_0x59b207['id'],'link\x20('+_0x59b207['label']['toLowerCase']()+')');_0x16ffbd['descriptionFactory']['registerDescriptionCallback'](_0xaf853d=>{if('attribute'!=_0xaf853d['type'])return;const {data:_0x3ba7b8}=_0xaf853d;if(!_0x3ba7b8||'linkHref'!=_0x3ba7b8['key'])return;const _0x2d2d9c=_0x3ba7b8['newValue'],_0x5dc49f=_0x19e6fe['locale'];return{'type':'format','content':null==_0x2d2d9c?At(_0x5dc49f,'*Remove\x20link*'):At(_0x5dc49f,'*Set\x20link:*\x20%0','\x22'+_0x2d2d9c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x302797=this['editor'],_0x150cb8=_0x302797['locale'];_0x302797['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d8962=>{if('formatInline'!=_0x4d8962['type'])return;const {data:_0x1203a0}=_0x4d8962;if(_0x1203a0){if('link'==_0x1203a0['commandName']){const _0x16a64d=_0x1203a0['commandParams'][0x0];return{'type':'format','content':At(_0x150cb8,'*Set\x20link:*\x20%0','\x22'+_0x16a64d+'\x22')};}return'unlink'==_0x1203a0['commandName']?{'type':'format','content':At(_0x150cb8,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x298b0c{['afterInit'](){const _0x342491=this['editor'],_0x923179=_0x342491['locale'];if(!_0x342491['plugins']['has']('LegacyListEditing'))return;const _0x1ca3dd=_0x342491['plugins']['get']('TrackChangesEditing'),_0x2bc4fc=_0x342491['plugins']['has']('LegacyTodoListEditing');function _0x7c178f(_0x1f07fd){return()=>{const _0x3c628e=_0x342491['model']['document']['selection'],_0x159057=_0x342491['commands']['get'](_0x1f07fd);if(_0x159057['value'])return void _0x342491['execute']('paragraph',{});const _0x280f12=_0x1f07fd['slice'](0x0,-0x4),_0x37e5a6=function(_0x56c958,_0x2df731,_0x441238){let _0x1581f8=Array['from'](_0x56c958)['filter'](_0x3e8808=>function(_0x211fff,_0xa2636){return _0xa2636['checkChild'](_0x211fff['parent'],'listItem')&&!_0xa2636['isObject'](_0x211fff);}(_0x3e8808,_0x441238));_0x1581f8=_0x1581f8['filter'](_0x244340=>!_0x244340['is']('element','listItem')||_0x244340['getAttribute']('listType')!=_0x2df731);const _0x3fdab3=new Set();for(const _0x24e8b3 of _0x1581f8)_0x24e8b3['is']('element','listItem')?_0x3fdab3['add'](he(_0x24e8b3)):_0x3fdab3['add'](_0x24e8b3);return Array['from'](_0x3fdab3);}(_0x3c628e['getSelectedBlocks'](),_0x280f12,_0x342491['model']['schema']);_0x342491['model']['change'](()=>{for(const _0x3e73ee of _0x37e5a6)_0x1ca3dd['markBlockFormat'](_0x3e73ee,{'commandName':_0x1f07fd,'commandParams':[{'forceValue':!_0x159057['value']}],'formatGroupId':'blockName'},de(_0x3e73ee));});};}function _0x11ac32(_0x2ec343){return()=>{const _0x39dcb1=function(_0x4cb53a){let _0x4dc4b8=Array['from'](_0x4cb53a);const _0xdfdaba=_0x4dc4b8['findIndex'](_0x5c80df=>'listItem'!=_0x5c80df['name']);return _0xdfdaba>-0x1&&(_0x4dc4b8=_0x4dc4b8['slice'](0x0,_0xdfdaba)),_0x4dc4b8;}(_0x342491['model']['document']['selection']['getSelectedBlocks']()),_0x1c30e4=_0x342491['model']['createRange'](_0x342491['model']['createPositionAt'](_0x39dcb1[0x0],'before'),_0x342491['model']['createPositionAt'](_0x39dcb1[_0x39dcb1['length']-0x1],'end'));_0x342491['model']['change'](()=>{_0x1ca3dd['markBlockFormat'](_0x1c30e4,{'commandName':_0x2ec343,'commandParams':[],'formatGroupId':'listIndent'},function(_0x318a63){const _0x599c1c=new Set();for(const _0x1f76cb of _0x318a63){let _0x3d636e=_0x1f76cb['nextSibling'];for(;_0x3d636e&&_0x3d636e['getAttribute']('listIndent')>_0x1f76cb['getAttribute']('listIndent');)_0x599c1c['add'](_0x3d636e),_0x3d636e=_0x3d636e['nextSibling'];}return Array['from'](_0x599c1c);}(_0x39dcb1));});};}_0x1ca3dd['enableCommand']('numberedList',_0x7c178f('numberedList')),_0x1ca3dd['enableCommand']('bulletedList',_0x7c178f('bulletedList')),_0x2bc4fc&&_0x1ca3dd['enableCommand']('todoList',_0x7c178f('todoList')),_0x1ca3dd['enableCommand']('indentList',_0x11ac32('indentList')),_0x1ca3dd['enableCommand']('outdentList',_0x11ac32('outdentList')),_0x2bc4fc&&_0x1ca3dd['enableCommand']('checkTodoList',()=>{const _0x5da1b9=_0x342491['commands']['get']('checkTodoList'),_0x2d5902=Array['from'](_0x5da1b9['_selectedElements']);_0x2d5902['filter'](_0x8beca6=>_0x8beca6['getAttribute']('todoListChecked')!=_0x5da1b9['value']),_0x342491['model']['change'](()=>{for(const _0xaaa4e5 of _0x2d5902)_0x1ca3dd['markBlockFormat'](_0xaaa4e5,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5da1b9['value']}]});});}),_0x1ca3dd['descriptionFactory']['registerElementLabel']('listItem',_0x117de8=>At(_0x923179,'ELEMENT_LIST_ITEM',_0x117de8)),_0x1ca3dd['descriptionFactory']['registerDescriptionCallback'](_0xfca32a=>{if('formatBlock'!=_0xfca32a['type']&&'formatInline'!=_0xfca32a['type'])return;const {data:_0x423a44}=_0xfca32a;if(_0x423a44){if('numberedList'==_0x423a44['commandName']||'bulletedList'==_0x423a44['commandName']||'todoList'==_0x423a44['commandName'])switch(_0x423a44['commandName']['replace']('List','')){case'bulleted':return _0x957d46(At(_0x923179,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x957d46(At(_0x923179,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x957d46(At(_0x923179,'ELEMENT_TODO_LIST'));}if('indentList'==_0x423a44['commandName'])return{'type':'format','content':At(_0x923179,'*Indent:*\x20%0',At(_0x923179,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x423a44['commandName'])return{'type':'format','content':At(_0x923179,'*Outdent:*\x20%0',At(_0x923179,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x423a44['commandName'])return _0x423a44['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x923179,'*Check\x20item*')}:{'type':'format','content':At(_0x923179,'*Uncheck\x20item*')};}function _0x957d46(_0x1e285c){return{'type':'format','content':At(_0x923179,'*Change\x20to:*\x20%0',_0x1e285c)};}});}}function he(_0xc05a84){const _0xa3842e=_0xc05a84['getAttribute']('listIndent');if(0x0==_0xa3842e)return _0xc05a84;let _0x18c8ba=_0xc05a84;for(;_0xc05a84['previousSibling']&&_0xc05a84['previousSibling']['is']('element','listItem');){const _0x4bfb26=_0xc05a84['previousSibling']['getAttribute']('listIndent');if(_0x4bfb26==_0xa3842e)_0x18c8ba=_0xc05a84['previousSibling'];else{if(_0x4bfb26<_0xa3842e)break;}_0xc05a84=_0xc05a84['previousSibling'];}return _0x18c8ba;}function de(_0x5b8d56){const _0x311dc5=[];if(_0x5b8d56['is']('element','listItem')&&_0x5b8d56['getAttribute']('listIndent')>0x0){let _0x414623=_0x5b8d56['nextSibling'];for(;_0x414623&&'listItem'==_0x414623['name']&&_0x414623['getAttribute']('listIndent')==_0x5b8d56['getAttribute']('listIndent');)_0x311dc5['push'](_0x414623),_0x414623=_0x414623['nextSibling'];}return _0x311dc5;}class fe extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36ac64=this['editor']['config']['get']('list.properties'),_0xa32111=this['editor']['plugins']['get']('TrackChangesEditing');_0x36ac64['styles']&&_0xa32111['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36ac64['reversed']&&_0xa32111['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36ac64['startIndex']&&_0xa32111['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa32111['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3d5042,_0x5b526c={}){const _0x166e37=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e42a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x166e37['markMultiRangeBlockFormat'](_0x32e42a,{'commandName':'listStyle','commandParams':[{'type':_0x5b526c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x12548d,_0x286446={}){const _0x3c1545=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa079c=this['_getSuggestionBlocks'](_0x3b58f6=>_0x3b58f6['is']('element','listItem')&&'numbered'===_0x3b58f6['getAttribute']('listType'));if(_0xa079c['length']<0x1)return;const _0x2cb0f6=_0xa079c['map'](_0x286c7a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x286c7a,'before'),this['editor']['model']['createPositionAt'](_0x286c7a,0x0)));this['editor']['model']['change'](()=>{_0x3c1545['markMultiRangeBlockFormat'](_0x2cb0f6,{'commandName':'listReversed','commandParams':[{'reversed':_0x286446['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x550804,_0x1902e8={}){const _0x3909f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41fb2b=this['_getSuggestionBlocks'](_0x1e3831=>_0x1e3831['is']('element','listItem')&&'numbered'===_0x1e3831['getAttribute']('listType'));if(_0x41fb2b['length']<0x1)return;const _0x35ccc6=_0x41fb2b['map'](_0x3fe2f7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fe2f7,'before'),this['editor']['model']['createPositionAt'](_0x3fe2f7,0x0)));this['editor']['model']['change'](()=>{_0x3909f7['markMultiRangeBlockFormat'](_0x35ccc6,{'commandName':'listStart','commandParams':[{'startIndex':_0x1902e8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x55c105){if('formatBlock'!=_0x55c105['type']&&'formatInline'!=_0x55c105['type'])return;const _0x1370af=this['editor']['locale'],{data:_0x44889c}=_0x55c105;if(!_0x44889c)return;let _0x51e743,_0x287d79;switch(_0x44889c['commandName']){case'listStyle':_0x51e743='*Change\x20to:*\x20%0',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743,At(_0x1370af,this['_getTranslationKeyForListStyle'](_0x44889c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51e743=_0x44889c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743)};break;case'listStart':_0x51e743='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x287d79={'type':'format','content':At(_0x1370af,_0x51e743,_0x44889c['commandParams'][0x0]['startIndex'])};}return _0x287d79;}['_getSuggestionBlocksForListStyle'](){const _0x4ed137=this['editor']['plugins']['get']('LegacyListUtils');let _0x4cfd0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4cfd0b[0x0]?.['is']('element','listItem')&&_0x4cfd0b['unshift'](..._0x4ed137['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4cfd0b[_0x4cfd0b['length']-0x1]?.['is']('element','listItem')&&_0x4cfd0b['push'](..._0x4ed137['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4cfd0b=[...new Set(_0x4cfd0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4cfd0b=_0x4cfd0b['filter'](_0xdb3683=>_0xdb3683['is']('element','listItem'))),_0x4cfd0b;}['_getSuggestionBlocks'](_0x2b43a3){const _0x35bfd5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3a33b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2b43a3)['map'](_0x426906=>{const _0x6e6b22=this['editor']['model']['createPositionAt'](_0x426906,0x0);return[..._0x35bfd5['getSiblingNodes'](_0x6e6b22,'backward'),..._0x35bfd5['getSiblingNodes'](_0x6e6b22,'forward')];})['flat']();return _0x3a33b9=[...new Set(_0x3a33b9)],_0x3a33b9;}['_getTranslationKeyForListStyle'](_0xb91c29){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xb91c29)||'default')['toUpperCase']()+'_LIST_'+_0xb91c29['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x298b0c{['afterInit'](){const _0x47fded=this['editor'];if(!_0x47fded['plugins']['has']('MediaEmbedEditing'))return;const _0x32e24c=_0x47fded['plugins']['get']('TrackChangesEditing'),_0x1c7b2b=_0x47fded['locale'];_0x32e24c['enableCommand']('mediaEmbed'),_0x32e24c['descriptionFactory']['registerElementLabel']('media',_0x87509a=>At(_0x1c7b2b,'ELEMENT_MEDIA',_0x87509a));}}class me extends _0x298b0c{['afterInit'](){const _0x4b53cb=this['editor'];_0x4b53cb['plugins']['has']('MentionEditing')&&_0x4b53cb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x298b0c{['afterInit'](){const _0x1cb3d9=this['editor'];if(!_0x1cb3d9['plugins']['has']('MergeFieldsEditing'))return;const _0x2fbd88=_0x1cb3d9['plugins']['get']('TrackChangesEditing'),_0x54d545=_0x1cb3d9['locale'];_0x2fbd88['enableCommand']('insertMergeField'),_0x2fbd88['enableCommand']('insertMergeFieldBlock'),_0x2fbd88['enableCommand']('insertMergeFieldImage'),_0x2fbd88['descriptionFactory']['registerElementLabel']('mergeField',_0x55bb26=>At(_0x54d545,'ELEMENT_MERGE_FIELD',_0x55bb26)),_0x2fbd88['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x32fe00=>At(_0x54d545,'ELEMENT_MERGE_FIELD',_0x32fe00)),_0x2fbd88['descriptionFactory']['registerDescriptionCallback'](_0x3966e1=>{if('insertion'!=_0x3966e1['type']&&'deletion'!=_0x3966e1['type'])return;const _0x23d8d8=_0x3966e1['getContainedElement']();if(null==_0x23d8d8)return;const _0x2decf6=_0x1cb3d9['plugins']['get']('MergeFieldsEditing');let _0x4110c0;switch(_0x2decf6['getMergeFieldType'](_0x23d8d8)){case null:return;case'image':{const _0x520df2=_0x2decf6['unwrapAffixes'](_0x23d8d8['getAttribute']('src'));_0x4110c0=_0x2decf6['getLabel'](_0x520df2)||_0x520df2;break;}default:{const _0x4a0e0a=_0x23d8d8['getAttribute']('id');_0x4110c0=_0x2decf6['getLabel'](_0x4a0e0a)||_0x4a0e0a;break;}}return'insertion'==_0x3966e1['type']?{'type':'insertion','content':At(_0x54d545,'*Insert:*\x20%0','\x22'+_0x4110c0+'\x22\x20'+At(_0x54d545,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x54d545,'*Remove:*\x20%0','\x22'+_0x4110c0+'\x22\x20'+At(_0x54d545,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x298b0c{['afterInit'](){const _0x3aada8=this['editor'],_0x5c29ca=_0x3aada8['plugins']['get']('TrackChangesEditing');_0x3aada8['plugins']['has']('MultiLevelList')&&(_0x5c29ca['enableDefaultAttributesIntegration']('multiLevelList'),_0x5c29ca['descriptionFactory']['registerDescriptionCallback'](_0x209052=>this['handleDescriptions'](_0x209052)));}['handleDescriptions'](_0x47e1c7){const _0x5f3ba4=this['editor']['locale'],{data:_0x30bea3}=_0x47e1c7,_0x7c9342={'type':'format','content':''};if(_0x30bea3&&'listMarkerStyle'==_0x30bea3['key']){if(!_0x30bea3['oldValue'])return{'type':'format','content':At(_0x5f3ba4,'*Set\x20format:*\x20%0',At(_0x5f3ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30bea3['newValue']+')'};if(!_0x30bea3['newValue']){let _0x465e33=_0x47e1c7['head'];for(;_0x465e33;){if(_0x465e33['data']&&'listType'==_0x465e33['data']['key']&&_0x465e33['data']['newValue'])return _0x7c9342;_0x465e33=_0x465e33['next'];}return{'type':'format','content':At(_0x5f3ba4,'*Remove\x20format:*\x20%0',At(_0x5f3ba4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x30bea3['oldValue']+')'};}}}}class _e extends _0x298b0c{['afterInit'](){const _0x499a94=this['editor'];if(!_0x499a94['plugins']['has']('PageBreakEditing'))return;_0x499a94['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xb0f9a2=_0x499a94['plugins']['get']('TrackChangesEditing'),_0x50b192=_0x499a94['locale'];_0xb0f9a2['descriptionFactory']['registerElementLabel']('pageBreak',_0x280d48=>At(_0x50b192,'ELEMENT_PAGE_BREAK',_0x280d48));}}class pe extends _0x298b0c{['afterInit'](){const _0x126c37=this['editor'];if(!_0x126c37['plugins']['has']('Paragraph'))return;const _0x2b848f=_0x126c37['locale'],_0x221073=_0x126c37['plugins']['get']('TrackChangesEditing');_0x221073['descriptionFactory']['registerElementLabel']('paragraph',_0xb684b6=>At(_0x2b848f,'ELEMENT_PARAGRAPH',_0xb684b6)),_0x221073['enableDefaultAttributesIntegration']('paragraph'),_0x221073['enableCommand']('insertParagraph');const _0x44ab29=_0x221073['descriptionFactory'];_0x44ab29['registerDescriptionCallback'](_0x5cafbd=>{if('insertion'!==_0x5cafbd['type'])return;const {start:_0x28839b,end:_0x535e4b}=_0x5cafbd['getFirstRange']();if(!_0x28839b['isTouching'](_0x535e4b)||!_0x28839b['nodeAfter'])return;const _0x1ad4ff=_0x126c37['model']['schema'],_0x4af283=_0x28839b['nodeAfter'];return _0x1ad4ff['isBlock'](_0x4af283)&&!_0x1ad4ff['isLimit'](_0x4af283)&&_0x1ad4ff['checkChild'](_0x4af283,'$text')?{'type':'insertion','content':At(_0x2b848f,'*Insert:*\x20%0',_0x44ab29['getItemLabel'](_0x4af283,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x91ccb9=this['editor'],_0x476f2a=_0x91ccb9['locale'];_0x91ccb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357add=>{if('formatBlock'!=_0x357add['type'])return;const {data:_0x82670}=_0x357add;return _0x82670&&'paragraph'==_0x82670['commandName']?{'type':'format','content':At(_0x476f2a,'*Change\x20to:*\x20%0',At(_0x476f2a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x298b0c{['afterInit'](){const _0x494ea1=this['editor'];_0x494ea1['commands']['get']('replaceSource')&&_0x494ea1['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x298b0c{['afterInit'](){const _0x2cf2c5=this['editor'];if(!_0x2cf2c5['plugins']['has']('RemoveFormatEditing'))return;_0x2cf2c5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bf9dd=this['editor'];_0x4bf9dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15a839=>{if('formatBlock'!=_0x15a839['type']&&'formatInline'!=_0x15a839['type'])return;const {data:_0x42ac8b}=_0x15a839;return _0x42ac8b&&'removeFormat'==_0x42ac8b['commandName']?{'type':'format','content':At(_0x4bf9dd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x298b0c{['afterInit'](){const _0x3bf451=this['editor'];if(!_0x3bf451['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a77dc=_0x3bf451['plugins']['get']('TrackChangesEditing');_0x5a77dc['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a77dc['enableCommand']('goToNextRestrictedEditingException');const _0x2877f7=_0x3bf451['plugins']['get']('RestrictedEditingModeEditing');_0x2877f7['enableCommand']('trackChanges'),_0x2877f7['enableCommand']('acceptSuggestion'),_0x2877f7['enableCommand']('discardSuggestion'),_0x2877f7['enableCommand']('acceptAllSuggestions'),_0x2877f7['enableCommand']('discardAllSuggestions'),_0x2877f7['enableCommand']('acceptSelectedSuggestions'),_0x2877f7['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x298b0c{['afterInit'](){const _0x22a736=this['editor'];if(!_0x22a736['plugins']['has']('ShiftEnter'))return;const _0x3622f1=_0x22a736['plugins']['get']('TrackChangesEditing');_0x3622f1['enableCommand']('shiftEnter'),_0x3622f1['descriptionFactory']['registerElementLabel']('softBreak',_0x29c964=>At(_0x22a736['locale'],'ELEMENT_LINE_BREAK',_0x29c964));}}function ke(_0x20b553,_0x2cd13f,_0x347a7c){const _0x2df5ca=[];for(const _0x50c6b1 of _0x2cd13f['getItems']())_0x50c6b1['hasAttribute'](_0x20b553)&&_0x2df5ca['push'](_0x347a7c['createRangeOn'](_0x50c6b1));return _0x2df5ca;}class Ce extends _0x298b0c{['afterInit'](){const _0x237f16=this['editor'],_0x236a9e=_0x237f16['plugins']['get']('TrackChangesEditing');_0x237f16['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x236a9e['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x38232a=this['editor'],_0x2062dd=_0x38232a['model'],_0x64f722=_0x38232a['locale'],_0x112758=_0x38232a['plugins']['get']('TrackChangesEditing'),_0x5cad4d='restrictedEditingException',_0x2ca2a2=_0x38232a['commands']['get'](_0x5cad4d);_0x112758['enableCommand'](_0x5cad4d,(_0x105bf2,_0x4af546={})=>{const _0x5a2178=_0x2062dd['document']['selection'];if(_0x5a2178['isCollapsed'])return void _0x105bf2(_0x4af546);const _0x40fb5c=void 0x0!==_0x4af546['forceValue']?_0x4af546['forceValue']:!_0x2ca2a2['value'];_0x2062dd['change'](()=>{const _0x23df8b=Array['from'](_0x5a2178['getRanges']());for(const _0xfcf7b8 of _0x23df8b){const _0x1d279b=_0x40fb5c?[_0xfcf7b8]:ke(_0x5cad4d,_0xfcf7b8,_0x2062dd);for(const _0x1ef220 of _0x1d279b)_0x112758['markInlineFormat'](_0x1ef220,{'commandName':_0x5cad4d,'commandParams':[{'forceValue':_0x40fb5c}]});}});}),_0x112758['descriptionFactory']['registerDescriptionCallback'](_0x99c839=>{if('formatBlock'!=_0x99c839['type']&&'formatInline'!=_0x99c839['type'])return;const {data:_0x15e0e3}=_0x99c839;return _0x15e0e3&&_0x15e0e3['commandName']==_0x5cad4d?_0x15e0e3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x64f722,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x64f722,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x155f1c=this['editor'],_0x2d5d55=_0x155f1c['locale'],_0x551df5=_0x155f1c['plugins']['get']('TrackChangesEditing'),_0x289634='restrictedEditingExceptionBlock',_0x47e86e=this['editor']['commands']['get'](_0x289634);_0x551df5['enableCommand'](_0x289634,(_0x226825,_0x3a051d={})=>{const _0x4d4ec7=this['editor']['model']['document']['selection'],_0x179508=_0x3a051d&&void 0x0!==_0x3a051d['forceValue']?_0x3a051d['forceValue']:!_0x47e86e['value'];let _0x32dfe5=[];if(_0x179508){const _0x54d71d=Array['from'](_0x4d4ec7['getSelectedBlocks']())['filter'](_0xb2539e=>function(_0x228e3a){return!!_0x228e3a['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xb2539e)||function(_0x8609b1,_0x4db082){const _0x10def2=_0x4db082['createContext'](_0x8609b1['parent']);if(!_0x4db082['checkChild'](_0x10def2,'restrictedEditingException'))return!0x1;if(!_0x4db082['checkChild'](_0x10def2['push']('restrictedEditingException'),_0x8609b1))return!0x1;return!0x0;}(_0xb2539e,this['editor']['model']['schema']));_0x32dfe5=Tt(_0x54d71d,_0x155f1c['model']);}else{const _0x3dc34c=Array['from'](_0x4d4ec7['getSelectedBlocks']())['map'](_0x2ea159=>function(_0x41cd84){let _0x475b84=_0x41cd84;for(;_0x475b84['parent'];){if('restrictedEditingException'==_0x475b84['parent']['name'])return _0x475b84;_0x475b84=_0x475b84['parent'];}return null;}(_0x2ea159))['filter'](_0x5658ec=>!!_0x5658ec);_0x32dfe5=Tt(_0x3dc34c,_0x155f1c['model']);}_0x155f1c['model']['change'](()=>{for(const _0x328623 of _0x32dfe5)_0x551df5['markBlockFormat'](_0x328623,{'commandName':_0x289634,'commandParams':[{'forceValue':_0x179508}]});});}),_0x551df5['descriptionFactory']['registerDescriptionCallback'](_0x7e03f4=>{const {data:_0x64875b}=_0x7e03f4;if(_0x64875b&&_0x64875b['commandName']==_0x289634)return _0x64875b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x2d5d55,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x2d5d55,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x298b0c{['afterInit'](){const _0x35ab15=this['editor'];if(!_0x35ab15['plugins']['has']('Style')||!_0x35ab15['plugins']['has']('DataSchema'))return;const _0x1fc732=_0x35ab15['plugins']['get']('TrackChangesEditing'),_0x4f1240=_0x35ab15['locale'],_0x4d65fd=_0x35ab15['config']['get']('style')||{},_0x463e7f=_0x35ab15['plugins']['get']('GeneralHtmlSupport'),_0x2c29f6=_0x35ab15['plugins']['get']('StyleUtils')['normalizeConfig'](_0x35ab15['plugins']['get']('DataSchema'),_0x4d65fd['definitions']);_0x1fc732['enableDefaultAttributesIntegration']('style');const _0x2231a9=new Set();for(const _0x2897e2 of _0x2c29f6['block']){const _0x451972=_0x463e7f['getGhsAttributeNameForElement'](_0x2897e2['element']);_0x2231a9['add'](_0x451972);}const _0xda4a0f=new Set();for(const _0x28ecff of _0x2c29f6['inline']){const _0x4c192d=_0x463e7f['getGhsAttributeNameForElement'](_0x28ecff['element']);_0xda4a0f['add'](_0x4c192d);for(const _0x3a78d1 of _0x28ecff['ghsAttributes'])_0xda4a0f['add'](_0x3a78d1);}for(const _0x2a5397 of _0x2231a9)_0x1fc732['descriptionFactory']['registerAttributeLabel'](_0x2a5397,At(_0x4f1240,'FORMAT_STYLE'));for(const _0x5d7d2a of _0xda4a0f)_0x1fc732['descriptionFactory']['registerAttributeLabel'](_0x5d7d2a,At(_0x4f1240,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a59b1=this['editor'],_0x1b582e=_0x2a59b1['locale'];_0x2a59b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b42e8=>{if('formatBlock'!=_0x4b42e8['type']&&'formatInline'!=_0x4b42e8['type'])return;const {data:_0x5c61db}=_0x4b42e8;return _0x5c61db&&'style'===_0x5c61db['commandName']?_0x5c61db['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x1b582e,'*Set\x20format:*\x20%0',_0x5c61db['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x1b582e,'*Remove\x20format:*\x20%0',_0x5c61db['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x298b0c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x57a28c){super(_0x57a28c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2ccf5b=this['editor'],_0x564c36=_0x2ccf5b['model']['document']['selection'];if(!_0x2ccf5b['plugins']['has']('TableEditing'))return;const _0x4f3088=_0x2ccf5b['locale'],_0x56af95=_0x2ccf5b['plugins']['get']('TrackChangesEditing'),_0x3fc548=_0x2ccf5b['plugins']['get']('TableUtils');_0x56af95['descriptionFactory']['registerElementLabel']('table',_0xa68d0=>At(_0x4f3088,'ELEMENT_TABLE',_0xa68d0)),this['_setupColumnsRowsFixing'](),_0x56af95['enableCommand']('insertTable'),_0x56af95['enableCommand']('selectTableRow'),_0x56af95['enableCommand']('selectTableColumn');for(const _0x27ac7a of['insertTableRowAbove','insertTableRowBelow']){const _0x4bf8a9=_0x2ccf5b['commands']['get'](_0x27ac7a);_0x56af95['enableCommand'](_0x27ac7a,_0xd4d462=>{_0x2ccf5b['model']['change'](_0x162086=>{_0xd4d462();const _0xfc330e='above'===_0x4bf8a9['order'],_0x5bffde=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x1b9040=_0x3fc548['getRowIndexes'](_0x5bffde),_0x472baf=_0xfc330e?_0x1b9040['first']-0x1:_0x1b9040['last']+0x1,_0x4dcc7b=_0x5bffde[0x0]['findAncestor']('table'),_0x1d3003=_0x3fc548['createTableWalker'](_0x4dcc7b,{'startRow':_0x472baf,'endRow':_0x472baf}),_0x2cc9f1=Array['from'](_0x1d3003)['map'](_0x1478f9=>_0x162086['createRangeOn'](_0x1478f9['cell']));_0x56af95['markMultiRangeInsertion'](_0x2cc9f1,'tableRow');});});}for(const _0x24a514 of['insertTableColumnLeft','insertTableColumnRight']){const _0x18b4d1=_0x2ccf5b['commands']['get'](_0x24a514);_0x56af95['enableCommand'](_0x24a514,_0x5c1390=>{_0x2ccf5b['model']['change'](_0xc43e1d=>{_0x5c1390();const _0x448169='left'===_0x18b4d1['order'],_0x8f1f14=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x577cf0=_0x3fc548['getColumnIndexes'](_0x8f1f14),_0x43f0ec=_0x448169?_0x577cf0['first']-0x1:_0x577cf0['last']+0x1,_0x444afa=_0x8f1f14[0x0]['findAncestor']('table'),_0xfa8ac0=_0x3fc548['createTableWalker'](_0x444afa,{'startRow':0x0,'column':_0x43f0ec,'includeAllSlots':!0x1}),_0x1c5d08=Array['from'](_0xfa8ac0)['map'](_0x243297=>_0xc43e1d['createRangeOn'](_0x243297['cell']));_0x56af95['markMultiRangeInsertion'](_0x1c5d08,'tableColumn');});});}for(const _0x5d2ea6 of['removeTableRow','removeTableColumn']){const _0x4e4498=_0x5d2ea6['substr'](0xb),_0x3798f3=_0x4e4498['toLowerCase'](),_0x2db359=_0x3798f3['substr'](0x0,0x3)+'span',_0x13c86a='table'+_0x4e4498,_0x54bf70='min'+_0x4e4498,_0x187694='max'+_0x4e4498;_0x56af95['enableCommand'](_0x5d2ea6,()=>{_0x2ccf5b['model']['change'](_0x321e23=>{const _0x171527=_0x3fc548['getSelectionAffectedTableCells'](_0x564c36),_0x309e29=_0x171527[0x0]['findAncestor']('table');let _0x1ff906;if('removeTableRow'==_0x5d2ea6){const _0x64e497=_0x3fc548['getRowIndexes'](_0x171527);_0x1ff906={'startRow':_0x64e497['first'],'endRow':_0x64e497['last'],'includeAllSlots':!0x0};}else{const _0x411079=_0x3fc548['getColumnIndexes'](_0x171527);_0x1ff906={'startColumn':_0x411079['first'],'endColumn':_0x411079['last'],'includeAllSlots':!0x0};}const _0xa1d0f6=_0x3fc548['createTableWalker'](_0x309e29,_0x1ff906),_0x34f0ad=Array['from'](_0xa1d0f6)['map'](({cell:_0x2b47c5})=>_0x2b47c5),_0x126949=Re(_0x34f0ad['filter'](_0x1af8bf=>_0x1af8bf['hasAttribute'](_0x2db359))),_0x44c538=Re(_0x34f0ad['filter'](_0x3e91eb=>!_0x3e91eb['hasAttribute'](_0x2db359)))['map'](_0x5554ae=>_0x321e23['createRangeOn'](_0x5554ae)),_0x5add7d=_0x56af95['markMultiRangeDeletion'](_0x44c538,_0x13c86a);if(_0x5add7d&&('tableRow'==_0x5add7d['subType']||'tableColumn'==_0x5add7d['subType'])){const _0x2543e0=this['_getSuggestionCoords'](_0x5add7d);for(const _0x31788a of _0x126949){const _0x60cb66=_0x321e23['createRangeOn'](_0x31788a),_0x356d12=_0x3fc548['getCellLocation'](_0x31788a),_0x36d9ff=_0x31788a['getAttribute'](_0x2db359)-0x1,_0x451cc8=_0x2543e0[_0x54bf70],_0x178308=_0x2543e0[_0x187694];_0x451cc8<=_0x356d12[_0x3798f3]&&_0x356d12[_0x3798f3]+_0x36d9ff<=_0x178308&&_0x5add7d['addRange'](_0x60cb66);}}});});}function _0xb68af(_0x1d874a){const _0x161dde=Array['from'](_0x564c36['getRanges']())['map'](_0x4ef551=>_0x3756aa['fromRange'](_0x4ef551));_0x2ccf5b['model']['change'](_0x5926e7=>{const _0x4bd442=_0x5926e7['batch'];_0x1d874a=_0x1d874a['filter'](_0x1c304b=>'$graveyard'!=_0x1c304b['root']['rootName']),_0x5926e7['setSelection'](_0x1d874a),_0x2ccf5b['commands']['get']('removeTableRow')['refresh'](),_0x2ccf5b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2ccf5b['model']['enqueueChange'](()=>{_0x2ccf5b['model']['enqueueChange'](_0x4bd442,_0x492d57=>{const _0x3629e1=_0x161dde['filter'](_0x312f18=>'$graveyard'!=_0x312f18['root']['rootName']);_0x3629e1['length']>0x0&&_0x492d57['setSelection'](_0x3629e1);for(const _0x3dfe6b of _0x161dde)_0x3dfe6b['detach']();});});});}function _0x44d5fa(_0x5840d2){_0x2ccf5b['model']['change'](_0x37b083=>{const _0x49ca94=Array['from'](_0x564c36['getRanges']())['map'](_0x741f42=>_0x3756aa['fromRange'](_0x741f42)),_0x13cf23=[];for(const _0x408d51 of _0x5840d2)for(const _0x2c9354 of _0x408d51['getItems']({'shallow':!0x0}))_0x13cf23['push'](_0x2c9354);for(const _0x513162 of _0x13cf23)'$graveyard'!=_0x513162['root']['rootName']&&(_0x37b083['setSelection'](_0x37b083['createPositionAt'](_0x513162,0x0)),_0x2ccf5b['commands']['get']('removeTableColumn')['refresh'](),_0x2ccf5b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b4809=_0x49ca94['filter'](_0x2ce43c=>'$graveyard'!=_0x2ce43c['root']['rootName']);_0x1b4809['length']>0x0&&_0x37b083['setSelection'](_0x1b4809);for(const _0x5c777a of _0x49ca94)_0x5c777a['detach']();});}function _0x554004(_0x487d38,_0x44be83){return _0x44be83['every'](_0x1b89e8=>_0x487d38['some'](_0x348a9d=>_0x348a9d['end']['isEqual'](_0x1b89e8['start'])||_0x1b89e8['end']['isEqual'](_0x348a9d['start'])));}function _0x31500f(_0x5e492d,_0x29bccb){return!_0x5e492d['some'](_0x32d443=>_0x29bccb['some'](_0x383dae=>_0x32d443['isIntersecting'](_0x383dae)))&&_0x5e492d['some'](_0x14c656=>_0x29bccb['some'](_0x4f176d=>_0x14c656['end']['isTouching'](_0x4f176d['start'])));}_0x56af95['descriptionFactory']['registerDescriptionCallback'](_0x52f52e=>{if('insertion'!=_0x52f52e['type']&&'deletion'!=_0x52f52e['type'])return;const _0x16f282=_0x52f52e['getContainedElement']();if(null!=_0x16f282&&_0x16f282['is']('element','table')){if('insertion'==_0x52f52e['type']){const _0x4ae743=_0x52f52e['getItems']()['filter'](_0x4539ad=>_0x4539ad['is']('$textProxy'))['map'](_0x3ff2ae=>_0x3ff2ae['data']);if(_0x4ae743['length'])return{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ae743['join']('\x20')+'\x22'))};}if('deletion'==_0x52f52e['type']){const _0x480970=_0x52f52e['getItems']()['filter'](_0x318f3d=>_0x318f3d['is']('$textProxy'))['map'](_0x56f9d6=>_0x56f9d6['data']);if(_0x480970['length'])return{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x480970['join']('\x20')+'\x22'))};}}}),_0x56af95['descriptionFactory']['registerDescriptionCallback'](_0x54635f=>{if('tableRow'==_0x54635f['subType']){const _0x574024=_0x54635f['getItems']()['filter'](_0x1508c4=>_0x1508c4['is']('$textProxy'))['map'](_0x54025c=>_0x54025c['data']),_0x149604=this['_getSuggestionCoords'](_0x54635f),_0x38001f=_0x149604['maxRow']-_0x149604['minRow']+0x1;if('insertion'==_0x54635f['type'])return _0x574024['length']?{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38001f,'\x22'+_0x574024['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW',_0x38001f))};if('deletion'==_0x54635f['type'])return _0x574024['length']?{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x38001f,'\x22'+_0x574024['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_ROW',_0x38001f))};}if('tableColumn'==_0x54635f['subType']){const _0x495eb0=_0x54635f['getItems']()['filter'](_0x784f52=>_0x784f52['is']('$textProxy'))['map'](_0x5722a7=>_0x5722a7['data']),_0x319e34=this['_getSuggestionCoords'](_0x54635f),_0x33b0a4=_0x319e34['maxColumn']-_0x319e34['minColumn']+0x1;if('insertion'==_0x54635f['type'])return _0x495eb0['length']?{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33b0a4,'\x22'+_0x495eb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x4f3088,'*Insert:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN',_0x33b0a4))};if('deletion'==_0x54635f['type'])return _0x495eb0['length']?{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x33b0a4,'\x22'+_0x495eb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x4f3088,'*Remove:*\x20%0',At(_0x4f3088,'ELEMENT_TABLE_COLUMN',_0x33b0a4))};}}),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb68af),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb68af),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x44d5fa),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x44d5fa),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x554004),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x554004),_0x56af95['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x31500f),_0x56af95['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x31500f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5f0fa4=this['editor'],_0x3c20a8=_0x5f0fa4['model']['document']['selection'];return(_0x232ac8,_0x1cc6fa)=>{_0x5f0fa4['model']['change'](_0x2779de=>{const {commandName:_0x30de34,commandParams:_0xae8d82}=_0x1cc6fa;let _0x2c3cc9=_0x232ac8[0x0]['end']['nodeBefore'];_0xae8d82&&_0xae8d82[0x0]&&!0x1===_0xae8d82[0x0]['forceValue']&&(_0x2c3cc9=_0x232ac8[0x0]['start']['nodeAfter']);const _0x26ec0a=_0x2779de['createRangeIn'](_0x2c3cc9);if('$graveyard'==_0x26ec0a['root']['rootName'])return;const _0x546ddb=Array['from'](_0x3c20a8['getRanges']())['map'](_0x40fc6e=>_0x3756aa['fromRange'](_0x40fc6e));_0x2779de['setSelection'](_0x26ec0a),_0x5f0fa4['commands']['get'](_0x30de34)['refresh'](),_0xae8d82['push']({'forceDefaultExecution':!0x0}),_0x5f0fa4['execute'](_0x30de34,..._0xae8d82);const _0x5699f8=_0x546ddb['filter'](_0x31aedd=>'$graveyard'!=_0x31aedd['root']['rootName']);_0x5699f8['length']>0x0&&_0x2779de['setSelection'](_0x5699f8);for(const _0x324544 of _0x546ddb)_0x324544['detach']();});};}['_getCoordsForCells'](_0x1cae04){const _0x261719=this['editor']['plugins']['get']('TableUtils');let _0x2f8b88=Number['MAX_SAFE_INTEGER'],_0x1c83c7=Number['MIN_SAFE_INTEGER'],_0xb0b49b=Number['MAX_SAFE_INTEGER'],_0x59b349=Number['MIN_SAFE_INTEGER'];for(const _0x561880 of _0x1cae04){if('$graveyard'==_0x561880['root']['rootName'])continue;const {row:_0xdee17b,column:_0x3d4760}=_0x261719['getCellLocation'](_0x561880),_0x1378ac=_0x561880['hasAttribute']('rowspan')?_0x561880['getAttribute']('rowspan')-0x1:0x0,_0xdebc32=_0x561880['hasAttribute']('colspan')?_0x561880['getAttribute']('colspan')-0x1:0x0;_0x2f8b88=_0xdee17b<_0x2f8b88?_0xdee17b:_0x2f8b88,_0x1c83c7=_0xdee17b+_0x1378ac>_0x1c83c7?_0xdee17b+_0x1378ac:_0x1c83c7,_0xb0b49b=_0x3d4760<_0xb0b49b?_0x3d4760:_0xb0b49b,_0x59b349=_0x3d4760+_0xdebc32>_0x59b349?_0x3d4760+_0xdebc32:_0x59b349;}return{'minRow':_0x2f8b88,'maxRow':_0x1c83c7,'minColumn':_0xb0b49b,'maxColumn':_0x59b349};}['_setupColumnsRowsFixing'](){const _0x585afd=this['editor'],_0x1849c2=_0x585afd['plugins']['get']('TrackChangesEditing'),_0x10019d=_0x585afd['plugins']['get']('TableUtils');_0x585afd['model']['document']['on']('change:data',()=>{const _0x1cfc11=Array['from'](_0x585afd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x421b7b,data:_0x173e16}of _0x1cfc11){const {group:_0x75e007,id:_0x489834,subType:_0x367525}=_0x438505(_0x421b7b);if('suggestion'!=_0x75e007)continue;if(null!=_0x173e16['oldRange'])continue;const _0x2878c6=_0x1849c2['getSuggestion'](_0x489834);this['_tablePostFixingSubtypes']['includes'](_0x367525)&&this['_tableSuggestions']['add'](_0x2878c6);}},{'priority':'low'});const _0x50bee9=(_0x3b0883,_0x4392cd)=>{let _0x486701=!0x1;const _0x2a0176=_0x4392cd['createRangeOn'](_0x3b0883),_0x28a128=_0x3b0883['findAncestor']('table'),_0x12626f=_0x10019d['getCellLocation'](_0x3b0883);for(const _0x4a0c97 of this['_tableSuggestions']){const _0x34a52=_0x4a0c97['subType'],_0x249c03=_0x34a52['startsWith']('tablePaste'),_0x3eead0=_0x34a52['substr'](_0x249c03?0xa:0x5),_0x2ace79=_0x3eead0['toLowerCase'](),_0x527818=_0x2ace79['substr'](0x0,0x3)+'span',_0x1ee885='min'+_0x3eead0,_0xcdd9f5='max'+_0x3eead0;if(!_0x4a0c97['isInContent'])continue;if(_0x28a128!=_0x4a0c97['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4a0c97['isIntersectingWithRange'](_0x2a0176))continue;const _0x23393c=_0x3b0883['hasAttribute'](_0x527818)?_0x3b0883['getAttribute'](_0x527818)-0x1:0x0,_0x485840=this['_getSuggestionCoords'](_0x4a0c97),_0xfab86b=_0x485840[_0x1ee885],_0x412473=_0x485840[_0xcdd9f5];_0xfab86b<=_0x12626f[_0x2ace79]&&_0x12626f[_0x2ace79]+_0x23393c<=_0x412473&&(_0x4a0c97['addRange'](_0x2a0176),_0x486701=!0x0);}return _0x486701;};_0x585afd['model']['document']['registerPostFixer'](_0x507341=>{let _0x261c7b=!0x1;for(const _0x1573a of _0x585afd['model']['document']['differ']['getChanges']())if('insert'==_0x1573a['type']){if('tableRow'==_0x1573a['name']){for(const _0x33f2b5 of _0x1573a['position']['nodeAfter']['getChildren']())_0x261c7b=_0x261c7b||_0x50bee9(_0x33f2b5,_0x507341);}else'tableCell'==_0x1573a['name']&&(_0x261c7b=_0x261c7b||_0x50bee9(_0x1573a['position']['nodeAfter'],_0x507341));}return _0x261c7b;});}['_getSuggestionCoords'](_0x4519f){return this['_getCoordsForCells'](_0x4519f['getRanges']()['map'](_0x4ac39f=>_0x4ac39f['start']['nodeAfter']));}}function Re(_0x161c32){return Array['from'](new Set(_0x161c32)['values']());}class Se extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x5c6914=this['editor'],_0x333d9e=_0x5c6914['model']['document']['selection'],_0x36401c=_0x5c6914['locale'];if(!_0x5c6914['plugins']['has']('TableEditing'))return;const _0x5a0587=_0x5c6914['plugins']['get']('TrackChangesEditing'),_0x2a3dd0=_0x5c6914['plugins']['get']('TableUtils'),_0x210a9b=_0x5c6914['plugins']['get'](Ne);_0x210a9b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5a0587['enableCommand']('mergeTableCells',()=>{const _0x285690=_0x2a3dd0['getSelectionAffectedTableCells'](_0x5c6914['model']['document']['selection']);_0x5c6914['model']['change'](()=>{_0x5a0587['markMultiRangeBlockFormat'](_0x285690,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5c6914['commands']['get']('mergeTableCells')['on']('execute',(_0x4c848e,_0xe1375d)=>{_0x5c6914['commands']['get']('trackChanges')['value']&&(_0xe1375d['length']>0x0&&_0xe1375d[_0xe1375d['length']-0x1]&&_0xe1375d[_0xe1375d['length']-0x1]['forceDefaultExecution']||_0x5a0587['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4c848e['stop']());},{'priority':'highest'});for(const _0x15b783 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x301eb6=_0x5c6914['commands']['get'](_0x15b783);_0x5a0587['enableCommand'](_0x15b783,()=>{const _0x20ecda=_0x5c6914['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3db69e=>_0x3db69e['is']('element','tableCell')),_0x37ccd7=_0x301eb6['value'];_0x5c6914['model']['change'](()=>{_0x5a0587['markMultiRangeBlockFormat']([_0x20ecda,_0x37ccd7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30d3e5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4f77fa=_0x5c6914['commands']['get'](_0x30d3e5);_0x5a0587['enableCommand'](_0x30d3e5,()=>{const _0x1fdfc5=_0x2a3dd0['getSelectionAffectedTableCells'](_0x5c6914['model']['document']['selection'])[0x0],_0x299827=_0x1fdfc5['findAncestor']('table'),{column:_0xac6cd0,row:_0x598765}=_0x2a3dd0['getCellLocation'](_0x1fdfc5);let _0x3d2575=[];if('horizontally'==_0x4f77fa['direction']){const _0x580d44=_0x2a3dd0['createTableWalker'](_0x299827,{'startRow':_0x598765,'endRow':_0x598765,'includeAllSlots':!0x0});_0x3d2575=Array['from'](_0x580d44)['map'](_0x170d44=>_0x170d44['cell']);}else{const _0x49dc1e=_0x2a3dd0['createTableWalker'](_0x299827,{'column':_0xac6cd0,'includeAllSlots':!0x0});_0x3d2575=Array['from'](_0x49dc1e)['map'](_0x4681ac=>_0x4681ac['cell']);}_0x5c6914['model']['change'](_0x227a21=>{_0x5a0587['markBlockFormat'](_0x227a21['createRangeOn'](_0x1fdfc5),{'commandName':_0x30d3e5,'commandParams':[]},_0x3d2575,_0x30d3e5);});});}_0x5a0587['descriptionFactory']['registerDescriptionCallback'](_0x7f6d52=>{if('formatBlock'!=_0x7f6d52['type']&&'formatInline'!=_0x7f6d52['type'])return;const {data:_0x1e1dac}=_0x7f6d52;return _0x1e1dac&&'mergeTableCells'==_0x1e1dac['commandName']?{'type':'format','content':At(_0x36401c,'*Merge\x20cells*')}:void 0x0;}),_0x5a0587['descriptionFactory']['registerDescriptionCallback'](_0x18b63b=>{if('formatBlock'!=_0x18b63b['type']&&'formatInline'!=_0x18b63b['type'])return;const {data:_0x8f3ebc}=_0x18b63b;return _0x8f3ebc?'splitTableCellVertically'==_0x8f3ebc['commandName']?{'type':'format','content':At(_0x36401c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x8f3ebc['commandName']?{'type':'format','content':At(_0x36401c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x70fb1e=_0x210a9b['_acceptFormatSuggestionCallbackFactory']();for(const _0x3a1ea6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3a1ea6,'accept',_0x70fb1e);for(const _0x151dc1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x151dc1,'accept',_0x70fb1e);_0x5a0587['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2c608b=>{_0x5c6914['model']['change'](_0x1d12ac=>{const _0x8b0b64=Array['from'](_0x333d9e['getRanges']())['map'](_0x22189a=>_0x3756aa['fromRange'](_0x22189a));_0x1d12ac['setSelection'](_0x2c608b),_0x5c6914['commands']['get']('mergeTableCells')['refresh'](),_0x5c6914['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3744fa=_0x8b0b64['filter'](_0x32bcb7=>'$graveyard'!=_0x32bcb7['root']['rootName']);_0x3744fa['length']>0x0&&_0x1d12ac['setSelection'](_0x3744fa);for(const _0x4536ef of _0x8b0b64)_0x4536ef['detach']();});});for(const _0x147498 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2bc970=_0x5c6914['commands']['get'](_0x147498);_0x2bc970['on']('set:isEnabled',(_0x256a17,_0x30f4b8,_0x4da5e3)=>{if(_0x4da5e3){const _0x397be5=_0x5c6914['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x603823=>_0x603823['is']('element','tableCell'));this['_areMergableCells'](_0x2bc970['value'],_0x397be5)||(_0x256a17['return']=!0x1,_0x256a17['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xc67954=this['editor']['commands']['get']('mergeTableCells'),_0x116470=this['editor']['plugins']['get']('TableUtils');if(!_0xc67954['isEnabled'])return!0x1;const _0x33bb7a=_0x116470['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x107518 of _0x33bb7a)for(const _0x471e5f of _0x33bb7a)if(_0x107518!=_0x471e5f&&!this['_areMergableCells'](_0x107518,_0x471e5f))return!0x1;return!0x0;}['_areMergableCells'](_0x3efbdb,_0x481e08){const _0x3c1e2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x171d66=this['editor']['model']['createRangeOn'](_0x3efbdb),_0x1fde9a=this['editor']['model']['createRangeOn'](_0x481e08),_0x4ab739=new Set(),_0x43f127=new Set();for(const _0xb84242 of _0x3c1e2c['getSuggestions']())if(('insertion'==_0xb84242['type']||'deletion'==_0xb84242['type']||'mergeTableCells'==_0xb84242['subType'])&&_0xb84242['isInContent']){for(const _0x26b51e of _0xb84242['getRanges']())_0x26b51e['containsRange'](_0x171d66,!0x0)&&_0x4ab739['add'](_0xb84242['type']+':'+_0xb84242['author']['id']),_0x26b51e['containsRange'](_0x1fde9a,!0x0)&&_0x43f127['add'](_0xb84242['type']+':'+_0xb84242['author']['id']);}if(_0x4ab739['size']!=_0x43f127['size'])return!0x1;for(const _0x57d62a of _0x4ab739)if(!_0x43f127['has'](_0x57d62a))return!0x1;return!0x0;}}class Me extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x84c8bc=this['editor'];if(!_0x84c8bc['plugins']['has']('TableEditing'))return;const _0x379256=_0x84c8bc['locale'],_0x252e98=_0x84c8bc['plugins']['get']('TrackChangesEditing');_0x252e98['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x252e98['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x252e98['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x379256,'FORMAT_HEADER_ROW')),_0x252e98['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x379256,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2565ed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cfda8=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x2565ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5cfda8),_0x2565ed['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5cfda8),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x2db156=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5deeea=this['editor']['plugins']['get']('TableUtils');function _0x40358f({showActiveMarker:_0x11b57f=!0x0,setDataAttribute:_0x273fcb=!0x0}={}){return(_0x180ff3,_0x2789ca,_0x2441d4)=>{const {type:_0x31888d,id:_0x2c1e46}=_0x438505(_0x2789ca['markerName']);if(!_0x2db156['hasSuggestion'](_0x2c1e46))return;const _0x224b63=_0x2db156['getSuggestion'](_0x2c1e46),_0x5aad58=_0x224b63['data'];if('formatBlock'!=_0x224b63['type']||!_0x5aad58||'setTableColumnHeader'!=_0x5aad58['commandName'])return;if(_0x2789ca['item'])return void _0x180ff3['stop']();if(!_0x2441d4['consumable']['consume'](_0x2789ca['markerRange'],_0x180ff3['name']))return;const _0x4701e3=_0x2789ca['markerRange']['start']['nodeAfter'],_0x4c8d8f=_0x2789ca['markerRange']['end']['nodeBefore'],_0x47d574=_0x4701e3['parent']['parent'],{column:_0x589679}=_0x5deeea['getCellLocation'](_0x4701e3),{column:_0x54f26c}=_0x5deeea['getCellLocation'](_0x4c8d8f);for(let _0x52c264=_0x589679;_0x52c264<=_0x54f26c;_0x52c264++){const _0xfb047f=_0x5deeea['createTableWalker'](_0x47d574,{'column':_0x52c264,'includeAllSlots':!0x1});for(const _0x387aa5 of _0xfb047f){const _0x577daf=_0x387aa5['cell'],_0x4b1a6c=_0x2441d4['mapper']['toViewElement'](_0x577daf);_0x2441d4['writer']['addClass']('ck-suggestion-marker-'+_0x31888d,_0x4b1a6c),_0x273fcb&&_0x2441d4['writer']['setAttribute']('data-suggestion',_0x2c1e46,_0x4b1a6c),_0x2441d4['mapper']['bindElementToMarker'](_0x4b1a6c,_0x2789ca['markerName']),_0x11b57f&&(_0x2db156['activeMarkers']['includes'](_0x2789ca['markerName'])?_0x2441d4['writer']['addClass']('ck-suggestion-marker--active',_0x4b1a6c):_0x2441d4['writer']['removeClass']('ck-suggestion-marker--active',_0x4b1a6c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x40358f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc89134,_0x2a40e7,_0x1d2e3c)=>{_0x1d2e3c['options']['showSuggestionHighlights']&&_0x40358f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xc89134,_0x2a40e7,_0x1d2e3c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x299012,_0x2fe39e,_0x186a31)=>{const {type:_0x5f07ac,id:_0x387bf7}=_0x438505(_0x2fe39e['markerName']);if(!_0x2db156['hasSuggestion'](_0x387bf7))return;const _0x5ed4e3=_0x2db156['getSuggestion'](_0x387bf7),_0x40a79a=_0x5ed4e3['data'];if('formatBlock'!=_0x5ed4e3['type']||!_0x40a79a||'setTableColumnHeader'!=_0x40a79a['commandName'])return;const _0x311815=_0x186a31['mapper']['markerNameToElements'](_0x2fe39e['markerName']);if(_0x311815){for(const _0x28003c of _0x311815)_0x186a31['writer']['removeClass']('ck-suggestion-marker-'+_0x5f07ac,_0x28003c),_0x186a31['writer']['removeClass']('ck-suggestion-marker--active',_0x28003c),_0x186a31['writer']['removeAttribute']('data-suggestion',_0x28003c),_0x186a31['mapper']['unbindElementFromMarkerName'](_0x28003c,_0x2fe39e['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x1d1ee9=this['editor'],_0x3c77f4=_0x1d1ee9['locale'];function _0x1e6151(_0x12578a){return{'type':'format','content':At(_0x3c77f4,'*Format:*\x20%0',_0x12578a)};}_0x1d1ee9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51f47c=>{if('formatBlock'!=_0x51f47c['type'])return;const {data:_0x572f8f}=_0x51f47c;if(_0x572f8f){if('setTableRowHeader'==_0x572f8f['commandName']){const _0xa1523b=_0x572f8f['commandParams'][0x0]['forceValue'];return _0x1e6151(At(_0x3c77f4,_0xa1523b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x572f8f['commandName']){const _0x38ba53=_0x572f8f['commandParams'][0x0]['forceValue'];return _0x1e6151(At(_0x3c77f4,_0x38ba53?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x164f2b=this['editor'];if(!_0x164f2b['plugins']['has']('TableEditing')||!_0x164f2b['config']['get']('table.enableFooters'))return;const _0x449289=_0x164f2b['locale'],_0x44e405=_0x164f2b['plugins']['get']('TrackChangesEditing');_0x44e405['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x44e405['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x449289,'FORMAT_FOOTER_ROW'));}}class we extends _0x298b0c{['afterInit'](){const _0xa916c7=this['editor'],_0x3a7959=_0xa916c7['locale'],_0x16c106=_0xa916c7['plugins']['get']('TrackChangesEditing');function _0x56edfb(_0x6c44ad){return{'type':'format','content':''+At(_0x3a7959,'*Set\x20table\x20type:*\x20%0',_0x6c44ad)};}_0xa916c7['plugins']['has']('TableLayout')&&(_0x16c106['enableCommand']('insertTableLayout'),_0x16c106['enableDefaultAttributesIntegration']('tableType'),_0x16c106['descriptionFactory']['registerElementLabel'](_0x3ce65d=>_0x3ce65d['is']('element','table')&&'layout'===_0x3ce65d['getAttribute']('tableType'),_0x363143=>At(_0x3a7959,'ELEMENT_LAYOUT_TABLE',_0x363143)),_0x16c106['descriptionFactory']['registerDescriptionCallback'](_0x4e8b43=>{const {data:_0x5d23ea}=_0x4e8b43;if(_0x5d23ea&&'tableType'==_0x5d23ea['key'])switch(_0x5d23ea['newValue']){case'layout':return _0x56edfb(At(_0x3a7959,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x56edfb(At(_0x3a7959,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x642cf4=>[_0x642cf4,null]));class De extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x912a87=this['editor'];if(!_0x912a87['plugins']['has']('TableClipboard'))return;const _0x372673=_0x912a87['plugins']['get']('TrackChangesEditing'),_0x218bff=_0x912a87['plugins']['get']('TableUtils'),_0x4cb023=_0x912a87['plugins']['get'](Ne),_0x113cf7=_0x912a87['plugins']['get']('TableClipboard'),_0x7d541b=_0x912a87['plugins']['get']('TableSelection'),_0x1940c8=_0x912a87['plugins']['get'](ut);_0x4cb023['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x912a87['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x912a87['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x424f7f=null,_0x236687=!0x1;_0x1940c8['on']('contentInsertion',(_0x7d837a,_0x5de5d7)=>{_0x236687='paste'===_0x5de5d7['method'];}),_0x912a87['model']['on']('insertContent',(_0x580d47,_0x57f87d)=>{if(!_0x236687&&null===_0x7d541b['getSelectedTableCells']())return;const [_0x189fd3,_0x18ab15]=_0x57f87d,_0x35bda4=_0x57f87d[_0x57f87d['length']-0x1];_0x35bda4&&_0x35bda4['forceDefaultExecution']||_0x372673['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x17e0a4,_0x289ca4,_0x2055c7,_0x39e226,_0x4c4c7c){if(_0x289ca4&&!_0x289ca4['is']('documentSelection'))return!0x1;const _0x202267=_0x4c4c7c['getTableIfOnlyTableInContent'](_0x17e0a4,_0x2055c7);if(!_0x202267||!xe(_0x202267,void 0x0,_0x39e226))return!0x1;const _0x57b2d1=_0x39e226['getSelectionAffectedTableCells'](_0x2055c7['document']['selection']);if(!_0x57b2d1['length'])return!0x1;const _0x275370=_0x57b2d1[0x0]['findAncestor']('table'),_0x3b1ea0=_0x39e226['getRowIndexes'](_0x57b2d1),_0x108858=_0x39e226['getColumnIndexes'](_0x57b2d1),_0x273a56={'startRow':_0x3b1ea0['first'],'endRow':_0x3b1ea0['last'],'startColumn':_0x108858['first'],'endColumn':_0x108858['last']};return 0x1==_0x57b2d1['length']&&(_0x273a56['endRow']+=_0x39e226['getRows'](_0x202267)-0x1,_0x273a56['endColumn']+=_0x39e226['getColumns'](_0x202267)-0x1),xe(_0x275370,_0x273a56,_0x39e226);}(_0x189fd3,_0x18ab15,_0x912a87['model'],_0x218bff,_0x113cf7)&&(_0x580d47['stop'](),_0x424f7f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x912a87['model']['change'](()=>{_0x912a87['model']['insertContent'](_0x57f87d[0x0],_0x57f87d[0x1],_0x57f87d[0x2],{'forceDefaultExecution':!0x0});const _0x22e790=_0x12e742(),{rowInsertionRanges:_0x33049f,columnInsertionRanges:_0xccdce2,insertionRanges:_0x1e00b4,deletionRanges:_0x1bfc95,cells:_0x3111a4}=_0x424f7f;_0x33049f['length']&&_0x372673['markMultiRangeInsertion'](_0x33049f,'tablePasteRow',{'tablePasteChainId':_0x22e790}),_0xccdce2['length']&&_0x372673['markMultiRangeInsertion'](_0xccdce2,'tablePasteColumn',{'tablePasteChainId':_0x22e790}),_0x1e00b4['length']&&(_0x372673['markMultiRangeInsertion'](_0x1e00b4,'tablePaste',{'tablePasteChainId':_0x22e790,'skipNestingCheck':!0x0}),_0x1e00b4['forEach'](_0x5c13b8=>_0x5c13b8['detach']?.())),_0x1bfc95['length']&&(_0x372673['markMultiRangeDeletion'](_0x1bfc95,'tablePaste',{'tablePasteChainId':_0x22e790,'skipNestingCheck':!0x0}),_0x1bfc95['forEach'](_0xa6a640=>_0xa6a640['detach']?.()));const _0x5e5e0f=_0x372673['markMultiRangeBlockFormat'](_0x3111a4['map'](({element:_0x36ee2b})=>_0x36ee2b),{'formatGroupId':_0x12e742()},[],'tablePasteCell',{'tablePasteChainId':_0x22e790});if(_0x5e5e0f){const _0x251739=_0x5e5e0f['getMarkers'](),_0x48eee2=[];for(const {element:_0x14f9a3,attributes:_0x5f092c}of _0x3111a4){if(!_0x5f092c)continue;const _0x55cc19=_0x912a87['model']['createRangeOn'](_0x14f9a3),_0x368abc=_0x251739['find'](_0x15149b=>_0x15149b['getRange']()['isEqual'](_0x55cc19));_0x368abc&&_0x48eee2['push']([_0x368abc['name'],_0x5f092c]);}_0x48eee2['length']&&_0x5e5e0f['setAttribute']('markerAttributes',Object['fromEntries'](_0x48eee2));}_0x424f7f=null;}));},{'priority':_0x2043b9['high']+0xa}),_0x1940c8['on']('contentInsertion',()=>{_0x236687=!0x1;},{'priority':'lowest'}),_0x912a87['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x35336e,_0x444584)=>{const [_0x41b91e,_0x4ac30d,,_0x3c7546]=_0x444584;if(!_0x424f7f)return;_0x35336e['stop']();const _0x5739f2=_0x41b91e['cell'],_0x421d45=_0x4ac30d,_0x506322=ve(_0x5739f2),_0x4cb664=ve(_0x421d45);_0x35336e['return']=_0x5739f2;let _0x56e1a2=null,_0x26160a=null;if(_0x4cb664||_0x506322){if(_0x506322&&!_0x4cb664){_0x3c7546['remove'](_0x5739f2['getChild'](0x0));for(const _0x4826bc of Array['from'](_0x421d45['getChildren']()))_0x3c7546['insert'](_0x4826bc,_0x5739f2,'end');const _0x5880e4=_0x424f7f['rowInsertionIndexes']['includes'](_0x41b91e['row']),_0x13ce98=_0x424f7f['columnInsertionIndexes']['includes'](_0x41b91e['column']);_0x5880e4||_0x13ce98||(_0x56e1a2=_0x3756aa['fromRange'](_0x3c7546['createRangeIn'](_0x5739f2)));}else _0x4cb664&&!_0x506322&&(_0x26160a=_0x3c7546['createRangeIn'](_0x5739f2));}else{const _0x1afdb3=_0x3c7546['createElement']('tableCellSuggestion'),_0x253f6a=_0x3c7546['createElement']('tableCellSuggestion');_0x3c7546['wrap'](_0x3c7546['createRangeIn'](_0x5739f2),_0x253f6a),_0x3c7546['insert'](_0x1afdb3,_0x5739f2,0x0);for(const _0x15193a of Array['from'](_0x421d45['getChildren']()))_0x3c7546['insert'](_0x15193a,_0x1afdb3,'end');_0x56e1a2=_0x3756aa['fromRange'](_0x3c7546['createRangeOn'](_0x1afdb3)),_0x26160a=_0x3756aa['fromRange'](_0x3c7546['createRangeOn'](_0x253f6a));}const _0x4275b3=Array['from'](_0x421d45['getAttributes']())['filter'](([_0x38d69f])=>Be['includes'](_0x38d69f));_0x424f7f['cells']['push']({'element':_0x5739f2,'attributes':_0x4275b3['length']?Object['fromEntries'](_0x4275b3):null}),_0x56e1a2&&_0x424f7f['insertionRanges']['push'](_0x56e1a2),_0x26160a&&_0x424f7f['deletionRanges']['push'](_0x26160a);},{'priority':'high'}),_0x218bff['on']('insertColumns',(_0x3dc71d,_0x3f0239)=>{const [_0x34701d,_0x46ec6d={}]=_0x3f0239;if(!_0x424f7f)return;const _0x48e9ad=_0x46ec6d['at']||0x0,_0xd2b1a4=_0x46ec6d['columns']||0x1;_0x424f7f['columnInsertionIndexes']=new Array(_0xd2b1a4)['fill'](_0x48e9ad)['map']((_0x41ce72,_0x4c13e6)=>_0x41ce72+_0x4c13e6);for(const {cell:_0x49f7f9}of _0x218bff['createTableWalker'](_0x34701d,{'startColumn':_0x48e9ad,'endColumn':_0x48e9ad+_0xd2b1a4-0x1}))_0x424f7f['columnInsertionRanges']['push'](_0x912a87['model']['createRangeOn'](_0x49f7f9));},{'priority':'low'}),_0x218bff['on']('insertRows',(_0xb35073,_0x15fd70)=>{const [_0x587f56,_0x32c5f0={}]=_0x15fd70;if(!_0x424f7f)return;const _0x108375=_0x32c5f0['at']||0x0,_0x2493af=_0x32c5f0['rows']||0x1;_0x424f7f['rowInsertionIndexes']=new Array(_0x2493af)['fill'](_0x108375)['map']((_0x12a9f6,_0x4e1ab0)=>_0x12a9f6+_0x4e1ab0);for(const {cell:_0x1db99f}of _0x218bff['createTableWalker'](_0x587f56,{'startRow':_0x108375,'endRow':_0x108375+_0x2493af-0x1}))_0x424f7f['rowInsertionRanges']['push'](_0x912a87['model']['createRangeOn'](_0x1db99f));},{'priority':'low'}),_0x372673['descriptionFactory']['registerDescriptionCallback'](_0x5133a4=>{if(_0x5133a4['subType']&&_0x5133a4['subType']['startsWith']('tablePaste'))return _0x5133a4['previous']?{}:{'type':'insertion','content':At(_0x912a87['locale'],'*Replace\x20table\x20cells*')};});const _0x24feae=()=>!0x1;for(const _0x456c87 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x372673['_suggestionFactory']['registerCustomCallback']('insertion',_0x456c87,'join',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('deletion',_0x456c87,'join',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x456c87,'join',_0x24feae);_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24feae),_0x372673['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5ee769,_0x2277e6,_0x1558ca)=>{const _0x9f9f81=_0x5ee769['map'](_0x3f6870=>_0x3f6870['getContainedElement']())['filter'](_0x33f064=>_0x33f064),_0x3dee7c=new Map(_0x9f9f81['map'](_0x49732b=>[_0x49732b,null]));if(_0x424f7f){for(const {element:_0x258364,attributes:_0x3877f9}of _0x424f7f['cells'])_0x3877f9&&_0x3dee7c['set'](_0x258364,_0x3877f9);}else{if(_0x1558ca&&_0x1558ca['markerAttributes'])for(const [_0x50597a,_0x1df1f3]of Object['entries'](_0x1558ca['markerAttributes'])){const _0x31eecd=_0x912a87['model']['markers']['get'](_0x50597a),_0x269f3b=_0x31eecd?_0x31eecd['getRange']()['getContainedElement']():null;_0x269f3b&&_0x3dee7c['set'](_0x269f3b,_0x1df1f3);}}_0x912a87['model']['change'](_0x7fa08c=>{for(const [_0x13159f,_0x33d142]of _0x3dee7c)_0x7fa08c['setAttributes']({...Fe,..._0x33d142},_0x13159f);});});const _0x21f579=(_0x2e71f0,_0x152490)=>{_0x372673['_suggestionFactory']['registerCustomCallback'](_0x2e71f0,'tablePaste',_0x152490,(_0x54b148,_0x3f675c,_0x2df5c3)=>{_0x912a87['model']['change'](_0x20a805=>{const _0x55413c=[];for(const _0x2f5358 of _0x54b148){const _0x3f8de1=_0x2f5358['start']['nodeAfter'];_0x3f8de1['is']('element','tableCellSuggestion')&&_0x55413c['push'](_0x3f8de1);}_0x372673['_suggestionFactory']['getSuggestionCallback'](_0x2e71f0,null,_0x152490)(_0x54b148,_0x3f675c,_0x2df5c3);for(const _0x144d04 of _0x55413c)'$graveyard'!=_0x144d04['root']['rootName']&&_0x20a805['unwrap'](_0x144d04);});});};_0x21f579('insertion','accept'),_0x21f579('insertion','discard'),_0x21f579('deletion','accept'),_0x21f579('deletion','discard'),_0x372673['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3dca5e=>{const _0x4319d7=_0x3dca5e['map'](_0x13ba84=>_0x13ba84['getContainedElement']()),_0x13d05a=_0x4319d7[0x0]['findAncestor']('table'),{minRow:_0x146995,maxRow:_0x21af45}=_0x4cb023['_getCoordsForCells'](_0x4319d7);_0x218bff['removeRows'](_0x13d05a,{'at':_0x146995,'rows':_0x21af45-_0x146995+0x1});}),_0x372673['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2bce81=>{const _0x1fa37f=_0x2bce81['map'](_0x34407c=>_0x34407c['getContainedElement']()),_0x4c6f26=_0x1fa37f[0x0]['findAncestor']('table'),{minColumn:_0x12a9d2,maxColumn:_0x38ff1d}=_0x4cb023['_getCoordsForCells'](_0x1fa37f);_0x218bff['removeColumns'](_0x4c6f26,{'at':_0x12a9d2,'columns':_0x38ff1d-_0x12a9d2+0x1});});const _0x4ecac3=(_0x5bd158,_0x6091f9)=>{if(!_0x6091f9['subType']||!_0x6091f9['subType']['startsWith']('tablePaste'))return;const _0x5647d8=_0x6091f9['attributes']['tablePasteChainId'],_0x7057d6=_0x372673['getSuggestions']()['filter'](_0x284ce5=>_0x284ce5['isInContent']&&_0x284ce5['attributes']&&_0x284ce5['attributes']['tablePasteChainId']==_0x5647d8);_0x7057d6['length']&&_0x6091f9['getAllAdjacentSuggestions']()['length']!=_0x7057d6['length']&&_0x7057d6['reduce']((_0x3bbc59,_0x21270b)=>(_0x3bbc59['next']=_0x21270b,_0x21270b['previous']=_0x3bbc59,_0x21270b));};function _0xe00ffd(_0x50f21a,_0x387afb=!0x0){const {id:_0x45f568,authorId:_0x192ab1}=_0x438505(_0x50f21a['markerName']),_0x22d8de=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x316329=_0x372673['activeMarkers']['includes'](_0x50f21a['markerName']);return _0x316329&&_0x22d8de['push']('ck-suggestion-marker--active'),{'classes':_0x22d8de,'attributes':{'data-suggestion':_0x45f568,'data-author-id':_0x192ab1},'priority':_0x316329&&_0x387afb?0xbc2:0xbb8};}_0x372673['on']('suggestionLoaded',_0x4ecac3,{'priority':'high'}),_0x372673['on']('suggestionUnloaded',_0x4ecac3,{'priority':'high'}),_0x912a87['model']['document']['registerPostFixer'](()=>{let _0x49f50c=!0x1;const _0x45955a=Array['from'](_0x912a87['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16c941,data:_0x32b85b}of _0x45955a){const {group:_0x495f17,type:_0x48fbcd,id:_0x4d097}=_0x438505(_0x16c941);if('suggestion'!=_0x495f17||'deletion'!=_0x48fbcd||_0x32b85b['oldRange'])continue;if(!_0x372673['hasSuggestion'](_0x4d097))continue;const _0x2adac5=_0x372673['getSuggestion'](_0x4d097)['getRanges'](),_0x2bc2b6=_0x912a87['plugins']['get']('Users')['me'];for(const _0x413fb5 of _0x372673['getSuggestions']()){if(!_0x413fb5['isInContent']||_0x413fb5['author']!=_0x2bc2b6)continue;if('formatBlock'!=_0x413fb5['type']||'tablePasteCell'!=_0x413fb5['subType'])continue;if(_0x413fb5['getRanges']()['every'](_0x5a0b67=>_0x2adac5['some'](_0x2dda79=>_0x2dda79['containsRange'](_0x5a0b67,!0x0)))){for(const _0x27b464 of _0x413fb5['getAllAdjacentSuggestions']())_0x27b464['isInContent']&&(_0x27b464['discard'](),_0x49f50c=!0x0);}}}return _0x49f50c;}),_0x912a87['model']['document']['registerPostFixer'](_0x4640d4=>{const _0x4f4e5f=_0x912a87['commands']['get']('redo');if(!_0x4f4e5f||!_0x4f4e5f['_createdBatches']['has'](_0x4640d4['batch']))return!0x1;let _0x29bc75=!0x1;const _0xbf8056=_0x912a87['plugins']['get']('Users')['me'],_0x3858d6=_0x912a87['model']['document']['differ']['getChanges'](),_0x3d6d00=Array['from'](_0x912a87['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4277dc,data:_0x560f7c})=>{const {group:_0x289e51,subType:_0x1d901d,authorId:_0x435733}=_0x438505(_0x4277dc);return'suggestion'==_0x289e51&&'tablePaste'==_0x1d901d&&_0x435733==_0xbf8056['id']&&!_0x560f7c['oldRange'];});for(const _0x59fed5 of _0x3858d6){if('insert'!=_0x59fed5['type']||'tableCellSuggestion'!=_0x59fed5['name']||0x1!=_0x59fed5['length'])continue;const _0x4904bc=_0x4640d4['createRange'](_0x59fed5['position'],_0x59fed5['position']['getShiftedBy'](0x1));if(!_0x3d6d00['find'](({data:_0x96e9bf})=>_0x96e9bf['newRange']['isEqual'](_0x4904bc))){for(const {name:_0x1bb546,data:_0x868ce8}of _0x3d6d00)if(_0x4904bc['containsRange'](_0x868ce8['newRange'])){_0x4640d4['updateMarker'](_0x1bb546,{'range':_0x4904bc}),_0x29bc75=!0x0;break;}}}return _0x29bc75;}),_0x912a87['model']['document']['registerPostFixer'](_0x511b93=>{let _0xcb649e=!0x1;const _0x301a2f=_0x912a87['plugins']['get']('Users')['me'],_0x1e8684=_0x372673['getSuggestions']()['filter'](_0x4cf7ee=>_0x4cf7ee['isInContent']&&_0x4cf7ee['author']==_0x301a2f),_0x617d75=new Set(),_0x370ffb=new Set();for(const _0x6917fc of _0x1e8684)if('tablePaste'==_0x6917fc['subType'])for(const _0x504496 of _0x6917fc['getMarkers']()){const _0xdcf2aa=_0x504496['getRange']()['getContainedElement']();if(_0xdcf2aa){if(_0xdcf2aa['is']('element','tableCellSuggestion')&&ve(_0xdcf2aa)){_0x6917fc['removeMarker'](_0x504496['name']),_0x617d75['add'](_0xdcf2aa),_0xcb649e=!0x0;const _0x4a362a=_0xdcf2aa['nextSibling'],_0x7bcd27=_0xdcf2aa['previousSibling'],_0x2b2491=_0x4a362a&&_0x4a362a['is']('element','tableCellSuggestion'),_0x5402f9=_0x7bcd27&&_0x7bcd27['is']('element','tableCellSuggestion');_0x2b2491&&!_0x617d75['has'](_0x4a362a)&&_0x370ffb['add'](_0x4a362a),_0x5402f9&&!_0x617d75['has'](_0x7bcd27)&&_0x370ffb['add'](_0x7bcd27);}else _0xdcf2aa['is']('element','paragraph')&&_0xdcf2aa['isEmpty']&&(_0x6917fc['removeMarker'](_0x504496['name']),_0xcb649e=!0x0);}}else{if('tablePasteCell'==_0x6917fc['subType']){if(!_0x6917fc['attributes']||!_0x6917fc['attributes']['tablePasteChainId'])continue;const _0x12ede1=_0x6917fc['attributes']['markerAttributes'];if(_0x12ede1&&Object['keys'](_0x12ede1)['length'])continue;const _0x27ced6=_0x6917fc['attributes']['tablePasteChainId'];let _0x4d8277=!0x0,_0x5b159f=!0x0;for(const _0x5bbefc of _0x1e8684)if(_0x5bbefc['subType']&&_0x5bbefc['subType']['startsWith']('tablePaste')){if(!_0x5bbefc['attributes']['tablePasteChainId']){_0x5b159f=!0x1;break;}if(_0x5bbefc['id']!=_0x6917fc['id']&&_0x5bbefc['attributes']['tablePasteChainId']==_0x27ced6){_0x4d8277=!0x1;break;}}_0x5b159f&&_0x4d8277&&(_0x6917fc['removeMarkers'](),_0xcb649e=!0x0);}}for(const _0x3efddf of _0x617d75)_0x511b93['remove'](_0x3efddf);for(const _0x355941 of _0x370ffb)_0x511b93['unwrap'](_0x355941);return _0xcb649e;}),_0x912a87['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4feb7e=>_0xe00ffd(_0x4feb7e),'converterPriority':'high'}),_0x912a87['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x185bfa,_0x13a9c8)=>_0x13a9c8['options']['showSuggestionHighlights']?_0xe00ffd(_0x185bfa,!0x1):null,'converterPriority':'high'});const _0x4b136b=_0x912a87['editing']['view'];this['listenTo'](_0x4b136b['document'],'clipboardOutput',(_0x6e3af0,_0x5b5bb6)=>{const _0x5e532b=[];for(const _0x31c0a4 of _0x4b136b['createRangeIn'](_0x5b5bb6['content'])['getItems']())_0x31c0a4['is']('element','suggestion-td')&&_0x5e532b['push'](_0x31c0a4);_0x4b136b['change'](_0x40f3b4=>{for(const _0x30a852 of _0x5e532b)_0x40f3b4['move'](_0x40f3b4['createRangeIn'](_0x30a852),_0x40f3b4['createPositionBefore'](_0x30a852)),_0x40f3b4['remove'](_0x30a852);});});}}function ve(_0x29c50a){if(_0x29c50a['isEmpty'])return!0x0;const _0x1568f9=_0x29c50a['getChild'](0x0);return _0x1568f9['is']('element','paragraph')&&_0x1568f9['isEmpty'];}function xe(_0x1359ad,_0x154762={},_0x18593b){for(const {isAnchor:_0x38bb08,cellHeight:_0x26f6d7,cellWidth:_0x448fdd}of _0x18593b['createTableWalker'](_0x1359ad,{'includeAllSlots':!0x0,..._0x154762}))if(!_0x38bb08||0x1!=_0x26f6d7||0x1!=_0x448fdd)return!0x1;return!0x0;}class Pe extends _0x298b0c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x204115=this['editor']['plugins']['get']('TrackChangesEditing');_0x204115['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x204115['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x204115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x204115['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x204115['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x204115['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3ed63d,_0x90139d){const _0x2f11f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54c5ef=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x485f5f=_0x90139d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x20518b=_0x54c5ef['getColumnGroupElement'](_0x485f5f);let _0x16e5fc=_0x20518b?_0x54c5ef['getTableColumnsWidths'](_0x20518b):null,_0x43c49e=_0x485f5f['getAttribute']('tableWidth')||null;const _0x3a9d27=_0x90139d['tableWidth']||_0x43c49e,_0x70cc8f=_0x90139d['columnWidths']||_0x16e5fc,_0x4cc3a7=this['editor']['plugins']['get']('Users')['me'];for(const _0x16e6b8 of _0x2f11f8['getSuggestions']()){const _0x5b5d57=_0x16e6b8['getContainedElement']();if('resizeTable'===_0x16e6b8['subType']&&_0x5b5d57===_0x485f5f){_0x16e6b8['author']!==_0x4cc3a7&&_0x16e6b8['discard']();const _0x101111=_0x16e6b8['data']['commandParams'];_0x43c49e=_0x101111[0x0]['tableWidth'],_0x16e5fc=_0x101111[0x0]['columnWidths'];break;}}_0x3ed63d({'table':_0x485f5f,'tableWidth':_0x3a9d27,'columnWidths':_0x70cc8f}),_0x2f11f8['markBlockFormat'](_0x485f5f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x43c49e,'columnWidths':_0x16e5fc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x18303b){if('formatBlock'!=_0x18303b['type']&&'formatInline'!=_0x18303b['type'])return;const {data:_0x45b249}=_0x18303b;if(_0x45b249&&'resizeTable'===_0x45b249['formatGroupId']){const _0x4f86e4='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x4f86e4)};}}}class Ue extends _0x298b0c{['afterInit'](){const _0x4c93e4=this['editor'];_0x4c93e4['plugins']['has']('Template')&&_0x4c93e4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x298b0c{['afterInit'](){const _0x3169a8=this['editor'];if(!_0x3169a8['commands']['get']('insertTableOfContents'))return;_0x3169a8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x204ada=_0x3169a8['plugins']['get']('TrackChangesEditing'),_0x451e9f=_0x3169a8['locale'];_0x204ada['descriptionFactory']['registerElementLabel']('tableOfContents',_0x51fe2b=>At(_0x451e9f,'ELEMENT_TABLE_OF_CONTENTS',_0x51fe2b));}}class He extends _0x298b0c{['afterInit'](){const _0x42515e=this['editor'];if(!_0x42515e['plugins']['has']('Title'))return;_0x42515e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x42515e['locale'],'ELEMENT_TITLE')),_0x42515e['model']['document']['registerPostFixer'](_0x328602=>{let _0x536b82=!0x1;const _0x27e611=Array['from'](_0x42515e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3a9a05,data:_0x17193e}of _0x27e611){const {group:_0x6fac08}=_0x438505(_0x3a9a05);if('suggestion'!==_0x6fac08||!_0x17193e['newRange'])continue;const _0x22d72d=_0x17193e['newRange'],_0x5cd018=_0x22d72d['end']['nodeBefore'];if(!_0x5cd018||!_0x5cd018['is']('element','title-content'))continue;if(!_0x22d72d['start']['isTouching'](_0x22d72d['end']))continue;const _0x5a738c=_0x42515e['model']['schema']['getNearestSelectionRange'](_0x22d72d['end'],'forward');if(_0x5a738c&&_0x5a738c['isCollapsed']){const _0x2806ce=_0x328602['createRange'](_0x22d72d['start'],_0x5a738c['start']);_0x2806ce['isEqual'](_0x22d72d)||(_0x328602['updateMarker'](_0x3a9a05,{'range':_0x2806ce}),_0x536b82=!0x0);}_0x536b82||(_0x328602['removeMarker'](_0x3a9a05),_0x536b82=!0x0);}return _0x536b82;});}}class $e extends _0x298b0c{['afterInit'](){const _0xd1aa55=this['editor'],_0x1ce5a1=_0xd1aa55['plugins']['get']('TrackChangesEditing');_0xd1aa55['plugins']['has']('Uploadcare')&&(_0x1ce5a1['enableCommand']('uploadcare'),_0xd1aa55['plugins']['has']('UploadcareImageEdit')&&(_0x1ce5a1['enableCommand']('uploadcareImageEdit'),_0x1ce5a1['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1ce5a1['descriptionFactory']['registerDescriptionCallback'](_0x1e3045=>{if('attribute'!=_0x1e3045['type'])return;const {data:_0x3b8c64}=_0x1e3045;return _0x3b8c64&&'uploadcareImageId'==_0x3b8c64['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x298b0c{['afterInit'](){const _0x14ecd4=this['editor'],_0x4a0d27=_0x14ecd4['plugins']['get']('TrackChangesEditing');_0x14ecd4['plugins']['has']('UndoEditing')&&(_0x4a0d27['enableCommand']('undo'),_0x4a0d27['enableCommand']('redo'));}}class Ve extends _0x298b0c{static get['requires'](){return[Ne];}['afterInit'](){const _0x532463=this['editor'];if(!_0x532463['plugins']['has']('TableCaptionEditing'))return;_0x532463['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x298b0c{['tableProperties'];['tableCellProperties'];constructor(_0x1596b5){super(_0x1596b5),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 _0x50faf7=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2b3bac of this['tableProperties'])_0x50faf7['enableCommand'](_0x2b3bac,(_0x5363f2,_0x169b04)=>{const _0x3a031c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2b3bac,[_0x3a031c],this['tableProperties'],'tableProperties',_0x5363f2,_0x169b04);});_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x50faf7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x236486,_0x306bf1)=>this['handleDiscardAction'](this['tableProperties'],_0x236486,_0x306bf1)),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5e880e of this['tableCellProperties'])this['editor']['commands']['get'](_0x5e880e)&&_0x50faf7['enableCommand'](_0x5e880e,(_0x78a51a,_0x3d0cfc)=>{const _0x3b35ba=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5e880e,_0x3b35ba,this['tableCellProperties'],'tableCellProperties',_0x78a51a,_0x3d0cfc);});_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x50faf7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4e1587,_0x1cf5a5)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4e1587,_0x1cf5a5)),_0x50faf7['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x50faf7['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x50faf7['descriptionFactory']['registerDescriptionCallback'](_0x38fa5f=>this['handleSuggestionDescription'](_0x38fa5f)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x53c649,_0x79662b,_0x110642,_0x2a3d1e,_0x2028f1,_0x542e3c){const _0x139fa6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x542e3c['batch'],()=>{for(const _0x2858dd of _0x79662b){if(this['_getSuggestion'](_0x2858dd,_0x2a3d1e))_0x2028f1(_0x542e3c);else{const _0x2e8a63={};for(const _0x142246 of _0x110642){const _0x433016=_0x2858dd['getAttribute'](_0x142246);void 0x0!==_0x433016&&(_0x2e8a63[_0x142246]=_0x433016);}_0x2028f1(_0x542e3c),_0x139fa6['markBlockFormat'](_0x2858dd,{'commandParams':[_0x2e8a63]},[],_0x2a3d1e);}}});}['handleDiscardAction'](_0x3e41a7,_0x3fabbb,_0x3240e0){const _0x2e996f=_0x3fabbb[0x0]['start']['nodeAfter'],_0xd80643=_0x3240e0['commandParams'][0x0];this['editor']['model']['change'](_0x6abcd=>{for(const _0x13d96f of _0x3e41a7)void 0x0!==_0xd80643[_0x13d96f]?_0x6abcd['setAttribute'](_0x13d96f,_0xd80643[_0x13d96f],_0x2e996f):_0x6abcd['removeAttribute'](_0x13d96f,_0x2e996f);});}['handleSuggestionDescription'](_0x412578){if(_0x412578['data'])switch(_0x412578['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'](_0x3a522a,_0x41d52f){const _0x16b035=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x299f77 of _0x16b035['getSuggestions']({'skipNotAttached':!0x0})){const _0x574337=_0x299f77['getContainedElement']();if(_0x299f77['subType']===_0x41d52f&&_0x574337===_0x3a522a)return _0x299f77;}return null;}['_registerTablePropertiesAttributes'](){const _0x5ba51c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x244026=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4f20ac of _0x244026){const _0x142a5c=_0x4f20ac['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5ba51c['descriptionFactory']['registerAttributeLabel'](_0x4f20ac,At(this['editor']['locale'],'FORMAT_'+_0x142a5c));}}}class ze extends _0x298b0c{['afterInit'](){const _0x3e33ab=this['editor'];if(!_0x3e33ab['plugins']['has']('LineHeight'))return;const _0x357db3=_0x3e33ab['plugins']['get']('TrackChangesEditing'),_0x5b049f=_0x3e33ab['locale'];_0x357db3['enableDefaultAttributesIntegration']('lineHeight'),_0x357db3['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x5b049f,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x298b0c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x361d9e,_0xfcbb62,_0x3979,_0x21440d,_0x6baf3d,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(_0x341085){super(_0x341085),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3d75cf,_0x4d2830,_0x41d6b0,_0x69996f)=>{this['_model']['change'](()=>{for(const _0x535bea of[..._0x69996f,..._0x41d6b0])this['_model']['markers']['has'](_0x535bea)&&_0x341085['editing']['reconvertMarker'](_0x535bea);});}),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']=_0x341085['plugins']['get'](_0x361d9e),this['_suggestionsConversion']=_0x341085['plugins']['get'](_0xfcbb62),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x341085['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x341085['config']['get']('trackChanges.trackFormatChanges'),_0x341085['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x341085['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x341085,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x225f5d=this['editor'];_0x225f5d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x215ea4,{writer:_0x4dc971})=>{let _0x356ff5='suggestion:'+_0x215ea4['getAttribute']('suggestion-type')+':'+_0x215ea4['getAttribute']('id');return _0x215ea4['getAttribute']('marker-count')&&(_0x356ff5+=':'+_0x215ea4['getAttribute']('marker-count')),_0x4dc971['createElement']('$marker',{'data-name':_0x356ff5});}}),_0x225f5d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x225f5d['model']['document']['registerPostFixer'](_0x120149=>{let _0x5af674=!0x1;const _0x183c98=Array['from'](_0x225f5d['model']['document']['differ']['getChangedMarkers']()),_0x586be9=new Set();for(const {name:_0x385f31,data:_0x2134a7}of _0x183c98){const {group:_0x1204fc,type:_0x299d55,subType:_0x10aef0,id:_0x3e8351}=_0x438505(_0x385f31);if('suggestion'!==_0x1204fc)continue;const _0xfd403e=_0x10aef0?'suggestion:'+_0x299d55+':'+_0x10aef0+':'+_0x3e8351:'suggestion:'+_0x299d55+':'+_0x3e8351,_0x385511=_0x225f5d['model']['markers']['getMarkersGroup'](_0xfd403e),_0x5cd57f=_0x225f5d['model']['markers']['get'](_0x385f31),_0x455b29=this['_suggestions']['get'](_0x3e8351);if(null!=_0x2134a7['newRange']){'formatInline'==_0x299d55&&(_0x5af674=_0x5af674||Ze(_0x2134a7['newRange'],_0x385f31,_0x120149,_0x225f5d['model']['schema']));const _0x2a3114='attribute'==_0x299d55&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x10aef0)),_0x5011e2='attribute'==_0x299d55&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x10aef0));if(_0x2134a7['newRange']['isCollapsed']||'$graveyard'==_0x2134a7['newRange']['root']['rootName']||'formatBlock'==_0x299d55&&!tn(_0x2134a7['newRange'])||_0x2a3114&&!tn(_0x2134a7['newRange'])||_0x5011e2&&en(_0x2134a7['newRange'])||'deletion'==_0x299d55&&en(_0x2134a7['newRange'])||_0x5cd57f&&nn(_0x5cd57f,_0x385511))_0x120149['removeMarker'](_0x385f31),_0x5af674=!0x0;else{if(!_0x455b29||!_0x455b29['isInContent'])continue;if(_0x2134a7['newRange']&&_0x2134a7['oldRange']&&_0x2134a7['newRange']['isEqual'](_0x2134a7['oldRange']))continue;_0x586be9['add'](_0x455b29);}}}return _0x586be9['size']>0x0&&(_0x5af674=!!this['_joinWithAdjacentSuggestions'](_0x586be9)||_0x5af674),_0x5af674;}),_0x225f5d['model']['document']['registerPostFixer'](_0x198720=>{let _0x17dc21=!0x1;for(const _0x1aeea6 of _0x225f5d['model']['document']['differ']['getChanges']())if('insert'==_0x1aeea6['type'])for(const _0x29e072 of this['_suggestions']['values']()){if(_0x29e072['isMultiRange']||!_0x29e072['isInContent'])continue;const _0x59234c='formatBlock'==_0x29e072['type'],_0x53d4ac=this['_getAttributeKey'](_0x29e072),_0x4af4ca=_0x53d4ac&&this['_suggestionsConversion']['isBlockAttribute'](_0x53d4ac);if(!_0x59234c&&!_0x4af4ca)continue;const _0x3367b2=_0x29e072['getFirstRange']();if(_0x3367b2['start']['parent']!=_0x3367b2['end']['parent']&&!_0x3367b2['end']['isAtEnd']){const _0x2a183f=_0x225f5d['model']['createPositionAt'](_0x3367b2['start']['nodeAfter'],'end'),_0x2e9f4a=_0x225f5d['model']['createRange'](_0x3367b2['start'],_0x2a183f);_0x198720['updateMarker'](_0x29e072['getFirstMarker'](),{'range':_0x2e9f4a}),_0x17dc21=!0x0;}}return _0x17dc21;}),_0x225f5d['model']['document']['registerPostFixer'](_0x7c22ab=>this['_processAttributeChanges'](_0x7c22ab)),_0x225f5d['model']['document']['registerPostFixer'](_0x5dc6c4=>!_0x5dc6c4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5dc6c4)),_0x225f5d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x225f5d['model']['document']['on']('change:data',(_0xa97dc3,_0x48cd47)=>{if(!_0x48cd47['isLocal']||_0x48cd47['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x303442=_0x225f5d['model']['document']['differ']['getChanges']();if(0x0==_0x303442['length'])return;const _0x4d3805=[],_0x2c1a11=_0x303442['filter'](_0x4bd621=>'attribute'==_0x4bd621['type']),_0x7a5436=_0x303442['filter'](_0x22c6bd=>'insert'==_0x22c6bd['type']&&'$text'!=_0x22c6bd['name']);for(const _0x140c5a of _0x2c1a11)this['_suggestionsConversion']['isRegisteredAttribute'](_0x140c5a['attributeKey'])&&_0x4d3805['push']({'key':_0x140c5a['attributeKey'],'newValue':_0x140c5a['attributeNewValue'],'oldValue':_0x140c5a['attributeOldValue'],'range':sn(_0x140c5a['range'],_0x225f5d['model'])});for(const _0x3e346a of _0x7a5436){if('rename'!=_0x3e346a['action']&&'refresh'!=_0x3e346a['action'])continue;const _0x2f1207=rn(_0x3e346a['position']['nodeAfter'],_0x225f5d['model']),_0xc90d29=_0x3e346a['before'];'rename'==_0x3e346a['action']&&_0x4d3805['push']({'key':Ke,'newValue':_0x3e346a['name'],'oldValue':_0xc90d29['name'],'range':_0x2f1207});for(const [_0x280296,_0x1d4085]of _0xc90d29['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x280296))continue;const _0x5135e2=_0x3e346a['attributes']['get'](_0x280296);_0x1d4085!==_0x5135e2&&_0x4d3805['push']({'key':_0x280296,'newValue':_0x5135e2,'oldValue':_0x1d4085,'range':_0x2f1207});}for(const [_0x593f5d,_0x3df97c]of _0x3e346a['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x593f5d)&&(_0xc90d29['attributes']['has'](_0x593f5d)||_0x4d3805['push']({'key':_0x593f5d,'newValue':_0x3df97c,'oldValue':null,'range':_0x2f1207}));}0x0!=_0x4d3805['length']&&_0x225f5d['model']['enqueueChange'](_0x48cd47,_0x3ca58a=>{const _0xa0dfb7=_0x12e742();for(const {range:_0x1f6f30,key:_0x58703b,oldValue:_0xcf5a76,newValue:_0x54c922}of _0x4d3805)this['markAttributeChange'](_0x1f6f30,_0x58703b,_0xcf5a76,_0x54c922,{'groupId':_0xa0dfb7});this['_reduceExistingSuggestions'](_0x3ca58a,_0x4d3805);});},{'priority':'lowest'}),_0x225f5d['model']['markers']['on']('update:suggestion',(_0x24cc82,_0x548c79,_0x55ef06)=>{if(null==_0x55ef06){const {id:_0x113c5a}=_0x438505(_0x548c79['name']),_0x4ea952=this['_suggestions']['get'](_0x113c5a);_0x4ea952&&_0x4ea952['addMarkerName'](_0x548c79['name']);}}),_0x225f5d['model']['document']['on']('change:data',()=>{const _0x777361=Array['from'](_0x225f5d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x23d021=>'suggestion'===_0x438505(_0x23d021['name'])['group']);if(0x0===_0x777361['length'])return;_0x777361['sort']((_0x5bdd58,_0x3e5f66)=>{const _0x5dc7bc=_0x5bdd58['data']['oldRange'],_0x7ccb72=_0x3e5f66['data']['oldRange'];return null===_0x5dc7bc&&null===_0x7ccb72?0x0:null===_0x5dc7bc&&null!==_0x7ccb72?-0x1:null!==_0x5dc7bc&&null===_0x7ccb72?0x1:_0x5dc7bc['start']['isBefore'](_0x7ccb72['start'])?-0x1:0x1;});const _0x584176=new Set(),_0x1f5586=new Set();for(const {name:_0x1a6b71,data:_0x30dc93}of _0x777361){const {id:_0x3a051c}=_0x438505(_0x1a6b71);if(null===_0x30dc93['oldRange']){const _0x406f45=this['_handleNewSuggestionMarker'](_0x1a6b71);_0x1f5586['add'](_0x406f45);}else{const _0x99701a=this['_suggestions']['get'](_0x3a051c);null!==_0x30dc93['newRange']||_0x99701a['isInContent']?(_0x584176['add'](_0x99701a['head']),_0x1f5586['add'](_0x99701a)):this['_removeSuggestion'](_0x99701a);}}_0x1f5586['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f5586);for(const _0x5c1c3f of _0x584176)this['fire']('suggestionChanged',_0x5c1c3f);}),_0x225f5d['model']['on']('applyOperation',(_0x421ce3,_0x2ebf53)=>{const _0x2ca2b9=_0x2ebf53[0x0];if(!this['_suggestions']['size'])return;if(!_0x2ca2b9['isDocumentOperation'])return;if(_0x2ca2b9['batch']['isUndo']||!_0x2ca2b9['batch']['isLocal'])return;let _0x383ea4,_0x4fda7a;switch(_0x2ca2b9['type']){case'insert':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['position']),_0x4fda7a=_0x383ea4['getShiftedBy'](_0x2ca2b9['howMany']);break;case'split':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['splitPosition']),_0x4fda7a=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['moveTargetPosition']);break;case'move':_0x383ea4=_0x225f5d['model']['createPositionAt'](_0x2ca2b9['targetPosition']),_0x4fda7a=_0x383ea4['getShiftedBy'](_0x2ca2b9['howMany']);break;default:return;}const _0x398475=_0x225f5d['model']['createRange'](_0x383ea4,_0x4fda7a);_0x225f5d['model']['change'](()=>{for(const {suggestion:_0x1ad499,meta:_0x59f740}of this['_findSuggestions'](_0x398475)){if(_0x1ad499['isMultiRange'])continue;if('formatInline'==_0x1ad499['type'])continue;const _0x593f08=this['_getAttributeKey'](_0x1ad499);if(_0x593f08&&this['_suggestionsConversion']['isBlockAttribute'](_0x593f08)&&'split'!=_0x2ca2b9['type'])continue;const _0x39d204=_0x1ad499['data']&&_0x1ad499['data']['multipleBlocks'];('formatBlock'!=_0x1ad499['type']||'split'==_0x2ca2b9['type']&&!_0x39d204)&&(_0x59f740['containsRangeInObject']||'insertion'==_0x1ad499['type']&&_0x59f740['isOwn']||_0x1ad499['getFirstRange']()['containsRange'](_0x398475)&&this['_breakSuggestionMarker'](_0x1ad499,_0x383ea4,_0x4fda7a));}});},{'priority':'lowest'}),_0x225f5d['model']['on']('deleteContent',(_0xa1a242,_0x55beba)=>{const _0x474607=_0x55beba[0x0],_0x192e02=_0x55beba[0x1];if(_0x192e02&&_0x192e02['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x474607['isCollapsed'])return;const _0x43c8cd=_0x225f5d['model']['schema'],{start:_0x70d83,end:_0x209813}=_0x474607['getFirstRange'](),_0x7c86a2=_0x70d83['nodeAfter']&&_0x43c8cd['isLimit'](_0x70d83['nodeAfter'])?null:_0x43c8cd['getNearestSelectionRange'](_0x70d83,'forward'),_0xe02871=_0x209813['nodeBefore']&&_0x43c8cd['isLimit'](_0x209813['nodeBefore'])?null:_0x43c8cd['getNearestSelectionRange'](_0x209813,'backward'),_0x1df423=_0x225f5d['model']['createRange'](_0x7c86a2?_0x7c86a2['start']:_0x70d83,_0xe02871?_0xe02871['end']:_0x209813);_0x225f5d['model']['change'](_0x21bcd2=>{this['markDeletion'](_0x1df423);const _0x49d834=_0x225f5d['model']['schema']['getNearestSelectionRange'](_0x1df423['start']);_0x474607['is']('documentSelection')?_0x21bcd2['setSelection'](_0x49d834):_0x474607['setTo'](_0x49d834);}),_0xa1a242['stop']();},{'priority':_0x2043b9['normal']+0xa}),_0x225f5d['model']['on']('insertContent',(_0x5a32f0,_0x33037c)=>{const _0xe8ec6b=_0x33037c[_0x33037c['length']-0x1];_0xe8ec6b&&_0xe8ec6b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x225f5d['model']['change'](()=>{let _0x87a5ea=_0x225f5d['model']['insertContent'](_0x33037c[0x0],_0x33037c[0x1],_0x33037c[0x2],{'forceDefaultExecution':!0x0});if(!_0x87a5ea)return;_0x5a32f0['return']=_0x87a5ea['clone']();const _0x8c3847=_0x87a5ea['end']['nodeBefore'],_0x5f64f3=_0x225f5d['model']['schema'];_0x8c3847&&_0x5f64f3['isBlock'](_0x8c3847)&&!_0x5f64f3['isObject'](_0x8c3847)&&(_0x87a5ea=_0x225f5d['model']['createRange'](_0x87a5ea['start'],_0x225f5d['model']['createPositionAt'](_0x8c3847,'end'))),this['markInsertion'](_0x87a5ea);}),_0x5a32f0['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x122192=new dt(_0x225f5d,this['_suggestions']);_0x225f5d['commands']['add']('acceptSuggestion',_0x122192),this['enableCommand']('acceptSuggestion');const _0x42eadc=new ft(_0x225f5d,this['_suggestions']);_0x225f5d['commands']['add']('discardSuggestion',_0x42eadc),this['enableCommand']('discardSuggestion'),_0x225f5d['commands']['add']('acceptAllSuggestions',new Lt(_0x225f5d,_0x122192,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x225f5d['commands']['add']('discardAllSuggestions',new Lt(_0x225f5d,_0x42eadc,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x225f5d['commands']['add']('acceptSelectedSuggestions',new It(_0x225f5d,_0x122192,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x225f5d['commands']['add']('discardSelectedSuggestions',new It(_0x225f5d,_0x42eadc,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5984ab=_0x225f5d['plugins']['get'](_0x361d9e);this['listenTo'](_0x5984ab,'addComment',(_0x45bca5,{threadId:_0x55d073})=>{const _0x5922ca=this['_suggestions']['get'](_0x55d073);_0x5922ca&&_0x5922ca['commentThread']&&0x1===_0x5922ca['commentThread']['length']&&this['_updateSuggestionData'](_0x55d073,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5984ab,'removeComment',(_0x15437a,{threadId:_0x26c469})=>{const _0x4243c5=this['_suggestions']['get'](_0x26c469);_0x4243c5&&_0x4243c5['commentThread']&&!_0x4243c5['commentThread']['length']&&this['_updateSuggestionData'](_0x26c469,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x49e4e4){const _0x5897b9=_0x29b95a([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]),_0x3985a4=0x3d8d0df,_0x53e7d0=0x3df55af^_0x3985a4,_0x2b58aa=window[_0x29b95a([0x44,0x61,0x74,0x65])][_0x29b95a([0x6e,0x6f,0x77])](),_0x3e5e26=_0x49e4e4[_0x29b95a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c1264=new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33c3e0=>{_0x3e5e26[_0x29b95a([0x6f,0x6e,0x63,0x65])](_0x29b95a([0x72,0x65,0x61,0x64,0x79]),_0x33c3e0);}),_0x41a71f={[_0x29b95a([0x6b,0x74,0x79])]:_0x29b95a([0x45,0x43]),[_0x29b95a([0x75,0x73,0x65])]:_0x29b95a([0x73,0x69,0x67]),[_0x29b95a([0x63,0x72,0x76])]:_0x29b95a([0x50,0x2d,0x32,0x35,0x36]),[_0x29b95a([0x78])]:_0x29b95a([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]),[_0x29b95a([0x79])]:_0x29b95a([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]),[_0x29b95a([0x61,0x6c,0x67])]:_0x29b95a([0x45,0x53,0x32,0x35,0x36])},_0x45cddd=_0x3e5e26[_0x29b95a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x29b95a([0x67,0x65,0x74])](_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cf85a(){let _0x104322,_0x24ed80=null,_0x206318=null;try{if(_0x45cddd==_0x29b95a([0x47,0x50,0x4c]))return _0x29b95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x104322=_0x31ee50(),!_0x104322)return _0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x104322[_0x29b95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x206318=_0x801db8(_0x104322[_0x29b95a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x104322[_0x29b95a([0x6a,0x74,0x69])])),await _0x5cd5be()?_0x7def6e()?_0x260377()?_0x29b95a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x246f1f()?(_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x29b95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24ed80=_0x373672(_0x29b95a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d767a()):_0x29b95a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x29b95a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x29b95a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x260377(){const _0x239692=[_0x29b95a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x29b95a([0x74,0x72,0x69,0x61,0x6c])][_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2b58aa/0x3e8:0xe10*_0x53e7d0;return _0x104322[_0x29b95a([0x65,0x78,0x70])]<_0x239692;}function _0x7def6e(){const _0x1c8321=_0x104322[_0x29b95a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1c8321)return!0x1;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x2a])))return!0x0;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x54,0x43])))return!0x0;if(_0x1c8321[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x52,0x54,0x43]))){if(_0x1e36ea())return!0x0;if(_0x5951f6()||_0x8bd7d1())return!0x0;}return!0x1;}function _0x246f1f(){const _0x24ee78=_0x104322[_0x29b95a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x24ee78||0x0==_0x24ee78[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2ec764}=new URL(window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x24ee78[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ec764))return!0x0;const _0x5dd681=_0x2ec764[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e]));return _0x24ee78[_0x29b95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x441727=>_0x441727[_0x29b95a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x29b95a([0x2a])))[_0x29b95a([0x6d,0x61,0x70])](_0x558e41=>_0x558e41[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e])))[_0x29b95a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x526fdf=>_0x526fdf[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5dd681[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b95a([0x6d,0x61,0x70])](_0xf78a4d=>Array(_0x5dd681[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xf78a4d[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x29b95a([0x66,0x69,0x6c,0x6c])](_0xf78a4d[0x0]===_0x29b95a([0x2a])?_0x29b95a([0x2a]):'')[_0x29b95a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xf78a4d))[_0x29b95a([0x73,0x6f,0x6d,0x65])](_0x1885e5=>_0x5dd681[_0x29b95a([0x65,0x76,0x65,0x72,0x79])]((_0x413b1f,_0x5b09d9)=>_0x1885e5[_0x5b09d9]===_0x413b1f||_0x1885e5[_0x5b09d9]===_0x29b95a([0x2a])));}function _0x1d767a(){return _0x24ed80&&_0x206318?new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e5e25,_0xdc651d)=>{_0x24ed80[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x5e5e25,_0xdc651d),_0x206318[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x336155=>{_0x336155!=_0x29b95a([0x56,0x61,0x6c,0x69,0x64])&&_0x5e5e25(_0x336155);},_0xdc651d);}):_0x24ed80||_0x206318||_0x29b95a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x801db8(_0xc6d349,_0x542599){return new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x47237e=>{if(_0x5cf79f())return _0x47237e(_0x29b95a([0x56,0x61,0x6c,0x69,0x64]));_0x24b091(),_0x3e5e26[_0x29b95a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5af62c=!0x1;const _0x2b787c=_0x12e742();function _0x54a04b(_0x46ba9a){return!!_0x46ba9a&&(typeof _0x46ba9a===_0x29b95a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x46ba9a===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x46ba9a[_0x29b95a([0x74,0x68,0x65,0x6e])]===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x46ba9a[_0x29b95a([0x63,0x61,0x74,0x63,0x68])]===_0x29b95a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d0f91(_0x5a8d36){_0x12f053(_0x5a8d36)[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x2f6527=>{if(!_0x2f6527||_0x2f6527[_0x29b95a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x29b95a([0x6f,0x6b]))return _0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9185f3(_0x2c9cb8(_0x2b787c+_0x542599))!=_0x2f6527[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x29b95a([0x56,0x61,0x6c,0x69,0x64]);})[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x38d54e=>(_0x112a9e(),_0x38d54e),()=>{const _0x520541=_0x5745b();return null==_0x520541?(_0x112a9e(),_0x29b95a([0x56,0x61,0x6c,0x69,0x64])):_0x29b95a(_0x2b58aa-_0x520541>(0x27d454df^_0x3985a4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x47237e)[_0x29b95a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1d88b5=0x3ee3e5f^_0x3985a4;function _0x112a9e(){const _0x149d43=_0x29b95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x9185f3(_0x2c9cb8(_0xc6d349)),_0x3cdccf=_0x199afd(_0x9185f3(window[_0x29b95a([0x4d,0x61,0x74,0x68])][_0x29b95a([0x63,0x65,0x69,0x6c])](_0x2b58aa/_0x1d88b5)));window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b95a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x149d43,_0x3cdccf);}function _0x5745b(){const _0x55ef7=_0x29b95a([0x6c,0x6c,0x63,0x74,0x2d])+_0x9185f3(_0x2c9cb8(_0xc6d349)),_0x186e2c=window[_0x29b95a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x29b95a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55ef7);return _0x186e2c?window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x199afd(_0x186e2c),0x10)*_0x1d88b5:null;}function _0x12f053(_0x1b0be6){return new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4bf5cd,_0x29dd81)=>{_0x1b0be6[_0x29b95a([0x74,0x68,0x65,0x6e])](_0x4bf5cd,_0x29dd81),window[_0x29b95a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29dd81,0x3d9041f^_0x3985a4);});}}_0x3e5e26[_0x29b95a([0x6f,0x6e])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x15afb4,_0x12184c)=>{if(_0x12184c[0x0]!=_0xc6d349)return _0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12184c[0x1]={..._0x12184c[0x1],[_0x29b95a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b787c};},{[_0x29b95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b95a([0x68,0x69,0x67,0x68])}),_0x3e5e26[_0x29b95a([0x6f,0x6e])](_0x29b95a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9d0835=>{_0x54a04b(_0x9d0835[_0x29b95a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5af62c=!0x0,_0x1d0f91(_0x9d0835[_0x29b95a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x29b95a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x29b95a([0x6c,0x6f,0x77])}),_0x5c1264[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>{_0x5af62c||_0x47237e(_0x29b95a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5cf79f(){return _0x3e5e26[_0x29b95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b95a([0x76,0x69,0x65,0x77])][_0x29b95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x29b95a([0x61,0x75,0x74,0x6f]);}function _0x24b091(){_0x3e5e26[_0x29b95a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x29b95a([0x76,0x69,0x65,0x77])][_0x29b95a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x29b95a([0x61,0x75,0x74,0x6f]);}}function _0x373672(_0x5ac1b8){const _0x17a9cd=[new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14289d=>setTimeout(_0x14289d,0x3d1ee13^_0x3985a4)),_0x5c1264[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f8154=>{let _0xa56e24=0x0;_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x6f,0x6e])](_0x29b95a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x406ae2,_0x1b6964)=>{_0x1b6964[0x0][_0x29b95a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xa56e24++,_0xa56e24==(0x3d8d537^_0x3985a4)&&(_0x3f8154(),_0x406ae2[_0x29b95a([0x6f,0x66,0x66])]());});}))];return window[_0x29b95a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x29b95a([0x72,0x61,0x63,0x65])](_0x17a9cd)[_0x29b95a([0x74,0x68,0x65,0x6e])](()=>_0x5ac1b8);}async function _0x5466b7(){await _0x5c1264,_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x514fb2,_0x3e5e26[_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c])][_0x29b95a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x514fb2,_0x3e5e26[_0x29b95a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x29b95a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e36ea(){return _0x1e6810(_0x29b95a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e2c6b(_0x29b95a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x29b95a([0x73,0x74,0x61,0x74,0x65])]==_0x29b95a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5951f6(){return _0x1e6810(_0x29b95a([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 _0x8bd7d1(){return _0x1e6810(_0x29b95a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2b0051(_0x19cec7){const _0x135391=_0x4b0ae4();_0x3e5e26[_0x135391]=_0x29b95a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x19cec7,_0x19cec7!=_0x29b95a([0x56,0x61,0x6c,0x69,0x64])&&_0x5466b7();}function _0x4b0ae4(){const _0x5e360a=window[_0x29b95a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x29b95a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x29b95a([0x6e,0x6f,0x77])]())[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x29b95a([0x2e]),'');let _0x5827e4=_0x29b95a([0x52]);for(let _0xab819f=0x0;_0xab819f<_0x5e360a[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xab819f+=0x2){let _0xb23746=window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e360a[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xab819f,_0xab819f+0x2));_0xb23746>=_0x5897b9[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb23746-=_0x5897b9[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5827e4+=_0x5897b9[_0xb23746];}return _0x5827e4;}function _0x31ee50(){const _0x5d4946=_0x45cddd[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e]));if(0x3!=_0x5d4946[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4bfad5(_0x5d4946[0x1]);function _0x4bfad5(_0x360c30){const _0x1be910=_0x462e30(_0x360c30);return _0x1be910&&_0x2b8fa3()?_0x1be910:null;function _0x2b8fa3(){const _0x5e6a07=_0x1be910[_0x29b95a([0x6a,0x74,0x69])],_0xe9a132=window[_0x29b95a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e6a07[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e6a07[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e288d={..._0x1be910,[_0x29b95a([0x6a,0x74,0x69])]:_0x5e6a07[_0x29b95a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e6a07[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e288d[_0x29b95a([0x76,0x63])],_0x2c9cb8(_0x4e288d)==_0xe9a132;}}}async function _0x5cd5be(){let _0x49ad49=!0x0;try{const _0x11e71a=_0x45cddd[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])](_0x29b95a([0x2e])),[_0x2da303,_0xac9cf0,_0x47fb20]=_0x11e71a;return _0x11e1b5(_0x2da303),await _0x4b9201(_0x2da303,_0xac9cf0,_0x47fb20),_0x49ad49;}catch{return!0x1;}function _0x11e1b5(_0x522ea1){const _0x4affdc=_0x462e30(_0x522ea1);_0x4affdc&&_0x4affdc[_0x29b95a([0x61,0x6c,0x67])]==_0x29b95a([0x45,0x53,0x32,0x35,0x36])||(_0x49ad49=!0x1);}async function _0x4b9201(_0x428e27,_0x3afb5f,_0xc46ef2){const _0x34fae2=window[_0x29b95a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x29b95a([0x66,0x72,0x6f,0x6d])](_0x3d9b81(_0xc46ef2),_0x4424cc=>_0x4424cc[_0x29b95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e0f35=new window[(_0x29b95a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x29b95a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x428e27+_0x29b95a([0x2e])+_0x3afb5f),_0x1363f1=window[_0x29b95a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x29b95a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1363f1)return;const _0x53650c=await _0x1363f1[_0x29b95a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x29b95a([0x6a,0x77,0x6b]),_0x41a71f,{[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x45,0x43,0x44,0x53,0x41]),[_0x29b95a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x29b95a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1363f1[_0x29b95a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x45,0x43,0x44,0x53,0x41]),[_0x29b95a([0x68,0x61,0x73,0x68])]:{[_0x29b95a([0x6e,0x61,0x6d,0x65])]:_0x29b95a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x53650c,_0x34fae2,_0x3e0f35)||(_0x49ad49=!0x1);}}function _0x462e30(_0x41f342){return _0x41f342[_0x29b95a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x29b95a([0x65,0x79]))?JSON[_0x29b95a([0x70,0x61,0x72,0x73,0x65])](_0x3d9b81(_0x41f342)):null;}function _0x3d9b81(_0x35b150){return window[_0x29b95a([0x61,0x74,0x6f,0x62])](_0x35b150[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x29b95a([0x2b]))[_0x29b95a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x29b95a([0x2f])));}function _0x2c9cb8(_0x274724){let _0x2d5fc3=0x1505;function _0x310a2f(_0x1cc846){for(let _0x585b92=0x0;_0x585b92<_0x1cc846[_0x29b95a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x585b92++){const _0x1cdc07=_0x1cc846[_0x29b95a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x585b92);_0x2d5fc3=(_0x2d5fc3<<0x5)+_0x2d5fc3+_0x1cdc07,_0x2d5fc3&=_0x2d5fc3;}}function _0x3de927(_0x350ae4){Array[_0x29b95a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x350ae4)?_0x350ae4[_0x29b95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3de927):_0x350ae4&&typeof _0x350ae4==_0x29b95a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x29b95a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x350ae4)[_0x29b95a([0x73,0x6f,0x72,0x74])]()[_0x29b95a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2d6e60,_0x33a6b6])=>{_0x310a2f(_0x2d6e60),_0x3de927(_0x33a6b6);}):_0x310a2f(window[_0x29b95a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x350ae4));}return _0x3de927(_0x274724),_0x2d5fc3>>>0x0;}function _0x9185f3(_0x43b255){return _0x43b255[_0x29b95a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x29b95a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x29b95a([0x30]));}function _0x199afd(_0x5d83cc){return _0x5d83cc[_0x29b95a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x29b95a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x29b95a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e6810(_0x2d713c){return _0x3e5e26[_0x29b95a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b95a([0x68,0x61,0x73])](_0x2d713c);}function _0x4e2c6b(_0x485b39){return _0x3e5e26[_0x29b95a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x29b95a([0x67,0x65,0x74])](_0x485b39);}function _0x514fb2(){}function _0x29b95a(_0x1fb6d7){return _0x1fb6d7['map'](_0x417306=>String['fromCharCode'](_0x417306))['join']('');}_0x2b0051(await _0x4cf85a());}(this);}set['adapter'](_0x1f035b){if(this['_adapter'])throw new _0x520897('track-changes-adapter-already-set',this);this['_adapter']=_0x1f035b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5379bf=!0x1,toJSON:_0x4ec3e3=!0x1}={}){const _0x15b220=[];for(const _0x5699cd of this['_suggestions']['values']())_0x5379bf&&!_0x5699cd['isInContent']||_0x15b220['push'](_0x5699cd);return _0x4ec3e3?_0x15b220['map'](_0x3a62a6=>_0x3a62a6['toJSON']()):_0x15b220;}['getSuggestion'](_0x2cb576){const _0x387d1a=this['_suggestions']['get'](_0x2cb576);if(!_0x387d1a)throw new _0x520897('track-changes-suggestion-not-found',this);return _0x387d1a;}['hasSuggestion'](_0x4be4da){return this['_suggestions']['has'](_0x4be4da);}['addSuggestionData'](_0x1efd9e){const {authorId:_0x205fa9,id:_0x238b06,originalSuggestionId:_0x1757b2,attributes:_0x30097e}=_0x1efd9e,[_0x46a80a,_0x4839ca]=_0x1efd9e['type']['split'](':'),_0x4c90f8=this['_suggestions']['get'](_0x238b06)||this['_createSuggestion'](_0x46a80a,_0x4839ca,_0x238b06,_0x205fa9,_0x30097e,_0x1757b2);if(this['_addThreadToSuggestion'](_0x4c90f8),this['_checkSuggestionCorrectness'](_0x4c90f8,_0x46a80a,_0x4839ca||null,_0x205fa9),_0x4c90f8['createdAt']=_0x1efd9e['createdAt'],_0x4c90f8['_isDataLoaded']=!0x0,_0x30097e&&_0x30097e['@external']){const _0x579263=_0x30097e['@external'],_0x3327e5=this['_getExternalAuthor'](_0x579263['authorName']);_0x4c90f8['authoredAt']=_0x579263['createdAt'],_0x4c90f8['author']=_0x3327e5,_0x4c90f8['isExternal']=!0x0;}else _0x4c90f8['authoredAt']=_0x1efd9e['createdAt'];switch(_0x1efd9e['data']&&(_0x4c90f8['data']=_0x1efd9e['data']),_0x1efd9e['attributes']&&(_0x4c90f8['attributes']=_0x1efd9e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4c90f8['_saved']=!0x0),this['_suggestionState']['get'](_0x4c90f8)){case'notReady':this['_suggestionState']['set'](_0x4c90f8,'dataReady');break;case'markerReady':_0x4c90f8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4c90f8])),this['_refreshSuggestionsChain'](new Set([_0x4c90f8])),this['_suggestionState']['set'](_0x4c90f8,'ready'),this['fire']('suggestionLoaded',_0x4c90f8)):this['_suggestionState']['set'](_0x4c90f8,'removed');}return _0x4c90f8;}['acceptSuggestion'](_0x257461){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x17fbf9 of _0x257461['getAllAdjacentSuggestions']())_0x17fbf9['accept']();});});}['discardSuggestion'](_0x2d08e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7054fa of _0x2d08e0['getAllAdjacentSuggestions']())_0x7054fa['discard']();});});}['enableCommand'](_0x586a66,_0xd66184){const _0x17c9b7=this['editor']['commands']['get'](_0x586a66);if(!_0x17c9b7)throw new _0x520897('track-changes-command-not-found',this,{'commandName':_0x586a66});if(this['_enabledCommands']['has'](_0x17c9b7))throw new _0x520897('track-changes-enable-command-twice',this,{'commandName':_0x586a66});this['_enabledCommands']['add'](_0x17c9b7),_0xd66184&&_0x17c9b7['on']('execute',(_0x36b38a,_0x38cf0b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x38cf0b['length']>0x0&&_0x38cf0b[_0x38cf0b['length']-0x1]&&_0x38cf0b[_0x38cf0b['length']-0x1]['forceDefaultExecution']?_0x38cf0b['pop']():(_0x36b38a['return']=_0xd66184((..._0x5dc6bf)=>_0x17c9b7['execute'](..._0x5dc6bf,{'forceDefaultExecution':!0x0}),..._0x38cf0b),_0x36b38a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x285ad5){let _0x25ac81,_0x360e2c;const _0x320f9d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x25ac81=_0x285ad5();}catch(_0x42f130){_0x360e2c=_0x42f130;}return _0x320f9d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x360e2c&&_0x520897['rethrowUnexpectedError'](_0x360e2c,this),_0x25ac81;}['markInsertion'](_0x406409,_0x26dbaa=null,_0x485188={}){if(_0x406409['isCollapsed'])return null;const _0x51887e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x485188['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x29bac0,meta:_0x22f8b2}of this['_findSuggestions'](_0x406409,'insertion'))if(_0x22f8b2['isOwn']){if(!_0x22f8b2['isNextTo']){if(_0x22f8b2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x29bac0,_0x485188))continue;return _0x29bac0;}if(cn(_0x29bac0,_0x485188))return _0x29bac0;this['_breakSuggestionMarker'](_0x29bac0,_0x406409['start'],_0x406409['end']);break;}if(_0x26dbaa==_0x29bac0['subType']&&cn(_0x29bac0,_0x485188)){const _0x81faed=_0x29bac0['getFirstRange']();return _0x81faed['start']['isEqual'](_0x406409['end'])?this['_setSuggestionRange'](_0x29bac0,this['_model']['createRange'](_0x406409['start'],_0x81faed['end'])):this['_setSuggestionRange'](_0x29bac0,this['_model']['createRange'](_0x81faed['start'],_0x406409['end'])),_0x29bac0;}}const _0x3d5f58=_0x12e742(),_0x46a748=_0x51887e['id'],_0x5f2bd7=_0x26dbaa?'insertion:'+_0x26dbaa:'insertion',_0x24b232=this['_setSuggestionData']({'id':_0x3d5f58,'type':_0x5f2bd7,'createdAt':new Date(),'authorId':_0x46a748,'attributes':_0x485188});return this['_addSuggestionMarker'](_0x5f2bd7,_0x3d5f58,_0x46a748,_0x406409),_0x24b232;}['markMultiRangeInsertion'](_0x4c6cbe,_0x2b2dc7='multi',_0x117585={}){const _0x483c76=this['editor']['plugins']['get']('Users')['me'],_0x3ef3e5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b2dc7,'join');this['_trackingSessionId']&&(_0x117585['trackingSessionId']=this['_trackingSessionId']);for(const _0x4bc81e of this['getSuggestions']())if(_0x4bc81e['author']['id']==_0x483c76['id']&&'insertion'==_0x4bc81e['type']&&_0x4bc81e['subType']==_0x2b2dc7&&cn(_0x4bc81e,_0x117585)&&(_0x3ef3e5(_0x4bc81e['getRanges'](),_0x4c6cbe)||_0x3ef3e5(_0x4c6cbe,_0x4bc81e['getRanges']()))){for(const _0x13e586 of _0x4c6cbe)_0x4bc81e['addRange'](_0x13e586);return _0x4bc81e;}for(const {suggestion:_0x57a6a1,meta:_0xe06d60}of this['_findSuggestions'](_0x4c6cbe,'insertion')){if(!_0xe06d60['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xe06d60['containsRangeInObject'])continue;if(!cn(_0x57a6a1,_0x117585))continue;let _0x1c5d50=!0x0;for(const _0x2c40a5 of _0x57a6a1['getRanges']())for(const _0x4c5c13 of _0x4c6cbe)if(!_0x2c40a5['containsRange'](_0x4c5c13)){_0x1c5d50=!0x1;break;}if(_0x1c5d50)return _0x57a6a1;}const _0x68c63f=_0x12e742(),_0x48ef37=_0x483c76['id'],_0x49066f='insertion:'+_0x2b2dc7,_0x4741c6=this['_setSuggestionData']({'id':_0x68c63f,'type':_0x49066f,'createdAt':new Date(),'authorId':_0x48ef37,'attributes':_0x117585});for(const _0x1d5d83 of _0x4c6cbe)this['_addSuggestionMarker'](_0x49066f,_0x68c63f,_0x48ef37,_0x1d5d83,bt['getMultiRangeId']());return _0x4741c6;}['markInlineFormat'](_0xb9362,_0x3e30c4,_0x4a3d5d=null,_0x4fca64={}){if(_0x4a3d5d=_0x4a3d5d||Je(_0x3e30c4),_0xb9362['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4fca64['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x7a83a1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a3d5d,'accept');return this['forceDefaultExecution'](()=>_0x7a83a1([_0xb9362],_0x3e30c4,_0x4fca64)),null;}const _0x52568b=this['editor']['plugins']['get']('Users')['me'],_0x273e18=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x51d6e0,meta:_0x38518a}of this['_findSuggestions'](_0xb9362,'insertion'))_0x38518a['isOwn']&&!_0x38518a['isInsideObject']&&_0x273e18['push'](..._0x51d6e0['getRanges']());}const _0x3cdecf=function(_0x490a0f,_0x3c576a){const _0x1636fe=[];for(const _0x4fe72a of _0x3c576a){const _0x34e509=_0x490a0f['getIntersection'](_0x4fe72a);_0x34e509&&_0x1636fe['push'](_0x34e509);}return _0x1636fe;}(_0xb9362,_0x273e18),_0x26ec44=function(_0x425b75,_0x2006d3){const _0x5b3346=[_0x425b75];for(const _0xfef0e7 of _0x2006d3){let _0x27fc66=0x0;for(;_0x27fc66<_0x5b3346['length'];){const _0x3a2b40=_0x5b3346[_0x27fc66]['getDifference'](_0xfef0e7);_0x5b3346['splice'](_0x27fc66,0x1,..._0x3a2b40),_0x27fc66+=_0x3a2b40['length'];}}return _0x5b3346;}(_0xb9362,_0x273e18);_0x3cdecf['length']&&this['_model']['change'](()=>{for(const _0x43d8cb of _0x3cdecf){const _0x17b1af=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a3d5d,'accept');this['forceDefaultExecution'](()=>_0x17b1af([_0x43d8cb],_0x3e30c4,_0x4fca64));}});for(const _0x20aabe of _0x26ec44){let _0x3b7224=null,_0x2ece7f=_0x20aabe['start'],_0x29de35=_0x20aabe['end'];for(const {suggestion:_0x4c27de,meta:_0x37613a}of this['_findSuggestions'](_0x20aabe,'formatInline')){if(!_0x37613a['isOwn'])continue;if(_0x4c27de['subType']!=_0x4a3d5d)continue;if(!cn(_0x4c27de,_0x4fca64))continue;const _0x1069a1=_0x4c27de['getFirstRange']();if(_0x1069a1['containsRange'](_0x20aabe,!0x0))return null;_0x2ece7f=_0x2ece7f['isBefore'](_0x1069a1['start'])?_0x2ece7f:_0x1069a1['start'],_0x29de35=_0x29de35['isAfter'](_0x1069a1['end'])?_0x29de35:_0x1069a1['end'],_0x3b7224?_0x1069a1['start']['isBefore'](_0x3b7224['getFirstRange']()['start'])?(_0x3b7224['removeMarkers'](),_0x3b7224=_0x4c27de):_0x4c27de['removeMarkers']():_0x3b7224=_0x4c27de;}const _0x3fe7b0=this['_model']['createRange'](_0x2ece7f,_0x29de35);if(_0x3b7224)this['_setSuggestionRange'](_0x3b7224,_0x3fe7b0);else{const _0x593c79=_0x12e742(),_0x57a6f7=_0x52568b['id'];this['_setSuggestionData']({'id':_0x593c79,'type':'formatInline:'+_0x4a3d5d,'data':_0x3e30c4,'createdAt':new Date(),'authorId':_0x57a6f7,'attributes':_0x4fca64}),this['_addSuggestionMarker']('formatInline:'+_0x4a3d5d,_0x593c79,_0x57a6f7,_0x3fe7b0);}}return null;}['markBlockFormat'](_0x167be0,_0x842350,_0x1caed5=[],_0x26390a=null,_0x4fa8d1={}){_0x842350['formatGroupId']||(_0x842350['formatGroupId']=_0x842350['commandName']),_0x842350['multipleBlocks']=_0x167be0['is']('range'),_0x26390a=_0x26390a||Je(_0x842350);const _0x2bd6a0=_0x1caed5['map'](_0x58ce8e=>rn(_0x58ce8e,this['_model'])),_0x5e173d=_0x167be0['is']('range')?_0x167be0:rn(_0x167be0,this['_model']);if(this['_trackingSessionId']&&(_0x4fa8d1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4679c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26390a,'accept');return this['forceDefaultExecution'](()=>_0x4679c4([_0x5e173d],_0x842350,_0x4fa8d1)),null;}_0x2bd6a0['push'](_0x5e173d);let _0x332407=!0x0;for(const _0x1d4701 of _0x2bd6a0)if(!this['_rangeIsInLocalUserInsertion'](_0x1d4701)){_0x332407=!0x1;break;}if(_0x332407&&'always'!==this['_trackFormatChanges']){const _0x406001=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26390a,'accept');return this['forceDefaultExecution'](()=>_0x406001([_0x5e173d],_0x842350,_0x4fa8d1)),null;}let _0x4ce1ac=null,_0x5c0ceb=_0x5e173d['start'],_0x34d6c3=_0x5e173d['end'];for(const {suggestion:_0x2cfbec,meta:_0x237a27}of this['_findSuggestions'](_0x5e173d,'formatBlock')){if(!_0x237a27['isOwn'])continue;if(_0x237a27['isNextTo']||_0x237a27['containsRangeInObject']||_0x237a27['isInsideObject'])continue;if(_0x2cfbec['data']['formatGroupId']!=_0x842350['formatGroupId'])continue;if(!cn(_0x2cfbec,_0x4fa8d1))continue;const _0x5f5890=_0x2cfbec['getFirstRange']();if(_0x2cfbec['subType']==_0x26390a){if(_0x5f5890['containsRange'](_0x5e173d,!0x0))return null;_0x5c0ceb=_0x5c0ceb['isBefore'](_0x5f5890['start'])?_0x5c0ceb:_0x5f5890['start'],_0x34d6c3=_0x34d6c3['isAfter'](_0x5f5890['end'])?_0x34d6c3:_0x5f5890['end'],_0x4ce1ac?_0x5f5890['start']['isBefore'](_0x4ce1ac['getFirstRange']()['start'])?(_0x4ce1ac['removeMarkers'](),_0x4ce1ac=_0x2cfbec):_0x2cfbec['removeMarkers']():_0x4ce1ac=_0x2cfbec;}else{const _0x28ca15=_0x5e173d['getIntersection'](_0x5f5890);this['_cutOutSuggestionMarker'](_0x2cfbec,_0x28ca15);}}const _0x3ec5c8=this['editor']['plugins']['get']('Users')['me'],_0x2f96e2=_0x12e742(),_0x4a2f5f=_0x3ec5c8['id'];if(_0x4ce1ac)return this['_setSuggestionRange'](_0x4ce1ac,this['_model']['createRange'](_0x5c0ceb,_0x34d6c3)),_0x4ce1ac;{const _0x2e1cca=this['_setSuggestionData']({'id':_0x2f96e2,'type':'formatBlock:'+_0x26390a,'data':_0x842350,'createdAt':new Date(),'authorId':_0x4a2f5f,'attributes':_0x4fa8d1});return this['_addSuggestionMarker']('formatBlock:'+_0x26390a,_0x2f96e2,_0x4a2f5f,this['_model']['createRange'](_0x5c0ceb,_0x34d6c3)),_0x2e1cca;}}['markMultiRangeBlockFormat'](_0x393737,_0x34f9fa,_0x27e330=[],_0x2e559b=null,_0x67d724={}){_0x34f9fa['formatGroupId']||(_0x34f9fa['formatGroupId']=_0x34f9fa['commandName']);const _0x10d0e7=_0x393737[0x0];_0x34f9fa['multipleBlocks']=_0x10d0e7['is']('range'),_0x2e559b=_0x2e559b||Je(_0x34f9fa);const _0x5f4ac7=_0x27e330['map'](_0x3d4021=>rn(_0x3d4021,this['_model'])),_0x354ca4=_0x10d0e7['is']('range')?_0x393737:_0x393737['map'](_0x2c7720=>rn(_0x2c7720,this['_model']));if(this['_trackingSessionId']&&(_0x67d724['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4338a7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'accept');return this['forceDefaultExecution'](()=>_0x4338a7(_0x354ca4,_0x34f9fa,_0x67d724)),null;}_0x5f4ac7['push'](..._0x354ca4);let _0xcd9937=!0x0;for(const _0x12469d of _0x5f4ac7)if(!this['_rangeIsInLocalUserInsertion'](_0x12469d)){_0xcd9937=!0x1;break;}if(_0xcd9937&&'always'!==this['_trackFormatChanges']){const _0x4c8896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'accept');return this['forceDefaultExecution'](()=>_0x4c8896(_0x354ca4,_0x34f9fa,_0x67d724)),null;}const _0x231cc7=this['editor']['plugins']['get']('Users')['me'];for(const _0x47c905 of this['getSuggestions']()){const _0x175bd3=_0x47c905['data'];if(_0x47c905['author']['id']!=_0x231cc7['id'])continue;if('formatBlock'!=_0x47c905['type']||_0x175bd3['formatGroupId']!=_0x34f9fa['formatGroupId'])continue;if(!cn(_0x47c905,_0x67d724))continue;const _0x1e144c=_0x47c905['subType']==_0x2e559b;for(let _0x47aab5=0x0;_0x47aab5<_0x354ca4['length'];_0x47aab5++){const _0x1d1f85=_0x354ca4[_0x47aab5];for(const _0x5e1e7e of _0x47c905['getMarkers']()){const _0x41c563=_0x5e1e7e['getRange']();if(_0x1d1f85['isEqual'](_0x41c563)){_0x1e144c?(_0x354ca4['splice'](_0x47aab5,0x1),_0x47aab5--):_0x47c905['removeMarker'](_0x5e1e7e['name']);break;}}}}if(0x0==_0x354ca4['length'])return null;const _0x524477=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2e559b,'join');for(const _0xf93880 of this['getSuggestions']()){const _0x566b25=_0xf93880['data'];if(_0xf93880['author']['id']==_0x231cc7['id']&&('formatBlock'==_0xf93880['type']&&_0x566b25['formatGroupId']==_0x34f9fa['formatGroupId']&&_0xf93880['subType']==_0x2e559b&&cn(_0xf93880,_0x67d724)&&(_0x524477(_0xf93880['getRanges'](),_0x354ca4)||_0x524477(_0x354ca4,_0xf93880['getRanges']())))){for(const _0x226f2c of _0x354ca4)_0xf93880['addRange'](_0x226f2c);return _0xf93880;}}const _0x103565=_0x12e742(),_0x4e166d=_0x231cc7['id'],_0xacabe='formatBlock:'+_0x2e559b,_0x999f0e=this['_setSuggestionData']({'id':_0x103565,'type':_0xacabe,'data':_0x34f9fa,'createdAt':new Date(),'authorId':_0x4e166d,'attributes':_0x67d724});for(const _0x10741a of _0x354ca4)this['_addSuggestionMarker'](_0xacabe,_0x103565,_0x4e166d,_0x10741a,bt['getMultiRangeId']());return _0x999f0e;}['markDeletion'](_0x2eea26,_0x249ad5=null,_0x3b3513={}){if(_0x2eea26['isCollapsed'])return null;const _0x4f58dd=this['editor']['plugins']['get']('Users')['me'],_0x5b3870=new _0x3756aa(_0x2eea26['start'],_0x2eea26['end']);this['_trackingSessionId']&&(_0x3b3513['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c949f,meta:_0x54c907}of this['_findSuggestions'](_0x5b3870,'insertion'))if(_0x54c907['isOwn']&&!_0x54c907['isNextTo']){if(_0x1c949f['isMultiRange']){const _0x4f6772=_0x1c949f['getRanges']()['filter'](_0x2c82b4=>'$graveyard'!=_0x2c82b4['root']['rootName']);_0x4f6772['every'](_0xc12cf0=>_0x5b3870['containsRange'](_0xc12cf0,!0x0))&&_0x1c949f['discard']();if(_0x4f6772['some'](_0x270cc9=>_0x270cc9['containsRange'](_0x5b3870,!0x0))){const _0x36113f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249ad5,'accept');return this['forceDefaultExecution'](()=>_0x36113f([_0x5b3870],null,_0x3b3513)),null;}}else{const _0xdfaa4b=_0x5b3870['getIntersection'](_0x1c949f['getFirstRange']());null!==_0xdfaa4b&&_0x1c949f['_onDiscard']([_0xdfaa4b],null,_0x3b3513);}}if(_0x5b3870['detach'](),_0x5b3870['isCollapsed']||'$graveyard'==_0x5b3870['root']['rootName'])return null;let _0x15c9f7=null,_0x5928c3=_0x5b3870['start'],_0x2d62d6=_0x5b3870['end'];const _0x5075dc=this['_findSuggestions'](_0x5b3870,'deletion');for(const {suggestion:_0x391e22,meta:_0x6d1fa1}of _0x5075dc){const _0x4431bb=this['_model']['createRange'](_0x5928c3,_0x2d62d6);if(_0x6d1fa1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6d1fa1['containsRangeInObject']&&!_0x6d1fa1['isInsideObject'])){if(_0x391e22['isMultiRange']){if(!cn(_0x391e22,_0x3b3513))continue;let _0x281de9=!0x0;for(const _0x565b11 of _0x391e22['getRanges']()){if(_0x565b11['containsRange'](_0x4431bb,!0x0))return _0x391e22;_0x4431bb['containsRange'](_0x565b11)||(_0x281de9=!0x1);}_0x281de9&&_0x391e22['discard']();}else{const _0x2aab1a=_0x391e22['getFirstRange']();if(_0x2aab1a['containsRange'](_0x4431bb,!0x0))return _0x391e22;if(!cn(_0x391e22,_0x3b3513)){_0x4431bb['containsRange'](_0x2aab1a)?_0x391e22['removeMarkers']():_0x2aab1a['containsPosition'](_0x5928c3)?_0x5928c3=_0x2aab1a['end']:_0x2aab1a['containsPosition'](_0x2d62d6)&&(_0x2d62d6=_0x2aab1a['start']);continue;}_0x5928c3=_0x5928c3['isBefore'](_0x2aab1a['start'])?_0x5928c3:_0x2aab1a['start'],_0x2d62d6=_0x2d62d6['isAfter'](_0x2aab1a['end'])?_0x2d62d6:_0x2aab1a['end'],_0x3b3513=Object['assign']({},_0x391e22['attributes']),_0x15c9f7?_0x2aab1a['start']['isBefore'](_0x15c9f7['getFirstRange']()['start'])?(_0x15c9f7['removeMarkers'](),_0x15c9f7=_0x391e22):_0x391e22['removeMarkers']():_0x15c9f7=_0x391e22;}}}if(_0x15c9f7)return this['_setSuggestionRange'](_0x15c9f7,this['_model']['createRange'](_0x5928c3,_0x2d62d6)),_0x15c9f7;{const _0x40cd9c=_0x12e742(),_0x1bb61f=this['_model']['createRange'](_0x5928c3,_0x2d62d6),_0x4a61e6=_0x4f58dd['id'],_0x374fd6=_0x249ad5?'deletion:'+_0x249ad5:'deletion',_0x2c5cf5=this['_setSuggestionData']({'id':_0x40cd9c,'type':_0x374fd6,'createdAt':new Date(),'authorId':_0x4a61e6,'attributes':_0x3b3513});return this['_addSuggestionMarker'](_0x374fd6,_0x40cd9c,_0x4a61e6,_0x1bb61f),_0x2c5cf5;}}['markMultiRangeDeletion'](_0x26d7b4,_0x617879='multi',_0xe40bf={}){const _0x1cd4a0=this['editor']['plugins']['get']('Users')['me'],_0x1904c2=_0x26d7b4['map'](_0x32e38f=>new _0x3756aa(_0x32e38f['start'],_0x32e38f['end'])),_0x595109=new Set();this['_trackingSessionId']&&(_0xe40bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2ee5c4,meta:_0x434f01}of this['_findSuggestions'](_0x1904c2,'insertion'))_0x434f01['isOwn']&&!_0x434f01['isNextTo']&&_0x595109['add'](_0x2ee5c4);for(const _0xde1111 of _0x595109)if(_0xde1111['isMultiRange']){const _0x325f45=_0xde1111['getRanges']();(!_0xde1111['attributes']||!_0xde1111['attributes']['skipNestingCheck'])&&(_0x325f45['every'](_0x33f410=>_0x1904c2['some'](_0x5b06df=>_0x5b06df['containsRange'](_0x33f410,!0x0)))&&_0xde1111['discard']());if(_0x1904c2['every'](_0x3fdd92=>_0x325f45['some'](_0x320789=>_0x320789['containsRange'](_0x3fdd92,!0x0)))){const _0x39e2f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'accept');return this['forceDefaultExecution'](()=>_0x39e2f2(_0x26d7b4,null,_0xe40bf)),null;}}else{const _0xed700=_0xde1111['getFirstRange']();_0x1904c2['some'](_0x43143b=>_0x43143b['containsRange'](_0xed700,!0x0))&&_0xde1111['discard']();if(_0x1904c2['every'](_0x4346e2=>_0xed700['containsRange'](_0x4346e2,!0x0))){const _0x29e497=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'accept');return this['forceDefaultExecution'](()=>_0x29e497(_0x1904c2,null,_0xe40bf)),null;}}const _0x104b2a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x617879,'join');let _0xb4404c=null;for(const _0xb7be91 of this['getSuggestions']())if(_0xb7be91['author']['id']==_0x1cd4a0['id']&&_0xb7be91['isInContent']&&'deletion'==_0xb7be91['type']&&_0xb7be91['subType']==_0x617879&&cn(_0xb7be91,_0xe40bf)&&(_0x104b2a(_0xb7be91['getRanges'](),_0x1904c2)||_0x104b2a(_0x1904c2,_0xb7be91['getRanges']()))){if(_0xb4404c){if(_0xb7be91['commentThread']&&_0xb7be91['commentThread']['length'])continue;for(const _0x247b24 of _0xb7be91['getRanges']())_0xb4404c['isIntersectingWithRange'](_0x247b24)||_0xb4404c['addRange'](_0x247b24);_0xb7be91['removeMarkers']();}else{_0xb4404c=_0xb7be91;for(const _0x649739 of _0x1904c2)_0xb7be91['isIntersectingWithRange'](_0x649739)||_0xb7be91['addRange'](_0x649739);}}if(_0xb4404c)return _0xb4404c;_0x595109['clear']();for(const {suggestion:_0xa8fae0,meta:_0x106a37}of this['_findSuggestions'](_0x1904c2,'deletion'))_0x106a37['isOwn']&&(this['_mergeNestedSuggestions']||!_0x106a37['containsRangeInObject']&&!_0x106a37['isInsideObject'])&&cn(_0xa8fae0,_0xe40bf)&&_0x595109['add'](_0xa8fae0);for(const _0x41813e of _0x595109){const _0x41e677=_0x41813e['getRanges']();if(!_0xe40bf||!_0xe40bf['skipNestingCheck']){if(_0x1904c2['every'](_0x31922c=>_0x41e677['some'](_0x243a0b=>_0x243a0b['containsRange'](_0x31922c,!0x0))))return _0x41813e;}(!_0x41813e['attributes']||!_0x41813e['attributes']['skipNestingCheck'])&&(_0x41e677['every'](_0x8bacf9=>_0x1904c2['some'](_0x35dd5a=>_0x35dd5a['containsRange'](_0x8bacf9,!0x0)))&&_0x41813e['discard']());}const _0x5911ce=_0x12e742(),_0x672be0=_0x1cd4a0['id'],_0x2b9da3='deletion:'+_0x617879,_0x516620=this['_setSuggestionData']({'id':_0x5911ce,'type':_0x2b9da3,'createdAt':new Date(),'authorId':_0x672be0,'attributes':_0xe40bf});for(const _0x37688b of _0x1904c2)_0x37688b['detach'](),_0x37688b['isCollapsed']||'$graveyard'==_0x37688b['root']['rootName']||this['_addSuggestionMarker'](_0x2b9da3,_0x5911ce,_0x672be0,_0x37688b,bt['getMultiRangeId']());return _0x516620;}['markAttributeChange'](_0x32a6b8,_0xfadaaf,_0x3d9d30,_0x5bc79d,_0x170075){if(_0x32a6b8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x30a8d3=this['editor']['plugins']['get']('Users')['me']['id'],_0x254534=Array['from'](this['_suggestions']['values']())['filter'](_0x164560=>'attribute'==_0x164560['type']&&_0x164560['data']['key']==_0xfadaaf&&_0x164560['isIntersectingWithRange'](_0x32a6b8));if(this['_trackingSessionId']&&(_0x170075['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x52a511=this['_findSuggestions'](_0x32a6b8,'insertion')['filter'](({meta:_0x51f064})=>_0x51f064['isOwn']&&!_0x51f064['isInsideObject']&&!_0x51f064['isNextTo'])['map'](({suggestion:_0x250757})=>_0x250757);_0x254534['unshift'](..._0x52a511);}const _0x4d3318=new Map([[_0x32a6b8,_0x3d9d30]]);for(const _0x433f6e of _0x254534){const _0x5cc380='attribute'==_0x433f6e['type']?_0x433f6e['data']['oldValue']:void 0x0,_0x4ec130=_0x433f6e['getFirstRange'](),_0x5dea69=Array['from'](_0x4d3318['keys']())['find'](_0x2425ac=>_0x2425ac['isIntersecting'](_0x4ec130));if(!_0x5dea69)continue;const _0x187a79=_0x5dea69['getDifference'](_0x4ec130);this['_suggestionsConversion']['isBlockAttribute'](_0xfadaaf)&&'insertion'==_0x433f6e['type']&&0x0!=_0x187a79['length']||(_0x4d3318['delete'](_0x5dea69),_0x187a79['forEach'](_0x28c7d9=>{_0x4d3318['set'](_0x28c7d9,_0x3d9d30);}),'insertion'!=_0x433f6e['type']&&_0x5cc380!=_0x5bc79d&&_0x4d3318['set'](_0x5dea69['getIntersection'](_0x4ec130),_0x5cc380));}const _0x3e5488=[];for(const [_0x43281d,_0x196e02]of _0x4d3318){const _0x4c8169=_0x12e742(),_0x5383ab={'key':_0xfadaaf,'oldValue':_0x196e02,'newValue':_0x5bc79d};_0xfadaaf['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':_0xfadaaf});const _0x588f2c=('attribute:'+(_0xfadaaf+'|'+Je({'newValue':_0x5bc79d})))['substring'](0x0,0x3c),_0x1002d9=this['_setSuggestionData']({'id':_0x4c8169,'type':_0x588f2c,'data':_0x5383ab,'createdAt':new Date(),'authorId':_0x30a8d3,'attributes':_0x170075});_0x3e5488['push'](_0x1002d9),this['_addSuggestionMarker'](_0x588f2c,_0x4c8169,_0x30a8d3,_0x43281d);}return _0x3e5488;}['enableDefaultAttributesIntegration'](_0x23a9c2){this['enableCommand'](_0x23a9c2,(_0x57d936,..._0x2f078f)=>{this['recordAttributeChanges'](()=>{_0x57d936(..._0x2f078f);});});}['startTrackingSession'](_0xf29c4a){return this['_trackingSessionId']=void 0x0!==_0xf29c4a?_0xf29c4a:_0x12e742(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2e46ea){return'attribute'==_0x2e46ea['type']?un(_0x2e46ea['subType']):null;}['_applyOperationsAsSuggestions'](_0xee9355){if(0x0==_0xee9355['length'])return;const _0x5eba58=this['editor'],_0x2bca21=_0x5eba58['plugins']['get'](_0x6baf3d),_0x4e41de=[];_0x5eba58['model']['change'](_0x52bbd9=>{for(let _0x1e1377=0x0;_0x1e1377<_0xee9355['length'];_0x1e1377++){const _0x5b4598=_0xee9355[_0x1e1377];if(_0x5b4598['baseVersion']=_0x5eba58['model']['document']['version'],_0x5b4598['isDocumentOperation']=!0x0,_0x2bca21['isMarkedRemoveOperation'](_0x5b4598)){const _0x47e44d=_0x53d174(_0x5b4598['newRange'],_0x5eba58['model']);_0x4e41de['unshift'](_0x3756aa['fromRange'](_0x47e44d));}else switch(_0x5b4598['type']){case'rename':{const _0x54064a=_0x5b4598['oldName'],_0x501402=_0x5b4598['newName'];if(_0x54064a==_0x501402)break;_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x45ace8='$elementName',_0x22c19e=_0x5b4598['position'],_0x43a6cd=_0x5eba58['model']['createRange'](_0x22c19e,_0x5eba58['model']['createPositionAt'](_0x22c19e['nodeAfter'],'end'));this['markAttributeChange'](_0x43a6cd,_0x45ace8,_0x54064a,_0x501402,{'groupId':_0x12e742()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x415cd2=_0x5b4598['oldValue'],_0x3999ba=_0x5b4598['newValue'];if(_0x415cd2==_0x3999ba)break;_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x3dd184=_0x5b4598['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3dd184))break;const _0x1124e2=_0x53d174(_0x5b4598['range'],_0x5eba58['model']);this['markAttributeChange'](_0x1124e2,_0x3dd184,_0x415cd2,_0x3999ba,{'groupId':_0x12e742()});break;}case'insert':{_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);if(_0xee9355[_0x1e1377+0x1]&&'move'==_0xee9355[_0x1e1377+0x1]['type'])break;const _0x24bd0a=_0x5b4598['position'],_0x11627a=_0x5b4598['howMany'],_0x450746=_0x53d174(_0x5eba58['model']['createRange'](_0x24bd0a,_0x24bd0a['getShiftedBy'](_0x11627a)),_0x5eba58['model']);this['markInsertion'](_0x450746);break;}case'split':{_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);const _0x596afc=_0x5b4598['splitPosition'],_0x570e54=_0x5b4598['moveTargetPosition'];this['markInsertion'](_0x5eba58['model']['createRange'](_0x596afc,_0x570e54));break;}case'move':case'remove':_0x52bbd9['batch']['addOperation'](_0x5b4598),_0x5eba58['model']['applyOperation'](_0x5b4598);}}for(const _0x241f60 of _0x4e41de)_0x241f60['detach'](),this['markDeletion'](_0x241f60);});}['_setSuggestionRange'](_0x3ee6a3,_0x3b36a2){const _0x1f3ad6=_0x3ee6a3['getFirstMarker']();this['_model']['change'](_0x443193=>{_0x443193['updateMarker'](_0x1f3ad6,{'range':_0x3b36a2});});}['_addThreadToSuggestion'](_0x2ba0a2){const _0x42cb77=_0x2ba0a2['id'],_0x52fdde=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x42cb77)||this['_commentsRepository']['addCommentThread']({'channelId':_0x52fdde,'threadId':_0x42cb77,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x86c4fe=this['_commentsRepository']['getCommentThread'](_0x42cb77);_0x86c4fe['unbind']('isRemovable'),_0x86c4fe['isRemovable']=!0x1,_0x2ba0a2['commentThread']=_0x86c4fe;}['_checkSuggestionCorrectness'](_0x44791f,_0x244a48,_0x364914,_0x31bea9){if(_0x44791f['type']!=_0x244a48||_0x44791f['subType']!=_0x364914||_0x44791f['creator']['id']!=_0x31bea9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x520897('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x58c799,_0x5897ca){const _0x312b12=_0x58c799['getFirstRange']();if(_0x5897ca['isEqual'](_0x312b12))_0x58c799['removeMarkers']();else{if(_0x312b12['containsRange'](_0x5897ca)){const _0x2ed487=this['_model']['createPositionAt'](_0x5897ca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x312b12['start'],_0x2ed487));const _0x207bb6=_0x12e742(),_0x42f462=_0x58c799['creator']['id'],_0x4a8613=_0x58c799['type']+':'+_0x58c799['subType'];this['_setSuggestionData']({'id':_0x207bb6,'type':_0x4a8613,'createdAt':new Date(),'authorId':_0x42f462,'data':_0x58c799['data'],'attributes':_0x58c799['attributes']});const _0xe374c=this['_model']['createPositionAt'](_0x5897ca['end']['parent'],'after'),_0x254732=this['_model']['createRange'](_0xe374c,_0x312b12['end']);this['_addSuggestionMarker'](_0x4a8613,_0x207bb6,_0x42f462,_0x254732);}else{if(_0x312b12['containsPosition'](_0x5897ca['start'])){const _0x54c21e=this['_model']['createPositionAt'](_0x5897ca['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x312b12['start'],_0x54c21e));}else{const _0x23b637=this['_model']['createPositionAt'](_0x5897ca['end']['parent'],'after');this['_setSuggestionRange'](_0x58c799,this['_model']['createRange'](_0x23b637,_0x312b12['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x351e74){for(const {suggestion:_0x295cfb,meta:_0x1e070f}of this['_findSuggestions'](_0x351e74,'insertion')){if(!_0x1e070f['isOwn'])continue;const _0x1ed0eb=_0x295cfb['getRanges']();for(const _0x204691 of _0x1ed0eb)if(!_0x351e74['getDifference'](_0x204691)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x260155){return this['editor']['plugins']['get']('Users')['getUser'](_0x260155);}['_getExternalAuthor'](_0x486a18){const _0x4178ea=this['editor']['plugins']['get']('Users'),_0x539db7=_0x797f55('external:'+_0x486a18),_0x1c4a45=_0x4178ea['getUser'](_0x539db7);return _0x1c4a45||_0x4178ea['addUser']({'id':_0x539db7,'name':_0x486a18});}['_createSuggestion'](_0x4d846f,_0x5bdf9d,_0x119dec,_0x93fd14,_0x227a5b,_0x568f62){const _0x334784=this['_getAuthorFromId'](_0x93fd14);if(!_0x334784)throw new _0x520897('track-changes-user-not-found',this,{'authorId':_0x93fd14,'suggestionId':_0x119dec});const _0x3e458c=this['_suggestionFactory']['buildSuggestion'](_0x4d846f,_0x5bdf9d,_0x119dec,_0x334784,_0x227a5b,_0x4ea3e6=>{this['_updateSuggestionData'](_0x119dec,{'attributes':_0x4ea3e6});const _0x2202c2=this['getSuggestion'](_0x119dec);this['_joinWithAdjacentSuggestions'](new Set([_0x2202c2])),this['_refreshSuggestionsChain'](new Set([_0x2202c2]));},_0x568f62);return this['listenTo'](_0x3e458c,'accept',()=>{this['_updateSuggestionData'](_0x119dec,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e458c,'discard',()=>{this['_updateSuggestionData'](_0x119dec,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x119dec,_0x3e458c),this['_suggestionState']['set'](_0x3e458c,'notReady'),_0x3e458c;}['_breakSuggestionMarker'](_0x278fd7,_0x94e25d,_0x4047cc){const _0x5f0a76=_0x278fd7['getFirstRange'](),_0x4b7b88=_0x5f0a76['start'],_0x46cccc=_0x5f0a76['end'];this['_setSuggestionRange'](_0x278fd7,this['_model']['createRange'](_0x4b7b88,_0x94e25d));const _0x36576e=_0x12e742(),_0x2cdd09=_0x278fd7['creator']['id'],_0x393323=_0x278fd7['type']+(_0x278fd7['subType']?':'+_0x278fd7['subType']:'');this['_setSuggestionData']({'id':_0x36576e,'type':_0x393323,'createdAt':new Date(),'authorId':_0x2cdd09,'originalSuggestionId':_0x278fd7['_originalSuggestionId']||_0x278fd7['id'],'attributes':_0x278fd7['attributes'],'data':_0x278fd7['data']});const _0x5ad371=this['_getAttributeKey'](_0x278fd7);('formatBlock'==_0x278fd7['type']||_0x5ad371&&this['_suggestionsConversion']['isBlockAttribute'](_0x5ad371))&&(_0x4047cc=this['_model']['createPositionBefore'](_0x4047cc['parent'])),this['_addSuggestionMarker'](_0x393323,_0x36576e,_0x2cdd09,this['_model']['createRange'](_0x4047cc,_0x46cccc));}['_findSuggestions'](_0x22743b,_0x3af1e6=null){const _0x3c31c7=[],_0x44fc49=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22743b)||(_0x22743b=[_0x22743b]);for(const _0xd27408 of this['getSuggestions']()){if(!_0xd27408['isInContent'])continue;if(_0x3af1e6&&_0xd27408['type']!=_0x3af1e6)continue;let _0x2af5bb=!0x1;for(const _0x38749e of _0xd27408['getRanges']()){for(const _0x26544c of _0x22743b){const _0x1df492=_0x26544c['start']['isEqual'](_0x38749e['end'])||_0x26544c['end']['isEqual'](_0x38749e['start']);if(_0x1df492||_0x26544c['getIntersection'](_0x38749e)){const _0x40daa0=_0x26544c['containsRange'](_0x38749e)&&qe(this['_model']['schema'],_0x38749e['start'],_0x26544c),_0xd464c0=_0x38749e['containsRange'](_0x26544c)&&qe(this['_model']['schema'],_0x26544c['start'],_0x38749e);_0x3c31c7['push']({'suggestion':_0xd27408,'meta':{'isOwn':_0x44fc49==_0xd27408['author'],'isNextTo':_0x1df492,'isInsideObject':_0x40daa0,'containsRangeInObject':_0xd464c0}}),_0x2af5bb=!0x0;break;}}if(_0x2af5bb)break;}}return _0x3c31c7;}['_addSuggestionMarker'](_0x310014,_0x5aae31,_0x2e6b94,_0x88dbbd,_0x315743){this['_model']['change'](_0x41aa8f=>{let _0x5a30f3='suggestion:'+_0x310014+':'+_0x5aae31+':'+_0x2e6b94;_0x315743&&(_0x5a30f3=_0x5a30f3+':'+_0x315743),_0x41aa8f['addMarker'](_0x5a30f3,{'range':_0x88dbbd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4cd77d){const _0x1561f3=_0x4cd77d['previous'],_0x4be16e=_0x4cd77d['next'];_0x4cd77d['previous']=null,_0x4cd77d['next']=null,null!=_0x1561f3&&_0x1561f3['next']==_0x4cd77d&&(_0x1561f3['next']=_0x4be16e),null!=_0x4be16e&&_0x4be16e['previous']==_0x4cd77d&&(_0x4be16e['previous']=_0x1561f3),'ready'==this['_suggestionState']['get'](_0x4cd77d)&&(this['_suggestionState']['set'](_0x4cd77d,'removed'),this['fire']('suggestionUnloaded',_0x4cd77d,_0x1561f3,_0x4be16e));}['_setSuggestionData'](_0x33b502){const _0x5c019b=_0x33b502['id'],_0x32826=this['addSuggestionData'](_0x33b502);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52556a=this['editor']['plugins']['get']('PendingActions'),_0x1fa014=_0x32826['hasComments'],_0x4229f4=_0x32826['subType']?_0x32826['type']+':'+_0x32826['subType']:_0x32826['type'],_0x2546c9=this['editor']['locale'],_0x1758c4=_0x52556a['add'](At(_0x2546c9,'PENDING_ACTION_SUGGESTION')),_0x5be3c6={'id':_0x5c019b,'type':_0x4229f4,'hasComments':_0x1fa014,'data':_0x33b502['data']||null,'originalSuggestionId':_0x33b502['originalSuggestionId']||null,'attributes':_0x32826['attributes']};this['_adapter']['addSuggestion'](_0x5be3c6)['then'](_0x27c766=>{_0x32826['_saved']=!0x0,_0x52556a['remove'](_0x1758c4),_0x27c766&&_0x27c766['createdAt']&&(this['_suggestions']['get'](_0x5c019b)['createdAt']=_0x27c766['createdAt']);})['catch'](_0x113600=>{throw _0xf6ceae('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x32826['discard']();}),_0x32826['stopListening'](),this['_suggestions']['delete'](_0x32826['id']),this['_suggestionState']['delete'](_0x32826),_0x113600;});}return _0x32826;}['_updateSuggestionData'](_0x20963f,_0x380e3f){const _0x4bc497=this['editor']['plugins']['get']('PendingActions'),_0x58efc7=this['getSuggestion'](_0x20963f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x58efc7['_saved']){const _0x51c4e1=_0x4bc497['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x20963f,_0x380e3f)['then'](()=>{_0x4bc497['remove'](_0x51c4e1);});}else _0x58efc7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x20963f,_0x380e3f);});}}['_getSuggestionData'](_0x1ac9b9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x520897('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1ac9b9);}['_handleNewSuggestionMarker'](_0x1e60ca){const {id:_0x582e63,type:_0x4b4562,subType:_0xcad5ff,authorId:_0x39aee9}=_0x438505(_0x1e60ca),_0x45e331=this['_suggestions']['get'](_0x582e63)||this['_createSuggestion'](_0x4b4562,_0xcad5ff,_0x582e63,_0x39aee9,{});switch(this['_checkSuggestionCorrectness'](_0x45e331,_0x4b4562,_0xcad5ff,_0x39aee9),this['_suggestionState']['get'](_0x45e331)){case'notReady':this['_getSuggestionData'](_0x582e63)['then'](_0x49bfe0=>{let _0x5c0b9c=Promise['resolve']();_0x49bfe0['hasComments']&&(_0x5c0b9c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x582e63})),_0x5c0b9c['then'](()=>{this['addSuggestionData'](_0x49bfe0)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x45e331,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x582e63,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x45e331,'ready'),this['fire']('suggestionLoaded',_0x45e331);break;case'ready':this['fire']('suggestionChanged',_0x45e331);}return _0x45e331['addMarkerName'](_0x1e60ca),_0x45e331;}['_refreshSuggestionsChain'](_0xa40f1e){const _0x1ffa48=Array['from'](_0xa40f1e),_0x588cb1=_0x1ffa48['filter'](_0x30b2f6=>'attribute'==_0x30b2f6['type']);this['_refreshAttributeSuggestionsChain'](_0x588cb1);const _0x5961f0=_0x1ffa48['filter'](_0x285018=>!_0x285018['isMultiRange']&&'attribute'!=_0x285018['type']),_0x9831d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f322b=>!_0x4f322b['isMultiRange']&&'attribute'!=_0x4f322b['type']),_0x4c0ee6=_0x9831d4['filter'](_0x24db69=>!_0xa40f1e['has'](_0x24db69)),_0x2b27e2=new Map(_0x9831d4['map'](_0x4a9f86=>[_0x4a9f86,this['_suggestionFactory']['getSuggestionCallback'](_0x4a9f86['type'],_0x4a9f86['subType'],'chain')])),_0x24ca1f=new Map(_0x9831d4['map'](_0x464ede=>[_0x464ede,_0x464ede['getFirstRange']()])),_0x300dbf=new Set(),_0x512f00=new Set();for(let _0x54b942=0x0;_0x54b942<_0x5961f0['length'];_0x54b942++)_0x1a27c8(_0x5961f0[_0x54b942],_0x5961f0,_0x54b942+0x1);for(let _0x141051=0x0;_0x141051<_0x5961f0['length'];_0x141051++)_0x1a27c8(_0x5961f0[_0x141051],_0x4c0ee6,0x0);const _0x4c075e=new Set();for(let _0x9d7daa=0x0;_0x9d7daa<_0x5961f0['length'];_0x9d7daa++){const _0x4cfd3a=_0x5961f0[_0x9d7daa];!_0x512f00['has'](_0x4cfd3a)&&_0x4cfd3a['previous']&&(_0x4c075e['add'](_0x4cfd3a['previous']),_0x4cfd3a['previous']['next']===_0x4cfd3a&&(_0x4cfd3a['previous']['next']=null),_0x4cfd3a['previous']=null),!_0x300dbf['has'](_0x4cfd3a)&&_0x4cfd3a['next']&&(_0x4c075e['add'](_0x4cfd3a['next']),_0x4cfd3a['next']['previous']===_0x4cfd3a&&(_0x4cfd3a['next']['previous']=null),_0x4cfd3a['next']=null);}function _0x1a27c8(_0x3eec72,_0x59572a,_0x575e9c){for(let _0x3bd828=_0x575e9c;_0x3bd828<_0x59572a['length'];_0x3bd828++){const _0xf60fd3=_0x5bff86(_0x3eec72,_0x59572a[_0x3bd828]);_0xf60fd3&&(_0xf60fd3[0x0]['next']=_0xf60fd3[0x1],_0xf60fd3[0x1]['previous']=_0xf60fd3[0x0],_0x300dbf['add'](_0xf60fd3[0x0]),_0x512f00['add'](_0xf60fd3[0x1]));}}function _0x5bff86(_0x125a55,_0x2faab2){if(_0x125a55['author']['id']!==_0x2faab2['author']['id'])return null;const _0x5ed04d=_0x2b27e2['get'](_0x125a55)(_0x125a55,_0x2faab2,_0x24ca1f['get'](_0x125a55),_0x24ca1f['get'](_0x2faab2));if(!_0x5ed04d)return null;return _0x2b27e2['get'](_0x2faab2)(_0x125a55,_0x2faab2,_0x24ca1f['get'](_0x125a55),_0x24ca1f['get'](_0x2faab2))?_0x5ed04d[0x1]['commentThread']&&_0x5ed04d[0x1]['commentThread']['length']?null:_0x5ed04d:null;}_0x4c075e['size']&&this['_refreshSuggestionsChain'](_0x4c075e);}['_refreshAttributeSuggestionsChain'](_0x2bd3ae){if(0x0==_0x2bd3ae['length'])return;const _0x2cf344=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x282410=>'attribute'==_0x282410['type']&&_0x282410['_isDataLoaded']),_0x30bf28=[],_0x13ab6b=new Map();for(const _0x139228 of _0x2cf344){const _0x103e6e=_0x797f55(_0x139228['attributes']);_0x13ab6b['has'](_0x103e6e)||(_0x13ab6b['set'](_0x103e6e,_0x30bf28['length']),_0x30bf28['push']([]));const _0x36024e=_0x13ab6b['get'](_0x103e6e);_0x30bf28[_0x36024e]['push'](_0x139228);}!(function(){_0x30bf28['sort']((_0x30af3c,_0x20a87d)=>{const _0x106b0a=_0x30af3c[0x0]['createdAt'],_0x38a3b7=_0x20a87d[0x0]['createdAt'];return _0x106b0a==_0x38a3b7?_0x30af3c[0x0]['attributes']['groupId']<_0x20a87d[0x0]['attributes']['groupId']?-0x1:0x1:_0x106b0a<_0x38a3b7?-0x1:0x1;});for(const _0x19e7d3 of _0x30bf28)_0x19e7d3['sort']((_0x4f40dc,_0x5ae14e)=>_0x4f40dc['id']<_0x5ae14e['id']?-0x1:0x1);}());for(let _0x50e45b=0x0;_0x50e45b<_0x30bf28['length'];_0x50e45b++){if(0x0==_0x30bf28[_0x50e45b]['length'])continue;const _0x35def3=[];for(let _0x4bb8e7=_0x50e45b+0x1;_0x4bb8e7<_0x30bf28['length'];_0x4bb8e7++)0x0!=_0x30bf28[_0x4bb8e7]['length']&&_0x51feed(_0x30bf28[_0x50e45b],_0x30bf28[_0x4bb8e7])&&_0x35def3['push'](_0x4bb8e7);for(const _0x213b31 of _0x35def3)_0x30bf28[_0x50e45b]=_0x30bf28[_0x50e45b]['concat'](_0x30bf28[_0x213b31]),_0x30bf28[_0x213b31]=[];}for(const _0x296b95 of _0x30bf28)for(let _0x40e61f=0x0;_0x40e61f<_0x296b95['length'];_0x40e61f++){const _0x8c633f=_0x296b95[_0x40e61f+0x1]||null;_0x296b95[_0x40e61f]['next']!==_0x8c633f&&(_0x296b95[_0x40e61f]['next']=_0x8c633f);}for(const _0x863845 of _0x30bf28)for(let _0x19b87c=0x0;_0x19b87c<_0x863845['length'];_0x19b87c++){const _0x238737=_0x863845[_0x19b87c-0x1]||null;_0x863845[_0x19b87c]['previous']!==_0x238737&&(_0x863845[_0x19b87c]['previous']=_0x238737);}function _0x51feed(_0xd39a88,_0x494bac){if(_0xd39a88[0x0]['attributes']['groupId']!==_0x494bac[0x0]['attributes']['groupId']&&_0xd39a88[0x0]['author']!==_0x494bac[0x0]['author'])return!0x1;if(!function(_0x45fdb1,_0x3c0523){if(!_0x45fdb1['hasComments']&&!_0x3c0523['hasComments'])return!0x0;if(_0x45fdb1['hasComments']&&_0x3c0523['hasComments'])return!0x1;if(_0x45fdb1['hasComments']&&_0x3c0523['createdAt']<_0x45fdb1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3c0523['hasComments']&&_0x45fdb1['createdAt']<_0x3c0523['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xd39a88[0x0],_0x494bac[0x0]))return!0x1;const _0x5566b7=ot(_0xd39a88[0x0]['attributes'],['groupId','trackingSessionId']),_0x2e578d=ot(_0x494bac[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x5566b7,_0x2e578d))return!0x1;if(_0xd39a88[0x0]['attributes']['groupId']==_0x494bac[0x0]['attributes']['groupId'])return!0x0;if(_0xd39a88[0x0]['attributes']['trackingSessionId']!==_0x494bac[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xd39a88['every'](_0x236d06=>_0x494bac['some'](_0x4a215e=>_0x236d06['getFirstRange']()['isEqual'](_0x4a215e['getFirstRange']())))&&_0x494bac['every'](_0x5e7d1e=>_0xd39a88['some'](_0x92d968=>_0x5e7d1e['getFirstRange']()['isEqual'](_0x92d968['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x351cd4){const _0x5704f2=Array['from'](_0x351cd4),_0x36e4c5=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38eda8=_0x36e4c5['filter'](_0xa073f2=>!_0x351cd4['has'](_0xa073f2)),_0x38c571=new Map(_0x5704f2['map'](_0x17197b=>[_0x17197b,this['_suggestionFactory']['getSuggestionCallback'](_0x17197b['type'],_0x17197b['subType'],'join')])),_0x4030bf=new Map(_0x36e4c5['map'](_0x2c6061=>[_0x2c6061,_0x2c6061['getRanges']()]));for(let _0x3a7d02=0x0;_0x3a7d02<_0x5704f2['length'];_0x3a7d02++){if(_0x336b47(this,_0x5704f2[_0x3a7d02],_0x5704f2,_0x3a7d02+0x1))return!0x0;}for(let _0x4ce237=0x0;_0x4ce237<_0x5704f2['length'];_0x4ce237++){if(_0x336b47(this,_0x5704f2[_0x4ce237],_0x38eda8,0x0))return!0x0;}return!0x1;function _0x336b47(_0x12d06e,_0xf49618,_0x4d3f84,_0x2cf845){for(let _0x8d308d=_0x2cf845;_0x8d308d<_0x4d3f84['length'];_0x8d308d++){const _0x1a1477=_0x4d3f84[_0x8d308d];if(_0x1a1477['type']!==_0xf49618['type']||_0x1a1477['author']['id']!==_0xf49618['author']['id']||_0x1a1477['subType']!==_0xf49618['subType'])continue;if(!an(_0xf49618,_0x1a1477))continue;if('attribute'==_0xf49618['type']&&_0xf49618['data']['oldValue']!=_0x1a1477['data']['oldValue'])continue;if('attribute'==_0xf49618['type']&&_0x12d06e['_suggestionsConversion']['isBlockAttribute'](_0xf49618['data']['key']))continue;if('formatBlock'==_0xf49618['type']){const _0x2f8ec6=_0x12d06e['editor']['model'],_0x21f52=_0xf49618['getContainedElement']();if(_0x21f52&&(_0x2f8ec6['schema']['isObject'](_0x21f52)||_0x2f8ec6['schema']['isLimit'](_0x21f52)))continue;}const _0x486a57=_0x38c571['get'](_0xf49618),_0x216fb4=_0x4030bf['get'](_0xf49618),_0x529b65=_0x4030bf['get'](_0x1a1477),_0x24525d=_0xf49618['commentThread']&&_0xf49618['commentThread']['length'],_0xb11177=_0x1a1477['commentThread']&&_0x1a1477['commentThread']['length'];if(!_0x24525d&&_0x486a57(_0x529b65,_0x216fb4))return _0x12d06e['_joinSuggestions'](_0x1a1477,_0xf49618),_0x4030bf['delete'](_0xf49618),!0x0;if(!_0xb11177&&_0x486a57(_0x216fb4,_0x529b65))return _0x12d06e['_joinSuggestions'](_0xf49618,_0x1a1477),_0x4030bf['delete'](_0x1a1477),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42fc33,_0x3c9995){if(_0x42fc33['isMultiRange']){for(const _0x45a5dc of _0x3c9995['getRanges']())_0x42fc33['addRange'](_0x45a5dc);}else{const _0x9a7cf1=_0x3c9995['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42fc33,this['_model']['createRange'](_0x42fc33['getFirstRange']()['start'],_0x9a7cf1));}_0x3c9995['removeMarkers']();}['_getMarkerAnnouncementText'](_0xbdb0a6,_0x2a0b20,_0x598a41){const _0x23c927=_0xbdb0a6['startsWith']('format')||_0xbdb0a6['startsWith']('attribute')?'FORMATTING':_0xbdb0a6['toUpperCase']();return At(this['editor']['locale'],_0x2a0b20+'_'+_0x23c927+'_SUGGESTION_ANNOUNCEMENT',_0x598a41);}['_initAriaMarkerChangeAnnouncements'](){const _0x3885bb=this['editor'];if(!_0x3885bb['ui'])return;const {ariaLiveAnnouncer:_0x2fc332}=_0x3885bb['ui'];_0x3ac19f(this['_model'],({left:_0x1efebf,entered:_0x44d416})=>{for(const _0x541034 of _0x1efebf){const {group:_0x232c75,type:_0x393c44}=_0x438505(_0x541034['name']);if('suggestion'===_0x232c75){_0x2fc332['announce'](this['_getMarkerAnnouncementText'](_0x393c44,'LEAVE'));break;}}for(const _0x5e8f42 of _0x44d416){const {group:_0x380b15,type:_0x23a450}=_0x438505(_0x5e8f42['name']);if('suggestion'===_0x380b15){_0x2fc332['announce'](this['_getMarkerAnnouncementText'](_0x23a450,'ENTER',_0x3cc1be(_0x23d49a)));break;}}});}['_processAttributeChanges'](_0x350bf6){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5f55fd=this['editor'],_0x18a9b9=_0x5f55fd['model']['document']['differ']['getChanges']();if(0x0==_0x18a9b9['length'])return!0x1;const _0x484340=[],_0x1c36fb=_0x18a9b9['filter'](_0x3cca9e=>'attribute'==_0x3cca9e['type']),_0x1976d1=_0x18a9b9['filter'](_0x49e6d9=>'insert'==_0x49e6d9['type']&&'$text'!=_0x49e6d9['name']),_0x670904=_0x18a9b9['filter'](_0x3963b8=>'remove'==_0x3963b8['type']&&'$text'!=_0x3963b8['name']);for(const _0x378a18 of _0x1c36fb)_0x484340['push']({'key':_0x378a18['attributeKey'],'newValue':_0x378a18['attributeNewValue'],'oldValue':_0x378a18['attributeOldValue'],'range':sn(_0x378a18['range'],_0x5f55fd['model'])});for(const _0x12ce73 of _0x1976d1){const _0x49170f=_0x670904['find'](_0x6f50af=>_0x6f50af['position']['isEqual'](_0x12ce73['position']));_0x49170f&&_0x484340['push']({'key':Ke,'newValue':_0x12ce73['name'],'oldValue':_0x49170f['name'],'range':_0x5f55fd['model']['createRangeOn'](_0x12ce73['position']['nodeAfter'])});}return 0x0!=_0x484340['length']&&this['_reduceExistingSuggestions'](_0x350bf6,_0x484340);}['_processAttributeSuggestions'](_0x3a4f84){let _0x4cad89=!0x1;const _0x443a4d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x450318=>_0x450318['data']['newRange']&&_0x450318['name']['startsWith']('suggestion:attribute:'));for(const _0x35c008 of _0x443a4d){const {subType:_0x5591af,id:_0x1573b5}=_0x438505(_0x35c008['name']),_0x292e0e=_0x5591af['split']('|')[0x0];for(const _0x227ba7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x227ba7['id']!=_0x1573b5&&'attribute'==_0x227ba7['type']&&_0x227ba7['data']&&_0x227ba7['data']['key']==_0x292e0e&&_0x227ba7['getFirstRange']()['isIntersecting'](_0x35c008['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x227ba7,_0x35c008['data']['newRange'],_0x3a4f84),_0x4cad89=!0x0);}return _0x4cad89;}['recordAttributeChanges'](_0x33415e){this['_recordAttributeSuggestions']=!0x0,_0x33415e();}['_reduceExistingSuggestions'](_0x4e1394,_0xfd8f15){if(0x0==_0xfd8f15['length'])return!0x1;let _0x232a80=!0x1;for(const _0x10d22a of _0xfd8f15){const _0x30f615=this['_findSuggestions'](_0x10d22a['range'],'attribute')['filter'](_0x523d4f=>!_0x523d4f['meta']['isNextTo'])['map'](_0x3de637=>_0x3de637['suggestion']),_0x2ff518=_0x797f55({'newValue':_0x10d22a['newValue']});_0x30f615['filter'](_0x537102=>{const [_0x2a6348,_0x444683]=_0x537102['subType']['split']('|');return _0x2a6348==_0x10d22a['key']&&_0x444683!=_0x2ff518;})['forEach'](_0x4ecbd6=>{this['_reduceSuggestionAttributeRange'](_0x4ecbd6,_0x10d22a['range'],_0x4e1394),_0x232a80=!0x0;});}return _0x232a80;}['_reduceSuggestionAttributeRange'](_0x1b8505,_0x15f52c,_0x12cf14){const _0x4b3328=_0x1b8505['getFirstRange']()['getDifference'](_0x15f52c);0x0!==_0x4b3328['length']?0x1!==_0x4b3328['length']?this['_breakSuggestionMarker'](_0x1b8505,_0x15f52c['start'],_0x15f52c['end']):this['_setSuggestionRange'](_0x1b8505,_0x4b3328[0x0]):_0x12cf14['removeMarker'](_0x1b8505['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ab9be){this['_editor']=_0x5ab9be,this['_model']=_0x5ab9be['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x282e2f,_0x37b2fc,_0x905c4f,_0x224b10,_0x32ec95,_0x2ce138,_0x13d5e3){return new bt(this['_model'],{'type':_0x282e2f,'subType':_0x37b2fc,'id':_0x905c4f,'originalSuggestionId':_0x13d5e3,'author':_0x224b10,'creator':_0x224b10,'attributes':_0x32ec95,'onAttributesChange':_0x2ce138,'onAccept':(..._0x1c3d4e)=>this['getSuggestionCallback'](_0x282e2f,_0x37b2fc,'accept')(..._0x1c3d4e),'onDiscard':(..._0x275574)=>this['getSuggestionCallback'](_0x282e2f,_0x37b2fc,'discard')(..._0x275574)});}['registerCustomCallback'](_0x23c5f2,_0x474fe5,_0x4467b8,_0x3a5982){const _0x29b29b=_0x23c5f2+':'+_0x474fe5+':'+_0x4467b8;this['_customCallbacks']['set'](_0x29b29b,_0x3a5982);}['getSuggestionCallback'](_0x30e20a,_0x2a9657,_0x18a2db){const _0xb88e84=_0x30e20a+':'+_0x2a9657+':'+_0x18a2db;return this['_customCallbacks']['get'](_0xb88e84)||this['_defaultCallbacks']['get'](_0x30e20a+':'+_0x18a2db);}['_registerDefaultCallbacks'](){const _0x27bf8b=()=>!0x1,_0x4caad9=_0x4aad31=>{_0x4aad31['sort']((_0x1be937,_0x1f5ec7)=>_0x1be937['start']['isBefore'](_0x1f5ec7['start'])?0x1:-0x1),this['_model']['change'](_0x25a7ce=>{for(const _0x5e3db3 of _0x4aad31){let _0x3e0af1;_0x3e0af1=_0x5e3db3['end']['isAtEnd']&&_0x5e3db3['end']['parent']==_0x5e3db3['start']['nodeAfter']?_0x25a7ce['createSelection'](_0x5e3db3['start']['nodeAfter'],'on'):_0x25a7ce['createSelection'](_0x5e3db3),this['_model']['deleteContent'](_0x3e0af1,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4301bc=(_0x22f18e,_0x1362a7)=>{_0x1362a7&&this['_model']['change'](_0x2a7867=>{const {commandName:_0x501d69,commandParams:_0x1850aa=[]}=_0x1362a7,_0x3cdc28=_0x22f18e['map'](_0x1a05a9=>(Qe(_0x1a05a9)&&(_0x1a05a9=this['_model']['createRange'](_0x1a05a9['end'])),_0x1a05a9))['filter'](_0x296ffa=>'$graveyard'!==_0x296ffa['root']['rootName']);if(_0x3cdc28['length']<0x1)return;const _0x16d8f8=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x48a060=>_0x3756aa['fromRange'](_0x48a060));_0x2a7867['setSelection'](_0x3cdc28);for(const _0xbdb0d7 of this['_editor']['commands']['commands']())_0xbdb0d7['refresh']();_0x1850aa['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x501d69,..._0x1850aa);const _0x5c25ab=_0x16d8f8['filter'](_0x3eee36=>'$graveyard'!=_0x3eee36['root']['rootName']);_0x5c25ab['length']>0x0&&_0x2a7867['setSelection'](_0x5c25ab);for(const _0x2468b3 of _0x16d8f8)_0x2468b3['detach']();});},_0x245029=(_0x3476f8,_0x58bacc)=>0x1==_0x3476f8['length']&&0x1==_0x58bacc['length']&&_0x3476f8[0x0]['end']['isEqual'](_0x58bacc[0x0]['start']),_0x34c708=(_0x40f4a7,_0x779a9c,_0x59dca9,_0x1ee8a8)=>on(_0x40f4a7,_0x779a9c,_0x59dca9,_0x1ee8a8)?[_0x40f4a7,_0x779a9c]:on(_0x779a9c,_0x40f4a7,_0x1ee8a8,_0x59dca9)?[_0x779a9c,_0x40f4a7]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27bf8b),this['_defaultCallbacks']['set']('insertion:discard',_0x4caad9),this['_defaultCallbacks']['set']('insertion:join',_0x245029),this['_defaultCallbacks']['set']('insertion:chain',_0x34c708),this['_defaultCallbacks']['set']('deletion:accept',_0x4caad9),this['_defaultCallbacks']['set']('deletion:discard',_0x27bf8b),this['_defaultCallbacks']['set']('deletion:join',_0x245029),this['_defaultCallbacks']['set']('deletion:chain',_0x34c708),this['_defaultCallbacks']['set']('formatInline:accept',_0x4301bc),this['_defaultCallbacks']['set']('formatInline:discard',_0x27bf8b),this['_defaultCallbacks']['set']('formatInline:join',_0x245029),this['_defaultCallbacks']['set']('formatInline:chain',_0x27bf8b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4301bc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27bf8b),this['_defaultCallbacks']['set']('formatBlock:join',_0x245029),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27bf8b),this['_defaultCallbacks']['set']('attribute:accept',_0x27bf8b),this['_defaultCallbacks']['set']('attribute:discard',(_0x188c48,_0x4275c8)=>{if(!_0x4275c8)return;const _0x26dd5d=this['_editor']['plugins']['get'](_0xfcbb62);this['_model']['change'](_0x502e43=>{if(_0x4275c8['key']==Ke)for(const _0x2354fa of _0x188c48){const _0x5456af=_0x2354fa['start']['nodeAfter'],_0xbb4f7d=_0x4275c8['oldValue'];_0x502e43['rename'](_0x5456af,_0xbb4f7d);}else{if(_0x26dd5d['isBlockAttribute'](_0x4275c8['key'])){for(const _0x239802 of _0x188c48)void 0x0!==_0x4275c8['oldValue']?_0x502e43['setAttribute'](_0x4275c8['key'],_0x4275c8['oldValue'],_0x239802['start']['nodeAfter']):_0x502e43['removeAttribute'](_0x4275c8['key'],_0x239802['start']['nodeAfter']);}else{for(const _0x43b05a of _0x188c48)_0x4275c8['oldValue']?_0x502e43['setAttribute'](_0x4275c8['key'],_0x4275c8['oldValue'],_0x43b05a):_0x502e43['removeAttribute'](_0x4275c8['key'],_0x43b05a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x245029);}}function qe(_0x12cb1c,_0x52b60b,_0x220d46){for(const _0x3b0ace of _0x52b60b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3b0ace['root']==_0x3b0ace)return!0x1;if(!_0x220d46['containsItem'](_0x3b0ace))return!0x1;if(_0x12cb1c['isObject'](_0x3b0ace)||_0x12cb1c['isLimit'](_0x3b0ace))return!0x0;}return!0x1;}function Qe(_0x35bde9){return _0x35bde9['end']['parent']==_0x35bde9['start']['nodeAfter']&&_0x35bde9['end']['isAtStart'];}function Ze(_0x3d8787,_0x4c63e5,_0x577e1d,_0x1c6e88){const _0x5605ad=_0x5092c9=>!_0x5092c9['item']['is']('$textProxy')&&!_0x1c6e88['isObject'](_0x5092c9['item']),_0x57b8cd=_0x3d8787['start']['getLastMatchingPosition'](_0x5605ad),_0x128325=_0x3d8787['end']['getLastMatchingPosition'](_0x5605ad,{'direction':'backward'});return(!_0x3d8787['start']['isEqual'](_0x57b8cd)||!_0x3d8787['end']['isEqual'](_0x128325))&&(_0x57b8cd['isBefore'](_0x128325)?_0x577e1d['updateMarker'](_0x4c63e5,{'range':_0x577e1d['createRange'](_0x57b8cd,_0x128325)}):_0x577e1d['removeMarker'](_0x4c63e5),!0x0);}function Je(_0x599779){return _0x797f55(_0x599779);}function tn(_0x1ca3c5){const _0x25da31=_0x1ca3c5['start']['nodeAfter'];return _0x25da31&&_0x25da31['is']('element');}function en(_0x7ba296){return Qe(_0x7ba296)||function(_0x134c88){return _0x134c88['start']['parent']==_0x134c88['end']['nodeBefore']&&_0x134c88['start']['isAtEnd'];}(_0x7ba296);}function nn(_0x1190ca,_0x494c24){try{const _0x3cdd8c=_0x1190ca['getRange']();for(const _0x58c1a3 of _0x494c24)if(_0x1190ca!==_0x58c1a3&&_0x3cdd8c&&_0x3cdd8c['isIntersecting'](_0x58c1a3['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0xdb3f59,_0x313dc5){return null==_0xdb3f59['end']['nodeBefore']&&_0xdb3f59['end']['parent']==_0xdb3f59['start']['nodeAfter']?rn(_0xdb3f59['start']['nodeAfter'],_0x313dc5):_0xdb3f59;}function rn(_0x284375,_0x59c58a){const _0x30b0ad=_0x59c58a['schema']['isObject'](_0x284375)||_0x59c58a['schema']['isSelectable'](_0x284375);return _0x59c58a['createRange'](_0x59c58a['createPositionAt'](_0x284375,'before'),_0x30b0ad?_0x59c58a['createPositionAfter'](_0x284375):_0x59c58a['createPositionAt'](_0x284375,'end'));}function on(_0x37443d,_0x29534f,_0x4105de,_0x93e06d){return!!an(_0x37443d,_0x29534f)&&_0x4105de['end']['isEqual'](_0x93e06d['start']);}function an(_0x347e03,_0x510000){if(!_0x347e03['_isDataLoaded']||!_0x510000['_isDataLoaded'])return!0x1;const _0x45505c=new Set(Object['keys'](_0x347e03['attributes'])),_0x2e3feb=new Set(Object['keys'](_0x510000['attributes']));if(_0x45505c['delete']('groupId'),_0x2e3feb['delete']('groupId'),0x0==_0x45505c['size']&&0x0==_0x2e3feb['size'])return!0x0;if(_0x45505c['size']!=_0x2e3feb['size'])return!0x1;const _0x547d78={..._0x347e03['attributes']},_0x282894={..._0x510000['attributes']};return delete _0x547d78['groupId'],delete _0x282894['groupId'],JSON['stringify'](_0x547d78)==JSON['stringify'](_0x282894);}function cn(_0x13d08a,_0x15b1c6){const _0x4b4e26=ln(_0x13d08a['attributes']),_0x32340d=ln(_0x15b1c6);if(!_0x13d08a['_isDataLoaded'])return!0x1;for(const _0x18f160 of Object['keys'](_0x32340d))if(!st(_0x4b4e26[_0x18f160],_0x32340d[_0x18f160]))return!0x1;return!0x0;}function ln(_0x3fa3ae){const _0x17e9b9=Object['assign']({},_0x3fa3ae);return delete _0x17e9b9['skipNestingCheck'],delete _0x17e9b9['tablePasteChainId'],_0x17e9b9;}function un(_0x5508ef){return _0x5508ef['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x9eee31(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40e75f,_0x4be97b,_0x2de0b0,_0x4604a9){super(),this['model']=_0x4be97b,this['view']=_0x2de0b0,this['commentThreadController']=_0x4604a9,this['_editor']=_0x40e75f,this['_acceptCommand']=_0x40e75f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40e75f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x297aff,_0x1f32d2)=>_0x297aff||_0x1f32d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x140b68=>_0x140b68&&this['_editor']['model']['canEditAt'](_0x4be97b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4619b1=>_0x4619b1&&this['_editor']['model']['canEditAt'](_0x4be97b['getRanges']())),this['_pendingAction']=null,_0x2de0b0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2de0b0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2de0b0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2de0b0,'change:isDirty',()=>{_0x2de0b0['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 _0x431315=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x431315);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x3a546b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5ce0f5,_0x3c1de9,_0x8ffba3,_0x536c86){super(_0x5ce0f5),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x56f83b(_0x5ce0f5,At(_0x5ce0f5,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3c1de9['authoredAt']),this['bind']('authoredAt')['to'](_0x3c1de9),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',_0x3c1de9,'authoredAt',this,'descriptionParts',(_0xcb2357,_0x5b3ee7,_0x3ad249)=>{const _0x544bcd=_0x3ad249['map'](_0x39df26=>gt(_0x39df26['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xcb2357-0x1,_0x3c1de9['author']['name'],_0x5b3ee7?_0x536c86['formatDateTime'](_0x5b3ee7):'',new DOMParser()['parseFromString'](_0x544bcd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3cd360(),this['focusTracker']=new _0xaf3886(),this['keystrokes']=new _0x1205fe(),this['focusCycler']=new _0x3ad658({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x403a55=>_0x403a55['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3c1de9,this['_localUser']=_0x8ffba3,this['_config']=_0x536c86,_0x536c86['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x52cb00(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x326541}=this['_config'];this['commentsListView']=new _0x326541(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',_0x56f55a=>_0x56f55a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5754e8,_0x38764b)=>_0x5754e8||!!_0x38764b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb5b410}=this['_config'],_0x136428=new _0xb5b410(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5bc90c=_0x136428['commentInputView'];return _0x136428['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5bc90c,'value',(_0x12ef4b,_0xd849c8,_0x3c73c5)=>!!_0x3c73c5||_0x12ef4b&&!_0xd849c8),_0x5bc90c['on']('submit',(_0x2bd427,_0x203e4a)=>{this['fire']('addComment',_0x203e4a),_0x5bc90c['editor']['setData']('');}),_0x5bc90c['on']('cancel',()=>this['focus']()),_0x5bc90c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x136428;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x22e31a,_0x1e1ffe,_0x1b81b4,_0xe487e7){super(_0x22e31a,_0x1e1ffe,_0x1b81b4,_0xe487e7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x152be5=>_0x152be5&&_0x152be5[0x0]?_0x152be5[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5aa56f,_0x5cfcdb)=>{let _0x17e597='';for(const _0x4c1382 of _0x5aa56f)_0x17e597+='<p>'+gt(_0x4c1382['content'],_0x4c1382['color'])+'</p>';return _0x5cfcdb?_0x17e597:_0x1bcc62(_0x17e597,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe487e7['SuggestionView'](_0x22e31a,_0x1e1ffe,{'formatDateTime':_0xe487e7['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 _0x24d03c=this['bindTemplate'],_0x25b3c9=[this['suggestionView']];return this['commentsListView']&&_0x25b3c9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x25b3c9['push'](this['commentThreadInputView']),_0x25b3c9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x24d03c['if']('isActive','ck-suggestion-wrapper--active'),_0x24d03c['to']('type',_0x2d33e9=>'ck-suggestion-'+_0x2d33e9),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':_0x24d03c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x25b3c9};}['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 _0x3a546b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x220a76,_0xfe51a0,_0x4a21c8){super(_0x220a76),this['_model']=_0xfe51a0,this['_config']=_0x4a21c8,this['set']('description',''),this['bind']('authoredAt')['to'](_0xfe51a0),this['acceptButton']=this['_createButton'](At(_0x220a76,'Accept\x20suggestion'),_0x3dfcb5,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x220a76,'Discard\x20suggestion'),_0x172549,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x271f5a(_0x220a76,_0xfe51a0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3cd360([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0xaf3886(),this['keystrokes']=new _0x1205fe(),this['focusCycler']=new _0x3ad658({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x442433=>_0x442433['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5de657=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5de657['innerHTML']=this['description'],this['on']('change:description',(_0x443e3e,_0x3d5b47,_0x4a2990)=>{_0x5de657['innerHTML']=_0x4a2990;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2668b5=this['bindTemplate'],_0x24196a=[{'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':_0x2668b5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2668b5['to']('authoredAt',_0x225191=>this['_config']['formatDateTime'](_0x225191))}]}]},{'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']&&_0x24196a['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':_0x24196a}]};}['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'](_0x102d8c,_0x2b7587,_0x55ed41,_0x3417cf,_0x4ec8d0){const _0x10c228=new _0x396789(this['locale']);return _0x10c228['set']({'label':_0x102d8c,'icon':_0x2b7587,'tooltip':!0x0,'tooltipPosition':_0x4ec8d0}),_0x10c228['extendTemplate']({'attributes':{'class':_0x55ed41}}),_0x10c228['on']('execute',()=>{this['fire'](_0x3417cf,this['_model']['id']);}),_0x10c228;}['_setupKeyboardNavigation'](){const _0x162cb9=this['element'];this['keystrokes']['listenTo'](_0x162cb9);for(const _0x376626 of this['focusables'])this['focusTracker']['add'](_0x376626['element']),this['keystrokes']['listenTo'](_0x376626['element']);this['keystrokes']['set']('enter',(_0xa9b9c5,_0x494848)=>{_0x162cb9===_0xa9b9c5['target']&&(this['focusCycler']['focusFirst'](),_0x494848());}),this['keystrokes']['set']('esc',(_0x5541e6,_0x162581)=>{_0x162cb9!==_0x5541e6['target']&&(this['focus'](),_0x162581());});}}class mn extends _0x298b0c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x3979,_0x361d9e,_0xbd556d,_0x1f3b9a];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x398a78){super(_0x398a78),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28d7b5=this['editor']['config'];_0x28d7b5['define']('trackChanges.SuggestionThreadView',fn),_0x28d7b5['define']('trackChanges.SuggestionView',gn),_0x28d7b5['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28d7b5['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x35209b,_0x39fdfa){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x589b87,_0x4b8067]of this['_handleControllerBuffer']){const _0x15efb0=this['_suggestionToController']['has'](_0x589b87);_0x15efb0||_0x4b8067?_0x15efb0&&_0x4b8067&&this['_destroyController'](_0x589b87):this['_initializeController'](_0x589b87);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x1f3b9a)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x35209b,_0x39fdfa);}['init'](){const _0x44973e=this['editor'],_0x16c755=_0x44973e['plugins']['get'](Xe),_0x4e2912=_0x44973e['plugins']['get'](_0xbd556d),_0x58b9ac=_0x44973e['plugins']['get'](_0x1f3b9a),_0x4de87b=_0x44973e['plugins']['get'](_0x361d9e);this['_addUIComponentsToFactory'](),_0x58b9ac['addSourceCollector'](()=>{const _0x1cce0e=[];for(const [_0x3da3c3,_0x29ac66]of Array['from'](this['_suggestionToController'])){const _0x28096d=_0x3da3c3['getAllAdjacentSuggestions'](),_0x4fd3f5=[];for(const _0x6dedfe of _0x28096d){if(!_0x6dedfe['isInContent'])continue;if(_0x6dedfe['isMultiRange']){_0x4fd3f5['push'](..._0x6dedfe['getRanges']());continue;}const _0x4b3c21=_0x6dedfe['getFirstRange']();if(_0x4fd3f5['length']>0x0){const _0x2dc330=_0x4fd3f5[0x0]['getJoined'](_0x4b3c21);if(_0x2dc330){_0x4fd3f5[0x0]=_0x2dc330;continue;}}_0x4fd3f5['push'](_0x4b3c21);}_0x1cce0e['push']([_0x29ac66['view'],_0x4fd3f5]);}return _0x1cce0e;}),this['listenTo'](_0x16c755,'suggestionLoaded',(_0x447b10,_0x364e99)=>{this['listenTo'](_0x364e99,'change:previous',(_0x466278,_0x50789f,_0x1fab6a,_0x351b33)=>{_0x364e99['isInContent']&&(null==_0x1fab6a?(this['_updateController'](_0x351b33['head']),this['_handleSuggestionControllerDelayed'](_0x364e99,!0x1)):(this['_updateController'](_0x1fab6a['head']),null==_0x351b33&&this['_handleSuggestionControllerDelayed'](_0x364e99,!0x0)));}),null!==_0x364e99['previous']?this['_updateController'](_0x364e99['head']):this['_handleSuggestionControllerDelayed'](_0x364e99,!0x1);}),this['listenTo'](_0x16c755,'suggestionUnloaded',(_0x5c1821,_0x3597cd,_0x27e1ca)=>{this['stopListening'](_0x3597cd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3597cd),this['_suggestionToController']['has'](_0x3597cd)&&this['_destroyController'](_0x3597cd),_0x27e1ca&&this['_updateController'](_0x27e1ca['head']);}),this['listenTo'](_0x16c755,'suggestionChanged',(_0x32c449,_0x5638ae)=>{this['_updateController'](_0x5638ae);}),this['listenTo'](_0x4e2912,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4de87b,'addComment',(_0x239a44,{threadId:_0x507798,isFromAdapter:_0x4679ea})=>{if(_0x4679ea||!_0x16c755['hasSuggestion'](_0x507798))return;const _0x4ff63e=_0x16c755['getSuggestion'](_0x507798);this['_suggestionToController']['get'](_0x4ff63e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5aed31=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cbd7a;for(const _0xe6324a in _0x5aed31){const _0x2d7486=_0xe6324a,_0x1fabb3=_0x5aed31[_0x2d7486];if('trackChangesLicenseKeyValid'==_0x1fabb3||'trackChangesLicenseKeyInvalid'==_0x1fabb3||'trackChangesLicenseKeyExpired'==_0x1fabb3||'trackChangesLicenseKeyDomainLimit'==_0x1fabb3||'trackChangesLicenseKeyNotAllowed'==_0x1fabb3||'trackChangesLicenseKeyEvaluationLimit'==_0x1fabb3||'trackChangesLicenseKeyUsageLimit'==_0x1fabb3){delete _0x5aed31[_0x2d7486],_0x5cbd7a=_0x1fabb3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5cbd7a&&_0x5aed31['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x459cbf){const _0x9e8ad6=this['_suggestionToController']['get'](_0x459cbf);if(!_0x9e8ad6)return null;return this['editor']['plugins']['get'](_0xbd556d)['getByInnerView'](_0x9e8ad6['view'])||null;}['getSuggestionForAnnotation'](_0x1a10af){const _0x5979c7=this['_viewToController']['get'](_0x1a10af['innerView']);return _0x5979c7?_0x5979c7['model']:null;}['_refreshActiveMarkers'](){const _0x1bdc0e=this['editor']['plugins']['get'](_0xbd556d),_0x3b91f6=this['editor']['plugins']['get'](Xe),_0x4d1cf7=Array['from'](_0x1bdc0e['activeAnnotations'],_0x58366e=>_0x58366e['innerView'])['filter'](_0x215fba=>this['_viewToController']['has'](_0x215fba)),_0x50d276=[];for(const _0x7a606a of _0x4d1cf7){const _0x107965=this['_viewToController']['get'](_0x7a606a)['model']['getAllAdjacentSuggestions']();_0x50d276['push'](..._0x107965['reduce']((_0x16c730,_0x324b23)=>[..._0x16c730,..._0x324b23['getMarkerNames']()],[]));}_0x3b91f6['activeMarkers']=_0x50d276;}['_addUIComponentsToFactory'](){const _0x592500=this['editor'],_0x1787d0=_0x592500['locale'],_0x52b5b0=At(_0x1787d0,'Track\x20changes'),_0x176d9b=new _0x597581([{'type':'switchbutton','model':new _0xda41c0({'withText':!0x0,'isToggleable':!0x0,'label':_0x52b5b0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x592500['plugins']['has']('TrackChangesPreview')&&_0x176d9b['addMany']([{'type':'separator'},{'type':'button','model':new _0xda41c0({'withText':!0x0,'label':At(_0x1787d0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x286d13 of _0x176d9b)if(En(_0x286d13)){const _0x3c619a=_0x592500['commands']['get'](_0x286d13['model']['commandName']);_0x286d13['model']['bind']('isOn','isEnabled')['to'](_0x3c619a,'value','isEnabled');}_0x592500['ui']['componentFactory']['add']('trackChanges',_0x64f1f4=>this['_createToolbarButton'](_0x64f1f4,_0x176d9b,_0x52b5b0)),_0x592500['ui']['componentFactory']['add']('menuBar:trackChanges',_0x357c55=>this['_createMenuBarMenu'](_0x357c55,_0x176d9b,_0x52b5b0));}['_createToolbarButton'](_0x4f4d54,_0x5b90c2,_0x2d016e){const _0x1dc3bd=_0x3b3de9(_0x4f4d54,_0x40fe71),_0x2e1b3e=this['editor']['commands']['get']('trackChanges');_0x1dc3bd['buttonView']['set']({'tooltip':_0x2d016e,'label':_0x2d016e,'icon':_0x54b9af}),_0x1dc3bd['buttonView']['bind']('isOn')['to'](_0x2e1b3e,'value'),_0x1dc3bd['buttonView']['on']('execute',()=>{_0x2e1b3e['execute'](),this['editor']['editing']['view']['focus']();}),_0x30e6c9(_0x1dc3bd,_0x5b90c2,{'role':'menu'});const _0x36c1ef=[];for(const _0x10dd59 of _0x5b90c2)En(_0x10dd59)&&_0x36c1ef['push'](this['editor']['commands']['get'](_0x10dd59['model']['commandName']));const _0x5b31ea=_0x1dc3bd['buttonView'];return _0x5b31ea['actionView']['unbind']('isEnabled'),_0x5b31ea['arrowView']['unbind']('isEnabled'),_0x5b31ea['actionView']['bind']('isEnabled')['to'](_0x2e1b3e,'isEnabled'),_0x5b31ea['arrowView']['bind']('isEnabled')['toMany'](_0x36c1ef,'isEnabled',(..._0x480dc8)=>_0x480dc8['some'](_0x3c9895=>_0x3c9895)),_0x1dc3bd['on']('execute',_0x112249=>{this['editor']['execute'](_0x112249['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1dc3bd;}['_createMenuBarMenu'](_0x8cfa0a,_0x566a8c,_0x4f1401){const _0x59fa3a=new _0x4cb31a(_0x8cfa0a),_0x5a5fd7=this['editor']['commands']['get']('trackChanges');_0x59fa3a['buttonView']['set']({'label':_0x4f1401,'icon':_0x54b9af});const _0x100625=new _0x152307(_0x8cfa0a);for(const _0x394daa of _0x566a8c){if('separator'==_0x394daa['type']){_0x100625['items']['add'](new _0x1d1410(_0x8cfa0a));continue;}const _0x193a43=new _0xb0da5(_0x8cfa0a,_0x59fa3a),_0x502718=new _0x5be5f1(_0x8cfa0a),_0x420d75=_0x394daa['model'];_0x502718['bind'](...Object['keys'](_0x420d75))['to'](_0x420d75),_0x502718['delegate']('execute')['to'](_0x59fa3a),_0x502718['on']('execute',()=>{this['editor']['execute'](_0x420d75['commandName']),this['editor']['editing']['view']['focus']();}),_0x193a43['children']['add'](_0x502718),_0x100625['items']['add'](_0x193a43);}return _0x59fa3a['bind']('isEnabled')['to'](_0x5a5fd7,'isEnabled'),_0x59fa3a['panelView']['children']['add'](_0x100625),_0x59fa3a;}['_initializeController'](_0x168a13){const _0x1b9c53=this['editor'],_0x5944bf=_0x1b9c53['config'],_0x4cc3e9=_0x1b9c53['plugins']['get'](_0xbd556d),_0x58b4ae=_0x1b9c53['plugins']['get'](_0x361d9e),_0x1f607f=_0x1b9c53['plugins']['get'](_0x1f3b9a),_0x3f32a1=_0x1b9c53['plugins']['get'](_0x3979)['me'],_0x4df0d1=_0x5944bf['get']('trackChanges')['SuggestionThreadView'],_0x558128=_0x5944bf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51be17,CommentThreadInputView:_0x398818}=_0x1b9c53['plugins']['get']('CommentsUI');let _0x367dd3,_0x4b8dac,_0x253a65;this['_annotationViews']['has'](_0x168a13['id'])?(_0x4b8dac=this['_annotationViews']['get'](_0x168a13['id']),_0x367dd3=_0x4b8dac['mainView']):(_0x367dd3=new _0x4df0d1(_0x1b9c53['locale'],_0x168a13,_0x3f32a1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5944bf['get']('comments.editorConfig'),'licenseKey':_0x5944bf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5944bf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5944bf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5944bf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x27106d(_0x5944bf['get']('locale'),_0x1b9c53['locale']),'CommentView':_0x5944bf['get']('comments')['CommentView'],'CommentsListView':_0x51be17,'CommentThreadInputView':_0x398818,'SuggestionView':_0x558128}),_0x367dd3['suggestionView']['acceptButton']['on']('execute',()=>{_0x1b9c53['editing']['view']['focus']();}),_0x367dd3['suggestionView']['discardButton']['on']('execute',()=>{_0x1b9c53['editing']['view']['focus']();}),_0x4b8dac=_0x4cc3e9['createAnnotationView'](this['editor']['locale'],_0x367dd3),_0x4b8dac['bind']('isDirty')['to'](_0x367dd3,'isDirty'),_0x4b8dac['bind']('length')['to'](_0x367dd3),_0x4b8dac['bind']('type')['to'](_0x367dd3,'type',_0x54b4d0=>'suggestion-'+_0x54b4d0),_0x367dd3['on']('escape',()=>{_0x253a65['fire']('escape');}),this['_annotationViews']['set'](_0x168a13['id'],_0x4b8dac));const _0x4809aa=_0x58b4ae['createCommentThreadController'](_0x168a13['commentThread'],_0x367dd3),_0x1adb24=new hn(_0x1b9c53,_0x168a13,_0x367dd3,_0x4809aa),_0x37541c=_0x168a13['getAllAdjacentSuggestions']()['filter'](_0xe2eac2=>_0xe2eac2['isInContent']);_0x367dd3['descriptionParts']=_0x1b9c53['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x37541c),this['_suggestionToController']['set'](_0x168a13,_0x1adb24),this['_viewToController']['set'](_0x367dd3,_0x1adb24);const _0x4f945a=()=>{const _0x366d37=[],_0x5b18c8=_0x168a13['getAllAdjacentSuggestions']()['filter'](_0x53b53f=>_0x53b53f['isInContent']);for(const _0xc4e413 of _0x5b18c8)_0x366d37['push'](..._0xc4e413['getMarkers']());return _0x29aa0f(_0x1b9c53['editing'],_0x366d37);};_0x253a65=_0x4cc3e9['createAnnotation']({'view':_0x4b8dac,'target':_0x4f945a,'type':()=>'suggestion-'+_0x1adb24['view']['type'],'isVisible':!!_0x4f945a()}),_0x58b4ae['_bindAnnotationToEditors'](_0x367dd3,_0x253a65),_0x4cc3e9['add'](_0x253a65),_0x1f607f['registerAnnotation'](_0x253a65);}['_destroyController'](_0x8e62bf){const _0x55719c=this['editor']['plugins']['get'](_0x361d9e),_0x59544d=this['editor']['plugins']['get'](_0xbd556d),_0x152af5=this['_suggestionToController']['get'](_0x8e62bf),_0x7a4539=_0x152af5['view'],_0x20b0b8=_0x59544d['getByInnerView'](_0x7a4539);_0x55719c['_unbindEditors'](_0x7a4539),_0x20b0b8&&_0x59544d['remove'](_0x20b0b8),this['_suggestionToController']['delete'](_0x8e62bf),this['_viewToController']['delete'](_0x7a4539),_0x152af5['destroy']();}['_updateController'](_0x59f670){if(!_0x59f670['isInContent']||!this['_suggestionToController']['has'](_0x59f670))return;const _0x3b1b45=this['editor']['plugins']['get'](Xe),_0x35ee07=this['_suggestionToController']['get'](_0x59f670),_0x45f7fc=_0x59f670['getAllAdjacentSuggestions']();_0x35ee07['view']['descriptionParts']=_0x3b1b45['descriptionFactory']['getDescriptions'](_0x45f7fc);}['destroy'](){for(const _0x3c6288 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3c6288);for(const _0x167b86 of this['_annotationViews']['values']())_0x167b86['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x9133f5){return'model'in _0x9133f5;}class Tn extends _0x298b0c{static get['requires'](){return[Xe,mn,_0x17dfb2];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x5424cd){this['editor']['plugins']['get'](Xe)['adapter']=_0x5424cd;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x27422e){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x27422e);}['getSuggestions']({skipNotAttached:_0xb81bbb=!0x1,toJSON:_0x7f2ccb=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0xb81bbb,'toJSON':_0x7f2ccb});}['getSuggestion'](_0x3112fc){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x3112fc);}}const _n=['Pagination'];class pn extends _0x298b0c{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c2b57=this['editor'];if(_0x3c2b57['config']['define']('trackChangesData.editorCreator',_0x41e2aa=>{const _0x40973c=_0x3c2b57['model']['document']['getRootNames']()['reduce']((_0x3bc1e2,_0x35b6de)=>(_0x3bc1e2[_0x35b6de]='',_0x3bc1e2),{});return _0x3c2b57['constructor']['create'](_0x40973c,_0x41e2aa);}),'function'!=typeof _0x3c2b57['config']['get']('trackChangesData')['editorCreator'])throw new _0x520897('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2a8d83){return bn(this['editor'],!0x0,_0x2a8d83);}['getDataWithDiscardedSuggestions'](_0x360482){return bn(this['editor'],!0x1,_0x360482);}}class Ln extends _0x298b0c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52b8bc){function _0x3dd257(_0x153180){return _0x153180['map'](_0xcce42b=>String['fromCharCode'](_0xcce42b))['join']('');}super(_0x52b8bc),this['result']='end',_0x52b8bc[_0x3dd257([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3dd257([0x76,0x69,0x65,0x77])][_0x3dd257([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3dd257([0x61,0x75,0x74,0x6f]),_0x52b8bc[_0x3dd257([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3dd257([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3dd257([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3dd257([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3dd257([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(_0x364ff9){return void 0x0!==_0x364ff9['getRootsAttributes'];}async function bn(_0xfe1935,_0x49ed55,_0x3a91c1){const _0x573919=_0x15eae0(_0xfe1935,_n);if(_0x573919['plugins']['push'](Xe,Ln),In(_0xfe1935)){_0x573919['roots']=Object['create'](null);for(const _0x28f225 of _0xfe1935['model']['document']['getRootNames']())_0x573919['roots'][_0x28f225]={'modelAttributes':_0xfe1935['getRootAttributes'](_0x28f225)};}const _0x12d341=document['createDocumentFragment'](),_0x459d43=_0xfe1935['config']['get']('trackChangesData')['editorCreator'],_0x47111d=await _0x459d43(_0x573919,()=>function(_0x536f06){const _0x593b5b=document['createElement']('div');return _0x536f06['appendChild'](_0x593b5b),_0x593b5b;}(_0x12d341));!function(_0x4befd4,_0x2edd7e){const _0x4248c3=_0x4befd4['model']['document']['getRootNames']()['reduce']((_0x27904c,_0x40fc54)=>(_0x27904c[_0x40fc54]=_0x4befd4['data']['get']({'rootName':_0x40fc54}),_0x27904c),{}),_0x38e39d=_0x4befd4['plugins']['get']('Users')['users']['map'](_0x500eab=>({'id':_0x500eab['id'],'name':_0x500eab['name']})),_0x3ded22=_0x4befd4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x41ad93=_0x4befd4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x471fe7=_0x2edd7e['plugins']['get']('Users'),_0x3e2789=_0x2edd7e['plugins']['get']('TrackChangesEditing'),_0x3dc660=_0x2edd7e['plugins']['get']('CommentsRepository');for(const _0x200946 of _0x3dc660['getCommentThreads']())_0x200946['remove']();for(const _0x56e427 of _0x38e39d)_0x471fe7['getUser'](_0x56e427['id'])||_0x471fe7['addUser'](_0x56e427);_0x471fe7['me']||_0x471fe7['useAnonymousUser']();for(const _0x45e139 of _0x41ad93)_0x3dc660['addCommentThread'](_0x45e139);for(const _0x5255ca of _0x3ded22)_0x3e2789['addSuggestionData'](_0x5255ca);_0x2edd7e['data']['set'](_0x4248c3);}(_0xfe1935,_0x47111d),_0x47111d['execute'](_0x49ed55?'acceptAllSuggestions':'discardAllSuggestions');const _0x336412=In(_0x47111d)?_0x47111d['getFullData'](_0x3a91c1):_0x47111d['data']['get'](_0x3a91c1);return await _0x47111d['destroy'](),_0x336412;}class An extends _0x3a546b{['options'];constructor(_0x31a3f3,_0x6f13a){super(_0x31a3f3),this['options']=_0x6f13a,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'](_0x1180ba,_0x3739d5){if(!this['element'])return;const _0x60c11f=[];for(const [_0x520179,_0x52d42d]of _0x1180ba){const _0x1a0c44=document['createElement']('div');_0x1a0c44['setAttribute']('data-ck-root-name',_0x520179),_0x1a0c44['className']=_0x52d42d['classes']+'\x20ck-track-changes-preview__root-container',_0x1a0c44['innerHTML']=_0x52d42d['content'],_0x60c11f['push'](_0x1a0c44);}_0x3739d5(this['element'],_0x60c11f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4bf56b{constructor(_0x23eb87){super(_0x23eb87),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4e84a6=this['editor'],_0x394c69=_0x4e84a6['locale'],_0x28d6ec=_0x4e84a6['plugins']['get']('Dialog');let _0xa3a88d;const _0x54b9ea=function(_0x4108a6){const _0x2cbe84={};if('editables'in _0x4108a6['ui']['view']){for(const [_0x2baa11,_0x28e7e9]of Object['entries'](_0x4108a6['ui']['view']['editables']))_0x2cbe84[_0x2baa11]=_0x28e7e9['element'];}else _0x2cbe84[_0x4108a6['model']['document']['getRootNames']()[0x0]]=_0x4108a6['ui']['view']['editable']['element'];return _0x2cbe84;}(_0x4e84a6),_0x5ddaba=function(_0xd5bda7){let _0xbdd06a=0x0;for(const _0x2e16bf of Object['values'](_0xd5bda7))_0xbdd06a=Math['max'](_0xbdd06a,_0x2e16bf['getBoundingClientRect']()['width']);let _0x3a2de6=0x0;for(const _0x51f300 of Object['values'](_0xd5bda7))_0x3a2de6+=_0x51f300['getBoundingClientRect']()['height'];const _0x30cff9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2c137a=Math['min'](_0x3a2de6,_0x30cff9);return{'width':_0xbdd06a,'height':_0x2c137a};}(_0x54b9ea);_0x28d6ec['show']({'id':'finalContentPreview','title':At(_0x394c69,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x394c69,{'dialogRects':_0x5ddaba}),'onHide':()=>{_0xa3a88d['detachFromDom']();},'onShow':()=>{_0x4e84a6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x24ce62=>{const _0x239ebc=this['_standarizeRootsData'](_0x24ce62,_0x4e84a6,_0x54b9ea);_0x28d6ec['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x239ebc,_0x4e84a6['config']['get']('trackChanges.preview.renderFunction'));}),_0xa3a88d=new _0x1f0d88(_0x394c69,[_0x28d6ec['view']]),_0xa3a88d['attachToDom'](),_0xa3a88d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4e84a6['once']('destroy',()=>{_0xa3a88d['detachFromDom']();});const _0x414900=_0x28d6ec['view']['headerView']['class'];_0x28d6ec['view']['headerView']['class']=_0x414900?_0x414900+'\x20ck-reset_all':'ck-reset_all',_0x28d6ec['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x28d6ec['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x29fa0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x50c68c=_0x29fa0e['previewMode'],_0x3208ed={};if('$labels'===_0x50c68c){for(const _0x2f70fb of _0x29fa0e['getMergeFieldsIds']())_0x3208ed[_0x2f70fb]=_0x29fa0e['getLabel'](_0x2f70fb)||_0x2f70fb;}else{const _0x59800a='$defaultValues'===_0x50c68c?_0x29fa0e['getDefaultValues']():_0x29fa0e['getDataSetValues'](_0x50c68c,!0x0);for(const _0x43ada7 of Object['entries'](_0x59800a)){const [_0x5e1cd1,_0x3d5879]=_0x43ada7;_0x3208ed[_0x5e1cd1]=null!==_0x3d5879?_0x3d5879:_0x29fa0e['getLabel'](_0x5e1cd1)||_0x5e1cd1;}}return{'mergeFieldsData':_0x3208ed};}['_standarizeRootsData'](_0x44e2f5,_0x3f5573,_0x366dd5){let _0x136700;if('string'==typeof _0x44e2f5){const _0x484b00=_0x3f5573['model']['document']['getRootNames']()[0x0];_0x136700={[_0x484b00]:_0x44e2f5};}else _0x136700=_0x44e2f5;const _0x205109=this['_fixMediaEmbeds'](_0x136700,_0x3f5573),_0x16df65=function(_0x1f6784,_0xa4de56){for(const [_0x4db550,_0x1d8cd1]of _0x1f6784)_0x1d8cd1['classes']=_0xa4de56[_0x4db550]['classList']['value']['replace']('ck-focused','');return _0x1f6784;}(this['_sortRoots'](_0x3f5573)['reduce']((_0x1849dc,_0x12da04)=>(_0x1849dc['push']([_0x12da04,{'content':_0x205109[_0x12da04],'classes':''}]),_0x1849dc),[]),_0x366dd5);return _0x16df65;}['_fixMediaEmbeds'](_0x5886ed,_0x16310f){if(!_0x16310f['plugins']['has']('MediaEmbedEditing'))return _0x5886ed;const _0x526f4e=_0x16310f['plugins']['get']('MediaEmbedEditing');for(const [_0x5bb3f5,_0x3a3529]of Object['entries'](_0x5886ed)){const _0x216087=document['createElement']('div');_0x216087['innerHTML']=_0x3a3529,(_0x216087['querySelectorAll']('figure.media')['forEach'](_0x57f08d=>{const _0x2857f8=_0x57f08d['querySelector']('oembed');if(_0x2857f8){const _0x60391e=_0x2857f8['getAttribute']('url');if(_0x60391e){const _0x58ea7e=_0x526f4e['registry']['getMediaViewElement'](new et(_0x16310f['editing']['view']['document']),_0x60391e,{'elementName':'','renderForEditingView':!0x0}),_0x346a48=document['createElement']('div');_0x346a48['classList']['add']('ck-media__wrapper'),_0x58ea7e['render'](_0x346a48,_0x16310f['editing']['view']['domConverter']),_0x2857f8['replaceWith'](_0x346a48);}}}),_0x5886ed[_0x5bb3f5]=_0x216087['innerHTML']);}return _0x5886ed;}['_sortRoots'](_0x533d30){if(!function(_0x5cec83){return void 0x0!==_0x5cec83['getRootsAttributes'];}(_0x533d30))return _0x533d30['model']['document']['getRootNames']();const _0x16c1c4=[],_0x122cea=new Map();for(const _0x4bf037 of _0x533d30['model']['document']['getRootNames']()){const _0x38ff7d=_0x533d30['editing']['view']['getDomRoot'](_0x4bf037)['getClientRects']()['item'](0x0);_0x16c1c4['push'](_0x4bf037),_0x122cea['set'](_0x4bf037,_0x38ff7d);}return _0x16c1c4['sort']((_0xd1b3c6,_0x1a58a1)=>{const _0x324be5=_0x122cea['get'](_0xd1b3c6),_0x28b527=_0x122cea['get'](_0x1a58a1);return _0x324be5['y']-_0x28b527['y']||_0x324be5['x']-_0x28b527['x'];}),_0x16c1c4;}}class Cn extends _0x298b0c{static get['requires'](){return[pn,_0x44f644];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32db6a){super(_0x32db6a),_0x32db6a['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x32db6a['config']['define']('trackChanges.preview.renderFunction',(_0x3bcdf1,_0x36ff7b)=>{for(const _0x356de2 of _0x36ff7b)_0x3bcdf1['appendChild'](_0x356de2);});}}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 _0x4e8d96,Plugin as _0x1e0278,PendingActions as _0x47d057}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x3fa1f3,Annotations as _0x420f64,EditorAnnotations as _0x4b07dd,Comments as _0x15b48d}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0xb9c320,ObservableMixin as _0x37da01,uid as _0x3a482b,priorities as _0x45f9a4,insertToPriorityArray as _0x4801aa,logWarning as _0x3035f0,getEnvKeystrokeText as _0x503c2f,FocusTracker as _0x3098e8,KeystrokeHandler as _0x1d0f02,Collection as _0x3d9500}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x958074,IconCancel as _0x391e38,IconTrackChanges as _0x41b672}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x45513a,View as _0x4474c8,ViewCollection as _0x42a025,FocusCycler as _0x43be5a,UIModel as _0x3f7047,createDropdown as _0x6cba14,SplitButtonView as _0x68e973,addListToDropdown as _0x368d56,MenuBarMenuView as _0x516b7a,MenuBarMenuListView as _0x5c45c9,ListSeparatorView as _0x2430d2,MenuBarMenuListItemView as _0x21de03,MenuBarMenuListItemButtonView as _0x7fa1fa,BodyCollection as _0x53e865,Dialog as _0x135a93}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0xfb1f58,SuggestionsConversion as _0x400bb5,Users as _0x52b80c,DocumentCompare as _0x3432d3,fixElementSuggestionRange as _0x2fee34,hashObject as _0x3b7948,surroundingMarkersDetector as _0x69fdea,FOCUS_ANNOTATION_KEYSTROKE as _0x59f608,AriaDescriptionView as _0x423d06,setupThreadKeyboardNavigation as _0x4c2997,trimHtml as _0x25eebb,UserView as _0x9ea7a,LateFocusButtonView as _0x208c2a,getDateTimeFormatter as _0x3d4fde,getAllMarkersDomElementsSorted as _0x506b46,sanitizeEditorConfig as _0x18fc03}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x507fa1,ModelLiveRange as _0x56dc86,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 _0x4e8d96{['_enabledCommands'];constructor(_0x3e3e57,_0x4f89c3){super(_0x3e3e57),this['_enabledCommands']=_0x4f89c3,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 _0x1ee751 of this['editor']['commands']['commands']())_0x1ee751['affectsData']&&!this['_enabledCommands']['has'](_0x1ee751)&&_0x1ee751['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x453028 of this['editor']['commands']['commands']())_0x453028['affectsData']&&!this['_enabledCommands']['has'](_0x453028)&&_0x453028['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x4e8d96{['_suggestions'];constructor(_0x4574ee,_0x58462a){super(_0x4574ee),this['_suggestions']=_0x58462a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x57d9a1){const _0x4e9bda=this['_suggestions']['get'](_0x57d9a1);if(!_0x4e9bda)throw new _0xb9c320('track-changes-accept-suggestion-not-found',this);const _0x5a9656=_0x4e9bda['getRanges']();this['editor']['model']['canEditAt'](_0x5a9656)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4e9bda);}}class ft extends _0x4e8d96{['_suggestions'];constructor(_0x17309d,_0x3a5da9){super(_0x17309d),this['_suggestions']=_0x3a5da9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x59b43e){const _0x1aa18a=this['_suggestions']['get'](_0x59b43e);if(!_0x1aa18a)throw new _0xb9c320('track-changes-discard-suggestion-not-found',this);const _0x38b19b=_0x1aa18a['getRanges']();this['editor']['model']['canEditAt'](_0x38b19b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1aa18a);}}function gt(_0x5f0367,_0xba8ea9){let _0x449a2d='';return _0x449a2d+=_0x5f0367['split']('*')['map']((_0x274f78,_0x241022)=>_0x241022%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x274f78)+'</span>':mt(_0x274f78))['join'](''),_0xba8ea9&&(_0x449a2d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xba8ea9['value']+'\x22\x20title=\x22'+_0xba8ea9['title']+'\x22></span>'),_0x449a2d;}function mt(_0x4635d6){const _0x3661e9=document['createElement']('span');return _0x3661e9['innerText']=_0x4635d6,_0x3661e9['innerHTML'];}function Et(_0x5f4337){return _0x5f4337['sort']((_0x2b8f49,_0x2b17cd)=>'attribute'===_0x2b8f49['type']&&'attribute'!==_0x2b17cd['type']?-0x1:'attribute'!==_0x2b8f49['type']&&'attribute'===_0x2b17cd['type']?0x1:'deletion'==_0x2b8f49['type']&&'deletion'!=_0x2b17cd['type']?-0x1:'deletion'!=_0x2b8f49['type']&&'deletion'==_0x2b17cd['type']?0x1:0x0);}function Tt(_0x21b75b,_0x5b2d30){let _0x59ebc0,_0x2971fd=0x0;const _0x252602=[],_0x26b1eb=_0x5b2d30['schema'];for(;_0x2971fd<_0x21b75b['length'];){const _0x4e5e68=_0x21b75b[_0x2971fd],_0x2eebf4=_0x21b75b[_0x2971fd+0x1];_0x59ebc0||(_0x59ebc0=_0x5b2d30['createPositionBefore'](_0x4e5e68)),_t(_0x5b2d30,_0x4e5e68,_0x2eebf4)||(_0x252602['push'](_0x5b2d30['createRange'](_0x59ebc0,_0x26b1eb['isObject'](_0x4e5e68)?_0x5b2d30['createPositionAfter'](_0x4e5e68):_0x5b2d30['createPositionAt'](_0x4e5e68,'end'))),_0x59ebc0=null),_0x2971fd++;}return _0x252602;}function _t(_0x4b88cc,_0x13259b,_0x2e64bc){if(!_0x2e64bc)return!0x1;const _0x3b9f0b=_0x4b88cc['createPositionAfter'](_0x13259b),_0x1c3660=_0x4b88cc['createPositionBefore'](_0x2e64bc);return _0x3b9f0b['isTouching'](_0x1c3660);}function pt(_0x5f1d06,_0x4d14bd,_0x65b662){for(;_0x65b662['length'];){const _0x297869=_0x65b662['splice'](0x0,0x64);_0x5f1d06['change'](()=>{for(const _0x506cd2 of _0x297869)_0x506cd2['isInContent']&&_0x4d14bd['execute'](_0x506cd2['id']);});}}class Lt extends _0x4e8d96{['_command'];['_suggestions'];constructor(_0x5858f0,_0x10d4eb,_0x1c5370){super(_0x5858f0),this['_command']=_0x10d4eb,this['_suggestions']=_0x1c5370,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b662e=Array['from'](this['_suggestions']['values']())['some'](_0x4ea218=>_0x4ea218['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b662e;}['execute'](){const _0x5ba5b4=Et(Array['from'](this['_suggestions']['values']()));for(const _0x5620b9 of _0x5ba5b4){const _0x417cdb=_0x5620b9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x417cdb))return;}pt(this['editor']['model'],this['_command'],_0x5ba5b4);}}class It extends _0x4e8d96{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2f00bf,_0x3c4293,_0x4d5f03){super(_0x2f00bf),this['_command']=_0x3c4293,this['_suggestions']=_0x4d5f03,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2a6891=this['editor']['model']['document']['selection'],_0x585e7a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x7c629c,_0x249350){const _0x5952a1=Array['from'](_0x7c629c['getRanges']()),_0x1cb845=new Set();for(const _0x5093f6 of _0x249350)if(_0x5093f6['isInContent']){for(const _0x14654f of _0x5952a1)for(const _0x463087 of _0x5093f6['getRanges']())(_0x14654f['isIntersecting'](_0x463087)||_0x7c629c['isCollapsed']&&!_0x5093f6['isMultiRange']&&_0x5093f6['next']&&_0x463087['end']['isTouching'](_0x14654f['start']))&&_0x1cb845['add'](_0x5093f6);}return _0x1cb845;}(_0x2a6891,_0x585e7a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x306aec=Et(Array['from'](this['_selectedSuggestions']));for(const _0x3eab98 of _0x306aec){const _0x1a685b=_0x3eab98['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a685b))return;}pt(this['editor']['model'],this['_command'],_0x306aec);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x37da01(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x53912a,_0x42116d){super(),this['id']=_0x42116d['id'],this['type']=_0x42116d['type'],this['subType']=_0x42116d['subType']||null,this['author']=_0x42116d['author'],this['creator']=_0x42116d['creator']||_0x42116d['author'],this['isExternal']=Boolean(_0x42116d['attributes']&&_0x42116d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x42116d['originalSuggestionId']||null,this['_model']=_0x53912a,this['_onAccept']=_0x42116d['onAccept'],this['_onDiscard']=_0x42116d['onDiscard'],this['_onAttributesChange']=_0x42116d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x42116d['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 _0x42fb4d=this;for(;_0x42fb4d['previous'];)_0x42fb4d=_0x42fb4d['previous'];return _0x42fb4d;}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'](_0x5a7c7){this['_markerNames']['add'](_0x5a7c7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x820ebf=>this['_model']['markers']['get'](_0x820ebf))['filter'](_0x1c44a2=>_0x1c44a2);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8cfbed=>{for(const _0x56c3b of this['getMarkers']())_0x8cfbed['removeMarker'](_0x56c3b);}),this['_markerNames']['clear']();}['removeMarker'](_0x531e38){this['_model']['change'](_0x4d2963=>{_0x4d2963['removeMarker'](_0x531e38);}),this['_markerNames']['delete'](_0x531e38);}['addRange'](_0x3ade22){const _0x2b2280='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x2b2280),this['_model']['change'](_0x2473ca=>{_0x2473ca['addMarker'](_0x2b2280,{'range':_0x3ade22,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x429d35){for(const _0x21b9ef of this['getRanges']())if(_0x21b9ef['isIntersecting'](_0x429d35))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5975e8=>_0x5975e8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x340c4f,_0x591906)=>[..._0x340c4f,..._0x591906['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1270ac=this['getRanges']();if(0x1!=_0x1270ac['length'])return null;const _0x31a399=_0x1270ac[0x0],_0x47115e=_0x31a399['start']['nodeAfter'],_0x3a8df2=_0x31a399['end']['nodeBefore'];return _0x47115e instanceof _0x507fa1?_0x47115e!=_0x3a8df2?null:_0x47115e: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 _0x512967=[];let _0x3547a4=this['head'];for(;_0x3547a4;)_0x512967['push'](_0x3547a4),_0x3547a4=_0x3547a4['next'];return _0x512967;}['setAttribute'](_0x2340b5,_0x2ec867){const _0x2ab13e=nt(this['attributes']);it(_0x2ab13e,_0x2340b5,_0x2ec867),st(_0x2ab13e,this['attributes'])||(this['attributes']=_0x2ab13e,this['_onAttributesChange'](_0x2ab13e));}['removeAttribute'](_0x5aa34a){const _0x2a8477=nt(this['attributes']);rt(_0x2a8477,_0x5aa34a),st(_0x2a8477,this['attributes'])||(this['attributes']=_0x2a8477,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 _0x3a482b()['substr'](0x1,0x5);}}function At(_0x231e4a,_0x13d600,_0x4145f3){const _0x56a2e9=_0x231e4a['t'],t=_0x231e4a['t'];switch(_0x13d600){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',_0x4145f3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4145f3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4145f3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4145f3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4145f3);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',_0x4145f3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4145f3);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',_0x4145f3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4145f3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4145f3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4145f3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4145f3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4145f3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4145f3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4145f3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4145f3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4145f3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4145f3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4145f3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4145f3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4145f3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4145f3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4145f3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4145f3);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4145f3);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'},_0x4145f3);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4145f3);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4145f3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4145f3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4145f3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4145f3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4145f3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4145f3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4145f3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4145f3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4145f3);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'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4145f3);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4145f3);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4145f3);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4145f3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4145f3);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'},_0x4145f3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4145f3);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 _0x56a2e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4145f3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x56a2e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4145f3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4145f3);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'},_0x4145f3);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'},_0x4145f3);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'},_0x4145f3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x13d600;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xb94daa,_0x37bb99){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb94daa,this['_locale']=_0x37bb99;}['getDescriptions'](_0x1429f5){const _0xdb76f8=[],_0x217a8d=new Set(),_0x1d3480=new Set();for(let _0x5d20e3=0x0;_0x5d20e3<_0x1429f5['length'];_0x5d20e3++){const _0x93c8b2=_0x1429f5[_0x5d20e3];if(!_0x93c8b2['isInContent'])continue;const _0x5cb423=this['_handleCustomCallbackDescription'](_0x93c8b2);if(_0x5cb423){if(null!=_0x93c8b2['subType']){if(_0x217a8d['has'](_0x93c8b2['subType']))continue;_0x217a8d['add'](_0x93c8b2['subType']);}_0xdb76f8['push'](_0x5cb423);}else{if('attribute'==_0x93c8b2['type']){const _0x40e5bb=_0x93c8b2['data']['key'];if(_0x1d3480['has'](_0x40e5bb))continue;_0x1d3480['add'](_0x93c8b2['data']['key']),_0x40e5bb==Ke?this['_handleRenameSuggestionDescription'](_0xdb76f8,_0x93c8b2):this['_handleAttributeSuggestionDescription'](_0xdb76f8,_0x93c8b2);continue;}'insertion'!=_0x93c8b2['type']&&'deletion'!=_0x93c8b2['type']||this['_handleInsertRemoveSuggestionDescription'](_0xdb76f8,_0x93c8b2,_0x1429f5[_0x5d20e3+0x1]);}}return this['_resolveDescriptionItems'](_0xdb76f8);}['registerDescriptionCallback'](_0x2cc2c1){this['_customCallbacks']['push'](_0x2cc2c1);}['registerElementLabel'](_0x14cb22,_0xa01165,_0x7a14e4=_0x45f9a4['normal']){'function'==typeof _0x14cb22?_0x4801aa(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14cb22,'label':_0xa01165,'priority':_0x7a14e4}):this['_itemLabels']['set'](_0x14cb22,_0xa01165);}['registerAttributeLabel'](_0x212e68,_0xb6df5a){this['_attributeLabels']['set'](_0x212e68,_0xb6df5a);}['getItemLabel'](_0x455ac1,_0x49219d=0x1){let _0x160980;for(const _0x6fd73e of this['_itemLabelsCallbacks'])if(_0x6fd73e['matchingCallback'](_0x455ac1)){_0x160980=_0x6fd73e['label'];break;}return _0x160980||(_0x160980=this['_itemLabels']['get'](_0x455ac1['name'])),_0x160980?_0x160980(_0x49219d):0x1!==_0x49219d?_0x49219d+'\x20'+_0x455ac1['name']+'s':''+_0x455ac1['name'];}['_addDescriptionItems'](_0x11b22b,_0x4977c1){const _0x2b1995=_0x4977c1['getFirstRange']()['getWalker'](),_0x5bd82c='insertion'==_0x4977c1['type']?'add':'remove';for(const _0x8d4f3 of _0x2b1995){const _0x22591e=_0x8d4f3['item'],_0x165bbc=_0x11b22b[_0x11b22b['length']-0x1];if(_0x22591e['is']('$textProxy'))_0x165bbc&&_0x165bbc['type']['indexOf']('Container')>-0x1&&_0x11b22b['pop'](),_0x165bbc&&'text'==_0x165bbc['type']?_0x165bbc[_0x5bd82c]+=_0x22591e['data']:_0x11b22b['push']({'type':'text','add':'add'==_0x5bd82c?_0x22591e['data']:'','remove':'remove'==_0x5bd82c?_0x22591e['data']:''});else{if(this['_schema']['isObject'](_0x22591e)){const _0x580924=_0x22591e;if(_0x165bbc&&_0x165bbc['type']['indexOf']('Container')>-0x1&&_0x11b22b['pop'](),'elementEnd'==_0x8d4f3['type'])continue;_0x165bbc&&_0x165bbc['type']==_0x5bd82c+'Object'&&_0x165bbc['element']['name']==_0x580924['name']?_0x165bbc['quantity']++:_0x11b22b['push']({'type':_0x5bd82c+'Object','element':_0x580924,'quantity':0x1}),_0x2b1995['skip'](_0x348240=>!('elementEnd'==_0x348240['type']&&_0x348240['item']==_0x22591e));}else{if(this['_schema']['checkChild'](_0x22591e,'$text')||_0x22591e['is']('element','softBreak')){const _0x567c4d=_0x22591e;if('add'==_0x5bd82c&&'elementStart'==_0x8d4f3['type']||'remove'==_0x5bd82c&&'elementEnd'==_0x8d4f3['type'])continue;if(_0x165bbc&&-0x1==_0x165bbc['type']['indexOf']('Container')){'text'==_0x165bbc['type']&&(_0x165bbc[_0x5bd82c]+='\x0a');continue;}let _0x204f84;if(_0x204f84='add'==_0x5bd82c?_0x567c4d['nextSibling']&&!this['_schema']['isObject'](_0x567c4d['nextSibling'])?_0x567c4d['nextSibling']:null:_0x567c4d['previousSibling']&&!this['_schema']['isObject'](_0x567c4d['previousSibling'])?_0x567c4d['previousSibling']:null,_0x567c4d['isEmpty']||_0x204f84&&_0x204f84['isEmpty']){const _0x4340bd=_0x204f84&&_0x204f84['isEmpty']?_0x204f84:_0x567c4d;_0x165bbc&&_0x165bbc['type']==_0x5bd82c+'EmptyContainer'&&_0x165bbc['element']['name']==_0x4340bd['name']?_0x165bbc['quantity']++:_0x11b22b['push']({'type':_0x5bd82c+'EmptyContainer','element':_0x4340bd,'quantity':0x1});}else _0x11b22b['push']({'type':_0x5bd82c+'Container','element':_0x567c4d});}}}}}['_resolveDescriptionItems'](_0x4cc453){const _0x2048c9=this['_locale'],_0x499b8f=[],_0x1df0bb=[],_0x28be1f=[];for(const _0x552b3a of _0x4cc453)switch(_0x552b3a['type']){case'text':if(_0x552b3a['add']=_0x552b3a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x552b3a['remove']=_0x552b3a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x552b3a['add']&&''!=_0x552b3a['remove']){_0x499b8f['push']({'type':'replace','content':At(_0x2048c9,'REPLACE_TEXT',['\x22'+_0x552b3a['remove']+'\x22','\x22'+_0x552b3a['add']+'\x22'])});continue;}if(null!=_0x552b3a['add']['match'](/^ +$/)){_0x499b8f['push']({'type':'insertion','content':At(_0x2048c9,'*Insert:*\x20%0',At(_0x2048c9,'ELEMENT_SPACE',_0x552b3a['add']['length']))});continue;}if(null!=_0x552b3a['remove']['match'](/^ +$/)){_0x499b8f['push']({'type':'deletion','content':At(_0x2048c9,'*Remove:*\x20%0',At(_0x2048c9,'ELEMENT_SPACE',_0x552b3a['remove']['length']))});continue;}if(''!=_0x552b3a['add']){_0x499b8f['push']({'type':'insertion','content':At(_0x2048c9,'*Insert:*\x20%0','\x22'+_0x552b3a['add']+'\x22')});continue;}_0x499b8f['push']({'type':'deletion','content':At(_0x2048c9,'*Remove:*\x20%0','\x22'+_0x552b3a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x499b8f['push']({'type':'insertion','content':At(_0x2048c9,'*Insert:*\x20%0',this['getItemLabel'](_0x552b3a['element'],_0x552b3a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x499b8f['push']({'type':'deletion','content':At(_0x2048c9,'*Remove:*\x20%0',this['getItemLabel'](_0x552b3a['element'],_0x552b3a['quantity']))});continue;case'addContainer':_0x499b8f['push']({'type':'insertion','content':At(_0x2048c9,'*Split:*\x20%0',this['getItemLabel'](_0x552b3a['element'],_0x552b3a['quantity']))});continue;case'removeContainer':_0x499b8f['push']({'type':'deletion','content':At(_0x2048c9,'*Merge:*\x20%0',this['getItemLabel'](_0x552b3a['element'],_0x552b3a['quantity']))});continue;case'addFormat':_0x1df0bb['push'](_0x552b3a['key']);continue;case'removeFormat':_0x28be1f['push'](_0x552b3a['key']);continue;default:_0x499b8f['push'](_0x552b3a);}if(_0x1df0bb['length']){const _0x114786=_0x1df0bb['map'](_0x5515a8=>this['_attributeLabels']['has'](_0x5515a8)?this['_attributeLabels']['get'](_0x5515a8):_0x5515a8)['join'](',\x20');_0x499b8f['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x114786)});}if(_0x28be1f['length']){const _0x19e5c9=_0x28be1f['map'](_0x599e12=>this['_attributeLabels']['has'](_0x599e12)?this['_attributeLabels']['get'](_0x599e12):_0x599e12)['join'](',\x20');_0x499b8f['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x19e5c9)});}return _0x499b8f;}['_handleCustomCallbackDescription'](_0x3213b4){for(const _0x972c0 of this['_customCallbacks']){const _0x24ba40=_0x972c0(_0x3213b4);if(_0x24ba40&&'type'in _0x24ba40)return _0x24ba40;}}['_handleAttributeSuggestionDescription'](_0x483e42,_0xed5a25){const _0x358fc1=_0xed5a25['data'],_0x3728ff=void 0x0===_0x358fc1['newValue']?'removeFormat':'addFormat';_0x483e42['push']({'type':_0x3728ff,'key':_0x358fc1['key']});}['_handleRenameSuggestionDescription'](_0x4e173b,_0x3ba817){_0x4e173b['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ba817['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x231647,_0x22a10d,_0x2ff7f1){if(this['_addDescriptionItems'](_0x231647,_0x22a10d),_0x2ff7f1&&_0x2ff7f1['getFirstRange']()&&!_0x22a10d['getFirstRange']()['end']['isEqual'](_0x2ff7f1['getFirstRange']()['start'])){const _0x2e9d83=_0x231647[_0x231647['length']-0x1],_0x14781e='insertion'==_0x22a10d['type']?'add':'remove';_0x2e9d83&&'text'==_0x2e9d83['type']&&(_0x2e9d83[_0x14781e]+='\x0a');}}}class Ct extends _0x1e0278{['afterInit'](){const _0x5a0fba=this['editor'],_0x40254e=_0x5a0fba['plugins']['get']('TrackChangesEditing');_0x5a0fba['commands']['get']('showAIAssistant')&&_0x40254e['enableCommand']('showAIAssistant');}}class yt extends _0x1e0278{['afterInit'](){const _0x400e1c=this['editor'],_0x2fc322=_0x400e1c['plugins']['get']('TrackChangesEditing');_0x400e1c['commands']['get']('toggleAi')&&_0x2fc322['enableCommand']('toggleAi');}}class Nt extends _0x1e0278{['afterInit'](){const _0x5a63f8=this['editor'],_0x21cc44=_0x5a63f8['plugins']['get']('TrackChangesEditing');_0x5a63f8['commands']['get']('aiQuickAction')&&_0x21cc44['enableCommand']('aiQuickAction');}}class Rt extends _0x1e0278{['afterInit'](){const _0x1c8529=this['editor'],_0x5a5233=_0x1c8529['locale'];if(!_0x1c8529['plugins']['has']('AlignmentEditing'))return;const _0x5cb962=_0x1c8529['plugins']['get']('TrackChangesEditing');_0x5cb962['enableDefaultAttributesIntegration']('alignment'),_0x5cb962['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x5a5233,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1edd72=this['editor'],_0x92fe3a=_0x1edd72['locale'];_0x1edd72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383f7b=>{if('formatBlock'!=_0x383f7b['type'])return;const {data:_0xb9e18d}=_0x383f7b;if(_0xb9e18d&&'alignment'==_0xb9e18d['commandName']){const _0x1e17c5=_0xb9e18d['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x92fe3a,'*Format:*\x20%0',function(_0x242efb){switch(_0x242efb){case'left':return At(_0x92fe3a,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x92fe3a,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x92fe3a,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x92fe3a,'FORMAT_JUSTIFY_TEXT');}}(_0x1e17c5))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x1e0278{['afterInit'](){const _0x15d092=this['editor'],_0x2a7d49=_0x15d092['plugins']['get']('TrackChangesEditing'),_0x555c21=_0x15d092['locale'];for(const _0x1049c5 of St){if(!_0x15d092['plugins']['has'](_0x1049c5))continue;const _0x2eded1=_0x1049c5['slice'](0x0,-0x7)['toLowerCase'](),_0x2b5660='FORMAT_'+_0x2eded1['toUpperCase']();_0x2a7d49['enableDefaultAttributesIntegration'](_0x2eded1),_0x2a7d49['descriptionFactory']['registerAttributeLabel'](_0x2eded1,At(_0x555c21,_0x2b5660));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x558cce=this['editor'],_0x13ed2c=_0x558cce['locale'],_0x17ead7=_0x558cce['plugins']['get']('TrackChangesEditing');function _0x3901de(_0x415156,_0x41a86a){_0x17ead7['descriptionFactory']['registerDescriptionCallback'](_0x552370=>{if('formatInline'!=_0x552370['type'])return;const {data:_0x360c05}=_0x552370;return _0x360c05&&_0x360c05['commandName']===_0x415156?_0x360c05['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x13ed2c,'*Format:*\x20%0',_0x41a86a)}:{'type':'format','content':At(_0x13ed2c,'*Remove\x20format:*\x20%0',_0x41a86a)}:void 0x0;});}_0x3901de('bold',At(_0x13ed2c,'FORMAT_BOLD')),_0x3901de('italic',At(_0x13ed2c,'FORMAT_ITALIC')),_0x3901de('underline',At(_0x13ed2c,'FORMAT_UNDERLINE')),_0x3901de('code',At(_0x13ed2c,'FORMAT_CODE')),_0x3901de('strikethrough',At(_0x13ed2c,'FORMAT_STRIKETHROUGH')),_0x3901de('subscript',At(_0x13ed2c,'FORMAT_SUBSCRIPT')),_0x3901de('superscript',At(_0x13ed2c,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x1e0278{['afterInit'](){const _0x295693=this['editor'],_0x423514=_0x295693['locale'];if(!_0x295693['plugins']['has']('BlockQuoteEditing'))return;const _0x469de4=_0x295693['plugins']['get']('TrackChangesEditing'),_0x41f99a=this['editor']['commands']['get']('blockQuote');_0x469de4['enableCommand']('blockQuote',(_0x14755d,_0x205836={})=>{const _0x3cb6b3=this['editor']['model']['document']['selection'],_0x2d6b54=_0x205836&&void 0x0!==_0x205836['forceValue']?_0x205836['forceValue']:!_0x41f99a['value'];let _0x9397b3=[];if(_0x2d6b54){const _0x4878bd=Array['from'](_0x3cb6b3['getSelectedBlocks']())['filter'](_0x474deb=>wt(_0x474deb)||function(_0x118836,_0x3c1d1a){const _0x4bec75=_0x3c1d1a['checkChild'](_0x118836['parent'],'blockQuote'),_0x2528b5=_0x3c1d1a['checkChild'](['$root','blockQuote'],_0x118836);return _0x4bec75&&_0x2528b5;}(_0x474deb,this['editor']['model']['schema']));_0x9397b3=Tt(_0x4878bd,_0x295693['model']);}else{const _0x1c5951=Array['from'](_0x3cb6b3['getSelectedBlocks']())['filter'](_0x4b1ba5=>wt(_0x4b1ba5));_0x9397b3=Tt(_0x1c5951,_0x295693['model']);}_0x295693['model']['change'](()=>{for(const _0x5f4a73 of _0x9397b3)_0x469de4['markBlockFormat'](_0x5f4a73,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2d6b54}]});});}),_0x469de4['descriptionFactory']['registerDescriptionCallback'](_0x25d561=>{const {data:_0x2575e6}=_0x25d561;if(_0x2575e6&&'blockQuote'==_0x2575e6['commandName']){const _0x536e1a=At(_0x423514,'ELEMENT_BLOCK_QUOTE');return _0x2575e6['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x423514,'*Set\x20format:*\x20%0',_0x536e1a)}:{'type':'format','content':At(_0x423514,'*Remove\x20format:*\x20%0',_0x536e1a)};}});}}function wt(_0xdcd5f2){return'blockQuote'==_0xdcd5f2['parent']['name'];}class Bt extends _0x1e0278{['afterInit'](){const _0x4c4b5b=this['editor'],_0x37e693=_0x4c4b5b['locale'],_0x3cac6c=_0x4c4b5b['plugins']['get']('TrackChangesEditing');_0x4c4b5b['plugins']['has']('BookmarkEditing')&&(_0x3cac6c['enableCommand']('insertBookmark'),_0x3cac6c['enableDefaultAttributesIntegration']('updateBookmark'),_0x3cac6c['descriptionFactory']['registerDescriptionCallback'](_0x3ed735=>{if('insertion'!=_0x3ed735['type']&&'deletion'!=_0x3ed735['type']&&'attribute'!=_0x3ed735['type'])return;const _0x52d5c0=_0x3ed735['getContainedElement']();if(null==_0x52d5c0)return;if(!_0x52d5c0['is']('element','bookmark'))return;const _0x211aa7=_0x52d5c0['getAttribute']('bookmarkId');if('insertion'==_0x3ed735['type'])return{'type':'insertion','content':At(_0x37e693,'*Insert:*\x20%0','\x22'+_0x211aa7+'\x22\x20'+At(_0x37e693,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3ed735['type'])return{'type':'deletion','content':At(_0x37e693,'*Remove:*\x20%0','\x22'+_0x211aa7+'\x22\x20'+At(_0x37e693,'ELEMENT_BOOKMARK'))};const {data:_0x5960bd}=_0x3ed735;if(!_0x5960bd||'bookmarkId'!=_0x5960bd['key'])return;return{'type':'format','content':At(_0x37e693,'*Set\x20bookmark:*\x20%0','\x22'+_0x5960bd['newValue']+'\x22')};}));}}class Ft extends _0x1e0278{['afterInit'](){const _0x113a5f=this['editor'];_0x113a5f['plugins']['has']('CaseChange')&&(_0x113a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x113a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x113a5f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x1e0278{['afterInit'](){const _0x3685e5=this['editor'];_0x3685e5['commands']['get']('ckbox')&&_0x3685e5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x1e0278{['afterInit'](){const _0x2d44c4=this['editor'];if(!_0x2d44c4['plugins']['has']('CodeBlock'))return;const _0xf2ebb=_0x2d44c4['plugins']['get']('TrackChangesEditing'),_0x49862e=_0x2d44c4['locale'],_0x10ad27=_0x2d44c4['config']['get']('codeBlock')['languages'],_0xfbfa03=_0x2d44c4['commands']['get']('codeBlock');_0xf2ebb['enableCommand']('indentCodeBlock'),_0xf2ebb['enableCommand']('outdentCodeBlock'),_0xf2ebb['enableCommand']('codeBlock',(_0x15946b,_0x47bf76={})=>{const _0x3c5f56=_0x2d44c4['model'],_0x239647=_0x2d44c4['model']['document']['selection'],_0x5c9e59=_0x47bf76&&void 0x0!==_0x47bf76['forceValue']?_0x47bf76['forceValue']:!_0xfbfa03['value'];let _0x4910c4;_0x47bf76['language']||(_0x47bf76['language']=_0x10ad27[0x0]['language']),_0x4910c4=_0x5c9e59?Array['from'](_0x239647['getSelectedBlocks']())['filter'](_0xbd7b5f=>xt(_0xbd7b5f)||function(_0x4514a3,_0x3177ba){if(_0x4514a3['is']('rootElement')||_0x3177ba['isLimit'](_0x4514a3))return!0x1;return _0x3177ba['checkChild'](_0x4514a3['parent'],'codeBlock');}(_0xbd7b5f,_0x3c5f56['schema'])):Array['from'](_0x239647['getSelectedBlocks']())['filter'](_0x589738=>xt(_0x589738));const _0x1e0d43=Tt(_0x4910c4,_0x3c5f56);_0x3c5f56['change'](()=>{for(const _0x4d54c9 of _0x1e0d43)_0xf2ebb['markBlockFormat'](_0x4d54c9,{'commandName':'codeBlock','commandParams':[{..._0x47bf76,'forceValue':_0x5c9e59}],'formatGroupId':'blockName'});});}),(_0xf2ebb['descriptionFactory']['registerElementLabel']('codeBlock',_0xa39212=>At(_0x49862e,'ELEMENT_CODE_BLOCK',_0xa39212)),_0xf2ebb['descriptionFactory']['registerDescriptionCallback'](_0x34f122=>{if('formatBlock'!=_0x34f122['type'])return;const _0x5e5762=_0x49862e['t'],{data:_0x3cb76e}=_0x34f122;if(!_0x3cb76e||'codeBlock'!=_0x3cb76e['commandName'])return;const _0x342fcf=_0x3cb76e['commandParams'][0x0]['language'],_0x79bc1c=_0x5e5762(_0x10ad27['find'](_0x2639f3=>_0x2639f3['language']===_0x342fcf)['label'])['toLowerCase']();return _0x3cb76e['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x49862e,'*Set\x20format:*\x20%0',At(_0x49862e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x79bc1c+')')}:{'type':'format','content':At(_0x49862e,'*Remove\x20format:*\x20%0',At(_0x49862e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x14377a){return'codeBlock'==_0x14377a['name'];}class Pt extends _0x1e0278{['afterInit'](){const _0x349c54=this['editor'];if(!_0x349c54['plugins']['has']('CommentsEditing'))return;_0x349c54['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x1e0278{static get['requires'](){return[at];}['init'](){const _0x8362a1=this['editor'],_0x2aa1d8=_0x8362a1['plugins']['get']('TrackChangesEditing');_0x2aa1d8['enableCommand']('delete');const _0x2b85f9=_0x8362a1['commands']['get']('deleteForward');_0x2aa1d8['enableCommand']('deleteForward',(_0x299aba,_0x888a5b={})=>{const _0x372e09=_0x8362a1['model']['createSelection'](_0x8362a1['model']['document']['selection']);_0x372e09['isCollapsed']&&_0x8362a1['model']['modifySelection'](_0x372e09,{'direction':'forward','unit':_0x888a5b['unit']});const _0x2128ef=_0x372e09['getFirstRange'](),_0x591609=_0x56dc86['fromRange'](_0x2128ef);let _0x409665;_0x299aba(_0x888a5b),_0x409665='$graveyard'==_0x591609['root']['rootName']?_0x8362a1['model']['createRange'](_0x2128ef['start']):_0x8362a1['model']['createRange'](_0x591609['start'],_0x591609['end']),_0x591609['detach'](),_0x8362a1['model']['enqueueChange'](_0x2b85f9['buffer']['batch'],_0x475d10=>{_0x2b85f9['buffer']['lock'](),_0x475d10['setSelection'](_0x475d10['createRange'](_0x409665['end'])),_0x2b85f9['buffer']['unlock']();});});}}class Gt extends _0x1e0278{['afterInit'](){const _0x523cc6=this['editor'];if(!_0x523cc6['plugins']['has']('ListEditing'))return;const _0x227a45=_0x523cc6['locale'],_0x527fa6=_0x523cc6['plugins']['get']('TrackChangesEditing'),_0x5c95c9=_0x523cc6['plugins']['has']('TodoListEditing'),_0x2ca450=!!_0x523cc6['config']['get']('list.multiBlock');function _0x53c1d6(_0x3a8e8d){return{'type':'format','content':''+At(_0x227a45,'*Set\x20format:*\x20%0',_0x3a8e8d)};}function _0x4ff1c6(_0x4b978b){return{'type':'format','content':''+At(_0x227a45,'*Remove\x20format:*\x20%0',_0x4b978b)};}_0x527fa6['enableDefaultAttributesIntegration']('numberedList'),_0x527fa6['enableDefaultAttributesIntegration']('bulletedList'),_0x527fa6['enableDefaultAttributesIntegration']('customNumberedList'),_0x527fa6['enableDefaultAttributesIntegration']('customBulletedList'),_0x527fa6['enableDefaultAttributesIntegration']('indentList'),_0x527fa6['enableDefaultAttributesIntegration']('outdentList'),_0x527fa6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x527fa6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ca450&&(_0x527fa6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x527fa6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5c95c9&&(_0x527fa6['enableDefaultAttributesIntegration']('todoList'),_0x527fa6['enableDefaultAttributesIntegration']('checkTodoList'),_0x527fa6['descriptionFactory']['registerDescriptionCallback'](_0x54b632=>{const {data:_0x84e93d}=_0x54b632;if(_0x84e93d&&'todoListChecked'==_0x84e93d['key'])return{'type':'format','content':_0x84e93d['newValue']?At(_0x227a45,'*Check\x20item*'):At(_0x227a45,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4f86a7=>{if(_0x4f86a7['batch']['isUndo'])return!0x1;let _0x4e3c87=!0x1;const _0x1dc5a0=_0x527fa6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5218a9=>'todoListChecked'===_0x527fa6['_getAttributeKey'](_0x5218a9));for(const _0x5f5391 of _0x1dc5a0){'todo'!=_0x5f5391['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x527fa6['_findSuggestions'](_0x5f5391['getFirstRange'](),'attribute')['find'](_0x48bee6=>'listType'===_0x527fa6['_getAttributeKey'](_0x48bee6['suggestion']))||(_0x4f86a7['removeMarker'](_0x5f5391['getFirstMarker']()),_0x4e3c87=!0x0));}return _0x4e3c87;})),_0x527fa6['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x227a45,'FORMAT_INDENT'));const _0xdb2c36={'type':'format','content':''};_0x527fa6['descriptionFactory']['registerDescriptionCallback'](_0x3b6dc3=>{const {data:_0x379a0c}=_0x3b6dc3;if(!_0x379a0c||'listType'!=_0x379a0c['key'])return;let _0x16985d=_0x3b6dc3['head'];for(;_0x16985d;){if(_0x16985d['data']&&(('listStyle'==_0x16985d['data']['key']||'listMarkerStyle'==_0x16985d['data']['key'])&&(_0x16985d['data']['newValue']&&'default'!=_0x16985d['data']['newValue']||'default'!=_0x16985d['data']['oldValue']&&!_0x379a0c['newValue'])||!_0x2ca450&&_0x16985d['data']['key']==Ke))return _0xdb2c36;_0x16985d=_0x16985d['next'];}if(null==_0x379a0c['newValue'])switch(_0x379a0c['oldValue']){case'bulleted':return _0x4ff1c6(At(_0x227a45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ff1c6(At(_0x227a45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ff1c6(At(_0x227a45,'ELEMENT_TODO_LIST'));}switch(_0x379a0c['newValue']){case'bulleted':return _0x53c1d6(At(_0x227a45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53c1d6(At(_0x227a45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53c1d6(At(_0x227a45,'ELEMENT_TODO_LIST'));}}),_0x527fa6['descriptionFactory']['registerDescriptionCallback'](_0x1656c7=>{const {data:_0x5426e0}=_0x1656c7;if(_0x5426e0&&'listIndent'==_0x5426e0['key'])return null==_0x5426e0['newValue']||null==_0x5426e0['oldValue']&&0x0==_0x5426e0['newValue']?_0xdb2c36:void 0x0;}),_0x527fa6['descriptionFactory']['registerDescriptionCallback'](_0x366640=>{if('attribute'!=_0x366640['type'])return;const {data:_0x41a28c}=_0x366640;if(!_0x41a28c||'listItemId'!=_0x41a28c['key'])return;const _0x1da9fd=Ht(_0x366640);return'newValue'==_0x1da9fd?{'type':'format','content':At(_0x227a45,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1da9fd?{'type':'format','content':At(_0x227a45,'*Split:*\x20list\x20item')}:_0xdb2c36;}),_0x523cc6['model']['document']['registerPostFixer'](_0xbe0152=>this['listItemIdFixer'](_0xbe0152)),_0x523cc6['model']['document']['registerPostFixer'](_0x43d991=>this['noTrackChangesFixer'](_0x43d991)),_0x523cc6['model']['document']['on']('change:data',(_0x521de8,_0x148f2a)=>{if(_0x148f2a['isUndo']||!_0x148f2a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x40d350){if(_0x40d350['batch']['isUndo']||!_0x40d350['batch']['isLocal'])return!0x1;let _0x20addd=!0x1;const _0x1c12a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50d50b=>_0x50d50b['data']&&'listItemId'==_0x50d50b['data']['key'])['filter'](_0xfc329f=>_0xfc329f['data']['newValue']&&_0xfc329f['data']['oldValue']);for(const _0x3abd20 of _0x1c12a4)Ht(_0x3abd20)||(_0x40d350['removeMarker'](_0x3abd20['getFirstMarker']()),_0x20addd=!0x0);return _0x20addd;}['noTrackChangesFixer'](_0x55b8c8){if(_0x55b8c8['batch']['isUndo']||!_0x55b8c8['batch']['isLocal'])return!0x1;const _0x23b654=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x23b654['trackChangesCommand']['value'])return!0x1;let _0x407a60=!0x1;const _0x1158da=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2612bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1a66cd=>'attribute'==_0x1a66cd['type'])['filter'](_0x8f13d8=>_0x1158da['includes'](_0x8f13d8['attributeKey']));if(0x0==_0x2612bc['length'])return _0x407a60;for(const _0x7fea69 of _0x2612bc){const _0xd443ba=_0x23b654['_findSuggestions'](_0x7fea69['range'],'attribute')['filter'](_0x290ee0=>!_0x290ee0['meta']['isNextTo'])['map'](_0x3e8d96=>_0x3e8d96['suggestion'])['filter'](_0x38d570=>{const _0x5c865a=_0x23b654['_getAttributeKey'](_0x38d570);return _0x1158da['includes'](_0x5c865a);});if(_0xd443ba['length']){for(const _0x57f418 of _0xd443ba)_0x55b8c8['removeMarker'](_0x57f418['getFirstMarker']());_0x407a60=!0x0;}}return _0x407a60;}['assureChains'](){const _0x28b498=this['editor']['plugins']['get']('TrackChangesEditing'),_0x296552=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3f2e28;const _0x22a8c5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3211af=>{if(_0x3211af['data']['oldRange']||!_0x3211af['data']['newRange'])return null;if(!_0x3211af['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2f7c4c}=_0xfb1f58(_0x3211af['name']);if(!_0x28b498['hasSuggestion'](_0x2f7c4c))return null;const _0x39e0f9=_0x28b498['getSuggestion'](_0x2f7c4c);return _0x296552['includes'](_0x39e0f9['data']['key']);})['map'](_0x383c38=>{const {id:_0x2e6303}=_0xfb1f58(_0x383c38['name']),_0x97043a=_0x28b498['getSuggestion'](_0x2e6303);return _0x3f2e28=_0x97043a['attributes']['groupId'],_0x97043a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x22a8c5['size'])return;const _0xf45967=_0x28b498['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x611b9b=>'attribute'==_0x611b9b['type']&&_0x611b9b['data']&&_0x296552['includes'](_0x611b9b['data']['key'])&&_0x611b9b['attributes']['groupId']!=_0x3f2e28)['map'](_0x5e9c80=>({'listItem':_0x5e9c80['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5e9c80['attributes']['groupId']})),_0x589f5e=new Set();for(const {groupId:_0x312cae,listItem:_0x256ca5}of _0xf45967)_0x22a8c5['has'](_0x256ca5)&&_0x589f5e['add'](_0x312cae);for(const _0x396a59 of _0x28b498['getSuggestions']())_0x589f5e['has'](_0x396a59['attributes']['groupId'])&&_0x396a59['setAttribute']('groupId',_0x3f2e28);}['_supportLegacySuggestions'](){const _0x2ab4e4=this['editor'],_0x55eba1=_0x2ab4e4['locale'],_0x4e1d78=_0x2ab4e4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4e1d78['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2e95bf,_0xc01223){const _0x17c717=[];for(let _0x1a8900 of _0x2e95bf)_0x1a8900['start']['nodeAfter']===_0x1a8900['end']['parent']&&(_0x1a8900=_0x2ab4e4['model']['createRange'](_0x2ab4e4['model']['createPositionAt'](_0x1a8900['start']['nodeAfter'],0x0))),_0x17c717['push'](_0x1a8900);_0x2ab4e4['model']['change'](_0x3359ca=>{const _0x450629=_0x2ab4e4['model']['document']['selection'],_0x2c5a87=Array['from'](_0x450629['getRanges']())['map'](_0x70de65=>_0x56dc86['fromRange'](_0x70de65));_0x3359ca['setSelection'](_0x17c717),_0x2ab4e4['commands']['get'](_0xc01223['commandName'])['refresh'](),_0xc01223['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2ab4e4['execute'](_0xc01223['commandName'],..._0xc01223['commandParams']),_0x3359ca['setSelection'](_0x2c5a87);for(const _0x564412 of _0x2c5a87)_0x564412['detach']();});}),_0x4e1d78['descriptionFactory']['registerElementLabel'](function(_0x587773){const _0x3ebc9e=!_0x2ab4e4['model']['schema']['isObject'](_0x587773),_0x3b155b=_0x587773['previousSibling'],_0x32a87b=_0x587773['nextSibling'],_0x5b4187=_0x587773['getAttribute']('listItemId'),_0x118fb0=!_0x3b155b||_0x3b155b['getAttribute']('listItemId')!==_0x5b4187,_0x5ddd6e=!_0x32a87b||_0x32a87b['getAttribute']('listItemId')!==_0x5b4187;return _0x3ebc9e&&Boolean(_0x5b4187)&&_0x118fb0&&_0x5ddd6e;},_0x682948=>At(_0x55eba1,'ELEMENT_LIST_ITEM',_0x682948));}['_registerLegacyDescription'](){const _0x26fe6f=this['editor'],_0x16a55a=_0x26fe6f['locale'];function _0x5399dd(_0x201320){const _0x4d08c9=_0x26fe6f['commands']['get']('bulletedList')['value'],_0x5f1689=_0x26fe6f['commands']['get']('numberedList')['value'];return'numberedList'===_0x201320?_0x4d08c9:_0x5f1689;}_0x26fe6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4aace9){if('formatBlock'!=_0x4aace9['type'])return;const {data:_0x275ac8}=_0x4aace9;if(!_0x275ac8)return;let _0x8cb6d0,_0x29beae,_0xbea4a0,_0x4e2da2;switch(_0x275ac8['commandName']){case'bulletedList':_0xbea4a0=_0x275ac8['commandParams'][0x0]['forceValue'],_0x4e2da2=_0x5399dd(_0x275ac8['commandName']),_0x8cb6d0=_0xbea4a0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e2da2&&_0x26fe6f['config']['get']('list.multiBlock')||(_0x8cb6d0='*Change\x20to:*\x20%0'),_0x29beae={'type':'format','content':At(_0x16a55a,_0x8cb6d0,At(_0x16a55a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xbea4a0=_0x275ac8['commandParams'][0x0]['forceValue'],_0x4e2da2=_0x5399dd(_0x275ac8['commandName']),_0x8cb6d0=_0xbea4a0?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4e2da2&&_0x26fe6f['config']['get']('list.multiBlock')||(_0x8cb6d0='*Change\x20to:*\x20%0'),_0x29beae={'type':'format','content':At(_0x16a55a,_0x8cb6d0,At(_0x16a55a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x8cb6d0='*Indent:*\x20%0',_0x29beae={'type':'format','content':At(_0x16a55a,_0x8cb6d0,At(_0x16a55a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x8cb6d0=function(_0x228d37){const _0x4dd92c=_0x228d37['getFirstRange']();let _0x266d36=_0x4dd92c['start']['nodeAfter'];for(;_0x266d36&&_0x4dd92c['containsItem'](_0x266d36);){if(_0x266d36['getAttribute']('listIndent')>0x0)return!0x1;_0x266d36=_0x266d36['nextSibling'];}return!0x0;}(_0x4aace9)?At(_0x16a55a,'*Format:*\x20remove\x20from\x20%0',At(_0x16a55a,function(_0x552c09){return'ELEMENT_'+_0x552c09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4aace9))):At(_0x16a55a,'*Outdent:*\x20%0',At(_0x16a55a,'ELEMENT_LIST_ITEM')),_0x29beae={'type':'format','content':_0x8cb6d0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x275ac8['multipleBlocks']&&(_0x8cb6d0='*Merge:*\x20%0',_0x29beae={'type':'deletion','content':At(_0x16a55a,_0x8cb6d0,At(_0x16a55a,'ELEMENT_LIST_ITEM'))});}return _0x29beae;});}}function Ht(_0x33a59c){let _0x520b0f=_0x33a59c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x520b0f;){const _0x59c296=_0x520b0f['getAttribute']('listItemId');if(!_0x59c296)return!0x1;if(_0x59c296==_0x33a59c['data']['newValue'])return'newValue';if(_0x59c296==_0x33a59c['data']['oldValue'])return'oldValue';_0x520b0f=_0x520b0f['previousSibling'];}return!0x1;}class $t extends _0x1e0278{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5a3815=this['editor']['config']['get']('list.properties'),_0x5dd7a9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a3815['styles']&&_0x5dd7a9['enableDefaultAttributesIntegration']('listStyle'),_0x5a3815['reversed']&&_0x5dd7a9['enableDefaultAttributesIntegration']('listReversed'),_0x5a3815['startIndex']&&_0x5dd7a9['enableDefaultAttributesIntegration']('listStart');const _0xba85ad={'type':'format','content':''};_0x5dd7a9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x52a3cd=this['editor']['locale'];_0x5dd7a9['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x52a3cd,'FORMAT_LIST_REVERSED')),_0x5dd7a9['descriptionFactory']['registerDescriptionCallback'](_0x2bf698=>{const {data:_0x35ab6a}=_0x2bf698;if(_0x35ab6a&&'listReversed'==_0x35ab6a['key'])return null==_0x35ab6a['newValue']||0x0==_0x35ab6a['newValue']&&null==_0x35ab6a['oldValue']?_0xba85ad:void 0x0;}),_0x5dd7a9['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x52a3cd,'FORMAT_LIST_START')),_0x5dd7a9['descriptionFactory']['registerDescriptionCallback'](_0x5a329a=>{const {data:_0xa3bdfc}=_0x5a329a;if(_0xa3bdfc&&'listStart'==_0xa3bdfc['key'])return null==_0xa3bdfc['newValue']||0x1==_0xa3bdfc['newValue']&&null==_0xa3bdfc['oldValue']?_0xba85ad:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a59b5=>{if(_0x5a59b5['batch']['isUndo'])return!0x1;let _0x207fd5=!0x1;const _0x129949=_0x5dd7a9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x572572=>{const _0x4d7418=_0x5dd7a9['_getAttributeKey'](_0x572572);return'listStart'==_0x4d7418||'listReversed'==_0x4d7418;});for(const _0x5c52cf of _0x129949){const _0x3d763d=_0x5c52cf['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3d763d||'customNumbered'==_0x3d763d)continue;_0x5dd7a9['_findSuggestions'](_0x5c52cf['getFirstRange'](),'attribute')['find'](_0x381a2e=>'listType'==_0x5dd7a9['_getAttributeKey'](_0x381a2e['suggestion']))||(_0x5a59b5['removeMarker'](_0x5c52cf['getFirstMarker']()),_0x207fd5=!0x0);}return _0x207fd5;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x34ae21){const _0x2b0db7=this['editor']['locale'],{data:_0x2dd11f}=_0x34ae21,_0x1b891a={'type':'format','content':''};if(!_0x2dd11f||'listStyle'!=_0x2dd11f['key'])return;if(!_0x2dd11f['oldValue'])return'default'==_0x2dd11f['newValue']?_0x1b891a:{'type':'format','content':''+At(_0x2b0db7,'*Set\x20format:*\x20%0',At(_0x2b0db7,this['_getTranslationKeyForListStyle'](_0x2dd11f['newValue'])))};if(!_0x2dd11f['newValue']){if('default'==_0x2dd11f['oldValue'])return _0x1b891a;let _0x495146=_0x34ae21['head'];for(;_0x495146;){if(_0x495146['data']&&'listType'==_0x495146['data']['key']&&_0x495146['data']['newValue'])return _0x1b891a;_0x495146=_0x495146['next'];}return{'type':'format','content':''+At(_0x2b0db7,'*Remove\x20format:*\x20%0',At(_0x2b0db7,this['_getTranslationKeyForListStyle'](_0x2dd11f['oldValue'])))};}if('default'!=_0x2dd11f['newValue'])return{'type':'format','content':''+At(_0x2b0db7,'*Set\x20format:*\x20%0',At(_0x2b0db7,this['_getTranslationKeyForListStyle'](_0x2dd11f['newValue'])))};let _0x23ced1=_0x34ae21['head'];for(;_0x23ced1;){if(_0x23ced1['data']&&'listType'==_0x23ced1['data']['key']&&_0x23ced1['data']['newValue']&&_0x23ced1['data']['oldValue'])return _0x1b891a;_0x23ced1=_0x23ced1['next'];}return{'type':'format','content':At(_0x2b0db7,'*Set\x20format:*\x20%0',At(_0x2b0db7,'ELEMENT_'+_0x34ae21['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1aee08=this['editor'],_0x323f97=_0x1aee08['locale'];_0x1aee08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326577=>{if('formatBlock'!=_0x326577['type'])return;const {data:_0x3105c1}=_0x326577;if(!_0x3105c1)return;let _0x1972d7,_0x17ac0d;switch(_0x3105c1['commandName']){case'listStyle':_0x1972d7='*Change\x20to:*\x20%0',_0x17ac0d={'type':'format','content':At(_0x323f97,_0x1972d7,At(_0x323f97,this['_getTranslationKeyForListStyle'](_0x3105c1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1972d7=_0x3105c1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x17ac0d={'type':'format','content':At(_0x323f97,_0x1972d7)};break;case'listStart':_0x1972d7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x17ac0d={'type':'format','content':At(_0x323f97,_0x1972d7,_0x3105c1['commandParams'][0x0]['startIndex'])};}return _0x17ac0d;});}['_getTranslationKeyForListStyle'](_0x290740){return'ELEMENT_'+function(_0x356111){if(Wt['includes'](_0x356111))return'bulleted';if(Vt['includes'](_0x356111))return'numbered';return null;}(_0x290740)['toUpperCase']()+'_LIST_'+_0x290740['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 _0x1e0278{['afterInit'](){const _0x5e3608=this['editor'];_0x5e3608['commands']['get']('emoji')&&_0x5e3608['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x1e0278{static get['requires'](){return[lt];}['init'](){const _0x4709f1=this['editor'],_0x5a752b=_0x4709f1['plugins']['get']('TrackChangesEditing'),_0x5d59e3=_0x4709f1['commands']['get']('enter');_0x5a752b['enableCommand']('enter',()=>{_0x4709f1['model']['change'](_0x131455=>{const _0x46e758=_0x4709f1['model']['document']['selection'],_0x12120b=_0x46e758['getFirstPosition'](),_0x5137a2=_0x56dc86['fromRange'](_0x46e758['getFirstRange']());if(_0x5d59e3['enterBlock'](_0x131455)){const _0x381711=_0x4709f1['model']['createPositionAt'](_0x12120b['parent']['nextSibling'],0x0),_0x238e8a=_0x131455['createRange'](_0x12120b,_0x381711);_0x5a752b['markInsertion'](_0x238e8a);}else _0x131455['setSelection'](_0x131455['createRange'](_0x5137a2['end']));_0x5137a2['detach'](),_0x5d59e3['fire']('afterExecute',{'writer':_0x131455});});});}}class Kt extends _0x1e0278{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4ed6ef=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ed6ef['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4ed6ef['enableCommand']('findNext'),_0x4ed6ef['enableCommand']('findPrevious'),_0x4ed6ef['enableCommand']('replace'),_0x4ed6ef['enableCommand']('replaceAll');}['handleFindCommand'](_0x191594,_0x41ac06,_0x5d4cc2={}){const _0x59df32=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x191594(_0x228e7d=>{let _0xd7c955=('string'==typeof _0x41ac06?_0x59df32['findByTextCallback'](_0x41ac06,_0x5d4cc2):_0x41ac06)(_0x228e7d);Array['isArray'](_0xd7c955)&&(_0xd7c955={'results':_0xd7c955,'searchText':'string'==typeof _0x41ac06?_0x41ac06:''});const _0x505108=_0xd7c955['results']['filter'](_0x2859ff=>!0x1===this['_isInDeletionRange'](_0x2859ff,_0x228e7d['item']));return{..._0xd7c955,'results':_0x505108};},_0x5d4cc2);}['_isInDeletionRange'](_0x426d15,_0x2fd7a4){const _0x453d48=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2fd7a4,_0x426d15['start']),this['editor']['model']['createPositionAt'](_0x2fd7a4,_0x426d15['end']));for(const _0x156adc of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x453d48['getIntersection'](_0x156adc['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 _0x1e0278{['afterInit'](){const _0x50e848=this['editor']['locale'],_0x253d12=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x45a4c1,commandName:_0x12e97b}of Xt)this['editor']['plugins']['has'](_0x45a4c1)&&_0x253d12['enableDefaultAttributesIntegration'](_0x12e97b);_0x253d12['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x50e848,'FORMAT_FONT_SIZE')),_0x253d12['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x50e848,'FORMAT_FONT_FAMILY')),_0x253d12['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x50e848,'FORMAT_FONT_COLOR')),_0x253d12['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x50e848,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x849c81=this['editor'],_0x5d6adf=_0x849c81['locale'];_0x849c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bacf7=>{const _0x3bc3a7=_0x5d6adf['t'];if('formatInline'!=_0x5bacf7['type'])return;const {data:_0x5255c7}=_0x5bacf7;if(null!=_0x5255c7){if('fontSize'==_0x5255c7['commandName']){const _0x4234ab=_0x5255c7['commandParams'][0x0]['value'];if(_0x4234ab){const _0x3959ae=_0x3bc3a7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x863b99=>_0x863b99['model']==_0x4234ab)['title'])['toLowerCase']();return{'type':'format','content':At(_0x5d6adf,'*Set\x20font\x20size:*\x20%0',_0x3959ae)};}return{'type':'format','content':At(_0x5d6adf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5255c7['commandName']){const _0x3e6be6=_0x5255c7['commandParams'][0x0]['value'];return _0x3e6be6?{'type':'format','content':At(_0x5d6adf,'*Set\x20font\x20family:*\x20%0',_0x3e6be6)}:{'type':'format','content':At(_0x5d6adf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5255c7['commandName']){const _0x30efdf=_0x5255c7['commandParams'][0x0]['value'];if(_0x30efdf){const _0x4d68e7=_0x45513a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fd72e=>_0x3fd72e['model']==_0x30efdf);let _0x5cc884=_0x30efdf,_0x1ce557='';return _0x4d68e7&&(_0x5cc884=_0x4d68e7['label'],_0x1ce557=_0x3bc3a7(_0x5cc884)['toLowerCase']()),{'type':'format','content':At(_0x5d6adf,'*Set\x20font\x20color:*\x20%0',_0x1ce557)['trim'](),'color':{'value':_0x30efdf,'title':_0x1ce557||_0x5cc884}};}return{'type':'format','content':At(_0x5d6adf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5255c7['commandName']){const _0x3a6db9=_0x5255c7['commandParams'][0x0]['value'];if(_0x3a6db9){const _0x3ff0cb=_0x45513a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x8d18c6=>_0x8d18c6['model']==_0x3a6db9);let _0x39a308=_0x3a6db9,_0x5935e3='';return _0x3ff0cb&&(_0x39a308=_0x3ff0cb['label'],_0x5935e3=_0x3bc3a7(_0x39a308)['toLowerCase']()),{'type':'format','content':At(_0x5d6adf,'*Set\x20font\x20background\x20color:*\x20%0',_0x5935e3)['trim'](),'color':{'value':_0x3a6db9,'title':_0x5935e3||_0x39a308}};}return{'type':'format','content':At(_0x5d6adf,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x1e0278{['afterInit'](){const {plugins:_0x47b0f4}=this['editor'];_0x47b0f4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x47b0f4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2dba0a,plugins:_0x469abd,commands:_0x1248e4}=this['editor'],_0x26c48c=_0x469abd['get']('TrackChangesEditing');_0x1248e4['get']('footnotesStyle')&&_0x26c48c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1248e4['get']('footnotesStart')&&_0x26c48c['enableDefaultAttributesIntegration']('footnotesStart'),_0x26c48c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x2dba0a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x26c48c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x2dba0a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x6d6460=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2f619b,commands:_0x433ac0}=this['editor'];_0x433ac0['get']('insertFootnote')&&_0x6d6460['enableCommand']('insertFootnote'),_0x6d6460['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4fea01=>At(_0x2f619b,'ELEMENT_FOOTNOTE_REF',_0x4fea01)),_0x6d6460['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x2a0295=>At(_0x2f619b,'ELEMENT_FOOTNOTE_DEFINITION',_0x2a0295)),_0x6d6460['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x28b03b=>At(_0x2f619b,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x28b03b));}}class Qt extends _0x1e0278{['afterInit'](){const _0x1df352=this['editor'],_0x9f5c0a=_0x1df352['plugins']['get']('TrackChangesEditing'),_0x1bc66f=_0x1df352['commands']['get']('copyFormat'),_0x148cdf=_0x1df352['commands']['get']('pasteFormat');_0x1bc66f&&_0x148cdf&&(_0x9f5c0a['enableDefaultAttributesIntegration']('pasteFormat'),_0x9f5c0a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5a26a7=this['editor'],_0x2cae54=_0x5a26a7['locale'];_0x5a26a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x216149=>{if('formatBlock'!=_0x216149['type']&&'formatInline'!=_0x216149['type'])return;const {data:_0x3e5a7f}=_0x216149;if(_0x3e5a7f&&'pasteFormat'===_0x3e5a7f['commandName']){const _0x5acc66=[],_0x1d58f0=_0x3e5a7f['commandParams'][0x0];for(const [_0x444691,_0x392637]of Object['entries'](_0x1d58f0))_0x5acc66['push'](Zt(_0x5a26a7,_0x444691,_0x392637));return _0x5acc66['length']?{'type':'format','content':At(_0x2cae54,'*Set\x20format\x20to:*\x20%0',_0x5acc66['join'](',\x20'))}:{'type':'format','content':At(_0x2cae54,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x180432,_0x87d648,_0x353bed){const _0x407638=_0x180432['locale']['t'],_0x1e1e66=_0x87d648['split'](/(?=[A-Z])/)['join']('\x20'),_0x10d695=_0x407638(_0x1e1e66['charAt'](0x0)['toUpperCase']()+_0x1e1e66['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x353bed)return _0x10d695;if('fontColor'===_0x87d648||'fontBackgroundColor'===_0x87d648){const _0x4cd8a9=_0x45513a(_0x180432['config']['get']('fontColor.colors'))['find'](_0x14b0e2=>_0x14b0e2['model']==_0x353bed);return _0x10d695+'\x20('+(_0x4cd8a9?_0x407638(_0x4cd8a9['label'])['toLowerCase']():_0x353bed)+')';}if('fontSize'===_0x87d648&&isNaN(parseFloat(_0x353bed))){const _0x477cba=_0x180432['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x180432['config']['get']('fontSize.options'))['find'](_0x4e462f=>_0x4e462f['model']==_0x353bed);return _0x10d695+'\x20('+(_0x477cba?_0x407638(_0x477cba['title'])['toLowerCase']():_0x353bed)+')';}return _0x10d695+'\x20('+_0x353bed+')';}class Jt extends _0x1e0278{['_headingOptions'];['afterInit'](){const _0x42d8ef=this['editor'];if(!_0x42d8ef['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x42d8ef['config']['get']('heading.options');const _0x263e6a=_0x42d8ef['locale'],_0x4c487e=_0x42d8ef['plugins']['get']('TrackChangesEditing');_0x4c487e['enableDefaultAttributesIntegration']('heading');for(const _0x3aadba of this['_headingOptions'])'paragraph'!=_0x3aadba['model']&&_0x4c487e['descriptionFactory']['registerElementLabel'](_0x3aadba['model'],_0x422175=>{const _0x25c1b4=this['_getHeadingLevel'](_0x3aadba['model']);return null!==_0x25c1b4?_0x35108a(_0x422175,_0x25c1b4):_0x5a846b(_0x422175,_0x3aadba['title']);});function _0x35108a(_0x152112,_0x5d7ab7){return At(_0x263e6a,'ELEMENT_HEADING',[_0x152112,_0x5d7ab7]);}function _0x5a846b(_0x5c37c7,_0x291617){return At(_0x263e6a,'ELEMENT_HEADING_CUSTOM',[_0x5c37c7,_0x291617]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5abf94=this['editor'],_0x4bf5c6=_0x5abf94['locale'];function _0x2418f9(_0x52335f,_0x5af68d){return At(_0x4bf5c6,'ELEMENT_HEADING_CUSTOM',[_0x52335f,_0x5af68d]);}_0x5abf94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bff24=>{if('formatBlock'!=_0x3bff24['type'])return;const {data:_0x3d5907}=_0x3bff24;if(_0x3d5907&&'heading'==_0x3d5907['commandName']){const _0x4ab525=_0x3d5907['commandParams'][0x0]['value'],_0x1a6172=this['_getHeadingLevel'](_0x4ab525);if(null!==_0x1a6172)return{'type':'format','content':At(_0x4bf5c6,'*Change\x20to:*\x20%0',(_0x7a70b5=0x1,_0x570942=_0x1a6172,At(_0x4bf5c6,'ELEMENT_HEADING',[_0x7a70b5,_0x570942])))};const _0x265cc3=this['_headingOptions']['find'](_0x4cb541=>_0x4cb541['model']===_0x4ab525)['title'];return{'type':'format','content':At(_0x4bf5c6,'*Change\x20to:*\x20%0',_0x2418f9(0x1,_0x265cc3))};}var _0x7a70b5,_0x570942;});}['_getHeadingLevel'](_0x5b6166){const _0x19df23=_0x5b6166['match'](/^heading(\d+)/);if(_0x19df23)return _0x19df23[0x1];const _0x36991f=this['_headingOptions']?.['find'](_0x3e678c=>_0x3e678c['model']==_0x5b6166);if(_0x36991f&&_0x36991f['view']){const _0x17f7f8=_0x36991f['view'],_0x11c5b6=(_0x17f7f8['name']??_0x17f7f8)['match'](/^h(\d+)/);if(_0x11c5b6)return _0x11c5b6[0x1];}return null;}}class te extends _0x1e0278{['afterInit'](){const _0x107d29=this['editor'];if(!_0x107d29['plugins']['has']('HighlightEditing'))return;const _0x1fb37b=_0x107d29['plugins']['get']('TrackChangesEditing'),_0x461b57=_0x107d29['locale'];_0x1fb37b['enableDefaultAttributesIntegration']('highlight'),_0x1fb37b['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x461b57,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cc299=this['editor'],_0x298cca=_0x1cc299['locale'];_0x1cc299['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd1e4b0=>{if('formatInline'!=_0xd1e4b0['type'])return;const {data:_0x4179f9}=_0xd1e4b0;if(_0x4179f9&&'highlight'==_0x4179f9['commandName']){const _0x29598f=_0x298cca['t'],_0x2a6dfc=_0x4179f9['commandParams'][0x0]['value'];if(_0x2a6dfc){const _0x20a38f=_0x1cc299['config']['get']('highlight.options')['find'](_0x2083f9=>_0x2083f9['model']==_0x2a6dfc),_0x4d2d31=_0x29598f(_0x20a38f['title'])['toLowerCase']();return{'type':'format','content':At(_0x298cca,'*Set\x20highlight:*\x20%0',_0x4d2d31),'color':{'value':_0x20a38f['color'],'title':_0x20a38f['title']}};}return{'type':'format','content':At(_0x298cca,'*Remove\x20highlight*',At(_0x298cca,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x1e0278{['afterInit'](){const _0x43bc0e=this['editor'];if(!_0x43bc0e['plugins']['has']('HorizontalLineEditing'))return;_0x43bc0e['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x41a63d=_0x43bc0e['plugins']['get']('TrackChangesEditing'),_0x5103a3=_0x43bc0e['locale'];_0x41a63d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32f10d=>At(_0x5103a3,'ELEMENT_HORIZONTAL_LINE',_0x32f10d));}}class ne extends _0x1e0278{['afterInit'](){const _0x406e46=this['editor'];if(!_0x406e46['plugins']['has']('HtmlEmbed'))return;const _0x3140db=_0x406e46['plugins']['get']('TrackChangesEditing'),_0x2535a8=_0x406e46['locale'];_0x3140db['descriptionFactory']['registerElementLabel']('rawHtml',_0x58b70a=>At(_0x2535a8,'ELEMENT_HTML_EMBED',_0x58b70a)),_0x3140db['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3140db['descriptionFactory']['registerDescriptionCallback'](_0x518bd6=>{if('attribute'!=_0x518bd6['type'])return;const {data:_0x5939df}=_0x518bd6;if(_0x5939df&&'value'==_0x5939df['key']&&_0x518bd6['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1679a5=At(_0x2535a8,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2535a8,'*Change\x20%0\x20content*',_0x1679a5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35b0f5=this['editor'],_0x4140e4=_0x35b0f5['locale'];_0x35b0f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17c569=>{if('formatBlock'!=_0x17c569['type'])return;const {data:_0xb8a1ca}=_0x17c569;if(_0xb8a1ca&&'htmlEmbed'==_0xb8a1ca['commandName']){const _0x24dd43=At(_0x4140e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x4140e4,'*Change\x20%0\x20content*',_0x24dd43)};}});}}class ie extends _0x1e0278{['afterInit'](){const _0x1ed8a=this['editor'];if(!_0x1ed8a['plugins']['has']('ImageEditing'))return;const _0x491419=_0x1ed8a['plugins']['get']('TrackChangesEditing'),_0x4a37d3=_0x1ed8a['plugins']['get']('ImageUtils'),_0x321278=_0x1ed8a['locale'];_0x491419['enableCommand']('insertImage'),_0x491419['descriptionFactory']['registerElementLabel']('imageBlock',_0x57bef0=>At(_0x321278,'ELEMENT_IMAGE',_0x57bef0)),_0x491419['descriptionFactory']['registerElementLabel']('imageInline',_0x4db9f7=>At(_0x321278,'ELEMENT_INLINE_IMAGE',_0x4db9f7)),_0x491419['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x321278,'ELEMENT_CAPTION')),_0x1ed8a['plugins']['has']('ImageUploadEditing')&&_0x491419['enableCommand']('uploadImage'),_0x1ed8a['plugins']['has']('ImageBlockEditing')&&_0x1ed8a['plugins']['has']('ImageInlineEditing')&&(_0x491419['enableCommand']('imageTypeInline',(_0x5842ce,_0x4bccf7)=>{const _0x100937=_0x4a37d3['getClosestSelectedImageElement'](_0x1ed8a['model']['document']['selection']);_0x1ed8a['model']['change'](()=>{_0x491419['markBlockFormat'](_0x100937,{'commandName':'imageTypeInline','commandParams':[_0x4bccf7]},[],'convertBlockImageToInline');});}),_0x491419['enableCommand']('imageTypeBlock',(_0x515ac6,_0x3e3aef)=>{_0x1ed8a['model']['change'](_0x343932=>{let _0x3df53=_0x4a37d3['getClosestSelectedImageElement'](_0x1ed8a['model']['document']['selection']),_0x15622f=_0x343932['createRangeOn'](_0x3df53);const _0x24d9b7=tt['fromPosition'](_0x15622f['start'],'toPrevious'),_0x5b46ba=tt['fromPosition'](_0x15622f['end'],'toNext');_0x491419['forceDefaultExecution'](()=>_0x515ac6(_0x3e3aef)),_0x3df53=_0x4a37d3['getClosestSelectedImageElement'](_0x1ed8a['model']['document']['selection']),_0x15622f=_0x343932['createRangeOn'](_0x3df53);const _0x53954a=_0x343932['createRange'](_0x24d9b7,_0x5b46ba);_0x24d9b7['detach'](),_0x5b46ba['detach'](),_0x491419['markBlockFormat'](_0x3df53,{'commandName':'imageTypeInline','commandParams':[_0x3e3aef]},[],'convertInlineImageToBlock'),_0x53954a['start']['isBefore'](_0x15622f['start'])&&_0x491419['markInsertion'](_0x343932['createRange'](_0x53954a['start'],_0x15622f['start']),'convertInlineImageToBlock'),_0x15622f['end']['isBefore'](_0x53954a['end'])&&_0x491419['markInsertion'](_0x343932['createRange'](_0x15622f['end'],_0x53954a['end']),'convertInlineImageToBlock');});}),_0x491419['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x491419['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x491419['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x491419['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x491419['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x491419['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x24636b])=>{const _0x59d35f=_0x491419['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x15a576=_0x24636b['start'],_0x438021=_0x24636b['end'];const _0x2c533b=_0x1ed8a['model']['schema']['getNearestSelectionRange'](_0x15a576,'backward'),_0x3e269a=_0x1ed8a['model']['schema']['getNearestSelectionRange'](_0x438021,'forward');_0x2c533b['isCollapsed']&&(_0x15a576=_0x2c533b['start']),_0x3e269a['isCollapsed']&&(_0x438021=_0x3e269a['end']),_0x59d35f([_0x1ed8a['model']['createRange'](_0x15a576,_0x438021)]);}),_0x491419['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9378aa),_0x491419['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9378aa)),_0x1ed8a['plugins']['has']('ImageCaptionEditing')&&(_0x491419['enableCommand']('toggleImageCaption',(_0x1427f3,_0x35882b)=>{const _0x145447=_0x1ed8a['plugins']['get']('ImageCaptionUtils');let _0x128a1b=_0x4a37d3['getClosestSelectedImageElement'](_0x1ed8a['model']['document']['selection']),_0x59d950=_0x145447['getCaptionFromImageModelElement'](_0x128a1b);_0x1ed8a['model']['change'](()=>{if(_0x59d950)return void _0x491419['markDeletion'](_0x1ed8a['model']['createRangeOn'](_0x59d950));const _0xc1fac1=_0x4a37d3['isBlockImage'](_0x128a1b);_0x1427f3(_0x35882b),_0x128a1b=_0x4a37d3['getClosestSelectedImageElement'](_0x1ed8a['model']['document']['selection']),_0x59d950=_0x145447['getCaptionFromImageModelElement'](_0x128a1b),_0x491419['markInsertion'](_0x1ed8a['model']['createRangeOn'](_0x59d950),_0xc1fac1?null:'imageCaption');});}),_0x491419['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9378aa));const _0x919b8b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c661c(_0xee388a,_0x4ae03b){const _0x5d7e0f=_0x919b8b['findIndex'](({type:_0x2cf11b,subType:_0x5747a1})=>_0xee388a['type']==_0x2cf11b&&_0xee388a['subType']==_0x5747a1),_0x1385ea=_0x919b8b['findIndex'](({type:_0xe78210,subType:_0x3f2c3c})=>_0x4ae03b['type']==_0xe78210&&_0x4ae03b['subType']==_0x3f2c3c);if(_0x5d7e0f<0x0||_0x1385ea<0x0)return!0x1;const _0x1b953e=_0xee388a['getFirstRange'](),_0x5b530e=_0x4ae03b['getFirstRange']();if((0x0==_0x5d7e0f||0x1==_0x5d7e0f)&&0x2==_0x1385ea&&_0x1b953e['isIntersecting'](_0x5b530e))return!0x0;if(0x2==_0x5d7e0f&&0x3==_0x1385ea){const _0x4bc6b1=_0x491419['_findSuggestions'](_0x1b953e,'insertion')['filter'](({suggestion:_0x2a9e9b,meta:_0x401e16})=>_0x401e16['isOwn']&&'convertInlineImageToBlock'==_0x2a9e9b['subType']);if(_0x4bc6b1['length']>0x1&&_0x5b530e['end']['isEqual'](_0x1b953e['start']))return!0x0;if(0x1==_0x4bc6b1['length']&&(_0x1b953e['start']['isEqual'](_0x5b530e['end'])||_0x1b953e['end']['isEqual'](_0x5b530e['start'])))return!0x0;}if(0x3==_0x5d7e0f&&0x3==_0x1385ea&&_0x1b953e['start']['isBefore'](_0x5b530e['start'])){const _0x556f80=_0x1b953e['end']['nodeAfter'],_0x596f1a=_0x5b530e['start']['nodeBefore'];return _0x4a37d3['isBlockImage'](_0x556f80)&&_0x556f80===_0x596f1a;}return!0x1;}function _0x9378aa(_0x497d5a,_0x1ca035){return _0x4c661c(_0x497d5a,_0x1ca035)?[_0x497d5a,_0x1ca035]:_0x4c661c(_0x1ca035,_0x497d5a)?[_0x1ca035,_0x497d5a]:null;}_0x1ed8a['plugins']['has']('ImageResize')&&(_0x491419['enableDefaultAttributesIntegration']('resizeImage'),_0x491419['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x321278,'FORMAT_IMAGE_SIZE'))),_0x1ed8a['plugins']['has']('ImageTextAlternativeEditing')&&_0x491419['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ed8a['plugins']['has']('PictureEditing')&&_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x225bb6=>{if('attribute'!=_0x225bb6['type'])return;const {data:_0x510c20}=_0x225bb6;return _0x510c20&&'sources'==_0x510c20['key']?{'type':'format','content':''}:void 0x0;}),_0x1ed8a['plugins']['has']('ImageSizeAttributes')&&_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x17206d=>{if('attribute'!=_0x17206d['type'])return;const {data:_0x15ef89}=_0x17206d;return!_0x15ef89||'width'!=_0x15ef89['key']&&'height'!=_0x15ef89['key']?void 0x0:{'type':'format','content':''};}),_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x50f642=>{if(!!_0x919b8b['find'](({type:_0x4e46e2,subType:_0x27aedd})=>_0x50f642['type']==_0x4e46e2&&_0x50f642['subType']==_0x27aedd))return _0x50f642['previous']?{}:void 0x0;}),_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x59f480=>{if('insertion'==_0x59f480['type']||'deletion'==_0x59f480['type']){const _0x24bf05=_0x59f480['getContainedElement']();if(_0x24bf05&&_0x24bf05['is']('element','caption'))return{'type':'insertion'==_0x59f480['type']?'addObject':'removeObject','element':_0x24bf05,'quantity':0x1};}}),_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x1b2060=>'formatBlock'==_0x1b2060['type']&&'convertInlineImageToBlock'==_0x1b2060['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1b2060['type']&&'convertBlockImageToInline'==_0x1b2060['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x491419['descriptionFactory']['registerDescriptionCallback'](_0x3cf55b=>{if('attribute'!=_0x3cf55b['type'])return;const {data:_0x54ea58}=_0x3cf55b;if(!_0x54ea58||'alt'!=_0x54ea58['key'])return;const _0x153d9a=_0x54ea58['newValue'];return _0x153d9a?{'type':'format','content':At(_0x321278,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x153d9a+'\x22')}:{'type':'format','content':At(_0x321278,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23bacf=this['editor'],_0xb246f=_0x23bacf['locale'];_0x23bacf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13d902=>{if('formatBlock'!=_0x13d902['type']&&'formatInline'!=_0x13d902['type'])return;const {data:_0x1e419b}=_0x13d902;if(_0x1e419b){if('imageTextAlternative'==_0x1e419b['commandName']){const _0x527c99=_0x1e419b['commandParams'][0x0]['newValue'];return _0x527c99?{'type':'format','content':At(_0xb246f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x527c99+'\x22')}:{'type':'format','content':At(_0xb246f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1e419b['commandName']){const _0x18407c=_0x1e419b['commandParams'][0x0]['width'];return _0x18407c?{'type':'format','content':At(_0xb246f,'*Set\x20image\x20width:*\x20%0',_0x18407c)}:{'type':'format','content':At(_0xb246f,'*Reset\x20image\x20width*')};}}});}}class se extends _0x1e0278{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42bfc2=this['editor']['locale'],_0x5485eb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5485eb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5485eb['descriptionFactory']['registerDescriptionCallback'](_0x189db8=>{if('attribute'!=_0x189db8['type'])return;const {data:_0xf442bb}=_0x189db8;return _0xf442bb&&'src'==_0xf442bb['key']?_0xf442bb['newValue']&&_0xf442bb['oldValue']?{'type':'format','content':At(_0x42bfc2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4de8f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4de8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4de8f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4de8f2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4de8f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40355a=this['editor'],_0x1f1fa8=_0x40355a['locale'];_0x40355a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25d05b=>{if('formatBlock'!=_0x25d05b['type']&&'formatInline'!=_0x25d05b['type'])return;const {data:_0x1ee2fa}=_0x25d05b;if(!_0x1ee2fa||'replaceImageSource'!=_0x1ee2fa['commandName'])return;return{'type':'format','content':At(_0x1f1fa8,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x1e0278{['afterInit'](){const _0x31f94c=this['editor'];if(!_0x31f94c['plugins']['has']('ImageStyleEditing'))return;const _0x12592d=_0x31f94c['plugins']['get']('TrackChangesEditing'),_0x5f51a8=_0x31f94c['plugins']['get']('ImageUtils'),_0x2c6fe4={};_0x12592d['enableCommand']('imageStyle',(_0xa16ce6,_0x56022f)=>{const _0x1e51ac=_0x31f94c['plugins']['get']('Users')['me'],_0x2492ed=_0x31f94c['commands']['get']('imageStyle');let _0x3b49be=_0x5f51a8['getClosestSelectedImageElement'](_0x31f94c['model']['document']['selection']),_0x59bff5=_0x31f94c['model']['createRangeOn'](_0x3b49be),_0x582caf=_0x2492ed['value'];if(_0x582caf==_0x56022f['value'])return;const _0x561d9a={'commandName':'imageStyle','commandParams':[_0x56022f],'formatGroupId':_0x3a482b()};_0x31f94c['model']['change'](()=>{if(_0x12592d['getSuggestions']()['filter'](_0x129752=>_0x129752['isInContent']&&_0x1e51ac==_0x129752['author']&&('formatBlock'==_0x129752['type']||'formatInline'==_0x129752['type'])&&('imageStylePreApply'==_0x129752['subType']||'imageStylePostApply'==_0x129752['subType'])&&_0x129752['getFirstRange']()['isEqual'](_0x59bff5))['forEach'](_0xa09ee5=>_0x12592d['discardSuggestion'](_0xa09ee5['head'])),_0x3b49be=_0x5f51a8['getClosestSelectedImageElement'](_0x31f94c['model']['document']['selection']),_0x59bff5=_0x31f94c['model']['createRangeOn'](_0x3b49be),_0x2492ed['refresh'](),_0x31f94c['commands']['get']('imageTypeInline')['refresh'](),_0x31f94c['commands']['get']('imageTypeBlock')['refresh'](),_0x582caf=_0x2492ed['value'],_0x582caf!=_0x56022f['value'])return _0x5f51a8['isInlineImage'](_0x3b49be)&&_0x2492ed['shouldConvertImageType'](_0x56022f['value'],_0x3b49be)?(_0xa16ce6({..._0x56022f,'setImageSizes':!0x1}),_0x3b49be=_0x5f51a8['getClosestSelectedImageElement'](_0x31f94c['model']['document']['selection']),void _0x12592d['markBlockFormat'](_0x3b49be,{..._0x561d9a,'commandReversedParams':[{'value':_0x582caf||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5f51a8['isBlockImage'](_0x3b49be)?_0x12592d['markBlockFormat'](_0x3b49be,_0x561d9a,[],'imageStylePostApply'):_0x12592d['markInlineFormat'](_0x59bff5,_0x561d9a,'imageStylePostApply'));});});for(const _0x152d0c of _0x31f94c['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2c6fe4[_0x152d0c['name']]=_0x152d0c['title']['toLowerCase']();_0x12592d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x12592d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x12592d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x12592d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1034bd])=>{_0x5f51a8['setImageNaturalSizeAttributes'](_0x1034bd['getContainedElement']());}),_0x12592d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x20111a,_0x5ccdfb)=>{_0x12592d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x20111a,{'commandName':_0x5ccdfb['commandName'],'commandParams':_0x5ccdfb['commandReversedParams']});}),_0x12592d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x420796,_0x26aa59){if(_0x29d1ea(_0x420796,_0x26aa59))return[_0x420796,_0x26aa59];if(_0x29d1ea(_0x26aa59,_0x420796))return[_0x26aa59,_0x420796];return null;});const _0x40c1d2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29d1ea(_0x13af98,_0xad1ee5){const _0x370cca=_0x40c1d2['findIndex'](({type:_0x571449,subType:_0x4a0fd1})=>_0x13af98['type']==_0x571449&&_0x13af98['subType']==_0x4a0fd1),_0x5e777f=_0x40c1d2['findIndex'](({type:_0x110a6a,subType:_0x2b8e12})=>_0xad1ee5['type']==_0x110a6a&&_0xad1ee5['subType']==_0x2b8e12);if(_0x370cca<0x0||_0x5e777f<0x0)return!0x1;const _0x233391=_0x13af98['getFirstRange'](),_0x3aeb49=_0xad1ee5['getFirstRange']();if((0x0==_0x370cca||0x1==_0x370cca)&&0x2==_0x5e777f&&_0x233391['isIntersecting'](_0x3aeb49))return!0x0;if(0x2==_0x370cca&&0x3==_0x5e777f){const _0x38d4d4=_0x12592d['_findSuggestions'](_0x233391,'insertion')['filter'](({suggestion:_0x3fb032,meta:_0x1ba719})=>_0x1ba719['isOwn']&&'convertInlineImageToBlock'==_0x3fb032['subType']);if(_0x38d4d4['length']>0x1&&_0x3aeb49['end']['isEqual'](_0x233391['start']))return!0x0;if(0x1==_0x38d4d4['length']&&(_0x233391['start']['isEqual'](_0x3aeb49['end'])||_0x233391['end']['isEqual'](_0x3aeb49['start'])))return!0x0;}if(0x3==_0x370cca&&0x3==_0x5e777f&&_0x233391['start']['isBefore'](_0x3aeb49['start'])){const _0x1400bd=_0x233391['end']['nodeAfter'],_0x4b6458=_0x3aeb49['start']['nodeBefore'];return _0x5f51a8['isBlockImage'](_0x1400bd)&&_0x1400bd===_0x4b6458;}return!0x1;}_0x31f94c['model']['document']['registerPostFixer'](()=>{let _0x3599ac=!0x1;const _0xb9971a=Array['from'](_0x31f94c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1faec6,data:_0x18ad34}of _0xb9971a){const {group:_0x50fea3,type:_0x438840,subType:_0x2b7f2a,id:_0x213e36}=_0xfb1f58(_0x1faec6);if('suggestion'==_0x50fea3&&_0x12592d['hasSuggestion'](_0x213e36)){if('formatBlock'==_0x438840&&('imageStylePreApply'==_0x2b7f2a||'imageStylePostApply'==_0x2b7f2a)){const _0x14a7a9=_0x12592d['getSuggestion'](_0x213e36);if(_0x18ad34['newRange']){const _0x28132f=_0x14a7a9['getFirstRange']()['getContainedElement']();if(_0x5f51a8['isBlockImage'](_0x28132f))continue;_0x12592d['discardSuggestion'](_0x14a7a9),_0x3599ac=!0x0;}}if('insertion'==_0x438840&&'imageCaption'==_0x2b7f2a&&!_0x18ad34['newRange']){const _0x3d59b2=_0x12592d['getSuggestion'](_0x213e36);_0x3d59b2['next']&&_0x3d59b2['next']['isInContent']&&(_0x12592d['discardSuggestion'](_0x3d59b2['next']),_0x3599ac=!0x0);}}}return _0x3599ac;}),this['_registerLegacyDescription'](_0x2c6fe4);}['_registerLegacyDescription'](_0x5d6bcd){const _0xfa1fd3=this['editor'],_0x352f8e=_0xfa1fd3['locale'];_0xfa1fd3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7712=>{if('formatBlock'!=_0x3f7712['type']&&'formatInline'!=_0x3f7712['type'])return;const {data:_0x2b409e}=_0x3f7712;if(!_0x2b409e||'imageStyle'!=_0x2b409e['commandName'])return;const _0xc8a749=_0x2b409e['commandParams'][0x0]['value'];return _0x13b7a9('side'===_0xc8a749?At(_0x352f8e,'FORMAT_SIDE_IMAGE'):_0x5d6bcd[_0xc8a749]||_0xc8a749);function _0x13b7a9(_0x49a3db){return{'type':'format','content':At(_0x352f8e,'*Format:*\x20%0',_0x49a3db)};}});}}class oe extends _0x1e0278{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x38bcd0){super(_0x38bcd0),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x29c94e=this['editor'],_0x50b016=_0x29c94e['commands']['get']('importWord'),_0x41dbd7=_0x29c94e['commands']['get']('trackChanges');_0x50b016&&(_0x50b016['on']('execute',(_0x4444fc,[,_0x8822cc])=>{this['_trackChangesValueDuringImport']=_0x41dbd7['value'],_0x8822cc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50b016,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50b016,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x41dbd7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x29c94e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xa94534,_0x59b367){const {suggestions:_0x1bf8bc}=_0x59b367,_0x2abf55=this['editor']['commands']['get']('trackChanges'),_0x528bc4=_0x2abf55['value'];this['_trackChangesValueDuringImport']!==_0x528bc4&&(_0x2abf55['execute'](),this['_trackChangesExecuted']=!0x0),_0x1bf8bc&&_0x1bf8bc['forEach'](({id:_0x260bea,type:_0x3020f0,author:_0x284ab0,created_at:_0x362646})=>{const _0x57db97={'id':_0x260bea,'type':_0x3020f0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x284ab0,'createdAt':_0x362646?new Date(_0x362646):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x57db97);});}}class ae extends _0x1e0278{['afterInit'](){const _0x297003=this['editor'],_0x6854a4=_0x297003['plugins']['get']('TrackChangesEditing');if(_0x297003['plugins']['has']('IndentEditing')&&(_0x6854a4['enableCommand']('indent'),_0x6854a4['enableCommand']('outdent')),_0x297003['plugins']['has']('IndentBlock')){for(const _0x25b09b of['indentBlock','outdentBlock'])_0x6854a4['enableDefaultAttributesIntegration'](_0x25b09b);if(_0x297003['plugins']['has']('ListEditing')){for(const _0x11c004 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x6854a4['enableDefaultAttributesIntegration'](_0x11c004);}}const _0x4706d6=_0x297003['locale'];_0x6854a4['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x4706d6,'FORMAT_INDENT')),_0x6854a4['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x4706d6,'FORMAT_INDENT')),_0x6854a4['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x4706d6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b6fc9=this['editor'],_0x11c34e=_0x1b6fc9['locale'],_0xae3700=_0x1b6fc9['plugins']['get']('TrackChangesEditing');_0xae3700['descriptionFactory']['registerDescriptionCallback'](_0x46014f=>{if('formatBlock'!=_0x46014f['type'])return;const {data:_0x59f664}=_0x46014f;if(!_0x59f664)return;if('indentBlock'!=_0x59f664['commandName']&&'outdentBlock'!=_0x59f664['commandName'])return;const _0x55399c=_0x46014f['getItems']()[0x0],_0x37ce4=_0xae3700['descriptionFactory']['getItemLabel'](_0x55399c);return'indentBlock'==_0x59f664['commandName']?{'type':'format','content':At(_0x11c34e,'*Indent:*\x20%0',_0x37ce4)}:'outdentBlock'==_0x59f664['commandName']?{'type':'format','content':At(_0x11c34e,'*Outdent:*\x20%0',_0x37ce4)}:void 0x0;});}}class ce extends _0x1e0278{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x1e0278{['afterInit'](){const _0x55abe5=this['editor'];if(!_0x55abe5['plugins']['has']('LinkEditing'))return;const _0x2cfde3=_0x55abe5['plugins']['get']('TrackChangesEditing'),_0x1d593f=_0x55abe5['commands']['get']('link');_0x2cfde3['enableDefaultAttributesIntegration']('link'),_0x2cfde3['enableDefaultAttributesIntegration']('unlink');for(const _0x540a1f of _0x1d593f['manualDecorators'])_0x2cfde3['descriptionFactory']['registerAttributeLabel'](_0x540a1f['id'],'link\x20('+_0x540a1f['label']['toLowerCase']()+')');_0x2cfde3['descriptionFactory']['registerDescriptionCallback'](_0x17dd58=>{if('attribute'!=_0x17dd58['type'])return;const {data:_0x139fde}=_0x17dd58;if(!_0x139fde||'linkHref'!=_0x139fde['key'])return;const _0x26ca2c=_0x139fde['newValue'],_0x8e6613=_0x55abe5['locale'];return{'type':'format','content':null==_0x26ca2c?At(_0x8e6613,'*Remove\x20link*'):At(_0x8e6613,'*Set\x20link:*\x20%0','\x22'+_0x26ca2c+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22ca61=this['editor'],_0x218d4f=_0x22ca61['locale'];_0x22ca61['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d1b18=>{if('formatInline'!=_0x2d1b18['type'])return;const {data:_0x1da52c}=_0x2d1b18;if(_0x1da52c){if('link'==_0x1da52c['commandName']){const _0x4f813b=_0x1da52c['commandParams'][0x0];return{'type':'format','content':At(_0x218d4f,'*Set\x20link:*\x20%0','\x22'+_0x4f813b+'\x22')};}return'unlink'==_0x1da52c['commandName']?{'type':'format','content':At(_0x218d4f,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x1e0278{['afterInit'](){const _0x42eb53=this['editor'],_0x11a1ca=_0x42eb53['locale'];if(!_0x42eb53['plugins']['has']('LegacyListEditing'))return;const _0x101a4c=_0x42eb53['plugins']['get']('TrackChangesEditing'),_0x52b392=_0x42eb53['plugins']['has']('LegacyTodoListEditing');function _0x43ea15(_0x287074){return()=>{const _0x55e9a4=_0x42eb53['model']['document']['selection'],_0x14af64=_0x42eb53['commands']['get'](_0x287074);if(_0x14af64['value'])return void _0x42eb53['execute']('paragraph',{});const _0x3e0c69=_0x287074['slice'](0x0,-0x4),_0x1563f0=function(_0x3083e4,_0x27515a,_0x240d97){let _0x34ce72=Array['from'](_0x3083e4)['filter'](_0x49c1e8=>function(_0x12ba7b,_0x566878){return _0x566878['checkChild'](_0x12ba7b['parent'],'listItem')&&!_0x566878['isObject'](_0x12ba7b);}(_0x49c1e8,_0x240d97));_0x34ce72=_0x34ce72['filter'](_0x466706=>!_0x466706['is']('element','listItem')||_0x466706['getAttribute']('listType')!=_0x27515a);const _0x3811cd=new Set();for(const _0x24bdd3 of _0x34ce72)_0x24bdd3['is']('element','listItem')?_0x3811cd['add'](he(_0x24bdd3)):_0x3811cd['add'](_0x24bdd3);return Array['from'](_0x3811cd);}(_0x55e9a4['getSelectedBlocks'](),_0x3e0c69,_0x42eb53['model']['schema']);_0x42eb53['model']['change'](()=>{for(const _0x40f74d of _0x1563f0)_0x101a4c['markBlockFormat'](_0x40f74d,{'commandName':_0x287074,'commandParams':[{'forceValue':!_0x14af64['value']}],'formatGroupId':'blockName'},de(_0x40f74d));});};}function _0x52dcb5(_0x14553d){return()=>{const _0x11cfe1=function(_0x32ae0a){let _0x40497b=Array['from'](_0x32ae0a);const _0x5c8f98=_0x40497b['findIndex'](_0xad79b0=>'listItem'!=_0xad79b0['name']);return _0x5c8f98>-0x1&&(_0x40497b=_0x40497b['slice'](0x0,_0x5c8f98)),_0x40497b;}(_0x42eb53['model']['document']['selection']['getSelectedBlocks']()),_0x106a41=_0x42eb53['model']['createRange'](_0x42eb53['model']['createPositionAt'](_0x11cfe1[0x0],'before'),_0x42eb53['model']['createPositionAt'](_0x11cfe1[_0x11cfe1['length']-0x1],'end'));_0x42eb53['model']['change'](()=>{_0x101a4c['markBlockFormat'](_0x106a41,{'commandName':_0x14553d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x163a30){const _0x2f16fd=new Set();for(const _0x2a34cc of _0x163a30){let _0x38af18=_0x2a34cc['nextSibling'];for(;_0x38af18&&_0x38af18['getAttribute']('listIndent')>_0x2a34cc['getAttribute']('listIndent');)_0x2f16fd['add'](_0x38af18),_0x38af18=_0x38af18['nextSibling'];}return Array['from'](_0x2f16fd);}(_0x11cfe1));});};}_0x101a4c['enableCommand']('numberedList',_0x43ea15('numberedList')),_0x101a4c['enableCommand']('bulletedList',_0x43ea15('bulletedList')),_0x52b392&&_0x101a4c['enableCommand']('todoList',_0x43ea15('todoList')),_0x101a4c['enableCommand']('indentList',_0x52dcb5('indentList')),_0x101a4c['enableCommand']('outdentList',_0x52dcb5('outdentList')),_0x52b392&&_0x101a4c['enableCommand']('checkTodoList',()=>{const _0x18aab7=_0x42eb53['commands']['get']('checkTodoList'),_0x6a2945=Array['from'](_0x18aab7['_selectedElements']);_0x6a2945['filter'](_0x395ebc=>_0x395ebc['getAttribute']('todoListChecked')!=_0x18aab7['value']),_0x42eb53['model']['change'](()=>{for(const _0x5dcf44 of _0x6a2945)_0x101a4c['markBlockFormat'](_0x5dcf44,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x18aab7['value']}]});});}),_0x101a4c['descriptionFactory']['registerElementLabel']('listItem',_0x2bcb08=>At(_0x11a1ca,'ELEMENT_LIST_ITEM',_0x2bcb08)),_0x101a4c['descriptionFactory']['registerDescriptionCallback'](_0x24959c=>{if('formatBlock'!=_0x24959c['type']&&'formatInline'!=_0x24959c['type'])return;const {data:_0x4e9d3e}=_0x24959c;if(_0x4e9d3e){if('numberedList'==_0x4e9d3e['commandName']||'bulletedList'==_0x4e9d3e['commandName']||'todoList'==_0x4e9d3e['commandName'])switch(_0x4e9d3e['commandName']['replace']('List','')){case'bulleted':return _0x3e8314(At(_0x11a1ca,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e8314(At(_0x11a1ca,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e8314(At(_0x11a1ca,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4e9d3e['commandName'])return{'type':'format','content':At(_0x11a1ca,'*Indent:*\x20%0',At(_0x11a1ca,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4e9d3e['commandName'])return{'type':'format','content':At(_0x11a1ca,'*Outdent:*\x20%0',At(_0x11a1ca,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4e9d3e['commandName'])return _0x4e9d3e['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x11a1ca,'*Check\x20item*')}:{'type':'format','content':At(_0x11a1ca,'*Uncheck\x20item*')};}function _0x3e8314(_0x5a92f1){return{'type':'format','content':At(_0x11a1ca,'*Change\x20to:*\x20%0',_0x5a92f1)};}});}}function he(_0x120d93){const _0x965c53=_0x120d93['getAttribute']('listIndent');if(0x0==_0x965c53)return _0x120d93;let _0xec9c36=_0x120d93;for(;_0x120d93['previousSibling']&&_0x120d93['previousSibling']['is']('element','listItem');){const _0x31cd77=_0x120d93['previousSibling']['getAttribute']('listIndent');if(_0x31cd77==_0x965c53)_0xec9c36=_0x120d93['previousSibling'];else{if(_0x31cd77<_0x965c53)break;}_0x120d93=_0x120d93['previousSibling'];}return _0xec9c36;}function de(_0x151ff7){const _0x3ff312=[];if(_0x151ff7['is']('element','listItem')&&_0x151ff7['getAttribute']('listIndent')>0x0){let _0x47bcc6=_0x151ff7['nextSibling'];for(;_0x47bcc6&&'listItem'==_0x47bcc6['name']&&_0x47bcc6['getAttribute']('listIndent')==_0x151ff7['getAttribute']('listIndent');)_0x3ff312['push'](_0x47bcc6),_0x47bcc6=_0x47bcc6['nextSibling'];}return _0x3ff312;}class fe extends _0x1e0278{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2a3e45=this['editor']['config']['get']('list.properties'),_0x30fb21=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a3e45['styles']&&_0x30fb21['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2a3e45['reversed']&&_0x30fb21['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2a3e45['startIndex']&&_0x30fb21['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30fb21['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4d6a07,_0x3a8e6f={}){const _0x14f43f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341f8d=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x14f43f['markMultiRangeBlockFormat'](_0x341f8d,{'commandName':'listStyle','commandParams':[{'type':_0x3a8e6f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2e484d,_0x2ce1eb={}){const _0x12b013=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc327a9=this['_getSuggestionBlocks'](_0x2aed27=>_0x2aed27['is']('element','listItem')&&'numbered'===_0x2aed27['getAttribute']('listType'));if(_0xc327a9['length']<0x1)return;const _0x4f17bf=_0xc327a9['map'](_0x3f0085=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f0085,'before'),this['editor']['model']['createPositionAt'](_0x3f0085,0x0)));this['editor']['model']['change'](()=>{_0x12b013['markMultiRangeBlockFormat'](_0x4f17bf,{'commandName':'listReversed','commandParams':[{'reversed':_0x2ce1eb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x42f16f,_0x27b187={}){const _0x39922d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bbb6d=this['_getSuggestionBlocks'](_0xc5dcce=>_0xc5dcce['is']('element','listItem')&&'numbered'===_0xc5dcce['getAttribute']('listType'));if(_0x1bbb6d['length']<0x1)return;const _0x55241b=_0x1bbb6d['map'](_0x17b250=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17b250,'before'),this['editor']['model']['createPositionAt'](_0x17b250,0x0)));this['editor']['model']['change'](()=>{_0x39922d['markMultiRangeBlockFormat'](_0x55241b,{'commandName':'listStart','commandParams':[{'startIndex':_0x27b187['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xb97844){if('formatBlock'!=_0xb97844['type']&&'formatInline'!=_0xb97844['type'])return;const _0x3326c9=this['editor']['locale'],{data:_0x372fc2}=_0xb97844;if(!_0x372fc2)return;let _0x180120,_0x490554;switch(_0x372fc2['commandName']){case'listStyle':_0x180120='*Change\x20to:*\x20%0',_0x490554={'type':'format','content':At(_0x3326c9,_0x180120,At(_0x3326c9,this['_getTranslationKeyForListStyle'](_0x372fc2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x180120=_0x372fc2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x490554={'type':'format','content':At(_0x3326c9,_0x180120)};break;case'listStart':_0x180120='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x490554={'type':'format','content':At(_0x3326c9,_0x180120,_0x372fc2['commandParams'][0x0]['startIndex'])};}return _0x490554;}['_getSuggestionBlocksForListStyle'](){const _0x610e02=this['editor']['plugins']['get']('LegacyListUtils');let _0x262580=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x262580[0x0]?.['is']('element','listItem')&&_0x262580['unshift'](..._0x610e02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x262580[_0x262580['length']-0x1]?.['is']('element','listItem')&&_0x262580['push'](..._0x610e02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x262580=[...new Set(_0x262580)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x262580=_0x262580['filter'](_0x431835=>_0x431835['is']('element','listItem'))),_0x262580;}['_getSuggestionBlocks'](_0x4667e1){const _0x5e065e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2fca3f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4667e1)['map'](_0x41006c=>{const _0xd72c56=this['editor']['model']['createPositionAt'](_0x41006c,0x0);return[..._0x5e065e['getSiblingNodes'](_0xd72c56,'backward'),..._0x5e065e['getSiblingNodes'](_0xd72c56,'forward')];})['flat']();return _0x2fca3f=[...new Set(_0x2fca3f)],_0x2fca3f;}['_getTranslationKeyForListStyle'](_0x20603f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x20603f)||'default')['toUpperCase']()+'_LIST_'+_0x20603f['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x1e0278{['afterInit'](){const _0x23f1a0=this['editor'];if(!_0x23f1a0['plugins']['has']('MediaEmbedEditing'))return;const _0x2d29d4=_0x23f1a0['plugins']['get']('TrackChangesEditing'),_0x39ccb0=_0x23f1a0['locale'];_0x2d29d4['enableCommand']('mediaEmbed'),_0x2d29d4['descriptionFactory']['registerElementLabel']('media',_0x40d1d7=>At(_0x39ccb0,'ELEMENT_MEDIA',_0x40d1d7));}}class me extends _0x1e0278{['afterInit'](){const _0x510659=this['editor'];_0x510659['plugins']['has']('MentionEditing')&&_0x510659['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x1e0278{['afterInit'](){const _0x9a31c8=this['editor'];if(!_0x9a31c8['plugins']['has']('MergeFieldsEditing'))return;const _0xede410=_0x9a31c8['plugins']['get']('TrackChangesEditing'),_0x1a78e2=_0x9a31c8['locale'];_0xede410['enableCommand']('insertMergeField'),_0xede410['enableCommand']('insertMergeFieldBlock'),_0xede410['enableCommand']('insertMergeFieldImage'),_0xede410['descriptionFactory']['registerElementLabel']('mergeField',_0x4fe190=>At(_0x1a78e2,'ELEMENT_MERGE_FIELD',_0x4fe190)),_0xede410['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5a9e8c=>At(_0x1a78e2,'ELEMENT_MERGE_FIELD',_0x5a9e8c)),_0xede410['descriptionFactory']['registerDescriptionCallback'](_0xfda20d=>{if('insertion'!=_0xfda20d['type']&&'deletion'!=_0xfda20d['type'])return;const _0x29222c=_0xfda20d['getContainedElement']();if(null==_0x29222c)return;const _0x160777=_0x9a31c8['plugins']['get']('MergeFieldsEditing');let _0x154437;switch(_0x160777['getMergeFieldType'](_0x29222c)){case null:return;case'image':{const _0x34cc8a=_0x160777['unwrapAffixes'](_0x29222c['getAttribute']('src'));_0x154437=_0x160777['getLabel'](_0x34cc8a)||_0x34cc8a;break;}default:{const _0x31ecec=_0x29222c['getAttribute']('id');_0x154437=_0x160777['getLabel'](_0x31ecec)||_0x31ecec;break;}}return'insertion'==_0xfda20d['type']?{'type':'insertion','content':At(_0x1a78e2,'*Insert:*\x20%0','\x22'+_0x154437+'\x22\x20'+At(_0x1a78e2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x1a78e2,'*Remove:*\x20%0','\x22'+_0x154437+'\x22\x20'+At(_0x1a78e2,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x1e0278{['afterInit'](){const _0x466219=this['editor'],_0x5b7728=_0x466219['plugins']['get']('TrackChangesEditing');_0x466219['plugins']['has']('MultiLevelList')&&(_0x5b7728['enableDefaultAttributesIntegration']('multiLevelList'),_0x5b7728['descriptionFactory']['registerDescriptionCallback'](_0x253542=>this['handleDescriptions'](_0x253542)));}['handleDescriptions'](_0x52964f){const _0xc4e105=this['editor']['locale'],{data:_0x4e4850}=_0x52964f,_0x392f38={'type':'format','content':''};if(_0x4e4850&&'listMarkerStyle'==_0x4e4850['key']){if(!_0x4e4850['oldValue'])return{'type':'format','content':At(_0xc4e105,'*Set\x20format:*\x20%0',At(_0xc4e105,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e4850['newValue']+')'};if(!_0x4e4850['newValue']){let _0x57543c=_0x52964f['head'];for(;_0x57543c;){if(_0x57543c['data']&&'listType'==_0x57543c['data']['key']&&_0x57543c['data']['newValue'])return _0x392f38;_0x57543c=_0x57543c['next'];}return{'type':'format','content':At(_0xc4e105,'*Remove\x20format:*\x20%0',At(_0xc4e105,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4e4850['oldValue']+')'};}}}}class _e extends _0x1e0278{['afterInit'](){const _0x5bf078=this['editor'];if(!_0x5bf078['plugins']['has']('PageBreakEditing'))return;_0x5bf078['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x179eb5=_0x5bf078['plugins']['get']('TrackChangesEditing'),_0x10090f=_0x5bf078['locale'];_0x179eb5['descriptionFactory']['registerElementLabel']('pageBreak',_0xc867e5=>At(_0x10090f,'ELEMENT_PAGE_BREAK',_0xc867e5));}}class pe extends _0x1e0278{['afterInit'](){const _0x526dee=this['editor'];if(!_0x526dee['plugins']['has']('Paragraph'))return;const _0x504d14=_0x526dee['locale'],_0x41c5aa=_0x526dee['plugins']['get']('TrackChangesEditing');_0x41c5aa['descriptionFactory']['registerElementLabel']('paragraph',_0x2afd1e=>At(_0x504d14,'ELEMENT_PARAGRAPH',_0x2afd1e)),_0x41c5aa['enableDefaultAttributesIntegration']('paragraph'),_0x41c5aa['enableCommand']('insertParagraph');const _0x28452a=_0x41c5aa['descriptionFactory'];_0x28452a['registerDescriptionCallback'](_0x1ca381=>{if('insertion'!==_0x1ca381['type'])return;const {start:_0x314bf4,end:_0xb5e351}=_0x1ca381['getFirstRange']();if(!_0x314bf4['isTouching'](_0xb5e351)||!_0x314bf4['nodeAfter'])return;const _0x335f65=_0x526dee['model']['schema'],_0x58e8cb=_0x314bf4['nodeAfter'];return _0x335f65['isBlock'](_0x58e8cb)&&!_0x335f65['isLimit'](_0x58e8cb)&&_0x335f65['checkChild'](_0x58e8cb,'$text')?{'type':'insertion','content':At(_0x504d14,'*Insert:*\x20%0',_0x28452a['getItemLabel'](_0x58e8cb,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e7d33=this['editor'],_0x2d99df=_0x4e7d33['locale'];_0x4e7d33['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51feee=>{if('formatBlock'!=_0x51feee['type'])return;const {data:_0x51ab2c}=_0x51feee;return _0x51ab2c&&'paragraph'==_0x51ab2c['commandName']?{'type':'format','content':At(_0x2d99df,'*Change\x20to:*\x20%0',At(_0x2d99df,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x1e0278{['afterInit'](){const _0x3ab06e=this['editor'];_0x3ab06e['commands']['get']('replaceSource')&&_0x3ab06e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x1e0278{['afterInit'](){const _0x56339f=this['editor'];if(!_0x56339f['plugins']['has']('RemoveFormatEditing'))return;_0x56339f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291281=this['editor'];_0x291281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x136830=>{if('formatBlock'!=_0x136830['type']&&'formatInline'!=_0x136830['type'])return;const {data:_0x381951}=_0x136830;return _0x381951&&'removeFormat'==_0x381951['commandName']?{'type':'format','content':At(_0x291281['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x1e0278{['afterInit'](){const _0x5c11f2=this['editor'];if(!_0x5c11f2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x355749=_0x5c11f2['plugins']['get']('TrackChangesEditing');_0x355749['enableCommand']('goToPreviousRestrictedEditingException'),_0x355749['enableCommand']('goToNextRestrictedEditingException');const _0xa1916b=_0x5c11f2['plugins']['get']('RestrictedEditingModeEditing');_0xa1916b['enableCommand']('trackChanges'),_0xa1916b['enableCommand']('acceptSuggestion'),_0xa1916b['enableCommand']('discardSuggestion'),_0xa1916b['enableCommand']('acceptAllSuggestions'),_0xa1916b['enableCommand']('discardAllSuggestions'),_0xa1916b['enableCommand']('acceptSelectedSuggestions'),_0xa1916b['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x1e0278{['afterInit'](){const _0x5661cf=this['editor'];if(!_0x5661cf['plugins']['has']('ShiftEnter'))return;const _0x18fe71=_0x5661cf['plugins']['get']('TrackChangesEditing');_0x18fe71['enableCommand']('shiftEnter'),_0x18fe71['descriptionFactory']['registerElementLabel']('softBreak',_0xd56f3b=>At(_0x5661cf['locale'],'ELEMENT_LINE_BREAK',_0xd56f3b));}}function ke(_0xab0a42,_0x294e2d,_0x3d9a0d){const _0x3516c9=[];for(const _0x25935f of _0x294e2d['getItems']())_0x25935f['hasAttribute'](_0xab0a42)&&_0x3516c9['push'](_0x3d9a0d['createRangeOn'](_0x25935f));return _0x3516c9;}class Ce extends _0x1e0278{['afterInit'](){const _0x14d8c5=this['editor'],_0x15e47c=_0x14d8c5['plugins']['get']('TrackChangesEditing');_0x14d8c5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x15e47c['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x1adc9b=this['editor'],_0x44c421=_0x1adc9b['model'],_0x35dd09=_0x1adc9b['locale'],_0x45c3fe=_0x1adc9b['plugins']['get']('TrackChangesEditing'),_0xdfb48e='restrictedEditingException',_0x117306=_0x1adc9b['commands']['get'](_0xdfb48e);_0x45c3fe['enableCommand'](_0xdfb48e,(_0x279786,_0xad910d={})=>{const _0x51b2c1=_0x44c421['document']['selection'];if(_0x51b2c1['isCollapsed'])return void _0x279786(_0xad910d);const _0x54a673=void 0x0!==_0xad910d['forceValue']?_0xad910d['forceValue']:!_0x117306['value'];_0x44c421['change'](()=>{const _0x5c888=Array['from'](_0x51b2c1['getRanges']());for(const _0x50ade6 of _0x5c888){const _0x508118=_0x54a673?[_0x50ade6]:ke(_0xdfb48e,_0x50ade6,_0x44c421);for(const _0x4039f6 of _0x508118)_0x45c3fe['markInlineFormat'](_0x4039f6,{'commandName':_0xdfb48e,'commandParams':[{'forceValue':_0x54a673}]});}});}),_0x45c3fe['descriptionFactory']['registerDescriptionCallback'](_0x35cead=>{if('formatBlock'!=_0x35cead['type']&&'formatInline'!=_0x35cead['type'])return;const {data:_0x3d4b58}=_0x35cead;return _0x3d4b58&&_0x3d4b58['commandName']==_0xdfb48e?_0x3d4b58['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x35dd09,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x35dd09,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xbedbab=this['editor'],_0x37441c=_0xbedbab['locale'],_0x20d18c=_0xbedbab['plugins']['get']('TrackChangesEditing'),_0x7fd900='restrictedEditingExceptionBlock',_0x5d44ec=this['editor']['commands']['get'](_0x7fd900);_0x20d18c['enableCommand'](_0x7fd900,(_0x2e2fb9,_0x48aacb={})=>{const _0x297a7b=this['editor']['model']['document']['selection'],_0xd9b2d5=_0x48aacb&&void 0x0!==_0x48aacb['forceValue']?_0x48aacb['forceValue']:!_0x5d44ec['value'];let _0x20058c=[];if(_0xd9b2d5){const _0x34b694=Array['from'](_0x297a7b['getSelectedBlocks']())['filter'](_0x2e620a=>function(_0x1d3bba){return!!_0x1d3bba['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2e620a)||function(_0x290640,_0x3d9dfb){const _0x5ba9c0=_0x3d9dfb['createContext'](_0x290640['parent']);if(!_0x3d9dfb['checkChild'](_0x5ba9c0,'restrictedEditingException'))return!0x1;if(!_0x3d9dfb['checkChild'](_0x5ba9c0['push']('restrictedEditingException'),_0x290640))return!0x1;return!0x0;}(_0x2e620a,this['editor']['model']['schema']));_0x20058c=Tt(_0x34b694,_0xbedbab['model']);}else{const _0x2c08d1=Array['from'](_0x297a7b['getSelectedBlocks']())['map'](_0x37f551=>function(_0x170112){let _0x2aa820=_0x170112;for(;_0x2aa820['parent'];){if('restrictedEditingException'==_0x2aa820['parent']['name'])return _0x2aa820;_0x2aa820=_0x2aa820['parent'];}return null;}(_0x37f551))['filter'](_0x18c9c5=>!!_0x18c9c5);_0x20058c=Tt(_0x2c08d1,_0xbedbab['model']);}_0xbedbab['model']['change'](()=>{for(const _0x1c86f6 of _0x20058c)_0x20d18c['markBlockFormat'](_0x1c86f6,{'commandName':_0x7fd900,'commandParams':[{'forceValue':_0xd9b2d5}]});});}),_0x20d18c['descriptionFactory']['registerDescriptionCallback'](_0x1f0d55=>{const {data:_0x217157}=_0x1f0d55;if(_0x217157&&_0x217157['commandName']==_0x7fd900)return _0x217157['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x37441c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x37441c,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x1e0278{['afterInit'](){const _0x455d98=this['editor'];if(!_0x455d98['plugins']['has']('Style')||!_0x455d98['plugins']['has']('DataSchema'))return;const _0x4a3521=_0x455d98['plugins']['get']('TrackChangesEditing'),_0x49b1df=_0x455d98['locale'],_0x37dfaf=_0x455d98['config']['get']('style')||{},_0x3804e8=_0x455d98['plugins']['get']('GeneralHtmlSupport'),_0x5771d7=_0x455d98['plugins']['get']('StyleUtils')['normalizeConfig'](_0x455d98['plugins']['get']('DataSchema'),_0x37dfaf['definitions']);_0x4a3521['enableDefaultAttributesIntegration']('style');const _0x3b33ab=new Set();for(const _0x487303 of _0x5771d7['block']){const _0x5016ff=_0x3804e8['getGhsAttributeNameForElement'](_0x487303['element']);_0x3b33ab['add'](_0x5016ff);}const _0x52ad90=new Set();for(const _0x195cf4 of _0x5771d7['inline']){const _0x1497ce=_0x3804e8['getGhsAttributeNameForElement'](_0x195cf4['element']);_0x52ad90['add'](_0x1497ce);for(const _0x295115 of _0x195cf4['ghsAttributes'])_0x52ad90['add'](_0x295115);}for(const _0x4249d9 of _0x3b33ab)_0x4a3521['descriptionFactory']['registerAttributeLabel'](_0x4249d9,At(_0x49b1df,'FORMAT_STYLE'));for(const _0x4f5835 of _0x52ad90)_0x4a3521['descriptionFactory']['registerAttributeLabel'](_0x4f5835,At(_0x49b1df,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c889a=this['editor'],_0x3de15d=_0x3c889a['locale'];_0x3c889a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26aa3c=>{if('formatBlock'!=_0x26aa3c['type']&&'formatInline'!=_0x26aa3c['type'])return;const {data:_0x1f2a90}=_0x26aa3c;return _0x1f2a90&&'style'===_0x1f2a90['commandName']?_0x1f2a90['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3de15d,'*Set\x20format:*\x20%0',_0x1f2a90['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x3de15d,'*Remove\x20format:*\x20%0',_0x1f2a90['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x1e0278{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xfa2cfd){super(_0xfa2cfd),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2d1bfb=this['editor'],_0x2b6df5=_0x2d1bfb['model']['document']['selection'];if(!_0x2d1bfb['plugins']['has']('TableEditing'))return;const _0xb33f43=_0x2d1bfb['locale'],_0x5c1696=_0x2d1bfb['plugins']['get']('TrackChangesEditing'),_0xee7ec9=_0x2d1bfb['plugins']['get']('TableUtils');_0x5c1696['descriptionFactory']['registerElementLabel']('table',_0x577045=>At(_0xb33f43,'ELEMENT_TABLE',_0x577045)),this['_setupColumnsRowsFixing'](),_0x5c1696['enableCommand']('insertTable'),_0x5c1696['enableCommand']('selectTableRow'),_0x5c1696['enableCommand']('selectTableColumn');for(const _0x3f9c2f of['insertTableRowAbove','insertTableRowBelow']){const _0x1ca514=_0x2d1bfb['commands']['get'](_0x3f9c2f);_0x5c1696['enableCommand'](_0x3f9c2f,_0x470152=>{_0x2d1bfb['model']['change'](_0x5aeb35=>{_0x470152();const _0xda6aa5='above'===_0x1ca514['order'],_0x31e2aa=_0xee7ec9['getSelectionAffectedTableCells'](_0x2b6df5),_0x5434f3=_0xee7ec9['getRowIndexes'](_0x31e2aa),_0x35d938=_0xda6aa5?_0x5434f3['first']-0x1:_0x5434f3['last']+0x1,_0x360bcf=_0x31e2aa[0x0]['findAncestor']('table'),_0x25b81f=_0xee7ec9['createTableWalker'](_0x360bcf,{'startRow':_0x35d938,'endRow':_0x35d938}),_0x3872a4=Array['from'](_0x25b81f)['map'](_0xfface4=>_0x5aeb35['createRangeOn'](_0xfface4['cell']));_0x5c1696['markMultiRangeInsertion'](_0x3872a4,'tableRow');});});}for(const _0x1fcbca of['insertTableColumnLeft','insertTableColumnRight']){const _0x5e4f81=_0x2d1bfb['commands']['get'](_0x1fcbca);_0x5c1696['enableCommand'](_0x1fcbca,_0x2cc528=>{_0x2d1bfb['model']['change'](_0x680497=>{_0x2cc528();const _0x302876='left'===_0x5e4f81['order'],_0x38742e=_0xee7ec9['getSelectionAffectedTableCells'](_0x2b6df5),_0x34d82c=_0xee7ec9['getColumnIndexes'](_0x38742e),_0x45a7b4=_0x302876?_0x34d82c['first']-0x1:_0x34d82c['last']+0x1,_0x57bc26=_0x38742e[0x0]['findAncestor']('table'),_0x14c0fc=_0xee7ec9['createTableWalker'](_0x57bc26,{'startRow':0x0,'column':_0x45a7b4,'includeAllSlots':!0x1}),_0x14504d=Array['from'](_0x14c0fc)['map'](_0xbde772=>_0x680497['createRangeOn'](_0xbde772['cell']));_0x5c1696['markMultiRangeInsertion'](_0x14504d,'tableColumn');});});}for(const _0x47b901 of['removeTableRow','removeTableColumn']){const _0x36a358=_0x47b901['substr'](0xb),_0x194a43=_0x36a358['toLowerCase'](),_0x1d6ac2=_0x194a43['substr'](0x0,0x3)+'span',_0x5b6834='table'+_0x36a358,_0x588129='min'+_0x36a358,_0x56bb58='max'+_0x36a358;_0x5c1696['enableCommand'](_0x47b901,()=>{_0x2d1bfb['model']['change'](_0x1483a9=>{const _0x145e3b=_0xee7ec9['getSelectionAffectedTableCells'](_0x2b6df5),_0x4207b3=_0x145e3b[0x0]['findAncestor']('table');let _0x3c9d10;if('removeTableRow'==_0x47b901){const _0x4724dc=_0xee7ec9['getRowIndexes'](_0x145e3b);_0x3c9d10={'startRow':_0x4724dc['first'],'endRow':_0x4724dc['last'],'includeAllSlots':!0x0};}else{const _0x3ea9bf=_0xee7ec9['getColumnIndexes'](_0x145e3b);_0x3c9d10={'startColumn':_0x3ea9bf['first'],'endColumn':_0x3ea9bf['last'],'includeAllSlots':!0x0};}const _0x377bf1=_0xee7ec9['createTableWalker'](_0x4207b3,_0x3c9d10),_0x5b49f3=Array['from'](_0x377bf1)['map'](({cell:_0x53687f})=>_0x53687f),_0x4eea9a=Re(_0x5b49f3['filter'](_0x36cb65=>_0x36cb65['hasAttribute'](_0x1d6ac2))),_0xc1038e=Re(_0x5b49f3['filter'](_0x4f1418=>!_0x4f1418['hasAttribute'](_0x1d6ac2)))['map'](_0x31635e=>_0x1483a9['createRangeOn'](_0x31635e)),_0xd375aa=_0x5c1696['markMultiRangeDeletion'](_0xc1038e,_0x5b6834);if(_0xd375aa&&('tableRow'==_0xd375aa['subType']||'tableColumn'==_0xd375aa['subType'])){const _0x410f64=this['_getSuggestionCoords'](_0xd375aa);for(const _0x1de735 of _0x4eea9a){const _0x2fd4c5=_0x1483a9['createRangeOn'](_0x1de735),_0x556bba=_0xee7ec9['getCellLocation'](_0x1de735),_0x32acf7=_0x1de735['getAttribute'](_0x1d6ac2)-0x1,_0x475167=_0x410f64[_0x588129],_0x278bf5=_0x410f64[_0x56bb58];_0x475167<=_0x556bba[_0x194a43]&&_0x556bba[_0x194a43]+_0x32acf7<=_0x278bf5&&_0xd375aa['addRange'](_0x2fd4c5);}}});});}function _0x574e84(_0x2426e9){const _0x3d7ef3=Array['from'](_0x2b6df5['getRanges']())['map'](_0x1d2098=>_0x56dc86['fromRange'](_0x1d2098));_0x2d1bfb['model']['change'](_0x2deb6a=>{const _0x17dd95=_0x2deb6a['batch'];_0x2426e9=_0x2426e9['filter'](_0x3bd9c0=>'$graveyard'!=_0x3bd9c0['root']['rootName']),_0x2deb6a['setSelection'](_0x2426e9),_0x2d1bfb['commands']['get']('removeTableRow')['refresh'](),_0x2d1bfb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2d1bfb['model']['enqueueChange'](()=>{_0x2d1bfb['model']['enqueueChange'](_0x17dd95,_0x159a0e=>{const _0x1e5ca7=_0x3d7ef3['filter'](_0xfee115=>'$graveyard'!=_0xfee115['root']['rootName']);_0x1e5ca7['length']>0x0&&_0x159a0e['setSelection'](_0x1e5ca7);for(const _0x47e199 of _0x3d7ef3)_0x47e199['detach']();});});});}function _0x1847a7(_0x3e5896){_0x2d1bfb['model']['change'](_0x459819=>{const _0x5dd288=Array['from'](_0x2b6df5['getRanges']())['map'](_0x3c1d37=>_0x56dc86['fromRange'](_0x3c1d37)),_0x1a18b6=[];for(const _0x191f6d of _0x3e5896)for(const _0x48e9ed of _0x191f6d['getItems']({'shallow':!0x0}))_0x1a18b6['push'](_0x48e9ed);for(const _0x30bcb8 of _0x1a18b6)'$graveyard'!=_0x30bcb8['root']['rootName']&&(_0x459819['setSelection'](_0x459819['createPositionAt'](_0x30bcb8,0x0)),_0x2d1bfb['commands']['get']('removeTableColumn')['refresh'](),_0x2d1bfb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x716e96=_0x5dd288['filter'](_0x560bb5=>'$graveyard'!=_0x560bb5['root']['rootName']);_0x716e96['length']>0x0&&_0x459819['setSelection'](_0x716e96);for(const _0x3b99a2 of _0x5dd288)_0x3b99a2['detach']();});}function _0x4631f3(_0x3eee1a,_0x496891){return _0x496891['every'](_0x4b4dc6=>_0x3eee1a['some'](_0x2bca01=>_0x2bca01['end']['isEqual'](_0x4b4dc6['start'])||_0x4b4dc6['end']['isEqual'](_0x2bca01['start'])));}function _0x5d9134(_0x4a8b85,_0x2cf2fb){return!_0x4a8b85['some'](_0x4bcfb6=>_0x2cf2fb['some'](_0x933426=>_0x4bcfb6['isIntersecting'](_0x933426)))&&_0x4a8b85['some'](_0xb496f0=>_0x2cf2fb['some'](_0x3eb927=>_0xb496f0['end']['isTouching'](_0x3eb927['start'])));}_0x5c1696['descriptionFactory']['registerDescriptionCallback'](_0x14852a=>{if('insertion'!=_0x14852a['type']&&'deletion'!=_0x14852a['type'])return;const _0x275f71=_0x14852a['getContainedElement']();if(null!=_0x275f71&&_0x275f71['is']('element','table')){if('insertion'==_0x14852a['type']){const _0xf0537b=_0x14852a['getItems']()['filter'](_0x156e56=>_0x156e56['is']('$textProxy'))['map'](_0x56ff92=>_0x56ff92['data']);if(_0xf0537b['length'])return{'type':'insertion','content':At(_0xb33f43,'*Insert:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf0537b['join']('\x20')+'\x22'))};}if('deletion'==_0x14852a['type']){const _0x24d16c=_0x14852a['getItems']()['filter'](_0x18f472=>_0x18f472['is']('$textProxy'))['map'](_0x301ef9=>_0x301ef9['data']);if(_0x24d16c['length'])return{'type':'deletion','content':At(_0xb33f43,'*Remove:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x24d16c['join']('\x20')+'\x22'))};}}}),_0x5c1696['descriptionFactory']['registerDescriptionCallback'](_0x3c26c7=>{if('tableRow'==_0x3c26c7['subType']){const _0x19059b=_0x3c26c7['getItems']()['filter'](_0x4cdf71=>_0x4cdf71['is']('$textProxy'))['map'](_0x82d42c=>_0x82d42c['data']),_0x36c985=this['_getSuggestionCoords'](_0x3c26c7),_0x5717e3=_0x36c985['maxRow']-_0x36c985['minRow']+0x1;if('insertion'==_0x3c26c7['type'])return _0x19059b['length']?{'type':'insertion','content':At(_0xb33f43,'*Insert:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5717e3,'\x22'+_0x19059b['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0xb33f43,'*Insert:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_ROW',_0x5717e3))};if('deletion'==_0x3c26c7['type'])return _0x19059b['length']?{'type':'deletion','content':At(_0xb33f43,'*Remove:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5717e3,'\x22'+_0x19059b['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0xb33f43,'*Remove:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_ROW',_0x5717e3))};}if('tableColumn'==_0x3c26c7['subType']){const _0x409622=_0x3c26c7['getItems']()['filter'](_0x1ceafb=>_0x1ceafb['is']('$textProxy'))['map'](_0x20254c=>_0x20254c['data']),_0x245415=this['_getSuggestionCoords'](_0x3c26c7),_0x34679d=_0x245415['maxColumn']-_0x245415['minColumn']+0x1;if('insertion'==_0x3c26c7['type'])return _0x409622['length']?{'type':'insertion','content':At(_0xb33f43,'*Insert:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34679d,'\x22'+_0x409622['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0xb33f43,'*Insert:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_COLUMN',_0x34679d))};if('deletion'==_0x3c26c7['type'])return _0x409622['length']?{'type':'deletion','content':At(_0xb33f43,'*Remove:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34679d,'\x22'+_0x409622['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0xb33f43,'*Remove:*\x20%0',At(_0xb33f43,'ELEMENT_TABLE_COLUMN',_0x34679d))};}}),_0x5c1696['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x574e84),_0x5c1696['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x574e84),_0x5c1696['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1847a7),_0x5c1696['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1847a7),_0x5c1696['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4631f3),_0x5c1696['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4631f3),_0x5c1696['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d9134),_0x5c1696['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d9134);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2a51c1=this['editor'],_0x4be4a8=_0x2a51c1['model']['document']['selection'];return(_0x2f499f,_0x471ae1)=>{_0x2a51c1['model']['change'](_0x3fd813=>{const {commandName:_0x15f7dc,commandParams:_0xb5eb8e}=_0x471ae1;let _0x4da30a=_0x2f499f[0x0]['end']['nodeBefore'];_0xb5eb8e&&_0xb5eb8e[0x0]&&!0x1===_0xb5eb8e[0x0]['forceValue']&&(_0x4da30a=_0x2f499f[0x0]['start']['nodeAfter']);const _0x33e3d9=_0x3fd813['createRangeIn'](_0x4da30a);if('$graveyard'==_0x33e3d9['root']['rootName'])return;const _0x17b7ee=Array['from'](_0x4be4a8['getRanges']())['map'](_0x31422e=>_0x56dc86['fromRange'](_0x31422e));_0x3fd813['setSelection'](_0x33e3d9),_0x2a51c1['commands']['get'](_0x15f7dc)['refresh'](),_0xb5eb8e['push']({'forceDefaultExecution':!0x0}),_0x2a51c1['execute'](_0x15f7dc,..._0xb5eb8e);const _0xfa8a33=_0x17b7ee['filter'](_0x43832d=>'$graveyard'!=_0x43832d['root']['rootName']);_0xfa8a33['length']>0x0&&_0x3fd813['setSelection'](_0xfa8a33);for(const _0x4f5306 of _0x17b7ee)_0x4f5306['detach']();});};}['_getCoordsForCells'](_0x24fbcb){const _0x3d44fc=this['editor']['plugins']['get']('TableUtils');let _0x5c6dfc=Number['MAX_SAFE_INTEGER'],_0x8ceb53=Number['MIN_SAFE_INTEGER'],_0x24e5dd=Number['MAX_SAFE_INTEGER'],_0x5f5951=Number['MIN_SAFE_INTEGER'];for(const _0x392322 of _0x24fbcb){if('$graveyard'==_0x392322['root']['rootName'])continue;const {row:_0x2bbfb5,column:_0x5b7d03}=_0x3d44fc['getCellLocation'](_0x392322),_0x2f9b1c=_0x392322['hasAttribute']('rowspan')?_0x392322['getAttribute']('rowspan')-0x1:0x0,_0x2fb540=_0x392322['hasAttribute']('colspan')?_0x392322['getAttribute']('colspan')-0x1:0x0;_0x5c6dfc=_0x2bbfb5<_0x5c6dfc?_0x2bbfb5:_0x5c6dfc,_0x8ceb53=_0x2bbfb5+_0x2f9b1c>_0x8ceb53?_0x2bbfb5+_0x2f9b1c:_0x8ceb53,_0x24e5dd=_0x5b7d03<_0x24e5dd?_0x5b7d03:_0x24e5dd,_0x5f5951=_0x5b7d03+_0x2fb540>_0x5f5951?_0x5b7d03+_0x2fb540:_0x5f5951;}return{'minRow':_0x5c6dfc,'maxRow':_0x8ceb53,'minColumn':_0x24e5dd,'maxColumn':_0x5f5951};}['_setupColumnsRowsFixing'](){const _0x2e0128=this['editor'],_0x31683a=_0x2e0128['plugins']['get']('TrackChangesEditing'),_0x5e19f5=_0x2e0128['plugins']['get']('TableUtils');_0x2e0128['model']['document']['on']('change:data',()=>{const _0x328c2b=Array['from'](_0x2e0128['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5ace1b,data:_0x4c9bd7}of _0x328c2b){const {group:_0x2ae99e,id:_0x12dbbd,subType:_0x40e605}=_0xfb1f58(_0x5ace1b);if('suggestion'!=_0x2ae99e)continue;if(null!=_0x4c9bd7['oldRange'])continue;const _0xc3827e=_0x31683a['getSuggestion'](_0x12dbbd);this['_tablePostFixingSubtypes']['includes'](_0x40e605)&&this['_tableSuggestions']['add'](_0xc3827e);}},{'priority':'low'});const _0x263648=(_0x23f2a4,_0x5809f1)=>{let _0x434f48=!0x1;const _0x592230=_0x5809f1['createRangeOn'](_0x23f2a4),_0x4c6921=_0x23f2a4['findAncestor']('table'),_0x2ac12c=_0x5e19f5['getCellLocation'](_0x23f2a4);for(const _0x8e4288 of this['_tableSuggestions']){const _0x40affa=_0x8e4288['subType'],_0x2605ec=_0x40affa['startsWith']('tablePaste'),_0x75929e=_0x40affa['substr'](_0x2605ec?0xa:0x5),_0x1021ff=_0x75929e['toLowerCase'](),_0x1c9cd0=_0x1021ff['substr'](0x0,0x3)+'span',_0x6089d='min'+_0x75929e,_0x423fa9='max'+_0x75929e;if(!_0x8e4288['isInContent'])continue;if(_0x4c6921!=_0x8e4288['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8e4288['isIntersectingWithRange'](_0x592230))continue;const _0x1cfb7d=_0x23f2a4['hasAttribute'](_0x1c9cd0)?_0x23f2a4['getAttribute'](_0x1c9cd0)-0x1:0x0,_0x4304a3=this['_getSuggestionCoords'](_0x8e4288),_0x5ec732=_0x4304a3[_0x6089d],_0x3a7f3e=_0x4304a3[_0x423fa9];_0x5ec732<=_0x2ac12c[_0x1021ff]&&_0x2ac12c[_0x1021ff]+_0x1cfb7d<=_0x3a7f3e&&(_0x8e4288['addRange'](_0x592230),_0x434f48=!0x0);}return _0x434f48;};_0x2e0128['model']['document']['registerPostFixer'](_0x25fdb=>{let _0x1f17f6=!0x1;for(const _0x5442e2 of _0x2e0128['model']['document']['differ']['getChanges']())if('insert'==_0x5442e2['type']){if('tableRow'==_0x5442e2['name']){for(const _0x333067 of _0x5442e2['position']['nodeAfter']['getChildren']())_0x1f17f6=_0x1f17f6||_0x263648(_0x333067,_0x25fdb);}else'tableCell'==_0x5442e2['name']&&(_0x1f17f6=_0x1f17f6||_0x263648(_0x5442e2['position']['nodeAfter'],_0x25fdb));}return _0x1f17f6;});}['_getSuggestionCoords'](_0x176a01){return this['_getCoordsForCells'](_0x176a01['getRanges']()['map'](_0x65c0f6=>_0x65c0f6['start']['nodeAfter']));}}function Re(_0x3227ef){return Array['from'](new Set(_0x3227ef)['values']());}class Se extends _0x1e0278{static get['requires'](){return[Ne];}['afterInit'](){const _0x1b74b6=this['editor'],_0x460750=_0x1b74b6['model']['document']['selection'],_0x12216f=_0x1b74b6['locale'];if(!_0x1b74b6['plugins']['has']('TableEditing'))return;const _0xbcdbad=_0x1b74b6['plugins']['get']('TrackChangesEditing'),_0x13196b=_0x1b74b6['plugins']['get']('TableUtils'),_0x50634b=_0x1b74b6['plugins']['get'](Ne);_0x50634b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xbcdbad['enableCommand']('mergeTableCells',()=>{const _0xa96b8e=_0x13196b['getSelectionAffectedTableCells'](_0x1b74b6['model']['document']['selection']);_0x1b74b6['model']['change'](()=>{_0xbcdbad['markMultiRangeBlockFormat'](_0xa96b8e,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1b74b6['commands']['get']('mergeTableCells')['on']('execute',(_0x4b6200,_0x3e0005)=>{_0x1b74b6['commands']['get']('trackChanges')['value']&&(_0x3e0005['length']>0x0&&_0x3e0005[_0x3e0005['length']-0x1]&&_0x3e0005[_0x3e0005['length']-0x1]['forceDefaultExecution']||_0xbcdbad['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4b6200['stop']());},{'priority':'highest'});for(const _0x183acd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d8ce1=_0x1b74b6['commands']['get'](_0x183acd);_0xbcdbad['enableCommand'](_0x183acd,()=>{const _0x437325=_0x1b74b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f0423=>_0x1f0423['is']('element','tableCell')),_0x1f60b4=_0x2d8ce1['value'];_0x1b74b6['model']['change'](()=>{_0xbcdbad['markMultiRangeBlockFormat']([_0x437325,_0x1f60b4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4be2da of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4b174b=_0x1b74b6['commands']['get'](_0x4be2da);_0xbcdbad['enableCommand'](_0x4be2da,()=>{const _0x50e4f0=_0x13196b['getSelectionAffectedTableCells'](_0x1b74b6['model']['document']['selection'])[0x0],_0x299b6c=_0x50e4f0['findAncestor']('table'),{column:_0x595787,row:_0x36c636}=_0x13196b['getCellLocation'](_0x50e4f0);let _0x4a0ef5=[];if('horizontally'==_0x4b174b['direction']){const _0x58f73a=_0x13196b['createTableWalker'](_0x299b6c,{'startRow':_0x36c636,'endRow':_0x36c636,'includeAllSlots':!0x0});_0x4a0ef5=Array['from'](_0x58f73a)['map'](_0x4ad3df=>_0x4ad3df['cell']);}else{const _0x131669=_0x13196b['createTableWalker'](_0x299b6c,{'column':_0x595787,'includeAllSlots':!0x0});_0x4a0ef5=Array['from'](_0x131669)['map'](_0x12e2ea=>_0x12e2ea['cell']);}_0x1b74b6['model']['change'](_0x2898cb=>{_0xbcdbad['markBlockFormat'](_0x2898cb['createRangeOn'](_0x50e4f0),{'commandName':_0x4be2da,'commandParams':[]},_0x4a0ef5,_0x4be2da);});});}_0xbcdbad['descriptionFactory']['registerDescriptionCallback'](_0x51bca1=>{if('formatBlock'!=_0x51bca1['type']&&'formatInline'!=_0x51bca1['type'])return;const {data:_0x5b44ae}=_0x51bca1;return _0x5b44ae&&'mergeTableCells'==_0x5b44ae['commandName']?{'type':'format','content':At(_0x12216f,'*Merge\x20cells*')}:void 0x0;}),_0xbcdbad['descriptionFactory']['registerDescriptionCallback'](_0x27e31e=>{if('formatBlock'!=_0x27e31e['type']&&'formatInline'!=_0x27e31e['type'])return;const {data:_0x3a2b4f}=_0x27e31e;return _0x3a2b4f?'splitTableCellVertically'==_0x3a2b4f['commandName']?{'type':'format','content':At(_0x12216f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3a2b4f['commandName']?{'type':'format','content':At(_0x12216f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x186b59=_0x50634b['_acceptFormatSuggestionCallbackFactory']();for(const _0x578fca of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xbcdbad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x578fca,'accept',_0x186b59);for(const _0x561376 of['splitTableCellVertically','splitTableCellHorizontally'])_0xbcdbad['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x561376,'accept',_0x186b59);_0xbcdbad['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x437057=>{_0x1b74b6['model']['change'](_0x342918=>{const _0x4ba829=Array['from'](_0x460750['getRanges']())['map'](_0x5bd425=>_0x56dc86['fromRange'](_0x5bd425));_0x342918['setSelection'](_0x437057),_0x1b74b6['commands']['get']('mergeTableCells')['refresh'](),_0x1b74b6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3f72da=_0x4ba829['filter'](_0x2181a4=>'$graveyard'!=_0x2181a4['root']['rootName']);_0x3f72da['length']>0x0&&_0x342918['setSelection'](_0x3f72da);for(const _0x432b38 of _0x4ba829)_0x432b38['detach']();});});for(const _0x713616 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1dee81=_0x1b74b6['commands']['get'](_0x713616);_0x1dee81['on']('set:isEnabled',(_0x279ef8,_0x2500c3,_0x2f145e)=>{if(_0x2f145e){const _0x32b6a0=_0x1b74b6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4c639e=>_0x4c639e['is']('element','tableCell'));this['_areMergableCells'](_0x1dee81['value'],_0x32b6a0)||(_0x279ef8['return']=!0x1,_0x279ef8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x130873=this['editor']['commands']['get']('mergeTableCells'),_0x347372=this['editor']['plugins']['get']('TableUtils');if(!_0x130873['isEnabled'])return!0x1;const _0x401059=_0x347372['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x159f0a of _0x401059)for(const _0x447c2a of _0x401059)if(_0x159f0a!=_0x447c2a&&!this['_areMergableCells'](_0x159f0a,_0x447c2a))return!0x1;return!0x0;}['_areMergableCells'](_0x43faa3,_0x3b6b87){const _0x51afd1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55a32b=this['editor']['model']['createRangeOn'](_0x43faa3),_0x4f699c=this['editor']['model']['createRangeOn'](_0x3b6b87),_0x5245ff=new Set(),_0x268622=new Set();for(const _0x54cf4f of _0x51afd1['getSuggestions']())if(('insertion'==_0x54cf4f['type']||'deletion'==_0x54cf4f['type']||'mergeTableCells'==_0x54cf4f['subType'])&&_0x54cf4f['isInContent']){for(const _0x262ad8 of _0x54cf4f['getRanges']())_0x262ad8['containsRange'](_0x55a32b,!0x0)&&_0x5245ff['add'](_0x54cf4f['type']+':'+_0x54cf4f['author']['id']),_0x262ad8['containsRange'](_0x4f699c,!0x0)&&_0x268622['add'](_0x54cf4f['type']+':'+_0x54cf4f['author']['id']);}if(_0x5245ff['size']!=_0x268622['size'])return!0x1;for(const _0x3686c0 of _0x5245ff)if(!_0x268622['has'](_0x3686c0))return!0x1;return!0x0;}}class Me extends _0x1e0278{static get['requires'](){return[Ne];}['afterInit'](){const _0x194d69=this['editor'];if(!_0x194d69['plugins']['has']('TableEditing'))return;const _0x421341=_0x194d69['locale'],_0x4167e0=_0x194d69['plugins']['get']('TrackChangesEditing');_0x4167e0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4167e0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4167e0['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x421341,'FORMAT_HEADER_ROW')),_0x4167e0['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x421341,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x428b83=this['editor']['plugins']['get']('TrackChangesEditing'),_0x568305=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x428b83['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x568305),_0x428b83['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x568305),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x223674=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f069d=this['editor']['plugins']['get']('TableUtils');function _0x1d110c({showActiveMarker:_0x26cb52=!0x0,setDataAttribute:_0x5dc8a8=!0x0}={}){return(_0x7e7a4b,_0x8fc515,_0x46a399)=>{const {type:_0x47ee00,id:_0x246bd2}=_0xfb1f58(_0x8fc515['markerName']);if(!_0x223674['hasSuggestion'](_0x246bd2))return;const _0x523ae7=_0x223674['getSuggestion'](_0x246bd2),_0xeb45a7=_0x523ae7['data'];if('formatBlock'!=_0x523ae7['type']||!_0xeb45a7||'setTableColumnHeader'!=_0xeb45a7['commandName'])return;if(_0x8fc515['item'])return void _0x7e7a4b['stop']();if(!_0x46a399['consumable']['consume'](_0x8fc515['markerRange'],_0x7e7a4b['name']))return;const _0x296173=_0x8fc515['markerRange']['start']['nodeAfter'],_0x303c24=_0x8fc515['markerRange']['end']['nodeBefore'],_0x30a398=_0x296173['parent']['parent'],{column:_0x256820}=_0x3f069d['getCellLocation'](_0x296173),{column:_0xaf9c93}=_0x3f069d['getCellLocation'](_0x303c24);for(let _0x55ae6b=_0x256820;_0x55ae6b<=_0xaf9c93;_0x55ae6b++){const _0x1d5380=_0x3f069d['createTableWalker'](_0x30a398,{'column':_0x55ae6b,'includeAllSlots':!0x1});for(const _0x3d3e04 of _0x1d5380){const _0x250367=_0x3d3e04['cell'],_0x4d4142=_0x46a399['mapper']['toViewElement'](_0x250367);_0x46a399['writer']['addClass']('ck-suggestion-marker-'+_0x47ee00,_0x4d4142),_0x5dc8a8&&_0x46a399['writer']['setAttribute']('data-suggestion',_0x246bd2,_0x4d4142),_0x46a399['mapper']['bindElementToMarker'](_0x4d4142,_0x8fc515['markerName']),_0x26cb52&&(_0x223674['activeMarkers']['includes'](_0x8fc515['markerName'])?_0x46a399['writer']['addClass']('ck-suggestion-marker--active',_0x4d4142):_0x46a399['writer']['removeClass']('ck-suggestion-marker--active',_0x4d4142));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1d110c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x18d648,_0x57508e,_0x7c141f)=>{_0x7c141f['options']['showSuggestionHighlights']&&_0x1d110c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x18d648,_0x57508e,_0x7c141f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x486e61,_0x9a7234,_0x47b3c8)=>{const {type:_0x81352d,id:_0xa5aab4}=_0xfb1f58(_0x9a7234['markerName']);if(!_0x223674['hasSuggestion'](_0xa5aab4))return;const _0x47d539=_0x223674['getSuggestion'](_0xa5aab4),_0x1db52c=_0x47d539['data'];if('formatBlock'!=_0x47d539['type']||!_0x1db52c||'setTableColumnHeader'!=_0x1db52c['commandName'])return;const _0x303e4f=_0x47b3c8['mapper']['markerNameToElements'](_0x9a7234['markerName']);if(_0x303e4f){for(const _0x1a5f72 of _0x303e4f)_0x47b3c8['writer']['removeClass']('ck-suggestion-marker-'+_0x81352d,_0x1a5f72),_0x47b3c8['writer']['removeClass']('ck-suggestion-marker--active',_0x1a5f72),_0x47b3c8['writer']['removeAttribute']('data-suggestion',_0x1a5f72),_0x47b3c8['mapper']['unbindElementFromMarkerName'](_0x1a5f72,_0x9a7234['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x382396=this['editor'],_0x2577f4=_0x382396['locale'];function _0x35564b(_0x5b4526){return{'type':'format','content':At(_0x2577f4,'*Format:*\x20%0',_0x5b4526)};}_0x382396['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eafb0=>{if('formatBlock'!=_0x2eafb0['type'])return;const {data:_0x387cce}=_0x2eafb0;if(_0x387cce){if('setTableRowHeader'==_0x387cce['commandName']){const _0x4c2bb9=_0x387cce['commandParams'][0x0]['forceValue'];return _0x35564b(At(_0x2577f4,_0x4c2bb9?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x387cce['commandName']){const _0x57ca00=_0x387cce['commandParams'][0x0]['forceValue'];return _0x35564b(At(_0x2577f4,_0x57ca00?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x1e0278{static get['requires'](){return[Ne];}['afterInit'](){const _0x31d9a=this['editor'];if(!_0x31d9a['plugins']['has']('TableEditing')||!_0x31d9a['config']['get']('table.enableFooters'))return;const _0x4e4291=_0x31d9a['locale'],_0x26eac9=_0x31d9a['plugins']['get']('TrackChangesEditing');_0x26eac9['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x26eac9['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x4e4291,'FORMAT_FOOTER_ROW'));}}class we extends _0x1e0278{['afterInit'](){const _0x2b67be=this['editor'],_0x26281e=_0x2b67be['locale'],_0x37fe8b=_0x2b67be['plugins']['get']('TrackChangesEditing');function _0xd0288(_0xe2f624){return{'type':'format','content':''+At(_0x26281e,'*Set\x20table\x20type:*\x20%0',_0xe2f624)};}_0x2b67be['plugins']['has']('TableLayout')&&(_0x37fe8b['enableCommand']('insertTableLayout'),_0x37fe8b['enableDefaultAttributesIntegration']('tableType'),_0x37fe8b['descriptionFactory']['registerElementLabel'](_0x2a952e=>_0x2a952e['is']('element','table')&&'layout'===_0x2a952e['getAttribute']('tableType'),_0x3ca7c7=>At(_0x26281e,'ELEMENT_LAYOUT_TABLE',_0x3ca7c7)),_0x37fe8b['descriptionFactory']['registerDescriptionCallback'](_0x6240a7=>{const {data:_0x404392}=_0x6240a7;if(_0x404392&&'tableType'==_0x404392['key'])switch(_0x404392['newValue']){case'layout':return _0xd0288(At(_0x26281e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xd0288(At(_0x26281e,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x217451=>[_0x217451,null]));class De extends _0x1e0278{static get['requires'](){return[Ne];}['afterInit'](){const _0xd6ae73=this['editor'];if(!_0xd6ae73['plugins']['has']('TableClipboard'))return;const _0x304659=_0xd6ae73['plugins']['get']('TrackChangesEditing'),_0x50191d=_0xd6ae73['plugins']['get']('TableUtils'),_0x37ff1b=_0xd6ae73['plugins']['get'](Ne),_0x5e77c9=_0xd6ae73['plugins']['get']('TableClipboard'),_0x2e6709=_0xd6ae73['plugins']['get']('TableSelection'),_0x19e78d=_0xd6ae73['plugins']['get'](ut);_0x37ff1b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xd6ae73['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xd6ae73['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x22b6f7=null,_0x453a0f=!0x1;_0x19e78d['on']('contentInsertion',(_0x726f0c,_0x285178)=>{_0x453a0f='paste'===_0x285178['method'];}),_0xd6ae73['model']['on']('insertContent',(_0x5ee0ec,_0x907c74)=>{if(!_0x453a0f&&null===_0x2e6709['getSelectedTableCells']())return;const [_0x8697b4,_0x176cfd]=_0x907c74,_0x8de55b=_0x907c74[_0x907c74['length']-0x1];_0x8de55b&&_0x8de55b['forceDefaultExecution']||_0x304659['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x31da83,_0x488e98,_0x27b5aa,_0x308c16,_0x1af704){if(_0x488e98&&!_0x488e98['is']('documentSelection'))return!0x1;const _0xb85718=_0x1af704['getTableIfOnlyTableInContent'](_0x31da83,_0x27b5aa);if(!_0xb85718||!xe(_0xb85718,void 0x0,_0x308c16))return!0x1;const _0xf0c5a4=_0x308c16['getSelectionAffectedTableCells'](_0x27b5aa['document']['selection']);if(!_0xf0c5a4['length'])return!0x1;const _0x4659bb=_0xf0c5a4[0x0]['findAncestor']('table'),_0x5edb62=_0x308c16['getRowIndexes'](_0xf0c5a4),_0x48ebb5=_0x308c16['getColumnIndexes'](_0xf0c5a4),_0x463521={'startRow':_0x5edb62['first'],'endRow':_0x5edb62['last'],'startColumn':_0x48ebb5['first'],'endColumn':_0x48ebb5['last']};return 0x1==_0xf0c5a4['length']&&(_0x463521['endRow']+=_0x308c16['getRows'](_0xb85718)-0x1,_0x463521['endColumn']+=_0x308c16['getColumns'](_0xb85718)-0x1),xe(_0x4659bb,_0x463521,_0x308c16);}(_0x8697b4,_0x176cfd,_0xd6ae73['model'],_0x50191d,_0x5e77c9)&&(_0x5ee0ec['stop'](),_0x22b6f7={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xd6ae73['model']['change'](()=>{_0xd6ae73['model']['insertContent'](_0x907c74[0x0],_0x907c74[0x1],_0x907c74[0x2],{'forceDefaultExecution':!0x0});const _0x526f9c=_0x3a482b(),{rowInsertionRanges:_0x433a5d,columnInsertionRanges:_0x49f7b8,insertionRanges:_0x1dc136,deletionRanges:_0x2bda30,cells:_0x221547}=_0x22b6f7;_0x433a5d['length']&&_0x304659['markMultiRangeInsertion'](_0x433a5d,'tablePasteRow',{'tablePasteChainId':_0x526f9c}),_0x49f7b8['length']&&_0x304659['markMultiRangeInsertion'](_0x49f7b8,'tablePasteColumn',{'tablePasteChainId':_0x526f9c}),_0x1dc136['length']&&(_0x304659['markMultiRangeInsertion'](_0x1dc136,'tablePaste',{'tablePasteChainId':_0x526f9c,'skipNestingCheck':!0x0}),_0x1dc136['forEach'](_0x407852=>_0x407852['detach']?.())),_0x2bda30['length']&&(_0x304659['markMultiRangeDeletion'](_0x2bda30,'tablePaste',{'tablePasteChainId':_0x526f9c,'skipNestingCheck':!0x0}),_0x2bda30['forEach'](_0xd22efe=>_0xd22efe['detach']?.()));const _0x5be141=_0x304659['markMultiRangeBlockFormat'](_0x221547['map'](({element:_0x4a41eb})=>_0x4a41eb),{'formatGroupId':_0x3a482b()},[],'tablePasteCell',{'tablePasteChainId':_0x526f9c});if(_0x5be141){const _0x2a4c0b=_0x5be141['getMarkers'](),_0x1319d1=[];for(const {element:_0x1a4f34,attributes:_0x5aaf5e}of _0x221547){if(!_0x5aaf5e)continue;const _0x3839ac=_0xd6ae73['model']['createRangeOn'](_0x1a4f34),_0x21ff20=_0x2a4c0b['find'](_0x589a2f=>_0x589a2f['getRange']()['isEqual'](_0x3839ac));_0x21ff20&&_0x1319d1['push']([_0x21ff20['name'],_0x5aaf5e]);}_0x1319d1['length']&&_0x5be141['setAttribute']('markerAttributes',Object['fromEntries'](_0x1319d1));}_0x22b6f7=null;}));},{'priority':_0x45f9a4['high']+0xa}),_0x19e78d['on']('contentInsertion',()=>{_0x453a0f=!0x1;},{'priority':'lowest'}),_0xd6ae73['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x6b433f,_0x3db9be)=>{const [_0x2a0f89,_0x2f9b4d,,_0x3d147e]=_0x3db9be;if(!_0x22b6f7)return;_0x6b433f['stop']();const _0x2aff39=_0x2a0f89['cell'],_0x45a5b5=_0x2f9b4d,_0x2d0c9c=ve(_0x2aff39),_0x3691d8=ve(_0x45a5b5);_0x6b433f['return']=_0x2aff39;let _0x187d0a=null,_0x4c399c=null;if(_0x3691d8||_0x2d0c9c){if(_0x2d0c9c&&!_0x3691d8){_0x3d147e['remove'](_0x2aff39['getChild'](0x0));for(const _0x2596dc of Array['from'](_0x45a5b5['getChildren']()))_0x3d147e['insert'](_0x2596dc,_0x2aff39,'end');const _0x3deaa6=_0x22b6f7['rowInsertionIndexes']['includes'](_0x2a0f89['row']),_0x527ee7=_0x22b6f7['columnInsertionIndexes']['includes'](_0x2a0f89['column']);_0x3deaa6||_0x527ee7||(_0x187d0a=_0x56dc86['fromRange'](_0x3d147e['createRangeIn'](_0x2aff39)));}else _0x3691d8&&!_0x2d0c9c&&(_0x4c399c=_0x3d147e['createRangeIn'](_0x2aff39));}else{const _0x14dba1=_0x3d147e['createElement']('tableCellSuggestion'),_0x310c04=_0x3d147e['createElement']('tableCellSuggestion');_0x3d147e['wrap'](_0x3d147e['createRangeIn'](_0x2aff39),_0x310c04),_0x3d147e['insert'](_0x14dba1,_0x2aff39,0x0);for(const _0x629a22 of Array['from'](_0x45a5b5['getChildren']()))_0x3d147e['insert'](_0x629a22,_0x14dba1,'end');_0x187d0a=_0x56dc86['fromRange'](_0x3d147e['createRangeOn'](_0x14dba1)),_0x4c399c=_0x56dc86['fromRange'](_0x3d147e['createRangeOn'](_0x310c04));}const _0x475bac=Array['from'](_0x45a5b5['getAttributes']())['filter'](([_0x2716dd])=>Be['includes'](_0x2716dd));_0x22b6f7['cells']['push']({'element':_0x2aff39,'attributes':_0x475bac['length']?Object['fromEntries'](_0x475bac):null}),_0x187d0a&&_0x22b6f7['insertionRanges']['push'](_0x187d0a),_0x4c399c&&_0x22b6f7['deletionRanges']['push'](_0x4c399c);},{'priority':'high'}),_0x50191d['on']('insertColumns',(_0x1bcfde,_0x554462)=>{const [_0x1cb2d3,_0x409ab6={}]=_0x554462;if(!_0x22b6f7)return;const _0x4312bc=_0x409ab6['at']||0x0,_0x56ec78=_0x409ab6['columns']||0x1;_0x22b6f7['columnInsertionIndexes']=new Array(_0x56ec78)['fill'](_0x4312bc)['map']((_0x9c4d3f,_0x6ac1a7)=>_0x9c4d3f+_0x6ac1a7);for(const {cell:_0x12a590}of _0x50191d['createTableWalker'](_0x1cb2d3,{'startColumn':_0x4312bc,'endColumn':_0x4312bc+_0x56ec78-0x1}))_0x22b6f7['columnInsertionRanges']['push'](_0xd6ae73['model']['createRangeOn'](_0x12a590));},{'priority':'low'}),_0x50191d['on']('insertRows',(_0x35a738,_0x563196)=>{const [_0x293a8e,_0x1adb35={}]=_0x563196;if(!_0x22b6f7)return;const _0x2605df=_0x1adb35['at']||0x0,_0x504369=_0x1adb35['rows']||0x1;_0x22b6f7['rowInsertionIndexes']=new Array(_0x504369)['fill'](_0x2605df)['map']((_0x2c7a88,_0xd3548c)=>_0x2c7a88+_0xd3548c);for(const {cell:_0x4b843f}of _0x50191d['createTableWalker'](_0x293a8e,{'startRow':_0x2605df,'endRow':_0x2605df+_0x504369-0x1}))_0x22b6f7['rowInsertionRanges']['push'](_0xd6ae73['model']['createRangeOn'](_0x4b843f));},{'priority':'low'}),_0x304659['descriptionFactory']['registerDescriptionCallback'](_0x3c512d=>{if(_0x3c512d['subType']&&_0x3c512d['subType']['startsWith']('tablePaste'))return _0x3c512d['previous']?{}:{'type':'insertion','content':At(_0xd6ae73['locale'],'*Replace\x20table\x20cells*')};});const _0xce5f6e=()=>!0x1;for(const _0x488e23 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x304659['_suggestionFactory']['registerCustomCallback']('insertion',_0x488e23,'join',_0xce5f6e),_0x304659['_suggestionFactory']['registerCustomCallback']('deletion',_0x488e23,'join',_0xce5f6e),_0x304659['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x488e23,'join',_0xce5f6e);_0x304659['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xce5f6e),_0x304659['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4b4a44,_0x3699d0,_0x67c16f)=>{const _0x3f7198=_0x4b4a44['map'](_0x160b46=>_0x160b46['getContainedElement']())['filter'](_0x65c366=>_0x65c366),_0x490c82=new Map(_0x3f7198['map'](_0x2034fb=>[_0x2034fb,null]));if(_0x22b6f7){for(const {element:_0x3bfbaa,attributes:_0x5d07eb}of _0x22b6f7['cells'])_0x5d07eb&&_0x490c82['set'](_0x3bfbaa,_0x5d07eb);}else{if(_0x67c16f&&_0x67c16f['markerAttributes'])for(const [_0x4669ef,_0xfcc0d3]of Object['entries'](_0x67c16f['markerAttributes'])){const _0x70e3ce=_0xd6ae73['model']['markers']['get'](_0x4669ef),_0x416e31=_0x70e3ce?_0x70e3ce['getRange']()['getContainedElement']():null;_0x416e31&&_0x490c82['set'](_0x416e31,_0xfcc0d3);}}_0xd6ae73['model']['change'](_0x56b6c7=>{for(const [_0x5eac4e,_0x202c1c]of _0x490c82)_0x56b6c7['setAttributes']({...Fe,..._0x202c1c},_0x5eac4e);});});const _0x2ebeb8=(_0x323c72,_0x5762af)=>{_0x304659['_suggestionFactory']['registerCustomCallback'](_0x323c72,'tablePaste',_0x5762af,(_0x301592,_0x3bbd3c,_0x2fceec)=>{_0xd6ae73['model']['change'](_0x4ce629=>{const _0x47129c=[];for(const _0x364425 of _0x301592){const _0x104ae4=_0x364425['start']['nodeAfter'];_0x104ae4['is']('element','tableCellSuggestion')&&_0x47129c['push'](_0x104ae4);}_0x304659['_suggestionFactory']['getSuggestionCallback'](_0x323c72,null,_0x5762af)(_0x301592,_0x3bbd3c,_0x2fceec);for(const _0x1dc62b of _0x47129c)'$graveyard'!=_0x1dc62b['root']['rootName']&&_0x4ce629['unwrap'](_0x1dc62b);});});};_0x2ebeb8('insertion','accept'),_0x2ebeb8('insertion','discard'),_0x2ebeb8('deletion','accept'),_0x2ebeb8('deletion','discard'),_0x304659['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x512a0f=>{const _0x2f0d16=_0x512a0f['map'](_0xf37d7e=>_0xf37d7e['getContainedElement']()),_0x3749db=_0x2f0d16[0x0]['findAncestor']('table'),{minRow:_0x9df3ea,maxRow:_0x875057}=_0x37ff1b['_getCoordsForCells'](_0x2f0d16);_0x50191d['removeRows'](_0x3749db,{'at':_0x9df3ea,'rows':_0x875057-_0x9df3ea+0x1});}),_0x304659['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2e15ac=>{const _0x2b18da=_0x2e15ac['map'](_0x13391e=>_0x13391e['getContainedElement']()),_0x400d38=_0x2b18da[0x0]['findAncestor']('table'),{minColumn:_0x2ac12f,maxColumn:_0x539cca}=_0x37ff1b['_getCoordsForCells'](_0x2b18da);_0x50191d['removeColumns'](_0x400d38,{'at':_0x2ac12f,'columns':_0x539cca-_0x2ac12f+0x1});});const _0x5aeb3d=(_0x229209,_0x50bd5c)=>{if(!_0x50bd5c['subType']||!_0x50bd5c['subType']['startsWith']('tablePaste'))return;const _0x5601b6=_0x50bd5c['attributes']['tablePasteChainId'],_0x50e30f=_0x304659['getSuggestions']()['filter'](_0xb3d5bd=>_0xb3d5bd['isInContent']&&_0xb3d5bd['attributes']&&_0xb3d5bd['attributes']['tablePasteChainId']==_0x5601b6);_0x50e30f['length']&&_0x50bd5c['getAllAdjacentSuggestions']()['length']!=_0x50e30f['length']&&_0x50e30f['reduce']((_0x3e0320,_0x28a900)=>(_0x3e0320['next']=_0x28a900,_0x28a900['previous']=_0x3e0320,_0x28a900));};function _0x52c1d4(_0x36554a,_0x466d42=!0x0){const {id:_0x6b0b5f,authorId:_0x1cfb79}=_0xfb1f58(_0x36554a['markerName']),_0x1b9028=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4386fc=_0x304659['activeMarkers']['includes'](_0x36554a['markerName']);return _0x4386fc&&_0x1b9028['push']('ck-suggestion-marker--active'),{'classes':_0x1b9028,'attributes':{'data-suggestion':_0x6b0b5f,'data-author-id':_0x1cfb79},'priority':_0x4386fc&&_0x466d42?0xbc2:0xbb8};}_0x304659['on']('suggestionLoaded',_0x5aeb3d,{'priority':'high'}),_0x304659['on']('suggestionUnloaded',_0x5aeb3d,{'priority':'high'}),_0xd6ae73['model']['document']['registerPostFixer'](()=>{let _0x51b600=!0x1;const _0x10da7a=Array['from'](_0xd6ae73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54ad5c,data:_0x4c7e81}of _0x10da7a){const {group:_0x59a8fe,type:_0x56e03a,id:_0x26e0ee}=_0xfb1f58(_0x54ad5c);if('suggestion'!=_0x59a8fe||'deletion'!=_0x56e03a||_0x4c7e81['oldRange'])continue;if(!_0x304659['hasSuggestion'](_0x26e0ee))continue;const _0x3dc740=_0x304659['getSuggestion'](_0x26e0ee)['getRanges'](),_0x5cd0fe=_0xd6ae73['plugins']['get']('Users')['me'];for(const _0x36545c of _0x304659['getSuggestions']()){if(!_0x36545c['isInContent']||_0x36545c['author']!=_0x5cd0fe)continue;if('formatBlock'!=_0x36545c['type']||'tablePasteCell'!=_0x36545c['subType'])continue;if(_0x36545c['getRanges']()['every'](_0x1ecd2e=>_0x3dc740['some'](_0x19950b=>_0x19950b['containsRange'](_0x1ecd2e,!0x0)))){for(const _0x473523 of _0x36545c['getAllAdjacentSuggestions']())_0x473523['isInContent']&&(_0x473523['discard'](),_0x51b600=!0x0);}}}return _0x51b600;}),_0xd6ae73['model']['document']['registerPostFixer'](_0x2d4c41=>{const _0x140df8=_0xd6ae73['commands']['get']('redo');if(!_0x140df8||!_0x140df8['_createdBatches']['has'](_0x2d4c41['batch']))return!0x1;let _0x126715=!0x1;const _0x7ffc40=_0xd6ae73['plugins']['get']('Users')['me'],_0x57be77=_0xd6ae73['model']['document']['differ']['getChanges'](),_0x57c8bd=Array['from'](_0xd6ae73['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x255270,data:_0x489831})=>{const {group:_0x94c31d,subType:_0x1ec95a,authorId:_0x95359c}=_0xfb1f58(_0x255270);return'suggestion'==_0x94c31d&&'tablePaste'==_0x1ec95a&&_0x95359c==_0x7ffc40['id']&&!_0x489831['oldRange'];});for(const _0x25f72d of _0x57be77){if('insert'!=_0x25f72d['type']||'tableCellSuggestion'!=_0x25f72d['name']||0x1!=_0x25f72d['length'])continue;const _0x398c41=_0x2d4c41['createRange'](_0x25f72d['position'],_0x25f72d['position']['getShiftedBy'](0x1));if(!_0x57c8bd['find'](({data:_0x5e2dc6})=>_0x5e2dc6['newRange']['isEqual'](_0x398c41))){for(const {name:_0x4ce774,data:_0x5126c7}of _0x57c8bd)if(_0x398c41['containsRange'](_0x5126c7['newRange'])){_0x2d4c41['updateMarker'](_0x4ce774,{'range':_0x398c41}),_0x126715=!0x0;break;}}}return _0x126715;}),_0xd6ae73['model']['document']['registerPostFixer'](_0x24eaee=>{let _0x10dd43=!0x1;const _0x46ca68=_0xd6ae73['plugins']['get']('Users')['me'],_0x541238=_0x304659['getSuggestions']()['filter'](_0xf15e06=>_0xf15e06['isInContent']&&_0xf15e06['author']==_0x46ca68),_0x50e510=new Set(),_0x5965f8=new Set();for(const _0x319f85 of _0x541238)if('tablePaste'==_0x319f85['subType'])for(const _0x1aaed3 of _0x319f85['getMarkers']()){const _0x30cf9b=_0x1aaed3['getRange']()['getContainedElement']();if(_0x30cf9b){if(_0x30cf9b['is']('element','tableCellSuggestion')&&ve(_0x30cf9b)){_0x319f85['removeMarker'](_0x1aaed3['name']),_0x50e510['add'](_0x30cf9b),_0x10dd43=!0x0;const _0x35aef1=_0x30cf9b['nextSibling'],_0x4f10a9=_0x30cf9b['previousSibling'],_0x1d2bd1=_0x35aef1&&_0x35aef1['is']('element','tableCellSuggestion'),_0x221ce0=_0x4f10a9&&_0x4f10a9['is']('element','tableCellSuggestion');_0x1d2bd1&&!_0x50e510['has'](_0x35aef1)&&_0x5965f8['add'](_0x35aef1),_0x221ce0&&!_0x50e510['has'](_0x4f10a9)&&_0x5965f8['add'](_0x4f10a9);}else _0x30cf9b['is']('element','paragraph')&&_0x30cf9b['isEmpty']&&(_0x319f85['removeMarker'](_0x1aaed3['name']),_0x10dd43=!0x0);}}else{if('tablePasteCell'==_0x319f85['subType']){if(!_0x319f85['attributes']||!_0x319f85['attributes']['tablePasteChainId'])continue;const _0x20c33a=_0x319f85['attributes']['markerAttributes'];if(_0x20c33a&&Object['keys'](_0x20c33a)['length'])continue;const _0x7a3ccc=_0x319f85['attributes']['tablePasteChainId'];let _0x38dd62=!0x0,_0x446db4=!0x0;for(const _0x65b38a of _0x541238)if(_0x65b38a['subType']&&_0x65b38a['subType']['startsWith']('tablePaste')){if(!_0x65b38a['attributes']['tablePasteChainId']){_0x446db4=!0x1;break;}if(_0x65b38a['id']!=_0x319f85['id']&&_0x65b38a['attributes']['tablePasteChainId']==_0x7a3ccc){_0x38dd62=!0x1;break;}}_0x446db4&&_0x38dd62&&(_0x319f85['removeMarkers'](),_0x10dd43=!0x0);}}for(const _0x353183 of _0x50e510)_0x24eaee['remove'](_0x353183);for(const _0x1b52c9 of _0x5965f8)_0x24eaee['unwrap'](_0x1b52c9);return _0x10dd43;}),_0xd6ae73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2ebbc7=>_0x52c1d4(_0x2ebbc7),'converterPriority':'high'}),_0xd6ae73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4a6a9e,_0x5edfa3)=>_0x5edfa3['options']['showSuggestionHighlights']?_0x52c1d4(_0x4a6a9e,!0x1):null,'converterPriority':'high'});const _0xb3ce6f=_0xd6ae73['editing']['view'];this['listenTo'](_0xb3ce6f['document'],'clipboardOutput',(_0x143e1e,_0x511b93)=>{const _0x2d2cdc=[];for(const _0x147683 of _0xb3ce6f['createRangeIn'](_0x511b93['content'])['getItems']())_0x147683['is']('element','suggestion-td')&&_0x2d2cdc['push'](_0x147683);_0xb3ce6f['change'](_0x127f1c=>{for(const _0x501c29 of _0x2d2cdc)_0x127f1c['move'](_0x127f1c['createRangeIn'](_0x501c29),_0x127f1c['createPositionBefore'](_0x501c29)),_0x127f1c['remove'](_0x501c29);});});}}function ve(_0x58c9ad){if(_0x58c9ad['isEmpty'])return!0x0;const _0x31fc46=_0x58c9ad['getChild'](0x0);return _0x31fc46['is']('element','paragraph')&&_0x31fc46['isEmpty'];}function xe(_0x158148,_0x1c8fb1={},_0x5783de){for(const {isAnchor:_0x3398db,cellHeight:_0x19b25a,cellWidth:_0x56a402}of _0x5783de['createTableWalker'](_0x158148,{'includeAllSlots':!0x0,..._0x1c8fb1}))if(!_0x3398db||0x1!=_0x19b25a||0x1!=_0x56a402)return!0x1;return!0x0;}class Pe extends _0x1e0278{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x413d35=this['editor']['plugins']['get']('TrackChangesEditing');_0x413d35['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x413d35['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x413d35['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x413d35['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x413d35['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x413d35['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2657c7,_0x4ae94b){const _0x4a3bf7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e537b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2bf194=_0x4ae94b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x274692=_0x4e537b['getColumnGroupElement'](_0x2bf194);let _0x558168=_0x274692?_0x4e537b['getTableColumnsWidths'](_0x274692):null,_0x3ae4d4=_0x2bf194['getAttribute']('tableWidth')||null;const _0x19beac=_0x4ae94b['tableWidth']||_0x3ae4d4,_0x4ae2aa=_0x4ae94b['columnWidths']||_0x558168,_0x52237e=this['editor']['plugins']['get']('Users')['me'];for(const _0x11e46f of _0x4a3bf7['getSuggestions']()){const _0x463c1c=_0x11e46f['getContainedElement']();if('resizeTable'===_0x11e46f['subType']&&_0x463c1c===_0x2bf194){_0x11e46f['author']!==_0x52237e&&_0x11e46f['discard']();const _0x484693=_0x11e46f['data']['commandParams'];_0x3ae4d4=_0x484693[0x0]['tableWidth'],_0x558168=_0x484693[0x0]['columnWidths'];break;}}_0x2657c7({'table':_0x2bf194,'tableWidth':_0x19beac,'columnWidths':_0x4ae2aa}),_0x4a3bf7['markBlockFormat'](_0x2bf194,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3ae4d4,'columnWidths':_0x558168}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x24184a){if('formatBlock'!=_0x24184a['type']&&'formatInline'!=_0x24184a['type'])return;const {data:_0x3ffdf7}=_0x24184a;if(_0x3ffdf7&&'resizeTable'===_0x3ffdf7['formatGroupId']){const _0x33d680='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x33d680)};}}}class Ue extends _0x1e0278{['afterInit'](){const _0x2cec5f=this['editor'];_0x2cec5f['plugins']['has']('Template')&&_0x2cec5f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x1e0278{['afterInit'](){const _0x570684=this['editor'];if(!_0x570684['commands']['get']('insertTableOfContents'))return;_0x570684['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4a7a99=_0x570684['plugins']['get']('TrackChangesEditing'),_0x5ba127=_0x570684['locale'];_0x4a7a99['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5e1a26=>At(_0x5ba127,'ELEMENT_TABLE_OF_CONTENTS',_0x5e1a26));}}class He extends _0x1e0278{['afterInit'](){const _0x5a771b=this['editor'];if(!_0x5a771b['plugins']['has']('Title'))return;_0x5a771b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x5a771b['locale'],'ELEMENT_TITLE')),_0x5a771b['model']['document']['registerPostFixer'](_0x2779b6=>{let _0x4fd995=!0x1;const _0x3414f2=Array['from'](_0x5a771b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a7860,data:_0x2a12b2}of _0x3414f2){const {group:_0x34577a}=_0xfb1f58(_0x2a7860);if('suggestion'!==_0x34577a||!_0x2a12b2['newRange'])continue;const _0x5ac76f=_0x2a12b2['newRange'],_0x44257b=_0x5ac76f['end']['nodeBefore'];if(!_0x44257b||!_0x44257b['is']('element','title-content'))continue;if(!_0x5ac76f['start']['isTouching'](_0x5ac76f['end']))continue;const _0x46ac0=_0x5a771b['model']['schema']['getNearestSelectionRange'](_0x5ac76f['end'],'forward');if(_0x46ac0&&_0x46ac0['isCollapsed']){const _0x487b0f=_0x2779b6['createRange'](_0x5ac76f['start'],_0x46ac0['start']);_0x487b0f['isEqual'](_0x5ac76f)||(_0x2779b6['updateMarker'](_0x2a7860,{'range':_0x487b0f}),_0x4fd995=!0x0);}_0x4fd995||(_0x2779b6['removeMarker'](_0x2a7860),_0x4fd995=!0x0);}return _0x4fd995;});}}class $e extends _0x1e0278{['afterInit'](){const _0x18be2f=this['editor'],_0x4c11b7=_0x18be2f['plugins']['get']('TrackChangesEditing');_0x18be2f['plugins']['has']('Uploadcare')&&(_0x4c11b7['enableCommand']('uploadcare'),_0x18be2f['plugins']['has']('UploadcareImageEdit')&&(_0x4c11b7['enableCommand']('uploadcareImageEdit'),_0x4c11b7['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4c11b7['descriptionFactory']['registerDescriptionCallback'](_0x2017f7=>{if('attribute'!=_0x2017f7['type'])return;const {data:_0x5bd46f}=_0x2017f7;return _0x5bd46f&&'uploadcareImageId'==_0x5bd46f['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x1e0278{['afterInit'](){const _0x4a1ec1=this['editor'],_0x4955a2=_0x4a1ec1['plugins']['get']('TrackChangesEditing');_0x4a1ec1['plugins']['has']('UndoEditing')&&(_0x4955a2['enableCommand']('undo'),_0x4955a2['enableCommand']('redo'));}}class Ve extends _0x1e0278{static get['requires'](){return[Ne];}['afterInit'](){const _0x43726d=this['editor'];if(!_0x43726d['plugins']['has']('TableCaptionEditing'))return;_0x43726d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x1e0278{['tableProperties'];['tableCellProperties'];constructor(_0x456e20){super(_0x456e20),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 _0x15c091=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3314c2 of this['tableProperties'])_0x15c091['enableCommand'](_0x3314c2,(_0x743cb2,_0x4c525c)=>{const _0x1a7eda=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3314c2,[_0x1a7eda],this['tableProperties'],'tableProperties',_0x743cb2,_0x4c525c);});_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15c091['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3bbd7f,_0x4fd2b5)=>this['handleDiscardAction'](this['tableProperties'],_0x3bbd7f,_0x4fd2b5)),_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4a4966 of this['tableCellProperties'])this['editor']['commands']['get'](_0x4a4966)&&_0x15c091['enableCommand'](_0x4a4966,(_0x625f7e,_0x1e568f)=>{const _0x49aca1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4a4966,_0x49aca1,this['tableCellProperties'],'tableCellProperties',_0x625f7e,_0x1e568f);});_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15c091['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x289eec,_0x45fc92)=>this['handleDiscardAction'](this['tableCellProperties'],_0x289eec,_0x45fc92)),_0x15c091['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x15c091['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x15c091['descriptionFactory']['registerDescriptionCallback'](_0x57412d=>this['handleSuggestionDescription'](_0x57412d)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x4f4e65,_0x4f7e98,_0x3c6d95,_0x20c2ca,_0x4cf5db,_0x18bbe6){const _0x3f7c89=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18bbe6['batch'],()=>{for(const _0x21c847 of _0x4f7e98){if(this['_getSuggestion'](_0x21c847,_0x20c2ca))_0x4cf5db(_0x18bbe6);else{const _0x47295c={};for(const _0x20fa5e of _0x3c6d95){const _0x4319e9=_0x21c847['getAttribute'](_0x20fa5e);void 0x0!==_0x4319e9&&(_0x47295c[_0x20fa5e]=_0x4319e9);}_0x4cf5db(_0x18bbe6),_0x3f7c89['markBlockFormat'](_0x21c847,{'commandParams':[_0x47295c]},[],_0x20c2ca);}}});}['handleDiscardAction'](_0x4c885f,_0x36c054,_0x1b695){const _0x201fc2=_0x36c054[0x0]['start']['nodeAfter'],_0x4ab394=_0x1b695['commandParams'][0x0];this['editor']['model']['change'](_0x3d3c36=>{for(const _0x37bc01 of _0x4c885f)void 0x0!==_0x4ab394[_0x37bc01]?_0x3d3c36['setAttribute'](_0x37bc01,_0x4ab394[_0x37bc01],_0x201fc2):_0x3d3c36['removeAttribute'](_0x37bc01,_0x201fc2);});}['handleSuggestionDescription'](_0x92a795){if(_0x92a795['data'])switch(_0x92a795['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'](_0x46dbf4,_0x5b60c6){const _0x49164a=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x205bb1 of _0x49164a['getSuggestions']({'skipNotAttached':!0x0})){const _0x5248cd=_0x205bb1['getContainedElement']();if(_0x205bb1['subType']===_0x5b60c6&&_0x5248cd===_0x46dbf4)return _0x205bb1;}return null;}['_registerTablePropertiesAttributes'](){const _0x376626=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4700c9=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1af866 of _0x4700c9){const _0x42d217=_0x1af866['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x376626['descriptionFactory']['registerAttributeLabel'](_0x1af866,At(this['editor']['locale'],'FORMAT_'+_0x42d217));}}}class ze extends _0x1e0278{['afterInit'](){const _0x4f5667=this['editor'];if(!_0x4f5667['plugins']['has']('LineHeight'))return;const _0x38ae5f=_0x4f5667['plugins']['get']('TrackChangesEditing'),_0x2953ea=_0x4f5667['locale'];_0x38ae5f['enableDefaultAttributesIntegration']('lineHeight'),_0x38ae5f['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2953ea,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x1e0278{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x3fa1f3,_0x400bb5,_0x52b80c,_0x47d057,_0x3432d3,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(_0x21ca85){super(_0x21ca85),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4dda1d,_0x34fe6d,_0x194886,_0x443e47)=>{this['_model']['change'](()=>{for(const _0x185747 of[..._0x443e47,..._0x194886])this['_model']['markers']['has'](_0x185747)&&_0x21ca85['editing']['reconvertMarker'](_0x185747);});}),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']=_0x21ca85['plugins']['get'](_0x3fa1f3),this['_suggestionsConversion']=_0x21ca85['plugins']['get'](_0x400bb5),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x21ca85['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21ca85['config']['get']('trackChanges.trackFormatChanges'),_0x21ca85['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21ca85['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x21ca85,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x14b424=this['editor'];_0x14b424['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40e82b,{writer:_0x12fede})=>{let _0x21418b='suggestion:'+_0x40e82b['getAttribute']('suggestion-type')+':'+_0x40e82b['getAttribute']('id');return _0x40e82b['getAttribute']('marker-count')&&(_0x21418b+=':'+_0x40e82b['getAttribute']('marker-count')),_0x12fede['createElement']('$marker',{'data-name':_0x21418b});}}),_0x14b424['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x14b424['model']['document']['registerPostFixer'](_0x39f958=>{let _0x20e51c=!0x1;const _0x241616=Array['from'](_0x14b424['model']['document']['differ']['getChangedMarkers']()),_0x302957=new Set();for(const {name:_0x51d153,data:_0x2e2aca}of _0x241616){const {group:_0x3f9d70,type:_0x527b07,subType:_0x35c984,id:_0x3fa1a2}=_0xfb1f58(_0x51d153);if('suggestion'!==_0x3f9d70)continue;const _0x211da3=_0x35c984?'suggestion:'+_0x527b07+':'+_0x35c984+':'+_0x3fa1a2:'suggestion:'+_0x527b07+':'+_0x3fa1a2,_0x694ef4=_0x14b424['model']['markers']['getMarkersGroup'](_0x211da3),_0x2812d1=_0x14b424['model']['markers']['get'](_0x51d153),_0x3dc30e=this['_suggestions']['get'](_0x3fa1a2);if(null!=_0x2e2aca['newRange']){'formatInline'==_0x527b07&&(_0x20e51c=_0x20e51c||Ze(_0x2e2aca['newRange'],_0x51d153,_0x39f958,_0x14b424['model']['schema']));const _0xc6834='attribute'==_0x527b07&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x35c984)),_0x3c5a8d='attribute'==_0x527b07&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x35c984));if(_0x2e2aca['newRange']['isCollapsed']||'$graveyard'==_0x2e2aca['newRange']['root']['rootName']||'formatBlock'==_0x527b07&&!tn(_0x2e2aca['newRange'])||_0xc6834&&!tn(_0x2e2aca['newRange'])||_0x3c5a8d&&en(_0x2e2aca['newRange'])||'deletion'==_0x527b07&&en(_0x2e2aca['newRange'])||_0x2812d1&&nn(_0x2812d1,_0x694ef4))_0x39f958['removeMarker'](_0x51d153),_0x20e51c=!0x0;else{if(!_0x3dc30e||!_0x3dc30e['isInContent'])continue;if(_0x2e2aca['newRange']&&_0x2e2aca['oldRange']&&_0x2e2aca['newRange']['isEqual'](_0x2e2aca['oldRange']))continue;_0x302957['add'](_0x3dc30e);}}}return _0x302957['size']>0x0&&(_0x20e51c=!!this['_joinWithAdjacentSuggestions'](_0x302957)||_0x20e51c),_0x20e51c;}),_0x14b424['model']['document']['registerPostFixer'](_0x262bbc=>{let _0x29019f=!0x1;for(const _0x59369c of _0x14b424['model']['document']['differ']['getChanges']())if('insert'==_0x59369c['type'])for(const _0x52182d of this['_suggestions']['values']()){if(_0x52182d['isMultiRange']||!_0x52182d['isInContent'])continue;const _0x4c5cb4='formatBlock'==_0x52182d['type'],_0x2b5aa7=this['_getAttributeKey'](_0x52182d),_0x459b28=_0x2b5aa7&&this['_suggestionsConversion']['isBlockAttribute'](_0x2b5aa7);if(!_0x4c5cb4&&!_0x459b28)continue;const _0x2a3d61=_0x52182d['getFirstRange']();if(_0x2a3d61['start']['parent']!=_0x2a3d61['end']['parent']&&!_0x2a3d61['end']['isAtEnd']){const _0x1c4772=_0x14b424['model']['createPositionAt'](_0x2a3d61['start']['nodeAfter'],'end'),_0x533ad5=_0x14b424['model']['createRange'](_0x2a3d61['start'],_0x1c4772);_0x262bbc['updateMarker'](_0x52182d['getFirstMarker'](),{'range':_0x533ad5}),_0x29019f=!0x0;}}return _0x29019f;}),_0x14b424['model']['document']['registerPostFixer'](_0x1ed602=>this['_processAttributeChanges'](_0x1ed602)),_0x14b424['model']['document']['registerPostFixer'](_0x1a5f8a=>!_0x1a5f8a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1a5f8a)),_0x14b424['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x14b424['model']['document']['on']('change:data',(_0xbbf7e4,_0x21d521)=>{if(!_0x21d521['isLocal']||_0x21d521['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xc23f69=_0x14b424['model']['document']['differ']['getChanges']();if(0x0==_0xc23f69['length'])return;const _0x3a7d40=[],_0x585dd7=_0xc23f69['filter'](_0x2f37ca=>'attribute'==_0x2f37ca['type']),_0x3f800c=_0xc23f69['filter'](_0xcf88a9=>'insert'==_0xcf88a9['type']&&'$text'!=_0xcf88a9['name']);for(const _0x34afc0 of _0x585dd7)this['_suggestionsConversion']['isRegisteredAttribute'](_0x34afc0['attributeKey'])&&_0x3a7d40['push']({'key':_0x34afc0['attributeKey'],'newValue':_0x34afc0['attributeNewValue'],'oldValue':_0x34afc0['attributeOldValue'],'range':sn(_0x34afc0['range'],_0x14b424['model'])});for(const _0x316ebc of _0x3f800c){if('rename'!=_0x316ebc['action']&&'refresh'!=_0x316ebc['action'])continue;const _0x5cab1f=rn(_0x316ebc['position']['nodeAfter'],_0x14b424['model']),_0xd5a698=_0x316ebc['before'];'rename'==_0x316ebc['action']&&_0x3a7d40['push']({'key':Ke,'newValue':_0x316ebc['name'],'oldValue':_0xd5a698['name'],'range':_0x5cab1f});for(const [_0x1eff87,_0x353819]of _0xd5a698['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1eff87))continue;const _0x384722=_0x316ebc['attributes']['get'](_0x1eff87);_0x353819!==_0x384722&&_0x3a7d40['push']({'key':_0x1eff87,'newValue':_0x384722,'oldValue':_0x353819,'range':_0x5cab1f});}for(const [_0xc6066b,_0x22a59b]of _0x316ebc['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0xc6066b)&&(_0xd5a698['attributes']['has'](_0xc6066b)||_0x3a7d40['push']({'key':_0xc6066b,'newValue':_0x22a59b,'oldValue':null,'range':_0x5cab1f}));}0x0!=_0x3a7d40['length']&&_0x14b424['model']['enqueueChange'](_0x21d521,_0x321b10=>{const _0x3dc983=_0x3a482b();for(const {range:_0x385296,key:_0x42bb8e,oldValue:_0x1d8705,newValue:_0x2959b4}of _0x3a7d40)this['markAttributeChange'](_0x385296,_0x42bb8e,_0x1d8705,_0x2959b4,{'groupId':_0x3dc983});this['_reduceExistingSuggestions'](_0x321b10,_0x3a7d40);});},{'priority':'lowest'}),_0x14b424['model']['markers']['on']('update:suggestion',(_0x3ba00f,_0xd50a58,_0x474fa5)=>{if(null==_0x474fa5){const {id:_0x370df9}=_0xfb1f58(_0xd50a58['name']),_0x24c5f1=this['_suggestions']['get'](_0x370df9);_0x24c5f1&&_0x24c5f1['addMarkerName'](_0xd50a58['name']);}}),_0x14b424['model']['document']['on']('change:data',()=>{const _0x1afd79=Array['from'](_0x14b424['model']['document']['differ']['getChangedMarkers']())['filter'](_0x50a95a=>'suggestion'===_0xfb1f58(_0x50a95a['name'])['group']);if(0x0===_0x1afd79['length'])return;_0x1afd79['sort']((_0x2554b1,_0x6affab)=>{const _0x57650d=_0x2554b1['data']['oldRange'],_0x17bb5c=_0x6affab['data']['oldRange'];return null===_0x57650d&&null===_0x17bb5c?0x0:null===_0x57650d&&null!==_0x17bb5c?-0x1:null!==_0x57650d&&null===_0x17bb5c?0x1:_0x57650d['start']['isBefore'](_0x17bb5c['start'])?-0x1:0x1;});const _0x442255=new Set(),_0xe97647=new Set();for(const {name:_0x117b11,data:_0x30cb6b}of _0x1afd79){const {id:_0x5b7d81}=_0xfb1f58(_0x117b11);if(null===_0x30cb6b['oldRange']){const _0x52f636=this['_handleNewSuggestionMarker'](_0x117b11);_0xe97647['add'](_0x52f636);}else{const _0x69659d=this['_suggestions']['get'](_0x5b7d81);null!==_0x30cb6b['newRange']||_0x69659d['isInContent']?(_0x442255['add'](_0x69659d['head']),_0xe97647['add'](_0x69659d)):this['_removeSuggestion'](_0x69659d);}}_0xe97647['size']>0x0&&this['_refreshSuggestionsChain'](_0xe97647);for(const _0xeedf64 of _0x442255)this['fire']('suggestionChanged',_0xeedf64);}),_0x14b424['model']['on']('applyOperation',(_0x37411c,_0x2b98fa)=>{const _0x5ef556=_0x2b98fa[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ef556['isDocumentOperation'])return;if(_0x5ef556['batch']['isUndo']||!_0x5ef556['batch']['isLocal'])return;let _0x445427,_0x4906ab;switch(_0x5ef556['type']){case'insert':_0x445427=_0x14b424['model']['createPositionAt'](_0x5ef556['position']),_0x4906ab=_0x445427['getShiftedBy'](_0x5ef556['howMany']);break;case'split':_0x445427=_0x14b424['model']['createPositionAt'](_0x5ef556['splitPosition']),_0x4906ab=_0x14b424['model']['createPositionAt'](_0x5ef556['moveTargetPosition']);break;case'move':_0x445427=_0x14b424['model']['createPositionAt'](_0x5ef556['targetPosition']),_0x4906ab=_0x445427['getShiftedBy'](_0x5ef556['howMany']);break;default:return;}const _0xce88bc=_0x14b424['model']['createRange'](_0x445427,_0x4906ab);_0x14b424['model']['change'](()=>{for(const {suggestion:_0x8fd985,meta:_0x50f726}of this['_findSuggestions'](_0xce88bc)){if(_0x8fd985['isMultiRange'])continue;if('formatInline'==_0x8fd985['type'])continue;const _0x13bad0=this['_getAttributeKey'](_0x8fd985);if(_0x13bad0&&this['_suggestionsConversion']['isBlockAttribute'](_0x13bad0)&&'split'!=_0x5ef556['type'])continue;const _0x47f263=_0x8fd985['data']&&_0x8fd985['data']['multipleBlocks'];('formatBlock'!=_0x8fd985['type']||'split'==_0x5ef556['type']&&!_0x47f263)&&(_0x50f726['containsRangeInObject']||'insertion'==_0x8fd985['type']&&_0x50f726['isOwn']||_0x8fd985['getFirstRange']()['containsRange'](_0xce88bc)&&this['_breakSuggestionMarker'](_0x8fd985,_0x445427,_0x4906ab));}});},{'priority':'lowest'}),_0x14b424['model']['on']('deleteContent',(_0x2452df,_0x550986)=>{const _0x40fe16=_0x550986[0x0],_0x115667=_0x550986[0x1];if(_0x115667&&_0x115667['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x40fe16['isCollapsed'])return;const _0x2621e0=_0x14b424['model']['schema'],{start:_0x1c3d58,end:_0x4fb07a}=_0x40fe16['getFirstRange'](),_0x4c1e47=_0x1c3d58['nodeAfter']&&_0x2621e0['isLimit'](_0x1c3d58['nodeAfter'])?null:_0x2621e0['getNearestSelectionRange'](_0x1c3d58,'forward'),_0x4daca1=_0x4fb07a['nodeBefore']&&_0x2621e0['isLimit'](_0x4fb07a['nodeBefore'])?null:_0x2621e0['getNearestSelectionRange'](_0x4fb07a,'backward'),_0x3e4da9=_0x14b424['model']['createRange'](_0x4c1e47?_0x4c1e47['start']:_0x1c3d58,_0x4daca1?_0x4daca1['end']:_0x4fb07a);_0x14b424['model']['change'](_0x5fdfb0=>{this['markDeletion'](_0x3e4da9);const _0x3670d5=_0x14b424['model']['schema']['getNearestSelectionRange'](_0x3e4da9['start']);_0x40fe16['is']('documentSelection')?_0x5fdfb0['setSelection'](_0x3670d5):_0x40fe16['setTo'](_0x3670d5);}),_0x2452df['stop']();},{'priority':_0x45f9a4['normal']+0xa}),_0x14b424['model']['on']('insertContent',(_0x58aca3,_0x4404d0)=>{const _0x341923=_0x4404d0[_0x4404d0['length']-0x1];_0x341923&&_0x341923['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x14b424['model']['change'](()=>{let _0x279f9c=_0x14b424['model']['insertContent'](_0x4404d0[0x0],_0x4404d0[0x1],_0x4404d0[0x2],{'forceDefaultExecution':!0x0});if(!_0x279f9c)return;_0x58aca3['return']=_0x279f9c['clone']();const _0x22f579=_0x279f9c['end']['nodeBefore'],_0x479e94=_0x14b424['model']['schema'];_0x22f579&&_0x479e94['isBlock'](_0x22f579)&&!_0x479e94['isObject'](_0x22f579)&&(_0x279f9c=_0x14b424['model']['createRange'](_0x279f9c['start'],_0x14b424['model']['createPositionAt'](_0x22f579,'end'))),this['markInsertion'](_0x279f9c);}),_0x58aca3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x170d84=new dt(_0x14b424,this['_suggestions']);_0x14b424['commands']['add']('acceptSuggestion',_0x170d84),this['enableCommand']('acceptSuggestion');const _0x2a6c93=new ft(_0x14b424,this['_suggestions']);_0x14b424['commands']['add']('discardSuggestion',_0x2a6c93),this['enableCommand']('discardSuggestion'),_0x14b424['commands']['add']('acceptAllSuggestions',new Lt(_0x14b424,_0x170d84,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x14b424['commands']['add']('discardAllSuggestions',new Lt(_0x14b424,_0x2a6c93,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x14b424['commands']['add']('acceptSelectedSuggestions',new It(_0x14b424,_0x170d84,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x14b424['commands']['add']('discardSelectedSuggestions',new It(_0x14b424,_0x2a6c93,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4e286c=_0x14b424['plugins']['get'](_0x3fa1f3);this['listenTo'](_0x4e286c,'addComment',(_0x1dbcdd,{threadId:_0x275160})=>{const _0x355923=this['_suggestions']['get'](_0x275160);_0x355923&&_0x355923['commentThread']&&0x1===_0x355923['commentThread']['length']&&this['_updateSuggestionData'](_0x275160,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4e286c,'removeComment',(_0x4916db,{threadId:_0x370a63})=>{const _0x22d788=this['_suggestions']['get'](_0x370a63);_0x22d788&&_0x22d788['commentThread']&&!_0x22d788['commentThread']['length']&&this['_updateSuggestionData'](_0x370a63,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4ed59d){const _0x500bb3=_0x19509a([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]),_0x4c2f15=0x3d8d0df,_0x1b1137=0x3df557f^_0x4c2f15,_0x1ee4c9=window[_0x19509a([0x44,0x61,0x74,0x65])][_0x19509a([0x6e,0x6f,0x77])](),_0x49806d=_0x4ed59d[_0x19509a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4de4b8=new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d7c25=>{_0x49806d[_0x19509a([0x6f,0x6e,0x63,0x65])](_0x19509a([0x72,0x65,0x61,0x64,0x79]),_0x4d7c25);}),_0x316450={[_0x19509a([0x6b,0x74,0x79])]:_0x19509a([0x45,0x43]),[_0x19509a([0x75,0x73,0x65])]:_0x19509a([0x73,0x69,0x67]),[_0x19509a([0x63,0x72,0x76])]:_0x19509a([0x50,0x2d,0x32,0x35,0x36]),[_0x19509a([0x78])]:_0x19509a([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]),[_0x19509a([0x79])]:_0x19509a([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]),[_0x19509a([0x61,0x6c,0x67])]:_0x19509a([0x45,0x53,0x32,0x35,0x36])},_0x3a0351=_0x49806d[_0x19509a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x19509a([0x67,0x65,0x74])](_0x19509a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2024cf(){let _0x1a31a,_0x21fcd1=null,_0x4667d5=null;try{if(_0x3a0351==_0x19509a([0x47,0x50,0x4c]))return _0x19509a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a31a=_0x528c63(),!_0x1a31a)return _0x19509a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a31a[_0x19509a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4667d5=_0x5982fb(_0x1a31a[_0x19509a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a31a[_0x19509a([0x6a,0x74,0x69])])),await _0x3682db()?_0x399637()?_0x1ee66b()?_0x19509a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e94b1()?(_0x1a31a[_0x19509a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x19509a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21fcd1=_0x53c3d3(_0x19509a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x173243()):_0x19509a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x19509a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x19509a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x19509a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ee66b(){const _0x294f40=[_0x19509a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x19509a([0x74,0x72,0x69,0x61,0x6c])][_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a31a[_0x19509a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ee4c9/0x3e8:0xe10*_0x1b1137;return _0x1a31a[_0x19509a([0x65,0x78,0x70])]<_0x294f40;}function _0x399637(){const _0x3950c5=_0x1a31a[_0x19509a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3950c5)return!0x1;if(_0x3950c5[_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19509a([0x2a])))return!0x0;if(_0x3950c5[_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19509a([0x54,0x43])))return!0x0;if(_0x3950c5[_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19509a([0x52,0x54,0x43]))){if(_0x23ea7e())return!0x0;if(_0x7ab5df()||_0xa61cd3())return!0x0;}return!0x1;}function _0x5e94b1(){const _0x53a7a4=_0x1a31a[_0x19509a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x53a7a4||0x0==_0x53a7a4[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bb17b}=new URL(window[_0x19509a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x53a7a4[_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bb17b))return!0x0;const _0x577f07=_0x3bb17b[_0x19509a([0x73,0x70,0x6c,0x69,0x74])](_0x19509a([0x2e]));return _0x53a7a4[_0x19509a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x880f05=>_0x880f05[_0x19509a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19509a([0x2a])))[_0x19509a([0x6d,0x61,0x70])](_0x56e929=>_0x56e929[_0x19509a([0x73,0x70,0x6c,0x69,0x74])](_0x19509a([0x2e])))[_0x19509a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1eb7d0=>_0x1eb7d0[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x577f07[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19509a([0x6d,0x61,0x70])](_0x198ea7=>Array(_0x577f07[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x198ea7[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x19509a([0x66,0x69,0x6c,0x6c])](_0x198ea7[0x0]===_0x19509a([0x2a])?_0x19509a([0x2a]):'')[_0x19509a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x198ea7))[_0x19509a([0x73,0x6f,0x6d,0x65])](_0x576fa8=>_0x577f07[_0x19509a([0x65,0x76,0x65,0x72,0x79])]((_0x30904b,_0x4ba028)=>_0x576fa8[_0x4ba028]===_0x30904b||_0x576fa8[_0x4ba028]===_0x19509a([0x2a])));}function _0x173243(){return _0x21fcd1&&_0x4667d5?new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x40165c,_0x52a64c)=>{_0x21fcd1[_0x19509a([0x74,0x68,0x65,0x6e])](_0x40165c,_0x52a64c),_0x4667d5[_0x19509a([0x74,0x68,0x65,0x6e])](_0x3995fe=>{_0x3995fe!=_0x19509a([0x56,0x61,0x6c,0x69,0x64])&&_0x40165c(_0x3995fe);},_0x52a64c);}):_0x21fcd1||_0x4667d5||_0x19509a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5982fb(_0x31739f,_0x5d76be){return new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38380e=>{if(_0x597377())return _0x38380e(_0x19509a([0x56,0x61,0x6c,0x69,0x64]));_0x447b9f(),_0x49806d[_0x19509a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x19509a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57356a=!0x1;const _0x3ddd43=_0x3a482b();function _0x4bc2f1(_0x55ab34){return!!_0x55ab34&&(typeof _0x55ab34===_0x19509a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55ab34===_0x19509a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55ab34[_0x19509a([0x74,0x68,0x65,0x6e])]===_0x19509a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55ab34[_0x19509a([0x63,0x61,0x74,0x63,0x68])]===_0x19509a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24337b(_0x4fb0d5){_0x465d0b(_0x4fb0d5)[_0x19509a([0x74,0x68,0x65,0x6e])](_0x33d7e9=>{if(!_0x33d7e9||_0x33d7e9[_0x19509a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x19509a([0x6f,0x6b]))return _0x19509a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3922ac(_0x52265f(_0x3ddd43+_0x5d76be))!=_0x33d7e9[_0x19509a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x19509a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x19509a([0x56,0x61,0x6c,0x69,0x64]);})[_0x19509a([0x74,0x68,0x65,0x6e])](_0x47a710=>(_0x4970c5(),_0x47a710),()=>{const _0x35c017=_0x5deefa();return null==_0x35c017?(_0x4970c5(),_0x19509a([0x56,0x61,0x6c,0x69,0x64])):_0x19509a(_0x1ee4c9-_0x35c017>(0x27d454df^_0x4c2f15)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x19509a([0x74,0x68,0x65,0x6e])](_0x38380e)[_0x19509a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38380e(_0x19509a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b7147=0x3ee3e5f^_0x4c2f15;function _0x4970c5(){const _0x40f808=_0x19509a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3922ac(_0x52265f(_0x31739f)),_0x3a2659=_0x17fb47(_0x3922ac(window[_0x19509a([0x4d,0x61,0x74,0x68])][_0x19509a([0x63,0x65,0x69,0x6c])](_0x1ee4c9/_0x1b7147)));window[_0x19509a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19509a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40f808,_0x3a2659);}function _0x5deefa(){const _0x292a86=_0x19509a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3922ac(_0x52265f(_0x31739f)),_0x69a10e=window[_0x19509a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x19509a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x292a86);return _0x69a10e?window[_0x19509a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17fb47(_0x69a10e),0x10)*_0x1b7147:null;}function _0x465d0b(_0x59090a){return new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b5c71,_0x8b74d5)=>{_0x59090a[_0x19509a([0x74,0x68,0x65,0x6e])](_0x3b5c71,_0x8b74d5),window[_0x19509a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8b74d5,0x3d9041f^_0x4c2f15);});}}_0x49806d[_0x19509a([0x6f,0x6e])](_0x19509a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45e3d2,_0x1246a6)=>{if(_0x1246a6[0x0]!=_0x31739f)return _0x38380e(_0x19509a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1246a6[0x1]={..._0x1246a6[0x1],[_0x19509a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ddd43};},{[_0x19509a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19509a([0x68,0x69,0x67,0x68])}),_0x49806d[_0x19509a([0x6f,0x6e])](_0x19509a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x29b201=>{_0x4bc2f1(_0x29b201[_0x19509a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57356a=!0x0,_0x24337b(_0x29b201[_0x19509a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x19509a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x19509a([0x6c,0x6f,0x77])}),_0x4de4b8[_0x19509a([0x74,0x68,0x65,0x6e])](()=>{_0x57356a||_0x38380e(_0x19509a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x597377(){return _0x49806d[_0x19509a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19509a([0x76,0x69,0x65,0x77])][_0x19509a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x19509a([0x61,0x75,0x74,0x6f]);}function _0x447b9f(){_0x49806d[_0x19509a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19509a([0x76,0x69,0x65,0x77])][_0x19509a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19509a([0x61,0x75,0x74,0x6f]);}}function _0x53c3d3(_0x2cc796){const _0xaebfc3=[new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23f370=>setTimeout(_0x23f370,0x3d1ee13^_0x4c2f15)),_0x4de4b8[_0x19509a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x141436=>{let _0x23be04=0x0;_0x49806d[_0x19509a([0x6d,0x6f,0x64,0x65,0x6c])][_0x19509a([0x6f,0x6e])](_0x19509a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x131701,_0x5c39e0)=>{_0x5c39e0[0x0][_0x19509a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23be04++,_0x23be04==(0x3d8d537^_0x4c2f15)&&(_0x141436(),_0x131701[_0x19509a([0x6f,0x66,0x66])]());});}))];return window[_0x19509a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19509a([0x72,0x61,0x63,0x65])](_0xaebfc3)[_0x19509a([0x74,0x68,0x65,0x6e])](()=>_0x2cc796);}async function _0xa9a9b8(){await _0x4de4b8,_0x49806d[_0x19509a([0x6d,0x6f,0x64,0x65,0x6c])][_0x19509a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1f02b7,_0x49806d[_0x19509a([0x6d,0x6f,0x64,0x65,0x6c])][_0x19509a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1f02b7,_0x49806d[_0x19509a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x19509a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23ea7e(){return _0x577df2(_0x19509a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x44ad72(_0x19509a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x19509a([0x73,0x74,0x61,0x74,0x65])]==_0x19509a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x7ab5df(){return _0x577df2(_0x19509a([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 _0xa61cd3(){return _0x577df2(_0x19509a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x38b10b(_0x307605){const _0x2b7f26=_0x340542();_0x49806d[_0x2b7f26]=_0x19509a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x307605,_0x307605!=_0x19509a([0x56,0x61,0x6c,0x69,0x64])&&_0xa9a9b8();}function _0x340542(){const _0xb11e1a=window[_0x19509a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x19509a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x19509a([0x6e,0x6f,0x77])]())[_0x19509a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x19509a([0x2e]),'');let _0x45b8ae=_0x19509a([0x52]);for(let _0x548d01=0x0;_0x548d01<_0xb11e1a[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x548d01+=0x2){let _0x110c82=window[_0x19509a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb11e1a[_0x19509a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x548d01,_0x548d01+0x2));_0x110c82>=_0x500bb3[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x110c82-=_0x500bb3[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x45b8ae+=_0x500bb3[_0x110c82];}return _0x45b8ae;}function _0x528c63(){const _0x10c480=_0x3a0351[_0x19509a([0x73,0x70,0x6c,0x69,0x74])](_0x19509a([0x2e]));if(0x3!=_0x10c480[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ec253(_0x10c480[0x1]);function _0x2ec253(_0x821ca2){const _0x3542aa=_0x2f0509(_0x821ca2);return _0x3542aa&&_0x6f34af()?_0x3542aa:null;function _0x6f34af(){const _0x32aaac=_0x3542aa[_0x19509a([0x6a,0x74,0x69])],_0x3e46dc=window[_0x19509a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32aaac[_0x19509a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32aaac[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x188de3={..._0x3542aa,[_0x19509a([0x6a,0x74,0x69])]:_0x32aaac[_0x19509a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32aaac[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x188de3[_0x19509a([0x76,0x63])],_0x52265f(_0x188de3)==_0x3e46dc;}}}async function _0x3682db(){let _0x56d55e=!0x0;try{const _0x3a1e01=_0x3a0351[_0x19509a([0x73,0x70,0x6c,0x69,0x74])](_0x19509a([0x2e])),[_0x564cad,_0x5abbb6,_0x297bb8]=_0x3a1e01;return _0x375457(_0x564cad),await _0xbd493c(_0x564cad,_0x5abbb6,_0x297bb8),_0x56d55e;}catch{return!0x1;}function _0x375457(_0x269aae){const _0x3d9c6c=_0x2f0509(_0x269aae);_0x3d9c6c&&_0x3d9c6c[_0x19509a([0x61,0x6c,0x67])]==_0x19509a([0x45,0x53,0x32,0x35,0x36])||(_0x56d55e=!0x1);}async function _0xbd493c(_0x512947,_0xd98597,_0x38a974){const _0xcde9af=window[_0x19509a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x19509a([0x66,0x72,0x6f,0x6d])](_0x2a3aa8(_0x38a974),_0x257f7d=>_0x257f7d[_0x19509a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x56cec5=new window[(_0x19509a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x19509a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x512947+_0x19509a([0x2e])+_0xd98597),_0x1831d3=window[_0x19509a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x19509a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1831d3)return;const _0x15f256=await _0x1831d3[_0x19509a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x19509a([0x6a,0x77,0x6b]),_0x316450,{[_0x19509a([0x6e,0x61,0x6d,0x65])]:_0x19509a([0x45,0x43,0x44,0x53,0x41]),[_0x19509a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x19509a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x19509a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1831d3[_0x19509a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x19509a([0x6e,0x61,0x6d,0x65])]:_0x19509a([0x45,0x43,0x44,0x53,0x41]),[_0x19509a([0x68,0x61,0x73,0x68])]:{[_0x19509a([0x6e,0x61,0x6d,0x65])]:_0x19509a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x15f256,_0xcde9af,_0x56cec5)||(_0x56d55e=!0x1);}}function _0x2f0509(_0x3d7499){return _0x3d7499[_0x19509a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x19509a([0x65,0x79]))?JSON[_0x19509a([0x70,0x61,0x72,0x73,0x65])](_0x2a3aa8(_0x3d7499)):null;}function _0x2a3aa8(_0x24bc87){return window[_0x19509a([0x61,0x74,0x6f,0x62])](_0x24bc87[_0x19509a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x19509a([0x2b]))[_0x19509a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x19509a([0x2f])));}function _0x52265f(_0x566f7f){let _0x2bd6ae=0x1505;function _0x1858e0(_0xdbab2c){for(let _0x535c5b=0x0;_0x535c5b<_0xdbab2c[_0x19509a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x535c5b++){const _0x54930d=_0xdbab2c[_0x19509a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x535c5b);_0x2bd6ae=(_0x2bd6ae<<0x5)+_0x2bd6ae+_0x54930d,_0x2bd6ae&=_0x2bd6ae;}}function _0x5d0954(_0x28121f){Array[_0x19509a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28121f)?_0x28121f[_0x19509a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d0954):_0x28121f&&typeof _0x28121f==_0x19509a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x19509a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28121f)[_0x19509a([0x73,0x6f,0x72,0x74])]()[_0x19509a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x201c36,_0x1d5536])=>{_0x1858e0(_0x201c36),_0x5d0954(_0x1d5536);}):_0x1858e0(window[_0x19509a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28121f));}return _0x5d0954(_0x566f7f),_0x2bd6ae>>>0x0;}function _0x3922ac(_0x56a2b4){return _0x56a2b4[_0x19509a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x19509a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x19509a([0x30]));}function _0x17fb47(_0x31bebc){return _0x31bebc[_0x19509a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x19509a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x19509a([0x6a,0x6f,0x69,0x6e])]('');}function _0x577df2(_0x3e721f){return _0x49806d[_0x19509a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19509a([0x68,0x61,0x73])](_0x3e721f);}function _0x44ad72(_0x5f52a1){return _0x49806d[_0x19509a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x19509a([0x67,0x65,0x74])](_0x5f52a1);}function _0x1f02b7(){}function _0x19509a(_0x3c1b68){return _0x3c1b68['map'](_0x14a84e=>String['fromCharCode'](_0x14a84e))['join']('');}_0x38b10b(await _0x2024cf());}(this);}set['adapter'](_0xb5aac4){if(this['_adapter'])throw new _0xb9c320('track-changes-adapter-already-set',this);this['_adapter']=_0xb5aac4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x33c89d=!0x1,toJSON:_0x55c593=!0x1}={}){const _0x1a737b=[];for(const _0xed3cfa of this['_suggestions']['values']())_0x33c89d&&!_0xed3cfa['isInContent']||_0x1a737b['push'](_0xed3cfa);return _0x55c593?_0x1a737b['map'](_0x3f7547=>_0x3f7547['toJSON']()):_0x1a737b;}['getSuggestion'](_0x1e79be){const _0xfc0401=this['_suggestions']['get'](_0x1e79be);if(!_0xfc0401)throw new _0xb9c320('track-changes-suggestion-not-found',this);return _0xfc0401;}['hasSuggestion'](_0x77ee8c){return this['_suggestions']['has'](_0x77ee8c);}['addSuggestionData'](_0x32a0d9){const {authorId:_0x443063,id:_0x2884f3,originalSuggestionId:_0x53aebf,attributes:_0x3ef0a2}=_0x32a0d9,[_0x34eb8d,_0x66726a]=_0x32a0d9['type']['split'](':'),_0x214965=this['_suggestions']['get'](_0x2884f3)||this['_createSuggestion'](_0x34eb8d,_0x66726a,_0x2884f3,_0x443063,_0x3ef0a2,_0x53aebf);if(this['_addThreadToSuggestion'](_0x214965),this['_checkSuggestionCorrectness'](_0x214965,_0x34eb8d,_0x66726a||null,_0x443063),_0x214965['createdAt']=_0x32a0d9['createdAt'],_0x214965['_isDataLoaded']=!0x0,_0x3ef0a2&&_0x3ef0a2['@external']){const _0x18ffc9=_0x3ef0a2['@external'],_0x4229a3=this['_getExternalAuthor'](_0x18ffc9['authorName']);_0x214965['authoredAt']=_0x18ffc9['createdAt'],_0x214965['author']=_0x4229a3,_0x214965['isExternal']=!0x0;}else _0x214965['authoredAt']=_0x32a0d9['createdAt'];switch(_0x32a0d9['data']&&(_0x214965['data']=_0x32a0d9['data']),_0x32a0d9['attributes']&&(_0x214965['attributes']=_0x32a0d9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x214965['_saved']=!0x0),this['_suggestionState']['get'](_0x214965)){case'notReady':this['_suggestionState']['set'](_0x214965,'dataReady');break;case'markerReady':_0x214965['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x214965])),this['_refreshSuggestionsChain'](new Set([_0x214965])),this['_suggestionState']['set'](_0x214965,'ready'),this['fire']('suggestionLoaded',_0x214965)):this['_suggestionState']['set'](_0x214965,'removed');}return _0x214965;}['acceptSuggestion'](_0x19750c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5e4d5b of _0x19750c['getAllAdjacentSuggestions']())_0x5e4d5b['accept']();});});}['discardSuggestion'](_0x1dee39){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11e635 of _0x1dee39['getAllAdjacentSuggestions']())_0x11e635['discard']();});});}['enableCommand'](_0x233539,_0x17d33c){const _0x2485a5=this['editor']['commands']['get'](_0x233539);if(!_0x2485a5)throw new _0xb9c320('track-changes-command-not-found',this,{'commandName':_0x233539});if(this['_enabledCommands']['has'](_0x2485a5))throw new _0xb9c320('track-changes-enable-command-twice',this,{'commandName':_0x233539});this['_enabledCommands']['add'](_0x2485a5),_0x17d33c&&_0x2485a5['on']('execute',(_0x3ae714,_0x423884)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x423884['length']>0x0&&_0x423884[_0x423884['length']-0x1]&&_0x423884[_0x423884['length']-0x1]['forceDefaultExecution']?_0x423884['pop']():(_0x3ae714['return']=_0x17d33c((..._0x2659d7)=>_0x2485a5['execute'](..._0x2659d7,{'forceDefaultExecution':!0x0}),..._0x423884),_0x3ae714['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a2cb3){let _0x59ebe0,_0x1f0ba6;const _0x2b53c9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x59ebe0=_0x4a2cb3();}catch(_0x5e5178){_0x1f0ba6=_0x5e5178;}return _0x2b53c9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f0ba6&&_0xb9c320['rethrowUnexpectedError'](_0x1f0ba6,this),_0x59ebe0;}['markInsertion'](_0x575e4b,_0xa99a50=null,_0x2686bf={}){if(_0x575e4b['isCollapsed'])return null;const _0xb23d13=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2686bf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5b4d88,meta:_0x3538c7}of this['_findSuggestions'](_0x575e4b,'insertion'))if(_0x3538c7['isOwn']){if(!_0x3538c7['isNextTo']){if(_0x3538c7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x5b4d88,_0x2686bf))continue;return _0x5b4d88;}if(cn(_0x5b4d88,_0x2686bf))return _0x5b4d88;this['_breakSuggestionMarker'](_0x5b4d88,_0x575e4b['start'],_0x575e4b['end']);break;}if(_0xa99a50==_0x5b4d88['subType']&&cn(_0x5b4d88,_0x2686bf)){const _0x510b3b=_0x5b4d88['getFirstRange']();return _0x510b3b['start']['isEqual'](_0x575e4b['end'])?this['_setSuggestionRange'](_0x5b4d88,this['_model']['createRange'](_0x575e4b['start'],_0x510b3b['end'])):this['_setSuggestionRange'](_0x5b4d88,this['_model']['createRange'](_0x510b3b['start'],_0x575e4b['end'])),_0x5b4d88;}}const _0x1846bd=_0x3a482b(),_0x517e67=_0xb23d13['id'],_0x41c061=_0xa99a50?'insertion:'+_0xa99a50:'insertion',_0x18a513=this['_setSuggestionData']({'id':_0x1846bd,'type':_0x41c061,'createdAt':new Date(),'authorId':_0x517e67,'attributes':_0x2686bf});return this['_addSuggestionMarker'](_0x41c061,_0x1846bd,_0x517e67,_0x575e4b),_0x18a513;}['markMultiRangeInsertion'](_0x5066b5,_0x567c13='multi',_0x766e19={}){const _0x1ea560=this['editor']['plugins']['get']('Users')['me'],_0x13c07c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x567c13,'join');this['_trackingSessionId']&&(_0x766e19['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c6791 of this['getSuggestions']())if(_0x1c6791['author']['id']==_0x1ea560['id']&&'insertion'==_0x1c6791['type']&&_0x1c6791['subType']==_0x567c13&&cn(_0x1c6791,_0x766e19)&&(_0x13c07c(_0x1c6791['getRanges'](),_0x5066b5)||_0x13c07c(_0x5066b5,_0x1c6791['getRanges']()))){for(const _0x19b700 of _0x5066b5)_0x1c6791['addRange'](_0x19b700);return _0x1c6791;}for(const {suggestion:_0x4286ad,meta:_0x74e7b}of this['_findSuggestions'](_0x5066b5,'insertion')){if(!_0x74e7b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x74e7b['containsRangeInObject'])continue;if(!cn(_0x4286ad,_0x766e19))continue;let _0x256156=!0x0;for(const _0x3bdd69 of _0x4286ad['getRanges']())for(const _0xf5500 of _0x5066b5)if(!_0x3bdd69['containsRange'](_0xf5500)){_0x256156=!0x1;break;}if(_0x256156)return _0x4286ad;}const _0x14334b=_0x3a482b(),_0x5f1b42=_0x1ea560['id'],_0x2597b0='insertion:'+_0x567c13,_0x45be9d=this['_setSuggestionData']({'id':_0x14334b,'type':_0x2597b0,'createdAt':new Date(),'authorId':_0x5f1b42,'attributes':_0x766e19});for(const _0x15b35b of _0x5066b5)this['_addSuggestionMarker'](_0x2597b0,_0x14334b,_0x5f1b42,_0x15b35b,bt['getMultiRangeId']());return _0x45be9d;}['markInlineFormat'](_0x409384,_0x451801,_0x32f93c=null,_0x107648={}){if(_0x32f93c=_0x32f93c||Je(_0x451801),_0x409384['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x107648['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3f07be=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x32f93c,'accept');return this['forceDefaultExecution'](()=>_0x3f07be([_0x409384],_0x451801,_0x107648)),null;}const _0x486acb=this['editor']['plugins']['get']('Users')['me'],_0x176699=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x10ec58,meta:_0x1bdf16}of this['_findSuggestions'](_0x409384,'insertion'))_0x1bdf16['isOwn']&&!_0x1bdf16['isInsideObject']&&_0x176699['push'](..._0x10ec58['getRanges']());}const _0x657fca=function(_0x4dccc1,_0xd4aa9b){const _0x294ee7=[];for(const _0xcf0db of _0xd4aa9b){const _0x38108f=_0x4dccc1['getIntersection'](_0xcf0db);_0x38108f&&_0x294ee7['push'](_0x38108f);}return _0x294ee7;}(_0x409384,_0x176699),_0x361ca2=function(_0x53db5d,_0x2d05d2){const _0x3f080c=[_0x53db5d];for(const _0x2f9174 of _0x2d05d2){let _0x148608=0x0;for(;_0x148608<_0x3f080c['length'];){const _0x44204e=_0x3f080c[_0x148608]['getDifference'](_0x2f9174);_0x3f080c['splice'](_0x148608,0x1,..._0x44204e),_0x148608+=_0x44204e['length'];}}return _0x3f080c;}(_0x409384,_0x176699);_0x657fca['length']&&this['_model']['change'](()=>{for(const _0x63fea5 of _0x657fca){const _0x198271=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x32f93c,'accept');this['forceDefaultExecution'](()=>_0x198271([_0x63fea5],_0x451801,_0x107648));}});for(const _0x1169b8 of _0x361ca2){let _0x53b0ab=null,_0x108d02=_0x1169b8['start'],_0x5e8df2=_0x1169b8['end'];for(const {suggestion:_0x3a836b,meta:_0x34a38f}of this['_findSuggestions'](_0x1169b8,'formatInline')){if(!_0x34a38f['isOwn'])continue;if(_0x3a836b['subType']!=_0x32f93c)continue;if(!cn(_0x3a836b,_0x107648))continue;const _0xf6f050=_0x3a836b['getFirstRange']();if(_0xf6f050['containsRange'](_0x1169b8,!0x0))return null;_0x108d02=_0x108d02['isBefore'](_0xf6f050['start'])?_0x108d02:_0xf6f050['start'],_0x5e8df2=_0x5e8df2['isAfter'](_0xf6f050['end'])?_0x5e8df2:_0xf6f050['end'],_0x53b0ab?_0xf6f050['start']['isBefore'](_0x53b0ab['getFirstRange']()['start'])?(_0x53b0ab['removeMarkers'](),_0x53b0ab=_0x3a836b):_0x3a836b['removeMarkers']():_0x53b0ab=_0x3a836b;}const _0x231c1f=this['_model']['createRange'](_0x108d02,_0x5e8df2);if(_0x53b0ab)this['_setSuggestionRange'](_0x53b0ab,_0x231c1f);else{const _0x18cfb4=_0x3a482b(),_0xaaebf4=_0x486acb['id'];this['_setSuggestionData']({'id':_0x18cfb4,'type':'formatInline:'+_0x32f93c,'data':_0x451801,'createdAt':new Date(),'authorId':_0xaaebf4,'attributes':_0x107648}),this['_addSuggestionMarker']('formatInline:'+_0x32f93c,_0x18cfb4,_0xaaebf4,_0x231c1f);}}return null;}['markBlockFormat'](_0x5c529b,_0x4dcdbb,_0x522594=[],_0x95bd=null,_0x49bc98={}){_0x4dcdbb['formatGroupId']||(_0x4dcdbb['formatGroupId']=_0x4dcdbb['commandName']),_0x4dcdbb['multipleBlocks']=_0x5c529b['is']('range'),_0x95bd=_0x95bd||Je(_0x4dcdbb);const _0x19ff8f=_0x522594['map'](_0x3a8381=>rn(_0x3a8381,this['_model'])),_0x4cc1cb=_0x5c529b['is']('range')?_0x5c529b:rn(_0x5c529b,this['_model']);if(this['_trackingSessionId']&&(_0x49bc98['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c4b5f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x95bd,'accept');return this['forceDefaultExecution'](()=>_0x1c4b5f([_0x4cc1cb],_0x4dcdbb,_0x49bc98)),null;}_0x19ff8f['push'](_0x4cc1cb);let _0x490e43=!0x0;for(const _0x34ba94 of _0x19ff8f)if(!this['_rangeIsInLocalUserInsertion'](_0x34ba94)){_0x490e43=!0x1;break;}if(_0x490e43&&'always'!==this['_trackFormatChanges']){const _0x3f59a4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x95bd,'accept');return this['forceDefaultExecution'](()=>_0x3f59a4([_0x4cc1cb],_0x4dcdbb,_0x49bc98)),null;}let _0xd4e687=null,_0x385d4a=_0x4cc1cb['start'],_0x336f95=_0x4cc1cb['end'];for(const {suggestion:_0x121de9,meta:_0x2dd5c2}of this['_findSuggestions'](_0x4cc1cb,'formatBlock')){if(!_0x2dd5c2['isOwn'])continue;if(_0x2dd5c2['isNextTo']||_0x2dd5c2['containsRangeInObject']||_0x2dd5c2['isInsideObject'])continue;if(_0x121de9['data']['formatGroupId']!=_0x4dcdbb['formatGroupId'])continue;if(!cn(_0x121de9,_0x49bc98))continue;const _0x5007ba=_0x121de9['getFirstRange']();if(_0x121de9['subType']==_0x95bd){if(_0x5007ba['containsRange'](_0x4cc1cb,!0x0))return null;_0x385d4a=_0x385d4a['isBefore'](_0x5007ba['start'])?_0x385d4a:_0x5007ba['start'],_0x336f95=_0x336f95['isAfter'](_0x5007ba['end'])?_0x336f95:_0x5007ba['end'],_0xd4e687?_0x5007ba['start']['isBefore'](_0xd4e687['getFirstRange']()['start'])?(_0xd4e687['removeMarkers'](),_0xd4e687=_0x121de9):_0x121de9['removeMarkers']():_0xd4e687=_0x121de9;}else{const _0x50df66=_0x4cc1cb['getIntersection'](_0x5007ba);this['_cutOutSuggestionMarker'](_0x121de9,_0x50df66);}}const _0x34a567=this['editor']['plugins']['get']('Users')['me'],_0x15a853=_0x3a482b(),_0x49f4c3=_0x34a567['id'];if(_0xd4e687)return this['_setSuggestionRange'](_0xd4e687,this['_model']['createRange'](_0x385d4a,_0x336f95)),_0xd4e687;{const _0x2b7aba=this['_setSuggestionData']({'id':_0x15a853,'type':'formatBlock:'+_0x95bd,'data':_0x4dcdbb,'createdAt':new Date(),'authorId':_0x49f4c3,'attributes':_0x49bc98});return this['_addSuggestionMarker']('formatBlock:'+_0x95bd,_0x15a853,_0x49f4c3,this['_model']['createRange'](_0x385d4a,_0x336f95)),_0x2b7aba;}}['markMultiRangeBlockFormat'](_0x2b1701,_0x5b73c7,_0x2395a0=[],_0x306cc4=null,_0x572b91={}){_0x5b73c7['formatGroupId']||(_0x5b73c7['formatGroupId']=_0x5b73c7['commandName']);const _0x376f6f=_0x2b1701[0x0];_0x5b73c7['multipleBlocks']=_0x376f6f['is']('range'),_0x306cc4=_0x306cc4||Je(_0x5b73c7);const _0x753b91=_0x2395a0['map'](_0x7a9f51=>rn(_0x7a9f51,this['_model'])),_0x52dfcd=_0x376f6f['is']('range')?_0x2b1701:_0x2b1701['map'](_0x38d9bd=>rn(_0x38d9bd,this['_model']));if(this['_trackingSessionId']&&(_0x572b91['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x222139=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x306cc4,'accept');return this['forceDefaultExecution'](()=>_0x222139(_0x52dfcd,_0x5b73c7,_0x572b91)),null;}_0x753b91['push'](..._0x52dfcd);let _0x28f34a=!0x0;for(const _0x515b9f of _0x753b91)if(!this['_rangeIsInLocalUserInsertion'](_0x515b9f)){_0x28f34a=!0x1;break;}if(_0x28f34a&&'always'!==this['_trackFormatChanges']){const _0x13e9da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x306cc4,'accept');return this['forceDefaultExecution'](()=>_0x13e9da(_0x52dfcd,_0x5b73c7,_0x572b91)),null;}const _0x1f1210=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f10c7 of this['getSuggestions']()){const _0x45f465=_0x1f10c7['data'];if(_0x1f10c7['author']['id']!=_0x1f1210['id'])continue;if('formatBlock'!=_0x1f10c7['type']||_0x45f465['formatGroupId']!=_0x5b73c7['formatGroupId'])continue;if(!cn(_0x1f10c7,_0x572b91))continue;const _0xcc156=_0x1f10c7['subType']==_0x306cc4;for(let _0x227db3=0x0;_0x227db3<_0x52dfcd['length'];_0x227db3++){const _0x284372=_0x52dfcd[_0x227db3];for(const _0xe04de of _0x1f10c7['getMarkers']()){const _0x365248=_0xe04de['getRange']();if(_0x284372['isEqual'](_0x365248)){_0xcc156?(_0x52dfcd['splice'](_0x227db3,0x1),_0x227db3--):_0x1f10c7['removeMarker'](_0xe04de['name']);break;}}}}if(0x0==_0x52dfcd['length'])return null;const _0x4959d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x306cc4,'join');for(const _0xf63bd5 of this['getSuggestions']()){const _0x4ae1a0=_0xf63bd5['data'];if(_0xf63bd5['author']['id']==_0x1f1210['id']&&('formatBlock'==_0xf63bd5['type']&&_0x4ae1a0['formatGroupId']==_0x5b73c7['formatGroupId']&&_0xf63bd5['subType']==_0x306cc4&&cn(_0xf63bd5,_0x572b91)&&(_0x4959d2(_0xf63bd5['getRanges'](),_0x52dfcd)||_0x4959d2(_0x52dfcd,_0xf63bd5['getRanges']())))){for(const _0x1fbf47 of _0x52dfcd)_0xf63bd5['addRange'](_0x1fbf47);return _0xf63bd5;}}const _0x3d39e5=_0x3a482b(),_0x3640b4=_0x1f1210['id'],_0x5da29a='formatBlock:'+_0x306cc4,_0x33b418=this['_setSuggestionData']({'id':_0x3d39e5,'type':_0x5da29a,'data':_0x5b73c7,'createdAt':new Date(),'authorId':_0x3640b4,'attributes':_0x572b91});for(const _0xcfba13 of _0x52dfcd)this['_addSuggestionMarker'](_0x5da29a,_0x3d39e5,_0x3640b4,_0xcfba13,bt['getMultiRangeId']());return _0x33b418;}['markDeletion'](_0x14ee45,_0x50b1cc=null,_0x160ce8={}){if(_0x14ee45['isCollapsed'])return null;const _0x4c21f7=this['editor']['plugins']['get']('Users')['me'],_0x147bbb=new _0x56dc86(_0x14ee45['start'],_0x14ee45['end']);this['_trackingSessionId']&&(_0x160ce8['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x414376,meta:_0x9b3286}of this['_findSuggestions'](_0x147bbb,'insertion'))if(_0x9b3286['isOwn']&&!_0x9b3286['isNextTo']){if(_0x414376['isMultiRange']){const _0x1efa29=_0x414376['getRanges']()['filter'](_0x104606=>'$graveyard'!=_0x104606['root']['rootName']);_0x1efa29['every'](_0x22399b=>_0x147bbb['containsRange'](_0x22399b,!0x0))&&_0x414376['discard']();if(_0x1efa29['some'](_0x2f2f16=>_0x2f2f16['containsRange'](_0x147bbb,!0x0))){const _0x861e12=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x50b1cc,'accept');return this['forceDefaultExecution'](()=>_0x861e12([_0x147bbb],null,_0x160ce8)),null;}}else{const _0x373bfd=_0x147bbb['getIntersection'](_0x414376['getFirstRange']());null!==_0x373bfd&&_0x414376['_onDiscard']([_0x373bfd],null,_0x160ce8);}}if(_0x147bbb['detach'](),_0x147bbb['isCollapsed']||'$graveyard'==_0x147bbb['root']['rootName'])return null;let _0x114116=null,_0x2240dc=_0x147bbb['start'],_0x558633=_0x147bbb['end'];const _0x22cd1d=this['_findSuggestions'](_0x147bbb,'deletion');for(const {suggestion:_0x2cc1ae,meta:_0x520a1e}of _0x22cd1d){const _0x114a9d=this['_model']['createRange'](_0x2240dc,_0x558633);if(_0x520a1e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x520a1e['containsRangeInObject']&&!_0x520a1e['isInsideObject'])){if(_0x2cc1ae['isMultiRange']){if(!cn(_0x2cc1ae,_0x160ce8))continue;let _0x343099=!0x0;for(const _0x4fc184 of _0x2cc1ae['getRanges']()){if(_0x4fc184['containsRange'](_0x114a9d,!0x0))return _0x2cc1ae;_0x114a9d['containsRange'](_0x4fc184)||(_0x343099=!0x1);}_0x343099&&_0x2cc1ae['discard']();}else{const _0x16a48f=_0x2cc1ae['getFirstRange']();if(_0x16a48f['containsRange'](_0x114a9d,!0x0))return _0x2cc1ae;if(!cn(_0x2cc1ae,_0x160ce8)){_0x114a9d['containsRange'](_0x16a48f)?_0x2cc1ae['removeMarkers']():_0x16a48f['containsPosition'](_0x2240dc)?_0x2240dc=_0x16a48f['end']:_0x16a48f['containsPosition'](_0x558633)&&(_0x558633=_0x16a48f['start']);continue;}_0x2240dc=_0x2240dc['isBefore'](_0x16a48f['start'])?_0x2240dc:_0x16a48f['start'],_0x558633=_0x558633['isAfter'](_0x16a48f['end'])?_0x558633:_0x16a48f['end'],_0x160ce8=Object['assign']({},_0x2cc1ae['attributes']),_0x114116?_0x16a48f['start']['isBefore'](_0x114116['getFirstRange']()['start'])?(_0x114116['removeMarkers'](),_0x114116=_0x2cc1ae):_0x2cc1ae['removeMarkers']():_0x114116=_0x2cc1ae;}}}if(_0x114116)return this['_setSuggestionRange'](_0x114116,this['_model']['createRange'](_0x2240dc,_0x558633)),_0x114116;{const _0x449ccd=_0x3a482b(),_0x5a22b9=this['_model']['createRange'](_0x2240dc,_0x558633),_0x4892ab=_0x4c21f7['id'],_0xcf8812=_0x50b1cc?'deletion:'+_0x50b1cc:'deletion',_0x51fcf9=this['_setSuggestionData']({'id':_0x449ccd,'type':_0xcf8812,'createdAt':new Date(),'authorId':_0x4892ab,'attributes':_0x160ce8});return this['_addSuggestionMarker'](_0xcf8812,_0x449ccd,_0x4892ab,_0x5a22b9),_0x51fcf9;}}['markMultiRangeDeletion'](_0x1cd0c5,_0x40b0e9='multi',_0x1af4a1={}){const _0x3358cc=this['editor']['plugins']['get']('Users')['me'],_0x456335=_0x1cd0c5['map'](_0x4c4391=>new _0x56dc86(_0x4c4391['start'],_0x4c4391['end'])),_0x4ec97b=new Set();this['_trackingSessionId']&&(_0x1af4a1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2d8cff,meta:_0x3a9f65}of this['_findSuggestions'](_0x456335,'insertion'))_0x3a9f65['isOwn']&&!_0x3a9f65['isNextTo']&&_0x4ec97b['add'](_0x2d8cff);for(const _0x1c22ac of _0x4ec97b)if(_0x1c22ac['isMultiRange']){const _0xa9643e=_0x1c22ac['getRanges']();(!_0x1c22ac['attributes']||!_0x1c22ac['attributes']['skipNestingCheck'])&&(_0xa9643e['every'](_0x486316=>_0x456335['some'](_0x176c2c=>_0x176c2c['containsRange'](_0x486316,!0x0)))&&_0x1c22ac['discard']());if(_0x456335['every'](_0x3a9707=>_0xa9643e['some'](_0x338415=>_0x338415['containsRange'](_0x3a9707,!0x0)))){const _0x26c94a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b0e9,'accept');return this['forceDefaultExecution'](()=>_0x26c94a(_0x1cd0c5,null,_0x1af4a1)),null;}}else{const _0x4a6106=_0x1c22ac['getFirstRange']();_0x456335['some'](_0x1cb684=>_0x1cb684['containsRange'](_0x4a6106,!0x0))&&_0x1c22ac['discard']();if(_0x456335['every'](_0x189e54=>_0x4a6106['containsRange'](_0x189e54,!0x0))){const _0x6e140e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b0e9,'accept');return this['forceDefaultExecution'](()=>_0x6e140e(_0x456335,null,_0x1af4a1)),null;}}const _0x1001d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b0e9,'join');let _0x3169e1=null;for(const _0x534529 of this['getSuggestions']())if(_0x534529['author']['id']==_0x3358cc['id']&&_0x534529['isInContent']&&'deletion'==_0x534529['type']&&_0x534529['subType']==_0x40b0e9&&cn(_0x534529,_0x1af4a1)&&(_0x1001d5(_0x534529['getRanges'](),_0x456335)||_0x1001d5(_0x456335,_0x534529['getRanges']()))){if(_0x3169e1){if(_0x534529['commentThread']&&_0x534529['commentThread']['length'])continue;for(const _0x1bb8bc of _0x534529['getRanges']())_0x3169e1['isIntersectingWithRange'](_0x1bb8bc)||_0x3169e1['addRange'](_0x1bb8bc);_0x534529['removeMarkers']();}else{_0x3169e1=_0x534529;for(const _0x41d319 of _0x456335)_0x534529['isIntersectingWithRange'](_0x41d319)||_0x534529['addRange'](_0x41d319);}}if(_0x3169e1)return _0x3169e1;_0x4ec97b['clear']();for(const {suggestion:_0x1d087e,meta:_0x272cc8}of this['_findSuggestions'](_0x456335,'deletion'))_0x272cc8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x272cc8['containsRangeInObject']&&!_0x272cc8['isInsideObject'])&&cn(_0x1d087e,_0x1af4a1)&&_0x4ec97b['add'](_0x1d087e);for(const _0x3c077b of _0x4ec97b){const _0x4280cc=_0x3c077b['getRanges']();if(!_0x1af4a1||!_0x1af4a1['skipNestingCheck']){if(_0x456335['every'](_0x49037e=>_0x4280cc['some'](_0x39a3ac=>_0x39a3ac['containsRange'](_0x49037e,!0x0))))return _0x3c077b;}(!_0x3c077b['attributes']||!_0x3c077b['attributes']['skipNestingCheck'])&&(_0x4280cc['every'](_0x4888b0=>_0x456335['some'](_0x533463=>_0x533463['containsRange'](_0x4888b0,!0x0)))&&_0x3c077b['discard']());}const _0x5b3589=_0x3a482b(),_0x4a8c15=_0x3358cc['id'],_0x35be79='deletion:'+_0x40b0e9,_0x20ca34=this['_setSuggestionData']({'id':_0x5b3589,'type':_0x35be79,'createdAt':new Date(),'authorId':_0x4a8c15,'attributes':_0x1af4a1});for(const _0x2584a9 of _0x456335)_0x2584a9['detach'](),_0x2584a9['isCollapsed']||'$graveyard'==_0x2584a9['root']['rootName']||this['_addSuggestionMarker'](_0x35be79,_0x5b3589,_0x4a8c15,_0x2584a9,bt['getMultiRangeId']());return _0x20ca34;}['markAttributeChange'](_0x18fba2,_0x291808,_0x42050d,_0x2ff153,_0x1001b7){if(_0x18fba2['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2632e3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3bfd44=Array['from'](this['_suggestions']['values']())['filter'](_0x479a46=>'attribute'==_0x479a46['type']&&_0x479a46['data']['key']==_0x291808&&_0x479a46['isIntersectingWithRange'](_0x18fba2));if(this['_trackingSessionId']&&(_0x1001b7['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1e4680=this['_findSuggestions'](_0x18fba2,'insertion')['filter'](({meta:_0x456beb})=>_0x456beb['isOwn']&&!_0x456beb['isInsideObject']&&!_0x456beb['isNextTo'])['map'](({suggestion:_0xa80b70})=>_0xa80b70);_0x3bfd44['unshift'](..._0x1e4680);}const _0x53ea61=new Map([[_0x18fba2,_0x42050d]]);for(const _0x2cf178 of _0x3bfd44){const _0x2997de='attribute'==_0x2cf178['type']?_0x2cf178['data']['oldValue']:void 0x0,_0x3fc15d=_0x2cf178['getFirstRange'](),_0x5597f2=Array['from'](_0x53ea61['keys']())['find'](_0x373e37=>_0x373e37['isIntersecting'](_0x3fc15d));if(!_0x5597f2)continue;const _0x5e869f=_0x5597f2['getDifference'](_0x3fc15d);this['_suggestionsConversion']['isBlockAttribute'](_0x291808)&&'insertion'==_0x2cf178['type']&&0x0!=_0x5e869f['length']||(_0x53ea61['delete'](_0x5597f2),_0x5e869f['forEach'](_0x24591d=>{_0x53ea61['set'](_0x24591d,_0x42050d);}),'insertion'!=_0x2cf178['type']&&_0x2997de!=_0x2ff153&&_0x53ea61['set'](_0x5597f2['getIntersection'](_0x3fc15d),_0x2997de));}const _0x4e5320=[];for(const [_0x1023c0,_0x1a55ce]of _0x53ea61){const _0x1b297d=_0x3a482b(),_0x1b126e={'key':_0x291808,'oldValue':_0x1a55ce,'newValue':_0x2ff153};_0x291808['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':_0x291808});const _0x3c9cad=('attribute:'+(_0x291808+'|'+Je({'newValue':_0x2ff153})))['substring'](0x0,0x3c),_0x35d23b=this['_setSuggestionData']({'id':_0x1b297d,'type':_0x3c9cad,'data':_0x1b126e,'createdAt':new Date(),'authorId':_0x2632e3,'attributes':_0x1001b7});_0x4e5320['push'](_0x35d23b),this['_addSuggestionMarker'](_0x3c9cad,_0x1b297d,_0x2632e3,_0x1023c0);}return _0x4e5320;}['enableDefaultAttributesIntegration'](_0x2f6b0b){this['enableCommand'](_0x2f6b0b,(_0xd62417,..._0x4ea3ab)=>{this['recordAttributeChanges'](()=>{_0xd62417(..._0x4ea3ab);});});}['startTrackingSession'](_0x536b1a){return this['_trackingSessionId']=void 0x0!==_0x536b1a?_0x536b1a:_0x3a482b(),this['_trackingSessionId'];}['_getAttributeKey'](_0x54532f){return'attribute'==_0x54532f['type']?un(_0x54532f['subType']):null;}['_applyOperationsAsSuggestions'](_0x143167){if(0x0==_0x143167['length'])return;const _0x35d26f=this['editor'],_0x460ff5=_0x35d26f['plugins']['get'](_0x3432d3),_0x4045b4=[];_0x35d26f['model']['change'](_0x5727c5=>{for(let _0x3012ca=0x0;_0x3012ca<_0x143167['length'];_0x3012ca++){const _0x1a9525=_0x143167[_0x3012ca];if(_0x1a9525['baseVersion']=_0x35d26f['model']['document']['version'],_0x1a9525['isDocumentOperation']=!0x0,_0x460ff5['isMarkedRemoveOperation'](_0x1a9525)){const _0x507f24=_0x2fee34(_0x1a9525['newRange'],_0x35d26f['model']);_0x4045b4['unshift'](_0x56dc86['fromRange'](_0x507f24));}else switch(_0x1a9525['type']){case'rename':{const _0x2977da=_0x1a9525['oldName'],_0x33f0f9=_0x1a9525['newName'];if(_0x2977da==_0x33f0f9)break;_0x5727c5['batch']['addOperation'](_0x1a9525),_0x35d26f['model']['applyOperation'](_0x1a9525);const _0x49f318='$elementName',_0x5f4c94=_0x1a9525['position'],_0x25ba0c=_0x35d26f['model']['createRange'](_0x5f4c94,_0x35d26f['model']['createPositionAt'](_0x5f4c94['nodeAfter'],'end'));this['markAttributeChange'](_0x25ba0c,_0x49f318,_0x2977da,_0x33f0f9,{'groupId':_0x3a482b()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x44da41=_0x1a9525['oldValue'],_0x345dd1=_0x1a9525['newValue'];if(_0x44da41==_0x345dd1)break;_0x5727c5['batch']['addOperation'](_0x1a9525),_0x35d26f['model']['applyOperation'](_0x1a9525);const _0xcb746d=_0x1a9525['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xcb746d))break;const _0x3123db=_0x2fee34(_0x1a9525['range'],_0x35d26f['model']);this['markAttributeChange'](_0x3123db,_0xcb746d,_0x44da41,_0x345dd1,{'groupId':_0x3a482b()});break;}case'insert':{_0x5727c5['batch']['addOperation'](_0x1a9525),_0x35d26f['model']['applyOperation'](_0x1a9525);if(_0x143167[_0x3012ca+0x1]&&'move'==_0x143167[_0x3012ca+0x1]['type'])break;const _0x1f442b=_0x1a9525['position'],_0x430e11=_0x1a9525['howMany'],_0x54284c=_0x2fee34(_0x35d26f['model']['createRange'](_0x1f442b,_0x1f442b['getShiftedBy'](_0x430e11)),_0x35d26f['model']);this['markInsertion'](_0x54284c);break;}case'split':{_0x5727c5['batch']['addOperation'](_0x1a9525),_0x35d26f['model']['applyOperation'](_0x1a9525);const _0xad6ec5=_0x1a9525['splitPosition'],_0x5942c6=_0x1a9525['moveTargetPosition'];this['markInsertion'](_0x35d26f['model']['createRange'](_0xad6ec5,_0x5942c6));break;}case'move':case'remove':_0x5727c5['batch']['addOperation'](_0x1a9525),_0x35d26f['model']['applyOperation'](_0x1a9525);}}for(const _0x3ca88a of _0x4045b4)_0x3ca88a['detach'](),this['markDeletion'](_0x3ca88a);});}['_setSuggestionRange'](_0x36c023,_0x34025c){const _0x51a130=_0x36c023['getFirstMarker']();this['_model']['change'](_0x14ed6c=>{_0x14ed6c['updateMarker'](_0x51a130,{'range':_0x34025c});});}['_addThreadToSuggestion'](_0x3f7491){const _0x443f7b=_0x3f7491['id'],_0x3331c7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x443f7b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3331c7,'threadId':_0x443f7b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x8c7b7d=this['_commentsRepository']['getCommentThread'](_0x443f7b);_0x8c7b7d['unbind']('isRemovable'),_0x8c7b7d['isRemovable']=!0x1,_0x3f7491['commentThread']=_0x8c7b7d;}['_checkSuggestionCorrectness'](_0x7342ff,_0x3d0155,_0x783f51,_0x57a18c){if(_0x7342ff['type']!=_0x3d0155||_0x7342ff['subType']!=_0x783f51||_0x7342ff['creator']['id']!=_0x57a18c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0xb9c320('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x493cdf,_0x3c4e91){const _0x41901e=_0x493cdf['getFirstRange']();if(_0x3c4e91['isEqual'](_0x41901e))_0x493cdf['removeMarkers']();else{if(_0x41901e['containsRange'](_0x3c4e91)){const _0x4424fe=this['_model']['createPositionAt'](_0x3c4e91['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x493cdf,this['_model']['createRange'](_0x41901e['start'],_0x4424fe));const _0x4bff80=_0x3a482b(),_0x48d748=_0x493cdf['creator']['id'],_0x17df68=_0x493cdf['type']+':'+_0x493cdf['subType'];this['_setSuggestionData']({'id':_0x4bff80,'type':_0x17df68,'createdAt':new Date(),'authorId':_0x48d748,'data':_0x493cdf['data'],'attributes':_0x493cdf['attributes']});const _0x27f05e=this['_model']['createPositionAt'](_0x3c4e91['end']['parent'],'after'),_0x5f0733=this['_model']['createRange'](_0x27f05e,_0x41901e['end']);this['_addSuggestionMarker'](_0x17df68,_0x4bff80,_0x48d748,_0x5f0733);}else{if(_0x41901e['containsPosition'](_0x3c4e91['start'])){const _0x218e74=this['_model']['createPositionAt'](_0x3c4e91['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x493cdf,this['_model']['createRange'](_0x41901e['start'],_0x218e74));}else{const _0x5658e0=this['_model']['createPositionAt'](_0x3c4e91['end']['parent'],'after');this['_setSuggestionRange'](_0x493cdf,this['_model']['createRange'](_0x5658e0,_0x41901e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdd3706){for(const {suggestion:_0x33a43d,meta:_0x31677d}of this['_findSuggestions'](_0xdd3706,'insertion')){if(!_0x31677d['isOwn'])continue;const _0x3afb08=_0x33a43d['getRanges']();for(const _0x481c4a of _0x3afb08)if(!_0xdd3706['getDifference'](_0x481c4a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1d76e1){return this['editor']['plugins']['get']('Users')['getUser'](_0x1d76e1);}['_getExternalAuthor'](_0x3089f4){const _0x2a5da1=this['editor']['plugins']['get']('Users'),_0x3c0753=_0x3b7948('external:'+_0x3089f4),_0x17bae9=_0x2a5da1['getUser'](_0x3c0753);return _0x17bae9||_0x2a5da1['addUser']({'id':_0x3c0753,'name':_0x3089f4});}['_createSuggestion'](_0x399181,_0x50d47b,_0x24aa29,_0x3b1a02,_0x2a79b8,_0x22fbcf){const _0x19c1cf=this['_getAuthorFromId'](_0x3b1a02);if(!_0x19c1cf)throw new _0xb9c320('track-changes-user-not-found',this,{'authorId':_0x3b1a02,'suggestionId':_0x24aa29});const _0x2302de=this['_suggestionFactory']['buildSuggestion'](_0x399181,_0x50d47b,_0x24aa29,_0x19c1cf,_0x2a79b8,_0x4464c3=>{this['_updateSuggestionData'](_0x24aa29,{'attributes':_0x4464c3});const _0x5c819b=this['getSuggestion'](_0x24aa29);this['_joinWithAdjacentSuggestions'](new Set([_0x5c819b])),this['_refreshSuggestionsChain'](new Set([_0x5c819b]));},_0x22fbcf);return this['listenTo'](_0x2302de,'accept',()=>{this['_updateSuggestionData'](_0x24aa29,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2302de,'discard',()=>{this['_updateSuggestionData'](_0x24aa29,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24aa29,_0x2302de),this['_suggestionState']['set'](_0x2302de,'notReady'),_0x2302de;}['_breakSuggestionMarker'](_0x9e92ca,_0x265c83,_0x27777e){const _0x1e98ab=_0x9e92ca['getFirstRange'](),_0x1a1065=_0x1e98ab['start'],_0x2ed344=_0x1e98ab['end'];this['_setSuggestionRange'](_0x9e92ca,this['_model']['createRange'](_0x1a1065,_0x265c83));const _0x4f985b=_0x3a482b(),_0x420923=_0x9e92ca['creator']['id'],_0x21c252=_0x9e92ca['type']+(_0x9e92ca['subType']?':'+_0x9e92ca['subType']:'');this['_setSuggestionData']({'id':_0x4f985b,'type':_0x21c252,'createdAt':new Date(),'authorId':_0x420923,'originalSuggestionId':_0x9e92ca['_originalSuggestionId']||_0x9e92ca['id'],'attributes':_0x9e92ca['attributes'],'data':_0x9e92ca['data']});const _0x21037e=this['_getAttributeKey'](_0x9e92ca);('formatBlock'==_0x9e92ca['type']||_0x21037e&&this['_suggestionsConversion']['isBlockAttribute'](_0x21037e))&&(_0x27777e=this['_model']['createPositionBefore'](_0x27777e['parent'])),this['_addSuggestionMarker'](_0x21c252,_0x4f985b,_0x420923,this['_model']['createRange'](_0x27777e,_0x2ed344));}['_findSuggestions'](_0x666d69,_0x1b06bd=null){const _0x41fa15=[],_0x550e0b=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x666d69)||(_0x666d69=[_0x666d69]);for(const _0x3b1e74 of this['getSuggestions']()){if(!_0x3b1e74['isInContent'])continue;if(_0x1b06bd&&_0x3b1e74['type']!=_0x1b06bd)continue;let _0x1c07f1=!0x1;for(const _0x61ec15 of _0x3b1e74['getRanges']()){for(const _0x24efac of _0x666d69){const _0x26b689=_0x24efac['start']['isEqual'](_0x61ec15['end'])||_0x24efac['end']['isEqual'](_0x61ec15['start']);if(_0x26b689||_0x24efac['getIntersection'](_0x61ec15)){const _0x331a7f=_0x24efac['containsRange'](_0x61ec15)&&qe(this['_model']['schema'],_0x61ec15['start'],_0x24efac),_0x2936cc=_0x61ec15['containsRange'](_0x24efac)&&qe(this['_model']['schema'],_0x24efac['start'],_0x61ec15);_0x41fa15['push']({'suggestion':_0x3b1e74,'meta':{'isOwn':_0x550e0b==_0x3b1e74['author'],'isNextTo':_0x26b689,'isInsideObject':_0x331a7f,'containsRangeInObject':_0x2936cc}}),_0x1c07f1=!0x0;break;}}if(_0x1c07f1)break;}}return _0x41fa15;}['_addSuggestionMarker'](_0x2d5a91,_0x58cedf,_0x3db2df,_0x3850cd,_0xddceb){this['_model']['change'](_0xafb11f=>{let _0x102638='suggestion:'+_0x2d5a91+':'+_0x58cedf+':'+_0x3db2df;_0xddceb&&(_0x102638=_0x102638+':'+_0xddceb),_0xafb11f['addMarker'](_0x102638,{'range':_0x3850cd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x96b997){const _0x12d80f=_0x96b997['previous'],_0x5f4bee=_0x96b997['next'];_0x96b997['previous']=null,_0x96b997['next']=null,null!=_0x12d80f&&_0x12d80f['next']==_0x96b997&&(_0x12d80f['next']=_0x5f4bee),null!=_0x5f4bee&&_0x5f4bee['previous']==_0x96b997&&(_0x5f4bee['previous']=_0x12d80f),'ready'==this['_suggestionState']['get'](_0x96b997)&&(this['_suggestionState']['set'](_0x96b997,'removed'),this['fire']('suggestionUnloaded',_0x96b997,_0x12d80f,_0x5f4bee));}['_setSuggestionData'](_0x593399){const _0x3afeef=_0x593399['id'],_0x4c007c=this['addSuggestionData'](_0x593399);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x10e2cc=this['editor']['plugins']['get']('PendingActions'),_0x4367cc=_0x4c007c['hasComments'],_0xa636b1=_0x4c007c['subType']?_0x4c007c['type']+':'+_0x4c007c['subType']:_0x4c007c['type'],_0x225121=this['editor']['locale'],_0x1cfd72=_0x10e2cc['add'](At(_0x225121,'PENDING_ACTION_SUGGESTION')),_0xd48184={'id':_0x3afeef,'type':_0xa636b1,'hasComments':_0x4367cc,'data':_0x593399['data']||null,'originalSuggestionId':_0x593399['originalSuggestionId']||null,'attributes':_0x4c007c['attributes']};this['_adapter']['addSuggestion'](_0xd48184)['then'](_0x585982=>{_0x4c007c['_saved']=!0x0,_0x10e2cc['remove'](_0x1cfd72),_0x585982&&_0x585982['createdAt']&&(this['_suggestions']['get'](_0x3afeef)['createdAt']=_0x585982['createdAt']);})['catch'](_0x1f277c=>{throw _0x3035f0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4c007c['discard']();}),_0x4c007c['stopListening'](),this['_suggestions']['delete'](_0x4c007c['id']),this['_suggestionState']['delete'](_0x4c007c),_0x1f277c;});}return _0x4c007c;}['_updateSuggestionData'](_0xc549d8,_0x2d885b){const _0x18f4ff=this['editor']['plugins']['get']('PendingActions'),_0x1de02f=this['getSuggestion'](_0xc549d8);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1de02f['_saved']){const _0x1210b4=_0x18f4ff['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xc549d8,_0x2d885b)['then'](()=>{_0x18f4ff['remove'](_0x1210b4);});}else _0x1de02f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xc549d8,_0x2d885b);});}}['_getSuggestionData'](_0x3a7a00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0xb9c320('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3a7a00);}['_handleNewSuggestionMarker'](_0x38b039){const {id:_0x2ddd35,type:_0x2d7e51,subType:_0x539b74,authorId:_0x42ef68}=_0xfb1f58(_0x38b039),_0x296fa7=this['_suggestions']['get'](_0x2ddd35)||this['_createSuggestion'](_0x2d7e51,_0x539b74,_0x2ddd35,_0x42ef68,{});switch(this['_checkSuggestionCorrectness'](_0x296fa7,_0x2d7e51,_0x539b74,_0x42ef68),this['_suggestionState']['get'](_0x296fa7)){case'notReady':this['_getSuggestionData'](_0x2ddd35)['then'](_0x2c74af=>{let _0x27f363=Promise['resolve']();_0x2c74af['hasComments']&&(_0x27f363=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2ddd35})),_0x27f363['then'](()=>{this['addSuggestionData'](_0x2c74af)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x296fa7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2ddd35,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x296fa7,'ready'),this['fire']('suggestionLoaded',_0x296fa7);break;case'ready':this['fire']('suggestionChanged',_0x296fa7);}return _0x296fa7['addMarkerName'](_0x38b039),_0x296fa7;}['_refreshSuggestionsChain'](_0xb9eb63){const _0x201ad2=Array['from'](_0xb9eb63),_0x3a4946=_0x201ad2['filter'](_0x3ffe24=>'attribute'==_0x3ffe24['type']);this['_refreshAttributeSuggestionsChain'](_0x3a4946);const _0x50f57d=_0x201ad2['filter'](_0x1cb6e5=>!_0x1cb6e5['isMultiRange']&&'attribute'!=_0x1cb6e5['type']),_0x220fa2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x333902=>!_0x333902['isMultiRange']&&'attribute'!=_0x333902['type']),_0x1db2ee=_0x220fa2['filter'](_0xd16f9b=>!_0xb9eb63['has'](_0xd16f9b)),_0x57c5b4=new Map(_0x220fa2['map'](_0x479012=>[_0x479012,this['_suggestionFactory']['getSuggestionCallback'](_0x479012['type'],_0x479012['subType'],'chain')])),_0x1866cf=new Map(_0x220fa2['map'](_0x2ca835=>[_0x2ca835,_0x2ca835['getFirstRange']()])),_0x473814=new Set(),_0x317928=new Set();for(let _0x221a02=0x0;_0x221a02<_0x50f57d['length'];_0x221a02++)_0x3c5c56(_0x50f57d[_0x221a02],_0x50f57d,_0x221a02+0x1);for(let _0x3b9f0c=0x0;_0x3b9f0c<_0x50f57d['length'];_0x3b9f0c++)_0x3c5c56(_0x50f57d[_0x3b9f0c],_0x1db2ee,0x0);const _0x2045eb=new Set();for(let _0x197d4b=0x0;_0x197d4b<_0x50f57d['length'];_0x197d4b++){const _0x2b374c=_0x50f57d[_0x197d4b];!_0x317928['has'](_0x2b374c)&&_0x2b374c['previous']&&(_0x2045eb['add'](_0x2b374c['previous']),_0x2b374c['previous']['next']===_0x2b374c&&(_0x2b374c['previous']['next']=null),_0x2b374c['previous']=null),!_0x473814['has'](_0x2b374c)&&_0x2b374c['next']&&(_0x2045eb['add'](_0x2b374c['next']),_0x2b374c['next']['previous']===_0x2b374c&&(_0x2b374c['next']['previous']=null),_0x2b374c['next']=null);}function _0x3c5c56(_0x1ab054,_0x5f3405,_0x56a4c8){for(let _0x3b1100=_0x56a4c8;_0x3b1100<_0x5f3405['length'];_0x3b1100++){const _0x1524ed=_0x450402(_0x1ab054,_0x5f3405[_0x3b1100]);_0x1524ed&&(_0x1524ed[0x0]['next']=_0x1524ed[0x1],_0x1524ed[0x1]['previous']=_0x1524ed[0x0],_0x473814['add'](_0x1524ed[0x0]),_0x317928['add'](_0x1524ed[0x1]));}}function _0x450402(_0xc6a131,_0x1bdd9b){if(_0xc6a131['author']['id']!==_0x1bdd9b['author']['id'])return null;const _0x62d62a=_0x57c5b4['get'](_0xc6a131)(_0xc6a131,_0x1bdd9b,_0x1866cf['get'](_0xc6a131),_0x1866cf['get'](_0x1bdd9b));if(!_0x62d62a)return null;return _0x57c5b4['get'](_0x1bdd9b)(_0xc6a131,_0x1bdd9b,_0x1866cf['get'](_0xc6a131),_0x1866cf['get'](_0x1bdd9b))?_0x62d62a[0x1]['commentThread']&&_0x62d62a[0x1]['commentThread']['length']?null:_0x62d62a:null;}_0x2045eb['size']&&this['_refreshSuggestionsChain'](_0x2045eb);}['_refreshAttributeSuggestionsChain'](_0x466e1c){if(0x0==_0x466e1c['length'])return;const _0x3319f2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x431ade=>'attribute'==_0x431ade['type']&&_0x431ade['_isDataLoaded']),_0x2a131d=[],_0x159f5b=new Map();for(const _0x5aba07 of _0x3319f2){const _0xe34035=_0x3b7948(_0x5aba07['attributes']);_0x159f5b['has'](_0xe34035)||(_0x159f5b['set'](_0xe34035,_0x2a131d['length']),_0x2a131d['push']([]));const _0x2cdc6a=_0x159f5b['get'](_0xe34035);_0x2a131d[_0x2cdc6a]['push'](_0x5aba07);}!(function(){_0x2a131d['sort']((_0x4b7af3,_0xbe3cd7)=>{const _0x4e8048=_0x4b7af3[0x0]['createdAt'],_0x8d5119=_0xbe3cd7[0x0]['createdAt'];return _0x4e8048==_0x8d5119?_0x4b7af3[0x0]['attributes']['groupId']<_0xbe3cd7[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e8048<_0x8d5119?-0x1:0x1;});for(const _0x206375 of _0x2a131d)_0x206375['sort']((_0x421349,_0x52270c)=>_0x421349['id']<_0x52270c['id']?-0x1:0x1);}());for(let _0x40c5e0=0x0;_0x40c5e0<_0x2a131d['length'];_0x40c5e0++){if(0x0==_0x2a131d[_0x40c5e0]['length'])continue;const _0x308932=[];for(let _0x21e051=_0x40c5e0+0x1;_0x21e051<_0x2a131d['length'];_0x21e051++)0x0!=_0x2a131d[_0x21e051]['length']&&_0x562c13(_0x2a131d[_0x40c5e0],_0x2a131d[_0x21e051])&&_0x308932['push'](_0x21e051);for(const _0x45ccd3 of _0x308932)_0x2a131d[_0x40c5e0]=_0x2a131d[_0x40c5e0]['concat'](_0x2a131d[_0x45ccd3]),_0x2a131d[_0x45ccd3]=[];}for(const _0x1cdd34 of _0x2a131d)for(let _0x948583=0x0;_0x948583<_0x1cdd34['length'];_0x948583++){const _0xbba8da=_0x1cdd34[_0x948583+0x1]||null;_0x1cdd34[_0x948583]['next']!==_0xbba8da&&(_0x1cdd34[_0x948583]['next']=_0xbba8da);}for(const _0x4015e7 of _0x2a131d)for(let _0x5f442b=0x0;_0x5f442b<_0x4015e7['length'];_0x5f442b++){const _0xe0e218=_0x4015e7[_0x5f442b-0x1]||null;_0x4015e7[_0x5f442b]['previous']!==_0xe0e218&&(_0x4015e7[_0x5f442b]['previous']=_0xe0e218);}function _0x562c13(_0x46dbeb,_0x1fd2e8){if(_0x46dbeb[0x0]['attributes']['groupId']!==_0x1fd2e8[0x0]['attributes']['groupId']&&_0x46dbeb[0x0]['author']!==_0x1fd2e8[0x0]['author'])return!0x1;if(!function(_0x546405,_0x5edc1f){if(!_0x546405['hasComments']&&!_0x5edc1f['hasComments'])return!0x0;if(_0x546405['hasComments']&&_0x5edc1f['hasComments'])return!0x1;if(_0x546405['hasComments']&&_0x5edc1f['createdAt']<_0x546405['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5edc1f['hasComments']&&_0x546405['createdAt']<_0x5edc1f['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46dbeb[0x0],_0x1fd2e8[0x0]))return!0x1;const _0x38af7d=ot(_0x46dbeb[0x0]['attributes'],['groupId','trackingSessionId']),_0x36008c=ot(_0x1fd2e8[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x38af7d,_0x36008c))return!0x1;if(_0x46dbeb[0x0]['attributes']['groupId']==_0x1fd2e8[0x0]['attributes']['groupId'])return!0x0;if(_0x46dbeb[0x0]['attributes']['trackingSessionId']!==_0x1fd2e8[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x46dbeb['every'](_0x2aeb8b=>_0x1fd2e8['some'](_0x4c9f5a=>_0x2aeb8b['getFirstRange']()['isEqual'](_0x4c9f5a['getFirstRange']())))&&_0x1fd2e8['every'](_0x2ef918=>_0x46dbeb['some'](_0x5e7a70=>_0x2ef918['getFirstRange']()['isEqual'](_0x5e7a70['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1a1390){const _0x577871=Array['from'](_0x1a1390),_0x37ffaf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x12079e=_0x37ffaf['filter'](_0xb20730=>!_0x1a1390['has'](_0xb20730)),_0x47488a=new Map(_0x577871['map'](_0x300b3b=>[_0x300b3b,this['_suggestionFactory']['getSuggestionCallback'](_0x300b3b['type'],_0x300b3b['subType'],'join')])),_0x505165=new Map(_0x37ffaf['map'](_0x33119f=>[_0x33119f,_0x33119f['getRanges']()]));for(let _0x39911f=0x0;_0x39911f<_0x577871['length'];_0x39911f++){if(_0x142bb6(this,_0x577871[_0x39911f],_0x577871,_0x39911f+0x1))return!0x0;}for(let _0x32cd99=0x0;_0x32cd99<_0x577871['length'];_0x32cd99++){if(_0x142bb6(this,_0x577871[_0x32cd99],_0x12079e,0x0))return!0x0;}return!0x1;function _0x142bb6(_0x23f6cc,_0x28de9d,_0x370100,_0x10a9b3){for(let _0x7a794e=_0x10a9b3;_0x7a794e<_0x370100['length'];_0x7a794e++){const _0x34d2ea=_0x370100[_0x7a794e];if(_0x34d2ea['type']!==_0x28de9d['type']||_0x34d2ea['author']['id']!==_0x28de9d['author']['id']||_0x34d2ea['subType']!==_0x28de9d['subType'])continue;if(!an(_0x28de9d,_0x34d2ea))continue;if('attribute'==_0x28de9d['type']&&_0x28de9d['data']['oldValue']!=_0x34d2ea['data']['oldValue'])continue;if('attribute'==_0x28de9d['type']&&_0x23f6cc['_suggestionsConversion']['isBlockAttribute'](_0x28de9d['data']['key']))continue;if('formatBlock'==_0x28de9d['type']){const _0x14c81c=_0x23f6cc['editor']['model'],_0x507022=_0x28de9d['getContainedElement']();if(_0x507022&&(_0x14c81c['schema']['isObject'](_0x507022)||_0x14c81c['schema']['isLimit'](_0x507022)))continue;}const _0x584751=_0x47488a['get'](_0x28de9d),_0x38f007=_0x505165['get'](_0x28de9d),_0x1a152d=_0x505165['get'](_0x34d2ea),_0x1ae2f3=_0x28de9d['commentThread']&&_0x28de9d['commentThread']['length'],_0x13b478=_0x34d2ea['commentThread']&&_0x34d2ea['commentThread']['length'];if(!_0x1ae2f3&&_0x584751(_0x1a152d,_0x38f007))return _0x23f6cc['_joinSuggestions'](_0x34d2ea,_0x28de9d),_0x505165['delete'](_0x28de9d),!0x0;if(!_0x13b478&&_0x584751(_0x38f007,_0x1a152d))return _0x23f6cc['_joinSuggestions'](_0x28de9d,_0x34d2ea),_0x505165['delete'](_0x34d2ea),!0x0;}return!0x1;}}['_joinSuggestions'](_0x91e14e,_0x350129){if(_0x91e14e['isMultiRange']){for(const _0x128a4f of _0x350129['getRanges']())_0x91e14e['addRange'](_0x128a4f);}else{const _0x46b4e4=_0x350129['getFirstRange']()['end'];this['_setSuggestionRange'](_0x91e14e,this['_model']['createRange'](_0x91e14e['getFirstRange']()['start'],_0x46b4e4));}_0x350129['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f27b7,_0x50da1a,_0xc05bce){const _0x25bb2f=_0x5f27b7['startsWith']('format')||_0x5f27b7['startsWith']('attribute')?'FORMATTING':_0x5f27b7['toUpperCase']();return At(this['editor']['locale'],_0x50da1a+'_'+_0x25bb2f+'_SUGGESTION_ANNOUNCEMENT',_0xc05bce);}['_initAriaMarkerChangeAnnouncements'](){const _0x1c4dc7=this['editor'];if(!_0x1c4dc7['ui'])return;const {ariaLiveAnnouncer:_0x2810c4}=_0x1c4dc7['ui'];_0x69fdea(this['_model'],({left:_0x5463fa,entered:_0x11f680})=>{for(const _0x423aec of _0x5463fa){const {group:_0x2fffe3,type:_0x5b79b5}=_0xfb1f58(_0x423aec['name']);if('suggestion'===_0x2fffe3){_0x2810c4['announce'](this['_getMarkerAnnouncementText'](_0x5b79b5,'LEAVE'));break;}}for(const _0x4000af of _0x11f680){const {group:_0x492738,type:_0x2bba1e}=_0xfb1f58(_0x4000af['name']);if('suggestion'===_0x492738){_0x2810c4['announce'](this['_getMarkerAnnouncementText'](_0x2bba1e,'ENTER',_0x503c2f(_0x59f608)));break;}}});}['_processAttributeChanges'](_0x3ec179){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4f40fc=this['editor'],_0x3b436f=_0x4f40fc['model']['document']['differ']['getChanges']();if(0x0==_0x3b436f['length'])return!0x1;const _0xb5217a=[],_0x75bf8b=_0x3b436f['filter'](_0x575865=>'attribute'==_0x575865['type']),_0x305cfa=_0x3b436f['filter'](_0x59fe89=>'insert'==_0x59fe89['type']&&'$text'!=_0x59fe89['name']),_0x5a263c=_0x3b436f['filter'](_0x439097=>'remove'==_0x439097['type']&&'$text'!=_0x439097['name']);for(const _0x339fa7 of _0x75bf8b)_0xb5217a['push']({'key':_0x339fa7['attributeKey'],'newValue':_0x339fa7['attributeNewValue'],'oldValue':_0x339fa7['attributeOldValue'],'range':sn(_0x339fa7['range'],_0x4f40fc['model'])});for(const _0xaca0f7 of _0x305cfa){const _0x58c823=_0x5a263c['find'](_0x3ac3cd=>_0x3ac3cd['position']['isEqual'](_0xaca0f7['position']));_0x58c823&&_0xb5217a['push']({'key':Ke,'newValue':_0xaca0f7['name'],'oldValue':_0x58c823['name'],'range':_0x4f40fc['model']['createRangeOn'](_0xaca0f7['position']['nodeAfter'])});}return 0x0!=_0xb5217a['length']&&this['_reduceExistingSuggestions'](_0x3ec179,_0xb5217a);}['_processAttributeSuggestions'](_0x364010){let _0x3abdd1=!0x1;const _0xe1e6df=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe0c1be=>_0xe0c1be['data']['newRange']&&_0xe0c1be['name']['startsWith']('suggestion:attribute:'));for(const _0x3ff4c8 of _0xe1e6df){const {subType:_0x49f8d6,id:_0x1b8625}=_0xfb1f58(_0x3ff4c8['name']),_0x4ab0d5=_0x49f8d6['split']('|')[0x0];for(const _0x171a67 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x171a67['id']!=_0x1b8625&&'attribute'==_0x171a67['type']&&_0x171a67['data']&&_0x171a67['data']['key']==_0x4ab0d5&&_0x171a67['getFirstRange']()['isIntersecting'](_0x3ff4c8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x171a67,_0x3ff4c8['data']['newRange'],_0x364010),_0x3abdd1=!0x0);}return _0x3abdd1;}['recordAttributeChanges'](_0x2da8d5){this['_recordAttributeSuggestions']=!0x0,_0x2da8d5();}['_reduceExistingSuggestions'](_0x52f709,_0x1454a9){if(0x0==_0x1454a9['length'])return!0x1;let _0x531e93=!0x1;for(const _0x4d6d4c of _0x1454a9){const _0x15c5aa=this['_findSuggestions'](_0x4d6d4c['range'],'attribute')['filter'](_0x4b6d0d=>!_0x4b6d0d['meta']['isNextTo'])['map'](_0x15d8b4=>_0x15d8b4['suggestion']),_0x516d01=_0x3b7948({'newValue':_0x4d6d4c['newValue']});_0x15c5aa['filter'](_0x1076d7=>{const [_0x27727c,_0x50ce91]=_0x1076d7['subType']['split']('|');return _0x27727c==_0x4d6d4c['key']&&_0x50ce91!=_0x516d01;})['forEach'](_0xca52b2=>{this['_reduceSuggestionAttributeRange'](_0xca52b2,_0x4d6d4c['range'],_0x52f709),_0x531e93=!0x0;});}return _0x531e93;}['_reduceSuggestionAttributeRange'](_0x41f770,_0x3f0cc9,_0x3e9585){const _0x5763fc=_0x41f770['getFirstRange']()['getDifference'](_0x3f0cc9);0x0!==_0x5763fc['length']?0x1!==_0x5763fc['length']?this['_breakSuggestionMarker'](_0x41f770,_0x3f0cc9['start'],_0x3f0cc9['end']):this['_setSuggestionRange'](_0x41f770,_0x5763fc[0x0]):_0x3e9585['removeMarker'](_0x41f770['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x34b6d8){this['_editor']=_0x34b6d8,this['_model']=_0x34b6d8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x57213c,_0x11a917,_0x2304f5,_0x4845a4,_0x3cbbfc,_0x421596,_0x533087){return new bt(this['_model'],{'type':_0x57213c,'subType':_0x11a917,'id':_0x2304f5,'originalSuggestionId':_0x533087,'author':_0x4845a4,'creator':_0x4845a4,'attributes':_0x3cbbfc,'onAttributesChange':_0x421596,'onAccept':(..._0x473010)=>this['getSuggestionCallback'](_0x57213c,_0x11a917,'accept')(..._0x473010),'onDiscard':(..._0x44b6d9)=>this['getSuggestionCallback'](_0x57213c,_0x11a917,'discard')(..._0x44b6d9)});}['registerCustomCallback'](_0x187c79,_0x56557e,_0x31faa8,_0x2cfefd){const _0x5bb7d8=_0x187c79+':'+_0x56557e+':'+_0x31faa8;this['_customCallbacks']['set'](_0x5bb7d8,_0x2cfefd);}['getSuggestionCallback'](_0x30f99f,_0x5abcba,_0x33a0c5){const _0x784a9d=_0x30f99f+':'+_0x5abcba+':'+_0x33a0c5;return this['_customCallbacks']['get'](_0x784a9d)||this['_defaultCallbacks']['get'](_0x30f99f+':'+_0x33a0c5);}['_registerDefaultCallbacks'](){const _0x366b4a=()=>!0x1,_0x2b859e=_0x54bd96=>{_0x54bd96['sort']((_0x4608b0,_0x48a62a)=>_0x4608b0['start']['isBefore'](_0x48a62a['start'])?0x1:-0x1),this['_model']['change'](_0x11ad1e=>{for(const _0x4dd166 of _0x54bd96){let _0x3acd8b;_0x3acd8b=_0x4dd166['end']['isAtEnd']&&_0x4dd166['end']['parent']==_0x4dd166['start']['nodeAfter']?_0x11ad1e['createSelection'](_0x4dd166['start']['nodeAfter'],'on'):_0x11ad1e['createSelection'](_0x4dd166),this['_model']['deleteContent'](_0x3acd8b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x552a0a=(_0x3febbc,_0x12cbcd)=>{_0x12cbcd&&this['_model']['change'](_0x4d47de=>{const {commandName:_0x5e32de,commandParams:_0x59c980=[]}=_0x12cbcd,_0x39104f=_0x3febbc['map'](_0x37b044=>(Qe(_0x37b044)&&(_0x37b044=this['_model']['createRange'](_0x37b044['end'])),_0x37b044))['filter'](_0x2d7a84=>'$graveyard'!==_0x2d7a84['root']['rootName']);if(_0x39104f['length']<0x1)return;const _0x274261=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1dc169=>_0x56dc86['fromRange'](_0x1dc169));_0x4d47de['setSelection'](_0x39104f);for(const _0x1d2a65 of this['_editor']['commands']['commands']())_0x1d2a65['refresh']();_0x59c980['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5e32de,..._0x59c980);const _0x446b78=_0x274261['filter'](_0x1afed9=>'$graveyard'!=_0x1afed9['root']['rootName']);_0x446b78['length']>0x0&&_0x4d47de['setSelection'](_0x446b78);for(const _0x3d9dc7 of _0x274261)_0x3d9dc7['detach']();});},_0x31c324=(_0x3e5142,_0x4662ac)=>0x1==_0x3e5142['length']&&0x1==_0x4662ac['length']&&_0x3e5142[0x0]['end']['isEqual'](_0x4662ac[0x0]['start']),_0x5e2fa5=(_0x1edea0,_0x34a700,_0x44aeb2,_0x5f23f8)=>on(_0x1edea0,_0x34a700,_0x44aeb2,_0x5f23f8)?[_0x1edea0,_0x34a700]:on(_0x34a700,_0x1edea0,_0x5f23f8,_0x44aeb2)?[_0x34a700,_0x1edea0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x366b4a),this['_defaultCallbacks']['set']('insertion:discard',_0x2b859e),this['_defaultCallbacks']['set']('insertion:join',_0x31c324),this['_defaultCallbacks']['set']('insertion:chain',_0x5e2fa5),this['_defaultCallbacks']['set']('deletion:accept',_0x2b859e),this['_defaultCallbacks']['set']('deletion:discard',_0x366b4a),this['_defaultCallbacks']['set']('deletion:join',_0x31c324),this['_defaultCallbacks']['set']('deletion:chain',_0x5e2fa5),this['_defaultCallbacks']['set']('formatInline:accept',_0x552a0a),this['_defaultCallbacks']['set']('formatInline:discard',_0x366b4a),this['_defaultCallbacks']['set']('formatInline:join',_0x31c324),this['_defaultCallbacks']['set']('formatInline:chain',_0x366b4a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x552a0a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x366b4a),this['_defaultCallbacks']['set']('formatBlock:join',_0x31c324),this['_defaultCallbacks']['set']('formatBlock:chain',_0x366b4a),this['_defaultCallbacks']['set']('attribute:accept',_0x366b4a),this['_defaultCallbacks']['set']('attribute:discard',(_0x1b1f5b,_0x41bee5)=>{if(!_0x41bee5)return;const _0x12948b=this['_editor']['plugins']['get'](_0x400bb5);this['_model']['change'](_0x3d69e1=>{if(_0x41bee5['key']==Ke)for(const _0x2aca2f of _0x1b1f5b){const _0x2ba0bd=_0x2aca2f['start']['nodeAfter'],_0x309d49=_0x41bee5['oldValue'];_0x3d69e1['rename'](_0x2ba0bd,_0x309d49);}else{if(_0x12948b['isBlockAttribute'](_0x41bee5['key'])){for(const _0x16ee80 of _0x1b1f5b)void 0x0!==_0x41bee5['oldValue']?_0x3d69e1['setAttribute'](_0x41bee5['key'],_0x41bee5['oldValue'],_0x16ee80['start']['nodeAfter']):_0x3d69e1['removeAttribute'](_0x41bee5['key'],_0x16ee80['start']['nodeAfter']);}else{for(const _0x1eeb8e of _0x1b1f5b)_0x41bee5['oldValue']?_0x3d69e1['setAttribute'](_0x41bee5['key'],_0x41bee5['oldValue'],_0x1eeb8e):_0x3d69e1['removeAttribute'](_0x41bee5['key'],_0x1eeb8e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x31c324);}}function qe(_0x1feff5,_0xd6cb16,_0x36da77){for(const _0x19323b of _0xd6cb16['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x19323b['root']==_0x19323b)return!0x1;if(!_0x36da77['containsItem'](_0x19323b))return!0x1;if(_0x1feff5['isObject'](_0x19323b)||_0x1feff5['isLimit'](_0x19323b))return!0x0;}return!0x1;}function Qe(_0x2f93be){return _0x2f93be['end']['parent']==_0x2f93be['start']['nodeAfter']&&_0x2f93be['end']['isAtStart'];}function Ze(_0x3c7e8c,_0x42739e,_0x27e649,_0x96a70){const _0x93a817=_0x101079=>!_0x101079['item']['is']('$textProxy')&&!_0x96a70['isObject'](_0x101079['item']),_0x503b90=_0x3c7e8c['start']['getLastMatchingPosition'](_0x93a817),_0xb298e1=_0x3c7e8c['end']['getLastMatchingPosition'](_0x93a817,{'direction':'backward'});return(!_0x3c7e8c['start']['isEqual'](_0x503b90)||!_0x3c7e8c['end']['isEqual'](_0xb298e1))&&(_0x503b90['isBefore'](_0xb298e1)?_0x27e649['updateMarker'](_0x42739e,{'range':_0x27e649['createRange'](_0x503b90,_0xb298e1)}):_0x27e649['removeMarker'](_0x42739e),!0x0);}function Je(_0x14933a){return _0x3b7948(_0x14933a);}function tn(_0xf45f88){const _0x823a47=_0xf45f88['start']['nodeAfter'];return _0x823a47&&_0x823a47['is']('element');}function en(_0x71cdd){return Qe(_0x71cdd)||function(_0x401288){return _0x401288['start']['parent']==_0x401288['end']['nodeBefore']&&_0x401288['start']['isAtEnd'];}(_0x71cdd);}function nn(_0x303942,_0xba3552){try{const _0x31b496=_0x303942['getRange']();for(const _0x316b35 of _0xba3552)if(_0x303942!==_0x316b35&&_0x31b496&&_0x31b496['isIntersecting'](_0x316b35['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x1f9779,_0x4860f0){return null==_0x1f9779['end']['nodeBefore']&&_0x1f9779['end']['parent']==_0x1f9779['start']['nodeAfter']?rn(_0x1f9779['start']['nodeAfter'],_0x4860f0):_0x1f9779;}function rn(_0x52e11c,_0xb0eda1){const _0x14f4c3=_0xb0eda1['schema']['isObject'](_0x52e11c)||_0xb0eda1['schema']['isSelectable'](_0x52e11c);return _0xb0eda1['createRange'](_0xb0eda1['createPositionAt'](_0x52e11c,'before'),_0x14f4c3?_0xb0eda1['createPositionAfter'](_0x52e11c):_0xb0eda1['createPositionAt'](_0x52e11c,'end'));}function on(_0x41e7ef,_0xa2abe9,_0x34ae42,_0x15d559){return!!an(_0x41e7ef,_0xa2abe9)&&_0x34ae42['end']['isEqual'](_0x15d559['start']);}function an(_0x578a1c,_0x518bd3){if(!_0x578a1c['_isDataLoaded']||!_0x518bd3['_isDataLoaded'])return!0x1;const _0x4e4dfe=new Set(Object['keys'](_0x578a1c['attributes'])),_0x3b8dcb=new Set(Object['keys'](_0x518bd3['attributes']));if(_0x4e4dfe['delete']('groupId'),_0x3b8dcb['delete']('groupId'),0x0==_0x4e4dfe['size']&&0x0==_0x3b8dcb['size'])return!0x0;if(_0x4e4dfe['size']!=_0x3b8dcb['size'])return!0x1;const _0x54ac28={..._0x578a1c['attributes']},_0x34b9fe={..._0x518bd3['attributes']};return delete _0x54ac28['groupId'],delete _0x34b9fe['groupId'],JSON['stringify'](_0x54ac28)==JSON['stringify'](_0x34b9fe);}function cn(_0x5d3cd4,_0xc4a70d){const _0x4d57d0=ln(_0x5d3cd4['attributes']),_0x56669d=ln(_0xc4a70d);if(!_0x5d3cd4['_isDataLoaded'])return!0x1;for(const _0x57f22a of Object['keys'](_0x56669d))if(!st(_0x4d57d0[_0x57f22a],_0x56669d[_0x57f22a]))return!0x1;return!0x0;}function ln(_0x13a79d){const _0x510749=Object['assign']({},_0x13a79d);return delete _0x510749['skipNestingCheck'],delete _0x510749['tablePasteChainId'],_0x510749;}function un(_0x123037){return _0x123037['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x37da01(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5a8892,_0x3edbfb,_0x511d59,_0x11b0bc){super(),this['model']=_0x3edbfb,this['view']=_0x511d59,this['commentThreadController']=_0x11b0bc,this['_editor']=_0x5a8892,this['_acceptCommand']=_0x5a8892['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5a8892['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2e21b1,_0x58090a)=>_0x2e21b1||_0x58090a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35963f=>_0x35963f&&this['_editor']['model']['canEditAt'](_0x3edbfb['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24399f=>_0x24399f&&this['_editor']['model']['canEditAt'](_0x3edbfb['getRanges']())),this['_pendingAction']=null,_0x511d59['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x511d59,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x511d59,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x511d59,'change:isDirty',()=>{_0x511d59['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 _0x3e1b1a=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3e1b1a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x4474c8{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x14c71a,_0x23443c,_0x548fb2,_0xdc675e){super(_0x14c71a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x423d06(_0x14c71a,At(_0x14c71a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x23443c['authoredAt']),this['bind']('authoredAt')['to'](_0x23443c),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',_0x23443c,'authoredAt',this,'descriptionParts',(_0xaa1e57,_0xa2c5b5,_0x231832)=>{const _0x188620=_0x231832['map'](_0xac0609=>gt(_0xac0609['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xaa1e57-0x1,_0x23443c['author']['name'],_0xa2c5b5?_0xdc675e['formatDateTime'](_0xa2c5b5):'',new DOMParser()['parseFromString'](_0x188620,'text/html')['body']['textContent']]);}),this['focusables']=new _0x42a025(),this['focusTracker']=new _0x3098e8(),this['keystrokes']=new _0x1d0f02(),this['focusCycler']=new _0x43be5a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x47993=>_0x47993['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x23443c,this['_localUser']=_0x548fb2,this['_config']=_0xdc675e,_0xdc675e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4c2997(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x151bb0}=this['_config'];this['commentsListView']=new _0x151bb0(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',_0x1b9398=>_0x1b9398+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xca388,_0x292db2)=>_0xca388||!!_0x292db2);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4740d5}=this['_config'],_0x1a28f8=new _0x4740d5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b9eed=_0x1a28f8['commentInputView'];return _0x1a28f8['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b9eed,'value',(_0x5f414a,_0x45a0c9,_0x402e39)=>!!_0x402e39||_0x5f414a&&!_0x45a0c9),_0x1b9eed['on']('submit',(_0x13e435,_0x5bb3d4)=>{this['fire']('addComment',_0x5bb3d4),_0x1b9eed['editor']['setData']('');}),_0x1b9eed['on']('cancel',()=>this['focus']()),_0x1b9eed['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1a28f8;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x11b5d1,_0x413a18,_0x54157f,_0x1fe5f7){super(_0x11b5d1,_0x413a18,_0x54157f,_0x1fe5f7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xbd1d3a=>_0xbd1d3a&&_0xbd1d3a[0x0]?_0xbd1d3a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x589556,_0x49a1cd)=>{let _0x49b1a5='';for(const _0x170337 of _0x589556)_0x49b1a5+='<p>'+gt(_0x170337['content'],_0x170337['color'])+'</p>';return _0x49a1cd?_0x49b1a5:_0x25eebb(_0x49b1a5,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1fe5f7['SuggestionView'](_0x11b5d1,_0x413a18,{'formatDateTime':_0x1fe5f7['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 _0x41bfd7=this['bindTemplate'],_0x3fd36f=[this['suggestionView']];return this['commentsListView']&&_0x3fd36f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3fd36f['push'](this['commentThreadInputView']),_0x3fd36f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x41bfd7['if']('isActive','ck-suggestion-wrapper--active'),_0x41bfd7['to']('type',_0x317cf3=>'ck-suggestion-'+_0x317cf3),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':_0x41bfd7['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3fd36f};}['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 _0x4474c8{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4d2f15,_0x9b5ec0,_0x2817e5){super(_0x4d2f15),this['_model']=_0x9b5ec0,this['_config']=_0x2817e5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x9b5ec0),this['acceptButton']=this['_createButton'](At(_0x4d2f15,'Accept\x20suggestion'),_0x958074,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x4d2f15,'Discard\x20suggestion'),_0x391e38,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x9ea7a(_0x4d2f15,_0x9b5ec0['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x42a025([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3098e8(),this['keystrokes']=new _0x1d0f02(),this['focusCycler']=new _0x43be5a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x211337=>_0x211337['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x542a12=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x542a12['innerHTML']=this['description'],this['on']('change:description',(_0x4227f8,_0x15677c,_0x50bc49)=>{_0x542a12['innerHTML']=_0x50bc49;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1152c6=this['bindTemplate'],_0x3ae543=[{'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':_0x1152c6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1152c6['to']('authoredAt',_0x5d7530=>this['_config']['formatDateTime'](_0x5d7530))}]}]},{'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']&&_0x3ae543['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':_0x3ae543}]};}['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'](_0x4c7fd4,_0x2bd780,_0x3493d3,_0x226530,_0x7f43d3){const _0x11dd45=new _0x208c2a(this['locale']);return _0x11dd45['set']({'label':_0x4c7fd4,'icon':_0x2bd780,'tooltip':!0x0,'tooltipPosition':_0x7f43d3}),_0x11dd45['extendTemplate']({'attributes':{'class':_0x3493d3}}),_0x11dd45['on']('execute',()=>{this['fire'](_0x226530,this['_model']['id']);}),_0x11dd45;}['_setupKeyboardNavigation'](){const _0x18f65d=this['element'];this['keystrokes']['listenTo'](_0x18f65d);for(const _0x5b0d3c of this['focusables'])this['focusTracker']['add'](_0x5b0d3c['element']),this['keystrokes']['listenTo'](_0x5b0d3c['element']);this['keystrokes']['set']('enter',(_0x239a90,_0x1993b8)=>{_0x18f65d===_0x239a90['target']&&(this['focusCycler']['focusFirst'](),_0x1993b8());}),this['keystrokes']['set']('esc',(_0x10bb2a,_0x325492)=>{_0x18f65d!==_0x10bb2a['target']&&(this['focus'](),_0x325492());});}}class mn extends _0x1e0278{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x52b80c,_0x3fa1f3,_0x420f64,_0x4b07dd];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c3651){super(_0x3c3651),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c9ee7=this['editor']['config'];_0x1c9ee7['define']('trackChanges.SuggestionThreadView',fn),_0x1c9ee7['define']('trackChanges.SuggestionView',gn),_0x1c9ee7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c9ee7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x406749,_0x182300){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x97126,_0x304ea9]of this['_handleControllerBuffer']){const _0x4f6164=this['_suggestionToController']['has'](_0x97126);_0x4f6164||_0x304ea9?_0x4f6164&&_0x304ea9&&this['_destroyController'](_0x97126):this['_initializeController'](_0x97126);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x4b07dd)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x406749,_0x182300);}['init'](){const _0x43de3c=this['editor'],_0x1c9681=_0x43de3c['plugins']['get'](Xe),_0x30440b=_0x43de3c['plugins']['get'](_0x420f64),_0x51ee76=_0x43de3c['plugins']['get'](_0x4b07dd),_0xedac8c=_0x43de3c['plugins']['get'](_0x3fa1f3);this['_addUIComponentsToFactory'](),_0x51ee76['addSourceCollector'](()=>{const _0x240e5e=[];for(const [_0x221ae1,_0x3497c0]of Array['from'](this['_suggestionToController'])){const _0x409d14=_0x221ae1['getAllAdjacentSuggestions'](),_0x366f6b=[];for(const _0x2d6331 of _0x409d14){if(!_0x2d6331['isInContent'])continue;if(_0x2d6331['isMultiRange']){_0x366f6b['push'](..._0x2d6331['getRanges']());continue;}const _0x29a2b9=_0x2d6331['getFirstRange']();if(_0x366f6b['length']>0x0){const _0x1a23a1=_0x366f6b[0x0]['getJoined'](_0x29a2b9);if(_0x1a23a1){_0x366f6b[0x0]=_0x1a23a1;continue;}}_0x366f6b['push'](_0x29a2b9);}_0x240e5e['push']([_0x3497c0['view'],_0x366f6b]);}return _0x240e5e;}),this['listenTo'](_0x1c9681,'suggestionLoaded',(_0x2375ba,_0x209154)=>{this['listenTo'](_0x209154,'change:previous',(_0x10648b,_0x5e1dde,_0x59548c,_0x129fa3)=>{_0x209154['isInContent']&&(null==_0x59548c?(this['_updateController'](_0x129fa3['head']),this['_handleSuggestionControllerDelayed'](_0x209154,!0x1)):(this['_updateController'](_0x59548c['head']),null==_0x129fa3&&this['_handleSuggestionControllerDelayed'](_0x209154,!0x0)));}),null!==_0x209154['previous']?this['_updateController'](_0x209154['head']):this['_handleSuggestionControllerDelayed'](_0x209154,!0x1);}),this['listenTo'](_0x1c9681,'suggestionUnloaded',(_0x37d50f,_0x4d26de,_0x5a2c30)=>{this['stopListening'](_0x4d26de,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4d26de),this['_suggestionToController']['has'](_0x4d26de)&&this['_destroyController'](_0x4d26de),_0x5a2c30&&this['_updateController'](_0x5a2c30['head']);}),this['listenTo'](_0x1c9681,'suggestionChanged',(_0x173297,_0xfb0a64)=>{this['_updateController'](_0xfb0a64);}),this['listenTo'](_0x30440b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xedac8c,'addComment',(_0x185956,{threadId:_0x3e52ac,isFromAdapter:_0x531484})=>{if(_0x531484||!_0x1c9681['hasSuggestion'](_0x3e52ac))return;const _0x57170e=_0x1c9681['getSuggestion'](_0x3e52ac);this['_suggestionToController']['get'](_0x57170e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x286872=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13b1a8;for(const _0x249a87 in _0x286872){const _0x288fe3=_0x249a87,_0x3ff29d=_0x286872[_0x288fe3];if('trackChangesLicenseKeyValid'==_0x3ff29d||'trackChangesLicenseKeyInvalid'==_0x3ff29d||'trackChangesLicenseKeyExpired'==_0x3ff29d||'trackChangesLicenseKeyDomainLimit'==_0x3ff29d||'trackChangesLicenseKeyNotAllowed'==_0x3ff29d||'trackChangesLicenseKeyEvaluationLimit'==_0x3ff29d||'trackChangesLicenseKeyUsageLimit'==_0x3ff29d){delete _0x286872[_0x288fe3],_0x13b1a8=_0x3ff29d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13b1a8&&_0x286872['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13b1a8&&_0x286872['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13b1a8&&_0x286872['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13b1a8&&_0x286872['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13b1a8&&_0x286872['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13b1a8&&_0x286872['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0xfa62ee){const _0x1bc580=this['_suggestionToController']['get'](_0xfa62ee);if(!_0x1bc580)return null;return this['editor']['plugins']['get'](_0x420f64)['getByInnerView'](_0x1bc580['view'])||null;}['getSuggestionForAnnotation'](_0x14c46b){const _0x18445a=this['_viewToController']['get'](_0x14c46b['innerView']);return _0x18445a?_0x18445a['model']:null;}['_refreshActiveMarkers'](){const _0x78eae2=this['editor']['plugins']['get'](_0x420f64),_0x1f020f=this['editor']['plugins']['get'](Xe),_0x48da7f=Array['from'](_0x78eae2['activeAnnotations'],_0x1babe3=>_0x1babe3['innerView'])['filter'](_0x5ce7c1=>this['_viewToController']['has'](_0x5ce7c1)),_0x2057a5=[];for(const _0x30d52b of _0x48da7f){const _0x50ee1e=this['_viewToController']['get'](_0x30d52b)['model']['getAllAdjacentSuggestions']();_0x2057a5['push'](..._0x50ee1e['reduce']((_0x58fbb0,_0x1d1e90)=>[..._0x58fbb0,..._0x1d1e90['getMarkerNames']()],[]));}_0x1f020f['activeMarkers']=_0x2057a5;}['_addUIComponentsToFactory'](){const _0x1661f0=this['editor'],_0x92c1a1=_0x1661f0['locale'],_0x148658=At(_0x92c1a1,'Track\x20changes'),_0xa69289=new _0x3d9500([{'type':'switchbutton','model':new _0x3f7047({'withText':!0x0,'isToggleable':!0x0,'label':_0x148658,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3f7047({'withText':!0x0,'label':At(_0x92c1a1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f7047({'withText':!0x0,'label':At(_0x92c1a1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f7047({'withText':!0x0,'label':At(_0x92c1a1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3f7047({'withText':!0x0,'label':At(_0x92c1a1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x1661f0['plugins']['has']('TrackChangesPreview')&&_0xa69289['addMany']([{'type':'separator'},{'type':'button','model':new _0x3f7047({'withText':!0x0,'label':At(_0x92c1a1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x346a0b of _0xa69289)if(En(_0x346a0b)){const _0x17af65=_0x1661f0['commands']['get'](_0x346a0b['model']['commandName']);_0x346a0b['model']['bind']('isOn','isEnabled')['to'](_0x17af65,'value','isEnabled');}_0x1661f0['ui']['componentFactory']['add']('trackChanges',_0x16fd3a=>this['_createToolbarButton'](_0x16fd3a,_0xa69289,_0x148658)),_0x1661f0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15d241=>this['_createMenuBarMenu'](_0x15d241,_0xa69289,_0x148658));}['_createToolbarButton'](_0x50ee61,_0x7057c1,_0x11d3fe){const _0x2a8867=_0x6cba14(_0x50ee61,_0x68e973),_0x4caecb=this['editor']['commands']['get']('trackChanges');_0x2a8867['buttonView']['set']({'tooltip':_0x11d3fe,'label':_0x11d3fe,'icon':_0x41b672}),_0x2a8867['buttonView']['bind']('isOn')['to'](_0x4caecb,'value'),_0x2a8867['buttonView']['on']('execute',()=>{_0x4caecb['execute'](),this['editor']['editing']['view']['focus']();}),_0x368d56(_0x2a8867,_0x7057c1,{'role':'menu'});const _0x430211=[];for(const _0x479a35 of _0x7057c1)En(_0x479a35)&&_0x430211['push'](this['editor']['commands']['get'](_0x479a35['model']['commandName']));const _0x3c97ec=_0x2a8867['buttonView'];return _0x3c97ec['actionView']['unbind']('isEnabled'),_0x3c97ec['arrowView']['unbind']('isEnabled'),_0x3c97ec['actionView']['bind']('isEnabled')['to'](_0x4caecb,'isEnabled'),_0x3c97ec['arrowView']['bind']('isEnabled')['toMany'](_0x430211,'isEnabled',(..._0x104dce)=>_0x104dce['some'](_0x3470ff=>_0x3470ff)),_0x2a8867['on']('execute',_0x564986=>{this['editor']['execute'](_0x564986['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a8867;}['_createMenuBarMenu'](_0x32f8f9,_0x11120d,_0x17395e){const _0x911996=new _0x516b7a(_0x32f8f9),_0x4121e7=this['editor']['commands']['get']('trackChanges');_0x911996['buttonView']['set']({'label':_0x17395e,'icon':_0x41b672});const _0x5564cc=new _0x5c45c9(_0x32f8f9);for(const _0x3f4ba4 of _0x11120d){if('separator'==_0x3f4ba4['type']){_0x5564cc['items']['add'](new _0x2430d2(_0x32f8f9));continue;}const _0x36b9b9=new _0x21de03(_0x32f8f9,_0x911996),_0x36c42c=new _0x7fa1fa(_0x32f8f9),_0x225954=_0x3f4ba4['model'];_0x36c42c['bind'](...Object['keys'](_0x225954))['to'](_0x225954),_0x36c42c['delegate']('execute')['to'](_0x911996),_0x36c42c['on']('execute',()=>{this['editor']['execute'](_0x225954['commandName']),this['editor']['editing']['view']['focus']();}),_0x36b9b9['children']['add'](_0x36c42c),_0x5564cc['items']['add'](_0x36b9b9);}return _0x911996['bind']('isEnabled')['to'](_0x4121e7,'isEnabled'),_0x911996['panelView']['children']['add'](_0x5564cc),_0x911996;}['_initializeController'](_0x3ea6df){const _0x38d7e8=this['editor'],_0x4fe3bb=_0x38d7e8['config'],_0x3c21ab=_0x38d7e8['plugins']['get'](_0x420f64),_0x2bd274=_0x38d7e8['plugins']['get'](_0x3fa1f3),_0x41b8ca=_0x38d7e8['plugins']['get'](_0x4b07dd),_0x14f6d1=_0x38d7e8['plugins']['get'](_0x52b80c)['me'],_0x325883=_0x4fe3bb['get']('trackChanges')['SuggestionThreadView'],_0x15cdd7=_0x4fe3bb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1ec375,CommentThreadInputView:_0x463f12}=_0x38d7e8['plugins']['get']('CommentsUI');let _0x183d45,_0x435fb1,_0x279e35;this['_annotationViews']['has'](_0x3ea6df['id'])?(_0x435fb1=this['_annotationViews']['get'](_0x3ea6df['id']),_0x183d45=_0x435fb1['mainView']):(_0x183d45=new _0x325883(_0x38d7e8['locale'],_0x3ea6df,_0x14f6d1,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4fe3bb['get']('comments.editorConfig'),'licenseKey':_0x4fe3bb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4fe3bb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4fe3bb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4fe3bb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3d4fde(_0x4fe3bb['get']('locale'),_0x38d7e8['locale']),'CommentView':_0x4fe3bb['get']('comments')['CommentView'],'CommentsListView':_0x1ec375,'CommentThreadInputView':_0x463f12,'SuggestionView':_0x15cdd7}),_0x183d45['suggestionView']['acceptButton']['on']('execute',()=>{_0x38d7e8['editing']['view']['focus']();}),_0x183d45['suggestionView']['discardButton']['on']('execute',()=>{_0x38d7e8['editing']['view']['focus']();}),_0x435fb1=_0x3c21ab['createAnnotationView'](this['editor']['locale'],_0x183d45),_0x435fb1['bind']('isDirty')['to'](_0x183d45,'isDirty'),_0x435fb1['bind']('length')['to'](_0x183d45),_0x435fb1['bind']('type')['to'](_0x183d45,'type',_0x2f8d14=>'suggestion-'+_0x2f8d14),_0x183d45['on']('escape',()=>{_0x279e35['fire']('escape');}),this['_annotationViews']['set'](_0x3ea6df['id'],_0x435fb1));const _0x48de7a=_0x2bd274['createCommentThreadController'](_0x3ea6df['commentThread'],_0x183d45),_0x167c1b=new hn(_0x38d7e8,_0x3ea6df,_0x183d45,_0x48de7a),_0xe177bd=_0x3ea6df['getAllAdjacentSuggestions']()['filter'](_0x382d6b=>_0x382d6b['isInContent']);_0x183d45['descriptionParts']=_0x38d7e8['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0xe177bd),this['_suggestionToController']['set'](_0x3ea6df,_0x167c1b),this['_viewToController']['set'](_0x183d45,_0x167c1b);const _0x142723=()=>{const _0x16625b=[],_0x20bfe9=_0x3ea6df['getAllAdjacentSuggestions']()['filter'](_0x106afe=>_0x106afe['isInContent']);for(const _0x240340 of _0x20bfe9)_0x16625b['push'](..._0x240340['getMarkers']());return _0x506b46(_0x38d7e8['editing'],_0x16625b);};_0x279e35=_0x3c21ab['createAnnotation']({'view':_0x435fb1,'target':_0x142723,'type':()=>'suggestion-'+_0x167c1b['view']['type'],'isVisible':!!_0x142723()}),_0x2bd274['_bindAnnotationToEditors'](_0x183d45,_0x279e35),_0x3c21ab['add'](_0x279e35),_0x41b8ca['registerAnnotation'](_0x279e35);}['_destroyController'](_0x502284){const _0x21a9b3=this['editor']['plugins']['get'](_0x3fa1f3),_0x52bb4a=this['editor']['plugins']['get'](_0x420f64),_0x1b3882=this['_suggestionToController']['get'](_0x502284),_0x342425=_0x1b3882['view'],_0x2bd621=_0x52bb4a['getByInnerView'](_0x342425);_0x21a9b3['_unbindEditors'](_0x342425),_0x2bd621&&_0x52bb4a['remove'](_0x2bd621),this['_suggestionToController']['delete'](_0x502284),this['_viewToController']['delete'](_0x342425),_0x1b3882['destroy']();}['_updateController'](_0x5bec32){if(!_0x5bec32['isInContent']||!this['_suggestionToController']['has'](_0x5bec32))return;const _0x1a9bfb=this['editor']['plugins']['get'](Xe),_0xecf038=this['_suggestionToController']['get'](_0x5bec32),_0xd69143=_0x5bec32['getAllAdjacentSuggestions']();_0xecf038['view']['descriptionParts']=_0x1a9bfb['descriptionFactory']['getDescriptions'](_0xd69143);}['destroy'](){for(const _0x277944 of this['_suggestionToController']['keys']())this['_destroyController'](_0x277944);for(const _0xa09682 of this['_annotationViews']['values']())_0xa09682['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0xc92dae){return'model'in _0xc92dae;}class Tn extends _0x1e0278{static get['requires'](){return[Xe,mn,_0x15b48d];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x458e53){this['editor']['plugins']['get'](Xe)['adapter']=_0x458e53;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x47a068){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x47a068);}['getSuggestions']({skipNotAttached:_0xb4e53e=!0x1,toJSON:_0x5a1ef9=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0xb4e53e,'toJSON':_0x5a1ef9});}['getSuggestion'](_0x418e29){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x418e29);}}const _n=['Pagination'];class pn extends _0x1e0278{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xaec710=this['editor'];if(_0xaec710['config']['define']('trackChangesData.editorCreator',_0x5c72f4=>{const _0x29ee2f=_0xaec710['model']['document']['getRootNames']()['reduce']((_0x915b48,_0x45dbc8)=>(_0x915b48[_0x45dbc8]='',_0x915b48),{});return _0xaec710['constructor']['create'](_0x29ee2f,_0x5c72f4);}),'function'!=typeof _0xaec710['config']['get']('trackChangesData')['editorCreator'])throw new _0xb9c320('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5b1f18){return bn(this['editor'],!0x0,_0x5b1f18);}['getDataWithDiscardedSuggestions'](_0x487d42){return bn(this['editor'],!0x1,_0x487d42);}}class Ln extends _0x1e0278{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58d7da){function _0x44a4e8(_0x291f61){return _0x291f61['map'](_0x1550ae=>String['fromCharCode'](_0x1550ae))['join']('');}super(_0x58d7da),this['result']='end',_0x58d7da[_0x44a4e8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44a4e8([0x76,0x69,0x65,0x77])][_0x44a4e8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44a4e8([0x61,0x75,0x74,0x6f]),_0x58d7da[_0x44a4e8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x44a4e8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44a4e8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x44a4e8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x44a4e8([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(_0x270d6c){return void 0x0!==_0x270d6c['getRootsAttributes'];}async function bn(_0x589d37,_0x151160,_0xc71ef4){const _0x277ddc=_0x18fc03(_0x589d37,_n);if(_0x277ddc['plugins']['push'](Xe,Ln),In(_0x589d37)){_0x277ddc['roots']=Object['create'](null);for(const _0x4644c0 of _0x589d37['model']['document']['getRootNames']())_0x277ddc['roots'][_0x4644c0]={'modelAttributes':_0x589d37['getRootAttributes'](_0x4644c0)};}const _0x179c34=document['createDocumentFragment'](),_0x1cc38=_0x589d37['config']['get']('trackChangesData')['editorCreator'],_0x2379dc=await _0x1cc38(_0x277ddc,()=>function(_0xad4287){const _0x57a8ed=document['createElement']('div');return _0xad4287['appendChild'](_0x57a8ed),_0x57a8ed;}(_0x179c34));!function(_0x8bad27,_0x2f1062){const _0x5f87ca=_0x8bad27['model']['document']['getRootNames']()['reduce']((_0xd78db3,_0x18b68d)=>(_0xd78db3[_0x18b68d]=_0x8bad27['data']['get']({'rootName':_0x18b68d}),_0xd78db3),{}),_0x52c65c=_0x8bad27['plugins']['get']('Users')['users']['map'](_0x41ba66=>({'id':_0x41ba66['id'],'name':_0x41ba66['name']})),_0x23fd0e=_0x8bad27['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3e9683=_0x8bad27['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14416b=_0x2f1062['plugins']['get']('Users'),_0x383d2b=_0x2f1062['plugins']['get']('TrackChangesEditing'),_0x453ccc=_0x2f1062['plugins']['get']('CommentsRepository');for(const _0x926285 of _0x453ccc['getCommentThreads']())_0x926285['remove']();for(const _0x3ebf7b of _0x52c65c)_0x14416b['getUser'](_0x3ebf7b['id'])||_0x14416b['addUser'](_0x3ebf7b);_0x14416b['me']||_0x14416b['useAnonymousUser']();for(const _0x5e08b3 of _0x3e9683)_0x453ccc['addCommentThread'](_0x5e08b3);for(const _0x40e8ec of _0x23fd0e)_0x383d2b['addSuggestionData'](_0x40e8ec);_0x2f1062['data']['set'](_0x5f87ca);}(_0x589d37,_0x2379dc),_0x2379dc['execute'](_0x151160?'acceptAllSuggestions':'discardAllSuggestions');const _0x3c97df=In(_0x2379dc)?_0x2379dc['getFullData'](_0xc71ef4):_0x2379dc['data']['get'](_0xc71ef4);return await _0x2379dc['destroy'](),_0x3c97df;}class An extends _0x4474c8{['options'];constructor(_0x2389a8,_0x499d0f){super(_0x2389a8),this['options']=_0x499d0f,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'](_0x2a5729,_0x2bdb8c){if(!this['element'])return;const _0x2a6ecb=[];for(const [_0x20c7f9,_0x1882d4]of _0x2a5729){const _0x5f514d=document['createElement']('div');_0x5f514d['setAttribute']('data-ck-root-name',_0x20c7f9),_0x5f514d['className']=_0x1882d4['classes']+'\x20ck-track-changes-preview__root-container',_0x5f514d['innerHTML']=_0x1882d4['content'],_0x2a6ecb['push'](_0x5f514d);}_0x2bdb8c(this['element'],_0x2a6ecb),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x4e8d96{constructor(_0x3c28c9){super(_0x3c28c9),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x50bc1a=this['editor'],_0x11be15=_0x50bc1a['locale'],_0x3c5b5a=_0x50bc1a['plugins']['get']('Dialog');let _0x48137f;const _0x2d7b2e=function(_0x3424df){const _0x2451c6={};if('editables'in _0x3424df['ui']['view']){for(const [_0x5d19be,_0xcb501]of Object['entries'](_0x3424df['ui']['view']['editables']))_0x2451c6[_0x5d19be]=_0xcb501['element'];}else _0x2451c6[_0x3424df['model']['document']['getRootNames']()[0x0]]=_0x3424df['ui']['view']['editable']['element'];return _0x2451c6;}(_0x50bc1a),_0x1f69e0=function(_0x331bc0){let _0x214526=0x0;for(const _0x1c51e3 of Object['values'](_0x331bc0))_0x214526=Math['max'](_0x214526,_0x1c51e3['getBoundingClientRect']()['width']);let _0x230a71=0x0;for(const _0x182f4e of Object['values'](_0x331bc0))_0x230a71+=_0x182f4e['getBoundingClientRect']()['height'];const _0x55dc04=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x13ad56=Math['min'](_0x230a71,_0x55dc04);return{'width':_0x214526,'height':_0x13ad56};}(_0x2d7b2e);_0x3c5b5a['show']({'id':'finalContentPreview','title':At(_0x11be15,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x11be15,{'dialogRects':_0x1f69e0}),'onHide':()=>{_0x48137f['detachFromDom']();},'onShow':()=>{_0x50bc1a['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a94f0=>{const _0x337dcb=this['_standarizeRootsData'](_0x2a94f0,_0x50bc1a,_0x2d7b2e);_0x3c5b5a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x337dcb,_0x50bc1a['config']['get']('trackChanges.preview.renderFunction'));}),_0x48137f=new _0x53e865(_0x11be15,[_0x3c5b5a['view']]),_0x48137f['attachToDom'](),_0x48137f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x50bc1a['once']('destroy',()=>{_0x48137f['detachFromDom']();});const _0x154bf6=_0x3c5b5a['view']['headerView']['class'];_0x3c5b5a['view']['headerView']['class']=_0x154bf6?_0x154bf6+'\x20ck-reset_all':'ck-reset_all',_0x3c5b5a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c5b5a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x59e259=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5b57ea=_0x59e259['previewMode'],_0x288ede={};if('$labels'===_0x5b57ea){for(const _0x1438cb of _0x59e259['getMergeFieldsIds']())_0x288ede[_0x1438cb]=_0x59e259['getLabel'](_0x1438cb)||_0x1438cb;}else{const _0x47b5c2='$defaultValues'===_0x5b57ea?_0x59e259['getDefaultValues']():_0x59e259['getDataSetValues'](_0x5b57ea,!0x0);for(const _0x1bd36a of Object['entries'](_0x47b5c2)){const [_0x3c824d,_0x2864a6]=_0x1bd36a;_0x288ede[_0x3c824d]=null!==_0x2864a6?_0x2864a6:_0x59e259['getLabel'](_0x3c824d)||_0x3c824d;}}return{'mergeFieldsData':_0x288ede};}['_standarizeRootsData'](_0x195659,_0x15e212,_0x30bbc2){let _0x43b5ec;if('string'==typeof _0x195659){const _0x5563ae=_0x15e212['model']['document']['getRootNames']()[0x0];_0x43b5ec={[_0x5563ae]:_0x195659};}else _0x43b5ec=_0x195659;const _0x46a4fe=this['_fixMediaEmbeds'](_0x43b5ec,_0x15e212),_0x5df5c1=function(_0x54a89d,_0x271d48){for(const [_0x26b48c,_0x190fc7]of _0x54a89d)_0x190fc7['classes']=_0x271d48[_0x26b48c]['classList']['value']['replace']('ck-focused','');return _0x54a89d;}(this['_sortRoots'](_0x15e212)['reduce']((_0xd9395,_0x948cb7)=>(_0xd9395['push']([_0x948cb7,{'content':_0x46a4fe[_0x948cb7],'classes':''}]),_0xd9395),[]),_0x30bbc2);return _0x5df5c1;}['_fixMediaEmbeds'](_0x401c8a,_0x1090be){if(!_0x1090be['plugins']['has']('MediaEmbedEditing'))return _0x401c8a;const _0x1fd76d=_0x1090be['plugins']['get']('MediaEmbedEditing');for(const [_0x33ca18,_0x2b3886]of Object['entries'](_0x401c8a)){const _0xb4ee76=document['createElement']('div');_0xb4ee76['innerHTML']=_0x2b3886,(_0xb4ee76['querySelectorAll']('figure.media')['forEach'](_0x36d37c=>{const _0x237f24=_0x36d37c['querySelector']('oembed');if(_0x237f24){const _0x5d2aa0=_0x237f24['getAttribute']('url');if(_0x5d2aa0){const _0x36a0fa=_0x1fd76d['registry']['getMediaViewElement'](new et(_0x1090be['editing']['view']['document']),_0x5d2aa0,{'elementName':'','renderForEditingView':!0x0}),_0x57b0ee=document['createElement']('div');_0x57b0ee['classList']['add']('ck-media__wrapper'),_0x36a0fa['render'](_0x57b0ee,_0x1090be['editing']['view']['domConverter']),_0x237f24['replaceWith'](_0x57b0ee);}}}),_0x401c8a[_0x33ca18]=_0xb4ee76['innerHTML']);}return _0x401c8a;}['_sortRoots'](_0x139d09){if(!function(_0x471cbd){return void 0x0!==_0x471cbd['getRootsAttributes'];}(_0x139d09))return _0x139d09['model']['document']['getRootNames']();const _0xa34915=[],_0x3555e4=new Map();for(const _0x37ce4a of _0x139d09['model']['document']['getRootNames']()){const _0x2ec132=_0x139d09['editing']['view']['getDomRoot'](_0x37ce4a)['getClientRects']()['item'](0x0);_0xa34915['push'](_0x37ce4a),_0x3555e4['set'](_0x37ce4a,_0x2ec132);}return _0xa34915['sort']((_0x410536,_0x258953)=>{const _0x1183b1=_0x3555e4['get'](_0x410536),_0x3f52c3=_0x3555e4['get'](_0x258953);return _0x1183b1['y']-_0x3f52c3['y']||_0x1183b1['x']-_0x3f52c3['x'];}),_0xa34915;}}class Cn extends _0x1e0278{static get['requires'](){return[pn,_0x135a93];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d6331){super(_0x4d6331),_0x4d6331['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x4d6331['config']['define']('trackChanges.preview.renderFunction',(_0x42c75f,_0x33aef6)=>{for(const _0xa52014 of _0x33aef6)_0x42c75f['appendChild'](_0xa52014);});}}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};
|