@ckeditor/ckeditor5-track-changes 48.4.0-alpha.0 → 48.4.0-alpha.2
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
|
-
_0x47ad8b();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x59d596,_0x29f478){super(),this['id']=_0x29f478['id'],this['type']=_0x29f478['type'],this['subType']=_0x29f478['subType']||null,this['author']=_0x29f478['author'],this['creator']=_0x29f478['creator']||_0x29f478['author'],this['data']=null,this['_originalSuggestionId']=_0x29f478['originalSuggestionId']||null,this['_model']=_0x59d596,this['_onAccept']=_0x29f478['onAccept'],this['_onDiscard']=_0x29f478['onDiscard'],this['_onAttributesChange']=_0x29f478['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29f478['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4a4dab=this;for(;_0x4a4dab['previous'];)_0x4a4dab=_0x4a4dab['previous'];return _0x4a4dab;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x41f52f){this['_markerNames']['add'](_0x41f52f);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x3bfe17=>this['_model']['markers']['get'](_0x3bfe17))['filter'](_0x456c9e=>_0x456c9e);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b2a66=>{for(const _0x536246 of this['getMarkers']())_0x4b2a66['removeMarker'](_0x536246);}),this['_markerNames']['clear']();}['removeMarker'](_0x478e50){this['_model']['change'](_0x3091c0=>{_0x3091c0['removeMarker'](_0x478e50);}),this['_markerNames']['delete'](_0x478e50);}['addRange'](_0x2682bd){const _0xc20bca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc20bca),this['_model']['change'](_0x131494=>{_0x131494['addMarker'](_0xc20bca,{'range':_0x2682bd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x220008){for(const _0x461194 of this['getRanges']())if(_0x461194['isIntersecting'](_0x220008))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x401a2c=>_0x401a2c['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3cce98,_0x5eaaa0)=>[..._0x3cce98,..._0x5eaaa0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd23d18=this['getRanges']();if(0x1!=_0xd23d18['length'])return null;const _0x33e0ef=_0xd23d18[0x0],_0xd5a886=_0x33e0ef['start']['nodeAfter'],_0x56f7b4=_0x33e0ef['end']['nodeBefore'];return _0xd5a886 instanceof st?_0xd5a886!=_0x56f7b4?null:_0xd5a886: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 _0x48fe6b=[];let _0x2f6904=this['head'];for(;_0x2f6904;)_0x48fe6b['push'](_0x2f6904),_0x2f6904=_0x2f6904['next'];return _0x48fe6b;}setAttribute(_0x150beb,_0x2fd83e){const _0x2ab888=ct(this['attributes']);dt(_0x2ab888,_0x150beb,_0x2fd83e),lt(_0x2ab888,this['attributes'])||(this['attributes']=_0x2ab888,this['_onAttributesChange'](_0x2ab888));}removeAttribute(_0x1befae){const _0x50497b=ct(this['attributes']);ht(_0x50497b,_0x1befae),lt(_0x50497b,this['attributes'])||(this['attributes']=_0x50497b,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 _0x1dfb7c()['substr'](0x1,0x5);}};function Ot(_0x580bbe,_0x598d09,_0x469664){const _0x5ddd10=_0x580bbe['t'],t=_0x580bbe['t'];switch(_0x598d09){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',_0x469664);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469664);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469664);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469664);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469664);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',_0x469664);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469664);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',_0x469664);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469664);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469664);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469664);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469664);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469664);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x469664);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469664);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469664);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469664);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469664);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469664);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469664);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469664);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469664);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469664);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469664);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x469664);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'},_0x469664);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x469664);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x469664);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469664);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469664);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469664);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469664);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469664);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x469664);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x469664);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469664);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469664);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469664);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469664);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'},_0x469664);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469664);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'},_0x469664);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x469664);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469664);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x469664);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x469664);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x469664);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469664);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'},_0x469664);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x469664);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x469664);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x469664);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469664);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'},_0x469664);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'},_0x469664);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'},_0x469664);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x598d09;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x14aa6b,_0xff8d6e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14aa6b,this['_locale']=_0xff8d6e;}getDescriptions(_0x2e5cf9){const _0x4ae254=[],_0x23ab8e=new Set(),_0x24bee4=new Set();for(let _0x11132e=0x0;_0x11132e<_0x2e5cf9['length'];_0x11132e++){const _0x502393=_0x2e5cf9[_0x11132e];if(!_0x502393['isInContent'])continue;const _0x1d7876=this['_handleCustomCallbackDescription'](_0x502393);if(_0x1d7876){if(null!=_0x502393['subType']){if(_0x23ab8e['has'](_0x502393['subType']))continue;_0x23ab8e['add'](_0x502393['subType']);}_0x4ae254['push'](_0x1d7876);}else{if('attribute'==_0x502393['type']){const _0x3a761d=_0x502393['data']['key'];if(_0x24bee4['has'](_0x3a761d))continue;_0x24bee4['add'](_0x502393['data']['key']),'$elementName'==_0x3a761d?this['_handleRenameSuggestionDescription'](_0x4ae254,_0x502393):this['_handleAttributeSuggestionDescription'](_0x4ae254,_0x502393);continue;}'insertion'!=_0x502393['type']&&'deletion'!=_0x502393['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ae254,_0x502393,_0x2e5cf9[_0x11132e+0x1]);}}return this['_resolveDescriptionItems'](_0x4ae254);}registerDescriptionCallback(_0x4f77c6){this['_customCallbacks']['push'](_0x4f77c6);}registerElementLabel(_0x2857f1,_0x3228d7,_0x1b4324=_0x5e908b['normal']){'function'==typeof _0x2857f1?_0x1dd3b8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2857f1,'label':_0x3228d7,'priority':_0x1b4324}):this['_itemLabels']['set'](_0x2857f1,_0x3228d7);}registerAttributeLabel(_0x96d3ae,_0x2f06a5){this['_attributeLabels']['set'](_0x96d3ae,_0x2f06a5);}getItemLabel(_0xf72d30,_0x59ca1a=0x1){let _0x593c73;for(const _0x165112 of this['_itemLabelsCallbacks'])if(_0x165112['matchingCallback'](_0xf72d30)){_0x593c73=_0x165112['label'];break;}return _0x593c73||(_0x593c73=this['_itemLabels']['get'](_0xf72d30['name'])),_0x593c73?_0x593c73(_0x59ca1a):0x1!==_0x59ca1a?_0x59ca1a+'\x20'+_0xf72d30['name']+'s':''+_0xf72d30['name'];}_addDescriptionItems(_0x49a196,_0x1c1125){const _0x275642=_0x1c1125['getFirstRange']()['getWalker'](),_0x2d8e5a='insertion'==_0x1c1125['type']?'add':'remove';for(const _0x6cc0b7 of _0x275642){const _0x236432=_0x6cc0b7['item'],_0x5ef514=_0x49a196[_0x49a196['length']-0x1];if(_0x236432['is']('$textProxy'))_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),_0x5ef514&&'text'==_0x5ef514['type']?_0x5ef514[_0x2d8e5a]+=_0x236432['data']:_0x49a196['push']({'type':'text','add':'add'==_0x2d8e5a?_0x236432['data']:'','remove':'remove'==_0x2d8e5a?_0x236432['data']:''});else{if(this['_schema']['isObject'](_0x236432)){const _0x36dd71=_0x236432;if(_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),'elementEnd'==_0x6cc0b7['type'])continue;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'Object'&&_0x5ef514['element']['name']==_0x36dd71['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'Object','element':_0x36dd71,'quantity':0x1}),_0x275642['skip'](_0x4bfed4=>!('elementEnd'==_0x4bfed4['type']&&_0x4bfed4['item']==_0x236432));}else{if(this['_schema']['checkChild'](_0x236432,'$text')||_0x236432['is']('element','softBreak')){const _0x84e86d=_0x236432;if('add'==_0x2d8e5a&&'elementStart'==_0x6cc0b7['type']||'remove'==_0x2d8e5a&&'elementEnd'==_0x6cc0b7['type'])continue;if(_0x5ef514&&-0x1==_0x5ef514['type']['indexOf']('Container')){'text'==_0x5ef514['type']&&(_0x5ef514[_0x2d8e5a]+='\x0a');continue;}let _0x11ce46;if(_0x11ce46='add'==_0x2d8e5a?_0x84e86d['nextSibling']&&!this['_schema']['isObject'](_0x84e86d['nextSibling'])?_0x84e86d['nextSibling']:null:_0x84e86d['previousSibling']&&!this['_schema']['isObject'](_0x84e86d['previousSibling'])?_0x84e86d['previousSibling']:null,_0x84e86d['isEmpty']||_0x11ce46&&_0x11ce46['isEmpty']){const _0x3ee0a3=_0x11ce46&&_0x11ce46['isEmpty']?_0x11ce46:_0x84e86d;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'EmptyContainer'&&_0x5ef514['element']['name']==_0x3ee0a3['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'EmptyContainer','element':_0x3ee0a3,'quantity':0x1});}else _0x49a196['push']({'type':_0x2d8e5a+'Container','element':_0x84e86d});}}}}}_resolveDescriptionItems(_0x35688e){const _0xb92b49=this['_locale'],_0x3bb84a=[],_0x1caffb=[],_0x5a01c1=[];for(const _0x3ee6b0 of _0x35688e)switch(_0x3ee6b0['type']){case'text':if(_0x3ee6b0['add']=_0x3ee6b0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ee6b0['remove']=_0x3ee6b0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ee6b0['add']&&''!=_0x3ee6b0['remove']){_0x3bb84a['push']({'type':'replace','content':Ot(_0xb92b49,'REPLACE_TEXT',['\x22'+_0x3ee6b0['remove']+'\x22','\x22'+_0x3ee6b0['add']+'\x22'])});continue;}if(null!=_0x3ee6b0['add']['match'](/^ +$/)){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['add']['length']))});continue;}if(null!=_0x3ee6b0['remove']['match'](/^ +$/)){_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['remove']['length']))});continue;}if(''!=_0x3ee6b0['add']){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0','\x22'+_0x3ee6b0['add']+'\x22')});continue;}_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0','\x22'+_0x3ee6b0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addContainer':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Split:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeContainer':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Merge:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addFormat':_0x1caffb['push'](_0x3ee6b0['key']);continue;case'removeFormat':_0x5a01c1['push'](_0x3ee6b0['key']);continue;default:_0x3bb84a['push'](_0x3ee6b0);}if(_0x1caffb['length']){const _0xda488a=_0x1caffb['map'](_0x3920c9=>this['_attributeLabels']['has'](_0x3920c9)?this['_attributeLabels']['get'](_0x3920c9):_0x3920c9)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0xda488a)});}if(_0x5a01c1['length']){const _0x4671f2=_0x5a01c1['map'](_0x571dce=>this['_attributeLabels']['has'](_0x571dce)?this['_attributeLabels']['get'](_0x571dce):_0x571dce)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x4671f2)});}return _0x3bb84a;}_handleCustomCallbackDescription(_0x4c45b4){for(const _0x551ece of this['_customCallbacks']){const _0x27b609=_0x551ece(_0x4c45b4);if(_0x27b609&&'type'in _0x27b609)return _0x27b609;}}_handleAttributeSuggestionDescription(_0x4ff171,_0x5bc390){const _0x31abaa=_0x5bc390['data'],_0x4fec73=void 0x0===_0x31abaa['newValue']?'removeFormat':'addFormat';_0x4ff171['push']({'type':_0x4fec73,'key':_0x31abaa['key']});}_handleRenameSuggestionDescription(_0x5efd87,_0x5a1937){_0x5efd87['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a1937['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x50ec23,_0x363f18,_0xdec4a3){if(this['_addDescriptionItems'](_0x50ec23,_0x363f18),_0xdec4a3&&_0xdec4a3['getFirstRange']()&&!_0x363f18['getFirstRange']()['end']['isEqual'](_0xdec4a3['getFirstRange']()['start'])){const _0x3dffe6=_0x50ec23[_0x50ec23['length']-0x1],_0x518ddb='insertion'==_0x363f18['type']?'add':'remove';_0x3dffe6&&'text'==_0x3dffe6['type']&&(_0x3dffe6[_0x518ddb]+='\x0a');}}},Ft=class extends _0x548d2a{afterInit(){const _0x33dbe0=this['editor'],_0x157d93=_0x33dbe0['plugins']['get']('TrackChangesEditing');_0x33dbe0['commands']['get']('showAIAssistant')&&_0x157d93['enableCommand']('showAIAssistant');}},Bt=class extends _0x548d2a{afterInit(){const _0x5901e1=this['editor'],_0x5ef11a=_0x5901e1['plugins']['get']('TrackChangesEditing');_0x5901e1['commands']['get']('toggleAi')&&_0x5ef11a['enableCommand']('toggleAi');}},vt=class extends _0x548d2a{afterInit(){const _0x3a84d0=this['editor'],_0x343fd8=_0x3a84d0['plugins']['get']('TrackChangesEditing');_0x3a84d0['commands']['get']('aiQuickAction')&&_0x343fd8['enableCommand']('aiQuickAction');}},Dt=class extends _0x548d2a{afterInit(){const _0x2d69a3=this['editor'],_0xc6e7f8=_0x2d69a3['locale'];if(!_0x2d69a3['plugins']['has']('AlignmentEditing'))return;const _0x324907=_0x2d69a3['plugins']['get']('TrackChangesEditing');_0x324907['enableDefaultAttributesIntegration']('alignment'),_0x324907['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0xc6e7f8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5657ac=this['editor'],_0x1d0d5e=_0x5657ac['locale'];_0x5657ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6a38=>{if('formatBlock'!=_0x3c6a38['type'])return;const {data:_0x58c0ec}=_0x3c6a38;if(_0x58c0ec&&'alignment'==_0x58c0ec['commandName']){const _0x1d2bd8=_0x58c0ec['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x1d0d5e,'*Format:*\x20%0',function(_0x2c2624){switch(_0x2c2624){case'left':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x1d0d5e,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2bd8))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x548d2a{afterInit(){const _0x55f6e5=this['editor'],_0x51c0f2=_0x55f6e5['plugins']['get']('TrackChangesEditing'),_0x472c79=_0x55f6e5['locale'];for(const _0x5106fe of Ut){if(!_0x55f6e5['plugins']['has'](_0x5106fe))continue;const _0x14ef00=_0x5106fe['slice'](0x0,-0x7)['toLowerCase'](),_0x304bf6='FORMAT_'+_0x14ef00['toUpperCase']();_0x51c0f2['enableDefaultAttributesIntegration'](_0x14ef00),_0x51c0f2['descriptionFactory']['registerAttributeLabel'](_0x14ef00,Ot(_0x472c79,_0x304bf6));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4338f0=this['editor'],_0x4f5d59=_0x4338f0['locale'],_0x17d980=_0x4338f0['plugins']['get']('TrackChangesEditing');function _0xc19c30(_0x392d7d,_0x1855a2){_0x17d980['descriptionFactory']['registerDescriptionCallback'](_0x2775ab=>{if('formatInline'!=_0x2775ab['type'])return;const {data:_0x527a96}=_0x2775ab;return _0x527a96&&_0x527a96['commandName']===_0x392d7d?_0x527a96['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x4f5d59,'*Format:*\x20%0',_0x1855a2)}:{'type':'format','content':Ot(_0x4f5d59,'*Remove\x20format:*\x20%0',_0x1855a2)}:void 0x0;});}_0xc19c30('bold',Ot(_0x4f5d59,'FORMAT_BOLD')),_0xc19c30('italic',Ot(_0x4f5d59,'FORMAT_ITALIC')),_0xc19c30('underline',Ot(_0x4f5d59,'FORMAT_UNDERLINE')),_0xc19c30('code',Ot(_0x4f5d59,'FORMAT_CODE')),_0xc19c30('strikethrough',Ot(_0x4f5d59,'FORMAT_STRIKETHROUGH')),_0xc19c30('subscript',Ot(_0x4f5d59,'FORMAT_SUBSCRIPT')),_0xc19c30('superscript',Ot(_0x4f5d59,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x548d2a{afterInit(){const _0x3a85d8=this['editor'],_0x36113c=_0x3a85d8['locale'];if(!_0x3a85d8['plugins']['has']('BlockQuoteEditing'))return;const _0x387209=_0x3a85d8['plugins']['get']('TrackChangesEditing'),_0x51e9bc=this['editor']['commands']['get']('blockQuote');_0x387209['enableCommand']('blockQuote',(_0xff3daa,_0x435138={})=>{const _0x1657e1=this['editor']['model']['document']['selection'],_0x4c0156=_0x435138&&void 0x0!==_0x435138['forceValue']?_0x435138['forceValue']:!_0x51e9bc['value'];let _0x46d889=[];_0x46d889=Ct(_0x4c0156?Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x2a5c28=>Gt(_0x2a5c28)||function(_0x48f7bf,_0x195c07){const _0x23939f=_0x195c07['createContext'](_0x48f7bf['parent']);return!!_0x195c07['checkChild'](_0x23939f,'blockQuote')&&!!_0x195c07['checkChild'](_0x23939f['push']('blockQuote'),_0x48f7bf);}(_0x2a5c28,this['editor']['model']['schema'])):Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x4cd9db=>Gt(_0x4cd9db)),_0x3a85d8['model']),_0x3a85d8['model']['change'](()=>{for(const _0x118167 of _0x46d889)_0x387209['markBlockFormat'](_0x118167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0156}]});});}),_0x387209['descriptionFactory']['registerDescriptionCallback'](_0x139664=>{const {data:_0x10916c}=_0x139664;if(_0x10916c&&'blockQuote'==_0x10916c['commandName']){const _0x1cc5c3=Ot(_0x36113c,'ELEMENT_BLOCK_QUOTE');return _0x10916c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36113c,'*Set\x20format:*\x20%0',_0x1cc5c3)}:{'type':'format','content':Ot(_0x36113c,'*Remove\x20format:*\x20%0',_0x1cc5c3)};}});}};function Gt(_0x572fbd){return'blockQuote'==_0x572fbd['parent']['name'];}var Ht=class extends _0x548d2a{afterInit(){const _0x27a490=this['editor'],_0x5d4a28=_0x27a490['locale'],_0x54e6e5=_0x27a490['plugins']['get']('TrackChangesEditing');_0x27a490['plugins']['has']('BookmarkEditing')&&(_0x54e6e5['enableCommand']('insertBookmark'),_0x54e6e5['enableDefaultAttributesIntegration']('updateBookmark'),_0x54e6e5['descriptionFactory']['registerDescriptionCallback'](_0x5d9ef8=>{if('insertion'!=_0x5d9ef8['type']&&'deletion'!=_0x5d9ef8['type']&&'attribute'!=_0x5d9ef8['type'])return;const _0x4b9797=_0x5d9ef8['getContainedElement']();if(null==_0x4b9797)return;if(!_0x4b9797['is']('element','bookmark'))return;const _0x362e7f=_0x4b9797['getAttribute']('bookmarkId');if('insertion'==_0x5d9ef8['type'])return{'type':'insertion','content':Ot(_0x5d4a28,'*Insert:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d9ef8['type'])return{'type':'deletion','content':Ot(_0x5d4a28,'*Remove:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};const {data:_0x4c37e3}=_0x5d9ef8;return _0x4c37e3&&'bookmarkId'==_0x4c37e3['key']?{'type':'format','content':Ot(_0x5d4a28,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c37e3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x548d2a{afterInit(){const _0x3f06d3=this['editor'];_0x3f06d3['plugins']['has']('CaseChange')&&(_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x548d2a{afterInit(){const _0x3ab169=this['editor'];_0x3ab169['commands']['get']('ckbox')&&_0x3ab169['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x548d2a{static get requires(){return[gt,ft];}constructor(_0x155be5){super(_0x155be5),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x6ebdaa=this['editor'],_0x2684b5=_0x6ebdaa['plugins']['get']('ClipboardMarkersUtils'),_0x317a38=_0x6ebdaa['plugins']['get'](ft);_0x2684b5['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x317a38['on']('outputTransformation',(_0x62898f,_0x3baf18)=>{const _0x40264d=this['_getSuggestionEntries'](_0x3baf18);for(const [_0x41208d,_0x5c7a55]of _0x3baf18['content']['markers']){const _0x20eb8a=ot['_fromRangeInDocumentFragment'](_0x5c7a55,_0x6ebdaa['model']);function _0x27b241(){_0x20eb8a['detach'](),_0x3baf18['content']['markers']['delete'](_0x41208d);}_0x20eb8a['on']('change:drop',_0x27b241),(_0x41208d['startsWith']('suggestion:')||_0x41208d['startsWith']('comment:'))&&_0x20eb8a['on']('change:range',()=>{_0x20eb8a['isCollapsed']&&_0x27b241();}),_0x3baf18['content']['markers']['set'](_0x41208d,_0x20eb8a);}const _0x2d99ea=_0x40264d['filter'](_0x25681b=>'deletion'===_0x25681b['meta']['type'])['map'](_0x4cbd1e=>_0x4cbd1e['modelRange']);if(this['_shouldSkipDeletions'](_0x2d99ea,_0x3baf18['content']))return[..._0x40264d]['forEach'](_0x77a233=>{_0x3baf18['content']['markers']['get'](_0x77a233['markerName'])['detach'](),_0x3baf18['content']['markers']['delete'](_0x77a233['markerName']);}),void this['_restoreRegularRanges'](_0x3baf18['content']['markers']);[..._0x40264d]['forEach'](_0x549f25=>{const _0x3b7dae=_0x6ebdaa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x549f25['meta']['type'],_0x549f25['meta']['subType'],'accept'),{markerName:_0x2ec4b5,meta:_0x366011}=_0x549f25;if(_0x3baf18['content']['markers']['has'](_0x2ec4b5)){switch(_0x366011['type']){case'deletion':if('tableRow'===_0x366011['subType']||'tableColumn'===_0x366011['subType']){if(!_0x6ebdaa['plugins']['has']('TableUtils'))break;const _0x4538da=_0x6ebdaa['plugins']['get']('TableUtils'),_0x45974a=_0x4538da['getSelectionAffectedTableCells'](_0x6ebdaa['model']['createSelection'](_0x3baf18['content']['markers']['get'](_0x2ec4b5))),_0x2ac429=_0x45974a[0x0]['findAncestor']('table');if('tableRow'===_0x366011['subType']){const {first:_0x262a0a,last:_0x26846f}=_0x4538da['getRowIndexes'](_0x45974a);_0x4538da['removeRows'](_0x2ac429,{'at':_0x262a0a,'rows':_0x26846f-_0x262a0a+0x1});}else{const {first:_0x2b2586,last:_0x3d0e0b}=_0x4538da['getColumnIndexes'](_0x45974a);_0x4538da['removeColumns'](_0x2ac429,{'at':_0x2b2586,'columns':_0x3d0e0b-_0x2b2586+0x1});}break;}_0x3b7dae([_0x3baf18['content']['markers']['get'](_0x2ec4b5)]);}_0x3baf18['content']['markers']['has'](_0x2ec4b5)&&(_0x3baf18['content']['markers']['get'](_0x2ec4b5)['detach'](),_0x3baf18['content']['markers']['delete'](_0x2ec4b5));}}),this['_restoreRegularRanges'](_0x3baf18['content']['markers']);});}_getSuggestionEntries(_0x384387){const _0x6f3717=_0x421492=>'dragstart'===_0x384387['method']?_0x421492['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x421492;return Array['from'](_0x384387['content']['markers'])['map'](([_0x3ab927,_0x57fab2])=>({'markerName':_0x3ab927,'modelRange':_0x57fab2,'meta':et(_0x6f3717(_0x3ab927))}))['filter'](({meta:_0x3b84c9})=>'suggestion'===_0x3b84c9['group']);}_shouldSkipDeletions(_0x8b8c83,_0x36f0c7){if(!_0x8b8c83['length'])return!0x1;let _0x208a61=[this['editor']['model']['createRangeIn'](_0x36f0c7)];for(const _0x525136 of _0x8b8c83)_0x208a61=_0x208a61['flatMap'](_0x5bd72a=>_0x5bd72a['getDifference'](_0x525136));return!_0x208a61['some'](_0x493c02=>this['editor']['model']['hasContent'](_0x493c02,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x315d15){[..._0x315d15['keys']()]['forEach'](_0xba9e61=>{const _0x2861da=_0x315d15['get'](_0xba9e61);_0x2861da['detach'](),_0x315d15['set'](_0xba9e61,_0x2861da['toRange']());});}},jt=class extends _0x548d2a{afterInit(){const _0x7fb726=this['editor'];if(!_0x7fb726['plugins']['has']('CodeBlock'))return;const _0x41a0fd=_0x7fb726['plugins']['get']('TrackChangesEditing'),_0x227427=_0x7fb726['locale'],_0x107a42=_0x7fb726['config']['get']('codeBlock')['languages'],_0x1610d0=_0x7fb726['commands']['get']('codeBlock');_0x41a0fd['enableCommand']('indentCodeBlock'),_0x41a0fd['enableCommand']('outdentCodeBlock'),_0x41a0fd['enableCommand']('codeBlock',(_0x37be77,_0x4fd184={})=>{const _0x190607=_0x7fb726['model'],_0x5230a6=_0x7fb726['model']['document']['selection'],_0x43ec52=_0x4fd184&&void 0x0!==_0x4fd184['forceValue']?_0x4fd184['forceValue']:!_0x1610d0['value'];let _0x145450;_0x4fd184['language']||(_0x4fd184['language']=_0x107a42[0x0]['language']),_0x145450=_0x43ec52?Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x5dce3f=>{return zt(_0x5dce3f)||(_0x589ced=_0x5dce3f,_0x1143fa=_0x190607['schema'],!_0x589ced['is']('rootElement')&&!_0x1143fa['isLimit'](_0x589ced)&&_0x1143fa['checkChild'](_0x589ced['parent'],'codeBlock'));var _0x589ced,_0x1143fa;}):Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x50befe=>zt(_0x50befe));const _0x2b64ae=Ct(_0x145450,_0x190607);_0x190607['change'](()=>{for(const _0x2e996a of _0x2b64ae)_0x41a0fd['markBlockFormat'](_0x2e996a,{'commandName':'codeBlock','commandParams':[{..._0x4fd184,'forceValue':_0x43ec52}],'formatGroupId':'blockName'});});}),(_0x41a0fd['descriptionFactory']['registerElementLabel']('codeBlock',_0x1dea05=>Ot(_0x227427,'ELEMENT_CODE_BLOCK',_0x1dea05)),_0x41a0fd['descriptionFactory']['registerDescriptionCallback'](_0x593c1e=>{if('formatBlock'!=_0x593c1e['type'])return;const _0x587fbc=_0x227427['t'],{data:_0x34c667}=_0x593c1e;if(!_0x34c667||'codeBlock'!=_0x34c667['commandName'])return;const _0x573cfa=_0x34c667['commandParams'][0x0]['language'],_0x94e3e0=_0x587fbc(_0x107a42['find'](_0x1891ff=>_0x1891ff['language']===_0x573cfa)['label'])['toLowerCase']();return _0x34c667['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x227427,'*Set\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x94e3e0+')')}:{'type':'format','content':Ot(_0x227427,'*Remove\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x21fb09){return'codeBlock'==_0x21fb09['name'];}var Kt=class extends _0x548d2a{afterInit(){const _0x3ba165=this['editor'];_0x3ba165['plugins']['has']('CommentsEditing')&&_0x3ba165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x548d2a{static get requires(){return[mt];}init(){const _0x533106=this['editor'],_0x3081e1=_0x533106['plugins']['get']('TrackChangesEditing');_0x3081e1['enableCommand']('delete');const _0x1364d4=_0x533106['commands']['get']('deleteForward');_0x3081e1['enableCommand']('deleteForward',(_0x8d35f3,_0x3947d3={})=>{const _0x48b8d3=_0x533106['model']['createSelection'](_0x533106['model']['document']['selection']);_0x48b8d3['isCollapsed']&&_0x533106['model']['modifySelection'](_0x48b8d3,{'direction':'forward','unit':_0x3947d3['unit']});const _0x32c3a6=_0x48b8d3['getFirstRange'](),_0x442f6e=ot['fromRange'](_0x32c3a6);let _0x2fd82b;_0x8d35f3(_0x3947d3),_0x2fd82b='$graveyard'==_0x442f6e['root']['rootName']?_0x533106['model']['createRange'](_0x32c3a6['start']):_0x533106['model']['createRange'](_0x442f6e['start'],_0x442f6e['end']),_0x442f6e['detach'](),_0x533106['model']['enqueueChange'](_0x1364d4['buffer']['batch'],_0x23ec08=>{_0x1364d4['buffer']['lock'](),_0x23ec08['setSelection'](_0x23ec08['createRange'](_0x2fd82b['end'])),_0x1364d4['buffer']['unlock']();});});}},qt=class extends _0x548d2a{afterInit(){const _0x3803ea=this['editor'];if(!_0x3803ea['plugins']['has']('ListEditing'))return;const _0x448ec5=_0x3803ea['locale'],_0x50285c=_0x3803ea['plugins']['get']('TrackChangesEditing'),_0x1cd82e=_0x3803ea['plugins']['has']('TodoListEditing'),_0x1b199f=!!_0x3803ea['config']['get']('list.multiBlock');function _0x9d5c39(_0x5b5218){return{'type':'format','content':''+Ot(_0x448ec5,'*Set\x20format:*\x20%0',_0x5b5218)};}function _0x255d13(_0x28cd38){return{'type':'format','content':''+Ot(_0x448ec5,'*Remove\x20format:*\x20%0',_0x28cd38)};}_0x50285c['enableDefaultAttributesIntegration']('numberedList'),_0x50285c['enableDefaultAttributesIntegration']('bulletedList'),_0x50285c['enableDefaultAttributesIntegration']('customNumberedList'),_0x50285c['enableDefaultAttributesIntegration']('customBulletedList'),_0x50285c['enableDefaultAttributesIntegration']('indentList'),_0x50285c['enableDefaultAttributesIntegration']('outdentList'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b199f&&(_0x50285c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x50285c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cd82e&&(_0x50285c['enableDefaultAttributesIntegration']('todoList'),_0x50285c['enableDefaultAttributesIntegration']('checkTodoList'),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x77f90e=>{const {data:_0x3b2851}=_0x77f90e;if(_0x3b2851&&'todoListChecked'==_0x3b2851['key'])return{'type':'format','content':_0x3b2851['newValue']?Ot(_0x448ec5,'*Check\x20item*'):Ot(_0x448ec5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5cbea3=>{if(_0x5cbea3['batch']['isUndo'])return!0x1;let _0x5eb877=!0x1;const _0x16bc44=_0x50285c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d7602=>'todoListChecked'===_0x50285c['_getAttributeKey'](_0x5d7602));for(const _0x1f90e6 of _0x16bc44)'todo'!=_0x1f90e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x50285c['_findSuggestions'](_0x1f90e6['getFirstRange'](),'attribute')['find'](_0x5a9f40=>'listType'===_0x50285c['_getAttributeKey'](_0x5a9f40['suggestion']))||(_0x5cbea3['removeMarker'](_0x1f90e6['getFirstMarker']()),_0x5eb877=!0x0));return _0x5eb877;})),_0x50285c['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x448ec5,'FORMAT_INDENT'));const _0x3e4736={'type':'format','content':''};_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x480aee=>{const {data:_0x1a3e47}=_0x480aee;if(!_0x1a3e47||'listType'!=_0x1a3e47['key'])return;let _0x4d8148=_0x480aee['head'];for(;_0x4d8148;){if(_0x4d8148['data']&&(('listStyle'==_0x4d8148['data']['key']||'listMarkerStyle'==_0x4d8148['data']['key'])&&(_0x4d8148['data']['newValue']&&'default'!=_0x4d8148['data']['newValue']||'default'!=_0x4d8148['data']['oldValue']&&!_0x1a3e47['newValue'])||!_0x1b199f&&'$elementName'==_0x4d8148['data']['key']))return _0x3e4736;_0x4d8148=_0x4d8148['next'];}if(null==_0x1a3e47['newValue'])switch(_0x1a3e47['oldValue']){case'bulleted':return _0x255d13(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x255d13(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x255d13(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}switch(_0x1a3e47['newValue']){case'bulleted':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x311dab=>{const {data:_0x4db833}=_0x311dab;if(_0x4db833&&'listIndent'==_0x4db833['key'])return null==_0x4db833['newValue']||null==_0x4db833['oldValue']&&0x0==_0x4db833['newValue']?_0x3e4736:void 0x0;}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0xb97fef=>{if('attribute'!=_0xb97fef['type'])return;const {data:_0x28e6c2}=_0xb97fef;if(!_0x28e6c2||'listItemId'!=_0x28e6c2['key'])return;const _0x7ae84f=Yt(_0xb97fef);return'newValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Split:*\x20list\x20item')}:_0x3e4736;}),_0x3803ea['model']['document']['registerPostFixer'](_0x5ee3b6=>this['listItemIdFixer'](_0x5ee3b6)),_0x3803ea['model']['document']['registerPostFixer'](_0x17bdf7=>this['noTrackChangesFixer'](_0x17bdf7)),_0x3803ea['model']['document']['on']('change:data',(_0x5d5bbe,_0x3ffc01)=>{if(_0x3ffc01['isUndo']||!_0x3ffc01['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x29018b){if(_0x29018b['batch']['isUndo']||!_0x29018b['batch']['isLocal'])return!0x1;let _0x357083=!0x1;const _0x137a54=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150b37=>_0x150b37['data']&&'listItemId'==_0x150b37['data']['key'])['filter'](_0x388783=>_0x388783['data']['newValue']&&_0x388783['data']['oldValue']);for(const _0x403279 of _0x137a54)Yt(_0x403279)||(_0x29018b['removeMarker'](_0x403279['getFirstMarker']()),_0x357083=!0x0);return _0x357083;}['noTrackChangesFixer'](_0x2e32cd){if(_0x2e32cd['batch']['isUndo']||!_0x2e32cd['batch']['isLocal'])return!0x1;const _0x3c6b3b=this['editor']['model']['document']['differ'],_0x344ca8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x344ca8['trackChangesCommand']['value'])return!0x1;let _0x2d72f1=!0x1;const _0x5157b3=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x65170b=_0x3c6b3b['getChanges']()['filter'](_0x4abc67=>'attribute'==_0x4abc67['type'])['filter'](_0x557c53=>_0x5157b3['has'](_0x557c53['attributeKey']));if(0x0==_0x65170b['length'])return _0x2d72f1;const _0x12a94d=new Set(_0x3c6b3b['getMarkersToAdd']()['filter'](_0x17fbdd=>{if(!_0x17fbdd['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3110bc=et(_0x17fbdd['name'])['subType']['split']('|')[0x0];return _0x5157b3['has'](_0x3110bc);})['map'](_0xc75954=>et(_0xc75954['name'])['id']));for(const _0x494b6c of _0x65170b){const _0x38631d=_0x344ca8['_findSuggestions'](_0x494b6c['range'],'attribute')['filter'](_0x5e8bb4=>{if(_0x5e8bb4['meta']['isNextTo'])return!0x1;if(_0x12a94d['has'](_0x5e8bb4['suggestion']['id']))return!0x1;const _0x282a50=_0x344ca8['_getAttributeKey'](_0x5e8bb4['suggestion']);return _0x5157b3['has'](_0x282a50);})['map'](_0x318936=>_0x318936['suggestion']);if(_0x38631d['length']){for(const _0x4eb5fd of _0x38631d)_0x2e32cd['removeMarker'](_0x4eb5fd['getFirstMarker']());_0x2d72f1=!0x0;}}return _0x2d72f1;}['assureChains'](){const _0x103687=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f5114=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2cc53c;const _0x199deb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ab7f3=>{if(_0x5ab7f3['data']['oldRange']||!_0x5ab7f3['data']['newRange'])return null;if(!_0x5ab7f3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57374c}=et(_0x5ab7f3['name']);if(!_0x103687['hasSuggestion'](_0x57374c))return null;const _0x47a899=_0x103687['getSuggestion'](_0x57374c);return _0x1f5114['includes'](_0x47a899['data']['key']);})['map'](_0x31c6ec=>{const {id:_0x61760f}=et(_0x31c6ec['name']),_0x799935=_0x103687['getSuggestion'](_0x61760f);return _0x2cc53c=_0x799935['attributes']['groupId'],_0x799935['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x199deb['size'])return;const _0x2bccd4=_0x103687['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c273=>'attribute'==_0x49c273['type']&&_0x49c273['data']&&_0x1f5114['includes'](_0x49c273['data']['key'])&&_0x49c273['attributes']['groupId']!=_0x2cc53c)['map'](_0xc3807b=>({'listItem':_0xc3807b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xc3807b['attributes']['groupId']})),_0x3a4564=new Set();for(const {groupId:_0x1e7442,listItem:_0x34ca46}of _0x2bccd4)_0x199deb['has'](_0x34ca46)&&_0x3a4564['add'](_0x1e7442);for(const _0x90b4de of _0x103687['getSuggestions']())_0x3a4564['has'](_0x90b4de['attributes']['groupId'])&&_0x90b4de['setAttribute']('groupId',_0x2cc53c);}_supportLegacySuggestions(){const _0x3566a4=this['editor'],_0x57d0f7=_0x3566a4['locale'],_0x3b11d3=_0x3566a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33de8d,_0x245827){const _0x3c80a9=[];for(let _0x1bc4b5 of _0x33de8d)_0x1bc4b5['start']['nodeAfter']===_0x1bc4b5['end']['parent']&&(_0x1bc4b5=_0x3566a4['model']['createRange'](_0x3566a4['model']['createPositionAt'](_0x1bc4b5['start']['nodeAfter'],0x0))),_0x3c80a9['push'](_0x1bc4b5);_0x3566a4['model']['change'](_0x188710=>{const _0x14f674=_0x3566a4['model']['document']['selection'],_0x52d3be=Array['from'](_0x14f674['getRanges']())['map'](_0x22ba7a=>ot['fromRange'](_0x22ba7a));_0x188710['setSelection'](_0x3c80a9),_0x3566a4['commands']['get'](_0x245827['commandName'])['refresh'](),_0x245827['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3566a4['execute'](_0x245827['commandName'],..._0x245827['commandParams']),_0x188710['setSelection'](_0x52d3be);for(const _0x1fc655 of _0x52d3be)_0x1fc655['detach']();});}),_0x3b11d3['descriptionFactory']['registerElementLabel'](function(_0x2efc07){const _0x463612=!_0x3566a4['model']['schema']['isObject'](_0x2efc07),_0x560560=_0x2efc07['previousSibling'],_0x6c250f=_0x2efc07['nextSibling'],_0x353d3d=_0x2efc07['getAttribute']('listItemId'),_0x8fa336=!_0x560560||_0x560560['getAttribute']('listItemId')!==_0x353d3d,_0x4b4ef0=!_0x6c250f||_0x6c250f['getAttribute']('listItemId')!==_0x353d3d;return _0x463612&&Boolean(_0x353d3d)&&_0x8fa336&&_0x4b4ef0;},_0x398c39=>Ot(_0x57d0f7,'ELEMENT_LIST_ITEM',_0x398c39));}_registerLegacyDescription(){const _0x2515bc=this['editor'],_0xd5d8bd=_0x2515bc['locale'];function _0x55b889(_0x1dec84){const _0x5c2fcc=_0x2515bc['commands']['get']('bulletedList')['value'],_0x4af828=_0x2515bc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1dec84?_0x5c2fcc:_0x4af828;}_0x2515bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a0b9){if('formatBlock'!=_0x48a0b9['type'])return;const {data:_0x5bd5b0}=_0x48a0b9;if(!_0x5bd5b0)return;let _0x3f1c61,_0x2d8e17,_0x5da99c,_0x146af0;switch(_0x5bd5b0['commandName']){case'bulletedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f1c61='*Indent:*\x20%0',_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f1c61=function(_0x1c928b){const _0x5f235e=_0x1c928b['getFirstRange']();let _0x50ad58=_0x5f235e['start']['nodeAfter'];for(;_0x50ad58&&_0x5f235e['containsItem'](_0x50ad58);){if(_0x50ad58['getAttribute']('listIndent')>0x0)return!0x1;_0x50ad58=_0x50ad58['nextSibling'];}return!0x0;}(_0x48a0b9)?Ot(_0xd5d8bd,'*Format:*\x20remove\x20from\x20%0',Ot(_0xd5d8bd,function(_0x949512){return'ELEMENT_'+_0x949512['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a0b9))):Ot(_0xd5d8bd,'*Outdent:*\x20%0',Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM')),_0x2d8e17={'type':'format','content':_0x3f1c61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5bd5b0['multipleBlocks']&&(_0x3f1c61='*Merge:*\x20%0',_0x2d8e17={'type':'deletion','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))});}return _0x2d8e17;});}};function Yt(_0x5621fd){let _0x459df5=_0x5621fd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x459df5;){const _0x288933=_0x459df5['getAttribute']('listItemId');if(!_0x288933)return!0x1;if(_0x288933==_0x5621fd['data']['newValue'])return'newValue';if(_0x288933==_0x5621fd['data']['oldValue'])return'oldValue';_0x459df5=_0x459df5['previousSibling'];}return!0x1;}var Qt=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2dfa21=this['editor']['config']['get']('list.properties'),_0x1f1b03=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dfa21['styles']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStyle'),_0x2dfa21['reversed']&&_0x1f1b03['enableDefaultAttributesIntegration']('listReversed'),_0x2dfa21['startIndex']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStart');const _0x166a09={'type':'format','content':''};_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4261cc=this['editor']['locale'];_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4261cc,'FORMAT_LIST_REVERSED')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x1de4d3=>{const {data:_0x49d1b2}=_0x1de4d3;if(_0x49d1b2&&'listReversed'==_0x49d1b2['key'])return null==_0x49d1b2['newValue']||0x0==_0x49d1b2['newValue']&&null==_0x49d1b2['oldValue']?_0x166a09:void 0x0;}),_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4261cc,'FORMAT_LIST_START')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x53f8a4=>{const {data:_0x33b662}=_0x53f8a4;if(_0x33b662&&'listStart'==_0x33b662['key'])return null==_0x33b662['newValue']||0x1==_0x33b662['newValue']&&null==_0x33b662['oldValue']?_0x166a09:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44bdf4=>{if(_0x44bdf4['batch']['isUndo'])return!0x1;let _0x5647c4=!0x1;const _0x495967=_0x1f1b03['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21d97e=>{const _0x1b1a04=_0x1f1b03['_getAttributeKey'](_0x21d97e);return'listStart'==_0x1b1a04||'listReversed'==_0x1b1a04;});for(const _0x37b939 of _0x495967){const _0x344f9b=_0x37b939['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x344f9b&&'customNumbered'!=_0x344f9b&&(_0x1f1b03['_findSuggestions'](_0x37b939['getFirstRange'](),'attribute')['find'](_0x2572f6=>'listType'==_0x1f1b03['_getAttributeKey'](_0x2572f6['suggestion']))||(_0x44bdf4['removeMarker'](_0x37b939['getFirstMarker']()),_0x5647c4=!0x0));}return _0x5647c4;}),this['_registerLegacyDescription']();}handleDescriptions(_0x385f7e){const _0x43f459=this['editor']['locale'],{data:_0x22cb45}=_0x385f7e,_0x30a0ff={'type':'format','content':''};if(!_0x22cb45||'listStyle'!=_0x22cb45['key'])return;if(!_0x22cb45['oldValue'])return'default'==_0x22cb45['newValue']?_0x30a0ff:{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};if(!_0x22cb45['newValue']){if('default'==_0x22cb45['oldValue'])return _0x30a0ff;let _0x536a95=_0x385f7e['head'];for(;_0x536a95;){if(_0x536a95['data']&&'listType'==_0x536a95['data']['key']&&_0x536a95['data']['newValue'])return _0x30a0ff;_0x536a95=_0x536a95['next'];}return{'type':'format','content':''+Ot(_0x43f459,'*Remove\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['oldValue'])))};}if('default'!=_0x22cb45['newValue'])return{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};let _0x5ab35e=_0x385f7e['head'];for(;_0x5ab35e;){if(_0x5ab35e['data']&&'listType'==_0x5ab35e['data']['key']&&_0x5ab35e['data']['newValue']&&_0x5ab35e['data']['oldValue'])return _0x30a0ff;_0x5ab35e=_0x5ab35e['next'];}return{'type':'format','content':Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,'ELEMENT_'+_0x385f7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x31bbd9=this['editor'],_0x9b3aaa=_0x31bbd9['locale'];_0x31bbd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43390c=>{if('formatBlock'!=_0x43390c['type'])return;const {data:_0x85535a}=_0x43390c;if(!_0x85535a)return;let _0x21d822,_0x4ddb22;switch(_0x85535a['commandName']){case'listStyle':_0x21d822='*Change\x20to:*\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,Ot(_0x9b3aaa,this['_getTranslationKeyForListStyle'](_0x85535a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21d822=_0x85535a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822)};break;case'listStart':_0x21d822='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,_0x85535a['commandParams'][0x0]['startIndex'])};}return _0x4ddb22;});}_getTranslationKeyForListStyle(_0x3e1841){return'ELEMENT_'+(_0x149319=_0x3e1841,Zt['includes'](_0x149319)?'bulleted':Jt['includes'](_0x149319)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3e1841['toUpperCase']()['replace'](/-/g,'_');var _0x149319;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x548d2a{afterInit(){const _0x2fd17e=this['editor'];_0x2fd17e['commands']['get']('emoji')&&_0x2fd17e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x548d2a{static get requires(){return[Tt];}init(){const _0x580699=this['editor'],_0x5ca5ff=_0x580699['plugins']['get']('TrackChangesEditing'),_0x18ea3a=_0x580699['commands']['get']('enter');_0x5ca5ff['enableCommand']('enter',()=>{_0x580699['model']['change'](_0x288c46=>{const _0x241b1a=_0x580699['model']['document']['selection'],_0x5e03d0=_0x241b1a['getFirstPosition'](),_0x4f6b96=ot['fromRange'](_0x241b1a['getFirstRange']());if(_0x18ea3a['enterBlock'](_0x288c46)){const _0x4bdfb3=_0x580699['model']['createPositionAt'](_0x5e03d0['parent']['nextSibling'],0x0),_0x490b0e=_0x288c46['createRange'](_0x5e03d0,_0x4bdfb3);_0x5ca5ff['markInsertion'](_0x490b0e);}else _0x288c46['setSelection'](_0x288c46['createRange'](_0x4f6b96['end']));_0x4f6b96['detach'](),_0x18ea3a['fire']('afterExecute',{'writer':_0x288c46});});});}},ne=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b3f7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3f7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b3f7d['enableCommand']('findNext'),_0x1b3f7d['enableCommand']('findPrevious'),_0x1b3f7d['enableCommand']('replace'),_0x1b3f7d['enableCommand']('replaceAll');}['handleFindCommand'](_0xdac891,_0x40e50d,_0x3c8f67={}){const _0x4fdd49=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdac891(_0x2f74dc=>{let _0x4376f7=('string'==typeof _0x40e50d?_0x4fdd49['findByTextCallback'](_0x40e50d,_0x3c8f67):_0x40e50d)(_0x2f74dc);Array['isArray'](_0x4376f7)&&(_0x4376f7={'results':_0x4376f7,'searchText':'string'==typeof _0x40e50d?_0x40e50d:''});const _0x15712b=_0x4376f7['results']['filter'](_0x461eaa=>!0x1===this['_isInDeletionRange'](_0x461eaa,_0x2f74dc['item']));return{..._0x4376f7,'results':_0x15712b};},_0x3c8f67);}_isInDeletionRange(_0x2ff009,_0x28162b){const _0x27cf83=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['start']),this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['end']));for(const _0x547745 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27cf83['getIntersection'](_0x547745['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x548d2a{afterInit(){const _0x384ffa=this['editor']['locale'],_0x59e503=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d56d1,commandName:_0x509060}of ie)this['editor']['plugins']['has'](_0x5d56d1)&&_0x59e503['enableDefaultAttributesIntegration'](_0x509060);_0x59e503['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x384ffa,'FORMAT_FONT_SIZE')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x384ffa,'FORMAT_FONT_FAMILY')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x384ffa,'FORMAT_FONT_COLOR')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x384ffa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43f598=this['editor'],_0x2e0d34=_0x43f598['locale'];_0x43f598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65f3c8=>{const _0x3a2fb3=_0x2e0d34['t'];if('formatInline'!=_0x65f3c8['type'])return;const {data:_0x18909b}=_0x65f3c8;if(null!=_0x18909b){if('fontSize'==_0x18909b['commandName']){const _0x57fbf5=_0x18909b['commandParams'][0x0]['value'];if(_0x57fbf5){const _0x4b209c=_0x3a2fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x22c04=>_0x22c04['model']==_0x57fbf5)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20size:*\x20%0',_0x4b209c)};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18909b['commandName']){const _0xd565c5=_0x18909b['commandParams'][0x0]['value'];return _0xd565c5?{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20family:*\x20%0',_0xd565c5)}:{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18909b['commandName']){const _0x111579=_0x18909b['commandParams'][0x0]['value'];if(_0x111579){const _0x2f4370=_0xb174e6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40a7ac=>_0x40a7ac['model']==_0x111579);let _0x4b4411=_0x111579,_0x10f4b1='';return _0x2f4370&&(_0x4b4411=_0x2f4370['label'],_0x10f4b1=_0x3a2fb3(_0x4b4411)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20color:*\x20%0',_0x10f4b1)['trim'](),'color':{'value':_0x111579,'title':_0x10f4b1||_0x4b4411}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18909b['commandName']){const _0x32a4bf=_0x18909b['commandParams'][0x0]['value'];if(_0x32a4bf){const _0x3a46a1=_0xb174e6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d372a=>_0x4d372a['model']==_0x32a4bf);let _0x1597b0=_0x32a4bf,_0x4c15f6='';return _0x3a46a1&&(_0x1597b0=_0x3a46a1['label'],_0x4c15f6=_0x3a2fb3(_0x1597b0)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c15f6)['trim'](),'color':{'value':_0x32a4bf,'title':_0x4c15f6||_0x1597b0}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x548d2a{afterInit(){const {plugins:_0x2723c5}=this['editor'];_0x2723c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2723c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3a9ce4,plugins:_0x54fcce,commands:_0x71d9c1}=this['editor'],_0x204ba7=_0x54fcce['get']('TrackChangesEditing');_0x71d9c1['get']('footnotesStyle')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x71d9c1['get']('footnotesStart')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStart'),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x53c7c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b97a6,commands:_0x5c6def}=this['editor'];_0x5c6def['get']('insertFootnote')&&_0x53c7c5['enableCommand']('insertFootnote'),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2ad76e=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_REF',_0x2ad76e)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x458bf4=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_DEFINITION',_0x458bf4)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1bfb0c=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1bfb0c));}},oe=class extends _0x548d2a{afterInit(){const _0x24283a=this['editor'],_0xfd30e7=_0x24283a['plugins']['get']('TrackChangesEditing'),_0x7c9b66=_0x24283a['commands']['get']('copyFormat'),_0x141a24=_0x24283a['commands']['get']('pasteFormat');_0x7c9b66&&_0x141a24&&(_0xfd30e7['enableDefaultAttributesIntegration']('pasteFormat'),_0xfd30e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4f8957=this['editor'],_0x5cec0a=_0x4f8957['locale'];_0x4f8957['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d37a5=>{if('formatBlock'!=_0x1d37a5['type']&&'formatInline'!=_0x1d37a5['type'])return;const {data:_0x5c72f2}=_0x1d37a5;if(_0x5c72f2&&'pasteFormat'===_0x5c72f2['commandName']){const _0x2fb898=[],_0x163cfb=_0x5c72f2['commandParams'][0x0];for(const [_0x362507,_0x2f6cc0]of Object['entries'](_0x163cfb))_0x2fb898['push'](ae(_0x4f8957,_0x362507,_0x2f6cc0));return _0x2fb898['length']?{'type':'format','content':Ot(_0x5cec0a,'*Set\x20format\x20to:*\x20%0',_0x2fb898['join'](',\x20'))}:{'type':'format','content':Ot(_0x5cec0a,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x4cf625,_0x38a7b1,_0x42fec5){const _0x1d793d=_0x4cf625['locale']['t'],_0x232098=_0x38a7b1['split'](/(?=[A-Z])/)['join']('\x20'),_0x35895d=_0x1d793d(_0x232098['charAt'](0x0)['toUpperCase']()+_0x232098['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fec5)return _0x35895d;if('fontColor'===_0x38a7b1||'fontBackgroundColor'===_0x38a7b1){const _0x2604ce=_0xb174e6(_0x4cf625['config']['get']('fontColor.colors'))['find'](_0x5dd6eb=>_0x5dd6eb['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x2604ce?_0x1d793d(_0x2604ce['label'])['toLowerCase']():_0x42fec5)+')';}if('fontSize'===_0x38a7b1&&isNaN(parseFloat(_0x42fec5))){const _0x55c909=_0x4cf625['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4cf625['config']['get']('fontSize.options'))['find'](_0x34195e=>_0x34195e['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x55c909?_0x1d793d(_0x55c909['title'])['toLowerCase']():_0x42fec5)+')';}return _0x35895d+'\x20('+_0x42fec5+')';}var ce=class extends _0x548d2a{afterInit(){const _0x962fd1=this['editor'];if(!_0x962fd1['plugins']['has']('GeneralHtmlSupport')||!_0x962fd1['plugins']['has']('DataSchema'))return;const _0x2b2136=_0x962fd1['plugins']['get']('TrackChangesEditing'),_0x5b8c46=_0x962fd1['plugins']['get']('GeneralHtmlSupport'),_0x18be86=_0x962fd1['plugins']['get']('DataSchema'),_0x2f1747=_0x962fd1['locale'],_0x3b443f=new Set(['htmlContent']);for(const _0x3ae361 of _0x18be86['getDefinitionsForView'](/.*/,!0x1)){const _0x24b67a=_0x3ae361['view'],_0x16d49f=_0x5b8c46['getGhsAttributeNameForElement'](_0x24b67a);_0x3b443f['add'](_0x16d49f),!_0x3ae361['isInline']||_0x3ae361['isObject']||'appliesToBlock'in _0x3ae361&&_0x3ae361['appliesToBlock']||_0x2b2136['descriptionFactory']['registerAttributeLabel'](_0x16d49f,_0x24b67a),_0x3ae361['model']['startsWith']('html')&&_0x2b2136['descriptionFactory']['registerElementLabel'](_0x3ae361['model'],_0x2f7144=>Ot(_0x2f1747,'ELEMENT_HTML_TAG',[_0x2f7144,_0x24b67a]));}_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2f1747,'FORMAT_RAW_HTML_CONTENT')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2f1747,'FORMAT_HTML_LIST_ITEM')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2f1747,'FORMAT_HTML_BULLETED_LIST')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2f1747,'FORMAT_HTML_NUMBERED_LIST')),_0x2b2136['descriptionFactory']['registerDescriptionCallback'](_0x1bdcea=>{if('attribute'!==_0x1bdcea['type'])return;const _0x395115=_0x1bdcea['data'];if(!_0x395115||!_0x3b443f['has'](_0x395115['key']))return;if('htmlContent'===_0x395115['key'])return{'type':'format','content':Ot(_0x2f1747,'*Change\x20%0\x20content*',Ot(_0x2f1747,'ELEMENT_RAW_HTML'))};const {setItems:_0x425f33,removeItems:_0x3aca9a}=function(_0x4624f5,_0x1f28a4,_0x2f9e42){const _0x5011f1=[],_0x6c92a9=[],_0x893cfd=_0x4624f5['styles']??{},_0x1b1ea8=_0x1f28a4['styles']??{};for(const _0x264055 of new Set([...Object['keys'](_0x893cfd),...Object['keys'](_0x1b1ea8)]))_0x893cfd[_0x264055]!==_0x1b1ea8[_0x264055]&&(void 0x0===_0x1b1ea8[_0x264055]?_0x6c92a9['push'](_0x264055):_0x5011f1['push'](_0x264055+'\x20('+_0x1b1ea8[_0x264055]+')'));const _0x47fc23=Ot(_0x2f9e42,'FORMAT_HTML_CLASS'),_0x2121b6=new Set(_0x4624f5['classes']??[]),_0x5d9038=new Set(_0x1f28a4['classes']??[]),_0x45c3ae=[..._0x5d9038]['some'](_0x5266b5=>!_0x2121b6['has'](_0x5266b5)),_0x3aff5c=[..._0x2121b6]['some'](_0x5e3f1c=>!_0x5d9038['has'](_0x5e3f1c));_0x45c3ae&&_0x5011f1['push'](_0x47fc23),_0x3aff5c&&_0x6c92a9['push'](_0x47fc23);const _0x135029=Ot(_0x2f9e42,'FORMAT_HTML_ATTRIBUTE'),_0x4f2024=_0x4624f5['attributes']??{},_0x47bb53=_0x1f28a4['attributes']??{};let _0x7e30e2=!0x1,_0x3d0020=!0x1;for(const _0x5aba11 of new Set([...Object['keys'](_0x4f2024),...Object['keys'](_0x47bb53)]))_0x4f2024[_0x5aba11]!==_0x47bb53[_0x5aba11]&&(void 0x0===_0x47bb53[_0x5aba11]?_0x3d0020=!0x0:_0x7e30e2=!0x0);return _0x7e30e2&&_0x5011f1['push'](_0x135029),_0x3d0020&&_0x6c92a9['push'](_0x135029),{'setItems':_0x5011f1,'removeItems':_0x6c92a9};}(_0x395115['oldValue']??{},_0x395115['newValue']??{},_0x2f1747);if(!_0x425f33['length']&&!_0x3aca9a['length'])return;const _0x18a35d=[];return _0x425f33['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Set\x20format:*\x20%0',_0x425f33['join'](',\x20'))),_0x3aca9a['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Remove\x20format:*\x20%0',_0x3aca9a['join'](',\x20'))),{'type':'format','content':_0x18a35d['join']('\x0a')};});}},le=class extends _0x548d2a{_headingOptions;afterInit(){const _0x41c2a2=this['editor'];if(!_0x41c2a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41c2a2['config']['get']('heading.options');const _0x14b60b=_0x41c2a2['locale'],_0x4fde14=_0x41c2a2['plugins']['get']('TrackChangesEditing');_0x4fde14['enableDefaultAttributesIntegration']('heading');for(const _0x1c082b of this['_headingOptions'])'paragraph'!=_0x1c082b['model']&&_0x4fde14['descriptionFactory']['registerElementLabel'](_0x1c082b['model'],_0x4f3305=>{const _0xffcb10=this['_getHeadingLevel'](_0x1c082b['model']);return null!==_0xffcb10?_0x50ad2b(_0x4f3305,_0xffcb10):_0x47ab8b(_0x4f3305,_0x1c082b['title']);});function _0x50ad2b(_0xf347ad,_0x673d08){return Ot(_0x14b60b,'ELEMENT_HEADING',[_0xf347ad,_0x673d08]);}function _0x47ab8b(_0x4956f5,_0x5244ed){return Ot(_0x14b60b,'ELEMENT_HEADING_CUSTOM',[_0x4956f5,_0x5244ed]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x872267=this['editor'],_0x4542e1=_0x872267['locale'];function _0x15a3f8(_0x1cb2d5,_0x342678){return Ot(_0x4542e1,'ELEMENT_HEADING_CUSTOM',[_0x1cb2d5,_0x342678]);}_0x872267['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3123d3=>{if('formatBlock'!=_0x3123d3['type'])return;const {data:_0x2378a6}=_0x3123d3;if(_0x2378a6&&'heading'==_0x2378a6['commandName']){const _0x2647e9=_0x2378a6['commandParams'][0x0]['value'],_0x55625e=this['_getHeadingLevel'](_0x2647e9);if(null!==_0x55625e)return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',(_0x36d3ac=0x1,_0x4405a1=_0x55625e,Ot(_0x4542e1,'ELEMENT_HEADING',[_0x36d3ac,_0x4405a1])))};const _0x4f9ea5=this['_headingOptions']['find'](_0x45a08e=>_0x45a08e['model']===_0x2647e9)['title'];return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',_0x15a3f8(0x1,_0x4f9ea5))};}var _0x36d3ac,_0x4405a1;});}_getHeadingLevel(_0x343206){const _0x45412a=_0x343206['match'](/^heading(\d+)/);if(_0x45412a)return _0x45412a[0x1];const _0x4751bd=this['_headingOptions']?.['find'](_0x3ddc75=>_0x3ddc75['model']==_0x343206);if(_0x4751bd&&_0x4751bd['view']){const _0x17d731=_0x4751bd['view'],_0x260a65=(_0x17d731['name']??_0x17d731)['match'](/^h(\d+)/);if(_0x260a65)return _0x260a65[0x1];}return null;}},ue=class extends _0x548d2a{afterInit(){const _0x1391be=this['editor'];if(!_0x1391be['plugins']['has']('HighlightEditing'))return;const _0x1960eb=_0x1391be['plugins']['get']('TrackChangesEditing'),_0x5f1452=_0x1391be['locale'];_0x1960eb['enableDefaultAttributesIntegration']('highlight'),_0x1960eb['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x5f1452,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x101ed1=this['editor'],_0x420e6d=_0x101ed1['locale'];_0x101ed1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253cfc=>{if('formatInline'!=_0x253cfc['type'])return;const {data:_0x1bc3dc}=_0x253cfc;if(_0x1bc3dc&&'highlight'==_0x1bc3dc['commandName']){const _0x46a89e=_0x420e6d['t'],_0x49e3fd=_0x1bc3dc['commandParams'][0x0]['value'];if(_0x49e3fd){const _0x285fac=_0x101ed1['config']['get']('highlight.options')['find'](_0x38325c=>_0x38325c['model']==_0x49e3fd),_0x1e5a98=_0x46a89e(_0x285fac['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x420e6d,'*Set\x20highlight:*\x20%0',_0x1e5a98),'color':{'value':_0x285fac['color'],'title':_0x285fac['title']}};}return{'type':'format','content':Ot(_0x420e6d,'*Remove\x20highlight*',Ot(_0x420e6d,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x548d2a{afterInit(){const _0x28e41b=this['editor'];if(!_0x28e41b['plugins']['has']('HorizontalLineEditing'))return;_0x28e41b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1808c4=_0x28e41b['plugins']['get']('TrackChangesEditing'),_0x4e60e5=_0x28e41b['locale'];_0x1808c4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43331d=>Ot(_0x4e60e5,'ELEMENT_HORIZONTAL_LINE',_0x43331d));}},he=class extends _0x548d2a{afterInit(){const _0x27bba3=this['editor'];if(!_0x27bba3['plugins']['has']('HtmlEmbed'))return;const _0x287399=_0x27bba3['plugins']['get']('TrackChangesEditing'),_0x46e809=_0x27bba3['locale'];_0x287399['descriptionFactory']['registerElementLabel']('rawHtml',_0x292ea8=>Ot(_0x46e809,'ELEMENT_HTML_EMBED',_0x292ea8)),_0x287399['enableDefaultAttributesIntegration']('htmlEmbed'),_0x287399['descriptionFactory']['registerDescriptionCallback'](_0x23f0aa=>{if('attribute'!=_0x23f0aa['type'])return;const {data:_0x14badc}=_0x23f0aa;if(_0x14badc&&'value'==_0x14badc['key']&&_0x23f0aa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x264bc2=Ot(_0x46e809,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x46e809,'*Change\x20%0\x20content*',_0x264bc2)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5114e2=this['editor'],_0x7a4ac6=_0x5114e2['locale'];_0x5114e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x366d5f=>{if('formatBlock'!=_0x366d5f['type'])return;const {data:_0x5966f9}=_0x366d5f;if(_0x5966f9&&'htmlEmbed'==_0x5966f9['commandName']){const _0x32de10=Ot(_0x7a4ac6,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x7a4ac6,'*Change\x20%0\x20content*',_0x32de10)};}});}},ge=class extends _0x548d2a{afterInit(){const _0x2c4c21=this['editor'];if(!_0x2c4c21['plugins']['has']('ImageEditing'))return;const _0x573cea=_0x2c4c21['plugins']['get']('TrackChangesEditing'),_0x4c642a=_0x2c4c21['plugins']['get']('ImageUtils'),_0x1f797c=_0x2c4c21['locale'];_0x573cea['enableCommand']('insertImage'),_0x573cea['descriptionFactory']['registerElementLabel']('imageBlock',_0x20d06c=>Ot(_0x1f797c,'ELEMENT_IMAGE',_0x20d06c)),_0x573cea['descriptionFactory']['registerElementLabel']('imageInline',_0x48f607=>Ot(_0x1f797c,'ELEMENT_INLINE_IMAGE',_0x48f607)),_0x573cea['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x1f797c,'ELEMENT_CAPTION')),_0x2c4c21['plugins']['has']('ImageUploadEditing')&&_0x573cea['enableCommand']('uploadImage'),_0x2c4c21['plugins']['has']('ImageBlockEditing')&&_0x2c4c21['plugins']['has']('ImageInlineEditing')&&(_0x573cea['enableCommand']('imageTypeInline',(_0x11ee76,_0x1df685)=>{const _0x156f14=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']);_0x2c4c21['model']['change'](()=>{_0x573cea['markBlockFormat'](_0x156f14,{'commandName':'imageTypeInline','commandParams':[_0x1df685]},[],'convertBlockImageToInline');});}),_0x573cea['enableCommand']('imageTypeBlock',(_0x51d2d1,_0x122e11)=>{_0x2c4c21['model']['change'](_0x473d84=>{let _0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x2d7e4a=rt['fromPosition'](_0x1fab70['start'],'toPrevious'),_0x387f34=rt['fromPosition'](_0x1fab70['end'],'toNext');_0x573cea['forceDefaultExecution'](()=>_0x51d2d1(_0x122e11)),_0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x4d4450=_0x473d84['createRange'](_0x2d7e4a,_0x387f34);_0x2d7e4a['detach'](),_0x387f34['detach'](),_0x573cea['markBlockFormat'](_0xec8e80,{'commandName':'imageTypeInline','commandParams':[_0x122e11]},[],'convertInlineImageToBlock'),_0x4d4450['start']['isBefore'](_0x1fab70['start'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x4d4450['start'],_0x1fab70['start']),'convertInlineImageToBlock'),_0x1fab70['end']['isBefore'](_0x4d4450['end'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x1fab70['end'],_0x4d4450['end']),'convertInlineImageToBlock');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x573cea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x38596e])=>{const _0x44bc39=_0x573cea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41483c=_0x38596e['start'],_0x5f1bea=_0x38596e['end'];const _0x1538f3=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x41483c,'backward'),_0x2c1a41=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x5f1bea,'forward');_0x1538f3['isCollapsed']&&(_0x41483c=_0x1538f3['start']),_0x2c1a41['isCollapsed']&&(_0x5f1bea=_0x2c1a41['end']),_0x44bc39([_0x2c4c21['model']['createRange'](_0x41483c,_0x5f1bea)]);}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3753c2),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3753c2)),_0x2c4c21['plugins']['has']('ImageCaptionEditing')&&(_0x573cea['enableCommand']('toggleImageCaption',(_0x3cae5e,_0x362b1a)=>{const _0x57c621=_0x2c4c21['plugins']['get']('ImageCaptionUtils');let _0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795);_0x2c4c21['model']['change'](()=>{if(_0x4cb16e)return void _0x573cea['markDeletion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e));const _0x176f13=_0x4c642a['isBlockImage'](_0x44795);_0x3cae5e(_0x362b1a),_0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795),_0x573cea['markInsertion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e),_0x176f13?null:'imageCaption');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3753c2));const _0x1e3744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe6435(_0x1dfe83,_0x234278){const _0x5cd1dd=_0x1e3744['findIndex'](({type:_0x3985ae,subType:_0xcabe93})=>_0x1dfe83['type']==_0x3985ae&&_0x1dfe83['subType']==_0xcabe93),_0x24004d=_0x1e3744['findIndex'](({type:_0x2ec08b,subType:_0x58855b})=>_0x234278['type']==_0x2ec08b&&_0x234278['subType']==_0x58855b);if(_0x5cd1dd<0x0||_0x24004d<0x0)return!0x1;const _0x82efcc=_0x1dfe83['getFirstRange'](),_0x7087a4=_0x234278['getFirstRange']();if((0x0==_0x5cd1dd||0x1==_0x5cd1dd)&&0x2==_0x24004d&&_0x82efcc['isIntersecting'](_0x7087a4))return!0x0;if(0x2==_0x5cd1dd&&0x3==_0x24004d){const _0x58ff32=_0x573cea['_findSuggestions'](_0x82efcc,'insertion')['filter'](({suggestion:_0x3262ad,meta:_0x4b6607})=>_0x4b6607['isOwn']&&'convertInlineImageToBlock'==_0x3262ad['subType']);if(_0x58ff32['length']>0x1&&_0x7087a4['end']['isEqual'](_0x82efcc['start']))return!0x0;if(0x1==_0x58ff32['length']&&(_0x82efcc['start']['isEqual'](_0x7087a4['end'])||_0x82efcc['end']['isEqual'](_0x7087a4['start'])))return!0x0;}if(0x3==_0x5cd1dd&&0x3==_0x24004d&&_0x82efcc['start']['isBefore'](_0x7087a4['start'])){const _0x537230=_0x82efcc['end']['nodeAfter'],_0x44ed4e=_0x7087a4['start']['nodeBefore'];return _0x4c642a['isBlockImage'](_0x537230)&&_0x537230===_0x44ed4e;}return!0x1;}function _0x3753c2(_0x4cf36c,_0x44eab6){return _0xbe6435(_0x4cf36c,_0x44eab6)?[_0x4cf36c,_0x44eab6]:_0xbe6435(_0x44eab6,_0x4cf36c)?[_0x44eab6,_0x4cf36c]:null;}_0x2c4c21['plugins']['has']('ImageResize')&&(_0x573cea['enableDefaultAttributesIntegration']('resizeImage'),_0x573cea['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x1f797c,'FORMAT_IMAGE_SIZE'))),_0x2c4c21['plugins']['has']('ImageTextAlternativeEditing')&&_0x573cea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c4c21['plugins']['has']('PictureEditing')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0xf87024=>{if('attribute'!=_0xf87024['type'])return;const {data:_0xd0531f}=_0xf87024;return _0xd0531f&&'sources'==_0xd0531f['key']?{'type':'format','content':''}:void 0x0;}),_0x2c4c21['plugins']['has']('ImageSizeAttributes')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x3f222d=>{if('attribute'!=_0x3f222d['type'])return;const {data:_0x920cc}=_0x3f222d;return!_0x920cc||'width'!=_0x920cc['key']&&'height'!=_0x920cc['key']?void 0x0:{'type':'format','content':''};}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x364cbd=>{if(_0x1e3744['find'](({type:_0x31c7e6,subType:_0x10d08c})=>_0x364cbd['type']==_0x31c7e6&&_0x364cbd['subType']==_0x10d08c))return _0x364cbd['previous']?{}:void 0x0;}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x121536=>{if('insertion'==_0x121536['type']||'deletion'==_0x121536['type']){const _0x120494=_0x121536['getContainedElement']();if(_0x120494&&_0x120494['is']('element','caption'))return{'type':'insertion'==_0x121536['type']?'addObject':'removeObject','element':_0x120494,'quantity':0x1};}}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x18f5a3=>'formatBlock'==_0x18f5a3['type']&&'convertInlineImageToBlock'==_0x18f5a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18f5a3['type']&&'convertBlockImageToInline'==_0x18f5a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x2999b7=>{if('attribute'!=_0x2999b7['type'])return;const {data:_0x5e766b}=_0x2999b7;if(!_0x5e766b||'alt'!=_0x5e766b['key'])return;const _0x5cb8a5=_0x5e766b['newValue'];return _0x5cb8a5?{'type':'format','content':Ot(_0x1f797c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb8a5+'\x22')}:{'type':'format','content':Ot(_0x1f797c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d0f27=this['editor'],_0x3aa520=_0x5d0f27['locale'];_0x5d0f27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8dec29=>{if('formatBlock'!=_0x8dec29['type']&&'formatInline'!=_0x8dec29['type'])return;const {data:_0x1d9ca7}=_0x8dec29;if(_0x1d9ca7){if('imageTextAlternative'==_0x1d9ca7['commandName']){const _0x5d1136=_0x1d9ca7['commandParams'][0x0]['newValue'];return _0x5d1136?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d1136+'\x22')}:{'type':'format','content':Ot(_0x3aa520,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d9ca7['commandName']){const _0x2aa2f9=_0x1d9ca7['commandParams'][0x0]['width'];return _0x2aa2f9?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20width:*\x20%0',_0x2aa2f9)}:{'type':'format','content':Ot(_0x3aa520,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd96960=this['editor']['locale'],_0x49a673=this['editor']['plugins']['get']('TrackChangesEditing');_0x49a673['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49a673['descriptionFactory']['registerDescriptionCallback'](_0x213cea=>{if('attribute'!=_0x213cea['type'])return;const {data:_0x4e878f}=_0x213cea;return _0x4e878f&&'src'==_0x4e878f['key']?_0x4e878f['newValue']&&_0x4e878f['oldValue']?{'type':'format','content':Ot(_0xd96960,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1badfa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x357d9d=this['editor'],_0x414e47=_0x357d9d['locale'];_0x357d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad166=>{if('formatBlock'!=_0x2ad166['type']&&'formatInline'!=_0x2ad166['type'])return;const {data:_0x47b96}=_0x2ad166;return _0x47b96&&'replaceImageSource'==_0x47b96['commandName']?{'type':'format','content':Ot(_0x414e47,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x548d2a{afterInit(){const _0x403f10=this['editor'];if(!_0x403f10['plugins']['has']('ImageStyleEditing'))return;const _0x422422=_0x403f10['plugins']['get']('TrackChangesEditing'),_0x205daa=_0x403f10['plugins']['get']('ImageUtils'),_0x48d719={};_0x422422['enableCommand']('imageStyle',(_0x5d74f0,_0x4c6f99)=>{const _0x2c0b1a=_0x403f10['plugins']['get']('Users')['me'],_0x1cfbc1=_0x403f10['commands']['get']('imageStyle');let _0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x2b0da5=_0x1cfbc1['value'];if(_0x2b0da5==_0x4c6f99['value'])return;if(_0x4c6f99['value']&&_0x205daa['isInlineImage'](_0x4589c2)&&!_0x1cfbc1['isStyleEnabled'](_0x4c6f99['value']))return;const _0x16edba={'commandName':'imageStyle','commandParams':[_0x4c6f99],'formatGroupId':_0x1dfb7c()};_0x403f10['model']['change'](()=>{if(_0x422422['getSuggestions']()['filter'](_0x49e67f=>_0x49e67f['isInContent']&&_0x2c0b1a==_0x49e67f['author']&&('formatBlock'==_0x49e67f['type']||'formatInline'==_0x49e67f['type'])&&('imageStylePreApply'==_0x49e67f['subType']||'imageStylePostApply'==_0x49e67f['subType'])&&_0x49e67f['getFirstRange']()['isEqual'](_0x3ef0d2))['forEach'](_0x369eae=>_0x422422['discardSuggestion'](_0x369eae['head'])),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x1cfbc1['refresh'](),_0x403f10['commands']['get']('imageTypeInline')['refresh'](),_0x403f10['commands']['get']('imageTypeBlock')['refresh'](),_0x2b0da5=_0x1cfbc1['value'],_0x2b0da5!=_0x4c6f99['value'])return _0x205daa['isInlineImage'](_0x4589c2)&&_0x1cfbc1['shouldConvertImageType'](_0x4c6f99['value'],_0x4589c2)?(_0x5d74f0({..._0x4c6f99,'setImageSizes':!0x1}),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),void _0x422422['markBlockFormat'](_0x4589c2,{..._0x16edba,'commandReversedParams':[{'value':_0x2b0da5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x205daa['isBlockImage'](_0x4589c2)?_0x422422['markBlockFormat'](_0x4589c2,_0x16edba,[],'imageStylePostApply'):_0x422422['markInlineFormat'](_0x3ef0d2,_0x16edba,'imageStylePostApply'));});});for(const _0x42ff1b of _0x403f10['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d719[_0x42ff1b['name']]=_0x42ff1b['title']['toLowerCase']();_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x486918])=>{_0x205daa['setImageNaturalSizeAttributes'](_0x486918['getContainedElement']());}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f84d5,_0x5240fc)=>{_0x422422['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f84d5,{'commandName':_0x5240fc['commandName'],'commandParams':_0x5240fc['commandReversedParams']});}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58949f,_0x9d7f50){return _0x51fb05(_0x58949f,_0x9d7f50)?[_0x58949f,_0x9d7f50]:_0x51fb05(_0x9d7f50,_0x58949f)?[_0x9d7f50,_0x58949f]:null;});const _0x149bcc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51fb05(_0x49e43c,_0x2a3e79){const _0xf82195=_0x149bcc['findIndex'](({type:_0x2f8fc9,subType:_0x23e74f})=>_0x49e43c['type']==_0x2f8fc9&&_0x49e43c['subType']==_0x23e74f),_0x47de2e=_0x149bcc['findIndex'](({type:_0x22d178,subType:_0x527706})=>_0x2a3e79['type']==_0x22d178&&_0x2a3e79['subType']==_0x527706);if(_0xf82195<0x0||_0x47de2e<0x0)return!0x1;const _0x3f612c=_0x49e43c['getFirstRange'](),_0x53c6c9=_0x2a3e79['getFirstRange']();if((0x0==_0xf82195||0x1==_0xf82195)&&0x2==_0x47de2e&&_0x3f612c['isIntersecting'](_0x53c6c9))return!0x0;if(0x2==_0xf82195&&0x3==_0x47de2e){const _0x2e0d66=_0x422422['_findSuggestions'](_0x3f612c,'insertion')['filter'](({suggestion:_0x5d9fe3,meta:_0x44cf28})=>_0x44cf28['isOwn']&&'convertInlineImageToBlock'==_0x5d9fe3['subType']);if(_0x2e0d66['length']>0x1&&_0x53c6c9['end']['isEqual'](_0x3f612c['start']))return!0x0;if(0x1==_0x2e0d66['length']&&(_0x3f612c['start']['isEqual'](_0x53c6c9['end'])||_0x3f612c['end']['isEqual'](_0x53c6c9['start'])))return!0x0;}if(0x3==_0xf82195&&0x3==_0x47de2e&&_0x3f612c['start']['isBefore'](_0x53c6c9['start'])){const _0x595def=_0x3f612c['end']['nodeAfter'],_0x40b1ef=_0x53c6c9['start']['nodeBefore'];return _0x205daa['isBlockImage'](_0x595def)&&_0x595def===_0x40b1ef;}return!0x1;}_0x403f10['model']['document']['registerPostFixer'](()=>{let _0x3a49a1=!0x1;const _0x485a82=Array['from'](_0x403f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56ca9d,data:_0x2ad460}of _0x485a82){const {group:_0x2bbe28,type:_0x539acf,subType:_0x516b72,id:_0x13ca2b}=et(_0x56ca9d);if('suggestion'==_0x2bbe28&&_0x422422['hasSuggestion'](_0x13ca2b)){if('formatBlock'==_0x539acf&&('imageStylePreApply'==_0x516b72||'imageStylePostApply'==_0x516b72)){const _0x1d0786=_0x422422['getSuggestion'](_0x13ca2b);if(_0x2ad460['newRange']){const _0x56164b=_0x1d0786['getFirstRange']()['getContainedElement']();if(_0x205daa['isBlockImage'](_0x56164b))continue;_0x422422['discardSuggestion'](_0x1d0786),_0x3a49a1=!0x0;}}if('insertion'==_0x539acf&&'imageCaption'==_0x516b72&&!_0x2ad460['newRange']){const _0x507a81=_0x422422['getSuggestion'](_0x13ca2b);_0x507a81['next']&&_0x507a81['next']['isInContent']&&(_0x422422['discardSuggestion'](_0x507a81['next']),_0x3a49a1=!0x0);}}}return _0x3a49a1;}),this['_registerLegacyDescription'](_0x48d719);}_registerLegacyDescription(_0xf005ed){const _0x27a93f=this['editor'],_0x3e0377=_0x27a93f['locale'];_0x27a93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244e50=>{if('formatBlock'!=_0x244e50['type']&&'formatInline'!=_0x244e50['type'])return;const {data:_0x561170}=_0x244e50;if(!_0x561170||'imageStyle'!=_0x561170['commandName'])return;const _0x1ac19b=_0x561170['commandParams'][0x0]['value'];return _0x2756cb('side'===_0x1ac19b?Ot(_0x3e0377,'FORMAT_SIDE_IMAGE'):_0xf005ed[_0x1ac19b]||_0x1ac19b);function _0x2756cb(_0x1ba56a){return{'type':'format','content':Ot(_0x3e0377,'*Format:*\x20%0',_0x1ba56a)};}});}},Ee=class extends _0x548d2a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x153449){super(_0x153449),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3e5424=this['editor'],_0x3843bf=_0x3e5424['commands']['get']('importWord'),_0x5060f4=_0x3e5424['commands']['get']('trackChanges');_0x3843bf&&(_0x3843bf['on']('execute',(_0x6a912a,[,_0x45d65b])=>{this['_trackChangesValueDuringImport']=_0x5060f4['value'],_0x45d65b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3843bf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3843bf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5060f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e5424['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x31db78,_0x47fdb5){const {suggestions:_0x346660}=_0x47fdb5,_0x3e32c8=this['editor']['commands']['get']('trackChanges'),_0x30e675=_0x3e32c8['value'];this['_trackChangesValueDuringImport']!==_0x30e675&&(_0x3e32c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x346660&&_0x346660['forEach'](({id:_0x1d3bf6,type:_0xdccc7a,author:_0x44ffce,created_at:_0x5654e1})=>{const _0x55b1b4={'id':_0x1d3bf6,'type':_0xdccc7a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44ffce,'createdAt':_0x5654e1?new Date(_0x5654e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55b1b4);});}},Te=class extends _0x548d2a{afterInit(){const _0x5b0e84=this['editor'],_0x44dd58=_0x5b0e84['plugins']['get']('TrackChangesEditing');if(_0x5b0e84['plugins']['has']('IndentEditing')&&(_0x44dd58['enableCommand']('indent'),_0x44dd58['enableCommand']('outdent')),_0x5b0e84['plugins']['has']('IndentBlock')){for(const _0x327038 of['indentBlock','outdentBlock'])_0x44dd58['enableDefaultAttributesIntegration'](_0x327038);if(_0x5b0e84['plugins']['has']('ListEditing')){for(const _0x3513a3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x44dd58['enableDefaultAttributesIntegration'](_0x3513a3);}}const _0x708e73=_0x5b0e84['locale'];_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x708e73,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19c8d3=this['editor'],_0x2f8987=_0x19c8d3['locale'],_0x39309b=_0x19c8d3['plugins']['get']('TrackChangesEditing');_0x39309b['descriptionFactory']['registerDescriptionCallback'](_0x4ee217=>{if('formatBlock'!=_0x4ee217['type'])return;const {data:_0x14a493}=_0x4ee217;if(!_0x14a493)return;if('indentBlock'!=_0x14a493['commandName']&&'outdentBlock'!=_0x14a493['commandName'])return;const _0x27a4bc=_0x4ee217['getItems']()[0x0],_0x432ebd=_0x39309b['descriptionFactory']['getItemLabel'](_0x27a4bc);return'indentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Indent:*\x20%0',_0x432ebd)}:'outdentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Outdent:*\x20%0',_0x432ebd)}:void 0x0;});}},_e=class extends _0x548d2a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x548d2a{afterInit(){const _0x49ad6a=this['editor'];if(!_0x49ad6a['plugins']['has']('LinkEditing'))return;const _0x32a288=_0x49ad6a['plugins']['get']('TrackChangesEditing'),_0x590dad=_0x49ad6a['commands']['get']('link');_0x32a288['enableDefaultAttributesIntegration']('link'),_0x32a288['enableDefaultAttributesIntegration']('unlink');for(const _0x110981 of _0x590dad['manualDecorators'])_0x32a288['descriptionFactory']['registerAttributeLabel'](_0x110981['id'],'link\x20('+_0x110981['label']['toLowerCase']()+')');_0x32a288['descriptionFactory']['registerDescriptionCallback'](_0x2b31bb=>{if('attribute'!=_0x2b31bb['type'])return;const {data:_0x45e92b}=_0x2b31bb;if(!_0x45e92b||'linkHref'!=_0x45e92b['key'])return;const _0x56e084=_0x45e92b['newValue'],_0x580000=_0x49ad6a['locale'];return{'type':'format','content':null==_0x56e084?Ot(_0x580000,'*Remove\x20link*'):Ot(_0x580000,'*Set\x20link:*\x20%0','\x22'+_0x56e084+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x47d5c5=this['editor'],_0x1af4e1=_0x47d5c5['locale'];_0x47d5c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52202e=>{if('formatInline'!=_0x52202e['type'])return;const {data:_0x42035d}=_0x52202e;if(_0x42035d){if('link'==_0x42035d['commandName']){const _0x5661b8=_0x42035d['commandParams'][0x0];return{'type':'format','content':Ot(_0x1af4e1,'*Set\x20link:*\x20%0','\x22'+_0x5661b8+'\x22')};}return'unlink'==_0x42035d['commandName']?{'type':'format','content':Ot(_0x1af4e1,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x548d2a{afterInit(){const _0x41da23=this['editor'],_0x1cf0f8=_0x41da23['locale'];if(!_0x41da23['plugins']['has']('LegacyListEditing'))return;const _0x40b667=_0x41da23['plugins']['get']('TrackChangesEditing'),_0x52fbe6=_0x41da23['plugins']['has']('LegacyTodoListEditing');function _0x329006(_0x4020b0){return()=>{const _0x44fb61=_0x41da23['model']['document']['selection'],_0x16a51f=_0x41da23['commands']['get'](_0x4020b0);if(_0x16a51f['value'])return void _0x41da23['execute']('paragraph',{});const _0xab2105=_0x4020b0['slice'](0x0,-0x4),_0x3e6325=function(_0x5ba448,_0xddcaeb,_0x28508a){let _0x52614a=Array['from'](_0x5ba448)['filter'](_0x586e19=>function(_0x8129d4,_0x5ded9f){return _0x5ded9f['checkChild'](_0x8129d4['parent'],'listItem')&&!_0x5ded9f['isObject'](_0x8129d4);}(_0x586e19,_0x28508a));_0x52614a=_0x52614a['filter'](_0x2de6ba=>!_0x2de6ba['is']('element','listItem')||_0x2de6ba['getAttribute']('listType')!=_0xddcaeb);const _0x334539=new Set();for(const _0x44ca5d of _0x52614a)_0x44ca5d['is']('element','listItem')?_0x334539['add'](Ie(_0x44ca5d)):_0x334539['add'](_0x44ca5d);return Array['from'](_0x334539);}(_0x44fb61['getSelectedBlocks'](),_0xab2105,_0x41da23['model']['schema']);_0x41da23['model']['change'](()=>{for(const _0x40d64c of _0x3e6325)_0x40b667['markBlockFormat'](_0x40d64c,{'commandName':_0x4020b0,'commandParams':[{'forceValue':!_0x16a51f['value']}],'formatGroupId':'blockName'},Ae(_0x40d64c));});};}function _0x53c53e(_0x3ebe21){return()=>{const _0x3b69b4=function(_0x34f65c){let _0x2ec0d3=Array['from'](_0x34f65c);const _0x1d7a9f=_0x2ec0d3['findIndex'](_0x3a23b0=>'listItem'!=_0x3a23b0['name']);return _0x1d7a9f>-0x1&&(_0x2ec0d3=_0x2ec0d3['slice'](0x0,_0x1d7a9f)),_0x2ec0d3;}(_0x41da23['model']['document']['selection']['getSelectedBlocks']()),_0x5ebf6d=_0x41da23['model']['createRange'](_0x41da23['model']['createPositionAt'](_0x3b69b4[0x0],'before'),_0x41da23['model']['createPositionAt'](_0x3b69b4[_0x3b69b4['length']-0x1],'end'));_0x41da23['model']['change'](()=>{_0x40b667['markBlockFormat'](_0x5ebf6d,{'commandName':_0x3ebe21,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ab2d4){const _0x58c6c8=new Set();for(const _0x5385c8 of _0x4ab2d4){let _0x1ec2a3=_0x5385c8['nextSibling'];for(;_0x1ec2a3&&_0x1ec2a3['getAttribute']('listIndent')>_0x5385c8['getAttribute']('listIndent');)_0x58c6c8['add'](_0x1ec2a3),_0x1ec2a3=_0x1ec2a3['nextSibling'];}return Array['from'](_0x58c6c8);}(_0x3b69b4));});};}_0x40b667['enableCommand']('numberedList',_0x329006('numberedList')),_0x40b667['enableCommand']('bulletedList',_0x329006('bulletedList')),_0x52fbe6&&_0x40b667['enableCommand']('todoList',_0x329006('todoList')),_0x40b667['enableCommand']('indentList',_0x53c53e('indentList')),_0x40b667['enableCommand']('outdentList',_0x53c53e('outdentList')),_0x52fbe6&&_0x40b667['enableCommand']('checkTodoList',()=>{const _0x28a193=_0x41da23['commands']['get']('checkTodoList'),_0x2db001=Array['from'](_0x28a193['_selectedElements']);_0x2db001['filter'](_0x1e6852=>_0x1e6852['getAttribute']('todoListChecked')!=_0x28a193['value']),_0x41da23['model']['change'](()=>{for(const _0x3d3a84 of _0x2db001)_0x40b667['markBlockFormat'](_0x3d3a84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28a193['value']}]});});}),_0x40b667['descriptionFactory']['registerElementLabel']('listItem',_0xc36602=>Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM',_0xc36602)),_0x40b667['descriptionFactory']['registerDescriptionCallback'](_0x6bf2fa=>{if('formatBlock'!=_0x6bf2fa['type']&&'formatInline'!=_0x6bf2fa['type'])return;const {data:_0xb621d4}=_0x6bf2fa;if(_0xb621d4){if('numberedList'==_0xb621d4['commandName']||'bulletedList'==_0xb621d4['commandName']||'todoList'==_0xb621d4['commandName'])switch(_0xb621d4['commandName']['replace']('List','')){case'bulleted':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Indent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Outdent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb621d4['commandName'])return _0xb621d4['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1cf0f8,'*Check\x20item*')}:{'type':'format','content':Ot(_0x1cf0f8,'*Uncheck\x20item*')};}function _0x3369b3(_0x3e0ed1){return{'type':'format','content':Ot(_0x1cf0f8,'*Change\x20to:*\x20%0',_0x3e0ed1)};}});}};function Ie(_0x94e304){const _0x2f0993=_0x94e304['getAttribute']('listIndent');if(0x0==_0x2f0993)return _0x94e304;let _0x204f46=_0x94e304;for(;_0x94e304['previousSibling']&&_0x94e304['previousSibling']['is']('element','listItem');){const _0x1fe1b5=_0x94e304['previousSibling']['getAttribute']('listIndent');if(_0x1fe1b5==_0x2f0993)_0x204f46=_0x94e304['previousSibling'];else{if(_0x1fe1b5<_0x2f0993)break;}_0x94e304=_0x94e304['previousSibling'];}return _0x204f46;}function Ae(_0x44ba67){const _0x57df16=[];if(_0x44ba67['is']('element','listItem')&&_0x44ba67['getAttribute']('listIndent')>0x0){let _0x290c0c=_0x44ba67['nextSibling'];for(;_0x290c0c&&'listItem'==_0x290c0c['name']&&_0x290c0c['getAttribute']('listIndent')==_0x44ba67['getAttribute']('listIndent');)_0x57df16['push'](_0x290c0c),_0x290c0c=_0x290c0c['nextSibling'];}return _0x57df16;}var be=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36cc63=this['editor']['config']['get']('list.properties'),_0x4d69bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x36cc63['styles']&&_0x4d69bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36cc63['reversed']&&_0x4d69bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36cc63['startIndex']&&_0x4d69bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d69bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x17fb03,_0x38a89a={}){const _0x4ffe9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28fcd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4ffe9d['markMultiRangeBlockFormat'](_0x28fcd4,{'commandName':'listStyle','commandParams':[{'type':_0x38a89a['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x478103,_0xd5aa29={}){const _0xad990b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f75da=this['_getSuggestionBlocks'](_0x3b68cc=>_0x3b68cc['is']('element','listItem')&&'numbered'===_0x3b68cc['getAttribute']('listType'));if(_0x1f75da['length']<0x1)return;const _0x501c65=_0x1f75da['map'](_0x4d02f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d02f9,'before'),this['editor']['model']['createPositionAt'](_0x4d02f9,0x0)));this['editor']['model']['change'](()=>{_0xad990b['markMultiRangeBlockFormat'](_0x501c65,{'commandName':'listReversed','commandParams':[{'reversed':_0xd5aa29['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x48a2c9,_0x581565={}){const _0x4ce3ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa357=this['_getSuggestionBlocks'](_0x53c674=>_0x53c674['is']('element','listItem')&&'numbered'===_0x53c674['getAttribute']('listType'));if(_0x1aa357['length']<0x1)return;const _0x2e9151=_0x1aa357['map'](_0x529b37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x529b37,'before'),this['editor']['model']['createPositionAt'](_0x529b37,0x0)));this['editor']['model']['change'](()=>{_0x4ce3ea['markMultiRangeBlockFormat'](_0x2e9151,{'commandName':'listStart','commandParams':[{'startIndex':_0x581565['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55a45c){if('formatBlock'!=_0x55a45c['type']&&'formatInline'!=_0x55a45c['type'])return;const _0x2b7bd9=this['editor']['locale'],{data:_0x4e69f1}=_0x55a45c;if(!_0x4e69f1)return;let _0x4afab0,_0x4ec52f;switch(_0x4e69f1['commandName']){case'listStyle':_0x4afab0='*Change\x20to:*\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,Ot(_0x2b7bd9,this['_getTranslationKeyForListStyle'](_0x4e69f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4afab0=_0x4e69f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0)};break;case'listStart':_0x4afab0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,_0x4e69f1['commandParams'][0x0]['startIndex'])};}return _0x4ec52f;}_getSuggestionBlocksForListStyle(){const _0x587c8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d2046=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1d2046[0x0]?.['is']('element','listItem')&&_0x1d2046['unshift'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1d2046[_0x1d2046['length']-0x1]?.['is']('element','listItem')&&_0x1d2046['push'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1d2046=[...new Set(_0x1d2046)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1d2046=_0x1d2046['filter'](_0x3a68e9=>_0x3a68e9['is']('element','listItem'))),_0x1d2046;}_getSuggestionBlocks(_0x1b596b){const _0xf3ef50=this['editor']['plugins']['get']('LegacyListUtils');let _0x213038=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b596b)['map'](_0x56b519=>{const _0x494efe=this['editor']['model']['createPositionAt'](_0x56b519,0x0);return[..._0xf3ef50['getSiblingNodes'](_0x494efe,'backward'),..._0xf3ef50['getSiblingNodes'](_0x494efe,'forward')];})['flat']();return _0x213038=[...new Set(_0x213038)],_0x213038;}_getTranslationKeyForListStyle(_0x187db8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x187db8)||'default')['toUpperCase']()+'_LIST_'+_0x187db8['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x548d2a{afterInit(){const _0x16ce5c=this['editor'];if(!_0x16ce5c['plugins']['has']('MediaEmbedEditing'))return;const _0x362284=_0x16ce5c['plugins']['get']('TrackChangesEditing'),_0x3df05f=_0x16ce5c['locale'];_0x362284['enableCommand']('mediaEmbed'),_0x362284['descriptionFactory']['registerElementLabel']('media',_0x298c2c=>Ot(_0x3df05f,'ELEMENT_MEDIA',_0x298c2c)),_0x16ce5c['plugins']['has']('MediaEmbedResizeEditing')&&(_0x362284['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x362284['descriptionFactory']['registerDescriptionCallback'](_0x5bb233=>{if('attribute'!=_0x5bb233['type'])return;const {data:_0x5d8ddb}=_0x5bb233;if(!_0x5d8ddb||'resizedWidth'!=_0x5d8ddb['key'])return;const _0xc193e=_0x5bb233['getContainedElement']();if(!_0xc193e||!_0xc193e['is']('element','media'))return;const _0x2cd107=Ot(_0x3df05f,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3df05f,'*Set\x20format:*\x20%0',_0x2cd107)};}));}},ke=class extends _0x548d2a{afterInit(){const _0xfb57de=this['editor'];if(!_0xfb57de['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5d58c6=_0xfb57de['plugins']['get']('TrackChangesEditing'),_0x9aeb64=_0xfb57de['locale'],_0x5d4994=_0xfb57de['plugins']['get']('MediaEmbedStyleEditing'),_0x1d6599={};for(const _0x26288e of _0x5d4994['normalizedStyles'])_0x1d6599[_0x26288e['name']]=_0x26288e['title']['toLowerCase']();const _0x4a1842=_0x5d4994['normalizedStyles']['find'](_0xf8cae6=>_0xf8cae6['isDefault'])?.['name'];_0x5d58c6['enableCommand']('mediaStyle',(_0x5c3999,_0x2b2695)=>{const _0x59562d=_0xfb57de['plugins']['get']('Users')['me'],_0x3f2d82=_0xfb57de['commands']['get']('mediaStyle'),_0x533f37=function(_0x4abf79){const _0x2bb4dd=_0x4abf79['model']['document']['selection']['getSelectedElement']();return _0x2bb4dd&&_0x2bb4dd['is']('element','media')?_0x2bb4dd:null;}(_0xfb57de);if(!_0x533f37)return;const _0x46bc51=_0xfb57de['model']['createRangeOn'](_0x533f37);let _0x3244f6=_0x3f2d82['value'];if(_0x3244f6==_0x2b2695['value'])return;const _0x57a0ae={'commandName':'mediaStyle','commandParams':[_0x2b2695],'formatGroupId':_0x1dfb7c()};_0xfb57de['model']['change'](()=>{_0x5d58c6['getSuggestions']()['filter'](_0x3ce742=>_0x3ce742['isInContent']&&_0x59562d==_0x3ce742['author']&&'formatBlock'==_0x3ce742['type']&&'mediaStylePostApply'==_0x3ce742['subType']&&_0x3ce742['getFirstRange']()['isEqual'](_0x46bc51))['forEach'](_0x4d0591=>_0x5d58c6['discardSuggestion'](_0x4d0591['head'])),_0x3f2d82['refresh'](),_0x3244f6=_0x3f2d82['value'],_0x3244f6!=_0x2b2695['value']&&_0x5d58c6['markBlockFormat'](_0x533f37,{..._0x57a0ae,'commandReversedParams':[{'value':'string'==typeof _0x3244f6?_0x3244f6:null}]},[],'mediaStylePostApply');});}),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5796b3,_0x42fb16)=>{_0x5d58c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5796b3,{'commandName':_0x42fb16['commandName'],'commandParams':_0x42fb16['commandReversedParams']});}),_0x5d58c6['descriptionFactory']['registerDescriptionCallback'](_0x30be7d=>{if('formatBlock'!=_0x30be7d['type'])return;const {data:_0x527247}=_0x30be7d;if(!_0x527247||'mediaStyle'!=_0x527247['commandName'])return;const _0xc907c8=_0x527247['commandParams'][0x0]['value']||_0x4a1842;if(!_0xc907c8)return;const _0x13b988=_0x1d6599[_0xc907c8]||_0xc907c8;return{'type':'format','content':Ot(_0x9aeb64,'*Format:*\x20%0',_0x13b988)};});}},Re=class extends _0x548d2a{afterInit(){const _0x3f7f62=this['editor'];_0x3f7f62['plugins']['has']('MentionEditing')&&_0x3f7f62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x548d2a{afterInit(){const _0xa0d38d=this['editor'];if(!_0xa0d38d['plugins']['has']('MergeFieldsEditing'))return;const _0x35ce95=_0xa0d38d['plugins']['get']('TrackChangesEditing'),_0x4b0ccd=_0xa0d38d['locale'];_0x35ce95['enableCommand']('insertMergeField'),_0x35ce95['enableCommand']('insertMergeFieldBlock'),_0x35ce95['enableCommand']('insertMergeFieldImage'),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeField',_0xfd5c5e=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0xfd5c5e)),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4910c1=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0x4910c1)),_0x35ce95['descriptionFactory']['registerDescriptionCallback'](_0xa452d6=>{if('insertion'!=_0xa452d6['type']&&'deletion'!=_0xa452d6['type'])return;const _0x3b9015=_0xa452d6['getContainedElement']();if(null==_0x3b9015)return;const _0x5d5034=_0xa0d38d['plugins']['get']('MergeFieldsEditing');let _0x4717d4;switch(_0x5d5034['getMergeFieldType'](_0x3b9015)){case null:return;case'image':{const _0x20a209=_0x5d5034['unwrapAffixes'](_0x3b9015['getAttribute']('src'));_0x4717d4=_0x5d5034['getLabel'](_0x20a209)||_0x20a209;break;}default:{const _0x47bd4d=_0x3b9015['getAttribute']('id');_0x4717d4=_0x5d5034['getLabel'](_0x47bd4d)||_0x47bd4d;break;}}return'insertion'==_0xa452d6['type']?{'type':'insertion','content':Ot(_0x4b0ccd,'*Insert:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x4b0ccd,'*Remove:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x548d2a{afterInit(){const _0x360b48=this['editor'],_0x45b1db=_0x360b48['plugins']['get']('TrackChangesEditing');_0x360b48['plugins']['has']('MultiLevelList')&&(_0x45b1db['enableDefaultAttributesIntegration']('multiLevelList'),_0x45b1db['descriptionFactory']['registerDescriptionCallback'](_0x4baad7=>this['handleDescriptions'](_0x4baad7)));}handleDescriptions(_0x483e6f){const _0x30f067=this['editor']['locale'],{data:_0x59bd73}=_0x483e6f,_0x59440d={'type':'format','content':''};if(_0x59bd73&&'listMarkerStyle'==_0x59bd73['key']){if(!_0x59bd73['oldValue'])return{'type':'format','content':Ot(_0x30f067,'*Set\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['newValue']+')'};if(!_0x59bd73['newValue']){let _0x35a70a=_0x483e6f['head'];for(;_0x35a70a;){if(_0x35a70a['data']&&'listType'==_0x35a70a['data']['key']&&_0x35a70a['data']['newValue'])return _0x59440d;_0x35a70a=_0x35a70a['next'];}return{'type':'format','content':Ot(_0x30f067,'*Remove\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['oldValue']+')'};}}}},Se=class extends _0x548d2a{afterInit(){const _0x15f33c=this['editor'];if(!_0x15f33c['plugins']['has']('PageBreakEditing'))return;_0x15f33c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ece5c=_0x15f33c['plugins']['get']('TrackChangesEditing'),_0x3c2a95=_0x15f33c['locale'];_0x1ece5c['descriptionFactory']['registerElementLabel']('pageBreak',_0x641b94=>Ot(_0x3c2a95,'ELEMENT_PAGE_BREAK',_0x641b94));}},Me=class extends _0x548d2a{afterInit(){const _0x2ac46a=this['editor'];if(!_0x2ac46a['plugins']['has']('Paragraph'))return;const _0x3fc95e=_0x2ac46a['locale'],_0x4c9658=_0x2ac46a['plugins']['get']('TrackChangesEditing');_0x4c9658['descriptionFactory']['registerElementLabel']('paragraph',_0xc7ed4d=>Ot(_0x3fc95e,'ELEMENT_PARAGRAPH',_0xc7ed4d)),_0x4c9658['enableDefaultAttributesIntegration']('paragraph'),_0x4c9658['enableCommand']('insertParagraph');const _0x1ae580=_0x4c9658['descriptionFactory'];_0x1ae580['registerDescriptionCallback'](_0xd4387a=>{if('insertion'!==_0xd4387a['type'])return;const {start:_0x45de6b,end:_0x13dec6}=_0xd4387a['getFirstRange']();if(!_0x45de6b['isTouching'](_0x13dec6)||!_0x45de6b['nodeAfter'])return;const _0x4e6100=_0x2ac46a['model']['schema'],_0x33cda0=_0x45de6b['nodeAfter'];return _0x4e6100['isBlock'](_0x33cda0)&&!_0x4e6100['isLimit'](_0x33cda0)&&_0x4e6100['checkChild'](_0x33cda0,'$text')?{'type':'insertion','content':Ot(_0x3fc95e,'*Insert:*\x20%0',_0x1ae580['getItemLabel'](_0x33cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d138c=this['editor'],_0x143446=_0x1d138c['locale'];_0x1d138c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c5a=>{if('formatBlock'!=_0x279c5a['type'])return;const {data:_0x3f74db}=_0x279c5a;return _0x3f74db&&'paragraph'==_0x3f74db['commandName']?{'type':'format','content':Ot(_0x143446,'*Change\x20to:*\x20%0',Ot(_0x143446,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x548d2a{afterInit(){const _0x154446=this['editor'];_0x154446['commands']['get']('replaceSource')&&_0x154446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x548d2a{afterInit(){const _0x1da2d4=this['editor'];_0x1da2d4['plugins']['has']('RemoveFormatEditing')&&(_0x1da2d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4a756a=this['editor'];_0x4a756a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466f2d=>{if('formatBlock'!=_0x466f2d['type']&&'formatInline'!=_0x466f2d['type'])return;const {data:_0x3bb190}=_0x466f2d;return _0x3bb190&&'removeFormat'==_0x3bb190['commandName']?{'type':'format','content':Ot(_0x4a756a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x548d2a{afterInit(){const _0x17ccd4=this['editor'];if(!_0x17ccd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537477=_0x17ccd4['plugins']['get']('TrackChangesEditing');_0x537477['enableCommand']('goToPreviousRestrictedEditingException'),_0x537477['enableCommand']('goToNextRestrictedEditingException');const _0x5618b4=_0x17ccd4['plugins']['get']('RestrictedEditingModeEditing');_0x5618b4['enableCommand']('trackChanges'),_0x5618b4['enableCommand']('acceptSuggestion'),_0x5618b4['enableCommand']('discardSuggestion'),_0x5618b4['enableCommand']('acceptAllSuggestions'),_0x5618b4['enableCommand']('discardAllSuggestions'),_0x5618b4['enableCommand']('acceptSelectedSuggestions'),_0x5618b4['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x548d2a{afterInit(){const _0x4f85ab=this['editor'];if(!_0x4f85ab['plugins']['has']('ShiftEnter'))return;const _0x288cef=_0x4f85ab['plugins']['get']('TrackChangesEditing');_0x288cef['enableCommand']('shiftEnter'),_0x288cef['descriptionFactory']['registerElementLabel']('softBreak',_0x3c8907=>Ot(_0x4f85ab['locale'],'ELEMENT_LINE_BREAK',_0x3c8907));}};function ve(_0xc80e90,_0x592af9,_0x178058){const _0x2f6932=[];for(const _0x1c8e06 of _0x592af9['getItems']())_0x1c8e06['hasAttribute'](_0xc80e90)&&_0x2f6932['push'](_0x178058['createRangeOn'](_0x1c8e06));return _0x2f6932;}var De=class extends _0x548d2a{afterInit(){const _0x2d8ca9=this['editor'],_0x16e04e=_0x2d8ca9['plugins']['get']('TrackChangesEditing');_0x2d8ca9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16e04e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xfeba7c=this['editor'],_0x2dfbf1=_0xfeba7c['model'],_0x1b3701=_0xfeba7c['locale'],_0x4454a5=_0xfeba7c['plugins']['get']('TrackChangesEditing'),_0x48ede='restrictedEditingException',_0x3264cb=_0xfeba7c['commands']['get'](_0x48ede);_0x4454a5['enableCommand'](_0x48ede,(_0x1b32fe,_0x1bb43e={})=>{const _0x295527=_0x2dfbf1['document']['selection'];if(_0x295527['isCollapsed'])return void _0x1b32fe(_0x1bb43e);const _0x170f0a=void 0x0!==_0x1bb43e['forceValue']?_0x1bb43e['forceValue']:!_0x3264cb['value'];_0x2dfbf1['change'](()=>{const _0x927793=Array['from'](_0x295527['getRanges']());for(const _0x32e7d0 of _0x927793){const _0x37c02c=_0x170f0a?[_0x32e7d0]:ve(_0x48ede,_0x32e7d0,_0x2dfbf1);for(const _0x4ec198 of _0x37c02c)_0x4454a5['markInlineFormat'](_0x4ec198,{'commandName':_0x48ede,'commandParams':[{'forceValue':_0x170f0a}]});}});}),_0x4454a5['descriptionFactory']['registerDescriptionCallback'](_0x2a470a=>{if('formatBlock'!=_0x2a470a['type']&&'formatInline'!=_0x2a470a['type'])return;const {data:_0x155f5c}=_0x2a470a;return _0x155f5c&&_0x155f5c['commandName']==_0x48ede?_0x155f5c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x7ec3d4=this['editor'],_0x26933f=_0x7ec3d4['locale'],_0x269542=_0x7ec3d4['plugins']['get']('TrackChangesEditing'),_0x8a50bf='restrictedEditingExceptionBlock',_0x355abd=this['editor']['commands']['get'](_0x8a50bf);_0x269542['enableCommand'](_0x8a50bf,(_0x9a2f70,_0x510787={})=>{const _0x321ea5=this['editor']['model']['document']['selection'],_0x216845=_0x510787&&void 0x0!==_0x510787['forceValue']?_0x510787['forceValue']:!_0x355abd['value'];let _0x1f4c7e=[];_0x1f4c7e=Ct(_0x216845?Array['from'](_0x321ea5['getSelectedBlocks']())['filter'](_0x1b434c=>function(_0x18aac9){return!!_0x18aac9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1b434c)||function(_0x18b2b7,_0x106a70){const _0x43a1fd=_0x106a70['createContext'](_0x18b2b7['parent']);return!!_0x106a70['checkChild'](_0x43a1fd,'restrictedEditingException')&&!!_0x106a70['checkChild'](_0x43a1fd['push']('restrictedEditingException'),_0x18b2b7);}(_0x1b434c,this['editor']['model']['schema'])):Array['from'](_0x321ea5['getSelectedBlocks']())['map'](_0x389444=>function(_0x779d57){let _0x11ade6=_0x779d57;for(;_0x11ade6['parent'];){if('restrictedEditingException'==_0x11ade6['parent']['name'])return _0x11ade6;_0x11ade6=_0x11ade6['parent'];}return null;}(_0x389444))['filter'](_0x4e70df=>!!_0x4e70df),_0x7ec3d4['model']),_0x7ec3d4['model']['change'](()=>{for(const _0x7090d2 of _0x1f4c7e)_0x269542['markBlockFormat'](_0x7090d2,{'commandName':_0x8a50bf,'commandParams':[{'forceValue':_0x216845}]});});}),_0x269542['descriptionFactory']['registerDescriptionCallback'](_0xb5a26b=>{const {data:_0x345591}=_0xb5a26b;if(_0x345591&&_0x345591['commandName']==_0x8a50bf)return _0x345591['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x548d2a{afterInit(){const _0x45c3df=this['editor'];_0x45c3df['plugins']['has']('Style')&&_0x45c3df['plugins']['has']('DataSchema')&&(_0x45c3df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xb03693=this['editor'],_0x1704cb=_0xb03693['locale'];_0xb03693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530c3f=>{if('formatBlock'!=_0x530c3f['type']&&'formatInline'!=_0x530c3f['type'])return;const {data:_0xc84134}=_0x530c3f;return _0xc84134&&'style'===_0xc84134['commandName']?_0xc84134['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1704cb,'*Set\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1704cb,'*Remove\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x548d2a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x1cdaa7){super(_0x1cdaa7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x305711=this['editor'],_0x2d48ea=_0x305711['model']['document']['selection'];if(!_0x305711['plugins']['has']('TableEditing'))return;const _0xebf499=_0x305711['locale'],_0x1b0da5=_0x305711['plugins']['get']('TrackChangesEditing'),_0x36613c=_0x305711['plugins']['get']('TableUtils');_0x1b0da5['descriptionFactory']['registerElementLabel']('table',_0x4a6ffb=>Ot(_0xebf499,'ELEMENT_TABLE',_0x4a6ffb)),this['_setupColumnsRowsFixing'](),_0x1b0da5['enableCommand']('insertTable'),_0x1b0da5['enableCommand']('selectTableRow'),_0x1b0da5['enableCommand']('selectTableColumn');for(const _0x2921be of['insertTableRowAbove','insertTableRowBelow']){const _0x6ba397=_0x305711['commands']['get'](_0x2921be);_0x1b0da5['enableCommand'](_0x2921be,_0x5d8063=>{_0x305711['model']['change'](_0x4a9e71=>{_0x5d8063();const _0x415d42='above'===_0x6ba397['order'],_0x451463=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x1e3c45=_0x36613c['getRowIndexes'](_0x451463),_0x5c05ee=_0x415d42?_0x1e3c45['first']-0x1:_0x1e3c45['last']+0x1,_0x1ce037=_0x451463[0x0]['findAncestor']('table'),_0x5ace80=_0x36613c['createTableWalker'](_0x1ce037,{'startRow':_0x5c05ee,'endRow':_0x5c05ee}),_0xe26b0=Array['from'](_0x5ace80)['map'](_0x260c91=>_0x4a9e71['createRangeOn'](_0x260c91['cell']));_0x1b0da5['markMultiRangeInsertion'](_0xe26b0,'tableRow');});});}for(const _0x5b6009 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d8be6=_0x305711['commands']['get'](_0x5b6009);_0x1b0da5['enableCommand'](_0x5b6009,_0x392956=>{_0x305711['model']['change'](_0x56c77b=>{_0x392956();const _0x392a90='left'===_0x4d8be6['order'],_0x3b5c8c=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x30a8ec=_0x36613c['getColumnIndexes'](_0x3b5c8c),_0x518424=_0x392a90?_0x30a8ec['first']-0x1:_0x30a8ec['last']+0x1,_0x2893a9=_0x3b5c8c[0x0]['findAncestor']('table'),_0x5a229a=_0x36613c['createTableWalker'](_0x2893a9,{'startRow':0x0,'column':_0x518424,'includeAllSlots':!0x1}),_0x5701dc=Array['from'](_0x5a229a)['map'](_0x4fa713=>_0x56c77b['createRangeOn'](_0x4fa713['cell']));_0x1b0da5['markMultiRangeInsertion'](_0x5701dc,'tableColumn');});});}for(const _0x548f0a of['removeTableRow','removeTableColumn']){const _0x1b75db=_0x548f0a['substr'](0xb),_0x3e9344=_0x1b75db['toLowerCase'](),_0x43189b=_0x3e9344['substr'](0x0,0x3)+'span',_0x586e53='table'+_0x1b75db,_0x47b0fd='min'+_0x1b75db,_0x37ab7a='max'+_0x1b75db;_0x1b0da5['enableCommand'](_0x548f0a,()=>{_0x305711['model']['change'](_0x44f57c=>{const _0x359e04=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x5228d6=_0x359e04[0x0]['findAncestor']('table');let _0x38844c;if('removeTableRow'==_0x548f0a){const _0x550c09=_0x36613c['getRowIndexes'](_0x359e04);_0x38844c={'startRow':_0x550c09['first'],'endRow':_0x550c09['last'],'includeAllSlots':!0x0};}else{const _0x5f08a1=_0x36613c['getColumnIndexes'](_0x359e04);_0x38844c={'startColumn':_0x5f08a1['first'],'endColumn':_0x5f08a1['last'],'includeAllSlots':!0x0};}const _0x3a3c11=_0x36613c['createTableWalker'](_0x5228d6,_0x38844c),_0x521bbc=Array['from'](_0x3a3c11)['map'](({cell:_0x2546c3})=>_0x2546c3),_0x50d50c=xe(_0x521bbc['filter'](_0xd28383=>_0xd28383['hasAttribute'](_0x43189b))),_0x238f26=xe(_0x521bbc['filter'](_0x127788=>!_0x127788['hasAttribute'](_0x43189b)))['map'](_0x1cbfa7=>_0x44f57c['createRangeOn'](_0x1cbfa7)),_0x58c128=_0x1b0da5['markMultiRangeDeletion'](_0x238f26,_0x586e53);if(_0x58c128&&('tableRow'==_0x58c128['subType']||'tableColumn'==_0x58c128['subType'])){const _0x507f23=this['_getSuggestionCoords'](_0x58c128);for(const _0x4194de of _0x50d50c){const _0x21c3e6=_0x44f57c['createRangeOn'](_0x4194de),_0x4e7a2d=_0x36613c['getCellLocation'](_0x4194de),_0x2180cf=_0x4194de['getAttribute'](_0x43189b)-0x1,_0x911903=_0x507f23[_0x47b0fd],_0x3eed3d=_0x507f23[_0x37ab7a];_0x911903<=_0x4e7a2d[_0x3e9344]&&_0x4e7a2d[_0x3e9344]+_0x2180cf<=_0x3eed3d&&_0x58c128['addRange'](_0x21c3e6);}}});});}function _0x2ba6a5(_0x361029){const _0x2642a0=Array['from'](_0x2d48ea['getRanges']())['map'](_0x41b2cd=>ot['fromRange'](_0x41b2cd));_0x305711['model']['change'](_0x2f8c28=>{const _0x28ea36=_0x2f8c28['batch'];_0x361029=_0x361029['filter'](_0x58dd1a=>'$graveyard'!=_0x58dd1a['root']['rootName']),_0x2f8c28['setSelection'](_0x361029),_0x305711['commands']['get']('removeTableRow')['refresh'](),_0x305711['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x305711['model']['enqueueChange'](()=>{_0x305711['model']['enqueueChange'](_0x28ea36,_0x1a98c4=>{const _0x550d1c=_0x2642a0['filter'](_0x54b9c4=>'$graveyard'!=_0x54b9c4['root']['rootName']);_0x550d1c['length']>0x0&&_0x1a98c4['setSelection'](_0x550d1c);for(const _0xb7d896 of _0x2642a0)_0xb7d896['detach']();});});});}function _0x491476(_0x23ef79){_0x305711['model']['change'](_0xbcc16f=>{const _0x5a99ce=Array['from'](_0x2d48ea['getRanges']())['map'](_0xac7474=>ot['fromRange'](_0xac7474)),_0x464f08=[];for(const _0x3edfb6 of _0x23ef79)for(const _0x4e0fdb of _0x3edfb6['getItems']({'shallow':!0x0}))_0x464f08['push'](_0x4e0fdb);for(const _0x512211 of _0x464f08)'$graveyard'!=_0x512211['root']['rootName']&&(_0xbcc16f['setSelection'](_0xbcc16f['createPositionAt'](_0x512211,0x0)),_0x305711['commands']['get']('removeTableColumn')['refresh'](),_0x305711['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6d4a8c=_0x5a99ce['filter'](_0x494338=>'$graveyard'!=_0x494338['root']['rootName']);_0x6d4a8c['length']>0x0&&_0xbcc16f['setSelection'](_0x6d4a8c);for(const _0x37116e of _0x5a99ce)_0x37116e['detach']();});}function _0x931fb8(_0x15d71d,_0x4e2043){return _0x4e2043['every'](_0x3669a1=>_0x15d71d['some'](_0x4412ba=>_0x4412ba['end']['isEqual'](_0x3669a1['start'])||_0x3669a1['end']['isEqual'](_0x4412ba['start'])));}function _0x50b9d2(_0x442c8e,_0x132a72){return!_0x442c8e['some'](_0x3aaf72=>_0x132a72['some'](_0x5a9bc9=>_0x3aaf72['isIntersecting'](_0x5a9bc9)))&&_0x442c8e['some'](_0xdb059d=>_0x132a72['some'](_0x5cb87a=>_0xdb059d['end']['isTouching'](_0x5cb87a['start'])));}_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x8a5cab=>{if('insertion'!=_0x8a5cab['type']&&'deletion'!=_0x8a5cab['type'])return;const _0xa9155f=_0x8a5cab['getContainedElement']();if(null!=_0xa9155f&&_0xa9155f['is']('element','table')){if('insertion'==_0x8a5cab['type']){const _0x16e5a2=_0x8a5cab['getItems']()['filter'](_0x1a61c2=>_0x1a61c2['is']('$textProxy'))['map'](_0x37cd90=>_0x37cd90['data']);if(_0x16e5a2['length'])return{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16e5a2['join']('\x20')+'\x22'))};}if('deletion'==_0x8a5cab['type']){const _0x21efbc=_0x8a5cab['getItems']()['filter'](_0x3fa686=>_0x3fa686['is']('$textProxy'))['map'](_0x4bd519=>_0x4bd519['data']);if(_0x21efbc['length'])return{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21efbc['join']('\x20')+'\x22'))};}}}),_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x5651f1=>{if('tableRow'==_0x5651f1['subType']){const _0x32a480=_0x5651f1['getItems']()['filter'](_0x912468=>_0x912468['is']('$textProxy'))['map'](_0x20ef2c=>_0x20ef2c['data']),_0x14f3aa=this['_getSuggestionCoords'](_0x5651f1),_0x24b960=_0x14f3aa['maxRow']-_0x14f3aa['minRow']+0x1;if('insertion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};if('deletion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};}if('tableColumn'==_0x5651f1['subType']){const _0x5cfaf3=_0x5651f1['getItems']()['filter'](_0x87d140=>_0x87d140['is']('$textProxy'))['map'](_0x5e0437=>_0x5e0437['data']),_0x4d5083=this['_getSuggestionCoords'](_0x5651f1),_0x1a8d6e=_0x4d5083['maxColumn']-_0x4d5083['minColumn']+0x1;if('insertion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};if('deletion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};}}),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50b9d2),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50b9d2);}_acceptFormatSuggestionCallbackFactory(){const _0x4ab10e=this['editor'],_0x1bb209=_0x4ab10e['model']['document']['selection'];return(_0x6dc437,_0x3c1f32)=>{_0x4ab10e['model']['change'](_0x4faeb1=>{const {commandName:_0x1780e8,commandParams:_0x32929d}=_0x3c1f32;let _0x40adb3=_0x6dc437[0x0]['end']['nodeBefore'];_0x32929d&&_0x32929d[0x0]&&!0x1===_0x32929d[0x0]['forceValue']&&(_0x40adb3=_0x6dc437[0x0]['start']['nodeAfter']);const _0x54d7c9=_0x4faeb1['createRangeIn'](_0x40adb3);if('$graveyard'==_0x54d7c9['root']['rootName'])return;const _0x897f1a=Array['from'](_0x1bb209['getRanges']())['map'](_0x411db7=>ot['fromRange'](_0x411db7));_0x4faeb1['setSelection'](_0x54d7c9),_0x4ab10e['commands']['get'](_0x1780e8)['refresh'](),_0x32929d['push']({'forceDefaultExecution':!0x0}),_0x4ab10e['execute'](_0x1780e8,..._0x32929d);const _0x21840c=_0x897f1a['filter'](_0x5a704f=>'$graveyard'!=_0x5a704f['root']['rootName']);_0x21840c['length']>0x0&&_0x4faeb1['setSelection'](_0x21840c);for(const _0x1716b0 of _0x897f1a)_0x1716b0['detach']();});};}_getCoordsForCells(_0x1b1e61){const _0xd6be9a=this['editor']['plugins']['get']('TableUtils');let _0x21f365=Number['MAX_SAFE_INTEGER'],_0x5ed6b7=Number['MIN_SAFE_INTEGER'],_0x57c00f=Number['MAX_SAFE_INTEGER'],_0x4730a6=Number['MIN_SAFE_INTEGER'];for(const _0x20adee of _0x1b1e61){if('$graveyard'==_0x20adee['root']['rootName'])continue;const {row:_0x26cdc5,column:_0x4e41a9}=_0xd6be9a['getCellLocation'](_0x20adee),_0x2cea03=_0x20adee['hasAttribute']('rowspan')?_0x20adee['getAttribute']('rowspan')-0x1:0x0,_0x3f60b2=_0x20adee['hasAttribute']('colspan')?_0x20adee['getAttribute']('colspan')-0x1:0x0;_0x21f365=_0x26cdc5<_0x21f365?_0x26cdc5:_0x21f365,_0x5ed6b7=_0x26cdc5+_0x2cea03>_0x5ed6b7?_0x26cdc5+_0x2cea03:_0x5ed6b7,_0x57c00f=_0x4e41a9<_0x57c00f?_0x4e41a9:_0x57c00f,_0x4730a6=_0x4e41a9+_0x3f60b2>_0x4730a6?_0x4e41a9+_0x3f60b2:_0x4730a6;}return{'minRow':_0x21f365,'maxRow':_0x5ed6b7,'minColumn':_0x57c00f,'maxColumn':_0x4730a6};}_setupColumnsRowsFixing(){const _0x507291=this['editor'],_0x5056ce=_0x507291['plugins']['get']('TrackChangesEditing'),_0x44b7aa=_0x507291['plugins']['get']('TableUtils');_0x507291['model']['document']['on']('change:data',()=>{const _0x18752e=Array['from'](_0x507291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269a69,data:_0x28d1c6}of _0x18752e){const {group:_0x52c316,id:_0x542052,subType:_0x121a67}=et(_0x269a69);if('suggestion'!=_0x52c316)continue;if(null!=_0x28d1c6['oldRange'])continue;const _0x224fdc=_0x5056ce['getSuggestion'](_0x542052);this['_tablePostFixingSubtypes']['includes'](_0x121a67)&&this['_tableSuggestions']['add'](_0x224fdc);}},{'priority':'low'});const _0x4b4f75=(_0x593773,_0x2b8341)=>{let _0x2799ff=!0x1;const _0x1b4db2=_0x2b8341['createRangeOn'](_0x593773),_0x9b2d17=_0x593773['findAncestor']('table'),_0x4f95a0=_0x44b7aa['getCellLocation'](_0x593773);for(const _0x530805 of this['_tableSuggestions']){const _0x35efde=_0x530805['subType'],_0x22d989=_0x35efde['startsWith']('tablePaste'),_0x4b3574=_0x35efde['substr'](_0x22d989?0xa:0x5),_0x23897f=_0x4b3574['toLowerCase'](),_0x1f1402=_0x23897f['substr'](0x0,0x3)+'span',_0x2930d6='min'+_0x4b3574,_0x405740='max'+_0x4b3574;if(!_0x530805['isInContent'])continue;if(_0x9b2d17!=_0x530805['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x530805['isIntersectingWithRange'](_0x1b4db2))continue;const _0x26dc8d=_0x593773['hasAttribute'](_0x1f1402)?_0x593773['getAttribute'](_0x1f1402)-0x1:0x0,_0x5e4c3f=this['_getSuggestionCoords'](_0x530805),_0x57d941=_0x5e4c3f[_0x2930d6],_0x7fcbb6=_0x5e4c3f[_0x405740];_0x57d941<=_0x4f95a0[_0x23897f]&&_0x4f95a0[_0x23897f]+_0x26dc8d<=_0x7fcbb6&&(_0x530805['addRange'](_0x1b4db2),_0x2799ff=!0x0);}return _0x2799ff;};_0x507291['model']['document']['registerPostFixer'](_0x52bcbd=>{let _0x168e42=!0x1;for(const _0x9a729e of _0x507291['model']['document']['differ']['getChanges']())if('insert'==_0x9a729e['type']){if('tableRow'==_0x9a729e['name']){for(const _0x51258b of _0x9a729e['position']['nodeAfter']['getChildren']())_0x168e42=_0x168e42||_0x4b4f75(_0x51258b,_0x52bcbd);}else'tableCell'==_0x9a729e['name']&&(_0x168e42=_0x168e42||_0x4b4f75(_0x9a729e['position']['nodeAfter'],_0x52bcbd));}return _0x168e42;});}_getSuggestionCoords(_0x307135){return this['_getCoordsForCells'](_0x307135['getRanges']()['map'](_0x23073f=>_0x23073f['start']['nodeAfter']));}};function xe(_0x38bd3d){return Array['from'](new Set(_0x38bd3d)['values']());}var Ge=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x4435be=this['editor'],_0x4a9211=_0x4435be['model']['document']['selection'],_0x22410a=_0x4435be['locale'];if(!_0x4435be['plugins']['has']('TableEditing'))return;const _0x336082=_0x4435be['plugins']['get']('TrackChangesEditing'),_0x8d8d5f=_0x4435be['plugins']['get']('TableUtils'),_0x5ee08f=_0x4435be['plugins']['get'](Pe);_0x5ee08f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336082['enableCommand']('mergeTableCells',()=>{const _0x1b73bf=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']);_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x1b73bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4435be['commands']['get']('mergeTableCells')['on']('execute',(_0x59ec58,_0x20a849)=>{_0x4435be['commands']['get']('trackChanges')['value']&&(_0x20a849['length']>0x0&&_0x20a849[_0x20a849['length']-0x1]&&_0x20a849[_0x20a849['length']-0x1]['forceDefaultExecution']||_0x336082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59ec58['stop']());},{'priority':'highest'});for(const _0x10fdf6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e6c0f=_0x4435be['commands']['get'](_0x10fdf6);_0x336082['enableCommand'](_0x10fdf6,()=>{const _0x26c740=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x591daf=>_0x591daf['is']('element','tableCell')),_0x5916b1=_0x1e6c0f['value'];_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat']([_0x26c740,_0x5916b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29eb8b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52bcc1=_0x4435be['commands']['get'](_0x29eb8b);_0x336082['enableCommand'](_0x29eb8b,()=>{const _0x5a5813=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']),_0x515a25=_0x5a5813[0x0]['findAncestor']('table'),_0x1d449c=new Set();for(const _0x4861e7 of _0x5a5813){const {column:_0x477cbd,row:_0x4c7f1d}=_0x8d8d5f['getCellLocation'](_0x4861e7),_0x5802e4='horizontally'==_0x52bcc1['direction']?_0x8d8d5f['createTableWalker'](_0x515a25,{'startRow':_0x4c7f1d,'endRow':_0x4c7f1d,'includeAllSlots':!0x0}):_0x8d8d5f['createTableWalker'](_0x515a25,{'column':_0x477cbd,'includeAllSlots':!0x0});for(const {cell:_0x43e720}of _0x5802e4)_0x1d449c['add'](_0x43e720);}_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x5a5813,{'commandName':_0x29eb8b,'commandParams':[]},Array['from'](_0x1d449c),_0x29eb8b);});});}_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x37cb8e=>{if('formatBlock'!=_0x37cb8e['type']&&'formatInline'!=_0x37cb8e['type'])return;const {data:_0x41239b}=_0x37cb8e;return _0x41239b&&'mergeTableCells'==_0x41239b['commandName']?{'type':'format','content':Ot(_0x22410a,'*Merge\x20cells*')}:void 0x0;}),_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x5e3dec=>{if('formatBlock'!=_0x5e3dec['type']&&'formatInline'!=_0x5e3dec['type'])return;const {data:_0x446892}=_0x5e3dec;return _0x446892?'splitTableCellVertically'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15c264=_0x5ee08f['_acceptFormatSuggestionCallbackFactory']();for(const _0x45a572 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a572,'accept',_0x15c264);for(const _0x4e5e3d of['splitTableCellVertically','splitTableCellHorizontally'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5e3d,'accept',_0x2ccac8=>{_0x4435be['model']['change'](_0x215f86=>{const _0x1322cb=Array['from'](_0x2ccac8)['filter'](_0x17944b=>'$graveyard'!=_0x17944b['root']['rootName']&&!!_0x17944b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1322cb['length'])return;const _0x454615=Array['from'](_0x4a9211['getRanges']())['map'](_0x55235b=>ot['fromRange'](_0x55235b));_0x215f86['setSelection'](_0x1322cb),_0x4435be['commands']['get'](_0x4e5e3d)['refresh'](),_0x4435be['execute'](_0x4e5e3d,{'forceDefaultExecution':!0x0});const _0x5cc1cd=_0x454615['filter'](_0x3e891b=>'$graveyard'!=_0x3e891b['root']['rootName']);_0x5cc1cd['length']>0x0&&_0x215f86['setSelection'](_0x5cc1cd);for(const _0x576c6e of _0x454615)_0x576c6e['detach']();});});_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5175c2=>{_0x4435be['model']['change'](_0x2e9d4b=>{const _0x40d6ae=Array['from'](_0x4a9211['getRanges']())['map'](_0x9dbcba=>ot['fromRange'](_0x9dbcba));_0x2e9d4b['setSelection'](_0x5175c2),_0x4435be['commands']['get']('mergeTableCells')['refresh'](),_0x4435be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bed67=_0x40d6ae['filter'](_0x14fb86=>'$graveyard'!=_0x14fb86['root']['rootName']);_0x2bed67['length']>0x0&&_0x2e9d4b['setSelection'](_0x2bed67);for(const _0x1a5551 of _0x40d6ae)_0x1a5551['detach']();});});for(const _0x14851a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2396a0=_0x4435be['commands']['get'](_0x14851a);_0x2396a0['on']('set:isEnabled',(_0x30b71e,_0x47cc5e,_0xcb08e3)=>{if(_0xcb08e3){const _0x38a62e=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10ab58=>_0x10ab58['is']('element','tableCell'));this['_areMergableCells'](_0x2396a0['value'],_0x38a62e)||(_0x30b71e['return']=!0x1,_0x30b71e['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x49ed20=this['editor']['commands']['get']('mergeTableCells'),_0x4e0197=this['editor']['plugins']['get']('TableUtils');if(!_0x49ed20['isEnabled'])return!0x1;const _0x13e0e8=_0x4e0197['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f2c1e of _0x13e0e8)for(const _0x2e8540 of _0x13e0e8)if(_0x2f2c1e!=_0x2e8540&&!this['_areMergableCells'](_0x2f2c1e,_0x2e8540))return!0x1;return!0x0;}['_areMergableCells'](_0x21508a,_0x1299cd){const _0x55ada4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0467=this['editor']['model']['createRangeOn'](_0x21508a),_0x20a95f=this['editor']['model']['createRangeOn'](_0x1299cd),_0x11bbc4=new Set(),_0x35ca89=new Set();for(const _0x234017 of _0x55ada4['getSuggestions']())if(('insertion'==_0x234017['type']||'deletion'==_0x234017['type']||'mergeTableCells'==_0x234017['subType'])&&_0x234017['isInContent']){for(const _0x256a14 of _0x234017['getRanges']())_0x256a14['containsRange'](_0x5e0467,!0x0)&&_0x11bbc4['add'](_0x234017['type']+':'+_0x234017['author']['id']),_0x256a14['containsRange'](_0x20a95f,!0x0)&&_0x35ca89['add'](_0x234017['type']+':'+_0x234017['author']['id']);}if(_0x11bbc4['size']!=_0x35ca89['size'])return!0x1;for(const _0x1bf457 of _0x11bbc4)if(!_0x35ca89['has'](_0x1bf457))return!0x1;return!0x0;}},He=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x18ee65=this['editor'];if(!_0x18ee65['plugins']['has']('TableEditing'))return;const _0x40b010=_0x18ee65['locale'],_0x4e6337=_0x18ee65['plugins']['get']('TrackChangesEditing');_0x4e6337['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e6337['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x40b010,'FORMAT_HEADER_ROW')),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x40b010,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1dceff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1864a0=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1864a0),_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1864a0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x2c2d02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413ca4=this['editor']['plugins']['get']('TableUtils');function _0x21e9a6({showActiveMarker:_0x367508=!0x0,setDataAttribute:_0x118392=!0x0}={}){return(_0x1657d8,_0x416118,_0x34ff66)=>{const {type:_0x5293ee,id:_0x2283b3}=et(_0x416118['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x2283b3))return;const _0x33dd28=_0x2c2d02['getSuggestion'](_0x2283b3),_0x44811a=_0x33dd28['data'];if('formatBlock'!=_0x33dd28['type']||!_0x44811a||'setTableColumnHeader'!=_0x44811a['commandName'])return;if(_0x416118['item'])return void _0x1657d8['stop']();if(!_0x34ff66['consumable']['consume'](_0x416118['markerRange'],_0x1657d8['name']))return;const _0x2fe846=_0x416118['markerRange']['start']['nodeAfter'],_0x462679=_0x416118['markerRange']['end']['nodeBefore'],_0x15f397=_0x2fe846['parent']['parent'],{column:_0x373067}=_0x413ca4['getCellLocation'](_0x2fe846),{column:_0x2aff68}=_0x413ca4['getCellLocation'](_0x462679);for(let _0x31d69d=_0x373067;_0x31d69d<=_0x2aff68;_0x31d69d++){const _0x133ea5=_0x413ca4['createTableWalker'](_0x15f397,{'column':_0x31d69d,'includeAllSlots':!0x1});for(const _0x4fff02 of _0x133ea5){const _0x3ecaa6=_0x4fff02['cell'],_0x1e0a02=_0x34ff66['mapper']['toViewElement'](_0x3ecaa6);_0x34ff66['writer']['addClass']('ck-suggestion-marker-'+_0x5293ee,_0x1e0a02),_0x118392&&_0x34ff66['writer']['setAttribute']('data-suggestion',_0x2283b3,_0x1e0a02),_0x34ff66['mapper']['bindElementToMarker'](_0x1e0a02,_0x416118['markerName']),_0x367508&&(_0x2c2d02['activeMarkers']['includes'](_0x416118['markerName'])?_0x34ff66['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a02):_0x34ff66['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0a02));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21e9a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38b54e,_0x4c805f,_0x3dbea0)=>{_0x3dbea0['options']['showSuggestionHighlights']&&_0x21e9a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b54e,_0x4c805f,_0x3dbea0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51b785,_0x2c7a20,_0x52f194)=>{const {type:_0x4ba003,id:_0x15aeb8}=et(_0x2c7a20['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x15aeb8))return;const _0x2dc66c=_0x2c2d02['getSuggestion'](_0x15aeb8),_0x314e01=_0x2dc66c['data'];if('formatBlock'!=_0x2dc66c['type']||!_0x314e01||'setTableColumnHeader'!=_0x314e01['commandName'])return;const _0x4a25ca=_0x52f194['mapper']['markerNameToElements'](_0x2c7a20['markerName']);if(_0x4a25ca){for(const _0x216821 of _0x4a25ca)_0x52f194['writer']['removeClass']('ck-suggestion-marker-'+_0x4ba003,_0x216821),_0x52f194['writer']['removeClass']('ck-suggestion-marker--active',_0x216821),_0x52f194['writer']['removeAttribute']('data-suggestion',_0x216821),_0x52f194['mapper']['unbindElementFromMarkerName'](_0x216821,_0x2c7a20['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x140aec=this['editor'],_0x32f310=_0x140aec['locale'];function _0x58514e(_0x32b38a){return{'type':'format','content':Ot(_0x32f310,'*Format:*\x20%0',_0x32b38a)};}_0x140aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baac6=>{if('formatBlock'!=_0x1baac6['type'])return;const {data:_0x19d4a9}=_0x1baac6;return _0x19d4a9?'setTableRowHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_ROW')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_COLUMN')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5d7da3=this['editor'];if(!_0x5d7da3['plugins']['has']('TableEditing')||!_0x5d7da3['config']['get']('table.enableFooters'))return;const _0xe169e4=_0x5d7da3['locale'],_0xdc958c=_0x5d7da3['plugins']['get']('TrackChangesEditing');_0xdc958c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xdc958c['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0xe169e4,'FORMAT_FOOTER_ROW'));}},We=class extends _0x548d2a{afterInit(){const _0x346031=this['editor'],_0x5957db=_0x346031['locale'],_0x3d2f5c=_0x346031['plugins']['get']('TrackChangesEditing');function _0x148129(_0x3e25db){return{'type':'format','content':''+Ot(_0x5957db,'*Set\x20table\x20type:*\x20%0',_0x3e25db)};}_0x346031['plugins']['has']('TableLayout')&&(_0x3d2f5c['enableCommand']('insertTableLayout'),_0x3d2f5c['enableDefaultAttributesIntegration']('tableType'),_0x3d2f5c['descriptionFactory']['registerElementLabel'](_0x29d44d=>_0x29d44d['is']('element','table')&&'layout'===_0x29d44d['getAttribute']('tableType'),_0x35977c=>Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE',_0x35977c)),_0x3d2f5c['descriptionFactory']['registerDescriptionCallback'](_0x3362b3=>{const {data:_0x21673a}=_0x3362b3;if(_0x21673a&&'tableType'==_0x21673a['key'])switch(_0x21673a['newValue']){case'layout':return _0x148129(Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x148129(Ot(_0x5957db,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Ve['map'](_0x15c8af=>[_0x15c8af,null]));var ze=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x22b1dc=this['editor'];if(!_0x22b1dc['plugins']['has']('TableClipboard'))return;const _0x13fcf9=_0x22b1dc['plugins']['get']('TrackChangesEditing'),_0x2ae819=_0x22b1dc['plugins']['get']('TableUtils'),_0x2b0896=_0x22b1dc['plugins']['get'](Pe),_0x171968=_0x22b1dc['plugins']['get']('TableClipboard'),_0x506c49=_0x22b1dc['plugins']['get']('TableSelection'),_0x18fe72=_0x22b1dc['plugins']['get'](ft);_0x2b0896['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22b1dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22b1dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bc126=null,_0x99d6dc=!0x1;_0x18fe72['on']('contentInsertion',(_0x49688f,_0x41b9f8)=>{_0x99d6dc='paste'===_0x41b9f8['method'];}),_0x22b1dc['model']['on']('insertContent',(_0x2a08e0,_0x499fc1)=>{if(!_0x99d6dc&&null===_0x506c49['getSelectedTableCells']())return;const [_0x2c9796,_0x3bb219]=_0x499fc1,_0x23caea=_0x499fc1[_0x499fc1['length']-0x1];_0x23caea&&_0x23caea['forceDefaultExecution']||_0x13fcf9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x897fc5,_0xd10cd1,_0x1726fc,_0x125b46,_0x124b3a){if(_0xd10cd1&&!_0xd10cd1['is']('documentSelection'))return!0x1;const _0x1ee1c0=_0x124b3a['getTableIfOnlyTableInContent'](_0x897fc5,_0x1726fc);if(!_0x1ee1c0||!Xe(_0x1ee1c0,void 0x0,_0x125b46))return!0x1;const _0x282997=_0x125b46['getSelectionAffectedTableCells'](_0x1726fc['document']['selection']);if(!_0x282997['length'])return!0x1;const _0x4a6587=_0x282997[0x0]['findAncestor']('table'),_0x2b55a9=_0x125b46['getRowIndexes'](_0x282997),_0x5dc821=_0x125b46['getColumnIndexes'](_0x282997),_0x5b88ba={'startRow':_0x2b55a9['first'],'endRow':_0x2b55a9['last'],'startColumn':_0x5dc821['first'],'endColumn':_0x5dc821['last']};return 0x1==_0x282997['length']&&(_0x5b88ba['endRow']+=_0x125b46['getRows'](_0x1ee1c0)-0x1,_0x5b88ba['endColumn']+=_0x125b46['getColumns'](_0x1ee1c0)-0x1),Xe(_0x4a6587,_0x5b88ba,_0x125b46);}(_0x2c9796,_0x3bb219,_0x22b1dc['model'],_0x2ae819,_0x171968)&&(_0x2a08e0['stop'](),_0x5bc126={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22b1dc['model']['change'](()=>{_0x22b1dc['model']['insertContent'](_0x499fc1[0x0],_0x499fc1[0x1],_0x499fc1[0x2],{'forceDefaultExecution':!0x0});const _0x32ae92=_0x1dfb7c(),{rowInsertionRanges:_0x49002b,columnInsertionRanges:_0x5d041f,insertionRanges:_0x15ba21,deletionRanges:_0x38510d,cells:_0x3d76b1}=_0x5bc126;_0x49002b['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x49002b,'tablePasteRow',{'tablePasteChainId':_0x32ae92}),_0x5d041f['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x5d041f,'tablePasteColumn',{'tablePasteChainId':_0x32ae92}),_0x15ba21['length']&&(_0x13fcf9['markMultiRangeInsertion'](_0x15ba21,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x15ba21['forEach'](_0x597235=>_0x597235['detach']?.())),_0x38510d['length']&&(_0x13fcf9['markMultiRangeDeletion'](_0x38510d,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x38510d['forEach'](_0x54bf1c=>_0x54bf1c['detach']?.()));const _0x28741f=_0x13fcf9['markMultiRangeBlockFormat'](_0x3d76b1['map'](({element:_0x124372})=>_0x124372),{'formatGroupId':_0x1dfb7c()},[],'tablePasteCell',{'tablePasteChainId':_0x32ae92});if(_0x28741f){const _0x5e027f=_0x28741f['getMarkers'](),_0x52a291=[];for(const {element:_0x1baf8e,attributes:_0x1bed91}of _0x3d76b1){if(!_0x1bed91)continue;const _0x2bb575=_0x22b1dc['model']['createRangeOn'](_0x1baf8e),_0x3deaae=_0x5e027f['find'](_0xec8726=>_0xec8726['getRange']()['isEqual'](_0x2bb575));_0x3deaae&&_0x52a291['push']([_0x3deaae['name'],_0x1bed91]);}_0x52a291['length']&&_0x28741f['setAttribute']('markerAttributes',Object['fromEntries'](_0x52a291));}_0x5bc126=null;}));},{'priority':_0x5e908b['high']+0xa}),_0x18fe72['on']('contentInsertion',()=>{_0x99d6dc=!0x1;},{'priority':'lowest'}),_0x22b1dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44477e,_0x5e2f12)=>{const [_0x36ca60,_0x3a847c,,_0x7f29aa]=_0x5e2f12;if(!_0x5bc126)return;_0x44477e['stop']();const _0x45b935=_0x36ca60['cell'],_0x5e4c3a=_0x3a847c,_0x1fb8f1=Ke(_0x45b935),_0x47178d=Ke(_0x5e4c3a);_0x44477e['return']=_0x45b935;let _0x5aa8de=null,_0xf94e37=null;if(_0x47178d||_0x1fb8f1){if(_0x1fb8f1&&!_0x47178d){_0x7f29aa['remove'](_0x45b935['getChild'](0x0));for(const _0x4566fb of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x4566fb,_0x45b935,'end');const _0x1d8f83=_0x5bc126['rowInsertionIndexes']['includes'](_0x36ca60['row']),_0x3e6d8d=_0x5bc126['columnInsertionIndexes']['includes'](_0x36ca60['column']);_0x1d8f83||_0x3e6d8d||(_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeIn'](_0x45b935)));}else _0x47178d&&!_0x1fb8f1&&(_0xf94e37=_0x7f29aa['createRangeIn'](_0x45b935));}else{const _0x36f78e=_0x7f29aa['createElement']('tableCellSuggestion'),_0x3903fe=_0x7f29aa['createElement']('tableCellSuggestion');_0x7f29aa['wrap'](_0x7f29aa['createRangeIn'](_0x45b935),_0x3903fe),_0x7f29aa['insert'](_0x36f78e,_0x45b935,0x0);for(const _0x1e0a88 of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x1e0a88,_0x36f78e,'end');_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x36f78e)),_0xf94e37=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x3903fe));}const _0x114c4b=Array['from'](_0x5e4c3a['getAttributes']())['filter'](([_0x41ed76])=>Ve['includes'](_0x41ed76));_0x5bc126['cells']['push']({'element':_0x45b935,'attributes':_0x114c4b['length']?Object['fromEntries'](_0x114c4b):null}),_0x5aa8de&&_0x5bc126['insertionRanges']['push'](_0x5aa8de),_0xf94e37&&_0x5bc126['deletionRanges']['push'](_0xf94e37);},{'priority':'high'}),_0x2ae819['on']('insertColumns',(_0x18e2b3,_0x272a2d)=>{const [_0x6a3893,_0x4d8f2d={}]=_0x272a2d;if(!_0x5bc126)return;const _0x44b890=_0x4d8f2d['at']||0x0,_0xeb0514=_0x4d8f2d['columns']||0x1;_0x5bc126['columnInsertionIndexes']=new Array(_0xeb0514)['fill'](_0x44b890)['map']((_0x24bd93,_0x5f0e8b)=>_0x24bd93+_0x5f0e8b);for(const {cell:_0x1b47f8}of _0x2ae819['createTableWalker'](_0x6a3893,{'startColumn':_0x44b890,'endColumn':_0x44b890+_0xeb0514-0x1}))_0x5bc126['columnInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x1b47f8));},{'priority':'low'}),_0x2ae819['on']('insertRows',(_0x32a403,_0xa86844)=>{const [_0x5c1ff1,_0x49c130={}]=_0xa86844;if(!_0x5bc126)return;const _0x196bce=_0x49c130['at']||0x0,_0x37c468=_0x49c130['rows']||0x1;_0x5bc126['rowInsertionIndexes']=new Array(_0x37c468)['fill'](_0x196bce)['map']((_0x24ccfb,_0x11a32f)=>_0x24ccfb+_0x11a32f);for(const {cell:_0x5731e6}of _0x2ae819['createTableWalker'](_0x5c1ff1,{'startRow':_0x196bce,'endRow':_0x196bce+_0x37c468-0x1}))_0x5bc126['rowInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x5731e6));},{'priority':'low'}),_0x13fcf9['descriptionFactory']['registerDescriptionCallback'](_0xfd682d=>{if(_0xfd682d['subType']&&_0xfd682d['subType']['startsWith']('tablePaste'))return _0xfd682d['previous']?{}:{'type':'insertion','content':Ot(_0x22b1dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5a636e=()=>!0x1;for(const _0x2eb1cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eb1cc,'join',_0x5a636e);_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ffdba,_0x1053f8,_0x4c1bef)=>{const _0x5bf664=_0x2ffdba['map'](_0x166806=>_0x166806['getContainedElement']())['filter'](_0x4bbfc1=>_0x4bbfc1),_0x15a7cd=new Map(_0x5bf664['map'](_0xddf6e8=>[_0xddf6e8,null]));if(_0x5bc126){for(const {element:_0xcde2aa,attributes:_0x2f24ab}of _0x5bc126['cells'])_0x2f24ab&&_0x15a7cd['set'](_0xcde2aa,_0x2f24ab);}else{if(_0x4c1bef&&_0x4c1bef['markerAttributes'])for(const [_0x12fbaa,_0x39ce53]of Object['entries'](_0x4c1bef['markerAttributes'])){const _0x1b20b6=_0x22b1dc['model']['markers']['get'](_0x12fbaa),_0x29aa04=_0x1b20b6?_0x1b20b6['getRange']()['getContainedElement']():null;_0x29aa04&&_0x15a7cd['set'](_0x29aa04,_0x39ce53);}}_0x22b1dc['model']['change'](_0x1c012b=>{for(const [_0x2d6a86,_0x3413f6]of _0x15a7cd)_0x1c012b['setAttributes']({...je,..._0x3413f6},_0x2d6a86);});});const _0x10b01f=(_0x469d77,_0x42b51c)=>{_0x13fcf9['_suggestionFactory']['registerCustomCallback'](_0x469d77,'tablePaste',_0x42b51c,(_0x4e3348,_0x575fc1,_0x58ff69)=>{_0x22b1dc['model']['change'](_0x196a8c=>{const _0x3195f8=[];for(const _0x41d929 of _0x4e3348){const _0x3779d6=_0x41d929['start']['nodeAfter'];_0x3779d6['is']('element','tableCellSuggestion')&&_0x3195f8['push'](_0x3779d6);}_0x13fcf9['_suggestionFactory']['getSuggestionCallback'](_0x469d77,null,_0x42b51c)(_0x4e3348,_0x575fc1,_0x58ff69);for(const _0x256caa of _0x3195f8)'$graveyard'!=_0x256caa['root']['rootName']&&_0x196a8c['unwrap'](_0x256caa);});});};_0x10b01f('insertion','accept'),_0x10b01f('insertion','discard'),_0x10b01f('deletion','accept'),_0x10b01f('deletion','discard'),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1448fe=>{const _0x1d720b=_0x1448fe['map'](_0x2904b1=>_0x2904b1['getContainedElement']()),_0x5a63c0=_0x1d720b[0x0]['findAncestor']('table'),{minRow:_0x128575,maxRow:_0x41217d}=_0x2b0896['_getCoordsForCells'](_0x1d720b);_0x2ae819['removeRows'](_0x5a63c0,{'at':_0x128575,'rows':_0x41217d-_0x128575+0x1});}),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b5687=>{const _0x119463=_0x4b5687['map'](_0x5cc4e0=>_0x5cc4e0['getContainedElement']()),_0x19f637=_0x119463[0x0]['findAncestor']('table'),{minColumn:_0x53cae3,maxColumn:_0x25de3f}=_0x2b0896['_getCoordsForCells'](_0x119463);_0x2ae819['removeColumns'](_0x19f637,{'at':_0x53cae3,'columns':_0x25de3f-_0x53cae3+0x1});});const _0x558a52=(_0x30158a,_0x137ae5)=>{if(!_0x137ae5['subType']||!_0x137ae5['subType']['startsWith']('tablePaste'))return;const _0x30ed60=_0x137ae5['attributes']['tablePasteChainId'],_0x2af88e=_0x13fcf9['getSuggestions']()['filter'](_0x270479=>_0x270479['isInContent']&&_0x270479['attributes']&&_0x270479['attributes']['tablePasteChainId']==_0x30ed60);_0x2af88e['length']&&_0x137ae5['getAllAdjacentSuggestions']()['length']!=_0x2af88e['length']&&_0x2af88e['reduce']((_0x243f3c,_0x299a94)=>(_0x243f3c['next']=_0x299a94,_0x299a94['previous']=_0x243f3c,_0x299a94));};function _0x2182a7(_0x1fbf93,_0x36328b=!0x0){const {id:_0x4ce1b8,authorId:_0x17341d}=et(_0x1fbf93['markerName']),_0x4074a3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42a7ea=_0x13fcf9['activeMarkers']['includes'](_0x1fbf93['markerName']);return _0x42a7ea&&_0x4074a3['push']('ck-suggestion-marker--active'),{'classes':_0x4074a3,'attributes':{'data-suggestion':_0x4ce1b8,'data-author-id':_0x17341d},'priority':_0x42a7ea&&_0x36328b?0xbc2:0xbb8};}_0x13fcf9['on']('suggestionLoaded',_0x558a52,{'priority':'high'}),_0x13fcf9['on']('suggestionUnloaded',_0x558a52,{'priority':'high'}),_0x22b1dc['model']['document']['registerPostFixer'](()=>{let _0x250e08=!0x1;const _0x31e96a=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x515a55,data:_0xd1da34}of _0x31e96a){const {group:_0x52f5ab,type:_0x426288,id:_0x1496d}=et(_0x515a55);if('suggestion'!=_0x52f5ab||'deletion'!=_0x426288||_0xd1da34['oldRange'])continue;if(!_0x13fcf9['hasSuggestion'](_0x1496d))continue;const _0x1413c2=_0x13fcf9['getSuggestion'](_0x1496d)['getRanges'](),_0x6ec384=_0x22b1dc['plugins']['get']('Users')['me'];for(const _0x485210 of _0x13fcf9['getSuggestions']())if(_0x485210['isInContent']&&_0x485210['author']==_0x6ec384&&'formatBlock'==_0x485210['type']&&'tablePasteCell'==_0x485210['subType']&&_0x485210['getRanges']()['every'](_0x3208ba=>_0x1413c2['some'](_0x169c50=>_0x169c50['containsRange'](_0x3208ba,!0x0)))){for(const _0x446156 of _0x485210['getAllAdjacentSuggestions']())_0x446156['isInContent']&&(_0x446156['discard'](),_0x250e08=!0x0);}}return _0x250e08;}),_0x22b1dc['model']['document']['registerPostFixer'](_0x2db57d=>{const _0x339894=_0x22b1dc['commands']['get']('redo');if(!_0x339894||!_0x339894['_createdBatches']['has'](_0x2db57d['batch']))return!0x1;let _0x17064a=!0x1;const _0x4edc00=_0x22b1dc['plugins']['get']('Users')['me'],_0x2b30db=_0x22b1dc['model']['document']['differ']['getChanges'](),_0x3e7a16=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cb925,data:_0x1c306f})=>{const {group:_0x4359d6,subType:_0x4aad6c,authorId:_0x3ada91}=et(_0x3cb925);return'suggestion'==_0x4359d6&&'tablePaste'==_0x4aad6c&&_0x3ada91==_0x4edc00['id']&&!_0x1c306f['oldRange'];});for(const _0x32b9b2 of _0x2b30db){if('insert'!=_0x32b9b2['type']||'tableCellSuggestion'!=_0x32b9b2['name']||0x1!=_0x32b9b2['length'])continue;const _0x296ed3=_0x2db57d['createRange'](_0x32b9b2['position'],_0x32b9b2['position']['getShiftedBy'](0x1));if(!_0x3e7a16['find'](({data:_0x309376})=>_0x309376['newRange']['isEqual'](_0x296ed3))){for(const {name:_0x5b8466,data:_0x656bcf}of _0x3e7a16)if(_0x296ed3['containsRange'](_0x656bcf['newRange'])){_0x2db57d['updateMarker'](_0x5b8466,{'range':_0x296ed3}),_0x17064a=!0x0;break;}}}return _0x17064a;}),_0x22b1dc['model']['document']['registerPostFixer'](_0xfc1bd3=>{let _0x52cdf9=!0x1;const _0x550712=_0x22b1dc['plugins']['get']('Users')['me'],_0x24bd11=_0x13fcf9['getSuggestions']()['filter'](_0x4553fd=>_0x4553fd['isInContent']&&_0x4553fd['author']==_0x550712),_0x29108e=new Set(),_0x153ff9=new Set();for(const _0xbcfd85 of _0x24bd11)if('tablePaste'==_0xbcfd85['subType'])for(const _0x554292 of _0xbcfd85['getMarkers']()){const _0x58d79a=_0x554292['getRange']()['getContainedElement']();if(_0x58d79a){if(_0x58d79a['is']('element','tableCellSuggestion')&&Ke(_0x58d79a)){_0xbcfd85['removeMarker'](_0x554292['name']),_0x29108e['add'](_0x58d79a),_0x52cdf9=!0x0;const _0x6d5962=_0x58d79a['nextSibling'],_0x209522=_0x58d79a['previousSibling'],_0x19b4cd=_0x6d5962&&_0x6d5962['is']('element','tableCellSuggestion'),_0x17e459=_0x209522&&_0x209522['is']('element','tableCellSuggestion');_0x19b4cd&&!_0x29108e['has'](_0x6d5962)&&_0x153ff9['add'](_0x6d5962),_0x17e459&&!_0x29108e['has'](_0x209522)&&_0x153ff9['add'](_0x209522);}else _0x58d79a['is']('element','paragraph')&&_0x58d79a['isEmpty']&&(_0xbcfd85['removeMarker'](_0x554292['name']),_0x52cdf9=!0x0);}}else{if('tablePasteCell'==_0xbcfd85['subType']){if(!_0xbcfd85['attributes']||!_0xbcfd85['attributes']['tablePasteChainId'])continue;const _0x2113a6=_0xbcfd85['attributes']['markerAttributes'];if(_0x2113a6&&Object['keys'](_0x2113a6)['length'])continue;const _0x2269f7=_0xbcfd85['attributes']['tablePasteChainId'];let _0xb310f7=!0x0,_0x2ed552=!0x0;for(const _0xe8738a of _0x24bd11)if(_0xe8738a['subType']&&_0xe8738a['subType']['startsWith']('tablePaste')){if(!_0xe8738a['attributes']['tablePasteChainId']){_0x2ed552=!0x1;break;}if(_0xe8738a['id']!=_0xbcfd85['id']&&_0xe8738a['attributes']['tablePasteChainId']==_0x2269f7){_0xb310f7=!0x1;break;}}_0x2ed552&&_0xb310f7&&(_0xbcfd85['removeMarkers'](),_0x52cdf9=!0x0);}}for(const _0x23757a of _0x29108e)_0xfc1bd3['remove'](_0x23757a);for(const _0x1d72b0 of _0x153ff9)_0xfc1bd3['unwrap'](_0x1d72b0);return _0x52cdf9;}),_0x22b1dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7a3b6d=>_0x2182a7(_0x7a3b6d),'converterPriority':'high'}),_0x22b1dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c2ff4,_0x143da5)=>_0x143da5['options']['showSuggestionHighlights']?_0x2182a7(_0x5c2ff4,!0x1):null,'converterPriority':'high'});const _0x33563d=_0x22b1dc['editing']['view'];this['listenTo'](_0x33563d['document'],'clipboardOutput',(_0x569a6b,_0x26e708)=>{const _0x21f946=[];for(const _0x5c48e8 of _0x33563d['createRangeIn'](_0x26e708['content'])['getItems']())_0x5c48e8['is']('element','suggestion-td')&&_0x21f946['push'](_0x5c48e8);_0x33563d['change'](_0x1a7ed9=>{for(const _0x3cdf70 of _0x21f946)_0x1a7ed9['move'](_0x1a7ed9['createRangeIn'](_0x3cdf70),_0x1a7ed9['createPositionBefore'](_0x3cdf70)),_0x1a7ed9['remove'](_0x3cdf70);});});}};function Ke(_0x3a864a){if(_0x3a864a['isEmpty'])return!0x0;const _0x3aad6b=_0x3a864a['getChild'](0x0);return _0x3aad6b['is']('element','paragraph')&&_0x3aad6b['isEmpty'];}function Xe(_0x132966,_0x147108={},_0x4e343b){for(const {isAnchor:_0x2d79c4,cellHeight:_0x36a13d,cellWidth:_0x237368}of _0x4e343b['createTableWalker'](_0x132966,{'includeAllSlots':!0x0,..._0x147108}))if(!_0x2d79c4||0x1!=_0x36a13d||0x1!=_0x237368)return!0x1;return!0x0;}var qe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e4bc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4bc0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3e4bc0['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xb4498e=_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x9b1ac1,_0x697693)=>{_0xb4498e(_0x9b1ac1,_0x697693),this['_restoreCellWidths'](_0x9b1ac1[0x0]['start']['nodeAfter'],_0x697693['commandParams'][0x0]['cellWidths']);}),_0x3e4bc0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xfd2ec,_0x379853){const _0x5ca75f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa1367a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x487620=_0x379853['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x48f233=_0xa1367a['getColumnGroupElement'](_0x487620);let _0x120b21=_0x48f233?_0xa1367a['getTableColumnsWidths'](_0x48f233):null,_0x526f95=_0x487620['getAttribute']('tableWidth')||null;const _0x537ddc=_0x379853['tableWidth']||_0x526f95,_0x5019dc=_0x379853['columnWidths']||_0x120b21;let _0x4e847e=this['_getCellWidths'](_0x487620);const _0x34a3b4=this['_foldResizeTableSuggestion'](_0x487620);_0x34a3b4&&(_0x526f95=_0x34a3b4['tableWidth'],_0x120b21=_0x34a3b4['columnWidths'],_0x4e847e=_0x34a3b4['cellWidths']||_0x4e847e),_0xfd2ec({'table':_0x487620,'tableWidth':_0x537ddc,'columnWidths':_0x5019dc}),_0x5ca75f['markBlockFormat'](_0x487620,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f95,'columnWidths':_0x120b21,'cellWidths':_0x4e847e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2cfcd9,_0x4537aa={}){if(void 0x0===_0x4537aa['value']||''===_0x4537aa['value'])return void _0x2cfcd9(_0x4537aa);const _0x5818e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf444=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ca04c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x4537aa['batch']||(_0x4537aa['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x4537aa['batch'],()=>{const _0x544c75=_0x3cf444['getColumnGroupElement'](_0x5ca04c);let _0x26ff1b=_0x544c75?_0x3cf444['getTableColumnsWidths'](_0x544c75):null,_0x5adbda=_0x5ca04c['getAttribute']('tableWidth')||null,_0x3bfdef=this['_getCellWidths'](_0x5ca04c);const _0x390f37=this['_foldResizeTableSuggestion'](_0x5ca04c,!0x0);_0x390f37&&(_0x5adbda=_0x390f37['tableWidth'],_0x26ff1b=_0x390f37['columnWidths'],_0x3bfdef=_0x390f37['cellWidths']||_0x3bfdef),_0x2cfcd9(_0x4537aa),_0x5818e9['markBlockFormat'](_0x5ca04c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5adbda,'columnWidths':_0x26ff1b,'cellWidths':_0x3bfdef}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3ffa6c,_0x3b3167=!0x1){const _0xc7112e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f6e5c=this['editor']['plugins']['get']('Users')['me'];for(const _0x397294 of _0xc7112e['getSuggestions']({'skipNotAttached':!0x0})){const _0x23d575=_0x397294['getContainedElement']();if('resizeTable'===_0x397294['subType']&&_0x23d575===_0x3ffa6c){_0x397294['author']!==_0x3f6e5c&&(_0x3b3167?_0x397294['removeMarkers']():_0x397294['discard']());const _0x1a3b97=_0x397294['data']['commandParams'];return{'tableWidth':_0x1a3b97[0x0]['tableWidth'],'columnWidths':_0x1a3b97[0x0]['columnWidths'],'cellWidths':_0x1a3b97[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x68d0a6){const _0x374d54=[];for(const _0x5f20fe of _0x68d0a6['getChildren']())if(_0x5f20fe['is']('element','tableRow')){for(const _0x400d8f of _0x5f20fe['getChildren']())_0x374d54['push'](_0x400d8f['getAttribute']('tableCellWidth')||null);}return _0x374d54;}_restoreCellWidths(_0x120287,_0x52d84c){_0x52d84c&&this['editor']['model']['change'](_0x3e7ddb=>{let _0x109049=0x0;for(const _0x42b9f7 of _0x120287['getChildren']())if(_0x42b9f7['is']('element','tableRow'))for(const _0x308774 of _0x42b9f7['getChildren']()){const _0x1d5e5e=_0x52d84c[_0x109049++];_0x1d5e5e&&_0x3e7ddb['setAttribute']('tableCellWidth',_0x1d5e5e,_0x308774);}});}handleSuggestionDescription(_0x47f410){if('formatBlock'!=_0x47f410['type']&&'formatInline'!=_0x47f410['type'])return;const {data:_0x41cabc}=_0x47f410;return _0x41cabc&&'resizeTable'===_0x41cabc['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x548d2a{afterInit(){const _0x3b290c=this['editor'];_0x3b290c['plugins']['has']('Template')&&_0x3b290c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x548d2a{afterInit(){const _0x4e3ff8=this['editor'];if(!_0x4e3ff8['commands']['get']('insertTableOfContents'))return;_0x4e3ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7db514=_0x4e3ff8['plugins']['get']('TrackChangesEditing'),_0x560300=_0x4e3ff8['locale'];_0x7db514['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1910cf=>Ot(_0x560300,'ELEMENT_TABLE_OF_CONTENTS',_0x1910cf));}},Ze=class extends _0x548d2a{afterInit(){const _0x1b50e8=this['editor'];_0x1b50e8['plugins']['has']('Title')&&(_0x1b50e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1b50e8['locale'],'ELEMENT_TITLE')),_0x1b50e8['model']['document']['registerPostFixer'](_0x3ce0f0=>{let _0x53162e=!0x1;const _0x114fac=Array['from'](_0x1b50e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ad369,data:_0x4cd636}of _0x114fac){const {group:_0x4fa507}=et(_0x1ad369);if('suggestion'!==_0x4fa507||!_0x4cd636['newRange'])continue;const _0x99d2cc=_0x4cd636['newRange'],_0x5caf8a=_0x99d2cc['end']['nodeBefore'];if(!_0x5caf8a||!_0x5caf8a['is']('element','title-content'))continue;if(!_0x99d2cc['start']['isTouching'](_0x99d2cc['end']))continue;const _0xb4c147=_0x1b50e8['model']['schema']['getNearestSelectionRange'](_0x99d2cc['end'],'forward');if(_0xb4c147&&_0xb4c147['isCollapsed']){const _0x15c318=_0x3ce0f0['createRange'](_0x99d2cc['start'],_0xb4c147['start']);_0x15c318['isEqual'](_0x99d2cc)||(_0x3ce0f0['updateMarker'](_0x1ad369,{'range':_0x15c318}),_0x53162e=!0x0);}_0x53162e||(_0x3ce0f0['removeMarker'](_0x1ad369),_0x53162e=!0x0);}return _0x53162e;}));}},Je=class extends _0x548d2a{afterInit(){const _0x2fb64f=this['editor'],_0x3fc01a=_0x2fb64f['plugins']['get']('TrackChangesEditing');_0x2fb64f['plugins']['has']('Uploadcare')&&(_0x3fc01a['enableCommand']('uploadcare'),_0x2fb64f['plugins']['has']('UploadcareImageEdit')&&(_0x3fc01a['enableCommand']('uploadcareImageEdit'),_0x3fc01a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3fc01a['descriptionFactory']['registerDescriptionCallback'](_0xeac986=>{if('attribute'!=_0xeac986['type'])return;const {data:_0xbbc2bb}=_0xeac986;return _0xbbc2bb&&'uploadcareImageId'==_0xbbc2bb['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x548d2a{afterInit(){const _0x3702c7=this['editor'],_0x1f5f35=_0x3702c7['plugins']['get']('TrackChangesEditing');_0x3702c7['plugins']['has']('UndoEditing')&&(_0x1f5f35['enableCommand']('undo'),_0x1f5f35['enableCommand']('redo'));}},en=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5edbac=this['editor'];_0x5edbac['plugins']['has']('TableCaptionEditing')&&_0x5edbac['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x548d2a{tableProperties;tableCellProperties;constructor(_0x1df2b3){super(_0x1df2b3),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 _0x5888be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x259fa0 of this['tableProperties'])_0x5888be['enableCommand'](_0x259fa0,(_0xdac1f7,_0x2e354a)=>{const _0x2da71a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x259fa0,[_0x2da71a],this['tableProperties'],'tableProperties',_0xdac1f7,_0x2e354a);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7e62bc,_0x561867)=>this['handleDiscardAction'](this['tableProperties'],_0x7e62bc,_0x561867)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42bb15 of this['tableCellProperties'])this['editor']['commands']['get'](_0x42bb15)&&_0x5888be['enableCommand'](_0x42bb15,(_0x27594c,_0x36baa0)=>{const _0x4b5039=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42bb15,_0x4b5039,this['tableCellProperties'],'tableCellProperties',_0x27594c,_0x36baa0);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x370a7d,_0x1312ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x370a7d,_0x1312ab)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5888be['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5888be['descriptionFactory']['registerDescriptionCallback'](_0x549971=>this['handleSuggestionDescription'](_0x549971)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2d5df0,_0x5a05cd,_0x36596e,_0x2558a5,_0x52e756,_0x3ade68){const _0x2c497d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ade68['batch'],()=>{for(const _0x422987 of _0x5a05cd)if(this['_getSuggestion'](_0x422987,_0x2558a5))_0x52e756(_0x3ade68);else{const _0x278854={};for(const _0x868d37 of _0x36596e){const _0x687eff=_0x422987['getAttribute'](_0x868d37);void 0x0!==_0x687eff&&(_0x278854[_0x868d37]=_0x687eff);}const _0x40dc38=this['_getResizedColumnWidths'](_0x422987);_0x40dc38&&(_0x278854['columnWidths']=_0x40dc38),_0x52e756(_0x3ade68),_0x2c497d['markBlockFormat'](_0x422987,{'commandParams':[_0x278854]},[],_0x2558a5);}});}handleDiscardAction(_0x359549,_0x10a783,_0xe8fd52){const _0x5f3a36=_0x10a783[0x0]['start']['nodeAfter'],_0x2b1688=_0xe8fd52['commandParams'][0x0];this['editor']['model']['change'](_0x124c5f=>{for(const _0xa0d169 of _0x359549)void 0x0!==_0x2b1688[_0xa0d169]?_0x124c5f['setAttribute'](_0xa0d169,_0x2b1688[_0xa0d169],_0x5f3a36):_0x124c5f['removeAttribute'](_0xa0d169,_0x5f3a36);if(_0x2b1688['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0xde26e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21e53b=_0xde26e6['getColumnGroupElement'](_0x5f3a36);if(_0x21e53b){const _0x30033a=_0xde26e6['getTableColumnsWidths'](_0x21e53b),_0x52baa8=_0x5f3a36['getAttribute']('tableWidth');if(('string'==typeof _0x52baa8&&_0x52baa8['trim']()['endsWith']('px'))!==_0x30033a['some'](_0x5efd37=>'string'==typeof _0x5efd37&&_0x5efd37['endsWith']('px'))){const _0x53b5fe=_0xde26e6['getTableColumnElements'](_0x21e53b);_0x2b1688['columnWidths']['forEach']((_0x1fca15,_0x557ec7)=>{_0x53b5fe[_0x557ec7]&&_0x124c5f['setAttribute']('columnWidth',_0x1fca15,_0x53b5fe[_0x557ec7]);});}}}});}_getResizedColumnWidths(_0x2ca692){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2ca692['is']('element','table'))return;const _0x3f6004=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e5637=_0x3f6004['getColumnGroupElement'](_0x2ca692);return _0x1e5637?_0x3f6004['getTableColumnsWidths'](_0x1e5637):void 0x0;}handleSuggestionDescription(_0x2aefd8){if(_0x2aefd8['data'])switch(_0x2aefd8['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x50df5b,_0x1f1f56){const _0x27eb88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58e866 of _0x27eb88['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a6992=_0x58e866['getContainedElement']();if(_0x58e866['subType']===_0x1f1f56&&_0x2a6992===_0x50df5b)return _0x58e866;}return null;}_registerTablePropertiesAttributes(){const _0x292052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11585d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3b05bf of _0x11585d){const _0x17c9b2=_0x3b05bf['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x292052['descriptionFactory']['registerAttributeLabel'](_0x3b05bf,Ot(this['editor']['locale'],'FORMAT_'+_0x17c9b2));}}},sn=class extends _0x548d2a{afterInit(){const _0x1213d1=this['editor'];if(!_0x1213d1['plugins']['has']('LineHeight'))return;const _0x49dfa5=_0x1213d1['plugins']['get']('TrackChangesEditing'),_0x11493a=_0x1213d1['locale'];_0x49dfa5['enableDefaultAttributesIntegration']('lineHeight'),_0x49dfa5['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x11493a,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x548d2a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x625dc5,_0x4fbad8,_0x5036c6,_0x6db56a,_0x140123,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531c8f){super(_0x531c8f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e01d5,_0x340421,_0x55aadd,_0x6c2c28)=>{this['_model']['change'](()=>{for(const _0x201f0e of[..._0x6c2c28,..._0x55aadd])this['_model']['markers']['has'](_0x201f0e)&&_0x531c8f['editing']['reconvertMarker'](_0x201f0e);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531c8f['plugins']['get'](_0x625dc5),this['_suggestionsConversion']=_0x531c8f['plugins']['get'](_0x4fbad8),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x531c8f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531c8f['config']['get']('trackChanges.trackFormatChanges'),_0x531c8f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531c8f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x531c8f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1b1877=this['editor'];_0x1b1877['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c5add,{writer:_0x3d95e2})=>{let _0x4e93c7='suggestion:'+_0x3c5add['getAttribute']('suggestion-type')+':'+_0x3c5add['getAttribute']('id');return _0x3c5add['getAttribute']('marker-count')&&(_0x4e93c7+=':'+_0x3c5add['getAttribute']('marker-count')),_0x3d95e2['createElement']('$marker',{'data-name':_0x4e93c7});}}),_0x1b1877['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b1877['model']['document']['registerPostFixer'](_0x3aaefa=>{let _0x4502a7=!0x1;const _0x3360d3=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']()),_0xb240aa=new Set();for(const {name:_0x3b02c6,data:_0x5d83e6}of _0x3360d3){const {group:_0x5d7e46,type:_0x285c15,subType:_0x596367,id:_0x5f45c0}=et(_0x3b02c6);if('suggestion'!==_0x5d7e46)continue;const _0x485f43=_0x596367?'suggestion:'+_0x285c15+':'+_0x596367+':'+_0x5f45c0:'suggestion:'+_0x285c15+':'+_0x5f45c0,_0x43a627=_0x1b1877['model']['markers']['getMarkersGroup'](_0x485f43),_0x2a1169=_0x1b1877['model']['markers']['get'](_0x3b02c6),_0x399cb5=this['_suggestions']['get'](_0x5f45c0);if(null!=_0x5d83e6['newRange']){'formatInline'==_0x285c15&&(_0x4502a7=_0x4502a7||un(_0x5d83e6['newRange'],_0x3b02c6,_0x3aaefa,_0x1b1877['model']['schema']));const _0x2f0643='attribute'==_0x285c15&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x596367)),_0x46b8b1='attribute'==_0x285c15&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x596367));if(_0x5d83e6['newRange']['isCollapsed']||'$graveyard'==_0x5d83e6['newRange']['root']['rootName']||'formatBlock'==_0x285c15&&!hn(_0x5d83e6['newRange'])||_0x2f0643&&!hn(_0x5d83e6['newRange'])||_0x46b8b1&&gn(_0x5d83e6['newRange'])||'deletion'==_0x285c15&&gn(_0x5d83e6['newRange'])||_0x2a1169&&fn(_0x2a1169,_0x43a627))_0x3aaefa['removeMarker'](_0x3b02c6),_0x4502a7=!0x0;else{if(!_0x399cb5||!_0x399cb5['isInContent'])continue;if(_0x5d83e6['newRange']&&_0x5d83e6['oldRange']&&_0x5d83e6['newRange']['isEqual'](_0x5d83e6['oldRange']))continue;_0xb240aa['add'](_0x399cb5);}}}return _0xb240aa['size']>0x0&&(_0x4502a7=!!this['_joinWithAdjacentSuggestions'](_0xb240aa)||_0x4502a7),_0x4502a7;}),_0x1b1877['model']['document']['registerPostFixer'](_0x3f697f=>{let _0x7d2be3=!0x1;for(const _0x2e8960 of _0x1b1877['model']['document']['differ']['getChanges']())if('insert'==_0x2e8960['type'])for(const _0x1b79cf of this['_suggestions']['values']()){if(_0x1b79cf['isMultiRange']||!_0x1b79cf['isInContent'])continue;const _0x3bcb5c='formatBlock'==_0x1b79cf['type'],_0x3b75cd=this['_getAttributeKey'](_0x1b79cf),_0xe0bf56=_0x3b75cd&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b75cd);if(!_0x3bcb5c&&!_0xe0bf56)continue;const _0x16b347=_0x1b79cf['getFirstRange']();if(_0x16b347['start']['parent']!=_0x16b347['end']['parent']&&!_0x16b347['end']['isAtEnd']){const _0x30dbe7=_0x1b1877['model']['createPositionAt'](_0x16b347['start']['nodeAfter'],'end'),_0x576acf=_0x1b1877['model']['createRange'](_0x16b347['start'],_0x30dbe7);_0x3f697f['updateMarker'](_0x1b79cf['getFirstMarker'](),{'range':_0x576acf}),_0x7d2be3=!0x0;}}return _0x7d2be3;}),_0x1b1877['model']['document']['registerPostFixer'](_0x29905b=>this['_processAttributeChanges'](_0x29905b)),_0x1b1877['model']['document']['registerPostFixer'](_0x832018=>!_0x832018['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x832018)),_0x1b1877['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b1877['model']['document']['on']('change:data',(_0x5694ad,_0x46d276)=>{if(!_0x46d276['isLocal']||_0x46d276['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x506d94=_0x1b1877['model']['document']['differ']['getChanges']();if(0x0==_0x506d94['length'])return;const _0x3efb42=[],_0x585a81=_0x506d94['filter'](_0x599b21=>'attribute'==_0x599b21['type']),_0x24a52e=_0x506d94['filter'](_0x20f795=>'insert'==_0x20f795['type']&&'$text'!=_0x20f795['name']);for(const _0x65cae3 of _0x585a81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x65cae3['attributeKey'])&&_0x3efb42['push']({'key':_0x65cae3['attributeKey'],'newValue':_0x65cae3['attributeNewValue'],'oldValue':_0x65cae3['attributeOldValue'],'range':mn(_0x65cae3['range'],_0x1b1877['model'])});for(const _0x5d22b1 of _0x24a52e){if('rename'!=_0x5d22b1['action']&&'refresh'!=_0x5d22b1['action'])continue;const _0x33ca00=En(_0x5d22b1['position']['nodeAfter'],_0x1b1877['model']),_0x5926a4=_0x5d22b1['before'];'rename'==_0x5d22b1['action']&&_0x3efb42['push']({'key':rn,'newValue':_0x5d22b1['name'],'oldValue':_0x5926a4['name'],'range':_0x33ca00});for(const [_0x4b8788,_0x4e789b]of _0x5926a4['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8788))continue;const _0x337743=_0x5d22b1['attributes']['get'](_0x4b8788);_0x4e789b!==_0x337743&&_0x3efb42['push']({'key':_0x4b8788,'newValue':_0x337743,'oldValue':_0x4e789b,'range':_0x33ca00});}for(const [_0x5f0018,_0x3fd68b]of _0x5d22b1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5f0018)&&(_0x5926a4['attributes']['has'](_0x5f0018)||_0x3efb42['push']({'key':_0x5f0018,'newValue':_0x3fd68b,'oldValue':null,'range':_0x33ca00}));}0x0!=_0x3efb42['length']&&_0x1b1877['model']['enqueueChange'](_0x46d276,_0x5a6569=>{const _0xb88a27=_0x1dfb7c();for(const {range:_0x289e94,key:_0x80699c,oldValue:_0x16fb0f,newValue:_0x3312e0}of _0x3efb42)this['markAttributeChange'](_0x289e94,_0x80699c,_0x16fb0f,_0x3312e0,{'groupId':_0xb88a27});this['_reduceExistingSuggestions'](_0x5a6569,_0x3efb42);});},{'priority':'lowest'}),_0x1b1877['model']['markers']['on']('update:suggestion',(_0x29d6d5,_0x1cb229,_0x5deac0)=>{if(null==_0x5deac0){const {id:_0x18f90b}=et(_0x1cb229['name']),_0x4d3ecb=this['_suggestions']['get'](_0x18f90b);_0x4d3ecb&&_0x4d3ecb['addMarkerName'](_0x1cb229['name']);}}),_0x1b1877['model']['document']['on']('change:data',()=>{const _0x256b7d=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10435e=>'suggestion'===et(_0x10435e['name'])['group']);if(0x0===_0x256b7d['length'])return;_0x256b7d['sort']((_0x499ec8,_0x4acf70)=>{const _0x6cd00e=_0x499ec8['data']['oldRange'],_0x548add=_0x4acf70['data']['oldRange'];return null===_0x6cd00e&&null===_0x548add?0x0:null===_0x6cd00e&&null!==_0x548add?-0x1:null!==_0x6cd00e&&null===_0x548add?0x1:_0x6cd00e['start']['isBefore'](_0x548add['start'])?-0x1:0x1;});const _0x5ab119=new Set(),_0x407246=new Set();for(const {name:_0xc47b0e,data:_0x1c897c}of _0x256b7d){const {id:_0x576c4d}=et(_0xc47b0e);if(null===_0x1c897c['oldRange']){const _0x3ea10a=this['_handleNewSuggestionMarker'](_0xc47b0e);_0x407246['add'](_0x3ea10a);}else{const _0x5c431f=this['_suggestions']['get'](_0x576c4d);null!==_0x1c897c['newRange']||_0x5c431f['isInContent']?(_0x5ab119['add'](_0x5c431f['head']),_0x407246['add'](_0x5c431f)):this['_removeSuggestion'](_0x5c431f);}}_0x407246['size']>0x0&&this['_refreshSuggestionsChain'](_0x407246);for(const _0x3dd4c9 of _0x5ab119)this['fire']('suggestionChanged',_0x3dd4c9);}),_0x1b1877['model']['on']('applyOperation',(_0x57fe2d,_0x1202ee)=>{const _0x1de11c=_0x1202ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x1de11c['isDocumentOperation'])return;if(_0x1de11c['batch']['isUndo']||!_0x1de11c['batch']['isLocal'])return;let _0xbb2acf,_0x48f4ee;switch(_0x1de11c['type']){case'insert':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['position']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;case'split':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['splitPosition']),_0x48f4ee=_0x1b1877['model']['createPositionAt'](_0x1de11c['moveTargetPosition']);break;case'move':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['targetPosition']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;default:return;}const _0x630962=_0x1b1877['model']['createRange'](_0xbb2acf,_0x48f4ee);_0x1b1877['model']['change'](()=>{for(const {suggestion:_0x572b28,meta:_0x4c51d7}of this['_findSuggestions'](_0x630962)){if(_0x572b28['isMultiRange'])continue;if('formatInline'==_0x572b28['type'])continue;const _0x17159b=this['_getAttributeKey'](_0x572b28);if(_0x17159b&&this['_suggestionsConversion']['isBlockAttribute'](_0x17159b)&&'split'!=_0x1de11c['type'])continue;const _0x98cc31=_0x572b28['data']&&_0x572b28['data']['multipleBlocks'];('formatBlock'!=_0x572b28['type']||'split'==_0x1de11c['type']&&!_0x98cc31)&&(_0x4c51d7['containsRangeInObject']||'insertion'==_0x572b28['type']&&_0x4c51d7['isOwn']||_0x572b28['getFirstRange']()['containsRange'](_0x630962)&&this['_breakSuggestionMarker'](_0x572b28,_0xbb2acf,_0x48f4ee));}});},{'priority':'lowest'}),_0x1b1877['model']['on']('deleteContent',(_0x277287,_0x52360d)=>{const _0xf2759=_0x52360d[0x0],_0x498b89=_0x52360d[0x1];if(_0x498b89&&_0x498b89['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf2759['isCollapsed'])return;const _0x549323=_0x1b1877['model']['schema'],{start:_0x279c48,end:_0x4be0d1}=_0xf2759['getFirstRange'](),_0xa1e3f3=_0x279c48['nodeAfter']&&_0x549323['isLimit'](_0x279c48['nodeAfter'])?null:_0x549323['getNearestSelectionRange'](_0x279c48,'forward'),_0x3b6ef9=_0x4be0d1['nodeBefore']&&_0x549323['isLimit'](_0x4be0d1['nodeBefore'])?null:_0x549323['getNearestSelectionRange'](_0x4be0d1,'backward'),_0x391a63=_0x1b1877['model']['createRange'](_0xa1e3f3?_0xa1e3f3['start']:_0x279c48,_0x3b6ef9?_0x3b6ef9['end']:_0x4be0d1);_0x1b1877['model']['change'](_0x3c0df4=>{this['markDeletion'](_0x391a63);const _0x4c5d60=_0x1b1877['model']['schema']['getNearestSelectionRange'](_0x391a63['start']);_0xf2759['is']('documentSelection')?_0x3c0df4['setSelection'](_0x4c5d60):_0xf2759['setTo'](_0x4c5d60);}),_0x277287['stop']();},{'priority':_0x5e908b['normal']+0xa}),_0x1b1877['model']['on']('insertContent',(_0x4fa226,_0x34bc1b)=>{const _0x5930a1=_0x34bc1b[_0x34bc1b['length']-0x1];_0x5930a1&&_0x5930a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b1877['model']['change'](()=>{let _0x10cd33=_0x1b1877['model']['insertContent'](_0x34bc1b[0x0],_0x34bc1b[0x1],_0x34bc1b[0x2],{'forceDefaultExecution':!0x0});if(!_0x10cd33)return;_0x4fa226['return']=_0x10cd33['clone']();const _0x12e1a4=_0x10cd33['end']['nodeBefore'],_0x357deb=_0x1b1877['model']['schema'];_0x12e1a4&&_0x357deb['isBlock'](_0x12e1a4)&&!_0x357deb['isObject'](_0x12e1a4)&&(_0x10cd33=_0x1b1877['model']['createRange'](_0x10cd33['start'],_0x1b1877['model']['createPositionAt'](_0x12e1a4,'end'))),this['markInsertion'](_0x10cd33);}),_0x4fa226['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c4ff=new pt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('acceptSuggestion',_0x26c4ff),this['enableCommand']('acceptSuggestion');const _0x98c2a6=new Lt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('discardSuggestion',_0x98c2a6),this['enableCommand']('discardSuggestion'),_0x1b1877['commands']['add']('acceptAllSuggestions',new yt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b1877['commands']['add']('discardAllSuggestions',new yt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b1877['commands']['add']('acceptSelectedSuggestions',new Nt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b1877['commands']['add']('discardSelectedSuggestions',new Nt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e9652=_0x1b1877['plugins']['get'](_0x625dc5);this['listenTo'](_0x3e9652,'addComment',(_0x160bf7,{threadId:_0xc58a00})=>{const _0x2b1e45=this['_suggestions']['get'](_0xc58a00);_0x2b1e45&&_0x2b1e45['commentThread']&&0x1===_0x2b1e45['commentThread']['length']&&this['_updateSuggestionData'](_0xc58a00,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e9652,'removeComment',(_0x12c0a0,{threadId:_0x426a14})=>{const _0x3adf8e=this['_suggestions']['get'](_0x426a14);_0x3adf8e&&_0x3adf8e['commentThread']&&!_0x3adf8e['commentThread']['length']&&this['_updateSuggestionData'](_0x426a14,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x585675){const _0x4a9385='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0xf6046=0x79128,_0x50c0fc=window['Date']['now'](),_0x226420=_0x585675['editor'],_0x5a4556=new window['Promise'](_0x45036e=>{_0x226420['once']('ready',_0x45036e);}),_0x16721c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xe45b36=_0x226420['config']['get']('licenseKey');async function _0x4e5db8(){let _0x1e80e1,_0x5186ef=null,_0x22570f=null;try{return'GPL'==_0xe45b36?'NotAllowed':(_0x1e80e1=_0x401ea7(),_0x1e80e1?(_0x1e80e1['usageEndpoint']&&(_0x22570f=_0x1b2ace(_0x1e80e1['usageEndpoint'],_0x1e80e1['jti'])),await _0x835f87()?_0x349023()?_0x79003e()?'Expired':_0x510e99()?('evaluation'==_0x1e80e1['licenseType']&&(_0x5186ef=_0x57b6dc('EvaluationLimit')),await _0x272569()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x79003e(){const _0x214292=['evaluation','trial']['includes'](_0x1e80e1['licenseType'])?_0x50c0fc/0x3e8:0xe10*_0xf6046;return _0x1e80e1['exp']<_0x214292;}function _0x349023(){const _0x260871=_0x1e80e1['features'];if(!_0x260871)return!0x1;if(_0x260871['includes']('*'))return!0x0;if(_0x260871['includes']('TC'))return!0x0;if(_0x260871['includes']('RTC')){if(_0x139882())return!0x0;if(_0x413fe2()||_0x546bcc())return!0x0;}return!0x1;}function _0x510e99(){const _0x5c1e88=_0x1e80e1['licensedHosts'];if(!_0x5c1e88||0x0==_0x5c1e88['length'])return!0x0;const {hostname:_0x1d0014}=new URL(window['location']['href']);if(_0x5c1e88['includes'](_0x1d0014))return!0x0;const _0x3cc249=_0x1d0014['split']('.');return _0x5c1e88['filter'](_0x292313=>_0x292313['includes']('*'))['map'](_0x1ef3fd=>_0x1ef3fd['split']('.'))['filter'](_0x3c216a=>_0x3c216a['length']<=_0x3cc249['length'])['map'](_0x1c5c62=>Array(_0x3cc249['length']-_0x1c5c62['length'])['fill']('*'===_0x1c5c62[0x0]?'*':'')['concat'](_0x1c5c62))['some'](_0x410b01=>_0x3cc249['every']((_0x433654,_0x200ffc)=>_0x410b01[_0x200ffc]===_0x433654||'*'===_0x410b01[_0x200ffc]));}function _0x272569(){return _0x5186ef&&_0x22570f?new window['Promise']((_0x239861,_0x567645)=>{_0x5186ef['then'](_0x239861,_0x567645),_0x22570f['then'](_0x4bc531=>{'Valid'!=_0x4bc531&&_0x239861(_0x4bc531);},_0x567645);}):_0x5186ef||_0x22570f||'Valid';}}function _0x1b2ace(_0x29b589,_0x194d38){return new window['Promise'](_0x144d3f=>{if(_0x4f7680())return _0x144d3f('Valid');_0x31cdac(),_0x226420['decorate']('_sendUsageRequest');let _0x266454=!0x1;const _0x1c39d6=_0x1dfb7c();function _0x4e28e8(_0x3af1a4){return!!_0x3af1a4&&('object'==typeof _0x3af1a4||'function'==typeof _0x3af1a4)&&'function'==typeof _0x3af1a4['then']&&'function'==typeof _0x3af1a4['catch'];}function _0x4f6bcb(_0x20ea27){_0x2b88da(_0x20ea27)['then'](_0x2c6309=>_0x2c6309&&'ok'==_0x2c6309['status']?_0x5ce06c(_0x538ad9(_0x1c39d6+_0x194d38))!=_0x2c6309['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26240d=>(_0x3eef28(),_0x26240d),()=>{const _0x4c2496=_0x5792ec();return null==_0x4c2496?(_0x3eef28(),'Valid'):_0x50c0fc-_0x4c2496>0x240c8400?'UsageLimit':'Valid';})['then'](_0x144d3f)['catch'](()=>{_0x144d3f('UsageLimit');});const _0x2b29ee=0x36ee80;function _0x3eef28(){const _0x2cb67d='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x3d3f50=_0x163873(_0x5ce06c(window['Math']['ceil'](_0x50c0fc/_0x2b29ee)));window['localStorage']['setItem'](_0x2cb67d,_0x3d3f50);}function _0x5792ec(){const _0x1f9f95='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x4374ad=window['localStorage']['getItem'](_0x1f9f95);return _0x4374ad?window['parseInt'](_0x163873(_0x4374ad),0x10)*_0x2b29ee:null;}function _0x2b88da(_0x5527a6){return new window['Promise']((_0x2f17aa,_0x48e668)=>{_0x5527a6['then'](_0x2f17aa,_0x48e668),window['setTimeout'](_0x48e668,0x1d4c0);});}}_0x226420['on']('_sendUsageRequest',(_0x31e391,_0x917fc4)=>{if(_0x917fc4[0x0]!=_0x29b589)return _0x144d3f('UsageLimit');_0x917fc4[0x1]={..._0x917fc4[0x1],'requestId':_0x1c39d6};},{'priority':'high'}),_0x226420['on']('_sendUsageRequest',_0x35f06e=>{_0x4e28e8(_0x35f06e['return'])&&(_0x266454=!0x0,_0x4f6bcb(_0x35f06e['return']));},{'priority':'low'}),_0x5a4556['then'](()=>{_0x266454||_0x144d3f('UsageLimit');});});function _0x4f7680(){return'auto'==_0x226420['editing']['view']['_overlayModeHint'];}function _0x31cdac(){_0x226420['editing']['view']['_overlayModeHint']='auto';}}function _0x57b6dc(_0x54cd92){const _0x25fb0a=[new window['Promise'](_0x15e383=>setTimeout(_0x15e383,0x93ecc)),_0x5a4556['then'](()=>new window['Promise'](_0x38a1a9=>{let _0x10b3d7=0x0;_0x226420['model']['on']('applyOperation',(_0x13f40b,_0x424dd8)=>{_0x424dd8[0x0]['isDocumentOperation']&&_0x10b3d7++,0x5e8==_0x10b3d7&&(_0x38a1a9(),_0x13f40b['off']());});}))];return window['Promise']['race'](_0x25fb0a)['then'](()=>_0x54cd92);}async function _0x4dd158(){await _0x5a4556,_0x226420['model']['change']=_0x160afa,_0x226420['model']['enqueueChange']=_0x160afa,_0x226420['enableReadOnlyMode']('model');}function _0x139882(){return _0x509c73('WebSocketGateway')&&'connected'==_0x26270f('WebSocketGateway')['state'];}function _0x413fe2(){return _0x509c73('RevisionViewerIntegration');}function _0x546bcc(){return _0x509c73('TrackChangesDataGetter');}function _0x1750c1(_0x58b910){const _0x3bc73a=_0x3ffb27();_0x226420[_0x3bc73a]='trackChangesLicenseKey'+_0x58b910,'Valid'!=_0x58b910&&_0x4dd158();}function _0x3ffb27(){const _0x160b11=window['String'](window['performance']['now']())['replace']('.','');let _0x535130='R';for(let _0x212d82=0x0;_0x212d82<_0x160b11['length'];_0x212d82+=0x2){let _0x258958=window['parseInt'](_0x160b11['substring'](_0x212d82,_0x212d82+0x2));_0x258958>=0x3e&&(_0x258958-=0x3e),_0x535130+=_0x4a9385[_0x258958];}return _0x535130;}function _0x401ea7(){const _0x3aeef7=_0xe45b36['split']('.');if(0x3!=_0x3aeef7['length'])return null;return _0x58805f(_0x3aeef7[0x1]);function _0x58805f(_0x4ed7fc){const _0x5d78ac=_0x53e05a(_0x4ed7fc);return _0x5d78ac&&_0x414b2b()?_0x5d78ac:null;function _0x414b2b(){const _0x3afd78=_0x5d78ac['jti'],_0x209254=window['parseInt'](_0x3afd78['substring'](_0x3afd78['length']-0x8),0x10),_0x235e85={..._0x5d78ac,'jti':_0x3afd78['substring'](0x0,_0x3afd78['length']-0x8)};return delete _0x235e85['vc'],_0x538ad9(_0x235e85)==_0x209254;}}}async function _0x835f87(){let _0x5deb7d=!0x0;try{const [_0x2f898f,_0x5ba9a8,_0x8a395]=_0xe45b36['split']('.');return _0x1c4265(_0x2f898f),await _0x430f3a(_0x2f898f,_0x5ba9a8,_0x8a395),_0x5deb7d;}catch{return!0x1;}function _0x1c4265(_0x19fadd){const _0x2abba1=_0x53e05a(_0x19fadd);_0x2abba1&&'ES256'==_0x2abba1['alg']||(_0x5deb7d=!0x1);}async function _0x430f3a(_0x2f0d5d,_0x4e7619,_0x14f218){const _0x1c3904=window['Uint8Array']['from'](_0x2ed528(_0x14f218),_0x4287a7=>_0x4287a7['charCodeAt'](0x0)),_0xf4edd7=new window['TextEncoder']()['encode'](_0x2f0d5d+'.'+_0x4e7619),_0x1a3763=window['crypto']['subtle'];if(!_0x1a3763)return;const _0x5e3338=await _0x1a3763['importKey']('jwk',_0x16721c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1a3763['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e3338,_0x1c3904,_0xf4edd7)||(_0x5deb7d=!0x1);}}function _0x53e05a(_0x18b5f9){return _0x18b5f9['startsWith']('ey')?JSON['parse'](_0x2ed528(_0x18b5f9)):null;}function _0x2ed528(_0x4f4938){return window['atob'](_0x4f4938['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x538ad9(_0x318f7c){let _0xff9eb4=0x1505;function _0x38c2cf(_0x369c80){for(let _0x178e1b=0x0;_0x178e1b<_0x369c80['length'];_0x178e1b++){const _0x50686b=_0x369c80['charCodeAt'](_0x178e1b);_0xff9eb4=(_0xff9eb4<<0x5)+_0xff9eb4+_0x50686b,_0xff9eb4&=_0xff9eb4;}}function _0x2c12dc(_0x1d4f01){Array['isArray'](_0x1d4f01)?_0x1d4f01['forEach'](_0x2c12dc):_0x1d4f01&&'object'==typeof _0x1d4f01?Object['entries'](_0x1d4f01)['sort']()['forEach'](([_0x23baa6,_0x217fea])=>{_0x38c2cf(_0x23baa6),_0x2c12dc(_0x217fea);}):_0x38c2cf(window['String'](_0x1d4f01));}return _0x2c12dc(_0x318f7c),_0xff9eb4>>>0x0;}function _0x5ce06c(_0x2c4a13){return _0x2c4a13['toString'](0x10)['padStart'](0x8,'0');}function _0x163873(_0x706864){return _0x706864['split']('')['reverse']()['join']('');}function _0x509c73(_0x219a67){return _0x226420['plugins']['has'](_0x219a67);}function _0x26270f(_0x43c0e0){return _0x226420['plugins']['get'](_0x43c0e0);}function _0x160afa(){}_0x1750c1(await _0x4e5db8());}(this);}set adapter(_0x160fe8){if(this['_adapter'])throw new _0x4ce3e1('track-changes-adapter-already-set',this);this['_adapter']=_0x160fe8;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1ad71a=!0x1,toJSON:_0x3b0a2e=!0x1}={}){const _0x225195=[];for(const _0x5246c8 of this['_suggestions']['values']())_0x1ad71a&&!_0x5246c8['isInContent']||_0x225195['push'](_0x5246c8);return _0x3b0a2e?_0x225195['map'](_0x4af92a=>_0x4af92a['toJSON']()):_0x225195;}getSuggestion(_0x16cf20){const _0xa89856=this['_suggestions']['get'](_0x16cf20);if(!_0xa89856)throw new _0x4ce3e1('track-changes-suggestion-not-found',this);return _0xa89856;}hasSuggestion(_0x2972aa){return this['_suggestions']['has'](_0x2972aa);}addSuggestionData(_0x44bdae){const {authorId:_0x1ab59b,id:_0x2a6cc5,originalSuggestionId:_0x1a9197,attributes:_0x1c7ee6}=_0x44bdae,[_0x3b60a8,_0x482657]=_0x44bdae['type']['split'](':'),_0x53ec77=this['_suggestions']['get'](_0x2a6cc5)||this['_createSuggestion'](_0x3b60a8,_0x482657,_0x2a6cc5,_0x1ab59b,_0x1c7ee6,_0x1a9197);if(this['_addThreadToSuggestion'](_0x53ec77),this['_checkSuggestionCorrectness'](_0x53ec77,_0x3b60a8,_0x482657||null,_0x1ab59b),_0x53ec77['createdAt']=_0x44bdae['createdAt'],_0x53ec77['_isDataLoaded']=!0x0,_0x1c7ee6&&_0x1c7ee6['@external']){const _0x2609c6=_0x1c7ee6['@external'],_0x52e6d4=this['_getExternalAuthor'](_0x2609c6['authorName']);_0x53ec77['authoredAt']=_0x2609c6['createdAt'],_0x53ec77['author']=_0x52e6d4;}else _0x53ec77['authoredAt']=_0x44bdae['createdAt'];switch(_0x44bdae['data']&&(_0x53ec77['data']=_0x44bdae['data']),_0x44bdae['attributes']&&(_0x53ec77['attributes']=_0x44bdae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53ec77['_saved']=!0x0),this['_suggestionState']['get'](_0x53ec77)){case'notReady':this['_suggestionState']['set'](_0x53ec77,'dataReady');break;case'markerReady':_0x53ec77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53ec77])),this['_refreshSuggestionsChain'](new Set([_0x53ec77])),this['_suggestionState']['set'](_0x53ec77,'ready'),this['fire']('suggestionLoaded',_0x53ec77)):this['_suggestionState']['set'](_0x53ec77,'removed');}return _0x53ec77;}acceptSuggestion(_0x38cd6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a20e0 of _0x38cd6f['getAllAdjacentSuggestions']())_0x2a20e0['accept']();});});}discardSuggestion(_0x52cc1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d0631 of _0x52cc1e['getAllAdjacentSuggestions']())_0x2d0631['discard']();});});}['enableCommand'](_0x117994,_0x50af5e){const _0x463d30=this['editor']['commands']['get'](_0x117994);if(!_0x463d30)throw new _0x4ce3e1('track-changes-command-not-found',this,{'commandName':_0x117994});if(this['_enabledCommands']['has'](_0x463d30))throw new _0x4ce3e1('track-changes-enable-command-twice',this,{'commandName':_0x117994});this['_enabledCommands']['add'](_0x463d30),_0x50af5e&&_0x463d30['on']('execute',(_0x273711,_0x2e9cf1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9cf1['length']>0x0&&_0x2e9cf1[_0x2e9cf1['length']-0x1]&&_0x2e9cf1[_0x2e9cf1['length']-0x1]['forceDefaultExecution']?_0x2e9cf1['pop']():(_0x273711['return']=_0x50af5e((..._0x1050ef)=>_0x463d30['execute'](..._0x1050ef,{'forceDefaultExecution':!0x0}),..._0x2e9cf1),_0x273711['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3ddbe5){let _0x3c5704,_0x2cd51a;const _0x19e903=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c5704=_0x3ddbe5();}catch(_0x2ff273){_0x2cd51a=_0x2ff273;}return _0x19e903||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cd51a&&_0x4ce3e1['rethrowUnexpectedError'](_0x2cd51a,this),_0x3c5704;}markInsertion(_0xa3e3a3,_0x205b9d=null,_0x3e041a={}){if(_0xa3e3a3['isCollapsed'])return null;const _0x2c0c51=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e041a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5696c9,meta:_0x202222}of this['_findSuggestions'](_0xa3e3a3,'insertion'))if(_0x202222['isOwn']){if(!_0x202222['isNextTo']){if(_0x202222['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x5696c9,_0x3e041a))continue;return _0x5696c9;}if(pn(_0x5696c9,_0x3e041a))return _0x5696c9;this['_breakSuggestionMarker'](_0x5696c9,_0xa3e3a3['start'],_0xa3e3a3['end']);break;}if(_0x205b9d==_0x5696c9['subType']&&pn(_0x5696c9,_0x3e041a)){const _0x1d4de4=_0x5696c9['getFirstRange']();return _0x1d4de4['start']['isEqual'](_0xa3e3a3['end'])?this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0xa3e3a3['start'],_0x1d4de4['end'])):this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0x1d4de4['start'],_0xa3e3a3['end'])),_0x5696c9;}}const _0x380d81=_0x1dfb7c(),_0x1cf8f0=_0x2c0c51['id'],_0x46d68e=_0x205b9d?'insertion:'+_0x205b9d:'insertion',_0x1047a1=this['_setSuggestionData']({'id':_0x380d81,'type':_0x46d68e,'createdAt':new Date(),'authorId':_0x1cf8f0,'attributes':_0x3e041a});return this['_addSuggestionMarker'](_0x46d68e,_0x380d81,_0x1cf8f0,_0xa3e3a3),_0x1047a1;}markMultiRangeInsertion(_0x444462,_0x41839c='multi',_0x2e0953={}){const _0x3b6b81=this['editor']['plugins']['get']('Users')['me'],_0x332a17=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41839c,'join');this['_trackingSessionId']&&(_0x2e0953['trackingSessionId']=this['_trackingSessionId']);for(const _0x28b3cd of this['getSuggestions']())if(_0x28b3cd['author']['id']==_0x3b6b81['id']&&'insertion'==_0x28b3cd['type']&&_0x28b3cd['subType']==_0x41839c&&pn(_0x28b3cd,_0x2e0953)&&(_0x332a17(_0x28b3cd['getRanges'](),_0x444462)||_0x332a17(_0x444462,_0x28b3cd['getRanges']()))){for(const _0x225495 of _0x444462)_0x28b3cd['addRange'](_0x225495);return _0x28b3cd;}for(const {suggestion:_0x556260,meta:_0x57ca3f}of this['_findSuggestions'](_0x444462,'insertion')){if(!_0x57ca3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57ca3f['containsRangeInObject'])continue;if(!pn(_0x556260,_0x2e0953))continue;let _0x560926=!0x0;for(const _0x29abb4 of _0x556260['getRanges']())for(const _0x3689a7 of _0x444462)if(!_0x29abb4['containsRange'](_0x3689a7)){_0x560926=!0x1;break;}if(_0x560926)return _0x556260;}const _0x3d925a=_0x1dfb7c(),_0x11ab34=_0x3b6b81['id'],_0x3fbf33='insertion:'+_0x41839c,_0x532149=this['_setSuggestionData']({'id':_0x3d925a,'type':_0x3fbf33,'createdAt':new Date(),'authorId':_0x11ab34,'attributes':_0x2e0953});for(const _0x2033fc of _0x444462)this['_addSuggestionMarker'](_0x3fbf33,_0x3d925a,_0x11ab34,_0x2033fc,Mt['getMultiRangeId']());return _0x532149;}markInlineFormat(_0x260ac3,_0xa525f8,_0x1f4472=null,_0x14256d={}){if(_0x1f4472=_0x1f4472||dn(_0xa525f8),_0x260ac3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14256d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46c14e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');return this['forceDefaultExecution'](()=>_0x46c14e([_0x260ac3],_0xa525f8,_0x14256d)),null;}const _0x18d6f8=this['editor']['plugins']['get']('Users')['me'],_0x563d2c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb83b2c,meta:_0x37871c}of this['_findSuggestions'](_0x260ac3,'insertion'))_0x37871c['isOwn']&&!_0x37871c['isInsideObject']&&_0x563d2c['push'](..._0xb83b2c['getRanges']());}const _0x178bed=function(_0xb7f275,_0x4a0220){const _0x384566=[];for(const _0x4b881b of _0x4a0220){const _0x40a407=_0xb7f275['getIntersection'](_0x4b881b);_0x40a407&&_0x384566['push'](_0x40a407);}return _0x384566;}(_0x260ac3,_0x563d2c),_0x44b0ec=function(_0x515f38,_0xb4787b){const _0x3c8752=[_0x515f38];for(const _0x3691c2 of _0xb4787b){let _0x508ff6=0x0;for(;_0x508ff6<_0x3c8752['length'];){const _0xa45e9=_0x3c8752[_0x508ff6]['getDifference'](_0x3691c2);_0x3c8752['splice'](_0x508ff6,0x1,..._0xa45e9),_0x508ff6+=_0xa45e9['length'];}}return _0x3c8752;}(_0x260ac3,_0x563d2c);_0x178bed['length']&&this['_model']['change'](()=>{for(const _0x50096b of _0x178bed){const _0x4c381c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');this['forceDefaultExecution'](()=>_0x4c381c([_0x50096b],_0xa525f8,_0x14256d));}});for(const _0x43efe3 of _0x44b0ec){let _0x195da6=null,_0x3c1c0e=_0x43efe3['start'],_0x5d30ae=_0x43efe3['end'];for(const {suggestion:_0x2f034b,meta:_0x1b5638}of this['_findSuggestions'](_0x43efe3,'formatInline')){if(!_0x1b5638['isOwn'])continue;if(_0x2f034b['subType']!=_0x1f4472)continue;if(!pn(_0x2f034b,_0x14256d))continue;const _0x3122c0=_0x2f034b['getFirstRange']();if(_0x3122c0['containsRange'](_0x43efe3,!0x0))return null;_0x3c1c0e=_0x3c1c0e['isBefore'](_0x3122c0['start'])?_0x3c1c0e:_0x3122c0['start'],_0x5d30ae=_0x5d30ae['isAfter'](_0x3122c0['end'])?_0x5d30ae:_0x3122c0['end'],_0x195da6?_0x3122c0['start']['isBefore'](_0x195da6['getFirstRange']()['start'])?(_0x195da6['removeMarkers'](),_0x195da6=_0x2f034b):_0x2f034b['removeMarkers']():_0x195da6=_0x2f034b;}const _0x1fd20e=this['_model']['createRange'](_0x3c1c0e,_0x5d30ae);if(_0x195da6)this['_setSuggestionRange'](_0x195da6,_0x1fd20e);else{const _0xb680f3=_0x1dfb7c(),_0x96984f=_0x18d6f8['id'];this['_setSuggestionData']({'id':_0xb680f3,'type':'formatInline:'+_0x1f4472,'data':_0xa525f8,'createdAt':new Date(),'authorId':_0x96984f,'attributes':_0x14256d}),this['_addSuggestionMarker']('formatInline:'+_0x1f4472,_0xb680f3,_0x96984f,_0x1fd20e);}}return null;}markBlockFormat(_0x329809,_0x2d183f,_0x10793e=[],_0xe3b253=null,_0x23cd7a={}){_0x2d183f['formatGroupId']||(_0x2d183f['formatGroupId']=_0x2d183f['commandName']),_0x2d183f['multipleBlocks']=_0x329809['is']('range'),_0xe3b253=_0xe3b253||dn(_0x2d183f);const _0x250cc9=_0x10793e['map'](_0x3b4739=>En(_0x3b4739,this['_model'])),_0x5cad0d=_0x329809['is']('range')?_0x329809:En(_0x329809,this['_model']);if(this['_trackingSessionId']&&(_0x23cd7a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x447013=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x447013([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}_0x250cc9['push'](_0x5cad0d);let _0xe2adb1=!0x0;for(const _0x21d8da of _0x250cc9)if(!this['_rangeIsInLocalUserInsertion'](_0x21d8da)){_0xe2adb1=!0x1;break;}if(_0xe2adb1&&'always'!==this['_trackFormatChanges']){const _0x429d90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x429d90([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}let _0x5bbcfb=null,_0x1ac2d4=_0x5cad0d['start'],_0x226eb1=_0x5cad0d['end'];for(const {suggestion:_0x592945,meta:_0x7db99e}of this['_findSuggestions'](_0x5cad0d,'formatBlock')){if(!_0x7db99e['isOwn'])continue;if(_0x7db99e['isNextTo']||_0x7db99e['containsRangeInObject']||_0x7db99e['isInsideObject'])continue;if(_0x592945['data']['formatGroupId']!=_0x2d183f['formatGroupId'])continue;if(!pn(_0x592945,_0x23cd7a))continue;const _0x550920=_0x592945['getFirstRange']();if(_0x592945['subType']==_0xe3b253){if(_0x550920['containsRange'](_0x5cad0d,!0x0))return null;_0x1ac2d4=_0x1ac2d4['isBefore'](_0x550920['start'])?_0x1ac2d4:_0x550920['start'],_0x226eb1=_0x226eb1['isAfter'](_0x550920['end'])?_0x226eb1:_0x550920['end'],_0x5bbcfb?_0x550920['start']['isBefore'](_0x5bbcfb['getFirstRange']()['start'])?(_0x5bbcfb['removeMarkers'](),_0x5bbcfb=_0x592945):_0x592945['removeMarkers']():_0x5bbcfb=_0x592945;}else{const _0x555037=_0x5cad0d['getIntersection'](_0x550920);this['_cutOutSuggestionMarker'](_0x592945,_0x555037);}}const _0x1cb665=this['editor']['plugins']['get']('Users')['me'],_0xa45154=_0x1dfb7c(),_0x232bc5=_0x1cb665['id'];if(_0x5bbcfb)return this['_setSuggestionRange'](_0x5bbcfb,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x5bbcfb;{const _0x2bac1f=this['_setSuggestionData']({'id':_0xa45154,'type':'formatBlock:'+_0xe3b253,'data':_0x2d183f,'createdAt':new Date(),'authorId':_0x232bc5,'attributes':_0x23cd7a});return this['_addSuggestionMarker']('formatBlock:'+_0xe3b253,_0xa45154,_0x232bc5,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x2bac1f;}}markMultiRangeBlockFormat(_0x199956,_0x106491,_0x5734d3=[],_0x26902a=null,_0x442a4e={}){_0x106491['formatGroupId']||(_0x106491['formatGroupId']=_0x106491['commandName']);const _0x4b8e0a=_0x199956[0x0];_0x106491['multipleBlocks']=_0x4b8e0a['is']('range'),_0x26902a=_0x26902a||dn(_0x106491);const _0x654097=_0x5734d3['map'](_0x10fd66=>En(_0x10fd66,this['_model'])),_0x3abc29=_0x4b8e0a['is']('range')?_0x199956:_0x199956['map'](_0x5031bc=>En(_0x5031bc,this['_model']));if(this['_trackingSessionId']&&(_0x442a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x34bb6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x34bb6f(_0x3abc29,_0x106491,_0x442a4e)),null;}_0x654097['push'](..._0x3abc29);let _0x52db1e=!0x0;for(const _0x17cd23 of _0x654097)if(!this['_rangeIsInLocalUserInsertion'](_0x17cd23)){_0x52db1e=!0x1;break;}if(_0x52db1e&&'always'!==this['_trackFormatChanges']){const _0x3e8306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x3e8306(_0x3abc29,_0x106491,_0x442a4e)),null;}const _0x3405f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x5124f9 of this['getSuggestions']()){const _0x422a8a=_0x5124f9['data'];if(_0x5124f9['author']['id']!=_0x3405f3['id'])continue;if('formatBlock'!=_0x5124f9['type']||_0x422a8a['formatGroupId']!=_0x106491['formatGroupId'])continue;if(!pn(_0x5124f9,_0x442a4e))continue;const _0x4a9236=_0x5124f9['subType']==_0x26902a;for(let _0x1ae7c1=0x0;_0x1ae7c1<_0x3abc29['length'];_0x1ae7c1++){const _0x57cdb8=_0x3abc29[_0x1ae7c1];for(const _0x2ce648 of _0x5124f9['getMarkers']()){const _0x24f10c=_0x2ce648['getRange']();if(_0x57cdb8['isEqual'](_0x24f10c)){_0x4a9236?(_0x3abc29['splice'](_0x1ae7c1,0x1),_0x1ae7c1--):_0x5124f9['removeMarker'](_0x2ce648['name']);break;}}}}if(0x0==_0x3abc29['length'])return null;const _0x45b896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'join');for(const _0x4c33aa of this['getSuggestions']()){const _0xf470c7=_0x4c33aa['data'];if(_0x4c33aa['author']['id']==_0x3405f3['id']&&('formatBlock'==_0x4c33aa['type']&&_0xf470c7['formatGroupId']==_0x106491['formatGroupId']&&_0x4c33aa['subType']==_0x26902a&&pn(_0x4c33aa,_0x442a4e)&&(_0x45b896(_0x4c33aa['getRanges'](),_0x3abc29)||_0x45b896(_0x3abc29,_0x4c33aa['getRanges']())))){for(const _0xd7a89 of _0x3abc29)_0x4c33aa['addRange'](_0xd7a89);return _0x4c33aa;}}const _0x251791=_0x1dfb7c(),_0xf9f70a=_0x3405f3['id'],_0x172881='formatBlock:'+_0x26902a,_0x37bff5=this['_setSuggestionData']({'id':_0x251791,'type':_0x172881,'data':_0x106491,'createdAt':new Date(),'authorId':_0xf9f70a,'attributes':_0x442a4e});for(const _0xac8ddc of _0x3abc29)this['_addSuggestionMarker'](_0x172881,_0x251791,_0xf9f70a,_0xac8ddc,Mt['getMultiRangeId']());return _0x37bff5;}markDeletion(_0x3f09a1,_0x74e79d=null,_0x1c4436={}){if(_0x3f09a1['isCollapsed'])return null;const _0x4fc682=this['editor']['plugins']['get']('Users')['me'],_0x1613a2=new ot(_0x3f09a1['start'],_0x3f09a1['end']);this['_trackingSessionId']&&(_0x1c4436['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c1e4f,meta:_0x245c6c}of this['_findSuggestions'](_0x1613a2,'insertion'))if(_0x245c6c['isOwn']&&!_0x245c6c['isNextTo']){if(_0x1c1e4f['isMultiRange']){const _0xd6a570=_0x1c1e4f['getRanges']()['filter'](_0x45ce62=>'$graveyard'!=_0x45ce62['root']['rootName']);if(_0xd6a570['every'](_0x150c21=>_0x1613a2['containsRange'](_0x150c21,!0x0))&&_0x1c1e4f['discard'](),_0xd6a570['some'](_0x1af1f7=>_0x1af1f7['containsRange'](_0x1613a2,!0x0))){const _0x1fe8ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x74e79d,'accept');return this['forceDefaultExecution'](()=>_0x1fe8ba([_0x1613a2],null,_0x1c4436)),null;}}else{const _0x4f50e9=_0x1613a2['getIntersection'](_0x1c1e4f['getFirstRange']());null!==_0x4f50e9&&_0x1c1e4f['_onDiscard']([_0x4f50e9],null,_0x1c4436);}}if(_0x1613a2['detach'](),_0x1613a2['isCollapsed']||'$graveyard'==_0x1613a2['root']['rootName'])return null;let _0x30376f=null,_0x1148a6=_0x1613a2['start'],_0x1c81d7=_0x1613a2['end'];const _0x74beac=this['_findSuggestions'](_0x1613a2,'deletion');for(const {suggestion:_0x4b60e2,meta:_0x534675}of _0x74beac){const _0x28821a=this['_model']['createRange'](_0x1148a6,_0x1c81d7);if(_0x534675['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534675['containsRangeInObject']&&!_0x534675['isInsideObject'])){if(_0x4b60e2['isMultiRange']){if(!pn(_0x4b60e2,_0x1c4436))continue;let _0x268cd9=!0x0;for(const _0x904de8 of _0x4b60e2['getRanges']()){if(_0x904de8['containsRange'](_0x28821a,!0x0))return _0x4b60e2;_0x28821a['containsRange'](_0x904de8)||(_0x268cd9=!0x1);}_0x268cd9&&_0x4b60e2['discard']();}else{const _0xfae59e=_0x4b60e2['getFirstRange']();if(_0xfae59e['containsRange'](_0x28821a,!0x0))return _0x4b60e2;if(!pn(_0x4b60e2,_0x1c4436)){_0x28821a['containsRange'](_0xfae59e)?_0x4b60e2['removeMarkers']():_0xfae59e['containsPosition'](_0x1148a6)?_0x1148a6=_0xfae59e['end']:_0xfae59e['containsPosition'](_0x1c81d7)&&(_0x1c81d7=_0xfae59e['start']);continue;}_0x1148a6=_0x1148a6['isBefore'](_0xfae59e['start'])?_0x1148a6:_0xfae59e['start'],_0x1c81d7=_0x1c81d7['isAfter'](_0xfae59e['end'])?_0x1c81d7:_0xfae59e['end'],_0x1c4436=Object['assign']({},_0x4b60e2['attributes']),_0x30376f?_0xfae59e['start']['isBefore'](_0x30376f['getFirstRange']()['start'])?(_0x30376f['removeMarkers'](),_0x30376f=_0x4b60e2):_0x4b60e2['removeMarkers']():_0x30376f=_0x4b60e2;}}}if(_0x30376f)return this['_setSuggestionRange'](_0x30376f,this['_model']['createRange'](_0x1148a6,_0x1c81d7)),_0x30376f;{const _0x3c81c7=_0x1dfb7c(),_0x414609=this['_model']['createRange'](_0x1148a6,_0x1c81d7),_0x4d0724=_0x4fc682['id'],_0x5704ab=_0x74e79d?'deletion:'+_0x74e79d:'deletion',_0x3ebb79=this['_setSuggestionData']({'id':_0x3c81c7,'type':_0x5704ab,'createdAt':new Date(),'authorId':_0x4d0724,'attributes':_0x1c4436});return this['_addSuggestionMarker'](_0x5704ab,_0x3c81c7,_0x4d0724,_0x414609),_0x3ebb79;}}markMultiRangeDeletion(_0x83bfd1,_0x45ba95='multi',_0x213798={}){const _0x2aa4c0=this['editor']['plugins']['get']('Users')['me'],_0x5d06ee=_0x83bfd1['map'](_0x33821d=>new ot(_0x33821d['start'],_0x33821d['end'])),_0x5b026b=new Set();this['_trackingSessionId']&&(_0x213798['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x347c9f,meta:_0x38ada9}of this['_findSuggestions'](_0x5d06ee,'insertion'))_0x38ada9['isOwn']&&!_0x38ada9['isNextTo']&&_0x5b026b['add'](_0x347c9f);for(const _0x4ddea3 of _0x5b026b)if(_0x4ddea3['isMultiRange']){const _0x23558e=_0x4ddea3['getRanges']();if(_0x4ddea3['attributes']&&_0x4ddea3['attributes']['skipNestingCheck']||_0x23558e['every'](_0x5f599a=>_0x5d06ee['some'](_0x359f5b=>_0x359f5b['containsRange'](_0x5f599a,!0x0)))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x17fa6e=>_0x23558e['some'](_0x982ba0=>_0x982ba0['containsRange'](_0x17fa6e,!0x0)))){const _0x208a85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x208a85(_0x83bfd1,null,_0x213798)),null;}}else{const _0x588ec5=_0x4ddea3['getFirstRange']();if(_0x5d06ee['some'](_0xcc8b86=>_0xcc8b86['containsRange'](_0x588ec5,!0x0))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x47f3a7=>_0x588ec5['containsRange'](_0x47f3a7,!0x0))){const _0x12cb29=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x12cb29(_0x5d06ee,null,_0x213798)),null;}}const _0x443350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'join');let _0x159010=null;for(const _0x21b30a of this['getSuggestions']())if(_0x21b30a['author']['id']==_0x2aa4c0['id']&&_0x21b30a['isInContent']&&'deletion'==_0x21b30a['type']&&_0x21b30a['subType']==_0x45ba95&&pn(_0x21b30a,_0x213798)&&(_0x443350(_0x21b30a['getRanges'](),_0x5d06ee)||_0x443350(_0x5d06ee,_0x21b30a['getRanges']()))){if(_0x159010){if(_0x21b30a['commentThread']&&_0x21b30a['commentThread']['length'])continue;for(const _0xb32d30 of _0x21b30a['getRanges']())_0x159010['isIntersectingWithRange'](_0xb32d30)||_0x159010['addRange'](_0xb32d30);_0x21b30a['removeMarkers']();}else{_0x159010=_0x21b30a;for(const _0x48e4b9 of _0x5d06ee)_0x21b30a['isIntersectingWithRange'](_0x48e4b9)||_0x21b30a['addRange'](_0x48e4b9);}}if(_0x159010)return _0x159010;_0x5b026b['clear']();for(const {suggestion:_0x4119ac,meta:_0x110574}of this['_findSuggestions'](_0x5d06ee,'deletion'))_0x110574['isOwn']&&(this['_mergeNestedSuggestions']||!_0x110574['containsRangeInObject']&&!_0x110574['isInsideObject'])&&pn(_0x4119ac,_0x213798)&&_0x5b026b['add'](_0x4119ac);for(const _0x3b00f6 of _0x5b026b){const _0x25f378=_0x3b00f6['getRanges']();if((!_0x213798||!_0x213798['skipNestingCheck'])&&_0x5d06ee['every'](_0x309f65=>_0x25f378['some'](_0x17ce43=>_0x17ce43['containsRange'](_0x309f65,!0x0))))return _0x3b00f6;_0x3b00f6['attributes']&&_0x3b00f6['attributes']['skipNestingCheck']||_0x25f378['every'](_0x5020f9=>_0x5d06ee['some'](_0x588e92=>_0x588e92['containsRange'](_0x5020f9,!0x0)))&&_0x3b00f6['discard']();}const _0x2e92c5=_0x1dfb7c(),_0x3ca9b2=_0x2aa4c0['id'],_0x2350e5='deletion:'+_0x45ba95,_0x46b377=this['_setSuggestionData']({'id':_0x2e92c5,'type':_0x2350e5,'createdAt':new Date(),'authorId':_0x3ca9b2,'attributes':_0x213798});for(const _0x45179d of _0x5d06ee)_0x45179d['detach'](),_0x45179d['isCollapsed']||'$graveyard'==_0x45179d['root']['rootName']||this['_addSuggestionMarker'](_0x2350e5,_0x2e92c5,_0x3ca9b2,_0x45179d,Mt['getMultiRangeId']());return _0x46b377;}markAttributeChange(_0xdaa491,_0x3922c7,_0x1efd2e,_0x273578,_0x15cc9d){if(_0xdaa491['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x29e6a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x29d0dc=Array['from'](this['_suggestions']['values']())['filter'](_0x2abda3=>'attribute'==_0x2abda3['type']&&_0x2abda3['data']['key']==_0x3922c7&&_0x2abda3['isIntersectingWithRange'](_0xdaa491));if(this['_trackingSessionId']&&(_0x15cc9d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xdbd5c=this['_findSuggestions'](_0xdaa491,'insertion')['filter'](({meta:_0x2b7905})=>_0x2b7905['isOwn']&&!_0x2b7905['isInsideObject']&&!_0x2b7905['isNextTo'])['map'](({suggestion:_0x37bbb8})=>_0x37bbb8);_0x29d0dc['unshift'](..._0xdbd5c);}const _0x14c070=new Map([[_0xdaa491,_0x1efd2e]]);for(const _0x20e1a2 of _0x29d0dc){const _0x4aa676='attribute'==_0x20e1a2['type']?_0x20e1a2['data']['oldValue']:void 0x0,_0x1f55c2=_0x20e1a2['getFirstRange'](),_0x48cdb0=Array['from'](_0x14c070['keys']())['find'](_0x3e68a6=>_0x3e68a6['isIntersecting'](_0x1f55c2));if(!_0x48cdb0)continue;const _0x479a3b=_0x48cdb0['getDifference'](_0x1f55c2);this['_suggestionsConversion']['isBlockAttribute'](_0x3922c7)&&'insertion'==_0x20e1a2['type']&&0x0!=_0x479a3b['length']||(_0x14c070['delete'](_0x48cdb0),_0x479a3b['forEach'](_0x587f33=>{_0x14c070['set'](_0x587f33,_0x1efd2e);}),'insertion'!=_0x20e1a2['type']&&_0x4aa676!=_0x273578&&_0x14c070['set'](_0x48cdb0['getIntersection'](_0x1f55c2),_0x4aa676));}const _0x197846=[];for(const [_0x1c2a0a,_0x37c25c]of _0x14c070){const _0x25f784=_0x1dfb7c(),_0x4221ef={'key':_0x3922c7,'oldValue':_0x37c25c,'newValue':_0x273578};_0x3922c7['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':_0x3922c7});const _0x43ada5=('attribute:'+_0x3922c7+'|'+dn({'newValue':_0x273578}))['substring'](0x0,0x3c),_0x1a15d2=this['_setSuggestionData']({'id':_0x25f784,'type':_0x43ada5,'data':_0x4221ef,'createdAt':new Date(),'authorId':_0x29e6a1,'attributes':_0x15cc9d});_0x197846['push'](_0x1a15d2),this['_addSuggestionMarker'](_0x43ada5,_0x25f784,_0x29e6a1,_0x1c2a0a);}return _0x197846;}enableDefaultAttributesIntegration(_0x237ba2){this['enableCommand'](_0x237ba2,(_0x4eb20a,..._0xa19bd4)=>{this['recordAttributeChanges'](()=>{_0x4eb20a(..._0xa19bd4);});});}startTrackingSession(_0x2a0656){return this['_trackingSessionId']=void 0x0!==_0x2a0656?_0x2a0656:_0x1dfb7c(),this['_trackingSessionId'];}_getAttributeKey(_0x4818ba){return'attribute'==_0x4818ba['type']?In(_0x4818ba['subType']):null;}_applyOperationsAsSuggestions(_0x76ae84){if(0x0==_0x76ae84['length'])return;const _0x490835=this['editor'],_0x1ee45a=_0x490835['plugins']['get'](_0x140123),_0x3428af=[],_0x3d2772=_0x4d84e6=>{const _0x39b47=_0x4d84e6['_aiSource'];return _0x39b47?{'@ai':{'type':_0x39b47}}:{};},_0x5a3bea=(_0x3eab85,_0x415f4c,_0x1be5ca)=>{for(let _0x113284=_0x415f4c;_0x113284<_0x3eab85['operations']['length'];_0x113284++){const _0x5ae736=_0x3eab85['operations'][_0x113284];'marker'===_0x5ae736['type']&&(_0x5ae736['_aiSource']=_0x1be5ca);}};_0x490835['model']['change'](_0x59b048=>{for(let _0xdcb5b3=0x0;_0xdcb5b3<_0x76ae84['length'];_0xdcb5b3++){const _0x16c61b=_0x76ae84[_0xdcb5b3],_0x2c056a=_0x16c61b['_aiSource'],_0x8ab46f=_0x59b048['batch']['operations']['length'];if(_0x16c61b['baseVersion']=_0x490835['model']['document']['version'],_0x16c61b['isDocumentOperation']=!0x0,!_0x39c933(_0x16c61b)){if(_0x1ee45a['isMarkedRemoveOperation'](_0x16c61b)){const _0x33aeec=_0x42ced4(_0x16c61b['newRange'],_0x490835['model']);_0x3428af['unshift']({'range':ot['fromRange'](_0x33aeec),'opAttributes':_0x3d2772(_0x16c61b),'aiSource':_0x2c056a});}else{switch(_0x16c61b['type']){case'rename':{const _0xbb9a2c=_0x16c61b['oldName'],_0x2956dd=_0x16c61b['newName'];if(_0xbb9a2c==_0x2956dd)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2a2159='$elementName',_0x5b6f26=_0x16c61b['position'],_0x368ba5=_0x490835['model']['createRange'](_0x5b6f26,_0x490835['model']['createPositionAt'](_0x5b6f26['nodeAfter'],'end'));this['markAttributeChange'](_0x368ba5,_0x2a2159,_0xbb9a2c,_0x2956dd,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xd59241=_0x16c61b['oldValue'],_0x47eab8=_0x16c61b['newValue'];if(_0xd59241==_0x47eab8)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2e2cf5=_0x16c61b['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e2cf5))break;const _0x3242a0=_0x42ced4(_0x16c61b['range'],_0x490835['model']);this['markAttributeChange'](_0x3242a0,_0x2e2cf5,_0xd59241,_0x47eab8,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'insert':{if(_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b),_0x76ae84[_0xdcb5b3+0x1]&&'move'==_0x76ae84[_0xdcb5b3+0x1]['type'])break;const _0x68e97f=_0x16c61b['position'],_0x860c6a=_0x16c61b['howMany'],_0x594123=_0x42ced4(_0x490835['model']['createRange'](_0x68e97f,_0x68e97f['getShiftedBy'](_0x860c6a)),_0x490835['model']);this['markInsertion'](_0x594123,null,{..._0x3d2772(_0x16c61b)});break;}case'split':{_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0xe10b98=_0x16c61b['splitPosition'],_0x561378=_0x16c61b['moveTargetPosition'],_0x1027b0=_0x490835['model']['createRange'](_0xe10b98,_0x561378);this['markInsertion'](_0x1027b0,null,{..._0x3d2772(_0x16c61b)});break;}case'move':case'remove':_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);}_0x2c056a&&_0x5a3bea(_0x59b048['batch'],_0x8ab46f,_0x2c056a);}}}for(const {range:_0x5f0b8d,opAttributes:_0x3a9d54,aiSource:_0x5cdd15}of _0x3428af){const _0x4e6add=_0x59b048['batch']['operations']['length'];_0x5f0b8d['detach'](),this['markDeletion'](_0x5f0b8d,null,{..._0x3a9d54}),_0x5cdd15&&_0x5a3bea(_0x59b048['batch'],_0x4e6add,_0x5cdd15);}});}_setSuggestionRange(_0x1ec67c,_0x1ad4b1){const _0x40844f=_0x1ec67c['getFirstMarker']();this['_model']['change'](_0x3802d5=>{_0x3802d5['updateMarker'](_0x40844f,{'range':_0x1ad4b1});});}_addThreadToSuggestion(_0x61dffe){const _0x1f16a0=_0x61dffe['id'],_0x5dbb4e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f16a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5dbb4e,'threadId':_0x1f16a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3211c4=this['_commentsRepository']['getCommentThread'](_0x1f16a0);_0x3211c4['unbind']('isRemovable'),_0x3211c4['isRemovable']=!0x1,_0x61dffe['commentThread']=_0x3211c4;}_checkSuggestionCorrectness(_0x1414bd,_0x52abe9,_0x1e9e5c,_0x2b8c7d){if(_0x1414bd['type']!=_0x52abe9||_0x1414bd['subType']!=_0x1e9e5c||_0x1414bd['creator']['id']!=_0x2b8c7d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ce3e1('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x31f2e6,_0x439e10){const _0x43700b=_0x31f2e6['getFirstRange']();if(_0x439e10['isEqual'](_0x43700b))_0x31f2e6['removeMarkers']();else{if(_0x43700b['containsRange'](_0x439e10)){const _0x24d9e0=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0x24d9e0));const _0x264127=_0x1dfb7c(),_0x4a344b=_0x31f2e6['creator']['id'],_0x147e61=_0x31f2e6['type']+':'+_0x31f2e6['subType'];this['_setSuggestionData']({'id':_0x264127,'type':_0x147e61,'createdAt':new Date(),'authorId':_0x4a344b,'data':_0x31f2e6['data'],'attributes':_0x31f2e6['attributes']});const _0x25bd94=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after'),_0x4d3090=this['_model']['createRange'](_0x25bd94,_0x43700b['end']);this['_addSuggestionMarker'](_0x147e61,_0x264127,_0x4a344b,_0x4d3090);}else{if(_0x43700b['containsPosition'](_0x439e10['start'])){const _0xe1ea3a=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0xe1ea3a));}else{const _0x138506=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x138506,_0x43700b['end']));}}}}_rangeIsInLocalUserInsertion(_0xa8d964){for(const {suggestion:_0x5aeb39,meta:_0x32138e}of this['_findSuggestions'](_0xa8d964,'insertion')){if(!_0x32138e['isOwn'])continue;const _0x362512=_0x5aeb39['getRanges']();for(const _0x445aca of _0x362512)if(!_0xa8d964['getDifference'](_0x445aca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x12f2c0){return this['editor']['plugins']['get']('Users')['getUser'](_0x12f2c0);}_getExternalAuthor(_0x3d77d2){const _0x303f7b=this['editor']['plugins']['get']('Users'),_0xec3666=_0x86ba89('external:'+_0x3d77d2),_0x52defa=_0x303f7b['getUser'](_0xec3666);return _0x52defa||_0x303f7b['addUser']({'id':_0xec3666,'name':_0x3d77d2});}_createSuggestion(_0x240d70,_0xacecb2,_0x42ac37,_0x403c8e,_0x3533db,_0x4a50ff){const _0x3fe53b=this['_getAuthorFromId'](_0x403c8e);if(!_0x3fe53b)throw new _0x4ce3e1('track-changes-user-not-found',this,{'authorId':_0x403c8e,'suggestionId':_0x42ac37});const _0x134944=this['_suggestionFactory']['buildSuggestion'](_0x240d70,_0xacecb2,_0x42ac37,_0x3fe53b,_0x3533db,_0x5d4859=>{this['_updateSuggestionData'](_0x42ac37,{'attributes':_0x5d4859});const _0x4c6a51=this['getSuggestion'](_0x42ac37);this['_joinWithAdjacentSuggestions'](new Set([_0x4c6a51])),this['_refreshSuggestionsChain'](new Set([_0x4c6a51]));},_0x4a50ff);return this['listenTo'](_0x134944,'accept',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x134944,'discard',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ac37,_0x134944),this['_suggestionState']['set'](_0x134944,'notReady'),_0x134944;}_breakSuggestionMarker(_0x3f112d,_0x53a3df,_0xe36246){const _0x124a8e=_0x3f112d['getFirstRange'](),_0x463fa5=_0x124a8e['start'],_0x18f65f=_0x124a8e['end'];this['_setSuggestionRange'](_0x3f112d,this['_model']['createRange'](_0x463fa5,_0x53a3df));const _0x45016a=_0x1dfb7c(),_0x3f3729=_0x3f112d['creator']['id'],_0x28c6d2=_0x3f112d['type']+(_0x3f112d['subType']?':'+_0x3f112d['subType']:'');this['_setSuggestionData']({'id':_0x45016a,'type':_0x28c6d2,'createdAt':new Date(),'authorId':_0x3f3729,'originalSuggestionId':_0x3f112d['_originalSuggestionId']||_0x3f112d['id'],'attributes':_0x3f112d['attributes'],'data':_0x3f112d['data']});const _0x2832ec=this['_getAttributeKey'](_0x3f112d);('formatBlock'==_0x3f112d['type']||_0x2832ec&&this['_suggestionsConversion']['isBlockAttribute'](_0x2832ec))&&(_0xe36246=this['_model']['createPositionBefore'](_0xe36246['parent'])),this['_addSuggestionMarker'](_0x28c6d2,_0x45016a,_0x3f3729,this['_model']['createRange'](_0xe36246,_0x18f65f));}_findSuggestions(_0x2bc07a,_0x39432a=null){const _0x385ec3=[],_0x4a7778=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2bc07a)||(_0x2bc07a=[_0x2bc07a]);for(const _0x408719 of this['getSuggestions']()){if(!_0x408719['isInContent'])continue;if(_0x39432a&&_0x408719['type']!=_0x39432a)continue;let _0xda96b7=!0x1;for(const _0x21b376 of _0x408719['getRanges']()){for(const _0x5f061c of _0x2bc07a){const _0x660877=_0x5f061c['start']['isEqual'](_0x21b376['end'])||_0x5f061c['end']['isEqual'](_0x21b376['start']);if(_0x660877||_0x5f061c['getIntersection'](_0x21b376)){const _0x28ef94=_0x5f061c['containsRange'](_0x21b376)&&cn(this['_model']['schema'],_0x21b376['start'],_0x5f061c),_0x517ce1=_0x21b376['containsRange'](_0x5f061c)&&cn(this['_model']['schema'],_0x5f061c['start'],_0x21b376);_0x385ec3['push']({'suggestion':_0x408719,'meta':{'isOwn':_0x4a7778==_0x408719['author'],'isNextTo':_0x660877,'isInsideObject':_0x28ef94,'containsRangeInObject':_0x517ce1}}),_0xda96b7=!0x0;break;}}if(_0xda96b7)break;}}return _0x385ec3;}_addSuggestionMarker(_0x2bda86,_0x4c5288,_0x2fb35d,_0x209a7f,_0x4cb7dc){this['_model']['change'](_0x2e527a=>{let _0x1ce8fd='suggestion:'+_0x2bda86+':'+_0x4c5288+':'+_0x2fb35d;_0x4cb7dc&&(_0x1ce8fd=_0x1ce8fd+':'+_0x4cb7dc),_0x2e527a['addMarker'](_0x1ce8fd,{'range':_0x209a7f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x551deb){const _0x5d38e8=_0x551deb['previous'],_0x4cece8=_0x551deb['next'];_0x551deb['previous']=null,_0x551deb['next']=null,null!=_0x5d38e8&&_0x5d38e8['next']==_0x551deb&&(_0x5d38e8['next']=_0x4cece8),null!=_0x4cece8&&_0x4cece8['previous']==_0x551deb&&(_0x4cece8['previous']=_0x5d38e8),'ready'==this['_suggestionState']['get'](_0x551deb)&&(this['_suggestionState']['set'](_0x551deb,'removed'),this['fire']('suggestionUnloaded',_0x551deb,_0x5d38e8,_0x4cece8));}_setSuggestionData(_0x4f24fc){const _0x56cfc7=_0x4f24fc['id'],_0x329856=this['addSuggestionData'](_0x4f24fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1663=this['editor']['plugins']['get']('PendingActions'),_0x974e70=_0x329856['hasComments'],_0x596d5f=_0x329856['subType']?_0x329856['type']+':'+_0x329856['subType']:_0x329856['type'],_0x2d7406=this['editor']['locale'],_0x310b6b=_0x2a1663['add'](Ot(_0x2d7406,'PENDING_ACTION_SUGGESTION')),_0x45e5a9={'id':_0x56cfc7,'type':_0x596d5f,'hasComments':_0x974e70,'data':_0x4f24fc['data']||null,'originalSuggestionId':_0x4f24fc['originalSuggestionId']||null,'attributes':_0x329856['attributes']};this['_adapter']['addSuggestion'](_0x45e5a9)['then'](_0x5ad295=>{_0x329856['_saved']=!0x0,_0x2a1663['remove'](_0x310b6b),_0x5ad295&&_0x5ad295['createdAt']&&(this['_suggestions']['get'](_0x56cfc7)['createdAt']=_0x5ad295['createdAt']);})['catch'](_0x5333a6=>{throw _0x78b2a9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x329856['discard']();}),_0x329856['stopListening'](),this['_suggestions']['delete'](_0x329856['id']),this['_suggestionState']['delete'](_0x329856),_0x5333a6;});}return _0x329856;}_updateSuggestionData(_0x47922e,_0x37f1c4){const _0x200e84=this['editor']['plugins']['get']('PendingActions'),_0x3ee651=this['getSuggestion'](_0x47922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ee651['_saved']){const _0x440325=_0x200e84['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47922e,_0x37f1c4)['then'](()=>{_0x200e84['remove'](_0x440325);});}else _0x3ee651['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47922e,_0x37f1c4);});}}_getSuggestionData(_0x5db931){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ce3e1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5db931);}_handleNewSuggestionMarker(_0x4b9572){const {id:_0x5a072d,type:_0x4c8bb1,subType:_0x433f92,authorId:_0x553c19}=et(_0x4b9572),_0x46d2ba=this['_suggestions']['get'](_0x5a072d)||this['_createSuggestion'](_0x4c8bb1,_0x433f92,_0x5a072d,_0x553c19,{});switch(this['_checkSuggestionCorrectness'](_0x46d2ba,_0x4c8bb1,_0x433f92,_0x553c19),this['_suggestionState']['get'](_0x46d2ba)){case'notReady':this['_getSuggestionData'](_0x5a072d)['then'](_0x35f2f3=>{let _0x11c0f1=Promise['resolve']();_0x35f2f3['hasComments']&&(_0x11c0f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a072d})),_0x11c0f1['then'](()=>{this['addSuggestionData'](_0x35f2f3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x46d2ba,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a072d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x46d2ba,'ready'),this['fire']('suggestionLoaded',_0x46d2ba);break;case'ready':this['fire']('suggestionChanged',_0x46d2ba);}return _0x46d2ba['addMarkerName'](_0x4b9572),_0x46d2ba;}_refreshSuggestionsChain(_0x329697){const _0x5c9dae=Array['from'](_0x329697),_0x125d50=_0x5c9dae['filter'](_0x872524=>'attribute'==_0x872524['type']);this['_refreshAttributeSuggestionsChain'](_0x125d50);const _0x446067=_0x5c9dae['filter'](_0x1d2ab4=>!_0x1d2ab4['isMultiRange']&&'attribute'!=_0x1d2ab4['type']),_0x39d439=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4735=>!_0x5c4735['isMultiRange']&&'attribute'!=_0x5c4735['type']),_0x12d1a3=_0x39d439['filter'](_0x3a7e20=>!_0x329697['has'](_0x3a7e20)),_0x4c9bbc=new Map(_0x39d439['map'](_0x4cd0c7=>[_0x4cd0c7,this['_suggestionFactory']['getSuggestionCallback'](_0x4cd0c7['type'],_0x4cd0c7['subType'],'chain')])),_0x138b0c=new Map(_0x39d439['map'](_0x2dfce2=>[_0x2dfce2,_0x2dfce2['getFirstRange']()])),_0x5d27d9=new Set(),_0x31d15d=new Set();for(let _0x21d258=0x0;_0x21d258<_0x446067['length'];_0x21d258++)_0x348dbb(_0x446067[_0x21d258],_0x446067,_0x21d258+0x1);for(let _0x29f27b=0x0;_0x29f27b<_0x446067['length'];_0x29f27b++)_0x348dbb(_0x446067[_0x29f27b],_0x12d1a3,0x0);const _0x1add54=new Set();for(let _0x55a451=0x0;_0x55a451<_0x446067['length'];_0x55a451++){const _0x516c8a=_0x446067[_0x55a451];!_0x31d15d['has'](_0x516c8a)&&_0x516c8a['previous']&&(_0x1add54['add'](_0x516c8a['previous']),_0x516c8a['previous']['next']===_0x516c8a&&(_0x516c8a['previous']['next']=null),_0x516c8a['previous']=null),!_0x5d27d9['has'](_0x516c8a)&&_0x516c8a['next']&&(_0x1add54['add'](_0x516c8a['next']),_0x516c8a['next']['previous']===_0x516c8a&&(_0x516c8a['next']['previous']=null),_0x516c8a['next']=null);}function _0x348dbb(_0x1f60ec,_0x3be222,_0xef5ddb){for(let _0x3a58f6=_0xef5ddb;_0x3a58f6<_0x3be222['length'];_0x3a58f6++){const _0x4d60d1=_0x4cf7ed(_0x1f60ec,_0x3be222[_0x3a58f6]);_0x4d60d1&&(_0x4d60d1[0x0]['next']=_0x4d60d1[0x1],_0x4d60d1[0x1]['previous']=_0x4d60d1[0x0],_0x5d27d9['add'](_0x4d60d1[0x0]),_0x31d15d['add'](_0x4d60d1[0x1]));}}function _0x4cf7ed(_0x112f30,_0x2d421f){if(_0x112f30['author']['id']!==_0x2d421f['author']['id'])return null;const _0x2381b5=_0x4c9bbc['get'](_0x112f30)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f));return _0x2381b5&&_0x4c9bbc['get'](_0x2d421f)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f))?_0x2381b5[0x1]['commentThread']&&_0x2381b5[0x1]['commentThread']['length']?null:_0x2381b5:null;}_0x1add54['size']&&this['_refreshSuggestionsChain'](_0x1add54);}_refreshAttributeSuggestionsChain(_0x507a5c){if(0x0==_0x507a5c['length'])return;const _0x1c1822=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd4687a=>'attribute'==_0xd4687a['type']&&_0xd4687a['_isDataLoaded']),_0x4f8bbd=[],_0x4690d8=new Map();for(const _0x448d84 of _0x1c1822){const _0x20b29f=_0x86ba89(_0x448d84['attributes']);_0x4690d8['has'](_0x20b29f)||(_0x4690d8['set'](_0x20b29f,_0x4f8bbd['length']),_0x4f8bbd['push']([])),_0x4f8bbd[_0x4690d8['get'](_0x20b29f)]['push'](_0x448d84);}!(function(){_0x4f8bbd['sort']((_0x3ef5d8,_0x59e1ba)=>{const _0xc91e77=_0x3ef5d8[0x0]['createdAt'],_0x26d20a=_0x59e1ba[0x0]['createdAt'];return _0xc91e77==_0x26d20a?_0x3ef5d8[0x0]['attributes']['groupId']<_0x59e1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0xc91e77<_0x26d20a?-0x1:0x1;});for(const _0xe6fcc2 of _0x4f8bbd)_0xe6fcc2['sort']((_0x6b79e2,_0x3570e0)=>_0x6b79e2['id']<_0x3570e0['id']?-0x1:0x1);}());for(let _0x5914ce=0x0;_0x5914ce<_0x4f8bbd['length'];_0x5914ce++){if(0x0==_0x4f8bbd[_0x5914ce]['length'])continue;const _0x1bd776=[];for(let _0x2ae89d=_0x5914ce+0x1;_0x2ae89d<_0x4f8bbd['length'];_0x2ae89d++)0x0!=_0x4f8bbd[_0x2ae89d]['length']&&_0x13ac2d(_0x4f8bbd[_0x5914ce],_0x4f8bbd[_0x2ae89d])&&_0x1bd776['push'](_0x2ae89d);for(const _0x5260ed of _0x1bd776)_0x4f8bbd[_0x5914ce]=_0x4f8bbd[_0x5914ce]['concat'](_0x4f8bbd[_0x5260ed]),_0x4f8bbd[_0x5260ed]=[];}for(const _0x1d4c5b of _0x4f8bbd)for(let _0x2072f1=0x0;_0x2072f1<_0x1d4c5b['length'];_0x2072f1++){const _0x6e439a=_0x1d4c5b[_0x2072f1+0x1]||null;_0x1d4c5b[_0x2072f1]['next']!==_0x6e439a&&(_0x1d4c5b[_0x2072f1]['next']=_0x6e439a);}for(const _0x47b59e of _0x4f8bbd)for(let _0xf77bea=0x0;_0xf77bea<_0x47b59e['length'];_0xf77bea++){const _0x51973e=_0x47b59e[_0xf77bea-0x1]||null;_0x47b59e[_0xf77bea]['previous']!==_0x51973e&&(_0x47b59e[_0xf77bea]['previous']=_0x51973e);}function _0x13ac2d(_0xf3ab5a,_0x27fdfd){return(_0xf3ab5a[0x0]['attributes']['groupId']===_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['author']===_0x27fdfd[0x0]['author'])&&(!!function(_0x1d1b61,_0x37a8a3){return!_0x1d1b61['hasComments']&&!_0x37a8a3['hasComments']||(!_0x1d1b61['hasComments']||!_0x37a8a3['hasComments'])&&(!!(_0x1d1b61['hasComments']&&_0x37a8a3['createdAt']<_0x1d1b61['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x37a8a3['hasComments']&&_0x1d1b61['createdAt']<_0x37a8a3['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xf3ab5a[0x0],_0x27fdfd[0x0])&&(!!lt(ut(_0xf3ab5a[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x27fdfd[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xf3ab5a[0x0]['attributes']['groupId']==_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['attributes']['trackingSessionId']===_0x27fdfd[0x0]['attributes']['trackingSessionId']&&(!!_0xf3ab5a['every'](_0x2a2228=>_0x27fdfd['some'](_0x50042c=>_0x2a2228['getFirstRange']()['isEqual'](_0x50042c['getFirstRange']())))&&_0x27fdfd['every'](_0x578be3=>_0xf3ab5a['some'](_0x3fbc1a=>_0x578be3['getFirstRange']()['isEqual'](_0x3fbc1a['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x4a2a55){const _0x3824b8=Array['from'](_0x4a2a55),_0x2e758e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e7a99=_0x2e758e['filter'](_0x11badc=>!_0x4a2a55['has'](_0x11badc)),_0x127781=new Map(_0x3824b8['map'](_0x5e2b45=>[_0x5e2b45,this['_suggestionFactory']['getSuggestionCallback'](_0x5e2b45['type'],_0x5e2b45['subType'],'join')])),_0x457e53=new Map(_0x2e758e['map'](_0x162a23=>[_0x162a23,_0x162a23['getRanges']()]));for(let _0x43f6c2=0x0;_0x43f6c2<_0x3824b8['length'];_0x43f6c2++)if(_0xdc98e1(this,_0x3824b8[_0x43f6c2],_0x3824b8,_0x43f6c2+0x1))return!0x0;for(let _0x23e3ff=0x0;_0x23e3ff<_0x3824b8['length'];_0x23e3ff++)if(_0xdc98e1(this,_0x3824b8[_0x23e3ff],_0x5e7a99,0x0))return!0x0;return!0x1;function _0xdc98e1(_0x42e37f,_0xfbf671,_0x3faf12,_0x135757){for(let _0x4e33bf=_0x135757;_0x4e33bf<_0x3faf12['length'];_0x4e33bf++){const _0x53eba1=_0x3faf12[_0x4e33bf];if(_0x53eba1['type']!==_0xfbf671['type']||_0x53eba1['author']['id']!==_0xfbf671['author']['id']||_0x53eba1['subType']!==_0xfbf671['subType'])continue;if(!_n(_0xfbf671,_0x53eba1))continue;if('attribute'==_0xfbf671['type']&&_0xfbf671['data']['oldValue']!=_0x53eba1['data']['oldValue'])continue;if('attribute'==_0xfbf671['type']&&_0x42e37f['_suggestionsConversion']['isBlockAttribute'](_0xfbf671['data']['key']))continue;if('formatBlock'==_0xfbf671['type']){const _0x4190e3=_0x42e37f['editor']['model'],_0xca8081=_0xfbf671['getContainedElement']();if(_0xca8081&&(_0x4190e3['schema']['isObject'](_0xca8081)||_0x4190e3['schema']['isLimit'](_0xca8081)))continue;}const _0x3a4bd7=_0x127781['get'](_0xfbf671),_0x1e56b7=_0x457e53['get'](_0xfbf671),_0x3b8f9e=_0x457e53['get'](_0x53eba1),_0x26d489=_0xfbf671['commentThread']&&_0xfbf671['commentThread']['length'],_0x519530=_0x53eba1['commentThread']&&_0x53eba1['commentThread']['length'];if(!_0x26d489&&_0x3a4bd7(_0x3b8f9e,_0x1e56b7))return _0x42e37f['_joinSuggestions'](_0x53eba1,_0xfbf671),_0x457e53['delete'](_0xfbf671),!0x0;if(!_0x519530&&_0x3a4bd7(_0x1e56b7,_0x3b8f9e))return _0x42e37f['_joinSuggestions'](_0xfbf671,_0x53eba1),_0x457e53['delete'](_0x53eba1),!0x0;}return!0x1;}}_joinSuggestions(_0x3ab375,_0x9e24e3){if(_0x3ab375['isMultiRange']){for(const _0x1d9bb4 of _0x9e24e3['getRanges']())_0x3ab375['addRange'](_0x1d9bb4);}else{const _0x35fe75=_0x9e24e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ab375,this['_model']['createRange'](_0x3ab375['getFirstRange']()['start'],_0x35fe75));}_0x9e24e3['removeMarkers']();}_getMarkerAnnouncementText(_0xc01b03,_0x499762,_0x21fda5){const _0x338252=_0xc01b03['startsWith']('format')||_0xc01b03['startsWith']('attribute')?'FORMATTING':_0xc01b03['toUpperCase']();return Ot(this['editor']['locale'],_0x499762+'_'+_0x338252+'_SUGGESTION_ANNOUNCEMENT',_0x21fda5);}_initAriaMarkerChangeAnnouncements(){const _0x41a71c=this['editor'];if(!_0x41a71c['ui'])return;const {ariaLiveAnnouncer:_0x3d4a7}=_0x41a71c['ui'];nt(this['_model'],({left:_0x20a5e7,entered:_0x2d25fa})=>{for(const _0x4bdba2 of _0x20a5e7){const {group:_0x4e0faf,type:_0x53afda}=et(_0x4bdba2['name']);if('suggestion'===_0x4e0faf){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x53afda,'LEAVE'));break;}}for(const _0x8b4f5b of _0x2d25fa){const {group:_0x26efc0,type:_0x2ba955}=et(_0x8b4f5b['name']);if('suggestion'===_0x26efc0){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x2ba955,'ENTER',_0x217db9(_0x55db56)));break;}}});}_processAttributeChanges(_0x14157d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf1ccca=this['editor'],_0xd1b592=_0xf1ccca['model']['document']['differ']['getChanges']();if(0x0==_0xd1b592['length'])return!0x1;const _0x46b842=[],_0x44b7f6=_0xd1b592['filter'](_0x393517=>'attribute'==_0x393517['type']),_0x2113ad=_0xd1b592['filter'](_0x5298c4=>'insert'==_0x5298c4['type']&&'$text'!=_0x5298c4['name']),_0xcd58d5=_0xd1b592['filter'](_0x49fdcb=>'remove'==_0x49fdcb['type']&&'$text'!=_0x49fdcb['name']);for(const _0x3c694d of _0x44b7f6)_0x46b842['push']({'key':_0x3c694d['attributeKey'],'newValue':_0x3c694d['attributeNewValue'],'oldValue':_0x3c694d['attributeOldValue'],'range':mn(_0x3c694d['range'],_0xf1ccca['model'])});for(const _0x3eb6d9 of _0x2113ad){const _0x5dda5a=_0xcd58d5['find'](_0xb65e75=>_0xb65e75['position']['isEqual'](_0x3eb6d9['position']));_0x5dda5a&&_0x46b842['push']({'key':rn,'newValue':_0x3eb6d9['name'],'oldValue':_0x5dda5a['name'],'range':_0xf1ccca['model']['createRangeOn'](_0x3eb6d9['position']['nodeAfter'])});}return 0x0!=_0x46b842['length']&&this['_reduceExistingSuggestions'](_0x14157d,_0x46b842);}_processAttributeSuggestions(_0x1e0595){let _0x1ac7ce=!0x1;const _0x20194d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d4a0=>_0x25d4a0['data']['newRange']&&_0x25d4a0['name']['startsWith']('suggestion:attribute:'));for(const _0x51b4d5 of _0x20194d){const {subType:_0x221ead,id:_0x369a83}=et(_0x51b4d5['name']),_0x19a422=_0x221ead['split']('|')[0x0];for(const _0x2fa953 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fa953['id']!=_0x369a83&&'attribute'==_0x2fa953['type']&&_0x2fa953['data']&&_0x2fa953['data']['key']==_0x19a422&&_0x2fa953['getFirstRange']()['isIntersecting'](_0x51b4d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fa953,_0x51b4d5['data']['newRange'],_0x1e0595),_0x1ac7ce=!0x0);}return _0x1ac7ce;}recordAttributeChanges(_0x63e66a){this['_recordAttributeSuggestions']=!0x0,_0x63e66a();}_reduceExistingSuggestions(_0x9cf98e,_0x361916){if(0x0==_0x361916['length'])return!0x1;let _0xa15c97=!0x1;for(const _0x24dba9 of _0x361916){const _0x2b8121=this['_findSuggestions'](_0x24dba9['range'],'attribute')['filter'](_0x14e29e=>!_0x14e29e['meta']['isNextTo'])['map'](_0x546245=>_0x546245['suggestion']),_0x282bab=_0x86ba89({'newValue':_0x24dba9['newValue']});_0x2b8121['filter'](_0x5bf1ff=>{const [_0x4073bf,_0x361eb6]=_0x5bf1ff['subType']['split']('|');return _0x4073bf==_0x24dba9['key']&&_0x361eb6!=_0x282bab;})['forEach'](_0x430b86=>{this['_reduceSuggestionAttributeRange'](_0x430b86,_0x24dba9['range'],_0x9cf98e),_0xa15c97=!0x0;});}return _0xa15c97;}_reduceSuggestionAttributeRange(_0xc591c6,_0x1a4bad,_0x271bef){const _0x36a602=_0xc591c6['getFirstRange']()['getDifference'](_0x1a4bad);0x0!==_0x36a602['length']?0x1!==_0x36a602['length']?this['_breakSuggestionMarker'](_0xc591c6,_0x1a4bad['start'],_0x1a4bad['end']):this['_setSuggestionRange'](_0xc591c6,_0x36a602[0x0]):_0x271bef['removeMarker'](_0xc591c6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4468e7){this['_editor']=_0x4468e7,this['_model']=_0x4468e7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x20e7b8,_0x460ed1,_0x5751be,_0x556470,_0x45a170,_0x4f0bce,_0x2a7939){return new Mt(this['_model'],{'type':_0x20e7b8,'subType':_0x460ed1,'id':_0x5751be,'originalSuggestionId':_0x2a7939,'author':_0x556470,'creator':_0x556470,'attributes':_0x45a170,'onAttributesChange':_0x4f0bce,'onAccept':(..._0x146b2f)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'accept')(..._0x146b2f),'onDiscard':(..._0x3c4e79)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'discard')(..._0x3c4e79)});}registerCustomCallback(_0x351aa1,_0x5b5fb5,_0x46366f,_0x32f1a9){const _0x531df1=_0x351aa1+':'+_0x5b5fb5+':'+_0x46366f;this['_customCallbacks']['set'](_0x531df1,_0x32f1a9);}getSuggestionCallback(_0x175f1f,_0x45118a,_0xde7123){const _0x457428=_0x175f1f+':'+_0x45118a+':'+_0xde7123;return this['_customCallbacks']['get'](_0x457428)||this['_defaultCallbacks']['get'](_0x175f1f+':'+_0xde7123);}_registerDefaultCallbacks(){const _0x2f8e5c=()=>!0x1,_0x129c23=_0x380399=>{_0x380399['sort']((_0x445bdf,_0x2ac35d)=>_0x445bdf['start']['isBefore'](_0x2ac35d['start'])?0x1:-0x1),this['_model']['change'](_0x2d6902=>{for(const _0x1f3ef8 of _0x380399){let _0x6dc56d;_0x6dc56d=_0x1f3ef8['end']['isAtEnd']&&_0x1f3ef8['end']['parent']==_0x1f3ef8['start']['nodeAfter']?_0x2d6902['createSelection'](_0x1f3ef8['start']['nodeAfter'],'on'):_0x2d6902['createSelection'](_0x1f3ef8),this['_model']['deleteContent'](_0x6dc56d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x528b81=(_0x2908d6,_0x57f9c8)=>{_0x57f9c8&&this['_model']['change'](_0x210253=>{const {commandName:_0x333f56,commandParams:_0xc25b1b=[]}=_0x57f9c8,_0x40becb=_0x2908d6['map'](_0x38558b=>(ln(_0x38558b)&&(_0x38558b=this['_model']['createRange'](_0x38558b['end'])),_0x38558b))['filter'](_0x1ffae3=>'$graveyard'!==_0x1ffae3['root']['rootName']);if(_0x40becb['length']<0x1)return;const _0x5419d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x510877=>ot['fromRange'](_0x510877));_0x210253['setSelection'](_0x40becb);for(const _0x122e92 of this['_editor']['commands']['commands']())_0x122e92['refresh']();_0xc25b1b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x333f56,..._0xc25b1b);const _0xa06e54=_0x5419d3['filter'](_0x225555=>'$graveyard'!=_0x225555['root']['rootName']);_0xa06e54['length']>0x0&&_0x210253['setSelection'](_0xa06e54);for(const _0x11ed21 of _0x5419d3)_0x11ed21['detach']();});},_0x1ddeba=(_0xa5ad98,_0x493d57)=>0x1==_0xa5ad98['length']&&0x1==_0x493d57['length']&&_0xa5ad98[0x0]['end']['isEqual'](_0x493d57[0x0]['start']),_0x9d359b=(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)=>Tn(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)?[_0x2e8afa,_0x78e636]:Tn(_0x78e636,_0x2e8afa,_0xb283ca,_0x3f5331)?[_0x78e636,_0x2e8afa]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('insertion:discard',_0x129c23),this['_defaultCallbacks']['set']('insertion:join',_0x1ddeba),this['_defaultCallbacks']['set']('insertion:chain',_0x9d359b),this['_defaultCallbacks']['set']('deletion:accept',_0x129c23),this['_defaultCallbacks']['set']('deletion:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('deletion:join',_0x1ddeba),this['_defaultCallbacks']['set']('deletion:chain',_0x9d359b),this['_defaultCallbacks']['set']('formatInline:accept',_0x528b81),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatInline:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x528b81),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a2ed4,_0x4492a7)=>{if(!_0x4492a7)return;const _0x25887d=this['_editor']['plugins']['get'](_0x4fbad8);this['_model']['change'](_0xeffd8=>{if('$elementName'==_0x4492a7['key'])for(const _0x497625 of _0x3a2ed4){const _0x21c79b=_0x497625['start']['nodeAfter'],_0xde7d4f=_0x4492a7['oldValue'];_0xeffd8['rename'](_0x21c79b,_0xde7d4f);}else{if(_0x25887d['isBlockAttribute'](_0x4492a7['key'])){for(const _0x556f9e of _0x3a2ed4)void 0x0!==_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x556f9e['start']['nodeAfter']):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x556f9e['start']['nodeAfter']);}else{for(const _0x4d7af7 of _0x3a2ed4)_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x4d7af7):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x4d7af7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ddeba);}};function cn(_0x1c1387,_0x169723,_0xdfd646){for(const _0x3683e7 of _0x169723['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3683e7['root']==_0x3683e7)return!0x1;if(!_0xdfd646['containsItem'](_0x3683e7))return!0x1;if(_0x1c1387['isObject'](_0x3683e7)||_0x1c1387['isLimit'](_0x3683e7))return!0x0;}return!0x1;}function ln(_0x4fdd30){return _0x4fdd30['end']['parent']==_0x4fdd30['start']['nodeAfter']&&_0x4fdd30['end']['isAtStart'];}function un(_0x3aceba,_0x34e04b,_0x38ca42,_0x8c2a80){const _0x9406ca=_0x2bf659=>!_0x2bf659['item']['is']('$textProxy')&&!_0x8c2a80['isObject'](_0x2bf659['item']),_0x9b648c=_0x3aceba['start']['getLastMatchingPosition'](_0x9406ca),_0x124ef1=_0x3aceba['end']['getLastMatchingPosition'](_0x9406ca,{'direction':'backward'});return(!_0x3aceba['start']['isEqual'](_0x9b648c)||!_0x3aceba['end']['isEqual'](_0x124ef1))&&(_0x9b648c['isBefore'](_0x124ef1)?_0x38ca42['updateMarker'](_0x34e04b,{'range':_0x38ca42['createRange'](_0x9b648c,_0x124ef1)}):_0x38ca42['removeMarker'](_0x34e04b),!0x0);}function dn(_0x4b6940){return _0x86ba89(_0x4b6940);}function hn(_0x39d3c8){const _0x10515a=_0x39d3c8['start']['nodeAfter'];return _0x10515a&&_0x10515a['is']('element');}function gn(_0x11b2c9){return ln(_0x11b2c9)||function(_0x27ff2b){return _0x27ff2b['start']['parent']==_0x27ff2b['end']['nodeBefore']&&_0x27ff2b['start']['isAtEnd'];}(_0x11b2c9);}function fn(_0x2eca1f,_0xd1c093){try{const _0x299f16=_0x2eca1f['getRange']();for(const _0x5e1c21 of _0xd1c093)if(_0x2eca1f!==_0x5e1c21&&_0x299f16&&_0x299f16['isIntersecting'](_0x5e1c21['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1d9140,_0x429797){return null==_0x1d9140['end']['nodeBefore']&&_0x1d9140['end']['parent']==_0x1d9140['start']['nodeAfter']?En(_0x1d9140['start']['nodeAfter'],_0x429797):_0x1d9140;}function En(_0x26f500,_0x2a6271){const _0x4c1dfd=_0x2a6271['schema']['isObject'](_0x26f500)||_0x2a6271['schema']['isSelectable'](_0x26f500);return _0x2a6271['createRange'](_0x2a6271['createPositionAt'](_0x26f500,'before'),_0x4c1dfd?_0x2a6271['createPositionAfter'](_0x26f500):_0x2a6271['createPositionAt'](_0x26f500,'end'));}function Tn(_0x59c484,_0x2f9d19,_0x556498,_0x1ec34a){return!!_n(_0x59c484,_0x2f9d19)&&_0x556498['end']['isEqual'](_0x1ec34a['start']);}function _n(_0x47d3f4,_0x477968){if(!_0x47d3f4['_isDataLoaded']||!_0x477968['_isDataLoaded'])return!0x1;const _0x23e1dc=new Set(Object['keys'](_0x47d3f4['attributes'])),_0x5326fa=new Set(Object['keys'](_0x477968['attributes']));if(_0x23e1dc['delete']('groupId'),_0x5326fa['delete']('groupId'),0x0==_0x23e1dc['size']&&0x0==_0x5326fa['size'])return!0x0;if(_0x23e1dc['size']!=_0x5326fa['size'])return!0x1;const _0x2185dd={..._0x47d3f4['attributes']},_0xb7237c={..._0x477968['attributes']};return delete _0x2185dd['groupId'],delete _0xb7237c['groupId'],JSON['stringify'](_0x2185dd)==JSON['stringify'](_0xb7237c);}function pn(_0x37d083,_0x543d4f){const _0x5fc08c=Ln(_0x37d083['attributes']),_0x2aaec5=Ln(_0x543d4f);if(!_0x37d083['_isDataLoaded'])return!0x1;if(!lt(_0x5fc08c['@ai'],_0x2aaec5['@ai']))return!0x1;for(const _0x5f41b6 of Object['keys'](_0x2aaec5))if(!lt(_0x5fc08c[_0x5f41b6],_0x2aaec5[_0x5f41b6]))return!0x1;return!0x0;}function Ln(_0x205e3f){const _0x4a12ba=Object['assign']({},_0x205e3f);return delete _0x4a12ba['skipNestingCheck'],delete _0x4a12ba['tablePasteChainId'],_0x4a12ba;}function In(_0xca9b39){return _0xca9b39['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x47ad8b();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x9f7678,_0x3ddbc4,_0x4f308e,_0x288a79){super(),this['model']=_0x3ddbc4,this['view']=_0x4f308e,this['commentThreadController']=_0x288a79,this['_editor']=_0x9f7678,this['_acceptCommand']=_0x9f7678['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9f7678['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5de8fa,_0x8864f)=>_0x5de8fa||_0x8864f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c7df8=>_0x1c7df8&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24181d=>_0x24181d&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['_pendingAction']=null,_0x4f308e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f308e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f308e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f308e,'change:isDirty',()=>{_0x4f308e['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 _0x16233b=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16233b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x44d047{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x220cf0,_0x40a7af,_0x40984b,_0x10e20a){super(_0x220cf0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb0e5f7(_0x220cf0,Ot(_0x220cf0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40a7af['authoredAt']),this['bind']('authoredAt')['to'](_0x40a7af),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',_0x40a7af,'authoredAt',this,'descriptionParts',(_0x28bbf0,_0x16dc10,_0x30d59c)=>{const _0x1b19fc=_0x30d59c['map'](_0x38e676=>It(_0x38e676['content']))['join']('.\x20')+'.',_0x1a8cda=_0x40a7af['aiSource']&&'author'===_0x10e20a['showAISource']?_0x10e20a['aiAuthor']['name']:_0x40a7af['author']['name'],_0x58406d=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28bbf0-0x1,_0x1a8cda,_0x16dc10?_0x10e20a['formatDateTime'](_0x16dc10):'',new DOMParser()['parseFromString'](_0x1b19fc,'text/html')['body']['textContent']]);return _0x40a7af['aiSource']&&'pill'===_0x10e20a['showAISource']?_0x58406d+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x58406d;}),this['focusables']=new _0x4b334b(),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34f76b=>_0x34f76b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40a7af,this['_localUser']=_0x40984b,this['_config']=_0x10e20a,_0x10e20a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x251c5b}=this['_config'];this['commentsListView']=new _0x251c5b(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',_0x5986c7=>_0x5986c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24d518,_0x5363c8)=>_0x24d518||!!_0x5363c8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x32ce5f}=this['_config'],_0x456c77=new _0x32ce5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15e5c8=_0x456c77['commentInputView'];return _0x456c77['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15e5c8,'value',(_0x488edb,_0x5a5e33,_0x1d4514)=>!!_0x1d4514||_0x488edb&&!_0x5a5e33),_0x15e5c8['on']('submit',(_0x15764c,_0x47d2a6)=>{this['fire']('addComment',_0x47d2a6),_0x15e5c8['editor']['setData']('');}),_0x15e5c8['on']('cancel',()=>this['focus']()),_0x15e5c8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x456c77;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13){super(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44491c=>_0x44491c&&_0x44491c[0x0]?_0x44491c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f16d9,_0x188691)=>{let _0x3f747a='';for(const _0x2bfede of _0x4f16d9)_0x3f747a+='<p>'+It(_0x2bfede['content'],_0x2bfede['color'])+'</p>';return _0x188691?_0x3f747a:it(_0x3f747a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d5e13['SuggestionView'](_0x575ef2,_0x3e4595,{'formatDateTime':_0x2d5e13['formatDateTime'],'showAISource':_0x2d5e13['showAISource'],'aiAuthor':_0x2d5e13['aiAuthor']}),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 _0x3fee8c=this['bindTemplate'],_0x5747f3=[this['suggestionView']];return this['commentsListView']&&_0x5747f3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5747f3['push'](this['commentThreadInputView']),_0x5747f3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fee8c['if']('isActive','ck-suggestion-wrapper--active'),_0x3fee8c['to']('type',_0x4c8d47=>'ck-suggestion-'+_0x4c8d47),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':_0x3fee8c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5747f3};}['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));}},Rn=class extends _0x44d047{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4235c8,_0x10938f,_0xb8c606){super(_0x4235c8),this['_model']=_0x10938f,this['_config']=_0xb8c606,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10938f),this['acceptButton']=this['_createButton'](Ot(_0x4235c8,'Accept\x20suggestion'),_0x14b565,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x4235c8,'Discard\x20suggestion'),_0x5eb0dc,'ck-suggestion--discard','discardSuggestion','sw');const _0x148980=!!_0x10938f['aiSource']&&'author'===_0xb8c606['showAISource'],_0x948dcb=_0x148980?this['_createAIUser'](_0xb8c606['aiAuthor']):_0x10938f['author'],_0x55026a=_0x148980&&!_0xb8c606['aiAuthor']['avatar']?_0x112b98:void 0x0;this['userView']=new _0x122117(_0x4235c8,_0x948dcb,this['getUserViewNotificationText'](),_0x55026a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b334b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1e219a=>_0x1e219a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xdfe01d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xdfe01d['innerHTML']=this['description'],this['on']('change:description',(_0xf69b51,_0x1b9bdc,_0x36dfb5)=>{_0xdfe01d['innerHTML']=_0x36dfb5;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x328181=this['bindTemplate'],_0x56338a=[{'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':_0x328181['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x328181['to']('authoredAt',_0x3365c6=>this['_config']['formatDateTime'](_0x3365c6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x56338a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x472b8c=new _0x24fb6b(this['locale']);_0x472b8c['set']({'icon':_0x3af273,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x56338a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x472b8c]});}return{'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':_0x56338a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x9b4d9){return new _0xcdc6f6({'id':'ck-ai-author','name':_0x9b4d9['name'],'avatar':_0x9b4d9['avatar'],'color':new _0x4762e5(0x0)});}_createButton(_0x29be2a,_0x20ee5b,_0xc9c2d8,_0x363ba9,_0x5950de){const _0xf70725=new _0x5bb789(this['locale']);return _0xf70725['set']({'label':_0x29be2a,'icon':_0x20ee5b,'tooltip':!0x0,'tooltipPosition':_0x5950de}),_0xf70725['extendTemplate']({'attributes':{'class':_0xc9c2d8}}),_0xf70725['on']('execute',()=>{this['fire'](_0x363ba9,this['_model']['id']);}),_0xf70725;}_setupKeyboardNavigation(){const _0x2e28cc=this['element'];this['keystrokes']['listenTo'](_0x2e28cc);for(const _0x2e707a of this['focusables'])this['focusTracker']['add'](_0x2e707a['element']),this['keystrokes']['listenTo'](_0x2e707a['element']);this['keystrokes']['set']('enter',(_0x5cc161,_0x173880)=>{_0x2e28cc===_0x5cc161['target']&&(this['focusCycler']['focusFirst'](),_0x173880());}),this['keystrokes']['set']('esc',(_0x42b057,_0x29ff95)=>{_0x2e28cc!==_0x42b057['target']&&(this['focus'](),_0x29ff95());});}},yn=class extends _0x548d2a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x5036c6,_0x625dc5,_0x5a11f9,_0x515c91];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c2d4){super(_0x52c2d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bfcf0=this['editor']['config'];_0x3bfcf0['define']('trackChanges.SuggestionThreadView',kn),_0x3bfcf0['define']('trackChanges.SuggestionView',Rn),_0x3bfcf0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bfcf0['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2137e4,_0x11b751){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1a23,_0x5a2f39]of this['_handleControllerBuffer']){const _0x537f55=this['_suggestionToController']['has'](_0x1d1a23);_0x537f55||_0x5a2f39?_0x537f55&&_0x5a2f39&&this['_destroyController'](_0x1d1a23):this['_initializeController'](_0x1d1a23);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x515c91)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2137e4,_0x11b751);}init(){const _0x11716f=this['editor'],_0x29cad8=_0x11716f['plugins']['get'](on),_0x4d33fa=_0x11716f['plugins']['get'](_0x5a11f9),_0x385ec1=_0x11716f['plugins']['get'](_0x515c91),_0x300a07=_0x11716f['plugins']['get'](_0x625dc5);this['_addUIComponentsToFactory'](),_0x385ec1['addSourceCollector'](()=>{const _0x515bd6=[];for(const [_0x231064,_0x2347eb]of Array['from'](this['_suggestionToController'])){const _0x37f593=_0x231064['getAllAdjacentSuggestions'](),_0x4bf0d6=[];for(const _0x1eaf0a of _0x37f593){if(!_0x1eaf0a['isInContent'])continue;if(_0x1eaf0a['isMultiRange']){_0x4bf0d6['push'](..._0x1eaf0a['getRanges']());continue;}const _0x1bec27=_0x1eaf0a['getFirstRange']();if(_0x4bf0d6['length']>0x0){const _0x1a017a=_0x4bf0d6[0x0]['getJoined'](_0x1bec27);if(_0x1a017a){_0x4bf0d6[0x0]=_0x1a017a;continue;}}_0x4bf0d6['push'](_0x1bec27);}_0x515bd6['push']([_0x2347eb['view'],_0x4bf0d6]);}return _0x515bd6;}),this['listenTo'](_0x29cad8,'suggestionLoaded',(_0x28c5c8,_0x4772fb)=>{this['listenTo'](_0x4772fb,'change:previous',(_0x40f7e6,_0x15cfc5,_0x108887,_0x5ccc75)=>{_0x4772fb['isInContent']&&(null==_0x108887?(this['_updateController'](_0x5ccc75['head']),this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1)):(this['_updateController'](_0x108887['head']),null==_0x5ccc75&&this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x0)));}),null!==_0x4772fb['previous']?this['_updateController'](_0x4772fb['head']):this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1);}),this['listenTo'](_0x29cad8,'suggestionUnloaded',(_0x1ff12f,_0x1ce679,_0x4615a0)=>{this['stopListening'](_0x1ce679,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ce679),this['_suggestionToController']['has'](_0x1ce679)&&this['_destroyController'](_0x1ce679),_0x4615a0&&this['_updateController'](_0x4615a0['head']);}),this['listenTo'](_0x29cad8,'suggestionChanged',(_0xcbab95,_0xa4a79f)=>{this['_updateController'](_0xa4a79f);}),this['listenTo'](_0x4d33fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x300a07,'addComment',(_0x5af959,{threadId:_0x307531,isFromAdapter:_0x4c3cef})=>{if(_0x4c3cef||!_0x29cad8['hasSuggestion'](_0x307531))return;const _0x93da94=_0x29cad8['getSuggestion'](_0x307531);this['_suggestionToController']['get'](_0x93da94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48c026=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8ec6c1;for(const _0x39a3b9 in _0x48c026){const _0x4328c9=_0x39a3b9,_0x335394=_0x48c026[_0x4328c9];if('trackChangesLicenseKeyValid'==_0x335394||'trackChangesLicenseKeyInvalid'==_0x335394||'trackChangesLicenseKeyExpired'==_0x335394||'trackChangesLicenseKeyDomainLimit'==_0x335394||'trackChangesLicenseKeyNotAllowed'==_0x335394||'trackChangesLicenseKeyEvaluationLimit'==_0x335394||'trackChangesLicenseKeyUsageLimit'==_0x335394){delete _0x48c026[_0x4328c9],_0x8ec6c1=_0x335394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8ec6c1&&_0x48c026['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8ec6c1&&_0x48c026['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8ec6c1&&_0x48c026['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0xd404bc){const _0x3a767e=this['_suggestionToController']['get'](_0xd404bc);return _0x3a767e&&this['editor']['plugins']['get'](_0x5a11f9)['getByInnerView'](_0x3a767e['view'])||null;}getSuggestionForAnnotation(_0x1964e8){const _0x15b2ac=this['_viewToController']['get'](_0x1964e8['innerView']);return _0x15b2ac?_0x15b2ac['model']:null;}_refreshActiveMarkers(){const _0x33d1d2=this['editor']['plugins']['get'](_0x5a11f9),_0x5149ab=this['editor']['plugins']['get'](on),_0x4fc650=Array['from'](_0x33d1d2['activeAnnotations'],_0x462258=>_0x462258['innerView'])['filter'](_0x1111a1=>this['_viewToController']['has'](_0x1111a1)),_0x22917d=[];for(const _0xd10a3f of _0x4fc650){const _0x4f0f24=this['_viewToController']['get'](_0xd10a3f)['model']['getAllAdjacentSuggestions']();_0x22917d['push'](..._0x4f0f24['reduce']((_0x260c35,_0x89e38d)=>[..._0x260c35,..._0x89e38d['getMarkerNames']()],[]));}_0x5149ab['activeMarkers']=_0x22917d;}_addUIComponentsToFactory(){const _0x3a57f9=this['editor'],_0x7bfba=_0x3a57f9['locale'],_0x39e998=Ot(_0x7bfba,'Track\x20changes'),_0x18d524=new _0x2d3c72([{'type':'switchbutton','model':new _0xe0f952({'withText':!0x0,'isToggleable':!0x0,'label':_0x39e998,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a57f9['plugins']['has']('TrackChangesPreview')&&_0x18d524['addMany']([{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25ee7b of _0x18d524)if(Nn(_0x25ee7b)){const _0x16f661=_0x3a57f9['commands']['get'](_0x25ee7b['model']['commandName']);_0x25ee7b['model']['bind']('isOn','isEnabled')['to'](_0x16f661,'value','isEnabled');}_0x3a57f9['ui']['componentFactory']['add']('trackChanges',_0x4f2469=>this['_createToolbarButton'](_0x4f2469,_0x18d524,_0x39e998)),_0x3a57f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x799199=>this['_createMenuBarMenu'](_0x799199,_0x18d524,_0x39e998));}_createToolbarButton(_0x4f59f8,_0x420b16,_0x414dd0){const _0x3ebe9e=_0x583898(_0x4f59f8,_0x499055),_0x5b3365=this['editor']['commands']['get']('trackChanges');_0x3ebe9e['buttonView']['set']({'tooltip':_0x414dd0,'label':_0x414dd0,'icon':_0x1fd907}),_0x3ebe9e['buttonView']['bind']('isOn')['to'](_0x5b3365,'value'),_0x3ebe9e['buttonView']['on']('execute',()=>{_0x5b3365['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a7aa3(_0x3ebe9e,_0x420b16,{'role':'menu'});const _0x28b66a=[];for(const _0x249a26 of _0x420b16)Nn(_0x249a26)&&_0x28b66a['push'](this['editor']['commands']['get'](_0x249a26['model']['commandName']));const _0x5bb484=_0x3ebe9e['buttonView'];return _0x5bb484['actionView']['unbind']('isEnabled'),_0x5bb484['arrowView']['unbind']('isEnabled'),_0x5bb484['actionView']['bind']('isEnabled')['to'](_0x5b3365,'isEnabled'),_0x5bb484['arrowView']['bind']('isEnabled')['toMany'](_0x28b66a,'isEnabled',(..._0x3d0451)=>_0x3d0451['some'](_0x467926=>_0x467926)),_0x3ebe9e['on']('execute',_0x430bf8=>{this['editor']['execute'](_0x430bf8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ebe9e;}_createMenuBarMenu(_0x232c5a,_0x2f5afc,_0x1e96fe){const _0x7160f4=new _0x3b7c12(_0x232c5a),_0x379803=this['editor']['commands']['get']('trackChanges');_0x7160f4['buttonView']['set']({'label':_0x1e96fe,'icon':_0x1fd907});const _0x5f1d7d=new _0x1d8e7c(_0x232c5a);for(const _0x3fda93 of _0x2f5afc){if('separator'==_0x3fda93['type']){_0x5f1d7d['items']['add'](new _0x5b0cbf(_0x232c5a));continue;}const _0x490ea6=new _0x271ebd(_0x232c5a,_0x7160f4),_0x47fee4=new _0x28f43e(_0x232c5a),_0xf4166b=_0x3fda93['model'];_0x47fee4['bind'](...Object['keys'](_0xf4166b))['to'](_0xf4166b),_0x47fee4['delegate']('execute')['to'](_0x7160f4),_0x47fee4['on']('execute',()=>{this['editor']['execute'](_0xf4166b['commandName']),this['editor']['editing']['view']['focus']();}),_0x490ea6['children']['add'](_0x47fee4),_0x5f1d7d['items']['add'](_0x490ea6);}return _0x7160f4['bind']('isEnabled')['to'](_0x379803,'isEnabled'),_0x7160f4['panelView']['children']['add'](_0x5f1d7d),_0x7160f4;}_initializeController(_0x3a20f4){const _0x275151=this['editor'],_0xa56ec6=_0x275151['config'],_0x5d6a0a=_0x275151['plugins']['get'](_0x5a11f9),_0x39941a=_0x275151['plugins']['get'](_0x625dc5),_0x3069fc=_0x275151['plugins']['get'](_0x515c91),_0x5ba29f=_0x275151['plugins']['get'](_0x5036c6)['me'],_0x28c881=_0xa56ec6['get']('trackChanges')['SuggestionThreadView'],_0x46db4d=_0xa56ec6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x468f5f,CommentThreadInputView:_0x5e658d}=_0x275151['plugins']['get']('CommentsUI');let _0x4583bc,_0x45f8be,_0x244256;this['_annotationViews']['has'](_0x3a20f4['id'])?(_0x45f8be=this['_annotationViews']['get'](_0x3a20f4['id']),_0x4583bc=_0x45f8be['mainView']):(_0x4583bc=new _0x28c881(_0x275151['locale'],_0x3a20f4,_0x5ba29f,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa56ec6['get']('comments.editorConfig'),'licenseKey':_0xa56ec6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa56ec6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f27f5(_0xa56ec6['get']('locale'),_0x275151['locale']),'CommentView':_0xa56ec6['get']('comments')['CommentView'],'CommentsListView':_0x468f5f,'CommentThreadInputView':_0x5e658d,'SuggestionView':_0x46db4d,'showAISource':_0xa56ec6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xa56ec6['get']('trackChanges.aiAuthor'),'name':_0xa56ec6['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x275151['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4583bc['suggestionView']['acceptButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x4583bc['suggestionView']['discardButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x45f8be=_0x5d6a0a['createAnnotationView'](this['editor']['locale'],_0x4583bc),_0x45f8be['bind']('isDirty')['to'](_0x4583bc,'isDirty'),_0x45f8be['bind']('length')['to'](_0x4583bc),_0x45f8be['bind']('type')['to'](_0x4583bc,'type',_0x3cbea9=>'suggestion-'+_0x3cbea9),_0x4583bc['on']('escape',()=>{_0x244256['fire']('escape');}),this['_annotationViews']['set'](_0x3a20f4['id'],_0x45f8be));const _0x5248e2=_0x39941a['createCommentThreadController'](_0x3a20f4['commentThread'],_0x4583bc),_0x39077d=new bn(_0x275151,_0x3a20f4,_0x4583bc,_0x5248e2),_0x28cc09=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x34d17f=>_0x34d17f['isInContent']);_0x4583bc['descriptionParts']=_0x275151['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x28cc09),this['_suggestionToController']['set'](_0x3a20f4,_0x39077d),this['_viewToController']['set'](_0x4583bc,_0x39077d);const _0x113774=()=>{const _0x569d44=[],_0x20272b=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x17ed7c=>_0x17ed7c['isInContent']);for(const _0x23a47c of _0x20272b)_0x569d44['push'](..._0x23a47c['getMarkers']());return _0x369c76(_0x275151['editing'],_0x569d44);};_0x244256=_0x5d6a0a['createAnnotation']({'view':_0x45f8be,'target':_0x113774,'type':()=>'suggestion-'+_0x39077d['view']['type'],'isVisible':!!_0x113774()}),_0x39941a['_bindAnnotationToEditors'](_0x4583bc,_0x244256),_0x5d6a0a['add'](_0x244256),_0x3069fc['registerAnnotation'](_0x244256);}_destroyController(_0x3ed5ab){const _0x4c96e2=this['editor']['plugins']['get'](_0x625dc5),_0x16b38f=this['editor']['plugins']['get'](_0x5a11f9),_0x2fe565=this['_suggestionToController']['get'](_0x3ed5ab),_0xc784aa=_0x2fe565['view'],_0x5ca6aa=_0x16b38f['getByInnerView'](_0xc784aa);_0x4c96e2['_unbindEditors'](_0xc784aa),_0x5ca6aa&&_0x16b38f['remove'](_0x5ca6aa),this['_suggestionToController']['delete'](_0x3ed5ab),this['_viewToController']['delete'](_0xc784aa),_0x2fe565['destroy']();}_updateController(_0xd7f85f){if(!_0xd7f85f['isInContent']||!this['_suggestionToController']['has'](_0xd7f85f))return;const _0x51cd7f=this['editor']['plugins']['get'](on),_0x41cb58=this['_suggestionToController']['get'](_0xd7f85f),_0xd3c94=_0xd7f85f['getAllAdjacentSuggestions']();_0x41cb58['view']['descriptionParts']=_0x51cd7f['descriptionFactory']['getDescriptions'](_0xd3c94);}destroy(){for(const _0x5b0610 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b0610);for(const _0x5664a9 of this['_annotationViews']['values']())_0x5664a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x2c5bec){return'model'in _0x2c5bec;}var Sn=class extends _0x548d2a{static get requires(){return[on,yn,_0x28e9ec];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3cd48b){this['editor']['plugins']['get'](on)['adapter']=_0x3cd48b;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xa6005){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xa6005);}getSuggestions({skipNotAttached:_0x355e96=!0x1,toJSON:_0x4a8a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x355e96,'toJSON':_0x4a8a95});}getSuggestion(_0x1e5e2c){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1e5e2c);}};const Mn=['Pagination'];var On=class extends _0x548d2a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ddd1b=this['editor'];if(_0x4ddd1b['config']['define']('trackChangesData.editorCreator',_0x5e99bc=>{const _0x4dd735=_0x4ddd1b['model']['document']['getRootNames']()['reduce']((_0x193197,_0x55ed35)=>(_0x193197[_0x55ed35]='',_0x193197),{});return _0x4ddd1b['constructor']['create'](_0x4dd735,_0x5e99bc);}),'function'!=typeof _0x4ddd1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ce3e1('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x14f7e7){return Bn(this['editor'],!0x0,_0x14f7e7);}getDataWithDiscardedSuggestions(_0x2d7dbe){return Bn(this['editor'],!0x1,_0x2d7dbe);}},wn=class extends _0x548d2a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba85){super(_0x28ba85),this['result']='end',_0x28ba85['editing']['view']['_overlayModeHint']='auto',_0x28ba85['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x5aa0fe){return void 0x0!==_0x5aa0fe['getRootsAttributes'];}async function Bn(_0x124d42,_0x177eb7,_0x57850e){const _0x4db4b2=_0x303fe4(_0x124d42,Mn);if(_0x4db4b2['plugins']['push'](on,wn),Fn(_0x124d42)){_0x4db4b2['roots']=Object['create'](null);for(const _0x5bafe0 of _0x124d42['model']['document']['getRootNames']())_0x4db4b2['roots'][_0x5bafe0]={'modelAttributes':_0x124d42['getRootAttributes'](_0x5bafe0)};}const _0x50ac82=document['createDocumentFragment'](),_0x5379f7=_0x124d42['config']['get']('trackChangesData')['editorCreator'],_0x58096b=await _0x5379f7(_0x4db4b2,()=>function(_0x4b2c14){const _0x14883c=document['createElement']('div');return _0x4b2c14['appendChild'](_0x14883c),_0x14883c;}(_0x50ac82));!function(_0x44fff3,_0x49047a){const _0x3049e2=_0x44fff3['model']['document']['getRootNames']()['reduce']((_0x16e750,_0x3dddd1)=>(_0x16e750[_0x3dddd1]=_0x44fff3['data']['get']({'rootName':_0x3dddd1}),_0x16e750),{}),_0x3b8f41=_0x44fff3['plugins']['get']('Users')['users']['map'](_0x130ee1=>({'id':_0x130ee1['id'],'name':_0x130ee1['name']})),_0x2b3cc8=_0x44fff3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223625=_0x44fff3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x330598=_0x49047a['plugins']['get']('Users'),_0x13d5de=_0x49047a['plugins']['get']('TrackChangesEditing'),_0xe4285=_0x49047a['plugins']['get']('CommentsRepository');for(const _0x1313c3 of _0xe4285['getCommentThreads']())_0x1313c3['remove']();for(const _0x2ce7fe of _0x3b8f41)_0x330598['getUser'](_0x2ce7fe['id'])||_0x330598['addUser'](_0x2ce7fe);_0x330598['me']||_0x330598['useAnonymousUser']();for(const _0x3ecfee of _0x223625)_0xe4285['addCommentThread'](_0x3ecfee);for(const _0x162908 of _0x2b3cc8)_0x13d5de['addSuggestionData'](_0x162908);_0x49047a['data']['set'](_0x3049e2);}(_0x124d42,_0x58096b),_0x58096b['execute'](_0x177eb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f34e2=Fn(_0x58096b)?_0x58096b['getFullData'](_0x57850e):_0x58096b['data']['get'](_0x57850e);return await _0x58096b['destroy'](),_0x4f34e2;}var vn=class extends _0x44d047{options;constructor(_0x3f1e07,_0xff0677){super(_0x3f1e07),this['options']=_0xff0677,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(_0x2fdeaf,_0x56690d){if(!this['element'])return;const _0x418c17=[];for(const [_0x5234ee,_0x40d3a8]of _0x2fdeaf){const _0x4aa2c4=document['createElement']('div');_0x4aa2c4['setAttribute']('data-ck-root-name',_0x5234ee),_0x4aa2c4['className']=_0x40d3a8['classes']+'\x20ck-track-changes-preview__root-container',_0x4aa2c4['innerHTML']=_0x40d3a8['content'],_0x418c17['push'](_0x4aa2c4);}_0x56690d(this['element'],_0x418c17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x5a79ba{constructor(_0x4933c0){super(_0x4933c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x7a7457=this['editor'],_0x3c4a38=_0x7a7457['locale'],_0xe8d7c8=_0x7a7457['plugins']['get']('Dialog');let _0x8ea4e7;const _0x24b842=function(_0x7cdeef){const _0x35e336={};if('editables'in _0x7cdeef['ui']['view']){for(const [_0x4c72c2,_0x2687e8]of Object['entries'](_0x7cdeef['ui']['view']['editables']))_0x35e336[_0x4c72c2]=_0x2687e8['element'];}else _0x35e336[_0x7cdeef['model']['document']['getRootNames']()[0x0]]=_0x7cdeef['ui']['view']['editable']['element'];return _0x35e336;}(_0x7a7457),_0x1f9ba3=function(_0x4db1ad){let _0x13c578=0x0;for(const _0x50f1c6 of Object['values'](_0x4db1ad))_0x13c578=Math['max'](_0x13c578,_0x50f1c6['getBoundingClientRect']()['width']);let _0x135b10=0x0;for(const _0x297ced of Object['values'](_0x4db1ad))_0x135b10+=_0x297ced['getBoundingClientRect']()['height'];const _0x291efa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x13c578,'height':Math['min'](_0x135b10,_0x291efa)};}(_0x24b842);_0xe8d7c8['show']({'id':'finalContentPreview','title':Ot(_0x3c4a38,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x3c4a38,{'dialogRects':_0x1f9ba3}),'onHide':()=>{_0x8ea4e7['detachFromDom']();},'onShow':()=>{_0x7a7457['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x152bd9=>{const _0x1ff517=this['_standarizeRootsData'](_0x152bd9,_0x7a7457,_0x24b842);_0xe8d7c8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1ff517,_0x7a7457['config']['get']('trackChanges.preview.renderFunction'));}),_0x8ea4e7=new _0x1d1889(_0x3c4a38,[_0xe8d7c8['view']]),_0x8ea4e7['attachToDom'](),_0x8ea4e7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x7a7457['once']('destroy',()=>{_0x8ea4e7['detachFromDom']();});const _0x3de1e7=_0xe8d7c8['view']['headerView']['class'];_0xe8d7c8['view']['headerView']['class']=_0x3de1e7?_0x3de1e7+'\x20ck-reset_all':'ck-reset_all',_0xe8d7c8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe8d7c8['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4be89f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x387123=_0x4be89f['previewMode'],_0x5df8bb={};if('$labels'===_0x387123){for(const _0x189049 of _0x4be89f['getMergeFieldsIds']())_0x5df8bb[_0x189049]=_0x4be89f['getLabel'](_0x189049)||_0x189049;}else{const _0x4f3a96='$defaultValues'===_0x387123?_0x4be89f['getDefaultValues']():_0x4be89f['getDataSetValues'](_0x387123,!0x0);for(const _0x1a8e79 of Object['entries'](_0x4f3a96)){const [_0x3bcb3d,_0x1c2c30]=_0x1a8e79;_0x5df8bb[_0x3bcb3d]=null!==_0x1c2c30?_0x1c2c30:_0x4be89f['getLabel'](_0x3bcb3d)||_0x3bcb3d;}}return{'mergeFieldsData':_0x5df8bb};}_standarizeRootsData(_0x41f16d,_0x240abd,_0xcca0f4){let _0x5d41d3;_0x5d41d3='string'==typeof _0x41f16d?{[_0x240abd['model']['document']['getRootNames']()[0x0]]:_0x41f16d}:_0x41f16d;const _0x1beca7=this['_fixMediaEmbeds'](_0x5d41d3,_0x240abd);return function(_0x37d418,_0x197767){for(const [_0x4f4c5b,_0x2ad5af]of _0x37d418)_0x2ad5af['classes']=_0x197767[_0x4f4c5b]['classList']['value']['replace']('ck-focused','');return _0x37d418;}(this['_sortRoots'](_0x240abd)['reduce']((_0x4c231c,_0x1d214c)=>(_0x4c231c['push']([_0x1d214c,{'content':_0x1beca7[_0x1d214c],'classes':''}]),_0x4c231c),[]),_0xcca0f4);}['_fixMediaEmbeds'](_0x1a9359,_0x31834e){if(!_0x31834e['plugins']['has']('MediaEmbedEditing'))return _0x1a9359;const _0x20b3a3=_0x31834e['plugins']['get']('MediaEmbedEditing');for(const [_0x228c51,_0x25145a]of Object['entries'](_0x1a9359)){const _0x3323c4=document['createElement']('div');_0x3323c4['innerHTML']=_0x25145a,_0x3323c4['querySelectorAll']('figure.media')['forEach'](_0x1dbee8=>{const _0x505c9d=_0x1dbee8['querySelector']('oembed');if(_0x505c9d){const _0x7a7261=_0x505c9d['getAttribute']('url');if(_0x7a7261){const _0x564fbf=_0x20b3a3['registry']['getMediaViewElement'](new at(_0x31834e['editing']['view']['document']),_0x7a7261,{'elementName':'','renderForEditingView':!0x0}),_0x296940=document['createElement']('div');_0x296940['classList']['add']('ck-media__wrapper'),_0x564fbf['render'](_0x296940,_0x31834e['editing']['view']['domConverter']),_0x505c9d['replaceWith'](_0x296940);}}}),_0x1a9359[_0x228c51]=_0x3323c4['innerHTML'];}return _0x1a9359;}_sortRoots(_0x4aaf5b){if(!function(_0x8f2e18){return void 0x0!==_0x8f2e18['getRootsAttributes'];}(_0x4aaf5b))return _0x4aaf5b['model']['document']['getRootNames']();const _0x29a615=[],_0x5ca53c=new Map();for(const _0x4ae2bd of _0x4aaf5b['model']['document']['getRootNames']()){const _0x2cfcec=_0x4aaf5b['editing']['view']['getDomRoot'](_0x4ae2bd)['getClientRects']()['item'](0x0);_0x29a615['push'](_0x4ae2bd),_0x5ca53c['set'](_0x4ae2bd,_0x2cfcec);}return _0x29a615['sort']((_0x34b4ef,_0x8080d9)=>{const _0x5df413=_0x5ca53c['get'](_0x34b4ef),_0x2c2f97=_0x5ca53c['get'](_0x8080d9);return _0x5df413['y']-_0x2c2f97['y']||_0x5df413['x']-_0x2c2f97['x'];}),_0x29a615;}},Un=class extends _0x548d2a{static get requires(){return[On,_0x4ccace];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x185a0b){super(_0x185a0b),_0x185a0b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x185a0b['config']['define']('trackChanges.preview.renderFunction',(_0x278be6,_0x3ff307)=>{for(const _0x30584e of _0x3ff307)_0x278be6['appendChild'](_0x30584e);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x16d293,PendingActions as _0x4f7893,Plugin as _0x9bd549}from'@ckeditor/ckeditor5-core';import{Annotations as _0x59e02d,Comments as _0x435a16,CommentsRepository as _0x203ad7,EditorAnnotations as _0x38d953}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x354614,Collection as _0x312921,FocusTracker as _0x591c9e,KeystrokeHandler as _0x5b7cb6,ObservableMixin as _0x1377a3,getEnvKeystrokeText as _0x4d423e,insertToPriorityArray as _0x26314f,logWarning as _0x18c9eb,priorities as _0x2b2839,uid as _0x2e6a13}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x1e2770,IconCancel as _0x15d8dd,IconCheck as _0xf15df7,IconSparkle as _0x1fc493,IconTrackChanges as _0x5c9b3e}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1e8118,Dialog as _0x15cd88,FocusCycler as _0x7ae866,ListSeparatorView as _0x188ba7,MenuBarMenuListItemButtonView as _0x452ca1,MenuBarMenuListItemView as _0xdc420d,MenuBarMenuListView as _0x5d0013,MenuBarMenuView as _0x34c878,SplitButtonView as _0x2ed566,UIModel as _0x53a520,View as _0x50f806,ViewCollection as _0x32a053,addListToDropdown as _0x4a8502,createDropdown as _0x2112c8,normalizeColorOptions as _0x178ae1}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x30c9b4,CollaborationUserColor as _0x3b64d0,DocumentCompare as _0x2c9489,FOCUS_ANNOTATION_KEYSTROKE as _0x341358,LateFocusButtonView as _0x50d24e,PillView as _0x23bf39,SuggestionsConversion as _0x358b09,User as _0x44bfc7,UserView as _0x19bc2d,Users as _0xfe45c9,fixElementSuggestionRange as _0x425f5d,getAllMarkersDomElementsSorted as _0x136b64,getDateTimeFormatter as _0x49bb80,hashObject as _0x1724db,isInvalidAttributeOperation as _0x4a631e,sanitizeEditorConfig as _0x423519,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x16d293{['_enabledCommands'];constructor(_0x1c0522,_0x3bf49b){super(_0x1c0522),this['_enabledCommands']=_0x3bf49b,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 _0x12c81f of this['editor']['commands']['commands']())_0x12c81f['affectsData']&&!this['_enabledCommands']['has'](_0x12c81f)&&_0x12c81f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x12c998 of this['editor']['commands']['commands']())_0x12c998['affectsData']&&!this['_enabledCommands']['has'](_0x12c998)&&_0x12c998['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x16d293{_suggestions;constructor(_0x1c007e,_0x4e9cbc){super(_0x1c007e),this['_suggestions']=_0x4e9cbc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1b2c){const _0x2dab4a=this['_suggestions']['get'](_0x1f1b2c);if(!_0x2dab4a)throw new _0x354614('track-changes-accept-suggestion-not-found',this);const _0x25276f=_0x2dab4a['getRanges']();this['editor']['model']['canEditAt'](_0x25276f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2dab4a);}},Lt=class extends _0x16d293{_suggestions;constructor(_0x1af48d,_0x572232){super(_0x1af48d),this['_suggestions']=_0x572232,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5df9ab){const _0x5b9811=this['_suggestions']['get'](_0x5df9ab);if(!_0x5b9811)throw new _0x354614('track-changes-discard-suggestion-not-found',this);const _0x360d5d=_0x5b9811['getRanges']();this['editor']['model']['canEditAt'](_0x360d5d)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5b9811);}};function It(_0x1d36f5,_0x2740b9){let _0x305162='';return _0x305162+=_0x1d36f5['split']('*')['map']((_0x570206,_0x3064d5)=>_0x3064d5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0x570206)+'</span>':At(_0x570206))['join'](''),_0x2740b9&&(_0x305162+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2740b9['value']+'\x22\x20title=\x22'+_0x2740b9['title']+'\x22></span>'),_0x305162;}function At(_0x41480a){const _0x5880e3=document['createElement']('span');return _0x5880e3['innerText']=_0x41480a,_0x5880e3['innerHTML'];}function bt(_0x2a1b05){return _0x2a1b05['sort']((_0x243603,_0x1d9aa7)=>'attribute'===_0x243603['type']&&'attribute'!==_0x1d9aa7['type']?-0x1:'attribute'!==_0x243603['type']&&'attribute'===_0x1d9aa7['type']?0x1:'deletion'==_0x243603['type']&&'deletion'!=_0x1d9aa7['type']?-0x1:'deletion'!=_0x243603['type']&&'deletion'==_0x1d9aa7['type']?0x1:0x0);}function Ct(_0x1028dd,_0x4f0cc9){let _0xfe71cf,_0x14db18=0x0;const _0x8f3b4e=[],_0x141176=_0x4f0cc9['schema'];for(;_0x14db18<_0x1028dd['length'];){const _0x1b821f=_0x1028dd[_0x14db18],_0x472306=_0x1028dd[_0x14db18+0x1];_0xfe71cf||(_0xfe71cf=_0x4f0cc9['createPositionBefore'](_0x1b821f)),kt(_0x4f0cc9,_0x1b821f,_0x472306)||(_0x8f3b4e['push'](_0x4f0cc9['createRange'](_0xfe71cf,_0x141176['isObject'](_0x1b821f)?_0x4f0cc9['createPositionAfter'](_0x1b821f):_0x4f0cc9['createPositionAt'](_0x1b821f,'end'))),_0xfe71cf=null),_0x14db18++;}return _0x8f3b4e;}function kt(_0x53101f,_0x96a406,_0x1f152e){if(!_0x1f152e)return!0x1;const _0x5505cd=_0x53101f['createPositionAfter'](_0x96a406),_0x50d597=_0x53101f['createPositionBefore'](_0x1f152e);return _0x5505cd['isTouching'](_0x50d597);}function Rt(_0x545d0c,_0x6e204b,_0x1ead40){for(;_0x1ead40['length'];){const _0x404335=_0x1ead40['splice'](0x0,0x64);_0x545d0c['change'](()=>{for(const _0x2f0fd0 of _0x404335)_0x2f0fd0['isInContent']&&_0x6e204b['execute'](_0x2f0fd0['id']);});}}var yt=class extends _0x16d293{['_command'];_suggestions;constructor(_0x429f96,_0x40690b,_0x2ad749){super(_0x429f96),this['_command']=_0x40690b,this['_suggestions']=_0x2ad749,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x476f5f=Array['from'](this['_suggestions']['values']())['some'](_0x1c5828=>_0x1c5828['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x476f5f;}execute(){const _0x481072=bt(Array['from'](this['_suggestions']['values']()));for(const _0x1c99f4 of _0x481072){const _0x3fb303=_0x1c99f4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3fb303))return;}Rt(this['editor']['model'],this['_command'],_0x481072);}},Nt=class extends _0x16d293{['_command'];_suggestions;_selectedSuggestions;constructor(_0x55e5b8,_0x1597df,_0x3da6a8){super(_0x55e5b8),this['_command']=_0x1597df,this['_suggestions']=_0x3da6a8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2de699=this['editor']['model']['document']['selection'],_0x3fb7e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x56996b,_0x33794f){const _0x2fa2fa=Array['from'](_0x56996b['getRanges']()),_0x4f6516=new Set();for(const _0x4d11b2 of _0x33794f)if(_0x4d11b2['isInContent']){for(const _0x186ebb of _0x2fa2fa)for(const _0x42f834 of _0x4d11b2['getRanges']())(_0x186ebb['isIntersecting'](_0x42f834)||_0x56996b['isCollapsed']&&!_0x4d11b2['isMultiRange']&&_0x4d11b2['next']&&_0x42f834['end']['isTouching'](_0x186ebb['start']))&&_0x4f6516['add'](_0x4d11b2);}return _0x4f6516;}(_0x2de699,_0x3fb7e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x1bc2ad=bt(Array['from'](this['_selectedSuggestions']));for(const _0x5da6f3 of _0x1bc2ad){const _0x13ebb3=_0x5da6f3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x13ebb3))return;}Rt(this['editor']['model'],this['_command'],_0x1bc2ad);}};const St=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1377a3();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x360592,_0x1fbd48){super(),this['id']=_0x1fbd48['id'],this['type']=_0x1fbd48['type'],this['subType']=_0x1fbd48['subType']||null,this['author']=_0x1fbd48['author'],this['creator']=_0x1fbd48['creator']||_0x1fbd48['author'],this['data']=null,this['_originalSuggestionId']=_0x1fbd48['originalSuggestionId']||null,this['_model']=_0x360592,this['_onAccept']=_0x1fbd48['onAccept'],this['_onDiscard']=_0x1fbd48['onDiscard'],this['_onAttributesChange']=_0x1fbd48['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1fbd48['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x267827=this;for(;_0x267827['previous'];)_0x267827=_0x267827['previous'];return _0x267827;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1dcb32){this['_markerNames']['add'](_0x1dcb32);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x58fc4d=>this['_model']['markers']['get'](_0x58fc4d))['filter'](_0x57fce2=>_0x57fce2);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1ac18e=>{for(const _0x2274f7 of this['getMarkers']())_0x1ac18e['removeMarker'](_0x2274f7);}),this['_markerNames']['clear']();}['removeMarker'](_0x50b347){this['_model']['change'](_0x933633=>{_0x933633['removeMarker'](_0x50b347);}),this['_markerNames']['delete'](_0x50b347);}['addRange'](_0x1163a3){const _0xdbf62d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xdbf62d),this['_model']['change'](_0x136c3d=>{_0x136c3d['addMarker'](_0xdbf62d,{'range':_0x1163a3,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x5bdd90){for(const _0x4e136c of this['getRanges']())if(_0x4e136c['isIntersecting'](_0x5bdd90))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x461c4d=>_0x461c4d['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x4f1069,_0x62cd6b)=>[..._0x4f1069,..._0x62cd6b['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4d3c50=this['getRanges']();if(0x1!=_0x4d3c50['length'])return null;const _0x4125eb=_0x4d3c50[0x0],_0x22be17=_0x4125eb['start']['nodeAfter'],_0xd3e72d=_0x4125eb['end']['nodeBefore'];return _0x22be17 instanceof st?_0x22be17!=_0xd3e72d?null:_0x22be17: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 _0x52310b=[];let _0x4cc240=this['head'];for(;_0x4cc240;)_0x52310b['push'](_0x4cc240),_0x4cc240=_0x4cc240['next'];return _0x52310b;}setAttribute(_0x48a6d8,_0xdbbb7b){const _0x230b01=ct(this['attributes']);dt(_0x230b01,_0x48a6d8,_0xdbbb7b),lt(_0x230b01,this['attributes'])||(this['attributes']=_0x230b01,this['_onAttributesChange'](_0x230b01));}removeAttribute(_0x16e2d8){const _0x277eb4=ct(this['attributes']);ht(_0x277eb4,_0x16e2d8),lt(_0x277eb4,this['attributes'])||(this['attributes']=_0x277eb4,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 _0x2e6a13()['substr'](0x1,0x5);}};function Ot(_0x1938b3,_0x4b2b56,_0x2e2e1f){const _0x2cd183=_0x1938b3['t'],t=_0x1938b3['t'];switch(_0x4b2b56){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',_0x2e2e1f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2e2e1f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2e2e1f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2e2e1f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2e2e1f);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',_0x2e2e1f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2e2e1f);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',_0x2e2e1f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2e2e1f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2e2e1f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2e2e1f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2e2e1f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2e2e1f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2e2e1f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2e2e1f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2e2e1f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2e2e1f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2e2e1f);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2e2e1f);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2e2e1f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2e2e1f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2e2e1f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2e2e1f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2e2e1f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2e2e1f);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x2e2e1f);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x2e2e1f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2e2e1f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2e2e1f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2e2e1f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2e2e1f);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'},_0x2e2e1f);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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'},_0x2e2e1f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2e2e1f);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2e2e1f);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2e2e1f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2e2e1f);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'},_0x2e2e1f);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2e2e1f);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2e2e1f);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2cd183({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2e2e1f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);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'},_0x2e2e1f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4b2b56;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x212172,_0x5b713b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x212172,this['_locale']=_0x5b713b;}getDescriptions(_0x122f0b){const _0x59809e=[],_0x2c21d7=new Set(),_0x380e67=new Set();for(let _0x2b0e5c=0x0;_0x2b0e5c<_0x122f0b['length'];_0x2b0e5c++){const _0x2ed4bb=_0x122f0b[_0x2b0e5c];if(!_0x2ed4bb['isInContent'])continue;const _0x3fe482=this['_handleCustomCallbackDescription'](_0x2ed4bb);if(_0x3fe482){if(null!=_0x2ed4bb['subType']){if(_0x2c21d7['has'](_0x2ed4bb['subType']))continue;_0x2c21d7['add'](_0x2ed4bb['subType']);}_0x59809e['push'](_0x3fe482);}else{if('attribute'==_0x2ed4bb['type']){const _0x58e2cf=_0x2ed4bb['data']['key'];if(_0x380e67['has'](_0x58e2cf))continue;_0x380e67['add'](_0x2ed4bb['data']['key']),'$elementName'==_0x58e2cf?this['_handleRenameSuggestionDescription'](_0x59809e,_0x2ed4bb):this['_handleAttributeSuggestionDescription'](_0x59809e,_0x2ed4bb);continue;}'insertion'!=_0x2ed4bb['type']&&'deletion'!=_0x2ed4bb['type']||this['_handleInsertRemoveSuggestionDescription'](_0x59809e,_0x2ed4bb,_0x122f0b[_0x2b0e5c+0x1]);}}return this['_resolveDescriptionItems'](_0x59809e);}registerDescriptionCallback(_0x19eaff){this['_customCallbacks']['push'](_0x19eaff);}registerElementLabel(_0x49d107,_0x480359,_0x44365a=_0x2b2839['normal']){'function'==typeof _0x49d107?_0x26314f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49d107,'label':_0x480359,'priority':_0x44365a}):this['_itemLabels']['set'](_0x49d107,_0x480359);}registerAttributeLabel(_0x29e4b0,_0x2465b0){this['_attributeLabels']['set'](_0x29e4b0,_0x2465b0);}getItemLabel(_0x537004,_0x50fcf0=0x1){let _0x445e9e;for(const _0x54bc0f of this['_itemLabelsCallbacks'])if(_0x54bc0f['matchingCallback'](_0x537004)){_0x445e9e=_0x54bc0f['label'];break;}return _0x445e9e||(_0x445e9e=this['_itemLabels']['get'](_0x537004['name'])),_0x445e9e?_0x445e9e(_0x50fcf0):0x1!==_0x50fcf0?_0x50fcf0+'\x20'+_0x537004['name']+'s':''+_0x537004['name'];}_addDescriptionItems(_0x1779c5,_0x1ea9e1){const _0x2c6b15=_0x1ea9e1['getFirstRange']()['getWalker'](),_0x34a914='insertion'==_0x1ea9e1['type']?'add':'remove';for(const _0x25448f of _0x2c6b15){const _0x1aa207=_0x25448f['item'],_0xc732ac=_0x1779c5[_0x1779c5['length']-0x1];if(_0x1aa207['is']('$textProxy'))_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),_0xc732ac&&'text'==_0xc732ac['type']?_0xc732ac[_0x34a914]+=_0x1aa207['data']:_0x1779c5['push']({'type':'text','add':'add'==_0x34a914?_0x1aa207['data']:'','remove':'remove'==_0x34a914?_0x1aa207['data']:''});else{if(this['_schema']['isObject'](_0x1aa207)){const _0x4212e3=_0x1aa207;if(_0xc732ac&&_0xc732ac['type']['indexOf']('Container')>-0x1&&_0x1779c5['pop'](),'elementEnd'==_0x25448f['type'])continue;_0xc732ac&&_0xc732ac['type']==_0x34a914+'Object'&&_0xc732ac['element']['name']==_0x4212e3['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'Object','element':_0x4212e3,'quantity':0x1}),_0x2c6b15['skip'](_0x61c6a4=>!('elementEnd'==_0x61c6a4['type']&&_0x61c6a4['item']==_0x1aa207));}else{if(this['_schema']['checkChild'](_0x1aa207,'$text')||_0x1aa207['is']('element','softBreak')){const _0x4fdece=_0x1aa207;if('add'==_0x34a914&&'elementStart'==_0x25448f['type']||'remove'==_0x34a914&&'elementEnd'==_0x25448f['type'])continue;if(_0xc732ac&&-0x1==_0xc732ac['type']['indexOf']('Container')){'text'==_0xc732ac['type']&&(_0xc732ac[_0x34a914]+='\x0a');continue;}let _0x11110e;if(_0x11110e='add'==_0x34a914?_0x4fdece['nextSibling']&&!this['_schema']['isObject'](_0x4fdece['nextSibling'])?_0x4fdece['nextSibling']:null:_0x4fdece['previousSibling']&&!this['_schema']['isObject'](_0x4fdece['previousSibling'])?_0x4fdece['previousSibling']:null,_0x4fdece['isEmpty']||_0x11110e&&_0x11110e['isEmpty']){const _0x2c5808=_0x11110e&&_0x11110e['isEmpty']?_0x11110e:_0x4fdece;_0xc732ac&&_0xc732ac['type']==_0x34a914+'EmptyContainer'&&_0xc732ac['element']['name']==_0x2c5808['name']?_0xc732ac['quantity']++:_0x1779c5['push']({'type':_0x34a914+'EmptyContainer','element':_0x2c5808,'quantity':0x1});}else _0x1779c5['push']({'type':_0x34a914+'Container','element':_0x4fdece});}}}}}_resolveDescriptionItems(_0x27cc2c){const _0x1cca94=this['_locale'],_0x47f555=[],_0x23636c=[],_0x430f93=[];for(const _0x50675f of _0x27cc2c)switch(_0x50675f['type']){case'text':if(_0x50675f['add']=_0x50675f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x50675f['remove']=_0x50675f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x50675f['add']&&''!=_0x50675f['remove']){_0x47f555['push']({'type':'replace','content':Ot(_0x1cca94,'REPLACE_TEXT',['\x22'+_0x50675f['remove']+'\x22','\x22'+_0x50675f['add']+'\x22'])});continue;}if(null!=_0x50675f['add']['match'](/^ +$/)){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['add']['length']))});continue;}if(null!=_0x50675f['remove']['match'](/^ +$/)){_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',Ot(_0x1cca94,'ELEMENT_SPACE',_0x50675f['remove']['length']))});continue;}if(''!=_0x50675f['add']){_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0','\x22'+_0x50675f['add']+'\x22')});continue;}_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0','\x22'+_0x50675f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Insert:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Remove:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addContainer':_0x47f555['push']({'type':'insertion','content':Ot(_0x1cca94,'*Split:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'removeContainer':_0x47f555['push']({'type':'deletion','content':Ot(_0x1cca94,'*Merge:*\x20%0',this['getItemLabel'](_0x50675f['element'],_0x50675f['quantity']))});continue;case'addFormat':_0x23636c['push'](_0x50675f['key']);continue;case'removeFormat':_0x430f93['push'](_0x50675f['key']);continue;default:_0x47f555['push'](_0x50675f);}if(_0x23636c['length']){const _0x495348=_0x23636c['map'](_0x324370=>this['_attributeLabels']['has'](_0x324370)?this['_attributeLabels']['get'](_0x324370):_0x324370)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0x495348)});}if(_0x430f93['length']){const _0x1c5ebc=_0x430f93['map'](_0x1c46e1=>this['_attributeLabels']['has'](_0x1c46e1)?this['_attributeLabels']['get'](_0x1c46e1):_0x1c46e1)['join'](',\x20');_0x47f555['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c5ebc)});}return _0x47f555;}_handleCustomCallbackDescription(_0x3dd432){for(const _0x15dea5 of this['_customCallbacks']){const _0x2ff13a=_0x15dea5(_0x3dd432);if(_0x2ff13a&&'type'in _0x2ff13a)return _0x2ff13a;}}_handleAttributeSuggestionDescription(_0x37e9f2,_0xb7b699){const _0x3c4e4a=_0xb7b699['data'],_0x3f231a=void 0x0===_0x3c4e4a['newValue']?'removeFormat':'addFormat';_0x37e9f2['push']({'type':_0x3f231a,'key':_0x3c4e4a['key']});}_handleRenameSuggestionDescription(_0xa2cb19,_0x402bf9){_0xa2cb19['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x402bf9['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0xda17ec,_0x1c2ce0,_0x3b110d){if(this['_addDescriptionItems'](_0xda17ec,_0x1c2ce0),_0x3b110d&&_0x3b110d['getFirstRange']()&&!_0x1c2ce0['getFirstRange']()['end']['isEqual'](_0x3b110d['getFirstRange']()['start'])){const _0x2440d6=_0xda17ec[_0xda17ec['length']-0x1],_0x18f5c2='insertion'==_0x1c2ce0['type']?'add':'remove';_0x2440d6&&'text'==_0x2440d6['type']&&(_0x2440d6[_0x18f5c2]+='\x0a');}}},Ft=class extends _0x9bd549{afterInit(){const _0x4694e6=this['editor'],_0x1d3c59=_0x4694e6['plugins']['get']('TrackChangesEditing');_0x4694e6['commands']['get']('showAIAssistant')&&_0x1d3c59['enableCommand']('showAIAssistant');}},Bt=class extends _0x9bd549{afterInit(){const _0x372959=this['editor'],_0x19e942=_0x372959['plugins']['get']('TrackChangesEditing');_0x372959['commands']['get']('toggleAi')&&_0x19e942['enableCommand']('toggleAi');}},vt=class extends _0x9bd549{afterInit(){const _0x1c211e=this['editor'],_0x6873ac=_0x1c211e['plugins']['get']('TrackChangesEditing');_0x1c211e['commands']['get']('aiQuickAction')&&_0x6873ac['enableCommand']('aiQuickAction');}},Dt=class extends _0x9bd549{afterInit(){const _0x29ea5f=this['editor'],_0x4c49b7=_0x29ea5f['locale'];if(!_0x29ea5f['plugins']['has']('AlignmentEditing'))return;const _0x49ce7b=_0x29ea5f['plugins']['get']('TrackChangesEditing');_0x49ce7b['enableDefaultAttributesIntegration']('alignment'),_0x49ce7b['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0x4c49b7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19d98e=this['editor'],_0x2465d5=_0x19d98e['locale'];_0x19d98e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40b2e2=>{if('formatBlock'!=_0x40b2e2['type'])return;const {data:_0x31ca82}=_0x40b2e2;if(_0x31ca82&&'alignment'==_0x31ca82['commandName']){const _0xc0263e=_0x31ca82['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x2465d5,'*Format:*\x20%0',function(_0x2e9c20){switch(_0x2e9c20){case'left':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x2465d5,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x2465d5,'FORMAT_JUSTIFY_TEXT');}}(_0xc0263e))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x9bd549{afterInit(){const _0x28799f=this['editor'],_0x379617=_0x28799f['plugins']['get']('TrackChangesEditing'),_0x536dba=_0x28799f['locale'];for(const _0xfbeff2 of Ut){if(!_0x28799f['plugins']['has'](_0xfbeff2))continue;const _0x505a92=_0xfbeff2['slice'](0x0,-0x7)['toLowerCase'](),_0x1e79fc='FORMAT_'+_0x505a92['toUpperCase']();_0x379617['enableDefaultAttributesIntegration'](_0x505a92),_0x379617['descriptionFactory']['registerAttributeLabel'](_0x505a92,Ot(_0x536dba,_0x1e79fc));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x324cf7=this['editor'],_0xbb120f=_0x324cf7['locale'],_0x323e71=_0x324cf7['plugins']['get']('TrackChangesEditing');function _0x90c6c9(_0x2e5495,_0x7d03ea){_0x323e71['descriptionFactory']['registerDescriptionCallback'](_0x4de9ad=>{if('formatInline'!=_0x4de9ad['type'])return;const {data:_0x77c542}=_0x4de9ad;return _0x77c542&&_0x77c542['commandName']===_0x2e5495?_0x77c542['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xbb120f,'*Format:*\x20%0',_0x7d03ea)}:{'type':'format','content':Ot(_0xbb120f,'*Remove\x20format:*\x20%0',_0x7d03ea)}:void 0x0;});}_0x90c6c9('bold',Ot(_0xbb120f,'FORMAT_BOLD')),_0x90c6c9('italic',Ot(_0xbb120f,'FORMAT_ITALIC')),_0x90c6c9('underline',Ot(_0xbb120f,'FORMAT_UNDERLINE')),_0x90c6c9('code',Ot(_0xbb120f,'FORMAT_CODE')),_0x90c6c9('strikethrough',Ot(_0xbb120f,'FORMAT_STRIKETHROUGH')),_0x90c6c9('subscript',Ot(_0xbb120f,'FORMAT_SUBSCRIPT')),_0x90c6c9('superscript',Ot(_0xbb120f,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x9bd549{afterInit(){const _0x2a2321=this['editor'],_0x5039a2=_0x2a2321['locale'];if(!_0x2a2321['plugins']['has']('BlockQuoteEditing'))return;const _0x2940fb=_0x2a2321['plugins']['get']('TrackChangesEditing'),_0x212439=this['editor']['commands']['get']('blockQuote');_0x2940fb['enableCommand']('blockQuote',(_0x19960b,_0x5ac0cb={})=>{const _0x364621=this['editor']['model']['document']['selection'],_0x77ffee=_0x5ac0cb&&void 0x0!==_0x5ac0cb['forceValue']?_0x5ac0cb['forceValue']:!_0x212439['value'];let _0x12513e=[];_0x12513e=Ct(_0x77ffee?Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x2d844a=>Gt(_0x2d844a)||function(_0x585a55,_0x55b8c5){const _0x4b6e46=_0x55b8c5['createContext'](_0x585a55['parent']);return!!_0x55b8c5['checkChild'](_0x4b6e46,'blockQuote')&&!!_0x55b8c5['checkChild'](_0x4b6e46['push']('blockQuote'),_0x585a55);}(_0x2d844a,this['editor']['model']['schema'])):Array['from'](_0x364621['getSelectedBlocks']())['filter'](_0x50773e=>Gt(_0x50773e)),_0x2a2321['model']),_0x2a2321['model']['change'](()=>{for(const _0x4f5685 of _0x12513e)_0x2940fb['markBlockFormat'](_0x4f5685,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x77ffee}]});});}),_0x2940fb['descriptionFactory']['registerDescriptionCallback'](_0x221b2e=>{const {data:_0x539e65}=_0x221b2e;if(_0x539e65&&'blockQuote'==_0x539e65['commandName']){const _0x493745=Ot(_0x5039a2,'ELEMENT_BLOCK_QUOTE');return _0x539e65['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x5039a2,'*Set\x20format:*\x20%0',_0x493745)}:{'type':'format','content':Ot(_0x5039a2,'*Remove\x20format:*\x20%0',_0x493745)};}});}};function Gt(_0x88b2af){return'blockQuote'==_0x88b2af['parent']['name'];}var Ht=class extends _0x9bd549{afterInit(){const _0x15a6e7=this['editor'],_0x5a3f82=_0x15a6e7['locale'],_0x43b1da=_0x15a6e7['plugins']['get']('TrackChangesEditing');_0x15a6e7['plugins']['has']('BookmarkEditing')&&(_0x43b1da['enableCommand']('insertBookmark'),_0x43b1da['enableDefaultAttributesIntegration']('updateBookmark'),_0x43b1da['descriptionFactory']['registerDescriptionCallback'](_0x28e451=>{if('insertion'!=_0x28e451['type']&&'deletion'!=_0x28e451['type']&&'attribute'!=_0x28e451['type'])return;const _0x146190=_0x28e451['getContainedElement']();if(null==_0x146190)return;if(!_0x146190['is']('element','bookmark'))return;const _0x12d5ff=_0x146190['getAttribute']('bookmarkId');if('insertion'==_0x28e451['type'])return{'type':'insertion','content':Ot(_0x5a3f82,'*Insert:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28e451['type'])return{'type':'deletion','content':Ot(_0x5a3f82,'*Remove:*\x20%0','\x22'+_0x12d5ff+'\x22\x20'+Ot(_0x5a3f82,'ELEMENT_BOOKMARK'))};const {data:_0x4be337}=_0x28e451;return _0x4be337&&'bookmarkId'==_0x4be337['key']?{'type':'format','content':Ot(_0x5a3f82,'*Set\x20bookmark:*\x20%0','\x22'+_0x4be337['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x9bd549{afterInit(){const _0x884b9e=this['editor'];_0x884b9e['plugins']['has']('CaseChange')&&(_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x884b9e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x9bd549{afterInit(){const _0x431703=this['editor'];_0x431703['commands']['get']('ckbox')&&_0x431703['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x9bd549{static get requires(){return[gt,ft];}constructor(_0x230b5f){super(_0x230b5f),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x376783=this['editor'],_0x32d41e=_0x376783['plugins']['get']('ClipboardMarkersUtils'),_0x2dced6=_0x376783['plugins']['get'](ft);_0x32d41e['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x2dced6['on']('outputTransformation',(_0x475cbd,_0x10cb45)=>{const _0xb4a8bb=this['_getSuggestionEntries'](_0x10cb45);for(const [_0x5bb480,_0x8235f1]of _0x10cb45['content']['markers']){const _0x3e499d=ot['_fromRangeInDocumentFragment'](_0x8235f1,_0x376783['model']);function _0x2ae23a(){_0x3e499d['detach'](),_0x10cb45['content']['markers']['delete'](_0x5bb480);}_0x3e499d['on']('change:drop',_0x2ae23a),(_0x5bb480['startsWith']('suggestion:')||_0x5bb480['startsWith']('comment:'))&&_0x3e499d['on']('change:range',()=>{_0x3e499d['isCollapsed']&&_0x2ae23a();}),_0x10cb45['content']['markers']['set'](_0x5bb480,_0x3e499d);}const _0x29f3a6=_0xb4a8bb['filter'](_0x4bb27b=>'deletion'===_0x4bb27b['meta']['type'])['map'](_0x548307=>_0x548307['modelRange']);if(this['_shouldSkipDeletions'](_0x29f3a6,_0x10cb45['content']))return[..._0xb4a8bb]['forEach'](_0x478c9b=>{_0x10cb45['content']['markers']['get'](_0x478c9b['markerName'])['detach'](),_0x10cb45['content']['markers']['delete'](_0x478c9b['markerName']);}),void this['_restoreRegularRanges'](_0x10cb45['content']['markers']);[..._0xb4a8bb]['forEach'](_0x5513ee=>{const _0x1a1920=_0x376783['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x5513ee['meta']['type'],_0x5513ee['meta']['subType'],'accept'),{markerName:_0x3751cf,meta:_0x4c4f2f}=_0x5513ee;if(_0x10cb45['content']['markers']['has'](_0x3751cf)){switch(_0x4c4f2f['type']){case'deletion':if('tableRow'===_0x4c4f2f['subType']||'tableColumn'===_0x4c4f2f['subType']){if(!_0x376783['plugins']['has']('TableUtils'))break;const _0x43601a=_0x376783['plugins']['get']('TableUtils'),_0x51fe0e=_0x43601a['getSelectionAffectedTableCells'](_0x376783['model']['createSelection'](_0x10cb45['content']['markers']['get'](_0x3751cf))),_0x1335af=_0x51fe0e[0x0]['findAncestor']('table');if('tableRow'===_0x4c4f2f['subType']){const {first:_0x30e57d,last:_0x47a10a}=_0x43601a['getRowIndexes'](_0x51fe0e);_0x43601a['removeRows'](_0x1335af,{'at':_0x30e57d,'rows':_0x47a10a-_0x30e57d+0x1});}else{const {first:_0x1db2fc,last:_0x12c378}=_0x43601a['getColumnIndexes'](_0x51fe0e);_0x43601a['removeColumns'](_0x1335af,{'at':_0x1db2fc,'columns':_0x12c378-_0x1db2fc+0x1});}break;}_0x1a1920([_0x10cb45['content']['markers']['get'](_0x3751cf)]);}_0x10cb45['content']['markers']['has'](_0x3751cf)&&(_0x10cb45['content']['markers']['get'](_0x3751cf)['detach'](),_0x10cb45['content']['markers']['delete'](_0x3751cf));}}),this['_restoreRegularRanges'](_0x10cb45['content']['markers']);});}_getSuggestionEntries(_0x244e2a){const _0x3fc613=_0x5ddb8c=>'dragstart'===_0x244e2a['method']?_0x5ddb8c['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x5ddb8c;return Array['from'](_0x244e2a['content']['markers'])['map'](([_0x50c59f,_0x3cb0f3])=>({'markerName':_0x50c59f,'modelRange':_0x3cb0f3,'meta':et(_0x3fc613(_0x50c59f))}))['filter'](({meta:_0x429c3c})=>'suggestion'===_0x429c3c['group']);}_shouldSkipDeletions(_0x416f74,_0x2d2aae){if(!_0x416f74['length'])return!0x1;let _0x4bd520=[this['editor']['model']['createRangeIn'](_0x2d2aae)];for(const _0x862de2 of _0x416f74)_0x4bd520=_0x4bd520['flatMap'](_0xd754e9=>_0xd754e9['getDifference'](_0x862de2));return!_0x4bd520['some'](_0x1c99f6=>this['editor']['model']['hasContent'](_0x1c99f6,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x2b16f6){[..._0x2b16f6['keys']()]['forEach'](_0x3d2a4b=>{const _0x38a225=_0x2b16f6['get'](_0x3d2a4b);_0x38a225['detach'](),_0x2b16f6['set'](_0x3d2a4b,_0x38a225['toRange']());});}},jt=class extends _0x9bd549{afterInit(){const _0x2dccb4=this['editor'];if(!_0x2dccb4['plugins']['has']('CodeBlock'))return;const _0x424252=_0x2dccb4['plugins']['get']('TrackChangesEditing'),_0x1f8938=_0x2dccb4['locale'],_0x4ca020=_0x2dccb4['config']['get']('codeBlock')['languages'],_0x4d75c7=_0x2dccb4['commands']['get']('codeBlock');_0x424252['enableCommand']('indentCodeBlock'),_0x424252['enableCommand']('outdentCodeBlock'),_0x424252['enableCommand']('codeBlock',(_0x1469a2,_0x40ce27={})=>{const _0x2e3ea0=_0x2dccb4['model'],_0x14a6e7=_0x2dccb4['model']['document']['selection'],_0x319b87=_0x40ce27&&void 0x0!==_0x40ce27['forceValue']?_0x40ce27['forceValue']:!_0x4d75c7['value'];let _0x37d9eb;_0x40ce27['language']||(_0x40ce27['language']=_0x4ca020[0x0]['language']),_0x37d9eb=_0x319b87?Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x3260c8=>{return zt(_0x3260c8)||(_0x463a24=_0x3260c8,_0x42ba22=_0x2e3ea0['schema'],!_0x463a24['is']('rootElement')&&!_0x42ba22['isLimit'](_0x463a24)&&_0x42ba22['checkChild'](_0x463a24['parent'],'codeBlock'));var _0x463a24,_0x42ba22;}):Array['from'](_0x14a6e7['getSelectedBlocks']())['filter'](_0x7b2d4d=>zt(_0x7b2d4d));const _0x20cf99=Ct(_0x37d9eb,_0x2e3ea0);_0x2e3ea0['change'](()=>{for(const _0x186a9b of _0x20cf99)_0x424252['markBlockFormat'](_0x186a9b,{'commandName':'codeBlock','commandParams':[{..._0x40ce27,'forceValue':_0x319b87}],'formatGroupId':'blockName'});});}),(_0x424252['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d1697=>Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',_0x4d1697)),_0x424252['descriptionFactory']['registerDescriptionCallback'](_0x5ba558=>{if('formatBlock'!=_0x5ba558['type'])return;const _0x4f9235=_0x1f8938['t'],{data:_0x5518de}=_0x5ba558;if(!_0x5518de||'codeBlock'!=_0x5518de['commandName'])return;const _0x480ad3=_0x5518de['commandParams'][0x0]['language'],_0x2f75cb=_0x4f9235(_0x4ca020['find'](_0x40c8f1=>_0x40c8f1['language']===_0x480ad3)['label'])['toLowerCase']();return _0x5518de['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1f8938,'*Set\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2f75cb+')')}:{'type':'format','content':Ot(_0x1f8938,'*Remove\x20format:*\x20%0',Ot(_0x1f8938,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x2778c3){return'codeBlock'==_0x2778c3['name'];}var Kt=class extends _0x9bd549{afterInit(){const _0x12e5eb=this['editor'];_0x12e5eb['plugins']['has']('CommentsEditing')&&_0x12e5eb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x9bd549{static get requires(){return[mt];}init(){const _0x42ebd1=this['editor'],_0xdda8de=_0x42ebd1['plugins']['get']('TrackChangesEditing');_0xdda8de['enableCommand']('delete');const _0x1d6970=_0x42ebd1['commands']['get']('deleteForward');_0xdda8de['enableCommand']('deleteForward',(_0x53c491,_0x58513b={})=>{const _0x400c22=_0x42ebd1['model']['createSelection'](_0x42ebd1['model']['document']['selection']);_0x400c22['isCollapsed']&&_0x42ebd1['model']['modifySelection'](_0x400c22,{'direction':'forward','unit':_0x58513b['unit']});const _0x5a0176=_0x400c22['getFirstRange'](),_0x4173cf=ot['fromRange'](_0x5a0176);let _0x45beaf;_0x53c491(_0x58513b),_0x45beaf='$graveyard'==_0x4173cf['root']['rootName']?_0x42ebd1['model']['createRange'](_0x5a0176['start']):_0x42ebd1['model']['createRange'](_0x4173cf['start'],_0x4173cf['end']),_0x4173cf['detach'](),_0x42ebd1['model']['enqueueChange'](_0x1d6970['buffer']['batch'],_0x9f2bf0=>{_0x1d6970['buffer']['lock'](),_0x9f2bf0['setSelection'](_0x9f2bf0['createRange'](_0x45beaf['end'])),_0x1d6970['buffer']['unlock']();});});}},qt=class extends _0x9bd549{afterInit(){const _0x47276e=this['editor'];if(!_0x47276e['plugins']['has']('ListEditing'))return;const _0x477c92=_0x47276e['locale'],_0x160096=_0x47276e['plugins']['get']('TrackChangesEditing'),_0x4516de=_0x47276e['plugins']['has']('TodoListEditing'),_0x5d9737=!!_0x47276e['config']['get']('list.multiBlock');function _0x30c15d(_0x4fd152){return{'type':'format','content':''+Ot(_0x477c92,'*Set\x20format:*\x20%0',_0x4fd152)};}function _0x1d6e00(_0x5200c0){return{'type':'format','content':''+Ot(_0x477c92,'*Remove\x20format:*\x20%0',_0x5200c0)};}_0x160096['enableDefaultAttributesIntegration']('numberedList'),_0x160096['enableDefaultAttributesIntegration']('bulletedList'),_0x160096['enableDefaultAttributesIntegration']('customNumberedList'),_0x160096['enableDefaultAttributesIntegration']('customBulletedList'),_0x160096['enableDefaultAttributesIntegration']('indentList'),_0x160096['enableDefaultAttributesIntegration']('outdentList'),_0x160096['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x160096['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5d9737&&(_0x160096['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x160096['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4516de&&(_0x160096['enableDefaultAttributesIntegration']('todoList'),_0x160096['enableDefaultAttributesIntegration']('checkTodoList'),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x166c20=>{const {data:_0x33ab83}=_0x166c20;if(_0x33ab83&&'todoListChecked'==_0x33ab83['key'])return{'type':'format','content':_0x33ab83['newValue']?Ot(_0x477c92,'*Check\x20item*'):Ot(_0x477c92,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xb27082=>{if(_0xb27082['batch']['isUndo'])return!0x1;let _0x450c80=!0x1;const _0x400885=_0x160096['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f7628=>'todoListChecked'===_0x160096['_getAttributeKey'](_0x3f7628));for(const _0x5b2ca7 of _0x400885)'todo'!=_0x5b2ca7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x160096['_findSuggestions'](_0x5b2ca7['getFirstRange'](),'attribute')['find'](_0x4fd70e=>'listType'===_0x160096['_getAttributeKey'](_0x4fd70e['suggestion']))||(_0xb27082['removeMarker'](_0x5b2ca7['getFirstMarker']()),_0x450c80=!0x0));return _0x450c80;})),_0x160096['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x477c92,'FORMAT_INDENT'));const _0x3db429={'type':'format','content':''};_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x16bdf2=>{const {data:_0x428988}=_0x16bdf2;if(!_0x428988||'listType'!=_0x428988['key'])return;let _0x544abc=_0x16bdf2['head'];for(;_0x544abc;){if(_0x544abc['data']&&(('listStyle'==_0x544abc['data']['key']||'listMarkerStyle'==_0x544abc['data']['key'])&&(_0x544abc['data']['newValue']&&'default'!=_0x544abc['data']['newValue']||'default'!=_0x544abc['data']['oldValue']&&!_0x428988['newValue'])||!_0x5d9737&&'$elementName'==_0x544abc['data']['key']))return _0x3db429;_0x544abc=_0x544abc['next'];}if(null==_0x428988['newValue'])switch(_0x428988['oldValue']){case'bulleted':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d6e00(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}switch(_0x428988['newValue']){case'bulleted':return _0x30c15d(Ot(_0x477c92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x30c15d(Ot(_0x477c92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x30c15d(Ot(_0x477c92,'ELEMENT_TODO_LIST'));}}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x59d6f0=>{const {data:_0x1af39d}=_0x59d6f0;if(_0x1af39d&&'listIndent'==_0x1af39d['key'])return null==_0x1af39d['newValue']||null==_0x1af39d['oldValue']&&0x0==_0x1af39d['newValue']?_0x3db429:void 0x0;}),_0x160096['descriptionFactory']['registerDescriptionCallback'](_0x4b8356=>{if('attribute'!=_0x4b8356['type'])return;const {data:_0x516c5f}=_0x4b8356;if(!_0x516c5f||'listItemId'!=_0x516c5f['key'])return;const _0x52da9f=Yt(_0x4b8356);return'newValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Merge:*\x20list\x20item')}:'oldValue'==_0x52da9f?{'type':'format','content':Ot(_0x477c92,'*Split:*\x20list\x20item')}:_0x3db429;}),_0x47276e['model']['document']['registerPostFixer'](_0x57e785=>this['listItemIdFixer'](_0x57e785)),_0x47276e['model']['document']['registerPostFixer'](_0x20c325=>this['noTrackChangesFixer'](_0x20c325)),_0x47276e['model']['document']['on']('change:data',(_0xc29492,_0x2ff07a)=>{if(_0x2ff07a['isUndo']||!_0x2ff07a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x2d7f10){if(_0x2d7f10['batch']['isUndo']||!_0x2d7f10['batch']['isLocal'])return!0x1;let _0x5aa104=!0x1;const _0x25ce7b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8fce9d=>_0x8fce9d['data']&&'listItemId'==_0x8fce9d['data']['key'])['filter'](_0x3c0aee=>_0x3c0aee['data']['newValue']&&_0x3c0aee['data']['oldValue']);for(const _0x5216e7 of _0x25ce7b)Yt(_0x5216e7)||(_0x2d7f10['removeMarker'](_0x5216e7['getFirstMarker']()),_0x5aa104=!0x0);return _0x5aa104;}['noTrackChangesFixer'](_0x13f854){if(_0x13f854['batch']['isUndo']||!_0x13f854['batch']['isLocal'])return!0x1;const _0x3a5625=this['editor']['model']['document']['differ'],_0x13c930=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x13c930['trackChangesCommand']['value'])return!0x1;let _0x3d11e1=!0x1;const _0x3c0dc8=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1a61d0=_0x3a5625['getChanges']()['filter'](_0x3ff23c=>'attribute'==_0x3ff23c['type'])['filter'](_0x45883f=>_0x3c0dc8['has'](_0x45883f['attributeKey']));if(0x0==_0x1a61d0['length'])return _0x3d11e1;const _0x3820a2=new Set(_0x3a5625['getMarkersToAdd']()['filter'](_0x264625=>{if(!_0x264625['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x772885=et(_0x264625['name'])['subType']['split']('|')[0x0];return _0x3c0dc8['has'](_0x772885);})['map'](_0x213625=>et(_0x213625['name'])['id']));for(const _0x34a6ab of _0x1a61d0){const _0x21b307=_0x13c930['_findSuggestions'](_0x34a6ab['range'],'attribute')['filter'](_0x3101b3=>{if(_0x3101b3['meta']['isNextTo'])return!0x1;if(_0x3820a2['has'](_0x3101b3['suggestion']['id']))return!0x1;const _0x32d609=_0x13c930['_getAttributeKey'](_0x3101b3['suggestion']);return _0x3c0dc8['has'](_0x32d609);})['map'](_0x3d4244=>_0x3d4244['suggestion']);if(_0x21b307['length']){for(const _0x4971a4 of _0x21b307)_0x13f854['removeMarker'](_0x4971a4['getFirstMarker']());_0x3d11e1=!0x0;}}return _0x3d11e1;}['assureChains'](){const _0x4522dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5881a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4f9df6;const _0x5e71f3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5978d4=>{if(_0x5978d4['data']['oldRange']||!_0x5978d4['data']['newRange'])return null;if(!_0x5978d4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x165368}=et(_0x5978d4['name']);if(!_0x4522dd['hasSuggestion'](_0x165368))return null;const _0x309122=_0x4522dd['getSuggestion'](_0x165368);return _0x5881a4['includes'](_0x309122['data']['key']);})['map'](_0x39bf3d=>{const {id:_0x434794}=et(_0x39bf3d['name']),_0x12f76f=_0x4522dd['getSuggestion'](_0x434794);return _0x4f9df6=_0x12f76f['attributes']['groupId'],_0x12f76f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5e71f3['size'])return;const _0x3886ce=_0x4522dd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x304ca4=>'attribute'==_0x304ca4['type']&&_0x304ca4['data']&&_0x5881a4['includes'](_0x304ca4['data']['key'])&&_0x304ca4['attributes']['groupId']!=_0x4f9df6)['map'](_0x70f344=>({'listItem':_0x70f344['getFirstRange']()['start']['nodeAfter'],'groupId':_0x70f344['attributes']['groupId']})),_0x2c066d=new Set();for(const {groupId:_0x277904,listItem:_0x28b0f5}of _0x3886ce)_0x5e71f3['has'](_0x28b0f5)&&_0x2c066d['add'](_0x277904);for(const _0x324aa2 of _0x4522dd['getSuggestions']())_0x2c066d['has'](_0x324aa2['attributes']['groupId'])&&_0x324aa2['setAttribute']('groupId',_0x4f9df6);}_supportLegacySuggestions(){const _0x27532d=this['editor'],_0x438a0c=_0x27532d['locale'],_0xbfa068=_0x27532d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xbfa068['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x229ad8,_0x22f39f){const _0x905a35=[];for(let _0xa71b19 of _0x229ad8)_0xa71b19['start']['nodeAfter']===_0xa71b19['end']['parent']&&(_0xa71b19=_0x27532d['model']['createRange'](_0x27532d['model']['createPositionAt'](_0xa71b19['start']['nodeAfter'],0x0))),_0x905a35['push'](_0xa71b19);_0x27532d['model']['change'](_0x2f31f8=>{const _0x46a995=_0x27532d['model']['document']['selection'],_0xe9f387=Array['from'](_0x46a995['getRanges']())['map'](_0xbb1f97=>ot['fromRange'](_0xbb1f97));_0x2f31f8['setSelection'](_0x905a35),_0x27532d['commands']['get'](_0x22f39f['commandName'])['refresh'](),_0x22f39f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x27532d['execute'](_0x22f39f['commandName'],..._0x22f39f['commandParams']),_0x2f31f8['setSelection'](_0xe9f387);for(const _0x184e2b of _0xe9f387)_0x184e2b['detach']();});}),_0xbfa068['descriptionFactory']['registerElementLabel'](function(_0xa9704c){const _0x46bf54=!_0x27532d['model']['schema']['isObject'](_0xa9704c),_0x58fc68=_0xa9704c['previousSibling'],_0x40b257=_0xa9704c['nextSibling'],_0x88eb5=_0xa9704c['getAttribute']('listItemId'),_0x29e047=!_0x58fc68||_0x58fc68['getAttribute']('listItemId')!==_0x88eb5,_0x239eee=!_0x40b257||_0x40b257['getAttribute']('listItemId')!==_0x88eb5;return _0x46bf54&&Boolean(_0x88eb5)&&_0x29e047&&_0x239eee;},_0x3e21c5=>Ot(_0x438a0c,'ELEMENT_LIST_ITEM',_0x3e21c5));}_registerLegacyDescription(){const _0x5dc13c=this['editor'],_0x57e93d=_0x5dc13c['locale'];function _0x108269(_0x537605){const _0x2336d7=_0x5dc13c['commands']['get']('bulletedList')['value'],_0x1f07bb=_0x5dc13c['commands']['get']('numberedList')['value'];return'numberedList'===_0x537605?_0x2336d7:_0x1f07bb;}_0x5dc13c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4a0710){if('formatBlock'!=_0x4a0710['type'])return;const {data:_0x379f53}=_0x4a0710;if(!_0x379f53)return;let _0x1f7d60,_0x24d107,_0x308e,_0x5528c1;switch(_0x379f53['commandName']){case'bulletedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x308e=_0x379f53['commandParams'][0x0]['forceValue'],_0x5528c1=_0x108269(_0x379f53['commandName']),_0x1f7d60=_0x308e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5528c1&&_0x5dc13c['config']['get']('list.multiBlock')||(_0x1f7d60='*Change\x20to:*\x20%0'),_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f7d60='*Indent:*\x20%0',_0x24d107={'type':'format','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f7d60=function(_0x306381){const _0x4ab34f=_0x306381['getFirstRange']();let _0x225366=_0x4ab34f['start']['nodeAfter'];for(;_0x225366&&_0x4ab34f['containsItem'](_0x225366);){if(_0x225366['getAttribute']('listIndent')>0x0)return!0x1;_0x225366=_0x225366['nextSibling'];}return!0x0;}(_0x4a0710)?Ot(_0x57e93d,'*Format:*\x20remove\x20from\x20%0',Ot(_0x57e93d,function(_0x198947){return'ELEMENT_'+_0x198947['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4a0710))):Ot(_0x57e93d,'*Outdent:*\x20%0',Ot(_0x57e93d,'ELEMENT_LIST_ITEM')),_0x24d107={'type':'format','content':_0x1f7d60};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x379f53['multipleBlocks']&&(_0x1f7d60='*Merge:*\x20%0',_0x24d107={'type':'deletion','content':Ot(_0x57e93d,_0x1f7d60,Ot(_0x57e93d,'ELEMENT_LIST_ITEM'))});}return _0x24d107;});}};function Yt(_0x4ca4bf){let _0x529b82=_0x4ca4bf['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x529b82;){const _0x5bfb92=_0x529b82['getAttribute']('listItemId');if(!_0x5bfb92)return!0x1;if(_0x5bfb92==_0x4ca4bf['data']['newValue'])return'newValue';if(_0x5bfb92==_0x4ca4bf['data']['oldValue'])return'oldValue';_0x529b82=_0x529b82['previousSibling'];}return!0x1;}var Qt=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x395723=this['editor']['config']['get']('list.properties'),_0x6a33=this['editor']['plugins']['get']('TrackChangesEditing');_0x395723['styles']&&_0x6a33['enableDefaultAttributesIntegration']('listStyle'),_0x395723['reversed']&&_0x6a33['enableDefaultAttributesIntegration']('listReversed'),_0x395723['startIndex']&&_0x6a33['enableDefaultAttributesIntegration']('listStart');const _0x392e0e={'type':'format','content':''};_0x6a33['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a8a49=this['editor']['locale'];_0x6a33['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x2a8a49,'FORMAT_LIST_REVERSED')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x27af53=>{const {data:_0x504b56}=_0x27af53;if(_0x504b56&&'listReversed'==_0x504b56['key'])return null==_0x504b56['newValue']||0x0==_0x504b56['newValue']&&null==_0x504b56['oldValue']?_0x392e0e:void 0x0;}),_0x6a33['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x2a8a49,'FORMAT_LIST_START')),_0x6a33['descriptionFactory']['registerDescriptionCallback'](_0x408db0=>{const {data:_0x1a4ca4}=_0x408db0;if(_0x1a4ca4&&'listStart'==_0x1a4ca4['key'])return null==_0x1a4ca4['newValue']||0x1==_0x1a4ca4['newValue']&&null==_0x1a4ca4['oldValue']?_0x392e0e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x789838=>{if(_0x789838['batch']['isUndo'])return!0x1;let _0x42160c=!0x1;const _0x1b87eb=_0x6a33['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x176ee6=>{const _0x42c737=_0x6a33['_getAttributeKey'](_0x176ee6);return'listStart'==_0x42c737||'listReversed'==_0x42c737;});for(const _0x55be64 of _0x1b87eb){const _0x24a406=_0x55be64['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x24a406&&'customNumbered'!=_0x24a406&&(_0x6a33['_findSuggestions'](_0x55be64['getFirstRange'](),'attribute')['find'](_0x102f8d=>'listType'==_0x6a33['_getAttributeKey'](_0x102f8d['suggestion']))||(_0x789838['removeMarker'](_0x55be64['getFirstMarker']()),_0x42160c=!0x0));}return _0x42160c;}),this['_registerLegacyDescription']();}handleDescriptions(_0x3f9528){const _0x596e14=this['editor']['locale'],{data:_0x365901}=_0x3f9528,_0x263e5b={'type':'format','content':''};if(!_0x365901||'listStyle'!=_0x365901['key'])return;if(!_0x365901['oldValue'])return'default'==_0x365901['newValue']?_0x263e5b:{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};if(!_0x365901['newValue']){if('default'==_0x365901['oldValue'])return _0x263e5b;let _0x3cce72=_0x3f9528['head'];for(;_0x3cce72;){if(_0x3cce72['data']&&'listType'==_0x3cce72['data']['key']&&_0x3cce72['data']['newValue'])return _0x263e5b;_0x3cce72=_0x3cce72['next'];}return{'type':'format','content':''+Ot(_0x596e14,'*Remove\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['oldValue'])))};}if('default'!=_0x365901['newValue'])return{'type':'format','content':''+Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,this['_getTranslationKeyForListStyle'](_0x365901['newValue'])))};let _0x4ab4b2=_0x3f9528['head'];for(;_0x4ab4b2;){if(_0x4ab4b2['data']&&'listType'==_0x4ab4b2['data']['key']&&_0x4ab4b2['data']['newValue']&&_0x4ab4b2['data']['oldValue'])return _0x263e5b;_0x4ab4b2=_0x4ab4b2['next'];}return{'type':'format','content':Ot(_0x596e14,'*Set\x20format:*\x20%0',Ot(_0x596e14,'ELEMENT_'+_0x3f9528['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x386e67=this['editor'],_0x4f1d23=_0x386e67['locale'];_0x386e67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x266437=>{if('formatBlock'!=_0x266437['type'])return;const {data:_0x1d2481}=_0x266437;if(!_0x1d2481)return;let _0x1b4c31,_0x558d57;switch(_0x1d2481['commandName']){case'listStyle':_0x1b4c31='*Change\x20to:*\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,Ot(_0x4f1d23,this['_getTranslationKeyForListStyle'](_0x1d2481['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1b4c31=_0x1d2481['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31)};break;case'listStart':_0x1b4c31='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x558d57={'type':'format','content':Ot(_0x4f1d23,_0x1b4c31,_0x1d2481['commandParams'][0x0]['startIndex'])};}return _0x558d57;});}_getTranslationKeyForListStyle(_0x2686e0){return'ELEMENT_'+(_0x3ebd56=_0x2686e0,Zt['includes'](_0x3ebd56)?'bulleted':Jt['includes'](_0x3ebd56)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x2686e0['toUpperCase']()['replace'](/-/g,'_');var _0x3ebd56;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x9bd549{afterInit(){const _0x2ef4b6=this['editor'];_0x2ef4b6['commands']['get']('emoji')&&_0x2ef4b6['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x9bd549{static get requires(){return[Tt];}init(){const _0x5c1440=this['editor'],_0x128708=_0x5c1440['plugins']['get']('TrackChangesEditing'),_0x1e3954=_0x5c1440['commands']['get']('enter');_0x128708['enableCommand']('enter',()=>{_0x5c1440['model']['change'](_0x506e90=>{const _0x1b3b92=_0x5c1440['model']['document']['selection'],_0x7ed92d=_0x1b3b92['getFirstPosition'](),_0x5bdf8c=ot['fromRange'](_0x1b3b92['getFirstRange']());if(_0x1e3954['enterBlock'](_0x506e90)){const _0x5e84e9=_0x5c1440['model']['createPositionAt'](_0x7ed92d['parent']['nextSibling'],0x0),_0xd4a731=_0x506e90['createRange'](_0x7ed92d,_0x5e84e9);_0x128708['markInsertion'](_0xd4a731);}else _0x506e90['setSelection'](_0x506e90['createRange'](_0x5bdf8c['end']));_0x5bdf8c['detach'](),_0x1e3954['fire']('afterExecute',{'writer':_0x506e90});});});}},ne=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2ed9df=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ed9df['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2ed9df['enableCommand']('findNext'),_0x2ed9df['enableCommand']('findPrevious'),_0x2ed9df['enableCommand']('replace'),_0x2ed9df['enableCommand']('replaceAll');}['handleFindCommand'](_0x1c53a8,_0x550b0f,_0x35760c={}){const _0x2cbeb3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1c53a8(_0xcaef31=>{let _0x763459=('string'==typeof _0x550b0f?_0x2cbeb3['findByTextCallback'](_0x550b0f,_0x35760c):_0x550b0f)(_0xcaef31);Array['isArray'](_0x763459)&&(_0x763459={'results':_0x763459,'searchText':'string'==typeof _0x550b0f?_0x550b0f:''});const _0x2d1980=_0x763459['results']['filter'](_0x1c44da=>!0x1===this['_isInDeletionRange'](_0x1c44da,_0xcaef31['item']));return{..._0x763459,'results':_0x2d1980};},_0x35760c);}_isInDeletionRange(_0xc86b58,_0x157462){const _0x522cfe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['start']),this['editor']['model']['createPositionAt'](_0x157462,_0xc86b58['end']));for(const _0x567b42 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x522cfe['getIntersection'](_0x567b42['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x9bd549{afterInit(){const _0x298bba=this['editor']['locale'],_0x4558bf=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2caa62,commandName:_0x2e4b2d}of ie)this['editor']['plugins']['has'](_0x2caa62)&&_0x4558bf['enableDefaultAttributesIntegration'](_0x2e4b2d);_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x298bba,'FORMAT_FONT_SIZE')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x298bba,'FORMAT_FONT_FAMILY')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x298bba,'FORMAT_FONT_COLOR')),_0x4558bf['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x298bba,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5b5c7c=this['editor'],_0x36e5d7=_0x5b5c7c['locale'];_0x5b5c7c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15f2c3=>{const _0x5ce263=_0x36e5d7['t'];if('formatInline'!=_0x15f2c3['type'])return;const {data:_0x5d51c6}=_0x15f2c3;if(null!=_0x5d51c6){if('fontSize'==_0x5d51c6['commandName']){const _0x1ae0e6=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1ae0e6){const _0x1331dd=_0x5ce263(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43c26c=>_0x43c26c['model']==_0x1ae0e6)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20size:*\x20%0',_0x1331dd)};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5d51c6['commandName']){const _0x4ef48c=_0x5d51c6['commandParams'][0x0]['value'];return _0x4ef48c?{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20family:*\x20%0',_0x4ef48c)}:{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5d51c6['commandName']){const _0x1848d2=_0x5d51c6['commandParams'][0x0]['value'];if(_0x1848d2){const _0x34f22e=_0x178ae1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c917e=>_0x5c917e['model']==_0x1848d2);let _0x1e2246=_0x1848d2,_0xe044b9='';return _0x34f22e&&(_0x1e2246=_0x34f22e['label'],_0xe044b9=_0x5ce263(_0x1e2246)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20color:*\x20%0',_0xe044b9)['trim'](),'color':{'value':_0x1848d2,'title':_0xe044b9||_0x1e2246}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5d51c6['commandName']){const _0x541cf1=_0x5d51c6['commandParams'][0x0]['value'];if(_0x541cf1){const _0x7927a6=_0x178ae1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xa7ca82=>_0xa7ca82['model']==_0x541cf1);let _0xb64d08=_0x541cf1,_0x5996f0='';return _0x7927a6&&(_0xb64d08=_0x7927a6['label'],_0x5996f0=_0x5ce263(_0xb64d08)['toLowerCase']()),{'type':'format','content':Ot(_0x36e5d7,'*Set\x20font\x20background\x20color:*\x20%0',_0x5996f0)['trim'](),'color':{'value':_0x541cf1,'title':_0x5996f0||_0xb64d08}};}return{'type':'format','content':Ot(_0x36e5d7,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x9bd549{afterInit(){const {plugins:_0x3467f4}=this['editor'];_0x3467f4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3467f4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x53f8ef,plugins:_0x515a7d,commands:_0x22086d}=this['editor'],_0x32cacc=_0x515a7d['get']('TrackChangesEditing');_0x22086d['get']('footnotesStyle')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStyle'),_0x22086d['get']('footnotesStart')&&_0x32cacc['enableDefaultAttributesIntegration']('footnotesStart'),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x32cacc['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x53f8ef,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x14fb71=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3a31e7,commands:_0x58bd74}=this['editor'];_0x58bd74['get']('insertFootnote')&&_0x14fb71['enableCommand']('insertFootnote'),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteRef',_0x28934e=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_REF',_0x28934e)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x204f97=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTE_DEFINITION',_0x204f97)),_0x14fb71['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x5009cd=>Ot(_0x3a31e7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x5009cd));}},oe=class extends _0x9bd549{afterInit(){const _0x2c09b6=this['editor'],_0xf288e=_0x2c09b6['plugins']['get']('TrackChangesEditing'),_0x5bb2be=_0x2c09b6['commands']['get']('copyFormat'),_0x3fae7d=_0x2c09b6['commands']['get']('pasteFormat');_0x5bb2be&&_0x3fae7d&&(_0xf288e['enableDefaultAttributesIntegration']('pasteFormat'),_0xf288e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x45d77a=this['editor'],_0x498c39=_0x45d77a['locale'];_0x45d77a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x352348=>{if('formatBlock'!=_0x352348['type']&&'formatInline'!=_0x352348['type'])return;const {data:_0x127680}=_0x352348;if(_0x127680&&'pasteFormat'===_0x127680['commandName']){const _0x5884c0=[],_0x553ef0=_0x127680['commandParams'][0x0];for(const [_0x19c44f,_0x5a42cc]of Object['entries'](_0x553ef0))_0x5884c0['push'](ae(_0x45d77a,_0x19c44f,_0x5a42cc));return _0x5884c0['length']?{'type':'format','content':Ot(_0x498c39,'*Set\x20format\x20to:*\x20%0',_0x5884c0['join'](',\x20'))}:{'type':'format','content':Ot(_0x498c39,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x2d1b86,_0x34ecbd,_0x58b998){const _0xaa76c0=_0x2d1b86['locale']['t'],_0x31a0c0=_0x34ecbd['split'](/(?=[A-Z])/)['join']('\x20'),_0x2520a7=_0xaa76c0(_0x31a0c0['charAt'](0x0)['toUpperCase']()+_0x31a0c0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x58b998)return _0x2520a7;if('fontColor'===_0x34ecbd||'fontBackgroundColor'===_0x34ecbd){const _0x24258d=_0x178ae1(_0x2d1b86['config']['get']('fontColor.colors'))['find'](_0x12a8b7=>_0x12a8b7['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x24258d?_0xaa76c0(_0x24258d['label'])['toLowerCase']():_0x58b998)+')';}if('fontSize'===_0x34ecbd&&isNaN(parseFloat(_0x58b998))){const _0x253257=_0x2d1b86['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2d1b86['config']['get']('fontSize.options'))['find'](_0x341b99=>_0x341b99['model']==_0x58b998);return _0x2520a7+'\x20('+(_0x253257?_0xaa76c0(_0x253257['title'])['toLowerCase']():_0x58b998)+')';}return _0x2520a7+'\x20('+_0x58b998+')';}var ce=class extends _0x9bd549{afterInit(){const _0x48e910=this['editor'];if(!_0x48e910['plugins']['has']('GeneralHtmlSupport')||!_0x48e910['plugins']['has']('DataSchema'))return;const _0x2b429a=_0x48e910['plugins']['get']('TrackChangesEditing'),_0x444670=_0x48e910['plugins']['get']('GeneralHtmlSupport'),_0x22e477=_0x48e910['plugins']['get']('DataSchema'),_0x10de56=_0x48e910['locale'],_0x4d35cc=new Set(['htmlContent']);for(const _0x1e4e80 of _0x22e477['getDefinitionsForView'](/.*/,!0x1)){const _0x11a223=_0x1e4e80['view'],_0x396d88=_0x444670['getGhsAttributeNameForElement'](_0x11a223);_0x4d35cc['add'](_0x396d88),!_0x1e4e80['isInline']||_0x1e4e80['isObject']||'appliesToBlock'in _0x1e4e80&&_0x1e4e80['appliesToBlock']||_0x2b429a['descriptionFactory']['registerAttributeLabel'](_0x396d88,_0x11a223),_0x1e4e80['model']['startsWith']('html')&&_0x2b429a['descriptionFactory']['registerElementLabel'](_0x1e4e80['model'],_0x4db070=>Ot(_0x10de56,'ELEMENT_HTML_TAG',[_0x4db070,_0x11a223]));}_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x10de56,'FORMAT_RAW_HTML_CONTENT')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x10de56,'FORMAT_HTML_LIST_ITEM')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x10de56,'FORMAT_HTML_BULLETED_LIST')),_0x2b429a['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x10de56,'FORMAT_HTML_NUMBERED_LIST')),_0x2b429a['descriptionFactory']['registerDescriptionCallback'](_0xf40aeb=>{if('attribute'!==_0xf40aeb['type'])return;const _0x467421=_0xf40aeb['data'];if(!_0x467421||!_0x4d35cc['has'](_0x467421['key']))return;if('htmlContent'===_0x467421['key'])return{'type':'format','content':Ot(_0x10de56,'*Change\x20%0\x20content*',Ot(_0x10de56,'ELEMENT_RAW_HTML'))};const {setItems:_0xf2d72f,removeItems:_0x4c3a54}=function(_0x2df38d,_0x12612d,_0x3a0f75){const _0x556ba0=[],_0x995f37=[],_0x5930a7=_0x2df38d['styles']??{},_0x3d01d3=_0x12612d['styles']??{};for(const _0x79f738 of new Set([...Object['keys'](_0x5930a7),...Object['keys'](_0x3d01d3)]))_0x5930a7[_0x79f738]!==_0x3d01d3[_0x79f738]&&(void 0x0===_0x3d01d3[_0x79f738]?_0x995f37['push'](_0x79f738):_0x556ba0['push'](_0x79f738+'\x20('+_0x3d01d3[_0x79f738]+')'));const _0x426ce4=Ot(_0x3a0f75,'FORMAT_HTML_CLASS'),_0x4ef6f2=new Set(_0x2df38d['classes']??[]),_0x367568=new Set(_0x12612d['classes']??[]),_0x45a922=[..._0x367568]['some'](_0x5ed7d7=>!_0x4ef6f2['has'](_0x5ed7d7)),_0x1716e0=[..._0x4ef6f2]['some'](_0x178764=>!_0x367568['has'](_0x178764));_0x45a922&&_0x556ba0['push'](_0x426ce4),_0x1716e0&&_0x995f37['push'](_0x426ce4);const _0x33bf5b=Ot(_0x3a0f75,'FORMAT_HTML_ATTRIBUTE'),_0x32a582=_0x2df38d['attributes']??{},_0x592d75=_0x12612d['attributes']??{};let _0x3d7dae=!0x1,_0x1ef294=!0x1;for(const _0x18f664 of new Set([...Object['keys'](_0x32a582),...Object['keys'](_0x592d75)]))_0x32a582[_0x18f664]!==_0x592d75[_0x18f664]&&(void 0x0===_0x592d75[_0x18f664]?_0x1ef294=!0x0:_0x3d7dae=!0x0);return _0x3d7dae&&_0x556ba0['push'](_0x33bf5b),_0x1ef294&&_0x995f37['push'](_0x33bf5b),{'setItems':_0x556ba0,'removeItems':_0x995f37};}(_0x467421['oldValue']??{},_0x467421['newValue']??{},_0x10de56);if(!_0xf2d72f['length']&&!_0x4c3a54['length'])return;const _0xcded86=[];return _0xf2d72f['length']&&_0xcded86['push'](Ot(_0x10de56,'*Set\x20format:*\x20%0',_0xf2d72f['join'](',\x20'))),_0x4c3a54['length']&&_0xcded86['push'](Ot(_0x10de56,'*Remove\x20format:*\x20%0',_0x4c3a54['join'](',\x20'))),{'type':'format','content':_0xcded86['join']('\x0a')};});}},le=class extends _0x9bd549{_headingOptions;afterInit(){const _0x5573a6=this['editor'];if(!_0x5573a6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5573a6['config']['get']('heading.options');const _0x3d73e0=_0x5573a6['locale'],_0x5722a3=_0x5573a6['plugins']['get']('TrackChangesEditing');_0x5722a3['enableDefaultAttributesIntegration']('heading');for(const _0x1fc503 of this['_headingOptions'])'paragraph'!=_0x1fc503['model']&&_0x5722a3['descriptionFactory']['registerElementLabel'](_0x1fc503['model'],_0x2302dd=>{const _0x547e97=this['_getHeadingLevel'](_0x1fc503['model']);return null!==_0x547e97?_0x3d19ab(_0x2302dd,_0x547e97):_0x309514(_0x2302dd,_0x1fc503['title']);});function _0x3d19ab(_0x5986e6,_0x5f0f77){return Ot(_0x3d73e0,'ELEMENT_HEADING',[_0x5986e6,_0x5f0f77]);}function _0x309514(_0x38ca67,_0x357d61){return Ot(_0x3d73e0,'ELEMENT_HEADING_CUSTOM',[_0x38ca67,_0x357d61]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1958d4=this['editor'],_0x4d8a03=_0x1958d4['locale'];function _0x40190a(_0x61604e,_0x6688e){return Ot(_0x4d8a03,'ELEMENT_HEADING_CUSTOM',[_0x61604e,_0x6688e]);}_0x1958d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e80d=>{if('formatBlock'!=_0x46e80d['type'])return;const {data:_0x408721}=_0x46e80d;if(_0x408721&&'heading'==_0x408721['commandName']){const _0x5fd74c=_0x408721['commandParams'][0x0]['value'],_0x5f48b0=this['_getHeadingLevel'](_0x5fd74c);if(null!==_0x5f48b0)return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',(_0x29e476=0x1,_0x3224c9=_0x5f48b0,Ot(_0x4d8a03,'ELEMENT_HEADING',[_0x29e476,_0x3224c9])))};const _0x715654=this['_headingOptions']['find'](_0xd7b24=>_0xd7b24['model']===_0x5fd74c)['title'];return{'type':'format','content':Ot(_0x4d8a03,'*Change\x20to:*\x20%0',_0x40190a(0x1,_0x715654))};}var _0x29e476,_0x3224c9;});}_getHeadingLevel(_0x5caf5b){const _0x962db4=_0x5caf5b['match'](/^heading(\d+)/);if(_0x962db4)return _0x962db4[0x1];const _0x2d19c1=this['_headingOptions']?.['find'](_0x1b7ec2=>_0x1b7ec2['model']==_0x5caf5b);if(_0x2d19c1&&_0x2d19c1['view']){const _0x5d650c=_0x2d19c1['view'],_0x5e2a1d=(_0x5d650c['name']??_0x5d650c)['match'](/^h(\d+)/);if(_0x5e2a1d)return _0x5e2a1d[0x1];}return null;}},ue=class extends _0x9bd549{afterInit(){const _0x3cee0a=this['editor'];if(!_0x3cee0a['plugins']['has']('HighlightEditing'))return;const _0x2f59f1=_0x3cee0a['plugins']['get']('TrackChangesEditing'),_0x2a706b=_0x3cee0a['locale'];_0x2f59f1['enableDefaultAttributesIntegration']('highlight'),_0x2f59f1['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x2a706b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x457f0a=this['editor'],_0x2a3b38=_0x457f0a['locale'];_0x457f0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ced25=>{if('formatInline'!=_0x3ced25['type'])return;const {data:_0x4e7a16}=_0x3ced25;if(_0x4e7a16&&'highlight'==_0x4e7a16['commandName']){const _0x5493c8=_0x2a3b38['t'],_0x21ba44=_0x4e7a16['commandParams'][0x0]['value'];if(_0x21ba44){const _0x3e659d=_0x457f0a['config']['get']('highlight.options')['find'](_0x43937d=>_0x43937d['model']==_0x21ba44),_0x154029=_0x5493c8(_0x3e659d['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2a3b38,'*Set\x20highlight:*\x20%0',_0x154029),'color':{'value':_0x3e659d['color'],'title':_0x3e659d['title']}};}return{'type':'format','content':Ot(_0x2a3b38,'*Remove\x20highlight*',Ot(_0x2a3b38,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x9bd549{afterInit(){const _0x2891ec=this['editor'];if(!_0x2891ec['plugins']['has']('HorizontalLineEditing'))return;_0x2891ec['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1e4e7d=_0x2891ec['plugins']['get']('TrackChangesEditing'),_0x1ad283=_0x2891ec['locale'];_0x1e4e7d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x574969=>Ot(_0x1ad283,'ELEMENT_HORIZONTAL_LINE',_0x574969));}},he=class extends _0x9bd549{afterInit(){const _0x5c3e64=this['editor'];if(!_0x5c3e64['plugins']['has']('HtmlEmbed'))return;const _0x3af3a7=_0x5c3e64['plugins']['get']('TrackChangesEditing'),_0x44405a=_0x5c3e64['locale'];_0x3af3a7['descriptionFactory']['registerElementLabel']('rawHtml',_0xaded1a=>Ot(_0x44405a,'ELEMENT_HTML_EMBED',_0xaded1a)),_0x3af3a7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3af3a7['descriptionFactory']['registerDescriptionCallback'](_0x22a2b2=>{if('attribute'!=_0x22a2b2['type'])return;const {data:_0x3facdf}=_0x22a2b2;if(_0x3facdf&&'value'==_0x3facdf['key']&&_0x22a2b2['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1af8c3=Ot(_0x44405a,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x44405a,'*Change\x20%0\x20content*',_0x1af8c3)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xafd541=this['editor'],_0x213f3e=_0xafd541['locale'];_0xafd541['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b57d2=>{if('formatBlock'!=_0x1b57d2['type'])return;const {data:_0x524413}=_0x1b57d2;if(_0x524413&&'htmlEmbed'==_0x524413['commandName']){const _0x290c13=Ot(_0x213f3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x213f3e,'*Change\x20%0\x20content*',_0x290c13)};}});}},ge=class extends _0x9bd549{afterInit(){const _0x45b027=this['editor'];if(!_0x45b027['plugins']['has']('ImageEditing'))return;const _0x48a2aa=_0x45b027['plugins']['get']('TrackChangesEditing'),_0x187b67=_0x45b027['plugins']['get']('ImageUtils'),_0x165a8d=_0x45b027['locale'];_0x48a2aa['enableCommand']('insertImage'),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageBlock',_0x5058a1=>Ot(_0x165a8d,'ELEMENT_IMAGE',_0x5058a1)),_0x48a2aa['descriptionFactory']['registerElementLabel']('imageInline',_0x1a1c8c=>Ot(_0x165a8d,'ELEMENT_INLINE_IMAGE',_0x1a1c8c)),_0x48a2aa['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x165a8d,'ELEMENT_CAPTION')),_0x45b027['plugins']['has']('ImageUploadEditing')&&_0x48a2aa['enableCommand']('uploadImage'),_0x45b027['plugins']['has']('ImageBlockEditing')&&_0x45b027['plugins']['has']('ImageInlineEditing')&&(_0x48a2aa['enableCommand']('imageTypeInline',(_0x1a1492,_0x4627a8)=>{const _0xa368a2=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']);_0x45b027['model']['change'](()=>{_0x48a2aa['markBlockFormat'](_0xa368a2,{'commandName':'imageTypeInline','commandParams':[_0x4627a8]},[],'convertBlockImageToInline');});}),_0x48a2aa['enableCommand']('imageTypeBlock',(_0x7f9895,_0x3d985e)=>{_0x45b027['model']['change'](_0x426fc0=>{let _0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x4ea15a=rt['fromPosition'](_0x2cdeec['start'],'toPrevious'),_0xe3902e=rt['fromPosition'](_0x2cdeec['end'],'toNext');_0x48a2aa['forceDefaultExecution'](()=>_0x7f9895(_0x3d985e)),_0x23cf1e=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x2cdeec=_0x426fc0['createRangeOn'](_0x23cf1e);const _0x57c8e2=_0x426fc0['createRange'](_0x4ea15a,_0xe3902e);_0x4ea15a['detach'](),_0xe3902e['detach'](),_0x48a2aa['markBlockFormat'](_0x23cf1e,{'commandName':'imageTypeInline','commandParams':[_0x3d985e]},[],'convertInlineImageToBlock'),_0x57c8e2['start']['isBefore'](_0x2cdeec['start'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x57c8e2['start'],_0x2cdeec['start']),'convertInlineImageToBlock'),_0x2cdeec['end']['isBefore'](_0x57c8e2['end'])&&_0x48a2aa['markInsertion'](_0x426fc0['createRange'](_0x2cdeec['end'],_0x57c8e2['end']),'convertInlineImageToBlock');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1bebbf])=>{const _0x524343=_0x48a2aa['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xd62793=_0x1bebbf['start'],_0x4388b8=_0x1bebbf['end'];const _0x44016f=_0x45b027['model']['schema']['getNearestSelectionRange'](_0xd62793,'backward'),_0x4c6246=_0x45b027['model']['schema']['getNearestSelectionRange'](_0x4388b8,'forward');_0x44016f['isCollapsed']&&(_0xd62793=_0x44016f['start']),_0x4c6246['isCollapsed']&&(_0x4388b8=_0x4c6246['end']),_0x524343([_0x45b027['model']['createRange'](_0xd62793,_0x4388b8)]);}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xf29745),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xf29745)),_0x45b027['plugins']['has']('ImageCaptionEditing')&&(_0x48a2aa['enableCommand']('toggleImageCaption',(_0x251e16,_0x50ef60)=>{const _0x19911a=_0x45b027['plugins']['get']('ImageCaptionUtils');let _0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5);_0x45b027['model']['change'](()=>{if(_0x4fe56a)return void _0x48a2aa['markDeletion'](_0x45b027['model']['createRangeOn'](_0x4fe56a));const _0x5df2a1=_0x187b67['isBlockImage'](_0x19b9e5);_0x251e16(_0x50ef60),_0x19b9e5=_0x187b67['getClosestSelectedImageElement'](_0x45b027['model']['document']['selection']),_0x4fe56a=_0x19911a['getCaptionFromImageModelElement'](_0x19b9e5),_0x48a2aa['markInsertion'](_0x45b027['model']['createRangeOn'](_0x4fe56a),_0x5df2a1?null:'imageCaption');});}),_0x48a2aa['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xf29745));const _0x2c7b5d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x55b00c(_0x1a3891,_0x14f15f){const _0xb4deb6=_0x2c7b5d['findIndex'](({type:_0x1e4125,subType:_0x5d99df})=>_0x1a3891['type']==_0x1e4125&&_0x1a3891['subType']==_0x5d99df),_0x3f3a7e=_0x2c7b5d['findIndex'](({type:_0x4f62c8,subType:_0x1c6813})=>_0x14f15f['type']==_0x4f62c8&&_0x14f15f['subType']==_0x1c6813);if(_0xb4deb6<0x0||_0x3f3a7e<0x0)return!0x1;const _0x70b34e=_0x1a3891['getFirstRange'](),_0x4f67bc=_0x14f15f['getFirstRange']();if((0x0==_0xb4deb6||0x1==_0xb4deb6)&&0x2==_0x3f3a7e&&_0x70b34e['isIntersecting'](_0x4f67bc))return!0x0;if(0x2==_0xb4deb6&&0x3==_0x3f3a7e){const _0x43ad43=_0x48a2aa['_findSuggestions'](_0x70b34e,'insertion')['filter'](({suggestion:_0x43f9ae,meta:_0x356464})=>_0x356464['isOwn']&&'convertInlineImageToBlock'==_0x43f9ae['subType']);if(_0x43ad43['length']>0x1&&_0x4f67bc['end']['isEqual'](_0x70b34e['start']))return!0x0;if(0x1==_0x43ad43['length']&&(_0x70b34e['start']['isEqual'](_0x4f67bc['end'])||_0x70b34e['end']['isEqual'](_0x4f67bc['start'])))return!0x0;}if(0x3==_0xb4deb6&&0x3==_0x3f3a7e&&_0x70b34e['start']['isBefore'](_0x4f67bc['start'])){const _0x433a31=_0x70b34e['end']['nodeAfter'],_0x3a07a5=_0x4f67bc['start']['nodeBefore'];return _0x187b67['isBlockImage'](_0x433a31)&&_0x433a31===_0x3a07a5;}return!0x1;}function _0xf29745(_0xcc670c,_0x26539c){return _0x55b00c(_0xcc670c,_0x26539c)?[_0xcc670c,_0x26539c]:_0x55b00c(_0x26539c,_0xcc670c)?[_0x26539c,_0xcc670c]:null;}_0x45b027['plugins']['has']('ImageResize')&&(_0x48a2aa['enableDefaultAttributesIntegration']('resizeImage'),_0x48a2aa['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x165a8d,'FORMAT_IMAGE_SIZE'))),_0x45b027['plugins']['has']('ImageTextAlternativeEditing')&&_0x48a2aa['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45b027['plugins']['has']('PictureEditing')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x227408=>{if('attribute'!=_0x227408['type'])return;const {data:_0x17120d}=_0x227408;return _0x17120d&&'sources'==_0x17120d['key']?{'type':'format','content':''}:void 0x0;}),_0x45b027['plugins']['has']('ImageSizeAttributes')&&_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x4eeffa=>{if('attribute'!=_0x4eeffa['type'])return;const {data:_0x3ca58e}=_0x4eeffa;return!_0x3ca58e||'width'!=_0x3ca58e['key']&&'height'!=_0x3ca58e['key']?void 0x0:{'type':'format','content':''};}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x3e86a0=>{if(_0x2c7b5d['find'](({type:_0x509874,subType:_0xbf7eb4})=>_0x3e86a0['type']==_0x509874&&_0x3e86a0['subType']==_0xbf7eb4))return _0x3e86a0['previous']?{}:void 0x0;}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x305b8d=>{if('insertion'==_0x305b8d['type']||'deletion'==_0x305b8d['type']){const _0x3f35a0=_0x305b8d['getContainedElement']();if(_0x3f35a0&&_0x3f35a0['is']('element','caption'))return{'type':'insertion'==_0x305b8d['type']?'addObject':'removeObject','element':_0x3f35a0,'quantity':0x1};}}),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x52670b=>'formatBlock'==_0x52670b['type']&&'convertInlineImageToBlock'==_0x52670b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x52670b['type']&&'convertBlockImageToInline'==_0x52670b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48a2aa['descriptionFactory']['registerDescriptionCallback'](_0x7e2172=>{if('attribute'!=_0x7e2172['type'])return;const {data:_0x57a32f}=_0x7e2172;if(!_0x57a32f||'alt'!=_0x57a32f['key'])return;const _0x49aa33=_0x57a32f['newValue'];return _0x49aa33?{'type':'format','content':Ot(_0x165a8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49aa33+'\x22')}:{'type':'format','content':Ot(_0x165a8d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5db348=this['editor'],_0x10706b=_0x5db348['locale'];_0x5db348['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a968c=>{if('formatBlock'!=_0x1a968c['type']&&'formatInline'!=_0x1a968c['type'])return;const {data:_0x6ece95}=_0x1a968c;if(_0x6ece95){if('imageTextAlternative'==_0x6ece95['commandName']){const _0x2e16f5=_0x6ece95['commandParams'][0x0]['newValue'];return _0x2e16f5?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e16f5+'\x22')}:{'type':'format','content':Ot(_0x10706b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x6ece95['commandName']){const _0x1841ea=_0x6ece95['commandParams'][0x0]['width'];return _0x1841ea?{'type':'format','content':Ot(_0x10706b,'*Set\x20image\x20width:*\x20%0',_0x1841ea)}:{'type':'format','content':Ot(_0x10706b,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3b5393=this['editor']['locale'],_0xa55ae7=this['editor']['plugins']['get']('TrackChangesEditing');_0xa55ae7['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa55ae7['descriptionFactory']['registerDescriptionCallback'](_0xecc139=>{if('attribute'!=_0xecc139['type'])return;const {data:_0x34aa37}=_0xecc139;return _0x34aa37&&'src'==_0x34aa37['key']?_0x34aa37['newValue']&&_0x34aa37['oldValue']?{'type':'format','content':Ot(_0x3b5393,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4d20f5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d20f5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d20f5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x171dfe=this['editor'],_0x2bc286=_0x171dfe['locale'];_0x171dfe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x398ee5=>{if('formatBlock'!=_0x398ee5['type']&&'formatInline'!=_0x398ee5['type'])return;const {data:_0x40b71d}=_0x398ee5;return _0x40b71d&&'replaceImageSource'==_0x40b71d['commandName']?{'type':'format','content':Ot(_0x2bc286,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x9bd549{afterInit(){const _0x35c326=this['editor'];if(!_0x35c326['plugins']['has']('ImageStyleEditing'))return;const _0x17404f=_0x35c326['plugins']['get']('TrackChangesEditing'),_0x5e4e43=_0x35c326['plugins']['get']('ImageUtils'),_0xb55065={};_0x17404f['enableCommand']('imageStyle',(_0x428ec4,_0x28396a)=>{const _0xb4b54f=_0x35c326['plugins']['get']('Users')['me'],_0x203217=_0x35c326['commands']['get']('imageStyle');let _0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x2e2a85=_0x203217['value'];if(_0x2e2a85==_0x28396a['value'])return;if(_0x28396a['value']&&_0x5e4e43['isInlineImage'](_0x491306)&&!_0x203217['isStyleEnabled'](_0x28396a['value']))return;const _0x46662a={'commandName':'imageStyle','commandParams':[_0x28396a],'formatGroupId':_0x2e6a13()};_0x35c326['model']['change'](()=>{if(_0x17404f['getSuggestions']()['filter'](_0x478cf6=>_0x478cf6['isInContent']&&_0xb4b54f==_0x478cf6['author']&&('formatBlock'==_0x478cf6['type']||'formatInline'==_0x478cf6['type'])&&('imageStylePreApply'==_0x478cf6['subType']||'imageStylePostApply'==_0x478cf6['subType'])&&_0x478cf6['getFirstRange']()['isEqual'](_0x310721))['forEach'](_0x3aebb2=>_0x17404f['discardSuggestion'](_0x3aebb2['head'])),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),_0x310721=_0x35c326['model']['createRangeOn'](_0x491306),_0x203217['refresh'](),_0x35c326['commands']['get']('imageTypeInline')['refresh'](),_0x35c326['commands']['get']('imageTypeBlock')['refresh'](),_0x2e2a85=_0x203217['value'],_0x2e2a85!=_0x28396a['value'])return _0x5e4e43['isInlineImage'](_0x491306)&&_0x203217['shouldConvertImageType'](_0x28396a['value'],_0x491306)?(_0x428ec4({..._0x28396a,'setImageSizes':!0x1}),_0x491306=_0x5e4e43['getClosestSelectedImageElement'](_0x35c326['model']['document']['selection']),void _0x17404f['markBlockFormat'](_0x491306,{..._0x46662a,'commandReversedParams':[{'value':_0x2e2a85||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5e4e43['isBlockImage'](_0x491306)?_0x17404f['markBlockFormat'](_0x491306,_0x46662a,[],'imageStylePostApply'):_0x17404f['markInlineFormat'](_0x310721,_0x46662a,'imageStylePostApply'));});});for(const _0x709b20 of _0x35c326['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xb55065[_0x709b20['name']]=_0x709b20['title']['toLowerCase']();_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4f2808])=>{_0x5e4e43['setImageNaturalSizeAttributes'](_0x4f2808['getContainedElement']());}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4c0f69,_0x3bfb72)=>{_0x17404f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4c0f69,{'commandName':_0x3bfb72['commandName'],'commandParams':_0x3bfb72['commandReversedParams']});}),_0x17404f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6a8c73,_0x3f4d63){return _0x43b316(_0x6a8c73,_0x3f4d63)?[_0x6a8c73,_0x3f4d63]:_0x43b316(_0x3f4d63,_0x6a8c73)?[_0x3f4d63,_0x6a8c73]:null;});const _0x59fc3c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x43b316(_0x57603b,_0x3007a2){const _0x5352e7=_0x59fc3c['findIndex'](({type:_0x5c21f2,subType:_0xae2411})=>_0x57603b['type']==_0x5c21f2&&_0x57603b['subType']==_0xae2411),_0x2b8ef7=_0x59fc3c['findIndex'](({type:_0x1e0a97,subType:_0xeef976})=>_0x3007a2['type']==_0x1e0a97&&_0x3007a2['subType']==_0xeef976);if(_0x5352e7<0x0||_0x2b8ef7<0x0)return!0x1;const _0x2e6e93=_0x57603b['getFirstRange'](),_0x20bdaa=_0x3007a2['getFirstRange']();if((0x0==_0x5352e7||0x1==_0x5352e7)&&0x2==_0x2b8ef7&&_0x2e6e93['isIntersecting'](_0x20bdaa))return!0x0;if(0x2==_0x5352e7&&0x3==_0x2b8ef7){const _0x364642=_0x17404f['_findSuggestions'](_0x2e6e93,'insertion')['filter'](({suggestion:_0x1ab3e0,meta:_0x2558a7})=>_0x2558a7['isOwn']&&'convertInlineImageToBlock'==_0x1ab3e0['subType']);if(_0x364642['length']>0x1&&_0x20bdaa['end']['isEqual'](_0x2e6e93['start']))return!0x0;if(0x1==_0x364642['length']&&(_0x2e6e93['start']['isEqual'](_0x20bdaa['end'])||_0x2e6e93['end']['isEqual'](_0x20bdaa['start'])))return!0x0;}if(0x3==_0x5352e7&&0x3==_0x2b8ef7&&_0x2e6e93['start']['isBefore'](_0x20bdaa['start'])){const _0x2fcd37=_0x2e6e93['end']['nodeAfter'],_0x231e24=_0x20bdaa['start']['nodeBefore'];return _0x5e4e43['isBlockImage'](_0x2fcd37)&&_0x2fcd37===_0x231e24;}return!0x1;}_0x35c326['model']['document']['registerPostFixer'](()=>{let _0x4a8be6=!0x1;const _0x253653=Array['from'](_0x35c326['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2b7406,data:_0x2c299c}of _0x253653){const {group:_0x259d7f,type:_0x5b1892,subType:_0x149bf8,id:_0x261c7b}=et(_0x2b7406);if('suggestion'==_0x259d7f&&_0x17404f['hasSuggestion'](_0x261c7b)){if('formatBlock'==_0x5b1892&&('imageStylePreApply'==_0x149bf8||'imageStylePostApply'==_0x149bf8)){const _0x50c241=_0x17404f['getSuggestion'](_0x261c7b);if(_0x2c299c['newRange']){const _0x3a8aea=_0x50c241['getFirstRange']()['getContainedElement']();if(_0x5e4e43['isBlockImage'](_0x3a8aea))continue;_0x17404f['discardSuggestion'](_0x50c241),_0x4a8be6=!0x0;}}if('insertion'==_0x5b1892&&'imageCaption'==_0x149bf8&&!_0x2c299c['newRange']){const _0x304fa0=_0x17404f['getSuggestion'](_0x261c7b);_0x304fa0['next']&&_0x304fa0['next']['isInContent']&&(_0x17404f['discardSuggestion'](_0x304fa0['next']),_0x4a8be6=!0x0);}}}return _0x4a8be6;}),this['_registerLegacyDescription'](_0xb55065);}_registerLegacyDescription(_0x4169fa){const _0x42afc6=this['editor'],_0x11d345=_0x42afc6['locale'];_0x42afc6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a1bb=>{if('formatBlock'!=_0x47a1bb['type']&&'formatInline'!=_0x47a1bb['type'])return;const {data:_0x477581}=_0x47a1bb;if(!_0x477581||'imageStyle'!=_0x477581['commandName'])return;const _0x49af10=_0x477581['commandParams'][0x0]['value'];return _0x1a3e17('side'===_0x49af10?Ot(_0x11d345,'FORMAT_SIDE_IMAGE'):_0x4169fa[_0x49af10]||_0x49af10);function _0x1a3e17(_0x14820e){return{'type':'format','content':Ot(_0x11d345,'*Format:*\x20%0',_0x14820e)};}});}},Ee=class extends _0x9bd549{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x193520){super(_0x193520),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x376fb4=this['editor'],_0x29f0e1=_0x376fb4['commands']['get']('importWord'),_0x39e544=_0x376fb4['commands']['get']('trackChanges');_0x29f0e1&&(_0x29f0e1['on']('execute',(_0x4ed729,[,_0x766790])=>{this['_trackChangesValueDuringImport']=_0x39e544['value'],_0x766790['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29f0e1,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29f0e1,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x39e544['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x376fb4['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x53bb6e,_0x2701fd){const {suggestions:_0x7908fa}=_0x2701fd,_0x21ab46=this['editor']['commands']['get']('trackChanges'),_0x53d928=_0x21ab46['value'];this['_trackChangesValueDuringImport']!==_0x53d928&&(_0x21ab46['execute'](),this['_trackChangesExecuted']=!0x0),_0x7908fa&&_0x7908fa['forEach'](({id:_0x5a748d,type:_0x3a759c,author:_0x525b32,created_at:_0x16f1b6})=>{const _0x1629fd={'id':_0x5a748d,'type':_0x3a759c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x525b32,'createdAt':_0x16f1b6?new Date(_0x16f1b6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1629fd);});}},Te=class extends _0x9bd549{afterInit(){const _0x3189d5=this['editor'],_0x28c1e6=_0x3189d5['plugins']['get']('TrackChangesEditing');if(_0x3189d5['plugins']['has']('IndentEditing')&&(_0x28c1e6['enableCommand']('indent'),_0x28c1e6['enableCommand']('outdent')),_0x3189d5['plugins']['has']('IndentBlock')){for(const _0x4e1c42 of['indentBlock','outdentBlock'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4e1c42);if(_0x3189d5['plugins']['has']('ListEditing')){for(const _0x4ce902 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x28c1e6['enableDefaultAttributesIntegration'](_0x4ce902);}}const _0x36feaa=_0x3189d5['locale'];_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x36feaa,'FORMAT_INDENT')),_0x28c1e6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x36feaa,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1a6222=this['editor'],_0x526413=_0x1a6222['locale'],_0x5be367=_0x1a6222['plugins']['get']('TrackChangesEditing');_0x5be367['descriptionFactory']['registerDescriptionCallback'](_0x2bf52e=>{if('formatBlock'!=_0x2bf52e['type'])return;const {data:_0x4a873c}=_0x2bf52e;if(!_0x4a873c)return;if('indentBlock'!=_0x4a873c['commandName']&&'outdentBlock'!=_0x4a873c['commandName'])return;const _0x4f1ce4=_0x2bf52e['getItems']()[0x0],_0x17f1cf=_0x5be367['descriptionFactory']['getItemLabel'](_0x4f1ce4);return'indentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Indent:*\x20%0',_0x17f1cf)}:'outdentBlock'==_0x4a873c['commandName']?{'type':'format','content':Ot(_0x526413,'*Outdent:*\x20%0',_0x17f1cf)}:void 0x0;});}},_e=class extends _0x9bd549{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x9bd549{afterInit(){const _0x2d5aa7=this['editor'];if(!_0x2d5aa7['plugins']['has']('LinkEditing'))return;const _0x1bdc1e=_0x2d5aa7['plugins']['get']('TrackChangesEditing'),_0x4dd563=_0x2d5aa7['commands']['get']('link');_0x1bdc1e['enableDefaultAttributesIntegration']('link'),_0x1bdc1e['enableDefaultAttributesIntegration']('unlink');for(const _0x53b6b7 of _0x4dd563['manualDecorators'])_0x1bdc1e['descriptionFactory']['registerAttributeLabel'](_0x53b6b7['id'],'link\x20('+_0x53b6b7['label']['toLowerCase']()+')');_0x1bdc1e['descriptionFactory']['registerDescriptionCallback'](_0x498e0e=>{if('attribute'!=_0x498e0e['type'])return;const {data:_0x4746f1}=_0x498e0e;if(!_0x4746f1||'linkHref'!=_0x4746f1['key'])return;const _0x59389e=_0x4746f1['newValue'],_0x2d5be3=_0x2d5aa7['locale'];return{'type':'format','content':null==_0x59389e?Ot(_0x2d5be3,'*Remove\x20link*'):Ot(_0x2d5be3,'*Set\x20link:*\x20%0','\x22'+_0x59389e+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2844f5=this['editor'],_0x40daa7=_0x2844f5['locale'];_0x2844f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b6a09=>{if('formatInline'!=_0x5b6a09['type'])return;const {data:_0x3564d0}=_0x5b6a09;if(_0x3564d0){if('link'==_0x3564d0['commandName']){const _0x298156=_0x3564d0['commandParams'][0x0];return{'type':'format','content':Ot(_0x40daa7,'*Set\x20link:*\x20%0','\x22'+_0x298156+'\x22')};}return'unlink'==_0x3564d0['commandName']?{'type':'format','content':Ot(_0x40daa7,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x9bd549{afterInit(){const _0x42a93c=this['editor'],_0x52a696=_0x42a93c['locale'];if(!_0x42a93c['plugins']['has']('LegacyListEditing'))return;const _0x1d8c40=_0x42a93c['plugins']['get']('TrackChangesEditing'),_0x54e0cd=_0x42a93c['plugins']['has']('LegacyTodoListEditing');function _0xd9669d(_0x2708f6){return()=>{const _0x1ba9bf=_0x42a93c['model']['document']['selection'],_0x3a3117=_0x42a93c['commands']['get'](_0x2708f6);if(_0x3a3117['value'])return void _0x42a93c['execute']('paragraph',{});const _0x17fad1=_0x2708f6['slice'](0x0,-0x4),_0x2762b3=function(_0x21d31a,_0x443065,_0x4af08f){let _0x226999=Array['from'](_0x21d31a)['filter'](_0x6f28e3=>function(_0x470bf2,_0xf790f4){return _0xf790f4['checkChild'](_0x470bf2['parent'],'listItem')&&!_0xf790f4['isObject'](_0x470bf2);}(_0x6f28e3,_0x4af08f));_0x226999=_0x226999['filter'](_0xf41e25=>!_0xf41e25['is']('element','listItem')||_0xf41e25['getAttribute']('listType')!=_0x443065);const _0x5016c1=new Set();for(const _0x8c7ae4 of _0x226999)_0x8c7ae4['is']('element','listItem')?_0x5016c1['add'](Ie(_0x8c7ae4)):_0x5016c1['add'](_0x8c7ae4);return Array['from'](_0x5016c1);}(_0x1ba9bf['getSelectedBlocks'](),_0x17fad1,_0x42a93c['model']['schema']);_0x42a93c['model']['change'](()=>{for(const _0x4a2e9f of _0x2762b3)_0x1d8c40['markBlockFormat'](_0x4a2e9f,{'commandName':_0x2708f6,'commandParams':[{'forceValue':!_0x3a3117['value']}],'formatGroupId':'blockName'},Ae(_0x4a2e9f));});};}function _0x3d4a7c(_0x1afa60){return()=>{const _0x1e244f=function(_0x5969cb){let _0xd2efa8=Array['from'](_0x5969cb);const _0x41aeca=_0xd2efa8['findIndex'](_0x3ee4e8=>'listItem'!=_0x3ee4e8['name']);return _0x41aeca>-0x1&&(_0xd2efa8=_0xd2efa8['slice'](0x0,_0x41aeca)),_0xd2efa8;}(_0x42a93c['model']['document']['selection']['getSelectedBlocks']()),_0x54b7c9=_0x42a93c['model']['createRange'](_0x42a93c['model']['createPositionAt'](_0x1e244f[0x0],'before'),_0x42a93c['model']['createPositionAt'](_0x1e244f[_0x1e244f['length']-0x1],'end'));_0x42a93c['model']['change'](()=>{_0x1d8c40['markBlockFormat'](_0x54b7c9,{'commandName':_0x1afa60,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f7ea9){const _0x28cfab=new Set();for(const _0x31c9a2 of _0x2f7ea9){let _0x131021=_0x31c9a2['nextSibling'];for(;_0x131021&&_0x131021['getAttribute']('listIndent')>_0x31c9a2['getAttribute']('listIndent');)_0x28cfab['add'](_0x131021),_0x131021=_0x131021['nextSibling'];}return Array['from'](_0x28cfab);}(_0x1e244f));});};}_0x1d8c40['enableCommand']('numberedList',_0xd9669d('numberedList')),_0x1d8c40['enableCommand']('bulletedList',_0xd9669d('bulletedList')),_0x54e0cd&&_0x1d8c40['enableCommand']('todoList',_0xd9669d('todoList')),_0x1d8c40['enableCommand']('indentList',_0x3d4a7c('indentList')),_0x1d8c40['enableCommand']('outdentList',_0x3d4a7c('outdentList')),_0x54e0cd&&_0x1d8c40['enableCommand']('checkTodoList',()=>{const _0x484283=_0x42a93c['commands']['get']('checkTodoList'),_0xad1166=Array['from'](_0x484283['_selectedElements']);_0xad1166['filter'](_0x550d58=>_0x550d58['getAttribute']('todoListChecked')!=_0x484283['value']),_0x42a93c['model']['change'](()=>{for(const _0x1676e2 of _0xad1166)_0x1d8c40['markBlockFormat'](_0x1676e2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x484283['value']}]});});}),_0x1d8c40['descriptionFactory']['registerElementLabel']('listItem',_0x29b203=>Ot(_0x52a696,'ELEMENT_LIST_ITEM',_0x29b203)),_0x1d8c40['descriptionFactory']['registerDescriptionCallback'](_0x48f591=>{if('formatBlock'!=_0x48f591['type']&&'formatInline'!=_0x48f591['type'])return;const {data:_0x35e2c8}=_0x48f591;if(_0x35e2c8){if('numberedList'==_0x35e2c8['commandName']||'bulletedList'==_0x35e2c8['commandName']||'todoList'==_0x35e2c8['commandName'])switch(_0x35e2c8['commandName']['replace']('List','')){case'bulleted':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3ccb00(Ot(_0x52a696,'ELEMENT_TODO_LIST'));}if('indentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Indent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x35e2c8['commandName'])return{'type':'format','content':Ot(_0x52a696,'*Outdent:*\x20%0',Ot(_0x52a696,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x35e2c8['commandName'])return _0x35e2c8['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x52a696,'*Check\x20item*')}:{'type':'format','content':Ot(_0x52a696,'*Uncheck\x20item*')};}function _0x3ccb00(_0x2dc534){return{'type':'format','content':Ot(_0x52a696,'*Change\x20to:*\x20%0',_0x2dc534)};}});}};function Ie(_0x55f8f3){const _0x12863e=_0x55f8f3['getAttribute']('listIndent');if(0x0==_0x12863e)return _0x55f8f3;let _0x24c725=_0x55f8f3;for(;_0x55f8f3['previousSibling']&&_0x55f8f3['previousSibling']['is']('element','listItem');){const _0x52cd93=_0x55f8f3['previousSibling']['getAttribute']('listIndent');if(_0x52cd93==_0x12863e)_0x24c725=_0x55f8f3['previousSibling'];else{if(_0x52cd93<_0x12863e)break;}_0x55f8f3=_0x55f8f3['previousSibling'];}return _0x24c725;}function Ae(_0x5f47ef){const _0x56a0be=[];if(_0x5f47ef['is']('element','listItem')&&_0x5f47ef['getAttribute']('listIndent')>0x0){let _0x3c1391=_0x5f47ef['nextSibling'];for(;_0x3c1391&&'listItem'==_0x3c1391['name']&&_0x3c1391['getAttribute']('listIndent')==_0x5f47ef['getAttribute']('listIndent');)_0x56a0be['push'](_0x3c1391),_0x3c1391=_0x3c1391['nextSibling'];}return _0x56a0be;}var be=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x39b28c=this['editor']['config']['get']('list.properties'),_0x5ef98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x39b28c['styles']&&_0x5ef98a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x39b28c['reversed']&&_0x5ef98a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x39b28c['startIndex']&&_0x5ef98a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5ef98a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x247120,_0x3ee0e8={}){const _0xce204f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a7f89=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0xce204f['markMultiRangeBlockFormat'](_0x5a7f89,{'commandName':'listStyle','commandParams':[{'type':_0x3ee0e8['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x471eae,_0x4b7d42={}){const _0x304493=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21e528=this['_getSuggestionBlocks'](_0x277f30=>_0x277f30['is']('element','listItem')&&'numbered'===_0x277f30['getAttribute']('listType'));if(_0x21e528['length']<0x1)return;const _0x3b41d0=_0x21e528['map'](_0x5f190b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f190b,'before'),this['editor']['model']['createPositionAt'](_0x5f190b,0x0)));this['editor']['model']['change'](()=>{_0x304493['markMultiRangeBlockFormat'](_0x3b41d0,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b7d42['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0xd54d4a,_0x3a73e5={}){const _0x47bec4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x231962=this['_getSuggestionBlocks'](_0x3e4fab=>_0x3e4fab['is']('element','listItem')&&'numbered'===_0x3e4fab['getAttribute']('listType'));if(_0x231962['length']<0x1)return;const _0xdc253b=_0x231962['map'](_0x5ac928=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5ac928,'before'),this['editor']['model']['createPositionAt'](_0x5ac928,0x0)));this['editor']['model']['change'](()=>{_0x47bec4['markMultiRangeBlockFormat'](_0xdc253b,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a73e5['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x106e32){if('formatBlock'!=_0x106e32['type']&&'formatInline'!=_0x106e32['type'])return;const _0x39d73d=this['editor']['locale'],{data:_0x50a657}=_0x106e32;if(!_0x50a657)return;let _0x1991c2,_0x1d32da;switch(_0x50a657['commandName']){case'listStyle':_0x1991c2='*Change\x20to:*\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,Ot(_0x39d73d,this['_getTranslationKeyForListStyle'](_0x50a657['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1991c2=_0x50a657['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2)};break;case'listStart':_0x1991c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d32da={'type':'format','content':Ot(_0x39d73d,_0x1991c2,_0x50a657['commandParams'][0x0]['startIndex'])};}return _0x1d32da;}_getSuggestionBlocksForListStyle(){const _0x4df4b8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1e104c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1e104c[0x0]?.['is']('element','listItem')&&_0x1e104c['unshift'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1e104c[_0x1e104c['length']-0x1]?.['is']('element','listItem')&&_0x1e104c['push'](..._0x4df4b8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1e104c=[...new Set(_0x1e104c)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1e104c=_0x1e104c['filter'](_0x39cc8c=>_0x39cc8c['is']('element','listItem'))),_0x1e104c;}_getSuggestionBlocks(_0x53da32){const _0x1c0458=this['editor']['plugins']['get']('LegacyListUtils');let _0x44a86d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x53da32)['map'](_0x24b73d=>{const _0x3df525=this['editor']['model']['createPositionAt'](_0x24b73d,0x0);return[..._0x1c0458['getSiblingNodes'](_0x3df525,'backward'),..._0x1c0458['getSiblingNodes'](_0x3df525,'forward')];})['flat']();return _0x44a86d=[...new Set(_0x44a86d)],_0x44a86d;}_getTranslationKeyForListStyle(_0x926e5b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x926e5b)||'default')['toUpperCase']()+'_LIST_'+_0x926e5b['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x9bd549{afterInit(){const _0x3ec8c2=this['editor'];if(!_0x3ec8c2['plugins']['has']('MediaEmbedEditing'))return;const _0x24f94=_0x3ec8c2['plugins']['get']('TrackChangesEditing'),_0x3d501b=_0x3ec8c2['locale'];_0x24f94['enableCommand']('mediaEmbed'),_0x24f94['descriptionFactory']['registerElementLabel']('media',_0x40793f=>Ot(_0x3d501b,'ELEMENT_MEDIA',_0x40793f)),_0x3ec8c2['plugins']['has']('MediaEmbedResizeEditing')&&(_0x24f94['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x24f94['descriptionFactory']['registerDescriptionCallback'](_0x4626d1=>{if('attribute'!=_0x4626d1['type'])return;const {data:_0x16a562}=_0x4626d1;if(!_0x16a562||'resizedWidth'!=_0x16a562['key'])return;const _0x53e589=_0x4626d1['getContainedElement']();if(!_0x53e589||!_0x53e589['is']('element','media'))return;const _0x271f92=Ot(_0x3d501b,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3d501b,'*Set\x20format:*\x20%0',_0x271f92)};}));}},ke=class extends _0x9bd549{afterInit(){const _0x274351=this['editor'];if(!_0x274351['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x19613d=_0x274351['plugins']['get']('TrackChangesEditing'),_0x27c4e3=_0x274351['locale'],_0x107499=_0x274351['plugins']['get']('MediaEmbedStyleEditing'),_0x5ad4fa={};for(const _0x3b6b8b of _0x107499['normalizedStyles'])_0x5ad4fa[_0x3b6b8b['name']]=_0x3b6b8b['title']['toLowerCase']();const _0x306e63=_0x107499['normalizedStyles']['find'](_0x2f276b=>_0x2f276b['isDefault'])?.['name'];_0x19613d['enableCommand']('mediaStyle',(_0x527811,_0x120593)=>{const _0x4e8911=_0x274351['plugins']['get']('Users')['me'],_0x71be1f=_0x274351['commands']['get']('mediaStyle'),_0x2dfbf9=function(_0x4b36c1){const _0x7ac845=_0x4b36c1['model']['document']['selection']['getSelectedElement']();return _0x7ac845&&_0x7ac845['is']('element','media')?_0x7ac845:null;}(_0x274351);if(!_0x2dfbf9)return;const _0xca0e0d=_0x274351['model']['createRangeOn'](_0x2dfbf9);let _0x3cd6d0=_0x71be1f['value'];if(_0x3cd6d0==_0x120593['value'])return;const _0x4ab83e={'commandName':'mediaStyle','commandParams':[_0x120593],'formatGroupId':_0x2e6a13()};_0x274351['model']['change'](()=>{_0x19613d['getSuggestions']()['filter'](_0x3ff858=>_0x3ff858['isInContent']&&_0x4e8911==_0x3ff858['author']&&'formatBlock'==_0x3ff858['type']&&'mediaStylePostApply'==_0x3ff858['subType']&&_0x3ff858['getFirstRange']()['isEqual'](_0xca0e0d))['forEach'](_0x5a656d=>_0x19613d['discardSuggestion'](_0x5a656d['head'])),_0x71be1f['refresh'](),_0x3cd6d0=_0x71be1f['value'],_0x3cd6d0!=_0x120593['value']&&_0x19613d['markBlockFormat'](_0x2dfbf9,{..._0x4ab83e,'commandReversedParams':[{'value':'string'==typeof _0x3cd6d0?_0x3cd6d0:null}]},[],'mediaStylePostApply');});}),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x19613d['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1295a9,_0x291009)=>{_0x19613d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1295a9,{'commandName':_0x291009['commandName'],'commandParams':_0x291009['commandReversedParams']});}),_0x19613d['descriptionFactory']['registerDescriptionCallback'](_0x2f4201=>{if('formatBlock'!=_0x2f4201['type'])return;const {data:_0x55e754}=_0x2f4201;if(!_0x55e754||'mediaStyle'!=_0x55e754['commandName'])return;const _0xd908a0=_0x55e754['commandParams'][0x0]['value']||_0x306e63;if(!_0xd908a0)return;const _0x217d94=_0x5ad4fa[_0xd908a0]||_0xd908a0;return{'type':'format','content':Ot(_0x27c4e3,'*Format:*\x20%0',_0x217d94)};});}},Re=class extends _0x9bd549{afterInit(){const _0x34fef8=this['editor'];_0x34fef8['plugins']['has']('MentionEditing')&&_0x34fef8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x9bd549{afterInit(){const _0x36f4b0=this['editor'];if(!_0x36f4b0['plugins']['has']('MergeFieldsEditing'))return;const _0x24770a=_0x36f4b0['plugins']['get']('TrackChangesEditing'),_0x287fc5=_0x36f4b0['locale'];_0x24770a['enableCommand']('insertMergeField'),_0x24770a['enableCommand']('insertMergeFieldBlock'),_0x24770a['enableCommand']('insertMergeFieldImage'),_0x24770a['descriptionFactory']['registerElementLabel']('mergeField',_0x3356f8=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x3356f8)),_0x24770a['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x20c9b2=>Ot(_0x287fc5,'ELEMENT_MERGE_FIELD',_0x20c9b2)),_0x24770a['descriptionFactory']['registerDescriptionCallback'](_0x1d4dc7=>{if('insertion'!=_0x1d4dc7['type']&&'deletion'!=_0x1d4dc7['type'])return;const _0x17f646=_0x1d4dc7['getContainedElement']();if(null==_0x17f646)return;const _0x5edd26=_0x36f4b0['plugins']['get']('MergeFieldsEditing');let _0x57b9ea;switch(_0x5edd26['getMergeFieldType'](_0x17f646)){case null:return;case'image':{const _0x31b47f=_0x5edd26['unwrapAffixes'](_0x17f646['getAttribute']('src'));_0x57b9ea=_0x5edd26['getLabel'](_0x31b47f)||_0x31b47f;break;}default:{const _0x11003d=_0x17f646['getAttribute']('id');_0x57b9ea=_0x5edd26['getLabel'](_0x11003d)||_0x11003d;break;}}return'insertion'==_0x1d4dc7['type']?{'type':'insertion','content':Ot(_0x287fc5,'*Insert:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x287fc5,'*Remove:*\x20%0','\x22'+_0x57b9ea+'\x22\x20'+Ot(_0x287fc5,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x9bd549{afterInit(){const _0x2e101e=this['editor'],_0x341f71=_0x2e101e['plugins']['get']('TrackChangesEditing');_0x2e101e['plugins']['has']('MultiLevelList')&&(_0x341f71['enableDefaultAttributesIntegration']('multiLevelList'),_0x341f71['descriptionFactory']['registerDescriptionCallback'](_0x5132d7=>this['handleDescriptions'](_0x5132d7)));}handleDescriptions(_0x5a8714){const _0x33eb6a=this['editor']['locale'],{data:_0x36628c}=_0x5a8714,_0x3e6970={'type':'format','content':''};if(_0x36628c&&'listMarkerStyle'==_0x36628c['key']){if(!_0x36628c['oldValue'])return{'type':'format','content':Ot(_0x33eb6a,'*Set\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['newValue']+')'};if(!_0x36628c['newValue']){let _0x2437a4=_0x5a8714['head'];for(;_0x2437a4;){if(_0x2437a4['data']&&'listType'==_0x2437a4['data']['key']&&_0x2437a4['data']['newValue'])return _0x3e6970;_0x2437a4=_0x2437a4['next'];}return{'type':'format','content':Ot(_0x33eb6a,'*Remove\x20format:*\x20%0',Ot(_0x33eb6a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x36628c['oldValue']+')'};}}}},Se=class extends _0x9bd549{afterInit(){const _0x3ac10f=this['editor'];if(!_0x3ac10f['plugins']['has']('PageBreakEditing'))return;_0x3ac10f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x19237a=_0x3ac10f['plugins']['get']('TrackChangesEditing'),_0x40c0b4=_0x3ac10f['locale'];_0x19237a['descriptionFactory']['registerElementLabel']('pageBreak',_0x501e7f=>Ot(_0x40c0b4,'ELEMENT_PAGE_BREAK',_0x501e7f));}},Me=class extends _0x9bd549{afterInit(){const _0x2d1869=this['editor'];if(!_0x2d1869['plugins']['has']('Paragraph'))return;const _0x22639d=_0x2d1869['locale'],_0x18f891=_0x2d1869['plugins']['get']('TrackChangesEditing');_0x18f891['descriptionFactory']['registerElementLabel']('paragraph',_0x411c65=>Ot(_0x22639d,'ELEMENT_PARAGRAPH',_0x411c65)),_0x18f891['enableDefaultAttributesIntegration']('paragraph'),_0x18f891['enableCommand']('insertParagraph');const _0x54fcf5=_0x18f891['descriptionFactory'];_0x54fcf5['registerDescriptionCallback'](_0x37436f=>{if('insertion'!==_0x37436f['type'])return;const {start:_0x4521d0,end:_0x4d6734}=_0x37436f['getFirstRange']();if(!_0x4521d0['isTouching'](_0x4d6734)||!_0x4521d0['nodeAfter'])return;const _0x25f540=_0x2d1869['model']['schema'],_0x70045a=_0x4521d0['nodeAfter'];return _0x25f540['isBlock'](_0x70045a)&&!_0x25f540['isLimit'](_0x70045a)&&_0x25f540['checkChild'](_0x70045a,'$text')?{'type':'insertion','content':Ot(_0x22639d,'*Insert:*\x20%0',_0x54fcf5['getItemLabel'](_0x70045a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3cebb3=this['editor'],_0x30284c=_0x3cebb3['locale'];_0x3cebb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39fc0b=>{if('formatBlock'!=_0x39fc0b['type'])return;const {data:_0x4e302b}=_0x39fc0b;return _0x4e302b&&'paragraph'==_0x4e302b['commandName']?{'type':'format','content':Ot(_0x30284c,'*Change\x20to:*\x20%0',Ot(_0x30284c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x9bd549{afterInit(){const _0x9db802=this['editor'];_0x9db802['commands']['get']('replaceSource')&&_0x9db802['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x9bd549{afterInit(){const _0x5177dc=this['editor'];_0x5177dc['plugins']['has']('RemoveFormatEditing')&&(_0x5177dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x58df58=this['editor'];_0x58df58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x859efd=>{if('formatBlock'!=_0x859efd['type']&&'formatInline'!=_0x859efd['type'])return;const {data:_0x5cb6d9}=_0x859efd;return _0x5cb6d9&&'removeFormat'==_0x5cb6d9['commandName']?{'type':'format','content':Ot(_0x58df58['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x9bd549{afterInit(){const _0x45484a=this['editor'];if(!_0x45484a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3b1e03=_0x45484a['plugins']['get']('TrackChangesEditing');_0x3b1e03['enableCommand']('goToPreviousRestrictedEditingException'),_0x3b1e03['enableCommand']('goToNextRestrictedEditingException');const _0xcb4526=_0x45484a['plugins']['get']('RestrictedEditingModeEditing');_0xcb4526['enableCommand']('trackChanges'),_0xcb4526['enableCommand']('acceptSuggestion'),_0xcb4526['enableCommand']('discardSuggestion'),_0xcb4526['enableCommand']('acceptAllSuggestions'),_0xcb4526['enableCommand']('discardAllSuggestions'),_0xcb4526['enableCommand']('acceptSelectedSuggestions'),_0xcb4526['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x9bd549{afterInit(){const _0x468436=this['editor'];if(!_0x468436['plugins']['has']('ShiftEnter'))return;const _0x221062=_0x468436['plugins']['get']('TrackChangesEditing');_0x221062['enableCommand']('shiftEnter'),_0x221062['descriptionFactory']['registerElementLabel']('softBreak',_0x4f6dd6=>Ot(_0x468436['locale'],'ELEMENT_LINE_BREAK',_0x4f6dd6));}};function ve(_0xebe290,_0x4bd351,_0x2718a7){const _0x51584b=[];for(const _0x2e7f35 of _0x4bd351['getItems']())_0x2e7f35['hasAttribute'](_0xebe290)&&_0x51584b['push'](_0x2718a7['createRangeOn'](_0x2e7f35));return _0x51584b;}var De=class extends _0x9bd549{afterInit(){const _0x76e4fe=this['editor'],_0x4b4f50=_0x76e4fe['plugins']['get']('TrackChangesEditing');_0x76e4fe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x4b4f50['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5bebac=this['editor'],_0xaeed79=_0x5bebac['model'],_0x326e42=_0x5bebac['locale'],_0x483c35=_0x5bebac['plugins']['get']('TrackChangesEditing'),_0x4a110d='restrictedEditingException',_0x530591=_0x5bebac['commands']['get'](_0x4a110d);_0x483c35['enableCommand'](_0x4a110d,(_0x438201,_0x3e3a92={})=>{const _0x542f3c=_0xaeed79['document']['selection'];if(_0x542f3c['isCollapsed'])return void _0x438201(_0x3e3a92);const _0x470515=void 0x0!==_0x3e3a92['forceValue']?_0x3e3a92['forceValue']:!_0x530591['value'];_0xaeed79['change'](()=>{const _0x1e9cd7=Array['from'](_0x542f3c['getRanges']());for(const _0x3c31b4 of _0x1e9cd7){const _0x40b37a=_0x470515?[_0x3c31b4]:ve(_0x4a110d,_0x3c31b4,_0xaeed79);for(const _0x5118eb of _0x40b37a)_0x483c35['markInlineFormat'](_0x5118eb,{'commandName':_0x4a110d,'commandParams':[{'forceValue':_0x470515}]});}});}),_0x483c35['descriptionFactory']['registerDescriptionCallback'](_0x211038=>{if('formatBlock'!=_0x211038['type']&&'formatInline'!=_0x211038['type'])return;const {data:_0x43526a}=_0x211038;return _0x43526a&&_0x43526a['commandName']==_0x4a110d?_0x43526a['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x326e42,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x5663a9=this['editor'],_0xb9ca9=_0x5663a9['locale'],_0x398115=_0x5663a9['plugins']['get']('TrackChangesEditing'),_0x4ba78b='restrictedEditingExceptionBlock',_0x2b4f42=this['editor']['commands']['get'](_0x4ba78b);_0x398115['enableCommand'](_0x4ba78b,(_0x58bfcd,_0x4c6fc7={})=>{const _0x5b9711=this['editor']['model']['document']['selection'],_0x2e02bf=_0x4c6fc7&&void 0x0!==_0x4c6fc7['forceValue']?_0x4c6fc7['forceValue']:!_0x2b4f42['value'];let _0x5449af=[];_0x5449af=Ct(_0x2e02bf?Array['from'](_0x5b9711['getSelectedBlocks']())['filter'](_0x391f15=>function(_0x25b1a9){return!!_0x25b1a9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x391f15)||function(_0x4b9485,_0x4787a4){const _0x4b218b=_0x4787a4['createContext'](_0x4b9485['parent']);return!!_0x4787a4['checkChild'](_0x4b218b,'restrictedEditingException')&&!!_0x4787a4['checkChild'](_0x4b218b['push']('restrictedEditingException'),_0x4b9485);}(_0x391f15,this['editor']['model']['schema'])):Array['from'](_0x5b9711['getSelectedBlocks']())['map'](_0x23ecb7=>function(_0x248f99){let _0x3ad377=_0x248f99;for(;_0x3ad377['parent'];){if('restrictedEditingException'==_0x3ad377['parent']['name'])return _0x3ad377;_0x3ad377=_0x3ad377['parent'];}return null;}(_0x23ecb7))['filter'](_0x4c27dc=>!!_0x4c27dc),_0x5663a9['model']),_0x5663a9['model']['change'](()=>{for(const _0x16e47e of _0x5449af)_0x398115['markBlockFormat'](_0x16e47e,{'commandName':_0x4ba78b,'commandParams':[{'forceValue':_0x2e02bf}]});});}),_0x398115['descriptionFactory']['registerDescriptionCallback'](_0x134431=>{const {data:_0x473f52}=_0x134431;if(_0x473f52&&_0x473f52['commandName']==_0x4ba78b)return _0x473f52['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0xb9ca9,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x9bd549{afterInit(){const _0x3c52ef=this['editor'];_0x3c52ef['plugins']['has']('Style')&&_0x3c52ef['plugins']['has']('DataSchema')&&(_0x3c52ef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x27cd0c=this['editor'],_0x76b97e=_0x27cd0c['locale'];_0x27cd0c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52b5e5=>{if('formatBlock'!=_0x52b5e5['type']&&'formatInline'!=_0x52b5e5['type'])return;const {data:_0x31f8ea}=_0x52b5e5;return _0x31f8ea&&'style'===_0x31f8ea['commandName']?_0x31f8ea['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x76b97e,'*Set\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x76b97e,'*Remove\x20format:*\x20%0',_0x31f8ea['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x9bd549{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x41b2e3){super(_0x41b2e3),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x3f335d=this['editor'],_0x5b8c28=_0x3f335d['model']['document']['selection'];if(!_0x3f335d['plugins']['has']('TableEditing'))return;const _0x4f1ca6=_0x3f335d['locale'],_0x24c07d=_0x3f335d['plugins']['get']('TrackChangesEditing'),_0x412434=_0x3f335d['plugins']['get']('TableUtils');_0x24c07d['descriptionFactory']['registerElementLabel']('table',_0x4ce934=>Ot(_0x4f1ca6,'ELEMENT_TABLE',_0x4ce934)),this['_setupColumnsRowsFixing'](),_0x24c07d['enableCommand']('insertTable'),_0x24c07d['enableCommand']('selectTableRow'),_0x24c07d['enableCommand']('selectTableColumn');for(const _0x4ab5c6 of['insertTableRowAbove','insertTableRowBelow']){const _0x10a552=_0x3f335d['commands']['get'](_0x4ab5c6);_0x24c07d['enableCommand'](_0x4ab5c6,_0x17bb0a=>{_0x3f335d['model']['change'](_0x14a882=>{_0x17bb0a();const _0x439347='above'===_0x10a552['order'],_0x3abd5c=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x25698c=_0x412434['getRowIndexes'](_0x3abd5c),_0x1ec3ff=_0x439347?_0x25698c['first']-0x1:_0x25698c['last']+0x1,_0xc97d55=_0x3abd5c[0x0]['findAncestor']('table'),_0x5ebdae=_0x412434['createTableWalker'](_0xc97d55,{'startRow':_0x1ec3ff,'endRow':_0x1ec3ff}),_0x44b628=Array['from'](_0x5ebdae)['map'](_0x20978b=>_0x14a882['createRangeOn'](_0x20978b['cell']));_0x24c07d['markMultiRangeInsertion'](_0x44b628,'tableRow');});});}for(const _0x516e42 of['insertTableColumnLeft','insertTableColumnRight']){const _0x39f916=_0x3f335d['commands']['get'](_0x516e42);_0x24c07d['enableCommand'](_0x516e42,_0x5aefb7=>{_0x3f335d['model']['change'](_0x5ce3fd=>{_0x5aefb7();const _0x370e9c='left'===_0x39f916['order'],_0x4c7788=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x176126=_0x412434['getColumnIndexes'](_0x4c7788),_0x2ee49f=_0x370e9c?_0x176126['first']-0x1:_0x176126['last']+0x1,_0x35f6dd=_0x4c7788[0x0]['findAncestor']('table'),_0x9a5793=_0x412434['createTableWalker'](_0x35f6dd,{'startRow':0x0,'column':_0x2ee49f,'includeAllSlots':!0x1}),_0x126d4d=Array['from'](_0x9a5793)['map'](_0x1ef773=>_0x5ce3fd['createRangeOn'](_0x1ef773['cell']));_0x24c07d['markMultiRangeInsertion'](_0x126d4d,'tableColumn');});});}for(const _0x4db958 of['removeTableRow','removeTableColumn']){const _0x32f91e=_0x4db958['substr'](0xb),_0x2ca4ad=_0x32f91e['toLowerCase'](),_0x2c019c=_0x2ca4ad['substr'](0x0,0x3)+'span',_0x97973c='table'+_0x32f91e,_0x19761c='min'+_0x32f91e,_0x1d60c6='max'+_0x32f91e;_0x24c07d['enableCommand'](_0x4db958,()=>{_0x3f335d['model']['change'](_0x18a436=>{const _0xe607dd=_0x412434['getSelectionAffectedTableCells'](_0x5b8c28),_0x408adb=_0xe607dd[0x0]['findAncestor']('table');let _0x47a3f2;if('removeTableRow'==_0x4db958){const _0x959be1=_0x412434['getRowIndexes'](_0xe607dd);_0x47a3f2={'startRow':_0x959be1['first'],'endRow':_0x959be1['last'],'includeAllSlots':!0x0};}else{const _0x434c19=_0x412434['getColumnIndexes'](_0xe607dd);_0x47a3f2={'startColumn':_0x434c19['first'],'endColumn':_0x434c19['last'],'includeAllSlots':!0x0};}const _0x2c7840=_0x412434['createTableWalker'](_0x408adb,_0x47a3f2),_0x3bd277=Array['from'](_0x2c7840)['map'](({cell:_0xb368ab})=>_0xb368ab),_0x3139e7=xe(_0x3bd277['filter'](_0x5723be=>_0x5723be['hasAttribute'](_0x2c019c))),_0x1cd8fc=xe(_0x3bd277['filter'](_0x1b3188=>!_0x1b3188['hasAttribute'](_0x2c019c)))['map'](_0x4dbb87=>_0x18a436['createRangeOn'](_0x4dbb87)),_0x2a7e8d=_0x24c07d['markMultiRangeDeletion'](_0x1cd8fc,_0x97973c);if(_0x2a7e8d&&('tableRow'==_0x2a7e8d['subType']||'tableColumn'==_0x2a7e8d['subType'])){const _0x6211e8=this['_getSuggestionCoords'](_0x2a7e8d);for(const _0x54d4bc of _0x3139e7){const _0x3a94f6=_0x18a436['createRangeOn'](_0x54d4bc),_0x11067b=_0x412434['getCellLocation'](_0x54d4bc),_0x4144a6=_0x54d4bc['getAttribute'](_0x2c019c)-0x1,_0x510346=_0x6211e8[_0x19761c],_0x107fdc=_0x6211e8[_0x1d60c6];_0x510346<=_0x11067b[_0x2ca4ad]&&_0x11067b[_0x2ca4ad]+_0x4144a6<=_0x107fdc&&_0x2a7e8d['addRange'](_0x3a94f6);}}});});}function _0x2fe696(_0x229f5f){const _0x5f221a=Array['from'](_0x5b8c28['getRanges']())['map'](_0x459d5f=>ot['fromRange'](_0x459d5f));_0x3f335d['model']['change'](_0xe2ac08=>{const _0x854e79=_0xe2ac08['batch'];_0x229f5f=_0x229f5f['filter'](_0x5f252a=>'$graveyard'!=_0x5f252a['root']['rootName']),_0xe2ac08['setSelection'](_0x229f5f),_0x3f335d['commands']['get']('removeTableRow')['refresh'](),_0x3f335d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f335d['model']['enqueueChange'](()=>{_0x3f335d['model']['enqueueChange'](_0x854e79,_0xa5dcaf=>{const _0x49c283=_0x5f221a['filter'](_0x2272b5=>'$graveyard'!=_0x2272b5['root']['rootName']);_0x49c283['length']>0x0&&_0xa5dcaf['setSelection'](_0x49c283);for(const _0x5c2bee of _0x5f221a)_0x5c2bee['detach']();});});});}function _0x5e6926(_0x39d618){_0x3f335d['model']['change'](_0x4e7748=>{const _0x554dc9=Array['from'](_0x5b8c28['getRanges']())['map'](_0x58deec=>ot['fromRange'](_0x58deec)),_0x361171=[];for(const _0xef33b3 of _0x39d618)for(const _0x5c14f2 of _0xef33b3['getItems']({'shallow':!0x0}))_0x361171['push'](_0x5c14f2);for(const _0x926c87 of _0x361171)'$graveyard'!=_0x926c87['root']['rootName']&&(_0x4e7748['setSelection'](_0x4e7748['createPositionAt'](_0x926c87,0x0)),_0x3f335d['commands']['get']('removeTableColumn')['refresh'](),_0x3f335d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x11a00c=_0x554dc9['filter'](_0xd5db5=>'$graveyard'!=_0xd5db5['root']['rootName']);_0x11a00c['length']>0x0&&_0x4e7748['setSelection'](_0x11a00c);for(const _0x1b52d0 of _0x554dc9)_0x1b52d0['detach']();});}function _0x61b941(_0x4b30b7,_0x4e3bd7){return _0x4e3bd7['every'](_0x3f9082=>_0x4b30b7['some'](_0x4c0eb0=>_0x4c0eb0['end']['isEqual'](_0x3f9082['start'])||_0x3f9082['end']['isEqual'](_0x4c0eb0['start'])));}function _0x4a6a46(_0x2fb15f,_0xbb225c){return!_0x2fb15f['some'](_0x47a7ea=>_0xbb225c['some'](_0xb6e394=>_0x47a7ea['isIntersecting'](_0xb6e394)))&&_0x2fb15f['some'](_0x26ac04=>_0xbb225c['some'](_0xa73071=>_0x26ac04['end']['isTouching'](_0xa73071['start'])));}_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x42ac00=>{if('insertion'!=_0x42ac00['type']&&'deletion'!=_0x42ac00['type'])return;const _0xd662e7=_0x42ac00['getContainedElement']();if(null!=_0xd662e7&&_0xd662e7['is']('element','table')){if('insertion'==_0x42ac00['type']){const _0x3b2bc1=_0x42ac00['getItems']()['filter'](_0x218ccf=>_0x218ccf['is']('$textProxy'))['map'](_0x58f0e4=>_0x58f0e4['data']);if(_0x3b2bc1['length'])return{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3b2bc1['join']('\x20')+'\x22'))};}if('deletion'==_0x42ac00['type']){const _0x5145f2=_0x42ac00['getItems']()['filter'](_0x17236a=>_0x17236a['is']('$textProxy'))['map'](_0x42db2=>_0x42db2['data']);if(_0x5145f2['length'])return{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5145f2['join']('\x20')+'\x22'))};}}}),_0x24c07d['descriptionFactory']['registerDescriptionCallback'](_0x2b337e=>{if('tableRow'==_0x2b337e['subType']){const _0x2c95ea=_0x2b337e['getItems']()['filter'](_0x17b779=>_0x17b779['is']('$textProxy'))['map'](_0x56e9d8=>_0x56e9d8['data']),_0x91c294=this['_getSuggestionCoords'](_0x2b337e),_0xed9ff3=_0x91c294['maxRow']-_0x91c294['minRow']+0x1;if('insertion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};if('deletion'==_0x2b337e['type'])return _0x2c95ea['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xed9ff3,'\x22'+_0x2c95ea['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_ROW',_0xed9ff3))};}if('tableColumn'==_0x2b337e['subType']){const _0x3a4a98=_0x2b337e['getItems']()['filter'](_0x3158b5=>_0x3158b5['is']('$textProxy'))['map'](_0x36f7c9=>_0x36f7c9['data']),_0x1a0b85=this['_getSuggestionCoords'](_0x2b337e),_0x4d1f6c=_0x1a0b85['maxColumn']-_0x1a0b85['minColumn']+0x1;if('insertion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0x4f1ca6,'*Insert:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};if('deletion'==_0x2b337e['type'])return _0x3a4a98['length']?{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4d1f6c,'\x22'+_0x3a4a98['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0x4f1ca6,'*Remove:*\x20%0',Ot(_0x4f1ca6,'ELEMENT_TABLE_COLUMN',_0x4d1f6c))};}}),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fe696),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5e6926),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x61b941),_0x24c07d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4a6a46),_0x24c07d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4a6a46);}_acceptFormatSuggestionCallbackFactory(){const _0x5d2eee=this['editor'],_0x15d1ed=_0x5d2eee['model']['document']['selection'];return(_0x5e6c22,_0x1babb0)=>{_0x5d2eee['model']['change'](_0x240e06=>{const {commandName:_0x27a6d7,commandParams:_0x59ba39}=_0x1babb0;let _0x3b86d3=_0x5e6c22[0x0]['end']['nodeBefore'];_0x59ba39&&_0x59ba39[0x0]&&!0x1===_0x59ba39[0x0]['forceValue']&&(_0x3b86d3=_0x5e6c22[0x0]['start']['nodeAfter']);const _0x25ded3=_0x240e06['createRangeIn'](_0x3b86d3);if('$graveyard'==_0x25ded3['root']['rootName'])return;const _0x372af1=Array['from'](_0x15d1ed['getRanges']())['map'](_0x2145a6=>ot['fromRange'](_0x2145a6));_0x240e06['setSelection'](_0x25ded3),_0x5d2eee['commands']['get'](_0x27a6d7)['refresh'](),_0x59ba39['push']({'forceDefaultExecution':!0x0}),_0x5d2eee['execute'](_0x27a6d7,..._0x59ba39);const _0x32a2fc=_0x372af1['filter'](_0x51eb38=>'$graveyard'!=_0x51eb38['root']['rootName']);_0x32a2fc['length']>0x0&&_0x240e06['setSelection'](_0x32a2fc);for(const _0x5aae09 of _0x372af1)_0x5aae09['detach']();});};}_getCoordsForCells(_0x57a288){const _0x55ee21=this['editor']['plugins']['get']('TableUtils');let _0x3a2313=Number['MAX_SAFE_INTEGER'],_0x5e4f94=Number['MIN_SAFE_INTEGER'],_0x2d4318=Number['MAX_SAFE_INTEGER'],_0x5647ef=Number['MIN_SAFE_INTEGER'];for(const _0x45940e of _0x57a288){if('$graveyard'==_0x45940e['root']['rootName'])continue;const {row:_0x4871e7,column:_0x262da3}=_0x55ee21['getCellLocation'](_0x45940e),_0x170c67=_0x45940e['hasAttribute']('rowspan')?_0x45940e['getAttribute']('rowspan')-0x1:0x0,_0x25c8af=_0x45940e['hasAttribute']('colspan')?_0x45940e['getAttribute']('colspan')-0x1:0x0;_0x3a2313=_0x4871e7<_0x3a2313?_0x4871e7:_0x3a2313,_0x5e4f94=_0x4871e7+_0x170c67>_0x5e4f94?_0x4871e7+_0x170c67:_0x5e4f94,_0x2d4318=_0x262da3<_0x2d4318?_0x262da3:_0x2d4318,_0x5647ef=_0x262da3+_0x25c8af>_0x5647ef?_0x262da3+_0x25c8af:_0x5647ef;}return{'minRow':_0x3a2313,'maxRow':_0x5e4f94,'minColumn':_0x2d4318,'maxColumn':_0x5647ef};}_setupColumnsRowsFixing(){const _0x125bf6=this['editor'],_0x55a70e=_0x125bf6['plugins']['get']('TrackChangesEditing'),_0x3ee91d=_0x125bf6['plugins']['get']('TableUtils');_0x125bf6['model']['document']['on']('change:data',()=>{const _0x3e99cd=Array['from'](_0x125bf6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15ccd0,data:_0x46dc14}of _0x3e99cd){const {group:_0x3dddeb,id:_0x37a0df,subType:_0x51ab45}=et(_0x15ccd0);if('suggestion'!=_0x3dddeb)continue;if(null!=_0x46dc14['oldRange'])continue;const _0x5512c2=_0x55a70e['getSuggestion'](_0x37a0df);this['_tablePostFixingSubtypes']['includes'](_0x51ab45)&&this['_tableSuggestions']['add'](_0x5512c2);}},{'priority':'low'});const _0x5a2862=(_0x40e08e,_0x38b298)=>{let _0x35999c=!0x1;const _0x2fc973=_0x38b298['createRangeOn'](_0x40e08e),_0x5e3767=_0x40e08e['findAncestor']('table'),_0x15fc49=_0x3ee91d['getCellLocation'](_0x40e08e);for(const _0x105be7 of this['_tableSuggestions']){const _0x374485=_0x105be7['subType'],_0x2892e5=_0x374485['startsWith']('tablePaste'),_0x344559=_0x374485['substr'](_0x2892e5?0xa:0x5),_0x2559de=_0x344559['toLowerCase'](),_0x399ad7=_0x2559de['substr'](0x0,0x3)+'span',_0x3dc32a='min'+_0x344559,_0x2333fa='max'+_0x344559;if(!_0x105be7['isInContent'])continue;if(_0x5e3767!=_0x105be7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x105be7['isIntersectingWithRange'](_0x2fc973))continue;const _0x5483b5=_0x40e08e['hasAttribute'](_0x399ad7)?_0x40e08e['getAttribute'](_0x399ad7)-0x1:0x0,_0x14a2ba=this['_getSuggestionCoords'](_0x105be7),_0x10c226=_0x14a2ba[_0x3dc32a],_0x2641a0=_0x14a2ba[_0x2333fa];_0x10c226<=_0x15fc49[_0x2559de]&&_0x15fc49[_0x2559de]+_0x5483b5<=_0x2641a0&&(_0x105be7['addRange'](_0x2fc973),_0x35999c=!0x0);}return _0x35999c;};_0x125bf6['model']['document']['registerPostFixer'](_0x1e3265=>{let _0x448f0d=!0x1;for(const _0x5dce9f of _0x125bf6['model']['document']['differ']['getChanges']())if('insert'==_0x5dce9f['type']){if('tableRow'==_0x5dce9f['name']){for(const _0x34e491 of _0x5dce9f['position']['nodeAfter']['getChildren']())_0x448f0d=_0x448f0d||_0x5a2862(_0x34e491,_0x1e3265);}else'tableCell'==_0x5dce9f['name']&&(_0x448f0d=_0x448f0d||_0x5a2862(_0x5dce9f['position']['nodeAfter'],_0x1e3265));}return _0x448f0d;});}_getSuggestionCoords(_0x19d326){return this['_getCoordsForCells'](_0x19d326['getRanges']()['map'](_0x6a17de=>_0x6a17de['start']['nodeAfter']));}};function xe(_0x373419){return Array['from'](new Set(_0x373419)['values']());}var Ge=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x21c8ec=this['editor'],_0x31a6e9=_0x21c8ec['model']['document']['selection'],_0x5b27ca=_0x21c8ec['locale'];if(!_0x21c8ec['plugins']['has']('TableEditing'))return;const _0x287334=_0x21c8ec['plugins']['get']('TrackChangesEditing'),_0x2b35d2=_0x21c8ec['plugins']['get']('TableUtils'),_0x4a42c5=_0x21c8ec['plugins']['get'](Pe);_0x4a42c5['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x287334['enableCommand']('mergeTableCells',()=>{const _0x19e2db=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']);_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x19e2db,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21c8ec['commands']['get']('mergeTableCells')['on']('execute',(_0x2248b7,_0x2feb86)=>{_0x21c8ec['commands']['get']('trackChanges')['value']&&(_0x2feb86['length']>0x0&&_0x2feb86[_0x2feb86['length']-0x1]&&_0x2feb86[_0x2feb86['length']-0x1]['forceDefaultExecution']||_0x287334['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2248b7['stop']());},{'priority':'highest'});for(const _0x6fbf8a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x517836=_0x21c8ec['commands']['get'](_0x6fbf8a);_0x287334['enableCommand'](_0x6fbf8a,()=>{const _0x37e572=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1571a0=>_0x1571a0['is']('element','tableCell')),_0x595a3f=_0x517836['value'];_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat']([_0x37e572,_0x595a3f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55ac9d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x17e66e=_0x21c8ec['commands']['get'](_0x55ac9d);_0x287334['enableCommand'](_0x55ac9d,()=>{const _0x24dd03=_0x2b35d2['getSelectionAffectedTableCells'](_0x21c8ec['model']['document']['selection']),_0x2b0f38=_0x24dd03[0x0]['findAncestor']('table'),_0x42e922=new Set();for(const _0x5af9c8 of _0x24dd03){const {column:_0xee39b4,row:_0x2c1bce}=_0x2b35d2['getCellLocation'](_0x5af9c8),_0x19f333='horizontally'==_0x17e66e['direction']?_0x2b35d2['createTableWalker'](_0x2b0f38,{'startRow':_0x2c1bce,'endRow':_0x2c1bce,'includeAllSlots':!0x0}):_0x2b35d2['createTableWalker'](_0x2b0f38,{'column':_0xee39b4,'includeAllSlots':!0x0});for(const {cell:_0x51b1ac}of _0x19f333)_0x42e922['add'](_0x51b1ac);}_0x21c8ec['model']['change'](()=>{_0x287334['markMultiRangeBlockFormat'](_0x24dd03,{'commandName':_0x55ac9d,'commandParams':[]},Array['from'](_0x42e922),_0x55ac9d);});});}_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x3848e8=>{if('formatBlock'!=_0x3848e8['type']&&'formatInline'!=_0x3848e8['type'])return;const {data:_0x273004}=_0x3848e8;return _0x273004&&'mergeTableCells'==_0x273004['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Merge\x20cells*')}:void 0x0;}),_0x287334['descriptionFactory']['registerDescriptionCallback'](_0x2fdd35=>{if('formatBlock'!=_0x2fdd35['type']&&'formatInline'!=_0x2fdd35['type'])return;const {data:_0x1470b8}=_0x2fdd35;return _0x1470b8?'splitTableCellVertically'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1470b8['commandName']?{'type':'format','content':Ot(_0x5b27ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3e2279=_0x4a42c5['_acceptFormatSuggestionCallbackFactory']();for(const _0x413649 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x413649,'accept',_0x3e2279);for(const _0x41145f of['splitTableCellVertically','splitTableCellHorizontally'])_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41145f,'accept',_0x9a383d=>{_0x21c8ec['model']['change'](_0xedb00d=>{const _0x4f187b=Array['from'](_0x9a383d)['filter'](_0x50e6dc=>'$graveyard'!=_0x50e6dc['root']['rootName']&&!!_0x50e6dc['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x4f187b['length'])return;const _0x16760f=Array['from'](_0x31a6e9['getRanges']())['map'](_0x472945=>ot['fromRange'](_0x472945));_0xedb00d['setSelection'](_0x4f187b),_0x21c8ec['commands']['get'](_0x41145f)['refresh'](),_0x21c8ec['execute'](_0x41145f,{'forceDefaultExecution':!0x0});const _0x18afc6=_0x16760f['filter'](_0x330bd1=>'$graveyard'!=_0x330bd1['root']['rootName']);_0x18afc6['length']>0x0&&_0xedb00d['setSelection'](_0x18afc6);for(const _0x3a851f of _0x16760f)_0x3a851f['detach']();});});_0x287334['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x17c3f7=>{_0x21c8ec['model']['change'](_0x22faf3=>{const _0x548113=Array['from'](_0x31a6e9['getRanges']())['map'](_0x2d7051=>ot['fromRange'](_0x2d7051));_0x22faf3['setSelection'](_0x17c3f7),_0x21c8ec['commands']['get']('mergeTableCells')['refresh'](),_0x21c8ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x14fd36=_0x548113['filter'](_0x1c91ba=>'$graveyard'!=_0x1c91ba['root']['rootName']);_0x14fd36['length']>0x0&&_0x22faf3['setSelection'](_0x14fd36);for(const _0x24433f of _0x548113)_0x24433f['detach']();});});for(const _0x3cbdec of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x43ef2a=_0x21c8ec['commands']['get'](_0x3cbdec);_0x43ef2a['on']('set:isEnabled',(_0x561a31,_0x3945ef,_0x37a254)=>{if(_0x37a254){const _0x18bb3a=_0x21c8ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10877c=>_0x10877c['is']('element','tableCell'));this['_areMergableCells'](_0x43ef2a['value'],_0x18bb3a)||(_0x561a31['return']=!0x1,_0x561a31['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x35beaf=this['editor']['commands']['get']('mergeTableCells'),_0xcb959e=this['editor']['plugins']['get']('TableUtils');if(!_0x35beaf['isEnabled'])return!0x1;const _0x4b29a2=_0xcb959e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x982a62 of _0x4b29a2)for(const _0x46e874 of _0x4b29a2)if(_0x982a62!=_0x46e874&&!this['_areMergableCells'](_0x982a62,_0x46e874))return!0x1;return!0x0;}['_areMergableCells'](_0x2331b7,_0x52bf04){const _0x26b4c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9d0711=this['editor']['model']['createRangeOn'](_0x2331b7),_0x3cd8ed=this['editor']['model']['createRangeOn'](_0x52bf04),_0x433ec9=new Set(),_0x2eb111=new Set();for(const _0x3c34d3 of _0x26b4c7['getSuggestions']())if(('insertion'==_0x3c34d3['type']||'deletion'==_0x3c34d3['type']||'mergeTableCells'==_0x3c34d3['subType'])&&_0x3c34d3['isInContent']){for(const _0x211218 of _0x3c34d3['getRanges']())_0x211218['containsRange'](_0x9d0711,!0x0)&&_0x433ec9['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']),_0x211218['containsRange'](_0x3cd8ed,!0x0)&&_0x2eb111['add'](_0x3c34d3['type']+':'+_0x3c34d3['author']['id']);}if(_0x433ec9['size']!=_0x2eb111['size'])return!0x1;for(const _0x26fa72 of _0x433ec9)if(!_0x2eb111['has'](_0x26fa72))return!0x1;return!0x0;}},He=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4b14b1=this['editor'];if(!_0x4b14b1['plugins']['has']('TableEditing'))return;const _0x54b440=_0x4b14b1['locale'],_0x3fd54b=_0x4b14b1['plugins']['get']('TrackChangesEditing');_0x3fd54b['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3fd54b['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x54b440,'FORMAT_HEADER_ROW')),_0x3fd54b['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x54b440,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x3b50fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580f34=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x580f34),_0x3b50fc['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x580f34),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x4a403b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a6352=this['editor']['plugins']['get']('TableUtils');function _0x5dc593({showActiveMarker:_0x255f60=!0x0,setDataAttribute:_0x135af5=!0x0}={}){return(_0x4674ca,_0x29781c,_0x2845d3)=>{const {type:_0x49bad4,id:_0x5e6f2a}=et(_0x29781c['markerName']);if(!_0x4a403b['hasSuggestion'](_0x5e6f2a))return;const _0x1b6a5b=_0x4a403b['getSuggestion'](_0x5e6f2a),_0x1e8d16=_0x1b6a5b['data'];if('formatBlock'!=_0x1b6a5b['type']||!_0x1e8d16||'setTableColumnHeader'!=_0x1e8d16['commandName'])return;if(_0x29781c['item'])return void _0x4674ca['stop']();if(!_0x2845d3['consumable']['consume'](_0x29781c['markerRange'],_0x4674ca['name']))return;const _0xe30bca=_0x29781c['markerRange']['start']['nodeAfter'],_0x212980=_0x29781c['markerRange']['end']['nodeBefore'],_0x5547b6=_0xe30bca['parent']['parent'],{column:_0x32355b}=_0x5a6352['getCellLocation'](_0xe30bca),{column:_0x1f17f7}=_0x5a6352['getCellLocation'](_0x212980);for(let _0x278d6a=_0x32355b;_0x278d6a<=_0x1f17f7;_0x278d6a++){const _0x1ab279=_0x5a6352['createTableWalker'](_0x5547b6,{'column':_0x278d6a,'includeAllSlots':!0x1});for(const _0x42cd8b of _0x1ab279){const _0x87618f=_0x42cd8b['cell'],_0x5f37bc=_0x2845d3['mapper']['toViewElement'](_0x87618f);_0x2845d3['writer']['addClass']('ck-suggestion-marker-'+_0x49bad4,_0x5f37bc),_0x135af5&&_0x2845d3['writer']['setAttribute']('data-suggestion',_0x5e6f2a,_0x5f37bc),_0x2845d3['mapper']['bindElementToMarker'](_0x5f37bc,_0x29781c['markerName']),_0x255f60&&(_0x4a403b['activeMarkers']['includes'](_0x29781c['markerName'])?_0x2845d3['writer']['addClass']('ck-suggestion-marker--active',_0x5f37bc):_0x2845d3['writer']['removeClass']('ck-suggestion-marker--active',_0x5f37bc));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5dc593(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34d9ac,_0x3e4c97,_0x559148)=>{_0x559148['options']['showSuggestionHighlights']&&_0x5dc593({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34d9ac,_0x3e4c97,_0x559148);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4b4220,_0x1539ca,_0x3c3c40)=>{const {type:_0x1d001b,id:_0x499200}=et(_0x1539ca['markerName']);if(!_0x4a403b['hasSuggestion'](_0x499200))return;const _0x2a02b5=_0x4a403b['getSuggestion'](_0x499200),_0x29fd12=_0x2a02b5['data'];if('formatBlock'!=_0x2a02b5['type']||!_0x29fd12||'setTableColumnHeader'!=_0x29fd12['commandName'])return;const _0x34f39e=_0x3c3c40['mapper']['markerNameToElements'](_0x1539ca['markerName']);if(_0x34f39e){for(const _0x4be8f3 of _0x34f39e)_0x3c3c40['writer']['removeClass']('ck-suggestion-marker-'+_0x1d001b,_0x4be8f3),_0x3c3c40['writer']['removeClass']('ck-suggestion-marker--active',_0x4be8f3),_0x3c3c40['writer']['removeAttribute']('data-suggestion',_0x4be8f3),_0x3c3c40['mapper']['unbindElementFromMarkerName'](_0x4be8f3,_0x1539ca['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x5acfd7=this['editor'],_0x2c833d=_0x5acfd7['locale'];function _0x51279f(_0x4b289b){return{'type':'format','content':Ot(_0x2c833d,'*Format:*\x20%0',_0x4b289b)};}_0x5acfd7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f84e2=>{if('formatBlock'!=_0x3f84e2['type'])return;const {data:_0x3c6789}=_0x3f84e2;return _0x3c6789?'setTableRowHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_ROW')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x3c6789['commandName']?_0x3c6789['commandParams'][0x0]['forceValue']?_0x51279f(Ot(_0x2c833d,'FORMAT_HEADER_COLUMN')):_0x51279f(Ot(_0x2c833d,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x2a47c1=this['editor'];if(!_0x2a47c1['plugins']['has']('TableEditing')||!_0x2a47c1['config']['get']('table.enableFooters'))return;const _0x51527a=_0x2a47c1['locale'],_0x558a43=_0x2a47c1['plugins']['get']('TrackChangesEditing');_0x558a43['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x558a43['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0x51527a,'FORMAT_FOOTER_ROW'));}},We=class extends _0x9bd549{afterInit(){const _0x4b47cf=this['editor'],_0x52e71f=_0x4b47cf['locale'],_0x302832=_0x4b47cf['plugins']['get']('TrackChangesEditing');function _0xc3d88f(_0x58b968){return{'type':'format','content':''+Ot(_0x52e71f,'*Set\x20table\x20type:*\x20%0',_0x58b968)};}_0x4b47cf['plugins']['has']('TableLayout')&&(_0x302832['enableCommand']('insertTableLayout'),_0x302832['enableDefaultAttributesIntegration']('tableType'),_0x302832['descriptionFactory']['registerElementLabel'](_0xdf4289=>_0xdf4289['is']('element','table')&&'layout'===_0xdf4289['getAttribute']('tableType'),_0x67e9d4=>Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE',_0x67e9d4)),_0x302832['descriptionFactory']['registerDescriptionCallback'](_0x278829=>{const {data:_0x2902ea}=_0x278829;if(_0x2902ea&&'tableType'==_0x2902ea['key'])switch(_0x2902ea['newValue']){case'layout':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xc3d88f(Ot(_0x52e71f,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ve['map'](_0x403c02=>[_0x403c02,null]));var ze=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x4cbef5=this['editor'];if(!_0x4cbef5['plugins']['has']('TableClipboard'))return;const _0x4e9699=_0x4cbef5['plugins']['get']('TrackChangesEditing'),_0x3a8204=_0x4cbef5['plugins']['get']('TableUtils'),_0x5d99c8=_0x4cbef5['plugins']['get'](Pe),_0x4f8c44=_0x4cbef5['plugins']['get']('TableClipboard'),_0x1cd511=_0x4cbef5['plugins']['get']('TableSelection'),_0x3919cc=_0x4cbef5['plugins']['get'](ft);_0x5d99c8['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4cbef5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4cbef5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2f5cf0=null,_0x5277f0=!0x1;_0x3919cc['on']('contentInsertion',(_0x460894,_0x37b763)=>{_0x5277f0='paste'===_0x37b763['method'];}),_0x4cbef5['model']['on']('insertContent',(_0x33cde6,_0x293361)=>{if(!_0x5277f0&&null===_0x1cd511['getSelectedTableCells']())return;const [_0x5dc9e7,_0x30f7db]=_0x293361,_0x3cc385=_0x293361[_0x293361['length']-0x1];_0x3cc385&&_0x3cc385['forceDefaultExecution']||_0x4e9699['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x28ec8c,_0xfed37c,_0x2af85a,_0x314edb,_0x41bd29){if(_0xfed37c&&!_0xfed37c['is']('documentSelection'))return!0x1;const _0x11dcc4=_0x41bd29['getTableIfOnlyTableInContent'](_0x28ec8c,_0x2af85a);if(!_0x11dcc4||!Xe(_0x11dcc4,void 0x0,_0x314edb))return!0x1;const _0x2c1d7d=_0x314edb['getSelectionAffectedTableCells'](_0x2af85a['document']['selection']);if(!_0x2c1d7d['length'])return!0x1;const _0x70dd2c=_0x2c1d7d[0x0]['findAncestor']('table'),_0x307850=_0x314edb['getRowIndexes'](_0x2c1d7d),_0x57588e=_0x314edb['getColumnIndexes'](_0x2c1d7d),_0x1ff04e={'startRow':_0x307850['first'],'endRow':_0x307850['last'],'startColumn':_0x57588e['first'],'endColumn':_0x57588e['last']};return 0x1==_0x2c1d7d['length']&&(_0x1ff04e['endRow']+=_0x314edb['getRows'](_0x11dcc4)-0x1,_0x1ff04e['endColumn']+=_0x314edb['getColumns'](_0x11dcc4)-0x1),Xe(_0x70dd2c,_0x1ff04e,_0x314edb);}(_0x5dc9e7,_0x30f7db,_0x4cbef5['model'],_0x3a8204,_0x4f8c44)&&(_0x33cde6['stop'](),_0x2f5cf0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4cbef5['model']['change'](()=>{_0x4cbef5['model']['insertContent'](_0x293361[0x0],_0x293361[0x1],_0x293361[0x2],{'forceDefaultExecution':!0x0});const _0x2ff7e4=_0x2e6a13(),{rowInsertionRanges:_0x288082,columnInsertionRanges:_0x2ce034,insertionRanges:_0x20f5e2,deletionRanges:_0x3b6824,cells:_0x540698}=_0x2f5cf0;_0x288082['length']&&_0x4e9699['markMultiRangeInsertion'](_0x288082,'tablePasteRow',{'tablePasteChainId':_0x2ff7e4}),_0x2ce034['length']&&_0x4e9699['markMultiRangeInsertion'](_0x2ce034,'tablePasteColumn',{'tablePasteChainId':_0x2ff7e4}),_0x20f5e2['length']&&(_0x4e9699['markMultiRangeInsertion'](_0x20f5e2,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x20f5e2['forEach'](_0x54c8da=>_0x54c8da['detach']?.())),_0x3b6824['length']&&(_0x4e9699['markMultiRangeDeletion'](_0x3b6824,'tablePaste',{'tablePasteChainId':_0x2ff7e4,'skipNestingCheck':!0x0}),_0x3b6824['forEach'](_0x38c27c=>_0x38c27c['detach']?.()));const _0x102e53=_0x4e9699['markMultiRangeBlockFormat'](_0x540698['map'](({element:_0x5a8724})=>_0x5a8724),{'formatGroupId':_0x2e6a13()},[],'tablePasteCell',{'tablePasteChainId':_0x2ff7e4});if(_0x102e53){const _0x4e8400=_0x102e53['getMarkers'](),_0x587cb1=[];for(const {element:_0xf8f4ef,attributes:_0x15904c}of _0x540698){if(!_0x15904c)continue;const _0x18f05f=_0x4cbef5['model']['createRangeOn'](_0xf8f4ef),_0x3794cc=_0x4e8400['find'](_0x2c1910=>_0x2c1910['getRange']()['isEqual'](_0x18f05f));_0x3794cc&&_0x587cb1['push']([_0x3794cc['name'],_0x15904c]);}_0x587cb1['length']&&_0x102e53['setAttribute']('markerAttributes',Object['fromEntries'](_0x587cb1));}_0x2f5cf0=null;}));},{'priority':_0x2b2839['high']+0xa}),_0x3919cc['on']('contentInsertion',()=>{_0x5277f0=!0x1;},{'priority':'lowest'}),_0x4cbef5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2a3abe,_0x50efcc)=>{const [_0x33698f,_0x1f5248,,_0x38df20]=_0x50efcc;if(!_0x2f5cf0)return;_0x2a3abe['stop']();const _0x50f496=_0x33698f['cell'],_0x35ec98=_0x1f5248,_0x1307fa=Ke(_0x50f496),_0x101ca4=Ke(_0x35ec98);_0x2a3abe['return']=_0x50f496;let _0x208594=null,_0x48270c=null;if(_0x101ca4||_0x1307fa){if(_0x1307fa&&!_0x101ca4){_0x38df20['remove'](_0x50f496['getChild'](0x0));for(const _0x504778 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x504778,_0x50f496,'end');const _0x4f7b78=_0x2f5cf0['rowInsertionIndexes']['includes'](_0x33698f['row']),_0x38ccd7=_0x2f5cf0['columnInsertionIndexes']['includes'](_0x33698f['column']);_0x4f7b78||_0x38ccd7||(_0x208594=ot['fromRange'](_0x38df20['createRangeIn'](_0x50f496)));}else _0x101ca4&&!_0x1307fa&&(_0x48270c=_0x38df20['createRangeIn'](_0x50f496));}else{const _0x424a71=_0x38df20['createElement']('tableCellSuggestion'),_0x5b3bdb=_0x38df20['createElement']('tableCellSuggestion');_0x38df20['wrap'](_0x38df20['createRangeIn'](_0x50f496),_0x5b3bdb),_0x38df20['insert'](_0x424a71,_0x50f496,0x0);for(const _0x3679c8 of Array['from'](_0x35ec98['getChildren']()))_0x38df20['insert'](_0x3679c8,_0x424a71,'end');_0x208594=ot['fromRange'](_0x38df20['createRangeOn'](_0x424a71)),_0x48270c=ot['fromRange'](_0x38df20['createRangeOn'](_0x5b3bdb));}const _0x2aa08f=Array['from'](_0x35ec98['getAttributes']())['filter'](([_0x5d7f33])=>Ve['includes'](_0x5d7f33));_0x2f5cf0['cells']['push']({'element':_0x50f496,'attributes':_0x2aa08f['length']?Object['fromEntries'](_0x2aa08f):null}),_0x208594&&_0x2f5cf0['insertionRanges']['push'](_0x208594),_0x48270c&&_0x2f5cf0['deletionRanges']['push'](_0x48270c);},{'priority':'high'}),_0x3a8204['on']('insertColumns',(_0x3c7da3,_0x244f79)=>{const [_0x2a3853,_0x2c7a54={}]=_0x244f79;if(!_0x2f5cf0)return;const _0x37dcec=_0x2c7a54['at']||0x0,_0x2f7d2e=_0x2c7a54['columns']||0x1;_0x2f5cf0['columnInsertionIndexes']=new Array(_0x2f7d2e)['fill'](_0x37dcec)['map']((_0x2485bf,_0x1f2896)=>_0x2485bf+_0x1f2896);for(const {cell:_0x4576b7}of _0x3a8204['createTableWalker'](_0x2a3853,{'startColumn':_0x37dcec,'endColumn':_0x37dcec+_0x2f7d2e-0x1}))_0x2f5cf0['columnInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x4576b7));},{'priority':'low'}),_0x3a8204['on']('insertRows',(_0x127461,_0x5ae58a)=>{const [_0x1341f3,_0x4f8fa1={}]=_0x5ae58a;if(!_0x2f5cf0)return;const _0xc35c7a=_0x4f8fa1['at']||0x0,_0x509b13=_0x4f8fa1['rows']||0x1;_0x2f5cf0['rowInsertionIndexes']=new Array(_0x509b13)['fill'](_0xc35c7a)['map']((_0x30419d,_0x22272a)=>_0x30419d+_0x22272a);for(const {cell:_0x39385c}of _0x3a8204['createTableWalker'](_0x1341f3,{'startRow':_0xc35c7a,'endRow':_0xc35c7a+_0x509b13-0x1}))_0x2f5cf0['rowInsertionRanges']['push'](_0x4cbef5['model']['createRangeOn'](_0x39385c));},{'priority':'low'}),_0x4e9699['descriptionFactory']['registerDescriptionCallback'](_0x4fcca1=>{if(_0x4fcca1['subType']&&_0x4fcca1['subType']['startsWith']('tablePaste'))return _0x4fcca1['previous']?{}:{'type':'insertion','content':Ot(_0x4cbef5['locale'],'*Replace\x20table\x20cells*')};});const _0x589565=()=>!0x1;for(const _0x25f88d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('deletion',_0x25f88d,'join',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25f88d,'join',_0x589565);_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x589565),_0x4e9699['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a2f8e,_0x3c30fa,_0xa6d46b)=>{const _0x4dca5c=_0x4a2f8e['map'](_0x54ed71=>_0x54ed71['getContainedElement']())['filter'](_0x4d28ef=>_0x4d28ef),_0x27db32=new Map(_0x4dca5c['map'](_0x55cf0f=>[_0x55cf0f,null]));if(_0x2f5cf0){for(const {element:_0x3bc054,attributes:_0xd7340a}of _0x2f5cf0['cells'])_0xd7340a&&_0x27db32['set'](_0x3bc054,_0xd7340a);}else{if(_0xa6d46b&&_0xa6d46b['markerAttributes'])for(const [_0x227911,_0x4bec34]of Object['entries'](_0xa6d46b['markerAttributes'])){const _0x5c2951=_0x4cbef5['model']['markers']['get'](_0x227911),_0x3ef361=_0x5c2951?_0x5c2951['getRange']()['getContainedElement']():null;_0x3ef361&&_0x27db32['set'](_0x3ef361,_0x4bec34);}}_0x4cbef5['model']['change'](_0x5785e7=>{for(const [_0x2e7b30,_0x2a0fd9]of _0x27db32)_0x5785e7['setAttributes']({...je,..._0x2a0fd9},_0x2e7b30);});});const _0x264a4d=(_0x2b76f2,_0x5c1c78)=>{_0x4e9699['_suggestionFactory']['registerCustomCallback'](_0x2b76f2,'tablePaste',_0x5c1c78,(_0x33381c,_0x2dbf3e,_0x4901b4)=>{_0x4cbef5['model']['change'](_0x3d9c78=>{const _0x3e552b=[];for(const _0x7467f5 of _0x33381c){const _0x224cff=_0x7467f5['start']['nodeAfter'];_0x224cff['is']('element','tableCellSuggestion')&&_0x3e552b['push'](_0x224cff);}_0x4e9699['_suggestionFactory']['getSuggestionCallback'](_0x2b76f2,null,_0x5c1c78)(_0x33381c,_0x2dbf3e,_0x4901b4);for(const _0x2880ca of _0x3e552b)'$graveyard'!=_0x2880ca['root']['rootName']&&_0x3d9c78['unwrap'](_0x2880ca);});});};_0x264a4d('insertion','accept'),_0x264a4d('insertion','discard'),_0x264a4d('deletion','accept'),_0x264a4d('deletion','discard'),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x19ef31=>{const _0xf876d8=_0x19ef31['map'](_0x37ee5c=>_0x37ee5c['getContainedElement']()),_0x419396=_0xf876d8[0x0]['findAncestor']('table'),{minRow:_0x1ffeff,maxRow:_0x1930c6}=_0x5d99c8['_getCoordsForCells'](_0xf876d8);_0x3a8204['removeRows'](_0x419396,{'at':_0x1ffeff,'rows':_0x1930c6-_0x1ffeff+0x1});}),_0x4e9699['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x301355=>{const _0x1c7d63=_0x301355['map'](_0x5b90b9=>_0x5b90b9['getContainedElement']()),_0x189a98=_0x1c7d63[0x0]['findAncestor']('table'),{minColumn:_0x31a708,maxColumn:_0x497d49}=_0x5d99c8['_getCoordsForCells'](_0x1c7d63);_0x3a8204['removeColumns'](_0x189a98,{'at':_0x31a708,'columns':_0x497d49-_0x31a708+0x1});});const _0x58699a=(_0xd1af14,_0x3fb1bb)=>{if(!_0x3fb1bb['subType']||!_0x3fb1bb['subType']['startsWith']('tablePaste'))return;const _0x4984fd=_0x3fb1bb['attributes']['tablePasteChainId'],_0x2d4069=_0x4e9699['getSuggestions']()['filter'](_0x568c2e=>_0x568c2e['isInContent']&&_0x568c2e['attributes']&&_0x568c2e['attributes']['tablePasteChainId']==_0x4984fd);_0x2d4069['length']&&_0x3fb1bb['getAllAdjacentSuggestions']()['length']!=_0x2d4069['length']&&_0x2d4069['reduce']((_0x11d093,_0x4fa242)=>(_0x11d093['next']=_0x4fa242,_0x4fa242['previous']=_0x11d093,_0x4fa242));};function _0x3debe2(_0x5cfcf1,_0x514787=!0x0){const {id:_0x4ff712,authorId:_0x22f460}=et(_0x5cfcf1['markerName']),_0x50050e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5e093a=_0x4e9699['activeMarkers']['includes'](_0x5cfcf1['markerName']);return _0x5e093a&&_0x50050e['push']('ck-suggestion-marker--active'),{'classes':_0x50050e,'attributes':{'data-suggestion':_0x4ff712,'data-author-id':_0x22f460},'priority':_0x5e093a&&_0x514787?0xbc2:0xbb8};}_0x4e9699['on']('suggestionLoaded',_0x58699a,{'priority':'high'}),_0x4e9699['on']('suggestionUnloaded',_0x58699a,{'priority':'high'}),_0x4cbef5['model']['document']['registerPostFixer'](()=>{let _0x2c9cd5=!0x1;const _0x581614=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3fc3dc,data:_0x100578}of _0x581614){const {group:_0x46374e,type:_0x2ba21a,id:_0x3a50ef}=et(_0x3fc3dc);if('suggestion'!=_0x46374e||'deletion'!=_0x2ba21a||_0x100578['oldRange'])continue;if(!_0x4e9699['hasSuggestion'](_0x3a50ef))continue;const _0x46f670=_0x4e9699['getSuggestion'](_0x3a50ef)['getRanges'](),_0x4cc462=_0x4cbef5['plugins']['get']('Users')['me'];for(const _0x4ed939 of _0x4e9699['getSuggestions']())if(_0x4ed939['isInContent']&&_0x4ed939['author']==_0x4cc462&&'formatBlock'==_0x4ed939['type']&&'tablePasteCell'==_0x4ed939['subType']&&_0x4ed939['getRanges']()['every'](_0x1f39cc=>_0x46f670['some'](_0x50ff62=>_0x50ff62['containsRange'](_0x1f39cc,!0x0)))){for(const _0x4c3ee9 of _0x4ed939['getAllAdjacentSuggestions']())_0x4c3ee9['isInContent']&&(_0x4c3ee9['discard'](),_0x2c9cd5=!0x0);}}return _0x2c9cd5;}),_0x4cbef5['model']['document']['registerPostFixer'](_0xdeb214=>{const _0x358c5c=_0x4cbef5['commands']['get']('redo');if(!_0x358c5c||!_0x358c5c['_createdBatches']['has'](_0xdeb214['batch']))return!0x1;let _0x234aac=!0x1;const _0x24f40f=_0x4cbef5['plugins']['get']('Users')['me'],_0x159d96=_0x4cbef5['model']['document']['differ']['getChanges'](),_0x28e175=Array['from'](_0x4cbef5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x156a15,data:_0xa21596})=>{const {group:_0x11231a,subType:_0x141f40,authorId:_0x320063}=et(_0x156a15);return'suggestion'==_0x11231a&&'tablePaste'==_0x141f40&&_0x320063==_0x24f40f['id']&&!_0xa21596['oldRange'];});for(const _0x303a88 of _0x159d96){if('insert'!=_0x303a88['type']||'tableCellSuggestion'!=_0x303a88['name']||0x1!=_0x303a88['length'])continue;const _0x3c3204=_0xdeb214['createRange'](_0x303a88['position'],_0x303a88['position']['getShiftedBy'](0x1));if(!_0x28e175['find'](({data:_0x42aa4a})=>_0x42aa4a['newRange']['isEqual'](_0x3c3204))){for(const {name:_0x15b1ed,data:_0x3cc0d2}of _0x28e175)if(_0x3c3204['containsRange'](_0x3cc0d2['newRange'])){_0xdeb214['updateMarker'](_0x15b1ed,{'range':_0x3c3204}),_0x234aac=!0x0;break;}}}return _0x234aac;}),_0x4cbef5['model']['document']['registerPostFixer'](_0x3d1a99=>{let _0x8eaacc=!0x1;const _0x2951d5=_0x4cbef5['plugins']['get']('Users')['me'],_0x35fa61=_0x4e9699['getSuggestions']()['filter'](_0x40ba23=>_0x40ba23['isInContent']&&_0x40ba23['author']==_0x2951d5),_0x1630bc=new Set(),_0x3f98db=new Set();for(const _0x2f691c of _0x35fa61)if('tablePaste'==_0x2f691c['subType'])for(const _0x581fca of _0x2f691c['getMarkers']()){const _0x289302=_0x581fca['getRange']()['getContainedElement']();if(_0x289302){if(_0x289302['is']('element','tableCellSuggestion')&&Ke(_0x289302)){_0x2f691c['removeMarker'](_0x581fca['name']),_0x1630bc['add'](_0x289302),_0x8eaacc=!0x0;const _0x2df403=_0x289302['nextSibling'],_0xaad945=_0x289302['previousSibling'],_0xb2304d=_0x2df403&&_0x2df403['is']('element','tableCellSuggestion'),_0x464805=_0xaad945&&_0xaad945['is']('element','tableCellSuggestion');_0xb2304d&&!_0x1630bc['has'](_0x2df403)&&_0x3f98db['add'](_0x2df403),_0x464805&&!_0x1630bc['has'](_0xaad945)&&_0x3f98db['add'](_0xaad945);}else _0x289302['is']('element','paragraph')&&_0x289302['isEmpty']&&(_0x2f691c['removeMarker'](_0x581fca['name']),_0x8eaacc=!0x0);}}else{if('tablePasteCell'==_0x2f691c['subType']){if(!_0x2f691c['attributes']||!_0x2f691c['attributes']['tablePasteChainId'])continue;const _0x59cfc9=_0x2f691c['attributes']['markerAttributes'];if(_0x59cfc9&&Object['keys'](_0x59cfc9)['length'])continue;const _0x2ca634=_0x2f691c['attributes']['tablePasteChainId'];let _0x56b72f=!0x0,_0x447036=!0x0;for(const _0x22ba4e of _0x35fa61)if(_0x22ba4e['subType']&&_0x22ba4e['subType']['startsWith']('tablePaste')){if(!_0x22ba4e['attributes']['tablePasteChainId']){_0x447036=!0x1;break;}if(_0x22ba4e['id']!=_0x2f691c['id']&&_0x22ba4e['attributes']['tablePasteChainId']==_0x2ca634){_0x56b72f=!0x1;break;}}_0x447036&&_0x56b72f&&(_0x2f691c['removeMarkers'](),_0x8eaacc=!0x0);}}for(const _0x4080cb of _0x1630bc)_0x3d1a99['remove'](_0x4080cb);for(const _0x5c75f6 of _0x3f98db)_0x3d1a99['unwrap'](_0x5c75f6);return _0x8eaacc;}),_0x4cbef5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4914d2=>_0x3debe2(_0x4914d2),'converterPriority':'high'}),_0x4cbef5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x348510,_0x19d4ce)=>_0x19d4ce['options']['showSuggestionHighlights']?_0x3debe2(_0x348510,!0x1):null,'converterPriority':'high'});const _0x4c88ed=_0x4cbef5['editing']['view'];this['listenTo'](_0x4c88ed['document'],'clipboardOutput',(_0x15aec1,_0x5143c5)=>{const _0x12bd1b=[];for(const _0x2021aa of _0x4c88ed['createRangeIn'](_0x5143c5['content'])['getItems']())_0x2021aa['is']('element','suggestion-td')&&_0x12bd1b['push'](_0x2021aa);_0x4c88ed['change'](_0x464e7b=>{for(const _0x4f1aa7 of _0x12bd1b)_0x464e7b['move'](_0x464e7b['createRangeIn'](_0x4f1aa7),_0x464e7b['createPositionBefore'](_0x4f1aa7)),_0x464e7b['remove'](_0x4f1aa7);});});}};function Ke(_0x4fc819){if(_0x4fc819['isEmpty'])return!0x0;const _0x418ed9=_0x4fc819['getChild'](0x0);return _0x418ed9['is']('element','paragraph')&&_0x418ed9['isEmpty'];}function Xe(_0x591f30,_0x1cb490={},_0x4f3838){for(const {isAnchor:_0x5de5ac,cellHeight:_0x2e8b5b,cellWidth:_0x3cb5fb}of _0x4f3838['createTableWalker'](_0x591f30,{'includeAllSlots':!0x0,..._0x1cb490}))if(!_0x5de5ac||0x1!=_0x2e8b5b||0x1!=_0x3cb5fb)return!0x1;return!0x0;}var qe=class extends _0x9bd549{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x12a839=this['editor']['plugins']['get']('TrackChangesEditing');_0x12a839['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x12a839['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x101a8f=_0x12a839['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x12a839['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x26e408,_0x36e999)=>{_0x101a8f(_0x26e408,_0x36e999),this['_restoreCellWidths'](_0x26e408[0x0]['start']['nodeAfter'],_0x36e999['commandParams'][0x0]['cellWidths']);}),_0x12a839['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3a3f6d,_0x533f84){const _0x12a326=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a1700=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xd8e07f=_0x533f84['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x310999=_0x1a1700['getColumnGroupElement'](_0xd8e07f);let _0x1d3fb4=_0x310999?_0x1a1700['getTableColumnsWidths'](_0x310999):null,_0x3d673e=_0xd8e07f['getAttribute']('tableWidth')||null;const _0x365126=_0x533f84['tableWidth']||_0x3d673e,_0x1f4858=_0x533f84['columnWidths']||_0x1d3fb4;let _0x3dbd41=this['_getCellWidths'](_0xd8e07f);const _0x414634=this['_foldResizeTableSuggestion'](_0xd8e07f);_0x414634&&(_0x3d673e=_0x414634['tableWidth'],_0x1d3fb4=_0x414634['columnWidths'],_0x3dbd41=_0x414634['cellWidths']||_0x3dbd41),_0x3a3f6d({'table':_0xd8e07f,'tableWidth':_0x365126,'columnWidths':_0x1f4858}),_0x12a326['markBlockFormat'](_0xd8e07f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3d673e,'columnWidths':_0x1d3fb4,'cellWidths':_0x3dbd41}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x27c83c,_0xc32c78={}){if(void 0x0===_0xc32c78['value']||''===_0xc32c78['value'])return void _0x27c83c(_0xc32c78);const _0x3566b8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46ce8d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5176a4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xc32c78['batch']||(_0xc32c78['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xc32c78['batch'],()=>{const _0x45ccd8=_0x46ce8d['getColumnGroupElement'](_0x5176a4);let _0x5ee071=_0x45ccd8?_0x46ce8d['getTableColumnsWidths'](_0x45ccd8):null,_0x3967b4=_0x5176a4['getAttribute']('tableWidth')||null,_0x34c334=this['_getCellWidths'](_0x5176a4);const _0x5374d0=this['_foldResizeTableSuggestion'](_0x5176a4,!0x0);_0x5374d0&&(_0x3967b4=_0x5374d0['tableWidth'],_0x5ee071=_0x5374d0['columnWidths'],_0x34c334=_0x5374d0['cellWidths']||_0x34c334),_0x27c83c(_0xc32c78),_0x3566b8['markBlockFormat'](_0x5176a4,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3967b4,'columnWidths':_0x5ee071,'cellWidths':_0x34c334}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x1886d1,_0x549205=!0x1){const _0x53dbac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x770f7c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a17e5 of _0x53dbac['getSuggestions']({'skipNotAttached':!0x0})){const _0x3ece94=_0x5a17e5['getContainedElement']();if('resizeTable'===_0x5a17e5['subType']&&_0x3ece94===_0x1886d1){_0x5a17e5['author']!==_0x770f7c&&(_0x549205?_0x5a17e5['removeMarkers']():_0x5a17e5['discard']());const _0x724e5b=_0x5a17e5['data']['commandParams'];return{'tableWidth':_0x724e5b[0x0]['tableWidth'],'columnWidths':_0x724e5b[0x0]['columnWidths'],'cellWidths':_0x724e5b[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x315cc7){const _0x545c5b=[];for(const _0x29eefa of _0x315cc7['getChildren']())if(_0x29eefa['is']('element','tableRow')){for(const _0x27fbee of _0x29eefa['getChildren']())_0x545c5b['push'](_0x27fbee['getAttribute']('tableCellWidth')||null);}return _0x545c5b;}_restoreCellWidths(_0x453b10,_0x5c7f24){_0x5c7f24&&this['editor']['model']['change'](_0x4c754a=>{let _0x25e04e=0x0;for(const _0x1341f7 of _0x453b10['getChildren']())if(_0x1341f7['is']('element','tableRow'))for(const _0x4cc836 of _0x1341f7['getChildren']()){const _0x4f442c=_0x5c7f24[_0x25e04e++];_0x4f442c&&_0x4c754a['setAttribute']('tableCellWidth',_0x4f442c,_0x4cc836);}});}handleSuggestionDescription(_0x458b60){if('formatBlock'!=_0x458b60['type']&&'formatInline'!=_0x458b60['type'])return;const {data:_0x181366}=_0x458b60;return _0x181366&&'resizeTable'===_0x181366['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x9bd549{afterInit(){const _0x10731d=this['editor'];_0x10731d['plugins']['has']('Template')&&_0x10731d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x9bd549{afterInit(){const _0x17bc7e=this['editor'];if(!_0x17bc7e['commands']['get']('insertTableOfContents'))return;_0x17bc7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f61b9=_0x17bc7e['plugins']['get']('TrackChangesEditing'),_0x2d2230=_0x17bc7e['locale'];_0x3f61b9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x570ed1=>Ot(_0x2d2230,'ELEMENT_TABLE_OF_CONTENTS',_0x570ed1));}},Ze=class extends _0x9bd549{afterInit(){const _0x1f672c=this['editor'];_0x1f672c['plugins']['has']('Title')&&(_0x1f672c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1f672c['locale'],'ELEMENT_TITLE')),_0x1f672c['model']['document']['registerPostFixer'](_0x39f4d0=>{let _0x40696f=!0x1;const _0x65e20a=Array['from'](_0x1f672c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b13bc,data:_0x2a8459}of _0x65e20a){const {group:_0x5f2dec}=et(_0x5b13bc);if('suggestion'!==_0x5f2dec||!_0x2a8459['newRange'])continue;const _0x38599c=_0x2a8459['newRange'],_0x27cb15=_0x38599c['end']['nodeBefore'];if(!_0x27cb15||!_0x27cb15['is']('element','title-content'))continue;if(!_0x38599c['start']['isTouching'](_0x38599c['end']))continue;const _0x552700=_0x1f672c['model']['schema']['getNearestSelectionRange'](_0x38599c['end'],'forward');if(_0x552700&&_0x552700['isCollapsed']){const _0x37a497=_0x39f4d0['createRange'](_0x38599c['start'],_0x552700['start']);_0x37a497['isEqual'](_0x38599c)||(_0x39f4d0['updateMarker'](_0x5b13bc,{'range':_0x37a497}),_0x40696f=!0x0);}_0x40696f||(_0x39f4d0['removeMarker'](_0x5b13bc),_0x40696f=!0x0);}return _0x40696f;}));}},Je=class extends _0x9bd549{afterInit(){const _0x3046e8=this['editor'],_0xed4740=_0x3046e8['plugins']['get']('TrackChangesEditing');_0x3046e8['plugins']['has']('Uploadcare')&&(_0xed4740['enableCommand']('uploadcare'),_0x3046e8['plugins']['has']('UploadcareImageEdit')&&(_0xed4740['enableCommand']('uploadcareImageEdit'),_0xed4740['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xed4740['descriptionFactory']['registerDescriptionCallback'](_0x920549=>{if('attribute'!=_0x920549['type'])return;const {data:_0x134fdf}=_0x920549;return _0x134fdf&&'uploadcareImageId'==_0x134fdf['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x9bd549{afterInit(){const _0xce3c4d=this['editor'],_0x566b3f=_0xce3c4d['plugins']['get']('TrackChangesEditing');_0xce3c4d['plugins']['has']('UndoEditing')&&(_0x566b3f['enableCommand']('undo'),_0x566b3f['enableCommand']('redo'));}},en=class extends _0x9bd549{static get requires(){return[Pe];}afterInit(){const _0x501294=this['editor'];_0x501294['plugins']['has']('TableCaptionEditing')&&_0x501294['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x9bd549{tableProperties;tableCellProperties;constructor(_0x28bf93){super(_0x28bf93),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 _0x2b6a5e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x426578 of this['tableProperties'])_0x2b6a5e['enableCommand'](_0x426578,(_0x657732,_0x536e6f)=>{const _0x5c56d4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x426578,[_0x5c56d4],this['tableProperties'],'tableProperties',_0x657732,_0x536e6f);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8fd700,_0x2a9692)=>this['handleDiscardAction'](this['tableProperties'],_0x8fd700,_0x2a9692)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2a1192 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2a1192)&&_0x2b6a5e['enableCommand'](_0x2a1192,(_0x451187,_0x4016c6)=>{const _0x5e6584=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2a1192,_0x5e6584,this['tableCellProperties'],'tableCellProperties',_0x451187,_0x4016c6);});_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b6a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x6dfabd,_0x46f3e4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x6dfabd,_0x46f3e4)),_0x2b6a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2b6a5e['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2b6a5e['descriptionFactory']['registerDescriptionCallback'](_0x17ea0a=>this['handleSuggestionDescription'](_0x17ea0a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x306c1d,_0x4dac43,_0xd749fe,_0x32201a,_0x18b558,_0x18a51d){const _0x4c73f0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x18a51d['batch'],()=>{for(const _0x17d1fc of _0x4dac43)if(this['_getSuggestion'](_0x17d1fc,_0x32201a))_0x18b558(_0x18a51d);else{const _0xc10dd2={};for(const _0x487df0 of _0xd749fe){const _0x21bb74=_0x17d1fc['getAttribute'](_0x487df0);void 0x0!==_0x21bb74&&(_0xc10dd2[_0x487df0]=_0x21bb74);}const _0xc7fdb3=this['_getResizedColumnWidths'](_0x17d1fc);_0xc7fdb3&&(_0xc10dd2['columnWidths']=_0xc7fdb3),_0x18b558(_0x18a51d),_0x4c73f0['markBlockFormat'](_0x17d1fc,{'commandParams':[_0xc10dd2]},[],_0x32201a);}});}handleDiscardAction(_0x5b5a17,_0x586d5b,_0x58f3ef){const _0x4bb590=_0x586d5b[0x0]['start']['nodeAfter'],_0x3c09da=_0x58f3ef['commandParams'][0x0];this['editor']['model']['change'](_0x5ae3ad=>{for(const _0x4615ad of _0x5b5a17)void 0x0!==_0x3c09da[_0x4615ad]?_0x5ae3ad['setAttribute'](_0x4615ad,_0x3c09da[_0x4615ad],_0x4bb590):_0x5ae3ad['removeAttribute'](_0x4615ad,_0x4bb590);if(_0x3c09da['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x4c1f25=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x279368=_0x4c1f25['getColumnGroupElement'](_0x4bb590);if(_0x279368){const _0x248097=_0x4c1f25['getTableColumnsWidths'](_0x279368),_0x36ad81=_0x4bb590['getAttribute']('tableWidth');if(('string'==typeof _0x36ad81&&_0x36ad81['trim']()['endsWith']('px'))!==_0x248097['some'](_0x310d7f=>'string'==typeof _0x310d7f&&_0x310d7f['endsWith']('px'))){const _0x4afd27=_0x4c1f25['getTableColumnElements'](_0x279368);_0x3c09da['columnWidths']['forEach']((_0x3db0e1,_0x15573a)=>{_0x4afd27[_0x15573a]&&_0x5ae3ad['setAttribute']('columnWidth',_0x3db0e1,_0x4afd27[_0x15573a]);});}}}});}_getResizedColumnWidths(_0x231747){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x231747['is']('element','table'))return;const _0x198dbc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x466ec6=_0x198dbc['getColumnGroupElement'](_0x231747);return _0x466ec6?_0x198dbc['getTableColumnsWidths'](_0x466ec6):void 0x0;}handleSuggestionDescription(_0x58ae34){if(_0x58ae34['data'])switch(_0x58ae34['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x2af16e,_0x445838){const _0x402da8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x430ab2 of _0x402da8['getSuggestions']({'skipNotAttached':!0x0})){const _0x117ba0=_0x430ab2['getContainedElement']();if(_0x430ab2['subType']===_0x445838&&_0x117ba0===_0x2af16e)return _0x430ab2;}return null;}_registerTablePropertiesAttributes(){const _0xbc1b19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5cdd29=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4bc5e0 of _0x5cdd29){const _0x5ddb13=_0x4bc5e0['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0xbc1b19['descriptionFactory']['registerAttributeLabel'](_0x4bc5e0,Ot(this['editor']['locale'],'FORMAT_'+_0x5ddb13));}}},sn=class extends _0x9bd549{afterInit(){const _0x2d8ae3=this['editor'];if(!_0x2d8ae3['plugins']['has']('LineHeight'))return;const _0x95370f=_0x2d8ae3['plugins']['get']('TrackChangesEditing'),_0x52d2c4=_0x2d8ae3['locale'];_0x95370f['enableDefaultAttributesIntegration']('lineHeight'),_0x95370f['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x52d2c4,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x9bd549{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x203ad7,_0x358b09,_0xfe45c9,_0x4f7893,_0x2c9489,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x45af0f){super(_0x45af0f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d6c9c,_0x331792,_0x11c831,_0x4dbbe3)=>{this['_model']['change'](()=>{for(const _0x30fb4a of[..._0x4dbbe3,..._0x11c831])this['_model']['markers']['has'](_0x30fb4a)&&_0x45af0f['editing']['reconvertMarker'](_0x30fb4a);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x45af0f['plugins']['get'](_0x203ad7),this['_suggestionsConversion']=_0x45af0f['plugins']['get'](_0x358b09),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x45af0f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x45af0f['config']['get']('trackChanges.trackFormatChanges'),_0x45af0f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x45af0f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x45af0f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4f9135=this['editor'];_0x4f9135['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x22a783,{writer:_0xb78b6c})=>{let _0x374dc9='suggestion:'+_0x22a783['getAttribute']('suggestion-type')+':'+_0x22a783['getAttribute']('id');return _0x22a783['getAttribute']('marker-count')&&(_0x374dc9+=':'+_0x22a783['getAttribute']('marker-count')),_0xb78b6c['createElement']('$marker',{'data-name':_0x374dc9});}}),_0x4f9135['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4f9135['model']['document']['registerPostFixer'](_0xb0c7b9=>{let _0x1789bc=!0x1;const _0x418d8f=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']()),_0xe54dbf=new Set();for(const {name:_0x5a5123,data:_0x2354ea}of _0x418d8f){const {group:_0x1bd1b3,type:_0x480ee9,subType:_0x5c8e1f,id:_0x5e5d51}=et(_0x5a5123);if('suggestion'!==_0x1bd1b3)continue;const _0x261eaa=_0x5c8e1f?'suggestion:'+_0x480ee9+':'+_0x5c8e1f+':'+_0x5e5d51:'suggestion:'+_0x480ee9+':'+_0x5e5d51,_0x5332e9=_0x4f9135['model']['markers']['getMarkersGroup'](_0x261eaa),_0x34f4ec=_0x4f9135['model']['markers']['get'](_0x5a5123),_0x4b5fb0=this['_suggestions']['get'](_0x5e5d51);if(null!=_0x2354ea['newRange']){'formatInline'==_0x480ee9&&(_0x1789bc=_0x1789bc||un(_0x2354ea['newRange'],_0x5a5123,_0xb0c7b9,_0x4f9135['model']['schema']));const _0x3bc312='attribute'==_0x480ee9&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x5c8e1f)),_0x328915='attribute'==_0x480ee9&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x5c8e1f));if(_0x2354ea['newRange']['isCollapsed']||'$graveyard'==_0x2354ea['newRange']['root']['rootName']||'formatBlock'==_0x480ee9&&!hn(_0x2354ea['newRange'])||_0x3bc312&&!hn(_0x2354ea['newRange'])||_0x328915&&gn(_0x2354ea['newRange'])||'deletion'==_0x480ee9&&gn(_0x2354ea['newRange'])||_0x34f4ec&&fn(_0x34f4ec,_0x5332e9))_0xb0c7b9['removeMarker'](_0x5a5123),_0x1789bc=!0x0;else{if(!_0x4b5fb0||!_0x4b5fb0['isInContent'])continue;if(_0x2354ea['newRange']&&_0x2354ea['oldRange']&&_0x2354ea['newRange']['isEqual'](_0x2354ea['oldRange']))continue;_0xe54dbf['add'](_0x4b5fb0);}}}return _0xe54dbf['size']>0x0&&(_0x1789bc=!!this['_joinWithAdjacentSuggestions'](_0xe54dbf)||_0x1789bc),_0x1789bc;}),_0x4f9135['model']['document']['registerPostFixer'](_0x5c9d33=>{let _0x1e919b=!0x1;for(const _0x148885 of _0x4f9135['model']['document']['differ']['getChanges']())if('insert'==_0x148885['type'])for(const _0x2164d6 of this['_suggestions']['values']()){if(_0x2164d6['isMultiRange']||!_0x2164d6['isInContent'])continue;const _0x11cdd2='formatBlock'==_0x2164d6['type'],_0x2ed835=this['_getAttributeKey'](_0x2164d6),_0x10b926=_0x2ed835&&this['_suggestionsConversion']['isBlockAttribute'](_0x2ed835);if(!_0x11cdd2&&!_0x10b926)continue;const _0x3bc5b1=_0x2164d6['getFirstRange']();if(_0x3bc5b1['start']['parent']!=_0x3bc5b1['end']['parent']&&!_0x3bc5b1['end']['isAtEnd']){const _0x2e0663=_0x4f9135['model']['createPositionAt'](_0x3bc5b1['start']['nodeAfter'],'end'),_0x434914=_0x4f9135['model']['createRange'](_0x3bc5b1['start'],_0x2e0663);_0x5c9d33['updateMarker'](_0x2164d6['getFirstMarker'](),{'range':_0x434914}),_0x1e919b=!0x0;}}return _0x1e919b;}),_0x4f9135['model']['document']['registerPostFixer'](_0x4c4b00=>this['_processAttributeChanges'](_0x4c4b00)),_0x4f9135['model']['document']['registerPostFixer'](_0xd7d43=>!_0xd7d43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd7d43)),_0x4f9135['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4f9135['model']['document']['on']('change:data',(_0x40e819,_0x48cfac)=>{if(!_0x48cfac['isLocal']||_0x48cfac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3ef1d7=_0x4f9135['model']['document']['differ']['getChanges']();if(0x0==_0x3ef1d7['length'])return;const _0x5377a9=[],_0x466e17=_0x3ef1d7['filter'](_0x1bc317=>'attribute'==_0x1bc317['type']),_0x4cc155=_0x3ef1d7['filter'](_0x98629a=>'insert'==_0x98629a['type']&&'$text'!=_0x98629a['name']);for(const _0x3a2cdd of _0x466e17)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3a2cdd['attributeKey'])&&_0x5377a9['push']({'key':_0x3a2cdd['attributeKey'],'newValue':_0x3a2cdd['attributeNewValue'],'oldValue':_0x3a2cdd['attributeOldValue'],'range':mn(_0x3a2cdd['range'],_0x4f9135['model'])});for(const _0x88b9c9 of _0x4cc155){if('rename'!=_0x88b9c9['action']&&'refresh'!=_0x88b9c9['action'])continue;const _0x5d0748=En(_0x88b9c9['position']['nodeAfter'],_0x4f9135['model']),_0x3bd44d=_0x88b9c9['before'];'rename'==_0x88b9c9['action']&&_0x5377a9['push']({'key':rn,'newValue':_0x88b9c9['name'],'oldValue':_0x3bd44d['name'],'range':_0x5d0748});for(const [_0x3ad3e9,_0x1d5d01]of _0x3bd44d['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3ad3e9))continue;const _0x508710=_0x88b9c9['attributes']['get'](_0x3ad3e9);_0x1d5d01!==_0x508710&&_0x5377a9['push']({'key':_0x3ad3e9,'newValue':_0x508710,'oldValue':_0x1d5d01,'range':_0x5d0748});}for(const [_0x170a76,_0x490fef]of _0x88b9c9['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x170a76)&&(_0x3bd44d['attributes']['has'](_0x170a76)||_0x5377a9['push']({'key':_0x170a76,'newValue':_0x490fef,'oldValue':null,'range':_0x5d0748}));}0x0!=_0x5377a9['length']&&_0x4f9135['model']['enqueueChange'](_0x48cfac,_0xeaa8a9=>{const _0x38b15e=_0x2e6a13();for(const {range:_0x2b0eb9,key:_0x519832,oldValue:_0x2545bc,newValue:_0x31b5f7}of _0x5377a9)this['markAttributeChange'](_0x2b0eb9,_0x519832,_0x2545bc,_0x31b5f7,{'groupId':_0x38b15e});this['_reduceExistingSuggestions'](_0xeaa8a9,_0x5377a9);});},{'priority':'lowest'}),_0x4f9135['model']['markers']['on']('update:suggestion',(_0x493bb1,_0xd0ede5,_0x5506b5)=>{if(null==_0x5506b5){const {id:_0x499ea1}=et(_0xd0ede5['name']),_0x154bf6=this['_suggestions']['get'](_0x499ea1);_0x154bf6&&_0x154bf6['addMarkerName'](_0xd0ede5['name']);}}),_0x4f9135['model']['document']['on']('change:data',()=>{const _0x542370=Array['from'](_0x4f9135['model']['document']['differ']['getChangedMarkers']())['filter'](_0x495c8c=>'suggestion'===et(_0x495c8c['name'])['group']);if(0x0===_0x542370['length'])return;_0x542370['sort']((_0x3c3a12,_0x170155)=>{const _0x4c82a3=_0x3c3a12['data']['oldRange'],_0xcc1fb1=_0x170155['data']['oldRange'];return null===_0x4c82a3&&null===_0xcc1fb1?0x0:null===_0x4c82a3&&null!==_0xcc1fb1?-0x1:null!==_0x4c82a3&&null===_0xcc1fb1?0x1:_0x4c82a3['start']['isBefore'](_0xcc1fb1['start'])?-0x1:0x1;});const _0x57e19c=new Set(),_0x4538f0=new Set();for(const {name:_0x5def4c,data:_0x16d009}of _0x542370){const {id:_0x1e1a3b}=et(_0x5def4c);if(null===_0x16d009['oldRange']){const _0x2f2988=this['_handleNewSuggestionMarker'](_0x5def4c);_0x4538f0['add'](_0x2f2988);}else{const _0x4e1c0e=this['_suggestions']['get'](_0x1e1a3b);null!==_0x16d009['newRange']||_0x4e1c0e['isInContent']?(_0x57e19c['add'](_0x4e1c0e['head']),_0x4538f0['add'](_0x4e1c0e)):this['_removeSuggestion'](_0x4e1c0e);}}_0x4538f0['size']>0x0&&this['_refreshSuggestionsChain'](_0x4538f0);for(const _0x1ea47d of _0x57e19c)this['fire']('suggestionChanged',_0x1ea47d);}),_0x4f9135['model']['on']('applyOperation',(_0x12b767,_0x290a18)=>{const _0x1c7ebd=_0x290a18[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c7ebd['isDocumentOperation'])return;if(_0x1c7ebd['batch']['isUndo']||!_0x1c7ebd['batch']['isLocal'])return;let _0x1ba590,_0x3eb7fa;switch(_0x1c7ebd['type']){case'insert':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['position']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;case'split':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['splitPosition']),_0x3eb7fa=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['moveTargetPosition']);break;case'move':_0x1ba590=_0x4f9135['model']['createPositionAt'](_0x1c7ebd['targetPosition']),_0x3eb7fa=_0x1ba590['getShiftedBy'](_0x1c7ebd['howMany']);break;default:return;}const _0x2c060c=_0x4f9135['model']['createRange'](_0x1ba590,_0x3eb7fa);_0x4f9135['model']['change'](()=>{for(const {suggestion:_0x3d4a1a,meta:_0x4f6147}of this['_findSuggestions'](_0x2c060c)){if(_0x3d4a1a['isMultiRange'])continue;if('formatInline'==_0x3d4a1a['type'])continue;const _0x17da63=this['_getAttributeKey'](_0x3d4a1a);if(_0x17da63&&this['_suggestionsConversion']['isBlockAttribute'](_0x17da63)&&'split'!=_0x1c7ebd['type'])continue;const _0x328457=_0x3d4a1a['data']&&_0x3d4a1a['data']['multipleBlocks'];('formatBlock'!=_0x3d4a1a['type']||'split'==_0x1c7ebd['type']&&!_0x328457)&&(_0x4f6147['containsRangeInObject']||'insertion'==_0x3d4a1a['type']&&_0x4f6147['isOwn']||_0x3d4a1a['getFirstRange']()['containsRange'](_0x2c060c)&&this['_breakSuggestionMarker'](_0x3d4a1a,_0x1ba590,_0x3eb7fa));}});},{'priority':'lowest'}),_0x4f9135['model']['on']('deleteContent',(_0x103535,_0x172f68)=>{const _0x4067b1=_0x172f68[0x0],_0x373dc6=_0x172f68[0x1];if(_0x373dc6&&_0x373dc6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4067b1['isCollapsed'])return;const _0xcb5a4b=_0x4f9135['model']['schema'],{start:_0x46ddc3,end:_0x1198a0}=_0x4067b1['getFirstRange'](),_0x41f5d0=_0x46ddc3['nodeAfter']&&_0xcb5a4b['isLimit'](_0x46ddc3['nodeAfter'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x46ddc3,'forward'),_0x547abb=_0x1198a0['nodeBefore']&&_0xcb5a4b['isLimit'](_0x1198a0['nodeBefore'])?null:_0xcb5a4b['getNearestSelectionRange'](_0x1198a0,'backward'),_0x4db3ca=_0x4f9135['model']['createRange'](_0x41f5d0?_0x41f5d0['start']:_0x46ddc3,_0x547abb?_0x547abb['end']:_0x1198a0);_0x4f9135['model']['change'](_0x4f722c=>{this['markDeletion'](_0x4db3ca);const _0x59dde0=_0x4f9135['model']['schema']['getNearestSelectionRange'](_0x4db3ca['start']);_0x4067b1['is']('documentSelection')?_0x4f722c['setSelection'](_0x59dde0):_0x4067b1['setTo'](_0x59dde0);}),_0x103535['stop']();},{'priority':_0x2b2839['normal']+0xa}),_0x4f9135['model']['on']('insertContent',(_0x317b81,_0x47605b)=>{const _0x86d576=_0x47605b[_0x47605b['length']-0x1];_0x86d576&&_0x86d576['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4f9135['model']['change'](()=>{let _0x2dc0b2=_0x4f9135['model']['insertContent'](_0x47605b[0x0],_0x47605b[0x1],_0x47605b[0x2],{'forceDefaultExecution':!0x0});if(!_0x2dc0b2)return;_0x317b81['return']=_0x2dc0b2['clone']();const _0x1db76e=_0x2dc0b2['end']['nodeBefore'],_0x137d6f=_0x4f9135['model']['schema'];_0x1db76e&&_0x137d6f['isBlock'](_0x1db76e)&&!_0x137d6f['isObject'](_0x1db76e)&&(_0x2dc0b2=_0x4f9135['model']['createRange'](_0x2dc0b2['start'],_0x4f9135['model']['createPositionAt'](_0x1db76e,'end'))),this['markInsertion'](_0x2dc0b2);}),_0x317b81['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3d2a56=new pt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('acceptSuggestion',_0x3d2a56),this['enableCommand']('acceptSuggestion');const _0xafb1ac=new Lt(_0x4f9135,this['_suggestions']);_0x4f9135['commands']['add']('discardSuggestion',_0xafb1ac),this['enableCommand']('discardSuggestion'),_0x4f9135['commands']['add']('acceptAllSuggestions',new yt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4f9135['commands']['add']('discardAllSuggestions',new yt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4f9135['commands']['add']('acceptSelectedSuggestions',new Nt(_0x4f9135,_0x3d2a56,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4f9135['commands']['add']('discardSelectedSuggestions',new Nt(_0x4f9135,_0xafb1ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10513c=_0x4f9135['plugins']['get'](_0x203ad7);this['listenTo'](_0x10513c,'addComment',(_0x3c9585,{threadId:_0x9b2814})=>{const _0x5710f5=this['_suggestions']['get'](_0x9b2814);_0x5710f5&&_0x5710f5['commentThread']&&0x1===_0x5710f5['commentThread']['length']&&this['_updateSuggestionData'](_0x9b2814,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10513c,'removeComment',(_0x969447,{threadId:_0xd59438})=>{const _0x106937=this['_suggestions']['get'](_0xd59438);_0x106937&&_0x106937['commentThread']&&!_0x106937['commentThread']['length']&&this['_updateSuggestionData'](_0xd59438,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x46a1a4){const _0x1d89bf='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x267d7f=0x79158,_0x195b30=window['Date']['now'](),_0x30392f=_0x46a1a4['editor'],_0x2d0b7d=new window['Promise'](_0x102600=>{_0x30392f['once']('ready',_0x102600);}),_0x10fb3f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x10221d=_0x30392f['config']['get']('licenseKey');async function _0x3b37c9(){let _0x276394,_0x15dec1=null,_0x5c799c=null;try{return'GPL'==_0x10221d?'NotAllowed':(_0x276394=_0x5dc09b(),_0x276394?(_0x276394['usageEndpoint']&&(_0x5c799c=_0x1525ac(_0x276394['usageEndpoint'],_0x276394['jti'])),await _0x1ea715()?_0x5cc7ec()?_0x23cb6a()?'Expired':_0x54650b()?('evaluation'==_0x276394['licenseType']&&(_0x15dec1=_0x1ddeee('EvaluationLimit')),await _0xdb49bf()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x23cb6a(){const _0x7d6a42=['evaluation','trial']['includes'](_0x276394['licenseType'])?_0x195b30/0x3e8:0xe10*_0x267d7f;return _0x276394['exp']<_0x7d6a42;}function _0x5cc7ec(){const _0x2c417a=_0x276394['features'];if(!_0x2c417a)return!0x1;if(_0x2c417a['includes']('*'))return!0x0;if(_0x2c417a['includes']('TC'))return!0x0;if(_0x2c417a['includes']('RTC')){if(_0x1d9c94())return!0x0;if(_0x5678e9()||_0x546101())return!0x0;}return!0x1;}function _0x54650b(){const _0x18df40=_0x276394['licensedHosts'];if(!_0x18df40||0x0==_0x18df40['length'])return!0x0;const {hostname:_0x9f4428}=new URL(window['location']['href']);if(_0x18df40['includes'](_0x9f4428))return!0x0;const _0x1e48ee=_0x9f4428['split']('.');return _0x18df40['filter'](_0x59c194=>_0x59c194['includes']('*'))['map'](_0x12aff3=>_0x12aff3['split']('.'))['filter'](_0x4bc2dc=>_0x4bc2dc['length']<=_0x1e48ee['length'])['map'](_0x28c1cf=>Array(_0x1e48ee['length']-_0x28c1cf['length'])['fill']('*'===_0x28c1cf[0x0]?'*':'')['concat'](_0x28c1cf))['some'](_0x4d01b9=>_0x1e48ee['every']((_0x45b62b,_0x20a3ee)=>_0x4d01b9[_0x20a3ee]===_0x45b62b||'*'===_0x4d01b9[_0x20a3ee]));}function _0xdb49bf(){return _0x15dec1&&_0x5c799c?new window['Promise']((_0x16e5c6,_0x397306)=>{_0x15dec1['then'](_0x16e5c6,_0x397306),_0x5c799c['then'](_0x5f19e2=>{'Valid'!=_0x5f19e2&&_0x16e5c6(_0x5f19e2);},_0x397306);}):_0x15dec1||_0x5c799c||'Valid';}}function _0x1525ac(_0x1819e1,_0x47db27){return new window['Promise'](_0x54da38=>{if(_0x201c5d())return _0x54da38('Valid');_0x2f4f84(),_0x30392f['decorate']('_sendUsageRequest');let _0x2e43a7=!0x1;const _0x41b265=_0x2e6a13();function _0x440ea8(_0x20ab7b){return!!_0x20ab7b&&('object'==typeof _0x20ab7b||'function'==typeof _0x20ab7b)&&'function'==typeof _0x20ab7b['then']&&'function'==typeof _0x20ab7b['catch'];}function _0x531f59(_0xc4d2c6){_0x41145a(_0xc4d2c6)['then'](_0x33de58=>_0x33de58&&'ok'==_0x33de58['status']?_0x2bef83(_0x1461a8(_0x41b265+_0x47db27))!=_0x33de58['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18aab7=>(_0x47cc1a(),_0x18aab7),()=>{const _0x781a41=_0x45709b();return null==_0x781a41?(_0x47cc1a(),'Valid'):_0x195b30-_0x781a41>0x240c8400?'UsageLimit':'Valid';})['then'](_0x54da38)['catch'](()=>{_0x54da38('UsageLimit');});const _0x5e2a29=0x36ee80;function _0x47cc1a(){const _0x15ee5f='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x21c369=_0x5a8d8c(_0x2bef83(window['Math']['ceil'](_0x195b30/_0x5e2a29)));window['localStorage']['setItem'](_0x15ee5f,_0x21c369);}function _0x45709b(){const _0x2f5157='llct-'+_0x2bef83(_0x1461a8(_0x1819e1)),_0x4d0635=window['localStorage']['getItem'](_0x2f5157);return _0x4d0635?window['parseInt'](_0x5a8d8c(_0x4d0635),0x10)*_0x5e2a29:null;}function _0x41145a(_0x5401c9){return new window['Promise']((_0xe00b01,_0x1619fa)=>{_0x5401c9['then'](_0xe00b01,_0x1619fa),window['setTimeout'](_0x1619fa,0x1d4c0);});}}_0x30392f['on']('_sendUsageRequest',(_0x5d227f,_0x1d8b8d)=>{if(_0x1d8b8d[0x0]!=_0x1819e1)return _0x54da38('UsageLimit');_0x1d8b8d[0x1]={..._0x1d8b8d[0x1],'requestId':_0x41b265};},{'priority':'high'}),_0x30392f['on']('_sendUsageRequest',_0x4a313b=>{_0x440ea8(_0x4a313b['return'])&&(_0x2e43a7=!0x0,_0x531f59(_0x4a313b['return']));},{'priority':'low'}),_0x2d0b7d['then'](()=>{_0x2e43a7||_0x54da38('UsageLimit');});});function _0x201c5d(){return'auto'==_0x30392f['editing']['view']['_overlayModeHint'];}function _0x2f4f84(){_0x30392f['editing']['view']['_overlayModeHint']='auto';}}function _0x1ddeee(_0x2d9b49){const _0x2b1302=[new window['Promise'](_0x535327=>setTimeout(_0x535327,0x93ecc)),_0x2d0b7d['then'](()=>new window['Promise'](_0x5dee09=>{let _0x961165=0x0;_0x30392f['model']['on']('applyOperation',(_0x23cdc5,_0x34154f)=>{_0x34154f[0x0]['isDocumentOperation']&&_0x961165++,0x5e8==_0x961165&&(_0x5dee09(),_0x23cdc5['off']());});}))];return window['Promise']['race'](_0x2b1302)['then'](()=>_0x2d9b49);}async function _0x54fcbe(){await _0x2d0b7d,_0x30392f['model']['change']=_0x1646db,_0x30392f['model']['enqueueChange']=_0x1646db,_0x30392f['enableReadOnlyMode']('model');}function _0x1d9c94(){return _0x594fab('WebSocketGateway')&&'connected'==_0x11d438('WebSocketGateway')['state'];}function _0x5678e9(){return _0x594fab('RevisionViewerIntegration');}function _0x546101(){return _0x594fab('TrackChangesDataGetter');}function _0x1c7e2f(_0x2bc24e){const _0x40b2bb=_0x54da6b();_0x30392f[_0x40b2bb]='trackChangesLicenseKey'+_0x2bc24e,'Valid'!=_0x2bc24e&&_0x54fcbe();}function _0x54da6b(){const _0x5cb127=window['String'](window['performance']['now']())['replace']('.','');let _0x121e87='R';for(let _0x341edf=0x0;_0x341edf<_0x5cb127['length'];_0x341edf+=0x2){let _0x5d6cd2=window['parseInt'](_0x5cb127['substring'](_0x341edf,_0x341edf+0x2));_0x5d6cd2>=0x3e&&(_0x5d6cd2-=0x3e),_0x121e87+=_0x1d89bf[_0x5d6cd2];}return _0x121e87;}function _0x5dc09b(){const _0x182c4b=_0x10221d['split']('.');if(0x3!=_0x182c4b['length'])return null;return _0x3f7d3f(_0x182c4b[0x1]);function _0x3f7d3f(_0x3e8cad){const _0x488f47=_0x26ae3c(_0x3e8cad);return _0x488f47&&_0x3a0571()?_0x488f47:null;function _0x3a0571(){const _0x1ca281=_0x488f47['jti'],_0x3d993f=window['parseInt'](_0x1ca281['substring'](_0x1ca281['length']-0x8),0x10),_0x1f8a59={..._0x488f47,'jti':_0x1ca281['substring'](0x0,_0x1ca281['length']-0x8)};return delete _0x1f8a59['vc'],_0x1461a8(_0x1f8a59)==_0x3d993f;}}}async function _0x1ea715(){let _0x800d99=!0x0;try{const [_0xc6491d,_0x4f6a20,_0xe5ebd8]=_0x10221d['split']('.');return _0x173d91(_0xc6491d),await _0x325b8c(_0xc6491d,_0x4f6a20,_0xe5ebd8),_0x800d99;}catch{return!0x1;}function _0x173d91(_0x3874db){const _0x25f069=_0x26ae3c(_0x3874db);_0x25f069&&'ES256'==_0x25f069['alg']||(_0x800d99=!0x1);}async function _0x325b8c(_0x17f1c5,_0x449058,_0x4b83e7){const _0x12d029=window['Uint8Array']['from'](_0x4e7680(_0x4b83e7),_0x371bf3=>_0x371bf3['charCodeAt'](0x0)),_0x1191de=new window['TextEncoder']()['encode'](_0x17f1c5+'.'+_0x449058),_0x307524=window['crypto']['subtle'];if(!_0x307524)return;const _0x16fb77=await _0x307524['importKey']('jwk',_0x10fb3f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x307524['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x16fb77,_0x12d029,_0x1191de)||(_0x800d99=!0x1);}}function _0x26ae3c(_0x2f46b0){return _0x2f46b0['startsWith']('ey')?JSON['parse'](_0x4e7680(_0x2f46b0)):null;}function _0x4e7680(_0x153ead){return window['atob'](_0x153ead['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x1461a8(_0x226ade){let _0xb165c1=0x1505;function _0xe21ff7(_0x11450b){for(let _0x12afed=0x0;_0x12afed<_0x11450b['length'];_0x12afed++){const _0x1d01a0=_0x11450b['charCodeAt'](_0x12afed);_0xb165c1=(_0xb165c1<<0x5)+_0xb165c1+_0x1d01a0,_0xb165c1&=_0xb165c1;}}function _0x497329(_0x3dfd42){Array['isArray'](_0x3dfd42)?_0x3dfd42['forEach'](_0x497329):_0x3dfd42&&'object'==typeof _0x3dfd42?Object['entries'](_0x3dfd42)['sort']()['forEach'](([_0x3721c9,_0x3fad33])=>{_0xe21ff7(_0x3721c9),_0x497329(_0x3fad33);}):_0xe21ff7(window['String'](_0x3dfd42));}return _0x497329(_0x226ade),_0xb165c1>>>0x0;}function _0x2bef83(_0x5ecd7a){return _0x5ecd7a['toString'](0x10)['padStart'](0x8,'0');}function _0x5a8d8c(_0x10ca15){return _0x10ca15['split']('')['reverse']()['join']('');}function _0x594fab(_0x3f5f57){return _0x30392f['plugins']['has'](_0x3f5f57);}function _0x11d438(_0x1d32dc){return _0x30392f['plugins']['get'](_0x1d32dc);}function _0x1646db(){}_0x1c7e2f(await _0x3b37c9());}(this);}set adapter(_0x22b827){if(this['_adapter'])throw new _0x354614('track-changes-adapter-already-set',this);this['_adapter']=_0x22b827;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1c7135=!0x1,toJSON:_0x24b009=!0x1}={}){const _0x5136c9=[];for(const _0x23bb9f of this['_suggestions']['values']())_0x1c7135&&!_0x23bb9f['isInContent']||_0x5136c9['push'](_0x23bb9f);return _0x24b009?_0x5136c9['map'](_0x382b10=>_0x382b10['toJSON']()):_0x5136c9;}getSuggestion(_0x37ef8d){const _0x1a4b1a=this['_suggestions']['get'](_0x37ef8d);if(!_0x1a4b1a)throw new _0x354614('track-changes-suggestion-not-found',this);return _0x1a4b1a;}hasSuggestion(_0x1093d6){return this['_suggestions']['has'](_0x1093d6);}addSuggestionData(_0x98b8f5){const {authorId:_0x1fb9c2,id:_0x20a4cb,originalSuggestionId:_0xceabbc,attributes:_0x55b102}=_0x98b8f5,[_0x3773a5,_0x3de986]=_0x98b8f5['type']['split'](':'),_0x425419=this['_suggestions']['get'](_0x20a4cb)||this['_createSuggestion'](_0x3773a5,_0x3de986,_0x20a4cb,_0x1fb9c2,_0x55b102,_0xceabbc);if(this['_addThreadToSuggestion'](_0x425419),this['_checkSuggestionCorrectness'](_0x425419,_0x3773a5,_0x3de986||null,_0x1fb9c2),_0x425419['createdAt']=_0x98b8f5['createdAt'],_0x425419['_isDataLoaded']=!0x0,_0x55b102&&_0x55b102['@external']){const _0x4a5d59=_0x55b102['@external'],_0x2f00fe=this['_getExternalAuthor'](_0x4a5d59['authorName']);_0x425419['authoredAt']=_0x4a5d59['createdAt'],_0x425419['author']=_0x2f00fe;}else _0x425419['authoredAt']=_0x98b8f5['createdAt'];switch(_0x98b8f5['data']&&(_0x425419['data']=_0x98b8f5['data']),_0x98b8f5['attributes']&&(_0x425419['attributes']=_0x98b8f5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x425419['_saved']=!0x0),this['_suggestionState']['get'](_0x425419)){case'notReady':this['_suggestionState']['set'](_0x425419,'dataReady');break;case'markerReady':_0x425419['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x425419])),this['_refreshSuggestionsChain'](new Set([_0x425419])),this['_suggestionState']['set'](_0x425419,'ready'),this['fire']('suggestionLoaded',_0x425419)):this['_suggestionState']['set'](_0x425419,'removed');}return _0x425419;}acceptSuggestion(_0x4e46df){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3ef010 of _0x4e46df['getAllAdjacentSuggestions']())_0x3ef010['accept']();});});}discardSuggestion(_0x208bb8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x26f090 of _0x208bb8['getAllAdjacentSuggestions']())_0x26f090['discard']();});});}['enableCommand'](_0x5f88ef,_0x3be466){const _0x3f54f2=this['editor']['commands']['get'](_0x5f88ef);if(!_0x3f54f2)throw new _0x354614('track-changes-command-not-found',this,{'commandName':_0x5f88ef});if(this['_enabledCommands']['has'](_0x3f54f2))throw new _0x354614('track-changes-enable-command-twice',this,{'commandName':_0x5f88ef});this['_enabledCommands']['add'](_0x3f54f2),_0x3be466&&_0x3f54f2['on']('execute',(_0x5d0134,_0x2f5965)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2f5965['length']>0x0&&_0x2f5965[_0x2f5965['length']-0x1]&&_0x2f5965[_0x2f5965['length']-0x1]['forceDefaultExecution']?_0x2f5965['pop']():(_0x5d0134['return']=_0x3be466((..._0x3f6a36)=>_0x3f54f2['execute'](..._0x3f6a36,{'forceDefaultExecution':!0x0}),..._0x2f5965),_0x5d0134['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x211a1a){let _0x3b6902,_0x13ac9b;const _0xaef1c8=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3b6902=_0x211a1a();}catch(_0x37b39f){_0x13ac9b=_0x37b39f;}return _0xaef1c8||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x13ac9b&&_0x354614['rethrowUnexpectedError'](_0x13ac9b,this),_0x3b6902;}markInsertion(_0x53ed1d,_0x4bdff2=null,_0x2e4dfe={}){if(_0x53ed1d['isCollapsed'])return null;const _0x39432c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2e4dfe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x289306,meta:_0xa230d2}of this['_findSuggestions'](_0x53ed1d,'insertion'))if(_0xa230d2['isOwn']){if(!_0xa230d2['isNextTo']){if(_0xa230d2['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x289306,_0x2e4dfe))continue;return _0x289306;}if(pn(_0x289306,_0x2e4dfe))return _0x289306;this['_breakSuggestionMarker'](_0x289306,_0x53ed1d['start'],_0x53ed1d['end']);break;}if(_0x4bdff2==_0x289306['subType']&&pn(_0x289306,_0x2e4dfe)){const _0x5dbcdb=_0x289306['getFirstRange']();return _0x5dbcdb['start']['isEqual'](_0x53ed1d['end'])?this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x53ed1d['start'],_0x5dbcdb['end'])):this['_setSuggestionRange'](_0x289306,this['_model']['createRange'](_0x5dbcdb['start'],_0x53ed1d['end'])),_0x289306;}}const _0x2d669c=_0x2e6a13(),_0x26cdbf=_0x39432c['id'],_0x159cc1=_0x4bdff2?'insertion:'+_0x4bdff2:'insertion',_0x22bea9=this['_setSuggestionData']({'id':_0x2d669c,'type':_0x159cc1,'createdAt':new Date(),'authorId':_0x26cdbf,'attributes':_0x2e4dfe});return this['_addSuggestionMarker'](_0x159cc1,_0x2d669c,_0x26cdbf,_0x53ed1d),_0x22bea9;}markMultiRangeInsertion(_0x2f3e43,_0x3a8861='multi',_0x523827={}){const _0x8b33c2=this['editor']['plugins']['get']('Users')['me'],_0x3cdf38=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3a8861,'join');this['_trackingSessionId']&&(_0x523827['trackingSessionId']=this['_trackingSessionId']);for(const _0x161d97 of this['getSuggestions']())if(_0x161d97['author']['id']==_0x8b33c2['id']&&'insertion'==_0x161d97['type']&&_0x161d97['subType']==_0x3a8861&&pn(_0x161d97,_0x523827)&&(_0x3cdf38(_0x161d97['getRanges'](),_0x2f3e43)||_0x3cdf38(_0x2f3e43,_0x161d97['getRanges']()))){for(const _0x481726 of _0x2f3e43)_0x161d97['addRange'](_0x481726);return _0x161d97;}for(const {suggestion:_0x3a2e99,meta:_0x3f25a4}of this['_findSuggestions'](_0x2f3e43,'insertion')){if(!_0x3f25a4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3f25a4['containsRangeInObject'])continue;if(!pn(_0x3a2e99,_0x523827))continue;let _0x35c204=!0x0;for(const _0x3c947a of _0x3a2e99['getRanges']())for(const _0x26d98f of _0x2f3e43)if(!_0x3c947a['containsRange'](_0x26d98f)){_0x35c204=!0x1;break;}if(_0x35c204)return _0x3a2e99;}const _0x4e7d63=_0x2e6a13(),_0xf25ba2=_0x8b33c2['id'],_0x2abe19='insertion:'+_0x3a8861,_0x573745=this['_setSuggestionData']({'id':_0x4e7d63,'type':_0x2abe19,'createdAt':new Date(),'authorId':_0xf25ba2,'attributes':_0x523827});for(const _0x5950b3 of _0x2f3e43)this['_addSuggestionMarker'](_0x2abe19,_0x4e7d63,_0xf25ba2,_0x5950b3,Mt['getMultiRangeId']());return _0x573745;}markInlineFormat(_0x267c24,_0x3e556d,_0x29fc3c=null,_0x19cbfb={}){if(_0x29fc3c=_0x29fc3c||dn(_0x3e556d),_0x267c24['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x19cbfb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x359bef=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');return this['forceDefaultExecution'](()=>_0x359bef([_0x267c24],_0x3e556d,_0x19cbfb)),null;}const _0xb89c6e=this['editor']['plugins']['get']('Users')['me'],_0x280cad=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4147ea,meta:_0x228147}of this['_findSuggestions'](_0x267c24,'insertion'))_0x228147['isOwn']&&!_0x228147['isInsideObject']&&_0x280cad['push'](..._0x4147ea['getRanges']());}const _0x231b5e=function(_0x4d48f6,_0x15cce8){const _0x22e607=[];for(const _0x36730f of _0x15cce8){const _0x2f2fb4=_0x4d48f6['getIntersection'](_0x36730f);_0x2f2fb4&&_0x22e607['push'](_0x2f2fb4);}return _0x22e607;}(_0x267c24,_0x280cad),_0x3dab9c=function(_0x51d00d,_0x4f0cf4){const _0x44e393=[_0x51d00d];for(const _0x550ab4 of _0x4f0cf4){let _0x3c2917=0x0;for(;_0x3c2917<_0x44e393['length'];){const _0x2e68c3=_0x44e393[_0x3c2917]['getDifference'](_0x550ab4);_0x44e393['splice'](_0x3c2917,0x1,..._0x2e68c3),_0x3c2917+=_0x2e68c3['length'];}}return _0x44e393;}(_0x267c24,_0x280cad);_0x231b5e['length']&&this['_model']['change'](()=>{for(const _0x2ebd34 of _0x231b5e){const _0x54fde4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x29fc3c,'accept');this['forceDefaultExecution'](()=>_0x54fde4([_0x2ebd34],_0x3e556d,_0x19cbfb));}});for(const _0xb69423 of _0x3dab9c){let _0x2220c3=null,_0x2591d3=_0xb69423['start'],_0x8b02c4=_0xb69423['end'];for(const {suggestion:_0x413cd9,meta:_0x4988e7}of this['_findSuggestions'](_0xb69423,'formatInline')){if(!_0x4988e7['isOwn'])continue;if(_0x413cd9['subType']!=_0x29fc3c)continue;if(!pn(_0x413cd9,_0x19cbfb))continue;const _0x24b613=_0x413cd9['getFirstRange']();if(_0x24b613['containsRange'](_0xb69423,!0x0))return null;_0x2591d3=_0x2591d3['isBefore'](_0x24b613['start'])?_0x2591d3:_0x24b613['start'],_0x8b02c4=_0x8b02c4['isAfter'](_0x24b613['end'])?_0x8b02c4:_0x24b613['end'],_0x2220c3?_0x24b613['start']['isBefore'](_0x2220c3['getFirstRange']()['start'])?(_0x2220c3['removeMarkers'](),_0x2220c3=_0x413cd9):_0x413cd9['removeMarkers']():_0x2220c3=_0x413cd9;}const _0x50bf7b=this['_model']['createRange'](_0x2591d3,_0x8b02c4);if(_0x2220c3)this['_setSuggestionRange'](_0x2220c3,_0x50bf7b);else{const _0xe798e2=_0x2e6a13(),_0x423759=_0xb89c6e['id'];this['_setSuggestionData']({'id':_0xe798e2,'type':'formatInline:'+_0x29fc3c,'data':_0x3e556d,'createdAt':new Date(),'authorId':_0x423759,'attributes':_0x19cbfb}),this['_addSuggestionMarker']('formatInline:'+_0x29fc3c,_0xe798e2,_0x423759,_0x50bf7b);}}return null;}markBlockFormat(_0xb58d03,_0x19d491,_0x3f377c=[],_0x2c9706=null,_0x2002e9={}){_0x19d491['formatGroupId']||(_0x19d491['formatGroupId']=_0x19d491['commandName']),_0x19d491['multipleBlocks']=_0xb58d03['is']('range'),_0x2c9706=_0x2c9706||dn(_0x19d491);const _0x183e33=_0x3f377c['map'](_0x1fd5e3=>En(_0x1fd5e3,this['_model'])),_0x3a6f0a=_0xb58d03['is']('range')?_0xb58d03:En(_0xb58d03,this['_model']);if(this['_trackingSessionId']&&(_0x2002e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xeaa016=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0xeaa016([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}_0x183e33['push'](_0x3a6f0a);let _0xc40173=!0x0;for(const _0x12f449 of _0x183e33)if(!this['_rangeIsInLocalUserInsertion'](_0x12f449)){_0xc40173=!0x1;break;}if(_0xc40173&&'always'!==this['_trackFormatChanges']){const _0x3f8777=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2c9706,'accept');return this['forceDefaultExecution'](()=>_0x3f8777([_0x3a6f0a],_0x19d491,_0x2002e9)),null;}let _0x172bbf=null,_0xc2641d=_0x3a6f0a['start'],_0x38f6ac=_0x3a6f0a['end'];for(const {suggestion:_0x25373,meta:_0x375ef4}of this['_findSuggestions'](_0x3a6f0a,'formatBlock')){if(!_0x375ef4['isOwn'])continue;if(_0x375ef4['isNextTo']||_0x375ef4['containsRangeInObject']||_0x375ef4['isInsideObject'])continue;if(_0x25373['data']['formatGroupId']!=_0x19d491['formatGroupId'])continue;if(!pn(_0x25373,_0x2002e9))continue;const _0x1c1193=_0x25373['getFirstRange']();if(_0x25373['subType']==_0x2c9706){if(_0x1c1193['containsRange'](_0x3a6f0a,!0x0))return null;_0xc2641d=_0xc2641d['isBefore'](_0x1c1193['start'])?_0xc2641d:_0x1c1193['start'],_0x38f6ac=_0x38f6ac['isAfter'](_0x1c1193['end'])?_0x38f6ac:_0x1c1193['end'],_0x172bbf?_0x1c1193['start']['isBefore'](_0x172bbf['getFirstRange']()['start'])?(_0x172bbf['removeMarkers'](),_0x172bbf=_0x25373):_0x25373['removeMarkers']():_0x172bbf=_0x25373;}else{const _0x237388=_0x3a6f0a['getIntersection'](_0x1c1193);this['_cutOutSuggestionMarker'](_0x25373,_0x237388);}}const _0xb045ab=this['editor']['plugins']['get']('Users')['me'],_0x1b950e=_0x2e6a13(),_0x450754=_0xb045ab['id'];if(_0x172bbf)return this['_setSuggestionRange'](_0x172bbf,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x172bbf;{const _0x1592d9=this['_setSuggestionData']({'id':_0x1b950e,'type':'formatBlock:'+_0x2c9706,'data':_0x19d491,'createdAt':new Date(),'authorId':_0x450754,'attributes':_0x2002e9});return this['_addSuggestionMarker']('formatBlock:'+_0x2c9706,_0x1b950e,_0x450754,this['_model']['createRange'](_0xc2641d,_0x38f6ac)),_0x1592d9;}}markMultiRangeBlockFormat(_0xa840c6,_0x16b8c5,_0x3bf926=[],_0x582434=null,_0x5ef669={}){_0x16b8c5['formatGroupId']||(_0x16b8c5['formatGroupId']=_0x16b8c5['commandName']);const _0x5bdea8=_0xa840c6[0x0];_0x16b8c5['multipleBlocks']=_0x5bdea8['is']('range'),_0x582434=_0x582434||dn(_0x16b8c5);const _0x323a3e=_0x3bf926['map'](_0x1496bf=>En(_0x1496bf,this['_model'])),_0x4ec1d1=_0x5bdea8['is']('range')?_0xa840c6:_0xa840c6['map'](_0x574ce9=>En(_0x574ce9,this['_model']));if(this['_trackingSessionId']&&(_0x5ef669['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1451be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x1451be(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}_0x323a3e['push'](..._0x4ec1d1);let _0x49eb14=!0x0;for(const _0x26c00a of _0x323a3e)if(!this['_rangeIsInLocalUserInsertion'](_0x26c00a)){_0x49eb14=!0x1;break;}if(_0x49eb14&&'always'!==this['_trackFormatChanges']){const _0x318f12=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'accept');return this['forceDefaultExecution'](()=>_0x318f12(_0x4ec1d1,_0x16b8c5,_0x5ef669)),null;}const _0x555283=this['editor']['plugins']['get']('Users')['me'];for(const _0x16bdaf of this['getSuggestions']()){const _0x50d16e=_0x16bdaf['data'];if(_0x16bdaf['author']['id']!=_0x555283['id'])continue;if('formatBlock'!=_0x16bdaf['type']||_0x50d16e['formatGroupId']!=_0x16b8c5['formatGroupId'])continue;if(!pn(_0x16bdaf,_0x5ef669))continue;const _0x17b44d=_0x16bdaf['subType']==_0x582434;for(let _0x3fa060=0x0;_0x3fa060<_0x4ec1d1['length'];_0x3fa060++){const _0x1d029d=_0x4ec1d1[_0x3fa060];for(const _0x1597c9 of _0x16bdaf['getMarkers']()){const _0x240a59=_0x1597c9['getRange']();if(_0x1d029d['isEqual'](_0x240a59)){_0x17b44d?(_0x4ec1d1['splice'](_0x3fa060,0x1),_0x3fa060--):_0x16bdaf['removeMarker'](_0x1597c9['name']);break;}}}}if(0x0==_0x4ec1d1['length'])return null;const _0x1327ec=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x582434,'join');for(const _0x505ed2 of this['getSuggestions']()){const _0x5de2e5=_0x505ed2['data'];if(_0x505ed2['author']['id']==_0x555283['id']&&('formatBlock'==_0x505ed2['type']&&_0x5de2e5['formatGroupId']==_0x16b8c5['formatGroupId']&&_0x505ed2['subType']==_0x582434&&pn(_0x505ed2,_0x5ef669)&&(_0x1327ec(_0x505ed2['getRanges'](),_0x4ec1d1)||_0x1327ec(_0x4ec1d1,_0x505ed2['getRanges']())))){for(const _0x14b65c of _0x4ec1d1)_0x505ed2['addRange'](_0x14b65c);return _0x505ed2;}}const _0x44daeb=_0x2e6a13(),_0x3a5747=_0x555283['id'],_0x1e91d5='formatBlock:'+_0x582434,_0x29b144=this['_setSuggestionData']({'id':_0x44daeb,'type':_0x1e91d5,'data':_0x16b8c5,'createdAt':new Date(),'authorId':_0x3a5747,'attributes':_0x5ef669});for(const _0x235afc of _0x4ec1d1)this['_addSuggestionMarker'](_0x1e91d5,_0x44daeb,_0x3a5747,_0x235afc,Mt['getMultiRangeId']());return _0x29b144;}markDeletion(_0x11de48,_0x3be4c1=null,_0x139da4={}){if(_0x11de48['isCollapsed'])return null;const _0x31d351=this['editor']['plugins']['get']('Users')['me'],_0x3c5fe6=new ot(_0x11de48['start'],_0x11de48['end']);this['_trackingSessionId']&&(_0x139da4['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2dd3ce,meta:_0x54d1a4}of this['_findSuggestions'](_0x3c5fe6,'insertion'))if(_0x54d1a4['isOwn']&&!_0x54d1a4['isNextTo']){if(_0x2dd3ce['isMultiRange']){const _0x520932=_0x2dd3ce['getRanges']()['filter'](_0x32dfe1=>'$graveyard'!=_0x32dfe1['root']['rootName']);if(_0x520932['every'](_0x2628a9=>_0x3c5fe6['containsRange'](_0x2628a9,!0x0))&&_0x2dd3ce['discard'](),_0x520932['some'](_0x234af0=>_0x234af0['containsRange'](_0x3c5fe6,!0x0))){const _0x40a393=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be4c1,'accept');return this['forceDefaultExecution'](()=>_0x40a393([_0x3c5fe6],null,_0x139da4)),null;}}else{const _0x2790b8=_0x3c5fe6['getIntersection'](_0x2dd3ce['getFirstRange']());null!==_0x2790b8&&_0x2dd3ce['_onDiscard']([_0x2790b8],null,_0x139da4);}}if(_0x3c5fe6['detach'](),_0x3c5fe6['isCollapsed']||'$graveyard'==_0x3c5fe6['root']['rootName'])return null;let _0x5390af=null,_0x59387d=_0x3c5fe6['start'],_0x5095b5=_0x3c5fe6['end'];const _0x15c5de=this['_findSuggestions'](_0x3c5fe6,'deletion');for(const {suggestion:_0x494c79,meta:_0x4bdd3d}of _0x15c5de){const _0x3a5c1d=this['_model']['createRange'](_0x59387d,_0x5095b5);if(_0x4bdd3d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4bdd3d['containsRangeInObject']&&!_0x4bdd3d['isInsideObject'])){if(_0x494c79['isMultiRange']){if(!pn(_0x494c79,_0x139da4))continue;let _0x481656=!0x0;for(const _0x9a3c8c of _0x494c79['getRanges']()){if(_0x9a3c8c['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;_0x3a5c1d['containsRange'](_0x9a3c8c)||(_0x481656=!0x1);}_0x481656&&_0x494c79['discard']();}else{const _0x476fe6=_0x494c79['getFirstRange']();if(_0x476fe6['containsRange'](_0x3a5c1d,!0x0))return _0x494c79;if(!pn(_0x494c79,_0x139da4)){_0x3a5c1d['containsRange'](_0x476fe6)?_0x494c79['removeMarkers']():_0x476fe6['containsPosition'](_0x59387d)?_0x59387d=_0x476fe6['end']:_0x476fe6['containsPosition'](_0x5095b5)&&(_0x5095b5=_0x476fe6['start']);continue;}_0x59387d=_0x59387d['isBefore'](_0x476fe6['start'])?_0x59387d:_0x476fe6['start'],_0x5095b5=_0x5095b5['isAfter'](_0x476fe6['end'])?_0x5095b5:_0x476fe6['end'],_0x139da4=Object['assign']({},_0x494c79['attributes']),_0x5390af?_0x476fe6['start']['isBefore'](_0x5390af['getFirstRange']()['start'])?(_0x5390af['removeMarkers'](),_0x5390af=_0x494c79):_0x494c79['removeMarkers']():_0x5390af=_0x494c79;}}}if(_0x5390af)return this['_setSuggestionRange'](_0x5390af,this['_model']['createRange'](_0x59387d,_0x5095b5)),_0x5390af;{const _0x39a56a=_0x2e6a13(),_0x3bc131=this['_model']['createRange'](_0x59387d,_0x5095b5),_0x477804=_0x31d351['id'],_0x4d32f8=_0x3be4c1?'deletion:'+_0x3be4c1:'deletion',_0x58677=this['_setSuggestionData']({'id':_0x39a56a,'type':_0x4d32f8,'createdAt':new Date(),'authorId':_0x477804,'attributes':_0x139da4});return this['_addSuggestionMarker'](_0x4d32f8,_0x39a56a,_0x477804,_0x3bc131),_0x58677;}}markMultiRangeDeletion(_0x2b499c,_0x2fd845='multi',_0xde69dd={}){const _0x36b1a8=this['editor']['plugins']['get']('Users')['me'],_0x1788a9=_0x2b499c['map'](_0x2a2ddb=>new ot(_0x2a2ddb['start'],_0x2a2ddb['end'])),_0xea661b=new Set();this['_trackingSessionId']&&(_0xde69dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xa622fe,meta:_0x5b9aa2}of this['_findSuggestions'](_0x1788a9,'insertion'))_0x5b9aa2['isOwn']&&!_0x5b9aa2['isNextTo']&&_0xea661b['add'](_0xa622fe);for(const _0x4e310f of _0xea661b)if(_0x4e310f['isMultiRange']){const _0x3ca3bc=_0x4e310f['getRanges']();if(_0x4e310f['attributes']&&_0x4e310f['attributes']['skipNestingCheck']||_0x3ca3bc['every'](_0x197351=>_0x1788a9['some'](_0x3b0701=>_0x3b0701['containsRange'](_0x197351,!0x0)))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x18566a=>_0x3ca3bc['some'](_0x5546fd=>_0x5546fd['containsRange'](_0x18566a,!0x0)))){const _0x41aac5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x41aac5(_0x2b499c,null,_0xde69dd)),null;}}else{const _0x1913e5=_0x4e310f['getFirstRange']();if(_0x1788a9['some'](_0x58590a=>_0x58590a['containsRange'](_0x1913e5,!0x0))&&_0x4e310f['discard'](),_0x1788a9['every'](_0x511d59=>_0x1913e5['containsRange'](_0x511d59,!0x0))){const _0x366824=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'accept');return this['forceDefaultExecution'](()=>_0x366824(_0x1788a9,null,_0xde69dd)),null;}}const _0x11349c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fd845,'join');let _0x1cf024=null;for(const _0x69a1a6 of this['getSuggestions']())if(_0x69a1a6['author']['id']==_0x36b1a8['id']&&_0x69a1a6['isInContent']&&'deletion'==_0x69a1a6['type']&&_0x69a1a6['subType']==_0x2fd845&&pn(_0x69a1a6,_0xde69dd)&&(_0x11349c(_0x69a1a6['getRanges'](),_0x1788a9)||_0x11349c(_0x1788a9,_0x69a1a6['getRanges']()))){if(_0x1cf024){if(_0x69a1a6['commentThread']&&_0x69a1a6['commentThread']['length'])continue;for(const _0x1f63fd of _0x69a1a6['getRanges']())_0x1cf024['isIntersectingWithRange'](_0x1f63fd)||_0x1cf024['addRange'](_0x1f63fd);_0x69a1a6['removeMarkers']();}else{_0x1cf024=_0x69a1a6;for(const _0x552eb0 of _0x1788a9)_0x69a1a6['isIntersectingWithRange'](_0x552eb0)||_0x69a1a6['addRange'](_0x552eb0);}}if(_0x1cf024)return _0x1cf024;_0xea661b['clear']();for(const {suggestion:_0x5a97e8,meta:_0x15ffbd}of this['_findSuggestions'](_0x1788a9,'deletion'))_0x15ffbd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15ffbd['containsRangeInObject']&&!_0x15ffbd['isInsideObject'])&&pn(_0x5a97e8,_0xde69dd)&&_0xea661b['add'](_0x5a97e8);for(const _0x452f89 of _0xea661b){const _0x5fd6e6=_0x452f89['getRanges']();if((!_0xde69dd||!_0xde69dd['skipNestingCheck'])&&_0x1788a9['every'](_0xdd8bbe=>_0x5fd6e6['some'](_0x47f628=>_0x47f628['containsRange'](_0xdd8bbe,!0x0))))return _0x452f89;_0x452f89['attributes']&&_0x452f89['attributes']['skipNestingCheck']||_0x5fd6e6['every'](_0x28cd56=>_0x1788a9['some'](_0x1771a3=>_0x1771a3['containsRange'](_0x28cd56,!0x0)))&&_0x452f89['discard']();}const _0x20ef1a=_0x2e6a13(),_0x5a4d2c=_0x36b1a8['id'],_0x4a3cbe='deletion:'+_0x2fd845,_0x53754e=this['_setSuggestionData']({'id':_0x20ef1a,'type':_0x4a3cbe,'createdAt':new Date(),'authorId':_0x5a4d2c,'attributes':_0xde69dd});for(const _0x454f8c of _0x1788a9)_0x454f8c['detach'](),_0x454f8c['isCollapsed']||'$graveyard'==_0x454f8c['root']['rootName']||this['_addSuggestionMarker'](_0x4a3cbe,_0x20ef1a,_0x5a4d2c,_0x454f8c,Mt['getMultiRangeId']());return _0x53754e;}markAttributeChange(_0x531385,_0x1ee037,_0x425739,_0x1d95c1,_0x147cce){if(_0x531385['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xdcfd48=this['editor']['plugins']['get']('Users')['me']['id'],_0x15511d=Array['from'](this['_suggestions']['values']())['filter'](_0x1abe5f=>'attribute'==_0x1abe5f['type']&&_0x1abe5f['data']['key']==_0x1ee037&&_0x1abe5f['isIntersectingWithRange'](_0x531385));if(this['_trackingSessionId']&&(_0x147cce['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x22858f=this['_findSuggestions'](_0x531385,'insertion')['filter'](({meta:_0x4d6487})=>_0x4d6487['isOwn']&&!_0x4d6487['isInsideObject']&&!_0x4d6487['isNextTo'])['map'](({suggestion:_0x51497c})=>_0x51497c);_0x15511d['unshift'](..._0x22858f);}const _0x54308d=new Map([[_0x531385,_0x425739]]);for(const _0x1db59a of _0x15511d){const _0x6c14a0='attribute'==_0x1db59a['type']?_0x1db59a['data']['oldValue']:void 0x0,_0x22764b=_0x1db59a['getFirstRange'](),_0x28d098=Array['from'](_0x54308d['keys']())['find'](_0x11b9c9=>_0x11b9c9['isIntersecting'](_0x22764b));if(!_0x28d098)continue;const _0x4bb5db=_0x28d098['getDifference'](_0x22764b);this['_suggestionsConversion']['isBlockAttribute'](_0x1ee037)&&'insertion'==_0x1db59a['type']&&0x0!=_0x4bb5db['length']||(_0x54308d['delete'](_0x28d098),_0x4bb5db['forEach'](_0x6b447c=>{_0x54308d['set'](_0x6b447c,_0x425739);}),'insertion'!=_0x1db59a['type']&&_0x6c14a0!=_0x1d95c1&&_0x54308d['set'](_0x28d098['getIntersection'](_0x22764b),_0x6c14a0));}const _0x5ae469=[];for(const [_0x7db8e2,_0x45d378]of _0x54308d){const _0x4531e5=_0x2e6a13(),_0x5aff85={'key':_0x1ee037,'oldValue':_0x45d378,'newValue':_0x1d95c1};_0x1ee037['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':_0x1ee037});const _0x3d761b=('attribute:'+_0x1ee037+'|'+dn({'newValue':_0x1d95c1}))['substring'](0x0,0x3c),_0x116719=this['_setSuggestionData']({'id':_0x4531e5,'type':_0x3d761b,'data':_0x5aff85,'createdAt':new Date(),'authorId':_0xdcfd48,'attributes':_0x147cce});_0x5ae469['push'](_0x116719),this['_addSuggestionMarker'](_0x3d761b,_0x4531e5,_0xdcfd48,_0x7db8e2);}return _0x5ae469;}enableDefaultAttributesIntegration(_0x4fde67){this['enableCommand'](_0x4fde67,(_0x33eb2d,..._0x1a064e)=>{this['recordAttributeChanges'](()=>{_0x33eb2d(..._0x1a064e);});});}startTrackingSession(_0x1e9afa){return this['_trackingSessionId']=void 0x0!==_0x1e9afa?_0x1e9afa:_0x2e6a13(),this['_trackingSessionId'];}_getAttributeKey(_0x219536){return'attribute'==_0x219536['type']?In(_0x219536['subType']):null;}_applyOperationsAsSuggestions(_0x4da695){if(0x0==_0x4da695['length'])return;const _0x41cf2c=this['editor'],_0xf6ffe=_0x41cf2c['plugins']['get'](_0x2c9489),_0xa96bed=[],_0x5beb74=_0x39da45=>{const _0x122417=_0x39da45['_aiSource'];return _0x122417?{'@ai':{'type':_0x122417}}:{};},_0x5c9761=(_0x19f3b8,_0x423ef2,_0x1cfc4a)=>{for(let _0x37f18e=_0x423ef2;_0x37f18e<_0x19f3b8['operations']['length'];_0x37f18e++){const _0x52e9a2=_0x19f3b8['operations'][_0x37f18e];'marker'===_0x52e9a2['type']&&(_0x52e9a2['_aiSource']=_0x1cfc4a);}};_0x41cf2c['model']['change'](_0x5880f6=>{for(let _0x4d34bd=0x0;_0x4d34bd<_0x4da695['length'];_0x4d34bd++){const _0x4d324e=_0x4da695[_0x4d34bd],_0x535bd2=_0x4d324e['_aiSource'],_0x2100ea=_0x5880f6['batch']['operations']['length'];if(_0x4d324e['baseVersion']=_0x41cf2c['model']['document']['version'],_0x4d324e['isDocumentOperation']=!0x0,!_0x4a631e(_0x4d324e)){if(_0xf6ffe['isMarkedRemoveOperation'](_0x4d324e)){const _0x2da2d2=_0x425f5d(_0x4d324e['newRange'],_0x41cf2c['model']);_0xa96bed['unshift']({'range':ot['fromRange'](_0x2da2d2),'opAttributes':_0x5beb74(_0x4d324e),'aiSource':_0x535bd2});}else{switch(_0x4d324e['type']){case'rename':{const _0x2cbae5=_0x4d324e['oldName'],_0x152a50=_0x4d324e['newName'];if(_0x2cbae5==_0x152a50)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x213ebf='$elementName',_0x32e4eb=_0x4d324e['position'],_0x4840d4=_0x41cf2c['model']['createRange'](_0x32e4eb,_0x41cf2c['model']['createPositionAt'](_0x32e4eb['nodeAfter'],'end'));this['markAttributeChange'](_0x4840d4,_0x213ebf,_0x2cbae5,_0x152a50,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x19b4aa=_0x4d324e['oldValue'],_0x3a061e=_0x4d324e['newValue'];if(_0x19b4aa==_0x3a061e)break;_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4e0e9a=_0x4d324e['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4e0e9a))break;const _0x1302d5=_0x425f5d(_0x4d324e['range'],_0x41cf2c['model']);this['markAttributeChange'](_0x1302d5,_0x4e0e9a,_0x19b4aa,_0x3a061e,{..._0x5beb74(_0x4d324e),'groupId':_0x2e6a13()});break;}case'insert':{if(_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e),_0x4da695[_0x4d34bd+0x1]&&'move'==_0x4da695[_0x4d34bd+0x1]['type'])break;const _0x39a035=_0x4d324e['position'],_0x3b6232=_0x4d324e['howMany'],_0x1af7f7=_0x425f5d(_0x41cf2c['model']['createRange'](_0x39a035,_0x39a035['getShiftedBy'](_0x3b6232)),_0x41cf2c['model']);this['markInsertion'](_0x1af7f7,null,{..._0x5beb74(_0x4d324e)});break;}case'split':{_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);const _0x4fca3a=_0x4d324e['splitPosition'],_0x5bd5d2=_0x4d324e['moveTargetPosition'],_0x450871=_0x41cf2c['model']['createRange'](_0x4fca3a,_0x5bd5d2);this['markInsertion'](_0x450871,null,{..._0x5beb74(_0x4d324e)});break;}case'move':case'remove':_0x5880f6['batch']['addOperation'](_0x4d324e),_0x41cf2c['model']['applyOperation'](_0x4d324e);}_0x535bd2&&_0x5c9761(_0x5880f6['batch'],_0x2100ea,_0x535bd2);}}}for(const {range:_0x4727c1,opAttributes:_0x2b885a,aiSource:_0x1f5e6f}of _0xa96bed){const _0x199dc5=_0x5880f6['batch']['operations']['length'];_0x4727c1['detach'](),this['markDeletion'](_0x4727c1,null,{..._0x2b885a}),_0x1f5e6f&&_0x5c9761(_0x5880f6['batch'],_0x199dc5,_0x1f5e6f);}});}_setSuggestionRange(_0xe512eb,_0x1ae341){const _0x227d96=_0xe512eb['getFirstMarker']();this['_model']['change'](_0x4d755b=>{_0x4d755b['updateMarker'](_0x227d96,{'range':_0x1ae341});});}_addThreadToSuggestion(_0x4c8d5d){const _0x521642=_0x4c8d5d['id'],_0x3c8e04=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x521642)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3c8e04,'threadId':_0x521642,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e50d4=this['_commentsRepository']['getCommentThread'](_0x521642);_0x4e50d4['unbind']('isRemovable'),_0x4e50d4['isRemovable']=!0x1,_0x4c8d5d['commentThread']=_0x4e50d4;}_checkSuggestionCorrectness(_0x34f06e,_0xd69fe0,_0x318713,_0x5e8cec){if(_0x34f06e['type']!=_0xd69fe0||_0x34f06e['subType']!=_0x318713||_0x34f06e['creator']['id']!=_0x5e8cec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x354614('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x312fb1,_0x433299){const _0xb813f4=_0x312fb1['getFirstRange']();if(_0x433299['isEqual'](_0xb813f4))_0x312fb1['removeMarkers']();else{if(_0xb813f4['containsRange'](_0x433299)){const _0x5e4b3a=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x5e4b3a));const _0x1a207a=_0x2e6a13(),_0x1cf18a=_0x312fb1['creator']['id'],_0x83a4c5=_0x312fb1['type']+':'+_0x312fb1['subType'];this['_setSuggestionData']({'id':_0x1a207a,'type':_0x83a4c5,'createdAt':new Date(),'authorId':_0x1cf18a,'data':_0x312fb1['data'],'attributes':_0x312fb1['attributes']});const _0x405250=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after'),_0x3c4898=this['_model']['createRange'](_0x405250,_0xb813f4['end']);this['_addSuggestionMarker'](_0x83a4c5,_0x1a207a,_0x1cf18a,_0x3c4898);}else{if(_0xb813f4['containsPosition'](_0x433299['start'])){const _0x1d49e0=this['_model']['createPositionAt'](_0x433299['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xb813f4['start'],_0x1d49e0));}else{const _0xea3f36=this['_model']['createPositionAt'](_0x433299['end']['parent'],'after');this['_setSuggestionRange'](_0x312fb1,this['_model']['createRange'](_0xea3f36,_0xb813f4['end']));}}}}_rangeIsInLocalUserInsertion(_0x3e2498){for(const {suggestion:_0x696e80,meta:_0xa81d60}of this['_findSuggestions'](_0x3e2498,'insertion')){if(!_0xa81d60['isOwn'])continue;const _0x3907f9=_0x696e80['getRanges']();for(const _0x134c36 of _0x3907f9)if(!_0x3e2498['getDifference'](_0x134c36)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x49ffe0){return this['editor']['plugins']['get']('Users')['getUser'](_0x49ffe0);}_getExternalAuthor(_0x46e322){const _0x144585=this['editor']['plugins']['get']('Users'),_0x511213=_0x1724db('external:'+_0x46e322),_0x5f0c91=_0x144585['getUser'](_0x511213);return _0x5f0c91||_0x144585['addUser']({'id':_0x511213,'name':_0x46e322});}_createSuggestion(_0x28731d,_0x67f366,_0x36ed79,_0x33ea0f,_0x49c004,_0x1d00c7){const _0x266dde=this['_getAuthorFromId'](_0x33ea0f);if(!_0x266dde)throw new _0x354614('track-changes-user-not-found',this,{'authorId':_0x33ea0f,'suggestionId':_0x36ed79});const _0x3f0e35=this['_suggestionFactory']['buildSuggestion'](_0x28731d,_0x67f366,_0x36ed79,_0x266dde,_0x49c004,_0xbd325=>{this['_updateSuggestionData'](_0x36ed79,{'attributes':_0xbd325});const _0x53609b=this['getSuggestion'](_0x36ed79);this['_joinWithAdjacentSuggestions'](new Set([_0x53609b])),this['_refreshSuggestionsChain'](new Set([_0x53609b]));},_0x1d00c7);return this['listenTo'](_0x3f0e35,'accept',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f0e35,'discard',()=>{this['_updateSuggestionData'](_0x36ed79,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x36ed79,_0x3f0e35),this['_suggestionState']['set'](_0x3f0e35,'notReady'),_0x3f0e35;}_breakSuggestionMarker(_0x518c0d,_0x4232cf,_0x658ad4){const _0x4a23ab=_0x518c0d['getFirstRange'](),_0x1738f2=_0x4a23ab['start'],_0xffbc67=_0x4a23ab['end'];this['_setSuggestionRange'](_0x518c0d,this['_model']['createRange'](_0x1738f2,_0x4232cf));const _0x589776=_0x2e6a13(),_0x13fee0=_0x518c0d['creator']['id'],_0x1849ac=_0x518c0d['type']+(_0x518c0d['subType']?':'+_0x518c0d['subType']:'');this['_setSuggestionData']({'id':_0x589776,'type':_0x1849ac,'createdAt':new Date(),'authorId':_0x13fee0,'originalSuggestionId':_0x518c0d['_originalSuggestionId']||_0x518c0d['id'],'attributes':_0x518c0d['attributes'],'data':_0x518c0d['data']});const _0x48aa65=this['_getAttributeKey'](_0x518c0d);('formatBlock'==_0x518c0d['type']||_0x48aa65&&this['_suggestionsConversion']['isBlockAttribute'](_0x48aa65))&&(_0x658ad4=this['_model']['createPositionBefore'](_0x658ad4['parent'])),this['_addSuggestionMarker'](_0x1849ac,_0x589776,_0x13fee0,this['_model']['createRange'](_0x658ad4,_0xffbc67));}_findSuggestions(_0x44b7b,_0x1f777b=null){const _0x48b908=[],_0x5edf99=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x44b7b)||(_0x44b7b=[_0x44b7b]);for(const _0x406e33 of this['getSuggestions']()){if(!_0x406e33['isInContent'])continue;if(_0x1f777b&&_0x406e33['type']!=_0x1f777b)continue;let _0x371b95=!0x1;for(const _0xf713a1 of _0x406e33['getRanges']()){for(const _0x45d3b3 of _0x44b7b){const _0x2bb69a=_0x45d3b3['start']['isEqual'](_0xf713a1['end'])||_0x45d3b3['end']['isEqual'](_0xf713a1['start']);if(_0x2bb69a||_0x45d3b3['getIntersection'](_0xf713a1)){const _0x76d7a2=_0x45d3b3['containsRange'](_0xf713a1)&&cn(this['_model']['schema'],_0xf713a1['start'],_0x45d3b3),_0x27fbcb=_0xf713a1['containsRange'](_0x45d3b3)&&cn(this['_model']['schema'],_0x45d3b3['start'],_0xf713a1);_0x48b908['push']({'suggestion':_0x406e33,'meta':{'isOwn':_0x5edf99==_0x406e33['author'],'isNextTo':_0x2bb69a,'isInsideObject':_0x76d7a2,'containsRangeInObject':_0x27fbcb}}),_0x371b95=!0x0;break;}}if(_0x371b95)break;}}return _0x48b908;}_addSuggestionMarker(_0x11b10d,_0xbda245,_0x2679bb,_0x33d81b,_0x4dfe53){this['_model']['change'](_0x15bc5f=>{let _0x2de677='suggestion:'+_0x11b10d+':'+_0xbda245+':'+_0x2679bb;_0x4dfe53&&(_0x2de677=_0x2de677+':'+_0x4dfe53),_0x15bc5f['addMarker'](_0x2de677,{'range':_0x33d81b,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x3e66c0){const _0x1f9e0f=_0x3e66c0['previous'],_0x4d61f1=_0x3e66c0['next'];_0x3e66c0['previous']=null,_0x3e66c0['next']=null,null!=_0x1f9e0f&&_0x1f9e0f['next']==_0x3e66c0&&(_0x1f9e0f['next']=_0x4d61f1),null!=_0x4d61f1&&_0x4d61f1['previous']==_0x3e66c0&&(_0x4d61f1['previous']=_0x1f9e0f),'ready'==this['_suggestionState']['get'](_0x3e66c0)&&(this['_suggestionState']['set'](_0x3e66c0,'removed'),this['fire']('suggestionUnloaded',_0x3e66c0,_0x1f9e0f,_0x4d61f1));}_setSuggestionData(_0x1ecdb1){const _0x26a48e=_0x1ecdb1['id'],_0x150f8e=this['addSuggestionData'](_0x1ecdb1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x50e3c3=this['editor']['plugins']['get']('PendingActions'),_0x12bfb4=_0x150f8e['hasComments'],_0x2e80b4=_0x150f8e['subType']?_0x150f8e['type']+':'+_0x150f8e['subType']:_0x150f8e['type'],_0xc3de94=this['editor']['locale'],_0x185ebf=_0x50e3c3['add'](Ot(_0xc3de94,'PENDING_ACTION_SUGGESTION')),_0x2824cb={'id':_0x26a48e,'type':_0x2e80b4,'hasComments':_0x12bfb4,'data':_0x1ecdb1['data']||null,'originalSuggestionId':_0x1ecdb1['originalSuggestionId']||null,'attributes':_0x150f8e['attributes']};this['_adapter']['addSuggestion'](_0x2824cb)['then'](_0x4383d6=>{_0x150f8e['_saved']=!0x0,_0x50e3c3['remove'](_0x185ebf),_0x4383d6&&_0x4383d6['createdAt']&&(this['_suggestions']['get'](_0x26a48e)['createdAt']=_0x4383d6['createdAt']);})['catch'](_0x9ab1bf=>{throw _0x18c9eb('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x150f8e['discard']();}),_0x150f8e['stopListening'](),this['_suggestions']['delete'](_0x150f8e['id']),this['_suggestionState']['delete'](_0x150f8e),_0x9ab1bf;});}return _0x150f8e;}_updateSuggestionData(_0x46953a,_0x3822bb){const _0x4d66f3=this['editor']['plugins']['get']('PendingActions'),_0x292be4=this['getSuggestion'](_0x46953a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292be4['_saved']){const _0x1b9810=_0x4d66f3['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x46953a,_0x3822bb)['then'](()=>{_0x4d66f3['remove'](_0x1b9810);});}else _0x292be4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x46953a,_0x3822bb);});}}_getSuggestionData(_0x2b9f84){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x354614('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2b9f84);}_handleNewSuggestionMarker(_0x355846){const {id:_0x3fd41f,type:_0x423033,subType:_0x2ad507,authorId:_0x342e7e}=et(_0x355846),_0x29bfad=this['_suggestions']['get'](_0x3fd41f)||this['_createSuggestion'](_0x423033,_0x2ad507,_0x3fd41f,_0x342e7e,{});switch(this['_checkSuggestionCorrectness'](_0x29bfad,_0x423033,_0x2ad507,_0x342e7e),this['_suggestionState']['get'](_0x29bfad)){case'notReady':this['_getSuggestionData'](_0x3fd41f)['then'](_0x309a5d=>{let _0x42acf9=Promise['resolve']();_0x309a5d['hasComments']&&(_0x42acf9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3fd41f})),_0x42acf9['then'](()=>{this['addSuggestionData'](_0x309a5d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x29bfad,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3fd41f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x29bfad,'ready'),this['fire']('suggestionLoaded',_0x29bfad);break;case'ready':this['fire']('suggestionChanged',_0x29bfad);}return _0x29bfad['addMarkerName'](_0x355846),_0x29bfad;}_refreshSuggestionsChain(_0x456f6d){const _0x4db2c0=Array['from'](_0x456f6d),_0x1709d6=_0x4db2c0['filter'](_0x32823e=>'attribute'==_0x32823e['type']);this['_refreshAttributeSuggestionsChain'](_0x1709d6);const _0x1fc263=_0x4db2c0['filter'](_0x1a5ce3=>!_0x1a5ce3['isMultiRange']&&'attribute'!=_0x1a5ce3['type']),_0x12d3ed=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17d911=>!_0x17d911['isMultiRange']&&'attribute'!=_0x17d911['type']),_0x2a8438=_0x12d3ed['filter'](_0x4bfc77=>!_0x456f6d['has'](_0x4bfc77)),_0xb7b2e2=new Map(_0x12d3ed['map'](_0x449be2=>[_0x449be2,this['_suggestionFactory']['getSuggestionCallback'](_0x449be2['type'],_0x449be2['subType'],'chain')])),_0x4f786d=new Map(_0x12d3ed['map'](_0xa42a09=>[_0xa42a09,_0xa42a09['getFirstRange']()])),_0x58ebba=new Set(),_0x4bf110=new Set();for(let _0x5e4488=0x0;_0x5e4488<_0x1fc263['length'];_0x5e4488++)_0x2dffcf(_0x1fc263[_0x5e4488],_0x1fc263,_0x5e4488+0x1);for(let _0x52b0e4=0x0;_0x52b0e4<_0x1fc263['length'];_0x52b0e4++)_0x2dffcf(_0x1fc263[_0x52b0e4],_0x2a8438,0x0);const _0x44018e=new Set();for(let _0x3afdb5=0x0;_0x3afdb5<_0x1fc263['length'];_0x3afdb5++){const _0x56b7d8=_0x1fc263[_0x3afdb5];!_0x4bf110['has'](_0x56b7d8)&&_0x56b7d8['previous']&&(_0x44018e['add'](_0x56b7d8['previous']),_0x56b7d8['previous']['next']===_0x56b7d8&&(_0x56b7d8['previous']['next']=null),_0x56b7d8['previous']=null),!_0x58ebba['has'](_0x56b7d8)&&_0x56b7d8['next']&&(_0x44018e['add'](_0x56b7d8['next']),_0x56b7d8['next']['previous']===_0x56b7d8&&(_0x56b7d8['next']['previous']=null),_0x56b7d8['next']=null);}function _0x2dffcf(_0x25fa2d,_0x24a76c,_0x2371b3){for(let _0x4aba2c=_0x2371b3;_0x4aba2c<_0x24a76c['length'];_0x4aba2c++){const _0x4eda19=_0x1592db(_0x25fa2d,_0x24a76c[_0x4aba2c]);_0x4eda19&&(_0x4eda19[0x0]['next']=_0x4eda19[0x1],_0x4eda19[0x1]['previous']=_0x4eda19[0x0],_0x58ebba['add'](_0x4eda19[0x0]),_0x4bf110['add'](_0x4eda19[0x1]));}}function _0x1592db(_0x49fc5d,_0x285fa1){if(_0x49fc5d['author']['id']!==_0x285fa1['author']['id'])return null;const _0x5d8496=_0xb7b2e2['get'](_0x49fc5d)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1));return _0x5d8496&&_0xb7b2e2['get'](_0x285fa1)(_0x49fc5d,_0x285fa1,_0x4f786d['get'](_0x49fc5d),_0x4f786d['get'](_0x285fa1))?_0x5d8496[0x1]['commentThread']&&_0x5d8496[0x1]['commentThread']['length']?null:_0x5d8496:null;}_0x44018e['size']&&this['_refreshSuggestionsChain'](_0x44018e);}_refreshAttributeSuggestionsChain(_0x401ab8){if(0x0==_0x401ab8['length'])return;const _0xde55d8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22d887=>'attribute'==_0x22d887['type']&&_0x22d887['_isDataLoaded']),_0x43d1e0=[],_0x466406=new Map();for(const _0x5671c1 of _0xde55d8){const _0x2648ba=_0x1724db(_0x5671c1['attributes']);_0x466406['has'](_0x2648ba)||(_0x466406['set'](_0x2648ba,_0x43d1e0['length']),_0x43d1e0['push']([])),_0x43d1e0[_0x466406['get'](_0x2648ba)]['push'](_0x5671c1);}!(function(){_0x43d1e0['sort']((_0x4bab76,_0x587c2f)=>{const _0x99b9d4=_0x4bab76[0x0]['createdAt'],_0x1caa6d=_0x587c2f[0x0]['createdAt'];return _0x99b9d4==_0x1caa6d?_0x4bab76[0x0]['attributes']['groupId']<_0x587c2f[0x0]['attributes']['groupId']?-0x1:0x1:_0x99b9d4<_0x1caa6d?-0x1:0x1;});for(const _0x3464ba of _0x43d1e0)_0x3464ba['sort']((_0xf48a48,_0x29c128)=>_0xf48a48['id']<_0x29c128['id']?-0x1:0x1);}());for(let _0x29a311=0x0;_0x29a311<_0x43d1e0['length'];_0x29a311++){if(0x0==_0x43d1e0[_0x29a311]['length'])continue;const _0x27bfa1=[];for(let _0x437e80=_0x29a311+0x1;_0x437e80<_0x43d1e0['length'];_0x437e80++)0x0!=_0x43d1e0[_0x437e80]['length']&&_0x46c041(_0x43d1e0[_0x29a311],_0x43d1e0[_0x437e80])&&_0x27bfa1['push'](_0x437e80);for(const _0x414a6f of _0x27bfa1)_0x43d1e0[_0x29a311]=_0x43d1e0[_0x29a311]['concat'](_0x43d1e0[_0x414a6f]),_0x43d1e0[_0x414a6f]=[];}for(const _0x11bbec of _0x43d1e0)for(let _0x50528a=0x0;_0x50528a<_0x11bbec['length'];_0x50528a++){const _0xdec08f=_0x11bbec[_0x50528a+0x1]||null;_0x11bbec[_0x50528a]['next']!==_0xdec08f&&(_0x11bbec[_0x50528a]['next']=_0xdec08f);}for(const _0x3720e8 of _0x43d1e0)for(let _0xb0458c=0x0;_0xb0458c<_0x3720e8['length'];_0xb0458c++){const _0x24e380=_0x3720e8[_0xb0458c-0x1]||null;_0x3720e8[_0xb0458c]['previous']!==_0x24e380&&(_0x3720e8[_0xb0458c]['previous']=_0x24e380);}function _0x46c041(_0x107667,_0x5730a0){return(_0x107667[0x0]['attributes']['groupId']===_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['author']===_0x5730a0[0x0]['author'])&&(!!function(_0x497a16,_0x588171){return!_0x497a16['hasComments']&&!_0x588171['hasComments']||(!_0x497a16['hasComments']||!_0x588171['hasComments'])&&(!!(_0x497a16['hasComments']&&_0x588171['createdAt']<_0x497a16['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x588171['hasComments']&&_0x497a16['createdAt']<_0x588171['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x107667[0x0],_0x5730a0[0x0])&&(!!lt(ut(_0x107667[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x5730a0[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x107667[0x0]['attributes']['groupId']==_0x5730a0[0x0]['attributes']['groupId']||_0x107667[0x0]['attributes']['trackingSessionId']===_0x5730a0[0x0]['attributes']['trackingSessionId']&&(!!_0x107667['every'](_0x1e171e=>_0x5730a0['some'](_0xfeed06=>_0x1e171e['getFirstRange']()['isEqual'](_0xfeed06['getFirstRange']())))&&_0x5730a0['every'](_0x19e98b=>_0x107667['some'](_0x380071=>_0x19e98b['getFirstRange']()['isEqual'](_0x380071['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x5d1333){const _0x139b01=Array['from'](_0x5d1333),_0x3c8d1a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x36be56=_0x3c8d1a['filter'](_0xa340d9=>!_0x5d1333['has'](_0xa340d9)),_0x522bff=new Map(_0x139b01['map'](_0x2910f2=>[_0x2910f2,this['_suggestionFactory']['getSuggestionCallback'](_0x2910f2['type'],_0x2910f2['subType'],'join')])),_0x33484d=new Map(_0x3c8d1a['map'](_0x135ad0=>[_0x135ad0,_0x135ad0['getRanges']()]));for(let _0x2dbc77=0x0;_0x2dbc77<_0x139b01['length'];_0x2dbc77++)if(_0x2cece8(this,_0x139b01[_0x2dbc77],_0x139b01,_0x2dbc77+0x1))return!0x0;for(let _0x5485e6=0x0;_0x5485e6<_0x139b01['length'];_0x5485e6++)if(_0x2cece8(this,_0x139b01[_0x5485e6],_0x36be56,0x0))return!0x0;return!0x1;function _0x2cece8(_0x4d5940,_0x3e52be,_0x2c17e5,_0x3c47ad){for(let _0x1cc0a5=_0x3c47ad;_0x1cc0a5<_0x2c17e5['length'];_0x1cc0a5++){const _0x56fa36=_0x2c17e5[_0x1cc0a5];if(_0x56fa36['type']!==_0x3e52be['type']||_0x56fa36['author']['id']!==_0x3e52be['author']['id']||_0x56fa36['subType']!==_0x3e52be['subType'])continue;if(!_n(_0x3e52be,_0x56fa36))continue;if('attribute'==_0x3e52be['type']&&_0x3e52be['data']['oldValue']!=_0x56fa36['data']['oldValue'])continue;if('attribute'==_0x3e52be['type']&&_0x4d5940['_suggestionsConversion']['isBlockAttribute'](_0x3e52be['data']['key']))continue;if('formatBlock'==_0x3e52be['type']){const _0x46f259=_0x4d5940['editor']['model'],_0x58e995=_0x3e52be['getContainedElement']();if(_0x58e995&&(_0x46f259['schema']['isObject'](_0x58e995)||_0x46f259['schema']['isLimit'](_0x58e995)))continue;}const _0x564d7d=_0x522bff['get'](_0x3e52be),_0x365752=_0x33484d['get'](_0x3e52be),_0x182323=_0x33484d['get'](_0x56fa36),_0x50918b=_0x3e52be['commentThread']&&_0x3e52be['commentThread']['length'],_0x1bd99e=_0x56fa36['commentThread']&&_0x56fa36['commentThread']['length'];if(!_0x50918b&&_0x564d7d(_0x182323,_0x365752))return _0x4d5940['_joinSuggestions'](_0x56fa36,_0x3e52be),_0x33484d['delete'](_0x3e52be),!0x0;if(!_0x1bd99e&&_0x564d7d(_0x365752,_0x182323))return _0x4d5940['_joinSuggestions'](_0x3e52be,_0x56fa36),_0x33484d['delete'](_0x56fa36),!0x0;}return!0x1;}}_joinSuggestions(_0x36a91b,_0x28bc07){if(_0x36a91b['isMultiRange']){for(const _0x155092 of _0x28bc07['getRanges']())_0x36a91b['addRange'](_0x155092);}else{const _0x2da125=_0x28bc07['getFirstRange']()['end'];this['_setSuggestionRange'](_0x36a91b,this['_model']['createRange'](_0x36a91b['getFirstRange']()['start'],_0x2da125));}_0x28bc07['removeMarkers']();}_getMarkerAnnouncementText(_0x2856be,_0x10c32a,_0x54399c){const _0x1d230f=_0x2856be['startsWith']('format')||_0x2856be['startsWith']('attribute')?'FORMATTING':_0x2856be['toUpperCase']();return Ot(this['editor']['locale'],_0x10c32a+'_'+_0x1d230f+'_SUGGESTION_ANNOUNCEMENT',_0x54399c);}_initAriaMarkerChangeAnnouncements(){const _0x568b03=this['editor'];if(!_0x568b03['ui'])return;const {ariaLiveAnnouncer:_0x2dc772}=_0x568b03['ui'];nt(this['_model'],({left:_0x30530a,entered:_0x1341af})=>{for(const _0x321053 of _0x30530a){const {group:_0x2f1337,type:_0x4da563}=et(_0x321053['name']);if('suggestion'===_0x2f1337){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4da563,'LEAVE'));break;}}for(const _0x5887fd of _0x1341af){const {group:_0x5521f8,type:_0x4db227}=et(_0x5887fd['name']);if('suggestion'===_0x5521f8){_0x2dc772['announce'](this['_getMarkerAnnouncementText'](_0x4db227,'ENTER',_0x4d423e(_0x341358)));break;}}});}_processAttributeChanges(_0x1ef470){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3c297b=this['editor'],_0x42e74=_0x3c297b['model']['document']['differ']['getChanges']();if(0x0==_0x42e74['length'])return!0x1;const _0x29976b=[],_0x1e9335=_0x42e74['filter'](_0x53ba0e=>'attribute'==_0x53ba0e['type']),_0x1129cb=_0x42e74['filter'](_0x541173=>'insert'==_0x541173['type']&&'$text'!=_0x541173['name']),_0x4b4637=_0x42e74['filter'](_0x12fd51=>'remove'==_0x12fd51['type']&&'$text'!=_0x12fd51['name']);for(const _0x192268 of _0x1e9335)_0x29976b['push']({'key':_0x192268['attributeKey'],'newValue':_0x192268['attributeNewValue'],'oldValue':_0x192268['attributeOldValue'],'range':mn(_0x192268['range'],_0x3c297b['model'])});for(const _0x2a5caf of _0x1129cb){const _0x68692b=_0x4b4637['find'](_0x4f8254=>_0x4f8254['position']['isEqual'](_0x2a5caf['position']));_0x68692b&&_0x29976b['push']({'key':rn,'newValue':_0x2a5caf['name'],'oldValue':_0x68692b['name'],'range':_0x3c297b['model']['createRangeOn'](_0x2a5caf['position']['nodeAfter'])});}return 0x0!=_0x29976b['length']&&this['_reduceExistingSuggestions'](_0x1ef470,_0x29976b);}_processAttributeSuggestions(_0x56577d){let _0x936fdd=!0x1;const _0x54c5ec=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b816c=>_0x5b816c['data']['newRange']&&_0x5b816c['name']['startsWith']('suggestion:attribute:'));for(const _0x14e9aa of _0x54c5ec){const {subType:_0x2ca158,id:_0x17c9fa}=et(_0x14e9aa['name']),_0x363750=_0x2ca158['split']('|')[0x0];for(const _0x4c3b4f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4c3b4f['id']!=_0x17c9fa&&'attribute'==_0x4c3b4f['type']&&_0x4c3b4f['data']&&_0x4c3b4f['data']['key']==_0x363750&&_0x4c3b4f['getFirstRange']()['isIntersecting'](_0x14e9aa['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4c3b4f,_0x14e9aa['data']['newRange'],_0x56577d),_0x936fdd=!0x0);}return _0x936fdd;}recordAttributeChanges(_0xd8e529){this['_recordAttributeSuggestions']=!0x0,_0xd8e529();}_reduceExistingSuggestions(_0x2611a0,_0xb4dbcc){if(0x0==_0xb4dbcc['length'])return!0x1;let _0x12a4dc=!0x1;for(const _0x18292c of _0xb4dbcc){const _0x8b9581=this['_findSuggestions'](_0x18292c['range'],'attribute')['filter'](_0x233dbf=>!_0x233dbf['meta']['isNextTo'])['map'](_0x34fbc6=>_0x34fbc6['suggestion']),_0x18154b=_0x1724db({'newValue':_0x18292c['newValue']});_0x8b9581['filter'](_0x3dd671=>{const [_0x1f198a,_0x38ba3c]=_0x3dd671['subType']['split']('|');return _0x1f198a==_0x18292c['key']&&_0x38ba3c!=_0x18154b;})['forEach'](_0xfab23f=>{this['_reduceSuggestionAttributeRange'](_0xfab23f,_0x18292c['range'],_0x2611a0),_0x12a4dc=!0x0;});}return _0x12a4dc;}_reduceSuggestionAttributeRange(_0x33f851,_0x430507,_0xd2e41a){const _0x4ca6dd=_0x33f851['getFirstRange']()['getDifference'](_0x430507);0x0!==_0x4ca6dd['length']?0x1!==_0x4ca6dd['length']?this['_breakSuggestionMarker'](_0x33f851,_0x430507['start'],_0x430507['end']):this['_setSuggestionRange'](_0x33f851,_0x4ca6dd[0x0]):_0xd2e41a['removeMarker'](_0x33f851['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x27789d){this['_editor']=_0x27789d,this['_model']=_0x27789d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x8a1c68,_0x179339,_0x575bc9,_0x3b7301,_0x72b31b,_0x14b494,_0x2aa7ff){return new Mt(this['_model'],{'type':_0x8a1c68,'subType':_0x179339,'id':_0x575bc9,'originalSuggestionId':_0x2aa7ff,'author':_0x3b7301,'creator':_0x3b7301,'attributes':_0x72b31b,'onAttributesChange':_0x14b494,'onAccept':(..._0x454390)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'accept')(..._0x454390),'onDiscard':(..._0x26cc83)=>this['getSuggestionCallback'](_0x8a1c68,_0x179339,'discard')(..._0x26cc83)});}registerCustomCallback(_0x10f1ea,_0x36c818,_0x46063c,_0x200ae2){const _0x317664=_0x10f1ea+':'+_0x36c818+':'+_0x46063c;this['_customCallbacks']['set'](_0x317664,_0x200ae2);}getSuggestionCallback(_0x24ccec,_0x59a581,_0x5c322e){const _0x3a18ab=_0x24ccec+':'+_0x59a581+':'+_0x5c322e;return this['_customCallbacks']['get'](_0x3a18ab)||this['_defaultCallbacks']['get'](_0x24ccec+':'+_0x5c322e);}_registerDefaultCallbacks(){const _0x38995e=()=>!0x1,_0x2b1891=_0x5e05a5=>{_0x5e05a5['sort']((_0x787cb7,_0x4b4abd)=>_0x787cb7['start']['isBefore'](_0x4b4abd['start'])?0x1:-0x1),this['_model']['change'](_0x443a35=>{for(const _0x2f9d45 of _0x5e05a5){let _0x1d1f70;_0x1d1f70=_0x2f9d45['end']['isAtEnd']&&_0x2f9d45['end']['parent']==_0x2f9d45['start']['nodeAfter']?_0x443a35['createSelection'](_0x2f9d45['start']['nodeAfter'],'on'):_0x443a35['createSelection'](_0x2f9d45),this['_model']['deleteContent'](_0x1d1f70,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5c758c=(_0x32820e,_0x183918)=>{_0x183918&&this['_model']['change'](_0x56cfe2=>{const {commandName:_0x7b9363,commandParams:_0x19b9b4=[]}=_0x183918,_0x551cdf=_0x32820e['map'](_0x8bdca0=>(ln(_0x8bdca0)&&(_0x8bdca0=this['_model']['createRange'](_0x8bdca0['end'])),_0x8bdca0))['filter'](_0xcf19e0=>'$graveyard'!==_0xcf19e0['root']['rootName']);if(_0x551cdf['length']<0x1)return;const _0x4a27d4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x8da29b=>ot['fromRange'](_0x8da29b));_0x56cfe2['setSelection'](_0x551cdf);for(const _0x50261d of this['_editor']['commands']['commands']())_0x50261d['refresh']();_0x19b9b4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x7b9363,..._0x19b9b4);const _0x5427ca=_0x4a27d4['filter'](_0x5bc709=>'$graveyard'!=_0x5bc709['root']['rootName']);_0x5427ca['length']>0x0&&_0x56cfe2['setSelection'](_0x5427ca);for(const _0x4a23cf of _0x4a27d4)_0x4a23cf['detach']();});},_0x594953=(_0x50ce32,_0x1b1c37)=>0x1==_0x50ce32['length']&&0x1==_0x1b1c37['length']&&_0x50ce32[0x0]['end']['isEqual'](_0x1b1c37[0x0]['start']),_0x25e03d=(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)=>Tn(_0x2094db,_0x6afaa6,_0x1a4786,_0x58f591)?[_0x2094db,_0x6afaa6]:Tn(_0x6afaa6,_0x2094db,_0x58f591,_0x1a4786)?[_0x6afaa6,_0x2094db]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38995e),this['_defaultCallbacks']['set']('insertion:discard',_0x2b1891),this['_defaultCallbacks']['set']('insertion:join',_0x594953),this['_defaultCallbacks']['set']('insertion:chain',_0x25e03d),this['_defaultCallbacks']['set']('deletion:accept',_0x2b1891),this['_defaultCallbacks']['set']('deletion:discard',_0x38995e),this['_defaultCallbacks']['set']('deletion:join',_0x594953),this['_defaultCallbacks']['set']('deletion:chain',_0x25e03d),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatInline:discard',_0x38995e),this['_defaultCallbacks']['set']('formatInline:join',_0x594953),this['_defaultCallbacks']['set']('formatInline:chain',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c758c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38995e),this['_defaultCallbacks']['set']('formatBlock:join',_0x594953),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38995e),this['_defaultCallbacks']['set']('attribute:accept',_0x38995e),this['_defaultCallbacks']['set']('attribute:discard',(_0xe99485,_0x34b114)=>{if(!_0x34b114)return;const _0x5b4c9e=this['_editor']['plugins']['get'](_0x358b09);this['_model']['change'](_0x2def74=>{if('$elementName'==_0x34b114['key'])for(const _0xd1f1c5 of _0xe99485){const _0x21304b=_0xd1f1c5['start']['nodeAfter'],_0x8a7598=_0x34b114['oldValue'];_0x2def74['rename'](_0x21304b,_0x8a7598);}else{if(_0x5b4c9e['isBlockAttribute'](_0x34b114['key'])){for(const _0x19f662 of _0xe99485)void 0x0!==_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x19f662['start']['nodeAfter']):_0x2def74['removeAttribute'](_0x34b114['key'],_0x19f662['start']['nodeAfter']);}else{for(const _0x169caf of _0xe99485)_0x34b114['oldValue']?_0x2def74['setAttribute'](_0x34b114['key'],_0x34b114['oldValue'],_0x169caf):_0x2def74['removeAttribute'](_0x34b114['key'],_0x169caf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x594953);}};function cn(_0x4aba1f,_0xd93787,_0x1613e8){for(const _0x3e15a3 of _0xd93787['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3e15a3['root']==_0x3e15a3)return!0x1;if(!_0x1613e8['containsItem'](_0x3e15a3))return!0x1;if(_0x4aba1f['isObject'](_0x3e15a3)||_0x4aba1f['isLimit'](_0x3e15a3))return!0x0;}return!0x1;}function ln(_0x523d68){return _0x523d68['end']['parent']==_0x523d68['start']['nodeAfter']&&_0x523d68['end']['isAtStart'];}function un(_0xd5816a,_0x55fe0e,_0x127c21,_0x16592f){const _0x400ec0=_0x2140c0=>!_0x2140c0['item']['is']('$textProxy')&&!_0x16592f['isObject'](_0x2140c0['item']),_0x18a938=_0xd5816a['start']['getLastMatchingPosition'](_0x400ec0),_0x5b39bd=_0xd5816a['end']['getLastMatchingPosition'](_0x400ec0,{'direction':'backward'});return(!_0xd5816a['start']['isEqual'](_0x18a938)||!_0xd5816a['end']['isEqual'](_0x5b39bd))&&(_0x18a938['isBefore'](_0x5b39bd)?_0x127c21['updateMarker'](_0x55fe0e,{'range':_0x127c21['createRange'](_0x18a938,_0x5b39bd)}):_0x127c21['removeMarker'](_0x55fe0e),!0x0);}function dn(_0x42fea3){return _0x1724db(_0x42fea3);}function hn(_0x30a869){const _0x178d08=_0x30a869['start']['nodeAfter'];return _0x178d08&&_0x178d08['is']('element');}function gn(_0x31baf3){return ln(_0x31baf3)||function(_0x4337b1){return _0x4337b1['start']['parent']==_0x4337b1['end']['nodeBefore']&&_0x4337b1['start']['isAtEnd'];}(_0x31baf3);}function fn(_0x5aebb0,_0x4a527d){try{const _0xc11d85=_0x5aebb0['getRange']();for(const _0x34064c of _0x4a527d)if(_0x5aebb0!==_0x34064c&&_0xc11d85&&_0xc11d85['isIntersecting'](_0x34064c['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1f4f62,_0x2147bd){return null==_0x1f4f62['end']['nodeBefore']&&_0x1f4f62['end']['parent']==_0x1f4f62['start']['nodeAfter']?En(_0x1f4f62['start']['nodeAfter'],_0x2147bd):_0x1f4f62;}function En(_0x74e184,_0x2cffcd){const _0x17799c=_0x2cffcd['schema']['isObject'](_0x74e184)||_0x2cffcd['schema']['isSelectable'](_0x74e184);return _0x2cffcd['createRange'](_0x2cffcd['createPositionAt'](_0x74e184,'before'),_0x17799c?_0x2cffcd['createPositionAfter'](_0x74e184):_0x2cffcd['createPositionAt'](_0x74e184,'end'));}function Tn(_0x411c4e,_0x1ff6c0,_0x214102,_0x1c64d0){return!!_n(_0x411c4e,_0x1ff6c0)&&_0x214102['end']['isEqual'](_0x1c64d0['start']);}function _n(_0x2f7b00,_0x5fb4e9){if(!_0x2f7b00['_isDataLoaded']||!_0x5fb4e9['_isDataLoaded'])return!0x1;const _0x48b833=new Set(Object['keys'](_0x2f7b00['attributes'])),_0x561636=new Set(Object['keys'](_0x5fb4e9['attributes']));if(_0x48b833['delete']('groupId'),_0x561636['delete']('groupId'),0x0==_0x48b833['size']&&0x0==_0x561636['size'])return!0x0;if(_0x48b833['size']!=_0x561636['size'])return!0x1;const _0x1438e8={..._0x2f7b00['attributes']},_0x3b197c={..._0x5fb4e9['attributes']};return delete _0x1438e8['groupId'],delete _0x3b197c['groupId'],JSON['stringify'](_0x1438e8)==JSON['stringify'](_0x3b197c);}function pn(_0x4834c5,_0x59ca8e){const _0x2713b1=Ln(_0x4834c5['attributes']),_0x429aec=Ln(_0x59ca8e);if(!_0x4834c5['_isDataLoaded'])return!0x1;if(!lt(_0x2713b1['@ai'],_0x429aec['@ai']))return!0x1;for(const _0x4cbb44 of Object['keys'](_0x429aec))if(!lt(_0x2713b1[_0x4cbb44],_0x429aec[_0x4cbb44]))return!0x1;return!0x0;}function Ln(_0x1c6671){const _0x4a38b3=Object['assign']({},_0x1c6671);return delete _0x4a38b3['skipNestingCheck'],delete _0x4a38b3['tablePasteChainId'],_0x4a38b3;}function In(_0x4a9eae){return _0x4a9eae['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1377a3();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0xb725df,_0x3db51f,_0x59c731,_0x41a7e6){super(),this['model']=_0x3db51f,this['view']=_0x59c731,this['commentThreadController']=_0x41a7e6,this['_editor']=_0xb725df,this['_acceptCommand']=_0xb725df['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xb725df['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x312c1d,_0x43df50)=>_0x312c1d||_0x43df50),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32df82=>_0x32df82&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x6e018c=>_0x6e018c&&this['_editor']['model']['canEditAt'](_0x3db51f['getRanges']())),this['_pendingAction']=null,_0x59c731['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59c731,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59c731,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59c731,'change:isDirty',()=>{_0x59c731['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 _0x24013a=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x24013a);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x50f806{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3e1a0b,_0x47c2e8,_0x21f3b7,_0x4ba7a2){super(_0x3e1a0b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30c9b4(_0x3e1a0b,Ot(_0x3e1a0b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x47c2e8['authoredAt']),this['bind']('authoredAt')['to'](_0x47c2e8),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',_0x47c2e8,'authoredAt',this,'descriptionParts',(_0xfd980b,_0x3d5012,_0x29c1ee)=>{const _0x54ccba=_0x29c1ee['map'](_0x42b1cf=>It(_0x42b1cf['content']))['join']('.\x20')+'.',_0x5c5f58=_0x47c2e8['aiSource']&&'author'===_0x4ba7a2['showAISource']?_0x4ba7a2['aiAuthor']['name']:_0x47c2e8['author']['name'],_0x381493=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xfd980b-0x1,_0x5c5f58,_0x3d5012?_0x4ba7a2['formatDateTime'](_0x3d5012):'',new DOMParser()['parseFromString'](_0x54ccba,'text/html')['body']['textContent']]);return _0x47c2e8['aiSource']&&'pill'===_0x4ba7a2['showAISource']?_0x381493+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x381493;}),this['focusables']=new _0x32a053(),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bde38=>_0x2bde38['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x47c2e8,this['_localUser']=_0x21f3b7,this['_config']=_0x4ba7a2,_0x4ba7a2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x538629}=this['_config'];this['commentsListView']=new _0x538629(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',_0x660403=>_0x660403+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x21cad6,_0x12c0bf)=>_0x21cad6||!!_0x12c0bf);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x4e08ed}=this['_config'],_0x22f288=new _0x4e08ed(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x49d00a=_0x22f288['commentInputView'];return _0x22f288['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x49d00a,'value',(_0x24317e,_0x26ece7,_0x1afe55)=>!!_0x1afe55||_0x24317e&&!_0x26ece7),_0x49d00a['on']('submit',(_0x48b616,_0x4f53c9)=>{this['fire']('addComment',_0x4f53c9),_0x49d00a['editor']['setData']('');}),_0x49d00a['on']('cancel',()=>this['focus']()),_0x49d00a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x22f288;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b){super(_0x216ac1,_0x254b7f,_0x53edc6,_0x11070b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x434f11=>_0x434f11&&_0x434f11[0x0]?_0x434f11[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x528732,_0x19ac49)=>{let _0x8929c7='';for(const _0x3380da of _0x528732)_0x8929c7+='<p>'+It(_0x3380da['content'],_0x3380da['color'])+'</p>';return _0x19ac49?_0x8929c7:it(_0x8929c7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x11070b['SuggestionView'](_0x216ac1,_0x254b7f,{'formatDateTime':_0x11070b['formatDateTime'],'showAISource':_0x11070b['showAISource'],'aiAuthor':_0x11070b['aiAuthor']}),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 _0x582f5a=this['bindTemplate'],_0x302fa8=[this['suggestionView']];return this['commentsListView']&&_0x302fa8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x302fa8['push'](this['commentThreadInputView']),_0x302fa8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x582f5a['if']('isActive','ck-suggestion-wrapper--active'),_0x582f5a['to']('type',_0x2ed5a2=>'ck-suggestion-'+_0x2ed5a2),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':_0x582f5a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x302fa8};}['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));}},Rn=class extends _0x50f806{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x493035,_0x494700,_0xc1e1ba){super(_0x493035),this['_model']=_0x494700,this['_config']=_0xc1e1ba,this['set']('description',''),this['bind']('authoredAt')['to'](_0x494700),this['acceptButton']=this['_createButton'](Ot(_0x493035,'Accept\x20suggestion'),_0xf15df7,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x493035,'Discard\x20suggestion'),_0x15d8dd,'ck-suggestion--discard','discardSuggestion','sw');const _0x7390fb=!!_0x494700['aiSource']&&'author'===_0xc1e1ba['showAISource'],_0x34ef7d=_0x7390fb?this['_createAIUser'](_0xc1e1ba['aiAuthor']):_0x494700['author'],_0x490442=_0x7390fb&&!_0xc1e1ba['aiAuthor']['avatar']?_0x1e2770:void 0x0;this['userView']=new _0x19bc2d(_0x493035,_0x34ef7d,this['getUserViewNotificationText'](),_0x490442),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32a053([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x591c9e(),this['keystrokes']=new _0x5b7cb6(),this['focusCycler']=new _0x7ae866({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x4acb=>_0x4acb['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x29e4ef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x29e4ef['innerHTML']=this['description'],this['on']('change:description',(_0x164261,_0x2bc9d8,_0x5e0e8d)=>{_0x29e4ef['innerHTML']=_0x5e0e8d;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3ca96a=this['bindTemplate'],_0x16561a=[{'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':_0x3ca96a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3ca96a['to']('authoredAt',_0x5b4df2=>this['_config']['formatDateTime'](_0x5b4df2))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x16561a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x548b86=new _0x23bf39(this['locale']);_0x548b86['set']({'icon':_0x1fc493,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x16561a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x548b86]});}return{'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':_0x16561a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x14d83a){return new _0x44bfc7({'id':'ck-ai-author','name':_0x14d83a['name'],'avatar':_0x14d83a['avatar'],'color':new _0x3b64d0(0x0)});}_createButton(_0x3a2735,_0x52a969,_0x3add2a,_0x35418d,_0x18cca2){const _0x34898d=new _0x50d24e(this['locale']);return _0x34898d['set']({'label':_0x3a2735,'icon':_0x52a969,'tooltip':!0x0,'tooltipPosition':_0x18cca2}),_0x34898d['extendTemplate']({'attributes':{'class':_0x3add2a}}),_0x34898d['on']('execute',()=>{this['fire'](_0x35418d,this['_model']['id']);}),_0x34898d;}_setupKeyboardNavigation(){const _0x4f6532=this['element'];this['keystrokes']['listenTo'](_0x4f6532);for(const _0x4292d1 of this['focusables'])this['focusTracker']['add'](_0x4292d1['element']),this['keystrokes']['listenTo'](_0x4292d1['element']);this['keystrokes']['set']('enter',(_0x959bb0,_0x4c7857)=>{_0x4f6532===_0x959bb0['target']&&(this['focusCycler']['focusFirst'](),_0x4c7857());}),this['keystrokes']['set']('esc',(_0x164216,_0x2b90ba)=>{_0x4f6532!==_0x164216['target']&&(this['focus'](),_0x2b90ba());});}},yn=class extends _0x9bd549{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0xfe45c9,_0x203ad7,_0x59e02d,_0x38d953];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x590a3c){super(_0x590a3c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f8f63=this['editor']['config'];_0x3f8f63['define']('trackChanges.SuggestionThreadView',kn),_0x3f8f63['define']('trackChanges.SuggestionView',Rn),_0x3f8f63['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f8f63['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x50464d,_0x32e128){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x48d234,_0x5064f4]of this['_handleControllerBuffer']){const _0x277cbf=this['_suggestionToController']['has'](_0x48d234);_0x277cbf||_0x5064f4?_0x277cbf&&_0x5064f4&&this['_destroyController'](_0x48d234):this['_initializeController'](_0x48d234);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x38d953)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50464d,_0x32e128);}init(){const _0x3758aa=this['editor'],_0x53d523=_0x3758aa['plugins']['get'](on),_0xe31ad3=_0x3758aa['plugins']['get'](_0x59e02d),_0x4f4686=_0x3758aa['plugins']['get'](_0x38d953),_0x28fd97=_0x3758aa['plugins']['get'](_0x203ad7);this['_addUIComponentsToFactory'](),_0x4f4686['addSourceCollector'](()=>{const _0x299bb6=[];for(const [_0x3641d4,_0x3429c8]of Array['from'](this['_suggestionToController'])){const _0x5ab363=_0x3641d4['getAllAdjacentSuggestions'](),_0x1a0c16=[];for(const _0x32b6a3 of _0x5ab363){if(!_0x32b6a3['isInContent'])continue;if(_0x32b6a3['isMultiRange']){_0x1a0c16['push'](..._0x32b6a3['getRanges']());continue;}const _0x2e7c2c=_0x32b6a3['getFirstRange']();if(_0x1a0c16['length']>0x0){const _0x426518=_0x1a0c16[0x0]['getJoined'](_0x2e7c2c);if(_0x426518){_0x1a0c16[0x0]=_0x426518;continue;}}_0x1a0c16['push'](_0x2e7c2c);}_0x299bb6['push']([_0x3429c8['view'],_0x1a0c16]);}return _0x299bb6;}),this['listenTo'](_0x53d523,'suggestionLoaded',(_0x1f919d,_0x540296)=>{this['listenTo'](_0x540296,'change:previous',(_0x3e12e0,_0x10765e,_0x38c8cd,_0x152197)=>{_0x540296['isInContent']&&(null==_0x38c8cd?(this['_updateController'](_0x152197['head']),this['_handleSuggestionControllerDelayed'](_0x540296,!0x1)):(this['_updateController'](_0x38c8cd['head']),null==_0x152197&&this['_handleSuggestionControllerDelayed'](_0x540296,!0x0)));}),null!==_0x540296['previous']?this['_updateController'](_0x540296['head']):this['_handleSuggestionControllerDelayed'](_0x540296,!0x1);}),this['listenTo'](_0x53d523,'suggestionUnloaded',(_0x445366,_0x29931f,_0x291238)=>{this['stopListening'](_0x29931f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x29931f),this['_suggestionToController']['has'](_0x29931f)&&this['_destroyController'](_0x29931f),_0x291238&&this['_updateController'](_0x291238['head']);}),this['listenTo'](_0x53d523,'suggestionChanged',(_0xd9acfa,_0x47d79c)=>{this['_updateController'](_0x47d79c);}),this['listenTo'](_0xe31ad3,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x28fd97,'addComment',(_0x365965,{threadId:_0xaf9363,isFromAdapter:_0x528132})=>{if(_0x528132||!_0x53d523['hasSuggestion'](_0xaf9363))return;const _0x109fad=_0x53d523['getSuggestion'](_0xaf9363);this['_suggestionToController']['get'](_0x109fad)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1af41c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x82fc1e;for(const _0x33b034 in _0x1af41c){const _0x396c16=_0x33b034,_0x49e71e=_0x1af41c[_0x396c16];if('trackChangesLicenseKeyValid'==_0x49e71e||'trackChangesLicenseKeyInvalid'==_0x49e71e||'trackChangesLicenseKeyExpired'==_0x49e71e||'trackChangesLicenseKeyDomainLimit'==_0x49e71e||'trackChangesLicenseKeyNotAllowed'==_0x49e71e||'trackChangesLicenseKeyEvaluationLimit'==_0x49e71e||'trackChangesLicenseKeyUsageLimit'==_0x49e71e){delete _0x1af41c[_0x396c16],_0x82fc1e=_0x49e71e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x82fc1e&&_0x1af41c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x82fc1e&&_0x1af41c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x82fc1e&&_0x1af41c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x82fc1e&&_0x1af41c['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0x1b28cf){const _0x351192=this['_suggestionToController']['get'](_0x1b28cf);return _0x351192&&this['editor']['plugins']['get'](_0x59e02d)['getByInnerView'](_0x351192['view'])||null;}getSuggestionForAnnotation(_0x2317dd){const _0x3c7ec4=this['_viewToController']['get'](_0x2317dd['innerView']);return _0x3c7ec4?_0x3c7ec4['model']:null;}_refreshActiveMarkers(){const _0x476d4c=this['editor']['plugins']['get'](_0x59e02d),_0x423938=this['editor']['plugins']['get'](on),_0x365e8d=Array['from'](_0x476d4c['activeAnnotations'],_0x924ac=>_0x924ac['innerView'])['filter'](_0x3fe8a5=>this['_viewToController']['has'](_0x3fe8a5)),_0xdcd290=[];for(const _0x51ad13 of _0x365e8d){const _0x127576=this['_viewToController']['get'](_0x51ad13)['model']['getAllAdjacentSuggestions']();_0xdcd290['push'](..._0x127576['reduce']((_0x85e974,_0x1c937c)=>[..._0x85e974,..._0x1c937c['getMarkerNames']()],[]));}_0x423938['activeMarkers']=_0xdcd290;}_addUIComponentsToFactory(){const _0x3eabef=this['editor'],_0x354724=_0x3eabef['locale'],_0x6b0a3d=Ot(_0x354724,'Track\x20changes'),_0x8a6b1c=new _0x312921([{'type':'switchbutton','model':new _0x53a520({'withText':!0x0,'isToggleable':!0x0,'label':_0x6b0a3d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3eabef['plugins']['has']('TrackChangesPreview')&&_0x8a6b1c['addMany']([{'type':'separator'},{'type':'button','model':new _0x53a520({'withText':!0x0,'label':Ot(_0x354724,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x337926 of _0x8a6b1c)if(Nn(_0x337926)){const _0x25ff74=_0x3eabef['commands']['get'](_0x337926['model']['commandName']);_0x337926['model']['bind']('isOn','isEnabled')['to'](_0x25ff74,'value','isEnabled');}_0x3eabef['ui']['componentFactory']['add']('trackChanges',_0x5ecbe9=>this['_createToolbarButton'](_0x5ecbe9,_0x8a6b1c,_0x6b0a3d)),_0x3eabef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e91d6=>this['_createMenuBarMenu'](_0x1e91d6,_0x8a6b1c,_0x6b0a3d));}_createToolbarButton(_0x4ed820,_0x41a075,_0x3bd831){const _0x5cd39b=_0x2112c8(_0x4ed820,_0x2ed566),_0x7a1175=this['editor']['commands']['get']('trackChanges');_0x5cd39b['buttonView']['set']({'tooltip':_0x3bd831,'label':_0x3bd831,'icon':_0x5c9b3e}),_0x5cd39b['buttonView']['bind']('isOn')['to'](_0x7a1175,'value'),_0x5cd39b['buttonView']['on']('execute',()=>{_0x7a1175['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a8502(_0x5cd39b,_0x41a075,{'role':'menu'});const _0x2a1ddf=[];for(const _0x3d7494 of _0x41a075)Nn(_0x3d7494)&&_0x2a1ddf['push'](this['editor']['commands']['get'](_0x3d7494['model']['commandName']));const _0x253318=_0x5cd39b['buttonView'];return _0x253318['actionView']['unbind']('isEnabled'),_0x253318['arrowView']['unbind']('isEnabled'),_0x253318['actionView']['bind']('isEnabled')['to'](_0x7a1175,'isEnabled'),_0x253318['arrowView']['bind']('isEnabled')['toMany'](_0x2a1ddf,'isEnabled',(..._0x569793)=>_0x569793['some'](_0x2a2ae8=>_0x2a2ae8)),_0x5cd39b['on']('execute',_0x7b48a5=>{this['editor']['execute'](_0x7b48a5['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5cd39b;}_createMenuBarMenu(_0x32dbe3,_0x204678,_0x4c9b91){const _0x2d56e9=new _0x34c878(_0x32dbe3),_0x2024f2=this['editor']['commands']['get']('trackChanges');_0x2d56e9['buttonView']['set']({'label':_0x4c9b91,'icon':_0x5c9b3e});const _0x24d0c0=new _0x5d0013(_0x32dbe3);for(const _0x25cf1c of _0x204678){if('separator'==_0x25cf1c['type']){_0x24d0c0['items']['add'](new _0x188ba7(_0x32dbe3));continue;}const _0x1f2494=new _0xdc420d(_0x32dbe3,_0x2d56e9),_0x2bba29=new _0x452ca1(_0x32dbe3),_0xe6ecd0=_0x25cf1c['model'];_0x2bba29['bind'](...Object['keys'](_0xe6ecd0))['to'](_0xe6ecd0),_0x2bba29['delegate']('execute')['to'](_0x2d56e9),_0x2bba29['on']('execute',()=>{this['editor']['execute'](_0xe6ecd0['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f2494['children']['add'](_0x2bba29),_0x24d0c0['items']['add'](_0x1f2494);}return _0x2d56e9['bind']('isEnabled')['to'](_0x2024f2,'isEnabled'),_0x2d56e9['panelView']['children']['add'](_0x24d0c0),_0x2d56e9;}_initializeController(_0x2d47d5){const _0x135c86=this['editor'],_0x5c04ce=_0x135c86['config'],_0xa3d5ba=_0x135c86['plugins']['get'](_0x59e02d),_0x402a34=_0x135c86['plugins']['get'](_0x203ad7),_0x27c14e=_0x135c86['plugins']['get'](_0x38d953),_0x2eb6ee=_0x135c86['plugins']['get'](_0xfe45c9)['me'],_0x87a382=_0x5c04ce['get']('trackChanges')['SuggestionThreadView'],_0x710eb8=_0x5c04ce['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2833ac,CommentThreadInputView:_0x4cb231}=_0x135c86['plugins']['get']('CommentsUI');let _0x31c7fa,_0x58ab04,_0x28e12f;this['_annotationViews']['has'](_0x2d47d5['id'])?(_0x58ab04=this['_annotationViews']['get'](_0x2d47d5['id']),_0x31c7fa=_0x58ab04['mainView']):(_0x31c7fa=new _0x87a382(_0x135c86['locale'],_0x2d47d5,_0x2eb6ee,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5c04ce['get']('comments.editorConfig'),'licenseKey':_0x5c04ce['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5c04ce['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5c04ce['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49bb80(_0x5c04ce['get']('locale'),_0x135c86['locale']),'CommentView':_0x5c04ce['get']('comments')['CommentView'],'CommentsListView':_0x2833ac,'CommentThreadInputView':_0x4cb231,'SuggestionView':_0x710eb8,'showAISource':_0x5c04ce['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x5c04ce['get']('trackChanges.aiAuthor'),'name':_0x5c04ce['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x135c86['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x31c7fa['suggestionView']['acceptButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x31c7fa['suggestionView']['discardButton']['on']('execute',()=>{_0x135c86['editing']['view']['focus']();}),_0x58ab04=_0xa3d5ba['createAnnotationView'](this['editor']['locale'],_0x31c7fa),_0x58ab04['bind']('isDirty')['to'](_0x31c7fa,'isDirty'),_0x58ab04['bind']('length')['to'](_0x31c7fa),_0x58ab04['bind']('type')['to'](_0x31c7fa,'type',_0x2de8fa=>'suggestion-'+_0x2de8fa),_0x31c7fa['on']('escape',()=>{_0x28e12f['fire']('escape');}),this['_annotationViews']['set'](_0x2d47d5['id'],_0x58ab04));const _0x1266b4=_0x402a34['createCommentThreadController'](_0x2d47d5['commentThread'],_0x31c7fa),_0x30ff20=new bn(_0x135c86,_0x2d47d5,_0x31c7fa,_0x1266b4),_0x577e3c=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x336749=>_0x336749['isInContent']);_0x31c7fa['descriptionParts']=_0x135c86['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x577e3c),this['_suggestionToController']['set'](_0x2d47d5,_0x30ff20),this['_viewToController']['set'](_0x31c7fa,_0x30ff20);const _0x2c9d23=()=>{const _0x431971=[],_0x3a9fb1=_0x2d47d5['getAllAdjacentSuggestions']()['filter'](_0x302d57=>_0x302d57['isInContent']);for(const _0x1915dd of _0x3a9fb1)_0x431971['push'](..._0x1915dd['getMarkers']());return _0x136b64(_0x135c86['editing'],_0x431971);};_0x28e12f=_0xa3d5ba['createAnnotation']({'view':_0x58ab04,'target':_0x2c9d23,'type':()=>'suggestion-'+_0x30ff20['view']['type'],'isVisible':!!_0x2c9d23()}),_0x402a34['_bindAnnotationToEditors'](_0x31c7fa,_0x28e12f),_0xa3d5ba['add'](_0x28e12f),_0x27c14e['registerAnnotation'](_0x28e12f);}_destroyController(_0x54a4b8){const _0x188f84=this['editor']['plugins']['get'](_0x203ad7),_0x1dc793=this['editor']['plugins']['get'](_0x59e02d),_0x313384=this['_suggestionToController']['get'](_0x54a4b8),_0x338c55=_0x313384['view'],_0x2ce5fd=_0x1dc793['getByInnerView'](_0x338c55);_0x188f84['_unbindEditors'](_0x338c55),_0x2ce5fd&&_0x1dc793['remove'](_0x2ce5fd),this['_suggestionToController']['delete'](_0x54a4b8),this['_viewToController']['delete'](_0x338c55),_0x313384['destroy']();}_updateController(_0x12d872){if(!_0x12d872['isInContent']||!this['_suggestionToController']['has'](_0x12d872))return;const _0x2d98fb=this['editor']['plugins']['get'](on),_0x49ee79=this['_suggestionToController']['get'](_0x12d872),_0x2d8023=_0x12d872['getAllAdjacentSuggestions']();_0x49ee79['view']['descriptionParts']=_0x2d98fb['descriptionFactory']['getDescriptions'](_0x2d8023);}destroy(){for(const _0x3499b7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3499b7);for(const _0x339372 of this['_annotationViews']['values']())_0x339372['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x15ea22){return'model'in _0x15ea22;}var Sn=class extends _0x9bd549{static get requires(){return[on,yn,_0x435a16];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3dd871){this['editor']['plugins']['get'](on)['adapter']=_0x3dd871;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0x57e5a8){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0x57e5a8);}getSuggestions({skipNotAttached:_0x5cfa4e=!0x1,toJSON:_0x131929=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x5cfa4e,'toJSON':_0x131929});}getSuggestion(_0x58debc){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x58debc);}};const Mn=['Pagination'];var On=class extends _0x9bd549{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ec73f=this['editor'];if(_0x4ec73f['config']['define']('trackChangesData.editorCreator',_0x4bf035=>{const _0x1d2f8c=_0x4ec73f['model']['document']['getRootNames']()['reduce']((_0x43df39,_0x161b93)=>(_0x43df39[_0x161b93]='',_0x43df39),{});return _0x4ec73f['constructor']['create'](_0x1d2f8c,_0x4bf035);}),'function'!=typeof _0x4ec73f['config']['get']('trackChangesData')['editorCreator'])throw new _0x354614('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1e883e){return Bn(this['editor'],!0x0,_0x1e883e);}getDataWithDiscardedSuggestions(_0x2eb5bf){return Bn(this['editor'],!0x1,_0x2eb5bf);}},wn=class extends _0x9bd549{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2438a5){super(_0x2438a5),this['result']='end',_0x2438a5['editing']['view']['_overlayModeHint']='auto',_0x2438a5['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x13ce1a){return void 0x0!==_0x13ce1a['getRootsAttributes'];}async function Bn(_0x158898,_0x480854,_0x98ef1f){const _0x2963ca=_0x423519(_0x158898,Mn);if(_0x2963ca['plugins']['push'](on,wn),Fn(_0x158898)){_0x2963ca['roots']=Object['create'](null);for(const _0x15b81f of _0x158898['model']['document']['getRootNames']())_0x2963ca['roots'][_0x15b81f]={'modelAttributes':_0x158898['getRootAttributes'](_0x15b81f)};}const _0xea4247=document['createDocumentFragment'](),_0x4b6cc7=_0x158898['config']['get']('trackChangesData')['editorCreator'],_0x5a004b=await _0x4b6cc7(_0x2963ca,()=>function(_0x59cc17){const _0x1613ff=document['createElement']('div');return _0x59cc17['appendChild'](_0x1613ff),_0x1613ff;}(_0xea4247));!function(_0x2ae655,_0x418104){const _0x682888=_0x2ae655['model']['document']['getRootNames']()['reduce']((_0x21be86,_0x58ed0d)=>(_0x21be86[_0x58ed0d]=_0x2ae655['data']['get']({'rootName':_0x58ed0d}),_0x21be86),{}),_0x35142a=_0x2ae655['plugins']['get']('Users')['users']['map'](_0x186834=>({'id':_0x186834['id'],'name':_0x186834['name']})),_0x54d438=_0x2ae655['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1371b4=_0x2ae655['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x32aa69=_0x418104['plugins']['get']('Users'),_0x2e3b87=_0x418104['plugins']['get']('TrackChangesEditing'),_0x2c4ef1=_0x418104['plugins']['get']('CommentsRepository');for(const _0x3364ff of _0x2c4ef1['getCommentThreads']())_0x3364ff['remove']();for(const _0x50480c of _0x35142a)_0x32aa69['getUser'](_0x50480c['id'])||_0x32aa69['addUser'](_0x50480c);_0x32aa69['me']||_0x32aa69['useAnonymousUser']();for(const _0x9faf53 of _0x1371b4)_0x2c4ef1['addCommentThread'](_0x9faf53);for(const _0x3841f5 of _0x54d438)_0x2e3b87['addSuggestionData'](_0x3841f5);_0x418104['data']['set'](_0x682888);}(_0x158898,_0x5a004b),_0x5a004b['execute'](_0x480854?'acceptAllSuggestions':'discardAllSuggestions');const _0x572cc6=Fn(_0x5a004b)?_0x5a004b['getFullData'](_0x98ef1f):_0x5a004b['data']['get'](_0x98ef1f);return await _0x5a004b['destroy'](),_0x572cc6;}var vn=class extends _0x50f806{options;constructor(_0xaec245,_0x5409e3){super(_0xaec245),this['options']=_0x5409e3,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(_0x2e0f88,_0xda6b78){if(!this['element'])return;const _0x521b73=[];for(const [_0x4ddb29,_0x26a2ae]of _0x2e0f88){const _0x4a8e20=document['createElement']('div');_0x4a8e20['setAttribute']('data-ck-root-name',_0x4ddb29),_0x4a8e20['className']=_0x26a2ae['classes']+'\x20ck-track-changes-preview__root-container',_0x4a8e20['innerHTML']=_0x26a2ae['content'],_0x521b73['push'](_0x4a8e20);}_0xda6b78(this['element'],_0x521b73),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x16d293{constructor(_0x4c5c09){super(_0x4c5c09),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1a32d3=this['editor'],_0x23a437=_0x1a32d3['locale'],_0x1374be=_0x1a32d3['plugins']['get']('Dialog');let _0x522418;const _0x4d3736=function(_0x516ee8){const _0x42a70b={};if('editables'in _0x516ee8['ui']['view']){for(const [_0x31c39a,_0x3bf226]of Object['entries'](_0x516ee8['ui']['view']['editables']))_0x42a70b[_0x31c39a]=_0x3bf226['element'];}else _0x42a70b[_0x516ee8['model']['document']['getRootNames']()[0x0]]=_0x516ee8['ui']['view']['editable']['element'];return _0x42a70b;}(_0x1a32d3),_0x2d808c=function(_0x4b0219){let _0x34ad96=0x0;for(const _0x39f2e4 of Object['values'](_0x4b0219))_0x34ad96=Math['max'](_0x34ad96,_0x39f2e4['getBoundingClientRect']()['width']);let _0x5f2ecd=0x0;for(const _0x5deac0 of Object['values'](_0x4b0219))_0x5f2ecd+=_0x5deac0['getBoundingClientRect']()['height'];const _0x31553a=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x34ad96,'height':Math['min'](_0x5f2ecd,_0x31553a)};}(_0x4d3736);_0x1374be['show']({'id':'finalContentPreview','title':Ot(_0x23a437,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x23a437,{'dialogRects':_0x2d808c}),'onHide':()=>{_0x522418['detachFromDom']();},'onShow':()=>{_0x1a32d3['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x464ec5=>{const _0x17fc87=this['_standarizeRootsData'](_0x464ec5,_0x1a32d3,_0x4d3736);_0x1374be['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x17fc87,_0x1a32d3['config']['get']('trackChanges.preview.renderFunction'));}),_0x522418=new _0x1e8118(_0x23a437,[_0x1374be['view']]),_0x522418['attachToDom'](),_0x522418['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a32d3['once']('destroy',()=>{_0x522418['detachFromDom']();});const _0x35177c=_0x1374be['view']['headerView']['class'];_0x1374be['view']['headerView']['class']=_0x35177c?_0x35177c+'\x20ck-reset_all':'ck-reset_all',_0x1374be['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1374be['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0xe13f0e=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16756f=_0xe13f0e['previewMode'],_0x364829={};if('$labels'===_0x16756f){for(const _0x58233f of _0xe13f0e['getMergeFieldsIds']())_0x364829[_0x58233f]=_0xe13f0e['getLabel'](_0x58233f)||_0x58233f;}else{const _0x302b23='$defaultValues'===_0x16756f?_0xe13f0e['getDefaultValues']():_0xe13f0e['getDataSetValues'](_0x16756f,!0x0);for(const _0x262b9d of Object['entries'](_0x302b23)){const [_0x2b653e,_0x3b6a4e]=_0x262b9d;_0x364829[_0x2b653e]=null!==_0x3b6a4e?_0x3b6a4e:_0xe13f0e['getLabel'](_0x2b653e)||_0x2b653e;}}return{'mergeFieldsData':_0x364829};}_standarizeRootsData(_0x62412,_0x2292e0,_0x4e9fb3){let _0x32d440;_0x32d440='string'==typeof _0x62412?{[_0x2292e0['model']['document']['getRootNames']()[0x0]]:_0x62412}:_0x62412;const _0x4eae98=this['_fixMediaEmbeds'](_0x32d440,_0x2292e0);return function(_0x234aff,_0x4c0a1f){for(const [_0x11d4fb,_0x455f61]of _0x234aff)_0x455f61['classes']=_0x4c0a1f[_0x11d4fb]['classList']['value']['replace']('ck-focused','');return _0x234aff;}(this['_sortRoots'](_0x2292e0)['reduce']((_0x5e21a3,_0xb85a90)=>(_0x5e21a3['push']([_0xb85a90,{'content':_0x4eae98[_0xb85a90],'classes':''}]),_0x5e21a3),[]),_0x4e9fb3);}['_fixMediaEmbeds'](_0x81b957,_0x4ac98f){if(!_0x4ac98f['plugins']['has']('MediaEmbedEditing'))return _0x81b957;const _0x2d64a2=_0x4ac98f['plugins']['get']('MediaEmbedEditing');for(const [_0x5beb43,_0x47704c]of Object['entries'](_0x81b957)){const _0x29df66=document['createElement']('div');_0x29df66['innerHTML']=_0x47704c,_0x29df66['querySelectorAll']('figure.media')['forEach'](_0x38165e=>{const _0x55b985=_0x38165e['querySelector']('oembed');if(_0x55b985){const _0x3502b4=_0x55b985['getAttribute']('url');if(_0x3502b4){const _0x497145=_0x2d64a2['registry']['getMediaViewElement'](new at(_0x4ac98f['editing']['view']['document']),_0x3502b4,{'elementName':'','renderForEditingView':!0x0}),_0x437ff5=document['createElement']('div');_0x437ff5['classList']['add']('ck-media__wrapper'),_0x497145['render'](_0x437ff5,_0x4ac98f['editing']['view']['domConverter']),_0x55b985['replaceWith'](_0x437ff5);}}}),_0x81b957[_0x5beb43]=_0x29df66['innerHTML'];}return _0x81b957;}_sortRoots(_0x3c519b){if(!function(_0x513b32){return void 0x0!==_0x513b32['getRootsAttributes'];}(_0x3c519b))return _0x3c519b['model']['document']['getRootNames']();const _0x57ee7a=[],_0xf15415=new Map();for(const _0x220631 of _0x3c519b['model']['document']['getRootNames']()){const _0xf0a3fc=_0x3c519b['editing']['view']['getDomRoot'](_0x220631)['getClientRects']()['item'](0x0);_0x57ee7a['push'](_0x220631),_0xf15415['set'](_0x220631,_0xf0a3fc);}return _0x57ee7a['sort']((_0x1110ec,_0xa429c1)=>{const _0x55cfdf=_0xf15415['get'](_0x1110ec),_0x553ed0=_0xf15415['get'](_0xa429c1);return _0x55cfdf['y']-_0x553ed0['y']||_0x55cfdf['x']-_0x553ed0['x'];}),_0x57ee7a;}},Un=class extends _0x9bd549{static get requires(){return[On,_0x15cd88];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x539c15){super(_0x539c15),_0x539c15['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x539c15['config']['define']('trackChanges.preview.renderFunction',(_0x11ab1c,_0x1a0b2d)=>{for(const _0x51de62 of _0x1a0b2d)_0x11ab1c['appendChild'](_0x51de62);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|