@ckeditor/ckeditor5-track-changes 48.0.0 → 48.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x26cebd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xbe44fc,_0x456cb8){super(),this['id']=_0x456cb8['id'],this['type']=_0x456cb8['type'],this['subType']=_0x456cb8['subType']||null,this['author']=_0x456cb8['author'],this['creator']=_0x456cb8['creator']||_0x456cb8['author'],this['isExternal']=Boolean(_0x456cb8['attributes']&&_0x456cb8['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x456cb8['originalSuggestionId']||null,this['_model']=_0xbe44fc,this['_onAccept']=_0x456cb8['onAccept'],this['_onDiscard']=_0x456cb8['onDiscard'],this['_onAttributesChange']=_0x456cb8['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x456cb8['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 _0x3f7dd0=this;for(;_0x3f7dd0['previous'];)_0x3f7dd0=_0x3f7dd0['previous'];return _0x3f7dd0;}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'](_0x1c4ff5){this['_markerNames']['add'](_0x1c4ff5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2605f4=>this['_model']['markers']['get'](_0x2605f4))['filter'](_0x3a0520=>_0x3a0520);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2369a3=>{for(const _0x312da7 of this['getMarkers']())_0x2369a3['removeMarker'](_0x312da7);}),this['_markerNames']['clear']();}['removeMarker'](_0x5bfbd5){this['_model']['change'](_0x284005=>{_0x284005['removeMarker'](_0x5bfbd5);}),this['_markerNames']['delete'](_0x5bfbd5);}['addRange'](_0x178681){const _0x175524='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x175524),this['_model']['change'](_0x5ef19d=>{_0x5ef19d['addMarker'](_0x175524,{'range':_0x178681,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ebb4f){for(const _0x268b27 of this['getRanges']())if(_0x268b27['isIntersecting'](_0x3ebb4f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1188af=>_0x1188af['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4520cb,_0x596e17)=>[..._0x4520cb,..._0x596e17['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1ae309=this['getRanges']();if(0x1!=_0x1ae309['length'])return null;const _0x154390=_0x1ae309[0x0],_0x1ffe8b=_0x154390['start']['nodeAfter'],_0x25497c=_0x154390['end']['nodeBefore'];return _0x1ffe8b instanceof _0x540bdd?_0x1ffe8b!=_0x25497c?null:_0x1ffe8b: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 _0x37ea8f=[];let _0x5e9fe2=this['head'];for(;_0x5e9fe2;)_0x37ea8f['push'](_0x5e9fe2),_0x5e9fe2=_0x5e9fe2['next'];return _0x37ea8f;}['setAttribute'](_0x29c346,_0x36cd58){const _0x2da54e=nt(this['attributes']);it(_0x2da54e,_0x29c346,_0x36cd58),st(_0x2da54e,this['attributes'])||(this['attributes']=_0x2da54e,this['_onAttributesChange'](_0x2da54e));}['removeAttribute'](_0x3fd844){const _0x365636=nt(this['attributes']);rt(_0x365636,_0x3fd844),st(_0x365636,this['attributes'])||(this['attributes']=_0x365636,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 _0x171c64()['substr'](0x1,0x5);}}function At(_0x102570,_0x576d15,_0x437f70){const _0xf0ad72=_0x102570['t'],t=_0x102570['t'];switch(_0x576d15){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',_0x437f70);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x437f70);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x437f70);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x437f70);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x437f70);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',_0x437f70);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x437f70);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',_0x437f70);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x437f70);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x437f70);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x437f70);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x437f70);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x437f70);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x437f70);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x437f70);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x437f70);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x437f70);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x437f70);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x437f70);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x437f70);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x437f70);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x437f70);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x437f70);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x437f70);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x437f70);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'},_0x437f70);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x437f70);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x437f70);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x437f70);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x437f70);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x437f70);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x437f70);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x437f70);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'},_0x437f70);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x437f70);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x437f70);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x437f70);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x437f70);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'},_0x437f70);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x437f70);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'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x437f70);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'},_0x437f70);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x437f70);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x437f70);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x437f70);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x437f70);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x437f70);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'},_0x437f70);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x437f70);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 _0xf0ad72({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x437f70);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xf0ad72({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x437f70);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x437f70);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'},_0x437f70);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'},_0x437f70);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'},_0x437f70);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x576d15;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x17f5c4,_0x34090a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x17f5c4,this['_locale']=_0x34090a;}['getDescriptions'](_0x36ad1f){const _0xe4935b=[],_0x399950=new Set(),_0x1ef801=new Set();for(let _0x51509e=0x0;_0x51509e<_0x36ad1f['length'];_0x51509e++){const _0x146baa=_0x36ad1f[_0x51509e];if(!_0x146baa['isInContent'])continue;const _0x369f9a=this['_handleCustomCallbackDescription'](_0x146baa);if(_0x369f9a){if(null!=_0x146baa['subType']){if(_0x399950['has'](_0x146baa['subType']))continue;_0x399950['add'](_0x146baa['subType']);}_0xe4935b['push'](_0x369f9a);}else{if('attribute'==_0x146baa['type']){const _0x5dd0ec=_0x146baa['data']['key'];if(_0x1ef801['has'](_0x5dd0ec))continue;_0x1ef801['add'](_0x146baa['data']['key']),_0x5dd0ec==Ke?this['_handleRenameSuggestionDescription'](_0xe4935b,_0x146baa):this['_handleAttributeSuggestionDescription'](_0xe4935b,_0x146baa);continue;}'insertion'!=_0x146baa['type']&&'deletion'!=_0x146baa['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe4935b,_0x146baa,_0x36ad1f[_0x51509e+0x1]);}}return this['_resolveDescriptionItems'](_0xe4935b);}['registerDescriptionCallback'](_0x5763b8){this['_customCallbacks']['push'](_0x5763b8);}['registerElementLabel'](_0x5aabe3,_0xd03d5a,_0x54cd7e=_0x2ac962['normal']){'function'==typeof _0x5aabe3?_0x3257c6(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5aabe3,'label':_0xd03d5a,'priority':_0x54cd7e}):this['_itemLabels']['set'](_0x5aabe3,_0xd03d5a);}['registerAttributeLabel'](_0x2fff64,_0x242bcc){this['_attributeLabels']['set'](_0x2fff64,_0x242bcc);}['getItemLabel'](_0x24e57c,_0x5a1673=0x1){let _0x2ce56c;for(const _0x46fd4a of this['_itemLabelsCallbacks'])if(_0x46fd4a['matchingCallback'](_0x24e57c)){_0x2ce56c=_0x46fd4a['label'];break;}return _0x2ce56c||(_0x2ce56c=this['_itemLabels']['get'](_0x24e57c['name'])),_0x2ce56c?_0x2ce56c(_0x5a1673):0x1!==_0x5a1673?_0x5a1673+'\x20'+_0x24e57c['name']+'s':''+_0x24e57c['name'];}['_addDescriptionItems'](_0x59ed7e,_0x568753){const _0x24814d=_0x568753['getFirstRange']()['getWalker'](),_0x63c974='insertion'==_0x568753['type']?'add':'remove';for(const _0x17aa5e of _0x24814d){const _0x355fff=_0x17aa5e['item'],_0x2f60eb=_0x59ed7e[_0x59ed7e['length']-0x1];if(_0x355fff['is']('$textProxy'))_0x2f60eb&&_0x2f60eb['type']['indexOf']('Container')>-0x1&&_0x59ed7e['pop'](),_0x2f60eb&&'text'==_0x2f60eb['type']?_0x2f60eb[_0x63c974]+=_0x355fff['data']:_0x59ed7e['push']({'type':'text','add':'add'==_0x63c974?_0x355fff['data']:'','remove':'remove'==_0x63c974?_0x355fff['data']:''});else{if(this['_schema']['isObject'](_0x355fff)){const _0x1bd357=_0x355fff;if(_0x2f60eb&&_0x2f60eb['type']['indexOf']('Container')>-0x1&&_0x59ed7e['pop'](),'elementEnd'==_0x17aa5e['type'])continue;_0x2f60eb&&_0x2f60eb['type']==_0x63c974+'Object'&&_0x2f60eb['element']['name']==_0x1bd357['name']?_0x2f60eb['quantity']++:_0x59ed7e['push']({'type':_0x63c974+'Object','element':_0x1bd357,'quantity':0x1}),_0x24814d['skip'](_0x300a43=>!('elementEnd'==_0x300a43['type']&&_0x300a43['item']==_0x355fff));}else{if(this['_schema']['checkChild'](_0x355fff,'$text')||_0x355fff['is']('element','softBreak')){const _0x379d47=_0x355fff;if('add'==_0x63c974&&'elementStart'==_0x17aa5e['type']||'remove'==_0x63c974&&'elementEnd'==_0x17aa5e['type'])continue;if(_0x2f60eb&&-0x1==_0x2f60eb['type']['indexOf']('Container')){'text'==_0x2f60eb['type']&&(_0x2f60eb[_0x63c974]+='\x0a');continue;}let _0x30a38d;if(_0x30a38d='add'==_0x63c974?_0x379d47['nextSibling']&&!this['_schema']['isObject'](_0x379d47['nextSibling'])?_0x379d47['nextSibling']:null:_0x379d47['previousSibling']&&!this['_schema']['isObject'](_0x379d47['previousSibling'])?_0x379d47['previousSibling']:null,_0x379d47['isEmpty']||_0x30a38d&&_0x30a38d['isEmpty']){const _0x27336d=_0x30a38d&&_0x30a38d['isEmpty']?_0x30a38d:_0x379d47;_0x2f60eb&&_0x2f60eb['type']==_0x63c974+'EmptyContainer'&&_0x2f60eb['element']['name']==_0x27336d['name']?_0x2f60eb['quantity']++:_0x59ed7e['push']({'type':_0x63c974+'EmptyContainer','element':_0x27336d,'quantity':0x1});}else _0x59ed7e['push']({'type':_0x63c974+'Container','element':_0x379d47});}}}}}['_resolveDescriptionItems'](_0xd6be6f){const _0x50a790=this['_locale'],_0x40e906=[],_0x42c13e=[],_0x4bee6d=[];for(const _0x15d88c of _0xd6be6f)switch(_0x15d88c['type']){case'text':if(_0x15d88c['add']=_0x15d88c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15d88c['remove']=_0x15d88c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15d88c['add']&&''!=_0x15d88c['remove']){_0x40e906['push']({'type':'replace','content':At(_0x50a790,'REPLACE_TEXT',['\x22'+_0x15d88c['remove']+'\x22','\x22'+_0x15d88c['add']+'\x22'])});continue;}if(null!=_0x15d88c['add']['match'](/^ +$/)){_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0',At(_0x50a790,'ELEMENT_SPACE',_0x15d88c['add']['length']))});continue;}if(null!=_0x15d88c['remove']['match'](/^ +$/)){_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0',At(_0x50a790,'ELEMENT_SPACE',_0x15d88c['remove']['length']))});continue;}if(''!=_0x15d88c['add']){_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0','\x22'+_0x15d88c['add']+'\x22')});continue;}_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0','\x22'+_0x15d88c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Insert:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Remove:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'addContainer':_0x40e906['push']({'type':'insertion','content':At(_0x50a790,'*Split:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'removeContainer':_0x40e906['push']({'type':'deletion','content':At(_0x50a790,'*Merge:*\x20%0',this['getItemLabel'](_0x15d88c['element'],_0x15d88c['quantity']))});continue;case'addFormat':_0x42c13e['push'](_0x15d88c['key']);continue;case'removeFormat':_0x4bee6d['push'](_0x15d88c['key']);continue;default:_0x40e906['push'](_0x15d88c);}if(_0x42c13e['length']){const _0x3d5797=_0x42c13e['map'](_0x5aedf5=>this['_attributeLabels']['has'](_0x5aedf5)?this['_attributeLabels']['get'](_0x5aedf5):_0x5aedf5)['join'](',\x20');_0x40e906['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x3d5797)});}if(_0x4bee6d['length']){const _0x2aa051=_0x4bee6d['map'](_0x4f7e67=>this['_attributeLabels']['has'](_0x4f7e67)?this['_attributeLabels']['get'](_0x4f7e67):_0x4f7e67)['join'](',\x20');_0x40e906['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x2aa051)});}return _0x40e906;}['_handleCustomCallbackDescription'](_0x4f9d6d){for(const _0x1d4f05 of this['_customCallbacks']){const _0xbaea5f=_0x1d4f05(_0x4f9d6d);if(_0xbaea5f&&'type'in _0xbaea5f)return _0xbaea5f;}}['_handleAttributeSuggestionDescription'](_0x582efb,_0x36c15d){const _0xf70f58=_0x36c15d['data'],_0x4af298=void 0x0===_0xf70f58['newValue']?'removeFormat':'addFormat';_0x582efb['push']({'type':_0x4af298,'key':_0xf70f58['key']});}['_handleRenameSuggestionDescription'](_0x196fb3,_0x292e7d){_0x196fb3['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x292e7d['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x32edc2,_0x4bce92,_0x5a5870){if(this['_addDescriptionItems'](_0x32edc2,_0x4bce92),_0x5a5870&&_0x5a5870['getFirstRange']()&&!_0x4bce92['getFirstRange']()['end']['isEqual'](_0x5a5870['getFirstRange']()['start'])){const _0x14a78a=_0x32edc2[_0x32edc2['length']-0x1],_0x33a342='insertion'==_0x4bce92['type']?'add':'remove';_0x14a78a&&'text'==_0x14a78a['type']&&(_0x14a78a[_0x33a342]+='\x0a');}}}class Ct extends _0x54c126{['afterInit'](){const _0x51c85a=this['editor'],_0x5d5608=_0x51c85a['plugins']['get']('TrackChangesEditing');_0x51c85a['commands']['get']('showAIAssistant')&&_0x5d5608['enableCommand']('showAIAssistant');}}class yt extends _0x54c126{['afterInit'](){const _0x42caba=this['editor'],_0x1d951c=_0x42caba['plugins']['get']('TrackChangesEditing');_0x42caba['commands']['get']('toggleAi')&&_0x1d951c['enableCommand']('toggleAi');}}class Nt extends _0x54c126{['afterInit'](){const _0x318bd2=this['editor'],_0x52dfbb=_0x318bd2['plugins']['get']('TrackChangesEditing');_0x318bd2['commands']['get']('aiQuickAction')&&_0x52dfbb['enableCommand']('aiQuickAction');}}class Rt extends _0x54c126{['afterInit'](){const _0x562f29=this['editor'],_0x4a8053=_0x562f29['locale'];if(!_0x562f29['plugins']['has']('AlignmentEditing'))return;const _0x542ec7=_0x562f29['plugins']['get']('TrackChangesEditing');_0x542ec7['enableDefaultAttributesIntegration']('alignment'),_0x542ec7['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4a8053,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58129c=this['editor'],_0x20cfe5=_0x58129c['locale'];_0x58129c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fb4b0=>{if('formatBlock'!=_0x2fb4b0['type'])return;const {data:_0xdeece9}=_0x2fb4b0;if(_0xdeece9&&'alignment'==_0xdeece9['commandName']){const _0x44eefc=_0xdeece9['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x20cfe5,'*Format:*\x20%0',function(_0x31a5d4){switch(_0x31a5d4){case'left':return At(_0x20cfe5,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x20cfe5,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x20cfe5,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x20cfe5,'FORMAT_JUSTIFY_TEXT');}}(_0x44eefc))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x54c126{['afterInit'](){const _0x5bc03=this['editor'],_0x451b1d=_0x5bc03['plugins']['get']('TrackChangesEditing'),_0x24dc4b=_0x5bc03['locale'];for(const _0x33a87d of St){if(!_0x5bc03['plugins']['has'](_0x33a87d))continue;const _0xc28966=_0x33a87d['slice'](0x0,-0x7)['toLowerCase'](),_0x4c282f='FORMAT_'+_0xc28966['toUpperCase']();_0x451b1d['enableDefaultAttributesIntegration'](_0xc28966),_0x451b1d['descriptionFactory']['registerAttributeLabel'](_0xc28966,At(_0x24dc4b,_0x4c282f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x462e58=this['editor'],_0x38f46c=_0x462e58['locale'],_0x357570=_0x462e58['plugins']['get']('TrackChangesEditing');function _0x21dabb(_0x2f14a6,_0x99d2b6){_0x357570['descriptionFactory']['registerDescriptionCallback'](_0x44b1ff=>{if('formatInline'!=_0x44b1ff['type'])return;const {data:_0x4421a}=_0x44b1ff;return _0x4421a&&_0x4421a['commandName']===_0x2f14a6?_0x4421a['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x38f46c,'*Format:*\x20%0',_0x99d2b6)}:{'type':'format','content':At(_0x38f46c,'*Remove\x20format:*\x20%0',_0x99d2b6)}:void 0x0;});}_0x21dabb('bold',At(_0x38f46c,'FORMAT_BOLD')),_0x21dabb('italic',At(_0x38f46c,'FORMAT_ITALIC')),_0x21dabb('underline',At(_0x38f46c,'FORMAT_UNDERLINE')),_0x21dabb('code',At(_0x38f46c,'FORMAT_CODE')),_0x21dabb('strikethrough',At(_0x38f46c,'FORMAT_STRIKETHROUGH')),_0x21dabb('subscript',At(_0x38f46c,'FORMAT_SUBSCRIPT')),_0x21dabb('superscript',At(_0x38f46c,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x54c126{['afterInit'](){const _0xae1d12=this['editor'],_0x22060e=_0xae1d12['locale'];if(!_0xae1d12['plugins']['has']('BlockQuoteEditing'))return;const _0x28404f=_0xae1d12['plugins']['get']('TrackChangesEditing'),_0x34c1e5=this['editor']['commands']['get']('blockQuote');_0x28404f['enableCommand']('blockQuote',(_0x2193b7,_0x457f4c={})=>{const _0x2d380a=this['editor']['model']['document']['selection'],_0x462c67=_0x457f4c&&void 0x0!==_0x457f4c['forceValue']?_0x457f4c['forceValue']:!_0x34c1e5['value'];let _0x1b25fe=[];if(_0x462c67){const _0x4a6c15=Array['from'](_0x2d380a['getSelectedBlocks']())['filter'](_0x3d3597=>wt(_0x3d3597)||function(_0x39426a,_0x368c83){const _0x140700=_0x368c83['checkChild'](_0x39426a['parent'],'blockQuote'),_0x4dbbb6=_0x368c83['checkChild'](['$root','blockQuote'],_0x39426a);return _0x140700&&_0x4dbbb6;}(_0x3d3597,this['editor']['model']['schema']));_0x1b25fe=Tt(_0x4a6c15,_0xae1d12['model']);}else{const _0x197ff2=Array['from'](_0x2d380a['getSelectedBlocks']())['filter'](_0x2e832f=>wt(_0x2e832f));_0x1b25fe=Tt(_0x197ff2,_0xae1d12['model']);}_0xae1d12['model']['change'](()=>{for(const _0x545988 of _0x1b25fe)_0x28404f['markBlockFormat'](_0x545988,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x462c67}]});});}),_0x28404f['descriptionFactory']['registerDescriptionCallback'](_0x202656=>{const {data:_0x54d137}=_0x202656;if(_0x54d137&&'blockQuote'==_0x54d137['commandName']){const _0x38a03b=At(_0x22060e,'ELEMENT_BLOCK_QUOTE');return _0x54d137['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x22060e,'*Set\x20format:*\x20%0',_0x38a03b)}:{'type':'format','content':At(_0x22060e,'*Remove\x20format:*\x20%0',_0x38a03b)};}});}}function wt(_0x1b2bf1){return'blockQuote'==_0x1b2bf1['parent']['name'];}class Bt extends _0x54c126{['afterInit'](){const _0x210657=this['editor'],_0x1079cf=_0x210657['locale'],_0x4e9ee7=_0x210657['plugins']['get']('TrackChangesEditing');_0x210657['plugins']['has']('BookmarkEditing')&&(_0x4e9ee7['enableCommand']('insertBookmark'),_0x4e9ee7['enableDefaultAttributesIntegration']('updateBookmark'),_0x4e9ee7['descriptionFactory']['registerDescriptionCallback'](_0x28fce6=>{if('insertion'!=_0x28fce6['type']&&'deletion'!=_0x28fce6['type']&&'attribute'!=_0x28fce6['type'])return;const _0x57c877=_0x28fce6['getContainedElement']();if(null==_0x57c877)return;if(!_0x57c877['is']('element','bookmark'))return;const _0xe2e1eb=_0x57c877['getAttribute']('bookmarkId');if('insertion'==_0x28fce6['type'])return{'type':'insertion','content':At(_0x1079cf,'*Insert:*\x20%0','\x22'+_0xe2e1eb+'\x22\x20'+At(_0x1079cf,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28fce6['type'])return{'type':'deletion','content':At(_0x1079cf,'*Remove:*\x20%0','\x22'+_0xe2e1eb+'\x22\x20'+At(_0x1079cf,'ELEMENT_BOOKMARK'))};const {data:_0x12e7b6}=_0x28fce6;if(!_0x12e7b6||'bookmarkId'!=_0x12e7b6['key'])return;return{'type':'format','content':At(_0x1079cf,'*Set\x20bookmark:*\x20%0','\x22'+_0x12e7b6['newValue']+'\x22')};}));}}class Ft extends _0x54c126{['afterInit'](){const _0x41b8e1=this['editor'];_0x41b8e1['plugins']['has']('CaseChange')&&(_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41b8e1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x54c126{['afterInit'](){const _0x23af65=this['editor'];_0x23af65['commands']['get']('ckbox')&&_0x23af65['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x54c126{['afterInit'](){const _0x58cba7=this['editor'];if(!_0x58cba7['plugins']['has']('CodeBlock'))return;const _0x5817ec=_0x58cba7['plugins']['get']('TrackChangesEditing'),_0x51075f=_0x58cba7['locale'],_0x3c8387=_0x58cba7['config']['get']('codeBlock')['languages'],_0x579d69=_0x58cba7['commands']['get']('codeBlock');_0x5817ec['enableCommand']('indentCodeBlock'),_0x5817ec['enableCommand']('outdentCodeBlock'),_0x5817ec['enableCommand']('codeBlock',(_0x33a084,_0x8b3d0={})=>{const _0x1af7c2=_0x58cba7['model'],_0x154a83=_0x58cba7['model']['document']['selection'],_0x44de38=_0x8b3d0&&void 0x0!==_0x8b3d0['forceValue']?_0x8b3d0['forceValue']:!_0x579d69['value'];let _0x2a33cd;_0x8b3d0['language']||(_0x8b3d0['language']=_0x3c8387[0x0]['language']),_0x2a33cd=_0x44de38?Array['from'](_0x154a83['getSelectedBlocks']())['filter'](_0x1434c0=>xt(_0x1434c0)||function(_0x25c83a,_0x59599a){if(_0x25c83a['is']('rootElement')||_0x59599a['isLimit'](_0x25c83a))return!0x1;return _0x59599a['checkChild'](_0x25c83a['parent'],'codeBlock');}(_0x1434c0,_0x1af7c2['schema'])):Array['from'](_0x154a83['getSelectedBlocks']())['filter'](_0xdff625=>xt(_0xdff625));const _0x534295=Tt(_0x2a33cd,_0x1af7c2);_0x1af7c2['change'](()=>{for(const _0x3e2310 of _0x534295)_0x5817ec['markBlockFormat'](_0x3e2310,{'commandName':'codeBlock','commandParams':[{..._0x8b3d0,'forceValue':_0x44de38}],'formatGroupId':'blockName'});});}),(_0x5817ec['descriptionFactory']['registerElementLabel']('codeBlock',_0x25f224=>At(_0x51075f,'ELEMENT_CODE_BLOCK',_0x25f224)),_0x5817ec['descriptionFactory']['registerDescriptionCallback'](_0x441bdc=>{if('formatBlock'!=_0x441bdc['type'])return;const _0x13b3a5=_0x51075f['t'],{data:_0x271567}=_0x441bdc;if(!_0x271567||'codeBlock'!=_0x271567['commandName'])return;const _0x1568fa=_0x271567['commandParams'][0x0]['language'],_0x36c760=_0x13b3a5(_0x3c8387['find'](_0x2e89d8=>_0x2e89d8['language']===_0x1568fa)['label'])['toLowerCase']();return _0x271567['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x51075f,'*Set\x20format:*\x20%0',At(_0x51075f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36c760+')')}:{'type':'format','content':At(_0x51075f,'*Remove\x20format:*\x20%0',At(_0x51075f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x5926a2){return'codeBlock'==_0x5926a2['name'];}class Pt extends _0x54c126{['afterInit'](){const _0x230d4c=this['editor'];if(!_0x230d4c['plugins']['has']('CommentsEditing'))return;_0x230d4c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x54c126{static get['requires'](){return[at];}['init'](){const _0x41e1e6=this['editor'],_0x5604e5=_0x41e1e6['plugins']['get']('TrackChangesEditing');_0x5604e5['enableCommand']('delete');const _0x2da1ea=_0x41e1e6['commands']['get']('deleteForward');_0x5604e5['enableCommand']('deleteForward',(_0x2339c0,_0x142a0b={})=>{const _0x2c02cb=_0x41e1e6['model']['createSelection'](_0x41e1e6['model']['document']['selection']);_0x2c02cb['isCollapsed']&&_0x41e1e6['model']['modifySelection'](_0x2c02cb,{'direction':'forward','unit':_0x142a0b['unit']});const _0x19cbfc=_0x2c02cb['getFirstRange'](),_0x5bfd40=_0x121353['fromRange'](_0x19cbfc);let _0x5214a7;_0x2339c0(_0x142a0b),_0x5214a7='$graveyard'==_0x5bfd40['root']['rootName']?_0x41e1e6['model']['createRange'](_0x19cbfc['start']):_0x41e1e6['model']['createRange'](_0x5bfd40['start'],_0x5bfd40['end']),_0x5bfd40['detach'](),_0x41e1e6['model']['enqueueChange'](_0x2da1ea['buffer']['batch'],_0x45bcdd=>{_0x2da1ea['buffer']['lock'](),_0x45bcdd['setSelection'](_0x45bcdd['createRange'](_0x5214a7['end'])),_0x2da1ea['buffer']['unlock']();});});}}class Gt extends _0x54c126{['afterInit'](){const _0x4caa42=this['editor'];if(!_0x4caa42['plugins']['has']('ListEditing'))return;const _0xa5e102=_0x4caa42['locale'],_0xffdcc0=_0x4caa42['plugins']['get']('TrackChangesEditing'),_0xf9cac1=_0x4caa42['plugins']['has']('TodoListEditing'),_0x4aeb15=!!_0x4caa42['config']['get']('list.multiBlock');function _0x24fe86(_0x42b59f){return{'type':'format','content':''+At(_0xa5e102,'*Set\x20format:*\x20%0',_0x42b59f)};}function _0x509649(_0x2b0802){return{'type':'format','content':''+At(_0xa5e102,'*Remove\x20format:*\x20%0',_0x2b0802)};}_0xffdcc0['enableDefaultAttributesIntegration']('numberedList'),_0xffdcc0['enableDefaultAttributesIntegration']('bulletedList'),_0xffdcc0['enableDefaultAttributesIntegration']('customNumberedList'),_0xffdcc0['enableDefaultAttributesIntegration']('customBulletedList'),_0xffdcc0['enableDefaultAttributesIntegration']('indentList'),_0xffdcc0['enableDefaultAttributesIntegration']('outdentList'),_0xffdcc0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xffdcc0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4aeb15&&(_0xffdcc0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xffdcc0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xf9cac1&&(_0xffdcc0['enableDefaultAttributesIntegration']('todoList'),_0xffdcc0['enableDefaultAttributesIntegration']('checkTodoList'),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x74798b=>{const {data:_0x5b9602}=_0x74798b;if(_0x5b9602&&'todoListChecked'==_0x5b9602['key'])return{'type':'format','content':_0x5b9602['newValue']?At(_0xa5e102,'*Check\x20item*'):At(_0xa5e102,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5fab0d=>{if(_0x5fab0d['batch']['isUndo'])return!0x1;let _0x4363cd=!0x1;const _0x391413=_0xffdcc0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x452523=>'todoListChecked'===_0xffdcc0['_getAttributeKey'](_0x452523));for(const _0x2345c6 of _0x391413){'todo'!=_0x2345c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xffdcc0['_findSuggestions'](_0x2345c6['getFirstRange'](),'attribute')['find'](_0x191c9d=>'listType'===_0xffdcc0['_getAttributeKey'](_0x191c9d['suggestion']))||(_0x5fab0d['removeMarker'](_0x2345c6['getFirstMarker']()),_0x4363cd=!0x0));}return _0x4363cd;})),_0xffdcc0['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0xa5e102,'FORMAT_INDENT'));const _0x2a888c={'type':'format','content':''};_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x44f5ff=>{const {data:_0x33494a}=_0x44f5ff;if(!_0x33494a||'listType'!=_0x33494a['key'])return;let _0x5ab7eb=_0x44f5ff['head'];for(;_0x5ab7eb;){if(_0x5ab7eb['data']&&(('listStyle'==_0x5ab7eb['data']['key']||'listMarkerStyle'==_0x5ab7eb['data']['key'])&&(_0x5ab7eb['data']['newValue']&&'default'!=_0x5ab7eb['data']['newValue']||'default'!=_0x5ab7eb['data']['oldValue']&&!_0x33494a['newValue'])||!_0x4aeb15&&_0x5ab7eb['data']['key']==Ke))return _0x2a888c;_0x5ab7eb=_0x5ab7eb['next'];}if(null==_0x33494a['newValue'])switch(_0x33494a['oldValue']){case'bulleted':return _0x509649(At(_0xa5e102,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x509649(At(_0xa5e102,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x509649(At(_0xa5e102,'ELEMENT_TODO_LIST'));}switch(_0x33494a['newValue']){case'bulleted':return _0x24fe86(At(_0xa5e102,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24fe86(At(_0xa5e102,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24fe86(At(_0xa5e102,'ELEMENT_TODO_LIST'));}}),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x387af5=>{const {data:_0x53c184}=_0x387af5;if(_0x53c184&&'listIndent'==_0x53c184['key'])return null==_0x53c184['newValue']||null==_0x53c184['oldValue']&&0x0==_0x53c184['newValue']?_0x2a888c:void 0x0;}),_0xffdcc0['descriptionFactory']['registerDescriptionCallback'](_0x2de347=>{if('attribute'!=_0x2de347['type'])return;const {data:_0x3998d7}=_0x2de347;if(!_0x3998d7||'listItemId'!=_0x3998d7['key'])return;const _0x59f783=Ht(_0x2de347);return'newValue'==_0x59f783?{'type':'format','content':At(_0xa5e102,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59f783?{'type':'format','content':At(_0xa5e102,'*Split:*\x20list\x20item')}:_0x2a888c;}),_0x4caa42['model']['document']['registerPostFixer'](_0x13a491=>this['listItemIdFixer'](_0x13a491)),_0x4caa42['model']['document']['registerPostFixer'](_0x4be1e7=>this['noTrackChangesFixer'](_0x4be1e7)),_0x4caa42['model']['document']['on']('change:data',(_0x33dab1,_0xdbf875)=>{if(_0xdbf875['isUndo']||!_0xdbf875['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3604fe){if(_0x3604fe['batch']['isUndo']||!_0x3604fe['batch']['isLocal'])return!0x1;let _0x592d60=!0x1;const _0x5cd440=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c745d=>_0x2c745d['data']&&'listItemId'==_0x2c745d['data']['key'])['filter'](_0x1b92a3=>_0x1b92a3['data']['newValue']&&_0x1b92a3['data']['oldValue']);for(const _0x8b0304 of _0x5cd440)Ht(_0x8b0304)||(_0x3604fe['removeMarker'](_0x8b0304['getFirstMarker']()),_0x592d60=!0x0);return _0x592d60;}['noTrackChangesFixer'](_0x179a32){if(_0x179a32['batch']['isUndo']||!_0x179a32['batch']['isLocal'])return!0x1;const _0x13efaf=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13efaf['trackChangesCommand']['value'])return!0x1;let _0x5af397=!0x1;const _0xccc9b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5020ea=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xdb0249=>'attribute'==_0xdb0249['type'])['filter'](_0x5e2472=>_0xccc9b2['includes'](_0x5e2472['attributeKey']));if(0x0==_0x5020ea['length'])return _0x5af397;for(const _0x32bece of _0x5020ea){const _0x5e962c=_0x13efaf['_findSuggestions'](_0x32bece['range'],'attribute')['filter'](_0x5719b6=>!_0x5719b6['meta']['isNextTo'])['map'](_0x5a54c6=>_0x5a54c6['suggestion'])['filter'](_0x2864bc=>{const _0x3c563e=_0x13efaf['_getAttributeKey'](_0x2864bc);return _0xccc9b2['includes'](_0x3c563e);});if(_0x5e962c['length']){for(const _0x3e15dd of _0x5e962c)_0x179a32['removeMarker'](_0x3e15dd['getFirstMarker']());_0x5af397=!0x0;}}return _0x5af397;}['assureChains'](){const _0x49af99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c4265=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x72755d;const _0x24a128=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x20052a=>{if(_0x20052a['data']['oldRange']||!_0x20052a['data']['newRange'])return null;if(!_0x20052a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x460e95}=_0x39dc22(_0x20052a['name']);if(!_0x49af99['hasSuggestion'](_0x460e95))return null;const _0x4069c5=_0x49af99['getSuggestion'](_0x460e95);return _0x5c4265['includes'](_0x4069c5['data']['key']);})['map'](_0x2f109e=>{const {id:_0x464a6b}=_0x39dc22(_0x2f109e['name']),_0x4f8fa7=_0x49af99['getSuggestion'](_0x464a6b);return _0x72755d=_0x4f8fa7['attributes']['groupId'],_0x4f8fa7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x24a128['size'])return;const _0x573d9f=_0x49af99['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f5b4a=>'attribute'==_0x2f5b4a['type']&&_0x2f5b4a['data']&&_0x5c4265['includes'](_0x2f5b4a['data']['key'])&&_0x2f5b4a['attributes']['groupId']!=_0x72755d)['map'](_0x7b58b9=>({'listItem':_0x7b58b9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7b58b9['attributes']['groupId']})),_0x3ed6e6=new Set();for(const {groupId:_0x159c2a,listItem:_0x1e7b70}of _0x573d9f)_0x24a128['has'](_0x1e7b70)&&_0x3ed6e6['add'](_0x159c2a);for(const _0x3538ee of _0x49af99['getSuggestions']())_0x3ed6e6['has'](_0x3538ee['attributes']['groupId'])&&_0x3538ee['setAttribute']('groupId',_0x72755d);}['_supportLegacySuggestions'](){const _0x4cd956=this['editor'],_0x2223c7=_0x4cd956['locale'],_0x117506=_0x4cd956['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x117506['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xc4b428,_0x144d38){const _0x1cb3e6=[];for(let _0x6338ab of _0xc4b428)_0x6338ab['start']['nodeAfter']===_0x6338ab['end']['parent']&&(_0x6338ab=_0x4cd956['model']['createRange'](_0x4cd956['model']['createPositionAt'](_0x6338ab['start']['nodeAfter'],0x0))),_0x1cb3e6['push'](_0x6338ab);_0x4cd956['model']['change'](_0x27cddf=>{const _0x8dcbae=_0x4cd956['model']['document']['selection'],_0xdcb1cc=Array['from'](_0x8dcbae['getRanges']())['map'](_0xa69d10=>_0x121353['fromRange'](_0xa69d10));_0x27cddf['setSelection'](_0x1cb3e6),_0x4cd956['commands']['get'](_0x144d38['commandName'])['refresh'](),_0x144d38['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4cd956['execute'](_0x144d38['commandName'],..._0x144d38['commandParams']),_0x27cddf['setSelection'](_0xdcb1cc);for(const _0x6db983 of _0xdcb1cc)_0x6db983['detach']();});}),_0x117506['descriptionFactory']['registerElementLabel'](function(_0x56ca4d){const _0x82981d=!_0x4cd956['model']['schema']['isObject'](_0x56ca4d),_0x1be33e=_0x56ca4d['previousSibling'],_0x54da5b=_0x56ca4d['nextSibling'],_0x409d14=_0x56ca4d['getAttribute']('listItemId'),_0x218827=!_0x1be33e||_0x1be33e['getAttribute']('listItemId')!==_0x409d14,_0x301900=!_0x54da5b||_0x54da5b['getAttribute']('listItemId')!==_0x409d14;return _0x82981d&&Boolean(_0x409d14)&&_0x218827&&_0x301900;},_0x41031d=>At(_0x2223c7,'ELEMENT_LIST_ITEM',_0x41031d));}['_registerLegacyDescription'](){const _0x495f8a=this['editor'],_0x11f211=_0x495f8a['locale'];function _0x43e6ea(_0x4c22b8){const _0x32b80b=_0x495f8a['commands']['get']('bulletedList')['value'],_0x5e0992=_0x495f8a['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c22b8?_0x32b80b:_0x5e0992;}_0x495f8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x49da82){if('formatBlock'!=_0x49da82['type'])return;const {data:_0x1875fe}=_0x49da82;if(!_0x1875fe)return;let _0xc32b36,_0x494f9f,_0x433482,_0x30a09e;switch(_0x1875fe['commandName']){case'bulletedList':_0x433482=_0x1875fe['commandParams'][0x0]['forceValue'],_0x30a09e=_0x43e6ea(_0x1875fe['commandName']),_0xc32b36=_0x433482?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a09e&&_0x495f8a['config']['get']('list.multiBlock')||(_0xc32b36='*Change\x20to:*\x20%0'),_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x433482=_0x1875fe['commandParams'][0x0]['forceValue'],_0x30a09e=_0x43e6ea(_0x1875fe['commandName']),_0xc32b36=_0x433482?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30a09e&&_0x495f8a['config']['get']('list.multiBlock')||(_0xc32b36='*Change\x20to:*\x20%0'),_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc32b36='*Indent:*\x20%0',_0x494f9f={'type':'format','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc32b36=function(_0x232a65){const _0x453d86=_0x232a65['getFirstRange']();let _0x34cb41=_0x453d86['start']['nodeAfter'];for(;_0x34cb41&&_0x453d86['containsItem'](_0x34cb41);){if(_0x34cb41['getAttribute']('listIndent')>0x0)return!0x1;_0x34cb41=_0x34cb41['nextSibling'];}return!0x0;}(_0x49da82)?At(_0x11f211,'*Format:*\x20remove\x20from\x20%0',At(_0x11f211,function(_0x3fffb4){return'ELEMENT_'+_0x3fffb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x49da82))):At(_0x11f211,'*Outdent:*\x20%0',At(_0x11f211,'ELEMENT_LIST_ITEM')),_0x494f9f={'type':'format','content':_0xc32b36};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1875fe['multipleBlocks']&&(_0xc32b36='*Merge:*\x20%0',_0x494f9f={'type':'deletion','content':At(_0x11f211,_0xc32b36,At(_0x11f211,'ELEMENT_LIST_ITEM'))});}return _0x494f9f;});}}function Ht(_0x342504){let _0x4bcb30=_0x342504['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4bcb30;){const _0xa4fa22=_0x4bcb30['getAttribute']('listItemId');if(!_0xa4fa22)return!0x1;if(_0xa4fa22==_0x342504['data']['newValue'])return'newValue';if(_0xa4fa22==_0x342504['data']['oldValue'])return'oldValue';_0x4bcb30=_0x4bcb30['previousSibling'];}return!0x1;}class $t extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2984bf=this['editor']['config']['get']('list.properties'),_0x561f88=this['editor']['plugins']['get']('TrackChangesEditing');_0x2984bf['styles']&&_0x561f88['enableDefaultAttributesIntegration']('listStyle'),_0x2984bf['reversed']&&_0x561f88['enableDefaultAttributesIntegration']('listReversed'),_0x2984bf['startIndex']&&_0x561f88['enableDefaultAttributesIntegration']('listStart');const _0x3770ed={'type':'format','content':''};_0x561f88['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x78de29=this['editor']['locale'];_0x561f88['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x78de29,'FORMAT_LIST_REVERSED')),_0x561f88['descriptionFactory']['registerDescriptionCallback'](_0x48f851=>{const {data:_0x28f2db}=_0x48f851;if(_0x28f2db&&'listReversed'==_0x28f2db['key'])return null==_0x28f2db['newValue']||0x0==_0x28f2db['newValue']&&null==_0x28f2db['oldValue']?_0x3770ed:void 0x0;}),_0x561f88['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x78de29,'FORMAT_LIST_START')),_0x561f88['descriptionFactory']['registerDescriptionCallback'](_0x3a824d=>{const {data:_0x1ba499}=_0x3a824d;if(_0x1ba499&&'listStart'==_0x1ba499['key'])return null==_0x1ba499['newValue']||0x1==_0x1ba499['newValue']&&null==_0x1ba499['oldValue']?_0x3770ed:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3d3895=>{if(_0x3d3895['batch']['isUndo'])return!0x1;let _0x25f927=!0x1;const _0xb4ade9=_0x561f88['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2df0a1=>{const _0x1b37ab=_0x561f88['_getAttributeKey'](_0x2df0a1);return'listStart'==_0x1b37ab||'listReversed'==_0x1b37ab;});for(const _0x2ec179 of _0xb4ade9){const _0x207d3e=_0x2ec179['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x207d3e||'customNumbered'==_0x207d3e)continue;_0x561f88['_findSuggestions'](_0x2ec179['getFirstRange'](),'attribute')['find'](_0x1daaa7=>'listType'==_0x561f88['_getAttributeKey'](_0x1daaa7['suggestion']))||(_0x3d3895['removeMarker'](_0x2ec179['getFirstMarker']()),_0x25f927=!0x0);}return _0x25f927;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5eaa07){const _0x1f959d=this['editor']['locale'],{data:_0xd6c9e5}=_0x5eaa07,_0x14bb87={'type':'format','content':''};if(!_0xd6c9e5||'listStyle'!=_0xd6c9e5['key'])return;if(!_0xd6c9e5['oldValue'])return'default'==_0xd6c9e5['newValue']?_0x14bb87:{'type':'format','content':''+At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['newValue'])))};if(!_0xd6c9e5['newValue']){if('default'==_0xd6c9e5['oldValue'])return _0x14bb87;let _0x1b2c71=_0x5eaa07['head'];for(;_0x1b2c71;){if(_0x1b2c71['data']&&'listType'==_0x1b2c71['data']['key']&&_0x1b2c71['data']['newValue'])return _0x14bb87;_0x1b2c71=_0x1b2c71['next'];}return{'type':'format','content':''+At(_0x1f959d,'*Remove\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['oldValue'])))};}if('default'!=_0xd6c9e5['newValue'])return{'type':'format','content':''+At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,this['_getTranslationKeyForListStyle'](_0xd6c9e5['newValue'])))};let _0x3c8fae=_0x5eaa07['head'];for(;_0x3c8fae;){if(_0x3c8fae['data']&&'listType'==_0x3c8fae['data']['key']&&_0x3c8fae['data']['newValue']&&_0x3c8fae['data']['oldValue'])return _0x14bb87;_0x3c8fae=_0x3c8fae['next'];}return{'type':'format','content':At(_0x1f959d,'*Set\x20format:*\x20%0',At(_0x1f959d,'ELEMENT_'+_0x5eaa07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xdf2372=this['editor'],_0x1ef5f3=_0xdf2372['locale'];_0xdf2372['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49bf7f=>{if('formatBlock'!=_0x49bf7f['type'])return;const {data:_0x454cf7}=_0x49bf7f;if(!_0x454cf7)return;let _0x5d73bf,_0x9916d;switch(_0x454cf7['commandName']){case'listStyle':_0x5d73bf='*Change\x20to:*\x20%0',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf,At(_0x1ef5f3,this['_getTranslationKeyForListStyle'](_0x454cf7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d73bf=_0x454cf7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf)};break;case'listStart':_0x5d73bf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x9916d={'type':'format','content':At(_0x1ef5f3,_0x5d73bf,_0x454cf7['commandParams'][0x0]['startIndex'])};}return _0x9916d;});}['_getTranslationKeyForListStyle'](_0xff6064){return'ELEMENT_'+function(_0x158b0b){if(Wt['includes'](_0x158b0b))return'bulleted';if(Vt['includes'](_0x158b0b))return'numbered';return null;}(_0xff6064)['toUpperCase']()+'_LIST_'+_0xff6064['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 _0x54c126{['afterInit'](){const _0x3c4e52=this['editor'];_0x3c4e52['commands']['get']('emoji')&&_0x3c4e52['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x54c126{static get['requires'](){return[lt];}['init'](){const _0x512522=this['editor'],_0x5e6441=_0x512522['plugins']['get']('TrackChangesEditing'),_0x199b30=_0x512522['commands']['get']('enter');_0x5e6441['enableCommand']('enter',()=>{_0x512522['model']['change'](_0x248756=>{const _0x3535e7=_0x512522['model']['document']['selection'],_0x50b3df=_0x3535e7['getFirstPosition'](),_0x3666a6=_0x121353['fromRange'](_0x3535e7['getFirstRange']());if(_0x199b30['enterBlock'](_0x248756)){const _0x22b5ce=_0x512522['model']['createPositionAt'](_0x50b3df['parent']['nextSibling'],0x0),_0x2b2a8a=_0x248756['createRange'](_0x50b3df,_0x22b5ce);_0x5e6441['markInsertion'](_0x2b2a8a);}else _0x248756['setSelection'](_0x248756['createRange'](_0x3666a6['end']));_0x3666a6['detach'](),_0x199b30['fire']('afterExecute',{'writer':_0x248756});});});}}class Kt extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x9e898b=this['editor']['plugins']['get']('TrackChangesEditing');_0x9e898b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x9e898b['enableCommand']('findNext'),_0x9e898b['enableCommand']('findPrevious'),_0x9e898b['enableCommand']('replace'),_0x9e898b['enableCommand']('replaceAll');}['handleFindCommand'](_0x22467e,_0xd9e86,_0x1cc122={}){const _0x26efdb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x22467e(_0x998d5=>{let _0x220f74=('string'==typeof _0xd9e86?_0x26efdb['findByTextCallback'](_0xd9e86,_0x1cc122):_0xd9e86)(_0x998d5);Array['isArray'](_0x220f74)&&(_0x220f74={'results':_0x220f74,'searchText':'string'==typeof _0xd9e86?_0xd9e86:''});const _0x16a46b=_0x220f74['results']['filter'](_0x556c5d=>!0x1===this['_isInDeletionRange'](_0x556c5d,_0x998d5['item']));return{..._0x220f74,'results':_0x16a46b};},_0x1cc122);}['_isInDeletionRange'](_0x524bfb,_0x24d17e){const _0x3c1c9b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24d17e,_0x524bfb['start']),this['editor']['model']['createPositionAt'](_0x24d17e,_0x524bfb['end']));for(const _0x50017a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3c1c9b['getIntersection'](_0x50017a['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 _0x54c126{['afterInit'](){const _0x5c9fa2=this['editor']['locale'],_0x382db5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x297fab,commandName:_0xca87a1}of Xt)this['editor']['plugins']['has'](_0x297fab)&&_0x382db5['enableDefaultAttributesIntegration'](_0xca87a1);_0x382db5['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x5c9fa2,'FORMAT_FONT_SIZE')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x5c9fa2,'FORMAT_FONT_FAMILY')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x5c9fa2,'FORMAT_FONT_COLOR')),_0x382db5['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x5c9fa2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x395c10=this['editor'],_0x2714d4=_0x395c10['locale'];_0x395c10['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x332627=>{const _0x3a0b9c=_0x2714d4['t'];if('formatInline'!=_0x332627['type'])return;const {data:_0x33e08d}=_0x332627;if(null!=_0x33e08d){if('fontSize'==_0x33e08d['commandName']){const _0x109672=_0x33e08d['commandParams'][0x0]['value'];if(_0x109672){const _0xe5080d=_0x3a0b9c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x14ba98=>_0x14ba98['model']==_0x109672)['title'])['toLowerCase']();return{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20size:*\x20%0',_0xe5080d)};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e08d['commandName']){const _0x2393e1=_0x33e08d['commandParams'][0x0]['value'];return _0x2393e1?{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20family:*\x20%0',_0x2393e1)}:{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e08d['commandName']){const _0x43be81=_0x33e08d['commandParams'][0x0]['value'];if(_0x43be81){const _0x6fe4f=_0x3340df(this['editor']['config']['get']('fontColor.colors'))['find'](_0x475bf6=>_0x475bf6['model']==_0x43be81);let _0x239dc5=_0x43be81,_0x56a6f3='';return _0x6fe4f&&(_0x239dc5=_0x6fe4f['label'],_0x56a6f3=_0x3a0b9c(_0x239dc5)['toLowerCase']()),{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20color:*\x20%0',_0x56a6f3)['trim'](),'color':{'value':_0x43be81,'title':_0x56a6f3||_0x239dc5}};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e08d['commandName']){const _0x25dd11=_0x33e08d['commandParams'][0x0]['value'];if(_0x25dd11){const _0x87f965=_0x3340df(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x20a11b=>_0x20a11b['model']==_0x25dd11);let _0x8fa8a=_0x25dd11,_0x111052='';return _0x87f965&&(_0x8fa8a=_0x87f965['label'],_0x111052=_0x3a0b9c(_0x8fa8a)['toLowerCase']()),{'type':'format','content':At(_0x2714d4,'*Set\x20font\x20background\x20color:*\x20%0',_0x111052)['trim'](),'color':{'value':_0x25dd11,'title':_0x111052||_0x8fa8a}};}return{'type':'format','content':At(_0x2714d4,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x54c126{['afterInit'](){const {plugins:_0x2f373a}=this['editor'];_0x2f373a['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2f373a['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x471072,plugins:_0xaf6c62,commands:_0x3afc0e}=this['editor'],_0x4c317f=_0xaf6c62['get']('TrackChangesEditing');_0x3afc0e['get']('footnotesStyle')&&_0x4c317f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3afc0e['get']('footnotesStart')&&_0x4c317f['enableDefaultAttributesIntegration']('footnotesStart'),_0x4c317f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0x471072,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4c317f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0x471072,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xef66e=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1d4e37,commands:_0x4a87d4}=this['editor'];_0x4a87d4['get']('insertFootnote')&&_0xef66e['enableCommand']('insertFootnote'),_0xef66e['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5efe12=>At(_0x1d4e37,'ELEMENT_FOOTNOTE_REF',_0x5efe12)),_0xef66e['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4d5389=>At(_0x1d4e37,'ELEMENT_FOOTNOTE_DEFINITION',_0x4d5389)),_0xef66e['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x444d86=>At(_0x1d4e37,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x444d86));}}class Qt extends _0x54c126{['afterInit'](){const _0x3eadb7=this['editor'],_0x230846=_0x3eadb7['plugins']['get']('TrackChangesEditing'),_0x5c9b89=_0x3eadb7['commands']['get']('copyFormat'),_0x2bad19=_0x3eadb7['commands']['get']('pasteFormat');_0x5c9b89&&_0x2bad19&&(_0x230846['enableDefaultAttributesIntegration']('pasteFormat'),_0x230846['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x59fe94=this['editor'],_0x2f3802=_0x59fe94['locale'];_0x59fe94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32eb8c=>{if('formatBlock'!=_0x32eb8c['type']&&'formatInline'!=_0x32eb8c['type'])return;const {data:_0x8a0132}=_0x32eb8c;if(_0x8a0132&&'pasteFormat'===_0x8a0132['commandName']){const _0x4628a9=[],_0x278321=_0x8a0132['commandParams'][0x0];for(const [_0x58ae1f,_0xb19ab8]of Object['entries'](_0x278321))_0x4628a9['push'](Zt(_0x59fe94,_0x58ae1f,_0xb19ab8));return _0x4628a9['length']?{'type':'format','content':At(_0x2f3802,'*Set\x20format\x20to:*\x20%0',_0x4628a9['join'](',\x20'))}:{'type':'format','content':At(_0x2f3802,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x522f51,_0x28d4d7,_0x3eed0b){const _0x3c5383=_0x522f51['locale']['t'],_0x2cb356=_0x28d4d7['split'](/(?=[A-Z])/)['join']('\x20'),_0x25e6c1=_0x3c5383(_0x2cb356['charAt'](0x0)['toUpperCase']()+_0x2cb356['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3eed0b)return _0x25e6c1;if('fontColor'===_0x28d4d7||'fontBackgroundColor'===_0x28d4d7){const _0x5e5e97=_0x3340df(_0x522f51['config']['get']('fontColor.colors'))['find'](_0x39e8d7=>_0x39e8d7['model']==_0x3eed0b);return _0x25e6c1+'\x20('+(_0x5e5e97?_0x3c5383(_0x5e5e97['label'])['toLowerCase']():_0x3eed0b)+')';}if('fontSize'===_0x28d4d7&&isNaN(parseFloat(_0x3eed0b))){const _0x5e0994=_0x522f51['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x522f51['config']['get']('fontSize.options'))['find'](_0x4a3a1f=>_0x4a3a1f['model']==_0x3eed0b);return _0x25e6c1+'\x20('+(_0x5e0994?_0x3c5383(_0x5e0994['title'])['toLowerCase']():_0x3eed0b)+')';}return _0x25e6c1+'\x20('+_0x3eed0b+')';}class Jt extends _0x54c126{['_headingOptions'];['afterInit'](){const _0x1a0d36=this['editor'];if(!_0x1a0d36['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1a0d36['config']['get']('heading.options');const _0x386cec=_0x1a0d36['locale'],_0x2b0803=_0x1a0d36['plugins']['get']('TrackChangesEditing');_0x2b0803['enableDefaultAttributesIntegration']('heading');for(const _0x1b1896 of this['_headingOptions'])'paragraph'!=_0x1b1896['model']&&_0x2b0803['descriptionFactory']['registerElementLabel'](_0x1b1896['model'],_0x552d17=>{const _0x10a613=this['_getHeadingLevel'](_0x1b1896['model']);return null!==_0x10a613?_0x48c093(_0x552d17,_0x10a613):_0x1e0faa(_0x552d17,_0x1b1896['title']);});function _0x48c093(_0x4ea9cf,_0x400498){return At(_0x386cec,'ELEMENT_HEADING',[_0x4ea9cf,_0x400498]);}function _0x1e0faa(_0x18745a,_0x5e3217){return At(_0x386cec,'ELEMENT_HEADING_CUSTOM',[_0x18745a,_0x5e3217]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2884e2=this['editor'],_0x525b82=_0x2884e2['locale'];function _0x216b8a(_0x2c195d,_0x17f505){return At(_0x525b82,'ELEMENT_HEADING_CUSTOM',[_0x2c195d,_0x17f505]);}_0x2884e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x413bcd=>{if('formatBlock'!=_0x413bcd['type'])return;const {data:_0x1817a9}=_0x413bcd;if(_0x1817a9&&'heading'==_0x1817a9['commandName']){const _0x3e3bfd=_0x1817a9['commandParams'][0x0]['value'],_0x4b0787=this['_getHeadingLevel'](_0x3e3bfd);if(null!==_0x4b0787)return{'type':'format','content':At(_0x525b82,'*Change\x20to:*\x20%0',(_0x7f4b9f=0x1,_0x29bf8e=_0x4b0787,At(_0x525b82,'ELEMENT_HEADING',[_0x7f4b9f,_0x29bf8e])))};const _0xcb4cc2=this['_headingOptions']['find'](_0x3397ec=>_0x3397ec['model']===_0x3e3bfd)['title'];return{'type':'format','content':At(_0x525b82,'*Change\x20to:*\x20%0',_0x216b8a(0x1,_0xcb4cc2))};}var _0x7f4b9f,_0x29bf8e;});}['_getHeadingLevel'](_0x4d4e15){const _0x58794d=_0x4d4e15['match'](/^heading(\d+)/);if(_0x58794d)return _0x58794d[0x1];const _0x894033=this['_headingOptions']?.['find'](_0x193775=>_0x193775['model']==_0x4d4e15);if(_0x894033&&_0x894033['view']){const _0x406b1e=_0x894033['view'],_0x489dde=(_0x406b1e['name']??_0x406b1e)['match'](/^h(\d+)/);if(_0x489dde)return _0x489dde[0x1];}return null;}}class te extends _0x54c126{['afterInit'](){const _0x52a823=this['editor'];if(!_0x52a823['plugins']['has']('HighlightEditing'))return;const _0x2e3c39=_0x52a823['plugins']['get']('TrackChangesEditing'),_0x107f24=_0x52a823['locale'];_0x2e3c39['enableDefaultAttributesIntegration']('highlight'),_0x2e3c39['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x107f24,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xfccb6d=this['editor'],_0x35f7a9=_0xfccb6d['locale'];_0xfccb6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ca6fe=>{if('formatInline'!=_0x5ca6fe['type'])return;const {data:_0x5012ce}=_0x5ca6fe;if(_0x5012ce&&'highlight'==_0x5012ce['commandName']){const _0x25a86c=_0x35f7a9['t'],_0x460851=_0x5012ce['commandParams'][0x0]['value'];if(_0x460851){const _0x3de6e4=_0xfccb6d['config']['get']('highlight.options')['find'](_0x3a66a6=>_0x3a66a6['model']==_0x460851),_0x11315a=_0x25a86c(_0x3de6e4['title'])['toLowerCase']();return{'type':'format','content':At(_0x35f7a9,'*Set\x20highlight:*\x20%0',_0x11315a),'color':{'value':_0x3de6e4['color'],'title':_0x3de6e4['title']}};}return{'type':'format','content':At(_0x35f7a9,'*Remove\x20highlight*',At(_0x35f7a9,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x54c126{['afterInit'](){const _0x214149=this['editor'];if(!_0x214149['plugins']['has']('HorizontalLineEditing'))return;_0x214149['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d0fa4=_0x214149['plugins']['get']('TrackChangesEditing'),_0x5ee394=_0x214149['locale'];_0x4d0fa4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x331e29=>At(_0x5ee394,'ELEMENT_HORIZONTAL_LINE',_0x331e29));}}class ne extends _0x54c126{['afterInit'](){const _0x184707=this['editor'];if(!_0x184707['plugins']['has']('HtmlEmbed'))return;const _0x4ad70a=_0x184707['plugins']['get']('TrackChangesEditing'),_0x39d6f5=_0x184707['locale'];_0x4ad70a['descriptionFactory']['registerElementLabel']('rawHtml',_0x381005=>At(_0x39d6f5,'ELEMENT_HTML_EMBED',_0x381005)),_0x4ad70a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4ad70a['descriptionFactory']['registerDescriptionCallback'](_0x5715ac=>{if('attribute'!=_0x5715ac['type'])return;const {data:_0x558280}=_0x5715ac;if(_0x558280&&'value'==_0x558280['key']&&_0x5715ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x38e38e=At(_0x39d6f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x39d6f5,'*Change\x20%0\x20content*',_0x38e38e)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x550437=this['editor'],_0x2902fd=_0x550437['locale'];_0x550437['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21ba8b=>{if('formatBlock'!=_0x21ba8b['type'])return;const {data:_0x17a2db}=_0x21ba8b;if(_0x17a2db&&'htmlEmbed'==_0x17a2db['commandName']){const _0x19cc55=At(_0x2902fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x2902fd,'*Change\x20%0\x20content*',_0x19cc55)};}});}}class ie extends _0x54c126{['afterInit'](){const _0x4e8296=this['editor'];if(!_0x4e8296['plugins']['has']('ImageEditing'))return;const _0x347d25=_0x4e8296['plugins']['get']('TrackChangesEditing'),_0x4be5d0=_0x4e8296['plugins']['get']('ImageUtils'),_0x15c4b2=_0x4e8296['locale'];_0x347d25['enableCommand']('insertImage'),_0x347d25['descriptionFactory']['registerElementLabel']('imageBlock',_0x1df6d9=>At(_0x15c4b2,'ELEMENT_IMAGE',_0x1df6d9)),_0x347d25['descriptionFactory']['registerElementLabel']('imageInline',_0x3612b6=>At(_0x15c4b2,'ELEMENT_INLINE_IMAGE',_0x3612b6)),_0x347d25['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x15c4b2,'ELEMENT_CAPTION')),_0x4e8296['plugins']['has']('ImageUploadEditing')&&_0x347d25['enableCommand']('uploadImage'),_0x4e8296['plugins']['has']('ImageBlockEditing')&&_0x4e8296['plugins']['has']('ImageInlineEditing')&&(_0x347d25['enableCommand']('imageTypeInline',(_0x593007,_0x2ec41b)=>{const _0x16c57b=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']);_0x4e8296['model']['change'](()=>{_0x347d25['markBlockFormat'](_0x16c57b,{'commandName':'imageTypeInline','commandParams':[_0x2ec41b]},[],'convertBlockImageToInline');});}),_0x347d25['enableCommand']('imageTypeBlock',(_0x431bd4,_0x3c60e5)=>{_0x4e8296['model']['change'](_0xf4fd0b=>{let _0x72a943=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x595819=_0xf4fd0b['createRangeOn'](_0x72a943);const _0x30a0d6=tt['fromPosition'](_0x595819['start'],'toPrevious'),_0x18cdd0=tt['fromPosition'](_0x595819['end'],'toNext');_0x347d25['forceDefaultExecution'](()=>_0x431bd4(_0x3c60e5)),_0x72a943=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x595819=_0xf4fd0b['createRangeOn'](_0x72a943);const _0x5e81db=_0xf4fd0b['createRange'](_0x30a0d6,_0x18cdd0);_0x30a0d6['detach'](),_0x18cdd0['detach'](),_0x347d25['markBlockFormat'](_0x72a943,{'commandName':'imageTypeInline','commandParams':[_0x3c60e5]},[],'convertInlineImageToBlock'),_0x5e81db['start']['isBefore'](_0x595819['start'])&&_0x347d25['markInsertion'](_0xf4fd0b['createRange'](_0x5e81db['start'],_0x595819['start']),'convertInlineImageToBlock'),_0x595819['end']['isBefore'](_0x5e81db['end'])&&_0x347d25['markInsertion'](_0xf4fd0b['createRange'](_0x595819['end'],_0x5e81db['end']),'convertInlineImageToBlock');});}),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x347d25['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x44a646])=>{const _0x14b262=_0x347d25['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1d1e9d=_0x44a646['start'],_0x4679c1=_0x44a646['end'];const _0x1af24f=_0x4e8296['model']['schema']['getNearestSelectionRange'](_0x1d1e9d,'backward'),_0x48ba1b=_0x4e8296['model']['schema']['getNearestSelectionRange'](_0x4679c1,'forward');_0x1af24f['isCollapsed']&&(_0x1d1e9d=_0x1af24f['start']),_0x48ba1b['isCollapsed']&&(_0x4679c1=_0x48ba1b['end']),_0x14b262([_0x4e8296['model']['createRange'](_0x1d1e9d,_0x4679c1)]);}),_0x347d25['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x13a3ac),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x13a3ac)),_0x4e8296['plugins']['has']('ImageCaptionEditing')&&(_0x347d25['enableCommand']('toggleImageCaption',(_0x298a4f,_0x1d5e59)=>{const _0x76320d=_0x4e8296['plugins']['get']('ImageCaptionUtils');let _0xcb25b7=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x11254d=_0x76320d['getCaptionFromImageModelElement'](_0xcb25b7);_0x4e8296['model']['change'](()=>{if(_0x11254d)return void _0x347d25['markDeletion'](_0x4e8296['model']['createRangeOn'](_0x11254d));const _0x255abe=_0x4be5d0['isBlockImage'](_0xcb25b7);_0x298a4f(_0x1d5e59),_0xcb25b7=_0x4be5d0['getClosestSelectedImageElement'](_0x4e8296['model']['document']['selection']),_0x11254d=_0x76320d['getCaptionFromImageModelElement'](_0xcb25b7),_0x347d25['markInsertion'](_0x4e8296['model']['createRangeOn'](_0x11254d),_0x255abe?null:'imageCaption');});}),_0x347d25['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x13a3ac));const _0xcc87f9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x285a91(_0x266857,_0x365c3d){const _0x1ecf9d=_0xcc87f9['findIndex'](({type:_0x26530d,subType:_0x2d3463})=>_0x266857['type']==_0x26530d&&_0x266857['subType']==_0x2d3463),_0x22c28a=_0xcc87f9['findIndex'](({type:_0x4aff78,subType:_0x4e7f71})=>_0x365c3d['type']==_0x4aff78&&_0x365c3d['subType']==_0x4e7f71);if(_0x1ecf9d<0x0||_0x22c28a<0x0)return!0x1;const _0x56cdd1=_0x266857['getFirstRange'](),_0x52e44d=_0x365c3d['getFirstRange']();if((0x0==_0x1ecf9d||0x1==_0x1ecf9d)&&0x2==_0x22c28a&&_0x56cdd1['isIntersecting'](_0x52e44d))return!0x0;if(0x2==_0x1ecf9d&&0x3==_0x22c28a){const _0x6977d1=_0x347d25['_findSuggestions'](_0x56cdd1,'insertion')['filter'](({suggestion:_0x1f344a,meta:_0x5aa5a5})=>_0x5aa5a5['isOwn']&&'convertInlineImageToBlock'==_0x1f344a['subType']);if(_0x6977d1['length']>0x1&&_0x52e44d['end']['isEqual'](_0x56cdd1['start']))return!0x0;if(0x1==_0x6977d1['length']&&(_0x56cdd1['start']['isEqual'](_0x52e44d['end'])||_0x56cdd1['end']['isEqual'](_0x52e44d['start'])))return!0x0;}if(0x3==_0x1ecf9d&&0x3==_0x22c28a&&_0x56cdd1['start']['isBefore'](_0x52e44d['start'])){const _0x1de90a=_0x56cdd1['end']['nodeAfter'],_0x126ba7=_0x52e44d['start']['nodeBefore'];return _0x4be5d0['isBlockImage'](_0x1de90a)&&_0x1de90a===_0x126ba7;}return!0x1;}function _0x13a3ac(_0x38a38f,_0x382549){return _0x285a91(_0x38a38f,_0x382549)?[_0x38a38f,_0x382549]:_0x285a91(_0x382549,_0x38a38f)?[_0x382549,_0x38a38f]:null;}_0x4e8296['plugins']['has']('ImageResize')&&(_0x347d25['enableDefaultAttributesIntegration']('resizeImage'),_0x347d25['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x15c4b2,'FORMAT_IMAGE_SIZE'))),_0x4e8296['plugins']['has']('ImageTextAlternativeEditing')&&_0x347d25['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4e8296['plugins']['has']('PictureEditing')&&_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x24861d=>{if('attribute'!=_0x24861d['type'])return;const {data:_0x5ece31}=_0x24861d;return _0x5ece31&&'sources'==_0x5ece31['key']?{'type':'format','content':''}:void 0x0;}),_0x4e8296['plugins']['has']('ImageSizeAttributes')&&_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x45addd=>{if('attribute'!=_0x45addd['type'])return;const {data:_0x58980e}=_0x45addd;return!_0x58980e||'width'!=_0x58980e['key']&&'height'!=_0x58980e['key']?void 0x0:{'type':'format','content':''};}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x547ca2=>{if(!!_0xcc87f9['find'](({type:_0x2c8408,subType:_0x4b6966})=>_0x547ca2['type']==_0x2c8408&&_0x547ca2['subType']==_0x4b6966))return _0x547ca2['previous']?{}:void 0x0;}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x33e91c=>{if('insertion'==_0x33e91c['type']||'deletion'==_0x33e91c['type']){const _0x7890e=_0x33e91c['getContainedElement']();if(_0x7890e&&_0x7890e['is']('element','caption'))return{'type':'insertion'==_0x33e91c['type']?'addObject':'removeObject','element':_0x7890e,'quantity':0x1};}}),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x157dba=>'formatBlock'==_0x157dba['type']&&'convertInlineImageToBlock'==_0x157dba['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x157dba['type']&&'convertBlockImageToInline'==_0x157dba['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x347d25['descriptionFactory']['registerDescriptionCallback'](_0x159968=>{if('attribute'!=_0x159968['type'])return;const {data:_0x3c690d}=_0x159968;if(!_0x3c690d||'alt'!=_0x3c690d['key'])return;const _0x28e53f=_0x3c690d['newValue'];return _0x28e53f?{'type':'format','content':At(_0x15c4b2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x28e53f+'\x22')}:{'type':'format','content':At(_0x15c4b2,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1edc2b=this['editor'],_0x3e1029=_0x1edc2b['locale'];_0x1edc2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x593824=>{if('formatBlock'!=_0x593824['type']&&'formatInline'!=_0x593824['type'])return;const {data:_0x34046e}=_0x593824;if(_0x34046e){if('imageTextAlternative'==_0x34046e['commandName']){const _0x46b06b=_0x34046e['commandParams'][0x0]['newValue'];return _0x46b06b?{'type':'format','content':At(_0x3e1029,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x46b06b+'\x22')}:{'type':'format','content':At(_0x3e1029,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34046e['commandName']){const _0xfb62f=_0x34046e['commandParams'][0x0]['width'];return _0xfb62f?{'type':'format','content':At(_0x3e1029,'*Set\x20image\x20width:*\x20%0',_0xfb62f)}:{'type':'format','content':At(_0x3e1029,'*Reset\x20image\x20width*')};}}});}}class se extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1cd6d8=this['editor']['locale'],_0x59920d=this['editor']['plugins']['get']('TrackChangesEditing');_0x59920d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x59920d['descriptionFactory']['registerDescriptionCallback'](_0x27fc91=>{if('attribute'!=_0x27fc91['type'])return;const {data:_0x2d6bf2}=_0x27fc91;return _0x2d6bf2&&'src'==_0x2d6bf2['key']?_0x2d6bf2['newValue']&&_0x2d6bf2['oldValue']?{'type':'format','content':At(_0x1cd6d8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5cc643=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cc643['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5cc643['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5cc643['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5cc643['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43a791=this['editor'],_0x2c0753=_0x43a791['locale'];_0x43a791['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d7cb=>{if('formatBlock'!=_0x41d7cb['type']&&'formatInline'!=_0x41d7cb['type'])return;const {data:_0x15a000}=_0x41d7cb;if(!_0x15a000||'replaceImageSource'!=_0x15a000['commandName'])return;return{'type':'format','content':At(_0x2c0753,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x54c126{['afterInit'](){const _0xb7f4b0=this['editor'];if(!_0xb7f4b0['plugins']['has']('ImageStyleEditing'))return;const _0x3c8412=_0xb7f4b0['plugins']['get']('TrackChangesEditing'),_0x5247de=_0xb7f4b0['plugins']['get']('ImageUtils'),_0x5519fa={};_0x3c8412['enableCommand']('imageStyle',(_0x4e7064,_0x3c63ac)=>{const _0x4e5048=_0xb7f4b0['plugins']['get']('Users')['me'],_0x2d89f5=_0xb7f4b0['commands']['get']('imageStyle');let _0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),_0x4b37dd=_0xb7f4b0['model']['createRangeOn'](_0x514cb3),_0x4f88e3=_0x2d89f5['value'];if(_0x4f88e3==_0x3c63ac['value'])return;const _0x50f6b6={'commandName':'imageStyle','commandParams':[_0x3c63ac],'formatGroupId':_0x171c64()};_0xb7f4b0['model']['change'](()=>{if(_0x3c8412['getSuggestions']()['filter'](_0x3855b9=>_0x3855b9['isInContent']&&_0x4e5048==_0x3855b9['author']&&('formatBlock'==_0x3855b9['type']||'formatInline'==_0x3855b9['type'])&&('imageStylePreApply'==_0x3855b9['subType']||'imageStylePostApply'==_0x3855b9['subType'])&&_0x3855b9['getFirstRange']()['isEqual'](_0x4b37dd))['forEach'](_0xc2fb37=>_0x3c8412['discardSuggestion'](_0xc2fb37['head'])),_0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),_0x4b37dd=_0xb7f4b0['model']['createRangeOn'](_0x514cb3),_0x2d89f5['refresh'](),_0xb7f4b0['commands']['get']('imageTypeInline')['refresh'](),_0xb7f4b0['commands']['get']('imageTypeBlock')['refresh'](),_0x4f88e3=_0x2d89f5['value'],_0x4f88e3!=_0x3c63ac['value'])return _0x5247de['isInlineImage'](_0x514cb3)&&_0x2d89f5['shouldConvertImageType'](_0x3c63ac['value'],_0x514cb3)?(_0x4e7064({..._0x3c63ac,'setImageSizes':!0x1}),_0x514cb3=_0x5247de['getClosestSelectedImageElement'](_0xb7f4b0['model']['document']['selection']),void _0x3c8412['markBlockFormat'](_0x514cb3,{..._0x50f6b6,'commandReversedParams':[{'value':_0x4f88e3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5247de['isBlockImage'](_0x514cb3)?_0x3c8412['markBlockFormat'](_0x514cb3,_0x50f6b6,[],'imageStylePostApply'):_0x3c8412['markInlineFormat'](_0x4b37dd,_0x50f6b6,'imageStylePostApply'));});});for(const _0x366b16 of _0xb7f4b0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5519fa[_0x366b16['name']]=_0x366b16['title']['toLowerCase']();_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3e9bcb])=>{_0x5247de['setImageNaturalSizeAttributes'](_0x3e9bcb['getContainedElement']());}),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x26e111,_0x1a3175)=>{_0x3c8412['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x26e111,{'commandName':_0x1a3175['commandName'],'commandParams':_0x1a3175['commandReversedParams']});}),_0x3c8412['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xb5df24,_0x9f2054){if(_0x24873b(_0xb5df24,_0x9f2054))return[_0xb5df24,_0x9f2054];if(_0x24873b(_0x9f2054,_0xb5df24))return[_0x9f2054,_0xb5df24];return null;});const _0x509c01=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x24873b(_0x3a53db,_0x5e2bbc){const _0x4b5ef6=_0x509c01['findIndex'](({type:_0x4d7b49,subType:_0x2352db})=>_0x3a53db['type']==_0x4d7b49&&_0x3a53db['subType']==_0x2352db),_0x4897ca=_0x509c01['findIndex'](({type:_0x2ae15a,subType:_0x2c5138})=>_0x5e2bbc['type']==_0x2ae15a&&_0x5e2bbc['subType']==_0x2c5138);if(_0x4b5ef6<0x0||_0x4897ca<0x0)return!0x1;const _0x4fff26=_0x3a53db['getFirstRange'](),_0x6fd5be=_0x5e2bbc['getFirstRange']();if((0x0==_0x4b5ef6||0x1==_0x4b5ef6)&&0x2==_0x4897ca&&_0x4fff26['isIntersecting'](_0x6fd5be))return!0x0;if(0x2==_0x4b5ef6&&0x3==_0x4897ca){const _0x2ca509=_0x3c8412['_findSuggestions'](_0x4fff26,'insertion')['filter'](({suggestion:_0x52cc6d,meta:_0x25857d})=>_0x25857d['isOwn']&&'convertInlineImageToBlock'==_0x52cc6d['subType']);if(_0x2ca509['length']>0x1&&_0x6fd5be['end']['isEqual'](_0x4fff26['start']))return!0x0;if(0x1==_0x2ca509['length']&&(_0x4fff26['start']['isEqual'](_0x6fd5be['end'])||_0x4fff26['end']['isEqual'](_0x6fd5be['start'])))return!0x0;}if(0x3==_0x4b5ef6&&0x3==_0x4897ca&&_0x4fff26['start']['isBefore'](_0x6fd5be['start'])){const _0x4f9291=_0x4fff26['end']['nodeAfter'],_0x22a0c9=_0x6fd5be['start']['nodeBefore'];return _0x5247de['isBlockImage'](_0x4f9291)&&_0x4f9291===_0x22a0c9;}return!0x1;}_0xb7f4b0['model']['document']['registerPostFixer'](()=>{let _0xeb9812=!0x1;const _0x47384a=Array['from'](_0xb7f4b0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x293455,data:_0x34007f}of _0x47384a){const {group:_0xdef0fb,type:_0x4f198b,subType:_0x116bc9,id:_0xe1cb80}=_0x39dc22(_0x293455);if('suggestion'==_0xdef0fb&&_0x3c8412['hasSuggestion'](_0xe1cb80)){if('formatBlock'==_0x4f198b&&('imageStylePreApply'==_0x116bc9||'imageStylePostApply'==_0x116bc9)){const _0xc0a2ff=_0x3c8412['getSuggestion'](_0xe1cb80);if(_0x34007f['newRange']){const _0x1adeea=_0xc0a2ff['getFirstRange']()['getContainedElement']();if(_0x5247de['isBlockImage'](_0x1adeea))continue;_0x3c8412['discardSuggestion'](_0xc0a2ff),_0xeb9812=!0x0;}}if('insertion'==_0x4f198b&&'imageCaption'==_0x116bc9&&!_0x34007f['newRange']){const _0xa81749=_0x3c8412['getSuggestion'](_0xe1cb80);_0xa81749['next']&&_0xa81749['next']['isInContent']&&(_0x3c8412['discardSuggestion'](_0xa81749['next']),_0xeb9812=!0x0);}}}return _0xeb9812;}),this['_registerLegacyDescription'](_0x5519fa);}['_registerLegacyDescription'](_0x3d2ae9){const _0x146938=this['editor'],_0x430b72=_0x146938['locale'];_0x146938['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22aa82=>{if('formatBlock'!=_0x22aa82['type']&&'formatInline'!=_0x22aa82['type'])return;const {data:_0xe9e001}=_0x22aa82;if(!_0xe9e001||'imageStyle'!=_0xe9e001['commandName'])return;const _0x5e7920=_0xe9e001['commandParams'][0x0]['value'];return _0x557297('side'===_0x5e7920?At(_0x430b72,'FORMAT_SIDE_IMAGE'):_0x3d2ae9[_0x5e7920]||_0x5e7920);function _0x557297(_0x26e13e){return{'type':'format','content':At(_0x430b72,'*Format:*\x20%0',_0x26e13e)};}});}}class oe extends _0x54c126{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4f0456){super(_0x4f0456),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x508c78=this['editor'],_0x50adc9=_0x508c78['commands']['get']('importWord'),_0x1db886=_0x508c78['commands']['get']('trackChanges');_0x50adc9&&(_0x50adc9['on']('execute',(_0x5a75f4,[,_0x3dcf5d])=>{this['_trackChangesValueDuringImport']=_0x1db886['value'],_0x3dcf5d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x50adc9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x50adc9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1db886['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x508c78['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5c583e,_0x275074){const {suggestions:_0x58f546}=_0x275074,_0x2c66d5=this['editor']['commands']['get']('trackChanges'),_0x1f80ca=_0x2c66d5['value'];this['_trackChangesValueDuringImport']!==_0x1f80ca&&(_0x2c66d5['execute'](),this['_trackChangesExecuted']=!0x0),_0x58f546&&_0x58f546['forEach'](({id:_0x51be5d,type:_0x4b4cf0,author:_0x514930,created_at:_0x3249dd})=>{const _0x29ac38={'id':_0x51be5d,'type':_0x4b4cf0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x514930,'createdAt':_0x3249dd?new Date(_0x3249dd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x29ac38);});}}class ae extends _0x54c126{['afterInit'](){const _0x306e23=this['editor'],_0x213d9f=_0x306e23['plugins']['get']('TrackChangesEditing');if(_0x306e23['plugins']['has']('IndentEditing')&&(_0x213d9f['enableCommand']('indent'),_0x213d9f['enableCommand']('outdent')),_0x306e23['plugins']['has']('IndentBlock')){for(const _0xa207e5 of['indentBlock','outdentBlock'])_0x213d9f['enableDefaultAttributesIntegration'](_0xa207e5);if(_0x306e23['plugins']['has']('ListEditing')){for(const _0x1e6f73 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x213d9f['enableDefaultAttributesIntegration'](_0x1e6f73);}}const _0x5bbf86=_0x306e23['locale'];_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x5bbf86,'FORMAT_INDENT')),_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x5bbf86,'FORMAT_INDENT')),_0x213d9f['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x5bbf86,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x242a3c=this['editor'],_0x56b39c=_0x242a3c['locale'],_0x204efd=_0x242a3c['plugins']['get']('TrackChangesEditing');_0x204efd['descriptionFactory']['registerDescriptionCallback'](_0x1e777c=>{if('formatBlock'!=_0x1e777c['type'])return;const {data:_0x1c698d}=_0x1e777c;if(!_0x1c698d)return;if('indentBlock'!=_0x1c698d['commandName']&&'outdentBlock'!=_0x1c698d['commandName'])return;const _0x4d1f3a=_0x1e777c['getItems']()[0x0],_0x3b128d=_0x204efd['descriptionFactory']['getItemLabel'](_0x4d1f3a);return'indentBlock'==_0x1c698d['commandName']?{'type':'format','content':At(_0x56b39c,'*Indent:*\x20%0',_0x3b128d)}:'outdentBlock'==_0x1c698d['commandName']?{'type':'format','content':At(_0x56b39c,'*Outdent:*\x20%0',_0x3b128d)}:void 0x0;});}}class ce extends _0x54c126{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x54c126{['afterInit'](){const _0x7eeaed=this['editor'];if(!_0x7eeaed['plugins']['has']('LinkEditing'))return;const _0x1302a0=_0x7eeaed['plugins']['get']('TrackChangesEditing'),_0x1cd04e=_0x7eeaed['commands']['get']('link');_0x1302a0['enableDefaultAttributesIntegration']('link'),_0x1302a0['enableDefaultAttributesIntegration']('unlink');for(const _0x17f447 of _0x1cd04e['manualDecorators'])_0x1302a0['descriptionFactory']['registerAttributeLabel'](_0x17f447['id'],'link\x20('+_0x17f447['label']['toLowerCase']()+')');_0x1302a0['descriptionFactory']['registerDescriptionCallback'](_0x57c357=>{if('attribute'!=_0x57c357['type'])return;const {data:_0x4b01e6}=_0x57c357;if(!_0x4b01e6||'linkHref'!=_0x4b01e6['key'])return;const _0x3112be=_0x4b01e6['newValue'],_0xb546e=_0x7eeaed['locale'];return{'type':'format','content':null==_0x3112be?At(_0xb546e,'*Remove\x20link*'):At(_0xb546e,'*Set\x20link:*\x20%0','\x22'+_0x3112be+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f26b6=this['editor'],_0x2e8642=_0x5f26b6['locale'];_0x5f26b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x145050=>{if('formatInline'!=_0x145050['type'])return;const {data:_0x3ec54b}=_0x145050;if(_0x3ec54b){if('link'==_0x3ec54b['commandName']){const _0x579084=_0x3ec54b['commandParams'][0x0];return{'type':'format','content':At(_0x2e8642,'*Set\x20link:*\x20%0','\x22'+_0x579084+'\x22')};}return'unlink'==_0x3ec54b['commandName']?{'type':'format','content':At(_0x2e8642,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x54c126{['afterInit'](){const _0x2b1a6a=this['editor'],_0x4edf3f=_0x2b1a6a['locale'];if(!_0x2b1a6a['plugins']['has']('LegacyListEditing'))return;const _0x54b812=_0x2b1a6a['plugins']['get']('TrackChangesEditing'),_0x598def=_0x2b1a6a['plugins']['has']('LegacyTodoListEditing');function _0x5d75a1(_0x4b64f0){return()=>{const _0x578b39=_0x2b1a6a['model']['document']['selection'],_0x44fc7a=_0x2b1a6a['commands']['get'](_0x4b64f0);if(_0x44fc7a['value'])return void _0x2b1a6a['execute']('paragraph',{});const _0x5cc032=_0x4b64f0['slice'](0x0,-0x4),_0x2e7199=function(_0x4d7fee,_0x2d61d3,_0x1b0d4a){let _0x4d3d0e=Array['from'](_0x4d7fee)['filter'](_0x45237b=>function(_0x5ec918,_0x35a1ed){return _0x35a1ed['checkChild'](_0x5ec918['parent'],'listItem')&&!_0x35a1ed['isObject'](_0x5ec918);}(_0x45237b,_0x1b0d4a));_0x4d3d0e=_0x4d3d0e['filter'](_0x2529a9=>!_0x2529a9['is']('element','listItem')||_0x2529a9['getAttribute']('listType')!=_0x2d61d3);const _0x3c895b=new Set();for(const _0x5592ac of _0x4d3d0e)_0x5592ac['is']('element','listItem')?_0x3c895b['add'](he(_0x5592ac)):_0x3c895b['add'](_0x5592ac);return Array['from'](_0x3c895b);}(_0x578b39['getSelectedBlocks'](),_0x5cc032,_0x2b1a6a['model']['schema']);_0x2b1a6a['model']['change'](()=>{for(const _0x549913 of _0x2e7199)_0x54b812['markBlockFormat'](_0x549913,{'commandName':_0x4b64f0,'commandParams':[{'forceValue':!_0x44fc7a['value']}],'formatGroupId':'blockName'},de(_0x549913));});};}function _0xa0fa73(_0x4367df){return()=>{const _0x43c04f=function(_0x313cba){let _0x3993f4=Array['from'](_0x313cba);const _0x51da72=_0x3993f4['findIndex'](_0x3faa96=>'listItem'!=_0x3faa96['name']);return _0x51da72>-0x1&&(_0x3993f4=_0x3993f4['slice'](0x0,_0x51da72)),_0x3993f4;}(_0x2b1a6a['model']['document']['selection']['getSelectedBlocks']()),_0x5e5de3=_0x2b1a6a['model']['createRange'](_0x2b1a6a['model']['createPositionAt'](_0x43c04f[0x0],'before'),_0x2b1a6a['model']['createPositionAt'](_0x43c04f[_0x43c04f['length']-0x1],'end'));_0x2b1a6a['model']['change'](()=>{_0x54b812['markBlockFormat'](_0x5e5de3,{'commandName':_0x4367df,'commandParams':[],'formatGroupId':'listIndent'},function(_0x596f84){const _0x2bec04=new Set();for(const _0x375ac7 of _0x596f84){let _0x281c4e=_0x375ac7['nextSibling'];for(;_0x281c4e&&_0x281c4e['getAttribute']('listIndent')>_0x375ac7['getAttribute']('listIndent');)_0x2bec04['add'](_0x281c4e),_0x281c4e=_0x281c4e['nextSibling'];}return Array['from'](_0x2bec04);}(_0x43c04f));});};}_0x54b812['enableCommand']('numberedList',_0x5d75a1('numberedList')),_0x54b812['enableCommand']('bulletedList',_0x5d75a1('bulletedList')),_0x598def&&_0x54b812['enableCommand']('todoList',_0x5d75a1('todoList')),_0x54b812['enableCommand']('indentList',_0xa0fa73('indentList')),_0x54b812['enableCommand']('outdentList',_0xa0fa73('outdentList')),_0x598def&&_0x54b812['enableCommand']('checkTodoList',()=>{const _0x2cb6b6=_0x2b1a6a['commands']['get']('checkTodoList'),_0x2e5b5b=Array['from'](_0x2cb6b6['_selectedElements']);_0x2e5b5b['filter'](_0x319bc9=>_0x319bc9['getAttribute']('todoListChecked')!=_0x2cb6b6['value']),_0x2b1a6a['model']['change'](()=>{for(const _0x150d88 of _0x2e5b5b)_0x54b812['markBlockFormat'](_0x150d88,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2cb6b6['value']}]});});}),_0x54b812['descriptionFactory']['registerElementLabel']('listItem',_0x5df047=>At(_0x4edf3f,'ELEMENT_LIST_ITEM',_0x5df047)),_0x54b812['descriptionFactory']['registerDescriptionCallback'](_0x278455=>{if('formatBlock'!=_0x278455['type']&&'formatInline'!=_0x278455['type'])return;const {data:_0x46d666}=_0x278455;if(_0x46d666){if('numberedList'==_0x46d666['commandName']||'bulletedList'==_0x46d666['commandName']||'todoList'==_0x46d666['commandName'])switch(_0x46d666['commandName']['replace']('List','')){case'bulleted':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e98fa(At(_0x4edf3f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46d666['commandName'])return{'type':'format','content':At(_0x4edf3f,'*Indent:*\x20%0',At(_0x4edf3f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46d666['commandName'])return{'type':'format','content':At(_0x4edf3f,'*Outdent:*\x20%0',At(_0x4edf3f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46d666['commandName'])return _0x46d666['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4edf3f,'*Check\x20item*')}:{'type':'format','content':At(_0x4edf3f,'*Uncheck\x20item*')};}function _0x4e98fa(_0x3c2b53){return{'type':'format','content':At(_0x4edf3f,'*Change\x20to:*\x20%0',_0x3c2b53)};}});}}function he(_0x29f852){const _0xc4b15b=_0x29f852['getAttribute']('listIndent');if(0x0==_0xc4b15b)return _0x29f852;let _0x16347a=_0x29f852;for(;_0x29f852['previousSibling']&&_0x29f852['previousSibling']['is']('element','listItem');){const _0x457ec5=_0x29f852['previousSibling']['getAttribute']('listIndent');if(_0x457ec5==_0xc4b15b)_0x16347a=_0x29f852['previousSibling'];else{if(_0x457ec5<_0xc4b15b)break;}_0x29f852=_0x29f852['previousSibling'];}return _0x16347a;}function de(_0x5f1f16){const _0x31083d=[];if(_0x5f1f16['is']('element','listItem')&&_0x5f1f16['getAttribute']('listIndent')>0x0){let _0x5e7190=_0x5f1f16['nextSibling'];for(;_0x5e7190&&'listItem'==_0x5e7190['name']&&_0x5e7190['getAttribute']('listIndent')==_0x5f1f16['getAttribute']('listIndent');)_0x31083d['push'](_0x5e7190),_0x5e7190=_0x5e7190['nextSibling'];}return _0x31083d;}class fe extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4c395f=this['editor']['config']['get']('list.properties'),_0x34d2a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c395f['styles']&&_0x34d2a7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4c395f['reversed']&&_0x34d2a7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4c395f['startIndex']&&_0x34d2a7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x34d2a7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4e9359,_0x1e2d8d={}){const _0x33fe88=this['editor']['plugins']['get']('TrackChangesEditing'),_0x417a26=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x33fe88['markMultiRangeBlockFormat'](_0x417a26,{'commandName':'listStyle','commandParams':[{'type':_0x1e2d8d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5b939b,_0x5d028a={}){const _0x33b060=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38cc9f=this['_getSuggestionBlocks'](_0x3f616f=>_0x3f616f['is']('element','listItem')&&'numbered'===_0x3f616f['getAttribute']('listType'));if(_0x38cc9f['length']<0x1)return;const _0xd04cb4=_0x38cc9f['map'](_0x1d233c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1d233c,'before'),this['editor']['model']['createPositionAt'](_0x1d233c,0x0)));this['editor']['model']['change'](()=>{_0x33b060['markMultiRangeBlockFormat'](_0xd04cb4,{'commandName':'listReversed','commandParams':[{'reversed':_0x5d028a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28a3a0,_0x3e23df={}){const _0x2139bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4084ca=this['_getSuggestionBlocks'](_0x376b08=>_0x376b08['is']('element','listItem')&&'numbered'===_0x376b08['getAttribute']('listType'));if(_0x4084ca['length']<0x1)return;const _0x1a64ff=_0x4084ca['map'](_0x516b9e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x516b9e,'before'),this['editor']['model']['createPositionAt'](_0x516b9e,0x0)));this['editor']['model']['change'](()=>{_0x2139bc['markMultiRangeBlockFormat'](_0x1a64ff,{'commandName':'listStart','commandParams':[{'startIndex':_0x3e23df['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x676003){if('formatBlock'!=_0x676003['type']&&'formatInline'!=_0x676003['type'])return;const _0x4d8ed6=this['editor']['locale'],{data:_0x38825e}=_0x676003;if(!_0x38825e)return;let _0x58cabf,_0x28d8d4;switch(_0x38825e['commandName']){case'listStyle':_0x58cabf='*Change\x20to:*\x20%0',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf,At(_0x4d8ed6,this['_getTranslationKeyForListStyle'](_0x38825e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x58cabf=_0x38825e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf)};break;case'listStart':_0x58cabf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x28d8d4={'type':'format','content':At(_0x4d8ed6,_0x58cabf,_0x38825e['commandParams'][0x0]['startIndex'])};}return _0x28d8d4;}['_getSuggestionBlocksForListStyle'](){const _0x337cb2=this['editor']['plugins']['get']('LegacyListUtils');let _0x55f3c0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x55f3c0[0x0]?.['is']('element','listItem')&&_0x55f3c0['unshift'](..._0x337cb2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x55f3c0[_0x55f3c0['length']-0x1]?.['is']('element','listItem')&&_0x55f3c0['push'](..._0x337cb2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x55f3c0=[...new Set(_0x55f3c0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x55f3c0=_0x55f3c0['filter'](_0x35dfb7=>_0x35dfb7['is']('element','listItem'))),_0x55f3c0;}['_getSuggestionBlocks'](_0x3379de){const _0x232d19=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e6a8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3379de)['map'](_0x41ae03=>{const _0x3b0404=this['editor']['model']['createPositionAt'](_0x41ae03,0x0);return[..._0x232d19['getSiblingNodes'](_0x3b0404,'backward'),..._0x232d19['getSiblingNodes'](_0x3b0404,'forward')];})['flat']();return _0x1e6a8d=[...new Set(_0x1e6a8d)],_0x1e6a8d;}['_getTranslationKeyForListStyle'](_0x358bc1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x358bc1)||'default')['toUpperCase']()+'_LIST_'+_0x358bc1['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x54c126{['afterInit'](){const _0x57c534=this['editor'];if(!_0x57c534['plugins']['has']('MediaEmbedEditing'))return;const _0x51146f=_0x57c534['plugins']['get']('TrackChangesEditing'),_0x2df32e=_0x57c534['locale'];_0x51146f['enableCommand']('mediaEmbed'),_0x51146f['descriptionFactory']['registerElementLabel']('media',_0x1a70a4=>At(_0x2df32e,'ELEMENT_MEDIA',_0x1a70a4));}}class me extends _0x54c126{['afterInit'](){const _0xddc93c=this['editor'];_0xddc93c['plugins']['has']('MentionEditing')&&_0xddc93c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x54c126{['afterInit'](){const _0x504103=this['editor'];if(!_0x504103['plugins']['has']('MergeFieldsEditing'))return;const _0x3e2bcd=_0x504103['plugins']['get']('TrackChangesEditing'),_0x53fb7a=_0x504103['locale'];_0x3e2bcd['enableCommand']('insertMergeField'),_0x3e2bcd['enableCommand']('insertMergeFieldBlock'),_0x3e2bcd['enableCommand']('insertMergeFieldImage'),_0x3e2bcd['descriptionFactory']['registerElementLabel']('mergeField',_0xc3adb4=>At(_0x53fb7a,'ELEMENT_MERGE_FIELD',_0xc3adb4)),_0x3e2bcd['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x7b89c6=>At(_0x53fb7a,'ELEMENT_MERGE_FIELD',_0x7b89c6)),_0x3e2bcd['descriptionFactory']['registerDescriptionCallback'](_0x21ceb1=>{if('insertion'!=_0x21ceb1['type']&&'deletion'!=_0x21ceb1['type'])return;const _0x2c7a5a=_0x21ceb1['getContainedElement']();if(null==_0x2c7a5a)return;const _0x54474a=_0x504103['plugins']['get']('MergeFieldsEditing');let _0x3c381e;switch(_0x54474a['getMergeFieldType'](_0x2c7a5a)){case null:return;case'image':{const _0x49164f=_0x54474a['unwrapAffixes'](_0x2c7a5a['getAttribute']('src'));_0x3c381e=_0x54474a['getLabel'](_0x49164f)||_0x49164f;break;}default:{const _0x2ece09=_0x2c7a5a['getAttribute']('id');_0x3c381e=_0x54474a['getLabel'](_0x2ece09)||_0x2ece09;break;}}return'insertion'==_0x21ceb1['type']?{'type':'insertion','content':At(_0x53fb7a,'*Insert:*\x20%0','\x22'+_0x3c381e+'\x22\x20'+At(_0x53fb7a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x53fb7a,'*Remove:*\x20%0','\x22'+_0x3c381e+'\x22\x20'+At(_0x53fb7a,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x54c126{['afterInit'](){const _0x4a49a4=this['editor'],_0x5bdfbe=_0x4a49a4['plugins']['get']('TrackChangesEditing');_0x4a49a4['plugins']['has']('MultiLevelList')&&(_0x5bdfbe['enableDefaultAttributesIntegration']('multiLevelList'),_0x5bdfbe['descriptionFactory']['registerDescriptionCallback'](_0xdd07e4=>this['handleDescriptions'](_0xdd07e4)));}['handleDescriptions'](_0x3c530a){const _0x3475bf=this['editor']['locale'],{data:_0x1e0542}=_0x3c530a,_0x1f281f={'type':'format','content':''};if(_0x1e0542&&'listMarkerStyle'==_0x1e0542['key']){if(!_0x1e0542['oldValue'])return{'type':'format','content':At(_0x3475bf,'*Set\x20format:*\x20%0',At(_0x3475bf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0542['newValue']+')'};if(!_0x1e0542['newValue']){let _0x243fc0=_0x3c530a['head'];for(;_0x243fc0;){if(_0x243fc0['data']&&'listType'==_0x243fc0['data']['key']&&_0x243fc0['data']['newValue'])return _0x1f281f;_0x243fc0=_0x243fc0['next'];}return{'type':'format','content':At(_0x3475bf,'*Remove\x20format:*\x20%0',At(_0x3475bf,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1e0542['oldValue']+')'};}}}}class _e extends _0x54c126{['afterInit'](){const _0x389a63=this['editor'];if(!_0x389a63['plugins']['has']('PageBreakEditing'))return;_0x389a63['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f7579=_0x389a63['plugins']['get']('TrackChangesEditing'),_0x55b82a=_0x389a63['locale'];_0x4f7579['descriptionFactory']['registerElementLabel']('pageBreak',_0x5bbd2e=>At(_0x55b82a,'ELEMENT_PAGE_BREAK',_0x5bbd2e));}}class pe extends _0x54c126{['afterInit'](){const _0x161bb4=this['editor'];if(!_0x161bb4['plugins']['has']('Paragraph'))return;const _0x548d7b=_0x161bb4['locale'],_0x59c2c7=_0x161bb4['plugins']['get']('TrackChangesEditing');_0x59c2c7['descriptionFactory']['registerElementLabel']('paragraph',_0xd570be=>At(_0x548d7b,'ELEMENT_PARAGRAPH',_0xd570be)),_0x59c2c7['enableDefaultAttributesIntegration']('paragraph'),_0x59c2c7['enableCommand']('insertParagraph');const _0x19d42d=_0x59c2c7['descriptionFactory'];_0x19d42d['registerDescriptionCallback'](_0x179995=>{if('insertion'!==_0x179995['type'])return;const {start:_0x5e1904,end:_0x79afb7}=_0x179995['getFirstRange']();if(!_0x5e1904['isTouching'](_0x79afb7)||!_0x5e1904['nodeAfter'])return;const _0x4479cd=_0x161bb4['model']['schema'],_0x55b06e=_0x5e1904['nodeAfter'];return _0x4479cd['isBlock'](_0x55b06e)&&!_0x4479cd['isLimit'](_0x55b06e)&&_0x4479cd['checkChild'](_0x55b06e,'$text')?{'type':'insertion','content':At(_0x548d7b,'*Insert:*\x20%0',_0x19d42d['getItemLabel'](_0x55b06e,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aee91=this['editor'],_0x2e2ac1=_0x1aee91['locale'];_0x1aee91['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bda3f=>{if('formatBlock'!=_0x3bda3f['type'])return;const {data:_0x327802}=_0x3bda3f;return _0x327802&&'paragraph'==_0x327802['commandName']?{'type':'format','content':At(_0x2e2ac1,'*Change\x20to:*\x20%0',At(_0x2e2ac1,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x54c126{['afterInit'](){const _0x5574fd=this['editor'];_0x5574fd['commands']['get']('replaceSource')&&_0x5574fd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x54c126{['afterInit'](){const _0x4b9818=this['editor'];if(!_0x4b9818['plugins']['has']('RemoveFormatEditing'))return;_0x4b9818['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dac1f=this['editor'];_0x2dac1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b4f29=>{if('formatBlock'!=_0x2b4f29['type']&&'formatInline'!=_0x2b4f29['type'])return;const {data:_0x14496e}=_0x2b4f29;return _0x14496e&&'removeFormat'==_0x14496e['commandName']?{'type':'format','content':At(_0x2dac1f['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x54c126{['afterInit'](){const _0x3f2e6a=this['editor'];if(!_0x3f2e6a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x55fd08=_0x3f2e6a['plugins']['get']('TrackChangesEditing');_0x55fd08['enableCommand']('goToPreviousRestrictedEditingException'),_0x55fd08['enableCommand']('goToNextRestrictedEditingException');const _0x429008=_0x3f2e6a['plugins']['get']('RestrictedEditingModeEditing');_0x429008['enableCommand']('trackChanges'),_0x429008['enableCommand']('acceptSuggestion'),_0x429008['enableCommand']('discardSuggestion'),_0x429008['enableCommand']('acceptAllSuggestions'),_0x429008['enableCommand']('discardAllSuggestions'),_0x429008['enableCommand']('acceptSelectedSuggestions'),_0x429008['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x54c126{['afterInit'](){const _0x4f6cc3=this['editor'];if(!_0x4f6cc3['plugins']['has']('ShiftEnter'))return;const _0x80cf41=_0x4f6cc3['plugins']['get']('TrackChangesEditing');_0x80cf41['enableCommand']('shiftEnter'),_0x80cf41['descriptionFactory']['registerElementLabel']('softBreak',_0x550eea=>At(_0x4f6cc3['locale'],'ELEMENT_LINE_BREAK',_0x550eea));}}function ke(_0x55d15b,_0x46c25e,_0x47b532){const _0x30f8aa=[];for(const _0xcf4ab8 of _0x46c25e['getItems']())_0xcf4ab8['hasAttribute'](_0x55d15b)&&_0x30f8aa['push'](_0x47b532['createRangeOn'](_0xcf4ab8));return _0x30f8aa;}class Ce extends _0x54c126{['afterInit'](){const _0xd03e9d=this['editor'],_0x321113=_0xd03e9d['plugins']['get']('TrackChangesEditing');_0xd03e9d['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x321113['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x2c6e37=this['editor'],_0x591597=_0x2c6e37['model'],_0x4941d0=_0x2c6e37['locale'],_0x2b00e6=_0x2c6e37['plugins']['get']('TrackChangesEditing'),_0x22c380='restrictedEditingException',_0x52278e=_0x2c6e37['commands']['get'](_0x22c380);_0x2b00e6['enableCommand'](_0x22c380,(_0x4b8dbd,_0x3315c8={})=>{const _0x402603=_0x591597['document']['selection'];if(_0x402603['isCollapsed'])return void _0x4b8dbd(_0x3315c8);const _0x30ff98=void 0x0!==_0x3315c8['forceValue']?_0x3315c8['forceValue']:!_0x52278e['value'];_0x591597['change'](()=>{const _0x2d357c=Array['from'](_0x402603['getRanges']());for(const _0x358f7a of _0x2d357c){const _0x8a6303=_0x30ff98?[_0x358f7a]:ke(_0x22c380,_0x358f7a,_0x591597);for(const _0x168f2b of _0x8a6303)_0x2b00e6['markInlineFormat'](_0x168f2b,{'commandName':_0x22c380,'commandParams':[{'forceValue':_0x30ff98}]});}});}),_0x2b00e6['descriptionFactory']['registerDescriptionCallback'](_0x93006b=>{if('formatBlock'!=_0x93006b['type']&&'formatInline'!=_0x93006b['type'])return;const {data:_0x457145}=_0x93006b;return _0x457145&&_0x457145['commandName']==_0x22c380?_0x457145['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x4941d0,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x4941d0,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x35286b=this['editor'],_0x26c10d=_0x35286b['locale'],_0x2a8cb8=_0x35286b['plugins']['get']('TrackChangesEditing'),_0x53dcdb='restrictedEditingExceptionBlock',_0xaee798=this['editor']['commands']['get'](_0x53dcdb);_0x2a8cb8['enableCommand'](_0x53dcdb,(_0x13b239,_0x1b4763={})=>{const _0x4b9b09=this['editor']['model']['document']['selection'],_0x37690d=_0x1b4763&&void 0x0!==_0x1b4763['forceValue']?_0x1b4763['forceValue']:!_0xaee798['value'];let _0x201c91=[];if(_0x37690d){const _0x570c56=Array['from'](_0x4b9b09['getSelectedBlocks']())['filter'](_0x500ca0=>function(_0x5bcc3e){return!!_0x5bcc3e['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x500ca0)||function(_0x4fa885,_0x511432){const _0x1bab02=_0x511432['createContext'](_0x4fa885['parent']);if(!_0x511432['checkChild'](_0x1bab02,'restrictedEditingException'))return!0x1;if(!_0x511432['checkChild'](_0x1bab02['push']('restrictedEditingException'),_0x4fa885))return!0x1;return!0x0;}(_0x500ca0,this['editor']['model']['schema']));_0x201c91=Tt(_0x570c56,_0x35286b['model']);}else{const _0x4ed938=Array['from'](_0x4b9b09['getSelectedBlocks']())['map'](_0x2070e8=>function(_0x40a6cd){let _0x358c93=_0x40a6cd;for(;_0x358c93['parent'];){if('restrictedEditingException'==_0x358c93['parent']['name'])return _0x358c93;_0x358c93=_0x358c93['parent'];}return null;}(_0x2070e8))['filter'](_0x4a8894=>!!_0x4a8894);_0x201c91=Tt(_0x4ed938,_0x35286b['model']);}_0x35286b['model']['change'](()=>{for(const _0x32a1cd of _0x201c91)_0x2a8cb8['markBlockFormat'](_0x32a1cd,{'commandName':_0x53dcdb,'commandParams':[{'forceValue':_0x37690d}]});});}),_0x2a8cb8['descriptionFactory']['registerDescriptionCallback'](_0x2ae055=>{const {data:_0x27d53f}=_0x2ae055;if(_0x27d53f&&_0x27d53f['commandName']==_0x53dcdb)return _0x27d53f['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x26c10d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x26c10d,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x54c126{['afterInit'](){const _0x365e40=this['editor'];if(!_0x365e40['plugins']['has']('Style')||!_0x365e40['plugins']['has']('DataSchema'))return;const _0x4a8c66=_0x365e40['plugins']['get']('TrackChangesEditing'),_0x85075=_0x365e40['locale'],_0x464fed=_0x365e40['config']['get']('style')||{},_0x1697c0=_0x365e40['plugins']['get']('GeneralHtmlSupport'),_0x13a6ce=_0x365e40['plugins']['get']('StyleUtils')['normalizeConfig'](_0x365e40['plugins']['get']('DataSchema'),_0x464fed['definitions']);_0x4a8c66['enableDefaultAttributesIntegration']('style');const _0x45481b=new Set();for(const _0x245a6d of _0x13a6ce['block']){const _0x16d748=_0x1697c0['getGhsAttributeNameForElement'](_0x245a6d['element']);_0x45481b['add'](_0x16d748);}const _0x33ed00=new Set();for(const _0x556a2d of _0x13a6ce['inline']){const _0x3f5c32=_0x1697c0['getGhsAttributeNameForElement'](_0x556a2d['element']);_0x33ed00['add'](_0x3f5c32);for(const _0x1430f5 of _0x556a2d['ghsAttributes'])_0x33ed00['add'](_0x1430f5);}for(const _0x5b6203 of _0x45481b)_0x4a8c66['descriptionFactory']['registerAttributeLabel'](_0x5b6203,At(_0x85075,'FORMAT_STYLE'));for(const _0x195623 of _0x33ed00)_0x4a8c66['descriptionFactory']['registerAttributeLabel'](_0x195623,At(_0x85075,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a219c=this['editor'],_0x29f45d=_0x5a219c['locale'];_0x5a219c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a12f=>{if('formatBlock'!=_0x10a12f['type']&&'formatInline'!=_0x10a12f['type'])return;const {data:_0x48d9ea}=_0x10a12f;return _0x48d9ea&&'style'===_0x48d9ea['commandName']?_0x48d9ea['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x29f45d,'*Set\x20format:*\x20%0',_0x48d9ea['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x29f45d,'*Remove\x20format:*\x20%0',_0x48d9ea['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x54c126{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3447d5){super(_0x3447d5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x473692=this['editor'],_0x206e79=_0x473692['model']['document']['selection'];if(!_0x473692['plugins']['has']('TableEditing'))return;const _0x596864=_0x473692['locale'],_0x3072b8=_0x473692['plugins']['get']('TrackChangesEditing'),_0x36931b=_0x473692['plugins']['get']('TableUtils');_0x3072b8['descriptionFactory']['registerElementLabel']('table',_0xb15f77=>At(_0x596864,'ELEMENT_TABLE',_0xb15f77)),this['_setupColumnsRowsFixing'](),_0x3072b8['enableCommand']('insertTable'),_0x3072b8['enableCommand']('selectTableRow'),_0x3072b8['enableCommand']('selectTableColumn');for(const _0x230ff7 of['insertTableRowAbove','insertTableRowBelow']){const _0xbc6e4e=_0x473692['commands']['get'](_0x230ff7);_0x3072b8['enableCommand'](_0x230ff7,_0x5ee397=>{_0x473692['model']['change'](_0x136a41=>{_0x5ee397();const _0x516537='above'===_0xbc6e4e['order'],_0x20e47d=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x3aab4c=_0x36931b['getRowIndexes'](_0x20e47d),_0x50c04f=_0x516537?_0x3aab4c['first']-0x1:_0x3aab4c['last']+0x1,_0x12180f=_0x20e47d[0x0]['findAncestor']('table'),_0x2bde7b=_0x36931b['createTableWalker'](_0x12180f,{'startRow':_0x50c04f,'endRow':_0x50c04f}),_0x355b30=Array['from'](_0x2bde7b)['map'](_0x3411b0=>_0x136a41['createRangeOn'](_0x3411b0['cell']));_0x3072b8['markMultiRangeInsertion'](_0x355b30,'tableRow');});});}for(const _0x5e3ee3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c676e=_0x473692['commands']['get'](_0x5e3ee3);_0x3072b8['enableCommand'](_0x5e3ee3,_0x2d442c=>{_0x473692['model']['change'](_0x27ff80=>{_0x2d442c();const _0x50cf95='left'===_0x3c676e['order'],_0x1c911a=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x4af9db=_0x36931b['getColumnIndexes'](_0x1c911a),_0xf8b16f=_0x50cf95?_0x4af9db['first']-0x1:_0x4af9db['last']+0x1,_0x5f0d90=_0x1c911a[0x0]['findAncestor']('table'),_0x349462=_0x36931b['createTableWalker'](_0x5f0d90,{'startRow':0x0,'column':_0xf8b16f,'includeAllSlots':!0x1}),_0x16e78a=Array['from'](_0x349462)['map'](_0x43961e=>_0x27ff80['createRangeOn'](_0x43961e['cell']));_0x3072b8['markMultiRangeInsertion'](_0x16e78a,'tableColumn');});});}for(const _0x56b0f0 of['removeTableRow','removeTableColumn']){const _0x5de28b=_0x56b0f0['substr'](0xb),_0x54e99f=_0x5de28b['toLowerCase'](),_0x33ec79=_0x54e99f['substr'](0x0,0x3)+'span',_0x57d217='table'+_0x5de28b,_0x282ce9='min'+_0x5de28b,_0x5d97d2='max'+_0x5de28b;_0x3072b8['enableCommand'](_0x56b0f0,()=>{_0x473692['model']['change'](_0x15ada5=>{const _0x52cfa3=_0x36931b['getSelectionAffectedTableCells'](_0x206e79),_0x170725=_0x52cfa3[0x0]['findAncestor']('table');let _0x54d244;if('removeTableRow'==_0x56b0f0){const _0x590369=_0x36931b['getRowIndexes'](_0x52cfa3);_0x54d244={'startRow':_0x590369['first'],'endRow':_0x590369['last'],'includeAllSlots':!0x0};}else{const _0x584135=_0x36931b['getColumnIndexes'](_0x52cfa3);_0x54d244={'startColumn':_0x584135['first'],'endColumn':_0x584135['last'],'includeAllSlots':!0x0};}const _0x17a09e=_0x36931b['createTableWalker'](_0x170725,_0x54d244),_0x287b74=Array['from'](_0x17a09e)['map'](({cell:_0x166b2f})=>_0x166b2f),_0x4b292a=Re(_0x287b74['filter'](_0x42b603=>_0x42b603['hasAttribute'](_0x33ec79))),_0x3a1835=Re(_0x287b74['filter'](_0x56b646=>!_0x56b646['hasAttribute'](_0x33ec79)))['map'](_0xec87dd=>_0x15ada5['createRangeOn'](_0xec87dd)),_0x3ae319=_0x3072b8['markMultiRangeDeletion'](_0x3a1835,_0x57d217);if(_0x3ae319&&('tableRow'==_0x3ae319['subType']||'tableColumn'==_0x3ae319['subType'])){const _0x4272f3=this['_getSuggestionCoords'](_0x3ae319);for(const _0x2464ff of _0x4b292a){const _0x15e2b0=_0x15ada5['createRangeOn'](_0x2464ff),_0x2ba2bb=_0x36931b['getCellLocation'](_0x2464ff),_0x3e58fd=_0x2464ff['getAttribute'](_0x33ec79)-0x1,_0x500ea9=_0x4272f3[_0x282ce9],_0x176d3c=_0x4272f3[_0x5d97d2];_0x500ea9<=_0x2ba2bb[_0x54e99f]&&_0x2ba2bb[_0x54e99f]+_0x3e58fd<=_0x176d3c&&_0x3ae319['addRange'](_0x15e2b0);}}});});}function _0x495354(_0x58ccd7){const _0x3987a0=Array['from'](_0x206e79['getRanges']())['map'](_0x5bab1a=>_0x121353['fromRange'](_0x5bab1a));_0x473692['model']['change'](_0x468440=>{const _0x13f3fa=_0x468440['batch'];_0x58ccd7=_0x58ccd7['filter'](_0x4f3922=>'$graveyard'!=_0x4f3922['root']['rootName']),_0x468440['setSelection'](_0x58ccd7),_0x473692['commands']['get']('removeTableRow')['refresh'](),_0x473692['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x473692['model']['enqueueChange'](()=>{_0x473692['model']['enqueueChange'](_0x13f3fa,_0x6fdb31=>{const _0xd8b7db=_0x3987a0['filter'](_0x104d95=>'$graveyard'!=_0x104d95['root']['rootName']);_0xd8b7db['length']>0x0&&_0x6fdb31['setSelection'](_0xd8b7db);for(const _0x70f068 of _0x3987a0)_0x70f068['detach']();});});});}function _0x39dc3a(_0x588ec7){_0x473692['model']['change'](_0xe67c29=>{const _0x40cb0e=Array['from'](_0x206e79['getRanges']())['map'](_0x4026c2=>_0x121353['fromRange'](_0x4026c2)),_0x516f88=[];for(const _0x27e9b6 of _0x588ec7)for(const _0x420e63 of _0x27e9b6['getItems']({'shallow':!0x0}))_0x516f88['push'](_0x420e63);for(const _0x2418e0 of _0x516f88)'$graveyard'!=_0x2418e0['root']['rootName']&&(_0xe67c29['setSelection'](_0xe67c29['createPositionAt'](_0x2418e0,0x0)),_0x473692['commands']['get']('removeTableColumn')['refresh'](),_0x473692['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4ef78e=_0x40cb0e['filter'](_0x16f1dd=>'$graveyard'!=_0x16f1dd['root']['rootName']);_0x4ef78e['length']>0x0&&_0xe67c29['setSelection'](_0x4ef78e);for(const _0x3f7e71 of _0x40cb0e)_0x3f7e71['detach']();});}function _0x1217a8(_0x1c88fd,_0x2b5b99){return _0x2b5b99['every'](_0x484c4b=>_0x1c88fd['some'](_0x2f7f36=>_0x2f7f36['end']['isEqual'](_0x484c4b['start'])||_0x484c4b['end']['isEqual'](_0x2f7f36['start'])));}function _0x47ccab(_0x2dfa27,_0x4bd404){return!_0x2dfa27['some'](_0x52d2e0=>_0x4bd404['some'](_0x202dc9=>_0x52d2e0['isIntersecting'](_0x202dc9)))&&_0x2dfa27['some'](_0x38d431=>_0x4bd404['some'](_0x1a60be=>_0x38d431['end']['isTouching'](_0x1a60be['start'])));}_0x3072b8['descriptionFactory']['registerDescriptionCallback'](_0x367944=>{if('insertion'!=_0x367944['type']&&'deletion'!=_0x367944['type'])return;const _0x480264=_0x367944['getContainedElement']();if(null!=_0x480264&&_0x480264['is']('element','table')){if('insertion'==_0x367944['type']){const _0x28c61e=_0x367944['getItems']()['filter'](_0x451e5b=>_0x451e5b['is']('$textProxy'))['map'](_0x110ece=>_0x110ece['data']);if(_0x28c61e['length'])return{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x28c61e['join']('\x20')+'\x22'))};}if('deletion'==_0x367944['type']){const _0x59b5d9=_0x367944['getItems']()['filter'](_0x373f98=>_0x373f98['is']('$textProxy'))['map'](_0xe7e53a=>_0xe7e53a['data']);if(_0x59b5d9['length'])return{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x59b5d9['join']('\x20')+'\x22'))};}}}),_0x3072b8['descriptionFactory']['registerDescriptionCallback'](_0x447cf5=>{if('tableRow'==_0x447cf5['subType']){const _0x25954f=_0x447cf5['getItems']()['filter'](_0x1c3299=>_0x1c3299['is']('$textProxy'))['map'](_0x4d09da=>_0x4d09da['data']),_0x4a2e94=this['_getSuggestionCoords'](_0x447cf5),_0xb1c243=_0x4a2e94['maxRow']-_0x4a2e94['minRow']+0x1;if('insertion'==_0x447cf5['type'])return _0x25954f['length']?{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb1c243,'\x22'+_0x25954f['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW',_0xb1c243))};if('deletion'==_0x447cf5['type'])return _0x25954f['length']?{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xb1c243,'\x22'+_0x25954f['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_ROW',_0xb1c243))};}if('tableColumn'==_0x447cf5['subType']){const _0x425472=_0x447cf5['getItems']()['filter'](_0x3060bd=>_0x3060bd['is']('$textProxy'))['map'](_0x3f62f8=>_0x3f62f8['data']),_0x39220f=this['_getSuggestionCoords'](_0x447cf5),_0x27af07=_0x39220f['maxColumn']-_0x39220f['minColumn']+0x1;if('insertion'==_0x447cf5['type'])return _0x425472['length']?{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27af07,'\x22'+_0x425472['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x596864,'*Insert:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN',_0x27af07))};if('deletion'==_0x447cf5['type'])return _0x425472['length']?{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x27af07,'\x22'+_0x425472['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x596864,'*Remove:*\x20%0',At(_0x596864,'ELEMENT_TABLE_COLUMN',_0x27af07))};}}),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x495354),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x495354),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39dc3a),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39dc3a),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1217a8),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1217a8),_0x3072b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47ccab),_0x3072b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47ccab);}['_acceptFormatSuggestionCallbackFactory'](){const _0x45b040=this['editor'],_0x20bad8=_0x45b040['model']['document']['selection'];return(_0x46892d,_0x3dfbed)=>{_0x45b040['model']['change'](_0x3aab15=>{const {commandName:_0x32b3ac,commandParams:_0x1524a6}=_0x3dfbed;let _0x41a2e5=_0x46892d[0x0]['end']['nodeBefore'];_0x1524a6&&_0x1524a6[0x0]&&!0x1===_0x1524a6[0x0]['forceValue']&&(_0x41a2e5=_0x46892d[0x0]['start']['nodeAfter']);const _0x289242=_0x3aab15['createRangeIn'](_0x41a2e5);if('$graveyard'==_0x289242['root']['rootName'])return;const _0x38fd43=Array['from'](_0x20bad8['getRanges']())['map'](_0x90dce7=>_0x121353['fromRange'](_0x90dce7));_0x3aab15['setSelection'](_0x289242),_0x45b040['commands']['get'](_0x32b3ac)['refresh'](),_0x1524a6['push']({'forceDefaultExecution':!0x0}),_0x45b040['execute'](_0x32b3ac,..._0x1524a6);const _0x23c081=_0x38fd43['filter'](_0x3a5ba2=>'$graveyard'!=_0x3a5ba2['root']['rootName']);_0x23c081['length']>0x0&&_0x3aab15['setSelection'](_0x23c081);for(const _0x48c359 of _0x38fd43)_0x48c359['detach']();});};}['_getCoordsForCells'](_0x103349){const _0x27fddd=this['editor']['plugins']['get']('TableUtils');let _0x21ea27=Number['MAX_SAFE_INTEGER'],_0x83e7e=Number['MIN_SAFE_INTEGER'],_0x27cf4b=Number['MAX_SAFE_INTEGER'],_0x27d867=Number['MIN_SAFE_INTEGER'];for(const _0x21d1ee of _0x103349){if('$graveyard'==_0x21d1ee['root']['rootName'])continue;const {row:_0x5694cd,column:_0x585f54}=_0x27fddd['getCellLocation'](_0x21d1ee),_0x407522=_0x21d1ee['hasAttribute']('rowspan')?_0x21d1ee['getAttribute']('rowspan')-0x1:0x0,_0xbc7068=_0x21d1ee['hasAttribute']('colspan')?_0x21d1ee['getAttribute']('colspan')-0x1:0x0;_0x21ea27=_0x5694cd<_0x21ea27?_0x5694cd:_0x21ea27,_0x83e7e=_0x5694cd+_0x407522>_0x83e7e?_0x5694cd+_0x407522:_0x83e7e,_0x27cf4b=_0x585f54<_0x27cf4b?_0x585f54:_0x27cf4b,_0x27d867=_0x585f54+_0xbc7068>_0x27d867?_0x585f54+_0xbc7068:_0x27d867;}return{'minRow':_0x21ea27,'maxRow':_0x83e7e,'minColumn':_0x27cf4b,'maxColumn':_0x27d867};}['_setupColumnsRowsFixing'](){const _0x1e3692=this['editor'],_0x49c480=_0x1e3692['plugins']['get']('TrackChangesEditing'),_0x3c9280=_0x1e3692['plugins']['get']('TableUtils');_0x1e3692['model']['document']['on']('change:data',()=>{const _0x2843c0=Array['from'](_0x1e3692['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d1f1,data:_0x16960a}of _0x2843c0){const {group:_0x440dbf,id:_0x41b2a6,subType:_0x3b9a63}=_0x39dc22(_0x39d1f1);if('suggestion'!=_0x440dbf)continue;if(null!=_0x16960a['oldRange'])continue;const _0x4ea1d1=_0x49c480['getSuggestion'](_0x41b2a6);this['_tablePostFixingSubtypes']['includes'](_0x3b9a63)&&this['_tableSuggestions']['add'](_0x4ea1d1);}},{'priority':'low'});const _0x1d4674=(_0x43081a,_0x3db2bb)=>{let _0x370ebf=!0x1;const _0x35065f=_0x3db2bb['createRangeOn'](_0x43081a),_0xf21c5e=_0x43081a['findAncestor']('table'),_0x2455b0=_0x3c9280['getCellLocation'](_0x43081a);for(const _0x30bde5 of this['_tableSuggestions']){const _0x6ab6cd=_0x30bde5['subType'],_0x2ea46f=_0x6ab6cd['startsWith']('tablePaste'),_0xfa1dad=_0x6ab6cd['substr'](_0x2ea46f?0xa:0x5),_0x55b7ff=_0xfa1dad['toLowerCase'](),_0x3e6cbf=_0x55b7ff['substr'](0x0,0x3)+'span',_0x5a6c39='min'+_0xfa1dad,_0x47c30a='max'+_0xfa1dad;if(!_0x30bde5['isInContent'])continue;if(_0xf21c5e!=_0x30bde5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30bde5['isIntersectingWithRange'](_0x35065f))continue;const _0x37c06e=_0x43081a['hasAttribute'](_0x3e6cbf)?_0x43081a['getAttribute'](_0x3e6cbf)-0x1:0x0,_0xbfb68d=this['_getSuggestionCoords'](_0x30bde5),_0x4639ba=_0xbfb68d[_0x5a6c39],_0x1c4572=_0xbfb68d[_0x47c30a];_0x4639ba<=_0x2455b0[_0x55b7ff]&&_0x2455b0[_0x55b7ff]+_0x37c06e<=_0x1c4572&&(_0x30bde5['addRange'](_0x35065f),_0x370ebf=!0x0);}return _0x370ebf;};_0x1e3692['model']['document']['registerPostFixer'](_0x1eb715=>{let _0x2b9789=!0x1;for(const _0xdb02e9 of _0x1e3692['model']['document']['differ']['getChanges']())if('insert'==_0xdb02e9['type']){if('tableRow'==_0xdb02e9['name']){for(const _0x579cad of _0xdb02e9['position']['nodeAfter']['getChildren']())_0x2b9789=_0x2b9789||_0x1d4674(_0x579cad,_0x1eb715);}else'tableCell'==_0xdb02e9['name']&&(_0x2b9789=_0x2b9789||_0x1d4674(_0xdb02e9['position']['nodeAfter'],_0x1eb715));}return _0x2b9789;});}['_getSuggestionCoords'](_0x30d44b){return this['_getCoordsForCells'](_0x30d44b['getRanges']()['map'](_0x11c6be=>_0x11c6be['start']['nodeAfter']));}}function Re(_0x575b3a){return Array['from'](new Set(_0x575b3a)['values']());}class Se extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x44113f=this['editor'],_0x47c6cd=_0x44113f['model']['document']['selection'],_0x3e149b=_0x44113f['locale'];if(!_0x44113f['plugins']['has']('TableEditing'))return;const _0x395ef3=_0x44113f['plugins']['get']('TrackChangesEditing'),_0xce18d9=_0x44113f['plugins']['get']('TableUtils'),_0x558761=_0x44113f['plugins']['get'](Ne);_0x558761['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x395ef3['enableCommand']('mergeTableCells',()=>{const _0x250e18=_0xce18d9['getSelectionAffectedTableCells'](_0x44113f['model']['document']['selection']);_0x44113f['model']['change'](()=>{_0x395ef3['markMultiRangeBlockFormat'](_0x250e18,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x44113f['commands']['get']('mergeTableCells')['on']('execute',(_0x279a9,_0x2a2175)=>{_0x44113f['commands']['get']('trackChanges')['value']&&(_0x2a2175['length']>0x0&&_0x2a2175[_0x2a2175['length']-0x1]&&_0x2a2175[_0x2a2175['length']-0x1]['forceDefaultExecution']||_0x395ef3['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x279a9['stop']());},{'priority':'highest'});for(const _0x188169 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x38bb8d=_0x44113f['commands']['get'](_0x188169);_0x395ef3['enableCommand'](_0x188169,()=>{const _0x233bef=_0x44113f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x488738=>_0x488738['is']('element','tableCell')),_0x570b4d=_0x38bb8d['value'];_0x44113f['model']['change'](()=>{_0x395ef3['markMultiRangeBlockFormat']([_0x233bef,_0x570b4d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x474396 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14eac3=_0x44113f['commands']['get'](_0x474396);_0x395ef3['enableCommand'](_0x474396,()=>{const _0x95a65f=_0xce18d9['getSelectionAffectedTableCells'](_0x44113f['model']['document']['selection'])[0x0],_0xcf13ea=_0x95a65f['findAncestor']('table'),{column:_0x51df18,row:_0x148c29}=_0xce18d9['getCellLocation'](_0x95a65f);let _0x2a04da=[];if('horizontally'==_0x14eac3['direction']){const _0x55b51c=_0xce18d9['createTableWalker'](_0xcf13ea,{'startRow':_0x148c29,'endRow':_0x148c29,'includeAllSlots':!0x0});_0x2a04da=Array['from'](_0x55b51c)['map'](_0x5559de=>_0x5559de['cell']);}else{const _0x3276a1=_0xce18d9['createTableWalker'](_0xcf13ea,{'column':_0x51df18,'includeAllSlots':!0x0});_0x2a04da=Array['from'](_0x3276a1)['map'](_0x3e280e=>_0x3e280e['cell']);}_0x44113f['model']['change'](_0x1d5573=>{_0x395ef3['markBlockFormat'](_0x1d5573['createRangeOn'](_0x95a65f),{'commandName':_0x474396,'commandParams':[]},_0x2a04da,_0x474396);});});}_0x395ef3['descriptionFactory']['registerDescriptionCallback'](_0x4e7283=>{if('formatBlock'!=_0x4e7283['type']&&'formatInline'!=_0x4e7283['type'])return;const {data:_0x6fdb89}=_0x4e7283;return _0x6fdb89&&'mergeTableCells'==_0x6fdb89['commandName']?{'type':'format','content':At(_0x3e149b,'*Merge\x20cells*')}:void 0x0;}),_0x395ef3['descriptionFactory']['registerDescriptionCallback'](_0x255ba0=>{if('formatBlock'!=_0x255ba0['type']&&'formatInline'!=_0x255ba0['type'])return;const {data:_0x36883f}=_0x255ba0;return _0x36883f?'splitTableCellVertically'==_0x36883f['commandName']?{'type':'format','content':At(_0x3e149b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x36883f['commandName']?{'type':'format','content':At(_0x3e149b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xa093a4=_0x558761['_acceptFormatSuggestionCallbackFactory']();for(const _0x18e428 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18e428,'accept',_0xa093a4);for(const _0x1c9419 of['splitTableCellVertically','splitTableCellHorizontally'])_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c9419,'accept',_0xa093a4);_0x395ef3['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xddfd2d=>{_0x44113f['model']['change'](_0x60b940=>{const _0x8b70db=Array['from'](_0x47c6cd['getRanges']())['map'](_0x2e74b1=>_0x121353['fromRange'](_0x2e74b1));_0x60b940['setSelection'](_0xddfd2d),_0x44113f['commands']['get']('mergeTableCells')['refresh'](),_0x44113f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x49431b=_0x8b70db['filter'](_0x41e072=>'$graveyard'!=_0x41e072['root']['rootName']);_0x49431b['length']>0x0&&_0x60b940['setSelection'](_0x49431b);for(const _0x8f1972 of _0x8b70db)_0x8f1972['detach']();});});for(const _0x3584a0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4e3504=_0x44113f['commands']['get'](_0x3584a0);_0x4e3504['on']('set:isEnabled',(_0x15747b,_0xef41f3,_0xcedc3e)=>{if(_0xcedc3e){const _0x24b7c7=_0x44113f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xb86373=>_0xb86373['is']('element','tableCell'));this['_areMergableCells'](_0x4e3504['value'],_0x24b7c7)||(_0x15747b['return']=!0x1,_0x15747b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x39296a=this['editor']['commands']['get']('mergeTableCells'),_0x21a4d4=this['editor']['plugins']['get']('TableUtils');if(!_0x39296a['isEnabled'])return!0x1;const _0x4cc854=_0x21a4d4['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x33952b of _0x4cc854)for(const _0x3c4a82 of _0x4cc854)if(_0x33952b!=_0x3c4a82&&!this['_areMergableCells'](_0x33952b,_0x3c4a82))return!0x1;return!0x0;}['_areMergableCells'](_0x2fbdf8,_0x100685){const _0x3d413d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481098=this['editor']['model']['createRangeOn'](_0x2fbdf8),_0x514b3d=this['editor']['model']['createRangeOn'](_0x100685),_0x375be1=new Set(),_0x2a0f3e=new Set();for(const _0x1a5b1a of _0x3d413d['getSuggestions']())if(('insertion'==_0x1a5b1a['type']||'deletion'==_0x1a5b1a['type']||'mergeTableCells'==_0x1a5b1a['subType'])&&_0x1a5b1a['isInContent']){for(const _0x456e09 of _0x1a5b1a['getRanges']())_0x456e09['containsRange'](_0x481098,!0x0)&&_0x375be1['add'](_0x1a5b1a['type']+':'+_0x1a5b1a['author']['id']),_0x456e09['containsRange'](_0x514b3d,!0x0)&&_0x2a0f3e['add'](_0x1a5b1a['type']+':'+_0x1a5b1a['author']['id']);}if(_0x375be1['size']!=_0x2a0f3e['size'])return!0x1;for(const _0x40a63b of _0x375be1)if(!_0x2a0f3e['has'](_0x40a63b))return!0x1;return!0x0;}}class Me extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x419ba7=this['editor'];if(!_0x419ba7['plugins']['has']('TableEditing'))return;const _0x193d20=_0x419ba7['locale'],_0x977bdd=_0x419ba7['plugins']['get']('TrackChangesEditing');_0x977bdd['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x977bdd['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x977bdd['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x193d20,'FORMAT_HEADER_ROW')),_0x977bdd['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x193d20,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1faf13=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f87aa=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x1faf13['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2f87aa),_0x1faf13['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2f87aa),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5807a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5921ad=this['editor']['plugins']['get']('TableUtils');function _0x2eaf26({showActiveMarker:_0x28b0bc=!0x0,setDataAttribute:_0x52519b=!0x0}={}){return(_0x212354,_0x1d755b,_0x28a9b2)=>{const {type:_0x5f1cf7,id:_0x2f9245}=_0x39dc22(_0x1d755b['markerName']);if(!_0x5807a5['hasSuggestion'](_0x2f9245))return;const _0x4e656b=_0x5807a5['getSuggestion'](_0x2f9245),_0x3df5ca=_0x4e656b['data'];if('formatBlock'!=_0x4e656b['type']||!_0x3df5ca||'setTableColumnHeader'!=_0x3df5ca['commandName'])return;if(_0x1d755b['item'])return void _0x212354['stop']();if(!_0x28a9b2['consumable']['consume'](_0x1d755b['markerRange'],_0x212354['name']))return;const _0x41dcb5=_0x1d755b['markerRange']['start']['nodeAfter'],_0x435e2c=_0x1d755b['markerRange']['end']['nodeBefore'],_0x183d2d=_0x41dcb5['parent']['parent'],{column:_0x5e99ff}=_0x5921ad['getCellLocation'](_0x41dcb5),{column:_0x2aa438}=_0x5921ad['getCellLocation'](_0x435e2c);for(let _0x3ce1a6=_0x5e99ff;_0x3ce1a6<=_0x2aa438;_0x3ce1a6++){const _0xf6dc54=_0x5921ad['createTableWalker'](_0x183d2d,{'column':_0x3ce1a6,'includeAllSlots':!0x1});for(const _0x547d6e of _0xf6dc54){const _0x243b9e=_0x547d6e['cell'],_0x2df7f1=_0x28a9b2['mapper']['toViewElement'](_0x243b9e);_0x28a9b2['writer']['addClass']('ck-suggestion-marker-'+_0x5f1cf7,_0x2df7f1),_0x52519b&&_0x28a9b2['writer']['setAttribute']('data-suggestion',_0x2f9245,_0x2df7f1),_0x28a9b2['mapper']['bindElementToMarker'](_0x2df7f1,_0x1d755b['markerName']),_0x28b0bc&&(_0x5807a5['activeMarkers']['includes'](_0x1d755b['markerName'])?_0x28a9b2['writer']['addClass']('ck-suggestion-marker--active',_0x2df7f1):_0x28a9b2['writer']['removeClass']('ck-suggestion-marker--active',_0x2df7f1));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2eaf26(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x98b1f6,_0x50134c,_0x41de18)=>{_0x41de18['options']['showSuggestionHighlights']&&_0x2eaf26({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x98b1f6,_0x50134c,_0x41de18);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3c4ea2,_0x1e122c,_0x44d9e2)=>{const {type:_0x598852,id:_0xa25663}=_0x39dc22(_0x1e122c['markerName']);if(!_0x5807a5['hasSuggestion'](_0xa25663))return;const _0x4d5538=_0x5807a5['getSuggestion'](_0xa25663),_0x1dc951=_0x4d5538['data'];if('formatBlock'!=_0x4d5538['type']||!_0x1dc951||'setTableColumnHeader'!=_0x1dc951['commandName'])return;const _0x960f8b=_0x44d9e2['mapper']['markerNameToElements'](_0x1e122c['markerName']);if(_0x960f8b){for(const _0x39175e of _0x960f8b)_0x44d9e2['writer']['removeClass']('ck-suggestion-marker-'+_0x598852,_0x39175e),_0x44d9e2['writer']['removeClass']('ck-suggestion-marker--active',_0x39175e),_0x44d9e2['writer']['removeAttribute']('data-suggestion',_0x39175e),_0x44d9e2['mapper']['unbindElementFromMarkerName'](_0x39175e,_0x1e122c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x28412d=this['editor'],_0x22d984=_0x28412d['locale'];function _0x5aa507(_0x4cad06){return{'type':'format','content':At(_0x22d984,'*Format:*\x20%0',_0x4cad06)};}_0x28412d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0090=>{if('formatBlock'!=_0x4e0090['type'])return;const {data:_0x201f6b}=_0x4e0090;if(_0x201f6b){if('setTableRowHeader'==_0x201f6b['commandName']){const _0x261bc3=_0x201f6b['commandParams'][0x0]['forceValue'];return _0x5aa507(At(_0x22d984,_0x261bc3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x201f6b['commandName']){const _0x590f98=_0x201f6b['commandParams'][0x0]['forceValue'];return _0x5aa507(At(_0x22d984,_0x590f98?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x5955e0=this['editor'];if(!_0x5955e0['plugins']['has']('TableEditing')||!_0x5955e0['config']['get']('table.enableFooters'))return;const _0x26c3b7=_0x5955e0['locale'],_0xfda8c8=_0x5955e0['plugins']['get']('TrackChangesEditing');_0xfda8c8['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xfda8c8['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x26c3b7,'FORMAT_FOOTER_ROW'));}}class we extends _0x54c126{['afterInit'](){const _0x7aa115=this['editor'],_0x21dcad=_0x7aa115['locale'],_0x425574=_0x7aa115['plugins']['get']('TrackChangesEditing');function _0x3b58cd(_0xe54f3a){return{'type':'format','content':''+At(_0x21dcad,'*Set\x20table\x20type:*\x20%0',_0xe54f3a)};}_0x7aa115['plugins']['has']('TableLayout')&&(_0x425574['enableCommand']('insertTableLayout'),_0x425574['enableDefaultAttributesIntegration']('tableType'),_0x425574['descriptionFactory']['registerElementLabel'](_0x912548=>_0x912548['is']('element','table')&&'layout'===_0x912548['getAttribute']('tableType'),_0x12d612=>At(_0x21dcad,'ELEMENT_LAYOUT_TABLE',_0x12d612)),_0x425574['descriptionFactory']['registerDescriptionCallback'](_0x549bf0=>{const {data:_0x138282}=_0x549bf0;if(_0x138282&&'tableType'==_0x138282['key'])switch(_0x138282['newValue']){case'layout':return _0x3b58cd(At(_0x21dcad,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x3b58cd(At(_0x21dcad,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x5130f4=>[_0x5130f4,null]));class De extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x2e617c=this['editor'];if(!_0x2e617c['plugins']['has']('TableClipboard'))return;const _0x300155=_0x2e617c['plugins']['get']('TrackChangesEditing'),_0x2c49e0=_0x2e617c['plugins']['get']('TableUtils'),_0x3ccdc5=_0x2e617c['plugins']['get'](Ne),_0x2e7b77=_0x2e617c['plugins']['get']('TableClipboard'),_0x5338f4=_0x2e617c['plugins']['get']('TableSelection'),_0x1fdbef=_0x2e617c['plugins']['get'](ut);_0x3ccdc5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2e617c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2e617c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x196ac2=null,_0x57c4a3=!0x1;_0x1fdbef['on']('contentInsertion',(_0xe72bfa,_0xcaee3a)=>{_0x57c4a3='paste'===_0xcaee3a['method'];}),_0x2e617c['model']['on']('insertContent',(_0x1778d3,_0x245486)=>{if(!_0x57c4a3&&null===_0x5338f4['getSelectedTableCells']())return;const [_0x44d482,_0x499e9f]=_0x245486,_0x4e660f=_0x245486[_0x245486['length']-0x1];_0x4e660f&&_0x4e660f['forceDefaultExecution']||_0x300155['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x38d6cf,_0x3b8052,_0x4d7317,_0x5f0385,_0x4ab6d4){if(_0x3b8052&&!_0x3b8052['is']('documentSelection'))return!0x1;const _0xe78660=_0x4ab6d4['getTableIfOnlyTableInContent'](_0x38d6cf,_0x4d7317);if(!_0xe78660||!xe(_0xe78660,void 0x0,_0x5f0385))return!0x1;const _0x482b74=_0x5f0385['getSelectionAffectedTableCells'](_0x4d7317['document']['selection']);if(!_0x482b74['length'])return!0x1;const _0x525b6d=_0x482b74[0x0]['findAncestor']('table'),_0x2a2550=_0x5f0385['getRowIndexes'](_0x482b74),_0x11afcc=_0x5f0385['getColumnIndexes'](_0x482b74),_0x5e4d6f={'startRow':_0x2a2550['first'],'endRow':_0x2a2550['last'],'startColumn':_0x11afcc['first'],'endColumn':_0x11afcc['last']};return 0x1==_0x482b74['length']&&(_0x5e4d6f['endRow']+=_0x5f0385['getRows'](_0xe78660)-0x1,_0x5e4d6f['endColumn']+=_0x5f0385['getColumns'](_0xe78660)-0x1),xe(_0x525b6d,_0x5e4d6f,_0x5f0385);}(_0x44d482,_0x499e9f,_0x2e617c['model'],_0x2c49e0,_0x2e7b77)&&(_0x1778d3['stop'](),_0x196ac2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2e617c['model']['change'](()=>{_0x2e617c['model']['insertContent'](_0x245486[0x0],_0x245486[0x1],_0x245486[0x2],{'forceDefaultExecution':!0x0});const _0x53c89a=_0x171c64(),{rowInsertionRanges:_0x1882db,columnInsertionRanges:_0x22983d,insertionRanges:_0x18fbd8,deletionRanges:_0x22ea9d,cells:_0xf8b125}=_0x196ac2;_0x1882db['length']&&_0x300155['markMultiRangeInsertion'](_0x1882db,'tablePasteRow',{'tablePasteChainId':_0x53c89a}),_0x22983d['length']&&_0x300155['markMultiRangeInsertion'](_0x22983d,'tablePasteColumn',{'tablePasteChainId':_0x53c89a}),_0x18fbd8['length']&&(_0x300155['markMultiRangeInsertion'](_0x18fbd8,'tablePaste',{'tablePasteChainId':_0x53c89a,'skipNestingCheck':!0x0}),_0x18fbd8['forEach'](_0x43eb98=>_0x43eb98['detach']?.())),_0x22ea9d['length']&&(_0x300155['markMultiRangeDeletion'](_0x22ea9d,'tablePaste',{'tablePasteChainId':_0x53c89a,'skipNestingCheck':!0x0}),_0x22ea9d['forEach'](_0x49cc16=>_0x49cc16['detach']?.()));const _0x1681f9=_0x300155['markMultiRangeBlockFormat'](_0xf8b125['map'](({element:_0x17906c})=>_0x17906c),{'formatGroupId':_0x171c64()},[],'tablePasteCell',{'tablePasteChainId':_0x53c89a});if(_0x1681f9){const _0x4bd4d1=_0x1681f9['getMarkers'](),_0x1d0224=[];for(const {element:_0x56416e,attributes:_0x1469b6}of _0xf8b125){if(!_0x1469b6)continue;const _0x217352=_0x2e617c['model']['createRangeOn'](_0x56416e),_0x1d17f4=_0x4bd4d1['find'](_0x2451a3=>_0x2451a3['getRange']()['isEqual'](_0x217352));_0x1d17f4&&_0x1d0224['push']([_0x1d17f4['name'],_0x1469b6]);}_0x1d0224['length']&&_0x1681f9['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d0224));}_0x196ac2=null;}));},{'priority':_0x2ac962['high']+0xa}),_0x1fdbef['on']('contentInsertion',()=>{_0x57c4a3=!0x1;},{'priority':'lowest'}),_0x2e617c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x400a7f,_0x123ff6)=>{const [_0x4a8bcd,_0xff9b0e,,_0x439059]=_0x123ff6;if(!_0x196ac2)return;_0x400a7f['stop']();const _0x11cccd=_0x4a8bcd['cell'],_0x4d93b7=_0xff9b0e,_0x5b32e2=ve(_0x11cccd),_0x1b93b4=ve(_0x4d93b7);_0x400a7f['return']=_0x11cccd;let _0x12e125=null,_0x2afd4b=null;if(_0x1b93b4||_0x5b32e2){if(_0x5b32e2&&!_0x1b93b4){_0x439059['remove'](_0x11cccd['getChild'](0x0));for(const _0x9270c9 of Array['from'](_0x4d93b7['getChildren']()))_0x439059['insert'](_0x9270c9,_0x11cccd,'end');const _0x4dc703=_0x196ac2['rowInsertionIndexes']['includes'](_0x4a8bcd['row']),_0xdb7ec7=_0x196ac2['columnInsertionIndexes']['includes'](_0x4a8bcd['column']);_0x4dc703||_0xdb7ec7||(_0x12e125=_0x121353['fromRange'](_0x439059['createRangeIn'](_0x11cccd)));}else _0x1b93b4&&!_0x5b32e2&&(_0x2afd4b=_0x439059['createRangeIn'](_0x11cccd));}else{const _0x53dda8=_0x439059['createElement']('tableCellSuggestion'),_0x52dfff=_0x439059['createElement']('tableCellSuggestion');_0x439059['wrap'](_0x439059['createRangeIn'](_0x11cccd),_0x52dfff),_0x439059['insert'](_0x53dda8,_0x11cccd,0x0);for(const _0x5b1f28 of Array['from'](_0x4d93b7['getChildren']()))_0x439059['insert'](_0x5b1f28,_0x53dda8,'end');_0x12e125=_0x121353['fromRange'](_0x439059['createRangeOn'](_0x53dda8)),_0x2afd4b=_0x121353['fromRange'](_0x439059['createRangeOn'](_0x52dfff));}const _0x9bd144=Array['from'](_0x4d93b7['getAttributes']())['filter'](([_0x368ac4])=>Be['includes'](_0x368ac4));_0x196ac2['cells']['push']({'element':_0x11cccd,'attributes':_0x9bd144['length']?Object['fromEntries'](_0x9bd144):null}),_0x12e125&&_0x196ac2['insertionRanges']['push'](_0x12e125),_0x2afd4b&&_0x196ac2['deletionRanges']['push'](_0x2afd4b);},{'priority':'high'}),_0x2c49e0['on']('insertColumns',(_0x10b5c7,_0x3c1b54)=>{const [_0xd5400e,_0x167751={}]=_0x3c1b54;if(!_0x196ac2)return;const _0x3f0511=_0x167751['at']||0x0,_0x43706c=_0x167751['columns']||0x1;_0x196ac2['columnInsertionIndexes']=new Array(_0x43706c)['fill'](_0x3f0511)['map']((_0x3baef9,_0x499be3)=>_0x3baef9+_0x499be3);for(const {cell:_0x50c0fa}of _0x2c49e0['createTableWalker'](_0xd5400e,{'startColumn':_0x3f0511,'endColumn':_0x3f0511+_0x43706c-0x1}))_0x196ac2['columnInsertionRanges']['push'](_0x2e617c['model']['createRangeOn'](_0x50c0fa));},{'priority':'low'}),_0x2c49e0['on']('insertRows',(_0x4fb4cf,_0x22c342)=>{const [_0x54bf0f,_0x48fae7={}]=_0x22c342;if(!_0x196ac2)return;const _0xd7f48a=_0x48fae7['at']||0x0,_0xe0ac5b=_0x48fae7['rows']||0x1;_0x196ac2['rowInsertionIndexes']=new Array(_0xe0ac5b)['fill'](_0xd7f48a)['map']((_0x43ea5e,_0x448da7)=>_0x43ea5e+_0x448da7);for(const {cell:_0x512f23}of _0x2c49e0['createTableWalker'](_0x54bf0f,{'startRow':_0xd7f48a,'endRow':_0xd7f48a+_0xe0ac5b-0x1}))_0x196ac2['rowInsertionRanges']['push'](_0x2e617c['model']['createRangeOn'](_0x512f23));},{'priority':'low'}),_0x300155['descriptionFactory']['registerDescriptionCallback'](_0xe3aa3=>{if(_0xe3aa3['subType']&&_0xe3aa3['subType']['startsWith']('tablePaste'))return _0xe3aa3['previous']?{}:{'type':'insertion','content':At(_0x2e617c['locale'],'*Replace\x20table\x20cells*')};});const _0x63ac90=()=>!0x1;for(const _0x39d95f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x300155['_suggestionFactory']['registerCustomCallback']('insertion',_0x39d95f,'join',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('deletion',_0x39d95f,'join',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x39d95f,'join',_0x63ac90);_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x63ac90),_0x300155['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x31102d,_0x4fdfd7,_0x27caac)=>{const _0x45b18f=_0x31102d['map'](_0x35be9f=>_0x35be9f['getContainedElement']())['filter'](_0x1e39d8=>_0x1e39d8),_0x45fff4=new Map(_0x45b18f['map'](_0xb93782=>[_0xb93782,null]));if(_0x196ac2){for(const {element:_0x9c26b1,attributes:_0x3a3507}of _0x196ac2['cells'])_0x3a3507&&_0x45fff4['set'](_0x9c26b1,_0x3a3507);}else{if(_0x27caac&&_0x27caac['markerAttributes'])for(const [_0x2c4914,_0x7e1421]of Object['entries'](_0x27caac['markerAttributes'])){const _0x3882e8=_0x2e617c['model']['markers']['get'](_0x2c4914),_0x384beb=_0x3882e8?_0x3882e8['getRange']()['getContainedElement']():null;_0x384beb&&_0x45fff4['set'](_0x384beb,_0x7e1421);}}_0x2e617c['model']['change'](_0x4a7f46=>{for(const [_0x577f6d,_0x528bc5]of _0x45fff4)_0x4a7f46['setAttributes']({...Fe,..._0x528bc5},_0x577f6d);});});const _0x3dcfe8=(_0x82f567,_0x3fb154)=>{_0x300155['_suggestionFactory']['registerCustomCallback'](_0x82f567,'tablePaste',_0x3fb154,(_0x3d27c6,_0x270f4d,_0x552532)=>{_0x2e617c['model']['change'](_0x4c06d1=>{const _0x543a49=[];for(const _0x561fc2 of _0x3d27c6){const _0x5af662=_0x561fc2['start']['nodeAfter'];_0x5af662['is']('element','tableCellSuggestion')&&_0x543a49['push'](_0x5af662);}_0x300155['_suggestionFactory']['getSuggestionCallback'](_0x82f567,null,_0x3fb154)(_0x3d27c6,_0x270f4d,_0x552532);for(const _0x3f4b1d of _0x543a49)'$graveyard'!=_0x3f4b1d['root']['rootName']&&_0x4c06d1['unwrap'](_0x3f4b1d);});});};_0x3dcfe8('insertion','accept'),_0x3dcfe8('insertion','discard'),_0x3dcfe8('deletion','accept'),_0x3dcfe8('deletion','discard'),_0x300155['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x24d92f=>{const _0x28d539=_0x24d92f['map'](_0x2d8952=>_0x2d8952['getContainedElement']()),_0x175b92=_0x28d539[0x0]['findAncestor']('table'),{minRow:_0x378c6e,maxRow:_0x539264}=_0x3ccdc5['_getCoordsForCells'](_0x28d539);_0x2c49e0['removeRows'](_0x175b92,{'at':_0x378c6e,'rows':_0x539264-_0x378c6e+0x1});}),_0x300155['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x25ec10=>{const _0x915b8a=_0x25ec10['map'](_0x391bdf=>_0x391bdf['getContainedElement']()),_0x953db3=_0x915b8a[0x0]['findAncestor']('table'),{minColumn:_0x351fbb,maxColumn:_0x3b58d4}=_0x3ccdc5['_getCoordsForCells'](_0x915b8a);_0x2c49e0['removeColumns'](_0x953db3,{'at':_0x351fbb,'columns':_0x3b58d4-_0x351fbb+0x1});});const _0x5ebcaa=(_0x420cbb,_0x3a719f)=>{if(!_0x3a719f['subType']||!_0x3a719f['subType']['startsWith']('tablePaste'))return;const _0x55814c=_0x3a719f['attributes']['tablePasteChainId'],_0x1697c2=_0x300155['getSuggestions']()['filter'](_0x97f55a=>_0x97f55a['isInContent']&&_0x97f55a['attributes']&&_0x97f55a['attributes']['tablePasteChainId']==_0x55814c);_0x1697c2['length']&&_0x3a719f['getAllAdjacentSuggestions']()['length']!=_0x1697c2['length']&&_0x1697c2['reduce']((_0x20d682,_0x2fa8f4)=>(_0x20d682['next']=_0x2fa8f4,_0x2fa8f4['previous']=_0x20d682,_0x2fa8f4));};function _0x15523f(_0x176dec,_0xf32d21=!0x0){const {id:_0xb56461,authorId:_0x41b788}=_0x39dc22(_0x176dec['markerName']),_0xb900d0=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1ff3c1=_0x300155['activeMarkers']['includes'](_0x176dec['markerName']);return _0x1ff3c1&&_0xb900d0['push']('ck-suggestion-marker--active'),{'classes':_0xb900d0,'attributes':{'data-suggestion':_0xb56461,'data-author-id':_0x41b788},'priority':_0x1ff3c1&&_0xf32d21?0xbc2:0xbb8};}_0x300155['on']('suggestionLoaded',_0x5ebcaa,{'priority':'high'}),_0x300155['on']('suggestionUnloaded',_0x5ebcaa,{'priority':'high'}),_0x2e617c['model']['document']['registerPostFixer'](()=>{let _0x28aefe=!0x1;const _0x3bd209=Array['from'](_0x2e617c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5992e9,data:_0xad0d0}of _0x3bd209){const {group:_0xe44445,type:_0x48160a,id:_0x125c13}=_0x39dc22(_0x5992e9);if('suggestion'!=_0xe44445||'deletion'!=_0x48160a||_0xad0d0['oldRange'])continue;if(!_0x300155['hasSuggestion'](_0x125c13))continue;const _0x5715dd=_0x300155['getSuggestion'](_0x125c13)['getRanges'](),_0x30212b=_0x2e617c['plugins']['get']('Users')['me'];for(const _0xd7c3f0 of _0x300155['getSuggestions']()){if(!_0xd7c3f0['isInContent']||_0xd7c3f0['author']!=_0x30212b)continue;if('formatBlock'!=_0xd7c3f0['type']||'tablePasteCell'!=_0xd7c3f0['subType'])continue;if(_0xd7c3f0['getRanges']()['every'](_0x4dab0e=>_0x5715dd['some'](_0x3cb0d8=>_0x3cb0d8['containsRange'](_0x4dab0e,!0x0)))){for(const _0x53e997 of _0xd7c3f0['getAllAdjacentSuggestions']())_0x53e997['isInContent']&&(_0x53e997['discard'](),_0x28aefe=!0x0);}}}return _0x28aefe;}),_0x2e617c['model']['document']['registerPostFixer'](_0x1562e7=>{const _0x5dd478=_0x2e617c['commands']['get']('redo');if(!_0x5dd478||!_0x5dd478['_createdBatches']['has'](_0x1562e7['batch']))return!0x1;let _0x2ce067=!0x1;const _0x11f603=_0x2e617c['plugins']['get']('Users')['me'],_0x55fefc=_0x2e617c['model']['document']['differ']['getChanges'](),_0x51566b=Array['from'](_0x2e617c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5a02dc,data:_0x2f99be})=>{const {group:_0x284459,subType:_0x4e0489,authorId:_0x3c8a75}=_0x39dc22(_0x5a02dc);return'suggestion'==_0x284459&&'tablePaste'==_0x4e0489&&_0x3c8a75==_0x11f603['id']&&!_0x2f99be['oldRange'];});for(const _0x5975fd of _0x55fefc){if('insert'!=_0x5975fd['type']||'tableCellSuggestion'!=_0x5975fd['name']||0x1!=_0x5975fd['length'])continue;const _0x4b3693=_0x1562e7['createRange'](_0x5975fd['position'],_0x5975fd['position']['getShiftedBy'](0x1));if(!_0x51566b['find'](({data:_0x34476d})=>_0x34476d['newRange']['isEqual'](_0x4b3693))){for(const {name:_0x50366e,data:_0x3ad65d}of _0x51566b)if(_0x4b3693['containsRange'](_0x3ad65d['newRange'])){_0x1562e7['updateMarker'](_0x50366e,{'range':_0x4b3693}),_0x2ce067=!0x0;break;}}}return _0x2ce067;}),_0x2e617c['model']['document']['registerPostFixer'](_0x2f23ed=>{let _0x1c4f74=!0x1;const _0x35994d=_0x2e617c['plugins']['get']('Users')['me'],_0x106210=_0x300155['getSuggestions']()['filter'](_0x1f4bfa=>_0x1f4bfa['isInContent']&&_0x1f4bfa['author']==_0x35994d),_0x5bb614=new Set(),_0x6de1a=new Set();for(const _0x46f2ae of _0x106210)if('tablePaste'==_0x46f2ae['subType'])for(const _0x1afae6 of _0x46f2ae['getMarkers']()){const _0x218115=_0x1afae6['getRange']()['getContainedElement']();if(_0x218115){if(_0x218115['is']('element','tableCellSuggestion')&&ve(_0x218115)){_0x46f2ae['removeMarker'](_0x1afae6['name']),_0x5bb614['add'](_0x218115),_0x1c4f74=!0x0;const _0x24b583=_0x218115['nextSibling'],_0x181995=_0x218115['previousSibling'],_0x359a8e=_0x24b583&&_0x24b583['is']('element','tableCellSuggestion'),_0x40df54=_0x181995&&_0x181995['is']('element','tableCellSuggestion');_0x359a8e&&!_0x5bb614['has'](_0x24b583)&&_0x6de1a['add'](_0x24b583),_0x40df54&&!_0x5bb614['has'](_0x181995)&&_0x6de1a['add'](_0x181995);}else _0x218115['is']('element','paragraph')&&_0x218115['isEmpty']&&(_0x46f2ae['removeMarker'](_0x1afae6['name']),_0x1c4f74=!0x0);}}else{if('tablePasteCell'==_0x46f2ae['subType']){if(!_0x46f2ae['attributes']||!_0x46f2ae['attributes']['tablePasteChainId'])continue;const _0x2f2acd=_0x46f2ae['attributes']['markerAttributes'];if(_0x2f2acd&&Object['keys'](_0x2f2acd)['length'])continue;const _0x3a1021=_0x46f2ae['attributes']['tablePasteChainId'];let _0x5104bd=!0x0,_0x2aadd2=!0x0;for(const _0x1a1f5c of _0x106210)if(_0x1a1f5c['subType']&&_0x1a1f5c['subType']['startsWith']('tablePaste')){if(!_0x1a1f5c['attributes']['tablePasteChainId']){_0x2aadd2=!0x1;break;}if(_0x1a1f5c['id']!=_0x46f2ae['id']&&_0x1a1f5c['attributes']['tablePasteChainId']==_0x3a1021){_0x5104bd=!0x1;break;}}_0x2aadd2&&_0x5104bd&&(_0x46f2ae['removeMarkers'](),_0x1c4f74=!0x0);}}for(const _0x476847 of _0x5bb614)_0x2f23ed['remove'](_0x476847);for(const _0x5866b7 of _0x6de1a)_0x2f23ed['unwrap'](_0x5866b7);return _0x1c4f74;}),_0x2e617c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x26615d=>_0x15523f(_0x26615d),'converterPriority':'high'}),_0x2e617c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x59f8fe,_0x302252)=>_0x302252['options']['showSuggestionHighlights']?_0x15523f(_0x59f8fe,!0x1):null,'converterPriority':'high'});const _0x4697b4=_0x2e617c['editing']['view'];this['listenTo'](_0x4697b4['document'],'clipboardOutput',(_0x270a3b,_0x5d0eb2)=>{const _0x70a4e=[];for(const _0x17be70 of _0x4697b4['createRangeIn'](_0x5d0eb2['content'])['getItems']())_0x17be70['is']('element','suggestion-td')&&_0x70a4e['push'](_0x17be70);_0x4697b4['change'](_0x3ec769=>{for(const _0x6b07dd of _0x70a4e)_0x3ec769['move'](_0x3ec769['createRangeIn'](_0x6b07dd),_0x3ec769['createPositionBefore'](_0x6b07dd)),_0x3ec769['remove'](_0x6b07dd);});});}}function ve(_0xef6ed5){if(_0xef6ed5['isEmpty'])return!0x0;const _0x57117d=_0xef6ed5['getChild'](0x0);return _0x57117d['is']('element','paragraph')&&_0x57117d['isEmpty'];}function xe(_0x1c4305,_0x5c9868={},_0x3fb86a){for(const {isAnchor:_0x29f30a,cellHeight:_0x38502e,cellWidth:_0x21c4a5}of _0x3fb86a['createTableWalker'](_0x1c4305,{'includeAllSlots':!0x0,..._0x5c9868}))if(!_0x29f30a||0x1!=_0x38502e||0x1!=_0x21c4a5)return!0x1;return!0x0;}class Pe extends _0x54c126{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xa0ea37=this['editor']['plugins']['get']('TrackChangesEditing');_0xa0ea37['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xa0ea37['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xa0ea37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa0ea37['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xa0ea37['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xa0ea37['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x341d7,_0x2b3d59){const _0x33fbd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55cbcf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x325d35=_0x2b3d59['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x243da9=_0x55cbcf['getColumnGroupElement'](_0x325d35);let _0x2029e9=_0x243da9?_0x55cbcf['getTableColumnsWidths'](_0x243da9):null,_0x256d24=_0x325d35['getAttribute']('tableWidth')||null;const _0x4cbfdf=_0x2b3d59['tableWidth']||_0x256d24,_0x4e2f36=_0x2b3d59['columnWidths']||_0x2029e9,_0x559441=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e6da of _0x33fbd9['getSuggestions']()){const _0x10bf4f=_0x39e6da['getContainedElement']();if('resizeTable'===_0x39e6da['subType']&&_0x10bf4f===_0x325d35){_0x39e6da['author']!==_0x559441&&_0x39e6da['discard']();const _0x258b7c=_0x39e6da['data']['commandParams'];_0x256d24=_0x258b7c[0x0]['tableWidth'],_0x2029e9=_0x258b7c[0x0]['columnWidths'];break;}}_0x341d7({'table':_0x325d35,'tableWidth':_0x4cbfdf,'columnWidths':_0x4e2f36}),_0x33fbd9['markBlockFormat'](_0x325d35,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x256d24,'columnWidths':_0x2029e9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3ec55d){if('formatBlock'!=_0x3ec55d['type']&&'formatInline'!=_0x3ec55d['type'])return;const {data:_0xa658b9}=_0x3ec55d;if(_0xa658b9&&'resizeTable'===_0xa658b9['formatGroupId']){const _0x50d270='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x50d270)};}}}class Ue extends _0x54c126{['afterInit'](){const _0x57d93c=this['editor'];_0x57d93c['plugins']['has']('Template')&&_0x57d93c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x54c126{['afterInit'](){const _0x2f151a=this['editor'];if(!_0x2f151a['commands']['get']('insertTableOfContents'))return;_0x2f151a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1e69dd=_0x2f151a['plugins']['get']('TrackChangesEditing'),_0x524809=_0x2f151a['locale'];_0x1e69dd['descriptionFactory']['registerElementLabel']('tableOfContents',_0xdf2647=>At(_0x524809,'ELEMENT_TABLE_OF_CONTENTS',_0xdf2647));}}class He extends _0x54c126{['afterInit'](){const _0x88534d=this['editor'];if(!_0x88534d['plugins']['has']('Title'))return;_0x88534d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x88534d['locale'],'ELEMENT_TITLE')),_0x88534d['model']['document']['registerPostFixer'](_0x21e44f=>{let _0x479409=!0x1;const _0x29cece=Array['from'](_0x88534d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e7dc3,data:_0x373ea8}of _0x29cece){const {group:_0x437bcc}=_0x39dc22(_0x1e7dc3);if('suggestion'!==_0x437bcc||!_0x373ea8['newRange'])continue;const _0x23b378=_0x373ea8['newRange'],_0x5105f=_0x23b378['end']['nodeBefore'];if(!_0x5105f||!_0x5105f['is']('element','title-content'))continue;if(!_0x23b378['start']['isTouching'](_0x23b378['end']))continue;const _0x2e73b9=_0x88534d['model']['schema']['getNearestSelectionRange'](_0x23b378['end'],'forward');if(_0x2e73b9&&_0x2e73b9['isCollapsed']){const _0x4f423b=_0x21e44f['createRange'](_0x23b378['start'],_0x2e73b9['start']);_0x4f423b['isEqual'](_0x23b378)||(_0x21e44f['updateMarker'](_0x1e7dc3,{'range':_0x4f423b}),_0x479409=!0x0);}_0x479409||(_0x21e44f['removeMarker'](_0x1e7dc3),_0x479409=!0x0);}return _0x479409;});}}class $e extends _0x54c126{['afterInit'](){const _0x5c552e=this['editor'],_0x4be7f2=_0x5c552e['plugins']['get']('TrackChangesEditing');_0x5c552e['plugins']['has']('Uploadcare')&&(_0x4be7f2['enableCommand']('uploadcare'),_0x5c552e['plugins']['has']('UploadcareImageEdit')&&(_0x4be7f2['enableCommand']('uploadcareImageEdit'),_0x4be7f2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4be7f2['descriptionFactory']['registerDescriptionCallback'](_0x198205=>{if('attribute'!=_0x198205['type'])return;const {data:_0x1feee8}=_0x198205;return _0x1feee8&&'uploadcareImageId'==_0x1feee8['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x54c126{['afterInit'](){const _0x536898=this['editor'],_0x46776e=_0x536898['plugins']['get']('TrackChangesEditing');_0x536898['plugins']['has']('UndoEditing')&&(_0x46776e['enableCommand']('undo'),_0x46776e['enableCommand']('redo'));}}class Ve extends _0x54c126{static get['requires'](){return[Ne];}['afterInit'](){const _0x8cd19d=this['editor'];if(!_0x8cd19d['plugins']['has']('TableCaptionEditing'))return;_0x8cd19d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x54c126{['tableProperties'];['tableCellProperties'];constructor(_0x4dcd8d){super(_0x4dcd8d),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 _0x180a80=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55cda1 of this['tableProperties'])_0x180a80['enableCommand'](_0x55cda1,(_0x334666,_0x1d2c26)=>{const _0xdf0214=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55cda1,[_0xdf0214],this['tableProperties'],'tableProperties',_0x334666,_0x1d2c26);});_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x180a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2f9a7b,_0xd5b8c7)=>this['handleDiscardAction'](this['tableProperties'],_0x2f9a7b,_0xd5b8c7)),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8cc562 of this['tableCellProperties'])this['editor']['commands']['get'](_0x8cc562)&&_0x180a80['enableCommand'](_0x8cc562,(_0x476b74,_0x2a7861)=>{const _0x500a47=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8cc562,_0x500a47,this['tableCellProperties'],'tableCellProperties',_0x476b74,_0x2a7861);});_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x180a80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x38d79f,_0x2c0369)=>this['handleDiscardAction'](this['tableCellProperties'],_0x38d79f,_0x2c0369)),_0x180a80['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x180a80['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x180a80['descriptionFactory']['registerDescriptionCallback'](_0x1f3ca4=>this['handleSuggestionDescription'](_0x1f3ca4)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x2a5b40,_0x727fa0,_0x52b4f1,_0x575f12,_0x4ff415,_0x3e55c4){const _0x2a5327=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e55c4['batch'],()=>{for(const _0x512fc7 of _0x727fa0){if(this['_getSuggestion'](_0x512fc7,_0x575f12))_0x4ff415(_0x3e55c4);else{const _0x3c0c38={};for(const _0x171672 of _0x52b4f1){const _0x4a9ad2=_0x512fc7['getAttribute'](_0x171672);void 0x0!==_0x4a9ad2&&(_0x3c0c38[_0x171672]=_0x4a9ad2);}_0x4ff415(_0x3e55c4),_0x2a5327['markBlockFormat'](_0x512fc7,{'commandParams':[_0x3c0c38]},[],_0x575f12);}}});}['handleDiscardAction'](_0x4ceaf9,_0x3684d6,_0x25e4ea){const _0x238e52=_0x3684d6[0x0]['start']['nodeAfter'],_0x1eeaef=_0x25e4ea['commandParams'][0x0];this['editor']['model']['change'](_0x2b8e4d=>{for(const _0x59e7dd of _0x4ceaf9)void 0x0!==_0x1eeaef[_0x59e7dd]?_0x2b8e4d['setAttribute'](_0x59e7dd,_0x1eeaef[_0x59e7dd],_0x238e52):_0x2b8e4d['removeAttribute'](_0x59e7dd,_0x238e52);});}['handleSuggestionDescription'](_0x57d77a){if(_0x57d77a['data'])switch(_0x57d77a['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'](_0x47f66d,_0x23483f){const _0x12df5c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2caa95 of _0x12df5c['getSuggestions']({'skipNotAttached':!0x0})){const _0x2477b4=_0x2caa95['getContainedElement']();if(_0x2caa95['subType']===_0x23483f&&_0x2477b4===_0x47f66d)return _0x2caa95;}return null;}['_registerTablePropertiesAttributes'](){const _0x5ab70d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e9708=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x36792f of _0x2e9708){const _0x5e8849=_0x36792f['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5ab70d['descriptionFactory']['registerAttributeLabel'](_0x36792f,At(this['editor']['locale'],'FORMAT_'+_0x5e8849));}}}class ze extends _0x54c126{['afterInit'](){const _0x154404=this['editor'];if(!_0x154404['plugins']['has']('LineHeight'))return;const _0x2111f6=_0x154404['plugins']['get']('TrackChangesEditing'),_0x2e09f6=_0x154404['locale'];_0x2111f6['enableDefaultAttributesIntegration']('lineHeight'),_0x2111f6['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x2e09f6,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x54c126{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0xab4f6c,_0x24e0bb,_0x55241e,_0x2065a9,_0x48278f,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(_0x12827e){super(_0x12827e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3b51f2,_0x2758f6,_0x4d245b,_0x217c76)=>{this['_model']['change'](()=>{for(const _0x274ab3 of[..._0x217c76,..._0x4d245b])this['_model']['markers']['has'](_0x274ab3)&&_0x12827e['editing']['reconvertMarker'](_0x274ab3);});}),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']=_0x12827e['plugins']['get'](_0xab4f6c),this['_suggestionsConversion']=_0x12827e['plugins']['get'](_0x24e0bb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12827e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12827e['config']['get']('trackChanges.trackFormatChanges'),_0x12827e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12827e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x12827e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2965a9=this['editor'];_0x2965a9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4ae784,{writer:_0x12be0b})=>{let _0x3639c0='suggestion:'+_0x4ae784['getAttribute']('suggestion-type')+':'+_0x4ae784['getAttribute']('id');return _0x4ae784['getAttribute']('marker-count')&&(_0x3639c0+=':'+_0x4ae784['getAttribute']('marker-count')),_0x12be0b['createElement']('$marker',{'data-name':_0x3639c0});}}),_0x2965a9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2965a9['model']['document']['registerPostFixer'](_0x58f3ae=>{let _0xba536c=!0x1;const _0x46d39a=Array['from'](_0x2965a9['model']['document']['differ']['getChangedMarkers']()),_0x28d156=new Set();for(const {name:_0x498cc5,data:_0x17e4e2}of _0x46d39a){const {group:_0x279ad1,type:_0x408ed9,subType:_0x42310c,id:_0x4409ab}=_0x39dc22(_0x498cc5);if('suggestion'!==_0x279ad1)continue;const _0x32531c=_0x42310c?'suggestion:'+_0x408ed9+':'+_0x42310c+':'+_0x4409ab:'suggestion:'+_0x408ed9+':'+_0x4409ab,_0x5cee68=_0x2965a9['model']['markers']['getMarkersGroup'](_0x32531c),_0x349711=_0x2965a9['model']['markers']['get'](_0x498cc5),_0x4c4139=this['_suggestions']['get'](_0x4409ab);if(null!=_0x17e4e2['newRange']){'formatInline'==_0x408ed9&&(_0xba536c=_0xba536c||Ze(_0x17e4e2['newRange'],_0x498cc5,_0x58f3ae,_0x2965a9['model']['schema']));const _0x13ee70='attribute'==_0x408ed9&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x42310c)),_0x1c3249='attribute'==_0x408ed9&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x42310c));if(_0x17e4e2['newRange']['isCollapsed']||'$graveyard'==_0x17e4e2['newRange']['root']['rootName']||'formatBlock'==_0x408ed9&&!tn(_0x17e4e2['newRange'])||_0x13ee70&&!tn(_0x17e4e2['newRange'])||_0x1c3249&&en(_0x17e4e2['newRange'])||'deletion'==_0x408ed9&&en(_0x17e4e2['newRange'])||_0x349711&&nn(_0x349711,_0x5cee68))_0x58f3ae['removeMarker'](_0x498cc5),_0xba536c=!0x0;else{if(!_0x4c4139||!_0x4c4139['isInContent'])continue;if(_0x17e4e2['newRange']&&_0x17e4e2['oldRange']&&_0x17e4e2['newRange']['isEqual'](_0x17e4e2['oldRange']))continue;_0x28d156['add'](_0x4c4139);}}}return _0x28d156['size']>0x0&&(_0xba536c=!!this['_joinWithAdjacentSuggestions'](_0x28d156)||_0xba536c),_0xba536c;}),_0x2965a9['model']['document']['registerPostFixer'](_0x159523=>{let _0x5504e1=!0x1;for(const _0x295c32 of _0x2965a9['model']['document']['differ']['getChanges']())if('insert'==_0x295c32['type'])for(const _0x210f8f of this['_suggestions']['values']()){if(_0x210f8f['isMultiRange']||!_0x210f8f['isInContent'])continue;const _0x1da0ae='formatBlock'==_0x210f8f['type'],_0x10a93d=this['_getAttributeKey'](_0x210f8f),_0x465fa1=_0x10a93d&&this['_suggestionsConversion']['isBlockAttribute'](_0x10a93d);if(!_0x1da0ae&&!_0x465fa1)continue;const _0x2a45f3=_0x210f8f['getFirstRange']();if(_0x2a45f3['start']['parent']!=_0x2a45f3['end']['parent']&&!_0x2a45f3['end']['isAtEnd']){const _0x46c985=_0x2965a9['model']['createPositionAt'](_0x2a45f3['start']['nodeAfter'],'end'),_0x339fd4=_0x2965a9['model']['createRange'](_0x2a45f3['start'],_0x46c985);_0x159523['updateMarker'](_0x210f8f['getFirstMarker'](),{'range':_0x339fd4}),_0x5504e1=!0x0;}}return _0x5504e1;}),_0x2965a9['model']['document']['registerPostFixer'](_0x5707c9=>this['_processAttributeChanges'](_0x5707c9)),_0x2965a9['model']['document']['registerPostFixer'](_0x476226=>!_0x476226['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x476226)),_0x2965a9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2965a9['model']['document']['on']('change:data',(_0x284925,_0x4c4b3f)=>{if(!_0x4c4b3f['isLocal']||_0x4c4b3f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2b6b42=_0x2965a9['model']['document']['differ']['getChanges']();if(0x0==_0x2b6b42['length'])return;const _0x20e990=[],_0x3b58c4=_0x2b6b42['filter'](_0x5b5f0f=>'attribute'==_0x5b5f0f['type']),_0x311166=_0x2b6b42['filter'](_0x30b1f6=>'insert'==_0x30b1f6['type']&&'$text'!=_0x30b1f6['name']);for(const _0x55baee of _0x3b58c4)this['_suggestionsConversion']['isRegisteredAttribute'](_0x55baee['attributeKey'])&&_0x20e990['push']({'key':_0x55baee['attributeKey'],'newValue':_0x55baee['attributeNewValue'],'oldValue':_0x55baee['attributeOldValue'],'range':sn(_0x55baee['range'],_0x2965a9['model'])});for(const _0x5c2f89 of _0x311166){if('rename'!=_0x5c2f89['action']&&'refresh'!=_0x5c2f89['action'])continue;const _0x4eaad5=rn(_0x5c2f89['position']['nodeAfter'],_0x2965a9['model']),_0x5c0d07=_0x5c2f89['before'];'rename'==_0x5c2f89['action']&&_0x20e990['push']({'key':Ke,'newValue':_0x5c2f89['name'],'oldValue':_0x5c0d07['name'],'range':_0x4eaad5});for(const [_0x26ddf6,_0x237bf7]of _0x5c0d07['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x26ddf6))continue;const _0x5104e0=_0x5c2f89['attributes']['get'](_0x26ddf6);_0x237bf7!==_0x5104e0&&_0x20e990['push']({'key':_0x26ddf6,'newValue':_0x5104e0,'oldValue':_0x237bf7,'range':_0x4eaad5});}for(const [_0x1f516f,_0x340432]of _0x5c2f89['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1f516f)&&(_0x5c0d07['attributes']['has'](_0x1f516f)||_0x20e990['push']({'key':_0x1f516f,'newValue':_0x340432,'oldValue':null,'range':_0x4eaad5}));}0x0!=_0x20e990['length']&&_0x2965a9['model']['enqueueChange'](_0x4c4b3f,_0x2f69df=>{const _0x3f1186=_0x171c64();for(const {range:_0x9bc075,key:_0x3a8bef,oldValue:_0xfec40,newValue:_0x38f34b}of _0x20e990)this['markAttributeChange'](_0x9bc075,_0x3a8bef,_0xfec40,_0x38f34b,{'groupId':_0x3f1186});this['_reduceExistingSuggestions'](_0x2f69df,_0x20e990);});},{'priority':'lowest'}),_0x2965a9['model']['markers']['on']('update:suggestion',(_0x50c43e,_0x79111c,_0x51e275)=>{if(null==_0x51e275){const {id:_0x28255b}=_0x39dc22(_0x79111c['name']),_0x2238ff=this['_suggestions']['get'](_0x28255b);_0x2238ff&&_0x2238ff['addMarkerName'](_0x79111c['name']);}}),_0x2965a9['model']['document']['on']('change:data',()=>{const _0x212c93=Array['from'](_0x2965a9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6bf87e=>'suggestion'===_0x39dc22(_0x6bf87e['name'])['group']);if(0x0===_0x212c93['length'])return;_0x212c93['sort']((_0xf64f4d,_0x367754)=>{const _0x32c57f=_0xf64f4d['data']['oldRange'],_0x564107=_0x367754['data']['oldRange'];return null===_0x32c57f&&null===_0x564107?0x0:null===_0x32c57f&&null!==_0x564107?-0x1:null!==_0x32c57f&&null===_0x564107?0x1:_0x32c57f['start']['isBefore'](_0x564107['start'])?-0x1:0x1;});const _0x29f952=new Set(),_0x5ad5a6=new Set();for(const {name:_0x4b1e9b,data:_0x9d5831}of _0x212c93){const {id:_0x1dc5aa}=_0x39dc22(_0x4b1e9b);if(null===_0x9d5831['oldRange']){const _0x2c6f0a=this['_handleNewSuggestionMarker'](_0x4b1e9b);_0x5ad5a6['add'](_0x2c6f0a);}else{const _0x38d2e7=this['_suggestions']['get'](_0x1dc5aa);null!==_0x9d5831['newRange']||_0x38d2e7['isInContent']?(_0x29f952['add'](_0x38d2e7['head']),_0x5ad5a6['add'](_0x38d2e7)):this['_removeSuggestion'](_0x38d2e7);}}_0x5ad5a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x5ad5a6);for(const _0x4a3b44 of _0x29f952)this['fire']('suggestionChanged',_0x4a3b44);}),_0x2965a9['model']['on']('applyOperation',(_0x4b0c3a,_0x1c6737)=>{const _0x48058e=_0x1c6737[0x0];if(!this['_suggestions']['size'])return;if(!_0x48058e['isDocumentOperation'])return;if(_0x48058e['batch']['isUndo']||!_0x48058e['batch']['isLocal'])return;let _0x3217f2,_0x4aa682;switch(_0x48058e['type']){case'insert':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['position']),_0x4aa682=_0x3217f2['getShiftedBy'](_0x48058e['howMany']);break;case'split':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['splitPosition']),_0x4aa682=_0x2965a9['model']['createPositionAt'](_0x48058e['moveTargetPosition']);break;case'move':_0x3217f2=_0x2965a9['model']['createPositionAt'](_0x48058e['targetPosition']),_0x4aa682=_0x3217f2['getShiftedBy'](_0x48058e['howMany']);break;default:return;}const _0xff0cfc=_0x2965a9['model']['createRange'](_0x3217f2,_0x4aa682);_0x2965a9['model']['change'](()=>{for(const {suggestion:_0x4f31dd,meta:_0x2ca5cc}of this['_findSuggestions'](_0xff0cfc)){if(_0x4f31dd['isMultiRange'])continue;if('formatInline'==_0x4f31dd['type'])continue;const _0x91ae80=this['_getAttributeKey'](_0x4f31dd);if(_0x91ae80&&this['_suggestionsConversion']['isBlockAttribute'](_0x91ae80)&&'split'!=_0x48058e['type'])continue;const _0x5b78e0=_0x4f31dd['data']&&_0x4f31dd['data']['multipleBlocks'];('formatBlock'!=_0x4f31dd['type']||'split'==_0x48058e['type']&&!_0x5b78e0)&&(_0x2ca5cc['containsRangeInObject']||'insertion'==_0x4f31dd['type']&&_0x2ca5cc['isOwn']||_0x4f31dd['getFirstRange']()['containsRange'](_0xff0cfc)&&this['_breakSuggestionMarker'](_0x4f31dd,_0x3217f2,_0x4aa682));}});},{'priority':'lowest'}),_0x2965a9['model']['on']('deleteContent',(_0x584857,_0x32c627)=>{const _0x38290f=_0x32c627[0x0],_0x2883a2=_0x32c627[0x1];if(_0x2883a2&&_0x2883a2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x38290f['isCollapsed'])return;const _0x259932=_0x2965a9['model']['schema'],{start:_0x321535,end:_0x369b53}=_0x38290f['getFirstRange'](),_0x184543=_0x321535['nodeAfter']&&_0x259932['isLimit'](_0x321535['nodeAfter'])?null:_0x259932['getNearestSelectionRange'](_0x321535,'forward'),_0x1376a6=_0x369b53['nodeBefore']&&_0x259932['isLimit'](_0x369b53['nodeBefore'])?null:_0x259932['getNearestSelectionRange'](_0x369b53,'backward'),_0x5c5c74=_0x2965a9['model']['createRange'](_0x184543?_0x184543['start']:_0x321535,_0x1376a6?_0x1376a6['end']:_0x369b53);_0x2965a9['model']['change'](_0x47313b=>{this['markDeletion'](_0x5c5c74);const _0x4972f0=_0x2965a9['model']['schema']['getNearestSelectionRange'](_0x5c5c74['start']);_0x38290f['is']('documentSelection')?_0x47313b['setSelection'](_0x4972f0):_0x38290f['setTo'](_0x4972f0);}),_0x584857['stop']();},{'priority':_0x2ac962['normal']+0xa}),_0x2965a9['model']['on']('insertContent',(_0x4bcd47,_0x437a04)=>{const _0x5c5826=_0x437a04[_0x437a04['length']-0x1];_0x5c5826&&_0x5c5826['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2965a9['model']['change'](()=>{let _0x32e12b=_0x2965a9['model']['insertContent'](_0x437a04[0x0],_0x437a04[0x1],_0x437a04[0x2],{'forceDefaultExecution':!0x0});if(!_0x32e12b)return;_0x4bcd47['return']=_0x32e12b['clone']();const _0x1cf3d2=_0x32e12b['end']['nodeBefore'],_0x4d2a2c=_0x2965a9['model']['schema'];_0x1cf3d2&&_0x4d2a2c['isBlock'](_0x1cf3d2)&&!_0x4d2a2c['isObject'](_0x1cf3d2)&&(_0x32e12b=_0x2965a9['model']['createRange'](_0x32e12b['start'],_0x2965a9['model']['createPositionAt'](_0x1cf3d2,'end'))),this['markInsertion'](_0x32e12b);}),_0x4bcd47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1978f9=new dt(_0x2965a9,this['_suggestions']);_0x2965a9['commands']['add']('acceptSuggestion',_0x1978f9),this['enableCommand']('acceptSuggestion');const _0x217d6d=new ft(_0x2965a9,this['_suggestions']);_0x2965a9['commands']['add']('discardSuggestion',_0x217d6d),this['enableCommand']('discardSuggestion'),_0x2965a9['commands']['add']('acceptAllSuggestions',new Lt(_0x2965a9,_0x1978f9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2965a9['commands']['add']('discardAllSuggestions',new Lt(_0x2965a9,_0x217d6d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2965a9['commands']['add']('acceptSelectedSuggestions',new It(_0x2965a9,_0x1978f9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2965a9['commands']['add']('discardSelectedSuggestions',new It(_0x2965a9,_0x217d6d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3ec20e=_0x2965a9['plugins']['get'](_0xab4f6c);this['listenTo'](_0x3ec20e,'addComment',(_0x25a5a1,{threadId:_0x3dc2e8})=>{const _0x596600=this['_suggestions']['get'](_0x3dc2e8);_0x596600&&_0x596600['commentThread']&&0x1===_0x596600['commentThread']['length']&&this['_updateSuggestionData'](_0x3dc2e8,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3ec20e,'removeComment',(_0x4f6d35,{threadId:_0x403855})=>{const _0x4f97ed=this['_suggestions']['get'](_0x403855);_0x4f97ed&&_0x4f97ed['commentThread']&&!_0x4f97ed['commentThread']['length']&&this['_updateSuggestionData'](_0x403855,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x505646){const _0x3d3038=_0x1e3503([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]),_0x53b542=0x3d8d0df,_0x5e45f0=0x3df5537^_0x53b542,_0x29f483=window[_0x1e3503([0x44,0x61,0x74,0x65])][_0x1e3503([0x6e,0x6f,0x77])](),_0xc79137=_0x505646[_0x1e3503([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5f3edd=new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x275937=>{_0xc79137[_0x1e3503([0x6f,0x6e,0x63,0x65])](_0x1e3503([0x72,0x65,0x61,0x64,0x79]),_0x275937);}),_0x32923c={[_0x1e3503([0x6b,0x74,0x79])]:_0x1e3503([0x45,0x43]),[_0x1e3503([0x75,0x73,0x65])]:_0x1e3503([0x73,0x69,0x67]),[_0x1e3503([0x63,0x72,0x76])]:_0x1e3503([0x50,0x2d,0x32,0x35,0x36]),[_0x1e3503([0x78])]:_0x1e3503([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]),[_0x1e3503([0x79])]:_0x1e3503([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]),[_0x1e3503([0x61,0x6c,0x67])]:_0x1e3503([0x45,0x53,0x32,0x35,0x36])},_0x193152=_0xc79137[_0x1e3503([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1e3503([0x67,0x65,0x74])](_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x542cc7(){let _0x3560f4,_0x99c7c5=null,_0x18d305=null;try{if(_0x193152==_0x1e3503([0x47,0x50,0x4c]))return _0x1e3503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3560f4=_0x20d304(),!_0x3560f4)return _0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3560f4[_0x1e3503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x18d305=_0x321b0f(_0x3560f4[_0x1e3503([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3560f4[_0x1e3503([0x6a,0x74,0x69])])),await _0x2140cb()?_0x48dec7()?_0x29dda7()?_0x1e3503([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x392db1()?(_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1e3503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x99c7c5=_0x3d448f(_0x1e3503([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x313962()):_0x1e3503([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1e3503([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1e3503([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29dda7(){const _0x19a790=[_0x1e3503([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1e3503([0x74,0x72,0x69,0x61,0x6c])][_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x29f483/0x3e8:0xe10*_0x5e45f0;return _0x3560f4[_0x1e3503([0x65,0x78,0x70])]<_0x19a790;}function _0x48dec7(){const _0x337a37=_0x3560f4[_0x1e3503([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x337a37)return!0x1;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x2a])))return!0x0;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x54,0x43])))return!0x0;if(_0x337a37[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x52,0x54,0x43]))){if(_0x15ab98())return!0x0;if(_0x4ac467()||_0x3d7d7f())return!0x0;}return!0x1;}function _0x392db1(){const _0x5a7c5d=_0x3560f4[_0x1e3503([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a7c5d||0x0==_0x5a7c5d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d9820}=new URL(window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a7c5d[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d9820))return!0x0;const _0x1d7974=_0x3d9820[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e]));return _0x5a7c5d[_0x1e3503([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfa88b9=>_0xfa88b9[_0x1e3503([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e3503([0x2a])))[_0x1e3503([0x6d,0x61,0x70])](_0x4a18b1=>_0x4a18b1[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e])))[_0x1e3503([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47e89d=>_0x47e89d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1d7974[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e3503([0x6d,0x61,0x70])](_0x28bb33=>Array(_0x1d7974[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28bb33[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1e3503([0x66,0x69,0x6c,0x6c])](_0x28bb33[0x0]===_0x1e3503([0x2a])?_0x1e3503([0x2a]):'')[_0x1e3503([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28bb33))[_0x1e3503([0x73,0x6f,0x6d,0x65])](_0x4c4bc9=>_0x1d7974[_0x1e3503([0x65,0x76,0x65,0x72,0x79])]((_0x663910,_0x190779)=>_0x4c4bc9[_0x190779]===_0x663910||_0x4c4bc9[_0x190779]===_0x1e3503([0x2a])));}function _0x313962(){return _0x99c7c5&&_0x18d305?new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ada9e,_0x2545cf)=>{_0x99c7c5[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x3ada9e,_0x2545cf),_0x18d305[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x151798=>{_0x151798!=_0x1e3503([0x56,0x61,0x6c,0x69,0x64])&&_0x3ada9e(_0x151798);},_0x2545cf);}):_0x99c7c5||_0x18d305||_0x1e3503([0x56,0x61,0x6c,0x69,0x64]);}}function _0x321b0f(_0x4f20f8,_0x4747a2){return new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x575112=>{if(_0x3bbd3e())return _0x575112(_0x1e3503([0x56,0x61,0x6c,0x69,0x64]));_0x491f3d(),_0xc79137[_0x1e3503([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b5b48=!0x1;const _0x16cc4b=_0x171c64();function _0x3033a2(_0x30a4a0){return!!_0x30a4a0&&(typeof _0x30a4a0===_0x1e3503([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30a4a0===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30a4a0[_0x1e3503([0x74,0x68,0x65,0x6e])]===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30a4a0[_0x1e3503([0x63,0x61,0x74,0x63,0x68])]===_0x1e3503([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ac875(_0x165816){_0x1afc1b(_0x165816)[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x20bd4d=>{if(!_0x20bd4d||_0x20bd4d[_0x1e3503([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1e3503([0x6f,0x6b]))return _0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fc593(_0x4e56d5(_0x16cc4b+_0x4747a2))!=_0x20bd4d[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1e3503([0x56,0x61,0x6c,0x69,0x64]);})[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x38932d=>(_0x90748(),_0x38932d),()=>{const _0x381cef=_0x4ea3ea();return null==_0x381cef?(_0x90748(),_0x1e3503([0x56,0x61,0x6c,0x69,0x64])):_0x1e3503(_0x29f483-_0x381cef>(0x27d454df^_0x53b542)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x575112)[_0x1e3503([0x63,0x61,0x74,0x63,0x68])](()=>{_0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x579743=0x3ee3e5f^_0x53b542;function _0x90748(){const _0x1b574c=_0x1e3503([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc593(_0x4e56d5(_0x4f20f8)),_0x1ebc6f=_0x194c0e(_0x4fc593(window[_0x1e3503([0x4d,0x61,0x74,0x68])][_0x1e3503([0x63,0x65,0x69,0x6c])](_0x29f483/_0x579743)));window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e3503([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b574c,_0x1ebc6f);}function _0x4ea3ea(){const _0x298174=_0x1e3503([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fc593(_0x4e56d5(_0x4f20f8)),_0x25125a=window[_0x1e3503([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1e3503([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x298174);return _0x25125a?window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x194c0e(_0x25125a),0x10)*_0x579743:null;}function _0x1afc1b(_0x5cc5d6){return new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14661b,_0x4c0ac6)=>{_0x5cc5d6[_0x1e3503([0x74,0x68,0x65,0x6e])](_0x14661b,_0x4c0ac6),window[_0x1e3503([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4c0ac6,0x3d9041f^_0x53b542);});}}_0xc79137[_0x1e3503([0x6f,0x6e])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ac4e8,_0x3031d3)=>{if(_0x3031d3[0x0]!=_0x4f20f8)return _0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3031d3[0x1]={..._0x3031d3[0x1],[_0x1e3503([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16cc4b};},{[_0x1e3503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e3503([0x68,0x69,0x67,0x68])}),_0xc79137[_0x1e3503([0x6f,0x6e])](_0x1e3503([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40b5f9=>{_0x3033a2(_0x40b5f9[_0x1e3503([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b5b48=!0x0,_0x2ac875(_0x40b5f9[_0x1e3503([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1e3503([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1e3503([0x6c,0x6f,0x77])}),_0x5f3edd[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>{_0x4b5b48||_0x575112(_0x1e3503([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bbd3e(){return _0xc79137[_0x1e3503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e3503([0x76,0x69,0x65,0x77])][_0x1e3503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1e3503([0x61,0x75,0x74,0x6f]);}function _0x491f3d(){_0xc79137[_0x1e3503([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1e3503([0x76,0x69,0x65,0x77])][_0x1e3503([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1e3503([0x61,0x75,0x74,0x6f]);}}function _0x3d448f(_0x163071){const _0x277a6b=[new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d150c=>setTimeout(_0x1d150c,0x3d1ee13^_0x53b542)),_0x5f3edd[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x43d0c5=>{let _0x4a5c81=0x0;_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x6f,0x6e])](_0x1e3503([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46ea18,_0x27ea4f)=>{_0x27ea4f[0x0][_0x1e3503([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a5c81++,_0x4a5c81==(0x3d8d537^_0x53b542)&&(_0x43d0c5(),_0x46ea18[_0x1e3503([0x6f,0x66,0x66])]());});}))];return window[_0x1e3503([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1e3503([0x72,0x61,0x63,0x65])](_0x277a6b)[_0x1e3503([0x74,0x68,0x65,0x6e])](()=>_0x163071);}async function _0x231304(){await _0x5f3edd,_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x498e04,_0xc79137[_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c])][_0x1e3503([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x498e04,_0xc79137[_0x1e3503([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1e3503([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15ab98(){return _0x349252(_0x1e3503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4defd2(_0x1e3503([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1e3503([0x73,0x74,0x61,0x74,0x65])]==_0x1e3503([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4ac467(){return _0x349252(_0x1e3503([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 _0x3d7d7f(){return _0x349252(_0x1e3503([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c5ba7(_0x4fe020){const _0x21aa92=_0x51cef7();_0xc79137[_0x21aa92]=_0x1e3503([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fe020,_0x4fe020!=_0x1e3503([0x56,0x61,0x6c,0x69,0x64])&&_0x231304();}function _0x51cef7(){const _0x4cb85d=window[_0x1e3503([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1e3503([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1e3503([0x6e,0x6f,0x77])]())[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1e3503([0x2e]),'');let _0x4be930=_0x1e3503([0x52]);for(let _0x5b6bc3=0x0;_0x5b6bc3<_0x4cb85d[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b6bc3+=0x2){let _0x238cef=window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cb85d[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b6bc3,_0x5b6bc3+0x2));_0x238cef>=_0x3d3038[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x238cef-=_0x3d3038[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4be930+=_0x3d3038[_0x238cef];}return _0x4be930;}function _0x20d304(){const _0x37e966=_0x193152[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e]));if(0x3!=_0x37e966[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3adf44(_0x37e966[0x1]);function _0x3adf44(_0x3e0db5){const _0x2335c1=_0x5e0c13(_0x3e0db5);return _0x2335c1&&_0x1239bf()?_0x2335c1:null;function _0x1239bf(){const _0x34cf3a=_0x2335c1[_0x1e3503([0x6a,0x74,0x69])],_0x80d5c7=window[_0x1e3503([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34cf3a[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34cf3a[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x207ef2={..._0x2335c1,[_0x1e3503([0x6a,0x74,0x69])]:_0x34cf3a[_0x1e3503([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34cf3a[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x207ef2[_0x1e3503([0x76,0x63])],_0x4e56d5(_0x207ef2)==_0x80d5c7;}}}async function _0x2140cb(){let _0x560088=!0x0;try{const _0x464ea0=_0x193152[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])](_0x1e3503([0x2e])),[_0x4ad920,_0x383aad,_0x378d68]=_0x464ea0;return _0x2f1fa1(_0x4ad920),await _0x4e11b1(_0x4ad920,_0x383aad,_0x378d68),_0x560088;}catch{return!0x1;}function _0x2f1fa1(_0x451a69){const _0x1f7c96=_0x5e0c13(_0x451a69);_0x1f7c96&&_0x1f7c96[_0x1e3503([0x61,0x6c,0x67])]==_0x1e3503([0x45,0x53,0x32,0x35,0x36])||(_0x560088=!0x1);}async function _0x4e11b1(_0x39a980,_0x385cac,_0x39f9dc){const _0x1c344a=window[_0x1e3503([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1e3503([0x66,0x72,0x6f,0x6d])](_0x547ae0(_0x39f9dc),_0x2c0b23=>_0x2c0b23[_0x1e3503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x478b5f=new window[(_0x1e3503([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1e3503([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39a980+_0x1e3503([0x2e])+_0x385cac),_0x59d4e5=window[_0x1e3503([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1e3503([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x59d4e5)return;const _0x355aef=await _0x59d4e5[_0x1e3503([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1e3503([0x6a,0x77,0x6b]),_0x32923c,{[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x45,0x43,0x44,0x53,0x41]),[_0x1e3503([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1e3503([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x59d4e5[_0x1e3503([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x45,0x43,0x44,0x53,0x41]),[_0x1e3503([0x68,0x61,0x73,0x68])]:{[_0x1e3503([0x6e,0x61,0x6d,0x65])]:_0x1e3503([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x355aef,_0x1c344a,_0x478b5f)||(_0x560088=!0x1);}}function _0x5e0c13(_0x435c06){return _0x435c06[_0x1e3503([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1e3503([0x65,0x79]))?JSON[_0x1e3503([0x70,0x61,0x72,0x73,0x65])](_0x547ae0(_0x435c06)):null;}function _0x547ae0(_0x44bddb){return window[_0x1e3503([0x61,0x74,0x6f,0x62])](_0x44bddb[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1e3503([0x2b]))[_0x1e3503([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1e3503([0x2f])));}function _0x4e56d5(_0x1a94b1){let _0x562fb8=0x1505;function _0x1dcca3(_0x40ba86){for(let _0x194440=0x0;_0x194440<_0x40ba86[_0x1e3503([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x194440++){const _0x40d6f5=_0x40ba86[_0x1e3503([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x194440);_0x562fb8=(_0x562fb8<<0x5)+_0x562fb8+_0x40d6f5,_0x562fb8&=_0x562fb8;}}function _0x36e6a1(_0x361d03){Array[_0x1e3503([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x361d03)?_0x361d03[_0x1e3503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36e6a1):_0x361d03&&typeof _0x361d03==_0x1e3503([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1e3503([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x361d03)[_0x1e3503([0x73,0x6f,0x72,0x74])]()[_0x1e3503([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x250df1,_0x481759])=>{_0x1dcca3(_0x250df1),_0x36e6a1(_0x481759);}):_0x1dcca3(window[_0x1e3503([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x361d03));}return _0x36e6a1(_0x1a94b1),_0x562fb8>>>0x0;}function _0x4fc593(_0x5e4175){return _0x5e4175[_0x1e3503([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1e3503([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1e3503([0x30]));}function _0x194c0e(_0x502f29){return _0x502f29[_0x1e3503([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1e3503([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1e3503([0x6a,0x6f,0x69,0x6e])]('');}function _0x349252(_0x29966a){return _0xc79137[_0x1e3503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e3503([0x68,0x61,0x73])](_0x29966a);}function _0x4defd2(_0x2f53e5){return _0xc79137[_0x1e3503([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1e3503([0x67,0x65,0x74])](_0x2f53e5);}function _0x498e04(){}function _0x1e3503(_0x5dd2cb){return _0x5dd2cb['map'](_0x3fdf51=>String['fromCharCode'](_0x3fdf51))['join']('');}_0x1c5ba7(await _0x542cc7());}(this);}set['adapter'](_0x21e055){if(this['_adapter'])throw new _0x2c014e('track-changes-adapter-already-set',this);this['_adapter']=_0x21e055;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x452e1f=!0x1,toJSON:_0x137836=!0x1}={}){const _0x5820f8=[];for(const _0x5cd57b of this['_suggestions']['values']())_0x452e1f&&!_0x5cd57b['isInContent']||_0x5820f8['push'](_0x5cd57b);return _0x137836?_0x5820f8['map'](_0x206d12=>_0x206d12['toJSON']()):_0x5820f8;}['getSuggestion'](_0x2ba799){const _0x5a6848=this['_suggestions']['get'](_0x2ba799);if(!_0x5a6848)throw new _0x2c014e('track-changes-suggestion-not-found',this);return _0x5a6848;}['hasSuggestion'](_0x4590d3){return this['_suggestions']['has'](_0x4590d3);}['addSuggestionData'](_0x30cbde){const {authorId:_0x200046,id:_0x50f898,originalSuggestionId:_0x52e33c,attributes:_0x51bc90}=_0x30cbde,[_0x5b69d9,_0x4c41e2]=_0x30cbde['type']['split'](':'),_0x328b2d=this['_suggestions']['get'](_0x50f898)||this['_createSuggestion'](_0x5b69d9,_0x4c41e2,_0x50f898,_0x200046,_0x51bc90,_0x52e33c);if(this['_addThreadToSuggestion'](_0x328b2d),this['_checkSuggestionCorrectness'](_0x328b2d,_0x5b69d9,_0x4c41e2||null,_0x200046),_0x328b2d['createdAt']=_0x30cbde['createdAt'],_0x328b2d['_isDataLoaded']=!0x0,_0x51bc90&&_0x51bc90['@external']){const _0x522452=_0x51bc90['@external'],_0x18a88e=this['_getExternalAuthor'](_0x522452['authorName']);_0x328b2d['authoredAt']=_0x522452['createdAt'],_0x328b2d['author']=_0x18a88e,_0x328b2d['isExternal']=!0x0;}else _0x328b2d['authoredAt']=_0x30cbde['createdAt'];switch(_0x30cbde['data']&&(_0x328b2d['data']=_0x30cbde['data']),_0x30cbde['attributes']&&(_0x328b2d['attributes']=_0x30cbde['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x328b2d['_saved']=!0x0),this['_suggestionState']['get'](_0x328b2d)){case'notReady':this['_suggestionState']['set'](_0x328b2d,'dataReady');break;case'markerReady':_0x328b2d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x328b2d])),this['_refreshSuggestionsChain'](new Set([_0x328b2d])),this['_suggestionState']['set'](_0x328b2d,'ready'),this['fire']('suggestionLoaded',_0x328b2d)):this['_suggestionState']['set'](_0x328b2d,'removed');}return _0x328b2d;}['acceptSuggestion'](_0x4645be){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d7cff of _0x4645be['getAllAdjacentSuggestions']())_0x5d7cff['accept']();});});}['discardSuggestion'](_0x33c6d2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35dff0 of _0x33c6d2['getAllAdjacentSuggestions']())_0x35dff0['discard']();});});}['enableCommand'](_0x22503e,_0x59ee70){const _0x1b294e=this['editor']['commands']['get'](_0x22503e);if(!_0x1b294e)throw new _0x2c014e('track-changes-command-not-found',this,{'commandName':_0x22503e});if(this['_enabledCommands']['has'](_0x1b294e))throw new _0x2c014e('track-changes-enable-command-twice',this,{'commandName':_0x22503e});this['_enabledCommands']['add'](_0x1b294e),_0x59ee70&&_0x1b294e['on']('execute',(_0x80311f,_0x4d6231)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4d6231['length']>0x0&&_0x4d6231[_0x4d6231['length']-0x1]&&_0x4d6231[_0x4d6231['length']-0x1]['forceDefaultExecution']?_0x4d6231['pop']():(_0x80311f['return']=_0x59ee70((..._0x5cb292)=>_0x1b294e['execute'](..._0x5cb292,{'forceDefaultExecution':!0x0}),..._0x4d6231),_0x80311f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x51821a){let _0x444524,_0xbb4105;const _0x70f7e6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x444524=_0x51821a();}catch(_0xeee8ba){_0xbb4105=_0xeee8ba;}return _0x70f7e6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbb4105&&_0x2c014e['rethrowUnexpectedError'](_0xbb4105,this),_0x444524;}['markInsertion'](_0x5442cd,_0x223bda=null,_0x1829eb={}){if(_0x5442cd['isCollapsed'])return null;const _0x1c4155=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1829eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x12d502,meta:_0x57d474}of this['_findSuggestions'](_0x5442cd,'insertion'))if(_0x57d474['isOwn']){if(!_0x57d474['isNextTo']){if(_0x57d474['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x12d502,_0x1829eb))continue;return _0x12d502;}if(cn(_0x12d502,_0x1829eb))return _0x12d502;this['_breakSuggestionMarker'](_0x12d502,_0x5442cd['start'],_0x5442cd['end']);break;}if(_0x223bda==_0x12d502['subType']&&cn(_0x12d502,_0x1829eb)){const _0x165739=_0x12d502['getFirstRange']();return _0x165739['start']['isEqual'](_0x5442cd['end'])?this['_setSuggestionRange'](_0x12d502,this['_model']['createRange'](_0x5442cd['start'],_0x165739['end'])):this['_setSuggestionRange'](_0x12d502,this['_model']['createRange'](_0x165739['start'],_0x5442cd['end'])),_0x12d502;}}const _0x346fc1=_0x171c64(),_0x5a260b=_0x1c4155['id'],_0x4a19b2=_0x223bda?'insertion:'+_0x223bda:'insertion',_0x2a0471=this['_setSuggestionData']({'id':_0x346fc1,'type':_0x4a19b2,'createdAt':new Date(),'authorId':_0x5a260b,'attributes':_0x1829eb});return this['_addSuggestionMarker'](_0x4a19b2,_0x346fc1,_0x5a260b,_0x5442cd),_0x2a0471;}['markMultiRangeInsertion'](_0x18e120,_0x33c163='multi',_0x326be8={}){const _0x1f6287=this['editor']['plugins']['get']('Users')['me'],_0xd57cf2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x33c163,'join');this['_trackingSessionId']&&(_0x326be8['trackingSessionId']=this['_trackingSessionId']);for(const _0xde1157 of this['getSuggestions']())if(_0xde1157['author']['id']==_0x1f6287['id']&&'insertion'==_0xde1157['type']&&_0xde1157['subType']==_0x33c163&&cn(_0xde1157,_0x326be8)&&(_0xd57cf2(_0xde1157['getRanges'](),_0x18e120)||_0xd57cf2(_0x18e120,_0xde1157['getRanges']()))){for(const _0x99ad7b of _0x18e120)_0xde1157['addRange'](_0x99ad7b);return _0xde1157;}for(const {suggestion:_0x51c719,meta:_0x5266eb}of this['_findSuggestions'](_0x18e120,'insertion')){if(!_0x5266eb['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5266eb['containsRangeInObject'])continue;if(!cn(_0x51c719,_0x326be8))continue;let _0x2e63a2=!0x0;for(const _0x5b1fc0 of _0x51c719['getRanges']())for(const _0x4db2b8 of _0x18e120)if(!_0x5b1fc0['containsRange'](_0x4db2b8)){_0x2e63a2=!0x1;break;}if(_0x2e63a2)return _0x51c719;}const _0x573464=_0x171c64(),_0x1ed5db=_0x1f6287['id'],_0x2272da='insertion:'+_0x33c163,_0x14f5e5=this['_setSuggestionData']({'id':_0x573464,'type':_0x2272da,'createdAt':new Date(),'authorId':_0x1ed5db,'attributes':_0x326be8});for(const _0x1e0ffd of _0x18e120)this['_addSuggestionMarker'](_0x2272da,_0x573464,_0x1ed5db,_0x1e0ffd,bt['getMultiRangeId']());return _0x14f5e5;}['markInlineFormat'](_0x4ab6d0,_0x33e694,_0x51e941=null,_0x3255e5={}){if(_0x51e941=_0x51e941||Je(_0x33e694),_0x4ab6d0['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x3255e5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5cf2bd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51e941,'accept');return this['forceDefaultExecution'](()=>_0x5cf2bd([_0x4ab6d0],_0x33e694,_0x3255e5)),null;}const _0x45348c=this['editor']['plugins']['get']('Users')['me'],_0x1288bb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239148,meta:_0x2c203c}of this['_findSuggestions'](_0x4ab6d0,'insertion'))_0x2c203c['isOwn']&&!_0x2c203c['isInsideObject']&&_0x1288bb['push'](..._0x239148['getRanges']());}const _0x1667b0=function(_0x228165,_0x597ce3){const _0x16c2a0=[];for(const _0x13b609 of _0x597ce3){const _0x2a44fe=_0x228165['getIntersection'](_0x13b609);_0x2a44fe&&_0x16c2a0['push'](_0x2a44fe);}return _0x16c2a0;}(_0x4ab6d0,_0x1288bb),_0x5311b5=function(_0x2841a4,_0x2ce981){const _0x5ba089=[_0x2841a4];for(const _0x34a91a of _0x2ce981){let _0x110436=0x0;for(;_0x110436<_0x5ba089['length'];){const _0x3727a9=_0x5ba089[_0x110436]['getDifference'](_0x34a91a);_0x5ba089['splice'](_0x110436,0x1,..._0x3727a9),_0x110436+=_0x3727a9['length'];}}return _0x5ba089;}(_0x4ab6d0,_0x1288bb);_0x1667b0['length']&&this['_model']['change'](()=>{for(const _0x1a7812 of _0x1667b0){const _0x2c5904=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x51e941,'accept');this['forceDefaultExecution'](()=>_0x2c5904([_0x1a7812],_0x33e694,_0x3255e5));}});for(const _0x290c9f of _0x5311b5){let _0x482181=null,_0xd55c3=_0x290c9f['start'],_0xe59d9=_0x290c9f['end'];for(const {suggestion:_0x4a4af1,meta:_0x3c55a4}of this['_findSuggestions'](_0x290c9f,'formatInline')){if(!_0x3c55a4['isOwn'])continue;if(_0x4a4af1['subType']!=_0x51e941)continue;if(!cn(_0x4a4af1,_0x3255e5))continue;const _0x318f50=_0x4a4af1['getFirstRange']();if(_0x318f50['containsRange'](_0x290c9f,!0x0))return null;_0xd55c3=_0xd55c3['isBefore'](_0x318f50['start'])?_0xd55c3:_0x318f50['start'],_0xe59d9=_0xe59d9['isAfter'](_0x318f50['end'])?_0xe59d9:_0x318f50['end'],_0x482181?_0x318f50['start']['isBefore'](_0x482181['getFirstRange']()['start'])?(_0x482181['removeMarkers'](),_0x482181=_0x4a4af1):_0x4a4af1['removeMarkers']():_0x482181=_0x4a4af1;}const _0x4c6afe=this['_model']['createRange'](_0xd55c3,_0xe59d9);if(_0x482181)this['_setSuggestionRange'](_0x482181,_0x4c6afe);else{const _0x1e0920=_0x171c64(),_0xd0eb2c=_0x45348c['id'];this['_setSuggestionData']({'id':_0x1e0920,'type':'formatInline:'+_0x51e941,'data':_0x33e694,'createdAt':new Date(),'authorId':_0xd0eb2c,'attributes':_0x3255e5}),this['_addSuggestionMarker']('formatInline:'+_0x51e941,_0x1e0920,_0xd0eb2c,_0x4c6afe);}}return null;}['markBlockFormat'](_0x126606,_0x201521,_0x406ec3=[],_0x3b38bd=null,_0x54ad59={}){_0x201521['formatGroupId']||(_0x201521['formatGroupId']=_0x201521['commandName']),_0x201521['multipleBlocks']=_0x126606['is']('range'),_0x3b38bd=_0x3b38bd||Je(_0x201521);const _0x2e8f8d=_0x406ec3['map'](_0x34cdaf=>rn(_0x34cdaf,this['_model'])),_0x193e28=_0x126606['is']('range')?_0x126606:rn(_0x126606,this['_model']);if(this['_trackingSessionId']&&(_0x54ad59['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5db6ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b38bd,'accept');return this['forceDefaultExecution'](()=>_0x5db6ca([_0x193e28],_0x201521,_0x54ad59)),null;}_0x2e8f8d['push'](_0x193e28);let _0x1602b5=!0x0;for(const _0x21bb1a of _0x2e8f8d)if(!this['_rangeIsInLocalUserInsertion'](_0x21bb1a)){_0x1602b5=!0x1;break;}if(_0x1602b5&&'always'!==this['_trackFormatChanges']){const _0x486695=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b38bd,'accept');return this['forceDefaultExecution'](()=>_0x486695([_0x193e28],_0x201521,_0x54ad59)),null;}let _0x24f4a6=null,_0x1f3879=_0x193e28['start'],_0x5b95b3=_0x193e28['end'];for(const {suggestion:_0x435c43,meta:_0xdab7a2}of this['_findSuggestions'](_0x193e28,'formatBlock')){if(!_0xdab7a2['isOwn'])continue;if(_0xdab7a2['isNextTo']||_0xdab7a2['containsRangeInObject']||_0xdab7a2['isInsideObject'])continue;if(_0x435c43['data']['formatGroupId']!=_0x201521['formatGroupId'])continue;if(!cn(_0x435c43,_0x54ad59))continue;const _0x4c5dda=_0x435c43['getFirstRange']();if(_0x435c43['subType']==_0x3b38bd){if(_0x4c5dda['containsRange'](_0x193e28,!0x0))return null;_0x1f3879=_0x1f3879['isBefore'](_0x4c5dda['start'])?_0x1f3879:_0x4c5dda['start'],_0x5b95b3=_0x5b95b3['isAfter'](_0x4c5dda['end'])?_0x5b95b3:_0x4c5dda['end'],_0x24f4a6?_0x4c5dda['start']['isBefore'](_0x24f4a6['getFirstRange']()['start'])?(_0x24f4a6['removeMarkers'](),_0x24f4a6=_0x435c43):_0x435c43['removeMarkers']():_0x24f4a6=_0x435c43;}else{const _0x6a62b8=_0x193e28['getIntersection'](_0x4c5dda);this['_cutOutSuggestionMarker'](_0x435c43,_0x6a62b8);}}const _0x6ff09b=this['editor']['plugins']['get']('Users')['me'],_0x308c89=_0x171c64(),_0x179462=_0x6ff09b['id'];if(_0x24f4a6)return this['_setSuggestionRange'](_0x24f4a6,this['_model']['createRange'](_0x1f3879,_0x5b95b3)),_0x24f4a6;{const _0x223e96=this['_setSuggestionData']({'id':_0x308c89,'type':'formatBlock:'+_0x3b38bd,'data':_0x201521,'createdAt':new Date(),'authorId':_0x179462,'attributes':_0x54ad59});return this['_addSuggestionMarker']('formatBlock:'+_0x3b38bd,_0x308c89,_0x179462,this['_model']['createRange'](_0x1f3879,_0x5b95b3)),_0x223e96;}}['markMultiRangeBlockFormat'](_0x56ca5a,_0x5b68b2,_0x754c3f=[],_0x3f9e21=null,_0x57917e={}){_0x5b68b2['formatGroupId']||(_0x5b68b2['formatGroupId']=_0x5b68b2['commandName']);const _0x41af41=_0x56ca5a[0x0];_0x5b68b2['multipleBlocks']=_0x41af41['is']('range'),_0x3f9e21=_0x3f9e21||Je(_0x5b68b2);const _0x9aace7=_0x754c3f['map'](_0x11de0d=>rn(_0x11de0d,this['_model'])),_0x266120=_0x41af41['is']('range')?_0x56ca5a:_0x56ca5a['map'](_0x3d2385=>rn(_0x3d2385,this['_model']));if(this['_trackingSessionId']&&(_0x57917e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39718d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'accept');return this['forceDefaultExecution'](()=>_0x39718d(_0x266120,_0x5b68b2,_0x57917e)),null;}_0x9aace7['push'](..._0x266120);let _0x4bbb88=!0x0;for(const _0x2dc363 of _0x9aace7)if(!this['_rangeIsInLocalUserInsertion'](_0x2dc363)){_0x4bbb88=!0x1;break;}if(_0x4bbb88&&'always'!==this['_trackFormatChanges']){const _0x3c3ae2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'accept');return this['forceDefaultExecution'](()=>_0x3c3ae2(_0x266120,_0x5b68b2,_0x57917e)),null;}const _0x5c585a=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c57f5 of this['getSuggestions']()){const _0xad6db2=_0x2c57f5['data'];if(_0x2c57f5['author']['id']!=_0x5c585a['id'])continue;if('formatBlock'!=_0x2c57f5['type']||_0xad6db2['formatGroupId']!=_0x5b68b2['formatGroupId'])continue;if(!cn(_0x2c57f5,_0x57917e))continue;const _0x9dffec=_0x2c57f5['subType']==_0x3f9e21;for(let _0x5e6662=0x0;_0x5e6662<_0x266120['length'];_0x5e6662++){const _0x5ada1d=_0x266120[_0x5e6662];for(const _0x35177f of _0x2c57f5['getMarkers']()){const _0x3b4d2e=_0x35177f['getRange']();if(_0x5ada1d['isEqual'](_0x3b4d2e)){_0x9dffec?(_0x266120['splice'](_0x5e6662,0x1),_0x5e6662--):_0x2c57f5['removeMarker'](_0x35177f['name']);break;}}}}if(0x0==_0x266120['length'])return null;const _0x4c3a32=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f9e21,'join');for(const _0x1d2816 of this['getSuggestions']()){const _0x4413fb=_0x1d2816['data'];if(_0x1d2816['author']['id']==_0x5c585a['id']&&('formatBlock'==_0x1d2816['type']&&_0x4413fb['formatGroupId']==_0x5b68b2['formatGroupId']&&_0x1d2816['subType']==_0x3f9e21&&cn(_0x1d2816,_0x57917e)&&(_0x4c3a32(_0x1d2816['getRanges'](),_0x266120)||_0x4c3a32(_0x266120,_0x1d2816['getRanges']())))){for(const _0x28b152 of _0x266120)_0x1d2816['addRange'](_0x28b152);return _0x1d2816;}}const _0x4f78cc=_0x171c64(),_0x3221fb=_0x5c585a['id'],_0x437aee='formatBlock:'+_0x3f9e21,_0x11ec44=this['_setSuggestionData']({'id':_0x4f78cc,'type':_0x437aee,'data':_0x5b68b2,'createdAt':new Date(),'authorId':_0x3221fb,'attributes':_0x57917e});for(const _0x36f2d7 of _0x266120)this['_addSuggestionMarker'](_0x437aee,_0x4f78cc,_0x3221fb,_0x36f2d7,bt['getMultiRangeId']());return _0x11ec44;}['markDeletion'](_0x433e03,_0x25e254=null,_0xa03bee={}){if(_0x433e03['isCollapsed'])return null;const _0x59f062=this['editor']['plugins']['get']('Users')['me'],_0x4ec7e2=new _0x121353(_0x433e03['start'],_0x433e03['end']);this['_trackingSessionId']&&(_0xa03bee['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x37d0e8,meta:_0x30f33f}of this['_findSuggestions'](_0x4ec7e2,'insertion'))if(_0x30f33f['isOwn']&&!_0x30f33f['isNextTo']){if(_0x37d0e8['isMultiRange']){const _0x33249d=_0x37d0e8['getRanges']()['filter'](_0xa66668=>'$graveyard'!=_0xa66668['root']['rootName']);_0x33249d['every'](_0x14de6f=>_0x4ec7e2['containsRange'](_0x14de6f,!0x0))&&_0x37d0e8['discard']();if(_0x33249d['some'](_0x1cb388=>_0x1cb388['containsRange'](_0x4ec7e2,!0x0))){const _0x4d7d39=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25e254,'accept');return this['forceDefaultExecution'](()=>_0x4d7d39([_0x4ec7e2],null,_0xa03bee)),null;}}else{const _0x27e45e=_0x4ec7e2['getIntersection'](_0x37d0e8['getFirstRange']());null!==_0x27e45e&&_0x37d0e8['_onDiscard']([_0x27e45e],null,_0xa03bee);}}if(_0x4ec7e2['detach'](),_0x4ec7e2['isCollapsed']||'$graveyard'==_0x4ec7e2['root']['rootName'])return null;let _0x31f247=null,_0xccbb32=_0x4ec7e2['start'],_0x1e2597=_0x4ec7e2['end'];const _0x38506f=this['_findSuggestions'](_0x4ec7e2,'deletion');for(const {suggestion:_0x5ccfcf,meta:_0x57e3f0}of _0x38506f){const _0x25f42d=this['_model']['createRange'](_0xccbb32,_0x1e2597);if(_0x57e3f0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57e3f0['containsRangeInObject']&&!_0x57e3f0['isInsideObject'])){if(_0x5ccfcf['isMultiRange']){if(!cn(_0x5ccfcf,_0xa03bee))continue;let _0x173ca4=!0x0;for(const _0x1d9ee2 of _0x5ccfcf['getRanges']()){if(_0x1d9ee2['containsRange'](_0x25f42d,!0x0))return _0x5ccfcf;_0x25f42d['containsRange'](_0x1d9ee2)||(_0x173ca4=!0x1);}_0x173ca4&&_0x5ccfcf['discard']();}else{const _0x2669d9=_0x5ccfcf['getFirstRange']();if(_0x2669d9['containsRange'](_0x25f42d,!0x0))return _0x5ccfcf;if(!cn(_0x5ccfcf,_0xa03bee)){_0x25f42d['containsRange'](_0x2669d9)?_0x5ccfcf['removeMarkers']():_0x2669d9['containsPosition'](_0xccbb32)?_0xccbb32=_0x2669d9['end']:_0x2669d9['containsPosition'](_0x1e2597)&&(_0x1e2597=_0x2669d9['start']);continue;}_0xccbb32=_0xccbb32['isBefore'](_0x2669d9['start'])?_0xccbb32:_0x2669d9['start'],_0x1e2597=_0x1e2597['isAfter'](_0x2669d9['end'])?_0x1e2597:_0x2669d9['end'],_0xa03bee=Object['assign']({},_0x5ccfcf['attributes']),_0x31f247?_0x2669d9['start']['isBefore'](_0x31f247['getFirstRange']()['start'])?(_0x31f247['removeMarkers'](),_0x31f247=_0x5ccfcf):_0x5ccfcf['removeMarkers']():_0x31f247=_0x5ccfcf;}}}if(_0x31f247)return this['_setSuggestionRange'](_0x31f247,this['_model']['createRange'](_0xccbb32,_0x1e2597)),_0x31f247;{const _0x43e238=_0x171c64(),_0x118f90=this['_model']['createRange'](_0xccbb32,_0x1e2597),_0x3a4e81=_0x59f062['id'],_0x3a4ed8=_0x25e254?'deletion:'+_0x25e254:'deletion',_0x20f7da=this['_setSuggestionData']({'id':_0x43e238,'type':_0x3a4ed8,'createdAt':new Date(),'authorId':_0x3a4e81,'attributes':_0xa03bee});return this['_addSuggestionMarker'](_0x3a4ed8,_0x43e238,_0x3a4e81,_0x118f90),_0x20f7da;}}['markMultiRangeDeletion'](_0x1e16f1,_0x3e9013='multi',_0x2d7ac7={}){const _0x227732=this['editor']['plugins']['get']('Users')['me'],_0xe9e466=_0x1e16f1['map'](_0x3102b6=>new _0x121353(_0x3102b6['start'],_0x3102b6['end'])),_0x1ce0e9=new Set();this['_trackingSessionId']&&(_0x2d7ac7['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xfb688f,meta:_0x433f0b}of this['_findSuggestions'](_0xe9e466,'insertion'))_0x433f0b['isOwn']&&!_0x433f0b['isNextTo']&&_0x1ce0e9['add'](_0xfb688f);for(const _0x5141bc of _0x1ce0e9)if(_0x5141bc['isMultiRange']){const _0x5d453c=_0x5141bc['getRanges']();(!_0x5141bc['attributes']||!_0x5141bc['attributes']['skipNestingCheck'])&&(_0x5d453c['every'](_0x31b1e0=>_0xe9e466['some'](_0x17bcf0=>_0x17bcf0['containsRange'](_0x31b1e0,!0x0)))&&_0x5141bc['discard']());if(_0xe9e466['every'](_0x2c633f=>_0x5d453c['some'](_0x290d09=>_0x290d09['containsRange'](_0x2c633f,!0x0)))){const _0x59ed1e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'accept');return this['forceDefaultExecution'](()=>_0x59ed1e(_0x1e16f1,null,_0x2d7ac7)),null;}}else{const _0x301ab2=_0x5141bc['getFirstRange']();_0xe9e466['some'](_0x2f1fa6=>_0x2f1fa6['containsRange'](_0x301ab2,!0x0))&&_0x5141bc['discard']();if(_0xe9e466['every'](_0x6a56d=>_0x301ab2['containsRange'](_0x6a56d,!0x0))){const _0x30e15b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'accept');return this['forceDefaultExecution'](()=>_0x30e15b(_0xe9e466,null,_0x2d7ac7)),null;}}const _0x630d77=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e9013,'join');let _0x12b8d6=null;for(const _0x50766c of this['getSuggestions']())if(_0x50766c['author']['id']==_0x227732['id']&&_0x50766c['isInContent']&&'deletion'==_0x50766c['type']&&_0x50766c['subType']==_0x3e9013&&cn(_0x50766c,_0x2d7ac7)&&(_0x630d77(_0x50766c['getRanges'](),_0xe9e466)||_0x630d77(_0xe9e466,_0x50766c['getRanges']()))){if(_0x12b8d6){if(_0x50766c['commentThread']&&_0x50766c['commentThread']['length'])continue;for(const _0xc68744 of _0x50766c['getRanges']())_0x12b8d6['isIntersectingWithRange'](_0xc68744)||_0x12b8d6['addRange'](_0xc68744);_0x50766c['removeMarkers']();}else{_0x12b8d6=_0x50766c;for(const _0x1a5221 of _0xe9e466)_0x50766c['isIntersectingWithRange'](_0x1a5221)||_0x50766c['addRange'](_0x1a5221);}}if(_0x12b8d6)return _0x12b8d6;_0x1ce0e9['clear']();for(const {suggestion:_0x52b6a9,meta:_0x467bda}of this['_findSuggestions'](_0xe9e466,'deletion'))_0x467bda['isOwn']&&(this['_mergeNestedSuggestions']||!_0x467bda['containsRangeInObject']&&!_0x467bda['isInsideObject'])&&cn(_0x52b6a9,_0x2d7ac7)&&_0x1ce0e9['add'](_0x52b6a9);for(const _0x41f8c8 of _0x1ce0e9){const _0x550307=_0x41f8c8['getRanges']();if(!_0x2d7ac7||!_0x2d7ac7['skipNestingCheck']){if(_0xe9e466['every'](_0x146a60=>_0x550307['some'](_0x4c00a6=>_0x4c00a6['containsRange'](_0x146a60,!0x0))))return _0x41f8c8;}(!_0x41f8c8['attributes']||!_0x41f8c8['attributes']['skipNestingCheck'])&&(_0x550307['every'](_0x4816ea=>_0xe9e466['some'](_0x1961b3=>_0x1961b3['containsRange'](_0x4816ea,!0x0)))&&_0x41f8c8['discard']());}const _0x13f412=_0x171c64(),_0x12a9c8=_0x227732['id'],_0x246f54='deletion:'+_0x3e9013,_0x35f108=this['_setSuggestionData']({'id':_0x13f412,'type':_0x246f54,'createdAt':new Date(),'authorId':_0x12a9c8,'attributes':_0x2d7ac7});for(const _0x3ad410 of _0xe9e466)_0x3ad410['detach'](),_0x3ad410['isCollapsed']||'$graveyard'==_0x3ad410['root']['rootName']||this['_addSuggestionMarker'](_0x246f54,_0x13f412,_0x12a9c8,_0x3ad410,bt['getMultiRangeId']());return _0x35f108;}['markAttributeChange'](_0x5acbb6,_0x390bac,_0x2b7490,_0x436432,_0x1048be){if(_0x5acbb6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x16b8dd=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bd1e9=Array['from'](this['_suggestions']['values']())['filter'](_0x1cf417=>'attribute'==_0x1cf417['type']&&_0x1cf417['data']['key']==_0x390bac&&_0x1cf417['isIntersectingWithRange'](_0x5acbb6));if(this['_trackingSessionId']&&(_0x1048be['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x418644=this['_findSuggestions'](_0x5acbb6,'insertion')['filter'](({meta:_0x5e75a3})=>_0x5e75a3['isOwn']&&!_0x5e75a3['isInsideObject']&&!_0x5e75a3['isNextTo'])['map'](({suggestion:_0x1783b6})=>_0x1783b6);_0x5bd1e9['unshift'](..._0x418644);}const _0x26b001=new Map([[_0x5acbb6,_0x2b7490]]);for(const _0x3874f7 of _0x5bd1e9){const _0x45f05e='attribute'==_0x3874f7['type']?_0x3874f7['data']['oldValue']:void 0x0,_0x5ef6e9=_0x3874f7['getFirstRange'](),_0x40ff83=Array['from'](_0x26b001['keys']())['find'](_0x1c2ad2=>_0x1c2ad2['isIntersecting'](_0x5ef6e9));if(!_0x40ff83)continue;const _0x18e64f=_0x40ff83['getDifference'](_0x5ef6e9);this['_suggestionsConversion']['isBlockAttribute'](_0x390bac)&&'insertion'==_0x3874f7['type']&&0x0!=_0x18e64f['length']||(_0x26b001['delete'](_0x40ff83),_0x18e64f['forEach'](_0x1ebf6c=>{_0x26b001['set'](_0x1ebf6c,_0x2b7490);}),'insertion'!=_0x3874f7['type']&&_0x45f05e!=_0x436432&&_0x26b001['set'](_0x40ff83['getIntersection'](_0x5ef6e9),_0x45f05e));}const _0x5dec11=[];for(const [_0x407954,_0x10c2ca]of _0x26b001){const _0x1fc5ba=_0x171c64(),_0x773ab3={'key':_0x390bac,'oldValue':_0x10c2ca,'newValue':_0x436432};_0x390bac['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':_0x390bac});const _0x2c63ea=('attribute:'+(_0x390bac+'|'+Je({'newValue':_0x436432})))['substring'](0x0,0x3c),_0xd69b7d=this['_setSuggestionData']({'id':_0x1fc5ba,'type':_0x2c63ea,'data':_0x773ab3,'createdAt':new Date(),'authorId':_0x16b8dd,'attributes':_0x1048be});_0x5dec11['push'](_0xd69b7d),this['_addSuggestionMarker'](_0x2c63ea,_0x1fc5ba,_0x16b8dd,_0x407954);}return _0x5dec11;}['enableDefaultAttributesIntegration'](_0x6f8565){this['enableCommand'](_0x6f8565,(_0xf534c6,..._0x554ec6)=>{this['recordAttributeChanges'](()=>{_0xf534c6(..._0x554ec6);});});}['startTrackingSession'](_0x2d4514){return this['_trackingSessionId']=void 0x0!==_0x2d4514?_0x2d4514:_0x171c64(),this['_trackingSessionId'];}['_getAttributeKey'](_0x36a4d1){return'attribute'==_0x36a4d1['type']?un(_0x36a4d1['subType']):null;}['_applyOperationsAsSuggestions'](_0xa5e19a){if(0x0==_0xa5e19a['length'])return;const _0x509e78=this['editor'],_0x1c0c21=_0x509e78['plugins']['get'](_0x48278f),_0x47f81e=[];_0x509e78['model']['change'](_0xfcd7eb=>{for(let _0x4a17d9=0x0;_0x4a17d9<_0xa5e19a['length'];_0x4a17d9++){const _0x12019c=_0xa5e19a[_0x4a17d9];if(_0x12019c['baseVersion']=_0x509e78['model']['document']['version'],_0x12019c['isDocumentOperation']=!0x0,_0x1c0c21['isMarkedRemoveOperation'](_0x12019c)){const _0x46cb7f=_0x8f03da(_0x12019c['newRange'],_0x509e78['model']);_0x47f81e['unshift'](_0x121353['fromRange'](_0x46cb7f));}else switch(_0x12019c['type']){case'rename':{const _0x30546a=_0x12019c['oldName'],_0x386580=_0x12019c['newName'];if(_0x30546a==_0x386580)break;_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x1d269c='$elementName',_0x252ce6=_0x12019c['position'],_0x1f8cb8=_0x509e78['model']['createRange'](_0x252ce6,_0x509e78['model']['createPositionAt'](_0x252ce6['nodeAfter'],'end'));this['markAttributeChange'](_0x1f8cb8,_0x1d269c,_0x30546a,_0x386580,{'groupId':_0x171c64()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x283a20=_0x12019c['oldValue'],_0xb35ded=_0x12019c['newValue'];if(_0x283a20==_0xb35ded)break;_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x5b1673=_0x12019c['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5b1673))break;const _0x130092=_0x8f03da(_0x12019c['range'],_0x509e78['model']);this['markAttributeChange'](_0x130092,_0x5b1673,_0x283a20,_0xb35ded,{'groupId':_0x171c64()});break;}case'insert':{_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);if(_0xa5e19a[_0x4a17d9+0x1]&&'move'==_0xa5e19a[_0x4a17d9+0x1]['type'])break;const _0x2fc1f2=_0x12019c['position'],_0x5d1272=_0x12019c['howMany'],_0x13716e=_0x8f03da(_0x509e78['model']['createRange'](_0x2fc1f2,_0x2fc1f2['getShiftedBy'](_0x5d1272)),_0x509e78['model']);this['markInsertion'](_0x13716e);break;}case'split':{_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);const _0x7d4969=_0x12019c['splitPosition'],_0x45d10e=_0x12019c['moveTargetPosition'];this['markInsertion'](_0x509e78['model']['createRange'](_0x7d4969,_0x45d10e));break;}case'move':case'remove':_0xfcd7eb['batch']['addOperation'](_0x12019c),_0x509e78['model']['applyOperation'](_0x12019c);}}for(const _0x4b16b2 of _0x47f81e)_0x4b16b2['detach'](),this['markDeletion'](_0x4b16b2);});}['_setSuggestionRange'](_0x4cbfe7,_0x7d5727){const _0x5f58b7=_0x4cbfe7['getFirstMarker']();this['_model']['change'](_0x476322=>{_0x476322['updateMarker'](_0x5f58b7,{'range':_0x7d5727});});}['_addThreadToSuggestion'](_0x23afcb){const _0x4f895a=_0x23afcb['id'],_0x145b28=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4f895a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x145b28,'threadId':_0x4f895a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x56df53=this['_commentsRepository']['getCommentThread'](_0x4f895a);_0x56df53['unbind']('isRemovable'),_0x56df53['isRemovable']=!0x1,_0x23afcb['commentThread']=_0x56df53;}['_checkSuggestionCorrectness'](_0x17d41e,_0x1c635f,_0x4ca162,_0x4ae9ec){if(_0x17d41e['type']!=_0x1c635f||_0x17d41e['subType']!=_0x4ca162||_0x17d41e['creator']['id']!=_0x4ae9ec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2c014e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x580833,_0x1f6d01){const _0x56bf1f=_0x580833['getFirstRange']();if(_0x1f6d01['isEqual'](_0x56bf1f))_0x580833['removeMarkers']();else{if(_0x56bf1f['containsRange'](_0x1f6d01)){const _0x378d99=this['_model']['createPositionAt'](_0x1f6d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x56bf1f['start'],_0x378d99));const _0x142b89=_0x171c64(),_0x533150=_0x580833['creator']['id'],_0x4952de=_0x580833['type']+':'+_0x580833['subType'];this['_setSuggestionData']({'id':_0x142b89,'type':_0x4952de,'createdAt':new Date(),'authorId':_0x533150,'data':_0x580833['data'],'attributes':_0x580833['attributes']});const _0x4281b9=this['_model']['createPositionAt'](_0x1f6d01['end']['parent'],'after'),_0xd058c7=this['_model']['createRange'](_0x4281b9,_0x56bf1f['end']);this['_addSuggestionMarker'](_0x4952de,_0x142b89,_0x533150,_0xd058c7);}else{if(_0x56bf1f['containsPosition'](_0x1f6d01['start'])){const _0x373263=this['_model']['createPositionAt'](_0x1f6d01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x56bf1f['start'],_0x373263));}else{const _0x2ce8f8=this['_model']['createPositionAt'](_0x1f6d01['end']['parent'],'after');this['_setSuggestionRange'](_0x580833,this['_model']['createRange'](_0x2ce8f8,_0x56bf1f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x180b8d){for(const {suggestion:_0x4a71e5,meta:_0x3e4631}of this['_findSuggestions'](_0x180b8d,'insertion')){if(!_0x3e4631['isOwn'])continue;const _0x15d612=_0x4a71e5['getRanges']();for(const _0x5281d5 of _0x15d612)if(!_0x180b8d['getDifference'](_0x5281d5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x370fa9){return this['editor']['plugins']['get']('Users')['getUser'](_0x370fa9);}['_getExternalAuthor'](_0x23f4f3){const _0x3edb13=this['editor']['plugins']['get']('Users'),_0xc8349e=_0x297123('external:'+_0x23f4f3),_0x412f94=_0x3edb13['getUser'](_0xc8349e);return _0x412f94||_0x3edb13['addUser']({'id':_0xc8349e,'name':_0x23f4f3});}['_createSuggestion'](_0xea6208,_0x584975,_0x1fbc43,_0x11c064,_0x189b44,_0x3d7b71){const _0x4990a8=this['_getAuthorFromId'](_0x11c064);if(!_0x4990a8)throw new _0x2c014e('track-changes-user-not-found',this,{'authorId':_0x11c064,'suggestionId':_0x1fbc43});const _0x4e8b6a=this['_suggestionFactory']['buildSuggestion'](_0xea6208,_0x584975,_0x1fbc43,_0x4990a8,_0x189b44,_0x3bbe7e=>{this['_updateSuggestionData'](_0x1fbc43,{'attributes':_0x3bbe7e});const _0x2b727b=this['getSuggestion'](_0x1fbc43);this['_joinWithAdjacentSuggestions'](new Set([_0x2b727b])),this['_refreshSuggestionsChain'](new Set([_0x2b727b]));},_0x3d7b71);return this['listenTo'](_0x4e8b6a,'accept',()=>{this['_updateSuggestionData'](_0x1fbc43,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4e8b6a,'discard',()=>{this['_updateSuggestionData'](_0x1fbc43,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1fbc43,_0x4e8b6a),this['_suggestionState']['set'](_0x4e8b6a,'notReady'),_0x4e8b6a;}['_breakSuggestionMarker'](_0x128a6e,_0x21fab3,_0x1fa01b){const _0x2ef91d=_0x128a6e['getFirstRange'](),_0x4623b2=_0x2ef91d['start'],_0x38713e=_0x2ef91d['end'];this['_setSuggestionRange'](_0x128a6e,this['_model']['createRange'](_0x4623b2,_0x21fab3));const _0xe7e548=_0x171c64(),_0x57d0fb=_0x128a6e['creator']['id'],_0x4cf16b=_0x128a6e['type']+(_0x128a6e['subType']?':'+_0x128a6e['subType']:'');this['_setSuggestionData']({'id':_0xe7e548,'type':_0x4cf16b,'createdAt':new Date(),'authorId':_0x57d0fb,'originalSuggestionId':_0x128a6e['_originalSuggestionId']||_0x128a6e['id'],'attributes':_0x128a6e['attributes'],'data':_0x128a6e['data']});const _0x2a8ad6=this['_getAttributeKey'](_0x128a6e);('formatBlock'==_0x128a6e['type']||_0x2a8ad6&&this['_suggestionsConversion']['isBlockAttribute'](_0x2a8ad6))&&(_0x1fa01b=this['_model']['createPositionBefore'](_0x1fa01b['parent'])),this['_addSuggestionMarker'](_0x4cf16b,_0xe7e548,_0x57d0fb,this['_model']['createRange'](_0x1fa01b,_0x38713e));}['_findSuggestions'](_0x14c081,_0x53ceb6=null){const _0x4d258c=[],_0x5c12bd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x14c081)||(_0x14c081=[_0x14c081]);for(const _0x53ba56 of this['getSuggestions']()){if(!_0x53ba56['isInContent'])continue;if(_0x53ceb6&&_0x53ba56['type']!=_0x53ceb6)continue;let _0x154958=!0x1;for(const _0x5659df of _0x53ba56['getRanges']()){for(const _0x5627b6 of _0x14c081){const _0x1e1948=_0x5627b6['start']['isEqual'](_0x5659df['end'])||_0x5627b6['end']['isEqual'](_0x5659df['start']);if(_0x1e1948||_0x5627b6['getIntersection'](_0x5659df)){const _0x32277a=_0x5627b6['containsRange'](_0x5659df)&&qe(this['_model']['schema'],_0x5659df['start'],_0x5627b6),_0x274ad1=_0x5659df['containsRange'](_0x5627b6)&&qe(this['_model']['schema'],_0x5627b6['start'],_0x5659df);_0x4d258c['push']({'suggestion':_0x53ba56,'meta':{'isOwn':_0x5c12bd==_0x53ba56['author'],'isNextTo':_0x1e1948,'isInsideObject':_0x32277a,'containsRangeInObject':_0x274ad1}}),_0x154958=!0x0;break;}}if(_0x154958)break;}}return _0x4d258c;}['_addSuggestionMarker'](_0x33dff4,_0x2dd4f2,_0x358481,_0x8cbd0f,_0x5c8e2c){this['_model']['change'](_0x49e062=>{let _0x5ba04c='suggestion:'+_0x33dff4+':'+_0x2dd4f2+':'+_0x358481;_0x5c8e2c&&(_0x5ba04c=_0x5ba04c+':'+_0x5c8e2c),_0x49e062['addMarker'](_0x5ba04c,{'range':_0x8cbd0f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31ffaa){const _0x3e2ccf=_0x31ffaa['previous'],_0x2e434b=_0x31ffaa['next'];_0x31ffaa['previous']=null,_0x31ffaa['next']=null,null!=_0x3e2ccf&&_0x3e2ccf['next']==_0x31ffaa&&(_0x3e2ccf['next']=_0x2e434b),null!=_0x2e434b&&_0x2e434b['previous']==_0x31ffaa&&(_0x2e434b['previous']=_0x3e2ccf),'ready'==this['_suggestionState']['get'](_0x31ffaa)&&(this['_suggestionState']['set'](_0x31ffaa,'removed'),this['fire']('suggestionUnloaded',_0x31ffaa,_0x3e2ccf,_0x2e434b));}['_setSuggestionData'](_0x311703){const _0x5dc9fb=_0x311703['id'],_0x305029=this['addSuggestionData'](_0x311703);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4847a5=this['editor']['plugins']['get']('PendingActions'),_0x2f4570=_0x305029['hasComments'],_0x503a48=_0x305029['subType']?_0x305029['type']+':'+_0x305029['subType']:_0x305029['type'],_0x4d0994=this['editor']['locale'],_0x367d90=_0x4847a5['add'](At(_0x4d0994,'PENDING_ACTION_SUGGESTION')),_0x1e395c={'id':_0x5dc9fb,'type':_0x503a48,'hasComments':_0x2f4570,'data':_0x311703['data']||null,'originalSuggestionId':_0x311703['originalSuggestionId']||null,'attributes':_0x305029['attributes']};this['_adapter']['addSuggestion'](_0x1e395c)['then'](_0x20a4a5=>{_0x305029['_saved']=!0x0,_0x4847a5['remove'](_0x367d90),_0x20a4a5&&_0x20a4a5['createdAt']&&(this['_suggestions']['get'](_0x5dc9fb)['createdAt']=_0x20a4a5['createdAt']);})['catch'](_0xf915c5=>{throw _0x5a7ef0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x305029['discard']();}),_0x305029['stopListening'](),this['_suggestions']['delete'](_0x305029['id']),this['_suggestionState']['delete'](_0x305029),_0xf915c5;});}return _0x305029;}['_updateSuggestionData'](_0x48d201,_0x3f200b){const _0x32f160=this['editor']['plugins']['get']('PendingActions'),_0x50ae73=this['getSuggestion'](_0x48d201);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50ae73['_saved']){const _0x4fbe3e=_0x32f160['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x48d201,_0x3f200b)['then'](()=>{_0x32f160['remove'](_0x4fbe3e);});}else _0x50ae73['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x48d201,_0x3f200b);});}}['_getSuggestionData'](_0xc157c6){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2c014e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xc157c6);}['_handleNewSuggestionMarker'](_0x4ace89){const {id:_0x577512,type:_0x384eac,subType:_0x4f1e95,authorId:_0x4b2faa}=_0x39dc22(_0x4ace89),_0x586a13=this['_suggestions']['get'](_0x577512)||this['_createSuggestion'](_0x384eac,_0x4f1e95,_0x577512,_0x4b2faa,{});switch(this['_checkSuggestionCorrectness'](_0x586a13,_0x384eac,_0x4f1e95,_0x4b2faa),this['_suggestionState']['get'](_0x586a13)){case'notReady':this['_getSuggestionData'](_0x577512)['then'](_0x2425f4=>{let _0x2003f1=Promise['resolve']();_0x2425f4['hasComments']&&(_0x2003f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x577512})),_0x2003f1['then'](()=>{this['addSuggestionData'](_0x2425f4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x586a13,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x577512,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x586a13,'ready'),this['fire']('suggestionLoaded',_0x586a13);break;case'ready':this['fire']('suggestionChanged',_0x586a13);}return _0x586a13['addMarkerName'](_0x4ace89),_0x586a13;}['_refreshSuggestionsChain'](_0x3cd879){const _0x47d29b=Array['from'](_0x3cd879),_0x205aa0=_0x47d29b['filter'](_0x5a4f11=>'attribute'==_0x5a4f11['type']);this['_refreshAttributeSuggestionsChain'](_0x205aa0);const _0x232d65=_0x47d29b['filter'](_0xaa3e28=>!_0xaa3e28['isMultiRange']&&'attribute'!=_0xaa3e28['type']),_0xa9c015=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1bf78e=>!_0x1bf78e['isMultiRange']&&'attribute'!=_0x1bf78e['type']),_0x105c59=_0xa9c015['filter'](_0x353002=>!_0x3cd879['has'](_0x353002)),_0x4e894c=new Map(_0xa9c015['map'](_0xca3e9b=>[_0xca3e9b,this['_suggestionFactory']['getSuggestionCallback'](_0xca3e9b['type'],_0xca3e9b['subType'],'chain')])),_0x5da72a=new Map(_0xa9c015['map'](_0x1b0dd9=>[_0x1b0dd9,_0x1b0dd9['getFirstRange']()])),_0x511340=new Set(),_0x5717a9=new Set();for(let _0x532b52=0x0;_0x532b52<_0x232d65['length'];_0x532b52++)_0x146824(_0x232d65[_0x532b52],_0x232d65,_0x532b52+0x1);for(let _0x695f7c=0x0;_0x695f7c<_0x232d65['length'];_0x695f7c++)_0x146824(_0x232d65[_0x695f7c],_0x105c59,0x0);const _0x440f94=new Set();for(let _0x5bad19=0x0;_0x5bad19<_0x232d65['length'];_0x5bad19++){const _0xbf9f1d=_0x232d65[_0x5bad19];!_0x5717a9['has'](_0xbf9f1d)&&_0xbf9f1d['previous']&&(_0x440f94['add'](_0xbf9f1d['previous']),_0xbf9f1d['previous']['next']===_0xbf9f1d&&(_0xbf9f1d['previous']['next']=null),_0xbf9f1d['previous']=null),!_0x511340['has'](_0xbf9f1d)&&_0xbf9f1d['next']&&(_0x440f94['add'](_0xbf9f1d['next']),_0xbf9f1d['next']['previous']===_0xbf9f1d&&(_0xbf9f1d['next']['previous']=null),_0xbf9f1d['next']=null);}function _0x146824(_0x33406b,_0x571793,_0x2dd4d5){for(let _0x1259c4=_0x2dd4d5;_0x1259c4<_0x571793['length'];_0x1259c4++){const _0x4a280a=_0x5dfb96(_0x33406b,_0x571793[_0x1259c4]);_0x4a280a&&(_0x4a280a[0x0]['next']=_0x4a280a[0x1],_0x4a280a[0x1]['previous']=_0x4a280a[0x0],_0x511340['add'](_0x4a280a[0x0]),_0x5717a9['add'](_0x4a280a[0x1]));}}function _0x5dfb96(_0x4a5692,_0x4a5996){if(_0x4a5692['author']['id']!==_0x4a5996['author']['id'])return null;const _0x97861e=_0x4e894c['get'](_0x4a5692)(_0x4a5692,_0x4a5996,_0x5da72a['get'](_0x4a5692),_0x5da72a['get'](_0x4a5996));if(!_0x97861e)return null;return _0x4e894c['get'](_0x4a5996)(_0x4a5692,_0x4a5996,_0x5da72a['get'](_0x4a5692),_0x5da72a['get'](_0x4a5996))?_0x97861e[0x1]['commentThread']&&_0x97861e[0x1]['commentThread']['length']?null:_0x97861e:null;}_0x440f94['size']&&this['_refreshSuggestionsChain'](_0x440f94);}['_refreshAttributeSuggestionsChain'](_0x4e7124){if(0x0==_0x4e7124['length'])return;const _0x2e7752=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x356bbd=>'attribute'==_0x356bbd['type']&&_0x356bbd['_isDataLoaded']),_0x23f29e=[],_0xc01c63=new Map();for(const _0x56d6aa of _0x2e7752){const _0x1afe0c=_0x297123(_0x56d6aa['attributes']);_0xc01c63['has'](_0x1afe0c)||(_0xc01c63['set'](_0x1afe0c,_0x23f29e['length']),_0x23f29e['push']([]));const _0xdc7d03=_0xc01c63['get'](_0x1afe0c);_0x23f29e[_0xdc7d03]['push'](_0x56d6aa);}!(function(){_0x23f29e['sort']((_0x3f48f1,_0x4ac76e)=>{const _0x47e415=_0x3f48f1[0x0]['createdAt'],_0x1bf5f8=_0x4ac76e[0x0]['createdAt'];return _0x47e415==_0x1bf5f8?_0x3f48f1[0x0]['attributes']['groupId']<_0x4ac76e[0x0]['attributes']['groupId']?-0x1:0x1:_0x47e415<_0x1bf5f8?-0x1:0x1;});for(const _0x40fb60 of _0x23f29e)_0x40fb60['sort']((_0x53a2c9,_0x497968)=>_0x53a2c9['id']<_0x497968['id']?-0x1:0x1);}());for(let _0x31c2ff=0x0;_0x31c2ff<_0x23f29e['length'];_0x31c2ff++){if(0x0==_0x23f29e[_0x31c2ff]['length'])continue;const _0x1d29b9=[];for(let _0x434a50=_0x31c2ff+0x1;_0x434a50<_0x23f29e['length'];_0x434a50++)0x0!=_0x23f29e[_0x434a50]['length']&&_0x1f8ec1(_0x23f29e[_0x31c2ff],_0x23f29e[_0x434a50])&&_0x1d29b9['push'](_0x434a50);for(const _0x2e653d of _0x1d29b9)_0x23f29e[_0x31c2ff]=_0x23f29e[_0x31c2ff]['concat'](_0x23f29e[_0x2e653d]),_0x23f29e[_0x2e653d]=[];}for(const _0x1370d1 of _0x23f29e)for(let _0x24e24c=0x0;_0x24e24c<_0x1370d1['length'];_0x24e24c++){const _0x3aafe1=_0x1370d1[_0x24e24c+0x1]||null;_0x1370d1[_0x24e24c]['next']!==_0x3aafe1&&(_0x1370d1[_0x24e24c]['next']=_0x3aafe1);}for(const _0x532de8 of _0x23f29e)for(let _0x13ef30=0x0;_0x13ef30<_0x532de8['length'];_0x13ef30++){const _0x5311fc=_0x532de8[_0x13ef30-0x1]||null;_0x532de8[_0x13ef30]['previous']!==_0x5311fc&&(_0x532de8[_0x13ef30]['previous']=_0x5311fc);}function _0x1f8ec1(_0x265b76,_0xd42bea){if(_0x265b76[0x0]['attributes']['groupId']!==_0xd42bea[0x0]['attributes']['groupId']&&_0x265b76[0x0]['author']!==_0xd42bea[0x0]['author'])return!0x1;if(!function(_0x370354,_0x5e569b){if(!_0x370354['hasComments']&&!_0x5e569b['hasComments'])return!0x0;if(_0x370354['hasComments']&&_0x5e569b['hasComments'])return!0x1;if(_0x370354['hasComments']&&_0x5e569b['createdAt']<_0x370354['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5e569b['hasComments']&&_0x370354['createdAt']<_0x5e569b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x265b76[0x0],_0xd42bea[0x0]))return!0x1;const _0x4bc64=ot(_0x265b76[0x0]['attributes'],['groupId','trackingSessionId']),_0x167bd5=ot(_0xd42bea[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x4bc64,_0x167bd5))return!0x1;if(_0x265b76[0x0]['attributes']['groupId']==_0xd42bea[0x0]['attributes']['groupId'])return!0x0;if(_0x265b76[0x0]['attributes']['trackingSessionId']!==_0xd42bea[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x265b76['every'](_0x5cb831=>_0xd42bea['some'](_0x4821e1=>_0x5cb831['getFirstRange']()['isEqual'](_0x4821e1['getFirstRange']())))&&_0xd42bea['every'](_0x5cfd38=>_0x265b76['some'](_0x57b87a=>_0x5cfd38['getFirstRange']()['isEqual'](_0x57b87a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2591e0){const _0x55a785=Array['from'](_0x2591e0),_0x1221c8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x372634=_0x1221c8['filter'](_0x3796d2=>!_0x2591e0['has'](_0x3796d2)),_0x4024d1=new Map(_0x55a785['map'](_0x3bb394=>[_0x3bb394,this['_suggestionFactory']['getSuggestionCallback'](_0x3bb394['type'],_0x3bb394['subType'],'join')])),_0x2fe543=new Map(_0x1221c8['map'](_0x2196ad=>[_0x2196ad,_0x2196ad['getRanges']()]));for(let _0x37b862=0x0;_0x37b862<_0x55a785['length'];_0x37b862++){if(_0x406af6(this,_0x55a785[_0x37b862],_0x55a785,_0x37b862+0x1))return!0x0;}for(let _0x4a8106=0x0;_0x4a8106<_0x55a785['length'];_0x4a8106++){if(_0x406af6(this,_0x55a785[_0x4a8106],_0x372634,0x0))return!0x0;}return!0x1;function _0x406af6(_0x5ca84f,_0x356f7e,_0xb65b62,_0xf19145){for(let _0x467d08=_0xf19145;_0x467d08<_0xb65b62['length'];_0x467d08++){const _0x441fd7=_0xb65b62[_0x467d08];if(_0x441fd7['type']!==_0x356f7e['type']||_0x441fd7['author']['id']!==_0x356f7e['author']['id']||_0x441fd7['subType']!==_0x356f7e['subType'])continue;if(!an(_0x356f7e,_0x441fd7))continue;if('attribute'==_0x356f7e['type']&&_0x356f7e['data']['oldValue']!=_0x441fd7['data']['oldValue'])continue;if('attribute'==_0x356f7e['type']&&_0x5ca84f['_suggestionsConversion']['isBlockAttribute'](_0x356f7e['data']['key']))continue;if('formatBlock'==_0x356f7e['type']){const _0x1e357f=_0x5ca84f['editor']['model'],_0x84b64a=_0x356f7e['getContainedElement']();if(_0x84b64a&&(_0x1e357f['schema']['isObject'](_0x84b64a)||_0x1e357f['schema']['isLimit'](_0x84b64a)))continue;}const _0x5c1155=_0x4024d1['get'](_0x356f7e),_0x4288df=_0x2fe543['get'](_0x356f7e),_0xe0b924=_0x2fe543['get'](_0x441fd7),_0x33fe26=_0x356f7e['commentThread']&&_0x356f7e['commentThread']['length'],_0x4e50a9=_0x441fd7['commentThread']&&_0x441fd7['commentThread']['length'];if(!_0x33fe26&&_0x5c1155(_0xe0b924,_0x4288df))return _0x5ca84f['_joinSuggestions'](_0x441fd7,_0x356f7e),_0x2fe543['delete'](_0x356f7e),!0x0;if(!_0x4e50a9&&_0x5c1155(_0x4288df,_0xe0b924))return _0x5ca84f['_joinSuggestions'](_0x356f7e,_0x441fd7),_0x2fe543['delete'](_0x441fd7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x42e322,_0x36e2d4){if(_0x42e322['isMultiRange']){for(const _0x5c91fc of _0x36e2d4['getRanges']())_0x42e322['addRange'](_0x5c91fc);}else{const _0x32c1e1=_0x36e2d4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x42e322,this['_model']['createRange'](_0x42e322['getFirstRange']()['start'],_0x32c1e1));}_0x36e2d4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x7695ce,_0x2c5d66,_0x19c13d){const _0x4a8fad=_0x7695ce['startsWith']('format')||_0x7695ce['startsWith']('attribute')?'FORMATTING':_0x7695ce['toUpperCase']();return At(this['editor']['locale'],_0x2c5d66+'_'+_0x4a8fad+'_SUGGESTION_ANNOUNCEMENT',_0x19c13d);}['_initAriaMarkerChangeAnnouncements'](){const _0x23f394=this['editor'];if(!_0x23f394['ui'])return;const {ariaLiveAnnouncer:_0x361aac}=_0x23f394['ui'];_0x1963c5(this['_model'],({left:_0x1da848,entered:_0x209e2e})=>{for(const _0x1ff7e7 of _0x1da848){const {group:_0x5695f3,type:_0x4881da}=_0x39dc22(_0x1ff7e7['name']);if('suggestion'===_0x5695f3){_0x361aac['announce'](this['_getMarkerAnnouncementText'](_0x4881da,'LEAVE'));break;}}for(const _0x3d1239 of _0x209e2e){const {group:_0x2d54c9,type:_0x262fc6}=_0x39dc22(_0x3d1239['name']);if('suggestion'===_0x2d54c9){_0x361aac['announce'](this['_getMarkerAnnouncementText'](_0x262fc6,'ENTER',_0x4d7993(_0x3cb4f5)));break;}}});}['_processAttributeChanges'](_0x52a91b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x54fbdb=this['editor'],_0xc10995=_0x54fbdb['model']['document']['differ']['getChanges']();if(0x0==_0xc10995['length'])return!0x1;const _0x50ceac=[],_0x249d17=_0xc10995['filter'](_0x2a990a=>'attribute'==_0x2a990a['type']),_0x485bf9=_0xc10995['filter'](_0x283dd5=>'insert'==_0x283dd5['type']&&'$text'!=_0x283dd5['name']),_0x363ce=_0xc10995['filter'](_0x17d847=>'remove'==_0x17d847['type']&&'$text'!=_0x17d847['name']);for(const _0x33a8f4 of _0x249d17)_0x50ceac['push']({'key':_0x33a8f4['attributeKey'],'newValue':_0x33a8f4['attributeNewValue'],'oldValue':_0x33a8f4['attributeOldValue'],'range':sn(_0x33a8f4['range'],_0x54fbdb['model'])});for(const _0x5acedb of _0x485bf9){const _0x58aa5a=_0x363ce['find'](_0x40987a=>_0x40987a['position']['isEqual'](_0x5acedb['position']));_0x58aa5a&&_0x50ceac['push']({'key':Ke,'newValue':_0x5acedb['name'],'oldValue':_0x58aa5a['name'],'range':_0x54fbdb['model']['createRangeOn'](_0x5acedb['position']['nodeAfter'])});}return 0x0!=_0x50ceac['length']&&this['_reduceExistingSuggestions'](_0x52a91b,_0x50ceac);}['_processAttributeSuggestions'](_0x312b5b){let _0x2fee19=!0x1;const _0x5e483b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x176b06=>_0x176b06['data']['newRange']&&_0x176b06['name']['startsWith']('suggestion:attribute:'));for(const _0x5970fc of _0x5e483b){const {subType:_0x328e53,id:_0x686c62}=_0x39dc22(_0x5970fc['name']),_0xed8fc6=_0x328e53['split']('|')[0x0];for(const _0x33e0ff of this['getSuggestions']({'skipNotAttached':!0x0}))_0x33e0ff['id']!=_0x686c62&&'attribute'==_0x33e0ff['type']&&_0x33e0ff['data']&&_0x33e0ff['data']['key']==_0xed8fc6&&_0x33e0ff['getFirstRange']()['isIntersecting'](_0x5970fc['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x33e0ff,_0x5970fc['data']['newRange'],_0x312b5b),_0x2fee19=!0x0);}return _0x2fee19;}['recordAttributeChanges'](_0x466399){this['_recordAttributeSuggestions']=!0x0,_0x466399();}['_reduceExistingSuggestions'](_0x3e8384,_0x14d7b1){if(0x0==_0x14d7b1['length'])return!0x1;let _0x4b73a6=!0x1;for(const _0x43b3b5 of _0x14d7b1){const _0x4795e8=this['_findSuggestions'](_0x43b3b5['range'],'attribute')['filter'](_0x46fc81=>!_0x46fc81['meta']['isNextTo'])['map'](_0x8a5e45=>_0x8a5e45['suggestion']),_0x34dd13=_0x297123({'newValue':_0x43b3b5['newValue']});_0x4795e8['filter'](_0x44d1f6=>{const [_0x249add,_0x56f071]=_0x44d1f6['subType']['split']('|');return _0x249add==_0x43b3b5['key']&&_0x56f071!=_0x34dd13;})['forEach'](_0x1b1066=>{this['_reduceSuggestionAttributeRange'](_0x1b1066,_0x43b3b5['range'],_0x3e8384),_0x4b73a6=!0x0;});}return _0x4b73a6;}['_reduceSuggestionAttributeRange'](_0x4d4652,_0x37abc8,_0xd1ef72){const _0x542f5e=_0x4d4652['getFirstRange']()['getDifference'](_0x37abc8);0x0!==_0x542f5e['length']?0x1!==_0x542f5e['length']?this['_breakSuggestionMarker'](_0x4d4652,_0x37abc8['start'],_0x37abc8['end']):this['_setSuggestionRange'](_0x4d4652,_0x542f5e[0x0]):_0xd1ef72['removeMarker'](_0x4d4652['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x386919){this['_editor']=_0x386919,this['_model']=_0x386919['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x7f3880,_0x3018a5,_0x23be65,_0x4ee9e6,_0x594ecd,_0x2faebe,_0x3205e2){return new bt(this['_model'],{'type':_0x7f3880,'subType':_0x3018a5,'id':_0x23be65,'originalSuggestionId':_0x3205e2,'author':_0x4ee9e6,'creator':_0x4ee9e6,'attributes':_0x594ecd,'onAttributesChange':_0x2faebe,'onAccept':(..._0x2237e2)=>this['getSuggestionCallback'](_0x7f3880,_0x3018a5,'accept')(..._0x2237e2),'onDiscard':(..._0x7989b)=>this['getSuggestionCallback'](_0x7f3880,_0x3018a5,'discard')(..._0x7989b)});}['registerCustomCallback'](_0x56b3c7,_0x599ed0,_0xf66ce8,_0x4dcbb7){const _0x4a06c6=_0x56b3c7+':'+_0x599ed0+':'+_0xf66ce8;this['_customCallbacks']['set'](_0x4a06c6,_0x4dcbb7);}['getSuggestionCallback'](_0x5d1258,_0x1106f5,_0x55ffdb){const _0xe87ccf=_0x5d1258+':'+_0x1106f5+':'+_0x55ffdb;return this['_customCallbacks']['get'](_0xe87ccf)||this['_defaultCallbacks']['get'](_0x5d1258+':'+_0x55ffdb);}['_registerDefaultCallbacks'](){const _0x326d8e=()=>!0x1,_0x2f308f=_0xac66fc=>{_0xac66fc['sort']((_0x159404,_0x5eff46)=>_0x159404['start']['isBefore'](_0x5eff46['start'])?0x1:-0x1),this['_model']['change'](_0x457c6f=>{for(const _0xb783eb of _0xac66fc){let _0x2facd9;_0x2facd9=_0xb783eb['end']['isAtEnd']&&_0xb783eb['end']['parent']==_0xb783eb['start']['nodeAfter']?_0x457c6f['createSelection'](_0xb783eb['start']['nodeAfter'],'on'):_0x457c6f['createSelection'](_0xb783eb),this['_model']['deleteContent'](_0x2facd9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x228f15=(_0x5e346e,_0x58f67f)=>{_0x58f67f&&this['_model']['change'](_0x334a37=>{const {commandName:_0x59e283,commandParams:_0x380bd9=[]}=_0x58f67f,_0x4af529=_0x5e346e['map'](_0x13ef08=>(Qe(_0x13ef08)&&(_0x13ef08=this['_model']['createRange'](_0x13ef08['end'])),_0x13ef08))['filter'](_0x355132=>'$graveyard'!==_0x355132['root']['rootName']);if(_0x4af529['length']<0x1)return;const _0x39f52f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3169e0=>_0x121353['fromRange'](_0x3169e0));_0x334a37['setSelection'](_0x4af529);for(const _0x3e0837 of this['_editor']['commands']['commands']())_0x3e0837['refresh']();_0x380bd9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x59e283,..._0x380bd9);const _0x288f4a=_0x39f52f['filter'](_0x5f5727=>'$graveyard'!=_0x5f5727['root']['rootName']);_0x288f4a['length']>0x0&&_0x334a37['setSelection'](_0x288f4a);for(const _0x42f534 of _0x39f52f)_0x42f534['detach']();});},_0x105b23=(_0xfc9cbe,_0x4420e1)=>0x1==_0xfc9cbe['length']&&0x1==_0x4420e1['length']&&_0xfc9cbe[0x0]['end']['isEqual'](_0x4420e1[0x0]['start']),_0x5d9b2a=(_0x5e1474,_0x437909,_0x327076,_0x195d06)=>on(_0x5e1474,_0x437909,_0x327076,_0x195d06)?[_0x5e1474,_0x437909]:on(_0x437909,_0x5e1474,_0x195d06,_0x327076)?[_0x437909,_0x5e1474]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x326d8e),this['_defaultCallbacks']['set']('insertion:discard',_0x2f308f),this['_defaultCallbacks']['set']('insertion:join',_0x105b23),this['_defaultCallbacks']['set']('insertion:chain',_0x5d9b2a),this['_defaultCallbacks']['set']('deletion:accept',_0x2f308f),this['_defaultCallbacks']['set']('deletion:discard',_0x326d8e),this['_defaultCallbacks']['set']('deletion:join',_0x105b23),this['_defaultCallbacks']['set']('deletion:chain',_0x5d9b2a),this['_defaultCallbacks']['set']('formatInline:accept',_0x228f15),this['_defaultCallbacks']['set']('formatInline:discard',_0x326d8e),this['_defaultCallbacks']['set']('formatInline:join',_0x105b23),this['_defaultCallbacks']['set']('formatInline:chain',_0x326d8e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x228f15),this['_defaultCallbacks']['set']('formatBlock:discard',_0x326d8e),this['_defaultCallbacks']['set']('formatBlock:join',_0x105b23),this['_defaultCallbacks']['set']('formatBlock:chain',_0x326d8e),this['_defaultCallbacks']['set']('attribute:accept',_0x326d8e),this['_defaultCallbacks']['set']('attribute:discard',(_0x40fdbe,_0x233ef5)=>{if(!_0x233ef5)return;const _0x1f94b3=this['_editor']['plugins']['get'](_0x24e0bb);this['_model']['change'](_0x5019ad=>{if(_0x233ef5['key']==Ke)for(const _0x123476 of _0x40fdbe){const _0x2a8fd9=_0x123476['start']['nodeAfter'],_0x3cfc26=_0x233ef5['oldValue'];_0x5019ad['rename'](_0x2a8fd9,_0x3cfc26);}else{if(_0x1f94b3['isBlockAttribute'](_0x233ef5['key'])){for(const _0x1716b7 of _0x40fdbe)void 0x0!==_0x233ef5['oldValue']?_0x5019ad['setAttribute'](_0x233ef5['key'],_0x233ef5['oldValue'],_0x1716b7['start']['nodeAfter']):_0x5019ad['removeAttribute'](_0x233ef5['key'],_0x1716b7['start']['nodeAfter']);}else{for(const _0x4f898e of _0x40fdbe)_0x233ef5['oldValue']?_0x5019ad['setAttribute'](_0x233ef5['key'],_0x233ef5['oldValue'],_0x4f898e):_0x5019ad['removeAttribute'](_0x233ef5['key'],_0x4f898e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x105b23);}}function qe(_0x591557,_0x9995c5,_0x3b6738){for(const _0x5f2ba8 of _0x9995c5['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5f2ba8['root']==_0x5f2ba8)return!0x1;if(!_0x3b6738['containsItem'](_0x5f2ba8))return!0x1;if(_0x591557['isObject'](_0x5f2ba8)||_0x591557['isLimit'](_0x5f2ba8))return!0x0;}return!0x1;}function Qe(_0x2fa665){return _0x2fa665['end']['parent']==_0x2fa665['start']['nodeAfter']&&_0x2fa665['end']['isAtStart'];}function Ze(_0x33e7d6,_0x5209ad,_0x498c86,_0x523f9f){const _0x20f1e0=_0x4e8734=>!_0x4e8734['item']['is']('$textProxy')&&!_0x523f9f['isObject'](_0x4e8734['item']),_0x1b3a3e=_0x33e7d6['start']['getLastMatchingPosition'](_0x20f1e0),_0x16ccd6=_0x33e7d6['end']['getLastMatchingPosition'](_0x20f1e0,{'direction':'backward'});return(!_0x33e7d6['start']['isEqual'](_0x1b3a3e)||!_0x33e7d6['end']['isEqual'](_0x16ccd6))&&(_0x1b3a3e['isBefore'](_0x16ccd6)?_0x498c86['updateMarker'](_0x5209ad,{'range':_0x498c86['createRange'](_0x1b3a3e,_0x16ccd6)}):_0x498c86['removeMarker'](_0x5209ad),!0x0);}function Je(_0x3c6afc){return _0x297123(_0x3c6afc);}function tn(_0xf07ae){const _0x207de2=_0xf07ae['start']['nodeAfter'];return _0x207de2&&_0x207de2['is']('element');}function en(_0x255e5d){return Qe(_0x255e5d)||function(_0x1caa00){return _0x1caa00['start']['parent']==_0x1caa00['end']['nodeBefore']&&_0x1caa00['start']['isAtEnd'];}(_0x255e5d);}function nn(_0x11b19d,_0x21920c){try{const _0x2ace71=_0x11b19d['getRange']();for(const _0x51e480 of _0x21920c)if(_0x11b19d!==_0x51e480&&_0x2ace71&&_0x2ace71['isIntersecting'](_0x51e480['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x32de2b,_0x19024e){return null==_0x32de2b['end']['nodeBefore']&&_0x32de2b['end']['parent']==_0x32de2b['start']['nodeAfter']?rn(_0x32de2b['start']['nodeAfter'],_0x19024e):_0x32de2b;}function rn(_0x50e3c1,_0x585979){const _0x4e1f39=_0x585979['schema']['isObject'](_0x50e3c1)||_0x585979['schema']['isSelectable'](_0x50e3c1);return _0x585979['createRange'](_0x585979['createPositionAt'](_0x50e3c1,'before'),_0x4e1f39?_0x585979['createPositionAfter'](_0x50e3c1):_0x585979['createPositionAt'](_0x50e3c1,'end'));}function on(_0x1642e1,_0x1fbde7,_0x46a04a,_0x2cda58){return!!an(_0x1642e1,_0x1fbde7)&&_0x46a04a['end']['isEqual'](_0x2cda58['start']);}function an(_0x577a2a,_0x4910b1){if(!_0x577a2a['_isDataLoaded']||!_0x4910b1['_isDataLoaded'])return!0x1;const _0x43cf06=new Set(Object['keys'](_0x577a2a['attributes'])),_0x5c351f=new Set(Object['keys'](_0x4910b1['attributes']));if(_0x43cf06['delete']('groupId'),_0x5c351f['delete']('groupId'),0x0==_0x43cf06['size']&&0x0==_0x5c351f['size'])return!0x0;if(_0x43cf06['size']!=_0x5c351f['size'])return!0x1;const _0x2ee74d={..._0x577a2a['attributes']},_0x509f94={..._0x4910b1['attributes']};return delete _0x2ee74d['groupId'],delete _0x509f94['groupId'],JSON['stringify'](_0x2ee74d)==JSON['stringify'](_0x509f94);}function cn(_0x58dffe,_0xe581c9){const _0x3d1f59=ln(_0x58dffe['attributes']),_0x24ca80=ln(_0xe581c9);if(!_0x58dffe['_isDataLoaded'])return!0x1;for(const _0x490263 of Object['keys'](_0x24ca80))if(!st(_0x3d1f59[_0x490263],_0x24ca80[_0x490263]))return!0x1;return!0x0;}function ln(_0x256d65){const _0x4e2566=Object['assign']({},_0x256d65);return delete _0x4e2566['skipNestingCheck'],delete _0x4e2566['tablePasteChainId'],_0x4e2566;}function un(_0x18b3b3){return _0x18b3b3['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x26cebd(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e14bb,_0x359495,_0x481642,_0x55a089){super(),this['model']=_0x359495,this['view']=_0x481642,this['commentThreadController']=_0x55a089,this['_editor']=_0x4e14bb,this['_acceptCommand']=_0x4e14bb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e14bb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2742e6,_0x12118f)=>_0x2742e6||_0x12118f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x46cb52=>_0x46cb52&&this['_editor']['model']['canEditAt'](_0x359495['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x382ccc=>_0x382ccc&&this['_editor']['model']['canEditAt'](_0x359495['getRanges']())),this['_pendingAction']=null,_0x481642['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x481642,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x481642,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x481642,'change:isDirty',()=>{_0x481642['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 _0x4a2a99=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a2a99);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x2287ec{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d3e05,_0x373e4e,_0x67bc25,_0x3897a8){super(_0x4d3e05),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1f7250(_0x4d3e05,At(_0x4d3e05,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x373e4e['authoredAt']),this['bind']('authoredAt')['to'](_0x373e4e),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',_0x373e4e,'authoredAt',this,'descriptionParts',(_0x434667,_0x36f3d7,_0xe45b4a)=>{const _0x5b3ed1=_0xe45b4a['map'](_0x129c0f=>gt(_0x129c0f['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x434667-0x1,_0x373e4e['author']['name'],_0x36f3d7?_0x3897a8['formatDateTime'](_0x36f3d7):'',new DOMParser()['parseFromString'](_0x5b3ed1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4311be(),this['focusTracker']=new _0x13cc1f(),this['keystrokes']=new _0x22681e(),this['focusCycler']=new _0x241920({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x108144=>_0x108144['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x373e4e,this['_localUser']=_0x67bc25,this['_config']=_0x3897a8,_0x3897a8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xdc4749(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x19702b}=this['_config'];this['commentsListView']=new _0x19702b(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',_0x466d41=>_0x466d41+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ee09b,_0x4476f8)=>_0x5ee09b||!!_0x4476f8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43b287}=this['_config'],_0x2a909a=new _0x43b287(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3c4476=_0x2a909a['commentInputView'];return _0x2a909a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3c4476,'value',(_0x30ac6f,_0x1c2d18,_0x43d3af)=>!!_0x43d3af||_0x30ac6f&&!_0x1c2d18),_0x3c4476['on']('submit',(_0x124f46,_0x3248f7)=>{this['fire']('addComment',_0x3248f7),_0x3c4476['editor']['setData']('');}),_0x3c4476['on']('cancel',()=>this['focus']()),_0x3c4476['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2a909a;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x39fc90,_0x489607,_0x40d216,_0xacdd1){super(_0x39fc90,_0x489607,_0x40d216,_0xacdd1),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x14a0f3=>_0x14a0f3&&_0x14a0f3[0x0]?_0x14a0f3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3128d9,_0x509d6e)=>{let _0x445187='';for(const _0x591019 of _0x3128d9)_0x445187+='<p>'+gt(_0x591019['content'],_0x591019['color'])+'</p>';return _0x509d6e?_0x445187:_0x54ff17(_0x445187,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xacdd1['SuggestionView'](_0x39fc90,_0x489607,{'formatDateTime':_0xacdd1['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 _0x5d58a5=this['bindTemplate'],_0x4cd7f7=[this['suggestionView']];return this['commentsListView']&&_0x4cd7f7['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4cd7f7['push'](this['commentThreadInputView']),_0x4cd7f7['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d58a5['if']('isActive','ck-suggestion-wrapper--active'),_0x5d58a5['to']('type',_0x4cb394=>'ck-suggestion-'+_0x4cb394),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':_0x5d58a5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4cd7f7};}['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 _0x2287ec{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x36cf4a,_0x3ca677,_0x297001){super(_0x36cf4a),this['_model']=_0x3ca677,this['_config']=_0x297001,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ca677),this['acceptButton']=this['_createButton'](At(_0x36cf4a,'Accept\x20suggestion'),_0xb31ffe,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x36cf4a,'Discard\x20suggestion'),_0x1b6be9,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x9a95db(_0x36cf4a,_0x3ca677['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4311be([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x13cc1f(),this['keystrokes']=new _0x22681e(),this['focusCycler']=new _0x241920({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x334818=>_0x334818['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5951a4=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5951a4['innerHTML']=this['description'],this['on']('change:description',(_0x477fa1,_0xea8b15,_0x473c92)=>{_0x5951a4['innerHTML']=_0x473c92;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x19eb3b=this['bindTemplate'],_0x53b1c0=[{'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':_0x19eb3b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19eb3b['to']('authoredAt',_0x4ccebd=>this['_config']['formatDateTime'](_0x4ccebd))}]}]},{'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']&&_0x53b1c0['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':_0x53b1c0}]};}['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'](_0x1290bb,_0x965110,_0x46f78a,_0x3bfc30,_0x36ae58){const _0x1b5f0e=new _0x512b8f(this['locale']);return _0x1b5f0e['set']({'label':_0x1290bb,'icon':_0x965110,'tooltip':!0x0,'tooltipPosition':_0x36ae58}),_0x1b5f0e['extendTemplate']({'attributes':{'class':_0x46f78a}}),_0x1b5f0e['on']('execute',()=>{this['fire'](_0x3bfc30,this['_model']['id']);}),_0x1b5f0e;}['_setupKeyboardNavigation'](){const _0x1903aa=this['element'];this['keystrokes']['listenTo'](_0x1903aa);for(const _0x4d45dd of this['focusables'])this['focusTracker']['add'](_0x4d45dd['element']),this['keystrokes']['listenTo'](_0x4d45dd['element']);this['keystrokes']['set']('enter',(_0x2bb3b9,_0x3bc796)=>{_0x1903aa===_0x2bb3b9['target']&&(this['focusCycler']['focusFirst'](),_0x3bc796());}),this['keystrokes']['set']('esc',(_0x59fbb1,_0x7af2f3)=>{_0x1903aa!==_0x59fbb1['target']&&(this['focus'](),_0x7af2f3());});}}class mn extends _0x54c126{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x55241e,_0xab4f6c,_0x2c7266,_0x2c2fd4];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17755b){super(_0x17755b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x54e75f=this['editor']['config'];_0x54e75f['define']('trackChanges.SuggestionThreadView',fn),_0x54e75f['define']('trackChanges.SuggestionView',gn),_0x54e75f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x54e75f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3b2ffa,_0x4065ad){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48020e,_0x4a8cc9]of this['_handleControllerBuffer']){const _0x363fe4=this['_suggestionToController']['has'](_0x48020e);_0x363fe4||_0x4a8cc9?_0x363fe4&&_0x4a8cc9&&this['_destroyController'](_0x48020e):this['_initializeController'](_0x48020e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2c2fd4)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3b2ffa,_0x4065ad);}['init'](){const _0x5e30cd=this['editor'],_0x434704=_0x5e30cd['plugins']['get'](Xe),_0x83c601=_0x5e30cd['plugins']['get'](_0x2c7266),_0x3596fb=_0x5e30cd['plugins']['get'](_0x2c2fd4),_0x125445=_0x5e30cd['plugins']['get'](_0xab4f6c);this['_addUIComponentsToFactory'](),_0x3596fb['addSourceCollector'](()=>{const _0x4ac5d2=[];for(const [_0xcd21c7,_0x2a86d0]of Array['from'](this['_suggestionToController'])){const _0x5e951c=_0xcd21c7['getAllAdjacentSuggestions'](),_0x3d9e0d=[];for(const _0x596833 of _0x5e951c){if(!_0x596833['isInContent'])continue;if(_0x596833['isMultiRange']){_0x3d9e0d['push'](..._0x596833['getRanges']());continue;}const _0x9c2602=_0x596833['getFirstRange']();if(_0x3d9e0d['length']>0x0){const _0xd28118=_0x3d9e0d[0x0]['getJoined'](_0x9c2602);if(_0xd28118){_0x3d9e0d[0x0]=_0xd28118;continue;}}_0x3d9e0d['push'](_0x9c2602);}_0x4ac5d2['push']([_0x2a86d0['view'],_0x3d9e0d]);}return _0x4ac5d2;}),this['listenTo'](_0x434704,'suggestionLoaded',(_0x6f3a3b,_0x47e4d4)=>{this['listenTo'](_0x47e4d4,'change:previous',(_0x124bf7,_0x4c2488,_0xb28c36,_0x4e2139)=>{_0x47e4d4['isInContent']&&(null==_0xb28c36?(this['_updateController'](_0x4e2139['head']),this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x1)):(this['_updateController'](_0xb28c36['head']),null==_0x4e2139&&this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x0)));}),null!==_0x47e4d4['previous']?this['_updateController'](_0x47e4d4['head']):this['_handleSuggestionControllerDelayed'](_0x47e4d4,!0x1);}),this['listenTo'](_0x434704,'suggestionUnloaded',(_0x2ca690,_0x7f0010,_0x3dd9e1)=>{this['stopListening'](_0x7f0010,'change:previous'),this['_handleControllerBuffer']['delete'](_0x7f0010),this['_suggestionToController']['has'](_0x7f0010)&&this['_destroyController'](_0x7f0010),_0x3dd9e1&&this['_updateController'](_0x3dd9e1['head']);}),this['listenTo'](_0x434704,'suggestionChanged',(_0x2a4e1f,_0x42028e)=>{this['_updateController'](_0x42028e);}),this['listenTo'](_0x83c601,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x125445,'addComment',(_0x428b57,{threadId:_0x4b2c0d,isFromAdapter:_0x5a3408})=>{if(_0x5a3408||!_0x434704['hasSuggestion'](_0x4b2c0d))return;const _0x3c1ac1=_0x434704['getSuggestion'](_0x4b2c0d);this['_suggestionToController']['get'](_0x3c1ac1)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x344b69=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45963a;for(const _0x35e1c4 in _0x344b69){const _0xcb8b74=_0x35e1c4,_0x39a241=_0x344b69[_0xcb8b74];if('trackChangesLicenseKeyValid'==_0x39a241||'trackChangesLicenseKeyInvalid'==_0x39a241||'trackChangesLicenseKeyExpired'==_0x39a241||'trackChangesLicenseKeyDomainLimit'==_0x39a241||'trackChangesLicenseKeyNotAllowed'==_0x39a241||'trackChangesLicenseKeyEvaluationLimit'==_0x39a241||'trackChangesLicenseKeyUsageLimit'==_0x39a241){delete _0x344b69[_0xcb8b74],_0x45963a=_0x39a241,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x45963a&&_0x344b69['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x45963a&&_0x344b69['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x45963a&&_0x344b69['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x45963a&&_0x344b69['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x45963a&&_0x344b69['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x45963a&&_0x344b69['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x36b0f6){const _0x4501da=this['_suggestionToController']['get'](_0x36b0f6);if(!_0x4501da)return null;return this['editor']['plugins']['get'](_0x2c7266)['getByInnerView'](_0x4501da['view'])||null;}['getSuggestionForAnnotation'](_0x12e82d){const _0x225672=this['_viewToController']['get'](_0x12e82d['innerView']);return _0x225672?_0x225672['model']:null;}['_refreshActiveMarkers'](){const _0x387b5d=this['editor']['plugins']['get'](_0x2c7266),_0x2af56f=this['editor']['plugins']['get'](Xe),_0x3ef1bb=Array['from'](_0x387b5d['activeAnnotations'],_0x38cdca=>_0x38cdca['innerView'])['filter'](_0x4f0f2e=>this['_viewToController']['has'](_0x4f0f2e)),_0x716b3d=[];for(const _0x12c1a9 of _0x3ef1bb){const _0x1851cb=this['_viewToController']['get'](_0x12c1a9)['model']['getAllAdjacentSuggestions']();_0x716b3d['push'](..._0x1851cb['reduce']((_0x4d8bbb,_0x5aec23)=>[..._0x4d8bbb,..._0x5aec23['getMarkerNames']()],[]));}_0x2af56f['activeMarkers']=_0x716b3d;}['_addUIComponentsToFactory'](){const _0x3ed2b5=this['editor'],_0x1da2d6=_0x3ed2b5['locale'],_0x5942ff=At(_0x1da2d6,'Track\x20changes'),_0x194a42=new _0x47f0ab([{'type':'switchbutton','model':new _0x18b3fa({'withText':!0x0,'isToggleable':!0x0,'label':_0x5942ff,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3ed2b5['plugins']['has']('TrackChangesPreview')&&_0x194a42['addMany']([{'type':'separator'},{'type':'button','model':new _0x18b3fa({'withText':!0x0,'label':At(_0x1da2d6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1a1bdf of _0x194a42)if(En(_0x1a1bdf)){const _0x35427c=_0x3ed2b5['commands']['get'](_0x1a1bdf['model']['commandName']);_0x1a1bdf['model']['bind']('isOn','isEnabled')['to'](_0x35427c,'value','isEnabled');}_0x3ed2b5['ui']['componentFactory']['add']('trackChanges',_0x1f2488=>this['_createToolbarButton'](_0x1f2488,_0x194a42,_0x5942ff)),_0x3ed2b5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x577035=>this['_createMenuBarMenu'](_0x577035,_0x194a42,_0x5942ff));}['_createToolbarButton'](_0x3d45ce,_0x1a5b94,_0x33b46f){const _0x11d238=_0x457bb6(_0x3d45ce,_0x4b46e7),_0x5b77f3=this['editor']['commands']['get']('trackChanges');_0x11d238['buttonView']['set']({'tooltip':_0x33b46f,'label':_0x33b46f,'icon':_0xdefe62}),_0x11d238['buttonView']['bind']('isOn')['to'](_0x5b77f3,'value'),_0x11d238['buttonView']['on']('execute',()=>{_0x5b77f3['execute'](),this['editor']['editing']['view']['focus']();}),_0x85e161(_0x11d238,_0x1a5b94,{'role':'menu'});const _0x560fa1=[];for(const _0x149349 of _0x1a5b94)En(_0x149349)&&_0x560fa1['push'](this['editor']['commands']['get'](_0x149349['model']['commandName']));const _0x2ca883=_0x11d238['buttonView'];return _0x2ca883['actionView']['unbind']('isEnabled'),_0x2ca883['arrowView']['unbind']('isEnabled'),_0x2ca883['actionView']['bind']('isEnabled')['to'](_0x5b77f3,'isEnabled'),_0x2ca883['arrowView']['bind']('isEnabled')['toMany'](_0x560fa1,'isEnabled',(..._0x30a35c)=>_0x30a35c['some'](_0x31a277=>_0x31a277)),_0x11d238['on']('execute',_0x3181d9=>{this['editor']['execute'](_0x3181d9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x11d238;}['_createMenuBarMenu'](_0x193877,_0x2acd63,_0x5d5408){const _0x503124=new _0x4ea1c1(_0x193877),_0x5338a6=this['editor']['commands']['get']('trackChanges');_0x503124['buttonView']['set']({'label':_0x5d5408,'icon':_0xdefe62});const _0x437357=new _0x2fe6e5(_0x193877);for(const _0x59737a of _0x2acd63){if('separator'==_0x59737a['type']){_0x437357['items']['add'](new _0xc0451d(_0x193877));continue;}const _0x29fcea=new _0x5dac58(_0x193877,_0x503124),_0x48df88=new _0x45312d(_0x193877),_0x2a8058=_0x59737a['model'];_0x48df88['bind'](...Object['keys'](_0x2a8058))['to'](_0x2a8058),_0x48df88['delegate']('execute')['to'](_0x503124),_0x48df88['on']('execute',()=>{this['editor']['execute'](_0x2a8058['commandName']),this['editor']['editing']['view']['focus']();}),_0x29fcea['children']['add'](_0x48df88),_0x437357['items']['add'](_0x29fcea);}return _0x503124['bind']('isEnabled')['to'](_0x5338a6,'isEnabled'),_0x503124['panelView']['children']['add'](_0x437357),_0x503124;}['_initializeController'](_0x30bcd9){const _0x5a236c=this['editor'],_0x1f59ba=_0x5a236c['config'],_0xa16582=_0x5a236c['plugins']['get'](_0x2c7266),_0x2c12b0=_0x5a236c['plugins']['get'](_0xab4f6c),_0x470e64=_0x5a236c['plugins']['get'](_0x2c2fd4),_0x1fad47=_0x5a236c['plugins']['get'](_0x55241e)['me'],_0xb0858c=_0x1f59ba['get']('trackChanges')['SuggestionThreadView'],_0x4fbc1c=_0x1f59ba['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x281b59,CommentThreadInputView:_0x364b4c}=_0x5a236c['plugins']['get']('CommentsUI');let _0x212142,_0x21dba5,_0x2ddd6d;this['_annotationViews']['has'](_0x30bcd9['id'])?(_0x21dba5=this['_annotationViews']['get'](_0x30bcd9['id']),_0x212142=_0x21dba5['mainView']):(_0x212142=new _0xb0858c(_0x5a236c['locale'],_0x30bcd9,_0x1fad47,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1f59ba['get']('comments.editorConfig'),'licenseKey':_0x1f59ba['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1f59ba['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1f59ba['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1f59ba['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x22a611(_0x1f59ba['get']('locale'),_0x5a236c['locale']),'CommentView':_0x1f59ba['get']('comments')['CommentView'],'CommentsListView':_0x281b59,'CommentThreadInputView':_0x364b4c,'SuggestionView':_0x4fbc1c}),_0x212142['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a236c['editing']['view']['focus']();}),_0x212142['suggestionView']['discardButton']['on']('execute',()=>{_0x5a236c['editing']['view']['focus']();}),_0x21dba5=_0xa16582['createAnnotationView'](this['editor']['locale'],_0x212142),_0x21dba5['bind']('isDirty')['to'](_0x212142,'isDirty'),_0x21dba5['bind']('length')['to'](_0x212142),_0x21dba5['bind']('type')['to'](_0x212142,'type',_0x231a7f=>'suggestion-'+_0x231a7f),_0x212142['on']('escape',()=>{_0x2ddd6d['fire']('escape');}),this['_annotationViews']['set'](_0x30bcd9['id'],_0x21dba5));const _0x41d3be=_0x2c12b0['createCommentThreadController'](_0x30bcd9['commentThread'],_0x212142),_0x43c1f8=new hn(_0x5a236c,_0x30bcd9,_0x212142,_0x41d3be),_0x3d87ac=_0x30bcd9['getAllAdjacentSuggestions']()['filter'](_0x1eaa24=>_0x1eaa24['isInContent']);_0x212142['descriptionParts']=_0x5a236c['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x3d87ac),this['_suggestionToController']['set'](_0x30bcd9,_0x43c1f8),this['_viewToController']['set'](_0x212142,_0x43c1f8);const _0x243285=()=>{const _0x3f4901=[],_0x221771=_0x30bcd9['getAllAdjacentSuggestions']()['filter'](_0x5783d6=>_0x5783d6['isInContent']);for(const _0x52f356 of _0x221771)_0x3f4901['push'](..._0x52f356['getMarkers']());return _0x3512a3(_0x5a236c['editing'],_0x3f4901);};_0x2ddd6d=_0xa16582['createAnnotation']({'view':_0x21dba5,'target':_0x243285,'type':()=>'suggestion-'+_0x43c1f8['view']['type'],'isVisible':!!_0x243285()}),_0x2c12b0['_bindAnnotationToEditors'](_0x212142,_0x2ddd6d),_0xa16582['add'](_0x2ddd6d),_0x470e64['registerAnnotation'](_0x2ddd6d);}['_destroyController'](_0x15b019){const _0x39396a=this['editor']['plugins']['get'](_0xab4f6c),_0x875a12=this['editor']['plugins']['get'](_0x2c7266),_0x42f3b5=this['_suggestionToController']['get'](_0x15b019),_0x620fda=_0x42f3b5['view'],_0x4719b6=_0x875a12['getByInnerView'](_0x620fda);_0x39396a['_unbindEditors'](_0x620fda),_0x4719b6&&_0x875a12['remove'](_0x4719b6),this['_suggestionToController']['delete'](_0x15b019),this['_viewToController']['delete'](_0x620fda),_0x42f3b5['destroy']();}['_updateController'](_0x24013c){if(!_0x24013c['isInContent']||!this['_suggestionToController']['has'](_0x24013c))return;const _0x1b2cb3=this['editor']['plugins']['get'](Xe),_0x196b72=this['_suggestionToController']['get'](_0x24013c),_0x3ae6f4=_0x24013c['getAllAdjacentSuggestions']();_0x196b72['view']['descriptionParts']=_0x1b2cb3['descriptionFactory']['getDescriptions'](_0x3ae6f4);}['destroy'](){for(const _0xfbbdfc of this['_suggestionToController']['keys']())this['_destroyController'](_0xfbbdfc);for(const _0xcce4d6 of this['_annotationViews']['values']())_0xcce4d6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x21612d){return'model'in _0x21612d;}class Tn extends _0x54c126{static get['requires'](){return[Xe,mn,_0x1b2d4c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4f5681){this['editor']['plugins']['get'](Xe)['adapter']=_0x4f5681;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0x2dfbd8){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0x2dfbd8);}['getSuggestions']({skipNotAttached:_0x1f18c4=!0x1,toJSON:_0x187dec=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x1f18c4,'toJSON':_0x187dec});}['getSuggestion'](_0x514476){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0x514476);}}const _n=['Pagination'];class pn extends _0x54c126{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5f157f=this['editor'];if(_0x5f157f['config']['define']('trackChangesData.editorCreator',_0x195b5d=>{const _0x510eab=_0x5f157f['model']['document']['getRootNames']()['reduce']((_0x170267,_0x3d6793)=>(_0x170267[_0x3d6793]='',_0x170267),{});return _0x5f157f['constructor']['create'](_0x510eab,_0x195b5d);}),'function'!=typeof _0x5f157f['config']['get']('trackChangesData')['editorCreator'])throw new _0x2c014e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10adc5){return bn(this['editor'],!0x0,_0x10adc5);}['getDataWithDiscardedSuggestions'](_0x49e1dd){return bn(this['editor'],!0x1,_0x49e1dd);}}class Ln extends _0x54c126{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3b4728){function _0x5eb14a(_0x358e23){return _0x358e23['map'](_0x186206=>String['fromCharCode'](_0x186206))['join']('');}super(_0x3b4728),this['result']='end',_0x3b4728[_0x5eb14a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5eb14a([0x76,0x69,0x65,0x77])][_0x5eb14a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5eb14a([0x61,0x75,0x74,0x6f]),_0x3b4728[_0x5eb14a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5eb14a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5eb14a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5eb14a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5eb14a([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(_0x339b37){return void 0x0!==_0x339b37['getRootsAttributes'];}async function bn(_0x4dca3e,_0x23abc0,_0x58ef93){const _0x453ead=_0x5d0e05(_0x4dca3e,_n);if(_0x453ead['plugins']['push'](Xe,Ln),In(_0x4dca3e)){_0x453ead['roots']=Object['create'](null);for(const _0x55582c of _0x4dca3e['model']['document']['getRootNames']())_0x453ead['roots'][_0x55582c]={'modelAttributes':_0x4dca3e['getRootAttributes'](_0x55582c)};}const _0x53094a=document['createDocumentFragment'](),_0x5e1cd1=_0x4dca3e['config']['get']('trackChangesData')['editorCreator'],_0x4079df=await _0x5e1cd1(_0x453ead,()=>function(_0x440f7d){const _0xa94697=document['createElement']('div');return _0x440f7d['appendChild'](_0xa94697),_0xa94697;}(_0x53094a));!function(_0x4e11f5,_0x319542){const _0x402744=_0x4e11f5['model']['document']['getRootNames']()['reduce']((_0x326b9b,_0x34c7dc)=>(_0x326b9b[_0x34c7dc]=_0x4e11f5['data']['get']({'rootName':_0x34c7dc}),_0x326b9b),{}),_0x286d18=_0x4e11f5['plugins']['get']('Users')['users']['map'](_0x5fcb83=>({'id':_0x5fcb83['id'],'name':_0x5fcb83['name']})),_0x4ca6a4=_0x4e11f5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x237259=_0x4e11f5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x58f469=_0x319542['plugins']['get']('Users'),_0x42c4df=_0x319542['plugins']['get']('TrackChangesEditing'),_0x327b0b=_0x319542['plugins']['get']('CommentsRepository');for(const _0x29fd25 of _0x327b0b['getCommentThreads']())_0x29fd25['remove']();for(const _0x523df8 of _0x286d18)_0x58f469['getUser'](_0x523df8['id'])||_0x58f469['addUser'](_0x523df8);_0x58f469['me']||_0x58f469['useAnonymousUser']();for(const _0x2b8702 of _0x237259)_0x327b0b['addCommentThread'](_0x2b8702);for(const _0xf56a11 of _0x4ca6a4)_0x42c4df['addSuggestionData'](_0xf56a11);_0x319542['data']['set'](_0x402744);}(_0x4dca3e,_0x4079df),_0x4079df['execute'](_0x23abc0?'acceptAllSuggestions':'discardAllSuggestions');const _0x2dffa8=In(_0x4079df)?_0x4079df['getFullData'](_0x58ef93):_0x4079df['data']['get'](_0x58ef93);return await _0x4079df['destroy'](),_0x2dffa8;}class An extends _0x2287ec{['options'];constructor(_0x1c5d89,_0x25910e){super(_0x1c5d89),this['options']=_0x25910e,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'](_0x125862,_0x526af3){if(!this['element'])return;const _0x1740b0=[];for(const [_0x5b32a3,_0x3b0749]of _0x125862){const _0x23449d=document['createElement']('div');_0x23449d['setAttribute']('data-ck-root-name',_0x5b32a3),_0x23449d['className']=_0x3b0749['classes']+'\x20ck-track-changes-preview__root-container',_0x23449d['innerHTML']=_0x3b0749['content'],_0x1740b0['push'](_0x23449d);}_0x526af3(this['element'],_0x1740b0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x19b9d0{constructor(_0x211814){super(_0x211814),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x29932e=this['editor'],_0x3eca26=_0x29932e['locale'],_0x3c9658=_0x29932e['plugins']['get']('Dialog');let _0x2c0e33;const _0x20bac9=function(_0x3a699f){const _0x3c01e0={};if('editables'in _0x3a699f['ui']['view']){for(const [_0x23b740,_0x35896a]of Object['entries'](_0x3a699f['ui']['view']['editables']))_0x3c01e0[_0x23b740]=_0x35896a['element'];}else _0x3c01e0[_0x3a699f['model']['document']['getRootNames']()[0x0]]=_0x3a699f['ui']['view']['editable']['element'];return _0x3c01e0;}(_0x29932e),_0x38af15=function(_0x560e27){let _0x47a93a=0x0;for(const _0x44bd53 of Object['values'](_0x560e27))_0x47a93a=Math['max'](_0x47a93a,_0x44bd53['getBoundingClientRect']()['width']);let _0x5a51c=0x0;for(const _0x1b126a of Object['values'](_0x560e27))_0x5a51c+=_0x1b126a['getBoundingClientRect']()['height'];const _0x35ef48=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1dc70e=Math['min'](_0x5a51c,_0x35ef48);return{'width':_0x47a93a,'height':_0x1dc70e};}(_0x20bac9);_0x3c9658['show']({'id':'finalContentPreview','title':At(_0x3eca26,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x3eca26,{'dialogRects':_0x38af15}),'onHide':()=>{_0x2c0e33['detachFromDom']();},'onShow':()=>{_0x29932e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x13f71f=>{const _0x2cbbe7=this['_standarizeRootsData'](_0x13f71f,_0x29932e,_0x20bac9);_0x3c9658['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2cbbe7,_0x29932e['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c0e33=new _0x3c2fd8(_0x3eca26,[_0x3c9658['view']]),_0x2c0e33['attachToDom'](),_0x2c0e33['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x29932e['once']('destroy',()=>{_0x2c0e33['detachFromDom']();});const _0x4adec9=_0x3c9658['view']['headerView']['class'];_0x3c9658['view']['headerView']['class']=_0x4adec9?_0x4adec9+'\x20ck-reset_all':'ck-reset_all',_0x3c9658['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3c9658['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x317435=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3faf43=_0x317435['previewMode'],_0x358136={};if('$labels'===_0x3faf43){for(const _0x3a4750 of _0x317435['getMergeFieldsIds']())_0x358136[_0x3a4750]=_0x317435['getLabel'](_0x3a4750)||_0x3a4750;}else{const _0xf6eaf9='$defaultValues'===_0x3faf43?_0x317435['getDefaultValues']():_0x317435['getDataSetValues'](_0x3faf43,!0x0);for(const _0xf51255 of Object['entries'](_0xf6eaf9)){const [_0x1cb3fe,_0x41336a]=_0xf51255;_0x358136[_0x1cb3fe]=null!==_0x41336a?_0x41336a:_0x317435['getLabel'](_0x1cb3fe)||_0x1cb3fe;}}return{'mergeFieldsData':_0x358136};}['_standarizeRootsData'](_0xf23e45,_0x236596,_0x39ac03){let _0x2196db;if('string'==typeof _0xf23e45){const _0x188422=_0x236596['model']['document']['getRootNames']()[0x0];_0x2196db={[_0x188422]:_0xf23e45};}else _0x2196db=_0xf23e45;const _0x487041=this['_fixMediaEmbeds'](_0x2196db,_0x236596),_0x4a9d02=function(_0x3428bb,_0x358561){for(const [_0xf17be1,_0x2f59d0]of _0x3428bb)_0x2f59d0['classes']=_0x358561[_0xf17be1]['classList']['value']['replace']('ck-focused','');return _0x3428bb;}(this['_sortRoots'](_0x236596)['reduce']((_0x3e15c6,_0x334778)=>(_0x3e15c6['push']([_0x334778,{'content':_0x487041[_0x334778],'classes':''}]),_0x3e15c6),[]),_0x39ac03);return _0x4a9d02;}['_fixMediaEmbeds'](_0x101e2d,_0x30eb21){if(!_0x30eb21['plugins']['has']('MediaEmbedEditing'))return _0x101e2d;const _0x245e08=_0x30eb21['plugins']['get']('MediaEmbedEditing');for(const [_0x150904,_0x1be819]of Object['entries'](_0x101e2d)){const _0x3cc154=document['createElement']('div');_0x3cc154['innerHTML']=_0x1be819,(_0x3cc154['querySelectorAll']('figure.media')['forEach'](_0x318b4a=>{const _0x31a4ac=_0x318b4a['querySelector']('oembed');if(_0x31a4ac){const _0x1a1a3d=_0x31a4ac['getAttribute']('url');if(_0x1a1a3d){const _0x5a695=_0x245e08['registry']['getMediaViewElement'](new et(_0x30eb21['editing']['view']['document']),_0x1a1a3d,{'elementName':'','renderForEditingView':!0x0}),_0x4d888c=document['createElement']('div');_0x4d888c['classList']['add']('ck-media__wrapper'),_0x5a695['render'](_0x4d888c,_0x30eb21['editing']['view']['domConverter']),_0x31a4ac['replaceWith'](_0x4d888c);}}}),_0x101e2d[_0x150904]=_0x3cc154['innerHTML']);}return _0x101e2d;}['_sortRoots'](_0x354391){if(!function(_0x389097){return void 0x0!==_0x389097['getRootsAttributes'];}(_0x354391))return _0x354391['model']['document']['getRootNames']();const _0x553c1f=[],_0x3363ad=new Map();for(const _0x3c5ebb of _0x354391['model']['document']['getRootNames']()){const _0xbd2e0c=_0x354391['editing']['view']['getDomRoot'](_0x3c5ebb)['getClientRects']()['item'](0x0);_0x553c1f['push'](_0x3c5ebb),_0x3363ad['set'](_0x3c5ebb,_0xbd2e0c);}return _0x553c1f['sort']((_0x46defa,_0x38698e)=>{const _0x244261=_0x3363ad['get'](_0x46defa),_0x1ad259=_0x3363ad['get'](_0x38698e);return _0x244261['y']-_0x1ad259['y']||_0x244261['x']-_0x1ad259['x'];}),_0x553c1f;}}class Cn extends _0x54c126{static get['requires'](){return[pn,_0x4d24f8];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x17f196){super(_0x17f196),_0x17f196['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x17f196['config']['define']('trackChanges.preview.renderFunction',(_0x1da0b5,_0x1164c)=>{for(const _0x2d93bc of _0x1164c)_0x1da0b5['appendChild'](_0x2d93bc);});}}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 _0x3ba425,Plugin as _0x957e03,PendingActions as _0x2bb4eb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CommentsRepository as _0x552cbc,Annotations as _0xce9570,EditorAnnotations as _0x5b7066,Comments as _0x2749f7}from'@ckeditor/ckeditor5-comments/dist/index.js';import{CKEditorError as _0x54f12a,ObservableMixin as _0x52ada8,uid as _0x10b1ba,priorities as _0x44e75e,insertToPriorityArray as _0x542196,logWarning as _0x5d3e28,getEnvKeystrokeText as _0x1e8d39,FocusTracker as _0x5def8c,KeystrokeHandler as _0x8f403f,Collection as _0x1335da}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x5187d2,IconCancel as _0x21a991,IconTrackChanges as _0x59c1ed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xc91311,View as _0x1fc7e3,ViewCollection as _0x36f468,FocusCycler as _0x5d13be,UIModel as _0x3a5d05,createDropdown as _0x1c7eeb,SplitButtonView as _0x164105,addListToDropdown as _0x3fe03e,MenuBarMenuView as _0x2d6ee1,MenuBarMenuListView as _0x401545,ListSeparatorView as _0x1d3cd1,MenuBarMenuListItemView as _0x5cf836,MenuBarMenuListItemButtonView as _0x131aa9,BodyCollection as _0x235106,Dialog as _0x354598}from'@ckeditor/ckeditor5-ui/dist/index.js';import{splitSuggestionMarkerName as _0x269eaf,SuggestionsConversion as _0x59977f,Users as _0x552f83,DocumentCompare as _0x42784c,fixElementSuggestionRange as _0x39a147,hashObject as _0x308fea,surroundingMarkersDetector as _0x20f644,FOCUS_ANNOTATION_KEYSTROKE as _0x4b3ffd,AriaDescriptionView as _0x352d10,setupThreadKeyboardNavigation as _0x4475e0,trimHtml as _0x1eb79e,UserView as _0x104b2f,LateFocusButtonView as _0x24af73,getDateTimeFormatter as _0x5c25a4,getAllMarkersDomElementsSorted as _0x411add,sanitizeEditorConfig as _0x4df7f6}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';import{ModelElement as _0x296d07,ModelLiveRange as _0x82a6d2,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 _0x3ba425{['_enabledCommands'];constructor(_0x31200a,_0x336e87){super(_0x31200a),this['_enabledCommands']=_0x336e87,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 _0x426c8a of this['editor']['commands']['commands']())_0x426c8a['affectsData']&&!this['_enabledCommands']['has'](_0x426c8a)&&_0x426c8a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3dbadb of this['editor']['commands']['commands']())_0x3dbadb['affectsData']&&!this['_enabledCommands']['has'](_0x3dbadb)&&_0x3dbadb['clearForceDisabled']('TrackChangesCommand');}}class dt extends _0x3ba425{['_suggestions'];constructor(_0x59c75d,_0x4aae78){super(_0x59c75d),this['_suggestions']=_0x4aae78,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4f9ac2){const _0x3ebda5=this['_suggestions']['get'](_0x4f9ac2);if(!_0x3ebda5)throw new _0x54f12a('track-changes-accept-suggestion-not-found',this);const _0x4663d0=_0x3ebda5['getRanges']();this['editor']['model']['canEditAt'](_0x4663d0)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3ebda5);}}class ft extends _0x3ba425{['_suggestions'];constructor(_0x55e8b8,_0xc0fc79){super(_0x55e8b8),this['_suggestions']=_0xc0fc79,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x45eafe){const _0x4d6df6=this['_suggestions']['get'](_0x45eafe);if(!_0x4d6df6)throw new _0x54f12a('track-changes-discard-suggestion-not-found',this);const _0x29110e=_0x4d6df6['getRanges']();this['editor']['model']['canEditAt'](_0x29110e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4d6df6);}}function gt(_0xb8b218,_0x176929){let _0x53f005='';return _0x53f005+=_0xb8b218['split']('*')['map']((_0x229235,_0x10efeb)=>_0x10efeb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+mt(_0x229235)+'</span>':mt(_0x229235))['join'](''),_0x176929&&(_0x53f005+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x176929['value']+'\x22\x20title=\x22'+_0x176929['title']+'\x22></span>'),_0x53f005;}function mt(_0x547a85){const _0x43787f=document['createElement']('span');return _0x43787f['innerText']=_0x547a85,_0x43787f['innerHTML'];}function Et(_0x3839b7){return _0x3839b7['sort']((_0x1957ee,_0x4f04e5)=>'attribute'===_0x1957ee['type']&&'attribute'!==_0x4f04e5['type']?-0x1:'attribute'!==_0x1957ee['type']&&'attribute'===_0x4f04e5['type']?0x1:'deletion'==_0x1957ee['type']&&'deletion'!=_0x4f04e5['type']?-0x1:'deletion'!=_0x1957ee['type']&&'deletion'==_0x4f04e5['type']?0x1:0x0);}function Tt(_0x133c06,_0x3866d9){let _0x4698c4,_0x5cb55b=0x0;const _0x22ce88=[],_0x39315c=_0x3866d9['schema'];for(;_0x5cb55b<_0x133c06['length'];){const _0xbd1d33=_0x133c06[_0x5cb55b],_0x319e85=_0x133c06[_0x5cb55b+0x1];_0x4698c4||(_0x4698c4=_0x3866d9['createPositionBefore'](_0xbd1d33)),_t(_0x3866d9,_0xbd1d33,_0x319e85)||(_0x22ce88['push'](_0x3866d9['createRange'](_0x4698c4,_0x39315c['isObject'](_0xbd1d33)?_0x3866d9['createPositionAfter'](_0xbd1d33):_0x3866d9['createPositionAt'](_0xbd1d33,'end'))),_0x4698c4=null),_0x5cb55b++;}return _0x22ce88;}function _t(_0x4ed693,_0x284ba1,_0x704e36){if(!_0x704e36)return!0x1;const _0xa47351=_0x4ed693['createPositionAfter'](_0x284ba1),_0x478c77=_0x4ed693['createPositionBefore'](_0x704e36);return _0xa47351['isTouching'](_0x478c77);}function pt(_0x2fee93,_0x2600b7,_0x9a572d){for(;_0x9a572d['length'];){const _0x51a4f5=_0x9a572d['splice'](0x0,0x64);_0x2fee93['change'](()=>{for(const _0x2f3adc of _0x51a4f5)_0x2f3adc['isInContent']&&_0x2600b7['execute'](_0x2f3adc['id']);});}}class Lt extends _0x3ba425{['_command'];['_suggestions'];constructor(_0x1473aa,_0x2e9686,_0x122f2e){super(_0x1473aa),this['_command']=_0x2e9686,this['_suggestions']=_0x122f2e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x47beba=Array['from'](this['_suggestions']['values']())['some'](_0x2e23b9=>_0x2e23b9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x47beba;}['execute'](){const _0x539fa2=Et(Array['from'](this['_suggestions']['values']()));for(const _0x17d241 of _0x539fa2){const _0x1a2b31=_0x17d241['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1a2b31))return;}pt(this['editor']['model'],this['_command'],_0x539fa2);}}class It extends _0x3ba425{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x35a9ca,_0x8715d9,_0xc99ccf){super(_0x35a9ca),this['_command']=_0x8715d9,this['_suggestions']=_0xc99ccf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x115390=this['editor']['model']['document']['selection'],_0x149d61=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x97e8bf,_0x215929){const _0xd87a78=Array['from'](_0x97e8bf['getRanges']()),_0x44487c=new Set();for(const _0x1aafa8 of _0x215929)if(_0x1aafa8['isInContent']){for(const _0x218f0f of _0xd87a78)for(const _0x5c4f16 of _0x1aafa8['getRanges']())(_0x218f0f['isIntersecting'](_0x5c4f16)||_0x97e8bf['isCollapsed']&&!_0x1aafa8['isMultiRange']&&_0x1aafa8['next']&&_0x5c4f16['end']['isTouching'](_0x218f0f['start']))&&_0x44487c['add'](_0x1aafa8);}return _0x44487c;}(_0x115390,_0x149d61),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x48134a=Et(Array['from'](this['_selectedSuggestions']));for(const _0x43d98a of _0x48134a){const _0x19ab19=_0x43d98a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x19ab19))return;}pt(this['editor']['model'],this['_command'],_0x48134a);}}class bt extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x52ada8(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x22e248,_0x1e7dbc){super(),this['id']=_0x1e7dbc['id'],this['type']=_0x1e7dbc['type'],this['subType']=_0x1e7dbc['subType']||null,this['author']=_0x1e7dbc['author'],this['creator']=_0x1e7dbc['creator']||_0x1e7dbc['author'],this['isExternal']=Boolean(_0x1e7dbc['attributes']&&_0x1e7dbc['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1e7dbc['originalSuggestionId']||null,this['_model']=_0x22e248,this['_onAccept']=_0x1e7dbc['onAccept'],this['_onDiscard']=_0x1e7dbc['onDiscard'],this['_onAttributesChange']=_0x1e7dbc['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e7dbc['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 _0x2f7269=this;for(;_0x2f7269['previous'];)_0x2f7269=_0x2f7269['previous'];return _0x2f7269;}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'](_0x5eab42){this['_markerNames']['add'](_0x5eab42);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b182a=>this['_model']['markers']['get'](_0x2b182a))['filter'](_0x2c84b8=>_0x2c84b8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x27cc35=>{for(const _0x24a108 of this['getMarkers']())_0x27cc35['removeMarker'](_0x24a108);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ddc8f){this['_model']['change'](_0x4c7216=>{_0x4c7216['removeMarker'](_0x1ddc8f);}),this['_markerNames']['delete'](_0x1ddc8f);}['addRange'](_0x59fe69){const _0x2e8689='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+bt['getMultiRangeId']();this['addMarkerName'](_0x2e8689),this['_model']['change'](_0x1a05c6=>{_0x1a05c6['addMarker'](_0x2e8689,{'range':_0x59fe69,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x104b93){for(const _0x19cf7e of this['getRanges']())if(_0x19cf7e['isIntersecting'](_0x104b93))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x462f2c=>_0x462f2c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4d9bf3,_0x1a0360)=>[..._0x4d9bf3,..._0x1a0360['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x16e186=this['getRanges']();if(0x1!=_0x16e186['length'])return null;const _0x466f32=_0x16e186[0x0],_0x385343=_0x466f32['start']['nodeAfter'],_0xa627ca=_0x466f32['end']['nodeBefore'];return _0x385343 instanceof _0x296d07?_0x385343!=_0xa627ca?null:_0x385343: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 _0x15f234=[];let _0x1544c8=this['head'];for(;_0x1544c8;)_0x15f234['push'](_0x1544c8),_0x1544c8=_0x1544c8['next'];return _0x15f234;}['setAttribute'](_0x4b00ac,_0x1176d0){const _0x131432=nt(this['attributes']);it(_0x131432,_0x4b00ac,_0x1176d0),st(_0x131432,this['attributes'])||(this['attributes']=_0x131432,this['_onAttributesChange'](_0x131432));}['removeAttribute'](_0x45a6e1){const _0x323726=nt(this['attributes']);rt(_0x323726,_0x45a6e1),st(_0x323726,this['attributes'])||(this['attributes']=_0x323726,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 _0x10b1ba()['substr'](0x1,0x5);}}function At(_0x1f25e5,_0x5d6e1d,_0x323dd4){const _0x99c9e7=_0x1f25e5['t'],t=_0x1f25e5['t'];switch(_0x5d6e1d){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',_0x323dd4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x323dd4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x323dd4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x323dd4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x323dd4);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',_0x323dd4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x323dd4);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',_0x323dd4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x323dd4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x323dd4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x323dd4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x323dd4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x323dd4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x323dd4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x323dd4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x323dd4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x323dd4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x323dd4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x323dd4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x323dd4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x323dd4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x323dd4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x323dd4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x323dd4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x323dd4);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'},_0x323dd4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x323dd4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x323dd4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x323dd4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x323dd4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x323dd4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x323dd4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x323dd4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x323dd4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x323dd4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x323dd4);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'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x323dd4);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x323dd4);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x323dd4);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x323dd4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x323dd4);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'},_0x323dd4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x323dd4);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 _0x99c9e7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x323dd4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x99c9e7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x323dd4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x323dd4);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'},_0x323dd4);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'},_0x323dd4);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'},_0x323dd4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d6e1d;}}class kt{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3f03df,_0x709753){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3f03df,this['_locale']=_0x709753;}['getDescriptions'](_0x5936d0){const _0x598602=[],_0x3df0a5=new Set(),_0x413e8c=new Set();for(let _0x5bcb61=0x0;_0x5bcb61<_0x5936d0['length'];_0x5bcb61++){const _0x489fa9=_0x5936d0[_0x5bcb61];if(!_0x489fa9['isInContent'])continue;const _0x4b5c46=this['_handleCustomCallbackDescription'](_0x489fa9);if(_0x4b5c46){if(null!=_0x489fa9['subType']){if(_0x3df0a5['has'](_0x489fa9['subType']))continue;_0x3df0a5['add'](_0x489fa9['subType']);}_0x598602['push'](_0x4b5c46);}else{if('attribute'==_0x489fa9['type']){const _0x2ac853=_0x489fa9['data']['key'];if(_0x413e8c['has'](_0x2ac853))continue;_0x413e8c['add'](_0x489fa9['data']['key']),_0x2ac853==Ke?this['_handleRenameSuggestionDescription'](_0x598602,_0x489fa9):this['_handleAttributeSuggestionDescription'](_0x598602,_0x489fa9);continue;}'insertion'!=_0x489fa9['type']&&'deletion'!=_0x489fa9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x598602,_0x489fa9,_0x5936d0[_0x5bcb61+0x1]);}}return this['_resolveDescriptionItems'](_0x598602);}['registerDescriptionCallback'](_0x38c5a4){this['_customCallbacks']['push'](_0x38c5a4);}['registerElementLabel'](_0xf054a3,_0x1b36bb,_0x5c06c5=_0x44e75e['normal']){'function'==typeof _0xf054a3?_0x542196(this['_itemLabelsCallbacks'],{'matchingCallback':_0xf054a3,'label':_0x1b36bb,'priority':_0x5c06c5}):this['_itemLabels']['set'](_0xf054a3,_0x1b36bb);}['registerAttributeLabel'](_0x20619e,_0x57abeb){this['_attributeLabels']['set'](_0x20619e,_0x57abeb);}['getItemLabel'](_0x541a5b,_0x5a593a=0x1){let _0xe666c1;for(const _0x551cb9 of this['_itemLabelsCallbacks'])if(_0x551cb9['matchingCallback'](_0x541a5b)){_0xe666c1=_0x551cb9['label'];break;}return _0xe666c1||(_0xe666c1=this['_itemLabels']['get'](_0x541a5b['name'])),_0xe666c1?_0xe666c1(_0x5a593a):0x1!==_0x5a593a?_0x5a593a+'\x20'+_0x541a5b['name']+'s':''+_0x541a5b['name'];}['_addDescriptionItems'](_0x312948,_0x3aa3c7){const _0x4a23bc=_0x3aa3c7['getFirstRange']()['getWalker'](),_0x1f7a73='insertion'==_0x3aa3c7['type']?'add':'remove';for(const _0x1ad7e7 of _0x4a23bc){const _0xa07103=_0x1ad7e7['item'],_0x56202d=_0x312948[_0x312948['length']-0x1];if(_0xa07103['is']('$textProxy'))_0x56202d&&_0x56202d['type']['indexOf']('Container')>-0x1&&_0x312948['pop'](),_0x56202d&&'text'==_0x56202d['type']?_0x56202d[_0x1f7a73]+=_0xa07103['data']:_0x312948['push']({'type':'text','add':'add'==_0x1f7a73?_0xa07103['data']:'','remove':'remove'==_0x1f7a73?_0xa07103['data']:''});else{if(this['_schema']['isObject'](_0xa07103)){const _0x3fc4e3=_0xa07103;if(_0x56202d&&_0x56202d['type']['indexOf']('Container')>-0x1&&_0x312948['pop'](),'elementEnd'==_0x1ad7e7['type'])continue;_0x56202d&&_0x56202d['type']==_0x1f7a73+'Object'&&_0x56202d['element']['name']==_0x3fc4e3['name']?_0x56202d['quantity']++:_0x312948['push']({'type':_0x1f7a73+'Object','element':_0x3fc4e3,'quantity':0x1}),_0x4a23bc['skip'](_0x4ec131=>!('elementEnd'==_0x4ec131['type']&&_0x4ec131['item']==_0xa07103));}else{if(this['_schema']['checkChild'](_0xa07103,'$text')||_0xa07103['is']('element','softBreak')){const _0x5dc49c=_0xa07103;if('add'==_0x1f7a73&&'elementStart'==_0x1ad7e7['type']||'remove'==_0x1f7a73&&'elementEnd'==_0x1ad7e7['type'])continue;if(_0x56202d&&-0x1==_0x56202d['type']['indexOf']('Container')){'text'==_0x56202d['type']&&(_0x56202d[_0x1f7a73]+='\x0a');continue;}let _0x226bfa;if(_0x226bfa='add'==_0x1f7a73?_0x5dc49c['nextSibling']&&!this['_schema']['isObject'](_0x5dc49c['nextSibling'])?_0x5dc49c['nextSibling']:null:_0x5dc49c['previousSibling']&&!this['_schema']['isObject'](_0x5dc49c['previousSibling'])?_0x5dc49c['previousSibling']:null,_0x5dc49c['isEmpty']||_0x226bfa&&_0x226bfa['isEmpty']){const _0x36e373=_0x226bfa&&_0x226bfa['isEmpty']?_0x226bfa:_0x5dc49c;_0x56202d&&_0x56202d['type']==_0x1f7a73+'EmptyContainer'&&_0x56202d['element']['name']==_0x36e373['name']?_0x56202d['quantity']++:_0x312948['push']({'type':_0x1f7a73+'EmptyContainer','element':_0x36e373,'quantity':0x1});}else _0x312948['push']({'type':_0x1f7a73+'Container','element':_0x5dc49c});}}}}}['_resolveDescriptionItems'](_0x40221d){const _0x2e54f1=this['_locale'],_0xe7f39=[],_0x58175a=[],_0x3dad1c=[];for(const _0xfdfc7c of _0x40221d)switch(_0xfdfc7c['type']){case'text':if(_0xfdfc7c['add']=_0xfdfc7c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xfdfc7c['remove']=_0xfdfc7c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xfdfc7c['add']&&''!=_0xfdfc7c['remove']){_0xe7f39['push']({'type':'replace','content':At(_0x2e54f1,'REPLACE_TEXT',['\x22'+_0xfdfc7c['remove']+'\x22','\x22'+_0xfdfc7c['add']+'\x22'])});continue;}if(null!=_0xfdfc7c['add']['match'](/^ +$/)){_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0',At(_0x2e54f1,'ELEMENT_SPACE',_0xfdfc7c['add']['length']))});continue;}if(null!=_0xfdfc7c['remove']['match'](/^ +$/)){_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0',At(_0x2e54f1,'ELEMENT_SPACE',_0xfdfc7c['remove']['length']))});continue;}if(''!=_0xfdfc7c['add']){_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0','\x22'+_0xfdfc7c['add']+'\x22')});continue;}_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0','\x22'+_0xfdfc7c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Insert:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Remove:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'addContainer':_0xe7f39['push']({'type':'insertion','content':At(_0x2e54f1,'*Split:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'removeContainer':_0xe7f39['push']({'type':'deletion','content':At(_0x2e54f1,'*Merge:*\x20%0',this['getItemLabel'](_0xfdfc7c['element'],_0xfdfc7c['quantity']))});continue;case'addFormat':_0x58175a['push'](_0xfdfc7c['key']);continue;case'removeFormat':_0x3dad1c['push'](_0xfdfc7c['key']);continue;default:_0xe7f39['push'](_0xfdfc7c);}if(_0x58175a['length']){const _0x51e84f=_0x58175a['map'](_0x35509c=>this['_attributeLabels']['has'](_0x35509c)?this['_attributeLabels']['get'](_0x35509c):_0x35509c)['join'](',\x20');_0xe7f39['push']({'type':'format','content':At(this['_locale'],'*Set\x20format:*\x20%0',_0x51e84f)});}if(_0x3dad1c['length']){const _0x479b52=_0x3dad1c['map'](_0x139d0b=>this['_attributeLabels']['has'](_0x139d0b)?this['_attributeLabels']['get'](_0x139d0b):_0x139d0b)['join'](',\x20');_0xe7f39['push']({'type':'format','content':At(this['_locale'],'*Remove\x20format:*\x20%0',_0x479b52)});}return _0xe7f39;}['_handleCustomCallbackDescription'](_0x471195){for(const _0x3e691e of this['_customCallbacks']){const _0x479846=_0x3e691e(_0x471195);if(_0x479846&&'type'in _0x479846)return _0x479846;}}['_handleAttributeSuggestionDescription'](_0xb1a0fd,_0x43a6db){const _0x323080=_0x43a6db['data'],_0x322318=void 0x0===_0x323080['newValue']?'removeFormat':'addFormat';_0xb1a0fd['push']({'type':_0x322318,'key':_0x323080['key']});}['_handleRenameSuggestionDescription'](_0x3c3ec7,_0x55f9b7){_0x3c3ec7['push']({'type':'format','content':At(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x55f9b7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5b0cd0,_0x3d5cc8,_0x4e46a6){if(this['_addDescriptionItems'](_0x5b0cd0,_0x3d5cc8),_0x4e46a6&&_0x4e46a6['getFirstRange']()&&!_0x3d5cc8['getFirstRange']()['end']['isEqual'](_0x4e46a6['getFirstRange']()['start'])){const _0x70be36=_0x5b0cd0[_0x5b0cd0['length']-0x1],_0x34094d='insertion'==_0x3d5cc8['type']?'add':'remove';_0x70be36&&'text'==_0x70be36['type']&&(_0x70be36[_0x34094d]+='\x0a');}}}class Ct extends _0x957e03{['afterInit'](){const _0x3342dd=this['editor'],_0x45fd98=_0x3342dd['plugins']['get']('TrackChangesEditing');_0x3342dd['commands']['get']('showAIAssistant')&&_0x45fd98['enableCommand']('showAIAssistant');}}class yt extends _0x957e03{['afterInit'](){const _0x142db3=this['editor'],_0x23fa0a=_0x142db3['plugins']['get']('TrackChangesEditing');_0x142db3['commands']['get']('toggleAi')&&_0x23fa0a['enableCommand']('toggleAi');}}class Nt extends _0x957e03{['afterInit'](){const _0x3856c4=this['editor'],_0x4f3366=_0x3856c4['plugins']['get']('TrackChangesEditing');_0x3856c4['commands']['get']('aiQuickAction')&&_0x4f3366['enableCommand']('aiQuickAction');}}class Rt extends _0x957e03{['afterInit'](){const _0x7b0ea1=this['editor'],_0x4c96ba=_0x7b0ea1['locale'];if(!_0x7b0ea1['plugins']['has']('AlignmentEditing'))return;const _0x3686d9=_0x7b0ea1['plugins']['get']('TrackChangesEditing');_0x3686d9['enableDefaultAttributesIntegration']('alignment'),_0x3686d9['descriptionFactory']['registerAttributeLabel']('alignment',At(_0x4c96ba,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40bd79=this['editor'],_0x257294=_0x40bd79['locale'];_0x40bd79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cee9a=>{if('formatBlock'!=_0x2cee9a['type'])return;const {data:_0x3dd738}=_0x2cee9a;if(_0x3dd738&&'alignment'==_0x3dd738['commandName']){const _0x4f3080=_0x3dd738['commandParams'][0x0]['value'];return{'type':'format','content':At(_0x257294,'*Format:*\x20%0',function(_0x2c645b){switch(_0x2c645b){case'left':return At(_0x257294,'FORMAT_ALIGN_TO_LEFT');case'right':return At(_0x257294,'FORMAT_ALIGN_TO_RIGHT');case'center':return At(_0x257294,'FORMAT_ALIGN_TO_CENTER');case'justify':return At(_0x257294,'FORMAT_JUSTIFY_TEXT');}}(_0x4f3080))};}});}}const St=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class Mt extends _0x957e03{['afterInit'](){const _0x32aca5=this['editor'],_0x5129ec=_0x32aca5['plugins']['get']('TrackChangesEditing'),_0x4500c1=_0x32aca5['locale'];for(const _0x4ec7b4 of St){if(!_0x32aca5['plugins']['has'](_0x4ec7b4))continue;const _0x29ec4f=_0x4ec7b4['slice'](0x0,-0x7)['toLowerCase'](),_0x478d2c='FORMAT_'+_0x29ec4f['toUpperCase']();_0x5129ec['enableDefaultAttributesIntegration'](_0x29ec4f),_0x5129ec['descriptionFactory']['registerAttributeLabel'](_0x29ec4f,At(_0x4500c1,_0x478d2c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e543c=this['editor'],_0x6efc18=_0x2e543c['locale'],_0x16eacf=_0x2e543c['plugins']['get']('TrackChangesEditing');function _0x35e507(_0x2a762b,_0x165aad){_0x16eacf['descriptionFactory']['registerDescriptionCallback'](_0x34d396=>{if('formatInline'!=_0x34d396['type'])return;const {data:_0x51936b}=_0x34d396;return _0x51936b&&_0x51936b['commandName']===_0x2a762b?_0x51936b['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x6efc18,'*Format:*\x20%0',_0x165aad)}:{'type':'format','content':At(_0x6efc18,'*Remove\x20format:*\x20%0',_0x165aad)}:void 0x0;});}_0x35e507('bold',At(_0x6efc18,'FORMAT_BOLD')),_0x35e507('italic',At(_0x6efc18,'FORMAT_ITALIC')),_0x35e507('underline',At(_0x6efc18,'FORMAT_UNDERLINE')),_0x35e507('code',At(_0x6efc18,'FORMAT_CODE')),_0x35e507('strikethrough',At(_0x6efc18,'FORMAT_STRIKETHROUGH')),_0x35e507('subscript',At(_0x6efc18,'FORMAT_SUBSCRIPT')),_0x35e507('superscript',At(_0x6efc18,'FORMAT_SUPERSCRIPT'));}}class Ot extends _0x957e03{['afterInit'](){const _0x3a882d=this['editor'],_0x215f22=_0x3a882d['locale'];if(!_0x3a882d['plugins']['has']('BlockQuoteEditing'))return;const _0x590f40=_0x3a882d['plugins']['get']('TrackChangesEditing'),_0x442a6a=this['editor']['commands']['get']('blockQuote');_0x590f40['enableCommand']('blockQuote',(_0x28b583,_0x971531={})=>{const _0x5b0ae9=this['editor']['model']['document']['selection'],_0x421dcf=_0x971531&&void 0x0!==_0x971531['forceValue']?_0x971531['forceValue']:!_0x442a6a['value'];let _0x588e9e=[];if(_0x421dcf){const _0x5a282a=Array['from'](_0x5b0ae9['getSelectedBlocks']())['filter'](_0x59be38=>wt(_0x59be38)||function(_0x67e307,_0x267f55){const _0x137aa6=_0x267f55['checkChild'](_0x67e307['parent'],'blockQuote'),_0x4b0bcd=_0x267f55['checkChild'](['$root','blockQuote'],_0x67e307);return _0x137aa6&&_0x4b0bcd;}(_0x59be38,this['editor']['model']['schema']));_0x588e9e=Tt(_0x5a282a,_0x3a882d['model']);}else{const _0x4eb178=Array['from'](_0x5b0ae9['getSelectedBlocks']())['filter'](_0x19afb6=>wt(_0x19afb6));_0x588e9e=Tt(_0x4eb178,_0x3a882d['model']);}_0x3a882d['model']['change'](()=>{for(const _0x44aa3e of _0x588e9e)_0x590f40['markBlockFormat'](_0x44aa3e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x421dcf}]});});}),_0x590f40['descriptionFactory']['registerDescriptionCallback'](_0x344056=>{const {data:_0x58d0ac}=_0x344056;if(_0x58d0ac&&'blockQuote'==_0x58d0ac['commandName']){const _0x174ce8=At(_0x215f22,'ELEMENT_BLOCK_QUOTE');return _0x58d0ac['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x215f22,'*Set\x20format:*\x20%0',_0x174ce8)}:{'type':'format','content':At(_0x215f22,'*Remove\x20format:*\x20%0',_0x174ce8)};}});}}function wt(_0x5a30d0){return'blockQuote'==_0x5a30d0['parent']['name'];}class Bt extends _0x957e03{['afterInit'](){const _0x49c344=this['editor'],_0x54ac01=_0x49c344['locale'],_0x48c27d=_0x49c344['plugins']['get']('TrackChangesEditing');_0x49c344['plugins']['has']('BookmarkEditing')&&(_0x48c27d['enableCommand']('insertBookmark'),_0x48c27d['enableDefaultAttributesIntegration']('updateBookmark'),_0x48c27d['descriptionFactory']['registerDescriptionCallback'](_0x3e80ea=>{if('insertion'!=_0x3e80ea['type']&&'deletion'!=_0x3e80ea['type']&&'attribute'!=_0x3e80ea['type'])return;const _0x38954c=_0x3e80ea['getContainedElement']();if(null==_0x38954c)return;if(!_0x38954c['is']('element','bookmark'))return;const _0x34656a=_0x38954c['getAttribute']('bookmarkId');if('insertion'==_0x3e80ea['type'])return{'type':'insertion','content':At(_0x54ac01,'*Insert:*\x20%0','\x22'+_0x34656a+'\x22\x20'+At(_0x54ac01,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3e80ea['type'])return{'type':'deletion','content':At(_0x54ac01,'*Remove:*\x20%0','\x22'+_0x34656a+'\x22\x20'+At(_0x54ac01,'ELEMENT_BOOKMARK'))};const {data:_0xb3391f}=_0x3e80ea;if(!_0xb3391f||'bookmarkId'!=_0xb3391f['key'])return;return{'type':'format','content':At(_0x54ac01,'*Set\x20bookmark:*\x20%0','\x22'+_0xb3391f['newValue']+'\x22')};}));}}class Ft extends _0x957e03{['afterInit'](){const _0x1cbed8=this['editor'];_0x1cbed8['plugins']['has']('CaseChange')&&(_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1cbed8['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class Dt extends _0x957e03{['afterInit'](){const _0x202c95=this['editor'];_0x202c95['commands']['get']('ckbox')&&_0x202c95['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class vt extends _0x957e03{['afterInit'](){const _0x487097=this['editor'];if(!_0x487097['plugins']['has']('CodeBlock'))return;const _0x14467b=_0x487097['plugins']['get']('TrackChangesEditing'),_0x207563=_0x487097['locale'],_0x37d31a=_0x487097['config']['get']('codeBlock')['languages'],_0x5820ea=_0x487097['commands']['get']('codeBlock');_0x14467b['enableCommand']('indentCodeBlock'),_0x14467b['enableCommand']('outdentCodeBlock'),_0x14467b['enableCommand']('codeBlock',(_0x5ee8ae,_0x182972={})=>{const _0x516453=_0x487097['model'],_0x3d70ec=_0x487097['model']['document']['selection'],_0x248127=_0x182972&&void 0x0!==_0x182972['forceValue']?_0x182972['forceValue']:!_0x5820ea['value'];let _0x44ddb5;_0x182972['language']||(_0x182972['language']=_0x37d31a[0x0]['language']),_0x44ddb5=_0x248127?Array['from'](_0x3d70ec['getSelectedBlocks']())['filter'](_0x218e09=>xt(_0x218e09)||function(_0xed4bfe,_0x4fb603){if(_0xed4bfe['is']('rootElement')||_0x4fb603['isLimit'](_0xed4bfe))return!0x1;return _0x4fb603['checkChild'](_0xed4bfe['parent'],'codeBlock');}(_0x218e09,_0x516453['schema'])):Array['from'](_0x3d70ec['getSelectedBlocks']())['filter'](_0x5cb7b6=>xt(_0x5cb7b6));const _0xfdb921=Tt(_0x44ddb5,_0x516453);_0x516453['change'](()=>{for(const _0x26efc0 of _0xfdb921)_0x14467b['markBlockFormat'](_0x26efc0,{'commandName':'codeBlock','commandParams':[{..._0x182972,'forceValue':_0x248127}],'formatGroupId':'blockName'});});}),(_0x14467b['descriptionFactory']['registerElementLabel']('codeBlock',_0x57b958=>At(_0x207563,'ELEMENT_CODE_BLOCK',_0x57b958)),_0x14467b['descriptionFactory']['registerDescriptionCallback'](_0x1a2eb7=>{if('formatBlock'!=_0x1a2eb7['type'])return;const _0x50cbef=_0x207563['t'],{data:_0x30b4cd}=_0x1a2eb7;if(!_0x30b4cd||'codeBlock'!=_0x30b4cd['commandName'])return;const _0x4e6186=_0x30b4cd['commandParams'][0x0]['language'],_0x1d38fc=_0x50cbef(_0x37d31a['find'](_0x3e464d=>_0x3e464d['language']===_0x4e6186)['label'])['toLowerCase']();return _0x30b4cd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x207563,'*Set\x20format:*\x20%0',At(_0x207563,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1d38fc+')')}:{'type':'format','content':At(_0x207563,'*Remove\x20format:*\x20%0',At(_0x207563,'ELEMENT_CODE_BLOCK',0x1))};}));}}function xt(_0x1ea79e){return'codeBlock'==_0x1ea79e['name'];}class Pt extends _0x957e03{['afterInit'](){const _0x16ccbd=this['editor'];if(!_0x16ccbd['plugins']['has']('CommentsEditing'))return;_0x16ccbd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Ut extends _0x957e03{static get['requires'](){return[at];}['init'](){const _0x329496=this['editor'],_0x455a96=_0x329496['plugins']['get']('TrackChangesEditing');_0x455a96['enableCommand']('delete');const _0x5d8a9d=_0x329496['commands']['get']('deleteForward');_0x455a96['enableCommand']('deleteForward',(_0x4aca94,_0x3d9d8a={})=>{const _0x4daa91=_0x329496['model']['createSelection'](_0x329496['model']['document']['selection']);_0x4daa91['isCollapsed']&&_0x329496['model']['modifySelection'](_0x4daa91,{'direction':'forward','unit':_0x3d9d8a['unit']});const _0x1ce6b8=_0x4daa91['getFirstRange'](),_0x7d8def=_0x82a6d2['fromRange'](_0x1ce6b8);let _0x4352b8;_0x4aca94(_0x3d9d8a),_0x4352b8='$graveyard'==_0x7d8def['root']['rootName']?_0x329496['model']['createRange'](_0x1ce6b8['start']):_0x329496['model']['createRange'](_0x7d8def['start'],_0x7d8def['end']),_0x7d8def['detach'](),_0x329496['model']['enqueueChange'](_0x5d8a9d['buffer']['batch'],_0x50b2e0=>{_0x5d8a9d['buffer']['lock'](),_0x50b2e0['setSelection'](_0x50b2e0['createRange'](_0x4352b8['end'])),_0x5d8a9d['buffer']['unlock']();});});}}class Gt extends _0x957e03{['afterInit'](){const _0x44579f=this['editor'];if(!_0x44579f['plugins']['has']('ListEditing'))return;const _0x637317=_0x44579f['locale'],_0x359cff=_0x44579f['plugins']['get']('TrackChangesEditing'),_0x59b8d5=_0x44579f['plugins']['has']('TodoListEditing'),_0x440731=!!_0x44579f['config']['get']('list.multiBlock');function _0x450729(_0x551702){return{'type':'format','content':''+At(_0x637317,'*Set\x20format:*\x20%0',_0x551702)};}function _0x50e587(_0x110348){return{'type':'format','content':''+At(_0x637317,'*Remove\x20format:*\x20%0',_0x110348)};}_0x359cff['enableDefaultAttributesIntegration']('numberedList'),_0x359cff['enableDefaultAttributesIntegration']('bulletedList'),_0x359cff['enableDefaultAttributesIntegration']('customNumberedList'),_0x359cff['enableDefaultAttributesIntegration']('customBulletedList'),_0x359cff['enableDefaultAttributesIntegration']('indentList'),_0x359cff['enableDefaultAttributesIntegration']('outdentList'),_0x359cff['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x359cff['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x440731&&(_0x359cff['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x359cff['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x59b8d5&&(_0x359cff['enableDefaultAttributesIntegration']('todoList'),_0x359cff['enableDefaultAttributesIntegration']('checkTodoList'),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x352835=>{const {data:_0x1b9530}=_0x352835;if(_0x1b9530&&'todoListChecked'==_0x1b9530['key'])return{'type':'format','content':_0x1b9530['newValue']?At(_0x637317,'*Check\x20item*'):At(_0x637317,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x56519b=>{if(_0x56519b['batch']['isUndo'])return!0x1;let _0x563e2b=!0x1;const _0x36166b=_0x359cff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb1af21=>'todoListChecked'===_0x359cff['_getAttributeKey'](_0xb1af21));for(const _0x3572ef of _0x36166b){'todo'!=_0x3572ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x359cff['_findSuggestions'](_0x3572ef['getFirstRange'](),'attribute')['find'](_0x4c56d4=>'listType'===_0x359cff['_getAttributeKey'](_0x4c56d4['suggestion']))||(_0x56519b['removeMarker'](_0x3572ef['getFirstMarker']()),_0x563e2b=!0x0));}return _0x563e2b;})),_0x359cff['descriptionFactory']['registerAttributeLabel']('listIndent',At(_0x637317,'FORMAT_INDENT'));const _0x4e50c4={'type':'format','content':''};_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x1af3de=>{const {data:_0x1f0986}=_0x1af3de;if(!_0x1f0986||'listType'!=_0x1f0986['key'])return;let _0x2deadd=_0x1af3de['head'];for(;_0x2deadd;){if(_0x2deadd['data']&&(('listStyle'==_0x2deadd['data']['key']||'listMarkerStyle'==_0x2deadd['data']['key'])&&(_0x2deadd['data']['newValue']&&'default'!=_0x2deadd['data']['newValue']||'default'!=_0x2deadd['data']['oldValue']&&!_0x1f0986['newValue'])||!_0x440731&&_0x2deadd['data']['key']==Ke))return _0x4e50c4;_0x2deadd=_0x2deadd['next'];}if(null==_0x1f0986['newValue'])switch(_0x1f0986['oldValue']){case'bulleted':return _0x50e587(At(_0x637317,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x50e587(At(_0x637317,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x50e587(At(_0x637317,'ELEMENT_TODO_LIST'));}switch(_0x1f0986['newValue']){case'bulleted':return _0x450729(At(_0x637317,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x450729(At(_0x637317,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x450729(At(_0x637317,'ELEMENT_TODO_LIST'));}}),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0x7546fa=>{const {data:_0x306530}=_0x7546fa;if(_0x306530&&'listIndent'==_0x306530['key'])return null==_0x306530['newValue']||null==_0x306530['oldValue']&&0x0==_0x306530['newValue']?_0x4e50c4:void 0x0;}),_0x359cff['descriptionFactory']['registerDescriptionCallback'](_0xd6064=>{if('attribute'!=_0xd6064['type'])return;const {data:_0x2622a3}=_0xd6064;if(!_0x2622a3||'listItemId'!=_0x2622a3['key'])return;const _0x39806e=Ht(_0xd6064);return'newValue'==_0x39806e?{'type':'format','content':At(_0x637317,'*Merge:*\x20list\x20item')}:'oldValue'==_0x39806e?{'type':'format','content':At(_0x637317,'*Split:*\x20list\x20item')}:_0x4e50c4;}),_0x44579f['model']['document']['registerPostFixer'](_0x3e2386=>this['listItemIdFixer'](_0x3e2386)),_0x44579f['model']['document']['registerPostFixer'](_0x510e49=>this['noTrackChangesFixer'](_0x510e49)),_0x44579f['model']['document']['on']('change:data',(_0x1c30e1,_0xb75ba6)=>{if(_0xb75ba6['isUndo']||!_0xb75ba6['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x76a986){if(_0x76a986['batch']['isUndo']||!_0x76a986['batch']['isLocal'])return!0x1;let _0x2d8f72=!0x1;const _0xfdd84b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x326977=>_0x326977['data']&&'listItemId'==_0x326977['data']['key'])['filter'](_0x12b591=>_0x12b591['data']['newValue']&&_0x12b591['data']['oldValue']);for(const _0x3ea7fe of _0xfdd84b)Ht(_0x3ea7fe)||(_0x76a986['removeMarker'](_0x3ea7fe['getFirstMarker']()),_0x2d8f72=!0x0);return _0x2d8f72;}['noTrackChangesFixer'](_0x5ba831){if(_0x5ba831['batch']['isUndo']||!_0x5ba831['batch']['isLocal'])return!0x1;const _0xa73983=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xa73983['trackChangesCommand']['value'])return!0x1;let _0x4683e9=!0x1;const _0x1e3f39=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x31ec24=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x38da68=>'attribute'==_0x38da68['type'])['filter'](_0x371cd5=>_0x1e3f39['includes'](_0x371cd5['attributeKey']));if(0x0==_0x31ec24['length'])return _0x4683e9;for(const _0x25c72d of _0x31ec24){const _0x2288a0=_0xa73983['_findSuggestions'](_0x25c72d['range'],'attribute')['filter'](_0x39a7d9=>!_0x39a7d9['meta']['isNextTo'])['map'](_0x4f3d53=>_0x4f3d53['suggestion'])['filter'](_0xfb6aa3=>{const _0x495327=_0xa73983['_getAttributeKey'](_0xfb6aa3);return _0x1e3f39['includes'](_0x495327);});if(_0x2288a0['length']){for(const _0x18f33a of _0x2288a0)_0x5ba831['removeMarker'](_0x18f33a['getFirstMarker']());_0x4683e9=!0x0;}}return _0x4683e9;}['assureChains'](){const _0x34f929=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24b31d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5a32cb;const _0x159b5b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x501bd7=>{if(_0x501bd7['data']['oldRange']||!_0x501bd7['data']['newRange'])return null;if(!_0x501bd7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x45059d}=_0x269eaf(_0x501bd7['name']);if(!_0x34f929['hasSuggestion'](_0x45059d))return null;const _0x4d7833=_0x34f929['getSuggestion'](_0x45059d);return _0x24b31d['includes'](_0x4d7833['data']['key']);})['map'](_0xa970d3=>{const {id:_0x589560}=_0x269eaf(_0xa970d3['name']),_0x1e31a0=_0x34f929['getSuggestion'](_0x589560);return _0x5a32cb=_0x1e31a0['attributes']['groupId'],_0x1e31a0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x159b5b['size'])return;const _0x3d112c=_0x34f929['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd22dc9=>'attribute'==_0xd22dc9['type']&&_0xd22dc9['data']&&_0x24b31d['includes'](_0xd22dc9['data']['key'])&&_0xd22dc9['attributes']['groupId']!=_0x5a32cb)['map'](_0x5f0585=>({'listItem':_0x5f0585['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5f0585['attributes']['groupId']})),_0xeb0ef9=new Set();for(const {groupId:_0x5c50d5,listItem:_0x392c9c}of _0x3d112c)_0x159b5b['has'](_0x392c9c)&&_0xeb0ef9['add'](_0x5c50d5);for(const _0x1f669b of _0x34f929['getSuggestions']())_0xeb0ef9['has'](_0x1f669b['attributes']['groupId'])&&_0x1f669b['setAttribute']('groupId',_0x5a32cb);}['_supportLegacySuggestions'](){const _0xcc6e0f=this['editor'],_0x54b3e8=_0xcc6e0f['locale'],_0x56cf7e=_0xcc6e0f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x56cf7e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1827ae,_0xdf1a4a){const _0x5229ac=[];for(let _0x96a802 of _0x1827ae)_0x96a802['start']['nodeAfter']===_0x96a802['end']['parent']&&(_0x96a802=_0xcc6e0f['model']['createRange'](_0xcc6e0f['model']['createPositionAt'](_0x96a802['start']['nodeAfter'],0x0))),_0x5229ac['push'](_0x96a802);_0xcc6e0f['model']['change'](_0x5bab0c=>{const _0x54fb22=_0xcc6e0f['model']['document']['selection'],_0x2ae3c1=Array['from'](_0x54fb22['getRanges']())['map'](_0x9f7a5d=>_0x82a6d2['fromRange'](_0x9f7a5d));_0x5bab0c['setSelection'](_0x5229ac),_0xcc6e0f['commands']['get'](_0xdf1a4a['commandName'])['refresh'](),_0xdf1a4a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcc6e0f['execute'](_0xdf1a4a['commandName'],..._0xdf1a4a['commandParams']),_0x5bab0c['setSelection'](_0x2ae3c1);for(const _0x4786b9 of _0x2ae3c1)_0x4786b9['detach']();});}),_0x56cf7e['descriptionFactory']['registerElementLabel'](function(_0x28f766){const _0x135a0c=!_0xcc6e0f['model']['schema']['isObject'](_0x28f766),_0x23538c=_0x28f766['previousSibling'],_0x5a97f9=_0x28f766['nextSibling'],_0x159ff2=_0x28f766['getAttribute']('listItemId'),_0x1dee1b=!_0x23538c||_0x23538c['getAttribute']('listItemId')!==_0x159ff2,_0x219891=!_0x5a97f9||_0x5a97f9['getAttribute']('listItemId')!==_0x159ff2;return _0x135a0c&&Boolean(_0x159ff2)&&_0x1dee1b&&_0x219891;},_0x1ae443=>At(_0x54b3e8,'ELEMENT_LIST_ITEM',_0x1ae443));}['_registerLegacyDescription'](){const _0x414ed9=this['editor'],_0x39f1f9=_0x414ed9['locale'];function _0x53a764(_0x47ba77){const _0x19f4c0=_0x414ed9['commands']['get']('bulletedList')['value'],_0x2f2663=_0x414ed9['commands']['get']('numberedList')['value'];return'numberedList'===_0x47ba77?_0x19f4c0:_0x2f2663;}_0x414ed9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e2996){if('formatBlock'!=_0x4e2996['type'])return;const {data:_0x2063ad}=_0x4e2996;if(!_0x2063ad)return;let _0x4efde7,_0x3068b0,_0x13e9a2,_0x20aae8;switch(_0x2063ad['commandName']){case'bulletedList':_0x13e9a2=_0x2063ad['commandParams'][0x0]['forceValue'],_0x20aae8=_0x53a764(_0x2063ad['commandName']),_0x4efde7=_0x13e9a2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20aae8&&_0x414ed9['config']['get']('list.multiBlock')||(_0x4efde7='*Change\x20to:*\x20%0'),_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x13e9a2=_0x2063ad['commandParams'][0x0]['forceValue'],_0x20aae8=_0x53a764(_0x2063ad['commandName']),_0x4efde7=_0x13e9a2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x20aae8&&_0x414ed9['config']['get']('list.multiBlock')||(_0x4efde7='*Change\x20to:*\x20%0'),_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4efde7='*Indent:*\x20%0',_0x3068b0={'type':'format','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4efde7=function(_0x3aaf1b){const _0x2b7161=_0x3aaf1b['getFirstRange']();let _0x1cbe48=_0x2b7161['start']['nodeAfter'];for(;_0x1cbe48&&_0x2b7161['containsItem'](_0x1cbe48);){if(_0x1cbe48['getAttribute']('listIndent')>0x0)return!0x1;_0x1cbe48=_0x1cbe48['nextSibling'];}return!0x0;}(_0x4e2996)?At(_0x39f1f9,'*Format:*\x20remove\x20from\x20%0',At(_0x39f1f9,function(_0x541176){return'ELEMENT_'+_0x541176['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e2996))):At(_0x39f1f9,'*Outdent:*\x20%0',At(_0x39f1f9,'ELEMENT_LIST_ITEM')),_0x3068b0={'type':'format','content':_0x4efde7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2063ad['multipleBlocks']&&(_0x4efde7='*Merge:*\x20%0',_0x3068b0={'type':'deletion','content':At(_0x39f1f9,_0x4efde7,At(_0x39f1f9,'ELEMENT_LIST_ITEM'))});}return _0x3068b0;});}}function Ht(_0x5cd679){let _0x5ba077=_0x5cd679['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5ba077;){const _0x726da0=_0x5ba077['getAttribute']('listItemId');if(!_0x726da0)return!0x1;if(_0x726da0==_0x5cd679['data']['newValue'])return'newValue';if(_0x726da0==_0x5cd679['data']['oldValue'])return'oldValue';_0x5ba077=_0x5ba077['previousSibling'];}return!0x1;}class $t extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3db72b=this['editor']['config']['get']('list.properties'),_0x26d78d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3db72b['styles']&&_0x26d78d['enableDefaultAttributesIntegration']('listStyle'),_0x3db72b['reversed']&&_0x26d78d['enableDefaultAttributesIntegration']('listReversed'),_0x3db72b['startIndex']&&_0x26d78d['enableDefaultAttributesIntegration']('listStart');const _0xe510c6={'type':'format','content':''};_0x26d78d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1fc7ce=this['editor']['locale'];_0x26d78d['descriptionFactory']['registerAttributeLabel']('listReversed',At(_0x1fc7ce,'FORMAT_LIST_REVERSED')),_0x26d78d['descriptionFactory']['registerDescriptionCallback'](_0x39d3f8=>{const {data:_0x250757}=_0x39d3f8;if(_0x250757&&'listReversed'==_0x250757['key'])return null==_0x250757['newValue']||0x0==_0x250757['newValue']&&null==_0x250757['oldValue']?_0xe510c6:void 0x0;}),_0x26d78d['descriptionFactory']['registerAttributeLabel']('listStart',At(_0x1fc7ce,'FORMAT_LIST_START')),_0x26d78d['descriptionFactory']['registerDescriptionCallback'](_0x543c75=>{const {data:_0x5cb618}=_0x543c75;if(_0x5cb618&&'listStart'==_0x5cb618['key'])return null==_0x5cb618['newValue']||0x1==_0x5cb618['newValue']&&null==_0x5cb618['oldValue']?_0xe510c6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x51d6a0=>{if(_0x51d6a0['batch']['isUndo'])return!0x1;let _0x5b8337=!0x1;const _0x2a0f28=_0x26d78d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ed7ad=>{const _0x421d25=_0x26d78d['_getAttributeKey'](_0x5ed7ad);return'listStart'==_0x421d25||'listReversed'==_0x421d25;});for(const _0x4fd02a of _0x2a0f28){const _0x541c90=_0x4fd02a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x541c90||'customNumbered'==_0x541c90)continue;_0x26d78d['_findSuggestions'](_0x4fd02a['getFirstRange'](),'attribute')['find'](_0x549cfc=>'listType'==_0x26d78d['_getAttributeKey'](_0x549cfc['suggestion']))||(_0x51d6a0['removeMarker'](_0x4fd02a['getFirstMarker']()),_0x5b8337=!0x0);}return _0x5b8337;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1a3a60){const _0x3e6d6f=this['editor']['locale'],{data:_0x549958}=_0x1a3a60,_0x39f6cd={'type':'format','content':''};if(!_0x549958||'listStyle'!=_0x549958['key'])return;if(!_0x549958['oldValue'])return'default'==_0x549958['newValue']?_0x39f6cd:{'type':'format','content':''+At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['newValue'])))};if(!_0x549958['newValue']){if('default'==_0x549958['oldValue'])return _0x39f6cd;let _0x27a9b3=_0x1a3a60['head'];for(;_0x27a9b3;){if(_0x27a9b3['data']&&'listType'==_0x27a9b3['data']['key']&&_0x27a9b3['data']['newValue'])return _0x39f6cd;_0x27a9b3=_0x27a9b3['next'];}return{'type':'format','content':''+At(_0x3e6d6f,'*Remove\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['oldValue'])))};}if('default'!=_0x549958['newValue'])return{'type':'format','content':''+At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,this['_getTranslationKeyForListStyle'](_0x549958['newValue'])))};let _0x195948=_0x1a3a60['head'];for(;_0x195948;){if(_0x195948['data']&&'listType'==_0x195948['data']['key']&&_0x195948['data']['newValue']&&_0x195948['data']['oldValue'])return _0x39f6cd;_0x195948=_0x195948['next'];}return{'type':'format','content':At(_0x3e6d6f,'*Set\x20format:*\x20%0',At(_0x3e6d6f,'ELEMENT_'+_0x1a3a60['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x23b278=this['editor'],_0x2b7e24=_0x23b278['locale'];_0x23b278['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x315c1d=>{if('formatBlock'!=_0x315c1d['type'])return;const {data:_0x3f72f5}=_0x315c1d;if(!_0x3f72f5)return;let _0x212010,_0x3acc25;switch(_0x3f72f5['commandName']){case'listStyle':_0x212010='*Change\x20to:*\x20%0',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010,At(_0x2b7e24,this['_getTranslationKeyForListStyle'](_0x3f72f5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x212010=_0x3f72f5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010)};break;case'listStart':_0x212010='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3acc25={'type':'format','content':At(_0x2b7e24,_0x212010,_0x3f72f5['commandParams'][0x0]['startIndex'])};}return _0x3acc25;});}['_getTranslationKeyForListStyle'](_0x5c47a8){return'ELEMENT_'+function(_0x1ca6ac){if(Wt['includes'](_0x1ca6ac))return'bulleted';if(Vt['includes'](_0x1ca6ac))return'numbered';return null;}(_0x5c47a8)['toUpperCase']()+'_LIST_'+_0x5c47a8['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 _0x957e03{['afterInit'](){const _0x3f77b8=this['editor'];_0x3f77b8['commands']['get']('emoji')&&_0x3f77b8['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class zt extends _0x957e03{static get['requires'](){return[lt];}['init'](){const _0x5d1194=this['editor'],_0x51bf6e=_0x5d1194['plugins']['get']('TrackChangesEditing'),_0x5eb6d6=_0x5d1194['commands']['get']('enter');_0x51bf6e['enableCommand']('enter',()=>{_0x5d1194['model']['change'](_0x4751ec=>{const _0x2597fe=_0x5d1194['model']['document']['selection'],_0x537bf0=_0x2597fe['getFirstPosition'](),_0x3b8170=_0x82a6d2['fromRange'](_0x2597fe['getFirstRange']());if(_0x5eb6d6['enterBlock'](_0x4751ec)){const _0x4effa5=_0x5d1194['model']['createPositionAt'](_0x537bf0['parent']['nextSibling'],0x0),_0x26cf3a=_0x4751ec['createRange'](_0x537bf0,_0x4effa5);_0x51bf6e['markInsertion'](_0x26cf3a);}else _0x4751ec['setSelection'](_0x4751ec['createRange'](_0x3b8170['end']));_0x3b8170['detach'](),_0x5eb6d6['fire']('afterExecute',{'writer':_0x4751ec});});});}}class Kt extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4f4e44=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f4e44['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4f4e44['enableCommand']('findNext'),_0x4f4e44['enableCommand']('findPrevious'),_0x4f4e44['enableCommand']('replace'),_0x4f4e44['enableCommand']('replaceAll');}['handleFindCommand'](_0x30ed18,_0x23073b,_0x3db952={}){const _0x2e2898=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x30ed18(_0x14e24c=>{let _0x3e2f79=('string'==typeof _0x23073b?_0x2e2898['findByTextCallback'](_0x23073b,_0x3db952):_0x23073b)(_0x14e24c);Array['isArray'](_0x3e2f79)&&(_0x3e2f79={'results':_0x3e2f79,'searchText':'string'==typeof _0x23073b?_0x23073b:''});const _0x47defa=_0x3e2f79['results']['filter'](_0x3cd23c=>!0x1===this['_isInDeletionRange'](_0x3cd23c,_0x14e24c['item']));return{..._0x3e2f79,'results':_0x47defa};},_0x3db952);}['_isInDeletionRange'](_0x2ec8e4,_0x41a284){const _0x420d98=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41a284,_0x2ec8e4['start']),this['editor']['model']['createPositionAt'](_0x41a284,_0x2ec8e4['end']));for(const _0x37afd2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x420d98['getIntersection'](_0x37afd2['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 _0x957e03{['afterInit'](){const _0x4b5734=this['editor']['locale'],_0x1b60b9=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4f6278,commandName:_0x2b3990}of Xt)this['editor']['plugins']['has'](_0x4f6278)&&_0x1b60b9['enableDefaultAttributesIntegration'](_0x2b3990);_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontSize',At(_0x4b5734,'FORMAT_FONT_SIZE')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontFamily',At(_0x4b5734,'FORMAT_FONT_FAMILY')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontColor',At(_0x4b5734,'FORMAT_FONT_COLOR')),_0x1b60b9['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',At(_0x4b5734,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fc2c2=this['editor'],_0x45fefb=_0x1fc2c2['locale'];_0x1fc2c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa242=>{const _0x247901=_0x45fefb['t'];if('formatInline'!=_0x4fa242['type'])return;const {data:_0x397270}=_0x4fa242;if(null!=_0x397270){if('fontSize'==_0x397270['commandName']){const _0x34356a=_0x397270['commandParams'][0x0]['value'];if(_0x34356a){const _0x59f561=_0x247901(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x413d0a=>_0x413d0a['model']==_0x34356a)['title'])['toLowerCase']();return{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20size:*\x20%0',_0x59f561)};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x397270['commandName']){const _0x4d9312=_0x397270['commandParams'][0x0]['value'];return _0x4d9312?{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20family:*\x20%0',_0x4d9312)}:{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20family*')};}if('fontColor'==_0x397270['commandName']){const _0x5bcae6=_0x397270['commandParams'][0x0]['value'];if(_0x5bcae6){const _0xc93d32=_0xc91311(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4c5505=>_0x4c5505['model']==_0x5bcae6);let _0x795d7a=_0x5bcae6,_0x49a7d5='';return _0xc93d32&&(_0x795d7a=_0xc93d32['label'],_0x49a7d5=_0x247901(_0x795d7a)['toLowerCase']()),{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20color:*\x20%0',_0x49a7d5)['trim'](),'color':{'value':_0x5bcae6,'title':_0x49a7d5||_0x795d7a}};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x397270['commandName']){const _0x3d003f=_0x397270['commandParams'][0x0]['value'];if(_0x3d003f){const _0x269b5b=_0xc91311(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4b73cd=>_0x4b73cd['model']==_0x3d003f);let _0x37dfcb=_0x3d003f,_0x5df76d='';return _0x269b5b&&(_0x37dfcb=_0x269b5b['label'],_0x5df76d=_0x247901(_0x37dfcb)['toLowerCase']()),{'type':'format','content':At(_0x45fefb,'*Set\x20font\x20background\x20color:*\x20%0',_0x5df76d)['trim'](),'color':{'value':_0x3d003f,'title':_0x5df76d||_0x37dfcb}};}return{'type':'format','content':At(_0x45fefb,'*Reset\x20font\x20background\x20color*')};}}});}}class qt extends _0x957e03{['afterInit'](){const {plugins:_0x33c4a8}=this['editor'];_0x33c4a8['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x33c4a8['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xa09557,plugins:_0x4a956b,commands:_0x14df98}=this['editor'],_0x9d3053=_0x4a956b['get']('TrackChangesEditing');_0x14df98['get']('footnotesStyle')&&_0x9d3053['enableDefaultAttributesIntegration']('footnotesStyle'),_0x14df98['get']('footnotesStart')&&_0x9d3053['enableDefaultAttributesIntegration']('footnotesStart'),_0x9d3053['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',At(_0xa09557,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x9d3053['descriptionFactory']['registerAttributeLabel']('footnotesListStart',At(_0xa09557,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x51bf2b=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5bb91a,commands:_0x2d6336}=this['editor'];_0x2d6336['get']('insertFootnote')&&_0x51bf2b['enableCommand']('insertFootnote'),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2863fc=>At(_0x5bb91a,'ELEMENT_FOOTNOTE_REF',_0x2863fc)),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x11b4a7=>At(_0x5bb91a,'ELEMENT_FOOTNOTE_DEFINITION',_0x11b4a7)),_0x51bf2b['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5cc3d0=>At(_0x5bb91a,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5cc3d0));}}class Qt extends _0x957e03{['afterInit'](){const _0x29dce8=this['editor'],_0x3c3379=_0x29dce8['plugins']['get']('TrackChangesEditing'),_0x16bb44=_0x29dce8['commands']['get']('copyFormat'),_0xa26613=_0x29dce8['commands']['get']('pasteFormat');_0x16bb44&&_0xa26613&&(_0x3c3379['enableDefaultAttributesIntegration']('pasteFormat'),_0x3c3379['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f6925=this['editor'],_0x59d0d7=_0x2f6925['locale'];_0x2f6925['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x99bc0e=>{if('formatBlock'!=_0x99bc0e['type']&&'formatInline'!=_0x99bc0e['type'])return;const {data:_0x390b11}=_0x99bc0e;if(_0x390b11&&'pasteFormat'===_0x390b11['commandName']){const _0x50f3ae=[],_0x3aea4a=_0x390b11['commandParams'][0x0];for(const [_0x10394b,_0x336eb2]of Object['entries'](_0x3aea4a))_0x50f3ae['push'](Zt(_0x2f6925,_0x10394b,_0x336eb2));return _0x50f3ae['length']?{'type':'format','content':At(_0x59d0d7,'*Set\x20format\x20to:*\x20%0',_0x50f3ae['join'](',\x20'))}:{'type':'format','content':At(_0x59d0d7,'*Remove\x20all\x20formatting*')};}});}}function Zt(_0x2e5d04,_0x4c2b40,_0x315776){const _0x14f968=_0x2e5d04['locale']['t'],_0x1b5af1=_0x4c2b40['split'](/(?=[A-Z])/)['join']('\x20'),_0x1942cb=_0x14f968(_0x1b5af1['charAt'](0x0)['toUpperCase']()+_0x1b5af1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x315776)return _0x1942cb;if('fontColor'===_0x4c2b40||'fontBackgroundColor'===_0x4c2b40){const _0x1f5add=_0xc91311(_0x2e5d04['config']['get']('fontColor.colors'))['find'](_0x55947f=>_0x55947f['model']==_0x315776);return _0x1942cb+'\x20('+(_0x1f5add?_0x14f968(_0x1f5add['label'])['toLowerCase']():_0x315776)+')';}if('fontSize'===_0x4c2b40&&isNaN(parseFloat(_0x315776))){const _0x552b75=_0x2e5d04['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2e5d04['config']['get']('fontSize.options'))['find'](_0x5eaaa2=>_0x5eaaa2['model']==_0x315776);return _0x1942cb+'\x20('+(_0x552b75?_0x14f968(_0x552b75['title'])['toLowerCase']():_0x315776)+')';}return _0x1942cb+'\x20('+_0x315776+')';}class Jt extends _0x957e03{['_headingOptions'];['afterInit'](){const _0x8e3dc=this['editor'];if(!_0x8e3dc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x8e3dc['config']['get']('heading.options');const _0x5d526c=_0x8e3dc['locale'],_0xb33e59=_0x8e3dc['plugins']['get']('TrackChangesEditing');_0xb33e59['enableDefaultAttributesIntegration']('heading');for(const _0x550315 of this['_headingOptions'])'paragraph'!=_0x550315['model']&&_0xb33e59['descriptionFactory']['registerElementLabel'](_0x550315['model'],_0x5565fe=>{const _0x13b621=this['_getHeadingLevel'](_0x550315['model']);return null!==_0x13b621?_0x19e783(_0x5565fe,_0x13b621):_0x5a668a(_0x5565fe,_0x550315['title']);});function _0x19e783(_0x21d88d,_0x238b7a){return At(_0x5d526c,'ELEMENT_HEADING',[_0x21d88d,_0x238b7a]);}function _0x5a668a(_0x48fc79,_0x491ee0){return At(_0x5d526c,'ELEMENT_HEADING_CUSTOM',[_0x48fc79,_0x491ee0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190909=this['editor'],_0x683fbd=_0x190909['locale'];function _0x14caef(_0x4cd77e,_0x1a29b6){return At(_0x683fbd,'ELEMENT_HEADING_CUSTOM',[_0x4cd77e,_0x1a29b6]);}_0x190909['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fadf6=>{if('formatBlock'!=_0x3fadf6['type'])return;const {data:_0x3adb72}=_0x3fadf6;if(_0x3adb72&&'heading'==_0x3adb72['commandName']){const _0x3826f5=_0x3adb72['commandParams'][0x0]['value'],_0x35a033=this['_getHeadingLevel'](_0x3826f5);if(null!==_0x35a033)return{'type':'format','content':At(_0x683fbd,'*Change\x20to:*\x20%0',(_0x15e3f6=0x1,_0xd9bf3b=_0x35a033,At(_0x683fbd,'ELEMENT_HEADING',[_0x15e3f6,_0xd9bf3b])))};const _0x699df2=this['_headingOptions']['find'](_0x2710bb=>_0x2710bb['model']===_0x3826f5)['title'];return{'type':'format','content':At(_0x683fbd,'*Change\x20to:*\x20%0',_0x14caef(0x1,_0x699df2))};}var _0x15e3f6,_0xd9bf3b;});}['_getHeadingLevel'](_0x227e3e){const _0x49c1a0=_0x227e3e['match'](/^heading(\d+)/);if(_0x49c1a0)return _0x49c1a0[0x1];const _0x4e4ed8=this['_headingOptions']?.['find'](_0x40d4fb=>_0x40d4fb['model']==_0x227e3e);if(_0x4e4ed8&&_0x4e4ed8['view']){const _0x588df6=_0x4e4ed8['view'],_0x3649b6=(_0x588df6['name']??_0x588df6)['match'](/^h(\d+)/);if(_0x3649b6)return _0x3649b6[0x1];}return null;}}class te extends _0x957e03{['afterInit'](){const _0x6f766a=this['editor'];if(!_0x6f766a['plugins']['has']('HighlightEditing'))return;const _0xfb5148=_0x6f766a['plugins']['get']('TrackChangesEditing'),_0x280d0a=_0x6f766a['locale'];_0xfb5148['enableDefaultAttributesIntegration']('highlight'),_0xfb5148['descriptionFactory']['registerAttributeLabel']('highlight',At(_0x280d0a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3b24=this['editor'],_0x55d953=_0x5f3b24['locale'];_0x5f3b24['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25ff5c=>{if('formatInline'!=_0x25ff5c['type'])return;const {data:_0x40a777}=_0x25ff5c;if(_0x40a777&&'highlight'==_0x40a777['commandName']){const _0x38c2b8=_0x55d953['t'],_0x2f172b=_0x40a777['commandParams'][0x0]['value'];if(_0x2f172b){const _0x3053da=_0x5f3b24['config']['get']('highlight.options')['find'](_0x2e3eee=>_0x2e3eee['model']==_0x2f172b),_0x586ead=_0x38c2b8(_0x3053da['title'])['toLowerCase']();return{'type':'format','content':At(_0x55d953,'*Set\x20highlight:*\x20%0',_0x586ead),'color':{'value':_0x3053da['color'],'title':_0x3053da['title']}};}return{'type':'format','content':At(_0x55d953,'*Remove\x20highlight*',At(_0x55d953,'FORMAT_HIGHLIGHT'))};}});}}class ee extends _0x957e03{['afterInit'](){const _0x3ad504=this['editor'];if(!_0x3ad504['plugins']['has']('HorizontalLineEditing'))return;_0x3ad504['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x38066a=_0x3ad504['plugins']['get']('TrackChangesEditing'),_0x3a6831=_0x3ad504['locale'];_0x38066a['descriptionFactory']['registerElementLabel']('horizontalLine',_0xaa9d2c=>At(_0x3a6831,'ELEMENT_HORIZONTAL_LINE',_0xaa9d2c));}}class ne extends _0x957e03{['afterInit'](){const _0x145f5e=this['editor'];if(!_0x145f5e['plugins']['has']('HtmlEmbed'))return;const _0xb5db64=_0x145f5e['plugins']['get']('TrackChangesEditing'),_0x3e7de0=_0x145f5e['locale'];_0xb5db64['descriptionFactory']['registerElementLabel']('rawHtml',_0x26e0f8=>At(_0x3e7de0,'ELEMENT_HTML_EMBED',_0x26e0f8)),_0xb5db64['enableDefaultAttributesIntegration']('htmlEmbed'),_0xb5db64['descriptionFactory']['registerDescriptionCallback'](_0x465451=>{if('attribute'!=_0x465451['type'])return;const {data:_0x337d86}=_0x465451;if(_0x337d86&&'value'==_0x337d86['key']&&_0x465451['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x18cb6a=At(_0x3e7de0,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3e7de0,'*Change\x20%0\x20content*',_0x18cb6a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e3da9=this['editor'],_0x3bc92f=_0x3e3da9['locale'];_0x3e3da9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12d293=>{if('formatBlock'!=_0x12d293['type'])return;const {data:_0xaf1ae1}=_0x12d293;if(_0xaf1ae1&&'htmlEmbed'==_0xaf1ae1['commandName']){const _0x49a919=At(_0x3bc92f,'ELEMENT_HTML_EMBED');return{'type':'format','content':At(_0x3bc92f,'*Change\x20%0\x20content*',_0x49a919)};}});}}class ie extends _0x957e03{['afterInit'](){const _0x259827=this['editor'];if(!_0x259827['plugins']['has']('ImageEditing'))return;const _0x16a778=_0x259827['plugins']['get']('TrackChangesEditing'),_0x52fa2e=_0x259827['plugins']['get']('ImageUtils'),_0x184e6e=_0x259827['locale'];_0x16a778['enableCommand']('insertImage'),_0x16a778['descriptionFactory']['registerElementLabel']('imageBlock',_0x35cedf=>At(_0x184e6e,'ELEMENT_IMAGE',_0x35cedf)),_0x16a778['descriptionFactory']['registerElementLabel']('imageInline',_0x11ae15=>At(_0x184e6e,'ELEMENT_INLINE_IMAGE',_0x11ae15)),_0x16a778['descriptionFactory']['registerElementLabel']('caption',()=>At(_0x184e6e,'ELEMENT_CAPTION')),_0x259827['plugins']['has']('ImageUploadEditing')&&_0x16a778['enableCommand']('uploadImage'),_0x259827['plugins']['has']('ImageBlockEditing')&&_0x259827['plugins']['has']('ImageInlineEditing')&&(_0x16a778['enableCommand']('imageTypeInline',(_0x7d9ce1,_0x4732ea)=>{const _0x2c88aa=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']);_0x259827['model']['change'](()=>{_0x16a778['markBlockFormat'](_0x2c88aa,{'commandName':'imageTypeInline','commandParams':[_0x4732ea]},[],'convertBlockImageToInline');});}),_0x16a778['enableCommand']('imageTypeBlock',(_0x1bd145,_0x2d9159)=>{_0x259827['model']['change'](_0x8734b=>{let _0x4281d7=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x2714bf=_0x8734b['createRangeOn'](_0x4281d7);const _0x4792d4=tt['fromPosition'](_0x2714bf['start'],'toPrevious'),_0xfffebf=tt['fromPosition'](_0x2714bf['end'],'toNext');_0x16a778['forceDefaultExecution'](()=>_0x1bd145(_0x2d9159)),_0x4281d7=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x2714bf=_0x8734b['createRangeOn'](_0x4281d7);const _0x3f321c=_0x8734b['createRange'](_0x4792d4,_0xfffebf);_0x4792d4['detach'](),_0xfffebf['detach'](),_0x16a778['markBlockFormat'](_0x4281d7,{'commandName':'imageTypeInline','commandParams':[_0x2d9159]},[],'convertInlineImageToBlock'),_0x3f321c['start']['isBefore'](_0x2714bf['start'])&&_0x16a778['markInsertion'](_0x8734b['createRange'](_0x3f321c['start'],_0x2714bf['start']),'convertInlineImageToBlock'),_0x2714bf['end']['isBefore'](_0x3f321c['end'])&&_0x16a778['markInsertion'](_0x8734b['createRange'](_0x2714bf['end'],_0x3f321c['end']),'convertInlineImageToBlock');});}),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x16a778['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58aa35])=>{const _0x4c21d5=_0x16a778['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3407d3=_0x58aa35['start'],_0x33f29f=_0x58aa35['end'];const _0x2850b0=_0x259827['model']['schema']['getNearestSelectionRange'](_0x3407d3,'backward'),_0x8a6765=_0x259827['model']['schema']['getNearestSelectionRange'](_0x33f29f,'forward');_0x2850b0['isCollapsed']&&(_0x3407d3=_0x2850b0['start']),_0x8a6765['isCollapsed']&&(_0x33f29f=_0x8a6765['end']),_0x4c21d5([_0x259827['model']['createRange'](_0x3407d3,_0x33f29f)]);}),_0x16a778['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3d01e1),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3d01e1)),_0x259827['plugins']['has']('ImageCaptionEditing')&&(_0x16a778['enableCommand']('toggleImageCaption',(_0x5e8df6,_0x53b864)=>{const _0x39db5b=_0x259827['plugins']['get']('ImageCaptionUtils');let _0x29bee0=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x5cd874=_0x39db5b['getCaptionFromImageModelElement'](_0x29bee0);_0x259827['model']['change'](()=>{if(_0x5cd874)return void _0x16a778['markDeletion'](_0x259827['model']['createRangeOn'](_0x5cd874));const _0x122501=_0x52fa2e['isBlockImage'](_0x29bee0);_0x5e8df6(_0x53b864),_0x29bee0=_0x52fa2e['getClosestSelectedImageElement'](_0x259827['model']['document']['selection']),_0x5cd874=_0x39db5b['getCaptionFromImageModelElement'](_0x29bee0),_0x16a778['markInsertion'](_0x259827['model']['createRangeOn'](_0x5cd874),_0x122501?null:'imageCaption');});}),_0x16a778['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3d01e1));const _0x4fb1ce=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d7f33(_0x17ca72,_0x6aa9df){const _0x376084=_0x4fb1ce['findIndex'](({type:_0x43b422,subType:_0xc4aa0})=>_0x17ca72['type']==_0x43b422&&_0x17ca72['subType']==_0xc4aa0),_0x323e36=_0x4fb1ce['findIndex'](({type:_0x4213ac,subType:_0x33cf7c})=>_0x6aa9df['type']==_0x4213ac&&_0x6aa9df['subType']==_0x33cf7c);if(_0x376084<0x0||_0x323e36<0x0)return!0x1;const _0x4fb82d=_0x17ca72['getFirstRange'](),_0x31e7f1=_0x6aa9df['getFirstRange']();if((0x0==_0x376084||0x1==_0x376084)&&0x2==_0x323e36&&_0x4fb82d['isIntersecting'](_0x31e7f1))return!0x0;if(0x2==_0x376084&&0x3==_0x323e36){const _0x2943b8=_0x16a778['_findSuggestions'](_0x4fb82d,'insertion')['filter'](({suggestion:_0x2a7b01,meta:_0xcc2ac})=>_0xcc2ac['isOwn']&&'convertInlineImageToBlock'==_0x2a7b01['subType']);if(_0x2943b8['length']>0x1&&_0x31e7f1['end']['isEqual'](_0x4fb82d['start']))return!0x0;if(0x1==_0x2943b8['length']&&(_0x4fb82d['start']['isEqual'](_0x31e7f1['end'])||_0x4fb82d['end']['isEqual'](_0x31e7f1['start'])))return!0x0;}if(0x3==_0x376084&&0x3==_0x323e36&&_0x4fb82d['start']['isBefore'](_0x31e7f1['start'])){const _0x23f108=_0x4fb82d['end']['nodeAfter'],_0x258c0b=_0x31e7f1['start']['nodeBefore'];return _0x52fa2e['isBlockImage'](_0x23f108)&&_0x23f108===_0x258c0b;}return!0x1;}function _0x3d01e1(_0x459905,_0x20e302){return _0x1d7f33(_0x459905,_0x20e302)?[_0x459905,_0x20e302]:_0x1d7f33(_0x20e302,_0x459905)?[_0x20e302,_0x459905]:null;}_0x259827['plugins']['has']('ImageResize')&&(_0x16a778['enableDefaultAttributesIntegration']('resizeImage'),_0x16a778['descriptionFactory']['registerAttributeLabel']('resizedWidth',At(_0x184e6e,'FORMAT_IMAGE_SIZE'))),_0x259827['plugins']['has']('ImageTextAlternativeEditing')&&_0x16a778['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x259827['plugins']['has']('PictureEditing')&&_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x4b0119=>{if('attribute'!=_0x4b0119['type'])return;const {data:_0x47cb11}=_0x4b0119;return _0x47cb11&&'sources'==_0x47cb11['key']?{'type':'format','content':''}:void 0x0;}),_0x259827['plugins']['has']('ImageSizeAttributes')&&_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x20014f=>{if('attribute'!=_0x20014f['type'])return;const {data:_0x43a453}=_0x20014f;return!_0x43a453||'width'!=_0x43a453['key']&&'height'!=_0x43a453['key']?void 0x0:{'type':'format','content':''};}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0xa8169e=>{if(!!_0x4fb1ce['find'](({type:_0x1eff2e,subType:_0x2f68f3})=>_0xa8169e['type']==_0x1eff2e&&_0xa8169e['subType']==_0x2f68f3))return _0xa8169e['previous']?{}:void 0x0;}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0xe69fd2=>{if('insertion'==_0xe69fd2['type']||'deletion'==_0xe69fd2['type']){const _0x526d0a=_0xe69fd2['getContainedElement']();if(_0x526d0a&&_0x526d0a['is']('element','caption'))return{'type':'insertion'==_0xe69fd2['type']?'addObject':'removeObject','element':_0x526d0a,'quantity':0x1};}}),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x406ea7=>'formatBlock'==_0x406ea7['type']&&'convertInlineImageToBlock'==_0x406ea7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x406ea7['type']&&'convertBlockImageToInline'==_0x406ea7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x16a778['descriptionFactory']['registerDescriptionCallback'](_0x2c324a=>{if('attribute'!=_0x2c324a['type'])return;const {data:_0x3beda6}=_0x2c324a;if(!_0x3beda6||'alt'!=_0x3beda6['key'])return;const _0x1ae0e3=_0x3beda6['newValue'];return _0x1ae0e3?{'type':'format','content':At(_0x184e6e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1ae0e3+'\x22')}:{'type':'format','content':At(_0x184e6e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x517519=this['editor'],_0x503c46=_0x517519['locale'];_0x517519['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23a444=>{if('formatBlock'!=_0x23a444['type']&&'formatInline'!=_0x23a444['type'])return;const {data:_0x4619ba}=_0x23a444;if(_0x4619ba){if('imageTextAlternative'==_0x4619ba['commandName']){const _0x1f1107=_0x4619ba['commandParams'][0x0]['newValue'];return _0x1f1107?{'type':'format','content':At(_0x503c46,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1f1107+'\x22')}:{'type':'format','content':At(_0x503c46,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4619ba['commandName']){const _0x5a8896=_0x4619ba['commandParams'][0x0]['width'];return _0x5a8896?{'type':'format','content':At(_0x503c46,'*Set\x20image\x20width:*\x20%0',_0x5a8896)}:{'type':'format','content':At(_0x503c46,'*Reset\x20image\x20width*')};}}});}}class se extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x560b76=this['editor']['locale'],_0x236244=this['editor']['plugins']['get']('TrackChangesEditing');_0x236244['enableDefaultAttributesIntegration']('replaceImageSource'),_0x236244['descriptionFactory']['registerDescriptionCallback'](_0x56221d=>{if('attribute'!=_0x56221d['type'])return;const {data:_0x959038}=_0x56221d;return _0x959038&&'src'==_0x959038['key']?_0x959038['newValue']&&_0x959038['oldValue']?{'type':'format','content':At(_0x560b76,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x331d10=this['editor']['plugins']['get']('TrackChangesEditing');_0x331d10['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x331d10['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x331d10['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x331d10['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f3be9=this['editor'],_0x9acb38=_0x5f3be9['locale'];_0x5f3be9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ef576=>{if('formatBlock'!=_0x3ef576['type']&&'formatInline'!=_0x3ef576['type'])return;const {data:_0xb97d9c}=_0x3ef576;if(!_0xb97d9c||'replaceImageSource'!=_0xb97d9c['commandName'])return;return{'type':'format','content':At(_0x9acb38,'*Format:*\x20replace\x20image\x20URL')};});}}class re extends _0x957e03{['afterInit'](){const _0x342553=this['editor'];if(!_0x342553['plugins']['has']('ImageStyleEditing'))return;const _0x5f1820=_0x342553['plugins']['get']('TrackChangesEditing'),_0x45cdc0=_0x342553['plugins']['get']('ImageUtils'),_0x501d80={};_0x5f1820['enableCommand']('imageStyle',(_0x1b4f76,_0x461d90)=>{const _0x24db2c=_0x342553['plugins']['get']('Users')['me'],_0x26d191=_0x342553['commands']['get']('imageStyle');let _0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),_0x7b567=_0x342553['model']['createRangeOn'](_0x52de3b),_0x5cb23f=_0x26d191['value'];if(_0x5cb23f==_0x461d90['value'])return;const _0x395f9c={'commandName':'imageStyle','commandParams':[_0x461d90],'formatGroupId':_0x10b1ba()};_0x342553['model']['change'](()=>{if(_0x5f1820['getSuggestions']()['filter'](_0x3ec772=>_0x3ec772['isInContent']&&_0x24db2c==_0x3ec772['author']&&('formatBlock'==_0x3ec772['type']||'formatInline'==_0x3ec772['type'])&&('imageStylePreApply'==_0x3ec772['subType']||'imageStylePostApply'==_0x3ec772['subType'])&&_0x3ec772['getFirstRange']()['isEqual'](_0x7b567))['forEach'](_0x3a91fc=>_0x5f1820['discardSuggestion'](_0x3a91fc['head'])),_0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),_0x7b567=_0x342553['model']['createRangeOn'](_0x52de3b),_0x26d191['refresh'](),_0x342553['commands']['get']('imageTypeInline')['refresh'](),_0x342553['commands']['get']('imageTypeBlock')['refresh'](),_0x5cb23f=_0x26d191['value'],_0x5cb23f!=_0x461d90['value'])return _0x45cdc0['isInlineImage'](_0x52de3b)&&_0x26d191['shouldConvertImageType'](_0x461d90['value'],_0x52de3b)?(_0x1b4f76({..._0x461d90,'setImageSizes':!0x1}),_0x52de3b=_0x45cdc0['getClosestSelectedImageElement'](_0x342553['model']['document']['selection']),void _0x5f1820['markBlockFormat'](_0x52de3b,{..._0x395f9c,'commandReversedParams':[{'value':_0x5cb23f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45cdc0['isBlockImage'](_0x52de3b)?_0x5f1820['markBlockFormat'](_0x52de3b,_0x395f9c,[],'imageStylePostApply'):_0x5f1820['markInlineFormat'](_0x7b567,_0x395f9c,'imageStylePostApply'));});});for(const _0x4783d8 of _0x342553['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x501d80[_0x4783d8['name']]=_0x4783d8['title']['toLowerCase']();_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53ccd1])=>{_0x45cdc0['setImageNaturalSizeAttributes'](_0x53ccd1['getContainedElement']());}),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x35890f,_0x39ab31)=>{_0x5f1820['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x35890f,{'commandName':_0x39ab31['commandName'],'commandParams':_0x39ab31['commandReversedParams']});}),_0x5f1820['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e5acc,_0x2db986){if(_0x5c3ea2(_0x3e5acc,_0x2db986))return[_0x3e5acc,_0x2db986];if(_0x5c3ea2(_0x2db986,_0x3e5acc))return[_0x2db986,_0x3e5acc];return null;});const _0x1e64d7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c3ea2(_0x6405f0,_0x5eb830){const _0x5f2a04=_0x1e64d7['findIndex'](({type:_0x409bda,subType:_0x48d3d8})=>_0x6405f0['type']==_0x409bda&&_0x6405f0['subType']==_0x48d3d8),_0x1c1e26=_0x1e64d7['findIndex'](({type:_0x36e36a,subType:_0x5036f9})=>_0x5eb830['type']==_0x36e36a&&_0x5eb830['subType']==_0x5036f9);if(_0x5f2a04<0x0||_0x1c1e26<0x0)return!0x1;const _0x530974=_0x6405f0['getFirstRange'](),_0x5012a8=_0x5eb830['getFirstRange']();if((0x0==_0x5f2a04||0x1==_0x5f2a04)&&0x2==_0x1c1e26&&_0x530974['isIntersecting'](_0x5012a8))return!0x0;if(0x2==_0x5f2a04&&0x3==_0x1c1e26){const _0x24c3d3=_0x5f1820['_findSuggestions'](_0x530974,'insertion')['filter'](({suggestion:_0x2ae50f,meta:_0x33e811})=>_0x33e811['isOwn']&&'convertInlineImageToBlock'==_0x2ae50f['subType']);if(_0x24c3d3['length']>0x1&&_0x5012a8['end']['isEqual'](_0x530974['start']))return!0x0;if(0x1==_0x24c3d3['length']&&(_0x530974['start']['isEqual'](_0x5012a8['end'])||_0x530974['end']['isEqual'](_0x5012a8['start'])))return!0x0;}if(0x3==_0x5f2a04&&0x3==_0x1c1e26&&_0x530974['start']['isBefore'](_0x5012a8['start'])){const _0x1e5ee0=_0x530974['end']['nodeAfter'],_0x47e3b5=_0x5012a8['start']['nodeBefore'];return _0x45cdc0['isBlockImage'](_0x1e5ee0)&&_0x1e5ee0===_0x47e3b5;}return!0x1;}_0x342553['model']['document']['registerPostFixer'](()=>{let _0x4cb9ba=!0x1;const _0x50a3f2=Array['from'](_0x342553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16a52a,data:_0x4ccf25}of _0x50a3f2){const {group:_0x27d2d0,type:_0x4cffd2,subType:_0x34d801,id:_0x284473}=_0x269eaf(_0x16a52a);if('suggestion'==_0x27d2d0&&_0x5f1820['hasSuggestion'](_0x284473)){if('formatBlock'==_0x4cffd2&&('imageStylePreApply'==_0x34d801||'imageStylePostApply'==_0x34d801)){const _0x236287=_0x5f1820['getSuggestion'](_0x284473);if(_0x4ccf25['newRange']){const _0x262902=_0x236287['getFirstRange']()['getContainedElement']();if(_0x45cdc0['isBlockImage'](_0x262902))continue;_0x5f1820['discardSuggestion'](_0x236287),_0x4cb9ba=!0x0;}}if('insertion'==_0x4cffd2&&'imageCaption'==_0x34d801&&!_0x4ccf25['newRange']){const _0x134b10=_0x5f1820['getSuggestion'](_0x284473);_0x134b10['next']&&_0x134b10['next']['isInContent']&&(_0x5f1820['discardSuggestion'](_0x134b10['next']),_0x4cb9ba=!0x0);}}}return _0x4cb9ba;}),this['_registerLegacyDescription'](_0x501d80);}['_registerLegacyDescription'](_0x5bb93f){const _0x3ff422=this['editor'],_0x150119=_0x3ff422['locale'];_0x3ff422['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x538b62=>{if('formatBlock'!=_0x538b62['type']&&'formatInline'!=_0x538b62['type'])return;const {data:_0xee637e}=_0x538b62;if(!_0xee637e||'imageStyle'!=_0xee637e['commandName'])return;const _0x1c4914=_0xee637e['commandParams'][0x0]['value'];return _0x510f0a('side'===_0x1c4914?At(_0x150119,'FORMAT_SIDE_IMAGE'):_0x5bb93f[_0x1c4914]||_0x1c4914);function _0x510f0a(_0xf5d69a){return{'type':'format','content':At(_0x150119,'*Format:*\x20%0',_0xf5d69a)};}});}}class oe extends _0x957e03{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf1ceea){super(_0xf1ceea),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4ce16a=this['editor'],_0x2eb639=_0x4ce16a['commands']['get']('importWord'),_0x1b57ee=_0x4ce16a['commands']['get']('trackChanges');_0x2eb639&&(_0x2eb639['on']('execute',(_0x57c376,[,_0x33df22])=>{this['_trackChangesValueDuringImport']=_0x1b57ee['value'],_0x33df22['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2eb639,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2eb639,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1b57ee['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4ce16a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x442fc1,_0x452d2d){const {suggestions:_0x10f1ca}=_0x452d2d,_0x43fa89=this['editor']['commands']['get']('trackChanges'),_0x49d050=_0x43fa89['value'];this['_trackChangesValueDuringImport']!==_0x49d050&&(_0x43fa89['execute'](),this['_trackChangesExecuted']=!0x0),_0x10f1ca&&_0x10f1ca['forEach'](({id:_0x4e3203,type:_0x551466,author:_0x496f5f,created_at:_0x5df63b})=>{const _0x12c40c={'id':_0x4e3203,'type':_0x551466,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x496f5f,'createdAt':_0x5df63b?new Date(_0x5df63b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x12c40c);});}}class ae extends _0x957e03{['afterInit'](){const _0x552092=this['editor'],_0x1fd066=_0x552092['plugins']['get']('TrackChangesEditing');if(_0x552092['plugins']['has']('IndentEditing')&&(_0x1fd066['enableCommand']('indent'),_0x1fd066['enableCommand']('outdent')),_0x552092['plugins']['has']('IndentBlock')){for(const _0x27e392 of['indentBlock','outdentBlock'])_0x1fd066['enableDefaultAttributesIntegration'](_0x27e392);if(_0x552092['plugins']['has']('ListEditing')){for(const _0x38957b of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x1fd066['enableDefaultAttributesIntegration'](_0x38957b);}}const _0x222290=_0x552092['locale'];_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndent',At(_0x222290,'FORMAT_INDENT')),_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndentList',At(_0x222290,'FORMAT_INDENT')),_0x1fd066['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',At(_0x222290,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1b75=this['editor'],_0x2401cb=_0x1d1b75['locale'],_0x4b8b5f=_0x1d1b75['plugins']['get']('TrackChangesEditing');_0x4b8b5f['descriptionFactory']['registerDescriptionCallback'](_0x3c57a7=>{if('formatBlock'!=_0x3c57a7['type'])return;const {data:_0x2764a3}=_0x3c57a7;if(!_0x2764a3)return;if('indentBlock'!=_0x2764a3['commandName']&&'outdentBlock'!=_0x2764a3['commandName'])return;const _0x4c11cf=_0x3c57a7['getItems']()[0x0],_0xdc9d50=_0x4b8b5f['descriptionFactory']['getItemLabel'](_0x4c11cf);return'indentBlock'==_0x2764a3['commandName']?{'type':'format','content':At(_0x2401cb,'*Indent:*\x20%0',_0xdc9d50)}:'outdentBlock'==_0x2764a3['commandName']?{'type':'format','content':At(_0x2401cb,'*Outdent:*\x20%0',_0xdc9d50)}:void 0x0;});}}class ce extends _0x957e03{static get['requires'](){return[ct];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class le extends _0x957e03{['afterInit'](){const _0x106bfa=this['editor'];if(!_0x106bfa['plugins']['has']('LinkEditing'))return;const _0x4891bd=_0x106bfa['plugins']['get']('TrackChangesEditing'),_0x526c64=_0x106bfa['commands']['get']('link');_0x4891bd['enableDefaultAttributesIntegration']('link'),_0x4891bd['enableDefaultAttributesIntegration']('unlink');for(const _0x4e08fb of _0x526c64['manualDecorators'])_0x4891bd['descriptionFactory']['registerAttributeLabel'](_0x4e08fb['id'],'link\x20('+_0x4e08fb['label']['toLowerCase']()+')');_0x4891bd['descriptionFactory']['registerDescriptionCallback'](_0x39424f=>{if('attribute'!=_0x39424f['type'])return;const {data:_0x34b1a1}=_0x39424f;if(!_0x34b1a1||'linkHref'!=_0x34b1a1['key'])return;const _0x4c6e7d=_0x34b1a1['newValue'],_0x1cc788=_0x106bfa['locale'];return{'type':'format','content':null==_0x4c6e7d?At(_0x1cc788,'*Remove\x20link*'):At(_0x1cc788,'*Set\x20link:*\x20%0','\x22'+_0x4c6e7d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38c3db=this['editor'],_0x28bbae=_0x38c3db['locale'];_0x38c3db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cccce=>{if('formatInline'!=_0x3cccce['type'])return;const {data:_0x54471f}=_0x3cccce;if(_0x54471f){if('link'==_0x54471f['commandName']){const _0x432869=_0x54471f['commandParams'][0x0];return{'type':'format','content':At(_0x28bbae,'*Set\x20link:*\x20%0','\x22'+_0x432869+'\x22')};}return'unlink'==_0x54471f['commandName']?{'type':'format','content':At(_0x28bbae,'*Remove\x20link*')}:void 0x0;}});}}class ue extends _0x957e03{['afterInit'](){const _0x2a90eb=this['editor'],_0x5760df=_0x2a90eb['locale'];if(!_0x2a90eb['plugins']['has']('LegacyListEditing'))return;const _0xcde3df=_0x2a90eb['plugins']['get']('TrackChangesEditing'),_0x3980ff=_0x2a90eb['plugins']['has']('LegacyTodoListEditing');function _0x423355(_0x95c89){return()=>{const _0x23a46c=_0x2a90eb['model']['document']['selection'],_0x346b79=_0x2a90eb['commands']['get'](_0x95c89);if(_0x346b79['value'])return void _0x2a90eb['execute']('paragraph',{});const _0x3142b3=_0x95c89['slice'](0x0,-0x4),_0x2586e2=function(_0x40e58b,_0x58d6d,_0x1c1639){let _0x31ea36=Array['from'](_0x40e58b)['filter'](_0x24a90f=>function(_0x582711,_0x39f985){return _0x39f985['checkChild'](_0x582711['parent'],'listItem')&&!_0x39f985['isObject'](_0x582711);}(_0x24a90f,_0x1c1639));_0x31ea36=_0x31ea36['filter'](_0x4581b3=>!_0x4581b3['is']('element','listItem')||_0x4581b3['getAttribute']('listType')!=_0x58d6d);const _0x36a375=new Set();for(const _0x5db37a of _0x31ea36)_0x5db37a['is']('element','listItem')?_0x36a375['add'](he(_0x5db37a)):_0x36a375['add'](_0x5db37a);return Array['from'](_0x36a375);}(_0x23a46c['getSelectedBlocks'](),_0x3142b3,_0x2a90eb['model']['schema']);_0x2a90eb['model']['change'](()=>{for(const _0x32a702 of _0x2586e2)_0xcde3df['markBlockFormat'](_0x32a702,{'commandName':_0x95c89,'commandParams':[{'forceValue':!_0x346b79['value']}],'formatGroupId':'blockName'},de(_0x32a702));});};}function _0x100707(_0x24d0a0){return()=>{const _0x5d0277=function(_0x47c78f){let _0x2b13e7=Array['from'](_0x47c78f);const _0x50943e=_0x2b13e7['findIndex'](_0x54ae17=>'listItem'!=_0x54ae17['name']);return _0x50943e>-0x1&&(_0x2b13e7=_0x2b13e7['slice'](0x0,_0x50943e)),_0x2b13e7;}(_0x2a90eb['model']['document']['selection']['getSelectedBlocks']()),_0xb230da=_0x2a90eb['model']['createRange'](_0x2a90eb['model']['createPositionAt'](_0x5d0277[0x0],'before'),_0x2a90eb['model']['createPositionAt'](_0x5d0277[_0x5d0277['length']-0x1],'end'));_0x2a90eb['model']['change'](()=>{_0xcde3df['markBlockFormat'](_0xb230da,{'commandName':_0x24d0a0,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2af43c){const _0x19aaa9=new Set();for(const _0x51933d of _0x2af43c){let _0x362545=_0x51933d['nextSibling'];for(;_0x362545&&_0x362545['getAttribute']('listIndent')>_0x51933d['getAttribute']('listIndent');)_0x19aaa9['add'](_0x362545),_0x362545=_0x362545['nextSibling'];}return Array['from'](_0x19aaa9);}(_0x5d0277));});};}_0xcde3df['enableCommand']('numberedList',_0x423355('numberedList')),_0xcde3df['enableCommand']('bulletedList',_0x423355('bulletedList')),_0x3980ff&&_0xcde3df['enableCommand']('todoList',_0x423355('todoList')),_0xcde3df['enableCommand']('indentList',_0x100707('indentList')),_0xcde3df['enableCommand']('outdentList',_0x100707('outdentList')),_0x3980ff&&_0xcde3df['enableCommand']('checkTodoList',()=>{const _0x2109b8=_0x2a90eb['commands']['get']('checkTodoList'),_0x1df855=Array['from'](_0x2109b8['_selectedElements']);_0x1df855['filter'](_0x2e36a3=>_0x2e36a3['getAttribute']('todoListChecked')!=_0x2109b8['value']),_0x2a90eb['model']['change'](()=>{for(const _0x1d0224 of _0x1df855)_0xcde3df['markBlockFormat'](_0x1d0224,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2109b8['value']}]});});}),_0xcde3df['descriptionFactory']['registerElementLabel']('listItem',_0x261f44=>At(_0x5760df,'ELEMENT_LIST_ITEM',_0x261f44)),_0xcde3df['descriptionFactory']['registerDescriptionCallback'](_0x5c577f=>{if('formatBlock'!=_0x5c577f['type']&&'formatInline'!=_0x5c577f['type'])return;const {data:_0x5eeeca}=_0x5c577f;if(_0x5eeeca){if('numberedList'==_0x5eeeca['commandName']||'bulletedList'==_0x5eeeca['commandName']||'todoList'==_0x5eeeca['commandName'])switch(_0x5eeeca['commandName']['replace']('List','')){case'bulleted':return _0xd9247e(At(_0x5760df,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xd9247e(At(_0x5760df,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xd9247e(At(_0x5760df,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5eeeca['commandName'])return{'type':'format','content':At(_0x5760df,'*Indent:*\x20%0',At(_0x5760df,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5eeeca['commandName'])return{'type':'format','content':At(_0x5760df,'*Outdent:*\x20%0',At(_0x5760df,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5eeeca['commandName'])return _0x5eeeca['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x5760df,'*Check\x20item*')}:{'type':'format','content':At(_0x5760df,'*Uncheck\x20item*')};}function _0xd9247e(_0x22a43d){return{'type':'format','content':At(_0x5760df,'*Change\x20to:*\x20%0',_0x22a43d)};}});}}function he(_0x4a68d6){const _0x3fe870=_0x4a68d6['getAttribute']('listIndent');if(0x0==_0x3fe870)return _0x4a68d6;let _0x57fd53=_0x4a68d6;for(;_0x4a68d6['previousSibling']&&_0x4a68d6['previousSibling']['is']('element','listItem');){const _0x5bdaa3=_0x4a68d6['previousSibling']['getAttribute']('listIndent');if(_0x5bdaa3==_0x3fe870)_0x57fd53=_0x4a68d6['previousSibling'];else{if(_0x5bdaa3<_0x3fe870)break;}_0x4a68d6=_0x4a68d6['previousSibling'];}return _0x57fd53;}function de(_0x9bc696){const _0x46bd5a=[];if(_0x9bc696['is']('element','listItem')&&_0x9bc696['getAttribute']('listIndent')>0x0){let _0x3466d6=_0x9bc696['nextSibling'];for(;_0x3466d6&&'listItem'==_0x3466d6['name']&&_0x3466d6['getAttribute']('listIndent')==_0x9bc696['getAttribute']('listIndent');)_0x46bd5a['push'](_0x3466d6),_0x3466d6=_0x3466d6['nextSibling'];}return _0x46bd5a;}class fe extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xe29ce4=this['editor']['config']['get']('list.properties'),_0x7896d=this['editor']['plugins']['get']('TrackChangesEditing');_0xe29ce4['styles']&&_0x7896d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xe29ce4['reversed']&&_0x7896d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xe29ce4['startIndex']&&_0x7896d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x7896d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x9dc29e,_0x41a92f={}){const _0x3670dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x363e69=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3670dc['markMultiRangeBlockFormat'](_0x363e69,{'commandName':'listStyle','commandParams':[{'type':_0x41a92f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x29eeb2,_0x148c91={}){const _0x9930da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48a9ad=this['_getSuggestionBlocks'](_0x99e2dc=>_0x99e2dc['is']('element','listItem')&&'numbered'===_0x99e2dc['getAttribute']('listType'));if(_0x48a9ad['length']<0x1)return;const _0x138c13=_0x48a9ad['map'](_0x236d68=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x236d68,'before'),this['editor']['model']['createPositionAt'](_0x236d68,0x0)));this['editor']['model']['change'](()=>{_0x9930da['markMultiRangeBlockFormat'](_0x138c13,{'commandName':'listReversed','commandParams':[{'reversed':_0x148c91['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ab3cf,_0x5783e9={}){const _0x164263=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59d792=this['_getSuggestionBlocks'](_0x13fd8d=>_0x13fd8d['is']('element','listItem')&&'numbered'===_0x13fd8d['getAttribute']('listType'));if(_0x59d792['length']<0x1)return;const _0x16c3c5=_0x59d792['map'](_0x1332c3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1332c3,'before'),this['editor']['model']['createPositionAt'](_0x1332c3,0x0)));this['editor']['model']['change'](()=>{_0x164263['markMultiRangeBlockFormat'](_0x16c3c5,{'commandName':'listStart','commandParams':[{'startIndex':_0x5783e9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x14b2d5){if('formatBlock'!=_0x14b2d5['type']&&'formatInline'!=_0x14b2d5['type'])return;const _0x147b82=this['editor']['locale'],{data:_0x1e7176}=_0x14b2d5;if(!_0x1e7176)return;let _0x304c6f,_0x202a85;switch(_0x1e7176['commandName']){case'listStyle':_0x304c6f='*Change\x20to:*\x20%0',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f,At(_0x147b82,this['_getTranslationKeyForListStyle'](_0x1e7176['commandParams'][0x0]['type'])))};break;case'listReversed':_0x304c6f=_0x1e7176['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f)};break;case'listStart':_0x304c6f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x202a85={'type':'format','content':At(_0x147b82,_0x304c6f,_0x1e7176['commandParams'][0x0]['startIndex'])};}return _0x202a85;}['_getSuggestionBlocksForListStyle'](){const _0x204d1d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5d446=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5d446[0x0]?.['is']('element','listItem')&&_0x5d446['unshift'](..._0x204d1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5d446[_0x5d446['length']-0x1]?.['is']('element','listItem')&&_0x5d446['push'](..._0x204d1d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5d446=[...new Set(_0x5d446)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5d446=_0x5d446['filter'](_0x4bc3b6=>_0x4bc3b6['is']('element','listItem'))),_0x5d446;}['_getSuggestionBlocks'](_0x1aac7b){const _0x34fb71=this['editor']['plugins']['get']('LegacyListUtils');let _0x237272=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1aac7b)['map'](_0x196eae=>{const _0x4ebde2=this['editor']['model']['createPositionAt'](_0x196eae,0x0);return[..._0x34fb71['getSiblingNodes'](_0x4ebde2,'backward'),..._0x34fb71['getSiblingNodes'](_0x4ebde2,'forward')];})['flat']();return _0x237272=[...new Set(_0x237272)],_0x237272;}['_getTranslationKeyForListStyle'](_0x40b11c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x40b11c)||'default')['toUpperCase']()+'_LIST_'+_0x40b11c['toUpperCase']()['replace'](/-/g,'_');}}class ge extends _0x957e03{['afterInit'](){const _0x278c79=this['editor'];if(!_0x278c79['plugins']['has']('MediaEmbedEditing'))return;const _0x4a0a78=_0x278c79['plugins']['get']('TrackChangesEditing'),_0x31d7c4=_0x278c79['locale'];_0x4a0a78['enableCommand']('mediaEmbed'),_0x4a0a78['descriptionFactory']['registerElementLabel']('media',_0x12c64f=>At(_0x31d7c4,'ELEMENT_MEDIA',_0x12c64f));}}class me extends _0x957e03{['afterInit'](){const _0x190642=this['editor'];_0x190642['plugins']['has']('MentionEditing')&&_0x190642['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class Ee extends _0x957e03{['afterInit'](){const _0x1f2495=this['editor'];if(!_0x1f2495['plugins']['has']('MergeFieldsEditing'))return;const _0x1763d2=_0x1f2495['plugins']['get']('TrackChangesEditing'),_0x2b07a4=_0x1f2495['locale'];_0x1763d2['enableCommand']('insertMergeField'),_0x1763d2['enableCommand']('insertMergeFieldBlock'),_0x1763d2['enableCommand']('insertMergeFieldImage'),_0x1763d2['descriptionFactory']['registerElementLabel']('mergeField',_0x300e91=>At(_0x2b07a4,'ELEMENT_MERGE_FIELD',_0x300e91)),_0x1763d2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3155c4=>At(_0x2b07a4,'ELEMENT_MERGE_FIELD',_0x3155c4)),_0x1763d2['descriptionFactory']['registerDescriptionCallback'](_0x47b914=>{if('insertion'!=_0x47b914['type']&&'deletion'!=_0x47b914['type'])return;const _0x7e77c=_0x47b914['getContainedElement']();if(null==_0x7e77c)return;const _0x43554a=_0x1f2495['plugins']['get']('MergeFieldsEditing');let _0x5b65bd;switch(_0x43554a['getMergeFieldType'](_0x7e77c)){case null:return;case'image':{const _0x29134e=_0x43554a['unwrapAffixes'](_0x7e77c['getAttribute']('src'));_0x5b65bd=_0x43554a['getLabel'](_0x29134e)||_0x29134e;break;}default:{const _0x2ccf9b=_0x7e77c['getAttribute']('id');_0x5b65bd=_0x43554a['getLabel'](_0x2ccf9b)||_0x2ccf9b;break;}}return'insertion'==_0x47b914['type']?{'type':'insertion','content':At(_0x2b07a4,'*Insert:*\x20%0','\x22'+_0x5b65bd+'\x22\x20'+At(_0x2b07a4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':At(_0x2b07a4,'*Remove:*\x20%0','\x22'+_0x5b65bd+'\x22\x20'+At(_0x2b07a4,'ELEMENT_MERGE_FIELD'))};});}}class Te extends _0x957e03{['afterInit'](){const _0x506dc1=this['editor'],_0x3be1b3=_0x506dc1['plugins']['get']('TrackChangesEditing');_0x506dc1['plugins']['has']('MultiLevelList')&&(_0x3be1b3['enableDefaultAttributesIntegration']('multiLevelList'),_0x3be1b3['descriptionFactory']['registerDescriptionCallback'](_0x152ffa=>this['handleDescriptions'](_0x152ffa)));}['handleDescriptions'](_0x387c24){const _0x3f0ac9=this['editor']['locale'],{data:_0x35f123}=_0x387c24,_0x4d6cd1={'type':'format','content':''};if(_0x35f123&&'listMarkerStyle'==_0x35f123['key']){if(!_0x35f123['oldValue'])return{'type':'format','content':At(_0x3f0ac9,'*Set\x20format:*\x20%0',At(_0x3f0ac9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35f123['newValue']+')'};if(!_0x35f123['newValue']){let _0x93aca9=_0x387c24['head'];for(;_0x93aca9;){if(_0x93aca9['data']&&'listType'==_0x93aca9['data']['key']&&_0x93aca9['data']['newValue'])return _0x4d6cd1;_0x93aca9=_0x93aca9['next'];}return{'type':'format','content':At(_0x3f0ac9,'*Remove\x20format:*\x20%0',At(_0x3f0ac9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x35f123['oldValue']+')'};}}}}class _e extends _0x957e03{['afterInit'](){const _0x525590=this['editor'];if(!_0x525590['plugins']['has']('PageBreakEditing'))return;_0x525590['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x116afb=_0x525590['plugins']['get']('TrackChangesEditing'),_0x221b6b=_0x525590['locale'];_0x116afb['descriptionFactory']['registerElementLabel']('pageBreak',_0x4d29f8=>At(_0x221b6b,'ELEMENT_PAGE_BREAK',_0x4d29f8));}}class pe extends _0x957e03{['afterInit'](){const _0x464fb7=this['editor'];if(!_0x464fb7['plugins']['has']('Paragraph'))return;const _0x4cf7c2=_0x464fb7['locale'],_0x61b6e2=_0x464fb7['plugins']['get']('TrackChangesEditing');_0x61b6e2['descriptionFactory']['registerElementLabel']('paragraph',_0x45c838=>At(_0x4cf7c2,'ELEMENT_PARAGRAPH',_0x45c838)),_0x61b6e2['enableDefaultAttributesIntegration']('paragraph'),_0x61b6e2['enableCommand']('insertParagraph');const _0x18772a=_0x61b6e2['descriptionFactory'];_0x18772a['registerDescriptionCallback'](_0x1c104=>{if('insertion'!==_0x1c104['type'])return;const {start:_0x2f84f2,end:_0x385fae}=_0x1c104['getFirstRange']();if(!_0x2f84f2['isTouching'](_0x385fae)||!_0x2f84f2['nodeAfter'])return;const _0x1dde37=_0x464fb7['model']['schema'],_0x36e0d7=_0x2f84f2['nodeAfter'];return _0x1dde37['isBlock'](_0x36e0d7)&&!_0x1dde37['isLimit'](_0x36e0d7)&&_0x1dde37['checkChild'](_0x36e0d7,'$text')?{'type':'insertion','content':At(_0x4cf7c2,'*Insert:*\x20%0',_0x18772a['getItemLabel'](_0x36e0d7,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29f0c0=this['editor'],_0x182fdf=_0x29f0c0['locale'];_0x29f0c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x288d2d=>{if('formatBlock'!=_0x288d2d['type'])return;const {data:_0x40735e}=_0x288d2d;return _0x40735e&&'paragraph'==_0x40735e['commandName']?{'type':'format','content':At(_0x182fdf,'*Change\x20to:*\x20%0',At(_0x182fdf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class Le extends _0x957e03{['afterInit'](){const _0x479ddd=this['editor'];_0x479ddd['commands']['get']('replaceSource')&&_0x479ddd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class Ie extends _0x957e03{['afterInit'](){const _0x5c2e21=this['editor'];if(!_0x5c2e21['plugins']['has']('RemoveFormatEditing'))return;_0x5c2e21['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48f98a=this['editor'];_0x48f98a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f23e0=>{if('formatBlock'!=_0x2f23e0['type']&&'formatInline'!=_0x2f23e0['type'])return;const {data:_0x4fbb43}=_0x2f23e0;return _0x4fbb43&&'removeFormat'==_0x4fbb43['commandName']?{'type':'format','content':At(_0x48f98a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class be extends _0x957e03{['afterInit'](){const _0x595e1c=this['editor'];if(!_0x595e1c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x44fbbd=_0x595e1c['plugins']['get']('TrackChangesEditing');_0x44fbbd['enableCommand']('goToPreviousRestrictedEditingException'),_0x44fbbd['enableCommand']('goToNextRestrictedEditingException');const _0x4b2b7b=_0x595e1c['plugins']['get']('RestrictedEditingModeEditing');_0x4b2b7b['enableCommand']('trackChanges'),_0x4b2b7b['enableCommand']('acceptSuggestion'),_0x4b2b7b['enableCommand']('discardSuggestion'),_0x4b2b7b['enableCommand']('acceptAllSuggestions'),_0x4b2b7b['enableCommand']('discardAllSuggestions'),_0x4b2b7b['enableCommand']('acceptSelectedSuggestions'),_0x4b2b7b['enableCommand']('discardSelectedSuggestions');}}class Ae extends _0x957e03{['afterInit'](){const _0x2e911d=this['editor'];if(!_0x2e911d['plugins']['has']('ShiftEnter'))return;const _0x2a3921=_0x2e911d['plugins']['get']('TrackChangesEditing');_0x2a3921['enableCommand']('shiftEnter'),_0x2a3921['descriptionFactory']['registerElementLabel']('softBreak',_0x3149a0=>At(_0x2e911d['locale'],'ELEMENT_LINE_BREAK',_0x3149a0));}}function ke(_0x115638,_0x998b53,_0x33df9a){const _0x1c3da7=[];for(const _0x3a08d4 of _0x998b53['getItems']())_0x3a08d4['hasAttribute'](_0x115638)&&_0x1c3da7['push'](_0x33df9a['createRangeOn'](_0x3a08d4));return _0x1c3da7;}class Ce extends _0x957e03{['afterInit'](){const _0x25b299=this['editor'],_0x4c39cd=_0x25b299['plugins']['get']('TrackChangesEditing');_0x25b299['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4c39cd['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xd2e21d=this['editor'],_0x266679=_0xd2e21d['model'],_0x137f7d=_0xd2e21d['locale'],_0x29f34d=_0xd2e21d['plugins']['get']('TrackChangesEditing'),_0x2d36a0='restrictedEditingException',_0x416a17=_0xd2e21d['commands']['get'](_0x2d36a0);_0x29f34d['enableCommand'](_0x2d36a0,(_0x3785d9,_0x584299={})=>{const _0x539ae0=_0x266679['document']['selection'];if(_0x539ae0['isCollapsed'])return void _0x3785d9(_0x584299);const _0x12678e=void 0x0!==_0x584299['forceValue']?_0x584299['forceValue']:!_0x416a17['value'];_0x266679['change'](()=>{const _0x323f63=Array['from'](_0x539ae0['getRanges']());for(const _0x4e4f8b of _0x323f63){const _0x3d768e=_0x12678e?[_0x4e4f8b]:ke(_0x2d36a0,_0x4e4f8b,_0x266679);for(const _0x5345c0 of _0x3d768e)_0x29f34d['markInlineFormat'](_0x5345c0,{'commandName':_0x2d36a0,'commandParams':[{'forceValue':_0x12678e}]});}});}),_0x29f34d['descriptionFactory']['registerDescriptionCallback'](_0x5ccd8b=>{if('formatBlock'!=_0x5ccd8b['type']&&'formatInline'!=_0x5ccd8b['type'])return;const {data:_0x2f2192}=_0x5ccd8b;return _0x2f2192&&_0x2f2192['commandName']==_0x2d36a0?_0x2f2192['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x137f7d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x137f7d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x1e6cd6=this['editor'],_0x8f758e=_0x1e6cd6['locale'],_0x57b8df=_0x1e6cd6['plugins']['get']('TrackChangesEditing'),_0x2dd4e3='restrictedEditingExceptionBlock',_0x3724d5=this['editor']['commands']['get'](_0x2dd4e3);_0x57b8df['enableCommand'](_0x2dd4e3,(_0x281209,_0x446fd4={})=>{const _0x34984f=this['editor']['model']['document']['selection'],_0x293c4e=_0x446fd4&&void 0x0!==_0x446fd4['forceValue']?_0x446fd4['forceValue']:!_0x3724d5['value'];let _0x8e7bb9=[];if(_0x293c4e){const _0x19f471=Array['from'](_0x34984f['getSelectedBlocks']())['filter'](_0x323617=>function(_0x8da7fa){return!!_0x8da7fa['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x323617)||function(_0x5680d6,_0x196444){const _0x4e0ffe=_0x196444['createContext'](_0x5680d6['parent']);if(!_0x196444['checkChild'](_0x4e0ffe,'restrictedEditingException'))return!0x1;if(!_0x196444['checkChild'](_0x4e0ffe['push']('restrictedEditingException'),_0x5680d6))return!0x1;return!0x0;}(_0x323617,this['editor']['model']['schema']));_0x8e7bb9=Tt(_0x19f471,_0x1e6cd6['model']);}else{const _0x18a829=Array['from'](_0x34984f['getSelectedBlocks']())['map'](_0x4a38ce=>function(_0x20230d){let _0x37841b=_0x20230d;for(;_0x37841b['parent'];){if('restrictedEditingException'==_0x37841b['parent']['name'])return _0x37841b;_0x37841b=_0x37841b['parent'];}return null;}(_0x4a38ce))['filter'](_0x399bd0=>!!_0x399bd0);_0x8e7bb9=Tt(_0x18a829,_0x1e6cd6['model']);}_0x1e6cd6['model']['change'](()=>{for(const _0x256ec9 of _0x8e7bb9)_0x57b8df['markBlockFormat'](_0x256ec9,{'commandName':_0x2dd4e3,'commandParams':[{'forceValue':_0x293c4e}]});});}),_0x57b8df['descriptionFactory']['registerDescriptionCallback'](_0x4faf19=>{const {data:_0x522fd3}=_0x4faf19;if(_0x522fd3&&_0x522fd3['commandName']==_0x2dd4e3)return _0x522fd3['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x8f758e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':At(_0x8f758e,'FORMAT_RESTRICTED_DISABLED')};});}}class ye extends _0x957e03{['afterInit'](){const _0x5a69c=this['editor'];if(!_0x5a69c['plugins']['has']('Style')||!_0x5a69c['plugins']['has']('DataSchema'))return;const _0x40208c=_0x5a69c['plugins']['get']('TrackChangesEditing'),_0x385f48=_0x5a69c['locale'],_0x4d5954=_0x5a69c['config']['get']('style')||{},_0x24483b=_0x5a69c['plugins']['get']('GeneralHtmlSupport'),_0x36fc06=_0x5a69c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a69c['plugins']['get']('DataSchema'),_0x4d5954['definitions']);_0x40208c['enableDefaultAttributesIntegration']('style');const _0x392df6=new Set();for(const _0xaeb37f of _0x36fc06['block']){const _0x1540e2=_0x24483b['getGhsAttributeNameForElement'](_0xaeb37f['element']);_0x392df6['add'](_0x1540e2);}const _0x4af4f0=new Set();for(const _0xc04bf8 of _0x36fc06['inline']){const _0x364a68=_0x24483b['getGhsAttributeNameForElement'](_0xc04bf8['element']);_0x4af4f0['add'](_0x364a68);for(const _0x102bae of _0xc04bf8['ghsAttributes'])_0x4af4f0['add'](_0x102bae);}for(const _0x2a76d1 of _0x392df6)_0x40208c['descriptionFactory']['registerAttributeLabel'](_0x2a76d1,At(_0x385f48,'FORMAT_STYLE'));for(const _0xe00723 of _0x4af4f0)_0x40208c['descriptionFactory']['registerAttributeLabel'](_0xe00723,At(_0x385f48,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25d804=this['editor'],_0x3665fb=_0x25d804['locale'];_0x25d804['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2947=>{if('formatBlock'!=_0x3d2947['type']&&'formatInline'!=_0x3d2947['type'])return;const {data:_0x52bfbd}=_0x3d2947;return _0x52bfbd&&'style'===_0x52bfbd['commandName']?_0x52bfbd['commandParams'][0x0]['forceValue']?{'type':'format','content':At(_0x3665fb,'*Set\x20format:*\x20%0',_0x52bfbd['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':At(_0x3665fb,'*Remove\x20format:*\x20%0',_0x52bfbd['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ne extends _0x957e03{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1b13d1){super(_0x1b13d1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3a3ec1=this['editor'],_0x1c650f=_0x3a3ec1['model']['document']['selection'];if(!_0x3a3ec1['plugins']['has']('TableEditing'))return;const _0x39de1f=_0x3a3ec1['locale'],_0x1a2814=_0x3a3ec1['plugins']['get']('TrackChangesEditing'),_0x3c2112=_0x3a3ec1['plugins']['get']('TableUtils');_0x1a2814['descriptionFactory']['registerElementLabel']('table',_0x5735e6=>At(_0x39de1f,'ELEMENT_TABLE',_0x5735e6)),this['_setupColumnsRowsFixing'](),_0x1a2814['enableCommand']('insertTable'),_0x1a2814['enableCommand']('selectTableRow'),_0x1a2814['enableCommand']('selectTableColumn');for(const _0x52eca8 of['insertTableRowAbove','insertTableRowBelow']){const _0x48e81c=_0x3a3ec1['commands']['get'](_0x52eca8);_0x1a2814['enableCommand'](_0x52eca8,_0x426ce9=>{_0x3a3ec1['model']['change'](_0xb1416a=>{_0x426ce9();const _0x487df4='above'===_0x48e81c['order'],_0x5aa3eb=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x239a39=_0x3c2112['getRowIndexes'](_0x5aa3eb),_0x41c975=_0x487df4?_0x239a39['first']-0x1:_0x239a39['last']+0x1,_0x42c286=_0x5aa3eb[0x0]['findAncestor']('table'),_0x4f0d78=_0x3c2112['createTableWalker'](_0x42c286,{'startRow':_0x41c975,'endRow':_0x41c975}),_0xa123e7=Array['from'](_0x4f0d78)['map'](_0x581c29=>_0xb1416a['createRangeOn'](_0x581c29['cell']));_0x1a2814['markMultiRangeInsertion'](_0xa123e7,'tableRow');});});}for(const _0x4bb54e of['insertTableColumnLeft','insertTableColumnRight']){const _0x47d5d9=_0x3a3ec1['commands']['get'](_0x4bb54e);_0x1a2814['enableCommand'](_0x4bb54e,_0x38badf=>{_0x3a3ec1['model']['change'](_0x310a7c=>{_0x38badf();const _0xbca861='left'===_0x47d5d9['order'],_0x363889=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x4a41c2=_0x3c2112['getColumnIndexes'](_0x363889),_0x13a197=_0xbca861?_0x4a41c2['first']-0x1:_0x4a41c2['last']+0x1,_0x5aba98=_0x363889[0x0]['findAncestor']('table'),_0x1807da=_0x3c2112['createTableWalker'](_0x5aba98,{'startRow':0x0,'column':_0x13a197,'includeAllSlots':!0x1}),_0x3ec4e6=Array['from'](_0x1807da)['map'](_0x1dd7f7=>_0x310a7c['createRangeOn'](_0x1dd7f7['cell']));_0x1a2814['markMultiRangeInsertion'](_0x3ec4e6,'tableColumn');});});}for(const _0x5afe56 of['removeTableRow','removeTableColumn']){const _0x1ce23a=_0x5afe56['substr'](0xb),_0x41c684=_0x1ce23a['toLowerCase'](),_0x15838a=_0x41c684['substr'](0x0,0x3)+'span',_0x1c7a0a='table'+_0x1ce23a,_0x59d3d5='min'+_0x1ce23a,_0x2ea2ca='max'+_0x1ce23a;_0x1a2814['enableCommand'](_0x5afe56,()=>{_0x3a3ec1['model']['change'](_0x44f2ab=>{const _0x54aaa7=_0x3c2112['getSelectionAffectedTableCells'](_0x1c650f),_0x3d8975=_0x54aaa7[0x0]['findAncestor']('table');let _0x1665f2;if('removeTableRow'==_0x5afe56){const _0x19a681=_0x3c2112['getRowIndexes'](_0x54aaa7);_0x1665f2={'startRow':_0x19a681['first'],'endRow':_0x19a681['last'],'includeAllSlots':!0x0};}else{const _0x291ffe=_0x3c2112['getColumnIndexes'](_0x54aaa7);_0x1665f2={'startColumn':_0x291ffe['first'],'endColumn':_0x291ffe['last'],'includeAllSlots':!0x0};}const _0x2ff52c=_0x3c2112['createTableWalker'](_0x3d8975,_0x1665f2),_0x2165ed=Array['from'](_0x2ff52c)['map'](({cell:_0x341005})=>_0x341005),_0x17fcb4=Re(_0x2165ed['filter'](_0x1acbf8=>_0x1acbf8['hasAttribute'](_0x15838a))),_0x2f7d7a=Re(_0x2165ed['filter'](_0x236d63=>!_0x236d63['hasAttribute'](_0x15838a)))['map'](_0x354d2a=>_0x44f2ab['createRangeOn'](_0x354d2a)),_0x162e67=_0x1a2814['markMultiRangeDeletion'](_0x2f7d7a,_0x1c7a0a);if(_0x162e67&&('tableRow'==_0x162e67['subType']||'tableColumn'==_0x162e67['subType'])){const _0x264ed4=this['_getSuggestionCoords'](_0x162e67);for(const _0x19a12b of _0x17fcb4){const _0x33d7f7=_0x44f2ab['createRangeOn'](_0x19a12b),_0xdcaa48=_0x3c2112['getCellLocation'](_0x19a12b),_0x2d865d=_0x19a12b['getAttribute'](_0x15838a)-0x1,_0x2ddbb3=_0x264ed4[_0x59d3d5],_0x36fc71=_0x264ed4[_0x2ea2ca];_0x2ddbb3<=_0xdcaa48[_0x41c684]&&_0xdcaa48[_0x41c684]+_0x2d865d<=_0x36fc71&&_0x162e67['addRange'](_0x33d7f7);}}});});}function _0x37b5f6(_0x51bfc){const _0x5172b5=Array['from'](_0x1c650f['getRanges']())['map'](_0x4ae186=>_0x82a6d2['fromRange'](_0x4ae186));_0x3a3ec1['model']['change'](_0x32c0cd=>{const _0xae0b62=_0x32c0cd['batch'];_0x51bfc=_0x51bfc['filter'](_0x21105d=>'$graveyard'!=_0x21105d['root']['rootName']),_0x32c0cd['setSelection'](_0x51bfc),_0x3a3ec1['commands']['get']('removeTableRow')['refresh'](),_0x3a3ec1['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3a3ec1['model']['enqueueChange'](()=>{_0x3a3ec1['model']['enqueueChange'](_0xae0b62,_0x377518=>{const _0x454e2a=_0x5172b5['filter'](_0x386cbc=>'$graveyard'!=_0x386cbc['root']['rootName']);_0x454e2a['length']>0x0&&_0x377518['setSelection'](_0x454e2a);for(const _0x81d373 of _0x5172b5)_0x81d373['detach']();});});});}function _0x6c71bb(_0xff5a83){_0x3a3ec1['model']['change'](_0x22aa9a=>{const _0x140759=Array['from'](_0x1c650f['getRanges']())['map'](_0x2cb93e=>_0x82a6d2['fromRange'](_0x2cb93e)),_0x51035e=[];for(const _0x8abc7a of _0xff5a83)for(const _0x34ebbd of _0x8abc7a['getItems']({'shallow':!0x0}))_0x51035e['push'](_0x34ebbd);for(const _0x52f591 of _0x51035e)'$graveyard'!=_0x52f591['root']['rootName']&&(_0x22aa9a['setSelection'](_0x22aa9a['createPositionAt'](_0x52f591,0x0)),_0x3a3ec1['commands']['get']('removeTableColumn')['refresh'](),_0x3a3ec1['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5c52ad=_0x140759['filter'](_0x2b4d5f=>'$graveyard'!=_0x2b4d5f['root']['rootName']);_0x5c52ad['length']>0x0&&_0x22aa9a['setSelection'](_0x5c52ad);for(const _0x2df8f4 of _0x140759)_0x2df8f4['detach']();});}function _0x393b1a(_0x2a57f9,_0x2e0449){return _0x2e0449['every'](_0xd6d960=>_0x2a57f9['some'](_0x7a312=>_0x7a312['end']['isEqual'](_0xd6d960['start'])||_0xd6d960['end']['isEqual'](_0x7a312['start'])));}function _0xa89ba(_0x44eed3,_0x23e11b){return!_0x44eed3['some'](_0x491c47=>_0x23e11b['some'](_0x49c53a=>_0x491c47['isIntersecting'](_0x49c53a)))&&_0x44eed3['some'](_0x37aafd=>_0x23e11b['some'](_0x420ea9=>_0x37aafd['end']['isTouching'](_0x420ea9['start'])));}_0x1a2814['descriptionFactory']['registerDescriptionCallback'](_0x1d0d7c=>{if('insertion'!=_0x1d0d7c['type']&&'deletion'!=_0x1d0d7c['type'])return;const _0x20fc15=_0x1d0d7c['getContainedElement']();if(null!=_0x20fc15&&_0x20fc15['is']('element','table')){if('insertion'==_0x1d0d7c['type']){const _0x4d7365=_0x1d0d7c['getItems']()['filter'](_0x3c2db0=>_0x3c2db0['is']('$textProxy'))['map'](_0x4bc610=>_0x4bc610['data']);if(_0x4d7365['length'])return{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d7365['join']('\x20')+'\x22'))};}if('deletion'==_0x1d0d7c['type']){const _0x37a8ce=_0x1d0d7c['getItems']()['filter'](_0x515d10=>_0x515d10['is']('$textProxy'))['map'](_0x35375a=>_0x35375a['data']);if(_0x37a8ce['length'])return{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37a8ce['join']('\x20')+'\x22'))};}}}),_0x1a2814['descriptionFactory']['registerDescriptionCallback'](_0x1e436e=>{if('tableRow'==_0x1e436e['subType']){const _0x1be06b=_0x1e436e['getItems']()['filter'](_0x5d7f39=>_0x5d7f39['is']('$textProxy'))['map'](_0x2722a6=>_0x2722a6['data']),_0x5b2c05=this['_getSuggestionCoords'](_0x1e436e),_0x595511=_0x5b2c05['maxRow']-_0x5b2c05['minRow']+0x1;if('insertion'==_0x1e436e['type'])return _0x1be06b['length']?{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x595511,'\x22'+_0x1be06b['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW',_0x595511))};if('deletion'==_0x1e436e['type'])return _0x1be06b['length']?{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x595511,'\x22'+_0x1be06b['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_ROW',_0x595511))};}if('tableColumn'==_0x1e436e['subType']){const _0x3d5e7f=_0x1e436e['getItems']()['filter'](_0x169bc2=>_0x169bc2['is']('$textProxy'))['map'](_0x17aa4b=>_0x17aa4b['data']),_0x3b78dd=this['_getSuggestionCoords'](_0x1e436e),_0x40e3e4=_0x3b78dd['maxColumn']-_0x3b78dd['minColumn']+0x1;if('insertion'==_0x1e436e['type'])return _0x3d5e7f['length']?{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40e3e4,'\x22'+_0x3d5e7f['join']('\x20')+'\x22']))}:{'type':'insertion','content':At(_0x39de1f,'*Insert:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN',_0x40e3e4))};if('deletion'==_0x1e436e['type'])return _0x3d5e7f['length']?{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x40e3e4,'\x22'+_0x3d5e7f['join']('\x20')+'\x22']))}:{'type':'deletion','content':At(_0x39de1f,'*Remove:*\x20%0',At(_0x39de1f,'ELEMENT_TABLE_COLUMN',_0x40e3e4))};}}),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x37b5f6),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x37b5f6),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x6c71bb),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x6c71bb),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x393b1a),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x393b1a),_0x1a2814['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xa89ba),_0x1a2814['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xa89ba);}['_acceptFormatSuggestionCallbackFactory'](){const _0x463c98=this['editor'],_0x596fa9=_0x463c98['model']['document']['selection'];return(_0x4d319d,_0x1e2928)=>{_0x463c98['model']['change'](_0x3e4f2f=>{const {commandName:_0x563a14,commandParams:_0x5dbe70}=_0x1e2928;let _0x242dca=_0x4d319d[0x0]['end']['nodeBefore'];_0x5dbe70&&_0x5dbe70[0x0]&&!0x1===_0x5dbe70[0x0]['forceValue']&&(_0x242dca=_0x4d319d[0x0]['start']['nodeAfter']);const _0x1bd002=_0x3e4f2f['createRangeIn'](_0x242dca);if('$graveyard'==_0x1bd002['root']['rootName'])return;const _0x2978f6=Array['from'](_0x596fa9['getRanges']())['map'](_0xdee3a0=>_0x82a6d2['fromRange'](_0xdee3a0));_0x3e4f2f['setSelection'](_0x1bd002),_0x463c98['commands']['get'](_0x563a14)['refresh'](),_0x5dbe70['push']({'forceDefaultExecution':!0x0}),_0x463c98['execute'](_0x563a14,..._0x5dbe70);const _0x3aba93=_0x2978f6['filter'](_0x2470dc=>'$graveyard'!=_0x2470dc['root']['rootName']);_0x3aba93['length']>0x0&&_0x3e4f2f['setSelection'](_0x3aba93);for(const _0x52b896 of _0x2978f6)_0x52b896['detach']();});};}['_getCoordsForCells'](_0x3c4614){const _0x1a45f8=this['editor']['plugins']['get']('TableUtils');let _0x125786=Number['MAX_SAFE_INTEGER'],_0xefde1b=Number['MIN_SAFE_INTEGER'],_0x1ddb35=Number['MAX_SAFE_INTEGER'],_0x2c71ef=Number['MIN_SAFE_INTEGER'];for(const _0x5b2b40 of _0x3c4614){if('$graveyard'==_0x5b2b40['root']['rootName'])continue;const {row:_0x37237e,column:_0x349ec1}=_0x1a45f8['getCellLocation'](_0x5b2b40),_0x3313a1=_0x5b2b40['hasAttribute']('rowspan')?_0x5b2b40['getAttribute']('rowspan')-0x1:0x0,_0x3e2218=_0x5b2b40['hasAttribute']('colspan')?_0x5b2b40['getAttribute']('colspan')-0x1:0x0;_0x125786=_0x37237e<_0x125786?_0x37237e:_0x125786,_0xefde1b=_0x37237e+_0x3313a1>_0xefde1b?_0x37237e+_0x3313a1:_0xefde1b,_0x1ddb35=_0x349ec1<_0x1ddb35?_0x349ec1:_0x1ddb35,_0x2c71ef=_0x349ec1+_0x3e2218>_0x2c71ef?_0x349ec1+_0x3e2218:_0x2c71ef;}return{'minRow':_0x125786,'maxRow':_0xefde1b,'minColumn':_0x1ddb35,'maxColumn':_0x2c71ef};}['_setupColumnsRowsFixing'](){const _0x149f1b=this['editor'],_0x1133cd=_0x149f1b['plugins']['get']('TrackChangesEditing'),_0x55b0ca=_0x149f1b['plugins']['get']('TableUtils');_0x149f1b['model']['document']['on']('change:data',()=>{const _0x363fac=Array['from'](_0x149f1b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3078e4,data:_0x34c85e}of _0x363fac){const {group:_0x43e8d4,id:_0x35cd24,subType:_0x438142}=_0x269eaf(_0x3078e4);if('suggestion'!=_0x43e8d4)continue;if(null!=_0x34c85e['oldRange'])continue;const _0x2a7fd2=_0x1133cd['getSuggestion'](_0x35cd24);this['_tablePostFixingSubtypes']['includes'](_0x438142)&&this['_tableSuggestions']['add'](_0x2a7fd2);}},{'priority':'low'});const _0x98a3e3=(_0x39b3e7,_0x561801)=>{let _0x3085a3=!0x1;const _0xa66f93=_0x561801['createRangeOn'](_0x39b3e7),_0x45319d=_0x39b3e7['findAncestor']('table'),_0x17b8b=_0x55b0ca['getCellLocation'](_0x39b3e7);for(const _0x33fa45 of this['_tableSuggestions']){const _0x1ba5a1=_0x33fa45['subType'],_0x718233=_0x1ba5a1['startsWith']('tablePaste'),_0x4ec574=_0x1ba5a1['substr'](_0x718233?0xa:0x5),_0x3ff458=_0x4ec574['toLowerCase'](),_0x12b110=_0x3ff458['substr'](0x0,0x3)+'span',_0x155eb3='min'+_0x4ec574,_0x37c266='max'+_0x4ec574;if(!_0x33fa45['isInContent'])continue;if(_0x45319d!=_0x33fa45['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x33fa45['isIntersectingWithRange'](_0xa66f93))continue;const _0x446783=_0x39b3e7['hasAttribute'](_0x12b110)?_0x39b3e7['getAttribute'](_0x12b110)-0x1:0x0,_0xd71c25=this['_getSuggestionCoords'](_0x33fa45),_0x4ebdd4=_0xd71c25[_0x155eb3],_0x2bebce=_0xd71c25[_0x37c266];_0x4ebdd4<=_0x17b8b[_0x3ff458]&&_0x17b8b[_0x3ff458]+_0x446783<=_0x2bebce&&(_0x33fa45['addRange'](_0xa66f93),_0x3085a3=!0x0);}return _0x3085a3;};_0x149f1b['model']['document']['registerPostFixer'](_0x5e87fb=>{let _0x4a14a2=!0x1;for(const _0x22a934 of _0x149f1b['model']['document']['differ']['getChanges']())if('insert'==_0x22a934['type']){if('tableRow'==_0x22a934['name']){for(const _0x5de09b of _0x22a934['position']['nodeAfter']['getChildren']())_0x4a14a2=_0x4a14a2||_0x98a3e3(_0x5de09b,_0x5e87fb);}else'tableCell'==_0x22a934['name']&&(_0x4a14a2=_0x4a14a2||_0x98a3e3(_0x22a934['position']['nodeAfter'],_0x5e87fb));}return _0x4a14a2;});}['_getSuggestionCoords'](_0x40ced8){return this['_getCoordsForCells'](_0x40ced8['getRanges']()['map'](_0x2d5cbc=>_0x2d5cbc['start']['nodeAfter']));}}function Re(_0x4af391){return Array['from'](new Set(_0x4af391)['values']());}class Se extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x54f6fd=this['editor'],_0x49f9c5=_0x54f6fd['model']['document']['selection'],_0x31e461=_0x54f6fd['locale'];if(!_0x54f6fd['plugins']['has']('TableEditing'))return;const _0x13c530=_0x54f6fd['plugins']['get']('TrackChangesEditing'),_0x4799d4=_0x54f6fd['plugins']['get']('TableUtils'),_0x29546d=_0x54f6fd['plugins']['get'](Ne);_0x29546d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x13c530['enableCommand']('mergeTableCells',()=>{const _0x1d1660=_0x4799d4['getSelectionAffectedTableCells'](_0x54f6fd['model']['document']['selection']);_0x54f6fd['model']['change'](()=>{_0x13c530['markMultiRangeBlockFormat'](_0x1d1660,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x54f6fd['commands']['get']('mergeTableCells')['on']('execute',(_0x3a7bba,_0x417e3a)=>{_0x54f6fd['commands']['get']('trackChanges')['value']&&(_0x417e3a['length']>0x0&&_0x417e3a[_0x417e3a['length']-0x1]&&_0x417e3a[_0x417e3a['length']-0x1]['forceDefaultExecution']||_0x13c530['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a7bba['stop']());},{'priority':'highest'});for(const _0x330192 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4fa4a9=_0x54f6fd['commands']['get'](_0x330192);_0x13c530['enableCommand'](_0x330192,()=>{const _0x133a90=_0x54f6fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b52a3=>_0x3b52a3['is']('element','tableCell')),_0x5aadf1=_0x4fa4a9['value'];_0x54f6fd['model']['change'](()=>{_0x13c530['markMultiRangeBlockFormat']([_0x133a90,_0x5aadf1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3e53fe of['splitTableCellVertically','splitTableCellHorizontally']){const _0x507c89=_0x54f6fd['commands']['get'](_0x3e53fe);_0x13c530['enableCommand'](_0x3e53fe,()=>{const _0x136b47=_0x4799d4['getSelectionAffectedTableCells'](_0x54f6fd['model']['document']['selection'])[0x0],_0x34f712=_0x136b47['findAncestor']('table'),{column:_0x4e36aa,row:_0x43d1dc}=_0x4799d4['getCellLocation'](_0x136b47);let _0xa2a2ab=[];if('horizontally'==_0x507c89['direction']){const _0x1883c1=_0x4799d4['createTableWalker'](_0x34f712,{'startRow':_0x43d1dc,'endRow':_0x43d1dc,'includeAllSlots':!0x0});_0xa2a2ab=Array['from'](_0x1883c1)['map'](_0x6f91ac=>_0x6f91ac['cell']);}else{const _0xa01f8d=_0x4799d4['createTableWalker'](_0x34f712,{'column':_0x4e36aa,'includeAllSlots':!0x0});_0xa2a2ab=Array['from'](_0xa01f8d)['map'](_0x271365=>_0x271365['cell']);}_0x54f6fd['model']['change'](_0x3f4f60=>{_0x13c530['markBlockFormat'](_0x3f4f60['createRangeOn'](_0x136b47),{'commandName':_0x3e53fe,'commandParams':[]},_0xa2a2ab,_0x3e53fe);});});}_0x13c530['descriptionFactory']['registerDescriptionCallback'](_0x433b5a=>{if('formatBlock'!=_0x433b5a['type']&&'formatInline'!=_0x433b5a['type'])return;const {data:_0x3a9250}=_0x433b5a;return _0x3a9250&&'mergeTableCells'==_0x3a9250['commandName']?{'type':'format','content':At(_0x31e461,'*Merge\x20cells*')}:void 0x0;}),_0x13c530['descriptionFactory']['registerDescriptionCallback'](_0x5629f7=>{if('formatBlock'!=_0x5629f7['type']&&'formatInline'!=_0x5629f7['type'])return;const {data:_0x204a0a}=_0x5629f7;return _0x204a0a?'splitTableCellVertically'==_0x204a0a['commandName']?{'type':'format','content':At(_0x31e461,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x204a0a['commandName']?{'type':'format','content':At(_0x31e461,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5608e1=_0x29546d['_acceptFormatSuggestionCallbackFactory']();for(const _0x49b14d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x49b14d,'accept',_0x5608e1);for(const _0x59ea84 of['splitTableCellVertically','splitTableCellHorizontally'])_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x59ea84,'accept',_0x5608e1);_0x13c530['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x56b659=>{_0x54f6fd['model']['change'](_0x4a5235=>{const _0x22c3e9=Array['from'](_0x49f9c5['getRanges']())['map'](_0xa7fe98=>_0x82a6d2['fromRange'](_0xa7fe98));_0x4a5235['setSelection'](_0x56b659),_0x54f6fd['commands']['get']('mergeTableCells')['refresh'](),_0x54f6fd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x41733b=_0x22c3e9['filter'](_0x51c767=>'$graveyard'!=_0x51c767['root']['rootName']);_0x41733b['length']>0x0&&_0x4a5235['setSelection'](_0x41733b);for(const _0x3a62ab of _0x22c3e9)_0x3a62ab['detach']();});});for(const _0x4b55d0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4e5eaa=_0x54f6fd['commands']['get'](_0x4b55d0);_0x4e5eaa['on']('set:isEnabled',(_0x3246da,_0x553d8a,_0x4fc7da)=>{if(_0x4fc7da){const _0xe73219=_0x54f6fd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1c230a=>_0x1c230a['is']('element','tableCell'));this['_areMergableCells'](_0x4e5eaa['value'],_0xe73219)||(_0x3246da['return']=!0x1,_0x3246da['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4f968f=this['editor']['commands']['get']('mergeTableCells'),_0x5e5148=this['editor']['plugins']['get']('TableUtils');if(!_0x4f968f['isEnabled'])return!0x1;const _0x835cc4=_0x5e5148['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a35a8 of _0x835cc4)for(const _0x1c2d1b of _0x835cc4)if(_0x1a35a8!=_0x1c2d1b&&!this['_areMergableCells'](_0x1a35a8,_0x1c2d1b))return!0x1;return!0x0;}['_areMergableCells'](_0xb50916,_0x36dda2){const _0x1177eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcc08b7=this['editor']['model']['createRangeOn'](_0xb50916),_0x3fadbd=this['editor']['model']['createRangeOn'](_0x36dda2),_0x2c79fc=new Set(),_0x29ead6=new Set();for(const _0x52a019 of _0x1177eb['getSuggestions']())if(('insertion'==_0x52a019['type']||'deletion'==_0x52a019['type']||'mergeTableCells'==_0x52a019['subType'])&&_0x52a019['isInContent']){for(const _0x358ed5 of _0x52a019['getRanges']())_0x358ed5['containsRange'](_0xcc08b7,!0x0)&&_0x2c79fc['add'](_0x52a019['type']+':'+_0x52a019['author']['id']),_0x358ed5['containsRange'](_0x3fadbd,!0x0)&&_0x29ead6['add'](_0x52a019['type']+':'+_0x52a019['author']['id']);}if(_0x2c79fc['size']!=_0x29ead6['size'])return!0x1;for(const _0x35b9ae of _0x2c79fc)if(!_0x29ead6['has'](_0x35b9ae))return!0x1;return!0x0;}}class Me extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x655e52=this['editor'];if(!_0x655e52['plugins']['has']('TableEditing'))return;const _0x52475d=_0x655e52['locale'],_0x44156f=_0x655e52['plugins']['get']('TrackChangesEditing');_0x44156f['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x44156f['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x44156f['descriptionFactory']['registerAttributeLabel']('headingRows',At(_0x52475d,'FORMAT_HEADER_ROW')),_0x44156f['descriptionFactory']['registerAttributeLabel']('headingColumns',At(_0x52475d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b647b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9d0ce3=this['editor']['plugins']['get'](Ne)['_acceptFormatSuggestionCallbackFactory']();_0x3b647b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x9d0ce3),_0x3b647b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x9d0ce3),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x314d62=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39dbf4=this['editor']['plugins']['get']('TableUtils');function _0x4f0c81({showActiveMarker:_0x1b9130=!0x0,setDataAttribute:_0x2f3ee5=!0x0}={}){return(_0x4f9cd5,_0x4a586b,_0x98ac5e)=>{const {type:_0x4981f3,id:_0x4163e0}=_0x269eaf(_0x4a586b['markerName']);if(!_0x314d62['hasSuggestion'](_0x4163e0))return;const _0x8f08dc=_0x314d62['getSuggestion'](_0x4163e0),_0x33e44f=_0x8f08dc['data'];if('formatBlock'!=_0x8f08dc['type']||!_0x33e44f||'setTableColumnHeader'!=_0x33e44f['commandName'])return;if(_0x4a586b['item'])return void _0x4f9cd5['stop']();if(!_0x98ac5e['consumable']['consume'](_0x4a586b['markerRange'],_0x4f9cd5['name']))return;const _0x364319=_0x4a586b['markerRange']['start']['nodeAfter'],_0x468505=_0x4a586b['markerRange']['end']['nodeBefore'],_0x505d40=_0x364319['parent']['parent'],{column:_0x1e982c}=_0x39dbf4['getCellLocation'](_0x364319),{column:_0x5f1fe7}=_0x39dbf4['getCellLocation'](_0x468505);for(let _0x24d247=_0x1e982c;_0x24d247<=_0x5f1fe7;_0x24d247++){const _0x277d5a=_0x39dbf4['createTableWalker'](_0x505d40,{'column':_0x24d247,'includeAllSlots':!0x1});for(const _0x585c8b of _0x277d5a){const _0x21cd69=_0x585c8b['cell'],_0x28b1e4=_0x98ac5e['mapper']['toViewElement'](_0x21cd69);_0x98ac5e['writer']['addClass']('ck-suggestion-marker-'+_0x4981f3,_0x28b1e4),_0x2f3ee5&&_0x98ac5e['writer']['setAttribute']('data-suggestion',_0x4163e0,_0x28b1e4),_0x98ac5e['mapper']['bindElementToMarker'](_0x28b1e4,_0x4a586b['markerName']),_0x1b9130&&(_0x314d62['activeMarkers']['includes'](_0x4a586b['markerName'])?_0x98ac5e['writer']['addClass']('ck-suggestion-marker--active',_0x28b1e4):_0x98ac5e['writer']['removeClass']('ck-suggestion-marker--active',_0x28b1e4));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4f0c81(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x213fd8,_0x4a5e32,_0x5a7302)=>{_0x5a7302['options']['showSuggestionHighlights']&&_0x4f0c81({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x213fd8,_0x4a5e32,_0x5a7302);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c3609,_0x182aec,_0xe8e56f)=>{const {type:_0x2a879a,id:_0x5e6215}=_0x269eaf(_0x182aec['markerName']);if(!_0x314d62['hasSuggestion'](_0x5e6215))return;const _0x144a88=_0x314d62['getSuggestion'](_0x5e6215),_0x2ee250=_0x144a88['data'];if('formatBlock'!=_0x144a88['type']||!_0x2ee250||'setTableColumnHeader'!=_0x2ee250['commandName'])return;const _0x3e59a3=_0xe8e56f['mapper']['markerNameToElements'](_0x182aec['markerName']);if(_0x3e59a3){for(const _0x48495b of _0x3e59a3)_0xe8e56f['writer']['removeClass']('ck-suggestion-marker-'+_0x2a879a,_0x48495b),_0xe8e56f['writer']['removeClass']('ck-suggestion-marker--active',_0x48495b),_0xe8e56f['writer']['removeAttribute']('data-suggestion',_0x48495b),_0xe8e56f['mapper']['unbindElementFromMarkerName'](_0x48495b,_0x182aec['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3cf02f=this['editor'],_0x4fe9e3=_0x3cf02f['locale'];function _0x53d946(_0x3123b7){return{'type':'format','content':At(_0x4fe9e3,'*Format:*\x20%0',_0x3123b7)};}_0x3cf02f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10be77=>{if('formatBlock'!=_0x10be77['type'])return;const {data:_0x651515}=_0x10be77;if(_0x651515){if('setTableRowHeader'==_0x651515['commandName']){const _0x1f079b=_0x651515['commandParams'][0x0]['forceValue'];return _0x53d946(At(_0x4fe9e3,_0x1f079b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x651515['commandName']){const _0x3292fa=_0x651515['commandParams'][0x0]['forceValue'];return _0x53d946(At(_0x4fe9e3,_0x3292fa?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Oe extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x1b709f=this['editor'];if(!_0x1b709f['plugins']['has']('TableEditing')||!_0x1b709f['config']['get']('table.enableFooters'))return;const _0x61595d=_0x1b709f['locale'],_0x4da7d4=_0x1b709f['plugins']['get']('TrackChangesEditing');_0x4da7d4['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x4da7d4['descriptionFactory']['registerAttributeLabel']('footerRows',At(_0x61595d,'FORMAT_FOOTER_ROW'));}}class we extends _0x957e03{['afterInit'](){const _0x18acb1=this['editor'],_0x18244a=_0x18acb1['locale'],_0x5a82ed=_0x18acb1['plugins']['get']('TrackChangesEditing');function _0xca6de(_0x4397db){return{'type':'format','content':''+At(_0x18244a,'*Set\x20table\x20type:*\x20%0',_0x4397db)};}_0x18acb1['plugins']['has']('TableLayout')&&(_0x5a82ed['enableCommand']('insertTableLayout'),_0x5a82ed['enableDefaultAttributesIntegration']('tableType'),_0x5a82ed['descriptionFactory']['registerElementLabel'](_0x1ca71a=>_0x1ca71a['is']('element','table')&&'layout'===_0x1ca71a['getAttribute']('tableType'),_0x434558=>At(_0x18244a,'ELEMENT_LAYOUT_TABLE',_0x434558)),_0x5a82ed['descriptionFactory']['registerDescriptionCallback'](_0xaf5cc=>{const {data:_0x52a775}=_0xaf5cc;if(_0x52a775&&'tableType'==_0x52a775['key'])switch(_0x52a775['newValue']){case'layout':return _0xca6de(At(_0x18244a,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xca6de(At(_0x18244a,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Fe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0x19fbf3=>[_0x19fbf3,null]));class De extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x5eb636=this['editor'];if(!_0x5eb636['plugins']['has']('TableClipboard'))return;const _0x19ca08=_0x5eb636['plugins']['get']('TrackChangesEditing'),_0x5ebf29=_0x5eb636['plugins']['get']('TableUtils'),_0x5c81b5=_0x5eb636['plugins']['get'](Ne),_0x3353aa=_0x5eb636['plugins']['get']('TableClipboard'),_0x3a4da7=_0x5eb636['plugins']['get']('TableSelection'),_0x4d384a=_0x5eb636['plugins']['get'](ut);_0x5c81b5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5eb636['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5eb636['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8287ed=null,_0x116d0b=!0x1;_0x4d384a['on']('contentInsertion',(_0x78aedc,_0x1b0d9c)=>{_0x116d0b='paste'===_0x1b0d9c['method'];}),_0x5eb636['model']['on']('insertContent',(_0x88680f,_0x14589f)=>{if(!_0x116d0b&&null===_0x3a4da7['getSelectedTableCells']())return;const [_0x4af015,_0x51e952]=_0x14589f,_0x5584d9=_0x14589f[_0x14589f['length']-0x1];_0x5584d9&&_0x5584d9['forceDefaultExecution']||_0x19ca08['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4c097c,_0x2a0001,_0x4ad3d5,_0x4c9fe7,_0x1c95a1){if(_0x2a0001&&!_0x2a0001['is']('documentSelection'))return!0x1;const _0x3ae296=_0x1c95a1['getTableIfOnlyTableInContent'](_0x4c097c,_0x4ad3d5);if(!_0x3ae296||!xe(_0x3ae296,void 0x0,_0x4c9fe7))return!0x1;const _0x2f6914=_0x4c9fe7['getSelectionAffectedTableCells'](_0x4ad3d5['document']['selection']);if(!_0x2f6914['length'])return!0x1;const _0x21bfe6=_0x2f6914[0x0]['findAncestor']('table'),_0x3e2add=_0x4c9fe7['getRowIndexes'](_0x2f6914),_0x4e723d=_0x4c9fe7['getColumnIndexes'](_0x2f6914),_0xf84264={'startRow':_0x3e2add['first'],'endRow':_0x3e2add['last'],'startColumn':_0x4e723d['first'],'endColumn':_0x4e723d['last']};return 0x1==_0x2f6914['length']&&(_0xf84264['endRow']+=_0x4c9fe7['getRows'](_0x3ae296)-0x1,_0xf84264['endColumn']+=_0x4c9fe7['getColumns'](_0x3ae296)-0x1),xe(_0x21bfe6,_0xf84264,_0x4c9fe7);}(_0x4af015,_0x51e952,_0x5eb636['model'],_0x5ebf29,_0x3353aa)&&(_0x88680f['stop'](),_0x8287ed={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5eb636['model']['change'](()=>{_0x5eb636['model']['insertContent'](_0x14589f[0x0],_0x14589f[0x1],_0x14589f[0x2],{'forceDefaultExecution':!0x0});const _0x4a8d29=_0x10b1ba(),{rowInsertionRanges:_0x20e076,columnInsertionRanges:_0x52acb5,insertionRanges:_0x223739,deletionRanges:_0x509ec7,cells:_0x4652bf}=_0x8287ed;_0x20e076['length']&&_0x19ca08['markMultiRangeInsertion'](_0x20e076,'tablePasteRow',{'tablePasteChainId':_0x4a8d29}),_0x52acb5['length']&&_0x19ca08['markMultiRangeInsertion'](_0x52acb5,'tablePasteColumn',{'tablePasteChainId':_0x4a8d29}),_0x223739['length']&&(_0x19ca08['markMultiRangeInsertion'](_0x223739,'tablePaste',{'tablePasteChainId':_0x4a8d29,'skipNestingCheck':!0x0}),_0x223739['forEach'](_0x323f28=>_0x323f28['detach']?.())),_0x509ec7['length']&&(_0x19ca08['markMultiRangeDeletion'](_0x509ec7,'tablePaste',{'tablePasteChainId':_0x4a8d29,'skipNestingCheck':!0x0}),_0x509ec7['forEach'](_0x2e144d=>_0x2e144d['detach']?.()));const _0x1566e8=_0x19ca08['markMultiRangeBlockFormat'](_0x4652bf['map'](({element:_0x327128})=>_0x327128),{'formatGroupId':_0x10b1ba()},[],'tablePasteCell',{'tablePasteChainId':_0x4a8d29});if(_0x1566e8){const _0x20a23e=_0x1566e8['getMarkers'](),_0x1f4fd7=[];for(const {element:_0x725544,attributes:_0x2d3717}of _0x4652bf){if(!_0x2d3717)continue;const _0x274ed5=_0x5eb636['model']['createRangeOn'](_0x725544),_0x3a37de=_0x20a23e['find'](_0x65b992=>_0x65b992['getRange']()['isEqual'](_0x274ed5));_0x3a37de&&_0x1f4fd7['push']([_0x3a37de['name'],_0x2d3717]);}_0x1f4fd7['length']&&_0x1566e8['setAttribute']('markerAttributes',Object['fromEntries'](_0x1f4fd7));}_0x8287ed=null;}));},{'priority':_0x44e75e['high']+0xa}),_0x4d384a['on']('contentInsertion',()=>{_0x116d0b=!0x1;},{'priority':'lowest'}),_0x5eb636['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x9bce11,_0x5d47f8)=>{const [_0x2f92b9,_0x817921,,_0x564057]=_0x5d47f8;if(!_0x8287ed)return;_0x9bce11['stop']();const _0x11a4c6=_0x2f92b9['cell'],_0x5292db=_0x817921,_0x52feb4=ve(_0x11a4c6),_0x5282ba=ve(_0x5292db);_0x9bce11['return']=_0x11a4c6;let _0x482d87=null,_0x2ff8fa=null;if(_0x5282ba||_0x52feb4){if(_0x52feb4&&!_0x5282ba){_0x564057['remove'](_0x11a4c6['getChild'](0x0));for(const _0x217a43 of Array['from'](_0x5292db['getChildren']()))_0x564057['insert'](_0x217a43,_0x11a4c6,'end');const _0x5b639a=_0x8287ed['rowInsertionIndexes']['includes'](_0x2f92b9['row']),_0x32b3fa=_0x8287ed['columnInsertionIndexes']['includes'](_0x2f92b9['column']);_0x5b639a||_0x32b3fa||(_0x482d87=_0x82a6d2['fromRange'](_0x564057['createRangeIn'](_0x11a4c6)));}else _0x5282ba&&!_0x52feb4&&(_0x2ff8fa=_0x564057['createRangeIn'](_0x11a4c6));}else{const _0x56eb5b=_0x564057['createElement']('tableCellSuggestion'),_0x33f43c=_0x564057['createElement']('tableCellSuggestion');_0x564057['wrap'](_0x564057['createRangeIn'](_0x11a4c6),_0x33f43c),_0x564057['insert'](_0x56eb5b,_0x11a4c6,0x0);for(const _0x456ac4 of Array['from'](_0x5292db['getChildren']()))_0x564057['insert'](_0x456ac4,_0x56eb5b,'end');_0x482d87=_0x82a6d2['fromRange'](_0x564057['createRangeOn'](_0x56eb5b)),_0x2ff8fa=_0x82a6d2['fromRange'](_0x564057['createRangeOn'](_0x33f43c));}const _0x384ad2=Array['from'](_0x5292db['getAttributes']())['filter'](([_0xff424c])=>Be['includes'](_0xff424c));_0x8287ed['cells']['push']({'element':_0x11a4c6,'attributes':_0x384ad2['length']?Object['fromEntries'](_0x384ad2):null}),_0x482d87&&_0x8287ed['insertionRanges']['push'](_0x482d87),_0x2ff8fa&&_0x8287ed['deletionRanges']['push'](_0x2ff8fa);},{'priority':'high'}),_0x5ebf29['on']('insertColumns',(_0x5a4f0f,_0xd4e4fd)=>{const [_0x263567,_0x387ece={}]=_0xd4e4fd;if(!_0x8287ed)return;const _0x469ba7=_0x387ece['at']||0x0,_0x4c73c1=_0x387ece['columns']||0x1;_0x8287ed['columnInsertionIndexes']=new Array(_0x4c73c1)['fill'](_0x469ba7)['map']((_0x428426,_0x449c0f)=>_0x428426+_0x449c0f);for(const {cell:_0xff8352}of _0x5ebf29['createTableWalker'](_0x263567,{'startColumn':_0x469ba7,'endColumn':_0x469ba7+_0x4c73c1-0x1}))_0x8287ed['columnInsertionRanges']['push'](_0x5eb636['model']['createRangeOn'](_0xff8352));},{'priority':'low'}),_0x5ebf29['on']('insertRows',(_0x35e3c1,_0x3feaaa)=>{const [_0x247205,_0x10e2f8={}]=_0x3feaaa;if(!_0x8287ed)return;const _0x985239=_0x10e2f8['at']||0x0,_0x16a398=_0x10e2f8['rows']||0x1;_0x8287ed['rowInsertionIndexes']=new Array(_0x16a398)['fill'](_0x985239)['map']((_0x435f42,_0x251729)=>_0x435f42+_0x251729);for(const {cell:_0x550235}of _0x5ebf29['createTableWalker'](_0x247205,{'startRow':_0x985239,'endRow':_0x985239+_0x16a398-0x1}))_0x8287ed['rowInsertionRanges']['push'](_0x5eb636['model']['createRangeOn'](_0x550235));},{'priority':'low'}),_0x19ca08['descriptionFactory']['registerDescriptionCallback'](_0x1f301b=>{if(_0x1f301b['subType']&&_0x1f301b['subType']['startsWith']('tablePaste'))return _0x1f301b['previous']?{}:{'type':'insertion','content':At(_0x5eb636['locale'],'*Replace\x20table\x20cells*')};});const _0x3c7908=()=>!0x1;for(const _0x239f1b of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion',_0x239f1b,'join',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('deletion',_0x239f1b,'join',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x239f1b,'join',_0x3c7908);_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3c7908),_0x19ca08['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36f637,_0x4d2317,_0x4540ee)=>{const _0x28ecb2=_0x36f637['map'](_0x432276=>_0x432276['getContainedElement']())['filter'](_0x457d62=>_0x457d62),_0x58723f=new Map(_0x28ecb2['map'](_0x340d0e=>[_0x340d0e,null]));if(_0x8287ed){for(const {element:_0x10ac63,attributes:_0x38e97b}of _0x8287ed['cells'])_0x38e97b&&_0x58723f['set'](_0x10ac63,_0x38e97b);}else{if(_0x4540ee&&_0x4540ee['markerAttributes'])for(const [_0x1075e1,_0x9d824a]of Object['entries'](_0x4540ee['markerAttributes'])){const _0x42cd00=_0x5eb636['model']['markers']['get'](_0x1075e1),_0x455ecf=_0x42cd00?_0x42cd00['getRange']()['getContainedElement']():null;_0x455ecf&&_0x58723f['set'](_0x455ecf,_0x9d824a);}}_0x5eb636['model']['change'](_0x4228ae=>{for(const [_0x277698,_0x27577d]of _0x58723f)_0x4228ae['setAttributes']({...Fe,..._0x27577d},_0x277698);});});const _0x3e1300=(_0x40196b,_0x183808)=>{_0x19ca08['_suggestionFactory']['registerCustomCallback'](_0x40196b,'tablePaste',_0x183808,(_0x431666,_0x1e657c,_0x1103d0)=>{_0x5eb636['model']['change'](_0x22f754=>{const _0x388533=[];for(const _0x6ca40d of _0x431666){const _0x363f16=_0x6ca40d['start']['nodeAfter'];_0x363f16['is']('element','tableCellSuggestion')&&_0x388533['push'](_0x363f16);}_0x19ca08['_suggestionFactory']['getSuggestionCallback'](_0x40196b,null,_0x183808)(_0x431666,_0x1e657c,_0x1103d0);for(const _0x5cb265 of _0x388533)'$graveyard'!=_0x5cb265['root']['rootName']&&_0x22f754['unwrap'](_0x5cb265);});});};_0x3e1300('insertion','accept'),_0x3e1300('insertion','discard'),_0x3e1300('deletion','accept'),_0x3e1300('deletion','discard'),_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x369259=>{const _0x20797=_0x369259['map'](_0x4628a2=>_0x4628a2['getContainedElement']()),_0x5df5f8=_0x20797[0x0]['findAncestor']('table'),{minRow:_0x68df25,maxRow:_0x2a7a6b}=_0x5c81b5['_getCoordsForCells'](_0x20797);_0x5ebf29['removeRows'](_0x5df5f8,{'at':_0x68df25,'rows':_0x2a7a6b-_0x68df25+0x1});}),_0x19ca08['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x512a63=>{const _0xbf552e=_0x512a63['map'](_0x225874=>_0x225874['getContainedElement']()),_0x5be358=_0xbf552e[0x0]['findAncestor']('table'),{minColumn:_0x3111a7,maxColumn:_0x48b534}=_0x5c81b5['_getCoordsForCells'](_0xbf552e);_0x5ebf29['removeColumns'](_0x5be358,{'at':_0x3111a7,'columns':_0x48b534-_0x3111a7+0x1});});const _0x443021=(_0x3f871a,_0x5f5da0)=>{if(!_0x5f5da0['subType']||!_0x5f5da0['subType']['startsWith']('tablePaste'))return;const _0x56dbd3=_0x5f5da0['attributes']['tablePasteChainId'],_0x4f943c=_0x19ca08['getSuggestions']()['filter'](_0x38bdcb=>_0x38bdcb['isInContent']&&_0x38bdcb['attributes']&&_0x38bdcb['attributes']['tablePasteChainId']==_0x56dbd3);_0x4f943c['length']&&_0x5f5da0['getAllAdjacentSuggestions']()['length']!=_0x4f943c['length']&&_0x4f943c['reduce']((_0x4b870e,_0x171b54)=>(_0x4b870e['next']=_0x171b54,_0x171b54['previous']=_0x4b870e,_0x171b54));};function _0xf1fa42(_0x48d128,_0x2fba8b=!0x0){const {id:_0x2b87e9,authorId:_0x1f329a}=_0x269eaf(_0x48d128['markerName']),_0x381f24=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xceb3e6=_0x19ca08['activeMarkers']['includes'](_0x48d128['markerName']);return _0xceb3e6&&_0x381f24['push']('ck-suggestion-marker--active'),{'classes':_0x381f24,'attributes':{'data-suggestion':_0x2b87e9,'data-author-id':_0x1f329a},'priority':_0xceb3e6&&_0x2fba8b?0xbc2:0xbb8};}_0x19ca08['on']('suggestionLoaded',_0x443021,{'priority':'high'}),_0x19ca08['on']('suggestionUnloaded',_0x443021,{'priority':'high'}),_0x5eb636['model']['document']['registerPostFixer'](()=>{let _0x29f483=!0x1;const _0x1fd507=Array['from'](_0x5eb636['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x404a8e,data:_0x455990}of _0x1fd507){const {group:_0x181d59,type:_0x5cb2cc,id:_0x2311e9}=_0x269eaf(_0x404a8e);if('suggestion'!=_0x181d59||'deletion'!=_0x5cb2cc||_0x455990['oldRange'])continue;if(!_0x19ca08['hasSuggestion'](_0x2311e9))continue;const _0x150c30=_0x19ca08['getSuggestion'](_0x2311e9)['getRanges'](),_0x157c47=_0x5eb636['plugins']['get']('Users')['me'];for(const _0xa46881 of _0x19ca08['getSuggestions']()){if(!_0xa46881['isInContent']||_0xa46881['author']!=_0x157c47)continue;if('formatBlock'!=_0xa46881['type']||'tablePasteCell'!=_0xa46881['subType'])continue;if(_0xa46881['getRanges']()['every'](_0x3ed9fb=>_0x150c30['some'](_0x40b822=>_0x40b822['containsRange'](_0x3ed9fb,!0x0)))){for(const _0x5cf0fb of _0xa46881['getAllAdjacentSuggestions']())_0x5cf0fb['isInContent']&&(_0x5cf0fb['discard'](),_0x29f483=!0x0);}}}return _0x29f483;}),_0x5eb636['model']['document']['registerPostFixer'](_0x53e26b=>{const _0x779bcb=_0x5eb636['commands']['get']('redo');if(!_0x779bcb||!_0x779bcb['_createdBatches']['has'](_0x53e26b['batch']))return!0x1;let _0x3f0165=!0x1;const _0x83da9=_0x5eb636['plugins']['get']('Users')['me'],_0x48acfe=_0x5eb636['model']['document']['differ']['getChanges'](),_0x30159a=Array['from'](_0x5eb636['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4baae5,data:_0xe866db})=>{const {group:_0x5ab210,subType:_0x2a749d,authorId:_0x252487}=_0x269eaf(_0x4baae5);return'suggestion'==_0x5ab210&&'tablePaste'==_0x2a749d&&_0x252487==_0x83da9['id']&&!_0xe866db['oldRange'];});for(const _0x41e40d of _0x48acfe){if('insert'!=_0x41e40d['type']||'tableCellSuggestion'!=_0x41e40d['name']||0x1!=_0x41e40d['length'])continue;const _0x23e3a0=_0x53e26b['createRange'](_0x41e40d['position'],_0x41e40d['position']['getShiftedBy'](0x1));if(!_0x30159a['find'](({data:_0x32f21e})=>_0x32f21e['newRange']['isEqual'](_0x23e3a0))){for(const {name:_0x17a46c,data:_0x8204d4}of _0x30159a)if(_0x23e3a0['containsRange'](_0x8204d4['newRange'])){_0x53e26b['updateMarker'](_0x17a46c,{'range':_0x23e3a0}),_0x3f0165=!0x0;break;}}}return _0x3f0165;}),_0x5eb636['model']['document']['registerPostFixer'](_0x399024=>{let _0x437060=!0x1;const _0xb80005=_0x5eb636['plugins']['get']('Users')['me'],_0xd21c05=_0x19ca08['getSuggestions']()['filter'](_0xc2fcaa=>_0xc2fcaa['isInContent']&&_0xc2fcaa['author']==_0xb80005),_0x3ce747=new Set(),_0x31047e=new Set();for(const _0x524767 of _0xd21c05)if('tablePaste'==_0x524767['subType'])for(const _0x24c94a of _0x524767['getMarkers']()){const _0x213647=_0x24c94a['getRange']()['getContainedElement']();if(_0x213647){if(_0x213647['is']('element','tableCellSuggestion')&&ve(_0x213647)){_0x524767['removeMarker'](_0x24c94a['name']),_0x3ce747['add'](_0x213647),_0x437060=!0x0;const _0x2e99a0=_0x213647['nextSibling'],_0xdaee=_0x213647['previousSibling'],_0xb90763=_0x2e99a0&&_0x2e99a0['is']('element','tableCellSuggestion'),_0x34d970=_0xdaee&&_0xdaee['is']('element','tableCellSuggestion');_0xb90763&&!_0x3ce747['has'](_0x2e99a0)&&_0x31047e['add'](_0x2e99a0),_0x34d970&&!_0x3ce747['has'](_0xdaee)&&_0x31047e['add'](_0xdaee);}else _0x213647['is']('element','paragraph')&&_0x213647['isEmpty']&&(_0x524767['removeMarker'](_0x24c94a['name']),_0x437060=!0x0);}}else{if('tablePasteCell'==_0x524767['subType']){if(!_0x524767['attributes']||!_0x524767['attributes']['tablePasteChainId'])continue;const _0x317f4a=_0x524767['attributes']['markerAttributes'];if(_0x317f4a&&Object['keys'](_0x317f4a)['length'])continue;const _0x608200=_0x524767['attributes']['tablePasteChainId'];let _0x588512=!0x0,_0x20bd39=!0x0;for(const _0x53d353 of _0xd21c05)if(_0x53d353['subType']&&_0x53d353['subType']['startsWith']('tablePaste')){if(!_0x53d353['attributes']['tablePasteChainId']){_0x20bd39=!0x1;break;}if(_0x53d353['id']!=_0x524767['id']&&_0x53d353['attributes']['tablePasteChainId']==_0x608200){_0x588512=!0x1;break;}}_0x20bd39&&_0x588512&&(_0x524767['removeMarkers'](),_0x437060=!0x0);}}for(const _0x1aab68 of _0x3ce747)_0x399024['remove'](_0x1aab68);for(const _0x45900f of _0x31047e)_0x399024['unwrap'](_0x45900f);return _0x437060;}),_0x5eb636['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd1edcd=>_0xf1fa42(_0xd1edcd),'converterPriority':'high'}),_0x5eb636['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4edd12,_0x6504a3)=>_0x6504a3['options']['showSuggestionHighlights']?_0xf1fa42(_0x4edd12,!0x1):null,'converterPriority':'high'});const _0x49c7bb=_0x5eb636['editing']['view'];this['listenTo'](_0x49c7bb['document'],'clipboardOutput',(_0x3fb33e,_0x258dc2)=>{const _0x10d80b=[];for(const _0x24afce of _0x49c7bb['createRangeIn'](_0x258dc2['content'])['getItems']())_0x24afce['is']('element','suggestion-td')&&_0x10d80b['push'](_0x24afce);_0x49c7bb['change'](_0x5609ef=>{for(const _0xfde084 of _0x10d80b)_0x5609ef['move'](_0x5609ef['createRangeIn'](_0xfde084),_0x5609ef['createPositionBefore'](_0xfde084)),_0x5609ef['remove'](_0xfde084);});});}}function ve(_0x19a60d){if(_0x19a60d['isEmpty'])return!0x0;const _0x33ba09=_0x19a60d['getChild'](0x0);return _0x33ba09['is']('element','paragraph')&&_0x33ba09['isEmpty'];}function xe(_0x52b02b,_0x119abe={},_0x336279){for(const {isAnchor:_0x26c95b,cellHeight:_0x37052d,cellWidth:_0x29858c}of _0x336279['createTableWalker'](_0x52b02b,{'includeAllSlots':!0x0,..._0x119abe}))if(!_0x26c95b||0x1!=_0x37052d||0x1!=_0x29858c)return!0x1;return!0x0;}class Pe extends _0x957e03{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x367aef=this['editor']['plugins']['get']('TrackChangesEditing');_0x367aef['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x367aef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x367aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x367aef['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x367aef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x367aef['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xcfdecc,_0x469a70){const _0x5850ab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a9237=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x54d2be=_0x469a70['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5bf223=_0x2a9237['getColumnGroupElement'](_0x54d2be);let _0xb1f675=_0x5bf223?_0x2a9237['getTableColumnsWidths'](_0x5bf223):null,_0x2a940f=_0x54d2be['getAttribute']('tableWidth')||null;const _0x375c06=_0x469a70['tableWidth']||_0x2a940f,_0x28f782=_0x469a70['columnWidths']||_0xb1f675,_0x26a099=this['editor']['plugins']['get']('Users')['me'];for(const _0x4b320f of _0x5850ab['getSuggestions']()){const _0x15c7b2=_0x4b320f['getContainedElement']();if('resizeTable'===_0x4b320f['subType']&&_0x15c7b2===_0x54d2be){_0x4b320f['author']!==_0x26a099&&_0x4b320f['discard']();const _0x578bc0=_0x4b320f['data']['commandParams'];_0x2a940f=_0x578bc0[0x0]['tableWidth'],_0xb1f675=_0x578bc0[0x0]['columnWidths'];break;}}_0xcfdecc({'table':_0x54d2be,'tableWidth':_0x375c06,'columnWidths':_0x28f782}),_0x5850ab['markBlockFormat'](_0x54d2be,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a940f,'columnWidths':_0xb1f675}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xb977d8){if('formatBlock'!=_0xb977d8['type']&&'formatInline'!=_0xb977d8['type'])return;const {data:_0x14e275}=_0xb977d8;if(_0x14e275&&'resizeTable'===_0x14e275['formatGroupId']){const _0x122a7b='*Format:*\x20resize\x20table';return{'type':'format','content':At(this['editor']['locale'],_0x122a7b)};}}}class Ue extends _0x957e03{['afterInit'](){const _0x3303e5=this['editor'];_0x3303e5['plugins']['has']('Template')&&_0x3303e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ge extends _0x957e03{['afterInit'](){const _0x26231b=this['editor'];if(!_0x26231b['commands']['get']('insertTableOfContents'))return;_0x26231b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x53d039=_0x26231b['plugins']['get']('TrackChangesEditing'),_0x2ff102=_0x26231b['locale'];_0x53d039['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1327f9=>At(_0x2ff102,'ELEMENT_TABLE_OF_CONTENTS',_0x1327f9));}}class He extends _0x957e03{['afterInit'](){const _0x550b71=this['editor'];if(!_0x550b71['plugins']['has']('Title'))return;_0x550b71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>At(_0x550b71['locale'],'ELEMENT_TITLE')),_0x550b71['model']['document']['registerPostFixer'](_0x1d9a7b=>{let _0x24fa84=!0x1;const _0x54c8ff=Array['from'](_0x550b71['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35b164,data:_0x34d726}of _0x54c8ff){const {group:_0x13e877}=_0x269eaf(_0x35b164);if('suggestion'!==_0x13e877||!_0x34d726['newRange'])continue;const _0x5a40e1=_0x34d726['newRange'],_0x23dfa1=_0x5a40e1['end']['nodeBefore'];if(!_0x23dfa1||!_0x23dfa1['is']('element','title-content'))continue;if(!_0x5a40e1['start']['isTouching'](_0x5a40e1['end']))continue;const _0x5b666c=_0x550b71['model']['schema']['getNearestSelectionRange'](_0x5a40e1['end'],'forward');if(_0x5b666c&&_0x5b666c['isCollapsed']){const _0x211773=_0x1d9a7b['createRange'](_0x5a40e1['start'],_0x5b666c['start']);_0x211773['isEqual'](_0x5a40e1)||(_0x1d9a7b['updateMarker'](_0x35b164,{'range':_0x211773}),_0x24fa84=!0x0);}_0x24fa84||(_0x1d9a7b['removeMarker'](_0x35b164),_0x24fa84=!0x0);}return _0x24fa84;});}}class $e extends _0x957e03{['afterInit'](){const _0x5c7736=this['editor'],_0x2edb47=_0x5c7736['plugins']['get']('TrackChangesEditing');_0x5c7736['plugins']['has']('Uploadcare')&&(_0x2edb47['enableCommand']('uploadcare'),_0x5c7736['plugins']['has']('UploadcareImageEdit')&&(_0x2edb47['enableCommand']('uploadcareImageEdit'),_0x2edb47['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2edb47['descriptionFactory']['registerDescriptionCallback'](_0x30f816=>{if('attribute'!=_0x30f816['type'])return;const {data:_0x474bfb}=_0x30f816;return _0x474bfb&&'uploadcareImageId'==_0x474bfb['key']?{'type':'format','content':''}:void 0x0;})));}}class We extends _0x957e03{['afterInit'](){const _0x3e0fca=this['editor'],_0x34e91b=_0x3e0fca['plugins']['get']('TrackChangesEditing');_0x3e0fca['plugins']['has']('UndoEditing')&&(_0x34e91b['enableCommand']('undo'),_0x34e91b['enableCommand']('redo'));}}class Ve extends _0x957e03{static get['requires'](){return[Ne];}['afterInit'](){const _0x43c5ae=this['editor'];if(!_0x43c5ae['plugins']['has']('TableCaptionEditing'))return;_0x43c5ae['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class je extends _0x957e03{['tableProperties'];['tableCellProperties'];constructor(_0x1edcac){super(_0x1edcac),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 _0x6798d8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x43fe51 of this['tableProperties'])_0x6798d8['enableCommand'](_0x43fe51,(_0x5135e9,_0x1ad9f9)=>{const _0xd2ea2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x43fe51,[_0xd2ea2],this['tableProperties'],'tableProperties',_0x5135e9,_0x1ad9f9);});_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x6798d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4186fb,_0x2b9db1)=>this['handleDiscardAction'](this['tableProperties'],_0x4186fb,_0x2b9db1)),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1d2770 of this['tableCellProperties'])this['editor']['commands']['get'](_0x1d2770)&&_0x6798d8['enableCommand'](_0x1d2770,(_0x345a9d,_0x49b760)=>{const _0x2aa236=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1d2770,_0x2aa236,this['tableCellProperties'],'tableCellProperties',_0x345a9d,_0x49b760);});_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x6798d8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3be31f,_0x48fbd0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3be31f,_0x48fbd0)),_0x6798d8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x6798d8['descriptionFactory']['registerAttributeLabel']('tableCellType',At(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x6798d8['descriptionFactory']['registerDescriptionCallback'](_0x5b6643=>this['handleSuggestionDescription'](_0x5b6643)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3f4156,_0xce2445,_0x326343,_0x3c1bc0,_0x4e9126,_0x3e8f2b){const _0xd66d9a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3e8f2b['batch'],()=>{for(const _0xed7cb4 of _0xce2445){if(this['_getSuggestion'](_0xed7cb4,_0x3c1bc0))_0x4e9126(_0x3e8f2b);else{const _0x115f1c={};for(const _0x3b45c3 of _0x326343){const _0x394c10=_0xed7cb4['getAttribute'](_0x3b45c3);void 0x0!==_0x394c10&&(_0x115f1c[_0x3b45c3]=_0x394c10);}_0x4e9126(_0x3e8f2b),_0xd66d9a['markBlockFormat'](_0xed7cb4,{'commandParams':[_0x115f1c]},[],_0x3c1bc0);}}});}['handleDiscardAction'](_0x5d4e70,_0x3dcd27,_0x232c69){const _0x366158=_0x3dcd27[0x0]['start']['nodeAfter'],_0xafda17=_0x232c69['commandParams'][0x0];this['editor']['model']['change'](_0x2befc1=>{for(const _0x12b428 of _0x5d4e70)void 0x0!==_0xafda17[_0x12b428]?_0x2befc1['setAttribute'](_0x12b428,_0xafda17[_0x12b428],_0x366158):_0x2befc1['removeAttribute'](_0x12b428,_0x366158);});}['handleSuggestionDescription'](_0x321919){if(_0x321919['data'])switch(_0x321919['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'](_0x5d6dee,_0x2a9219){const _0x3e55d7=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3514b7 of _0x3e55d7['getSuggestions']({'skipNotAttached':!0x0})){const _0x39f355=_0x3514b7['getContainedElement']();if(_0x3514b7['subType']===_0x2a9219&&_0x39f355===_0x5d6dee)return _0x3514b7;}return null;}['_registerTablePropertiesAttributes'](){const _0x246470=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1646e4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4762f5 of _0x1646e4){const _0x2bf208=_0x4762f5['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x246470['descriptionFactory']['registerAttributeLabel'](_0x4762f5,At(this['editor']['locale'],'FORMAT_'+_0x2bf208));}}}class ze extends _0x957e03{['afterInit'](){const _0x50dd8e=this['editor'];if(!_0x50dd8e['plugins']['has']('LineHeight'))return;const _0x188359=_0x50dd8e['plugins']['get']('TrackChangesEditing'),_0x10343a=_0x50dd8e['locale'];_0x188359['enableDefaultAttributesIntegration']('lineHeight'),_0x188359['descriptionFactory']['registerAttributeLabel']('lineHeight',At(_0x10343a,'FORMAT_LINE_HEIGHT'));}}const Ke='$elementName';class Xe extends _0x957e03{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x552cbc,_0x59977f,_0x552f83,_0x2bb4eb,_0x42784c,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(_0x44b65d){super(_0x44b65d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3445a4,_0x1e5c97,_0x3a9b8d,_0x165648)=>{this['_model']['change'](()=>{for(const _0x2928f6 of[..._0x165648,..._0x3a9b8d])this['_model']['markers']['has'](_0x2928f6)&&_0x44b65d['editing']['reconvertMarker'](_0x2928f6);});}),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']=_0x44b65d['plugins']['get'](_0x552cbc),this['_suggestionsConversion']=_0x44b65d['plugins']['get'](_0x59977f),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x44b65d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x44b65d['config']['get']('trackChanges.trackFormatChanges'),_0x44b65d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x44b65d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new ht(_0x44b65d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x41a3e7=this['editor'];_0x41a3e7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b8427,{writer:_0x2cf116})=>{let _0x277ff6='suggestion:'+_0x3b8427['getAttribute']('suggestion-type')+':'+_0x3b8427['getAttribute']('id');return _0x3b8427['getAttribute']('marker-count')&&(_0x277ff6+=':'+_0x3b8427['getAttribute']('marker-count')),_0x2cf116['createElement']('$marker',{'data-name':_0x277ff6});}}),_0x41a3e7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x41a3e7['model']['document']['registerPostFixer'](_0x4d2947=>{let _0x1ab184=!0x1;const _0x4ae830=Array['from'](_0x41a3e7['model']['document']['differ']['getChangedMarkers']()),_0x4f27a4=new Set();for(const {name:_0x5142b6,data:_0x241868}of _0x4ae830){const {group:_0x18adb2,type:_0x24a062,subType:_0x461568,id:_0x346898}=_0x269eaf(_0x5142b6);if('suggestion'!==_0x18adb2)continue;const _0x3a7f65=_0x461568?'suggestion:'+_0x24a062+':'+_0x461568+':'+_0x346898:'suggestion:'+_0x24a062+':'+_0x346898,_0x47f72b=_0x41a3e7['model']['markers']['getMarkersGroup'](_0x3a7f65),_0xa4b7f0=_0x41a3e7['model']['markers']['get'](_0x5142b6),_0x561e20=this['_suggestions']['get'](_0x346898);if(null!=_0x241868['newRange']){'formatInline'==_0x24a062&&(_0x1ab184=_0x1ab184||Ze(_0x241868['newRange'],_0x5142b6,_0x4d2947,_0x41a3e7['model']['schema']));const _0x11e57f='attribute'==_0x24a062&&this['_suggestionsConversion']['isBlockAttribute'](un(_0x461568)),_0x559f92='attribute'==_0x24a062&&this['_suggestionsConversion']['isInlineAttribute'](un(_0x461568));if(_0x241868['newRange']['isCollapsed']||'$graveyard'==_0x241868['newRange']['root']['rootName']||'formatBlock'==_0x24a062&&!tn(_0x241868['newRange'])||_0x11e57f&&!tn(_0x241868['newRange'])||_0x559f92&&en(_0x241868['newRange'])||'deletion'==_0x24a062&&en(_0x241868['newRange'])||_0xa4b7f0&&nn(_0xa4b7f0,_0x47f72b))_0x4d2947['removeMarker'](_0x5142b6),_0x1ab184=!0x0;else{if(!_0x561e20||!_0x561e20['isInContent'])continue;if(_0x241868['newRange']&&_0x241868['oldRange']&&_0x241868['newRange']['isEqual'](_0x241868['oldRange']))continue;_0x4f27a4['add'](_0x561e20);}}}return _0x4f27a4['size']>0x0&&(_0x1ab184=!!this['_joinWithAdjacentSuggestions'](_0x4f27a4)||_0x1ab184),_0x1ab184;}),_0x41a3e7['model']['document']['registerPostFixer'](_0x382be7=>{let _0x473338=!0x1;for(const _0xda84a4 of _0x41a3e7['model']['document']['differ']['getChanges']())if('insert'==_0xda84a4['type'])for(const _0xb6bfb9 of this['_suggestions']['values']()){if(_0xb6bfb9['isMultiRange']||!_0xb6bfb9['isInContent'])continue;const _0x54ea7b='formatBlock'==_0xb6bfb9['type'],_0x722f05=this['_getAttributeKey'](_0xb6bfb9),_0x842ecc=_0x722f05&&this['_suggestionsConversion']['isBlockAttribute'](_0x722f05);if(!_0x54ea7b&&!_0x842ecc)continue;const _0x485f5c=_0xb6bfb9['getFirstRange']();if(_0x485f5c['start']['parent']!=_0x485f5c['end']['parent']&&!_0x485f5c['end']['isAtEnd']){const _0x1352cc=_0x41a3e7['model']['createPositionAt'](_0x485f5c['start']['nodeAfter'],'end'),_0x17f780=_0x41a3e7['model']['createRange'](_0x485f5c['start'],_0x1352cc);_0x382be7['updateMarker'](_0xb6bfb9['getFirstMarker'](),{'range':_0x17f780}),_0x473338=!0x0;}}return _0x473338;}),_0x41a3e7['model']['document']['registerPostFixer'](_0x32b5df=>this['_processAttributeChanges'](_0x32b5df)),_0x41a3e7['model']['document']['registerPostFixer'](_0x5ac892=>!_0x5ac892['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ac892)),_0x41a3e7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x41a3e7['model']['document']['on']('change:data',(_0x8e719d,_0x550e5c)=>{if(!_0x550e5c['isLocal']||_0x550e5c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2af65d=_0x41a3e7['model']['document']['differ']['getChanges']();if(0x0==_0x2af65d['length'])return;const _0x2a737c=[],_0x501be1=_0x2af65d['filter'](_0x5ccebd=>'attribute'==_0x5ccebd['type']),_0x8fb4b8=_0x2af65d['filter'](_0x538317=>'insert'==_0x538317['type']&&'$text'!=_0x538317['name']);for(const _0x4ac5d7 of _0x501be1)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4ac5d7['attributeKey'])&&_0x2a737c['push']({'key':_0x4ac5d7['attributeKey'],'newValue':_0x4ac5d7['attributeNewValue'],'oldValue':_0x4ac5d7['attributeOldValue'],'range':sn(_0x4ac5d7['range'],_0x41a3e7['model'])});for(const _0x5de26f of _0x8fb4b8){if('rename'!=_0x5de26f['action']&&'refresh'!=_0x5de26f['action'])continue;const _0x48b12e=rn(_0x5de26f['position']['nodeAfter'],_0x41a3e7['model']),_0xc7acd9=_0x5de26f['before'];'rename'==_0x5de26f['action']&&_0x2a737c['push']({'key':Ke,'newValue':_0x5de26f['name'],'oldValue':_0xc7acd9['name'],'range':_0x48b12e});for(const [_0x5a806a,_0x1bcc48]of _0xc7acd9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x5a806a))continue;const _0x497aac=_0x5de26f['attributes']['get'](_0x5a806a);_0x1bcc48!==_0x497aac&&_0x2a737c['push']({'key':_0x5a806a,'newValue':_0x497aac,'oldValue':_0x1bcc48,'range':_0x48b12e});}for(const [_0x426985,_0x279dfb]of _0x5de26f['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x426985)&&(_0xc7acd9['attributes']['has'](_0x426985)||_0x2a737c['push']({'key':_0x426985,'newValue':_0x279dfb,'oldValue':null,'range':_0x48b12e}));}0x0!=_0x2a737c['length']&&_0x41a3e7['model']['enqueueChange'](_0x550e5c,_0x2c53e8=>{const _0x2d1ddc=_0x10b1ba();for(const {range:_0x3106c7,key:_0x150e2e,oldValue:_0xc7bcc2,newValue:_0x44c57c}of _0x2a737c)this['markAttributeChange'](_0x3106c7,_0x150e2e,_0xc7bcc2,_0x44c57c,{'groupId':_0x2d1ddc});this['_reduceExistingSuggestions'](_0x2c53e8,_0x2a737c);});},{'priority':'lowest'}),_0x41a3e7['model']['markers']['on']('update:suggestion',(_0x501bf8,_0x451629,_0x216130)=>{if(null==_0x216130){const {id:_0x2b234f}=_0x269eaf(_0x451629['name']),_0x2224ae=this['_suggestions']['get'](_0x2b234f);_0x2224ae&&_0x2224ae['addMarkerName'](_0x451629['name']);}}),_0x41a3e7['model']['document']['on']('change:data',()=>{const _0x22fbb8=Array['from'](_0x41a3e7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4a6f50=>'suggestion'===_0x269eaf(_0x4a6f50['name'])['group']);if(0x0===_0x22fbb8['length'])return;_0x22fbb8['sort']((_0xf6da22,_0x561c29)=>{const _0x10c5e7=_0xf6da22['data']['oldRange'],_0x5dec54=_0x561c29['data']['oldRange'];return null===_0x10c5e7&&null===_0x5dec54?0x0:null===_0x10c5e7&&null!==_0x5dec54?-0x1:null!==_0x10c5e7&&null===_0x5dec54?0x1:_0x10c5e7['start']['isBefore'](_0x5dec54['start'])?-0x1:0x1;});const _0x57a551=new Set(),_0x2c261a=new Set();for(const {name:_0x25f685,data:_0x39d2fc}of _0x22fbb8){const {id:_0x523945}=_0x269eaf(_0x25f685);if(null===_0x39d2fc['oldRange']){const _0x2cf083=this['_handleNewSuggestionMarker'](_0x25f685);_0x2c261a['add'](_0x2cf083);}else{const _0x476d1e=this['_suggestions']['get'](_0x523945);null!==_0x39d2fc['newRange']||_0x476d1e['isInContent']?(_0x57a551['add'](_0x476d1e['head']),_0x2c261a['add'](_0x476d1e)):this['_removeSuggestion'](_0x476d1e);}}_0x2c261a['size']>0x0&&this['_refreshSuggestionsChain'](_0x2c261a);for(const _0x388d88 of _0x57a551)this['fire']('suggestionChanged',_0x388d88);}),_0x41a3e7['model']['on']('applyOperation',(_0x426fb0,_0x243366)=>{const _0x647fd8=_0x243366[0x0];if(!this['_suggestions']['size'])return;if(!_0x647fd8['isDocumentOperation'])return;if(_0x647fd8['batch']['isUndo']||!_0x647fd8['batch']['isLocal'])return;let _0x1e5d84,_0xcfece7;switch(_0x647fd8['type']){case'insert':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['position']),_0xcfece7=_0x1e5d84['getShiftedBy'](_0x647fd8['howMany']);break;case'split':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['splitPosition']),_0xcfece7=_0x41a3e7['model']['createPositionAt'](_0x647fd8['moveTargetPosition']);break;case'move':_0x1e5d84=_0x41a3e7['model']['createPositionAt'](_0x647fd8['targetPosition']),_0xcfece7=_0x1e5d84['getShiftedBy'](_0x647fd8['howMany']);break;default:return;}const _0xa9bf68=_0x41a3e7['model']['createRange'](_0x1e5d84,_0xcfece7);_0x41a3e7['model']['change'](()=>{for(const {suggestion:_0x36ca38,meta:_0x18edda}of this['_findSuggestions'](_0xa9bf68)){if(_0x36ca38['isMultiRange'])continue;if('formatInline'==_0x36ca38['type'])continue;const _0x5d2884=this['_getAttributeKey'](_0x36ca38);if(_0x5d2884&&this['_suggestionsConversion']['isBlockAttribute'](_0x5d2884)&&'split'!=_0x647fd8['type'])continue;const _0x5ab135=_0x36ca38['data']&&_0x36ca38['data']['multipleBlocks'];('formatBlock'!=_0x36ca38['type']||'split'==_0x647fd8['type']&&!_0x5ab135)&&(_0x18edda['containsRangeInObject']||'insertion'==_0x36ca38['type']&&_0x18edda['isOwn']||_0x36ca38['getFirstRange']()['containsRange'](_0xa9bf68)&&this['_breakSuggestionMarker'](_0x36ca38,_0x1e5d84,_0xcfece7));}});},{'priority':'lowest'}),_0x41a3e7['model']['on']('deleteContent',(_0x5037bb,_0x22d5ff)=>{const _0x48e567=_0x22d5ff[0x0],_0x4131b=_0x22d5ff[0x1];if(_0x4131b&&_0x4131b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48e567['isCollapsed'])return;const _0x221fa4=_0x41a3e7['model']['schema'],{start:_0xb5664c,end:_0x2b9df8}=_0x48e567['getFirstRange'](),_0x3b85c2=_0xb5664c['nodeAfter']&&_0x221fa4['isLimit'](_0xb5664c['nodeAfter'])?null:_0x221fa4['getNearestSelectionRange'](_0xb5664c,'forward'),_0x343e7d=_0x2b9df8['nodeBefore']&&_0x221fa4['isLimit'](_0x2b9df8['nodeBefore'])?null:_0x221fa4['getNearestSelectionRange'](_0x2b9df8,'backward'),_0x5a3aa1=_0x41a3e7['model']['createRange'](_0x3b85c2?_0x3b85c2['start']:_0xb5664c,_0x343e7d?_0x343e7d['end']:_0x2b9df8);_0x41a3e7['model']['change'](_0x37e8b7=>{this['markDeletion'](_0x5a3aa1);const _0x257602=_0x41a3e7['model']['schema']['getNearestSelectionRange'](_0x5a3aa1['start']);_0x48e567['is']('documentSelection')?_0x37e8b7['setSelection'](_0x257602):_0x48e567['setTo'](_0x257602);}),_0x5037bb['stop']();},{'priority':_0x44e75e['normal']+0xa}),_0x41a3e7['model']['on']('insertContent',(_0x3e502d,_0x4ae490)=>{const _0xdab92e=_0x4ae490[_0x4ae490['length']-0x1];_0xdab92e&&_0xdab92e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x41a3e7['model']['change'](()=>{let _0x279777=_0x41a3e7['model']['insertContent'](_0x4ae490[0x0],_0x4ae490[0x1],_0x4ae490[0x2],{'forceDefaultExecution':!0x0});if(!_0x279777)return;_0x3e502d['return']=_0x279777['clone']();const _0xc67189=_0x279777['end']['nodeBefore'],_0x2b6de0=_0x41a3e7['model']['schema'];_0xc67189&&_0x2b6de0['isBlock'](_0xc67189)&&!_0x2b6de0['isObject'](_0xc67189)&&(_0x279777=_0x41a3e7['model']['createRange'](_0x279777['start'],_0x41a3e7['model']['createPositionAt'](_0xc67189,'end'))),this['markInsertion'](_0x279777);}),_0x3e502d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x446f2c=new dt(_0x41a3e7,this['_suggestions']);_0x41a3e7['commands']['add']('acceptSuggestion',_0x446f2c),this['enableCommand']('acceptSuggestion');const _0x29256d=new ft(_0x41a3e7,this['_suggestions']);_0x41a3e7['commands']['add']('discardSuggestion',_0x29256d),this['enableCommand']('discardSuggestion'),_0x41a3e7['commands']['add']('acceptAllSuggestions',new Lt(_0x41a3e7,_0x446f2c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x41a3e7['commands']['add']('discardAllSuggestions',new Lt(_0x41a3e7,_0x29256d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x41a3e7['commands']['add']('acceptSelectedSuggestions',new It(_0x41a3e7,_0x446f2c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x41a3e7['commands']['add']('discardSelectedSuggestions',new It(_0x41a3e7,_0x29256d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x59724d=_0x41a3e7['plugins']['get'](_0x552cbc);this['listenTo'](_0x59724d,'addComment',(_0x104269,{threadId:_0x26f047})=>{const _0x535f0a=this['_suggestions']['get'](_0x26f047);_0x535f0a&&_0x535f0a['commentThread']&&0x1===_0x535f0a['commentThread']['length']&&this['_updateSuggestionData'](_0x26f047,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x59724d,'removeComment',(_0x4b40e3,{threadId:_0x32244b})=>{const _0x5b30a2=this['_suggestions']['get'](_0x32244b);_0x5b30a2&&_0x5b30a2['commentThread']&&!_0x5b30a2['commentThread']['length']&&this['_updateSuggestionData'](_0x32244b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x47725f){const _0x1f15a8=_0x55a225([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]),_0x117b00=0x3d8d0df,_0xa40b46=0x3df573f^_0x117b00,_0x57cd09=window[_0x55a225([0x44,0x61,0x74,0x65])][_0x55a225([0x6e,0x6f,0x77])](),_0x2d579b=_0x47725f[_0x55a225([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x46066f=new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3614f5=>{_0x2d579b[_0x55a225([0x6f,0x6e,0x63,0x65])](_0x55a225([0x72,0x65,0x61,0x64,0x79]),_0x3614f5);}),_0x2b2cc6={[_0x55a225([0x6b,0x74,0x79])]:_0x55a225([0x45,0x43]),[_0x55a225([0x75,0x73,0x65])]:_0x55a225([0x73,0x69,0x67]),[_0x55a225([0x63,0x72,0x76])]:_0x55a225([0x50,0x2d,0x32,0x35,0x36]),[_0x55a225([0x78])]:_0x55a225([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]),[_0x55a225([0x79])]:_0x55a225([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]),[_0x55a225([0x61,0x6c,0x67])]:_0x55a225([0x45,0x53,0x32,0x35,0x36])},_0x56dbfb=_0x2d579b[_0x55a225([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55a225([0x67,0x65,0x74])](_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56d6fc(){let _0x1c1f09,_0x4b779e=null,_0x4b2138=null;try{if(_0x56dbfb==_0x55a225([0x47,0x50,0x4c]))return _0x55a225([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c1f09=_0x5ae44b(),!_0x1c1f09)return _0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c1f09[_0x55a225([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4b2138=_0xebb5c0(_0x1c1f09[_0x55a225([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c1f09[_0x55a225([0x6a,0x74,0x69])])),await _0x916fef()?_0x508e60()?_0x116009()?_0x55a225([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ce417()?(_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55a225([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4b779e=_0x22acc9(_0x55a225([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4db50d()):_0x55a225([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55a225([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55a225([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x116009(){const _0x42974c=[_0x55a225([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55a225([0x74,0x72,0x69,0x61,0x6c])][_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57cd09/0x3e8:0xe10*_0xa40b46;return _0x1c1f09[_0x55a225([0x65,0x78,0x70])]<_0x42974c;}function _0x508e60(){const _0x2330c4=_0x1c1f09[_0x55a225([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2330c4)return!0x1;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x2a])))return!0x0;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x54,0x43])))return!0x0;if(_0x2330c4[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x52,0x54,0x43]))){if(_0x19c440())return!0x0;if(_0x5083df()||_0x235b51())return!0x0;}return!0x1;}function _0x1ce417(){const _0x7a9406=_0x1c1f09[_0x55a225([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7a9406||0x0==_0x7a9406[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3fa352}=new URL(window[_0x55a225([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7a9406[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3fa352))return!0x0;const _0x3c38f4=_0x3fa352[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e]));return _0x7a9406[_0x55a225([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e2fd7=>_0x1e2fd7[_0x55a225([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55a225([0x2a])))[_0x55a225([0x6d,0x61,0x70])](_0x152bf4=>_0x152bf4[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e])))[_0x55a225([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4997ca=>_0x4997ca[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c38f4[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55a225([0x6d,0x61,0x70])](_0x5314cb=>Array(_0x3c38f4[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5314cb[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55a225([0x66,0x69,0x6c,0x6c])](_0x5314cb[0x0]===_0x55a225([0x2a])?_0x55a225([0x2a]):'')[_0x55a225([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5314cb))[_0x55a225([0x73,0x6f,0x6d,0x65])](_0x2feedc=>_0x3c38f4[_0x55a225([0x65,0x76,0x65,0x72,0x79])]((_0x515ea6,_0x1d5402)=>_0x2feedc[_0x1d5402]===_0x515ea6||_0x2feedc[_0x1d5402]===_0x55a225([0x2a])));}function _0x4db50d(){return _0x4b779e&&_0x4b2138?new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e6fda,_0x1156ee)=>{_0x4b779e[_0x55a225([0x74,0x68,0x65,0x6e])](_0x5e6fda,_0x1156ee),_0x4b2138[_0x55a225([0x74,0x68,0x65,0x6e])](_0x3abd2f=>{_0x3abd2f!=_0x55a225([0x56,0x61,0x6c,0x69,0x64])&&_0x5e6fda(_0x3abd2f);},_0x1156ee);}):_0x4b779e||_0x4b2138||_0x55a225([0x56,0x61,0x6c,0x69,0x64]);}}function _0xebb5c0(_0x2aacf5,_0x3e5a57){return new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ebfb6=>{if(_0x5dcd3b())return _0x2ebfb6(_0x55a225([0x56,0x61,0x6c,0x69,0x64]));_0x3ab366(),_0x2d579b[_0x55a225([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2c4e63=!0x1;const _0x305720=_0x10b1ba();function _0x37a20a(_0x20326d){return!!_0x20326d&&(typeof _0x20326d===_0x55a225([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20326d===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20326d[_0x55a225([0x74,0x68,0x65,0x6e])]===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20326d[_0x55a225([0x63,0x61,0x74,0x63,0x68])]===_0x55a225([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x541f5c(_0x5d2e3c){_0x2e7ecd(_0x5d2e3c)[_0x55a225([0x74,0x68,0x65,0x6e])](_0x3f8dcc=>{if(!_0x3f8dcc||_0x3f8dcc[_0x55a225([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55a225([0x6f,0x6b]))return _0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14de3c(_0x18f7db(_0x305720+_0x3e5a57))!=_0x3f8dcc[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55a225([0x56,0x61,0x6c,0x69,0x64]);})[_0x55a225([0x74,0x68,0x65,0x6e])](_0x38bc1b=>(_0x3aac20(),_0x38bc1b),()=>{const _0x562393=_0x3777bf();return null==_0x562393?(_0x3aac20(),_0x55a225([0x56,0x61,0x6c,0x69,0x64])):_0x55a225(_0x57cd09-_0x562393>(0x27d454df^_0x117b00)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55a225([0x74,0x68,0x65,0x6e])](_0x2ebfb6)[_0x55a225([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x421e6e=0x3ee3e5f^_0x117b00;function _0x3aac20(){const _0x1a57d6=_0x55a225([0x6c,0x6c,0x63,0x74,0x2d])+_0x14de3c(_0x18f7db(_0x2aacf5)),_0x5a090b=_0x5ae26a(_0x14de3c(window[_0x55a225([0x4d,0x61,0x74,0x68])][_0x55a225([0x63,0x65,0x69,0x6c])](_0x57cd09/_0x421e6e)));window[_0x55a225([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a225([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a57d6,_0x5a090b);}function _0x3777bf(){const _0x39e474=_0x55a225([0x6c,0x6c,0x63,0x74,0x2d])+_0x14de3c(_0x18f7db(_0x2aacf5)),_0x18d791=window[_0x55a225([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55a225([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39e474);return _0x18d791?window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ae26a(_0x18d791),0x10)*_0x421e6e:null;}function _0x2e7ecd(_0x4f54a5){return new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x327ba4,_0x536afa)=>{_0x4f54a5[_0x55a225([0x74,0x68,0x65,0x6e])](_0x327ba4,_0x536afa),window[_0x55a225([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x536afa,0x3d9041f^_0x117b00);});}}_0x2d579b[_0x55a225([0x6f,0x6e])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f815b,_0xc19bc3)=>{if(_0xc19bc3[0x0]!=_0x2aacf5)return _0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc19bc3[0x1]={..._0xc19bc3[0x1],[_0x55a225([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x305720};},{[_0x55a225([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a225([0x68,0x69,0x67,0x68])}),_0x2d579b[_0x55a225([0x6f,0x6e])](_0x55a225([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34e324=>{_0x37a20a(_0x34e324[_0x55a225([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2c4e63=!0x0,_0x541f5c(_0x34e324[_0x55a225([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55a225([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55a225([0x6c,0x6f,0x77])}),_0x46066f[_0x55a225([0x74,0x68,0x65,0x6e])](()=>{_0x2c4e63||_0x2ebfb6(_0x55a225([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5dcd3b(){return _0x2d579b[_0x55a225([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a225([0x76,0x69,0x65,0x77])][_0x55a225([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55a225([0x61,0x75,0x74,0x6f]);}function _0x3ab366(){_0x2d579b[_0x55a225([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55a225([0x76,0x69,0x65,0x77])][_0x55a225([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55a225([0x61,0x75,0x74,0x6f]);}}function _0x22acc9(_0x386eb5){const _0x489a35=[new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e50e3=>setTimeout(_0x1e50e3,0x3d1ee13^_0x117b00)),_0x46066f[_0x55a225([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17912b=>{let _0x4260b2=0x0;_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x6f,0x6e])](_0x55a225([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4a2efe,_0x5144ab)=>{_0x5144ab[0x0][_0x55a225([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4260b2++,_0x4260b2==(0x3d8d537^_0x117b00)&&(_0x17912b(),_0x4a2efe[_0x55a225([0x6f,0x66,0x66])]());});}))];return window[_0x55a225([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55a225([0x72,0x61,0x63,0x65])](_0x489a35)[_0x55a225([0x74,0x68,0x65,0x6e])](()=>_0x386eb5);}async function _0x512033(){await _0x46066f,_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x50663b,_0x2d579b[_0x55a225([0x6d,0x6f,0x64,0x65,0x6c])][_0x55a225([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x50663b,_0x2d579b[_0x55a225([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55a225([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19c440(){return _0x46a9cb(_0x55a225([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x33cb9b(_0x55a225([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x55a225([0x73,0x74,0x61,0x74,0x65])]==_0x55a225([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5083df(){return _0x46a9cb(_0x55a225([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 _0x235b51(){return _0x46a9cb(_0x55a225([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25efe1(_0x1b9a5f){const _0x2aff83=_0x99c9a0();_0x2d579b[_0x2aff83]=_0x55a225([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1b9a5f,_0x1b9a5f!=_0x55a225([0x56,0x61,0x6c,0x69,0x64])&&_0x512033();}function _0x99c9a0(){const _0x5b1385=window[_0x55a225([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55a225([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55a225([0x6e,0x6f,0x77])]())[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55a225([0x2e]),'');let _0x119164=_0x55a225([0x52]);for(let _0x3c8c8a=0x0;_0x3c8c8a<_0x5b1385[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c8c8a+=0x2){let _0x2ce856=window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b1385[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c8c8a,_0x3c8c8a+0x2));_0x2ce856>=_0x1f15a8[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ce856-=_0x1f15a8[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x119164+=_0x1f15a8[_0x2ce856];}return _0x119164;}function _0x5ae44b(){const _0x5899dd=_0x56dbfb[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e]));if(0x3!=_0x5899dd[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1a9a22(_0x5899dd[0x1]);function _0x1a9a22(_0xf9f34b){const _0x5a6485=_0x344208(_0xf9f34b);return _0x5a6485&&_0x440b99()?_0x5a6485:null;function _0x440b99(){const _0x41b3cc=_0x5a6485[_0x55a225([0x6a,0x74,0x69])],_0x5b7d43=window[_0x55a225([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41b3cc[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41b3cc[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xf63514={..._0x5a6485,[_0x55a225([0x6a,0x74,0x69])]:_0x41b3cc[_0x55a225([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41b3cc[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xf63514[_0x55a225([0x76,0x63])],_0x18f7db(_0xf63514)==_0x5b7d43;}}}async function _0x916fef(){let _0x23ab12=!0x0;try{const _0x527be8=_0x56dbfb[_0x55a225([0x73,0x70,0x6c,0x69,0x74])](_0x55a225([0x2e])),[_0x5b4786,_0x3d7add,_0x4a427f]=_0x527be8;return _0x567b27(_0x5b4786),await _0x42b776(_0x5b4786,_0x3d7add,_0x4a427f),_0x23ab12;}catch{return!0x1;}function _0x567b27(_0x175a95){const _0x215110=_0x344208(_0x175a95);_0x215110&&_0x215110[_0x55a225([0x61,0x6c,0x67])]==_0x55a225([0x45,0x53,0x32,0x35,0x36])||(_0x23ab12=!0x1);}async function _0x42b776(_0x1dd2fe,_0x4f9a2d,_0x4d18ac){const _0x461360=window[_0x55a225([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55a225([0x66,0x72,0x6f,0x6d])](_0x3fc025(_0x4d18ac),_0x4b94c9=>_0x4b94c9[_0x55a225([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x247022=new window[(_0x55a225([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55a225([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1dd2fe+_0x55a225([0x2e])+_0x4f9a2d),_0x2fdba5=window[_0x55a225([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55a225([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2fdba5)return;const _0x41ffc7=await _0x2fdba5[_0x55a225([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55a225([0x6a,0x77,0x6b]),_0x2b2cc6,{[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x45,0x43,0x44,0x53,0x41]),[_0x55a225([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55a225([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2fdba5[_0x55a225([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x45,0x43,0x44,0x53,0x41]),[_0x55a225([0x68,0x61,0x73,0x68])]:{[_0x55a225([0x6e,0x61,0x6d,0x65])]:_0x55a225([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x41ffc7,_0x461360,_0x247022)||(_0x23ab12=!0x1);}}function _0x344208(_0x199e22){return _0x199e22[_0x55a225([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55a225([0x65,0x79]))?JSON[_0x55a225([0x70,0x61,0x72,0x73,0x65])](_0x3fc025(_0x199e22)):null;}function _0x3fc025(_0x490dba){return window[_0x55a225([0x61,0x74,0x6f,0x62])](_0x490dba[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55a225([0x2b]))[_0x55a225([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55a225([0x2f])));}function _0x18f7db(_0x3634f6){let _0x69f3b8=0x1505;function _0x23ed19(_0x449226){for(let _0x22fee6=0x0;_0x22fee6<_0x449226[_0x55a225([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22fee6++){const _0x5c0b1b=_0x449226[_0x55a225([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x22fee6);_0x69f3b8=(_0x69f3b8<<0x5)+_0x69f3b8+_0x5c0b1b,_0x69f3b8&=_0x69f3b8;}}function _0x531bb3(_0x364c0d){Array[_0x55a225([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x364c0d)?_0x364c0d[_0x55a225([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x531bb3):_0x364c0d&&typeof _0x364c0d==_0x55a225([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55a225([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x364c0d)[_0x55a225([0x73,0x6f,0x72,0x74])]()[_0x55a225([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc9d6d6,_0x5aeda3])=>{_0x23ed19(_0xc9d6d6),_0x531bb3(_0x5aeda3);}):_0x23ed19(window[_0x55a225([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x364c0d));}return _0x531bb3(_0x3634f6),_0x69f3b8>>>0x0;}function _0x14de3c(_0x576712){return _0x576712[_0x55a225([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55a225([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55a225([0x30]));}function _0x5ae26a(_0x4cb6e3){return _0x4cb6e3[_0x55a225([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55a225([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55a225([0x6a,0x6f,0x69,0x6e])]('');}function _0x46a9cb(_0x288f33){return _0x2d579b[_0x55a225([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a225([0x68,0x61,0x73])](_0x288f33);}function _0x33cb9b(_0x37d55f){return _0x2d579b[_0x55a225([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x55a225([0x67,0x65,0x74])](_0x37d55f);}function _0x50663b(){}function _0x55a225(_0x3f7718){return _0x3f7718['map'](_0x38faf3=>String['fromCharCode'](_0x38faf3))['join']('');}_0x25efe1(await _0x56d6fc());}(this);}set['adapter'](_0xd59ece){if(this['_adapter'])throw new _0x54f12a('track-changes-adapter-already-set',this);this['_adapter']=_0xd59ece;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ddad8=!0x1,toJSON:_0x1ef709=!0x1}={}){const _0x3f9da2=[];for(const _0x3477a8 of this['_suggestions']['values']())_0x2ddad8&&!_0x3477a8['isInContent']||_0x3f9da2['push'](_0x3477a8);return _0x1ef709?_0x3f9da2['map'](_0x449b5b=>_0x449b5b['toJSON']()):_0x3f9da2;}['getSuggestion'](_0x1cf6fa){const _0x54d64d=this['_suggestions']['get'](_0x1cf6fa);if(!_0x54d64d)throw new _0x54f12a('track-changes-suggestion-not-found',this);return _0x54d64d;}['hasSuggestion'](_0x1c0e37){return this['_suggestions']['has'](_0x1c0e37);}['addSuggestionData'](_0x47ec0f){const {authorId:_0x18d9c5,id:_0x5c4163,originalSuggestionId:_0x39f1df,attributes:_0xfe4f84}=_0x47ec0f,[_0xb57a8,_0x190013]=_0x47ec0f['type']['split'](':'),_0x746f22=this['_suggestions']['get'](_0x5c4163)||this['_createSuggestion'](_0xb57a8,_0x190013,_0x5c4163,_0x18d9c5,_0xfe4f84,_0x39f1df);if(this['_addThreadToSuggestion'](_0x746f22),this['_checkSuggestionCorrectness'](_0x746f22,_0xb57a8,_0x190013||null,_0x18d9c5),_0x746f22['createdAt']=_0x47ec0f['createdAt'],_0x746f22['_isDataLoaded']=!0x0,_0xfe4f84&&_0xfe4f84['@external']){const _0x4e2ef9=_0xfe4f84['@external'],_0x3fe085=this['_getExternalAuthor'](_0x4e2ef9['authorName']);_0x746f22['authoredAt']=_0x4e2ef9['createdAt'],_0x746f22['author']=_0x3fe085,_0x746f22['isExternal']=!0x0;}else _0x746f22['authoredAt']=_0x47ec0f['createdAt'];switch(_0x47ec0f['data']&&(_0x746f22['data']=_0x47ec0f['data']),_0x47ec0f['attributes']&&(_0x746f22['attributes']=_0x47ec0f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x746f22['_saved']=!0x0),this['_suggestionState']['get'](_0x746f22)){case'notReady':this['_suggestionState']['set'](_0x746f22,'dataReady');break;case'markerReady':_0x746f22['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x746f22])),this['_refreshSuggestionsChain'](new Set([_0x746f22])),this['_suggestionState']['set'](_0x746f22,'ready'),this['fire']('suggestionLoaded',_0x746f22)):this['_suggestionState']['set'](_0x746f22,'removed');}return _0x746f22;}['acceptSuggestion'](_0x563cf5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x76ab5 of _0x563cf5['getAllAdjacentSuggestions']())_0x76ab5['accept']();});});}['discardSuggestion'](_0x34e0d9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x24fadf of _0x34e0d9['getAllAdjacentSuggestions']())_0x24fadf['discard']();});});}['enableCommand'](_0x157931,_0x21617b){const _0x3691cf=this['editor']['commands']['get'](_0x157931);if(!_0x3691cf)throw new _0x54f12a('track-changes-command-not-found',this,{'commandName':_0x157931});if(this['_enabledCommands']['has'](_0x3691cf))throw new _0x54f12a('track-changes-enable-command-twice',this,{'commandName':_0x157931});this['_enabledCommands']['add'](_0x3691cf),_0x21617b&&_0x3691cf['on']('execute',(_0x4acdd1,_0xd80169)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xd80169['length']>0x0&&_0xd80169[_0xd80169['length']-0x1]&&_0xd80169[_0xd80169['length']-0x1]['forceDefaultExecution']?_0xd80169['pop']():(_0x4acdd1['return']=_0x21617b((..._0x5d95a2)=>_0x3691cf['execute'](..._0x5d95a2,{'forceDefaultExecution':!0x0}),..._0xd80169),_0x4acdd1['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4fb84c){let _0x53627e,_0x1f77ee;const _0x2178fe=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x53627e=_0x4fb84c();}catch(_0xe3fa){_0x1f77ee=_0xe3fa;}return _0x2178fe||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1f77ee&&_0x54f12a['rethrowUnexpectedError'](_0x1f77ee,this),_0x53627e;}['markInsertion'](_0x1d0f55,_0x131e0e=null,_0x53c996={}){if(_0x1d0f55['isCollapsed'])return null;const _0xe0ab61=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x53c996['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28f967,meta:_0x591691}of this['_findSuggestions'](_0x1d0f55,'insertion'))if(_0x591691['isOwn']){if(!_0x591691['isNextTo']){if(_0x591691['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!cn(_0x28f967,_0x53c996))continue;return _0x28f967;}if(cn(_0x28f967,_0x53c996))return _0x28f967;this['_breakSuggestionMarker'](_0x28f967,_0x1d0f55['start'],_0x1d0f55['end']);break;}if(_0x131e0e==_0x28f967['subType']&&cn(_0x28f967,_0x53c996)){const _0x1d79c3=_0x28f967['getFirstRange']();return _0x1d79c3['start']['isEqual'](_0x1d0f55['end'])?this['_setSuggestionRange'](_0x28f967,this['_model']['createRange'](_0x1d0f55['start'],_0x1d79c3['end'])):this['_setSuggestionRange'](_0x28f967,this['_model']['createRange'](_0x1d79c3['start'],_0x1d0f55['end'])),_0x28f967;}}const _0x133c91=_0x10b1ba(),_0x194ab4=_0xe0ab61['id'],_0x13307d=_0x131e0e?'insertion:'+_0x131e0e:'insertion',_0x40ac39=this['_setSuggestionData']({'id':_0x133c91,'type':_0x13307d,'createdAt':new Date(),'authorId':_0x194ab4,'attributes':_0x53c996});return this['_addSuggestionMarker'](_0x13307d,_0x133c91,_0x194ab4,_0x1d0f55),_0x40ac39;}['markMultiRangeInsertion'](_0x387b1c,_0x3d80ff='multi',_0xea848d={}){const _0x5ad0fc=this['editor']['plugins']['get']('Users')['me'],_0x1633a0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d80ff,'join');this['_trackingSessionId']&&(_0xea848d['trackingSessionId']=this['_trackingSessionId']);for(const _0x433700 of this['getSuggestions']())if(_0x433700['author']['id']==_0x5ad0fc['id']&&'insertion'==_0x433700['type']&&_0x433700['subType']==_0x3d80ff&&cn(_0x433700,_0xea848d)&&(_0x1633a0(_0x433700['getRanges'](),_0x387b1c)||_0x1633a0(_0x387b1c,_0x433700['getRanges']()))){for(const _0x51c2d8 of _0x387b1c)_0x433700['addRange'](_0x51c2d8);return _0x433700;}for(const {suggestion:_0x3ab5f8,meta:_0x2650ee}of this['_findSuggestions'](_0x387b1c,'insertion')){if(!_0x2650ee['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2650ee['containsRangeInObject'])continue;if(!cn(_0x3ab5f8,_0xea848d))continue;let _0x1f3dac=!0x0;for(const _0x551fe3 of _0x3ab5f8['getRanges']())for(const _0x1eb568 of _0x387b1c)if(!_0x551fe3['containsRange'](_0x1eb568)){_0x1f3dac=!0x1;break;}if(_0x1f3dac)return _0x3ab5f8;}const _0xf5b8f=_0x10b1ba(),_0x37af88=_0x5ad0fc['id'],_0x1c8a1f='insertion:'+_0x3d80ff,_0x52a2eb=this['_setSuggestionData']({'id':_0xf5b8f,'type':_0x1c8a1f,'createdAt':new Date(),'authorId':_0x37af88,'attributes':_0xea848d});for(const _0x5763d3 of _0x387b1c)this['_addSuggestionMarker'](_0x1c8a1f,_0xf5b8f,_0x37af88,_0x5763d3,bt['getMultiRangeId']());return _0x52a2eb;}['markInlineFormat'](_0x79f12d,_0xb3060b,_0x357dfc=null,_0x275ecc={}){if(_0x357dfc=_0x357dfc||Je(_0xb3060b),_0x79f12d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x275ecc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x38a1dc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x357dfc,'accept');return this['forceDefaultExecution'](()=>_0x38a1dc([_0x79f12d],_0xb3060b,_0x275ecc)),null;}const _0x42a101=this['editor']['plugins']['get']('Users')['me'],_0x561a17=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x20c35b,meta:_0x4e51fb}of this['_findSuggestions'](_0x79f12d,'insertion'))_0x4e51fb['isOwn']&&!_0x4e51fb['isInsideObject']&&_0x561a17['push'](..._0x20c35b['getRanges']());}const _0x324761=function(_0x37c33d,_0xd9ec27){const _0x11c2c4=[];for(const _0x13072e of _0xd9ec27){const _0x333082=_0x37c33d['getIntersection'](_0x13072e);_0x333082&&_0x11c2c4['push'](_0x333082);}return _0x11c2c4;}(_0x79f12d,_0x561a17),_0x3e394e=function(_0x5d02b4,_0x318c2a){const _0x581c8b=[_0x5d02b4];for(const _0x38f03f of _0x318c2a){let _0x92d91a=0x0;for(;_0x92d91a<_0x581c8b['length'];){const _0x3613dc=_0x581c8b[_0x92d91a]['getDifference'](_0x38f03f);_0x581c8b['splice'](_0x92d91a,0x1,..._0x3613dc),_0x92d91a+=_0x3613dc['length'];}}return _0x581c8b;}(_0x79f12d,_0x561a17);_0x324761['length']&&this['_model']['change'](()=>{for(const _0xbfb38d of _0x324761){const _0x320cdf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x357dfc,'accept');this['forceDefaultExecution'](()=>_0x320cdf([_0xbfb38d],_0xb3060b,_0x275ecc));}});for(const _0x3903d5 of _0x3e394e){let _0x4b64fb=null,_0xd6c5f7=_0x3903d5['start'],_0x270bd3=_0x3903d5['end'];for(const {suggestion:_0x58252a,meta:_0x2e6a6b}of this['_findSuggestions'](_0x3903d5,'formatInline')){if(!_0x2e6a6b['isOwn'])continue;if(_0x58252a['subType']!=_0x357dfc)continue;if(!cn(_0x58252a,_0x275ecc))continue;const _0x5760a4=_0x58252a['getFirstRange']();if(_0x5760a4['containsRange'](_0x3903d5,!0x0))return null;_0xd6c5f7=_0xd6c5f7['isBefore'](_0x5760a4['start'])?_0xd6c5f7:_0x5760a4['start'],_0x270bd3=_0x270bd3['isAfter'](_0x5760a4['end'])?_0x270bd3:_0x5760a4['end'],_0x4b64fb?_0x5760a4['start']['isBefore'](_0x4b64fb['getFirstRange']()['start'])?(_0x4b64fb['removeMarkers'](),_0x4b64fb=_0x58252a):_0x58252a['removeMarkers']():_0x4b64fb=_0x58252a;}const _0x7e0918=this['_model']['createRange'](_0xd6c5f7,_0x270bd3);if(_0x4b64fb)this['_setSuggestionRange'](_0x4b64fb,_0x7e0918);else{const _0x11eccc=_0x10b1ba(),_0x32d01a=_0x42a101['id'];this['_setSuggestionData']({'id':_0x11eccc,'type':'formatInline:'+_0x357dfc,'data':_0xb3060b,'createdAt':new Date(),'authorId':_0x32d01a,'attributes':_0x275ecc}),this['_addSuggestionMarker']('formatInline:'+_0x357dfc,_0x11eccc,_0x32d01a,_0x7e0918);}}return null;}['markBlockFormat'](_0x923011,_0x3ed244,_0x3ccca4=[],_0x28e093=null,_0x3780da={}){_0x3ed244['formatGroupId']||(_0x3ed244['formatGroupId']=_0x3ed244['commandName']),_0x3ed244['multipleBlocks']=_0x923011['is']('range'),_0x28e093=_0x28e093||Je(_0x3ed244);const _0x34926e=_0x3ccca4['map'](_0x2d44d0=>rn(_0x2d44d0,this['_model'])),_0x239a96=_0x923011['is']('range')?_0x923011:rn(_0x923011,this['_model']);if(this['_trackingSessionId']&&(_0x3780da['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2c0d62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28e093,'accept');return this['forceDefaultExecution'](()=>_0x2c0d62([_0x239a96],_0x3ed244,_0x3780da)),null;}_0x34926e['push'](_0x239a96);let _0x1b9061=!0x0;for(const _0xbe9b2d of _0x34926e)if(!this['_rangeIsInLocalUserInsertion'](_0xbe9b2d)){_0x1b9061=!0x1;break;}if(_0x1b9061&&'always'!==this['_trackFormatChanges']){const _0x2b1f8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28e093,'accept');return this['forceDefaultExecution'](()=>_0x2b1f8a([_0x239a96],_0x3ed244,_0x3780da)),null;}let _0x2ae48c=null,_0x57c0d4=_0x239a96['start'],_0x19046e=_0x239a96['end'];for(const {suggestion:_0xafc5da,meta:_0x3f9308}of this['_findSuggestions'](_0x239a96,'formatBlock')){if(!_0x3f9308['isOwn'])continue;if(_0x3f9308['isNextTo']||_0x3f9308['containsRangeInObject']||_0x3f9308['isInsideObject'])continue;if(_0xafc5da['data']['formatGroupId']!=_0x3ed244['formatGroupId'])continue;if(!cn(_0xafc5da,_0x3780da))continue;const _0x502aca=_0xafc5da['getFirstRange']();if(_0xafc5da['subType']==_0x28e093){if(_0x502aca['containsRange'](_0x239a96,!0x0))return null;_0x57c0d4=_0x57c0d4['isBefore'](_0x502aca['start'])?_0x57c0d4:_0x502aca['start'],_0x19046e=_0x19046e['isAfter'](_0x502aca['end'])?_0x19046e:_0x502aca['end'],_0x2ae48c?_0x502aca['start']['isBefore'](_0x2ae48c['getFirstRange']()['start'])?(_0x2ae48c['removeMarkers'](),_0x2ae48c=_0xafc5da):_0xafc5da['removeMarkers']():_0x2ae48c=_0xafc5da;}else{const _0x367162=_0x239a96['getIntersection'](_0x502aca);this['_cutOutSuggestionMarker'](_0xafc5da,_0x367162);}}const _0x12dd90=this['editor']['plugins']['get']('Users')['me'],_0x3651b5=_0x10b1ba(),_0x2c9ea6=_0x12dd90['id'];if(_0x2ae48c)return this['_setSuggestionRange'](_0x2ae48c,this['_model']['createRange'](_0x57c0d4,_0x19046e)),_0x2ae48c;{const _0x198c35=this['_setSuggestionData']({'id':_0x3651b5,'type':'formatBlock:'+_0x28e093,'data':_0x3ed244,'createdAt':new Date(),'authorId':_0x2c9ea6,'attributes':_0x3780da});return this['_addSuggestionMarker']('formatBlock:'+_0x28e093,_0x3651b5,_0x2c9ea6,this['_model']['createRange'](_0x57c0d4,_0x19046e)),_0x198c35;}}['markMultiRangeBlockFormat'](_0x2956ff,_0x1c8be9,_0x4fca3c=[],_0x476e4d=null,_0x795c85={}){_0x1c8be9['formatGroupId']||(_0x1c8be9['formatGroupId']=_0x1c8be9['commandName']);const _0x322836=_0x2956ff[0x0];_0x1c8be9['multipleBlocks']=_0x322836['is']('range'),_0x476e4d=_0x476e4d||Je(_0x1c8be9);const _0x3bc8f3=_0x4fca3c['map'](_0x238cc5=>rn(_0x238cc5,this['_model'])),_0xa76076=_0x322836['is']('range')?_0x2956ff:_0x2956ff['map'](_0xfb766a=>rn(_0xfb766a,this['_model']));if(this['_trackingSessionId']&&(_0x795c85['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1143c4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'accept');return this['forceDefaultExecution'](()=>_0x1143c4(_0xa76076,_0x1c8be9,_0x795c85)),null;}_0x3bc8f3['push'](..._0xa76076);let _0x3cf3ae=!0x0;for(const _0x70b11d of _0x3bc8f3)if(!this['_rangeIsInLocalUserInsertion'](_0x70b11d)){_0x3cf3ae=!0x1;break;}if(_0x3cf3ae&&'always'!==this['_trackFormatChanges']){const _0x1d2af7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'accept');return this['forceDefaultExecution'](()=>_0x1d2af7(_0xa76076,_0x1c8be9,_0x795c85)),null;}const _0x5d804a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d2042 of this['getSuggestions']()){const _0x410ea5=_0x3d2042['data'];if(_0x3d2042['author']['id']!=_0x5d804a['id'])continue;if('formatBlock'!=_0x3d2042['type']||_0x410ea5['formatGroupId']!=_0x1c8be9['formatGroupId'])continue;if(!cn(_0x3d2042,_0x795c85))continue;const _0x1eaf2d=_0x3d2042['subType']==_0x476e4d;for(let _0x27b652=0x0;_0x27b652<_0xa76076['length'];_0x27b652++){const _0x39182f=_0xa76076[_0x27b652];for(const _0x3460ae of _0x3d2042['getMarkers']()){const _0xe0f4f=_0x3460ae['getRange']();if(_0x39182f['isEqual'](_0xe0f4f)){_0x1eaf2d?(_0xa76076['splice'](_0x27b652,0x1),_0x27b652--):_0x3d2042['removeMarker'](_0x3460ae['name']);break;}}}}if(0x0==_0xa76076['length'])return null;const _0x52c544=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x476e4d,'join');for(const _0x5d775b of this['getSuggestions']()){const _0x31efef=_0x5d775b['data'];if(_0x5d775b['author']['id']==_0x5d804a['id']&&('formatBlock'==_0x5d775b['type']&&_0x31efef['formatGroupId']==_0x1c8be9['formatGroupId']&&_0x5d775b['subType']==_0x476e4d&&cn(_0x5d775b,_0x795c85)&&(_0x52c544(_0x5d775b['getRanges'](),_0xa76076)||_0x52c544(_0xa76076,_0x5d775b['getRanges']())))){for(const _0x15bfcb of _0xa76076)_0x5d775b['addRange'](_0x15bfcb);return _0x5d775b;}}const _0x3bb978=_0x10b1ba(),_0x5744a1=_0x5d804a['id'],_0xaa0675='formatBlock:'+_0x476e4d,_0x481cc1=this['_setSuggestionData']({'id':_0x3bb978,'type':_0xaa0675,'data':_0x1c8be9,'createdAt':new Date(),'authorId':_0x5744a1,'attributes':_0x795c85});for(const _0x111fd3 of _0xa76076)this['_addSuggestionMarker'](_0xaa0675,_0x3bb978,_0x5744a1,_0x111fd3,bt['getMultiRangeId']());return _0x481cc1;}['markDeletion'](_0x1d911c,_0x4ca45d=null,_0x278985={}){if(_0x1d911c['isCollapsed'])return null;const _0x4c76ec=this['editor']['plugins']['get']('Users')['me'],_0x3698e7=new _0x82a6d2(_0x1d911c['start'],_0x1d911c['end']);this['_trackingSessionId']&&(_0x278985['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xdc4479,meta:_0x18bd32}of this['_findSuggestions'](_0x3698e7,'insertion'))if(_0x18bd32['isOwn']&&!_0x18bd32['isNextTo']){if(_0xdc4479['isMultiRange']){const _0x5894b3=_0xdc4479['getRanges']()['filter'](_0x15d583=>'$graveyard'!=_0x15d583['root']['rootName']);_0x5894b3['every'](_0x8f5429=>_0x3698e7['containsRange'](_0x8f5429,!0x0))&&_0xdc4479['discard']();if(_0x5894b3['some'](_0x30de5e=>_0x30de5e['containsRange'](_0x3698e7,!0x0))){const _0x1bb87c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4ca45d,'accept');return this['forceDefaultExecution'](()=>_0x1bb87c([_0x3698e7],null,_0x278985)),null;}}else{const _0x5c574e=_0x3698e7['getIntersection'](_0xdc4479['getFirstRange']());null!==_0x5c574e&&_0xdc4479['_onDiscard']([_0x5c574e],null,_0x278985);}}if(_0x3698e7['detach'](),_0x3698e7['isCollapsed']||'$graveyard'==_0x3698e7['root']['rootName'])return null;let _0x39ef0e=null,_0x5250d3=_0x3698e7['start'],_0x17a156=_0x3698e7['end'];const _0x46dac9=this['_findSuggestions'](_0x3698e7,'deletion');for(const {suggestion:_0x3e7d5e,meta:_0x526d52}of _0x46dac9){const _0x11f646=this['_model']['createRange'](_0x5250d3,_0x17a156);if(_0x526d52['isOwn']&&(this['_mergeNestedSuggestions']||!_0x526d52['containsRangeInObject']&&!_0x526d52['isInsideObject'])){if(_0x3e7d5e['isMultiRange']){if(!cn(_0x3e7d5e,_0x278985))continue;let _0x492996=!0x0;for(const _0x26a29f of _0x3e7d5e['getRanges']()){if(_0x26a29f['containsRange'](_0x11f646,!0x0))return _0x3e7d5e;_0x11f646['containsRange'](_0x26a29f)||(_0x492996=!0x1);}_0x492996&&_0x3e7d5e['discard']();}else{const _0x207954=_0x3e7d5e['getFirstRange']();if(_0x207954['containsRange'](_0x11f646,!0x0))return _0x3e7d5e;if(!cn(_0x3e7d5e,_0x278985)){_0x11f646['containsRange'](_0x207954)?_0x3e7d5e['removeMarkers']():_0x207954['containsPosition'](_0x5250d3)?_0x5250d3=_0x207954['end']:_0x207954['containsPosition'](_0x17a156)&&(_0x17a156=_0x207954['start']);continue;}_0x5250d3=_0x5250d3['isBefore'](_0x207954['start'])?_0x5250d3:_0x207954['start'],_0x17a156=_0x17a156['isAfter'](_0x207954['end'])?_0x17a156:_0x207954['end'],_0x278985=Object['assign']({},_0x3e7d5e['attributes']),_0x39ef0e?_0x207954['start']['isBefore'](_0x39ef0e['getFirstRange']()['start'])?(_0x39ef0e['removeMarkers'](),_0x39ef0e=_0x3e7d5e):_0x3e7d5e['removeMarkers']():_0x39ef0e=_0x3e7d5e;}}}if(_0x39ef0e)return this['_setSuggestionRange'](_0x39ef0e,this['_model']['createRange'](_0x5250d3,_0x17a156)),_0x39ef0e;{const _0x1f01a2=_0x10b1ba(),_0x34973b=this['_model']['createRange'](_0x5250d3,_0x17a156),_0x29c38d=_0x4c76ec['id'],_0x441181=_0x4ca45d?'deletion:'+_0x4ca45d:'deletion',_0x1e3818=this['_setSuggestionData']({'id':_0x1f01a2,'type':_0x441181,'createdAt':new Date(),'authorId':_0x29c38d,'attributes':_0x278985});return this['_addSuggestionMarker'](_0x441181,_0x1f01a2,_0x29c38d,_0x34973b),_0x1e3818;}}['markMultiRangeDeletion'](_0x29d413,_0x46368c='multi',_0x119d26={}){const _0x1acc7a=this['editor']['plugins']['get']('Users')['me'],_0x1b2acc=_0x29d413['map'](_0xf4b0b0=>new _0x82a6d2(_0xf4b0b0['start'],_0xf4b0b0['end'])),_0x245f0a=new Set();this['_trackingSessionId']&&(_0x119d26['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x203edb,meta:_0x5f3ebc}of this['_findSuggestions'](_0x1b2acc,'insertion'))_0x5f3ebc['isOwn']&&!_0x5f3ebc['isNextTo']&&_0x245f0a['add'](_0x203edb);for(const _0x1a9e3a of _0x245f0a)if(_0x1a9e3a['isMultiRange']){const _0x289206=_0x1a9e3a['getRanges']();(!_0x1a9e3a['attributes']||!_0x1a9e3a['attributes']['skipNestingCheck'])&&(_0x289206['every'](_0x3fe6fc=>_0x1b2acc['some'](_0x5e033f=>_0x5e033f['containsRange'](_0x3fe6fc,!0x0)))&&_0x1a9e3a['discard']());if(_0x1b2acc['every'](_0x199aca=>_0x289206['some'](_0x7a089b=>_0x7a089b['containsRange'](_0x199aca,!0x0)))){const _0x17e669=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'accept');return this['forceDefaultExecution'](()=>_0x17e669(_0x29d413,null,_0x119d26)),null;}}else{const _0x3b7afb=_0x1a9e3a['getFirstRange']();_0x1b2acc['some'](_0x54a6cc=>_0x54a6cc['containsRange'](_0x3b7afb,!0x0))&&_0x1a9e3a['discard']();if(_0x1b2acc['every'](_0x512fbe=>_0x3b7afb['containsRange'](_0x512fbe,!0x0))){const _0x377628=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'accept');return this['forceDefaultExecution'](()=>_0x377628(_0x1b2acc,null,_0x119d26)),null;}}const _0x16f58e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46368c,'join');let _0x58ae55=null;for(const _0x59b81e of this['getSuggestions']())if(_0x59b81e['author']['id']==_0x1acc7a['id']&&_0x59b81e['isInContent']&&'deletion'==_0x59b81e['type']&&_0x59b81e['subType']==_0x46368c&&cn(_0x59b81e,_0x119d26)&&(_0x16f58e(_0x59b81e['getRanges'](),_0x1b2acc)||_0x16f58e(_0x1b2acc,_0x59b81e['getRanges']()))){if(_0x58ae55){if(_0x59b81e['commentThread']&&_0x59b81e['commentThread']['length'])continue;for(const _0x453252 of _0x59b81e['getRanges']())_0x58ae55['isIntersectingWithRange'](_0x453252)||_0x58ae55['addRange'](_0x453252);_0x59b81e['removeMarkers']();}else{_0x58ae55=_0x59b81e;for(const _0x5f4000 of _0x1b2acc)_0x59b81e['isIntersectingWithRange'](_0x5f4000)||_0x59b81e['addRange'](_0x5f4000);}}if(_0x58ae55)return _0x58ae55;_0x245f0a['clear']();for(const {suggestion:_0x58c674,meta:_0x5b63e0}of this['_findSuggestions'](_0x1b2acc,'deletion'))_0x5b63e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b63e0['containsRangeInObject']&&!_0x5b63e0['isInsideObject'])&&cn(_0x58c674,_0x119d26)&&_0x245f0a['add'](_0x58c674);for(const _0xfc5b29 of _0x245f0a){const _0x4e33a7=_0xfc5b29['getRanges']();if(!_0x119d26||!_0x119d26['skipNestingCheck']){if(_0x1b2acc['every'](_0x411cf1=>_0x4e33a7['some'](_0x3546b2=>_0x3546b2['containsRange'](_0x411cf1,!0x0))))return _0xfc5b29;}(!_0xfc5b29['attributes']||!_0xfc5b29['attributes']['skipNestingCheck'])&&(_0x4e33a7['every'](_0x497eb1=>_0x1b2acc['some'](_0x2a40e2=>_0x2a40e2['containsRange'](_0x497eb1,!0x0)))&&_0xfc5b29['discard']());}const _0xa88b8=_0x10b1ba(),_0x1eb170=_0x1acc7a['id'],_0x45fe45='deletion:'+_0x46368c,_0x31c8f3=this['_setSuggestionData']({'id':_0xa88b8,'type':_0x45fe45,'createdAt':new Date(),'authorId':_0x1eb170,'attributes':_0x119d26});for(const _0x523e0c of _0x1b2acc)_0x523e0c['detach'](),_0x523e0c['isCollapsed']||'$graveyard'==_0x523e0c['root']['rootName']||this['_addSuggestionMarker'](_0x45fe45,_0xa88b8,_0x1eb170,_0x523e0c,bt['getMultiRangeId']());return _0x31c8f3;}['markAttributeChange'](_0x572a54,_0x31362f,_0x18c630,_0x1ce18b,_0x4d0e8c){if(_0x572a54['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x15c655=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e54f0=Array['from'](this['_suggestions']['values']())['filter'](_0x427b86=>'attribute'==_0x427b86['type']&&_0x427b86['data']['key']==_0x31362f&&_0x427b86['isIntersectingWithRange'](_0x572a54));if(this['_trackingSessionId']&&(_0x4d0e8c['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x15b341=this['_findSuggestions'](_0x572a54,'insertion')['filter'](({meta:_0x53aa6c})=>_0x53aa6c['isOwn']&&!_0x53aa6c['isInsideObject']&&!_0x53aa6c['isNextTo'])['map'](({suggestion:_0x5be3ac})=>_0x5be3ac);_0x1e54f0['unshift'](..._0x15b341);}const _0x30543c=new Map([[_0x572a54,_0x18c630]]);for(const _0x5e6ec4 of _0x1e54f0){const _0x3bb445='attribute'==_0x5e6ec4['type']?_0x5e6ec4['data']['oldValue']:void 0x0,_0x4c4ed7=_0x5e6ec4['getFirstRange'](),_0x113495=Array['from'](_0x30543c['keys']())['find'](_0x56dc31=>_0x56dc31['isIntersecting'](_0x4c4ed7));if(!_0x113495)continue;const _0x3412ff=_0x113495['getDifference'](_0x4c4ed7);this['_suggestionsConversion']['isBlockAttribute'](_0x31362f)&&'insertion'==_0x5e6ec4['type']&&0x0!=_0x3412ff['length']||(_0x30543c['delete'](_0x113495),_0x3412ff['forEach'](_0x2f5771=>{_0x30543c['set'](_0x2f5771,_0x18c630);}),'insertion'!=_0x5e6ec4['type']&&_0x3bb445!=_0x1ce18b&&_0x30543c['set'](_0x113495['getIntersection'](_0x4c4ed7),_0x3bb445));}const _0x574244=[];for(const [_0x5e88c6,_0x2712f0]of _0x30543c){const _0x4d30c0=_0x10b1ba(),_0x14da61={'key':_0x31362f,'oldValue':_0x2712f0,'newValue':_0x1ce18b};_0x31362f['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':_0x31362f});const _0x32a885=('attribute:'+(_0x31362f+'|'+Je({'newValue':_0x1ce18b})))['substring'](0x0,0x3c),_0x184202=this['_setSuggestionData']({'id':_0x4d30c0,'type':_0x32a885,'data':_0x14da61,'createdAt':new Date(),'authorId':_0x15c655,'attributes':_0x4d0e8c});_0x574244['push'](_0x184202),this['_addSuggestionMarker'](_0x32a885,_0x4d30c0,_0x15c655,_0x5e88c6);}return _0x574244;}['enableDefaultAttributesIntegration'](_0x21faab){this['enableCommand'](_0x21faab,(_0x188a59,..._0x3374e9)=>{this['recordAttributeChanges'](()=>{_0x188a59(..._0x3374e9);});});}['startTrackingSession'](_0x5c44bf){return this['_trackingSessionId']=void 0x0!==_0x5c44bf?_0x5c44bf:_0x10b1ba(),this['_trackingSessionId'];}['_getAttributeKey'](_0xf594ff){return'attribute'==_0xf594ff['type']?un(_0xf594ff['subType']):null;}['_applyOperationsAsSuggestions'](_0x453489){if(0x0==_0x453489['length'])return;const _0x1542c9=this['editor'],_0x216435=_0x1542c9['plugins']['get'](_0x42784c),_0x120602=[];_0x1542c9['model']['change'](_0x360532=>{for(let _0x204501=0x0;_0x204501<_0x453489['length'];_0x204501++){const _0x42eee3=_0x453489[_0x204501];if(_0x42eee3['baseVersion']=_0x1542c9['model']['document']['version'],_0x42eee3['isDocumentOperation']=!0x0,_0x216435['isMarkedRemoveOperation'](_0x42eee3)){const _0xefa544=_0x39a147(_0x42eee3['newRange'],_0x1542c9['model']);_0x120602['unshift'](_0x82a6d2['fromRange'](_0xefa544));}else switch(_0x42eee3['type']){case'rename':{const _0x54e7c1=_0x42eee3['oldName'],_0x14bda1=_0x42eee3['newName'];if(_0x54e7c1==_0x14bda1)break;_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0xa615a8='$elementName',_0x3c2c14=_0x42eee3['position'],_0x45b359=_0x1542c9['model']['createRange'](_0x3c2c14,_0x1542c9['model']['createPositionAt'](_0x3c2c14['nodeAfter'],'end'));this['markAttributeChange'](_0x45b359,_0xa615a8,_0x54e7c1,_0x14bda1,{'groupId':_0x10b1ba()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x562f2f=_0x42eee3['oldValue'],_0x32c7f4=_0x42eee3['newValue'];if(_0x562f2f==_0x32c7f4)break;_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0x50a304=_0x42eee3['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x50a304))break;const _0x1f49af=_0x39a147(_0x42eee3['range'],_0x1542c9['model']);this['markAttributeChange'](_0x1f49af,_0x50a304,_0x562f2f,_0x32c7f4,{'groupId':_0x10b1ba()});break;}case'insert':{_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);if(_0x453489[_0x204501+0x1]&&'move'==_0x453489[_0x204501+0x1]['type'])break;const _0x353e65=_0x42eee3['position'],_0x5e9645=_0x42eee3['howMany'],_0x5744c5=_0x39a147(_0x1542c9['model']['createRange'](_0x353e65,_0x353e65['getShiftedBy'](_0x5e9645)),_0x1542c9['model']);this['markInsertion'](_0x5744c5);break;}case'split':{_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);const _0x112afc=_0x42eee3['splitPosition'],_0x34ee84=_0x42eee3['moveTargetPosition'];this['markInsertion'](_0x1542c9['model']['createRange'](_0x112afc,_0x34ee84));break;}case'move':case'remove':_0x360532['batch']['addOperation'](_0x42eee3),_0x1542c9['model']['applyOperation'](_0x42eee3);}}for(const _0x3b9800 of _0x120602)_0x3b9800['detach'](),this['markDeletion'](_0x3b9800);});}['_setSuggestionRange'](_0x1b07b3,_0xcaa203){const _0x2b3aa1=_0x1b07b3['getFirstMarker']();this['_model']['change'](_0x4047c0=>{_0x4047c0['updateMarker'](_0x2b3aa1,{'range':_0xcaa203});});}['_addThreadToSuggestion'](_0x24ffd1){const _0x537a9a=_0x24ffd1['id'],_0x1e8e1c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x537a9a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e8e1c,'threadId':_0x537a9a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x449c85=this['_commentsRepository']['getCommentThread'](_0x537a9a);_0x449c85['unbind']('isRemovable'),_0x449c85['isRemovable']=!0x1,_0x24ffd1['commentThread']=_0x449c85;}['_checkSuggestionCorrectness'](_0x2491a7,_0x23ea3e,_0x1fdcd2,_0x4d909d){if(_0x2491a7['type']!=_0x23ea3e||_0x2491a7['subType']!=_0x1fdcd2||_0x2491a7['creator']['id']!=_0x4d909d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x54f12a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xa41518,_0x199cf1){const _0x1f016b=_0xa41518['getFirstRange']();if(_0x199cf1['isEqual'](_0x1f016b))_0xa41518['removeMarkers']();else{if(_0x1f016b['containsRange'](_0x199cf1)){const _0x44f2f5=this['_model']['createPositionAt'](_0x199cf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x1f016b['start'],_0x44f2f5));const _0xd74665=_0x10b1ba(),_0x2a2c56=_0xa41518['creator']['id'],_0x52c21b=_0xa41518['type']+':'+_0xa41518['subType'];this['_setSuggestionData']({'id':_0xd74665,'type':_0x52c21b,'createdAt':new Date(),'authorId':_0x2a2c56,'data':_0xa41518['data'],'attributes':_0xa41518['attributes']});const _0x4bcf28=this['_model']['createPositionAt'](_0x199cf1['end']['parent'],'after'),_0x176ded=this['_model']['createRange'](_0x4bcf28,_0x1f016b['end']);this['_addSuggestionMarker'](_0x52c21b,_0xd74665,_0x2a2c56,_0x176ded);}else{if(_0x1f016b['containsPosition'](_0x199cf1['start'])){const _0x4a3405=this['_model']['createPositionAt'](_0x199cf1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x1f016b['start'],_0x4a3405));}else{const _0x3847e3=this['_model']['createPositionAt'](_0x199cf1['end']['parent'],'after');this['_setSuggestionRange'](_0xa41518,this['_model']['createRange'](_0x3847e3,_0x1f016b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x17b034){for(const {suggestion:_0x4dbae0,meta:_0x344d36}of this['_findSuggestions'](_0x17b034,'insertion')){if(!_0x344d36['isOwn'])continue;const _0x4bf923=_0x4dbae0['getRanges']();for(const _0x2e5c17 of _0x4bf923)if(!_0x17b034['getDifference'](_0x2e5c17)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10092d){return this['editor']['plugins']['get']('Users')['getUser'](_0x10092d);}['_getExternalAuthor'](_0x305077){const _0x49ebf7=this['editor']['plugins']['get']('Users'),_0x5449c7=_0x308fea('external:'+_0x305077),_0x29b83=_0x49ebf7['getUser'](_0x5449c7);return _0x29b83||_0x49ebf7['addUser']({'id':_0x5449c7,'name':_0x305077});}['_createSuggestion'](_0x2ffe5c,_0x2bc8b9,_0x56fc39,_0x1c4946,_0x57fb4b,_0x3109e7){const _0x1d7871=this['_getAuthorFromId'](_0x1c4946);if(!_0x1d7871)throw new _0x54f12a('track-changes-user-not-found',this,{'authorId':_0x1c4946,'suggestionId':_0x56fc39});const _0x67fd38=this['_suggestionFactory']['buildSuggestion'](_0x2ffe5c,_0x2bc8b9,_0x56fc39,_0x1d7871,_0x57fb4b,_0x559905=>{this['_updateSuggestionData'](_0x56fc39,{'attributes':_0x559905});const _0xb4107b=this['getSuggestion'](_0x56fc39);this['_joinWithAdjacentSuggestions'](new Set([_0xb4107b])),this['_refreshSuggestionsChain'](new Set([_0xb4107b]));},_0x3109e7);return this['listenTo'](_0x67fd38,'accept',()=>{this['_updateSuggestionData'](_0x56fc39,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x67fd38,'discard',()=>{this['_updateSuggestionData'](_0x56fc39,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56fc39,_0x67fd38),this['_suggestionState']['set'](_0x67fd38,'notReady'),_0x67fd38;}['_breakSuggestionMarker'](_0xa478d9,_0x44db38,_0x2915be){const _0xd448a7=_0xa478d9['getFirstRange'](),_0x3ab190=_0xd448a7['start'],_0x388c2c=_0xd448a7['end'];this['_setSuggestionRange'](_0xa478d9,this['_model']['createRange'](_0x3ab190,_0x44db38));const _0x52a08d=_0x10b1ba(),_0x33da83=_0xa478d9['creator']['id'],_0x5115b1=_0xa478d9['type']+(_0xa478d9['subType']?':'+_0xa478d9['subType']:'');this['_setSuggestionData']({'id':_0x52a08d,'type':_0x5115b1,'createdAt':new Date(),'authorId':_0x33da83,'originalSuggestionId':_0xa478d9['_originalSuggestionId']||_0xa478d9['id'],'attributes':_0xa478d9['attributes'],'data':_0xa478d9['data']});const _0x18954c=this['_getAttributeKey'](_0xa478d9);('formatBlock'==_0xa478d9['type']||_0x18954c&&this['_suggestionsConversion']['isBlockAttribute'](_0x18954c))&&(_0x2915be=this['_model']['createPositionBefore'](_0x2915be['parent'])),this['_addSuggestionMarker'](_0x5115b1,_0x52a08d,_0x33da83,this['_model']['createRange'](_0x2915be,_0x388c2c));}['_findSuggestions'](_0x4ce68d,_0x234d10=null){const _0xc23867=[],_0x155f86=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4ce68d)||(_0x4ce68d=[_0x4ce68d]);for(const _0x1fa67a of this['getSuggestions']()){if(!_0x1fa67a['isInContent'])continue;if(_0x234d10&&_0x1fa67a['type']!=_0x234d10)continue;let _0x26c867=!0x1;for(const _0x143d71 of _0x1fa67a['getRanges']()){for(const _0x4f7050 of _0x4ce68d){const _0x38a476=_0x4f7050['start']['isEqual'](_0x143d71['end'])||_0x4f7050['end']['isEqual'](_0x143d71['start']);if(_0x38a476||_0x4f7050['getIntersection'](_0x143d71)){const _0x1ac128=_0x4f7050['containsRange'](_0x143d71)&&qe(this['_model']['schema'],_0x143d71['start'],_0x4f7050),_0x1d2499=_0x143d71['containsRange'](_0x4f7050)&&qe(this['_model']['schema'],_0x4f7050['start'],_0x143d71);_0xc23867['push']({'suggestion':_0x1fa67a,'meta':{'isOwn':_0x155f86==_0x1fa67a['author'],'isNextTo':_0x38a476,'isInsideObject':_0x1ac128,'containsRangeInObject':_0x1d2499}}),_0x26c867=!0x0;break;}}if(_0x26c867)break;}}return _0xc23867;}['_addSuggestionMarker'](_0x16748c,_0x1ae72b,_0x17e0c6,_0x3e1b28,_0x41bb1f){this['_model']['change'](_0x4d1c9c=>{let _0xaef928='suggestion:'+_0x16748c+':'+_0x1ae72b+':'+_0x17e0c6;_0x41bb1f&&(_0xaef928=_0xaef928+':'+_0x41bb1f),_0x4d1c9c['addMarker'](_0xaef928,{'range':_0x3e1b28,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x531893){const _0x3b2074=_0x531893['previous'],_0x1fd3ad=_0x531893['next'];_0x531893['previous']=null,_0x531893['next']=null,null!=_0x3b2074&&_0x3b2074['next']==_0x531893&&(_0x3b2074['next']=_0x1fd3ad),null!=_0x1fd3ad&&_0x1fd3ad['previous']==_0x531893&&(_0x1fd3ad['previous']=_0x3b2074),'ready'==this['_suggestionState']['get'](_0x531893)&&(this['_suggestionState']['set'](_0x531893,'removed'),this['fire']('suggestionUnloaded',_0x531893,_0x3b2074,_0x1fd3ad));}['_setSuggestionData'](_0x5274e1){const _0x53106d=_0x5274e1['id'],_0x42da15=this['addSuggestionData'](_0x5274e1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x453fe0=this['editor']['plugins']['get']('PendingActions'),_0x37d91f=_0x42da15['hasComments'],_0x239495=_0x42da15['subType']?_0x42da15['type']+':'+_0x42da15['subType']:_0x42da15['type'],_0x59ea38=this['editor']['locale'],_0x3c70ae=_0x453fe0['add'](At(_0x59ea38,'PENDING_ACTION_SUGGESTION')),_0xda2ee8={'id':_0x53106d,'type':_0x239495,'hasComments':_0x37d91f,'data':_0x5274e1['data']||null,'originalSuggestionId':_0x5274e1['originalSuggestionId']||null,'attributes':_0x42da15['attributes']};this['_adapter']['addSuggestion'](_0xda2ee8)['then'](_0x4b4fe8=>{_0x42da15['_saved']=!0x0,_0x453fe0['remove'](_0x3c70ae),_0x4b4fe8&&_0x4b4fe8['createdAt']&&(this['_suggestions']['get'](_0x53106d)['createdAt']=_0x4b4fe8['createdAt']);})['catch'](_0x67e8f1=>{throw _0x5d3e28('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42da15['discard']();}),_0x42da15['stopListening'](),this['_suggestions']['delete'](_0x42da15['id']),this['_suggestionState']['delete'](_0x42da15),_0x67e8f1;});}return _0x42da15;}['_updateSuggestionData'](_0x571dad,_0x55d2c8){const _0x5a5c39=this['editor']['plugins']['get']('PendingActions'),_0x34b755=this['getSuggestion'](_0x571dad);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x34b755['_saved']){const _0x5e4ba4=_0x5a5c39['add'](At(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x571dad,_0x55d2c8)['then'](()=>{_0x5a5c39['remove'](_0x5e4ba4);});}else _0x34b755['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x571dad,_0x55d2c8);});}}['_getSuggestionData'](_0x4c0900){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x54f12a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c0900);}['_handleNewSuggestionMarker'](_0x12dd0d){const {id:_0x28dc24,type:_0x24216a,subType:_0x562804,authorId:_0x314820}=_0x269eaf(_0x12dd0d),_0x8c4bc2=this['_suggestions']['get'](_0x28dc24)||this['_createSuggestion'](_0x24216a,_0x562804,_0x28dc24,_0x314820,{});switch(this['_checkSuggestionCorrectness'](_0x8c4bc2,_0x24216a,_0x562804,_0x314820),this['_suggestionState']['get'](_0x8c4bc2)){case'notReady':this['_getSuggestionData'](_0x28dc24)['then'](_0x4d21da=>{let _0x2df826=Promise['resolve']();_0x4d21da['hasComments']&&(_0x2df826=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x28dc24})),_0x2df826['then'](()=>{this['addSuggestionData'](_0x4d21da)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x8c4bc2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x28dc24,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x8c4bc2,'ready'),this['fire']('suggestionLoaded',_0x8c4bc2);break;case'ready':this['fire']('suggestionChanged',_0x8c4bc2);}return _0x8c4bc2['addMarkerName'](_0x12dd0d),_0x8c4bc2;}['_refreshSuggestionsChain'](_0x5127a2){const _0x33b336=Array['from'](_0x5127a2),_0x2f95fc=_0x33b336['filter'](_0x4bb323=>'attribute'==_0x4bb323['type']);this['_refreshAttributeSuggestionsChain'](_0x2f95fc);const _0x4fbf8b=_0x33b336['filter'](_0x268580=>!_0x268580['isMultiRange']&&'attribute'!=_0x268580['type']),_0x1e1957=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1afada=>!_0x1afada['isMultiRange']&&'attribute'!=_0x1afada['type']),_0x2beef4=_0x1e1957['filter'](_0x1bd267=>!_0x5127a2['has'](_0x1bd267)),_0x4b151f=new Map(_0x1e1957['map'](_0x4618c5=>[_0x4618c5,this['_suggestionFactory']['getSuggestionCallback'](_0x4618c5['type'],_0x4618c5['subType'],'chain')])),_0x1b7016=new Map(_0x1e1957['map'](_0x3979a1=>[_0x3979a1,_0x3979a1['getFirstRange']()])),_0x5e9c27=new Set(),_0x4c5b77=new Set();for(let _0x5df850=0x0;_0x5df850<_0x4fbf8b['length'];_0x5df850++)_0x20de55(_0x4fbf8b[_0x5df850],_0x4fbf8b,_0x5df850+0x1);for(let _0x36906e=0x0;_0x36906e<_0x4fbf8b['length'];_0x36906e++)_0x20de55(_0x4fbf8b[_0x36906e],_0x2beef4,0x0);const _0x3e6966=new Set();for(let _0x28236d=0x0;_0x28236d<_0x4fbf8b['length'];_0x28236d++){const _0x4e62d1=_0x4fbf8b[_0x28236d];!_0x4c5b77['has'](_0x4e62d1)&&_0x4e62d1['previous']&&(_0x3e6966['add'](_0x4e62d1['previous']),_0x4e62d1['previous']['next']===_0x4e62d1&&(_0x4e62d1['previous']['next']=null),_0x4e62d1['previous']=null),!_0x5e9c27['has'](_0x4e62d1)&&_0x4e62d1['next']&&(_0x3e6966['add'](_0x4e62d1['next']),_0x4e62d1['next']['previous']===_0x4e62d1&&(_0x4e62d1['next']['previous']=null),_0x4e62d1['next']=null);}function _0x20de55(_0x3d53e9,_0x4a4da0,_0x101567){for(let _0x629660=_0x101567;_0x629660<_0x4a4da0['length'];_0x629660++){const _0x4e44e4=_0x543425(_0x3d53e9,_0x4a4da0[_0x629660]);_0x4e44e4&&(_0x4e44e4[0x0]['next']=_0x4e44e4[0x1],_0x4e44e4[0x1]['previous']=_0x4e44e4[0x0],_0x5e9c27['add'](_0x4e44e4[0x0]),_0x4c5b77['add'](_0x4e44e4[0x1]));}}function _0x543425(_0x7c55ce,_0x35fade){if(_0x7c55ce['author']['id']!==_0x35fade['author']['id'])return null;const _0x1cf25c=_0x4b151f['get'](_0x7c55ce)(_0x7c55ce,_0x35fade,_0x1b7016['get'](_0x7c55ce),_0x1b7016['get'](_0x35fade));if(!_0x1cf25c)return null;return _0x4b151f['get'](_0x35fade)(_0x7c55ce,_0x35fade,_0x1b7016['get'](_0x7c55ce),_0x1b7016['get'](_0x35fade))?_0x1cf25c[0x1]['commentThread']&&_0x1cf25c[0x1]['commentThread']['length']?null:_0x1cf25c:null;}_0x3e6966['size']&&this['_refreshSuggestionsChain'](_0x3e6966);}['_refreshAttributeSuggestionsChain'](_0x30f2b6){if(0x0==_0x30f2b6['length'])return;const _0x263e07=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b37b=>'attribute'==_0x17b37b['type']&&_0x17b37b['_isDataLoaded']),_0x76b0b4=[],_0x350ea4=new Map();for(const _0x24f2f5 of _0x263e07){const _0x39a71f=_0x308fea(_0x24f2f5['attributes']);_0x350ea4['has'](_0x39a71f)||(_0x350ea4['set'](_0x39a71f,_0x76b0b4['length']),_0x76b0b4['push']([]));const _0x40b500=_0x350ea4['get'](_0x39a71f);_0x76b0b4[_0x40b500]['push'](_0x24f2f5);}!(function(){_0x76b0b4['sort']((_0x4bb245,_0x19c213)=>{const _0x17059f=_0x4bb245[0x0]['createdAt'],_0xfc550=_0x19c213[0x0]['createdAt'];return _0x17059f==_0xfc550?_0x4bb245[0x0]['attributes']['groupId']<_0x19c213[0x0]['attributes']['groupId']?-0x1:0x1:_0x17059f<_0xfc550?-0x1:0x1;});for(const _0xa70afe of _0x76b0b4)_0xa70afe['sort']((_0x5ca823,_0x2b868d)=>_0x5ca823['id']<_0x2b868d['id']?-0x1:0x1);}());for(let _0x1b0762=0x0;_0x1b0762<_0x76b0b4['length'];_0x1b0762++){if(0x0==_0x76b0b4[_0x1b0762]['length'])continue;const _0x57a281=[];for(let _0x5216aa=_0x1b0762+0x1;_0x5216aa<_0x76b0b4['length'];_0x5216aa++)0x0!=_0x76b0b4[_0x5216aa]['length']&&_0x458230(_0x76b0b4[_0x1b0762],_0x76b0b4[_0x5216aa])&&_0x57a281['push'](_0x5216aa);for(const _0x1e76e5 of _0x57a281)_0x76b0b4[_0x1b0762]=_0x76b0b4[_0x1b0762]['concat'](_0x76b0b4[_0x1e76e5]),_0x76b0b4[_0x1e76e5]=[];}for(const _0x45d5cc of _0x76b0b4)for(let _0x4a0863=0x0;_0x4a0863<_0x45d5cc['length'];_0x4a0863++){const _0x1d2580=_0x45d5cc[_0x4a0863+0x1]||null;_0x45d5cc[_0x4a0863]['next']!==_0x1d2580&&(_0x45d5cc[_0x4a0863]['next']=_0x1d2580);}for(const _0x3db2e6 of _0x76b0b4)for(let _0x3f29ee=0x0;_0x3f29ee<_0x3db2e6['length'];_0x3f29ee++){const _0x15fc9c=_0x3db2e6[_0x3f29ee-0x1]||null;_0x3db2e6[_0x3f29ee]['previous']!==_0x15fc9c&&(_0x3db2e6[_0x3f29ee]['previous']=_0x15fc9c);}function _0x458230(_0x29b2a8,_0xf46235){if(_0x29b2a8[0x0]['attributes']['groupId']!==_0xf46235[0x0]['attributes']['groupId']&&_0x29b2a8[0x0]['author']!==_0xf46235[0x0]['author'])return!0x1;if(!function(_0x4063de,_0xe13f6){if(!_0x4063de['hasComments']&&!_0xe13f6['hasComments'])return!0x0;if(_0x4063de['hasComments']&&_0xe13f6['hasComments'])return!0x1;if(_0x4063de['hasComments']&&_0xe13f6['createdAt']<_0x4063de['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xe13f6['hasComments']&&_0x4063de['createdAt']<_0xe13f6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x29b2a8[0x0],_0xf46235[0x0]))return!0x1;const _0x37a902=ot(_0x29b2a8[0x0]['attributes'],['groupId','trackingSessionId']),_0x266a48=ot(_0xf46235[0x0]['attributes'],['groupId','trackingSessionId']);if(!st(_0x37a902,_0x266a48))return!0x1;if(_0x29b2a8[0x0]['attributes']['groupId']==_0xf46235[0x0]['attributes']['groupId'])return!0x0;if(_0x29b2a8[0x0]['attributes']['trackingSessionId']!==_0xf46235[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x29b2a8['every'](_0x1d3b75=>_0xf46235['some'](_0x1da986=>_0x1d3b75['getFirstRange']()['isEqual'](_0x1da986['getFirstRange']())))&&_0xf46235['every'](_0x547ec3=>_0x29b2a8['some'](_0x57d32a=>_0x547ec3['getFirstRange']()['isEqual'](_0x57d32a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4d9f85){const _0x4f249d=Array['from'](_0x4d9f85),_0x49e3d4=this['getSuggestions']({'skipNotAttached':!0x0}),_0x556b06=_0x49e3d4['filter'](_0x1b467a=>!_0x4d9f85['has'](_0x1b467a)),_0x546368=new Map(_0x4f249d['map'](_0x2f7e76=>[_0x2f7e76,this['_suggestionFactory']['getSuggestionCallback'](_0x2f7e76['type'],_0x2f7e76['subType'],'join')])),_0x31c0eb=new Map(_0x49e3d4['map'](_0x40b8cc=>[_0x40b8cc,_0x40b8cc['getRanges']()]));for(let _0x5ee5af=0x0;_0x5ee5af<_0x4f249d['length'];_0x5ee5af++){if(_0x4a0f1a(this,_0x4f249d[_0x5ee5af],_0x4f249d,_0x5ee5af+0x1))return!0x0;}for(let _0x59506d=0x0;_0x59506d<_0x4f249d['length'];_0x59506d++){if(_0x4a0f1a(this,_0x4f249d[_0x59506d],_0x556b06,0x0))return!0x0;}return!0x1;function _0x4a0f1a(_0x656d43,_0x10112b,_0x559894,_0x3c7bf1){for(let _0x4a7b4e=_0x3c7bf1;_0x4a7b4e<_0x559894['length'];_0x4a7b4e++){const _0x3a7003=_0x559894[_0x4a7b4e];if(_0x3a7003['type']!==_0x10112b['type']||_0x3a7003['author']['id']!==_0x10112b['author']['id']||_0x3a7003['subType']!==_0x10112b['subType'])continue;if(!an(_0x10112b,_0x3a7003))continue;if('attribute'==_0x10112b['type']&&_0x10112b['data']['oldValue']!=_0x3a7003['data']['oldValue'])continue;if('attribute'==_0x10112b['type']&&_0x656d43['_suggestionsConversion']['isBlockAttribute'](_0x10112b['data']['key']))continue;if('formatBlock'==_0x10112b['type']){const _0x14240b=_0x656d43['editor']['model'],_0x3317ed=_0x10112b['getContainedElement']();if(_0x3317ed&&(_0x14240b['schema']['isObject'](_0x3317ed)||_0x14240b['schema']['isLimit'](_0x3317ed)))continue;}const _0x1a733d=_0x546368['get'](_0x10112b),_0x3a09a3=_0x31c0eb['get'](_0x10112b),_0x15c6d7=_0x31c0eb['get'](_0x3a7003),_0x4a2474=_0x10112b['commentThread']&&_0x10112b['commentThread']['length'],_0xed2ff6=_0x3a7003['commentThread']&&_0x3a7003['commentThread']['length'];if(!_0x4a2474&&_0x1a733d(_0x15c6d7,_0x3a09a3))return _0x656d43['_joinSuggestions'](_0x3a7003,_0x10112b),_0x31c0eb['delete'](_0x10112b),!0x0;if(!_0xed2ff6&&_0x1a733d(_0x3a09a3,_0x15c6d7))return _0x656d43['_joinSuggestions'](_0x10112b,_0x3a7003),_0x31c0eb['delete'](_0x3a7003),!0x0;}return!0x1;}}['_joinSuggestions'](_0x19ac67,_0x5eafe2){if(_0x19ac67['isMultiRange']){for(const _0x463bbb of _0x5eafe2['getRanges']())_0x19ac67['addRange'](_0x463bbb);}else{const _0x5f91fc=_0x5eafe2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x19ac67,this['_model']['createRange'](_0x19ac67['getFirstRange']()['start'],_0x5f91fc));}_0x5eafe2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdd50e3,_0x13e2bb,_0x37d66d){const _0x238a50=_0xdd50e3['startsWith']('format')||_0xdd50e3['startsWith']('attribute')?'FORMATTING':_0xdd50e3['toUpperCase']();return At(this['editor']['locale'],_0x13e2bb+'_'+_0x238a50+'_SUGGESTION_ANNOUNCEMENT',_0x37d66d);}['_initAriaMarkerChangeAnnouncements'](){const _0x1ea9c0=this['editor'];if(!_0x1ea9c0['ui'])return;const {ariaLiveAnnouncer:_0x4eae71}=_0x1ea9c0['ui'];_0x20f644(this['_model'],({left:_0x52d1bc,entered:_0x3e53a3})=>{for(const _0x18cf60 of _0x52d1bc){const {group:_0x44e027,type:_0x19e308}=_0x269eaf(_0x18cf60['name']);if('suggestion'===_0x44e027){_0x4eae71['announce'](this['_getMarkerAnnouncementText'](_0x19e308,'LEAVE'));break;}}for(const _0x3a58d5 of _0x3e53a3){const {group:_0x5595ab,type:_0x353fd0}=_0x269eaf(_0x3a58d5['name']);if('suggestion'===_0x5595ab){_0x4eae71['announce'](this['_getMarkerAnnouncementText'](_0x353fd0,'ENTER',_0x1e8d39(_0x4b3ffd)));break;}}});}['_processAttributeChanges'](_0x3ad8ed){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5a4b50=this['editor'],_0x225aba=_0x5a4b50['model']['document']['differ']['getChanges']();if(0x0==_0x225aba['length'])return!0x1;const _0x57b42d=[],_0x37b328=_0x225aba['filter'](_0x286a64=>'attribute'==_0x286a64['type']),_0x303740=_0x225aba['filter'](_0x23ba3b=>'insert'==_0x23ba3b['type']&&'$text'!=_0x23ba3b['name']),_0x33e48d=_0x225aba['filter'](_0x5bcef7=>'remove'==_0x5bcef7['type']&&'$text'!=_0x5bcef7['name']);for(const _0x334ceb of _0x37b328)_0x57b42d['push']({'key':_0x334ceb['attributeKey'],'newValue':_0x334ceb['attributeNewValue'],'oldValue':_0x334ceb['attributeOldValue'],'range':sn(_0x334ceb['range'],_0x5a4b50['model'])});for(const _0x162d03 of _0x303740){const _0x1ebf09=_0x33e48d['find'](_0x50ac65=>_0x50ac65['position']['isEqual'](_0x162d03['position']));_0x1ebf09&&_0x57b42d['push']({'key':Ke,'newValue':_0x162d03['name'],'oldValue':_0x1ebf09['name'],'range':_0x5a4b50['model']['createRangeOn'](_0x162d03['position']['nodeAfter'])});}return 0x0!=_0x57b42d['length']&&this['_reduceExistingSuggestions'](_0x3ad8ed,_0x57b42d);}['_processAttributeSuggestions'](_0xe46b1){let _0x6127d8=!0x1;const _0x41bbdd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12133d=>_0x12133d['data']['newRange']&&_0x12133d['name']['startsWith']('suggestion:attribute:'));for(const _0x4b0ddd of _0x41bbdd){const {subType:_0x1fabd7,id:_0x1df3b8}=_0x269eaf(_0x4b0ddd['name']),_0x3b490f=_0x1fabd7['split']('|')[0x0];for(const _0x5d5920 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d5920['id']!=_0x1df3b8&&'attribute'==_0x5d5920['type']&&_0x5d5920['data']&&_0x5d5920['data']['key']==_0x3b490f&&_0x5d5920['getFirstRange']()['isIntersecting'](_0x4b0ddd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d5920,_0x4b0ddd['data']['newRange'],_0xe46b1),_0x6127d8=!0x0);}return _0x6127d8;}['recordAttributeChanges'](_0x551850){this['_recordAttributeSuggestions']=!0x0,_0x551850();}['_reduceExistingSuggestions'](_0x5b5e83,_0x2a83af){if(0x0==_0x2a83af['length'])return!0x1;let _0x4c65d6=!0x1;for(const _0x2b92d5 of _0x2a83af){const _0x58204e=this['_findSuggestions'](_0x2b92d5['range'],'attribute')['filter'](_0x238d13=>!_0x238d13['meta']['isNextTo'])['map'](_0x5577d3=>_0x5577d3['suggestion']),_0x10af01=_0x308fea({'newValue':_0x2b92d5['newValue']});_0x58204e['filter'](_0x144ca3=>{const [_0x130128,_0x38a2f6]=_0x144ca3['subType']['split']('|');return _0x130128==_0x2b92d5['key']&&_0x38a2f6!=_0x10af01;})['forEach'](_0x35ae0f=>{this['_reduceSuggestionAttributeRange'](_0x35ae0f,_0x2b92d5['range'],_0x5b5e83),_0x4c65d6=!0x0;});}return _0x4c65d6;}['_reduceSuggestionAttributeRange'](_0x45896a,_0x5dd422,_0x3e8f75){const _0xfab3cb=_0x45896a['getFirstRange']()['getDifference'](_0x5dd422);0x0!==_0xfab3cb['length']?0x1!==_0xfab3cb['length']?this['_breakSuggestionMarker'](_0x45896a,_0x5dd422['start'],_0x5dd422['end']):this['_setSuggestionRange'](_0x45896a,_0xfab3cb[0x0]):_0x3e8f75['removeMarker'](_0x45896a['getFirstMarker']());}}class Ye{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x213536){this['_editor']=_0x213536,this['_model']=_0x213536['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x561950,_0x2b32f2,_0x43dd0e,_0xf4c205,_0x27608e,_0x227f03,_0x2a4b4b){return new bt(this['_model'],{'type':_0x561950,'subType':_0x2b32f2,'id':_0x43dd0e,'originalSuggestionId':_0x2a4b4b,'author':_0xf4c205,'creator':_0xf4c205,'attributes':_0x27608e,'onAttributesChange':_0x227f03,'onAccept':(..._0x4d1597)=>this['getSuggestionCallback'](_0x561950,_0x2b32f2,'accept')(..._0x4d1597),'onDiscard':(..._0x13915a)=>this['getSuggestionCallback'](_0x561950,_0x2b32f2,'discard')(..._0x13915a)});}['registerCustomCallback'](_0x284921,_0x31bf13,_0x3d00c3,_0xdb37af){const _0x488149=_0x284921+':'+_0x31bf13+':'+_0x3d00c3;this['_customCallbacks']['set'](_0x488149,_0xdb37af);}['getSuggestionCallback'](_0xdb286,_0x35486e,_0xe96ac9){const _0x84d030=_0xdb286+':'+_0x35486e+':'+_0xe96ac9;return this['_customCallbacks']['get'](_0x84d030)||this['_defaultCallbacks']['get'](_0xdb286+':'+_0xe96ac9);}['_registerDefaultCallbacks'](){const _0x422f63=()=>!0x1,_0x13f2b8=_0x51c63e=>{_0x51c63e['sort']((_0x5bdfa9,_0x1409dc)=>_0x5bdfa9['start']['isBefore'](_0x1409dc['start'])?0x1:-0x1),this['_model']['change'](_0x4efc21=>{for(const _0x57aa1a of _0x51c63e){let _0x319c54;_0x319c54=_0x57aa1a['end']['isAtEnd']&&_0x57aa1a['end']['parent']==_0x57aa1a['start']['nodeAfter']?_0x4efc21['createSelection'](_0x57aa1a['start']['nodeAfter'],'on'):_0x4efc21['createSelection'](_0x57aa1a),this['_model']['deleteContent'](_0x319c54,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3cfc9d=(_0x4bfd82,_0x1b561c)=>{_0x1b561c&&this['_model']['change'](_0x3682b9=>{const {commandName:_0x2b989e,commandParams:_0x29ab33=[]}=_0x1b561c,_0x39c1cc=_0x4bfd82['map'](_0x4376e=>(Qe(_0x4376e)&&(_0x4376e=this['_model']['createRange'](_0x4376e['end'])),_0x4376e))['filter'](_0x5dcfc3=>'$graveyard'!==_0x5dcfc3['root']['rootName']);if(_0x39c1cc['length']<0x1)return;const _0x1a8845=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5c02d9=>_0x82a6d2['fromRange'](_0x5c02d9));_0x3682b9['setSelection'](_0x39c1cc);for(const _0x4c35f0 of this['_editor']['commands']['commands']())_0x4c35f0['refresh']();_0x29ab33['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2b989e,..._0x29ab33);const _0x1c6f1e=_0x1a8845['filter'](_0x458d16=>'$graveyard'!=_0x458d16['root']['rootName']);_0x1c6f1e['length']>0x0&&_0x3682b9['setSelection'](_0x1c6f1e);for(const _0x23e7d5 of _0x1a8845)_0x23e7d5['detach']();});},_0x110c85=(_0x46b4e3,_0x520212)=>0x1==_0x46b4e3['length']&&0x1==_0x520212['length']&&_0x46b4e3[0x0]['end']['isEqual'](_0x520212[0x0]['start']),_0x51d3b8=(_0x4ef694,_0x2e4064,_0x322649,_0x1eacaa)=>on(_0x4ef694,_0x2e4064,_0x322649,_0x1eacaa)?[_0x4ef694,_0x2e4064]:on(_0x2e4064,_0x4ef694,_0x1eacaa,_0x322649)?[_0x2e4064,_0x4ef694]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x422f63),this['_defaultCallbacks']['set']('insertion:discard',_0x13f2b8),this['_defaultCallbacks']['set']('insertion:join',_0x110c85),this['_defaultCallbacks']['set']('insertion:chain',_0x51d3b8),this['_defaultCallbacks']['set']('deletion:accept',_0x13f2b8),this['_defaultCallbacks']['set']('deletion:discard',_0x422f63),this['_defaultCallbacks']['set']('deletion:join',_0x110c85),this['_defaultCallbacks']['set']('deletion:chain',_0x51d3b8),this['_defaultCallbacks']['set']('formatInline:accept',_0x3cfc9d),this['_defaultCallbacks']['set']('formatInline:discard',_0x422f63),this['_defaultCallbacks']['set']('formatInline:join',_0x110c85),this['_defaultCallbacks']['set']('formatInline:chain',_0x422f63),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3cfc9d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x422f63),this['_defaultCallbacks']['set']('formatBlock:join',_0x110c85),this['_defaultCallbacks']['set']('formatBlock:chain',_0x422f63),this['_defaultCallbacks']['set']('attribute:accept',_0x422f63),this['_defaultCallbacks']['set']('attribute:discard',(_0x540e6b,_0x4733fb)=>{if(!_0x4733fb)return;const _0x3f4fd9=this['_editor']['plugins']['get'](_0x59977f);this['_model']['change'](_0x3445ab=>{if(_0x4733fb['key']==Ke)for(const _0xc3c142 of _0x540e6b){const _0x490fc6=_0xc3c142['start']['nodeAfter'],_0x4485fb=_0x4733fb['oldValue'];_0x3445ab['rename'](_0x490fc6,_0x4485fb);}else{if(_0x3f4fd9['isBlockAttribute'](_0x4733fb['key'])){for(const _0x3a81cc of _0x540e6b)void 0x0!==_0x4733fb['oldValue']?_0x3445ab['setAttribute'](_0x4733fb['key'],_0x4733fb['oldValue'],_0x3a81cc['start']['nodeAfter']):_0x3445ab['removeAttribute'](_0x4733fb['key'],_0x3a81cc['start']['nodeAfter']);}else{for(const _0x381a3c of _0x540e6b)_0x4733fb['oldValue']?_0x3445ab['setAttribute'](_0x4733fb['key'],_0x4733fb['oldValue'],_0x381a3c):_0x3445ab['removeAttribute'](_0x4733fb['key'],_0x381a3c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x110c85);}}function qe(_0x37caad,_0x21005f,_0x13d615){for(const _0x1730fa of _0x21005f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1730fa['root']==_0x1730fa)return!0x1;if(!_0x13d615['containsItem'](_0x1730fa))return!0x1;if(_0x37caad['isObject'](_0x1730fa)||_0x37caad['isLimit'](_0x1730fa))return!0x0;}return!0x1;}function Qe(_0x5c15ce){return _0x5c15ce['end']['parent']==_0x5c15ce['start']['nodeAfter']&&_0x5c15ce['end']['isAtStart'];}function Ze(_0xa396ea,_0x4ab19c,_0x5a03de,_0x831f61){const _0x5ecabc=_0x5db958=>!_0x5db958['item']['is']('$textProxy')&&!_0x831f61['isObject'](_0x5db958['item']),_0x1996d7=_0xa396ea['start']['getLastMatchingPosition'](_0x5ecabc),_0x5f064f=_0xa396ea['end']['getLastMatchingPosition'](_0x5ecabc,{'direction':'backward'});return(!_0xa396ea['start']['isEqual'](_0x1996d7)||!_0xa396ea['end']['isEqual'](_0x5f064f))&&(_0x1996d7['isBefore'](_0x5f064f)?_0x5a03de['updateMarker'](_0x4ab19c,{'range':_0x5a03de['createRange'](_0x1996d7,_0x5f064f)}):_0x5a03de['removeMarker'](_0x4ab19c),!0x0);}function Je(_0x21bdee){return _0x308fea(_0x21bdee);}function tn(_0x5b96c2){const _0x21fdbe=_0x5b96c2['start']['nodeAfter'];return _0x21fdbe&&_0x21fdbe['is']('element');}function en(_0x3165a8){return Qe(_0x3165a8)||function(_0x12f317){return _0x12f317['start']['parent']==_0x12f317['end']['nodeBefore']&&_0x12f317['start']['isAtEnd'];}(_0x3165a8);}function nn(_0x2b7389,_0xa38262){try{const _0x563204=_0x2b7389['getRange']();for(const _0x228696 of _0xa38262)if(_0x2b7389!==_0x228696&&_0x563204&&_0x563204['isIntersecting'](_0x228696['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function sn(_0x3ad489,_0x266e3c){return null==_0x3ad489['end']['nodeBefore']&&_0x3ad489['end']['parent']==_0x3ad489['start']['nodeAfter']?rn(_0x3ad489['start']['nodeAfter'],_0x266e3c):_0x3ad489;}function rn(_0x4429fd,_0x44e117){const _0x12a59a=_0x44e117['schema']['isObject'](_0x4429fd)||_0x44e117['schema']['isSelectable'](_0x4429fd);return _0x44e117['createRange'](_0x44e117['createPositionAt'](_0x4429fd,'before'),_0x12a59a?_0x44e117['createPositionAfter'](_0x4429fd):_0x44e117['createPositionAt'](_0x4429fd,'end'));}function on(_0x2e2592,_0x4613b7,_0x2ec354,_0x5d9c70){return!!an(_0x2e2592,_0x4613b7)&&_0x2ec354['end']['isEqual'](_0x5d9c70['start']);}function an(_0x1f168c,_0x81e15e){if(!_0x1f168c['_isDataLoaded']||!_0x81e15e['_isDataLoaded'])return!0x1;const _0x198eea=new Set(Object['keys'](_0x1f168c['attributes'])),_0x1fe4c6=new Set(Object['keys'](_0x81e15e['attributes']));if(_0x198eea['delete']('groupId'),_0x1fe4c6['delete']('groupId'),0x0==_0x198eea['size']&&0x0==_0x1fe4c6['size'])return!0x0;if(_0x198eea['size']!=_0x1fe4c6['size'])return!0x1;const _0x334255={..._0x1f168c['attributes']},_0x586d4a={..._0x81e15e['attributes']};return delete _0x334255['groupId'],delete _0x586d4a['groupId'],JSON['stringify'](_0x334255)==JSON['stringify'](_0x586d4a);}function cn(_0x4aee1a,_0x36eaaa){const _0x22f3bc=ln(_0x4aee1a['attributes']),_0x1a0ba1=ln(_0x36eaaa);if(!_0x4aee1a['_isDataLoaded'])return!0x1;for(const _0x1fc1fc of Object['keys'](_0x1a0ba1))if(!st(_0x22f3bc[_0x1fc1fc],_0x1a0ba1[_0x1fc1fc]))return!0x1;return!0x0;}function ln(_0x4a6d9e){const _0x149751=Object['assign']({},_0x4a6d9e);return delete _0x149751['skipNestingCheck'],delete _0x149751['tablePasteChainId'],_0x149751;}function un(_0x341188){return _0x341188['split']('|')[0x0];}class hn extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x52ada8(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x383db7,_0x4d43bf,_0x497a3a,_0x3c0af9){super(),this['model']=_0x4d43bf,this['view']=_0x497a3a,this['commentThreadController']=_0x3c0af9,this['_editor']=_0x383db7,this['_acceptCommand']=_0x383db7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x383db7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x43a8cb,_0x248db3)=>_0x43a8cb||_0x248db3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1bcb8f=>_0x1bcb8f&&this['_editor']['model']['canEditAt'](_0x4d43bf['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x42194b=>_0x42194b&&this['_editor']['model']['canEditAt'](_0x4d43bf['getRanges']())),this['_pendingAction']=null,_0x497a3a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x497a3a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x497a3a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x497a3a,'change:isDirty',()=>{_0x497a3a['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 _0x1eb061=At(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1eb061);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class dn extends _0x1fc7e3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5aefa0,_0x31b685,_0x246e20,_0x253228){super(_0x5aefa0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x352d10(_0x5aefa0,At(_0x5aefa0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x31b685['authoredAt']),this['bind']('authoredAt')['to'](_0x31b685),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',_0x31b685,'authoredAt',this,'descriptionParts',(_0x2ba1fe,_0x50a489,_0xcd9d66)=>{const _0x9aca9a=_0xcd9d66['map'](_0x4de409=>gt(_0x4de409['content']))['join']('.\x20')+'.';return At(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2ba1fe-0x1,_0x31b685['author']['name'],_0x50a489?_0x253228['formatDateTime'](_0x50a489):'',new DOMParser()['parseFromString'](_0x9aca9a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x36f468(),this['focusTracker']=new _0x5def8c(),this['keystrokes']=new _0x8f403f(),this['focusCycler']=new _0x5d13be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x226212=>_0x226212['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x31b685,this['_localUser']=_0x246e20,this['_config']=_0x253228,_0x253228['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4475e0(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a8521}=this['_config'];this['commentsListView']=new _0x1a8521(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',_0x439c22=>_0x439c22+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x11d735,_0x1d651a)=>_0x11d735||!!_0x1d651a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x354953}=this['_config'],_0x3ac539=new _0x354953(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3a669c=_0x3ac539['commentInputView'];return _0x3ac539['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3a669c,'value',(_0x3c21f8,_0xc87592,_0x327be8)=>!!_0x327be8||_0x3c21f8&&!_0xc87592),_0x3a669c['on']('submit',(_0xc38b36,_0x2ae019)=>{this['fire']('addComment',_0x2ae019),_0x3a669c['editor']['setData']('');}),_0x3a669c['on']('cancel',()=>this['focus']()),_0x3a669c['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3ac539;}}class fn extends dn{['suggestionView'];['_descriptionElement'];constructor(_0x353ddd,_0x31c21d,_0x558737,_0x336c5f){super(_0x353ddd,_0x31c21d,_0x558737,_0x336c5f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3f4d58=>_0x3f4d58&&_0x3f4d58[0x0]?_0x3f4d58[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3fb0aa,_0x3507ea)=>{let _0x2f1ede='';for(const _0x2d65dd of _0x3fb0aa)_0x2f1ede+='<p>'+gt(_0x2d65dd['content'],_0x2d65dd['color'])+'</p>';return _0x3507ea?_0x2f1ede:_0x1eb79e(_0x2f1ede,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x336c5f['SuggestionView'](_0x353ddd,_0x31c21d,{'formatDateTime':_0x336c5f['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 _0x134e17=this['bindTemplate'],_0x2697ec=[this['suggestionView']];return this['commentsListView']&&_0x2697ec['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2697ec['push'](this['commentThreadInputView']),_0x2697ec['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x134e17['if']('isActive','ck-suggestion-wrapper--active'),_0x134e17['to']('type',_0x40d2bd=>'ck-suggestion-'+_0x40d2bd),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':_0x134e17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2697ec};}['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 _0x1fc7e3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3932a5,_0x51fb77,_0xf3d6f7){super(_0x3932a5),this['_model']=_0x51fb77,this['_config']=_0xf3d6f7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51fb77),this['acceptButton']=this['_createButton'](At(_0x3932a5,'Accept\x20suggestion'),_0x5187d2,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](At(_0x3932a5,'Discard\x20suggestion'),_0x21a991,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x104b2f(_0x3932a5,_0x51fb77['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x36f468([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5def8c(),this['keystrokes']=new _0x8f403f(),this['focusCycler']=new _0x5d13be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x6d5e2d=>_0x6d5e2d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1a4de7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1a4de7['innerHTML']=this['description'],this['on']('change:description',(_0x5a5c3e,_0x4de91e,_0x125685)=>{_0x1a4de7['innerHTML']=_0x125685;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x130e9d=this['bindTemplate'],_0x153084=[{'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':_0x130e9d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x130e9d['to']('authoredAt',_0x5dab28=>this['_config']['formatDateTime'](_0x5dab28))}]}]},{'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']&&_0x153084['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':_0x153084}]};}['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'](_0x1310be,_0x573f02,_0x3509da,_0x501cd2,_0x1e9c9a){const _0x527fdf=new _0x24af73(this['locale']);return _0x527fdf['set']({'label':_0x1310be,'icon':_0x573f02,'tooltip':!0x0,'tooltipPosition':_0x1e9c9a}),_0x527fdf['extendTemplate']({'attributes':{'class':_0x3509da}}),_0x527fdf['on']('execute',()=>{this['fire'](_0x501cd2,this['_model']['id']);}),_0x527fdf;}['_setupKeyboardNavigation'](){const _0x108788=this['element'];this['keystrokes']['listenTo'](_0x108788);for(const _0x2276d5 of this['focusables'])this['focusTracker']['add'](_0x2276d5['element']),this['keystrokes']['listenTo'](_0x2276d5['element']);this['keystrokes']['set']('enter',(_0x5e5dac,_0x199c8f)=>{_0x108788===_0x5e5dac['target']&&(this['focusCycler']['focusFirst'](),_0x199c8f());}),this['keystrokes']['set']('esc',(_0x217f18,_0x7836a4)=>{_0x108788!==_0x217f18['target']&&(this['focus'](),_0x7836a4());});}}class mn extends _0x957e03{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[Xe,_0x552f83,_0x552cbc,_0xce9570,_0x5b7066];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3186a4){super(_0x3186a4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x28eb9a=this['editor']['config'];_0x28eb9a['define']('trackChanges.SuggestionThreadView',fn),_0x28eb9a['define']('trackChanges.SuggestionView',gn),_0x28eb9a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x28eb9a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1265bf,_0x48dd68){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x98921e,_0x23cff4]of this['_handleControllerBuffer']){const _0x3b6b48=this['_suggestionToController']['has'](_0x98921e);_0x3b6b48||_0x23cff4?_0x3b6b48&&_0x23cff4&&this['_destroyController'](_0x98921e):this['_initializeController'](_0x98921e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5b7066)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1265bf,_0x48dd68);}['init'](){const _0x35013f=this['editor'],_0x4f47e8=_0x35013f['plugins']['get'](Xe),_0x5b798c=_0x35013f['plugins']['get'](_0xce9570),_0x5c1c87=_0x35013f['plugins']['get'](_0x5b7066),_0x5fb351=_0x35013f['plugins']['get'](_0x552cbc);this['_addUIComponentsToFactory'](),_0x5c1c87['addSourceCollector'](()=>{const _0x5dad3d=[];for(const [_0x78a6f0,_0x4171ec]of Array['from'](this['_suggestionToController'])){const _0x31fe42=_0x78a6f0['getAllAdjacentSuggestions'](),_0x5af939=[];for(const _0x48d0c5 of _0x31fe42){if(!_0x48d0c5['isInContent'])continue;if(_0x48d0c5['isMultiRange']){_0x5af939['push'](..._0x48d0c5['getRanges']());continue;}const _0x19b53a=_0x48d0c5['getFirstRange']();if(_0x5af939['length']>0x0){const _0x33305d=_0x5af939[0x0]['getJoined'](_0x19b53a);if(_0x33305d){_0x5af939[0x0]=_0x33305d;continue;}}_0x5af939['push'](_0x19b53a);}_0x5dad3d['push']([_0x4171ec['view'],_0x5af939]);}return _0x5dad3d;}),this['listenTo'](_0x4f47e8,'suggestionLoaded',(_0x3ec401,_0x322b89)=>{this['listenTo'](_0x322b89,'change:previous',(_0x207fa9,_0x25f2a5,_0x1509af,_0x4c5131)=>{_0x322b89['isInContent']&&(null==_0x1509af?(this['_updateController'](_0x4c5131['head']),this['_handleSuggestionControllerDelayed'](_0x322b89,!0x1)):(this['_updateController'](_0x1509af['head']),null==_0x4c5131&&this['_handleSuggestionControllerDelayed'](_0x322b89,!0x0)));}),null!==_0x322b89['previous']?this['_updateController'](_0x322b89['head']):this['_handleSuggestionControllerDelayed'](_0x322b89,!0x1);}),this['listenTo'](_0x4f47e8,'suggestionUnloaded',(_0x24097d,_0x143191,_0x1b13f6)=>{this['stopListening'](_0x143191,'change:previous'),this['_handleControllerBuffer']['delete'](_0x143191),this['_suggestionToController']['has'](_0x143191)&&this['_destroyController'](_0x143191),_0x1b13f6&&this['_updateController'](_0x1b13f6['head']);}),this['listenTo'](_0x4f47e8,'suggestionChanged',(_0x324d74,_0x5ac7a3)=>{this['_updateController'](_0x5ac7a3);}),this['listenTo'](_0x5b798c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5fb351,'addComment',(_0x48d78d,{threadId:_0x5d9fe0,isFromAdapter:_0xbcbcf1})=>{if(_0xbcbcf1||!_0x4f47e8['hasSuggestion'](_0x5d9fe0))return;const _0x49c3c8=_0x4f47e8['getSuggestion'](_0x5d9fe0);this['_suggestionToController']['get'](_0x49c3c8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e1b2c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1c2b2d;for(const _0x35d5c5 in _0x3e1b2c){const _0xbd2e5e=_0x35d5c5,_0x525067=_0x3e1b2c[_0xbd2e5e];if('trackChangesLicenseKeyValid'==_0x525067||'trackChangesLicenseKeyInvalid'==_0x525067||'trackChangesLicenseKeyExpired'==_0x525067||'trackChangesLicenseKeyDomainLimit'==_0x525067||'trackChangesLicenseKeyNotAllowed'==_0x525067||'trackChangesLicenseKeyEvaluationLimit'==_0x525067||'trackChangesLicenseKeyUsageLimit'==_0x525067){delete _0x3e1b2c[_0xbd2e5e],_0x1c2b2d=_0x525067,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1c2b2d&&_0x3e1b2c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4cf716){const _0x270642=this['_suggestionToController']['get'](_0x4cf716);if(!_0x270642)return null;return this['editor']['plugins']['get'](_0xce9570)['getByInnerView'](_0x270642['view'])||null;}['getSuggestionForAnnotation'](_0x5b0255){const _0x2f92a9=this['_viewToController']['get'](_0x5b0255['innerView']);return _0x2f92a9?_0x2f92a9['model']:null;}['_refreshActiveMarkers'](){const _0x14f409=this['editor']['plugins']['get'](_0xce9570),_0x288ac8=this['editor']['plugins']['get'](Xe),_0x58b1f0=Array['from'](_0x14f409['activeAnnotations'],_0x45a11f=>_0x45a11f['innerView'])['filter'](_0x20d58f=>this['_viewToController']['has'](_0x20d58f)),_0x509f4b=[];for(const _0x542f0b of _0x58b1f0){const _0x9a8387=this['_viewToController']['get'](_0x542f0b)['model']['getAllAdjacentSuggestions']();_0x509f4b['push'](..._0x9a8387['reduce']((_0x6efdc3,_0x281257)=>[..._0x6efdc3,..._0x281257['getMarkerNames']()],[]));}_0x288ac8['activeMarkers']=_0x509f4b;}['_addUIComponentsToFactory'](){const _0x589774=this['editor'],_0x5707f3=_0x589774['locale'],_0x2a160f=At(_0x5707f3,'Track\x20changes'),_0x59554e=new _0x1335da([{'type':'switchbutton','model':new _0x3a5d05({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a160f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x589774['plugins']['has']('TrackChangesPreview')&&_0x59554e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3a5d05({'withText':!0x0,'label':At(_0x5707f3,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x24b009 of _0x59554e)if(En(_0x24b009)){const _0x4ef61f=_0x589774['commands']['get'](_0x24b009['model']['commandName']);_0x24b009['model']['bind']('isOn','isEnabled')['to'](_0x4ef61f,'value','isEnabled');}_0x589774['ui']['componentFactory']['add']('trackChanges',_0x584a6e=>this['_createToolbarButton'](_0x584a6e,_0x59554e,_0x2a160f)),_0x589774['ui']['componentFactory']['add']('menuBar:trackChanges',_0x943a90=>this['_createMenuBarMenu'](_0x943a90,_0x59554e,_0x2a160f));}['_createToolbarButton'](_0x3c5399,_0x562a26,_0x11c893){const _0x55d369=_0x1c7eeb(_0x3c5399,_0x164105),_0x4552a2=this['editor']['commands']['get']('trackChanges');_0x55d369['buttonView']['set']({'tooltip':_0x11c893,'label':_0x11c893,'icon':_0x59c1ed}),_0x55d369['buttonView']['bind']('isOn')['to'](_0x4552a2,'value'),_0x55d369['buttonView']['on']('execute',()=>{_0x4552a2['execute'](),this['editor']['editing']['view']['focus']();}),_0x3fe03e(_0x55d369,_0x562a26,{'role':'menu'});const _0x38ba26=[];for(const _0x1660b8 of _0x562a26)En(_0x1660b8)&&_0x38ba26['push'](this['editor']['commands']['get'](_0x1660b8['model']['commandName']));const _0x26787d=_0x55d369['buttonView'];return _0x26787d['actionView']['unbind']('isEnabled'),_0x26787d['arrowView']['unbind']('isEnabled'),_0x26787d['actionView']['bind']('isEnabled')['to'](_0x4552a2,'isEnabled'),_0x26787d['arrowView']['bind']('isEnabled')['toMany'](_0x38ba26,'isEnabled',(..._0x446788)=>_0x446788['some'](_0x5a19c5=>_0x5a19c5)),_0x55d369['on']('execute',_0x4e3c33=>{this['editor']['execute'](_0x4e3c33['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x55d369;}['_createMenuBarMenu'](_0x4f2d6b,_0x53dc3b,_0x2eafbe){const _0x4281e3=new _0x2d6ee1(_0x4f2d6b),_0x77be61=this['editor']['commands']['get']('trackChanges');_0x4281e3['buttonView']['set']({'label':_0x2eafbe,'icon':_0x59c1ed});const _0x275105=new _0x401545(_0x4f2d6b);for(const _0x14b697 of _0x53dc3b){if('separator'==_0x14b697['type']){_0x275105['items']['add'](new _0x1d3cd1(_0x4f2d6b));continue;}const _0x500f3b=new _0x5cf836(_0x4f2d6b,_0x4281e3),_0x236a63=new _0x131aa9(_0x4f2d6b),_0x60e18b=_0x14b697['model'];_0x236a63['bind'](...Object['keys'](_0x60e18b))['to'](_0x60e18b),_0x236a63['delegate']('execute')['to'](_0x4281e3),_0x236a63['on']('execute',()=>{this['editor']['execute'](_0x60e18b['commandName']),this['editor']['editing']['view']['focus']();}),_0x500f3b['children']['add'](_0x236a63),_0x275105['items']['add'](_0x500f3b);}return _0x4281e3['bind']('isEnabled')['to'](_0x77be61,'isEnabled'),_0x4281e3['panelView']['children']['add'](_0x275105),_0x4281e3;}['_initializeController'](_0x9ade58){const _0x2328d2=this['editor'],_0x18ae54=_0x2328d2['config'],_0x538d42=_0x2328d2['plugins']['get'](_0xce9570),_0x260140=_0x2328d2['plugins']['get'](_0x552cbc),_0x2316b6=_0x2328d2['plugins']['get'](_0x5b7066),_0x21c22f=_0x2328d2['plugins']['get'](_0x552f83)['me'],_0x38eb46=_0x18ae54['get']('trackChanges')['SuggestionThreadView'],_0x405b5e=_0x18ae54['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x35ae1c,CommentThreadInputView:_0x416f28}=_0x2328d2['plugins']['get']('CommentsUI');let _0x8b684b,_0x5df1c8,_0x515888;this['_annotationViews']['has'](_0x9ade58['id'])?(_0x5df1c8=this['_annotationViews']['get'](_0x9ade58['id']),_0x8b684b=_0x5df1c8['mainView']):(_0x8b684b=new _0x38eb46(_0x2328d2['locale'],_0x9ade58,_0x21c22f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x18ae54['get']('comments.editorConfig'),'licenseKey':_0x18ae54['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x18ae54['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ae54['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ae54['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5c25a4(_0x18ae54['get']('locale'),_0x2328d2['locale']),'CommentView':_0x18ae54['get']('comments')['CommentView'],'CommentsListView':_0x35ae1c,'CommentThreadInputView':_0x416f28,'SuggestionView':_0x405b5e}),_0x8b684b['suggestionView']['acceptButton']['on']('execute',()=>{_0x2328d2['editing']['view']['focus']();}),_0x8b684b['suggestionView']['discardButton']['on']('execute',()=>{_0x2328d2['editing']['view']['focus']();}),_0x5df1c8=_0x538d42['createAnnotationView'](this['editor']['locale'],_0x8b684b),_0x5df1c8['bind']('isDirty')['to'](_0x8b684b,'isDirty'),_0x5df1c8['bind']('length')['to'](_0x8b684b),_0x5df1c8['bind']('type')['to'](_0x8b684b,'type',_0x12befe=>'suggestion-'+_0x12befe),_0x8b684b['on']('escape',()=>{_0x515888['fire']('escape');}),this['_annotationViews']['set'](_0x9ade58['id'],_0x5df1c8));const _0x47bb3c=_0x260140['createCommentThreadController'](_0x9ade58['commentThread'],_0x8b684b),_0x5c40b4=new hn(_0x2328d2,_0x9ade58,_0x8b684b,_0x47bb3c),_0x51a30f=_0x9ade58['getAllAdjacentSuggestions']()['filter'](_0x48371d=>_0x48371d['isInContent']);_0x8b684b['descriptionParts']=_0x2328d2['plugins']['get'](Xe)['descriptionFactory']['getDescriptions'](_0x51a30f),this['_suggestionToController']['set'](_0x9ade58,_0x5c40b4),this['_viewToController']['set'](_0x8b684b,_0x5c40b4);const _0x382195=()=>{const _0x52ea33=[],_0x2976b3=_0x9ade58['getAllAdjacentSuggestions']()['filter'](_0x37d561=>_0x37d561['isInContent']);for(const _0x2b7000 of _0x2976b3)_0x52ea33['push'](..._0x2b7000['getMarkers']());return _0x411add(_0x2328d2['editing'],_0x52ea33);};_0x515888=_0x538d42['createAnnotation']({'view':_0x5df1c8,'target':_0x382195,'type':()=>'suggestion-'+_0x5c40b4['view']['type'],'isVisible':!!_0x382195()}),_0x260140['_bindAnnotationToEditors'](_0x8b684b,_0x515888),_0x538d42['add'](_0x515888),_0x2316b6['registerAnnotation'](_0x515888);}['_destroyController'](_0x313458){const _0x2dcf03=this['editor']['plugins']['get'](_0x552cbc),_0x108ce0=this['editor']['plugins']['get'](_0xce9570),_0x74b687=this['_suggestionToController']['get'](_0x313458),_0x2bcb15=_0x74b687['view'],_0x1c2216=_0x108ce0['getByInnerView'](_0x2bcb15);_0x2dcf03['_unbindEditors'](_0x2bcb15),_0x1c2216&&_0x108ce0['remove'](_0x1c2216),this['_suggestionToController']['delete'](_0x313458),this['_viewToController']['delete'](_0x2bcb15),_0x74b687['destroy']();}['_updateController'](_0x125844){if(!_0x125844['isInContent']||!this['_suggestionToController']['has'](_0x125844))return;const _0x57cbac=this['editor']['plugins']['get'](Xe),_0x17bd7b=this['_suggestionToController']['get'](_0x125844),_0x573a2d=_0x125844['getAllAdjacentSuggestions']();_0x17bd7b['view']['descriptionParts']=_0x57cbac['descriptionFactory']['getDescriptions'](_0x573a2d);}['destroy'](){for(const _0x52748b of this['_suggestionToController']['keys']())this['_destroyController'](_0x52748b);for(const _0x4e61da of this['_annotationViews']['values']())_0x4e61da['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function En(_0x10a5de){return'model'in _0x10a5de;}class Tn extends _0x957e03{static get['requires'](){return[Xe,mn,_0x2749f7];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3ea112){this['editor']['plugins']['get'](Xe)['adapter']=_0x3ea112;}get['adapter'](){return this['editor']['plugins']['get'](Xe)['adapter'];}['addSuggestion'](_0xa7f44){return this['editor']['plugins']['get'](Xe)['addSuggestionData'](_0xa7f44);}['getSuggestions']({skipNotAttached:_0x3500d8=!0x1,toJSON:_0x50495a=!0x1}={}){return this['editor']['plugins']['get'](Xe)['getSuggestions']({'skipNotAttached':_0x3500d8,'toJSON':_0x50495a});}['getSuggestion'](_0xb65189){return this['editor']['plugins']['get'](Xe)['getSuggestion'](_0xb65189);}}const _n=['Pagination'];class pn extends _0x957e03{static get['requires'](){return[Xe];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x57d96b=this['editor'];if(_0x57d96b['config']['define']('trackChangesData.editorCreator',_0x3e61e2=>{const _0x269473=_0x57d96b['model']['document']['getRootNames']()['reduce']((_0x6bd37e,_0x349b36)=>(_0x6bd37e[_0x349b36]='',_0x6bd37e),{});return _0x57d96b['constructor']['create'](_0x269473,_0x3e61e2);}),'function'!=typeof _0x57d96b['config']['get']('trackChangesData')['editorCreator'])throw new _0x54f12a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x572059){return bn(this['editor'],!0x0,_0x572059);}['getDataWithDiscardedSuggestions'](_0x364299){return bn(this['editor'],!0x1,_0x364299);}}class Ln extends _0x957e03{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1791dd){function _0x16a1b8(_0x41887a){return _0x41887a['map'](_0x488874=>String['fromCharCode'](_0x488874))['join']('');}super(_0x1791dd),this['result']='end',_0x1791dd[_0x16a1b8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16a1b8([0x76,0x69,0x65,0x77])][_0x16a1b8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16a1b8([0x61,0x75,0x74,0x6f]),_0x1791dd[_0x16a1b8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16a1b8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16a1b8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16a1b8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16a1b8([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(_0x6e366a){return void 0x0!==_0x6e366a['getRootsAttributes'];}async function bn(_0x3b78f3,_0x172e08,_0xeb81f1){const _0x5c0a82=_0x4df7f6(_0x3b78f3,_n);if(_0x5c0a82['plugins']['push'](Xe,Ln),In(_0x3b78f3)){_0x5c0a82['roots']=Object['create'](null);for(const _0x5a4d2c of _0x3b78f3['model']['document']['getRootNames']())_0x5c0a82['roots'][_0x5a4d2c]={'modelAttributes':_0x3b78f3['getRootAttributes'](_0x5a4d2c)};}const _0x24f812=document['createDocumentFragment'](),_0x3965fa=_0x3b78f3['config']['get']('trackChangesData')['editorCreator'],_0x404f72=await _0x3965fa(_0x5c0a82,()=>function(_0x1caf97){const _0x502122=document['createElement']('div');return _0x1caf97['appendChild'](_0x502122),_0x502122;}(_0x24f812));!function(_0x6b80ad,_0x3fa10f){const _0x20b223=_0x6b80ad['model']['document']['getRootNames']()['reduce']((_0x48a142,_0x7ceb01)=>(_0x48a142[_0x7ceb01]=_0x6b80ad['data']['get']({'rootName':_0x7ceb01}),_0x48a142),{}),_0x5c1ebf=_0x6b80ad['plugins']['get']('Users')['users']['map'](_0x524b4e=>({'id':_0x524b4e['id'],'name':_0x524b4e['name']})),_0x2178ee=_0x6b80ad['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38e4ae=_0x6b80ad['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4748e3=_0x3fa10f['plugins']['get']('Users'),_0x3c365b=_0x3fa10f['plugins']['get']('TrackChangesEditing'),_0x4d53b6=_0x3fa10f['plugins']['get']('CommentsRepository');for(const _0x4cdd00 of _0x4d53b6['getCommentThreads']())_0x4cdd00['remove']();for(const _0xaaab8 of _0x5c1ebf)_0x4748e3['getUser'](_0xaaab8['id'])||_0x4748e3['addUser'](_0xaaab8);_0x4748e3['me']||_0x4748e3['useAnonymousUser']();for(const _0x3cba6c of _0x38e4ae)_0x4d53b6['addCommentThread'](_0x3cba6c);for(const _0x452559 of _0x2178ee)_0x3c365b['addSuggestionData'](_0x452559);_0x3fa10f['data']['set'](_0x20b223);}(_0x3b78f3,_0x404f72),_0x404f72['execute'](_0x172e08?'acceptAllSuggestions':'discardAllSuggestions');const _0x53891=In(_0x404f72)?_0x404f72['getFullData'](_0xeb81f1):_0x404f72['data']['get'](_0xeb81f1);return await _0x404f72['destroy'](),_0x53891;}class An extends _0x1fc7e3{['options'];constructor(_0x20c3e6,_0x25d461){super(_0x20c3e6),this['options']=_0x25d461,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'](_0x242015,_0x1652b1){if(!this['element'])return;const _0x13e043=[];for(const [_0x5114d6,_0x20bddc]of _0x242015){const _0x8813bb=document['createElement']('div');_0x8813bb['setAttribute']('data-ck-root-name',_0x5114d6),_0x8813bb['className']=_0x20bddc['classes']+'\x20ck-track-changes-preview__root-container',_0x8813bb['innerHTML']=_0x20bddc['content'],_0x13e043['push'](_0x8813bb);}_0x1652b1(this['element'],_0x13e043),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class kn extends _0x3ba425{constructor(_0x41ebb2){super(_0x41ebb2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xf62b19=this['editor'],_0x5e8ecc=_0xf62b19['locale'],_0x172f32=_0xf62b19['plugins']['get']('Dialog');let _0x20b0bc;const _0x42b806=function(_0x371257){const _0x470bad={};if('editables'in _0x371257['ui']['view']){for(const [_0x2f8ea9,_0x4dd5ce]of Object['entries'](_0x371257['ui']['view']['editables']))_0x470bad[_0x2f8ea9]=_0x4dd5ce['element'];}else _0x470bad[_0x371257['model']['document']['getRootNames']()[0x0]]=_0x371257['ui']['view']['editable']['element'];return _0x470bad;}(_0xf62b19),_0x331053=function(_0x1351c2){let _0x24da9d=0x0;for(const _0x425019 of Object['values'](_0x1351c2))_0x24da9d=Math['max'](_0x24da9d,_0x425019['getBoundingClientRect']()['width']);let _0x5c0711=0x0;for(const _0x1b965e of Object['values'](_0x1351c2))_0x5c0711+=_0x1b965e['getBoundingClientRect']()['height'];const _0xa1aaad=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2933fe=Math['min'](_0x5c0711,_0xa1aaad);return{'width':_0x24da9d,'height':_0x2933fe};}(_0x42b806);_0x172f32['show']({'id':'finalContentPreview','title':At(_0x5e8ecc,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new An(_0x5e8ecc,{'dialogRects':_0x331053}),'onHide':()=>{_0x20b0bc['detachFromDom']();},'onShow':()=>{_0xf62b19['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x5da13c=>{const _0x4ecd86=this['_standarizeRootsData'](_0x5da13c,_0xf62b19,_0x42b806);_0x172f32['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4ecd86,_0xf62b19['config']['get']('trackChanges.preview.renderFunction'));}),_0x20b0bc=new _0x235106(_0x5e8ecc,[_0x172f32['view']]),_0x20b0bc['attachToDom'](),_0x20b0bc['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xf62b19['once']('destroy',()=>{_0x20b0bc['detachFromDom']();});const _0x2e1bd7=_0x172f32['view']['headerView']['class'];_0x172f32['view']['headerView']['class']=_0x2e1bd7?_0x2e1bd7+'\x20ck-reset_all':'ck-reset_all',_0x172f32['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x172f32['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3d4ae6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x277d03=_0x3d4ae6['previewMode'],_0x54946c={};if('$labels'===_0x277d03){for(const _0x126fbd of _0x3d4ae6['getMergeFieldsIds']())_0x54946c[_0x126fbd]=_0x3d4ae6['getLabel'](_0x126fbd)||_0x126fbd;}else{const _0x4c3b3d='$defaultValues'===_0x277d03?_0x3d4ae6['getDefaultValues']():_0x3d4ae6['getDataSetValues'](_0x277d03,!0x0);for(const _0x255787 of Object['entries'](_0x4c3b3d)){const [_0x209937,_0x2e2ee2]=_0x255787;_0x54946c[_0x209937]=null!==_0x2e2ee2?_0x2e2ee2:_0x3d4ae6['getLabel'](_0x209937)||_0x209937;}}return{'mergeFieldsData':_0x54946c};}['_standarizeRootsData'](_0x42a89a,_0x1640da,_0x3a3ae1){let _0x505f3a;if('string'==typeof _0x42a89a){const _0x11503f=_0x1640da['model']['document']['getRootNames']()[0x0];_0x505f3a={[_0x11503f]:_0x42a89a};}else _0x505f3a=_0x42a89a;const _0x21b15a=this['_fixMediaEmbeds'](_0x505f3a,_0x1640da),_0x4cbaaa=function(_0x72465d,_0x527c7e){for(const [_0x315501,_0x5629e2]of _0x72465d)_0x5629e2['classes']=_0x527c7e[_0x315501]['classList']['value']['replace']('ck-focused','');return _0x72465d;}(this['_sortRoots'](_0x1640da)['reduce']((_0x40a7fb,_0x2f8325)=>(_0x40a7fb['push']([_0x2f8325,{'content':_0x21b15a[_0x2f8325],'classes':''}]),_0x40a7fb),[]),_0x3a3ae1);return _0x4cbaaa;}['_fixMediaEmbeds'](_0x1b2d81,_0x1d63cd){if(!_0x1d63cd['plugins']['has']('MediaEmbedEditing'))return _0x1b2d81;const _0x12feb1=_0x1d63cd['plugins']['get']('MediaEmbedEditing');for(const [_0x28c589,_0x17a7af]of Object['entries'](_0x1b2d81)){const _0x38455e=document['createElement']('div');_0x38455e['innerHTML']=_0x17a7af,(_0x38455e['querySelectorAll']('figure.media')['forEach'](_0x44a4a5=>{const _0x3abe66=_0x44a4a5['querySelector']('oembed');if(_0x3abe66){const _0x5a16cc=_0x3abe66['getAttribute']('url');if(_0x5a16cc){const _0x2c7589=_0x12feb1['registry']['getMediaViewElement'](new et(_0x1d63cd['editing']['view']['document']),_0x5a16cc,{'elementName':'','renderForEditingView':!0x0}),_0x1b3912=document['createElement']('div');_0x1b3912['classList']['add']('ck-media__wrapper'),_0x2c7589['render'](_0x1b3912,_0x1d63cd['editing']['view']['domConverter']),_0x3abe66['replaceWith'](_0x1b3912);}}}),_0x1b2d81[_0x28c589]=_0x38455e['innerHTML']);}return _0x1b2d81;}['_sortRoots'](_0x336549){if(!function(_0x4e7b67){return void 0x0!==_0x4e7b67['getRootsAttributes'];}(_0x336549))return _0x336549['model']['document']['getRootNames']();const _0xc49445=[],_0xb2e50c=new Map();for(const _0x4ccd5f of _0x336549['model']['document']['getRootNames']()){const _0x2dc04b=_0x336549['editing']['view']['getDomRoot'](_0x4ccd5f)['getClientRects']()['item'](0x0);_0xc49445['push'](_0x4ccd5f),_0xb2e50c['set'](_0x4ccd5f,_0x2dc04b);}return _0xc49445['sort']((_0xa04854,_0x25f507)=>{const _0x31e134=_0xb2e50c['get'](_0xa04854),_0x35320c=_0xb2e50c['get'](_0x25f507);return _0x31e134['y']-_0x35320c['y']||_0x31e134['x']-_0x35320c['x'];}),_0xc49445;}}class Cn extends _0x957e03{static get['requires'](){return[pn,_0x354598];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bb475){super(_0x4bb475),_0x4bb475['commands']['add']('previewFinalContent',new kn(this['editor'])),_0x4bb475['config']['define']('trackChanges.preview.renderFunction',(_0x398afe,_0x1a561f)=>{for(const _0x15723a of _0x1a561f)_0x398afe['appendChild'](_0x15723a);});}}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};
|