@ckeditor/ckeditor5-track-changes 49.0.0-alpha.2 → 49.0.0-alpha.4
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.umd.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.umd.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
|
-
_0x57c80d();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x192893,_0x5f30a0){super(),this['id']=_0x5f30a0['id'],this['type']=_0x5f30a0['type'],this['subType']=_0x5f30a0['subType']||null,this['author']=_0x5f30a0['author'],this['creator']=_0x5f30a0['creator']||_0x5f30a0['author'],this['data']=null,this['_originalSuggestionId']=_0x5f30a0['originalSuggestionId']||null,this['_model']=_0x192893,this['_onAccept']=_0x5f30a0['onAccept'],this['_onDiscard']=_0x5f30a0['onDiscard'],this['_onAttributesChange']=_0x5f30a0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5f30a0['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 _0xfa3abf=this;for(;_0xfa3abf['previous'];)_0xfa3abf=_0xfa3abf['previous'];return _0xfa3abf;}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'](_0x1dc515){this['_markerNames']['add'](_0x1dc515);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x236ce6=>this['_model']['markers']['get'](_0x236ce6))['filter'](_0x84cb2a=>_0x84cb2a);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a4062=>{for(const _0x4e2e95 of this['getMarkers']())_0x1a4062['removeMarker'](_0x4e2e95);}),this['_markerNames']['clear']();}['removeMarker'](_0x41784f){this['_model']['change'](_0x59b4d2=>{_0x59b4d2['removeMarker'](_0x41784f);}),this['_markerNames']['delete'](_0x41784f);}['addRange'](_0x309b63){const _0x5bf175='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x5bf175),this['_model']['change'](_0x2f6804=>{_0x2f6804['addMarker'](_0x5bf175,{'range':_0x309b63,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x4afad9){for(const _0x3451c3 of this['getRanges']())if(_0x3451c3['isIntersecting'](_0x4afad9))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x416a79=>_0x416a79['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x2b77c4,_0x402059)=>[..._0x2b77c4,..._0x402059['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4872c4=this['getRanges']();if(0x1!=_0x4872c4['length'])return null;const _0x206754=_0x4872c4[0x0],_0x3225b0=_0x206754['start']['nodeAfter'],_0x158bad=_0x206754['end']['nodeBefore'];return _0x3225b0 instanceof rt?_0x3225b0!=_0x158bad?null:_0x3225b0: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 _0x38c479=[];let _0x394f14=this['head'];for(;_0x394f14;)_0x38c479['push'](_0x394f14),_0x394f14=_0x394f14['next'];return _0x38c479;}setAttribute(_0x34c58e,_0x5c771d){const _0x22a7b6=lt(this['attributes']);ht(_0x22a7b6,_0x34c58e,_0x5c771d),ut(_0x22a7b6,this['attributes'])||(this['attributes']=_0x22a7b6,this['_onAttributesChange'](_0x22a7b6));}removeAttribute(_0x4fa8d2){const _0xcb64c5=lt(this['attributes']);gt(_0xcb64c5,_0x4fa8d2),ut(_0xcb64c5,this['attributes'])||(this['attributes']=_0xcb64c5,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 _0x5a260f()['substr'](0x1,0x5);}};function wt(_0x5821e1,_0xb2b3e2,_0x54552a){const _0x2345da=_0x5821e1['t'],t=_0x5821e1['t'];switch(_0xb2b3e2){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',_0x54552a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x54552a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x54552a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x54552a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x54552a);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',_0x54552a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x54552a);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',_0x54552a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x54552a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x54552a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x54552a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x54552a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x54552a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x54552a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x54552a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x54552a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x54552a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x54552a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x54552a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x54552a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x54552a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x54552a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x54552a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x54552a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x54552a);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'},_0x54552a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x54552a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x54552a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x54552a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x54552a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x54552a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x54552a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x54552a);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'},_0x54552a);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'},_0x54552a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x54552a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x54552a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x54552a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x54552a);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'},_0x54552a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x54552a);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'},_0x54552a);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'},_0x54552a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x54552a);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'},_0x54552a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x54552a);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'},_0x54552a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x54552a);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x54552a);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x54552a);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x54552a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x54552a);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'},_0x54552a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x54552a);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 _0x2345da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x54552a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2345da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x54552a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x54552a);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'},_0x54552a);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'},_0x54552a);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'},_0x54552a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0xb2b3e2;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x5a3c2d,_0x31003c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5a3c2d,this['_locale']=_0x31003c;}getDescriptions(_0xef7f06){const _0xcc3868=[],_0x26c841=new Set(),_0x279daf=new Set();for(let _0x3bd66e=0x0;_0x3bd66e<_0xef7f06['length'];_0x3bd66e++){const _0x2033d6=_0xef7f06[_0x3bd66e];if(!_0x2033d6['isInContent'])continue;const _0x268f05=this['_handleCustomCallbackDescription'](_0x2033d6);if(_0x268f05){if(null!=_0x2033d6['subType']){if(_0x26c841['has'](_0x2033d6['subType']))continue;_0x26c841['add'](_0x2033d6['subType']);}_0xcc3868['push'](_0x268f05);}else{if('attribute'==_0x2033d6['type']){const _0x2e805d=_0x2033d6['data']['key'];if(_0x279daf['has'](_0x2e805d))continue;_0x279daf['add'](_0x2033d6['data']['key']),'$elementName'==_0x2e805d?this['_handleRenameSuggestionDescription'](_0xcc3868,_0x2033d6):this['_handleAttributeSuggestionDescription'](_0xcc3868,_0x2033d6);continue;}'insertion'!=_0x2033d6['type']&&'deletion'!=_0x2033d6['type']||this['_handleInsertRemoveSuggestionDescription'](_0xcc3868,_0x2033d6,_0xef7f06[_0x3bd66e+0x1]);}}return this['_resolveDescriptionItems'](_0xcc3868);}registerDescriptionCallback(_0x27ea6a){this['_customCallbacks']['push'](_0x27ea6a);}registerElementLabel(_0x57a8b9,_0x47e0fd,_0x41c2d6=_0x165b6f['normal']){'function'==typeof _0x57a8b9?_0x9e9dd3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x57a8b9,'label':_0x47e0fd,'priority':_0x41c2d6}):this['_itemLabels']['set'](_0x57a8b9,_0x47e0fd);}registerAttributeLabel(_0xd969e1,_0x29f969){this['_attributeLabels']['set'](_0xd969e1,_0x29f969);}getItemLabel(_0x4d5677,_0x44904b=0x1){let _0x2d2470;for(const _0xfee941 of this['_itemLabelsCallbacks'])if(_0xfee941['matchingCallback'](_0x4d5677)){_0x2d2470=_0xfee941['label'];break;}return _0x2d2470||(_0x2d2470=this['_itemLabels']['get'](_0x4d5677['name'])),_0x2d2470?_0x2d2470(_0x44904b):0x1!==_0x44904b?_0x44904b+'\x20'+_0x4d5677['name']+'s':''+_0x4d5677['name'];}_addDescriptionItems(_0x53a891,_0x1fde65){const _0x38a07f=_0x1fde65['getFirstRange']()['getWalker'](),_0x1df290='insertion'==_0x1fde65['type']?'add':'remove';for(const _0x314952 of _0x38a07f){const _0x419672=_0x314952['item'],_0x4f23d7=_0x53a891[_0x53a891['length']-0x1];if(_0x419672['is']('$textProxy'))_0x4f23d7&&_0x4f23d7['type']['indexOf']('Container')>-0x1&&_0x53a891['pop'](),_0x4f23d7&&'text'==_0x4f23d7['type']?_0x4f23d7[_0x1df290]+=_0x419672['data']:_0x53a891['push']({'type':'text','add':'add'==_0x1df290?_0x419672['data']:'','remove':'remove'==_0x1df290?_0x419672['data']:''});else{if(this['_schema']['isObject'](_0x419672)){const _0x321d8d=_0x419672;if(_0x4f23d7&&_0x4f23d7['type']['indexOf']('Container')>-0x1&&_0x53a891['pop'](),'elementEnd'==_0x314952['type'])continue;_0x4f23d7&&_0x4f23d7['type']==_0x1df290+'Object'&&_0x4f23d7['element']['name']==_0x321d8d['name']?_0x4f23d7['quantity']++:_0x53a891['push']({'type':_0x1df290+'Object','element':_0x321d8d,'quantity':0x1}),_0x38a07f['skip'](_0x2c4e85=>!('elementEnd'==_0x2c4e85['type']&&_0x2c4e85['item']==_0x419672));}else{if(this['_schema']['checkChild'](_0x419672,'$text')||_0x419672['is']('element','softBreak')){const _0x5d6fff=_0x419672;if('add'==_0x1df290&&'elementStart'==_0x314952['type']||'remove'==_0x1df290&&'elementEnd'==_0x314952['type'])continue;if(_0x4f23d7&&-0x1==_0x4f23d7['type']['indexOf']('Container')){'text'==_0x4f23d7['type']&&(_0x4f23d7[_0x1df290]+='\x0a');continue;}let _0x86858c;if(_0x86858c='add'==_0x1df290?_0x5d6fff['nextSibling']&&!this['_schema']['isObject'](_0x5d6fff['nextSibling'])?_0x5d6fff['nextSibling']:null:_0x5d6fff['previousSibling']&&!this['_schema']['isObject'](_0x5d6fff['previousSibling'])?_0x5d6fff['previousSibling']:null,_0x5d6fff['isEmpty']||_0x86858c&&_0x86858c['isEmpty']){const _0x8fecb4=_0x86858c&&_0x86858c['isEmpty']?_0x86858c:_0x5d6fff;_0x4f23d7&&_0x4f23d7['type']==_0x1df290+'EmptyContainer'&&_0x4f23d7['element']['name']==_0x8fecb4['name']?_0x4f23d7['quantity']++:_0x53a891['push']({'type':_0x1df290+'EmptyContainer','element':_0x8fecb4,'quantity':0x1});}else _0x53a891['push']({'type':_0x1df290+'Container','element':_0x5d6fff});}}}}}_resolveDescriptionItems(_0x2b5f17){const _0x5013c5=this['_locale'],_0x10232e=[],_0x8f12f7=[],_0x50f695=[];for(const _0x22330e of _0x2b5f17)switch(_0x22330e['type']){case'text':if(_0x22330e['add']=_0x22330e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x22330e['remove']=_0x22330e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x22330e['add']&&''!=_0x22330e['remove']){_0x10232e['push']({'type':'replace','content':wt(_0x5013c5,'REPLACE_TEXT',['\x22'+_0x22330e['remove']+'\x22','\x22'+_0x22330e['add']+'\x22'])});continue;}if(null!=_0x22330e['add']['match'](/^ +$/)){_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0',wt(_0x5013c5,'ELEMENT_SPACE',_0x22330e['add']['length']))});continue;}if(null!=_0x22330e['remove']['match'](/^ +$/)){_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0',wt(_0x5013c5,'ELEMENT_SPACE',_0x22330e['remove']['length']))});continue;}if(''!=_0x22330e['add']){_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0','\x22'+_0x22330e['add']+'\x22')});continue;}_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0','\x22'+_0x22330e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'addContainer':_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Split:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'removeContainer':_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Merge:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'addFormat':_0x8f12f7['push'](_0x22330e['key']);continue;case'removeFormat':_0x50f695['push'](_0x22330e['key']);continue;default:_0x10232e['push'](_0x22330e);}if(_0x8f12f7['length']){const _0x418aab=_0x8f12f7['map'](_0x45ab4c=>this['_attributeLabels']['has'](_0x45ab4c)?this['_attributeLabels']['get'](_0x45ab4c):_0x45ab4c)['join'](',\x20');_0x10232e['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x418aab)});}if(_0x50f695['length']){const _0xf00990=_0x50f695['map'](_0x326cd3=>this['_attributeLabels']['has'](_0x326cd3)?this['_attributeLabels']['get'](_0x326cd3):_0x326cd3)['join'](',\x20');_0x10232e['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0xf00990)});}return _0x10232e;}_handleCustomCallbackDescription(_0x48481f){for(const _0x48edbd of this['_customCallbacks']){const _0x13a3c0=_0x48edbd(_0x48481f);if(_0x13a3c0&&'type'in _0x13a3c0)return _0x13a3c0;}}_handleAttributeSuggestionDescription(_0x13f52e,_0x2c70a1){const _0x594aa2=_0x2c70a1['data'],_0x20106a=void 0x0===_0x594aa2['newValue']?'removeFormat':'addFormat';_0x13f52e['push']({'type':_0x20106a,'key':_0x594aa2['key']});}_handleRenameSuggestionDescription(_0x1c011d,_0x36ceca){_0x1c011d['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x36ceca['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x26bc83,_0x586e3d,_0x254c94){if(this['_addDescriptionItems'](_0x26bc83,_0x586e3d),_0x254c94&&_0x254c94['getFirstRange']()&&!_0x586e3d['getFirstRange']()['end']['isEqual'](_0x254c94['getFirstRange']()['start'])){const _0x5185b9=_0x26bc83[_0x26bc83['length']-0x1],_0x38b3b7='insertion'==_0x586e3d['type']?'add':'remove';_0x5185b9&&'text'==_0x5185b9['type']&&(_0x5185b9[_0x38b3b7]+='\x0a');}}},Ft=class extends _0x17c3d7{afterInit(){const _0x405a9a=this['editor'],_0x24eb8b=_0x405a9a['plugins']['get']('TrackChangesEditing');_0x405a9a['commands']['get']('showAIAssistant')&&_0x24eb8b['enableCommand']('showAIAssistant');}},vt=class extends _0x17c3d7{afterInit(){const _0x9ca40a=this['editor'],_0x14a983=_0x9ca40a['plugins']['get']('TrackChangesEditing');_0x9ca40a['commands']['get']('toggleAi')&&_0x14a983['enableCommand']('toggleAi');}},Dt=class extends _0x17c3d7{afterInit(){const _0x545a8a=this['editor'],_0x567632=_0x545a8a['plugins']['get']('TrackChangesEditing');_0x545a8a['commands']['get']('aiQuickAction')&&_0x567632['enableCommand']('aiQuickAction');}},Ut=class extends _0x17c3d7{afterInit(){const _0x590a19=this['editor'],_0x2e44ce=_0x590a19['locale'];if(!_0x590a19['plugins']['has']('AlignmentEditing'))return;const _0x47717a=_0x590a19['plugins']['get']('TrackChangesEditing');_0x47717a['enableDefaultAttributesIntegration']('alignment'),_0x47717a['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x2e44ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x30ee31=this['editor'],_0x4c2edd=_0x30ee31['locale'];_0x30ee31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x591325=>{if('formatBlock'!=_0x591325['type'])return;const {data:_0x3bd48b}=_0x591325;if(_0x3bd48b&&'alignment'==_0x3bd48b['commandName']){const _0x1eeeb9=_0x3bd48b['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x4c2edd,'*Format:*\x20%0',function(_0x509155){switch(_0x509155){case'left':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x4c2edd,'FORMAT_JUSTIFY_TEXT');}}(_0x1eeeb9))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x17c3d7{afterInit(){const _0x434f38=this['editor'],_0x16c103=_0x434f38['plugins']['get']('TrackChangesEditing'),_0x33047f=_0x434f38['locale'];for(const _0x127911 of Pt){if(!_0x434f38['plugins']['has'](_0x127911))continue;const _0xfee2bd=_0x127911['slice'](0x0,-0x7)['toLowerCase'](),_0x40414d='FORMAT_'+_0xfee2bd['toUpperCase']();_0x16c103['enableDefaultAttributesIntegration'](_0xfee2bd),_0x16c103['descriptionFactory']['registerAttributeLabel'](_0xfee2bd,wt(_0x33047f,_0x40414d));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4fa7d5=this['editor'],_0x5329d8=_0x4fa7d5['locale'],_0x1178af=_0x4fa7d5['plugins']['get']('TrackChangesEditing');function _0x1b1c37(_0x4499bc,_0x1e171e){_0x1178af['descriptionFactory']['registerDescriptionCallback'](_0x5e9f59=>{if('formatInline'!=_0x5e9f59['type'])return;const {data:_0xac0234}=_0x5e9f59;return _0xac0234&&_0xac0234['commandName']===_0x4499bc?_0xac0234['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x5329d8,'*Format:*\x20%0',_0x1e171e)}:{'type':'format','content':wt(_0x5329d8,'*Remove\x20format:*\x20%0',_0x1e171e)}:void 0x0;});}_0x1b1c37('bold',wt(_0x5329d8,'FORMAT_BOLD')),_0x1b1c37('italic',wt(_0x5329d8,'FORMAT_ITALIC')),_0x1b1c37('underline',wt(_0x5329d8,'FORMAT_UNDERLINE')),_0x1b1c37('code',wt(_0x5329d8,'FORMAT_CODE')),_0x1b1c37('strikethrough',wt(_0x5329d8,'FORMAT_STRIKETHROUGH')),_0x1b1c37('subscript',wt(_0x5329d8,'FORMAT_SUBSCRIPT')),_0x1b1c37('superscript',wt(_0x5329d8,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x17c3d7{afterInit(){const _0xf3f4ed=this['editor'],_0x2e4928=_0xf3f4ed['locale'];if(!_0xf3f4ed['plugins']['has']('BlockQuoteEditing'))return;const _0x34d967=_0xf3f4ed['plugins']['get']('TrackChangesEditing'),_0x1ea661=this['editor']['commands']['get']('blockQuote');_0x34d967['enableCommand']('blockQuote',(_0x28c0f8,_0x3b2386={})=>{const _0x2facbe=this['editor']['model']['document']['selection'],_0x479f37=_0x3b2386&&void 0x0!==_0x3b2386['forceValue']?_0x3b2386['forceValue']:!_0x1ea661['value'];let _0x360721=[];if(_0x479f37){const _0x53b858=Array['from'](_0x2facbe['getSelectedBlocks']())['filter'](_0x7fbd37=>Ht(_0x7fbd37)||function(_0x169710,_0x3f0d33){const _0x58206d=_0x3f0d33['createContext'](_0x169710['parent']);return!!_0x3f0d33['checkChild'](_0x58206d,'blockQuote')&&!!_0x3f0d33['checkChild'](_0x58206d['push']('blockQuote'),_0x169710);}(_0x7fbd37,this['editor']['model']['schema']));_0x360721=kt(_0x53b858,_0xf3f4ed['model']);}else{const _0xdf3d22=Array['from'](_0x2facbe['getSelectedBlocks']())['filter'](_0x3fe0aa=>Ht(_0x3fe0aa));_0x360721=kt(_0xdf3d22,_0xf3f4ed['model']);}_0xf3f4ed['model']['change'](()=>{for(const _0x489951 of _0x360721)_0x34d967['markBlockFormat'](_0x489951,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x479f37}]});});}),_0x34d967['descriptionFactory']['registerDescriptionCallback'](_0x29cf96=>{const {data:_0x4de34a}=_0x29cf96;if(_0x4de34a&&'blockQuote'==_0x4de34a['commandName']){const _0x5c9d83=wt(_0x2e4928,'ELEMENT_BLOCK_QUOTE');return _0x4de34a['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x2e4928,'*Set\x20format:*\x20%0',_0x5c9d83)}:{'type':'format','content':wt(_0x2e4928,'*Remove\x20format:*\x20%0',_0x5c9d83)};}});}};function Ht(_0x1c2bc1){return'blockQuote'==_0x1c2bc1['parent']['name'];}var $t=class extends _0x17c3d7{afterInit(){const _0x1ac041=this['editor'],_0xa81f2d=_0x1ac041['locale'],_0x264801=_0x1ac041['plugins']['get']('TrackChangesEditing');_0x1ac041['plugins']['has']('BookmarkEditing')&&(_0x264801['enableCommand']('insertBookmark'),_0x264801['enableDefaultAttributesIntegration']('updateBookmark'),_0x264801['descriptionFactory']['registerDescriptionCallback'](_0xe34eb4=>{if('insertion'!=_0xe34eb4['type']&&'deletion'!=_0xe34eb4['type']&&'attribute'!=_0xe34eb4['type'])return;const _0x428d04=_0xe34eb4['getContainedElement']();if(null==_0x428d04)return;if(!_0x428d04['is']('element','bookmark'))return;const _0x4d6380=_0x428d04['getAttribute']('bookmarkId');if('insertion'==_0xe34eb4['type'])return{'type':'insertion','content':wt(_0xa81f2d,'*Insert:*\x20%0','\x22'+_0x4d6380+'\x22\x20'+wt(_0xa81f2d,'ELEMENT_BOOKMARK'))};if('deletion'==_0xe34eb4['type'])return{'type':'deletion','content':wt(_0xa81f2d,'*Remove:*\x20%0','\x22'+_0x4d6380+'\x22\x20'+wt(_0xa81f2d,'ELEMENT_BOOKMARK'))};const {data:_0x27d5c2}=_0xe34eb4;return _0x27d5c2&&'bookmarkId'==_0x27d5c2['key']?{'type':'format','content':wt(_0xa81f2d,'*Set\x20bookmark:*\x20%0','\x22'+_0x27d5c2['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x17c3d7{afterInit(){const _0x3d86da=this['editor'];_0x3d86da['plugins']['has']('CaseChange')&&(_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x17c3d7{afterInit(){const _0xe9fff5=this['editor'];_0xe9fff5['commands']['get']('ckbox')&&_0xe9fff5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x17c3d7{static get requires(){return[ft,mt];}constructor(_0x53fd89){super(_0x53fd89),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1f5f15=this['editor'],_0xe791cf=_0x1f5f15['plugins']['get']('ClipboardMarkersUtils'),_0x3ca127=_0x1f5f15['plugins']['get'](mt);_0xe791cf['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3ca127['on']('outputTransformation',(_0x5b01ec,_0xa05546)=>{const _0x3fd6e8=this['_getSuggestionEntries'](_0xa05546);for(const [_0x3cf24b,_0x5b0585]of _0xa05546['content']['markers']){const _0x31a323=at['_fromRangeInDocumentFragment'](_0x5b0585,_0x1f5f15['model']);function _0x4a659f(){_0x31a323['detach'](),_0xa05546['content']['markers']['delete'](_0x3cf24b);}_0x31a323['on']('change:drop',_0x4a659f),(_0x3cf24b['startsWith']('suggestion:')||_0x3cf24b['startsWith']('comment:'))&&_0x31a323['on']('change:range',()=>{_0x31a323['isCollapsed']&&_0x4a659f();}),_0xa05546['content']['markers']['set'](_0x3cf24b,_0x31a323);}const _0x22b1c8=_0x3fd6e8['filter'](_0x28d294=>'deletion'===_0x28d294['meta']['type'])['map'](_0x363c29=>_0x363c29['modelRange']);if(this['_shouldSkipDeletions'](_0x22b1c8,_0xa05546['content']))return[..._0x3fd6e8]['forEach'](_0x596d9a=>{_0xa05546['content']['markers']['get'](_0x596d9a['markerName'])['detach'](),_0xa05546['content']['markers']['delete'](_0x596d9a['markerName']);}),void this['_restoreRegularRanges'](_0xa05546['content']['markers']);[..._0x3fd6e8]['forEach'](_0x258c27=>{const _0x12a9fb=_0x1f5f15['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x258c27['meta']['type'],_0x258c27['meta']['subType'],'accept'),{markerName:_0x1d7b77,meta:_0x315a5d}=_0x258c27;if(_0xa05546['content']['markers']['has'](_0x1d7b77)){switch(_0x315a5d['type']){case'deletion':if('tableRow'===_0x315a5d['subType']||'tableColumn'===_0x315a5d['subType']){if(!_0x1f5f15['plugins']['has']('TableUtils'))break;const _0x37fd92=_0x1f5f15['plugins']['get']('TableUtils'),_0x2c0ec5=_0x37fd92['getSelectionAffectedTableCells'](_0x1f5f15['model']['createSelection'](_0xa05546['content']['markers']['get'](_0x1d7b77))),_0x38e68a=_0x2c0ec5[0x0]['findAncestor']('table');if('tableRow'===_0x315a5d['subType']){const {first:_0x42904a,last:_0x2af82d}=_0x37fd92['getRowIndexes'](_0x2c0ec5);_0x37fd92['removeRows'](_0x38e68a,{'at':_0x42904a,'rows':_0x2af82d-_0x42904a+0x1});}else{const {first:_0x1436ff,last:_0x1da713}=_0x37fd92['getColumnIndexes'](_0x2c0ec5);_0x37fd92['removeColumns'](_0x38e68a,{'at':_0x1436ff,'columns':_0x1da713-_0x1436ff+0x1});}break;}_0x12a9fb([_0xa05546['content']['markers']['get'](_0x1d7b77)]);}_0xa05546['content']['markers']['has'](_0x1d7b77)&&(_0xa05546['content']['markers']['get'](_0x1d7b77)['detach'](),_0xa05546['content']['markers']['delete'](_0x1d7b77));}}),this['_restoreRegularRanges'](_0xa05546['content']['markers']);});}_getSuggestionEntries(_0x28a78d){const _0x435389=_0x1ee834=>'dragstart'===_0x28a78d['method']?_0x1ee834['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x1ee834;return Array['from'](_0x28a78d['content']['markers'])['map'](([_0x197513,_0x1dd99b])=>({'markerName':_0x197513,'modelRange':_0x1dd99b,'meta':nt(_0x435389(_0x197513))}))['filter'](({meta:_0x29871c})=>'suggestion'===_0x29871c['group']);}_shouldSkipDeletions(_0x34ae4c,_0xec95f0){if(!_0x34ae4c['length'])return!0x1;let _0x5accd5=[this['editor']['model']['createRangeIn'](_0xec95f0)];for(const _0x1fd2e4 of _0x34ae4c)_0x5accd5=_0x5accd5['flatMap'](_0x35f507=>_0x35f507['getDifference'](_0x1fd2e4));return!_0x5accd5['some'](_0x181a05=>this['editor']['model']['hasContent'](_0x181a05,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x248d09){[..._0x248d09['keys']()]['forEach'](_0x2ad2fe=>{const _0x1a6c58=_0x248d09['get'](_0x2ad2fe);_0x1a6c58['detach'](),_0x248d09['set'](_0x2ad2fe,_0x1a6c58['toRange']());});}},jt=class extends _0x17c3d7{afterInit(){const _0x228f50=this['editor'];if(!_0x228f50['plugins']['has']('CodeBlock'))return;const _0x1f0854=_0x228f50['plugins']['get']('TrackChangesEditing'),_0x3ffeec=_0x228f50['locale'],_0x31a641=_0x228f50['config']['get']('codeBlock')['languages'],_0x23fe2e=_0x228f50['commands']['get']('codeBlock');_0x1f0854['enableCommand']('indentCodeBlock'),_0x1f0854['enableCommand']('outdentCodeBlock'),_0x1f0854['enableCommand']('codeBlock',(_0x206774,_0x28346d={})=>{const _0x85ed57=_0x228f50['model'],_0x9f0b5b=_0x228f50['model']['document']['selection'],_0x2b6a98=_0x28346d&&void 0x0!==_0x28346d['forceValue']?_0x28346d['forceValue']:!_0x23fe2e['value'];let _0xb1a051;_0x28346d['language']||(_0x28346d['language']=_0x31a641[0x0]['language']),_0xb1a051=_0x2b6a98?Array['from'](_0x9f0b5b['getSelectedBlocks']())['filter'](_0x12dcad=>{return Kt(_0x12dcad)||(_0x3e6511=_0x12dcad,_0x11f3e3=_0x85ed57['schema'],!_0x3e6511['is']('rootElement')&&!_0x11f3e3['isLimit'](_0x3e6511)&&_0x11f3e3['checkChild'](_0x3e6511['parent'],'codeBlock'));var _0x3e6511,_0x11f3e3;}):Array['from'](_0x9f0b5b['getSelectedBlocks']())['filter'](_0x4aeda4=>Kt(_0x4aeda4));const _0x4f71a3=kt(_0xb1a051,_0x85ed57);_0x85ed57['change'](()=>{for(const _0x3a255 of _0x4f71a3)_0x1f0854['markBlockFormat'](_0x3a255,{'commandName':'codeBlock','commandParams':[{..._0x28346d,'forceValue':_0x2b6a98}],'formatGroupId':'blockName'});});}),(_0x1f0854['descriptionFactory']['registerElementLabel']('codeBlock',_0x322ee2=>wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',_0x322ee2)),_0x1f0854['descriptionFactory']['registerDescriptionCallback'](_0x3ce469=>{if('formatBlock'!=_0x3ce469['type'])return;const _0x2766a8=_0x3ffeec['t'],{data:_0x57252a}=_0x3ce469;if(!_0x57252a||'codeBlock'!=_0x57252a['commandName'])return;const _0xf02128=_0x57252a['commandParams'][0x0]['language'],_0x52f6c6=_0x2766a8(_0x31a641['find'](_0x3222ae=>_0x3222ae['language']===_0xf02128)['label'])['toLowerCase']();return _0x57252a['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3ffeec,'*Set\x20format:*\x20%0',wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52f6c6+')')}:{'type':'format','content':wt(_0x3ffeec,'*Remove\x20format:*\x20%0',wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x5bbdab){return'codeBlock'==_0x5bbdab['name'];}var Xt=class extends _0x17c3d7{afterInit(){const _0x18ac36=this['editor'];_0x18ac36['plugins']['has']('CommentsEditing')&&_0x18ac36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x17c3d7{static get requires(){return[Et];}init(){const _0x30e2ce=this['editor'],_0x4d738e=_0x30e2ce['plugins']['get']('TrackChangesEditing');_0x4d738e['enableCommand']('delete');const _0x35487e=_0x30e2ce['commands']['get']('deleteForward');_0x4d738e['enableCommand']('deleteForward',(_0x27e740,_0x1f477e={})=>{const _0x1ff0c6=_0x30e2ce['model']['createSelection'](_0x30e2ce['model']['document']['selection']);_0x1ff0c6['isCollapsed']&&_0x30e2ce['model']['modifySelection'](_0x1ff0c6,{'direction':'forward','unit':_0x1f477e['unit']});const _0x12c08e=_0x1ff0c6['getFirstRange'](),_0x273adf=at['fromRange'](_0x12c08e);let _0x3fc7de;_0x27e740(_0x1f477e),_0x3fc7de='$graveyard'==_0x273adf['root']['rootName']?_0x30e2ce['model']['createRange'](_0x12c08e['start']):_0x30e2ce['model']['createRange'](_0x273adf['start'],_0x273adf['end']),_0x273adf['detach'](),_0x30e2ce['model']['enqueueChange'](_0x35487e['buffer']['batch'],_0x1d5452=>{_0x35487e['buffer']['lock'](),_0x1d5452['setSelection'](_0x1d5452['createRange'](_0x3fc7de['end'])),_0x35487e['buffer']['unlock']();});});}},Yt=class extends _0x17c3d7{afterInit(){const _0x282e4a=this['editor'];if(!_0x282e4a['plugins']['has']('ListEditing'))return;const _0x27f019=_0x282e4a['locale'],_0x2722df=_0x282e4a['plugins']['get']('TrackChangesEditing'),_0x3bb930=_0x282e4a['plugins']['has']('TodoListEditing'),_0x6eb9f4=!!_0x282e4a['config']['get']('list.multiBlock');function _0x35b20d(_0x4405ad){return{'type':'format','content':''+wt(_0x27f019,'*Set\x20format:*\x20%0',_0x4405ad)};}function _0x4d1705(_0x126a5d){return{'type':'format','content':''+wt(_0x27f019,'*Remove\x20format:*\x20%0',_0x126a5d)};}_0x2722df['enableDefaultAttributesIntegration']('numberedList'),_0x2722df['enableDefaultAttributesIntegration']('bulletedList'),_0x2722df['enableDefaultAttributesIntegration']('customNumberedList'),_0x2722df['enableDefaultAttributesIntegration']('customBulletedList'),_0x2722df['enableDefaultAttributesIntegration']('indentList'),_0x2722df['enableDefaultAttributesIntegration']('outdentList'),_0x2722df['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2722df['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6eb9f4&&(_0x2722df['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2722df['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3bb930&&(_0x2722df['enableDefaultAttributesIntegration']('todoList'),_0x2722df['enableDefaultAttributesIntegration']('checkTodoList'),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0xe871e3=>{const {data:_0x26f7c6}=_0xe871e3;if(_0x26f7c6&&'todoListChecked'==_0x26f7c6['key'])return{'type':'format','content':_0x26f7c6['newValue']?wt(_0x27f019,'*Check\x20item*'):wt(_0x27f019,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5726f3=>{if(_0x5726f3['batch']['isUndo'])return!0x1;let _0x147b6b=!0x1;const _0x4cc708=_0x2722df['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55099e=>'todoListChecked'===_0x2722df['_getAttributeKey'](_0x55099e));for(const _0x39435f of _0x4cc708)'todo'!=_0x39435f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2722df['_findSuggestions'](_0x39435f['getFirstRange'](),'attribute')['find'](_0x3da9d1=>'listType'===_0x2722df['_getAttributeKey'](_0x3da9d1['suggestion']))||(_0x5726f3['removeMarker'](_0x39435f['getFirstMarker']()),_0x147b6b=!0x0));return _0x147b6b;})),_0x2722df['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x27f019,'FORMAT_INDENT'));const _0x2762bd={'type':'format','content':''};_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0xf12f95=>{const {data:_0x59d3a3}=_0xf12f95;if(!_0x59d3a3||'listType'!=_0x59d3a3['key'])return;let _0x2c5c52=_0xf12f95['head'];for(;_0x2c5c52;){if(_0x2c5c52['data']&&(('listStyle'==_0x2c5c52['data']['key']||'listMarkerStyle'==_0x2c5c52['data']['key'])&&(_0x2c5c52['data']['newValue']&&'default'!=_0x2c5c52['data']['newValue']||'default'!=_0x2c5c52['data']['oldValue']&&!_0x59d3a3['newValue'])||!_0x6eb9f4&&'$elementName'==_0x2c5c52['data']['key']))return _0x2762bd;_0x2c5c52=_0x2c5c52['next'];}if(null==_0x59d3a3['newValue'])switch(_0x59d3a3['oldValue']){case'bulleted':return _0x4d1705(wt(_0x27f019,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d1705(wt(_0x27f019,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d1705(wt(_0x27f019,'ELEMENT_TODO_LIST'));}switch(_0x59d3a3['newValue']){case'bulleted':return _0x35b20d(wt(_0x27f019,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b20d(wt(_0x27f019,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b20d(wt(_0x27f019,'ELEMENT_TODO_LIST'));}}),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0x2ab78f=>{const {data:_0x16187e}=_0x2ab78f;if(_0x16187e&&'listIndent'==_0x16187e['key'])return null==_0x16187e['newValue']||null==_0x16187e['oldValue']&&0x0==_0x16187e['newValue']?_0x2762bd:void 0x0;}),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0x2de877=>{if('attribute'!=_0x2de877['type'])return;const {data:_0x157f51}=_0x2de877;if(!_0x157f51||'listItemId'!=_0x157f51['key'])return;const _0x569fa1=Qt(_0x2de877);return'newValue'==_0x569fa1?{'type':'format','content':wt(_0x27f019,'*Merge:*\x20list\x20item')}:'oldValue'==_0x569fa1?{'type':'format','content':wt(_0x27f019,'*Split:*\x20list\x20item')}:_0x2762bd;}),_0x282e4a['model']['document']['registerPostFixer'](_0x3c9384=>this['listItemIdFixer'](_0x3c9384)),_0x282e4a['model']['document']['registerPostFixer'](_0x301368=>this['noTrackChangesFixer'](_0x301368)),_0x282e4a['model']['document']['on']('change:data',(_0x1b648a,_0x148ce5)=>{if(_0x148ce5['isUndo']||!_0x148ce5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0xb9a336){if(_0xb9a336['batch']['isUndo']||!_0xb9a336['batch']['isLocal'])return!0x1;let _0x2c44d6=!0x1;const _0x1a17e9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cf1a2=>_0x3cf1a2['data']&&'listItemId'==_0x3cf1a2['data']['key'])['filter'](_0x1196ac=>_0x1196ac['data']['newValue']&&_0x1196ac['data']['oldValue']);for(const _0xc15c2e of _0x1a17e9)Qt(_0xc15c2e)||(_0xb9a336['removeMarker'](_0xc15c2e['getFirstMarker']()),_0x2c44d6=!0x0);return _0x2c44d6;}['noTrackChangesFixer'](_0x267295){if(_0x267295['batch']['isUndo']||!_0x267295['batch']['isLocal'])return!0x1;const _0x300ae1=this['editor']['model']['document']['differ'],_0x3a47a1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a47a1['trackChangesCommand']['value'])return!0x1;let _0xe6649b=!0x1;const _0x118f4c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x442b98=_0x300ae1['getChanges']()['filter'](_0x3ecf3f=>'attribute'==_0x3ecf3f['type'])['filter'](_0x5042e2=>_0x118f4c['has'](_0x5042e2['attributeKey']));if(0x0==_0x442b98['length'])return _0xe6649b;const _0x363e8e=new Set(_0x300ae1['getMarkersToAdd']()['filter'](_0x29345a=>{if(!_0x29345a['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x201879=nt(_0x29345a['name'])['subType']['split']('|')[0x0];return _0x118f4c['has'](_0x201879);})['map'](_0x13680f=>nt(_0x13680f['name'])['id']));for(const _0x2f685a of _0x442b98){const _0x4e2be5=_0x3a47a1['_findSuggestions'](_0x2f685a['range'],'attribute')['filter'](_0x1da86e=>{if(_0x1da86e['meta']['isNextTo'])return!0x1;if(_0x363e8e['has'](_0x1da86e['suggestion']['id']))return!0x1;const _0x1f6202=_0x3a47a1['_getAttributeKey'](_0x1da86e['suggestion']);return _0x118f4c['has'](_0x1f6202);})['map'](_0x3595c6=>_0x3595c6['suggestion']);if(_0x4e2be5['length']){for(const _0x1cde89 of _0x4e2be5)_0x267295['removeMarker'](_0x1cde89['getFirstMarker']());_0xe6649b=!0x0;}}return _0xe6649b;}['assureChains'](){const _0x1cee2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176bae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1486dd;const _0x1fa105=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x525802=>{if(_0x525802['data']['oldRange']||!_0x525802['data']['newRange'])return null;if(!_0x525802['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20971e}=nt(_0x525802['name']);if(!_0x1cee2c['hasSuggestion'](_0x20971e))return null;const _0x33f2e7=_0x1cee2c['getSuggestion'](_0x20971e);return _0x176bae['includes'](_0x33f2e7['data']['key']);})['map'](_0x363304=>{const {id:_0x4a95c5}=nt(_0x363304['name']),_0x721947=_0x1cee2c['getSuggestion'](_0x4a95c5);return _0x1486dd=_0x721947['attributes']['groupId'],_0x721947['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1fa105['size'])return;const _0x43025a=_0x1cee2c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52643d=>'attribute'==_0x52643d['type']&&_0x52643d['data']&&_0x176bae['includes'](_0x52643d['data']['key'])&&_0x52643d['attributes']['groupId']!=_0x1486dd)['map'](_0x2e5148=>({'listItem':_0x2e5148['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2e5148['attributes']['groupId']})),_0x45d905=new Set();for(const {groupId:_0x465764,listItem:_0x2de9c3}of _0x43025a)_0x1fa105['has'](_0x2de9c3)&&_0x45d905['add'](_0x465764);for(const _0x571b67 of _0x1cee2c['getSuggestions']())_0x45d905['has'](_0x571b67['attributes']['groupId'])&&_0x571b67['setAttribute']('groupId',_0x1486dd);}_supportLegacySuggestions(){const _0x4a0142=this['editor'],_0x26bb09=_0x4a0142['locale'],_0x59f9ce=_0x4a0142['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59f9ce['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x28c3e2,_0x1d8b5d){const _0x3a784c=[];for(let _0x47cb17 of _0x28c3e2)_0x47cb17['start']['nodeAfter']===_0x47cb17['end']['parent']&&(_0x47cb17=_0x4a0142['model']['createRange'](_0x4a0142['model']['createPositionAt'](_0x47cb17['start']['nodeAfter'],0x0))),_0x3a784c['push'](_0x47cb17);_0x4a0142['model']['change'](_0x5f53a7=>{const _0x190f86=_0x4a0142['model']['document']['selection'],_0x4dab9f=Array['from'](_0x190f86['getRanges']())['map'](_0x3e173c=>at['fromRange'](_0x3e173c));_0x5f53a7['setSelection'](_0x3a784c),_0x4a0142['commands']['get'](_0x1d8b5d['commandName'])['refresh'](),_0x1d8b5d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a0142['execute'](_0x1d8b5d['commandName'],..._0x1d8b5d['commandParams']),_0x5f53a7['setSelection'](_0x4dab9f);for(const _0x393f3a of _0x4dab9f)_0x393f3a['detach']();});}),_0x59f9ce['descriptionFactory']['registerElementLabel'](function(_0x2cd940){const _0x2bfe55=!_0x4a0142['model']['schema']['isObject'](_0x2cd940),_0x43ff69=_0x2cd940['previousSibling'],_0x118fd1=_0x2cd940['nextSibling'],_0x3b8097=_0x2cd940['getAttribute']('listItemId'),_0x59122f=!_0x43ff69||_0x43ff69['getAttribute']('listItemId')!==_0x3b8097,_0x5ebdc2=!_0x118fd1||_0x118fd1['getAttribute']('listItemId')!==_0x3b8097;return _0x2bfe55&&Boolean(_0x3b8097)&&_0x59122f&&_0x5ebdc2;},_0x1d981b=>wt(_0x26bb09,'ELEMENT_LIST_ITEM',_0x1d981b));}_registerLegacyDescription(){const _0x3f99db=this['editor'],_0x4e681d=_0x3f99db['locale'];function _0x4d8ef7(_0x42e42c){const _0x2128e4=_0x3f99db['commands']['get']('bulletedList')['value'],_0x738add=_0x3f99db['commands']['get']('numberedList')['value'];return'numberedList'===_0x42e42c?_0x2128e4:_0x738add;}_0x3f99db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2e7f48){if('formatBlock'!=_0x2e7f48['type'])return;const {data:_0x235ab4}=_0x2e7f48;if(!_0x235ab4)return;let _0x212a73,_0x4ea723,_0x393982,_0xa2658a;switch(_0x235ab4['commandName']){case'bulletedList':_0x393982=_0x235ab4['commandParams'][0x0]['forceValue'],_0xa2658a=_0x4d8ef7(_0x235ab4['commandName']),_0x212a73=_0x393982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2658a&&_0x3f99db['config']['get']('list.multiBlock')||(_0x212a73='*Change\x20to:*\x20%0'),_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x393982=_0x235ab4['commandParams'][0x0]['forceValue'],_0xa2658a=_0x4d8ef7(_0x235ab4['commandName']),_0x212a73=_0x393982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2658a&&_0x3f99db['config']['get']('list.multiBlock')||(_0x212a73='*Change\x20to:*\x20%0'),_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x212a73='*Indent:*\x20%0',_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x212a73=function(_0x57aea1){const _0x37edf2=_0x57aea1['getFirstRange']();let _0x4de00c=_0x37edf2['start']['nodeAfter'];for(;_0x4de00c&&_0x37edf2['containsItem'](_0x4de00c);){if(_0x4de00c['getAttribute']('listIndent')>0x0)return!0x1;_0x4de00c=_0x4de00c['nextSibling'];}return!0x0;}(_0x2e7f48)?wt(_0x4e681d,'*Format:*\x20remove\x20from\x20%0',wt(_0x4e681d,function(_0x50b879){return'ELEMENT_'+_0x50b879['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2e7f48))):wt(_0x4e681d,'*Outdent:*\x20%0',wt(_0x4e681d,'ELEMENT_LIST_ITEM')),_0x4ea723={'type':'format','content':_0x212a73};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x235ab4['multipleBlocks']&&(_0x212a73='*Merge:*\x20%0',_0x4ea723={'type':'deletion','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_LIST_ITEM'))});}return _0x4ea723;});}};function Qt(_0x44454f){let _0x4b8006=_0x44454f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b8006;){const _0xba65d7=_0x4b8006['getAttribute']('listItemId');if(!_0xba65d7)return!0x1;if(_0xba65d7==_0x44454f['data']['newValue'])return'newValue';if(_0xba65d7==_0x44454f['data']['oldValue'])return'oldValue';_0x4b8006=_0x4b8006['previousSibling'];}return!0x1;}var Zt=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4565c0=this['editor']['config']['get']('list.properties'),_0x5627b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4565c0['styles']&&_0x5627b9['enableDefaultAttributesIntegration']('listStyle'),_0x4565c0['reversed']&&_0x5627b9['enableDefaultAttributesIntegration']('listReversed'),_0x4565c0['startIndex']&&_0x5627b9['enableDefaultAttributesIntegration']('listStart');const _0x435fc4={'type':'format','content':''};_0x5627b9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b51e5=this['editor']['locale'];_0x5627b9['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x2b51e5,'FORMAT_LIST_REVERSED')),_0x5627b9['descriptionFactory']['registerDescriptionCallback'](_0x3a4739=>{const {data:_0x397409}=_0x3a4739;if(_0x397409&&'listReversed'==_0x397409['key'])return null==_0x397409['newValue']||0x0==_0x397409['newValue']&&null==_0x397409['oldValue']?_0x435fc4:void 0x0;}),_0x5627b9['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x2b51e5,'FORMAT_LIST_START')),_0x5627b9['descriptionFactory']['registerDescriptionCallback'](_0x10a7bd=>{const {data:_0x3582c8}=_0x10a7bd;if(_0x3582c8&&'listStart'==_0x3582c8['key'])return null==_0x3582c8['newValue']||0x1==_0x3582c8['newValue']&&null==_0x3582c8['oldValue']?_0x435fc4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4992b3=>{if(_0x4992b3['batch']['isUndo'])return!0x1;let _0x8c5486=!0x1;const _0x3537a6=_0x5627b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406f2a=>{const _0x52fd1e=_0x5627b9['_getAttributeKey'](_0x406f2a);return'listStart'==_0x52fd1e||'listReversed'==_0x52fd1e;});for(const _0x2ee530 of _0x3537a6){const _0x97a56f=_0x2ee530['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x97a56f&&'customNumbered'!=_0x97a56f&&(_0x5627b9['_findSuggestions'](_0x2ee530['getFirstRange'](),'attribute')['find'](_0x3aebbf=>'listType'==_0x5627b9['_getAttributeKey'](_0x3aebbf['suggestion']))||(_0x4992b3['removeMarker'](_0x2ee530['getFirstMarker']()),_0x8c5486=!0x0));}return _0x8c5486;}),this['_registerLegacyDescription']();}handleDescriptions(_0x53f66d){const _0x4a6a34=this['editor']['locale'],{data:_0x520e7d}=_0x53f66d,_0x4adf15={'type':'format','content':''};if(!_0x520e7d||'listStyle'!=_0x520e7d['key'])return;if(!_0x520e7d['oldValue'])return'default'==_0x520e7d['newValue']?_0x4adf15:{'type':'format','content':''+wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['newValue'])))};if(!_0x520e7d['newValue']){if('default'==_0x520e7d['oldValue'])return _0x4adf15;let _0x407697=_0x53f66d['head'];for(;_0x407697;){if(_0x407697['data']&&'listType'==_0x407697['data']['key']&&_0x407697['data']['newValue'])return _0x4adf15;_0x407697=_0x407697['next'];}return{'type':'format','content':''+wt(_0x4a6a34,'*Remove\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['oldValue'])))};}if('default'!=_0x520e7d['newValue'])return{'type':'format','content':''+wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['newValue'])))};let _0x48d737=_0x53f66d['head'];for(;_0x48d737;){if(_0x48d737['data']&&'listType'==_0x48d737['data']['key']&&_0x48d737['data']['newValue']&&_0x48d737['data']['oldValue'])return _0x4adf15;_0x48d737=_0x48d737['next'];}return{'type':'format','content':wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,'ELEMENT_'+_0x53f66d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x210e75=this['editor'],_0x1c731d=_0x210e75['locale'];_0x210e75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e442b=>{if('formatBlock'!=_0x3e442b['type'])return;const {data:_0x8e917}=_0x3e442b;if(!_0x8e917)return;let _0x6adfa,_0x1ead01;switch(_0x8e917['commandName']){case'listStyle':_0x6adfa='*Change\x20to:*\x20%0',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa,wt(_0x1c731d,this['_getTranslationKeyForListStyle'](_0x8e917['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6adfa=_0x8e917['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa)};break;case'listStart':_0x6adfa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa,_0x8e917['commandParams'][0x0]['startIndex'])};}return _0x1ead01;});}_getTranslationKeyForListStyle(_0x47057b){return'ELEMENT_'+(_0x3ab5d1=_0x47057b,Jt['includes'](_0x3ab5d1)?'bulleted':te['includes'](_0x3ab5d1)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x47057b['toUpperCase']()['replace'](/-/g,'_');var _0x3ab5d1;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x17c3d7{afterInit(){const _0x12b127=this['editor'];_0x12b127['commands']['get']('emoji')&&_0x12b127['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x17c3d7{static get requires(){return[_t];}init(){const _0x1c10ee=this['editor'],_0x1246b5=_0x1c10ee['plugins']['get']('TrackChangesEditing'),_0x472ccc=_0x1c10ee['commands']['get']('enter');_0x1246b5['enableCommand']('enter',()=>{_0x1c10ee['model']['change'](_0x2d0e5a=>{const _0x1dbdc9=_0x1c10ee['model']['document']['selection'],_0x8aeae1=_0x1dbdc9['getFirstPosition'](),_0xaff3ee=at['fromRange'](_0x1dbdc9['getFirstRange']());if(_0x472ccc['enterBlock'](_0x2d0e5a)){const _0x98c142=_0x1c10ee['model']['createPositionAt'](_0x8aeae1['parent']['nextSibling'],0x0),_0x17d405=_0x2d0e5a['createRange'](_0x8aeae1,_0x98c142);_0x1246b5['markInsertion'](_0x17d405);}else _0x2d0e5a['setSelection'](_0x2d0e5a['createRange'](_0xaff3ee['end']));_0xaff3ee['detach'](),_0x472ccc['fire']('afterExecute',{'writer':_0x2d0e5a});});});}},ie=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3b86da=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b86da['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3b86da['enableCommand']('findNext'),_0x3b86da['enableCommand']('findPrevious'),_0x3b86da['enableCommand']('replace'),_0x3b86da['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b0bc5,_0x20ad46,_0x5c5495={}){const _0x3a92f4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b0bc5(_0x6a1d33=>{let _0x223e55=('string'==typeof _0x20ad46?_0x3a92f4['findByTextCallback'](_0x20ad46,_0x5c5495):_0x20ad46)(_0x6a1d33);Array['isArray'](_0x223e55)&&(_0x223e55={'results':_0x223e55,'searchText':'string'==typeof _0x20ad46?_0x20ad46:''});const _0x4f320d=_0x223e55['results']['filter'](_0x123edf=>!0x1===this['_isInDeletionRange'](_0x123edf,_0x6a1d33['item']));return{..._0x223e55,'results':_0x4f320d};},_0x5c5495);}_isInDeletionRange(_0xa74dd7,_0x4a1f1){const _0x1fc37e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a1f1,_0xa74dd7['start']),this['editor']['model']['createPositionAt'](_0x4a1f1,_0xa74dd7['end']));for(const _0x3dbe9a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1fc37e['getIntersection'](_0x3dbe9a['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x17c3d7{afterInit(){const _0x293cf3=this['editor']['locale'],_0x1502ca=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xa6526,commandName:_0x4a5690}of se)this['editor']['plugins']['has'](_0xa6526)&&_0x1502ca['enableDefaultAttributesIntegration'](_0x4a5690);_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x293cf3,'FORMAT_FONT_SIZE')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x293cf3,'FORMAT_FONT_FAMILY')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x293cf3,'FORMAT_FONT_COLOR')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x293cf3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x454872=this['editor'],_0x40ebec=_0x454872['locale'];_0x454872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522227=>{const _0x110946=_0x40ebec['t'];if('formatInline'!=_0x522227['type'])return;const {data:_0x16ea25}=_0x522227;if(null!=_0x16ea25){if('fontSize'==_0x16ea25['commandName']){const _0x594377=_0x16ea25['commandParams'][0x0]['value'];if(_0x594377){const _0x5bf734=_0x110946(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x768f1e=>_0x768f1e['model']==_0x594377)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20size:*\x20%0',_0x5bf734)};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16ea25['commandName']){const _0x3d7dec=_0x16ea25['commandParams'][0x0]['value'];return _0x3d7dec?{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20family:*\x20%0',_0x3d7dec)}:{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16ea25['commandName']){const _0x488e3b=_0x16ea25['commandParams'][0x0]['value'];if(_0x488e3b){const _0x2045f9=_0x1171c6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c6a20=>_0x1c6a20['model']==_0x488e3b);let _0x17dcb8=_0x488e3b,_0x15cad2='';return _0x2045f9&&(_0x17dcb8=_0x2045f9['label'],_0x15cad2=_0x3b5c48(_0x40ebec,_0x17dcb8)['toLowerCase']()),{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20color:*\x20%0',_0x15cad2)['trim'](),'color':{'value':_0x488e3b,'title':_0x15cad2||_0x17dcb8}};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16ea25['commandName']){const _0x2f6330=_0x16ea25['commandParams'][0x0]['value'];if(_0x2f6330){const _0x18ffd5=_0x1171c6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4660e3=>_0x4660e3['model']==_0x2f6330);let _0x17d806=_0x2f6330,_0x874e2f='';return _0x18ffd5&&(_0x17d806=_0x18ffd5['label'],_0x874e2f=_0x3b5c48(_0x40ebec,_0x17d806)['toLowerCase']()),{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20background\x20color:*\x20%0',_0x874e2f)['trim'](),'color':{'value':_0x2f6330,'title':_0x874e2f||_0x17d806}};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x17c3d7{afterInit(){const {plugins:_0x172821}=this['editor'];_0x172821['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x172821['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x19304e,plugins:_0x57c07e,commands:_0x1c39ee}=this['editor'],_0x3f85af=_0x57c07e['get']('TrackChangesEditing');_0x1c39ee['get']('footnotesStyle')&&_0x3f85af['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1c39ee['get']('footnotesStart')&&_0x3f85af['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f85af['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x19304e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f85af['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x19304e,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x33ce92=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x354043,commands:_0x52b982}=this['editor'];_0x52b982['get']('insertFootnote')&&_0x33ce92['enableCommand']('insertFootnote'),_0x33ce92['descriptionFactory']['registerElementLabel']('footnoteRef',_0x345f94=>wt(_0x354043,'ELEMENT_FOOTNOTE_REF',_0x345f94)),_0x33ce92['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4f6bd5=>wt(_0x354043,'ELEMENT_FOOTNOTE_DEFINITION',_0x4f6bd5)),_0x33ce92['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3cd9d4=>wt(_0x354043,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3cd9d4));}},ae=class extends _0x17c3d7{afterInit(){const _0x16911a=this['editor'],_0x5b15fb=_0x16911a['plugins']['get']('TrackChangesEditing'),_0x20fa45=_0x16911a['commands']['get']('copyFormat'),_0x32b9e9=_0x16911a['commands']['get']('pasteFormat');_0x20fa45&&_0x32b9e9&&(_0x5b15fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b15fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x84e6cc=this['editor'],_0x2c74eb=_0x84e6cc['locale'];_0x84e6cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15edca=>{if('formatBlock'!=_0x15edca['type']&&'formatInline'!=_0x15edca['type'])return;const {data:_0x4aabd1}=_0x15edca;if(_0x4aabd1&&'pasteFormat'===_0x4aabd1['commandName']){const _0x61e23e=[],_0xc3051a=_0x4aabd1['commandParams'][0x0];for(const [_0x4e9de7,_0x5086fa]of Object['entries'](_0xc3051a))_0x61e23e['push'](ce(_0x84e6cc,_0x4e9de7,_0x5086fa));return _0x61e23e['length']?{'type':'format','content':wt(_0x2c74eb,'*Set\x20format\x20to:*\x20%0',_0x61e23e['join'](',\x20'))}:{'type':'format','content':wt(_0x2c74eb,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x3cd89a,_0x12c806,_0x145e35){const _0x58bbc2=_0x3cd89a['locale'],_0x276c8d=_0x58bbc2['t'],_0x16b87f=_0x12c806['split'](/(?=[A-Z])/)['join']('\x20'),_0x11e817=_0x276c8d(_0x16b87f['charAt'](0x0)['toUpperCase']()+_0x16b87f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x145e35)return _0x11e817;if('fontColor'===_0x12c806||'fontBackgroundColor'===_0x12c806){const _0x26047a=_0x1171c6(_0x3cd89a['config']['get']('fontColor.colors'))['find'](_0x1fd746=>_0x1fd746['model']==_0x145e35);return _0x11e817+'\x20('+(_0x26047a?_0x3b5c48(_0x58bbc2,_0x26047a['label'])['toLowerCase']():_0x145e35)+')';}if('fontSize'===_0x12c806&&isNaN(parseFloat(_0x145e35))){const _0x43a3a5=_0x3cd89a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd89a['config']['get']('fontSize.options'))['find'](_0x275717=>_0x275717['model']==_0x145e35);return _0x11e817+'\x20('+(_0x43a3a5?_0x276c8d(_0x43a3a5['title'])['toLowerCase']():_0x145e35)+')';}return _0x11e817+'\x20('+_0x145e35+')';}var le=class extends _0x17c3d7{afterInit(){const _0x5359d2=this['editor'];if(!_0x5359d2['plugins']['has']('GeneralHtmlSupport')||!_0x5359d2['plugins']['has']('DataSchema'))return;const _0x29d1f1=_0x5359d2['plugins']['get']('TrackChangesEditing'),_0x316744=_0x5359d2['plugins']['get']('GeneralHtmlSupport'),_0x9a2b5=_0x5359d2['plugins']['get']('DataSchema'),_0x4590b7=_0x5359d2['locale'],_0x35ec3b=new Set(['htmlContent']);for(const _0x3a1cee of _0x9a2b5['getDefinitionsForView'](/.*/,!0x1)){const _0x290949=_0x3a1cee['view'],_0x56c4d9=_0x316744['getGhsAttributeNameForElement'](_0x290949);_0x35ec3b['add'](_0x56c4d9),!_0x3a1cee['isInline']||_0x3a1cee['isObject']||'appliesToBlock'in _0x3a1cee&&_0x3a1cee['appliesToBlock']||_0x29d1f1['descriptionFactory']['registerAttributeLabel'](_0x56c4d9,_0x290949),_0x3a1cee['model']['startsWith']('html')&&_0x29d1f1['descriptionFactory']['registerElementLabel'](_0x3a1cee['model'],_0x38d4db=>wt(_0x4590b7,'ELEMENT_HTML_TAG',[_0x38d4db,_0x290949]));}_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x4590b7,'FORMAT_RAW_HTML_CONTENT')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x4590b7,'FORMAT_HTML_LIST_ITEM')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x4590b7,'FORMAT_HTML_BULLETED_LIST')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x4590b7,'FORMAT_HTML_NUMBERED_LIST')),_0x29d1f1['descriptionFactory']['registerDescriptionCallback'](_0x95d87f=>{if('attribute'!==_0x95d87f['type'])return;const _0x4f89c8=_0x95d87f['data'];if(!_0x4f89c8||!_0x35ec3b['has'](_0x4f89c8['key']))return;if('htmlContent'===_0x4f89c8['key'])return{'type':'format','content':wt(_0x4590b7,'*Change\x20%0\x20content*',wt(_0x4590b7,'ELEMENT_RAW_HTML'))};const {setItems:_0x3a981d,removeItems:_0x17be8e}=function(_0x51a346,_0x376177,_0x3324b5){const _0x289306=[],_0x3c9833=[],_0x303c1d=_0x51a346['styles']??{},_0xc832af=_0x376177['styles']??{};for(const _0x8452a9 of new Set([...Object['keys'](_0x303c1d),...Object['keys'](_0xc832af)]))_0x303c1d[_0x8452a9]!==_0xc832af[_0x8452a9]&&(void 0x0===_0xc832af[_0x8452a9]?_0x3c9833['push'](_0x8452a9):_0x289306['push'](_0x8452a9+'\x20('+_0xc832af[_0x8452a9]+')'));const _0x5e2b07=wt(_0x3324b5,'FORMAT_HTML_CLASS'),_0x1b1ca0=new Set(_0x51a346['classes']??[]),_0x340e74=new Set(_0x376177['classes']??[]),_0x4cdebd=[..._0x340e74]['some'](_0xfa1936=>!_0x1b1ca0['has'](_0xfa1936)),_0x47815f=[..._0x1b1ca0]['some'](_0x3d3622=>!_0x340e74['has'](_0x3d3622));_0x4cdebd&&_0x289306['push'](_0x5e2b07),_0x47815f&&_0x3c9833['push'](_0x5e2b07);const _0x3b2343=wt(_0x3324b5,'FORMAT_HTML_ATTRIBUTE'),_0x122eb2=_0x51a346['attributes']??{},_0x207e76=_0x376177['attributes']??{};let _0x369ece=!0x1,_0x43b026=!0x1;for(const _0x407a5c of new Set([...Object['keys'](_0x122eb2),...Object['keys'](_0x207e76)]))_0x122eb2[_0x407a5c]!==_0x207e76[_0x407a5c]&&(void 0x0===_0x207e76[_0x407a5c]?_0x43b026=!0x0:_0x369ece=!0x0);return _0x369ece&&_0x289306['push'](_0x3b2343),_0x43b026&&_0x3c9833['push'](_0x3b2343),{'setItems':_0x289306,'removeItems':_0x3c9833};}(_0x4f89c8['oldValue']??{},_0x4f89c8['newValue']??{},_0x4590b7);if(!_0x3a981d['length']&&!_0x17be8e['length'])return;const _0x291a54=[];return _0x3a981d['length']&&_0x291a54['push'](wt(_0x4590b7,'*Set\x20format:*\x20%0',_0x3a981d['join'](',\x20'))),_0x17be8e['length']&&_0x291a54['push'](wt(_0x4590b7,'*Remove\x20format:*\x20%0',_0x17be8e['join'](',\x20'))),{'type':'format','content':_0x291a54['join']('\x0a')};});}},ue=class extends _0x17c3d7{_headingOptions;afterInit(){const _0x4dbd39=this['editor'];if(!_0x4dbd39['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dbd39['config']['get']('heading.options');const _0x140f6c=_0x4dbd39['locale'],_0x41afa5=_0x4dbd39['plugins']['get']('TrackChangesEditing');_0x41afa5['enableDefaultAttributesIntegration']('heading');for(const _0x26af38 of this['_headingOptions'])'paragraph'!=_0x26af38['model']&&_0x41afa5['descriptionFactory']['registerElementLabel'](_0x26af38['model'],_0x4556fa=>{const _0x3f3f21=this['_getHeadingLevel'](_0x26af38['model']);return null!==_0x3f3f21?_0x1e60ec(_0x4556fa,_0x3f3f21):_0x546d0e(_0x4556fa,_0x26af38['title']);});function _0x1e60ec(_0x3a6367,_0x6f2da9){return wt(_0x140f6c,'ELEMENT_HEADING',[_0x3a6367,_0x6f2da9]);}function _0x546d0e(_0x18583d,_0x426abf){return wt(_0x140f6c,'ELEMENT_HEADING_CUSTOM',[_0x18583d,_0x426abf]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c3313=this['editor'],_0x6615ad=_0x1c3313['locale'];function _0x5957b5(_0x3eccf6,_0x2db898){return wt(_0x6615ad,'ELEMENT_HEADING_CUSTOM',[_0x3eccf6,_0x2db898]);}_0x1c3313['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed185=>{if('formatBlock'!=_0x2ed185['type'])return;const {data:_0x1f34d8}=_0x2ed185;if(_0x1f34d8&&'heading'==_0x1f34d8['commandName']){const _0x333878=_0x1f34d8['commandParams'][0x0]['value'],_0x1f364a=this['_getHeadingLevel'](_0x333878);if(null!==_0x1f364a)return{'type':'format','content':wt(_0x6615ad,'*Change\x20to:*\x20%0',(_0x491c0d=0x1,_0x55f355=_0x1f364a,wt(_0x6615ad,'ELEMENT_HEADING',[_0x491c0d,_0x55f355])))};const _0xcd69a=this['_headingOptions']['find'](_0x2f28d2=>_0x2f28d2['model']===_0x333878)['title'];return{'type':'format','content':wt(_0x6615ad,'*Change\x20to:*\x20%0',_0x5957b5(0x1,_0xcd69a))};}var _0x491c0d,_0x55f355;});}_getHeadingLevel(_0x334e74){const _0x1efce2=_0x334e74['match'](/^heading(\d+)/);if(_0x1efce2)return _0x1efce2[0x1];const _0x36689d=this['_headingOptions']?.['find'](_0x3b31db=>_0x3b31db['model']==_0x334e74);if(_0x36689d&&_0x36689d['view']){const _0x51b1fb=_0x36689d['view'],_0x51ce50=(_0x51b1fb['name']??_0x51b1fb)['match'](/^h(\d+)/);if(_0x51ce50)return _0x51ce50[0x1];}return null;}},de=class extends _0x17c3d7{afterInit(){const _0x2ad489=this['editor'];if(!_0x2ad489['plugins']['has']('HighlightEditing'))return;const _0x5d8d41=_0x2ad489['plugins']['get']('TrackChangesEditing'),_0x9d3691=_0x2ad489['locale'];_0x5d8d41['enableDefaultAttributesIntegration']('highlight'),_0x5d8d41['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x9d3691,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4bfd3e=this['editor'],_0x7db072=_0x4bfd3e['locale'];_0x4bfd3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2514e8=>{if('formatInline'!=_0x2514e8['type'])return;const {data:_0x240363}=_0x2514e8;if(_0x240363&&'highlight'==_0x240363['commandName']){const _0xbffe67=_0x7db072['t'],_0x125439=_0x240363['commandParams'][0x0]['value'];if(_0x125439){const _0x56a0d8=_0x4bfd3e['config']['get']('highlight.options')['find'](_0x1b6094=>_0x1b6094['model']==_0x125439),_0x14f608=_0xbffe67(_0x56a0d8['title'])['toLowerCase']();return{'type':'format','content':wt(_0x7db072,'*Set\x20highlight:*\x20%0',_0x14f608),'color':{'value':_0x56a0d8['color'],'title':_0x56a0d8['title']}};}return{'type':'format','content':wt(_0x7db072,'*Remove\x20highlight*',wt(_0x7db072,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x17c3d7{afterInit(){const _0x1337e4=this['editor'];if(!_0x1337e4['plugins']['has']('HorizontalLineEditing'))return;_0x1337e4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50d20d=_0x1337e4['plugins']['get']('TrackChangesEditing'),_0x5c121=_0x1337e4['locale'];_0x50d20d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x27b85e=>wt(_0x5c121,'ELEMENT_HORIZONTAL_LINE',_0x27b85e));}},ge=class extends _0x17c3d7{afterInit(){const _0x53fdf7=this['editor'];if(!_0x53fdf7['plugins']['has']('HtmlEmbed'))return;const _0x204e34=_0x53fdf7['plugins']['get']('TrackChangesEditing'),_0x13914c=_0x53fdf7['locale'];_0x204e34['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ada02=>wt(_0x13914c,'ELEMENT_HTML_EMBED',_0x2ada02)),_0x204e34['enableDefaultAttributesIntegration']('htmlEmbed'),_0x204e34['descriptionFactory']['registerDescriptionCallback'](_0x1ffeb4=>{if('attribute'!=_0x1ffeb4['type'])return;const {data:_0x14756c}=_0x1ffeb4;if(_0x14756c&&'value'==_0x14756c['key']&&_0x1ffeb4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2bd234=wt(_0x13914c,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x13914c,'*Change\x20%0\x20content*',_0x2bd234)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x14afa4=this['editor'],_0x4bf7da=_0x14afa4['locale'];_0x14afa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac0bf=>{if('formatBlock'!=_0x4ac0bf['type'])return;const {data:_0x297efa}=_0x4ac0bf;if(_0x297efa&&'htmlEmbed'==_0x297efa['commandName']){const _0xe5b51a=wt(_0x4bf7da,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x4bf7da,'*Change\x20%0\x20content*',_0xe5b51a)};}});}},fe=class extends _0x17c3d7{afterInit(){const _0x1f9708=this['editor'];if(!_0x1f9708['plugins']['has']('ImageEditing'))return;const _0x4b281a=_0x1f9708['plugins']['get']('TrackChangesEditing'),_0x449744=_0x1f9708['plugins']['get']('ImageUtils'),_0x389fb1=_0x1f9708['locale'];_0x4b281a['enableCommand']('insertImage'),_0x4b281a['descriptionFactory']['registerElementLabel']('imageBlock',_0x564240=>wt(_0x389fb1,'ELEMENT_IMAGE',_0x564240)),_0x4b281a['descriptionFactory']['registerElementLabel']('imageInline',_0x4183c0=>wt(_0x389fb1,'ELEMENT_INLINE_IMAGE',_0x4183c0)),_0x4b281a['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x389fb1,'ELEMENT_CAPTION')),_0x1f9708['plugins']['has']('ImageUploadEditing')&&_0x4b281a['enableCommand']('uploadImage'),_0x1f9708['plugins']['has']('ImageBlockEditing')&&_0x1f9708['plugins']['has']('ImageInlineEditing')&&(_0x4b281a['enableCommand']('imageTypeInline',(_0xf26041,_0x3e7d86)=>{const _0x17fe61=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']);_0x1f9708['model']['change'](()=>{_0x4b281a['markBlockFormat'](_0x17fe61,{'commandName':'imageTypeInline','commandParams':[_0x3e7d86]},[],'convertBlockImageToInline');});}),_0x4b281a['enableCommand']('imageTypeBlock',(_0x3fc176,_0x49785b)=>{_0x1f9708['model']['change'](_0x17244f=>{let _0x2e52ef=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0xa984d3=_0x17244f['createRangeOn'](_0x2e52ef);const _0x4c45c6=ot['fromPosition'](_0xa984d3['start'],'toPrevious'),_0x51ae24=ot['fromPosition'](_0xa984d3['end'],'toNext');_0x4b281a['forceDefaultExecution'](()=>_0x3fc176(_0x49785b)),_0x2e52ef=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0xa984d3=_0x17244f['createRangeOn'](_0x2e52ef);const _0x4f6536=_0x17244f['createRange'](_0x4c45c6,_0x51ae24);_0x4c45c6['detach'](),_0x51ae24['detach'](),_0x4b281a['markBlockFormat'](_0x2e52ef,{'commandName':'imageTypeInline','commandParams':[_0x49785b]},[],'convertInlineImageToBlock'),_0x4f6536['start']['isBefore'](_0xa984d3['start'])&&_0x4b281a['markInsertion'](_0x17244f['createRange'](_0x4f6536['start'],_0xa984d3['start']),'convertInlineImageToBlock'),_0xa984d3['end']['isBefore'](_0x4f6536['end'])&&_0x4b281a['markInsertion'](_0x17244f['createRange'](_0xa984d3['end'],_0x4f6536['end']),'convertInlineImageToBlock');});}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b281a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x106463])=>{const _0x4d7aad=_0x4b281a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x37b6e3=_0x106463['start'],_0x1f5b1e=_0x106463['end'];const _0x20ca19=_0x1f9708['model']['schema']['getNearestSelectionRange'](_0x37b6e3,'backward'),_0x2bc8c1=_0x1f9708['model']['schema']['getNearestSelectionRange'](_0x1f5b1e,'forward');_0x20ca19['isCollapsed']&&(_0x37b6e3=_0x20ca19['start']),_0x2bc8c1['isCollapsed']&&(_0x1f5b1e=_0x2bc8c1['end']),_0x4d7aad([_0x1f9708['model']['createRange'](_0x37b6e3,_0x1f5b1e)]);}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2a1e56),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2a1e56)),_0x1f9708['plugins']['has']('ImageCaptionEditing')&&(_0x4b281a['enableCommand']('toggleImageCaption',(_0x22af10,_0x30d1b9)=>{const _0x31ba30=_0x1f9708['plugins']['get']('ImageCaptionUtils');let _0x5e2129=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0x140511=_0x31ba30['getCaptionFromImageModelElement'](_0x5e2129);_0x1f9708['model']['change'](()=>{if(_0x140511)return void _0x4b281a['markDeletion'](_0x1f9708['model']['createRangeOn'](_0x140511));const _0x25f850=_0x449744['isBlockImage'](_0x5e2129);_0x22af10(_0x30d1b9),_0x5e2129=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0x140511=_0x31ba30['getCaptionFromImageModelElement'](_0x5e2129),_0x4b281a['markInsertion'](_0x1f9708['model']['createRangeOn'](_0x140511),_0x25f850?null:'imageCaption');});}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2a1e56));const _0x3a933c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38547d(_0x1f4de0,_0x3b1b76){const _0x4ede6b=_0x3a933c['findIndex'](({type:_0x138c28,subType:_0x378f6b})=>_0x1f4de0['type']==_0x138c28&&_0x1f4de0['subType']==_0x378f6b),_0x2946f3=_0x3a933c['findIndex'](({type:_0x39eaa7,subType:_0x14623d})=>_0x3b1b76['type']==_0x39eaa7&&_0x3b1b76['subType']==_0x14623d);if(_0x4ede6b<0x0||_0x2946f3<0x0)return!0x1;const _0x29e3d5=_0x1f4de0['getFirstRange'](),_0x1c70a5=_0x3b1b76['getFirstRange']();if((0x0==_0x4ede6b||0x1==_0x4ede6b)&&0x2==_0x2946f3&&_0x29e3d5['isIntersecting'](_0x1c70a5))return!0x0;if(0x2==_0x4ede6b&&0x3==_0x2946f3){const _0x4ca294=_0x4b281a['_findSuggestions'](_0x29e3d5,'insertion')['filter'](({suggestion:_0x487691,meta:_0x577cda})=>_0x577cda['isOwn']&&'convertInlineImageToBlock'==_0x487691['subType']);if(_0x4ca294['length']>0x1&&_0x1c70a5['end']['isEqual'](_0x29e3d5['start']))return!0x0;if(0x1==_0x4ca294['length']&&(_0x29e3d5['start']['isEqual'](_0x1c70a5['end'])||_0x29e3d5['end']['isEqual'](_0x1c70a5['start'])))return!0x0;}if(0x3==_0x4ede6b&&0x3==_0x2946f3&&_0x29e3d5['start']['isBefore'](_0x1c70a5['start'])){const _0x1e2f18=_0x29e3d5['end']['nodeAfter'],_0x177f72=_0x1c70a5['start']['nodeBefore'];return _0x449744['isBlockImage'](_0x1e2f18)&&_0x1e2f18===_0x177f72;}return!0x1;}function _0x2a1e56(_0x34df06,_0x40ce6e){return _0x38547d(_0x34df06,_0x40ce6e)?[_0x34df06,_0x40ce6e]:_0x38547d(_0x40ce6e,_0x34df06)?[_0x40ce6e,_0x34df06]:null;}_0x1f9708['plugins']['has']('ImageResize')&&(_0x4b281a['enableDefaultAttributesIntegration']('resizeImage'),_0x4b281a['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x389fb1,'FORMAT_IMAGE_SIZE'))),_0x1f9708['plugins']['has']('ImageTextAlternativeEditing')&&_0x4b281a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1f9708['plugins']['has']('PictureEditing')&&_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0xba0b04=>{if('attribute'!=_0xba0b04['type'])return;const {data:_0x2de0b2}=_0xba0b04;return _0x2de0b2&&'sources'==_0x2de0b2['key']?{'type':'format','content':''}:void 0x0;}),_0x1f9708['plugins']['has']('ImageSizeAttributes')&&_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x2a6d6f=>{if('attribute'!=_0x2a6d6f['type'])return;const {data:_0x15ee45}=_0x2a6d6f;return!_0x15ee45||'width'!=_0x15ee45['key']&&'height'!=_0x15ee45['key']?void 0x0:{'type':'format','content':''};}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x15cee4=>{if(_0x3a933c['find'](({type:_0x27dd7f,subType:_0x3e37cd})=>_0x15cee4['type']==_0x27dd7f&&_0x15cee4['subType']==_0x3e37cd))return _0x15cee4['previous']?{}:void 0x0;}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x2716fb=>{if('insertion'==_0x2716fb['type']||'deletion'==_0x2716fb['type']){const _0xcaf6a4=_0x2716fb['getContainedElement']();if(_0xcaf6a4&&_0xcaf6a4['is']('element','caption'))return{'type':'insertion'==_0x2716fb['type']?'addObject':'removeObject','element':_0xcaf6a4,'quantity':0x1};}}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x44cd90=>'formatBlock'==_0x44cd90['type']&&'convertInlineImageToBlock'==_0x44cd90['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44cd90['type']&&'convertBlockImageToInline'==_0x44cd90['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x3a01e8=>{if('attribute'!=_0x3a01e8['type'])return;const {data:_0x138126}=_0x3a01e8;if(!_0x138126||'alt'!=_0x138126['key'])return;const _0x48a552=_0x138126['newValue'];return _0x48a552?{'type':'format','content':wt(_0x389fb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48a552+'\x22')}:{'type':'format','content':wt(_0x389fb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x6de05f=this['editor'],_0x2a1d1e=_0x6de05f['locale'];_0x6de05f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4053c2=>{if('formatBlock'!=_0x4053c2['type']&&'formatInline'!=_0x4053c2['type'])return;const {data:_0x3f2600}=_0x4053c2;if(_0x3f2600){if('imageTextAlternative'==_0x3f2600['commandName']){const _0x1407a7=_0x3f2600['commandParams'][0x0]['newValue'];return _0x1407a7?{'type':'format','content':wt(_0x2a1d1e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1407a7+'\x22')}:{'type':'format','content':wt(_0x2a1d1e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f2600['commandName']){const _0x4b8e85=_0x3f2600['commandParams'][0x0]['width'];return _0x4b8e85?{'type':'format','content':wt(_0x2a1d1e,'*Set\x20image\x20width:*\x20%0',_0x4b8e85)}:{'type':'format','content':wt(_0x2a1d1e,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa9233=this['editor']['locale'],_0x60114d=this['editor']['plugins']['get']('TrackChangesEditing');_0x60114d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x60114d['descriptionFactory']['registerDescriptionCallback'](_0x13b7d9=>{if('attribute'!=_0x13b7d9['type'])return;const {data:_0x1c61ab}=_0x13b7d9;return _0x1c61ab&&'src'==_0x1c61ab['key']?_0x1c61ab['newValue']&&_0x1c61ab['oldValue']?{'type':'format','content':wt(_0xa9233,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x7fd9a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x7fd9a3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7fd9a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7fd9a3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7fd9a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x53afd8=this['editor'],_0x58f4a0=_0x53afd8['locale'];_0x53afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3da81d=>{if('formatBlock'!=_0x3da81d['type']&&'formatInline'!=_0x3da81d['type'])return;const {data:_0x4fd2df}=_0x3da81d;return _0x4fd2df&&'replaceImageSource'==_0x4fd2df['commandName']?{'type':'format','content':wt(_0x58f4a0,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x17c3d7{afterInit(){const _0x3fd3a0=this['editor'];if(!_0x3fd3a0['plugins']['has']('ImageStyleEditing'))return;const _0x3033f2=_0x3fd3a0['plugins']['get']('TrackChangesEditing'),_0x28a84d=_0x3fd3a0['plugins']['get']('ImageUtils'),_0x404079={};_0x3033f2['enableCommand']('imageStyle',(_0x4e8422,_0x58c402)=>{const _0xe0bfbe=_0x3fd3a0['plugins']['get']('Users')['me'],_0x532f86=_0x3fd3a0['commands']['get']('imageStyle');let _0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),_0xdcab31=_0x3fd3a0['model']['createRangeOn'](_0x1f2901),_0x12aa2d=_0x532f86['value'];if(_0x12aa2d==_0x58c402['value'])return;if(_0x58c402['value']&&_0x28a84d['isInlineImage'](_0x1f2901)&&!_0x532f86['isStyleEnabled'](_0x58c402['value']))return;const _0x33d5f6={'commandName':'imageStyle','commandParams':[_0x58c402],'formatGroupId':_0x5a260f()};_0x3fd3a0['model']['change'](()=>{if(_0x3033f2['getSuggestions']()['filter'](_0x42a576=>_0x42a576['isInContent']&&_0xe0bfbe==_0x42a576['author']&&('formatBlock'==_0x42a576['type']||'formatInline'==_0x42a576['type'])&&('imageStylePreApply'==_0x42a576['subType']||'imageStylePostApply'==_0x42a576['subType'])&&_0x42a576['getFirstRange']()['isEqual'](_0xdcab31))['forEach'](_0x57dfd5=>_0x3033f2['discardSuggestion'](_0x57dfd5['head'])),_0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),_0xdcab31=_0x3fd3a0['model']['createRangeOn'](_0x1f2901),_0x532f86['refresh'](),_0x3fd3a0['commands']['get']('imageTypeInline')['refresh'](),_0x3fd3a0['commands']['get']('imageTypeBlock')['refresh'](),_0x12aa2d=_0x532f86['value'],_0x12aa2d!=_0x58c402['value'])return _0x28a84d['isInlineImage'](_0x1f2901)&&_0x532f86['shouldConvertImageType'](_0x58c402['value'],_0x1f2901)?(_0x4e8422({..._0x58c402,'setImageSizes':!0x1}),_0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),void _0x3033f2['markBlockFormat'](_0x1f2901,{..._0x33d5f6,'commandReversedParams':[{'value':_0x12aa2d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28a84d['isBlockImage'](_0x1f2901)?_0x3033f2['markBlockFormat'](_0x1f2901,_0x33d5f6,[],'imageStylePostApply'):_0x3033f2['markInlineFormat'](_0xdcab31,_0x33d5f6,'imageStylePostApply'));});});for(const _0x16a75a of _0x3fd3a0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x404079[_0x16a75a['name']]=_0x16a75a['title']['toLowerCase']();_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x435481])=>{_0x28a84d['setImageNaturalSizeAttributes'](_0x435481['getContainedElement']());}),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5dd76d,_0x57b1b6)=>{_0x3033f2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5dd76d,{'commandName':_0x57b1b6['commandName'],'commandParams':_0x57b1b6['commandReversedParams']});}),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x48f287,_0x2ce4e7){return _0x1bdc90(_0x48f287,_0x2ce4e7)?[_0x48f287,_0x2ce4e7]:_0x1bdc90(_0x2ce4e7,_0x48f287)?[_0x2ce4e7,_0x48f287]:null;});const _0x3c2198=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bdc90(_0x1a599f,_0x5c966f){const _0x1589e2=_0x3c2198['findIndex'](({type:_0x373b66,subType:_0x41d84b})=>_0x1a599f['type']==_0x373b66&&_0x1a599f['subType']==_0x41d84b),_0x377ccb=_0x3c2198['findIndex'](({type:_0x370eae,subType:_0x1e5ffe})=>_0x5c966f['type']==_0x370eae&&_0x5c966f['subType']==_0x1e5ffe);if(_0x1589e2<0x0||_0x377ccb<0x0)return!0x1;const _0xb7add9=_0x1a599f['getFirstRange'](),_0x1bd59c=_0x5c966f['getFirstRange']();if((0x0==_0x1589e2||0x1==_0x1589e2)&&0x2==_0x377ccb&&_0xb7add9['isIntersecting'](_0x1bd59c))return!0x0;if(0x2==_0x1589e2&&0x3==_0x377ccb){const _0x4de03=_0x3033f2['_findSuggestions'](_0xb7add9,'insertion')['filter'](({suggestion:_0x379521,meta:_0x10a944})=>_0x10a944['isOwn']&&'convertInlineImageToBlock'==_0x379521['subType']);if(_0x4de03['length']>0x1&&_0x1bd59c['end']['isEqual'](_0xb7add9['start']))return!0x0;if(0x1==_0x4de03['length']&&(_0xb7add9['start']['isEqual'](_0x1bd59c['end'])||_0xb7add9['end']['isEqual'](_0x1bd59c['start'])))return!0x0;}if(0x3==_0x1589e2&&0x3==_0x377ccb&&_0xb7add9['start']['isBefore'](_0x1bd59c['start'])){const _0x29b633=_0xb7add9['end']['nodeAfter'],_0x4e33fc=_0x1bd59c['start']['nodeBefore'];return _0x28a84d['isBlockImage'](_0x29b633)&&_0x29b633===_0x4e33fc;}return!0x1;}_0x3fd3a0['model']['document']['registerPostFixer'](()=>{let _0x3dd873=!0x1;const _0x5895ec=Array['from'](_0x3fd3a0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1806de,data:_0xb31fd7}of _0x5895ec){const {group:_0x25687a,type:_0x425167,subType:_0x3f75ad,id:_0x2e494d}=nt(_0x1806de);if('suggestion'==_0x25687a&&_0x3033f2['hasSuggestion'](_0x2e494d)){if('formatBlock'==_0x425167&&('imageStylePreApply'==_0x3f75ad||'imageStylePostApply'==_0x3f75ad)){const _0x2a2a45=_0x3033f2['getSuggestion'](_0x2e494d);if(_0xb31fd7['newRange']){const _0x4c2c66=_0x2a2a45['getFirstRange']()['getContainedElement']();if(_0x28a84d['isBlockImage'](_0x4c2c66))continue;_0x3033f2['discardSuggestion'](_0x2a2a45),_0x3dd873=!0x0;}}if('insertion'==_0x425167&&'imageCaption'==_0x3f75ad&&!_0xb31fd7['newRange']){const _0x362b2d=_0x3033f2['getSuggestion'](_0x2e494d);_0x362b2d['next']&&_0x362b2d['next']['isInContent']&&(_0x3033f2['discardSuggestion'](_0x362b2d['next']),_0x3dd873=!0x0);}}}return _0x3dd873;}),this['_registerLegacyDescription'](_0x404079);}_registerLegacyDescription(_0x3bf2ad){const _0x4d37a1=this['editor'],_0x9f91b3=_0x4d37a1['locale'];_0x4d37a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xae745f=>{if('formatBlock'!=_0xae745f['type']&&'formatInline'!=_0xae745f['type'])return;const {data:_0x10c7ab}=_0xae745f;if(!_0x10c7ab||'imageStyle'!=_0x10c7ab['commandName'])return;const _0x4a543a=_0x10c7ab['commandParams'][0x0]['value'];return _0x13889c('side'===_0x4a543a?wt(_0x9f91b3,'FORMAT_SIDE_IMAGE'):_0x3bf2ad[_0x4a543a]||_0x4a543a);function _0x13889c(_0x5ed711){return{'type':'format','content':wt(_0x9f91b3,'*Format:*\x20%0',_0x5ed711)};}});}},Te=class extends _0x17c3d7{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0xd1dee9){super(_0xd1dee9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x344916=this['editor'],_0xebccb8=_0x344916['commands']['get']('importWord'),_0x5374b5=_0x344916['commands']['get']('trackChanges');_0xebccb8&&(_0xebccb8['on']('execute',(_0x429ca7,[,_0x372b00])=>{this['_trackChangesValueDuringImport']=_0x5374b5['value'],_0x372b00['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xebccb8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xebccb8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5374b5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x344916['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x25e259,_0x5c61bb){const {suggestions:_0xaa2694}=_0x5c61bb,_0x4029e8=this['editor']['commands']['get']('trackChanges'),_0x27b648=_0x4029e8['value'];this['_trackChangesValueDuringImport']!==_0x27b648&&(_0x4029e8['execute'](),this['_trackChangesExecuted']=!0x0),_0xaa2694&&_0xaa2694['forEach'](({id:_0x483143,type:_0x22489c,author:_0x128b40,created_at:_0x20fe0f})=>{const _0x2c0636={'id':_0x483143,'type':_0x22489c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x128b40,'createdAt':_0x20fe0f?new Date(_0x20fe0f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c0636);});}},_e=class extends _0x17c3d7{afterInit(){const _0x54d57f=this['editor'],_0x3f8d0d=_0x54d57f['plugins']['get']('TrackChangesEditing');if(_0x54d57f['plugins']['has']('IndentEditing')&&(_0x3f8d0d['enableCommand']('indent'),_0x3f8d0d['enableCommand']('outdent')),_0x54d57f['plugins']['has']('IndentBlock')){for(const _0x2db49c of['indentBlock','outdentBlock'])_0x3f8d0d['enableDefaultAttributesIntegration'](_0x2db49c);if(_0x54d57f['plugins']['has']('ListEditing')){for(const _0x37beed of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3f8d0d['enableDefaultAttributesIntegration'](_0x37beed);}}const _0x31ccf2=_0x54d57f['locale'];_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x31ccf2,'FORMAT_INDENT')),_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x31ccf2,'FORMAT_INDENT')),_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x31ccf2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4b619b=this['editor'],_0x5218c7=_0x4b619b['locale'],_0x22e952=_0x4b619b['plugins']['get']('TrackChangesEditing');_0x22e952['descriptionFactory']['registerDescriptionCallback'](_0x5cbb3e=>{if('formatBlock'!=_0x5cbb3e['type'])return;const {data:_0x763429}=_0x5cbb3e;if(!_0x763429)return;if('indentBlock'!=_0x763429['commandName']&&'outdentBlock'!=_0x763429['commandName'])return;const _0x29b71b=_0x5cbb3e['getItems']()[0x0],_0x3cf607=_0x22e952['descriptionFactory']['getItemLabel'](_0x29b71b);return'indentBlock'==_0x763429['commandName']?{'type':'format','content':wt(_0x5218c7,'*Indent:*\x20%0',_0x3cf607)}:'outdentBlock'==_0x763429['commandName']?{'type':'format','content':wt(_0x5218c7,'*Outdent:*\x20%0',_0x3cf607)}:void 0x0;});}},pe=class extends _0x17c3d7{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x17c3d7{afterInit(){const _0x5f217f=this['editor'];if(!_0x5f217f['plugins']['has']('LinkEditing'))return;const _0x2cf0e2=_0x5f217f['plugins']['get']('TrackChangesEditing'),_0x3b47ae=_0x5f217f['commands']['get']('link');_0x2cf0e2['enableDefaultAttributesIntegration']('link'),_0x2cf0e2['enableDefaultAttributesIntegration']('unlink');for(const _0x5dbb7c of _0x3b47ae['manualDecorators'])_0x2cf0e2['descriptionFactory']['registerAttributeLabel'](_0x5dbb7c['id'],'link\x20('+_0x5dbb7c['label']['toLowerCase']()+')');_0x2cf0e2['descriptionFactory']['registerDescriptionCallback'](_0x1db5b0=>{if('attribute'!=_0x1db5b0['type'])return;const {data:_0x5883dd}=_0x1db5b0;if(!_0x5883dd||'linkHref'!=_0x5883dd['key'])return;const _0x177161=_0x5883dd['newValue'],_0xe27353=_0x5f217f['locale'];return{'type':'format','content':null==_0x177161?wt(_0xe27353,'*Remove\x20link*'):wt(_0xe27353,'*Set\x20link:*\x20%0','\x22'+_0x177161+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x553499=this['editor'],_0x3d61fa=_0x553499['locale'];_0x553499['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd12e=>{if('formatInline'!=_0x3fd12e['type'])return;const {data:_0x5a3bba}=_0x3fd12e;if(_0x5a3bba){if('link'==_0x5a3bba['commandName']){const _0x9a6016=_0x5a3bba['commandParams'][0x0];return{'type':'format','content':wt(_0x3d61fa,'*Set\x20link:*\x20%0','\x22'+_0x9a6016+'\x22')};}return'unlink'==_0x5a3bba['commandName']?{'type':'format','content':wt(_0x3d61fa,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x17c3d7{afterInit(){const _0xcb6fec=this['editor'],_0xff7801=_0xcb6fec['locale'];if(!_0xcb6fec['plugins']['has']('LegacyListEditing'))return;const _0x5c2b44=_0xcb6fec['plugins']['get']('TrackChangesEditing'),_0x30d878=_0xcb6fec['plugins']['has']('LegacyTodoListEditing');function _0x37524(_0x17acf7){return()=>{const _0x12c1ba=_0xcb6fec['model']['document']['selection'],_0x41efb4=_0xcb6fec['commands']['get'](_0x17acf7);if(_0x41efb4['value'])return void _0xcb6fec['execute']('paragraph',{});const _0x192c82=_0x17acf7['slice'](0x0,-0x4),_0x38e2be=function(_0x2dabed,_0x5870e4,_0x5429fc){let _0x35409d=Array['from'](_0x2dabed)['filter'](_0x1121ee=>function(_0xd01df4,_0x4aa532){return _0x4aa532['checkChild'](_0xd01df4['parent'],'listItem')&&!_0x4aa532['isObject'](_0xd01df4);}(_0x1121ee,_0x5429fc));_0x35409d=_0x35409d['filter'](_0x5b870b=>!_0x5b870b['is']('element','listItem')||_0x5b870b['getAttribute']('listType')!=_0x5870e4);const _0x234f6c=new Set();for(const _0xaa28e9 of _0x35409d)_0xaa28e9['is']('element','listItem')?_0x234f6c['add'](Ae(_0xaa28e9)):_0x234f6c['add'](_0xaa28e9);return Array['from'](_0x234f6c);}(_0x12c1ba['getSelectedBlocks'](),_0x192c82,_0xcb6fec['model']['schema']);_0xcb6fec['model']['change'](()=>{for(const _0x586902 of _0x38e2be)_0x5c2b44['markBlockFormat'](_0x586902,{'commandName':_0x17acf7,'commandParams':[{'forceValue':!_0x41efb4['value']}],'formatGroupId':'blockName'},be(_0x586902));});};}function _0x19c64e(_0xc8f496){return()=>{const _0x5cbc8b=function(_0x52c30c){let _0xb1abe4=Array['from'](_0x52c30c);const _0x1ec9bf=_0xb1abe4['findIndex'](_0x394a08=>'listItem'!=_0x394a08['name']);return _0x1ec9bf>-0x1&&(_0xb1abe4=_0xb1abe4['slice'](0x0,_0x1ec9bf)),_0xb1abe4;}(_0xcb6fec['model']['document']['selection']['getSelectedBlocks']()),_0x358e3d=_0xcb6fec['model']['createRange'](_0xcb6fec['model']['createPositionAt'](_0x5cbc8b[0x0],'before'),_0xcb6fec['model']['createPositionAt'](_0x5cbc8b[_0x5cbc8b['length']-0x1],'end'));_0xcb6fec['model']['change'](()=>{_0x5c2b44['markBlockFormat'](_0x358e3d,{'commandName':_0xc8f496,'commandParams':[],'formatGroupId':'listIndent'},function(_0x505443){const _0x533f57=new Set();for(const _0x438c01 of _0x505443){let _0x17aaf3=_0x438c01['nextSibling'];for(;_0x17aaf3&&_0x17aaf3['getAttribute']('listIndent')>_0x438c01['getAttribute']('listIndent');)_0x533f57['add'](_0x17aaf3),_0x17aaf3=_0x17aaf3['nextSibling'];}return Array['from'](_0x533f57);}(_0x5cbc8b));});};}_0x5c2b44['enableCommand']('numberedList',_0x37524('numberedList')),_0x5c2b44['enableCommand']('bulletedList',_0x37524('bulletedList')),_0x30d878&&_0x5c2b44['enableCommand']('todoList',_0x37524('todoList')),_0x5c2b44['enableCommand']('indentList',_0x19c64e('indentList')),_0x5c2b44['enableCommand']('outdentList',_0x19c64e('outdentList')),_0x30d878&&_0x5c2b44['enableCommand']('checkTodoList',()=>{const _0xbf814f=_0xcb6fec['commands']['get']('checkTodoList'),_0x45219c=Array['from'](_0xbf814f['_selectedElements']);_0x45219c['filter'](_0x125ee6=>_0x125ee6['getAttribute']('todoListChecked')!=_0xbf814f['value']),_0xcb6fec['model']['change'](()=>{for(const _0x5f07fe of _0x45219c)_0x5c2b44['markBlockFormat'](_0x5f07fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbf814f['value']}]});});}),_0x5c2b44['descriptionFactory']['registerElementLabel']('listItem',_0x29d05d=>wt(_0xff7801,'ELEMENT_LIST_ITEM',_0x29d05d)),_0x5c2b44['descriptionFactory']['registerDescriptionCallback'](_0x2d2fbe=>{if('formatBlock'!=_0x2d2fbe['type']&&'formatInline'!=_0x2d2fbe['type'])return;const {data:_0x26ddf4}=_0x2d2fbe;if(_0x26ddf4){if('numberedList'==_0x26ddf4['commandName']||'bulletedList'==_0x26ddf4['commandName']||'todoList'==_0x26ddf4['commandName'])switch(_0x26ddf4['commandName']['replace']('List','')){case'bulleted':return _0x4c653c(wt(_0xff7801,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c653c(wt(_0xff7801,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c653c(wt(_0xff7801,'ELEMENT_TODO_LIST'));}if('indentList'==_0x26ddf4['commandName'])return{'type':'format','content':wt(_0xff7801,'*Indent:*\x20%0',wt(_0xff7801,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x26ddf4['commandName'])return{'type':'format','content':wt(_0xff7801,'*Outdent:*\x20%0',wt(_0xff7801,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x26ddf4['commandName'])return _0x26ddf4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xff7801,'*Check\x20item*')}:{'type':'format','content':wt(_0xff7801,'*Uncheck\x20item*')};}function _0x4c653c(_0x214cc9){return{'type':'format','content':wt(_0xff7801,'*Change\x20to:*\x20%0',_0x214cc9)};}});}};function Ae(_0x59476c){const _0x4219ea=_0x59476c['getAttribute']('listIndent');if(0x0==_0x4219ea)return _0x59476c;let _0x5be62d=_0x59476c;for(;_0x59476c['previousSibling']&&_0x59476c['previousSibling']['is']('element','listItem');){const _0x5890af=_0x59476c['previousSibling']['getAttribute']('listIndent');if(_0x5890af==_0x4219ea)_0x5be62d=_0x59476c['previousSibling'];else{if(_0x5890af<_0x4219ea)break;}_0x59476c=_0x59476c['previousSibling'];}return _0x5be62d;}function be(_0x441580){const _0x58818d=[];if(_0x441580['is']('element','listItem')&&_0x441580['getAttribute']('listIndent')>0x0){let _0x34dc47=_0x441580['nextSibling'];for(;_0x34dc47&&'listItem'==_0x34dc47['name']&&_0x34dc47['getAttribute']('listIndent')==_0x441580['getAttribute']('listIndent');)_0x58818d['push'](_0x34dc47),_0x34dc47=_0x34dc47['nextSibling'];}return _0x58818d;}var Ce=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x440ce9=this['editor']['config']['get']('list.properties'),_0x30d76a=this['editor']['plugins']['get']('TrackChangesEditing');_0x440ce9['styles']&&_0x30d76a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x440ce9['reversed']&&_0x30d76a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x440ce9['startIndex']&&_0x30d76a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30d76a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x195219,_0x592300={}){const _0x45ef8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f5297=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45ef8d['markMultiRangeBlockFormat'](_0x5f5297,{'commandName':'listStyle','commandParams':[{'type':_0x592300['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x5a7ab6,_0x402d53={}){const _0x3d7021=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7abb05=this['_getSuggestionBlocks'](_0x1bf897=>_0x1bf897['is']('element','listItem')&&'numbered'===_0x1bf897['getAttribute']('listType'));if(_0x7abb05['length']<0x1)return;const _0x5cee8e=_0x7abb05['map'](_0x1919f5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1919f5,'before'),this['editor']['model']['createPositionAt'](_0x1919f5,0x0)));this['editor']['model']['change'](()=>{_0x3d7021['markMultiRangeBlockFormat'](_0x5cee8e,{'commandName':'listReversed','commandParams':[{'reversed':_0x402d53['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x4cf732,_0x58171a={}){const _0x47b784=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c3314=this['_getSuggestionBlocks'](_0x246ba8=>_0x246ba8['is']('element','listItem')&&'numbered'===_0x246ba8['getAttribute']('listType'));if(_0x2c3314['length']<0x1)return;const _0x408cdc=_0x2c3314['map'](_0x5920b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5920b8,'before'),this['editor']['model']['createPositionAt'](_0x5920b8,0x0)));this['editor']['model']['change'](()=>{_0x47b784['markMultiRangeBlockFormat'](_0x408cdc,{'commandName':'listStart','commandParams':[{'startIndex':_0x58171a['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x4a0f15){if('formatBlock'!=_0x4a0f15['type']&&'formatInline'!=_0x4a0f15['type'])return;const _0x1ddd31=this['editor']['locale'],{data:_0x37a1e7}=_0x4a0f15;if(!_0x37a1e7)return;let _0x34ff2d,_0x703a27;switch(_0x37a1e7['commandName']){case'listStyle':_0x34ff2d='*Change\x20to:*\x20%0',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d,wt(_0x1ddd31,this['_getTranslationKeyForListStyle'](_0x37a1e7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34ff2d=_0x37a1e7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d)};break;case'listStart':_0x34ff2d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d,_0x37a1e7['commandParams'][0x0]['startIndex'])};}return _0x703a27;}_getSuggestionBlocksForListStyle(){const _0xa8a3b6=this['editor']['plugins']['get']('LegacyListUtils');let _0x293285=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x293285[0x0]?.['is']('element','listItem')&&_0x293285['unshift'](..._0xa8a3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x293285[_0x293285['length']-0x1]?.['is']('element','listItem')&&_0x293285['push'](..._0xa8a3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x293285=[...new Set(_0x293285)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x293285=_0x293285['filter'](_0x151ad5=>_0x151ad5['is']('element','listItem'))),_0x293285;}_getSuggestionBlocks(_0x39c1a7){const _0x5a06d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e55e7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x39c1a7)['map'](_0x20e026=>{const _0x14061a=this['editor']['model']['createPositionAt'](_0x20e026,0x0);return[..._0x5a06d7['getSiblingNodes'](_0x14061a,'backward'),..._0x5a06d7['getSiblingNodes'](_0x14061a,'forward')];})['flat']();return _0x4e55e7=[...new Set(_0x4e55e7)],_0x4e55e7;}_getTranslationKeyForListStyle(_0x18e694){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18e694)||'default')['toUpperCase']()+'_LIST_'+_0x18e694['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x17c3d7{afterInit(){const _0x5a1e45=this['editor'];if(!_0x5a1e45['plugins']['has']('MediaEmbedEditing'))return;const _0x1c8eff=_0x5a1e45['plugins']['get']('TrackChangesEditing'),_0x32fbce=_0x5a1e45['locale'];_0x1c8eff['enableCommand']('mediaEmbed'),_0x1c8eff['descriptionFactory']['registerElementLabel']('media',_0x54e4f5=>wt(_0x32fbce,'ELEMENT_MEDIA',_0x54e4f5)),_0x5a1e45['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1c8eff['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1c8eff['descriptionFactory']['registerDescriptionCallback'](_0x1b36ea=>{if('attribute'!=_0x1b36ea['type'])return;const {data:_0x3ac165}=_0x1b36ea;if(!_0x3ac165||'resizedWidth'!=_0x3ac165['key'])return;const _0x5d6ef5=_0x1b36ea['getContainedElement']();if(!_0x5d6ef5||!_0x5d6ef5['is']('element','media'))return;const _0xe0b27a=wt(_0x32fbce,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x32fbce,'*Set\x20format:*\x20%0',_0xe0b27a)};}));}},Re=class extends _0x17c3d7{afterInit(){const _0x164b45=this['editor'];if(!_0x164b45['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x282b67=_0x164b45['plugins']['get']('TrackChangesEditing'),_0x3b16aa=_0x164b45['locale'],_0x27f672=_0x164b45['plugins']['get']('MediaEmbedStyleEditing'),_0x406caa={};for(const _0x3e43d6 of _0x27f672['normalizedStyles'])_0x406caa[_0x3e43d6['name']]=_0x3e43d6['title']['toLowerCase']();const _0x52a0c0=_0x27f672['normalizedStyles']['find'](_0x158252=>_0x158252['isDefault'])?.['name'];_0x282b67['enableCommand']('mediaStyle',(_0x3917f7,_0x809fb6)=>{const _0x5d249f=_0x164b45['plugins']['get']('Users')['me'],_0xcb3b0f=_0x164b45['commands']['get']('mediaStyle'),_0x1eb957=function(_0x2038e0){const _0x12d897=_0x2038e0['model']['document']['selection']['getSelectedElement']();return _0x12d897&&_0x12d897['is']('element','media')?_0x12d897:null;}(_0x164b45);if(!_0x1eb957)return;const _0x6dc35f=_0x164b45['model']['createRangeOn'](_0x1eb957);let _0x1197da=_0xcb3b0f['value'];if(_0x1197da==_0x809fb6['value'])return;const _0x3e1607={'commandName':'mediaStyle','commandParams':[_0x809fb6],'formatGroupId':_0x5a260f()};_0x164b45['model']['change'](()=>{_0x282b67['getSuggestions']()['filter'](_0x2fb47c=>_0x2fb47c['isInContent']&&_0x5d249f==_0x2fb47c['author']&&'formatBlock'==_0x2fb47c['type']&&'mediaStylePostApply'==_0x2fb47c['subType']&&_0x2fb47c['getFirstRange']()['isEqual'](_0x6dc35f))['forEach'](_0x31aec8=>_0x282b67['discardSuggestion'](_0x31aec8['head'])),_0xcb3b0f['refresh'](),_0x1197da=_0xcb3b0f['value'],_0x1197da!=_0x809fb6['value']&&_0x282b67['markBlockFormat'](_0x1eb957,{..._0x3e1607,'commandReversedParams':[{'value':'string'==typeof _0x1197da?_0x1197da:null}]},[],'mediaStylePostApply');});}),_0x282b67['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x282b67['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x2ba345,_0x290134)=>{_0x282b67['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ba345,{'commandName':_0x290134['commandName'],'commandParams':_0x290134['commandReversedParams']});}),_0x282b67['descriptionFactory']['registerDescriptionCallback'](_0x59ef6f=>{if('formatBlock'!=_0x59ef6f['type'])return;const {data:_0x5b4cc9}=_0x59ef6f;if(!_0x5b4cc9||'mediaStyle'!=_0x5b4cc9['commandName'])return;const _0x402ccb=_0x5b4cc9['commandParams'][0x0]['value']||_0x52a0c0;if(!_0x402ccb)return;const _0x2c615c=_0x406caa[_0x402ccb]||_0x402ccb;return{'type':'format','content':wt(_0x3b16aa,'*Format:*\x20%0',_0x2c615c)};});}},Ne=class extends _0x17c3d7{afterInit(){const _0x42ba70=this['editor'];_0x42ba70['plugins']['has']('MentionEditing')&&_0x42ba70['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x17c3d7{afterInit(){const _0x3bd535=this['editor'];if(!_0x3bd535['plugins']['has']('MergeFieldsEditing'))return;const _0x40815b=_0x3bd535['plugins']['get']('TrackChangesEditing'),_0x5684fd=_0x3bd535['locale'];_0x40815b['enableCommand']('insertMergeField'),_0x40815b['enableCommand']('insertMergeFieldBlock'),_0x40815b['enableCommand']('insertMergeFieldImage'),_0x40815b['descriptionFactory']['registerElementLabel']('mergeField',_0x53a72d=>wt(_0x5684fd,'ELEMENT_MERGE_FIELD',_0x53a72d)),_0x40815b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x556010=>wt(_0x5684fd,'ELEMENT_MERGE_FIELD',_0x556010)),_0x40815b['descriptionFactory']['registerDescriptionCallback'](_0xbaa39=>{if('insertion'!=_0xbaa39['type']&&'deletion'!=_0xbaa39['type'])return;const _0x2a0d04=_0xbaa39['getContainedElement']();if(null==_0x2a0d04)return;const _0x35ba2b=_0x3bd535['plugins']['get']('MergeFieldsEditing');let _0x3b1a17;switch(_0x35ba2b['getMergeFieldType'](_0x2a0d04)){case null:return;case'image':{const _0x35ceca=_0x35ba2b['unwrapAffixes'](_0x2a0d04['getAttribute']('src'));_0x3b1a17=_0x35ba2b['getLabel'](_0x35ceca)||_0x35ceca;break;}default:{const _0x1f118d=_0x2a0d04['getAttribute']('id');_0x3b1a17=_0x35ba2b['getLabel'](_0x1f118d)||_0x1f118d;break;}}return'insertion'==_0xbaa39['type']?{'type':'insertion','content':wt(_0x5684fd,'*Insert:*\x20%0','\x22'+_0x3b1a17+'\x22\x20'+wt(_0x5684fd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x5684fd,'*Remove:*\x20%0','\x22'+_0x3b1a17+'\x22\x20'+wt(_0x5684fd,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x17c3d7{afterInit(){const _0x3f786a=this['editor'],_0x4a93c8=_0x3f786a['plugins']['get']('TrackChangesEditing');_0x3f786a['plugins']['has']('MultiLevelList')&&(_0x4a93c8['enableDefaultAttributesIntegration']('multiLevelList'),_0x4a93c8['descriptionFactory']['registerDescriptionCallback'](_0x21017d=>this['handleDescriptions'](_0x21017d)));}handleDescriptions(_0x4632c1){const _0x5f1f5e=this['editor']['locale'],{data:_0x441b15}=_0x4632c1,_0x49dcc6={'type':'format','content':''};if(_0x441b15&&'listMarkerStyle'==_0x441b15['key']){if(!_0x441b15['oldValue'])return{'type':'format','content':wt(_0x5f1f5e,'*Set\x20format:*\x20%0',wt(_0x5f1f5e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441b15['newValue']+')'};if(!_0x441b15['newValue']){let _0x1740b7=_0x4632c1['head'];for(;_0x1740b7;){if(_0x1740b7['data']&&'listType'==_0x1740b7['data']['key']&&_0x1740b7['data']['newValue'])return _0x49dcc6;_0x1740b7=_0x1740b7['next'];}return{'type':'format','content':wt(_0x5f1f5e,'*Remove\x20format:*\x20%0',wt(_0x5f1f5e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441b15['oldValue']+')'};}}}},Me=class extends _0x17c3d7{afterInit(){const _0x3cfb80=this['editor'];if(!_0x3cfb80['plugins']['has']('PageBreakEditing'))return;_0x3cfb80['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x114af2=_0x3cfb80['plugins']['get']('TrackChangesEditing'),_0x3197d3=_0x3cfb80['locale'];_0x114af2['descriptionFactory']['registerElementLabel']('pageBreak',_0x252917=>wt(_0x3197d3,'ELEMENT_PAGE_BREAK',_0x252917));}},Oe=class extends _0x17c3d7{afterInit(){const _0xea4979=this['editor'];if(!_0xea4979['plugins']['has']('Paragraph'))return;const _0x7c558b=_0xea4979['locale'],_0x2397ec=_0xea4979['plugins']['get']('TrackChangesEditing');_0x2397ec['descriptionFactory']['registerElementLabel']('paragraph',_0x2d5fde=>wt(_0x7c558b,'ELEMENT_PARAGRAPH',_0x2d5fde)),_0x2397ec['enableDefaultAttributesIntegration']('paragraph'),_0x2397ec['enableCommand']('insertParagraph');const _0xab9539=_0x2397ec['descriptionFactory'];_0xab9539['registerDescriptionCallback'](_0x2b0374=>{if('insertion'!==_0x2b0374['type'])return;const {start:_0x1c2d25,end:_0xecb11}=_0x2b0374['getFirstRange']();if(!_0x1c2d25['isTouching'](_0xecb11)||!_0x1c2d25['nodeAfter'])return;const _0x3c4b21=_0xea4979['model']['schema'],_0x24335f=_0x1c2d25['nodeAfter'];return _0x3c4b21['isBlock'](_0x24335f)&&!_0x3c4b21['isLimit'](_0x24335f)&&_0x3c4b21['checkChild'](_0x24335f,'$text')?{'type':'insertion','content':wt(_0x7c558b,'*Insert:*\x20%0',_0xab9539['getItemLabel'](_0x24335f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xf1221f=this['editor'],_0x273fb0=_0xf1221f['locale'];_0xf1221f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35048d=>{if('formatBlock'!=_0x35048d['type'])return;const {data:_0x2ec20c}=_0x35048d;return _0x2ec20c&&'paragraph'==_0x2ec20c['commandName']?{'type':'format','content':wt(_0x273fb0,'*Change\x20to:*\x20%0',wt(_0x273fb0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x17c3d7{afterInit(){const _0x259718=this['editor'];_0x259718['commands']['get']('replaceSource')&&_0x259718['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x17c3d7{afterInit(){const _0x3d4cf0=this['editor'];_0x3d4cf0['plugins']['has']('RemoveFormatEditing')&&(_0x3d4cf0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x31b570=this['editor'];_0x31b570['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8cbfe9=>{if('formatBlock'!=_0x8cbfe9['type']&&'formatInline'!=_0x8cbfe9['type'])return;const {data:_0x3a2e67}=_0x8cbfe9;return _0x3a2e67&&'removeFormat'==_0x3a2e67['commandName']?{'type':'format','content':wt(_0x31b570['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x17c3d7{afterInit(){const _0x82768e=this['editor'];if(!_0x82768e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b49ca=_0x82768e['plugins']['get']('TrackChangesEditing');_0x2b49ca['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b49ca['enableCommand']('goToNextRestrictedEditingException');const _0x293a65=_0x82768e['plugins']['get']('RestrictedEditingModeEditing');_0x293a65['enableCommand']('trackChanges'),_0x293a65['enableCommand']('acceptSuggestion'),_0x293a65['enableCommand']('discardSuggestion'),_0x293a65['enableCommand']('acceptAllSuggestions'),_0x293a65['enableCommand']('discardAllSuggestions'),_0x293a65['enableCommand']('acceptSelectedSuggestions'),_0x293a65['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x17c3d7{afterInit(){const _0x2e2350=this['editor'];if(!_0x2e2350['plugins']['has']('ShiftEnter'))return;const _0x513071=_0x2e2350['plugins']['get']('TrackChangesEditing');_0x513071['enableCommand']('shiftEnter'),_0x513071['descriptionFactory']['registerElementLabel']('softBreak',_0xdc6371=>wt(_0x2e2350['locale'],'ELEMENT_LINE_BREAK',_0xdc6371));}};function De(_0x1cda4e,_0x9fad06,_0x59faba){const _0x4d7db2=[];for(const _0x2671a5 of _0x9fad06['getItems']())_0x2671a5['hasAttribute'](_0x1cda4e)&&_0x4d7db2['push'](_0x59faba['createRangeOn'](_0x2671a5));return _0x4d7db2;}var Ue=class extends _0x17c3d7{afterInit(){const _0x37fdfe=this['editor'],_0x510be0=_0x37fdfe['plugins']['get']('TrackChangesEditing');_0x37fdfe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x510be0['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x28ffed=this['editor'],_0x284553=_0x28ffed['model'],_0x353f90=_0x28ffed['locale'],_0x3d9f7d=_0x28ffed['plugins']['get']('TrackChangesEditing'),_0x4d2d02='restrictedEditingException',_0x4b7dee=_0x28ffed['commands']['get'](_0x4d2d02);_0x3d9f7d['enableCommand'](_0x4d2d02,(_0x2447b3,_0x48b3d2={})=>{const _0x6ce60e=_0x284553['document']['selection'];if(_0x6ce60e['isCollapsed'])return void _0x2447b3(_0x48b3d2);const _0x179767=void 0x0!==_0x48b3d2['forceValue']?_0x48b3d2['forceValue']:!_0x4b7dee['value'];_0x284553['change'](()=>{const _0x311226=Array['from'](_0x6ce60e['getRanges']());for(const _0x294316 of _0x311226){const _0x5987d8=_0x179767?[_0x294316]:De(_0x4d2d02,_0x294316,_0x284553);for(const _0x5c0421 of _0x5987d8)_0x3d9f7d['markInlineFormat'](_0x5c0421,{'commandName':_0x4d2d02,'commandParams':[{'forceValue':_0x179767}]});}});}),_0x3d9f7d['descriptionFactory']['registerDescriptionCallback'](_0x1d5b0b=>{if('formatBlock'!=_0x1d5b0b['type']&&'formatInline'!=_0x1d5b0b['type'])return;const {data:_0x54e959}=_0x1d5b0b;return _0x54e959&&_0x54e959['commandName']==_0x4d2d02?_0x54e959['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x353f90,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x353f90,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4fdf1d=this['editor'],_0x2ee2dc=_0x4fdf1d['locale'],_0x53ae94=_0x4fdf1d['plugins']['get']('TrackChangesEditing'),_0x3bfe2a='restrictedEditingExceptionBlock',_0x40c2ba=this['editor']['commands']['get'](_0x3bfe2a);_0x53ae94['enableCommand'](_0x3bfe2a,(_0x3314d4,_0x40d92f={})=>{const _0x5a84d9=this['editor']['model']['document']['selection'],_0x398916=_0x40d92f&&void 0x0!==_0x40d92f['forceValue']?_0x40d92f['forceValue']:!_0x40c2ba['value'];let _0x5154e9=[];if(_0x398916){const _0x29925e=Array['from'](_0x5a84d9['getSelectedBlocks']())['filter'](_0x54a9bd=>function(_0x15b993){return!!_0x15b993['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x54a9bd)||function(_0x5b73c8,_0x3ff98c){const _0x390486=_0x3ff98c['createContext'](_0x5b73c8['parent']);return!!_0x3ff98c['checkChild'](_0x390486,'restrictedEditingException')&&!!_0x3ff98c['checkChild'](_0x390486['push']('restrictedEditingException'),_0x5b73c8);}(_0x54a9bd,this['editor']['model']['schema']));_0x5154e9=kt(_0x29925e,_0x4fdf1d['model']);}else{const _0x284e56=Array['from'](_0x5a84d9['getSelectedBlocks']())['map'](_0x16a2dd=>function(_0x59dbb7){let _0x53f611=_0x59dbb7;for(;_0x53f611['parent'];){if('restrictedEditingException'==_0x53f611['parent']['name'])return _0x53f611;_0x53f611=_0x53f611['parent'];}return null;}(_0x16a2dd))['filter'](_0x1e388f=>!!_0x1e388f);_0x5154e9=kt(_0x284e56,_0x4fdf1d['model']);}_0x4fdf1d['model']['change'](()=>{for(const _0x528fae of _0x5154e9)_0x53ae94['markBlockFormat'](_0x528fae,{'commandName':_0x3bfe2a,'commandParams':[{'forceValue':_0x398916}]});});}),_0x53ae94['descriptionFactory']['registerDescriptionCallback'](_0x287b06=>{const {data:_0x31611e}=_0x287b06;if(_0x31611e&&_0x31611e['commandName']==_0x3bfe2a)return _0x31611e['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x2ee2dc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x2ee2dc,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x17c3d7{afterInit(){const _0x80085c=this['editor'];_0x80085c['plugins']['has']('Style')&&_0x80085c['plugins']['has']('DataSchema')&&(_0x80085c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2a4730=this['editor'],_0x11634c=_0x2a4730['locale'];_0x2a4730['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54a88f=>{if('formatBlock'!=_0x54a88f['type']&&'formatInline'!=_0x54a88f['type'])return;const {data:_0x1b8fb4}=_0x54a88f;return _0x1b8fb4&&'style'===_0x1b8fb4['commandName']?_0x1b8fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x11634c,'*Set\x20format:*\x20%0',_0x1b8fb4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x11634c,'*Remove\x20format:*\x20%0',_0x1b8fb4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x17c3d7{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x33c2cc){super(_0x33c2cc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x57a8f7=this['editor'],_0xc2f940=_0x57a8f7['model']['document']['selection'];if(!_0x57a8f7['plugins']['has']('TableEditing'))return;const _0x19d2d4=_0x57a8f7['locale'],_0x5a5904=_0x57a8f7['plugins']['get']('TrackChangesEditing'),_0x4caaeb=_0x57a8f7['plugins']['get']('TableUtils');_0x5a5904['descriptionFactory']['registerElementLabel']('table',_0x3d72d6=>wt(_0x19d2d4,'ELEMENT_TABLE',_0x3d72d6)),this['_setupColumnsRowsFixing'](),_0x5a5904['enableCommand']('insertTable'),_0x5a5904['enableCommand']('selectTableRow'),_0x5a5904['enableCommand']('selectTableColumn');for(const _0x2f48a4 of['insertTableRowAbove','insertTableRowBelow']){const _0x233542=_0x57a8f7['commands']['get'](_0x2f48a4);_0x5a5904['enableCommand'](_0x2f48a4,_0x46d3ee=>{_0x57a8f7['model']['change'](_0x4d3f7d=>{_0x46d3ee();const _0x26df8d='above'===_0x233542['order'],_0x411abf=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x4d903b=_0x4caaeb['getRowIndexes'](_0x411abf),_0x2eca04=_0x26df8d?_0x4d903b['first']-0x1:_0x4d903b['last']+0x1,_0x43b60e=_0x411abf[0x0]['findAncestor']('table'),_0x2a8a14=_0x4caaeb['createTableWalker'](_0x43b60e,{'startRow':_0x2eca04,'endRow':_0x2eca04}),_0x4cf798=Array['from'](_0x2a8a14)['map'](_0x58a9bb=>_0x4d3f7d['createRangeOn'](_0x58a9bb['cell']));_0x5a5904['markMultiRangeInsertion'](_0x4cf798,'tableRow');});});}for(const _0x32d66 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b1c30=_0x57a8f7['commands']['get'](_0x32d66);_0x5a5904['enableCommand'](_0x32d66,_0x8de617=>{_0x57a8f7['model']['change'](_0x1786b8=>{_0x8de617();const _0x9d8cab='left'===_0x5b1c30['order'],_0x264010=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x80a92e=_0x4caaeb['getColumnIndexes'](_0x264010),_0x304e13=_0x9d8cab?_0x80a92e['first']-0x1:_0x80a92e['last']+0x1,_0x3dc3f2=_0x264010[0x0]['findAncestor']('table'),_0x56324c=_0x4caaeb['createTableWalker'](_0x3dc3f2,{'startRow':0x0,'column':_0x304e13,'includeAllSlots':!0x1}),_0x472f8c=Array['from'](_0x56324c)['map'](_0x3acac0=>_0x1786b8['createRangeOn'](_0x3acac0['cell']));_0x5a5904['markMultiRangeInsertion'](_0x472f8c,'tableColumn');});});}for(const _0x5ce58a of['removeTableRow','removeTableColumn']){const _0x24e726=_0x5ce58a['substr'](0xb),_0x13d440=_0x24e726['toLowerCase'](),_0x428bae=_0x13d440['substr'](0x0,0x3)+'span',_0x513374='table'+_0x24e726,_0x6493d6='min'+_0x24e726,_0x430246='max'+_0x24e726;_0x5a5904['enableCommand'](_0x5ce58a,()=>{_0x57a8f7['model']['change'](_0x3350b4=>{const _0x12e742=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x3d6dcc=_0x12e742[0x0]['findAncestor']('table');let _0x3a7f8e;if('removeTableRow'==_0x5ce58a){const _0x14e3f9=_0x4caaeb['getRowIndexes'](_0x12e742);_0x3a7f8e={'startRow':_0x14e3f9['first'],'endRow':_0x14e3f9['last'],'includeAllSlots':!0x0};}else{const _0x1a1802=_0x4caaeb['getColumnIndexes'](_0x12e742);_0x3a7f8e={'startColumn':_0x1a1802['first'],'endColumn':_0x1a1802['last'],'includeAllSlots':!0x0};}const _0x31ab12=_0x4caaeb['createTableWalker'](_0x3d6dcc,_0x3a7f8e),_0x2c401a=Array['from'](_0x31ab12)['map'](({cell:_0x582b7a})=>_0x582b7a),_0x29953e=Ge(_0x2c401a['filter'](_0x2832cb=>_0x2832cb['hasAttribute'](_0x428bae))),_0x116241=Ge(_0x2c401a['filter'](_0xbf8ac2=>!_0xbf8ac2['hasAttribute'](_0x428bae)))['map'](_0x4835a2=>_0x3350b4['createRangeOn'](_0x4835a2)),_0x57ad2d=_0x5a5904['markMultiRangeDeletion'](_0x116241,_0x513374);if(_0x57ad2d&&('tableRow'==_0x57ad2d['subType']||'tableColumn'==_0x57ad2d['subType'])){const _0x183adb=this['_getSuggestionCoords'](_0x57ad2d);for(const _0x490e92 of _0x29953e){const _0x57762c=_0x3350b4['createRangeOn'](_0x490e92),_0x301af4=_0x4caaeb['getCellLocation'](_0x490e92),_0x43b996=_0x490e92['getAttribute'](_0x428bae)-0x1,_0x207bcf=_0x183adb[_0x6493d6],_0xe84c32=_0x183adb[_0x430246];_0x207bcf<=_0x301af4[_0x13d440]&&_0x301af4[_0x13d440]+_0x43b996<=_0xe84c32&&_0x57ad2d['addRange'](_0x57762c);}}});});}function _0x824e9f(_0x4f1db5){const _0x206991=Array['from'](_0xc2f940['getRanges']())['map'](_0x1785ca=>at['fromRange'](_0x1785ca));_0x57a8f7['model']['change'](_0x529923=>{const _0xf98084=_0x529923['batch'];_0x4f1db5=_0x4f1db5['filter'](_0x469032=>'$graveyard'!=_0x469032['root']['rootName']),_0x529923['setSelection'](_0x4f1db5),_0x57a8f7['commands']['get']('removeTableRow')['refresh'](),_0x57a8f7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57a8f7['model']['enqueueChange'](()=>{_0x57a8f7['model']['enqueueChange'](_0xf98084,_0x34a99d=>{const _0x361c1e=_0x206991['filter'](_0x132938=>'$graveyard'!=_0x132938['root']['rootName']);_0x361c1e['length']>0x0&&_0x34a99d['setSelection'](_0x361c1e);for(const _0x92576d of _0x206991)_0x92576d['detach']();});});});}function _0xe54ef8(_0x1412e2){_0x57a8f7['model']['change'](_0x391f43=>{const _0x1ce0de=Array['from'](_0xc2f940['getRanges']())['map'](_0x47cc5c=>at['fromRange'](_0x47cc5c)),_0x684a89=[];for(const _0x2c6099 of _0x1412e2)for(const _0x2de060 of _0x2c6099['getItems']({'shallow':!0x0}))_0x684a89['push'](_0x2de060);for(const _0x349bd4 of _0x684a89)'$graveyard'!=_0x349bd4['root']['rootName']&&(_0x391f43['setSelection'](_0x391f43['createPositionAt'](_0x349bd4,0x0)),_0x57a8f7['commands']['get']('removeTableColumn')['refresh'](),_0x57a8f7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b562d=_0x1ce0de['filter'](_0x1dbc45=>'$graveyard'!=_0x1dbc45['root']['rootName']);_0x1b562d['length']>0x0&&_0x391f43['setSelection'](_0x1b562d);for(const _0x1d81db of _0x1ce0de)_0x1d81db['detach']();});}function _0x3bc3d4(_0x2bc509,_0x27ce6e){return _0x27ce6e['every'](_0x17e6cd=>_0x2bc509['some'](_0x162ed0=>_0x162ed0['end']['isEqual'](_0x17e6cd['start'])||_0x17e6cd['end']['isEqual'](_0x162ed0['start'])));}function _0x3e6444(_0x5d5a00,_0x3ab0b9){return!_0x5d5a00['some'](_0x32dc1c=>_0x3ab0b9['some'](_0x1d7d3f=>_0x32dc1c['isIntersecting'](_0x1d7d3f)))&&_0x5d5a00['some'](_0x39bd83=>_0x3ab0b9['some'](_0x1f56e2=>_0x39bd83['end']['isTouching'](_0x1f56e2['start'])));}_0x5a5904['descriptionFactory']['registerDescriptionCallback'](_0x173b0a=>{if('insertion'!=_0x173b0a['type']&&'deletion'!=_0x173b0a['type'])return;const _0x1281c9=_0x173b0a['getContainedElement']();if(null!=_0x1281c9&&_0x1281c9['is']('element','table')){if('insertion'==_0x173b0a['type']){const _0x9abacc=_0x173b0a['getItems']()['filter'](_0x1cfc26=>_0x1cfc26['is']('$textProxy'))['map'](_0x184944=>_0x184944['data']);if(_0x9abacc['length'])return{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9abacc['join']('\x20')+'\x22'))};}if('deletion'==_0x173b0a['type']){const _0x5137ff=_0x173b0a['getItems']()['filter'](_0x77a056=>_0x77a056['is']('$textProxy'))['map'](_0x1190ee=>_0x1190ee['data']);if(_0x5137ff['length'])return{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5137ff['join']('\x20')+'\x22'))};}}}),_0x5a5904['descriptionFactory']['registerDescriptionCallback'](_0x2afe30=>{if('tableRow'==_0x2afe30['subType']){const _0x567e30=_0x2afe30['getItems']()['filter'](_0x5df0cf=>_0x5df0cf['is']('$textProxy'))['map'](_0x535aac=>_0x535aac['data']),_0x2e6cff=this['_getSuggestionCoords'](_0x2afe30),_0x2b8493=_0x2e6cff['maxRow']-_0x2e6cff['minRow']+0x1;if('insertion'==_0x2afe30['type'])return _0x567e30['length']?{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8493,'\x22'+_0x567e30['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW',_0x2b8493))};if('deletion'==_0x2afe30['type'])return _0x567e30['length']?{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8493,'\x22'+_0x567e30['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW',_0x2b8493))};}if('tableColumn'==_0x2afe30['subType']){const _0x5e9920=_0x2afe30['getItems']()['filter'](_0x2fbda9=>_0x2fbda9['is']('$textProxy'))['map'](_0x150a55=>_0x150a55['data']),_0x458e54=this['_getSuggestionCoords'](_0x2afe30),_0x38482c=_0x458e54['maxColumn']-_0x458e54['minColumn']+0x1;if('insertion'==_0x2afe30['type'])return _0x5e9920['length']?{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x38482c,'\x22'+_0x5e9920['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN',_0x38482c))};if('deletion'==_0x2afe30['type'])return _0x5e9920['length']?{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x38482c,'\x22'+_0x5e9920['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN',_0x38482c))};}}),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x824e9f),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x824e9f),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe54ef8),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe54ef8),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bc3d4),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bc3d4),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e6444),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e6444);}_acceptFormatSuggestionCallbackFactory(){const _0x565714=this['editor'],_0x2906ef=_0x565714['model']['document']['selection'];return(_0x175294,_0x202cb8)=>{_0x565714['model']['change'](_0x32d13d=>{const {commandName:_0x1754de,commandParams:_0x2d8089}=_0x202cb8;let _0x145806=_0x175294[0x0]['end']['nodeBefore'];_0x2d8089&&_0x2d8089[0x0]&&!0x1===_0x2d8089[0x0]['forceValue']&&(_0x145806=_0x175294[0x0]['start']['nodeAfter']);const _0x39b950=_0x32d13d['createRangeIn'](_0x145806);if('$graveyard'==_0x39b950['root']['rootName'])return;const _0x5aa435=Array['from'](_0x2906ef['getRanges']())['map'](_0x4d79ef=>at['fromRange'](_0x4d79ef));_0x32d13d['setSelection'](_0x39b950),_0x565714['commands']['get'](_0x1754de)['refresh'](),_0x2d8089['push']({'forceDefaultExecution':!0x0}),_0x565714['execute'](_0x1754de,..._0x2d8089);const _0x54d7f5=_0x5aa435['filter'](_0x5b9731=>'$graveyard'!=_0x5b9731['root']['rootName']);_0x54d7f5['length']>0x0&&_0x32d13d['setSelection'](_0x54d7f5);for(const _0xa2c537 of _0x5aa435)_0xa2c537['detach']();});};}_getCoordsForCells(_0x5a07ce){const _0x456e57=this['editor']['plugins']['get']('TableUtils');let _0x403aa5=Number['MAX_SAFE_INTEGER'],_0x3a582b=Number['MIN_SAFE_INTEGER'],_0x2f2cd3=Number['MAX_SAFE_INTEGER'],_0x39882b=Number['MIN_SAFE_INTEGER'];for(const _0x822133 of _0x5a07ce){if('$graveyard'==_0x822133['root']['rootName'])continue;const {row:_0x25ed59,column:_0x352543}=_0x456e57['getCellLocation'](_0x822133),_0x1d124b=_0x822133['hasAttribute']('rowspan')?_0x822133['getAttribute']('rowspan')-0x1:0x0,_0x3ef29b=_0x822133['hasAttribute']('colspan')?_0x822133['getAttribute']('colspan')-0x1:0x0;_0x403aa5=_0x25ed59<_0x403aa5?_0x25ed59:_0x403aa5,_0x3a582b=_0x25ed59+_0x1d124b>_0x3a582b?_0x25ed59+_0x1d124b:_0x3a582b,_0x2f2cd3=_0x352543<_0x2f2cd3?_0x352543:_0x2f2cd3,_0x39882b=_0x352543+_0x3ef29b>_0x39882b?_0x352543+_0x3ef29b:_0x39882b;}return{'minRow':_0x403aa5,'maxRow':_0x3a582b,'minColumn':_0x2f2cd3,'maxColumn':_0x39882b};}_setupColumnsRowsFixing(){const _0x130ecb=this['editor'],_0x189f55=_0x130ecb['plugins']['get']('TrackChangesEditing'),_0x199e84=_0x130ecb['plugins']['get']('TableUtils');_0x130ecb['model']['document']['on']('change:data',()=>{const _0x54a166=Array['from'](_0x130ecb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f68da,data:_0x9830e6}of _0x54a166){const {group:_0x35162e,id:_0x154e5a,subType:_0x2ab162}=nt(_0x3f68da);if('suggestion'!=_0x35162e)continue;if(null!=_0x9830e6['oldRange'])continue;const _0x31ba28=_0x189f55['getSuggestion'](_0x154e5a);this['_tablePostFixingSubtypes']['includes'](_0x2ab162)&&this['_tableSuggestions']['add'](_0x31ba28);}},{'priority':'low'});const _0x266d6f=(_0x1f3054,_0x3eadb4)=>{let _0x54937c=!0x1;const _0x251c9a=_0x3eadb4['createRangeOn'](_0x1f3054),_0x4b8b86=_0x1f3054['findAncestor']('table'),_0x537253=_0x199e84['getCellLocation'](_0x1f3054);for(const _0x2ebefb of this['_tableSuggestions']){const _0x3ddeaf=_0x2ebefb['subType'],_0x51e1ac=_0x3ddeaf['startsWith']('tablePaste'),_0x101d38=_0x3ddeaf['substr'](_0x51e1ac?0xa:0x5),_0x3637d2=_0x101d38['toLowerCase'](),_0x559468=_0x3637d2['substr'](0x0,0x3)+'span',_0x4ff537='min'+_0x101d38,_0x64bde6='max'+_0x101d38;if(!_0x2ebefb['isInContent'])continue;if(_0x4b8b86!=_0x2ebefb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ebefb['isIntersectingWithRange'](_0x251c9a))continue;const _0x183f54=_0x1f3054['hasAttribute'](_0x559468)?_0x1f3054['getAttribute'](_0x559468)-0x1:0x0,_0x930f36=this['_getSuggestionCoords'](_0x2ebefb),_0x2cb803=_0x930f36[_0x4ff537],_0x3fd63f=_0x930f36[_0x64bde6];_0x2cb803<=_0x537253[_0x3637d2]&&_0x537253[_0x3637d2]+_0x183f54<=_0x3fd63f&&(_0x2ebefb['addRange'](_0x251c9a),_0x54937c=!0x0);}return _0x54937c;};_0x130ecb['model']['document']['registerPostFixer'](_0x4224f0=>{let _0x335015=!0x1;for(const _0x104fac of _0x130ecb['model']['document']['differ']['getChanges']())if('insert'==_0x104fac['type']){if('tableRow'==_0x104fac['name']){for(const _0x10b473 of _0x104fac['position']['nodeAfter']['getChildren']())_0x335015=_0x335015||_0x266d6f(_0x10b473,_0x4224f0);}else'tableCell'==_0x104fac['name']&&(_0x335015=_0x335015||_0x266d6f(_0x104fac['position']['nodeAfter'],_0x4224f0));}return _0x335015;});}_getSuggestionCoords(_0x28179e){return this['_getCoordsForCells'](_0x28179e['getRanges']()['map'](_0x303d03=>_0x303d03['start']['nodeAfter']));}};function Ge(_0x31b395){return Array['from'](new Set(_0x31b395)['values']());}var He=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x516cc7=this['editor'],_0x3bb480=_0x516cc7['model']['document']['selection'],_0x3b1abd=_0x516cc7['locale'];if(!_0x516cc7['plugins']['has']('TableEditing'))return;const _0x4342a2=_0x516cc7['plugins']['get']('TrackChangesEditing'),_0x3a69c0=_0x516cc7['plugins']['get']('TableUtils'),_0x5cd377=_0x516cc7['plugins']['get'](xe);_0x5cd377['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4342a2['enableCommand']('mergeTableCells',()=>{const _0xbf0020=_0x3a69c0['getSelectionAffectedTableCells'](_0x516cc7['model']['document']['selection']);_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat'](_0xbf0020,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x516cc7['commands']['get']('mergeTableCells')['on']('execute',(_0x4ad4ac,_0x573c33)=>{_0x516cc7['commands']['get']('trackChanges')['value']&&(_0x573c33['length']>0x0&&_0x573c33[_0x573c33['length']-0x1]&&_0x573c33[_0x573c33['length']-0x1]['forceDefaultExecution']||_0x4342a2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ad4ac['stop']());},{'priority':'highest'});for(const _0x4116f3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e6285=_0x516cc7['commands']['get'](_0x4116f3);_0x4342a2['enableCommand'](_0x4116f3,()=>{const _0x3daaf4=_0x516cc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5267ad=>_0x5267ad['is']('element','tableCell')),_0x2a6c25=_0x4e6285['value'];_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat']([_0x3daaf4,_0x2a6c25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e4486 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fbf3f=_0x516cc7['commands']['get'](_0x2e4486);_0x4342a2['enableCommand'](_0x2e4486,()=>{const _0x5a8883=_0x3a69c0['getSelectionAffectedTableCells'](_0x516cc7['model']['document']['selection']),_0x4814d1=_0x5a8883[0x0]['findAncestor']('table'),_0x44cb97=new Set();for(const _0x592e81 of _0x5a8883){const {column:_0x3c68eb,row:_0x4a3885}=_0x3a69c0['getCellLocation'](_0x592e81),_0x1b656b='horizontally'==_0x3fbf3f['direction']?_0x3a69c0['createTableWalker'](_0x4814d1,{'startRow':_0x4a3885,'endRow':_0x4a3885,'includeAllSlots':!0x0}):_0x3a69c0['createTableWalker'](_0x4814d1,{'column':_0x3c68eb,'includeAllSlots':!0x0});for(const {cell:_0x1270cb}of _0x1b656b)_0x44cb97['add'](_0x1270cb);}_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat'](_0x5a8883,{'commandName':_0x2e4486,'commandParams':[]},Array['from'](_0x44cb97),_0x2e4486);});});}_0x4342a2['descriptionFactory']['registerDescriptionCallback'](_0x1eabce=>{if('formatBlock'!=_0x1eabce['type']&&'formatInline'!=_0x1eabce['type'])return;const {data:_0x26501e}=_0x1eabce;return _0x26501e&&'mergeTableCells'==_0x26501e['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Merge\x20cells*')}:void 0x0;}),_0x4342a2['descriptionFactory']['registerDescriptionCallback'](_0x174464=>{if('formatBlock'!=_0x174464['type']&&'formatInline'!=_0x174464['type'])return;const {data:_0x273100}=_0x174464;return _0x273100?'splitTableCellVertically'==_0x273100['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x273100['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x364a50=_0x5cd377['_acceptFormatSuggestionCallbackFactory']();for(const _0x335e73 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x335e73,'accept',_0x364a50);for(const _0x1ea638 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ea638,'accept',_0x58fee2=>{_0x516cc7['model']['change'](_0x416c2e=>{const _0x44e8c6=Array['from'](_0x58fee2)['filter'](_0x3b8ee2=>'$graveyard'!=_0x3b8ee2['root']['rootName']&&!!_0x3b8ee2['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x44e8c6['length'])return;const _0x51381e=Array['from'](_0x3bb480['getRanges']())['map'](_0x3e4565=>at['fromRange'](_0x3e4565));_0x416c2e['setSelection'](_0x44e8c6),_0x516cc7['commands']['get'](_0x1ea638)['refresh'](),_0x516cc7['execute'](_0x1ea638,{'forceDefaultExecution':!0x0});const _0x565bd4=_0x51381e['filter'](_0x315b67=>'$graveyard'!=_0x315b67['root']['rootName']);_0x565bd4['length']>0x0&&_0x416c2e['setSelection'](_0x565bd4);for(const _0x4dce2d of _0x51381e)_0x4dce2d['detach']();});});_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x330b31=>{_0x516cc7['model']['change'](_0x1243c9=>{const _0x3654d0=Array['from'](_0x3bb480['getRanges']())['map'](_0x1e4d0d=>at['fromRange'](_0x1e4d0d));_0x1243c9['setSelection'](_0x330b31),_0x516cc7['commands']['get']('mergeTableCells')['refresh'](),_0x516cc7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29f4a1=_0x3654d0['filter'](_0x5b9d91=>'$graveyard'!=_0x5b9d91['root']['rootName']);_0x29f4a1['length']>0x0&&_0x1243c9['setSelection'](_0x29f4a1);for(const _0x270f35 of _0x3654d0)_0x270f35['detach']();});});for(const _0x194189 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3277e8=_0x516cc7['commands']['get'](_0x194189);_0x3277e8['on']('set:isEnabled',(_0x48ed55,_0x5642fa,_0x497af9)=>{if(_0x497af9){const _0x13befc=_0x516cc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x491663=>_0x491663['is']('element','tableCell'));this['_areMergableCells'](_0x3277e8['value'],_0x13befc)||(_0x48ed55['return']=!0x1,_0x48ed55['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x53b163=this['editor']['commands']['get']('mergeTableCells'),_0x55b5f2=this['editor']['plugins']['get']('TableUtils');if(!_0x53b163['isEnabled'])return!0x1;const _0x496baa=_0x55b5f2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ce22 of _0x496baa)for(const _0x45e13a of _0x496baa)if(_0x30ce22!=_0x45e13a&&!this['_areMergableCells'](_0x30ce22,_0x45e13a))return!0x1;return!0x0;}['_areMergableCells'](_0x434864,_0x39eb75){const _0x5c1c3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7146f1=this['editor']['model']['createRangeOn'](_0x434864),_0x172a3b=this['editor']['model']['createRangeOn'](_0x39eb75),_0x133275=new Set(),_0x3fc1fd=new Set();for(const _0x360030 of _0x5c1c3a['getSuggestions']())if(('insertion'==_0x360030['type']||'deletion'==_0x360030['type']||'mergeTableCells'==_0x360030['subType'])&&_0x360030['isInContent']){for(const _0x22d286 of _0x360030['getRanges']())_0x22d286['containsRange'](_0x7146f1,!0x0)&&_0x133275['add'](_0x360030['type']+':'+_0x360030['author']['id']),_0x22d286['containsRange'](_0x172a3b,!0x0)&&_0x3fc1fd['add'](_0x360030['type']+':'+_0x360030['author']['id']);}if(_0x133275['size']!=_0x3fc1fd['size'])return!0x1;for(const _0x730e74 of _0x133275)if(!_0x3fc1fd['has'](_0x730e74))return!0x1;return!0x0;}},$e=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x35cf23=this['editor'];if(!_0x35cf23['plugins']['has']('TableEditing'))return;const _0x13650a=_0x35cf23['locale'],_0x4a09d6=_0x35cf23['plugins']['get']('TrackChangesEditing');_0x4a09d6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4a09d6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4a09d6['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x13650a,'FORMAT_HEADER_ROW')),_0x4a09d6['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x13650a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x82ece1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf79089=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x82ece1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xf79089),_0x82ece1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xf79089),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5913d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23eacc=this['editor']['plugins']['get']('TableUtils');function _0x3fe33e({showActiveMarker:_0x12d242=!0x0,setDataAttribute:_0x156371=!0x0}={}){return(_0x13fe09,_0x1c6620,_0x4ccdbb)=>{const {type:_0x46c430,id:_0x1a2069}=nt(_0x1c6620['markerName']);if(!_0x5913d0['hasSuggestion'](_0x1a2069))return;const _0x136f9e=_0x5913d0['getSuggestion'](_0x1a2069),_0x4dec05=_0x136f9e['data'];if('formatBlock'!=_0x136f9e['type']||!_0x4dec05||'setTableColumnHeader'!=_0x4dec05['commandName'])return;if(_0x1c6620['item'])return void _0x13fe09['stop']();if(!_0x4ccdbb['consumable']['consume'](_0x1c6620['markerRange'],_0x13fe09['name']))return;const _0x202df2=_0x1c6620['markerRange']['start']['nodeAfter'],_0x1f4173=_0x1c6620['markerRange']['end']['nodeBefore'],_0x39b1be=_0x202df2['parent']['parent'],{column:_0x57ecce}=_0x23eacc['getCellLocation'](_0x202df2),{column:_0x52fa98}=_0x23eacc['getCellLocation'](_0x1f4173);for(let _0x165c80=_0x57ecce;_0x165c80<=_0x52fa98;_0x165c80++){const _0x59b6ac=_0x23eacc['createTableWalker'](_0x39b1be,{'column':_0x165c80,'includeAllSlots':!0x1});for(const _0x3cac1d of _0x59b6ac){const _0x2d7b8f=_0x3cac1d['cell'],_0x13acee=_0x4ccdbb['mapper']['toViewElement'](_0x2d7b8f);_0x4ccdbb['writer']['addClass']('ck-suggestion-marker-'+_0x46c430,_0x13acee),_0x156371&&_0x4ccdbb['writer']['setAttribute']('data-suggestion',_0x1a2069,_0x13acee),_0x4ccdbb['mapper']['bindElementToMarker'](_0x13acee,_0x1c6620['markerName']),_0x12d242&&(_0x5913d0['activeMarkers']['includes'](_0x1c6620['markerName'])?_0x4ccdbb['writer']['addClass']('ck-suggestion-marker--active',_0x13acee):_0x4ccdbb['writer']['removeClass']('ck-suggestion-marker--active',_0x13acee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3fe33e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2375af,_0x436035,_0x13a6d6)=>{_0x13a6d6['options']['showSuggestionHighlights']&&_0x3fe33e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2375af,_0x436035,_0x13a6d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45bd6d,_0x49cf41,_0x298496)=>{const {type:_0x2953fe,id:_0x2e0b7d}=nt(_0x49cf41['markerName']);if(!_0x5913d0['hasSuggestion'](_0x2e0b7d))return;const _0x2bfddf=_0x5913d0['getSuggestion'](_0x2e0b7d),_0xa41271=_0x2bfddf['data'];if('formatBlock'!=_0x2bfddf['type']||!_0xa41271||'setTableColumnHeader'!=_0xa41271['commandName'])return;const _0x53cb93=_0x298496['mapper']['markerNameToElements'](_0x49cf41['markerName']);if(_0x53cb93){for(const _0x5ea501 of _0x53cb93)_0x298496['writer']['removeClass']('ck-suggestion-marker-'+_0x2953fe,_0x5ea501),_0x298496['writer']['removeClass']('ck-suggestion-marker--active',_0x5ea501),_0x298496['writer']['removeAttribute']('data-suggestion',_0x5ea501),_0x298496['mapper']['unbindElementFromMarkerName'](_0x5ea501,_0x49cf41['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x2d1c59=this['editor'],_0x13efc5=_0x2d1c59['locale'];function _0x117169(_0x3be2cb){return{'type':'format','content':wt(_0x13efc5,'*Format:*\x20%0',_0x3be2cb)};}_0x2d1c59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a2054=>{if('formatBlock'!=_0x3a2054['type'])return;const {data:_0x13644b}=_0x3a2054;return _0x13644b?'setTableRowHeader'==_0x13644b['commandName']?_0x13644b['commandParams'][0x0]['forceValue']?_0x117169(wt(_0x13efc5,'FORMAT_HEADER_ROW')):_0x117169(wt(_0x13efc5,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x13644b['commandName']?_0x13644b['commandParams'][0x0]['forceValue']?_0x117169(wt(_0x13efc5,'FORMAT_HEADER_COLUMN')):_0x117169(wt(_0x13efc5,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x44e98c=this['editor'];if(!_0x44e98c['plugins']['has']('TableEditing')||!_0x44e98c['config']['get']('table.enableFooters'))return;const _0x47a2ec=_0x44e98c['locale'],_0x108fe5=_0x44e98c['plugins']['get']('TrackChangesEditing');_0x108fe5['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x108fe5['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x47a2ec,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x17c3d7{afterInit(){const _0x1d85d6=this['editor'],_0xe026d7=_0x1d85d6['locale'],_0x4051b4=_0x1d85d6['plugins']['get']('TrackChangesEditing');function _0x5a442b(_0x10c084){return{'type':'format','content':''+wt(_0xe026d7,'*Set\x20table\x20type:*\x20%0',_0x10c084)};}_0x1d85d6['plugins']['has']('TableLayout')&&(_0x4051b4['enableCommand']('insertTableLayout'),_0x4051b4['enableDefaultAttributesIntegration']('tableType'),_0x4051b4['descriptionFactory']['registerElementLabel'](_0x166a9d=>_0x166a9d['is']('element','table')&&'layout'===_0x166a9d['getAttribute']('tableType'),_0x5df2ac=>wt(_0xe026d7,'ELEMENT_LAYOUT_TABLE',_0x5df2ac)),_0x4051b4['descriptionFactory']['registerDescriptionCallback'](_0x5c2376=>{const {data:_0x1bff8e}=_0x5c2376;if(_0x1bff8e&&'tableType'==_0x1bff8e['key'])switch(_0x1bff8e['newValue']){case'layout':return _0x5a442b(wt(_0xe026d7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5a442b(wt(_0xe026d7,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](ze['map'](_0x5523bd=>[_0x5523bd,null]));var Ke=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x1c9309=this['editor'];if(!_0x1c9309['plugins']['has']('TableClipboard'))return;const _0x5c9071=_0x1c9309['plugins']['get']('TrackChangesEditing'),_0x28d8fc=_0x1c9309['plugins']['get']('TableUtils'),_0x1f51a7=_0x1c9309['plugins']['get'](xe),_0x15b075=_0x1c9309['plugins']['get']('TableClipboard'),_0x11a777=_0x1c9309['plugins']['get']('TableSelection'),_0x28d54f=_0x1c9309['plugins']['get'](mt);_0x1f51a7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c9309['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c9309['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48f238=null,_0x4167d=!0x1;_0x28d54f['on']('contentInsertion',(_0x494b25,_0x29b0c4)=>{_0x4167d='paste'===_0x29b0c4['method'];}),_0x1c9309['model']['on']('insertContent',(_0x38184,_0x4dd54e)=>{if(!_0x4167d&&null===_0x11a777['getSelectedTableCells']())return;const [_0x242bc2,_0x253b98]=_0x4dd54e,_0x18b818=_0x4dd54e[_0x4dd54e['length']-0x1];_0x18b818&&_0x18b818['forceDefaultExecution']||_0x5c9071['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b2744,_0x14c949,_0x159c1d,_0x55d91c,_0x1498db){if(_0x14c949&&!_0x14c949['is']('documentSelection'))return!0x1;const _0x44a2aa=_0x1498db['getTableIfOnlyTableInContent'](_0x4b2744,_0x159c1d);if(!_0x44a2aa||!qe(_0x44a2aa,void 0x0,_0x55d91c))return!0x1;const _0x22d6bb=_0x55d91c['getSelectionAffectedTableCells'](_0x159c1d['document']['selection']);if(!_0x22d6bb['length'])return!0x1;const _0x35ff43=_0x22d6bb[0x0]['findAncestor']('table'),_0x2e3d66=_0x55d91c['getRowIndexes'](_0x22d6bb),_0x4eeb65=_0x55d91c['getColumnIndexes'](_0x22d6bb),_0x998fb6={'startRow':_0x2e3d66['first'],'endRow':_0x2e3d66['last'],'startColumn':_0x4eeb65['first'],'endColumn':_0x4eeb65['last']};return 0x1==_0x22d6bb['length']&&(_0x998fb6['endRow']+=_0x55d91c['getRows'](_0x44a2aa)-0x1,_0x998fb6['endColumn']+=_0x55d91c['getColumns'](_0x44a2aa)-0x1),qe(_0x35ff43,_0x998fb6,_0x55d91c);}(_0x242bc2,_0x253b98,_0x1c9309['model'],_0x28d8fc,_0x15b075)&&(_0x38184['stop'](),_0x48f238={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c9309['model']['change'](()=>{_0x1c9309['model']['insertContent'](_0x4dd54e[0x0],_0x4dd54e[0x1],_0x4dd54e[0x2],{'forceDefaultExecution':!0x0});const _0x5e3e6e=_0x5a260f(),{rowInsertionRanges:_0x47b984,columnInsertionRanges:_0x2538b3,insertionRanges:_0x296ce6,deletionRanges:_0x546ff0,cells:_0x516d39}=_0x48f238;_0x47b984['length']&&_0x5c9071['markMultiRangeInsertion'](_0x47b984,'tablePasteRow',{'tablePasteChainId':_0x5e3e6e}),_0x2538b3['length']&&_0x5c9071['markMultiRangeInsertion'](_0x2538b3,'tablePasteColumn',{'tablePasteChainId':_0x5e3e6e}),_0x296ce6['length']&&(_0x5c9071['markMultiRangeInsertion'](_0x296ce6,'tablePaste',{'tablePasteChainId':_0x5e3e6e,'skipNestingCheck':!0x0}),_0x296ce6['forEach'](_0x5ebec8=>_0x5ebec8['detach']?.())),_0x546ff0['length']&&(_0x5c9071['markMultiRangeDeletion'](_0x546ff0,'tablePaste',{'tablePasteChainId':_0x5e3e6e,'skipNestingCheck':!0x0}),_0x546ff0['forEach'](_0x25908e=>_0x25908e['detach']?.()));const _0x101ccd=_0x5c9071['markMultiRangeBlockFormat'](_0x516d39['map'](({element:_0x1af407})=>_0x1af407),{'formatGroupId':_0x5a260f()},[],'tablePasteCell',{'tablePasteChainId':_0x5e3e6e});if(_0x101ccd){const _0x375eef=_0x101ccd['getMarkers'](),_0x26e4df=[];for(const {element:_0x4528f8,attributes:_0x2cb663}of _0x516d39){if(!_0x2cb663)continue;const _0x2f3da6=_0x1c9309['model']['createRangeOn'](_0x4528f8),_0x445c71=_0x375eef['find'](_0x746365=>_0x746365['getRange']()['isEqual'](_0x2f3da6));_0x445c71&&_0x26e4df['push']([_0x445c71['name'],_0x2cb663]);}_0x26e4df['length']&&_0x101ccd['setAttribute']('markerAttributes',Object['fromEntries'](_0x26e4df));}_0x48f238=null;}));},{'priority':_0x165b6f['high']+0xa}),_0x28d54f['on']('contentInsertion',()=>{_0x4167d=!0x1;},{'priority':'lowest'}),_0x1c9309['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f94e5,_0x29616f)=>{const [_0x103e9f,_0x31954d,,_0x487a09]=_0x29616f;if(!_0x48f238)return;_0x4f94e5['stop']();const _0x22fa5b=_0x103e9f['cell'],_0x194749=_0x31954d,_0x38aee3=Xe(_0x22fa5b),_0x57e5f5=Xe(_0x194749);_0x4f94e5['return']=_0x22fa5b;let _0x34635e=null,_0x4ddff6=null;if(_0x57e5f5||_0x38aee3){if(_0x38aee3&&!_0x57e5f5){_0x487a09['remove'](_0x22fa5b['getChild'](0x0));for(const _0x1beafd of Array['from'](_0x194749['getChildren']()))_0x487a09['insert'](_0x1beafd,_0x22fa5b,'end');const _0x34edbd=_0x48f238['rowInsertionIndexes']['includes'](_0x103e9f['row']),_0x421ef9=_0x48f238['columnInsertionIndexes']['includes'](_0x103e9f['column']);_0x34edbd||_0x421ef9||(_0x34635e=at['fromRange'](_0x487a09['createRangeIn'](_0x22fa5b)));}else _0x57e5f5&&!_0x38aee3&&(_0x4ddff6=_0x487a09['createRangeIn'](_0x22fa5b));}else{const _0x427ed2=_0x487a09['createElement']('tableCellSuggestion'),_0x2ec704=_0x487a09['createElement']('tableCellSuggestion');_0x487a09['wrap'](_0x487a09['createRangeIn'](_0x22fa5b),_0x2ec704),_0x487a09['insert'](_0x427ed2,_0x22fa5b,0x0);for(const _0x2cb173 of Array['from'](_0x194749['getChildren']()))_0x487a09['insert'](_0x2cb173,_0x427ed2,'end');_0x34635e=at['fromRange'](_0x487a09['createRangeOn'](_0x427ed2)),_0x4ddff6=at['fromRange'](_0x487a09['createRangeOn'](_0x2ec704));}const _0x523b13=Array['from'](_0x194749['getAttributes']())['filter'](([_0x33d2a9])=>ze['includes'](_0x33d2a9));_0x48f238['cells']['push']({'element':_0x22fa5b,'attributes':_0x523b13['length']?Object['fromEntries'](_0x523b13):null}),_0x34635e&&_0x48f238['insertionRanges']['push'](_0x34635e),_0x4ddff6&&_0x48f238['deletionRanges']['push'](_0x4ddff6);},{'priority':'high'}),_0x28d8fc['on']('insertColumns',(_0x38a2f3,_0x3f44df)=>{const [_0x1b0ebc,_0x294759={}]=_0x3f44df;if(!_0x48f238)return;const _0x3c6638=_0x294759['at']||0x0,_0x2da28a=_0x294759['columns']||0x1;_0x48f238['columnInsertionIndexes']=new Array(_0x2da28a)['fill'](_0x3c6638)['map']((_0x41e57d,_0x3fbb2c)=>_0x41e57d+_0x3fbb2c);for(const {cell:_0x240879}of _0x28d8fc['createTableWalker'](_0x1b0ebc,{'startColumn':_0x3c6638,'endColumn':_0x3c6638+_0x2da28a-0x1}))_0x48f238['columnInsertionRanges']['push'](_0x1c9309['model']['createRangeOn'](_0x240879));},{'priority':'low'}),_0x28d8fc['on']('insertRows',(_0x4c5e09,_0x27974d)=>{const [_0x4c8c73,_0x4afab3={}]=_0x27974d;if(!_0x48f238)return;const _0xed15d4=_0x4afab3['at']||0x0,_0x214ea6=_0x4afab3['rows']||0x1;_0x48f238['rowInsertionIndexes']=new Array(_0x214ea6)['fill'](_0xed15d4)['map']((_0x42750a,_0x5e220a)=>_0x42750a+_0x5e220a);for(const {cell:_0x5c75fd}of _0x28d8fc['createTableWalker'](_0x4c8c73,{'startRow':_0xed15d4,'endRow':_0xed15d4+_0x214ea6-0x1}))_0x48f238['rowInsertionRanges']['push'](_0x1c9309['model']['createRangeOn'](_0x5c75fd));},{'priority':'low'}),_0x5c9071['descriptionFactory']['registerDescriptionCallback'](_0x59ed95=>{if(_0x59ed95['subType']&&_0x59ed95['subType']['startsWith']('tablePaste'))return _0x59ed95['previous']?{}:{'type':'insertion','content':wt(_0x1c9309['locale'],'*Replace\x20table\x20cells*')};});const _0x14f6bc=()=>!0x1;for(const _0x2eaee8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eaee8,'join',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eaee8,'join',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eaee8,'join',_0x14f6bc);_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x238ee1,_0x46c124,_0x144c4e)=>{const _0x44d46b=_0x238ee1['map'](_0x202a26=>_0x202a26['getContainedElement']())['filter'](_0x1625c3=>_0x1625c3),_0x384bb9=new Map(_0x44d46b['map'](_0x113c63=>[_0x113c63,null]));if(_0x48f238){for(const {element:_0x2820f4,attributes:_0x42e988}of _0x48f238['cells'])_0x42e988&&_0x384bb9['set'](_0x2820f4,_0x42e988);}else{if(_0x144c4e&&_0x144c4e['markerAttributes'])for(const [_0x1445ac,_0xe89613]of Object['entries'](_0x144c4e['markerAttributes'])){const _0x45aed0=_0x1c9309['model']['markers']['get'](_0x1445ac),_0x3f3c60=_0x45aed0?_0x45aed0['getRange']()['getContainedElement']():null;_0x3f3c60&&_0x384bb9['set'](_0x3f3c60,_0xe89613);}}_0x1c9309['model']['change'](_0x157b5f=>{for(const [_0x3e2e20,_0x23e573]of _0x384bb9)_0x157b5f['setAttributes']({...je,..._0x23e573},_0x3e2e20);});});const _0x43468f=(_0x1f3dcc,_0x562a49)=>{_0x5c9071['_suggestionFactory']['registerCustomCallback'](_0x1f3dcc,'tablePaste',_0x562a49,(_0x591331,_0x463ab3,_0x398085)=>{_0x1c9309['model']['change'](_0x52c8b4=>{const _0x43e47f=[];for(const _0x589d87 of _0x591331){const _0xb39ee6=_0x589d87['start']['nodeAfter'];_0xb39ee6['is']('element','tableCellSuggestion')&&_0x43e47f['push'](_0xb39ee6);}_0x5c9071['_suggestionFactory']['getSuggestionCallback'](_0x1f3dcc,null,_0x562a49)(_0x591331,_0x463ab3,_0x398085);for(const _0x19892b of _0x43e47f)'$graveyard'!=_0x19892b['root']['rootName']&&_0x52c8b4['unwrap'](_0x19892b);});});};_0x43468f('insertion','accept'),_0x43468f('insertion','discard'),_0x43468f('deletion','accept'),_0x43468f('deletion','discard'),_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xca6e33=>{const _0x31da4e=_0xca6e33['map'](_0x28d94d=>_0x28d94d['getContainedElement']()),_0x46205b=_0x31da4e[0x0]['findAncestor']('table'),{minRow:_0x4b6d2c,maxRow:_0x216deb}=_0x1f51a7['_getCoordsForCells'](_0x31da4e);_0x28d8fc['removeRows'](_0x46205b,{'at':_0x4b6d2c,'rows':_0x216deb-_0x4b6d2c+0x1});}),_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ac518=>{const _0x408747=_0x3ac518['map'](_0x5dd6c8=>_0x5dd6c8['getContainedElement']()),_0x327c4b=_0x408747[0x0]['findAncestor']('table'),{minColumn:_0x5745ce,maxColumn:_0x3428c6}=_0x1f51a7['_getCoordsForCells'](_0x408747);_0x28d8fc['removeColumns'](_0x327c4b,{'at':_0x5745ce,'columns':_0x3428c6-_0x5745ce+0x1});});const _0x2a8b1d=(_0xce90bd,_0xb1ccc6)=>{if(!_0xb1ccc6['subType']||!_0xb1ccc6['subType']['startsWith']('tablePaste'))return;const _0x33f7ab=_0xb1ccc6['attributes']['tablePasteChainId'],_0x283039=_0x5c9071['getSuggestions']()['filter'](_0x20939e=>_0x20939e['isInContent']&&_0x20939e['attributes']&&_0x20939e['attributes']['tablePasteChainId']==_0x33f7ab);_0x283039['length']&&_0xb1ccc6['getAllAdjacentSuggestions']()['length']!=_0x283039['length']&&_0x283039['reduce']((_0x3f6a6d,_0x272a6f)=>(_0x3f6a6d['next']=_0x272a6f,_0x272a6f['previous']=_0x3f6a6d,_0x272a6f));};function _0x29f875(_0x1271e0,_0x83df4f=!0x0){const {id:_0xd32cdf,authorId:_0x34d6cd}=nt(_0x1271e0['markerName']),_0x2ce92a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa265c1=_0x5c9071['activeMarkers']['includes'](_0x1271e0['markerName']);return _0xa265c1&&_0x2ce92a['push']('ck-suggestion-marker--active'),{'classes':_0x2ce92a,'attributes':{'data-suggestion':_0xd32cdf,'data-author-id':_0x34d6cd},'priority':_0xa265c1&&_0x83df4f?0xbc2:0xbb8};}_0x5c9071['on']('suggestionLoaded',_0x2a8b1d,{'priority':'high'}),_0x5c9071['on']('suggestionUnloaded',_0x2a8b1d,{'priority':'high'}),_0x1c9309['model']['document']['registerPostFixer'](()=>{let _0x13a27e=!0x1;const _0x130704=Array['from'](_0x1c9309['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23518e,data:_0x3e3804}of _0x130704){const {group:_0x33462a,type:_0x2bb476,id:_0x8abad6}=nt(_0x23518e);if('suggestion'!=_0x33462a||'deletion'!=_0x2bb476||_0x3e3804['oldRange'])continue;if(!_0x5c9071['hasSuggestion'](_0x8abad6))continue;const _0x180bd5=_0x5c9071['getSuggestion'](_0x8abad6)['getRanges'](),_0x4feec3=_0x1c9309['plugins']['get']('Users')['me'];for(const _0xda9b27 of _0x5c9071['getSuggestions']())if(_0xda9b27['isInContent']&&_0xda9b27['author']==_0x4feec3&&'formatBlock'==_0xda9b27['type']&&'tablePasteCell'==_0xda9b27['subType']&&_0xda9b27['getRanges']()['every'](_0x343106=>_0x180bd5['some'](_0x1301e6=>_0x1301e6['containsRange'](_0x343106,!0x0)))){for(const _0x4103bf of _0xda9b27['getAllAdjacentSuggestions']())_0x4103bf['isInContent']&&(_0x4103bf['discard'](),_0x13a27e=!0x0);}}return _0x13a27e;}),_0x1c9309['model']['document']['registerPostFixer'](_0x51b894=>{const _0x292693=_0x1c9309['commands']['get']('redo');if(!_0x292693||!_0x292693['_createdBatches']['has'](_0x51b894['batch']))return!0x1;let _0x3cc3a1=!0x1;const _0x148bb9=_0x1c9309['plugins']['get']('Users')['me'],_0x1268e3=_0x1c9309['model']['document']['differ']['getChanges'](),_0x46b95a=Array['from'](_0x1c9309['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x409286,data:_0x432db5})=>{const {group:_0x3b348a,subType:_0x236d2d,authorId:_0x3e6aeb}=nt(_0x409286);return'suggestion'==_0x3b348a&&'tablePaste'==_0x236d2d&&_0x3e6aeb==_0x148bb9['id']&&!_0x432db5['oldRange'];});for(const _0x5db296 of _0x1268e3){if('insert'!=_0x5db296['type']||'tableCellSuggestion'!=_0x5db296['name']||0x1!=_0x5db296['length'])continue;const _0x341938=_0x51b894['createRange'](_0x5db296['position'],_0x5db296['position']['getShiftedBy'](0x1));if(!_0x46b95a['find'](({data:_0x290c42})=>_0x290c42['newRange']['isEqual'](_0x341938))){for(const {name:_0x248820,data:_0x166372}of _0x46b95a)if(_0x341938['containsRange'](_0x166372['newRange'])){_0x51b894['updateMarker'](_0x248820,{'range':_0x341938}),_0x3cc3a1=!0x0;break;}}}return _0x3cc3a1;}),_0x1c9309['model']['document']['registerPostFixer'](_0x237e6b=>{let _0x16896a=!0x1;const _0x144389=_0x1c9309['plugins']['get']('Users')['me'],_0xdbdebe=_0x5c9071['getSuggestions']()['filter'](_0x83fac1=>_0x83fac1['isInContent']&&_0x83fac1['author']==_0x144389),_0x582383=new Set(),_0x446cbb=new Set();for(const _0x534289 of _0xdbdebe)if('tablePaste'==_0x534289['subType'])for(const _0x50057c of _0x534289['getMarkers']()){const _0x232bb9=_0x50057c['getRange']()['getContainedElement']();if(_0x232bb9){if(_0x232bb9['is']('element','tableCellSuggestion')&&Xe(_0x232bb9)){_0x534289['removeMarker'](_0x50057c['name']),_0x582383['add'](_0x232bb9),_0x16896a=!0x0;const _0x22e470=_0x232bb9['nextSibling'],_0x4e8b4c=_0x232bb9['previousSibling'],_0x30e857=_0x22e470&&_0x22e470['is']('element','tableCellSuggestion'),_0x20fc21=_0x4e8b4c&&_0x4e8b4c['is']('element','tableCellSuggestion');_0x30e857&&!_0x582383['has'](_0x22e470)&&_0x446cbb['add'](_0x22e470),_0x20fc21&&!_0x582383['has'](_0x4e8b4c)&&_0x446cbb['add'](_0x4e8b4c);}else _0x232bb9['is']('element','paragraph')&&_0x232bb9['isEmpty']&&(_0x534289['removeMarker'](_0x50057c['name']),_0x16896a=!0x0);}}else{if('tablePasteCell'==_0x534289['subType']){if(!_0x534289['attributes']||!_0x534289['attributes']['tablePasteChainId'])continue;const _0x104602=_0x534289['attributes']['markerAttributes'];if(_0x104602&&Object['keys'](_0x104602)['length'])continue;const _0x5780bb=_0x534289['attributes']['tablePasteChainId'];let _0xa57459=!0x0,_0xe8abf6=!0x0;for(const _0x1472bf of _0xdbdebe)if(_0x1472bf['subType']&&_0x1472bf['subType']['startsWith']('tablePaste')){if(!_0x1472bf['attributes']['tablePasteChainId']){_0xe8abf6=!0x1;break;}if(_0x1472bf['id']!=_0x534289['id']&&_0x1472bf['attributes']['tablePasteChainId']==_0x5780bb){_0xa57459=!0x1;break;}}_0xe8abf6&&_0xa57459&&(_0x534289['removeMarkers'](),_0x16896a=!0x0);}}for(const _0xf9805c of _0x582383)_0x237e6b['remove'](_0xf9805c);for(const _0x450401 of _0x446cbb)_0x237e6b['unwrap'](_0x450401);return _0x16896a;}),_0x1c9309['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x6e507d=>_0x29f875(_0x6e507d),'converterPriority':'high'}),_0x1c9309['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6a459,_0x1c3298)=>_0x1c3298['options']['showSuggestionHighlights']?_0x29f875(_0x6a459,!0x1):null,'converterPriority':'high'});const _0x52272a=_0x1c9309['editing']['view'];this['listenTo'](_0x52272a['document'],'clipboardOutput',(_0x2dbaab,_0x232201)=>{const _0x3ea357=[];for(const _0x4bd8a4 of _0x52272a['createRangeIn'](_0x232201['content'])['getItems']())_0x4bd8a4['is']('element','suggestion-td')&&_0x3ea357['push'](_0x4bd8a4);_0x52272a['change'](_0x28791d=>{for(const _0x2e78c8 of _0x3ea357)_0x28791d['move'](_0x28791d['createRangeIn'](_0x2e78c8),_0x28791d['createPositionBefore'](_0x2e78c8)),_0x28791d['remove'](_0x2e78c8);});});}};function Xe(_0x4fab69){if(_0x4fab69['isEmpty'])return!0x0;const _0x230193=_0x4fab69['getChild'](0x0);return _0x230193['is']('element','paragraph')&&_0x230193['isEmpty'];}function qe(_0x1de553,_0x40d1b9={},_0x1c2c17){for(const {isAnchor:_0x409305,cellHeight:_0x17cb13,cellWidth:_0xb9a842}of _0x1c2c17['createTableWalker'](_0x1de553,{'includeAllSlots':!0x0,..._0x40d1b9}))if(!_0x409305||0x1!=_0x17cb13||0x1!=_0xb9a842)return!0x1;return!0x0;}var Ye=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a7ff7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a7ff7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x5a7ff7['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x5a7ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a7ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x5b7faf=_0x5a7ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x5a7ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3b2f07,_0x373e46)=>{_0x5b7faf(_0x3b2f07,_0x373e46),this['_restoreCellWidths'](_0x3b2f07[0x0]['start']['nodeAfter'],_0x373e46['commandParams'][0x0]['cellWidths']);}),_0x5a7ff7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x14b5f0,_0x460a0e){const _0x4a2d54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51510b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x337c92=_0x460a0e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c46aa=_0x51510b['getColumnGroupElement'](_0x337c92);let _0x2088a7=_0x5c46aa?_0x51510b['getTableColumnsWidths'](_0x5c46aa):null,_0x132850=_0x337c92['getAttribute']('tableWidth')||null;const _0xcaa205=_0x460a0e['tableWidth']||_0x132850,_0x54f6d4=_0x460a0e['columnWidths']||_0x2088a7;let _0xf3888e=this['_getCellWidths'](_0x337c92);const _0x2fa544=this['_foldResizeTableSuggestion'](_0x337c92);_0x2fa544&&(_0x132850=_0x2fa544['tableWidth'],_0x2088a7=_0x2fa544['columnWidths'],_0xf3888e=_0x2fa544['cellWidths']||_0xf3888e),_0x14b5f0({'table':_0x337c92,'tableWidth':_0xcaa205,'columnWidths':_0x54f6d4}),_0x4a2d54['markBlockFormat'](_0x337c92,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x132850,'columnWidths':_0x2088a7,'cellWidths':_0xf3888e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x542b96,_0x51e3fb={}){if(void 0x0===_0x51e3fb['value']||''===_0x51e3fb['value'])return void _0x542b96(_0x51e3fb);const _0x3172c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x300106=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf66814=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x51e3fb['batch']||(_0x51e3fb['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x51e3fb['batch'],()=>{const _0x460be8=_0x300106['getColumnGroupElement'](_0xf66814);let _0x1b1562=_0x460be8?_0x300106['getTableColumnsWidths'](_0x460be8):null,_0x1b27e0=_0xf66814['getAttribute']('tableWidth')||null,_0x532c15=this['_getCellWidths'](_0xf66814);const _0x5f0046=this['_foldResizeTableSuggestion'](_0xf66814,!0x0);_0x5f0046&&(_0x1b27e0=_0x5f0046['tableWidth'],_0x1b1562=_0x5f0046['columnWidths'],_0x532c15=_0x5f0046['cellWidths']||_0x532c15),_0x542b96(_0x51e3fb),_0x3172c9['markBlockFormat'](_0xf66814,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b27e0,'columnWidths':_0x1b1562,'cellWidths':_0x532c15}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x12fa34,_0x5cdb5e=!0x1){const _0x33694b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x506cad=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b9727 of _0x33694b['getSuggestions']({'skipNotAttached':!0x0})){const _0x226403=_0x3b9727['getContainedElement']();if('resizeTable'===_0x3b9727['subType']&&_0x226403===_0x12fa34){_0x3b9727['author']!==_0x506cad&&(_0x5cdb5e?_0x3b9727['removeMarkers']():_0x3b9727['discard']());const _0x465fc5=_0x3b9727['data']['commandParams'];return{'tableWidth':_0x465fc5[0x0]['tableWidth'],'columnWidths':_0x465fc5[0x0]['columnWidths'],'cellWidths':_0x465fc5[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x5f44ae){const _0x2b647c=[];for(const _0x4897ff of _0x5f44ae['getChildren']())if(_0x4897ff['is']('element','tableRow')){for(const _0x394bcc of _0x4897ff['getChildren']())_0x2b647c['push'](_0x394bcc['getAttribute']('tableCellWidth')||null);}return _0x2b647c;}_restoreCellWidths(_0x481ac6,_0x349469){_0x349469&&this['editor']['model']['change'](_0x5a6458=>{let _0x3c5853=0x0;for(const _0x206fd4 of _0x481ac6['getChildren']())if(_0x206fd4['is']('element','tableRow'))for(const _0x7efc87 of _0x206fd4['getChildren']()){const _0x51b54c=_0x349469[_0x3c5853++];_0x51b54c&&_0x5a6458['setAttribute']('tableCellWidth',_0x51b54c,_0x7efc87);}});}handleSuggestionDescription(_0x1581c2){if('formatBlock'!=_0x1581c2['type']&&'formatInline'!=_0x1581c2['type'])return;const {data:_0x51e141}=_0x1581c2;return _0x51e141&&'resizeTable'===_0x51e141['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x17c3d7{afterInit(){const _0x98cf7e=this['editor'];_0x98cf7e['plugins']['has']('Template')&&_0x98cf7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x17c3d7{afterInit(){const _0x211871=this['editor'];if(!_0x211871['commands']['get']('insertTableOfContents'))return;_0x211871['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f0281=_0x211871['plugins']['get']('TrackChangesEditing'),_0x1cd871=_0x211871['locale'];_0x3f0281['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2f4a38=>wt(_0x1cd871,'ELEMENT_TABLE_OF_CONTENTS',_0x2f4a38));}},Je=class extends _0x17c3d7{afterInit(){const _0x1f1035=this['editor'];_0x1f1035['plugins']['has']('Title')&&(_0x1f1035['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x1f1035['locale'],'ELEMENT_TITLE')),_0x1f1035['model']['document']['registerPostFixer'](_0x5599cf=>{let _0x387926=!0x1;const _0x1fd067=Array['from'](_0x1f1035['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f0f64,data:_0x180742}of _0x1fd067){const {group:_0x42fbab}=nt(_0x1f0f64);if('suggestion'!==_0x42fbab||!_0x180742['newRange'])continue;const _0x1ecdd9=_0x180742['newRange'],_0x4e3ac5=_0x1ecdd9['end']['nodeBefore'];if(!_0x4e3ac5||!_0x4e3ac5['is']('element','title-content'))continue;if(!_0x1ecdd9['start']['isTouching'](_0x1ecdd9['end']))continue;const _0x198b25=_0x1f1035['model']['schema']['getNearestSelectionRange'](_0x1ecdd9['end'],'forward');if(_0x198b25&&_0x198b25['isCollapsed']){const _0x2ab92a=_0x5599cf['createRange'](_0x1ecdd9['start'],_0x198b25['start']);_0x2ab92a['isEqual'](_0x1ecdd9)||(_0x5599cf['updateMarker'](_0x1f0f64,{'range':_0x2ab92a}),_0x387926=!0x0);}_0x387926||(_0x5599cf['removeMarker'](_0x1f0f64),_0x387926=!0x0);}return _0x387926;}));}},tn=class extends _0x17c3d7{afterInit(){const _0x287dc9=this['editor'],_0x31d4a5=_0x287dc9['plugins']['get']('TrackChangesEditing');_0x287dc9['plugins']['has']('Uploadcare')&&(_0x31d4a5['enableCommand']('uploadcare'),_0x287dc9['plugins']['has']('UploadcareImageEdit')&&(_0x31d4a5['enableCommand']('uploadcareImageEdit'),_0x31d4a5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x31d4a5['descriptionFactory']['registerDescriptionCallback'](_0x14b033=>{if('attribute'!=_0x14b033['type'])return;const {data:_0x1e5f78}=_0x14b033;return _0x1e5f78&&'uploadcareImageId'==_0x1e5f78['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x17c3d7{afterInit(){const _0x594bd1=this['editor'],_0xbac56f=_0x594bd1['plugins']['get']('TrackChangesEditing');_0x594bd1['plugins']['has']('UndoEditing')&&(_0xbac56f['enableCommand']('undo'),_0xbac56f['enableCommand']('redo'));}},nn=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x3d3759=this['editor'];_0x3d3759['plugins']['has']('TableCaptionEditing')&&_0x3d3759['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x17c3d7{tableProperties;tableCellProperties;constructor(_0x215427){super(_0x215427),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 _0x4515c1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d9a21 of this['tableProperties'])_0x4515c1['enableCommand'](_0x4d9a21,(_0x3f622b,_0x5a8e87)=>{const _0x26e020=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d9a21,[_0x26e020],this['tableProperties'],'tableProperties',_0x3f622b,_0x5a8e87);});_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4515c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1cc584,_0x49676e)=>this['handleDiscardAction'](this['tableProperties'],_0x1cc584,_0x49676e)),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x155a16 of this['tableCellProperties'])this['editor']['commands']['get'](_0x155a16)&&_0x4515c1['enableCommand'](_0x155a16,(_0x5c8c54,_0x5e99c4)=>{const _0x35070e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x155a16,_0x35070e,this['tableCellProperties'],'tableCellProperties',_0x5c8c54,_0x5e99c4);});_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4515c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4963e0,_0x543033)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4963e0,_0x543033)),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4515c1['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4515c1['descriptionFactory']['registerDescriptionCallback'](_0x4687dc=>this['handleSuggestionDescription'](_0x4687dc)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x452d71,_0x2dd2c8,_0x2e7b6b,_0x5ddbc9,_0xbc1037,_0x19ede8){const _0x23fe6d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x19ede8['batch'],()=>{for(const _0xeb01aa of _0x2dd2c8)if(this['_getSuggestion'](_0xeb01aa,_0x5ddbc9))_0xbc1037(_0x19ede8);else{const _0x27de60={};for(const _0x39e76c of _0x2e7b6b){const _0x418757=_0xeb01aa['getAttribute'](_0x39e76c);void 0x0!==_0x418757&&(_0x27de60[_0x39e76c]=_0x418757);}const _0x43490a=this['_getResizedColumnWidths'](_0xeb01aa);_0x43490a&&(_0x27de60['columnWidths']=_0x43490a),_0xbc1037(_0x19ede8),_0x23fe6d['markBlockFormat'](_0xeb01aa,{'commandParams':[_0x27de60]},[],_0x5ddbc9);}});}handleDiscardAction(_0x4da137,_0x220357,_0x76f625){const _0x3cf913=_0x220357[0x0]['start']['nodeAfter'],_0x47b444=_0x76f625['commandParams'][0x0];this['editor']['model']['change'](_0x5bb2c9=>{for(const _0x5aea7d of _0x4da137)void 0x0!==_0x47b444[_0x5aea7d]?_0x5bb2c9['setAttribute'](_0x5aea7d,_0x47b444[_0x5aea7d],_0x3cf913):_0x5bb2c9['removeAttribute'](_0x5aea7d,_0x3cf913);if(_0x47b444['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x553c9d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29c178=_0x553c9d['getColumnGroupElement'](_0x3cf913);if(_0x29c178){const _0x340fba=_0x553c9d['getTableColumnsWidths'](_0x29c178),_0x1b9697=_0x3cf913['getAttribute']('tableWidth');if(('string'==typeof _0x1b9697&&_0x1b9697['trim']()['endsWith']('px'))!==_0x340fba['some'](_0x1c5d77=>'string'==typeof _0x1c5d77&&_0x1c5d77['endsWith']('px'))){const _0x752ad3=_0x553c9d['getTableColumnElements'](_0x29c178);_0x47b444['columnWidths']['forEach']((_0x145a7f,_0x567dad)=>{_0x752ad3[_0x567dad]&&_0x5bb2c9['setAttribute']('columnWidth',_0x145a7f,_0x752ad3[_0x567dad]);});}}}});}_getResizedColumnWidths(_0x34f2d8){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x34f2d8['is']('element','table'))return;const _0x3e4676=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x30f02a=_0x3e4676['getColumnGroupElement'](_0x34f2d8);return _0x30f02a?_0x3e4676['getTableColumnsWidths'](_0x30f02a):void 0x0;}handleSuggestionDescription(_0x5f19a8){if(_0x5f19a8['data'])switch(_0x5f19a8['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x164ce3,_0x3aec20){const _0x1b4657=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x375283 of _0x1b4657['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d8383=_0x375283['getContainedElement']();if(_0x375283['subType']===_0x3aec20&&_0x3d8383===_0x164ce3)return _0x375283;}return null;}_registerTablePropertiesAttributes(){const _0x285f9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x518175=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5b3840 of _0x518175){const _0x4a195e=_0x5b3840['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x285f9b['descriptionFactory']['registerAttributeLabel'](_0x5b3840,wt(this['editor']['locale'],'FORMAT_'+_0x4a195e));}}},rn=class extends _0x17c3d7{afterInit(){const _0x38aa06=this['editor'];if(!_0x38aa06['plugins']['has']('LineHeight'))return;const _0x573dfd=_0x38aa06['plugins']['get']('TrackChangesEditing'),_0x5ab7cc=_0x38aa06['locale'];_0x573dfd['enableDefaultAttributesIntegration']('lineHeight'),_0x573dfd['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x5ab7cc,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x15e7c0){return'marker'==_0x15e7c0['type']&&_0x15e7c0['name']['startsWith']('$markedRemove');}function cn(_0x32a2e1){return _0x32a2e1?[_0x32a2e1]:[];}var ln=class extends _0x17c3d7{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3e91e1,_0x3ffa0d,_0x15dcb3,_0x59068f,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21667c){super(_0x21667c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x445d93,_0x2dbc93,_0x10547f,_0x10fbdb)=>{this['_model']['change'](()=>{for(const _0x439f4f of[..._0x10fbdb,..._0x10547f])this['_model']['markers']['has'](_0x439f4f)&&_0x21667c['editing']['reconvertMarker'](_0x439f4f);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21667c['plugins']['get'](_0x3e91e1),this['_suggestionsConversion']=_0x21667c['plugins']['get'](_0x3ffa0d),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x21667c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21667c['config']['get']('trackChanges.trackFormatChanges'),_0x21667c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21667c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x21667c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4ccf8b=this['editor'];_0x4ccf8b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a4082,{writer:_0x226569})=>{let _0x583713='suggestion:'+_0x1a4082['getAttribute']('suggestion-type')+':'+_0x1a4082['getAttribute']('id');return _0x1a4082['getAttribute']('marker-count')&&(_0x583713+=':'+_0x1a4082['getAttribute']('marker-count')),_0x226569['createElement']('$marker',{'data-name':_0x583713});}}),_0x4ccf8b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x15ff65=>{let _0x911a49=!0x1;const _0x5b08d2=Array['from'](_0x4ccf8b['model']['document']['differ']['getChangedMarkers']()),_0x10690d=new Set();for(const {name:_0x5da167,data:_0x16f55f}of _0x5b08d2){const {group:_0x47c800,type:_0x5c0beb,subType:_0xe9801e,id:_0x65efe2}=nt(_0x5da167);if('suggestion'!==_0x47c800)continue;const _0x9add33=_0xe9801e?'suggestion:'+_0x5c0beb+':'+_0xe9801e+':'+_0x65efe2:'suggestion:'+_0x5c0beb+':'+_0x65efe2,_0x427f2a=_0x4ccf8b['model']['markers']['getMarkersGroup'](_0x9add33),_0x38b8d6=_0x4ccf8b['model']['markers']['get'](_0x5da167),_0x42c1fb=this['_suggestions']['get'](_0x65efe2);if(null!=_0x16f55f['newRange']){'formatInline'==_0x5c0beb&&(_0x911a49=_0x911a49||gn(_0x16f55f['newRange'],_0x5da167,_0x15ff65,_0x4ccf8b['model']['schema']));const _0x581302='attribute'==_0x5c0beb&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0xe9801e)),_0x372f5e='attribute'==_0x5c0beb&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0xe9801e));if(_0x16f55f['newRange']['isCollapsed']||'$graveyard'==_0x16f55f['newRange']['root']['rootName']||'formatBlock'==_0x5c0beb&&!mn(_0x16f55f['newRange'])||_0x581302&&!mn(_0x16f55f['newRange'])||_0x372f5e&&En(_0x16f55f['newRange'])||'deletion'==_0x5c0beb&&En(_0x16f55f['newRange'])||_0x38b8d6&&Tn(_0x38b8d6,_0x427f2a))_0x15ff65['removeMarker'](_0x5da167),_0x911a49=!0x0;else{if(!_0x42c1fb||!_0x42c1fb['isInContent'])continue;if(_0x16f55f['newRange']&&_0x16f55f['oldRange']&&_0x16f55f['newRange']['isEqual'](_0x16f55f['oldRange']))continue;_0x10690d['add'](_0x42c1fb);}}}return _0x10690d['size']>0x0&&(_0x911a49=!!this['_joinWithAdjacentSuggestions'](_0x10690d)||_0x911a49),_0x911a49;}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x14c11b=>{let _0x4ac29b=!0x1;for(const _0x2fa52d of _0x4ccf8b['model']['document']['differ']['getChanges']())if('insert'==_0x2fa52d['type'])for(const _0x34ed31 of this['_suggestions']['values']()){if(_0x34ed31['isMultiRange']||!_0x34ed31['isInContent'])continue;const _0x268dad='formatBlock'==_0x34ed31['type'],_0x3b60e3=this['_getAttributeKey'](_0x34ed31),_0x37ac64=_0x3b60e3&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b60e3);if(!_0x268dad&&!_0x37ac64)continue;const _0x495a10=_0x34ed31['getFirstRange']();if(_0x495a10['start']['parent']!=_0x495a10['end']['parent']&&!_0x495a10['end']['isAtEnd']){const _0x16fe52=_0x4ccf8b['model']['createPositionAt'](_0x495a10['start']['nodeAfter'],'end'),_0x838b95=_0x4ccf8b['model']['createRange'](_0x495a10['start'],_0x16fe52);_0x14c11b['updateMarker'](_0x34ed31['getFirstMarker'](),{'range':_0x838b95}),_0x4ac29b=!0x0;}}return _0x4ac29b;}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x1bd68c=>this['_processAttributeChanges'](_0x1bd68c)),_0x4ccf8b['model']['document']['registerPostFixer'](_0x23c36d=>!_0x23c36d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23c36d)),_0x4ccf8b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ccf8b['model']['document']['on']('change:data',(_0x387c32,_0x40d588)=>{if(!_0x40d588['isLocal']||_0x40d588['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bc82b=_0x4ccf8b['model']['document']['differ']['getChanges']();if(0x0==_0x2bc82b['length'])return;const _0x474c20=[],_0x41288b=_0x2bc82b['filter'](_0x204f43=>'attribute'==_0x204f43['type']),_0x3523df=_0x2bc82b['filter'](_0x20cb58=>'insert'==_0x20cb58['type']&&'$text'!=_0x20cb58['name']);for(const _0xdfb84f of _0x41288b)this['_suggestionsConversion']['isRegisteredAttribute'](_0xdfb84f['attributeKey'])&&_0x474c20['push']({'key':_0xdfb84f['attributeKey'],'newValue':_0xdfb84f['attributeNewValue'],'oldValue':_0xdfb84f['attributeOldValue'],'range':_n(_0xdfb84f['range'],_0x4ccf8b['model'])});for(const _0x569ce3 of _0x3523df){if('rename'!=_0x569ce3['action']&&'refresh'!=_0x569ce3['action'])continue;const _0x26eaf4=pn(_0x569ce3['position']['nodeAfter'],_0x4ccf8b['model']),_0x19cdcc=_0x569ce3['before'];'rename'==_0x569ce3['action']&&_0x474c20['push']({'key':on,'newValue':_0x569ce3['name'],'oldValue':_0x19cdcc['name'],'range':_0x26eaf4});for(const [_0x12114f,_0xfe2a3d]of _0x19cdcc['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x12114f))continue;const _0x38fa5c=_0x569ce3['attributes']['get'](_0x12114f);_0xfe2a3d!==_0x38fa5c&&_0x474c20['push']({'key':_0x12114f,'newValue':_0x38fa5c,'oldValue':_0xfe2a3d,'range':_0x26eaf4});}for(const [_0x4a21d7,_0x15059d]of _0x569ce3['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a21d7)&&(_0x19cdcc['attributes']['has'](_0x4a21d7)||_0x474c20['push']({'key':_0x4a21d7,'newValue':_0x15059d,'oldValue':null,'range':_0x26eaf4}));}0x0!=_0x474c20['length']&&_0x4ccf8b['model']['enqueueChange'](_0x40d588,_0x10e503=>{const _0x2849ca=_0x5a260f();for(const {range:_0x3616bd,key:_0x170990,oldValue:_0x1fca2e,newValue:_0x1ac232}of _0x474c20)this['markAttributeChange'](_0x3616bd,_0x170990,_0x1fca2e,_0x1ac232,{'groupId':_0x2849ca});this['_reduceExistingSuggestions'](_0x10e503,_0x474c20);});},{'priority':'lowest'}),_0x4ccf8b['model']['markers']['on']('update:suggestion',(_0x596e39,_0x13b169,_0x5ba89e)=>{if(null==_0x5ba89e){const {id:_0x1a9000}=nt(_0x13b169['name']),_0x129087=this['_suggestions']['get'](_0x1a9000);_0x129087&&_0x129087['addMarkerName'](_0x13b169['name']);}}),_0x4ccf8b['model']['document']['on']('change:data',()=>{const _0x5e6ae5=Array['from'](_0x4ccf8b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fb9d9=>'suggestion'===nt(_0x1fb9d9['name'])['group']);if(0x0===_0x5e6ae5['length'])return;_0x5e6ae5['sort']((_0x3648f7,_0x2245a1)=>{const _0x1ca190=_0x3648f7['data']['oldRange'],_0x4763f4=_0x2245a1['data']['oldRange'];return null===_0x1ca190&&null===_0x4763f4?0x0:null===_0x1ca190&&null!==_0x4763f4?-0x1:null!==_0x1ca190&&null===_0x4763f4?0x1:_0x1ca190['start']['isBefore'](_0x4763f4['start'])?-0x1:0x1;});const _0x3ce9d2=new Set(),_0x3e3e28=new Set();for(const {name:_0x111caf,data:_0x118940}of _0x5e6ae5){const {id:_0x4bab0e}=nt(_0x111caf);if(null===_0x118940['oldRange']){const _0x14387f=this['_handleNewSuggestionMarker'](_0x111caf);_0x3e3e28['add'](_0x14387f);}else{const _0x8988e5=this['_suggestions']['get'](_0x4bab0e);null!==_0x118940['newRange']||_0x8988e5['isInContent']?(_0x3ce9d2['add'](_0x8988e5['head']),_0x3e3e28['add'](_0x8988e5)):this['_removeSuggestion'](_0x8988e5);}}_0x3e3e28['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e3e28);for(const _0x45c9bf of _0x3ce9d2)this['fire']('suggestionChanged',_0x45c9bf);}),_0x4ccf8b['model']['on']('applyOperation',(_0x535dfd,_0x1be0c2)=>{const _0x11b266=_0x1be0c2[0x0];if(!this['_suggestions']['size'])return;if(!_0x11b266['isDocumentOperation'])return;if(_0x11b266['batch']['isUndo']||!_0x11b266['batch']['isLocal'])return;let _0x4db587,_0x522ca7;switch(_0x11b266['type']){case'insert':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['position']),_0x522ca7=_0x4db587['getShiftedBy'](_0x11b266['howMany']);break;case'split':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['splitPosition']),_0x522ca7=_0x4ccf8b['model']['createPositionAt'](_0x11b266['moveTargetPosition']);break;case'move':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['targetPosition']),_0x522ca7=_0x4db587['getShiftedBy'](_0x11b266['howMany']);break;default:return;}const _0x49cb9c=_0x4ccf8b['model']['createRange'](_0x4db587,_0x522ca7);_0x4ccf8b['model']['change'](()=>{for(const {suggestion:_0x140a60,meta:_0x131eb0}of this['_findSuggestions'](_0x49cb9c)){if(_0x140a60['isMultiRange'])continue;if('formatInline'==_0x140a60['type'])continue;const _0x2676d9=this['_getAttributeKey'](_0x140a60);if(_0x2676d9&&this['_suggestionsConversion']['isBlockAttribute'](_0x2676d9)&&'split'!=_0x11b266['type'])continue;const _0x1a88ec=_0x140a60['data']&&_0x140a60['data']['multipleBlocks'];('formatBlock'!=_0x140a60['type']||'split'==_0x11b266['type']&&!_0x1a88ec)&&(_0x131eb0['containsRangeInObject']||'insertion'==_0x140a60['type']&&_0x131eb0['isOwn']||_0x140a60['getFirstRange']()['containsRange'](_0x49cb9c)&&this['_breakSuggestionMarker'](_0x140a60,_0x4db587,_0x522ca7));}});},{'priority':'lowest'}),_0x4ccf8b['model']['on']('deleteContent',(_0xc40894,_0x36590d)=>{const _0x10e2c4=_0x36590d[0x0],_0x5ebc32=_0x36590d[0x1];if(_0x5ebc32&&_0x5ebc32['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10e2c4['isCollapsed'])return;const _0x43c897=_0x4ccf8b['model']['schema'],{start:_0x55f9bc,end:_0x21812d}=_0x10e2c4['getFirstRange'](),_0x2d153a=_0x55f9bc['nodeAfter']&&_0x43c897['isLimit'](_0x55f9bc['nodeAfter'])?null:_0x43c897['getNearestSelectionRange'](_0x55f9bc,'forward'),_0x44504e=_0x21812d['nodeBefore']&&_0x43c897['isLimit'](_0x21812d['nodeBefore'])?null:_0x43c897['getNearestSelectionRange'](_0x21812d,'backward'),_0x1bf7aa=_0x4ccf8b['model']['createRange'](_0x2d153a?_0x2d153a['start']:_0x55f9bc,_0x44504e?_0x44504e['end']:_0x21812d);_0x4ccf8b['model']['change'](_0x55bd0f=>{this['markDeletion'](_0x1bf7aa);const _0x30328d=_0x4ccf8b['model']['schema']['getNearestSelectionRange'](_0x1bf7aa['start']);_0x10e2c4['is']('documentSelection')?_0x55bd0f['setSelection'](_0x30328d):_0x10e2c4['setTo'](_0x30328d);}),_0xc40894['stop']();},{'priority':_0x165b6f['normal']+0xa}),_0x4ccf8b['model']['on']('insertContent',(_0x4614d8,_0x310702)=>{const _0x486cee=_0x310702[_0x310702['length']-0x1];_0x486cee&&_0x486cee['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ccf8b['model']['change'](()=>{let _0x15835f=_0x4ccf8b['model']['insertContent'](_0x310702[0x0],_0x310702[0x1],_0x310702[0x2],{'forceDefaultExecution':!0x0});if(!_0x15835f)return;_0x4614d8['return']=_0x15835f['clone']();const _0x1badc2=_0x15835f['end']['nodeBefore'],_0x2a246a=_0x4ccf8b['model']['schema'];_0x1badc2&&_0x2a246a['isBlock'](_0x1badc2)&&!_0x2a246a['isObject'](_0x1badc2)&&(_0x15835f=_0x4ccf8b['model']['createRange'](_0x15835f['start'],_0x4ccf8b['model']['createPositionAt'](_0x1badc2,'end'))),this['markInsertion'](_0x15835f);}),_0x4614d8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22ed8b=new Lt(_0x4ccf8b,this['_suggestions']);_0x4ccf8b['commands']['add']('acceptSuggestion',_0x22ed8b),this['enableCommand']('acceptSuggestion');const _0x312cea=new It(_0x4ccf8b,this['_suggestions']);_0x4ccf8b['commands']['add']('discardSuggestion',_0x312cea),this['enableCommand']('discardSuggestion'),_0x4ccf8b['commands']['add']('acceptAllSuggestions',new yt(_0x4ccf8b,_0x22ed8b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ccf8b['commands']['add']('discardAllSuggestions',new yt(_0x4ccf8b,_0x312cea,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ccf8b['commands']['add']('acceptSelectedSuggestions',new St(_0x4ccf8b,_0x22ed8b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ccf8b['commands']['add']('discardSelectedSuggestions',new St(_0x4ccf8b,_0x312cea,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4814f4=_0x4ccf8b['plugins']['get'](_0x3e91e1);this['listenTo'](_0x4814f4,'addComment',(_0x3c8213,{threadId:_0x261b9b})=>{const _0x527772=this['_suggestions']['get'](_0x261b9b);_0x527772&&_0x527772['commentThread']&&0x1===_0x527772['commentThread']['length']&&this['_updateSuggestionData'](_0x261b9b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4814f4,'removeComment',(_0x3ca0a0,{threadId:_0x418e5e})=>{const _0x4bc385=this['_suggestions']['get'](_0x418e5e);_0x4bc385&&_0x4bc385['commentThread']&&!_0x4bc385['commentThread']['length']&&this['_updateSuggestionData'](_0x418e5e,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0xffd222){const _0x1c4732='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x16b3bf=0x79740,_0x544dfb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2febed(_0x5ac476){const _0x4ee5ab=new window['Promise'](_0x32cf1b=>{_0x5ac476['once']('ready',_0x32cf1b);}),_0x411878=window['Date']['now'](),_0x2f6ad2=_0x5ac476['config']['get']('licenseKey');async function _0xcea88(){let _0x38cdde,_0x201d3e=null,_0x158ac1=null;try{return'GPL'==_0x2f6ad2?'NotAllowed':(_0x38cdde=_0x83bd1d(),_0x38cdde?(_0x38cdde['usageEndpoint']&&(_0x158ac1=_0x1de2d4(_0x38cdde['usageEndpoint'],_0x38cdde['jti'])),await _0x483674()?_0x2ac448()?_0x375e1e()?'Expired':_0x30f195()?('evaluation'==_0x38cdde['licenseType']&&(_0x201d3e=_0x55bd1a('EvaluationLimit')),await _0x43cc6d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x375e1e(){const _0x5cb985=['evaluation','trial']['includes'](_0x38cdde['licenseType'])?_0x411878/0x3e8:0xe10*_0x16b3bf;return _0x38cdde['exp']<_0x5cb985;}function _0x2ac448(){const _0x11ba90=_0x38cdde['features'];if(!_0x11ba90)return!0x1;if(_0x11ba90['includes']('*'))return!0x0;if(_0x11ba90['includes']('TC'))return!0x0;if(_0x11ba90['includes']('RTC')){if(_0xcb185c())return!0x0;if(_0x27ae21()||_0x247686())return!0x0;}return!0x1;}function _0x30f195(){const _0x131933=_0x38cdde['licensedHosts'];if(!_0x131933||0x0==_0x131933['length'])return!0x0;const {hostname:_0x1cc5c5}=new URL(window['location']['href']);if(_0x131933['includes'](_0x1cc5c5))return!0x0;const _0x32e1e4=_0x1cc5c5['split']('.');return _0x131933['filter'](_0x5d3557=>_0x5d3557['includes']('*'))['map'](_0x522734=>_0x522734['split']('.'))['filter'](_0xe0e254=>_0xe0e254['length']<=_0x32e1e4['length'])['map'](_0x128b21=>Array(_0x32e1e4['length']-_0x128b21['length'])['fill']('*'===_0x128b21[0x0]?'*':'')['concat'](_0x128b21))['some'](_0x9b000a=>_0x32e1e4['every']((_0x34265e,_0x1e1fae)=>_0x9b000a[_0x1e1fae]===_0x34265e||'*'===_0x9b000a[_0x1e1fae]));}function _0x43cc6d(){return _0x201d3e&&_0x158ac1?new window['Promise']((_0x44bc9b,_0x340e04)=>{_0x201d3e['then'](_0x44bc9b,_0x340e04),_0x158ac1['then'](_0x241f04=>{'Valid'!=_0x241f04&&_0x44bc9b(_0x241f04);},_0x340e04);}):_0x201d3e||_0x158ac1||'Valid';}}function _0x1de2d4(_0x506ade,_0x5b4835){return new window['Promise'](_0x1af3cc=>{if(_0x333cef())return _0x1af3cc('Valid');_0xddefba(),_0x5ac476['decorate']('_sendUsageRequest');let _0x2d5961=!0x1;const _0x2c6c38=_0x5a260f();function _0x538dc5(_0x3aa4b5){return!!_0x3aa4b5&&('object'==typeof _0x3aa4b5||'function'==typeof _0x3aa4b5)&&'function'==typeof _0x3aa4b5['then']&&'function'==typeof _0x3aa4b5['catch'];}function _0x3a64b2(_0x350785){_0xe12094(_0x350785)['then'](_0x9c1555=>_0x9c1555&&'ok'==_0x9c1555['status']?_0x36c250(_0x2cae4c(_0x2c6c38+_0x5b4835))!=_0x9c1555['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1894bf=>(_0x3159d6(),_0x1894bf),()=>{const _0x59b148=_0x4fbfc7();return null==_0x59b148?(_0x3159d6(),'Valid'):_0x411878-_0x59b148>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1af3cc)['catch'](()=>{_0x1af3cc('UsageLimit');});const _0x57083d=0x36ee80;function _0x3159d6(){const _0x26ba6a='llct-'+_0x36c250(_0x2cae4c(_0x506ade)),_0x44de44=_0x2c0654(_0x36c250(window['Math']['ceil'](_0x411878/_0x57083d)));window['localStorage']['setItem'](_0x26ba6a,_0x44de44);}function _0x4fbfc7(){const _0x34ff50='llct-'+_0x36c250(_0x2cae4c(_0x506ade)),_0x5c6980=window['localStorage']['getItem'](_0x34ff50);return _0x5c6980?window['parseInt'](_0x2c0654(_0x5c6980),0x10)*_0x57083d:null;}function _0xe12094(_0x53e749){return new window['Promise']((_0x417f92,_0x16c630)=>{_0x53e749['then'](_0x417f92,_0x16c630),window['setTimeout'](_0x16c630,0x1d4c0);});}}_0x5ac476['on']('_sendUsageRequest',(_0x9fc235,_0xf3acab)=>{if(_0xf3acab[0x0]!=_0x506ade)return _0x1af3cc('UsageLimit');_0xf3acab[0x1]={..._0xf3acab[0x1],'requestId':_0x2c6c38};},{'priority':'high'}),_0x5ac476['on']('_sendUsageRequest',_0xf9dcdc=>{_0x538dc5(_0xf9dcdc['return'])&&(_0x2d5961=!0x0,_0x3a64b2(_0xf9dcdc['return']));},{'priority':'low'}),_0x4ee5ab['then'](()=>{_0x2d5961||_0x1af3cc('UsageLimit');});});function _0x333cef(){return'auto'==_0x5ac476['editing']['view']['_overlayModeHint'];}function _0xddefba(){_0x5ac476['editing']['view']['_overlayModeHint']='auto';}}function _0x55bd1a(_0x3fc8b0){const _0x278ca5=[new window['Promise'](_0x307b3a=>setTimeout(_0x307b3a,0x93ecc)),_0x4ee5ab['then'](()=>new window['Promise'](_0x251471=>{let _0xe43bb4=0x0;_0x5ac476['model']['on']('applyOperation',(_0x8bb374,_0x2240c7)=>{_0x2240c7[0x0]['isDocumentOperation']&&_0xe43bb4++,0x5e8==_0xe43bb4&&(_0x251471(),_0x8bb374['off']());});}))];return window['Promise']['race'](_0x278ca5)['then'](()=>_0x3fc8b0);}async function _0x26996e(){await _0x4ee5ab,_0x5ac476['model']['change']=_0x21caba,_0x5ac476['model']['enqueueChange']=_0x21caba,_0x5ac476['enableReadOnlyMode']('model');}function _0xcb185c(){return _0x2aea46('WebSocketGateway')&&'connected'==_0x2811ab('WebSocketGateway')['state'];}function _0x27ae21(){return _0x2aea46('RevisionViewerIntegration');}function _0x247686(){return _0x2aea46('TrackChangesDataGetter');}function _0x5bba26(_0x39d9e8){const _0x631ea2=_0x56f87b();_0x5ac476[_0x631ea2]='trackChangesLicenseKey'+_0x39d9e8,'Valid'!=_0x39d9e8&&_0x26996e();}function _0x56f87b(){const _0x151d82=window['String'](window['performance']['now']())['replace']('.','');let _0x29917c='U';for(let _0x12542b=0x0;_0x12542b<_0x151d82['length'];_0x12542b+=0x2){let _0x2977c7=window['parseInt'](_0x151d82['substring'](_0x12542b,_0x12542b+0x2));_0x2977c7>=0x3e&&(_0x2977c7-=0x3e),_0x29917c+=_0x1c4732[_0x2977c7];}return _0x29917c;}function _0x83bd1d(){const _0x4d8292=_0x2f6ad2['split']('.');if(0x3!=_0x4d8292['length'])return null;return _0x20d494(_0x4d8292[0x1]);function _0x20d494(_0xa579dc){const _0x3aee33=_0x519184(_0xa579dc);return _0x3aee33&&_0x49ad4a()?_0x3aee33:null;function _0x49ad4a(){const _0x4f4b89=_0x3aee33['jti'],_0xc4ee5f=window['parseInt'](_0x4f4b89['substring'](_0x4f4b89['length']-0x8),0x10),_0xcc68a1={..._0x3aee33,'jti':_0x4f4b89['substring'](0x0,_0x4f4b89['length']-0x8)};return delete _0xcc68a1['vc'],_0x2cae4c(_0xcc68a1)==_0xc4ee5f;}}}async function _0x483674(){let _0x447dd8=!0x0;try{const [_0xd986ee,_0x5031ab,_0x239019]=_0x2f6ad2['split']('.');return _0x3cd392(_0xd986ee),await _0x65a499(_0xd986ee,_0x5031ab,_0x239019),_0x447dd8;}catch{return!0x1;}function _0x3cd392(_0x3a92f8){const _0x4410fb=_0x519184(_0x3a92f8);_0x4410fb&&'ES256'==_0x4410fb['alg']||(_0x447dd8=!0x1);}async function _0x65a499(_0x309c21,_0x37637c,_0x1ee5ce){const _0x420fa2=window['Uint8Array']['from'](_0x29204b(_0x1ee5ce),_0x4f9754=>_0x4f9754['charCodeAt'](0x0)),_0x3ab294=new window['TextEncoder']()['encode'](_0x309c21+'.'+_0x37637c),_0x1b114e=window['crypto']['subtle'];if(!_0x1b114e)return;const _0x9fadda=await _0x1b114e['importKey']('jwk',_0x544dfb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b114e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x9fadda,_0x420fa2,_0x3ab294)||(_0x447dd8=!0x1);}}function _0x519184(_0x2e95a3){return _0x2e95a3['startsWith']('ey')?JSON['parse'](_0x29204b(_0x2e95a3)):null;}function _0x29204b(_0x20271b){return window['atob'](_0x20271b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2cae4c(_0x1e3a8b){let _0x7d1b1f=0x1505;function _0x3921bb(_0x586a68){for(let _0x295626=0x0;_0x295626<_0x586a68['length'];_0x295626++){const _0x1c3f6c=_0x586a68['charCodeAt'](_0x295626);_0x7d1b1f=(_0x7d1b1f<<0x5)+_0x7d1b1f+_0x1c3f6c,_0x7d1b1f&=_0x7d1b1f;}}function _0x1805d1(_0x45f43c){Array['isArray'](_0x45f43c)?_0x45f43c['forEach'](_0x1805d1):_0x45f43c&&'object'==typeof _0x45f43c?Object['entries'](_0x45f43c)['sort']()['forEach'](([_0x5c658c,_0x1b0902])=>{_0x3921bb(_0x5c658c),_0x1805d1(_0x1b0902);}):_0x3921bb(window['String'](_0x45f43c));}return _0x1805d1(_0x1e3a8b),_0x7d1b1f>>>0x0;}function _0x36c250(_0xbcc545){return _0xbcc545['toString'](0x10)['padStart'](0x8,'0');}function _0x2c0654(_0x15d985){return _0x15d985['split']('')['reverse']()['join']('');}function _0x2aea46(_0xab849e){return _0x5ac476['plugins']['has'](_0xab849e);}function _0x2811ab(_0x96629c){return _0x5ac476['plugins']['get'](_0x96629c);}function _0x21caba(){}_0x5bba26(await _0xcea88());}_0x2febed(_0xffd222['editor']);}(this);}set adapter(_0x174552){if(this['_adapter'])throw new _0x1539e5('track-changes-adapter-already-set',this);this['_adapter']=_0x174552;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x2b8e9e=!0x1,toJSON:_0x2e6357=!0x1}={}){const _0x316dcc=[];for(const _0x509163 of this['_suggestions']['values']())_0x2b8e9e&&!_0x509163['isInContent']||_0x316dcc['push'](_0x509163);return _0x2e6357?_0x316dcc['map'](_0x3693d8=>_0x3693d8['toJSON']()):_0x316dcc;}getSuggestion(_0x583d14){const _0x36b4c6=this['_suggestions']['get'](_0x583d14);if(!_0x36b4c6)throw new _0x1539e5('track-changes-suggestion-not-found',this);return _0x36b4c6;}hasSuggestion(_0x1e5974){return this['_suggestions']['has'](_0x1e5974);}addSuggestionData(_0x558ca4){const {authorId:_0x4c3a36,id:_0x7561d1,originalSuggestionId:_0x473215,attributes:_0x3caf26}=_0x558ca4,[_0x39f8a9,_0x3655cf]=_0x558ca4['type']['split'](':'),_0x1f5941=this['_suggestions']['get'](_0x7561d1)||this['_createSuggestion'](_0x39f8a9,_0x3655cf,_0x7561d1,_0x4c3a36,_0x3caf26,_0x473215);if(this['_addThreadToSuggestion'](_0x1f5941),this['_checkSuggestionCorrectness'](_0x1f5941,_0x39f8a9,_0x3655cf||null,_0x4c3a36),_0x1f5941['createdAt']=_0x558ca4['createdAt'],_0x1f5941['_isDataLoaded']=!0x0,_0x3caf26&&_0x3caf26['@external']){const _0x2f6498=_0x3caf26['@external'],_0x1ae4d7=this['_getExternalAuthor'](_0x2f6498['authorName']);_0x1f5941['authoredAt']=_0x2f6498['createdAt'],_0x1f5941['author']=_0x1ae4d7;}else _0x1f5941['authoredAt']=_0x558ca4['createdAt'];switch(_0x558ca4['data']&&(_0x1f5941['data']=_0x558ca4['data']),_0x558ca4['attributes']&&(_0x1f5941['attributes']=_0x558ca4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f5941['_saved']=!0x0),this['_suggestionState']['get'](_0x1f5941)){case'notReady':this['_suggestionState']['set'](_0x1f5941,'dataReady');break;case'markerReady':_0x1f5941['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f5941])),this['_refreshSuggestionsChain'](new Set([_0x1f5941])),this['_suggestionState']['set'](_0x1f5941,'ready'),this['fire']('suggestionLoaded',_0x1f5941)):this['_suggestionState']['set'](_0x1f5941,'removed');}return _0x1f5941;}acceptSuggestion(_0x4af2d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b8bc4 of _0x4af2d7['getAllAdjacentSuggestions']())_0x5b8bc4['accept']();});});}discardSuggestion(_0x946647){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf2861a of _0x946647['getAllAdjacentSuggestions']())_0xf2861a['discard']();});});}['enableCommand'](_0x163a3c,_0xf8bc5c){const _0x34a0b8=this['editor']['commands']['get'](_0x163a3c);if(!_0x34a0b8)throw new _0x1539e5('track-changes-command-not-found',this,{'commandName':_0x163a3c});if(this['_enabledCommands']['has'](_0x34a0b8))throw new _0x1539e5('track-changes-enable-command-twice',this,{'commandName':_0x163a3c});this['_enabledCommands']['add'](_0x34a0b8),_0xf8bc5c&&_0x34a0b8['on']('execute',(_0x2a35e4,_0x21df1a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21df1a['length']>0x0&&_0x21df1a[_0x21df1a['length']-0x1]&&_0x21df1a[_0x21df1a['length']-0x1]['forceDefaultExecution']?_0x21df1a['pop']():(_0x2a35e4['return']=_0xf8bc5c((..._0x5cd984)=>_0x34a0b8['execute'](..._0x5cd984,{'forceDefaultExecution':!0x0}),..._0x21df1a),_0x2a35e4['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x162195){let _0x16fe84,_0x5daa60;const _0x5cf659=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16fe84=_0x162195();}catch(_0x461ff1){_0x5daa60=_0x461ff1;}return _0x5cf659||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5daa60&&_0x1539e5['rethrowUnexpectedError'](_0x5daa60,this),_0x16fe84;}markInsertion(_0x3ed8dd,_0x368fdc=null,_0x1e6fa5={}){if(_0x3ed8dd['isCollapsed'])return null;const _0x3b86f2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1e6fa5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5720c3,meta:_0x58325b}of this['_findSuggestions'](_0x3ed8dd,'insertion'))if(_0x58325b['isOwn']){if(!_0x58325b['isNextTo']){if(_0x58325b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x5720c3,_0x1e6fa5))continue;return _0x5720c3;}if(An(_0x5720c3,_0x1e6fa5))return _0x5720c3;this['_breakSuggestionMarker'](_0x5720c3,_0x3ed8dd['start'],_0x3ed8dd['end']);break;}if(_0x368fdc==_0x5720c3['subType']&&An(_0x5720c3,_0x1e6fa5)){const _0x20f815=_0x5720c3['getFirstRange']();return _0x20f815['start']['isEqual'](_0x3ed8dd['end'])?this['_setSuggestionRange'](_0x5720c3,this['_model']['createRange'](_0x3ed8dd['start'],_0x20f815['end'])):this['_setSuggestionRange'](_0x5720c3,this['_model']['createRange'](_0x20f815['start'],_0x3ed8dd['end'])),_0x5720c3;}}const _0x4f4ad5=_0x5a260f(),_0xb59bc1=_0x3b86f2['id'],_0x35b152=_0x368fdc?'insertion:'+_0x368fdc:'insertion',_0x58d4c1=this['_setSuggestionData']({'id':_0x4f4ad5,'type':_0x35b152,'createdAt':new Date(),'authorId':_0xb59bc1,'attributes':_0x1e6fa5});return this['_addSuggestionMarker'](_0x35b152,_0x4f4ad5,_0xb59bc1,_0x3ed8dd),_0x58d4c1;}markMultiRangeInsertion(_0x4d6f9c,_0x3640ec='multi',_0x59a874={}){const _0x4b3e62=this['editor']['plugins']['get']('Users')['me'],_0x47cc2a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3640ec,'join');this['_trackingSessionId']&&(_0x59a874['trackingSessionId']=this['_trackingSessionId']);for(const _0x46abe1 of this['getSuggestions']())if(_0x46abe1['author']['id']==_0x4b3e62['id']&&'insertion'==_0x46abe1['type']&&_0x46abe1['subType']==_0x3640ec&&An(_0x46abe1,_0x59a874)&&(_0x47cc2a(_0x46abe1['getRanges'](),_0x4d6f9c)||_0x47cc2a(_0x4d6f9c,_0x46abe1['getRanges']()))){for(const _0x4f03fc of _0x4d6f9c)_0x46abe1['addRange'](_0x4f03fc);return _0x46abe1;}for(const {suggestion:_0x4d0f8b,meta:_0xcd2557}of this['_findSuggestions'](_0x4d6f9c,'insertion')){if(!_0xcd2557['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xcd2557['containsRangeInObject'])continue;if(!An(_0x4d0f8b,_0x59a874))continue;let _0x33f5c5=!0x0;for(const _0x5f2ef0 of _0x4d0f8b['getRanges']())for(const _0x43a276 of _0x4d6f9c)if(!_0x5f2ef0['containsRange'](_0x43a276)){_0x33f5c5=!0x1;break;}if(_0x33f5c5)return _0x4d0f8b;}const _0x51f404=_0x5a260f(),_0x2963fc=_0x4b3e62['id'],_0x59fb71='insertion:'+_0x3640ec,_0x587cd8=this['_setSuggestionData']({'id':_0x51f404,'type':_0x59fb71,'createdAt':new Date(),'authorId':_0x2963fc,'attributes':_0x59a874});for(const _0x52ca53 of _0x4d6f9c)this['_addSuggestionMarker'](_0x59fb71,_0x51f404,_0x2963fc,_0x52ca53,Ot['getMultiRangeId']());return _0x587cd8;}markInlineFormat(_0x1282c4,_0xb520e0,_0x308285=null,_0x151dcf={}){if(_0x308285=_0x308285||fn(_0xb520e0),_0x1282c4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x151dcf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x250cdc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x308285,'accept');return this['forceDefaultExecution'](()=>_0x250cdc([_0x1282c4],_0xb520e0,_0x151dcf)),null;}const _0x4300ad=this['editor']['plugins']['get']('Users')['me'],_0x26a595=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xfdd428,meta:_0x353a8a}of this['_findSuggestions'](_0x1282c4,'insertion'))_0x353a8a['isOwn']&&!_0x353a8a['isInsideObject']&&_0x26a595['push'](..._0xfdd428['getRanges']());}const _0x4d9a03=function(_0x5a3db5,_0x3f5533){const _0x2681fe=[];for(const _0x7fcfed of _0x3f5533){const _0x14c33d=_0x5a3db5['getIntersection'](_0x7fcfed);_0x14c33d&&_0x2681fe['push'](_0x14c33d);}return _0x2681fe;}(_0x1282c4,_0x26a595),_0x252cbf=function(_0x4fcba2,_0x322b56){const _0x28019c=[_0x4fcba2];for(const _0x18e2cd of _0x322b56){let _0x3575b7=0x0;for(;_0x3575b7<_0x28019c['length'];){const _0xe0f92b=_0x28019c[_0x3575b7]['getDifference'](_0x18e2cd);_0x28019c['splice'](_0x3575b7,0x1,..._0xe0f92b),_0x3575b7+=_0xe0f92b['length'];}}return _0x28019c;}(_0x1282c4,_0x26a595);_0x4d9a03['length']&&this['_model']['change'](()=>{for(const _0xac844 of _0x4d9a03){const _0x506c03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x308285,'accept');this['forceDefaultExecution'](()=>_0x506c03([_0xac844],_0xb520e0,_0x151dcf));}});for(const _0x5928f0 of _0x252cbf){let _0x4ba20c=null,_0x53589c=_0x5928f0['start'],_0x5d137f=_0x5928f0['end'];for(const {suggestion:_0x4d2cbe,meta:_0x4bbfc5}of this['_findSuggestions'](_0x5928f0,'formatInline')){if(!_0x4bbfc5['isOwn'])continue;if(_0x4d2cbe['subType']!=_0x308285)continue;if(!An(_0x4d2cbe,_0x151dcf))continue;const _0x4d97ce=_0x4d2cbe['getFirstRange']();if(_0x4d97ce['containsRange'](_0x5928f0,!0x0))return null;_0x53589c=_0x53589c['isBefore'](_0x4d97ce['start'])?_0x53589c:_0x4d97ce['start'],_0x5d137f=_0x5d137f['isAfter'](_0x4d97ce['end'])?_0x5d137f:_0x4d97ce['end'],_0x4ba20c?_0x4d97ce['start']['isBefore'](_0x4ba20c['getFirstRange']()['start'])?(_0x4ba20c['removeMarkers'](),_0x4ba20c=_0x4d2cbe):_0x4d2cbe['removeMarkers']():_0x4ba20c=_0x4d2cbe;}const _0x417891=this['_model']['createRange'](_0x53589c,_0x5d137f);if(_0x4ba20c)this['_setSuggestionRange'](_0x4ba20c,_0x417891);else{const _0x399f6b=_0x5a260f(),_0x5c3325=_0x4300ad['id'];this['_setSuggestionData']({'id':_0x399f6b,'type':'formatInline:'+_0x308285,'data':_0xb520e0,'createdAt':new Date(),'authorId':_0x5c3325,'attributes':_0x151dcf}),this['_addSuggestionMarker']('formatInline:'+_0x308285,_0x399f6b,_0x5c3325,_0x417891);}}return null;}markBlockFormat(_0x4abe65,_0x330103,_0x43fe7a=[],_0x33a483=null,_0xa82eba={}){_0x330103['formatGroupId']||(_0x330103['formatGroupId']=_0x330103['commandName']),_0x330103['multipleBlocks']=_0x4abe65['is']('range'),_0x33a483=_0x33a483||fn(_0x330103);const _0x3bbd65=_0x43fe7a['map'](_0x4a2b20=>pn(_0x4a2b20,this['_model'])),_0x16c9ed=_0x4abe65['is']('range')?_0x4abe65:pn(_0x4abe65,this['_model']);if(this['_trackingSessionId']&&(_0xa82eba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e3eaa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33a483,'accept');return this['forceDefaultExecution'](()=>_0x3e3eaa([_0x16c9ed],_0x330103,_0xa82eba)),null;}_0x3bbd65['push'](_0x16c9ed);let _0x10931a=!0x0;for(const _0x59c71a of _0x3bbd65)if(!this['_rangeIsInLocalUserInsertion'](_0x59c71a)){_0x10931a=!0x1;break;}if(_0x10931a&&'always'!==this['_trackFormatChanges']){const _0x7aeeaa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33a483,'accept');return this['forceDefaultExecution'](()=>_0x7aeeaa([_0x16c9ed],_0x330103,_0xa82eba)),null;}let _0x20a1b4=null,_0x568b66=_0x16c9ed['start'],_0x5047c9=_0x16c9ed['end'];for(const {suggestion:_0x22649e,meta:_0x372ec0}of this['_findSuggestions'](_0x16c9ed,'formatBlock')){if(!_0x372ec0['isOwn'])continue;if(_0x372ec0['isNextTo']||_0x372ec0['containsRangeInObject']||_0x372ec0['isInsideObject'])continue;if(_0x22649e['data']['formatGroupId']!=_0x330103['formatGroupId'])continue;if(!An(_0x22649e,_0xa82eba))continue;const _0x261231=_0x22649e['getFirstRange']();if(_0x22649e['subType']==_0x33a483){if(_0x261231['containsRange'](_0x16c9ed,!0x0))return null;_0x568b66=_0x568b66['isBefore'](_0x261231['start'])?_0x568b66:_0x261231['start'],_0x5047c9=_0x5047c9['isAfter'](_0x261231['end'])?_0x5047c9:_0x261231['end'],_0x20a1b4?_0x261231['start']['isBefore'](_0x20a1b4['getFirstRange']()['start'])?(_0x20a1b4['removeMarkers'](),_0x20a1b4=_0x22649e):_0x22649e['removeMarkers']():_0x20a1b4=_0x22649e;}else{const _0x127caf=_0x16c9ed['getIntersection'](_0x261231);this['_cutOutSuggestionMarker'](_0x22649e,_0x127caf);}}const _0x140c43=this['editor']['plugins']['get']('Users')['me'],_0x5d5340=_0x5a260f(),_0x32f6b4=_0x140c43['id'];if(_0x20a1b4)return this['_setSuggestionRange'](_0x20a1b4,this['_model']['createRange'](_0x568b66,_0x5047c9)),_0x20a1b4;{const _0x4d95f2=this['_setSuggestionData']({'id':_0x5d5340,'type':'formatBlock:'+_0x33a483,'data':_0x330103,'createdAt':new Date(),'authorId':_0x32f6b4,'attributes':_0xa82eba});return this['_addSuggestionMarker']('formatBlock:'+_0x33a483,_0x5d5340,_0x32f6b4,this['_model']['createRange'](_0x568b66,_0x5047c9)),_0x4d95f2;}}markMultiRangeBlockFormat(_0x5201f8,_0x3cd3b3,_0x5382f4=[],_0x2df26e=null,_0x168a2f={}){_0x3cd3b3['formatGroupId']||(_0x3cd3b3['formatGroupId']=_0x3cd3b3['commandName']);const _0x452fd9=_0x5201f8[0x0];_0x3cd3b3['multipleBlocks']=_0x452fd9['is']('range'),_0x2df26e=_0x2df26e||fn(_0x3cd3b3);const _0x1103b1=_0x5382f4['map'](_0x16f0da=>pn(_0x16f0da,this['_model'])),_0x27dda1=_0x452fd9['is']('range')?_0x5201f8:_0x5201f8['map'](_0x301193=>pn(_0x301193,this['_model']));if(this['_trackingSessionId']&&(_0x168a2f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a0e9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'accept');return this['forceDefaultExecution'](()=>_0x5a0e9c(_0x27dda1,_0x3cd3b3,_0x168a2f)),null;}_0x1103b1['push'](..._0x27dda1);let _0x35fdf0=!0x0;for(const _0x393345 of _0x1103b1)if(!this['_rangeIsInLocalUserInsertion'](_0x393345)){_0x35fdf0=!0x1;break;}if(_0x35fdf0&&'always'!==this['_trackFormatChanges']){const _0x7f088d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'accept');return this['forceDefaultExecution'](()=>_0x7f088d(_0x27dda1,_0x3cd3b3,_0x168a2f)),null;}const _0x268c1f=this['editor']['plugins']['get']('Users')['me'];for(const _0x6dca48 of this['getSuggestions']()){const _0x69c304=_0x6dca48['data'];if(_0x6dca48['author']['id']!=_0x268c1f['id'])continue;if('formatBlock'!=_0x6dca48['type']||_0x69c304['formatGroupId']!=_0x3cd3b3['formatGroupId'])continue;if(!An(_0x6dca48,_0x168a2f))continue;const _0x3da648=_0x6dca48['subType']==_0x2df26e;for(let _0x21e1a5=0x0;_0x21e1a5<_0x27dda1['length'];_0x21e1a5++){const _0x2c2577=_0x27dda1[_0x21e1a5];for(const _0x86adf6 of _0x6dca48['getMarkers']()){const _0x1fcfb1=_0x86adf6['getRange']();if(_0x2c2577['isEqual'](_0x1fcfb1)){_0x3da648?(_0x27dda1['splice'](_0x21e1a5,0x1),_0x21e1a5--):_0x6dca48['removeMarker'](_0x86adf6['name']);break;}}}}if(0x0==_0x27dda1['length'])return null;const _0x1b77b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'join');for(const _0x4e4061 of this['getSuggestions']()){const _0x2fba5f=_0x4e4061['data'];if(_0x4e4061['author']['id']==_0x268c1f['id']&&('formatBlock'==_0x4e4061['type']&&_0x2fba5f['formatGroupId']==_0x3cd3b3['formatGroupId']&&_0x4e4061['subType']==_0x2df26e&&An(_0x4e4061,_0x168a2f)&&(_0x1b77b9(_0x4e4061['getRanges'](),_0x27dda1)||_0x1b77b9(_0x27dda1,_0x4e4061['getRanges']())))){for(const _0x175528 of _0x27dda1)_0x4e4061['addRange'](_0x175528);return _0x4e4061;}}const _0x2f9f3d=_0x5a260f(),_0x1a0f10=_0x268c1f['id'],_0x272d98='formatBlock:'+_0x2df26e,_0x1d12c4=this['_setSuggestionData']({'id':_0x2f9f3d,'type':_0x272d98,'data':_0x3cd3b3,'createdAt':new Date(),'authorId':_0x1a0f10,'attributes':_0x168a2f});for(const _0x30f2c1 of _0x27dda1)this['_addSuggestionMarker'](_0x272d98,_0x2f9f3d,_0x1a0f10,_0x30f2c1,Ot['getMultiRangeId']());return _0x1d12c4;}markDeletion(_0x57a64,_0x274e96=null,_0x5ca35c={}){if(_0x57a64['isCollapsed'])return null;const _0x179cb2=this['editor']['plugins']['get']('Users')['me'],_0x4e287f=new at(_0x57a64['start'],_0x57a64['end']);this['_trackingSessionId']&&(_0x5ca35c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x200f47,meta:_0x304acf}of this['_findSuggestions'](_0x4e287f,'insertion'))if(_0x304acf['isOwn']&&!_0x304acf['isNextTo']){if(_0x200f47['isMultiRange']){const _0x309ebd=_0x200f47['getRanges']()['filter'](_0x3ca5e9=>'$graveyard'!=_0x3ca5e9['root']['rootName']);if(_0x309ebd['every'](_0x2a6080=>_0x4e287f['containsRange'](_0x2a6080,!0x0))&&_0x200f47['discard'](),_0x309ebd['some'](_0x235fb8=>_0x235fb8['containsRange'](_0x4e287f,!0x0))){const _0x1af10c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x274e96,'accept');return this['forceDefaultExecution'](()=>_0x1af10c([_0x4e287f],null,_0x5ca35c)),null;}}else{const _0x4c92c1=_0x4e287f['getIntersection'](_0x200f47['getFirstRange']());null!==_0x4c92c1&&_0x200f47['_onDiscard']([_0x4c92c1],null,_0x5ca35c);}}if(_0x4e287f['detach'](),_0x4e287f['isCollapsed']||'$graveyard'==_0x4e287f['root']['rootName'])return null;let _0x5af5fd=null,_0x5f3822=_0x4e287f['start'],_0x3a4880=_0x4e287f['end'];const _0x410bef=this['_findSuggestions'](_0x4e287f,'deletion');for(const {suggestion:_0x29586e,meta:_0xa8203f}of _0x410bef){const _0x38ba0e=this['_model']['createRange'](_0x5f3822,_0x3a4880);if(_0xa8203f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa8203f['containsRangeInObject']&&!_0xa8203f['isInsideObject'])){if(_0x29586e['isMultiRange']){if(!An(_0x29586e,_0x5ca35c))continue;let _0x9d9544=!0x0;for(const _0x8cf178 of _0x29586e['getRanges']()){if(_0x8cf178['containsRange'](_0x38ba0e,!0x0))return _0x29586e;_0x38ba0e['containsRange'](_0x8cf178)||(_0x9d9544=!0x1);}_0x9d9544&&_0x29586e['discard']();}else{const _0x50ce40=_0x29586e['getFirstRange']();if(_0x50ce40['containsRange'](_0x38ba0e,!0x0))return _0x29586e;if(!An(_0x29586e,_0x5ca35c)){_0x38ba0e['containsRange'](_0x50ce40)?_0x29586e['removeMarkers']():_0x50ce40['containsPosition'](_0x5f3822)?_0x5f3822=_0x50ce40['end']:_0x50ce40['containsPosition'](_0x3a4880)&&(_0x3a4880=_0x50ce40['start']);continue;}_0x5f3822=_0x5f3822['isBefore'](_0x50ce40['start'])?_0x5f3822:_0x50ce40['start'],_0x3a4880=_0x3a4880['isAfter'](_0x50ce40['end'])?_0x3a4880:_0x50ce40['end'],_0x5ca35c=Object['assign']({},_0x29586e['attributes']),_0x5af5fd?_0x50ce40['start']['isBefore'](_0x5af5fd['getFirstRange']()['start'])?(_0x5af5fd['removeMarkers'](),_0x5af5fd=_0x29586e):_0x29586e['removeMarkers']():_0x5af5fd=_0x29586e;}}}if(_0x5af5fd)return this['_setSuggestionRange'](_0x5af5fd,this['_model']['createRange'](_0x5f3822,_0x3a4880)),_0x5af5fd;{const _0x5ecc91=_0x5a260f(),_0x22395c=this['_model']['createRange'](_0x5f3822,_0x3a4880),_0x225e30=_0x179cb2['id'],_0x156064=_0x274e96?'deletion:'+_0x274e96:'deletion',_0x1d15ef=this['_setSuggestionData']({'id':_0x5ecc91,'type':_0x156064,'createdAt':new Date(),'authorId':_0x225e30,'attributes':_0x5ca35c});return this['_addSuggestionMarker'](_0x156064,_0x5ecc91,_0x225e30,_0x22395c),_0x1d15ef;}}markMultiRangeDeletion(_0x3a787,_0x4dd026='multi',_0x3119e3={}){const _0x638074=this['editor']['plugins']['get']('Users')['me'],_0x5c5627=_0x3a787['map'](_0x175c76=>new at(_0x175c76['start'],_0x175c76['end'])),_0x5accf9=new Set();this['_trackingSessionId']&&(_0x3119e3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x493779,meta:_0x3091ae}of this['_findSuggestions'](_0x5c5627,'insertion'))_0x3091ae['isOwn']&&!_0x3091ae['isNextTo']&&_0x5accf9['add'](_0x493779);for(const _0x4b7fee of _0x5accf9)if(_0x4b7fee['isMultiRange']){const _0x5a4f02=_0x4b7fee['getRanges']();if(_0x4b7fee['attributes']&&_0x4b7fee['attributes']['skipNestingCheck']||_0x5a4f02['every'](_0x4cdf86=>_0x5c5627['some'](_0x5864f5=>_0x5864f5['containsRange'](_0x4cdf86,!0x0)))&&_0x4b7fee['discard'](),_0x5c5627['every'](_0xf5f890=>_0x5a4f02['some'](_0x5b2bf8=>_0x5b2bf8['containsRange'](_0xf5f890,!0x0)))){const _0x5e8ddf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'accept');return this['forceDefaultExecution'](()=>_0x5e8ddf(_0x3a787,null,_0x3119e3)),null;}}else{const _0x2d6460=_0x4b7fee['getFirstRange']();if(_0x5c5627['some'](_0x3d509d=>_0x3d509d['containsRange'](_0x2d6460,!0x0))&&_0x4b7fee['discard'](),_0x5c5627['every'](_0x22d0be=>_0x2d6460['containsRange'](_0x22d0be,!0x0))){const _0x2e941c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'accept');return this['forceDefaultExecution'](()=>_0x2e941c(_0x5c5627,null,_0x3119e3)),null;}}const _0x19ee76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'join');let _0x332d3f=null;for(const _0x23e00f of this['getSuggestions']())if(_0x23e00f['author']['id']==_0x638074['id']&&_0x23e00f['isInContent']&&'deletion'==_0x23e00f['type']&&_0x23e00f['subType']==_0x4dd026&&An(_0x23e00f,_0x3119e3)&&(_0x19ee76(_0x23e00f['getRanges'](),_0x5c5627)||_0x19ee76(_0x5c5627,_0x23e00f['getRanges']()))){if(_0x332d3f){if(_0x23e00f['commentThread']&&_0x23e00f['commentThread']['length'])continue;for(const _0x2748bb of _0x23e00f['getRanges']())_0x332d3f['isIntersectingWithRange'](_0x2748bb)||_0x332d3f['addRange'](_0x2748bb);_0x23e00f['removeMarkers']();}else{_0x332d3f=_0x23e00f;for(const _0x625241 of _0x5c5627)_0x23e00f['isIntersectingWithRange'](_0x625241)||_0x23e00f['addRange'](_0x625241);}}if(_0x332d3f)return _0x332d3f;_0x5accf9['clear']();for(const {suggestion:_0x429b43,meta:_0x2406b3}of this['_findSuggestions'](_0x5c5627,'deletion'))_0x2406b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2406b3['containsRangeInObject']&&!_0x2406b3['isInsideObject'])&&An(_0x429b43,_0x3119e3)&&_0x5accf9['add'](_0x429b43);for(const _0x3c6f78 of _0x5accf9){const _0x3ac193=_0x3c6f78['getRanges']();if((!_0x3119e3||!_0x3119e3['skipNestingCheck'])&&_0x5c5627['every'](_0x13492c=>_0x3ac193['some'](_0x2f7217=>_0x2f7217['containsRange'](_0x13492c,!0x0))))return _0x3c6f78;_0x3c6f78['attributes']&&_0x3c6f78['attributes']['skipNestingCheck']||_0x3ac193['every'](_0x523e6c=>_0x5c5627['some'](_0x1ba322=>_0x1ba322['containsRange'](_0x523e6c,!0x0)))&&_0x3c6f78['discard']();}const _0x556834=_0x5a260f(),_0x12cd95=_0x638074['id'],_0x58ad0d='deletion:'+_0x4dd026,_0x43a83d=this['_setSuggestionData']({'id':_0x556834,'type':_0x58ad0d,'createdAt':new Date(),'authorId':_0x12cd95,'attributes':_0x3119e3});for(const _0x1de627 of _0x5c5627)_0x1de627['detach'](),_0x1de627['isCollapsed']||'$graveyard'==_0x1de627['root']['rootName']||this['_addSuggestionMarker'](_0x58ad0d,_0x556834,_0x12cd95,_0x1de627,Ot['getMultiRangeId']());return _0x43a83d;}markAttributeChange(_0x452949,_0x3387a6,_0xe1120f,_0x15a9af,_0x2c3ad5){if(_0x452949['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a8e84=this['editor']['plugins']['get']('Users')['me']['id'],_0x236045=Array['from'](this['_suggestions']['values']())['filter'](_0x7e77ad=>'attribute'==_0x7e77ad['type']&&_0x7e77ad['data']['key']==_0x3387a6&&_0x7e77ad['isIntersectingWithRange'](_0x452949));if(this['_trackingSessionId']&&(_0x2c3ad5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2f0669=this['_findSuggestions'](_0x452949,'insertion')['filter'](({meta:_0x2028f1})=>_0x2028f1['isOwn']&&!_0x2028f1['isInsideObject']&&!_0x2028f1['isNextTo'])['map'](({suggestion:_0x2d4cec})=>_0x2d4cec);_0x236045['unshift'](..._0x2f0669);}const _0x4abbe7=new Map([[_0x452949,_0xe1120f]]);for(const _0xc3c8ab of _0x236045){const _0x3ef33f='attribute'==_0xc3c8ab['type']?_0xc3c8ab['data']['oldValue']:void 0x0,_0xf13055=_0xc3c8ab['getFirstRange'](),_0x519c34=Array['from'](_0x4abbe7['keys']())['find'](_0x4e751c=>_0x4e751c['isIntersecting'](_0xf13055));if(!_0x519c34)continue;const _0x2500e1=_0x519c34['getDifference'](_0xf13055);this['_suggestionsConversion']['isBlockAttribute'](_0x3387a6)&&'insertion'==_0xc3c8ab['type']&&0x0!=_0x2500e1['length']||(_0x4abbe7['delete'](_0x519c34),_0x2500e1['forEach'](_0x290e25=>{_0x4abbe7['set'](_0x290e25,_0xe1120f);}),'insertion'!=_0xc3c8ab['type']&&_0x3ef33f!=_0x15a9af&&_0x4abbe7['set'](_0x519c34['getIntersection'](_0xf13055),_0x3ef33f));}const _0x5e2905=[];for(const [_0x4153f3,_0x3e32df]of _0x4abbe7){const _0x4ad204=_0x5a260f(),_0x3f8fd0={'key':_0x3387a6,'oldValue':_0x3e32df,'newValue':_0x15a9af};_0x3387a6['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':_0x3387a6});const _0x6d196e=('attribute:'+_0x3387a6+'|'+fn({'newValue':_0x15a9af}))['substring'](0x0,0x3c),_0x533d27=this['_setSuggestionData']({'id':_0x4ad204,'type':_0x6d196e,'data':_0x3f8fd0,'createdAt':new Date(),'authorId':_0x2a8e84,'attributes':_0x2c3ad5});_0x5e2905['push'](_0x533d27),this['_addSuggestionMarker'](_0x6d196e,_0x4ad204,_0x2a8e84,_0x4153f3);}return _0x5e2905;}enableDefaultAttributesIntegration(_0x281481){this['enableCommand'](_0x281481,(_0x44a6cc,..._0x4bb262)=>{this['recordAttributeChanges'](()=>{_0x44a6cc(..._0x4bb262);});});}startTrackingSession(_0x3a9524){return this['_trackingSessionId']=void 0x0!==_0x3a9524?_0x3a9524:_0x5a260f(),this['_trackingSessionId'];}_getAttributeKey(_0x225266){return'attribute'==_0x225266['type']?Cn(_0x225266['subType']):null;}_applyOperationsAsSuggestions(_0x335b4c){if(0x0==_0x335b4c['length'])return;const _0x491ff7=this['editor'],_0x4f389a=[],_0x4b7f34=_0x5df615=>{const _0x29107e=_0x5df615['_aiSource'];return _0x29107e?{'@ai':{'type':_0x29107e}}:{};},_0x55717b=(_0x25cd3d,_0x500916,_0x5a135a,_0x308f1f)=>{const _0x2b6d48=new Set(_0x308f1f['flatMap'](_0x3f6dc2=>_0x3f6dc2['getMarkerNames']()));let _0x426395=!0x1;for(let _0x298538=_0x500916;_0x298538<_0x25cd3d['operations']['length'];_0x298538++){const _0x9f77f6=_0x25cd3d['operations'][_0x298538];if('marker'==_0x9f77f6['type']){if(!_0x2b6d48['has'](_0x9f77f6['name']))continue;_0x426395=!0x0;}_0x9f77f6['_aiSource']=_0x5a135a;}return _0x426395;};_0x491ff7['model']['change'](_0xecd664=>{for(let _0x58e60e=0x0;_0x58e60e<_0x335b4c['length'];_0x58e60e++){const _0x26749d=_0x335b4c[_0x58e60e],_0x264b20=_0x26749d['_aiSource'];if(_0x26749d['baseVersion']=_0x491ff7['model']['document']['version'],_0x26749d['isDocumentOperation']=!0x0,_0x1cfa67(_0x26749d))continue;if(an(_0x26749d)){const _0x42b330=_0x46c3ae(_0x26749d['newRange'],_0x491ff7['model']);_0x4f389a['unshift']({'range':at['fromRange'](_0x42b330),'operation':_0x26749d});continue;}const _0x4c76f9=_0xecd664['batch']['operations']['length']+0x1;let _0x3e73b4=[];switch(_0x26749d['type']){case'rename':{const _0x5c4b67=_0x26749d['oldName'],_0x465ab6=_0x26749d['newName'];if(_0x5c4b67==_0x465ab6)break;_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x5bc0a6='$elementName',_0x1f4e6c=_0x26749d['position'],_0x25641b=_0x491ff7['model']['createRange'](_0x1f4e6c,_0x491ff7['model']['createPositionAt'](_0x1f4e6c['nodeAfter'],'end'));_0x3e73b4=this['markAttributeChange'](_0x25641b,_0x5bc0a6,_0x5c4b67,_0x465ab6,{..._0x4b7f34(_0x26749d),'groupId':_0x5a260f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x45b01a=_0x26749d['oldValue'],_0xc0be37=_0x26749d['newValue'];if(_0x45b01a==_0xc0be37)break;_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x1d2218=_0x26749d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1d2218))break;const _0x2cf794=_0x46c3ae(_0x26749d['range'],_0x491ff7['model']);_0x3e73b4=this['markAttributeChange'](_0x2cf794,_0x1d2218,_0x45b01a,_0xc0be37,{..._0x4b7f34(_0x26749d),'groupId':_0x5a260f()});break;}case'insert':{if(_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d),_0x335b4c[_0x58e60e+0x1]&&'move'==_0x335b4c[_0x58e60e+0x1]['type'])break;const _0x4513a8=_0x26749d['position'],_0x3b06d5=_0x26749d['howMany'],_0x493b73=_0x46c3ae(_0x491ff7['model']['createRange'](_0x4513a8,_0x4513a8['getShiftedBy'](_0x3b06d5)),_0x491ff7['model']);_0x3e73b4=cn(this['markInsertion'](_0x493b73,null,{..._0x4b7f34(_0x26749d)}));break;}case'split':{_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x527791=_0x26749d['splitPosition'],_0x4be97f=_0x26749d['moveTargetPosition'],_0x23613d=_0x491ff7['model']['createRange'](_0x527791,_0x4be97f);_0x3e73b4=cn(this['markInsertion'](_0x23613d,null,{..._0x4b7f34(_0x26749d)}));break;}case'move':case'remove':_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);}_0x264b20&&_0x55717b(_0xecd664['batch'],_0x4c76f9,_0x264b20,_0x3e73b4)&&delete _0x26749d['_aiSource'];}for(const {range:_0x23d3a2,operation:_0xd5210a}of _0x4f389a){const _0x5b44a4=_0xd5210a['_aiSource'],_0x16805b=_0x4b7f34(_0xd5210a),_0x39c53c=_0xecd664['batch']['operations']['length'];_0x23d3a2['detach']();const _0x238c2b=this['markDeletion'](_0x23d3a2,null,{..._0x16805b});_0x5b44a4&&_0x55717b(_0xecd664['batch'],_0x39c53c,_0x5b44a4,cn(_0x238c2b));}});}_setSuggestionRange(_0xc1e8ea,_0x96405c){const _0x4455f4=_0xc1e8ea['getFirstMarker']();this['_model']['change'](_0x3c6b4c=>{_0x3c6b4c['updateMarker'](_0x4455f4,{'range':_0x96405c});});}_addThreadToSuggestion(_0x1a4107){const _0x1be50f=_0x1a4107['id'],_0x488464=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1be50f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x488464,'threadId':_0x1be50f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51b1fe=this['_commentsRepository']['getCommentThread'](_0x1be50f);_0x51b1fe['unbind']('isRemovable'),_0x51b1fe['isRemovable']=!0x1,_0x1a4107['commentThread']=_0x51b1fe;}_checkSuggestionCorrectness(_0x30fe50,_0x18bac3,_0x22ee8d,_0x5ea847){if(_0x30fe50['type']!=_0x18bac3||_0x30fe50['subType']!=_0x22ee8d||_0x30fe50['creator']['id']!=_0x5ea847)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1539e5('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1ac609,_0x5ad3d5){const _0x2ebf3e=_0x1ac609['getFirstRange']();if(_0x5ad3d5['isEqual'](_0x2ebf3e))_0x1ac609['removeMarkers']();else{if(_0x2ebf3e['containsRange'](_0x5ad3d5)){const _0x2205e9=this['_model']['createPositionAt'](_0x5ad3d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0x2ebf3e['start'],_0x2205e9));const _0x208cb5=_0x5a260f(),_0x24d70d=_0x1ac609['creator']['id'],_0x397fb2=_0x1ac609['type']+':'+_0x1ac609['subType'];this['_setSuggestionData']({'id':_0x208cb5,'type':_0x397fb2,'createdAt':new Date(),'authorId':_0x24d70d,'data':_0x1ac609['data'],'attributes':_0x1ac609['attributes']});const _0x2711c5=this['_model']['createPositionAt'](_0x5ad3d5['end']['parent'],'after'),_0x2a2370=this['_model']['createRange'](_0x2711c5,_0x2ebf3e['end']);this['_addSuggestionMarker'](_0x397fb2,_0x208cb5,_0x24d70d,_0x2a2370);}else{if(_0x2ebf3e['containsPosition'](_0x5ad3d5['start'])){const _0x28a788=this['_model']['createPositionAt'](_0x5ad3d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0x2ebf3e['start'],_0x28a788));}else{const _0xcb9023=this['_model']['createPositionAt'](_0x5ad3d5['end']['parent'],'after');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0xcb9023,_0x2ebf3e['end']));}}}}_rangeIsInLocalUserInsertion(_0x3314e6){for(const {suggestion:_0xc16ca6,meta:_0x14f83b}of this['_findSuggestions'](_0x3314e6,'insertion')){if(!_0x14f83b['isOwn'])continue;const _0x163b20=_0xc16ca6['getRanges']();for(const _0x3f22d8 of _0x163b20)if(!_0x3314e6['getDifference'](_0x3f22d8)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x30ed03){return this['editor']['plugins']['get']('Users')['getUser'](_0x30ed03);}_getExternalAuthor(_0x4873e0){const _0x322031=this['editor']['plugins']['get']('Users'),_0x4bc6f7=_0x13b349('external:'+_0x4873e0),_0x4d6d93=_0x322031['getUser'](_0x4bc6f7);return _0x4d6d93||_0x322031['addUser']({'id':_0x4bc6f7,'name':_0x4873e0});}_createSuggestion(_0x2646cf,_0x31a1ec,_0x33cbce,_0x4520e3,_0x4dae6a,_0x320194){const _0x55c244=this['_getAuthorFromId'](_0x4520e3);if(!_0x55c244)throw new _0x1539e5('track-changes-user-not-found',this,{'authorId':_0x4520e3,'suggestionId':_0x33cbce});const _0x39ce24=this['_suggestionFactory']['buildSuggestion'](_0x2646cf,_0x31a1ec,_0x33cbce,_0x55c244,_0x4dae6a,_0x34af0a=>{this['_updateSuggestionData'](_0x33cbce,{'attributes':_0x34af0a});const _0x141aa2=this['getSuggestion'](_0x33cbce);this['_joinWithAdjacentSuggestions'](new Set([_0x141aa2])),this['_refreshSuggestionsChain'](new Set([_0x141aa2]));},_0x320194);return this['listenTo'](_0x39ce24,'accept',()=>{this['_updateSuggestionData'](_0x33cbce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39ce24,'discard',()=>{this['_updateSuggestionData'](_0x33cbce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33cbce,_0x39ce24),this['_suggestionState']['set'](_0x39ce24,'notReady'),_0x39ce24;}_breakSuggestionMarker(_0x5db046,_0x33a013,_0x398c13){const _0x3897e9=_0x5db046['getFirstRange'](),_0x466c80=_0x3897e9['start'],_0x375420=_0x3897e9['end'];this['_setSuggestionRange'](_0x5db046,this['_model']['createRange'](_0x466c80,_0x33a013));const _0x3dddb8=_0x5a260f(),_0x4c4378=_0x5db046['creator']['id'],_0x403d87=_0x5db046['type']+(_0x5db046['subType']?':'+_0x5db046['subType']:'');this['_setSuggestionData']({'id':_0x3dddb8,'type':_0x403d87,'createdAt':new Date(),'authorId':_0x4c4378,'originalSuggestionId':_0x5db046['_originalSuggestionId']||_0x5db046['id'],'attributes':_0x5db046['attributes'],'data':_0x5db046['data']});const _0x217791=this['_getAttributeKey'](_0x5db046);('formatBlock'==_0x5db046['type']||_0x217791&&this['_suggestionsConversion']['isBlockAttribute'](_0x217791))&&(_0x398c13=this['_model']['createPositionBefore'](_0x398c13['parent'])),this['_addSuggestionMarker'](_0x403d87,_0x3dddb8,_0x4c4378,this['_model']['createRange'](_0x398c13,_0x375420));}_findSuggestions(_0x528c55,_0x25d813=null){const _0x37a2ab=[],_0xade580=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x528c55)||(_0x528c55=[_0x528c55]);for(const _0x5ef378 of this['getSuggestions']()){if(!_0x5ef378['isInContent'])continue;if(_0x25d813&&_0x5ef378['type']!=_0x25d813)continue;let _0x5e135f=!0x1;for(const _0x279877 of _0x5ef378['getRanges']()){for(const _0x1ce8d7 of _0x528c55){const _0x58540b=_0x1ce8d7['start']['isEqual'](_0x279877['end'])||_0x1ce8d7['end']['isEqual'](_0x279877['start']);if(_0x58540b||_0x1ce8d7['getIntersection'](_0x279877)){const _0x4fcc2a=_0x1ce8d7['containsRange'](_0x279877)&&dn(this['_model']['schema'],_0x279877['start'],_0x1ce8d7),_0x333cba=_0x279877['containsRange'](_0x1ce8d7)&&dn(this['_model']['schema'],_0x1ce8d7['start'],_0x279877);_0x37a2ab['push']({'suggestion':_0x5ef378,'meta':{'isOwn':_0xade580==_0x5ef378['author'],'isNextTo':_0x58540b,'isInsideObject':_0x4fcc2a,'containsRangeInObject':_0x333cba}}),_0x5e135f=!0x0;break;}}if(_0x5e135f)break;}}return _0x37a2ab;}_addSuggestionMarker(_0x43484c,_0x391b10,_0x4e049c,_0x706813,_0x26a144){this['_model']['change'](_0x2e812f=>{let _0x6f9e01='suggestion:'+_0x43484c+':'+_0x391b10+':'+_0x4e049c;_0x26a144&&(_0x6f9e01=_0x6f9e01+':'+_0x26a144),_0x2e812f['addMarker'](_0x6f9e01,{'range':_0x706813,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x7b58c1){const _0x2ccf34=_0x7b58c1['previous'],_0xe7d2bc=_0x7b58c1['next'];_0x7b58c1['previous']=null,_0x7b58c1['next']=null,null!=_0x2ccf34&&_0x2ccf34['next']==_0x7b58c1&&(_0x2ccf34['next']=_0xe7d2bc),null!=_0xe7d2bc&&_0xe7d2bc['previous']==_0x7b58c1&&(_0xe7d2bc['previous']=_0x2ccf34),'ready'==this['_suggestionState']['get'](_0x7b58c1)&&(this['_suggestionState']['set'](_0x7b58c1,'removed'),this['fire']('suggestionUnloaded',_0x7b58c1,_0x2ccf34,_0xe7d2bc));}_setSuggestionData(_0x5938f1){const _0x57188a=_0x5938f1['id'],_0x33b60c=this['addSuggestionData'](_0x5938f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f3d2b=this['editor']['plugins']['get']('PendingActions'),_0x8e33c5=_0x33b60c['hasComments'],_0x332d66=_0x33b60c['subType']?_0x33b60c['type']+':'+_0x33b60c['subType']:_0x33b60c['type'],_0x85059a=this['editor']['locale'],_0x41cd64=_0x2f3d2b['add'](wt(_0x85059a,'PENDING_ACTION_SUGGESTION')),_0x361b31={'id':_0x57188a,'type':_0x332d66,'hasComments':_0x8e33c5,'data':_0x5938f1['data']||null,'originalSuggestionId':_0x5938f1['originalSuggestionId']||null,'attributes':_0x33b60c['attributes']};this['_adapter']['addSuggestion'](_0x361b31)['then'](_0x5e159d=>{_0x33b60c['_saved']=!0x0,_0x2f3d2b['remove'](_0x41cd64),_0x5e159d&&_0x5e159d['createdAt']&&(this['_suggestions']['get'](_0x57188a)['createdAt']=_0x5e159d['createdAt']);})['catch'](_0x483e21=>{throw _0x5bb8f7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33b60c['discard']();}),_0x33b60c['stopListening'](),this['_suggestions']['delete'](_0x33b60c['id']),this['_suggestionState']['delete'](_0x33b60c),_0x483e21;});}return _0x33b60c;}_updateSuggestionData(_0x4fe399,_0x229e3a){const _0x58585c=this['editor']['plugins']['get']('PendingActions'),_0x1858c7=this['getSuggestion'](_0x4fe399);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1858c7['_saved']){const _0x53fa72=_0x58585c['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4fe399,_0x229e3a)['then'](()=>{_0x58585c['remove'](_0x53fa72);});}else _0x1858c7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4fe399,_0x229e3a);});}}_getSuggestionData(_0x3d99ad){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1539e5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3d99ad);}_handleNewSuggestionMarker(_0x59c86d){const {id:_0x534811,type:_0x3b4fc0,subType:_0x395330,authorId:_0x559eb3}=nt(_0x59c86d),_0x593f27=this['_suggestions']['get'](_0x534811)||this['_createSuggestion'](_0x3b4fc0,_0x395330,_0x534811,_0x559eb3,{});switch(this['_checkSuggestionCorrectness'](_0x593f27,_0x3b4fc0,_0x395330,_0x559eb3),this['_suggestionState']['get'](_0x593f27)){case'notReady':this['_getSuggestionData'](_0x534811)['then'](_0x521ccb=>{let _0x1440e5=Promise['resolve']();_0x521ccb['hasComments']&&(_0x1440e5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x534811})),_0x1440e5['then'](()=>{this['addSuggestionData'](_0x521ccb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x593f27,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x534811,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x593f27,'ready'),this['fire']('suggestionLoaded',_0x593f27);break;case'ready':this['fire']('suggestionChanged',_0x593f27);}return _0x593f27['addMarkerName'](_0x59c86d),_0x593f27;}_refreshSuggestionsChain(_0x51de53){const _0xe519d7=Array['from'](_0x51de53),_0x4dfda3=_0xe519d7['filter'](_0x190b04=>'attribute'==_0x190b04['type']);this['_refreshAttributeSuggestionsChain'](_0x4dfda3);const _0x1e0a8d=_0xe519d7['filter'](_0x446ccc=>!_0x446ccc['isMultiRange']&&'attribute'!=_0x446ccc['type']),_0x222634=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4acf95=>!_0x4acf95['isMultiRange']&&'attribute'!=_0x4acf95['type']),_0x123907=_0x222634['filter'](_0x196b6a=>!_0x51de53['has'](_0x196b6a)),_0x3c9d07=new Map(_0x222634['map'](_0x56fa4c=>[_0x56fa4c,this['_suggestionFactory']['getSuggestionCallback'](_0x56fa4c['type'],_0x56fa4c['subType'],'chain')])),_0x471cae=new Map(_0x222634['map'](_0x343e83=>[_0x343e83,_0x343e83['getFirstRange']()])),_0x240a90=new Set(),_0x514d70=new Set();for(let _0x428ed1=0x0;_0x428ed1<_0x1e0a8d['length'];_0x428ed1++)_0x32e580(_0x1e0a8d[_0x428ed1],_0x1e0a8d,_0x428ed1+0x1);for(let _0x56ed53=0x0;_0x56ed53<_0x1e0a8d['length'];_0x56ed53++)_0x32e580(_0x1e0a8d[_0x56ed53],_0x123907,0x0);const _0x59a48f=new Set();for(let _0x28153a=0x0;_0x28153a<_0x1e0a8d['length'];_0x28153a++){const _0xb31da2=_0x1e0a8d[_0x28153a];!_0x514d70['has'](_0xb31da2)&&_0xb31da2['previous']&&(_0x59a48f['add'](_0xb31da2['previous']),_0xb31da2['previous']['next']===_0xb31da2&&(_0xb31da2['previous']['next']=null),_0xb31da2['previous']=null),!_0x240a90['has'](_0xb31da2)&&_0xb31da2['next']&&(_0x59a48f['add'](_0xb31da2['next']),_0xb31da2['next']['previous']===_0xb31da2&&(_0xb31da2['next']['previous']=null),_0xb31da2['next']=null);}function _0x32e580(_0x1dec3f,_0x4b38fb,_0x3c61bc){for(let _0x2ab9f4=_0x3c61bc;_0x2ab9f4<_0x4b38fb['length'];_0x2ab9f4++){const _0x3f576f=_0x1b2e95(_0x1dec3f,_0x4b38fb[_0x2ab9f4]);_0x3f576f&&(_0x3f576f[0x0]['next']=_0x3f576f[0x1],_0x3f576f[0x1]['previous']=_0x3f576f[0x0],_0x240a90['add'](_0x3f576f[0x0]),_0x514d70['add'](_0x3f576f[0x1]));}}function _0x1b2e95(_0x59962b,_0x5de271){if(_0x59962b['author']['id']!==_0x5de271['author']['id'])return null;const _0x1ffd3b=_0x3c9d07['get'](_0x59962b)(_0x59962b,_0x5de271,_0x471cae['get'](_0x59962b),_0x471cae['get'](_0x5de271));return _0x1ffd3b&&_0x3c9d07['get'](_0x5de271)(_0x59962b,_0x5de271,_0x471cae['get'](_0x59962b),_0x471cae['get'](_0x5de271))?_0x1ffd3b[0x1]['commentThread']&&_0x1ffd3b[0x1]['commentThread']['length']?null:_0x1ffd3b:null;}_0x59a48f['size']&&this['_refreshSuggestionsChain'](_0x59a48f);}_refreshAttributeSuggestionsChain(_0x5567ec){if(0x0==_0x5567ec['length'])return;const _0x46c357=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a5363=>'attribute'==_0x4a5363['type']&&_0x4a5363['_isDataLoaded']),_0x2b5391=[],_0x136df3=new Map();for(const _0x481266 of _0x46c357){const _0x24d525=_0x13b349(_0x481266['attributes']);_0x136df3['has'](_0x24d525)||(_0x136df3['set'](_0x24d525,_0x2b5391['length']),_0x2b5391['push']([])),_0x2b5391[_0x136df3['get'](_0x24d525)]['push'](_0x481266);}!(function(){_0x2b5391['sort']((_0xf94eaf,_0x526e96)=>{const _0x2499ec=_0xf94eaf[0x0]['createdAt'],_0x599174=_0x526e96[0x0]['createdAt'];return _0x2499ec==_0x599174?_0xf94eaf[0x0]['attributes']['groupId']<_0x526e96[0x0]['attributes']['groupId']?-0x1:0x1:_0x2499ec<_0x599174?-0x1:0x1;});for(const _0x147702 of _0x2b5391)_0x147702['sort']((_0x54af83,_0x4bc4f9)=>_0x54af83['id']<_0x4bc4f9['id']?-0x1:0x1);}());for(let _0x59e98e=0x0;_0x59e98e<_0x2b5391['length'];_0x59e98e++){if(0x0==_0x2b5391[_0x59e98e]['length'])continue;const _0x549479=[];for(let _0x210b61=_0x59e98e+0x1;_0x210b61<_0x2b5391['length'];_0x210b61++)0x0!=_0x2b5391[_0x210b61]['length']&&_0x46a27a(_0x2b5391[_0x59e98e],_0x2b5391[_0x210b61])&&_0x549479['push'](_0x210b61);for(const _0x51a348 of _0x549479)_0x2b5391[_0x59e98e]=_0x2b5391[_0x59e98e]['concat'](_0x2b5391[_0x51a348]),_0x2b5391[_0x51a348]=[];}for(const _0x32e93e of _0x2b5391)for(let _0x40171d=0x0;_0x40171d<_0x32e93e['length'];_0x40171d++){const _0x26dd7d=_0x32e93e[_0x40171d+0x1]||null;_0x32e93e[_0x40171d]['next']!==_0x26dd7d&&(_0x32e93e[_0x40171d]['next']=_0x26dd7d);}for(const _0x156259 of _0x2b5391)for(let _0x50c44a=0x0;_0x50c44a<_0x156259['length'];_0x50c44a++){const _0x39ef5a=_0x156259[_0x50c44a-0x1]||null;_0x156259[_0x50c44a]['previous']!==_0x39ef5a&&(_0x156259[_0x50c44a]['previous']=_0x39ef5a);}function _0x46a27a(_0x468f5a,_0x4e3243){if(_0x468f5a[0x0]['attributes']['groupId']!==_0x4e3243[0x0]['attributes']['groupId']&&_0x468f5a[0x0]['author']!==_0x4e3243[0x0]['author'])return!0x1;if(!function(_0x377588,_0x1c7209){return!_0x377588['hasComments']&&!_0x1c7209['hasComments']||(!_0x377588['hasComments']||!_0x1c7209['hasComments'])&&(!!(_0x377588['hasComments']&&_0x1c7209['createdAt']<_0x377588['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x1c7209['hasComments']&&_0x377588['createdAt']<_0x1c7209['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x468f5a[0x0],_0x4e3243[0x0]))return!0x1;const _0x31f8f5=dt(_0x468f5a[0x0]['attributes'],['groupId','trackingSessionId']),_0x371daa=dt(_0x4e3243[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x31f8f5,_0x371daa)&&(_0x468f5a[0x0]['attributes']['groupId']==_0x4e3243[0x0]['attributes']['groupId']||_0x468f5a[0x0]['attributes']['trackingSessionId']===_0x4e3243[0x0]['attributes']['trackingSessionId']&&(!!_0x468f5a['every'](_0xe9f500=>_0x4e3243['some'](_0x1cd412=>_0xe9f500['getFirstRange']()['isEqual'](_0x1cd412['getFirstRange']())))&&_0x4e3243['every'](_0x5497d4=>_0x468f5a['some'](_0x4ad96c=>_0x5497d4['getFirstRange']()['isEqual'](_0x4ad96c['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x5e9641){const _0x371130=Array['from'](_0x5e9641),_0x29da5f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b8bff=_0x29da5f['filter'](_0x5907e5=>!_0x5e9641['has'](_0x5907e5)),_0x38ac2b=new Map(_0x371130['map'](_0x3ff5df=>[_0x3ff5df,this['_suggestionFactory']['getSuggestionCallback'](_0x3ff5df['type'],_0x3ff5df['subType'],'join')])),_0x3acd86=new Map(_0x29da5f['map'](_0x380cee=>[_0x380cee,_0x380cee['getRanges']()]));for(let _0x1962aa=0x0;_0x1962aa<_0x371130['length'];_0x1962aa++)if(_0x38feba(this,_0x371130[_0x1962aa],_0x371130,_0x1962aa+0x1))return!0x0;for(let _0x543333=0x0;_0x543333<_0x371130['length'];_0x543333++)if(_0x38feba(this,_0x371130[_0x543333],_0x4b8bff,0x0))return!0x0;return!0x1;function _0x38feba(_0x56da2a,_0x2ba3eb,_0x577b4d,_0x331fe2){for(let _0x297a4d=_0x331fe2;_0x297a4d<_0x577b4d['length'];_0x297a4d++){const _0x357594=_0x577b4d[_0x297a4d];if(_0x357594['type']!==_0x2ba3eb['type']||_0x357594['author']['id']!==_0x2ba3eb['author']['id']||_0x357594['subType']!==_0x2ba3eb['subType'])continue;if(!In(_0x2ba3eb,_0x357594))continue;if('attribute'==_0x2ba3eb['type']&&_0x2ba3eb['data']['oldValue']!=_0x357594['data']['oldValue'])continue;if('attribute'==_0x2ba3eb['type']&&_0x56da2a['_suggestionsConversion']['isBlockAttribute'](_0x2ba3eb['data']['key']))continue;if('formatBlock'==_0x2ba3eb['type']){const _0x8ec327=_0x56da2a['editor']['model'],_0x46ccc2=_0x2ba3eb['getContainedElement']();if(_0x46ccc2&&(_0x8ec327['schema']['isObject'](_0x46ccc2)||_0x8ec327['schema']['isLimit'](_0x46ccc2)))continue;}const _0x3d3593=_0x38ac2b['get'](_0x2ba3eb),_0x259239=_0x3acd86['get'](_0x2ba3eb),_0x388f10=_0x3acd86['get'](_0x357594),_0x17ec44=_0x2ba3eb['commentThread']&&_0x2ba3eb['commentThread']['length'],_0x6a870d=_0x357594['commentThread']&&_0x357594['commentThread']['length'];if(!_0x17ec44&&_0x3d3593(_0x388f10,_0x259239))return _0x56da2a['_joinSuggestions'](_0x357594,_0x2ba3eb),_0x3acd86['delete'](_0x2ba3eb),!0x0;if(!_0x6a870d&&_0x3d3593(_0x259239,_0x388f10))return _0x56da2a['_joinSuggestions'](_0x2ba3eb,_0x357594),_0x3acd86['delete'](_0x357594),!0x0;}return!0x1;}}_joinSuggestions(_0x5a6c2c,_0x5ed340){if(_0x5a6c2c['isMultiRange']){for(const _0x31263d of _0x5ed340['getRanges']())_0x5a6c2c['addRange'](_0x31263d);}else{const _0x3f83d5=_0x5ed340['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a6c2c,this['_model']['createRange'](_0x5a6c2c['getFirstRange']()['start'],_0x3f83d5));}_0x5ed340['removeMarkers']();}_getMarkerAnnouncementText(_0x40abb7,_0x3d2da5,_0x2e6468){const _0x2c3a45=_0x40abb7['startsWith']('format')||_0x40abb7['startsWith']('attribute')?'FORMATTING':_0x40abb7['toUpperCase']();return wt(this['editor']['locale'],_0x3d2da5+'_'+_0x2c3a45+'_SUGGESTION_ANNOUNCEMENT',_0x2e6468);}_initAriaMarkerChangeAnnouncements(){const _0x380886=this['editor'];if(!_0x380886['ui'])return;const {ariaLiveAnnouncer:_0x3ed90b}=_0x380886['ui'];it(this['_model'],({left:_0x4831f5,entered:_0x237fa6})=>{for(const _0x33204b of _0x4831f5){const {group:_0x59487d,type:_0x3f1466}=nt(_0x33204b['name']);if('suggestion'===_0x59487d){_0x3ed90b['announce'](this['_getMarkerAnnouncementText'](_0x3f1466,'LEAVE'));break;}}for(const _0x5e5c9a of _0x237fa6){const {group:_0x1660a4,type:_0x1bc788}=nt(_0x5e5c9a['name']);if('suggestion'===_0x1660a4){_0x3ed90b['announce'](this['_getMarkerAnnouncementText'](_0x1bc788,'ENTER',_0x3b1f36(_0x279983)));break;}}});}_processAttributeChanges(_0x2dae9f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x286e3d=this['editor'],_0x43e4bf=_0x286e3d['model']['document']['differ']['getChanges']();if(0x0==_0x43e4bf['length'])return!0x1;const _0x32aeb4=[],_0x13d94b=_0x43e4bf['filter'](_0x683faa=>'attribute'==_0x683faa['type']),_0x4c7f40=_0x43e4bf['filter'](_0x4fc5f1=>'insert'==_0x4fc5f1['type']&&'$text'!=_0x4fc5f1['name']),_0xe20adb=_0x43e4bf['filter'](_0x46509a=>'remove'==_0x46509a['type']&&'$text'!=_0x46509a['name']);for(const _0x548042 of _0x13d94b)_0x32aeb4['push']({'key':_0x548042['attributeKey'],'newValue':_0x548042['attributeNewValue'],'oldValue':_0x548042['attributeOldValue'],'range':_n(_0x548042['range'],_0x286e3d['model'])});for(const _0x336ad2 of _0x4c7f40){const _0x50aa51=_0xe20adb['find'](_0x2e583a=>_0x2e583a['position']['isEqual'](_0x336ad2['position']));_0x50aa51&&_0x32aeb4['push']({'key':on,'newValue':_0x336ad2['name'],'oldValue':_0x50aa51['name'],'range':_0x286e3d['model']['createRangeOn'](_0x336ad2['position']['nodeAfter'])});}return 0x0!=_0x32aeb4['length']&&this['_reduceExistingSuggestions'](_0x2dae9f,_0x32aeb4);}_processAttributeSuggestions(_0x488b70){let _0x19072e=!0x1;const _0x1895be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa062cd=>_0xa062cd['data']['newRange']&&_0xa062cd['name']['startsWith']('suggestion:attribute:'));for(const _0x1af73f of _0x1895be){const {subType:_0x2ae94f,id:_0x28621e}=nt(_0x1af73f['name']),_0x332de8=_0x2ae94f['split']('|')[0x0];for(const _0x4b5d9a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4b5d9a['id']!=_0x28621e&&'attribute'==_0x4b5d9a['type']&&_0x4b5d9a['data']&&_0x4b5d9a['data']['key']==_0x332de8&&_0x4b5d9a['getFirstRange']()['isIntersecting'](_0x1af73f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4b5d9a,_0x1af73f['data']['newRange'],_0x488b70),_0x19072e=!0x0);}return _0x19072e;}recordAttributeChanges(_0x564482){this['_recordAttributeSuggestions']=!0x0,_0x564482();}_reduceExistingSuggestions(_0x1a8d84,_0x3d827f){if(0x0==_0x3d827f['length'])return!0x1;let _0xc0ee92=!0x1;for(const _0x3dee1d of _0x3d827f){const _0x4aad3b=this['_findSuggestions'](_0x3dee1d['range'],'attribute')['filter'](_0x326582=>!_0x326582['meta']['isNextTo'])['map'](_0x8b230f=>_0x8b230f['suggestion']),_0x2c0373=_0x13b349({'newValue':_0x3dee1d['newValue']});_0x4aad3b['filter'](_0x2eb1f1=>{const [_0x4f87ad,_0x234929]=_0x2eb1f1['subType']['split']('|');return _0x4f87ad==_0x3dee1d['key']&&_0x234929!=_0x2c0373;})['forEach'](_0x3a96d1=>{this['_reduceSuggestionAttributeRange'](_0x3a96d1,_0x3dee1d['range'],_0x1a8d84),_0xc0ee92=!0x0;});}return _0xc0ee92;}_reduceSuggestionAttributeRange(_0x4a9200,_0x11f37f,_0xd0c72e){const _0x4e84e4=_0x4a9200['getFirstRange']()['getDifference'](_0x11f37f);0x0!==_0x4e84e4['length']?0x1!==_0x4e84e4['length']?this['_breakSuggestionMarker'](_0x4a9200,_0x11f37f['start'],_0x11f37f['end']):this['_setSuggestionRange'](_0x4a9200,_0x4e84e4[0x0]):_0xd0c72e['removeMarker'](_0x4a9200['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x32c726){this['_editor']=_0x32c726,this['_model']=_0x32c726['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x4c7d47,_0x18515f,_0x45ec4c,_0x51079a,_0x43845d,_0x35e805,_0x12542d){return new Ot(this['_model'],{'type':_0x4c7d47,'subType':_0x18515f,'id':_0x45ec4c,'originalSuggestionId':_0x12542d,'author':_0x51079a,'creator':_0x51079a,'attributes':_0x43845d,'onAttributesChange':_0x35e805,'onAccept':(..._0xa96f27)=>this['getSuggestionCallback'](_0x4c7d47,_0x18515f,'accept')(..._0xa96f27),'onDiscard':(..._0x26e51e)=>this['getSuggestionCallback'](_0x4c7d47,_0x18515f,'discard')(..._0x26e51e)});}registerCustomCallback(_0x3612e0,_0x5b4aeb,_0x583b22,_0x3b8164){const _0x59de49=_0x3612e0+':'+_0x5b4aeb+':'+_0x583b22;this['_customCallbacks']['set'](_0x59de49,_0x3b8164);}getSuggestionCallback(_0x48447f,_0x1d3b15,_0x5de1df){const _0x50706f=_0x48447f+':'+_0x1d3b15+':'+_0x5de1df;return this['_customCallbacks']['get'](_0x50706f)||this['_defaultCallbacks']['get'](_0x48447f+':'+_0x5de1df);}_registerDefaultCallbacks(){const _0x16bd84=()=>!0x1,_0xb732aa=_0x16d48c=>{_0x16d48c['sort']((_0x4437ee,_0x51a1bb)=>_0x4437ee['start']['isBefore'](_0x51a1bb['start'])?0x1:-0x1),this['_model']['change'](_0xf3a94f=>{for(const _0x43c207 of _0x16d48c){let _0x28cfcc;_0x28cfcc=_0x43c207['end']['isAtEnd']&&_0x43c207['end']['parent']==_0x43c207['start']['nodeAfter']?_0xf3a94f['createSelection'](_0x43c207['start']['nodeAfter'],'on'):_0xf3a94f['createSelection'](_0x43c207),this['_model']['deleteContent'](_0x28cfcc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x734096=(_0x2b458b,_0x3bb8f4)=>{_0x3bb8f4&&this['_model']['change'](_0x4c94d2=>{const {commandName:_0xc1f7b5,commandParams:_0x39583a=[]}=_0x3bb8f4,_0x370ff6=_0x2b458b['map'](_0x4d51a3=>(hn(_0x4d51a3)&&(_0x4d51a3=this['_model']['createRange'](_0x4d51a3['end'])),_0x4d51a3))['filter'](_0x5929c9=>'$graveyard'!==_0x5929c9['root']['rootName']);if(_0x370ff6['length']<0x1)return;const _0xb71be7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28671d=>at['fromRange'](_0x28671d));_0x4c94d2['setSelection'](_0x370ff6);for(const _0x6ccf50 of this['_editor']['commands']['commands']())_0x6ccf50['refresh']();_0x39583a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc1f7b5,..._0x39583a);const _0x1e0abf=_0xb71be7['filter'](_0x259a0a=>'$graveyard'!=_0x259a0a['root']['rootName']);_0x1e0abf['length']>0x0&&_0x4c94d2['setSelection'](_0x1e0abf);for(const _0x1fd60e of _0xb71be7)_0x1fd60e['detach']();});},_0x2eb0c2=(_0x397f02,_0x32dc96)=>0x1==_0x397f02['length']&&0x1==_0x32dc96['length']&&_0x397f02[0x0]['end']['isEqual'](_0x32dc96[0x0]['start']),_0x320529=(_0x20338b,_0x5742a5,_0x13001d,_0x9eb8e7)=>Ln(_0x20338b,_0x5742a5,_0x13001d,_0x9eb8e7)?[_0x20338b,_0x5742a5]:Ln(_0x5742a5,_0x20338b,_0x9eb8e7,_0x13001d)?[_0x5742a5,_0x20338b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x16bd84),this['_defaultCallbacks']['set']('insertion:discard',_0xb732aa),this['_defaultCallbacks']['set']('insertion:join',_0x2eb0c2),this['_defaultCallbacks']['set']('insertion:chain',_0x320529),this['_defaultCallbacks']['set']('deletion:accept',_0xb732aa),this['_defaultCallbacks']['set']('deletion:discard',_0x16bd84),this['_defaultCallbacks']['set']('deletion:join',_0x2eb0c2),this['_defaultCallbacks']['set']('deletion:chain',_0x320529),this['_defaultCallbacks']['set']('formatInline:accept',_0x734096),this['_defaultCallbacks']['set']('formatInline:discard',_0x16bd84),this['_defaultCallbacks']['set']('formatInline:join',_0x2eb0c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x16bd84),this['_defaultCallbacks']['set']('formatBlock:accept',_0x734096),this['_defaultCallbacks']['set']('formatBlock:discard',_0x16bd84),this['_defaultCallbacks']['set']('formatBlock:join',_0x2eb0c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x16bd84),this['_defaultCallbacks']['set']('attribute:accept',_0x16bd84),this['_defaultCallbacks']['set']('attribute:discard',(_0x193d25,_0x261437)=>{if(!_0x261437)return;const _0x360ef7=this['_editor']['plugins']['get'](_0x3ffa0d);this['_model']['change'](_0x132531=>{if('$elementName'==_0x261437['key'])for(const _0x349fcf of _0x193d25){const _0x1d2b09=_0x349fcf['start']['nodeAfter'],_0x39d38c=_0x261437['oldValue'];_0x132531['rename'](_0x1d2b09,_0x39d38c);}else{if(_0x360ef7['isBlockAttribute'](_0x261437['key'])){for(const _0x4e37b9 of _0x193d25)void 0x0!==_0x261437['oldValue']?_0x132531['setAttribute'](_0x261437['key'],_0x261437['oldValue'],_0x4e37b9['start']['nodeAfter']):_0x132531['removeAttribute'](_0x261437['key'],_0x4e37b9['start']['nodeAfter']);}else{for(const _0x67eebd of _0x193d25)_0x261437['oldValue']?_0x132531['setAttribute'](_0x261437['key'],_0x261437['oldValue'],_0x67eebd):_0x132531['removeAttribute'](_0x261437['key'],_0x67eebd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2eb0c2);}};function dn(_0x174531,_0x2bf4eb,_0xe2c37f){for(const _0x276c47 of _0x2bf4eb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x276c47['root']==_0x276c47)return!0x1;if(!_0xe2c37f['containsItem'](_0x276c47))return!0x1;if(_0x174531['isObject'](_0x276c47)||_0x174531['isLimit'](_0x276c47))return!0x0;}return!0x1;}function hn(_0x5bfa99){return _0x5bfa99['end']['parent']==_0x5bfa99['start']['nodeAfter']&&_0x5bfa99['end']['isAtStart'];}function gn(_0x23b5d2,_0x3d0b5e,_0x1bd8a1,_0x16a538){const _0x4a1e98=_0x6f9808=>!_0x6f9808['item']['is']('$textProxy')&&!_0x16a538['isObject'](_0x6f9808['item']),_0xfdcc66=_0x23b5d2['start']['getLastMatchingPosition'](_0x4a1e98),_0x49e37c=_0x23b5d2['end']['getLastMatchingPosition'](_0x4a1e98,{'direction':'backward'});return(!_0x23b5d2['start']['isEqual'](_0xfdcc66)||!_0x23b5d2['end']['isEqual'](_0x49e37c))&&(_0xfdcc66['isBefore'](_0x49e37c)?_0x1bd8a1['updateMarker'](_0x3d0b5e,{'range':_0x1bd8a1['createRange'](_0xfdcc66,_0x49e37c)}):_0x1bd8a1['removeMarker'](_0x3d0b5e),!0x0);}function fn(_0x3f56ef){return _0x13b349(_0x3f56ef);}function mn(_0x39f16f){const _0x25ce56=_0x39f16f['start']['nodeAfter'];return _0x25ce56&&_0x25ce56['is']('element');}function En(_0x2bc30d){return hn(_0x2bc30d)||function(_0x28bf6a){return _0x28bf6a['start']['parent']==_0x28bf6a['end']['nodeBefore']&&_0x28bf6a['start']['isAtEnd'];}(_0x2bc30d);}function Tn(_0x1a8b1a,_0x3722d8){try{const _0x165997=_0x1a8b1a['getRange']();for(const _0x29f15d of _0x3722d8)if(_0x1a8b1a!==_0x29f15d&&_0x165997&&_0x165997['isIntersecting'](_0x29f15d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x40eee2,_0x48edb7){return null==_0x40eee2['end']['nodeBefore']&&_0x40eee2['end']['parent']==_0x40eee2['start']['nodeAfter']?pn(_0x40eee2['start']['nodeAfter'],_0x48edb7):_0x40eee2;}function pn(_0x305430,_0x565bad){const _0x48e716=_0x565bad['schema']['isObject'](_0x305430)||_0x565bad['schema']['isSelectable'](_0x305430);return _0x565bad['createRange'](_0x565bad['createPositionAt'](_0x305430,'before'),_0x48e716?_0x565bad['createPositionAfter'](_0x305430):_0x565bad['createPositionAt'](_0x305430,'end'));}function Ln(_0x158362,_0x4e0161,_0xf1ddee,_0x16b84f){return!!In(_0x158362,_0x4e0161)&&_0xf1ddee['end']['isEqual'](_0x16b84f['start']);}function In(_0x1bb003,_0x19ade8){if(!_0x1bb003['_isDataLoaded']||!_0x19ade8['_isDataLoaded'])return!0x1;const _0x4a7a0e=new Set(Object['keys'](_0x1bb003['attributes'])),_0x5a480a=new Set(Object['keys'](_0x19ade8['attributes']));if(_0x4a7a0e['delete']('groupId'),_0x5a480a['delete']('groupId'),0x0==_0x4a7a0e['size']&&0x0==_0x5a480a['size'])return!0x0;if(_0x4a7a0e['size']!=_0x5a480a['size'])return!0x1;const _0x5be551={..._0x1bb003['attributes']},_0x486280={..._0x19ade8['attributes']};return delete _0x5be551['groupId'],delete _0x486280['groupId'],JSON['stringify'](_0x5be551)==JSON['stringify'](_0x486280);}function An(_0x30a7d0,_0x593bc7){const _0x32429a=bn(_0x30a7d0['attributes']),_0x3a91f8=bn(_0x593bc7);if(!_0x30a7d0['_isDataLoaded'])return!0x1;if(!ut(_0x32429a['@ai'],_0x3a91f8['@ai']))return!0x1;for(const _0x188dc4 of Object['keys'](_0x3a91f8))if(!ut(_0x32429a[_0x188dc4],_0x3a91f8[_0x188dc4]))return!0x1;return!0x0;}function bn(_0x1f8f46){const _0x4664ca=Object['assign']({},_0x1f8f46);return delete _0x4664ca['skipNestingCheck'],delete _0x4664ca['tablePasteChainId'],_0x4664ca;}function Cn(_0x57f51a){return _0x57f51a['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x57c80d();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2f45d0,_0x5b5084,_0xd681b1,_0x213949){super(),this['model']=_0x5b5084,this['view']=_0xd681b1,this['commentThreadController']=_0x213949,this['_editor']=_0x2f45d0,this['_acceptCommand']=_0x2f45d0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f45d0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x105774,_0xa89c7a)=>_0x105774||_0xa89c7a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10e897=>_0x10e897&&this['_editor']['model']['canEditAt'](_0x5b5084['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x206d3d=>_0x206d3d&&this['_editor']['model']['canEditAt'](_0x5b5084['getRanges']())),this['_pendingAction']=null,_0xd681b1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd681b1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd681b1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd681b1,'change:isDirty',()=>{_0xd681b1['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 _0x25b299=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25b299);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x436391{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5df824,_0x5d2eec,_0x536b97,_0x4d1a5e){super(_0x5df824),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f34c3(_0x5df824,wt(_0x5df824,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d2eec['authoredAt']),this['bind']('authoredAt')['to'](_0x5d2eec),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',_0x5d2eec,'authoredAt',this,'descriptionParts',(_0x3a2ad4,_0x183c1e,_0x6c8077)=>{const _0x31ae28=_0x6c8077['map'](_0xa4a27c=>At(_0xa4a27c['content']))['join']('.\x20')+'.',_0x204901=_0x5d2eec['aiSource']&&'author'===_0x4d1a5e['showAISource']?_0x4d1a5e['aiAuthor']['name']:_0x5d2eec['author']['name'],_0x200365=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a2ad4-0x1,_0x204901,_0x183c1e?_0x4d1a5e['formatDateTime'](_0x183c1e):'',new DOMParser()['parseFromString'](_0x232c5d(_0x31ae28),'text/html')['body']['textContent']]);return _0x5d2eec['aiSource']&&'pill'===_0x4d1a5e['showAISource']?_0x200365+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x200365;}),this['focusables']=new _0x32fe5b(),this['focusTracker']=new _0x1bbeaa(),this['keystrokes']=new _0x43236e(),this['focusCycler']=new _0x499549({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18fe93=>_0x18fe93['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d2eec,this['_localUser']=_0x536b97,this['_config']=_0x4d1a5e,_0x4d1a5e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3e9c8b}=this['_config'];this['commentsListView']=new _0x3e9c8b(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',_0x1d05ec=>_0x1d05ec+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5617ee,_0x54dbda)=>_0x5617ee||!!_0x54dbda);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x144c55}=this['_config'],_0x3d7d99=new _0x144c55(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a5d9a=_0x3d7d99['commentInputView'];return _0x3d7d99['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a5d9a,'value',(_0x54a659,_0x426804,_0x38fd90)=>!!_0x38fd90||_0x54a659&&!_0x426804),_0x1a5d9a['on']('submit',(_0x5cc506,_0x1a6faa)=>{this['fire']('addComment',_0x1a6faa),_0x1a5d9a['editor']['setData']('');}),_0x1a5d9a['on']('cancel',()=>this['focus']()),_0x1a5d9a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3d7d99;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x46907d,_0x1815fe,_0x4772e5,_0x1139d3){super(_0x46907d,_0x1815fe,_0x4772e5,_0x1139d3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x31ac36=>_0x31ac36&&_0x31ac36[0x0]?_0x31ac36[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x591fa0,_0x33ea17)=>{let _0x1483d9='';for(const _0x5c72a9 of _0x591fa0)_0x1483d9+='<p>'+At(_0x5c72a9['content'],_0x5c72a9['color'])+'</p>';return _0x33ea17?_0x1483d9:st(_0x1483d9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1139d3['SuggestionView'](_0x46907d,_0x1815fe,{'formatDateTime':_0x1139d3['formatDateTime'],'showAISource':_0x1139d3['showAISource'],'aiAuthor':_0x1139d3['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x469ca2=>!!_0x469ca2||wt(_0x46907d,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x305dbb=>!!_0x305dbb||wt(_0x46907d,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x1a7615=this['bindTemplate'],_0x59956b=[this['suggestionView']];return this['commentsListView']&&_0x59956b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x59956b['push'](this['commentThreadInputView']),_0x59956b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1a7615['if']('isActive','ck-suggestion-wrapper--active'),_0x1a7615['to']('type',_0xf37648=>'ck-suggestion-'+_0xf37648),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':_0x1a7615['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x59956b};}['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));}},Sn=class extends _0x436391{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x41a6ef,_0x32180d,_0x36f89f){super(_0x41a6ef),this['_model']=_0x32180d,this['_config']=_0x36f89f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x32180d),this['acceptButton']=this['_createButton'](wt(_0x41a6ef,'Accept\x20suggestion'),_0x535f1a,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x41a6ef,'Discard\x20suggestion'),_0x26c761,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x31e67c=!!_0x32180d['aiSource']&&'author'===_0x36f89f['showAISource'],_0x18545d=_0x31e67c?this['_createAIUser'](_0x36f89f['aiAuthor']):_0x32180d['author'],_0x123ee6=_0x31e67c&&!_0x36f89f['aiAuthor']['avatar']?_0x217487:void 0x0;this['userView']=new _0x2530c7(_0x41a6ef,_0x18545d,this['getUserViewNotificationText'](),_0x123ee6),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32fe5b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bbeaa(),this['keystrokes']=new _0x43236e(),this['focusCycler']=new _0x499549({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xace067=>_0xace067['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xd2d834=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xd2d834['innerHTML']=_0x232c5d(this['description']),this['on']('change:description',(_0x443241,_0x3a245c,_0x256009)=>{_0xd2d834['innerHTML']=_0x232c5d(_0x256009);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x39880d=this['bindTemplate'],_0x34b226=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x39880d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x39880d['to']('authoredAt',_0x42b298=>this['_config']['formatDateTime'](_0x42b298))}]}]},{'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']&&_0x34b226['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3bfc64=new _0x3d0616(this['locale']);_0x3bfc64['set']({'icon':_0x3e8ac0,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x34b226['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3bfc64]});}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':_0x34b226}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0xbe8527){return new _0x3e3758({'id':'ck-ai-author','name':_0xbe8527['name'],'avatar':_0xbe8527['avatar'],'color':new _0x59c151(0x0)});}_createButton(_0x54de41,_0x2c5182,_0x525b3b,_0xfa1205,_0x3aff9d){const _0x2b39a6=new _0x27d2f1(this['locale']);return _0x2b39a6['set']({'label':_0x54de41,'icon':_0x2c5182,'tooltip':!0x0,'tooltipPosition':_0x3aff9d}),_0x2b39a6['extendTemplate']({'attributes':{'class':_0x525b3b}}),_0x2b39a6['on']('execute',()=>{this['fire'](_0xfa1205,this['_model']['id']);}),_0x2b39a6;}_setupKeyboardNavigation(){const _0x1901da=this['element'];this['keystrokes']['listenTo'](_0x1901da);for(const _0x382ca2 of this['focusables'])this['focusTracker']['add'](_0x382ca2['element']),this['keystrokes']['listenTo'](_0x382ca2['element']);this['keystrokes']['set']('enter',(_0x12ad8d,_0x44df6f)=>{_0x1901da===_0x12ad8d['target']&&(this['focusCycler']['focusFirst'](),_0x44df6f());}),this['keystrokes']['set']('esc',(_0x25d478,_0x490cfb)=>{_0x1901da!==_0x25d478['target']&&(this['focus'](),_0x490cfb());});}},Mn=class extends _0x17c3d7{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x15dcb3,_0x3e91e1,_0x40bec5,_0xdc7e83];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a1938){super(_0x7a1938),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x37afb2=this['editor']['config'];_0x37afb2['define']('trackChanges.SuggestionThreadView',yn),_0x37afb2['define']('trackChanges.SuggestionView',Sn),_0x37afb2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x37afb2['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x551441,_0x4f011c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x420a2e,_0x39eee6]of this['_handleControllerBuffer']){const _0x16e68e=this['_suggestionToController']['has'](_0x420a2e);_0x16e68e||_0x39eee6?_0x16e68e&&_0x39eee6&&this['_destroyController'](_0x420a2e):this['_initializeController'](_0x420a2e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xdc7e83)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x551441,_0x4f011c);}init(){const _0x3e03f6=this['editor'],_0x28f11f=_0x3e03f6['plugins']['get'](ln),_0xaada3f=_0x3e03f6['plugins']['get'](_0x40bec5),_0x2aca69=_0x3e03f6['plugins']['get'](_0xdc7e83),_0x423f34=_0x3e03f6['plugins']['get'](_0x3e91e1);this['_addUIComponentsToFactory'](),_0x2aca69['addSourceCollector'](()=>{const _0xc1e936=[];for(const [_0x4faade,_0x47c228]of Array['from'](this['_suggestionToController'])){const _0x4795cc=_0x4faade['getAllAdjacentSuggestions'](),_0x3dfa4b=[];for(const _0x35f36a of _0x4795cc){if(!_0x35f36a['isInContent'])continue;if(_0x35f36a['isMultiRange']){_0x3dfa4b['push'](..._0x35f36a['getRanges']());continue;}const _0x28616e=_0x35f36a['getFirstRange']();if(_0x3dfa4b['length']>0x0){const _0x177de5=_0x3dfa4b[0x0]['getJoined'](_0x28616e);if(_0x177de5){_0x3dfa4b[0x0]=_0x177de5;continue;}}_0x3dfa4b['push'](_0x28616e);}_0xc1e936['push']([_0x47c228['view'],_0x3dfa4b]);}return _0xc1e936;}),this['listenTo'](_0x28f11f,'suggestionLoaded',(_0xfc755c,_0x16d7d7)=>{this['listenTo'](_0x16d7d7,'change:previous',(_0x405ff9,_0x2c3d6f,_0x45e564,_0x483aa7)=>{_0x16d7d7['isInContent']&&(null==_0x45e564?(this['_updateController'](_0x483aa7['head']),this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x1)):(this['_updateController'](_0x45e564['head']),null==_0x483aa7&&this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x0)));}),null!==_0x16d7d7['previous']?this['_updateController'](_0x16d7d7['head']):this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x1);}),this['listenTo'](_0x28f11f,'suggestionUnloaded',(_0x19d043,_0x51b30a,_0x27c09f)=>{this['stopListening'](_0x51b30a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51b30a),this['_suggestionToController']['has'](_0x51b30a)&&this['_destroyController'](_0x51b30a),_0x27c09f&&this['_updateController'](_0x27c09f['head']);}),this['listenTo'](_0x28f11f,'suggestionChanged',(_0x3805b7,_0x253648)=>{this['_updateController'](_0x253648);}),this['listenTo'](_0xaada3f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x423f34,'addComment',(_0x1ebbf7,{threadId:_0x4cf87c,isFromAdapter:_0x448e80})=>{if(_0x448e80||!_0x28f11f['hasSuggestion'](_0x4cf87c))return;const _0x19d153=_0x28f11f['getSuggestion'](_0x4cf87c);this['_suggestionToController']['get'](_0x19d153)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x383969=[this['editor']];for(const _0x51a696 of _0x383969){let _0x1302b6;for(const _0x517fa1 in _0x51a696){const _0x2de491=_0x517fa1,_0x472cd3=_0x51a696[_0x2de491];if('trackChangesLicenseKeyValid'==_0x472cd3||'trackChangesLicenseKeyInvalid'==_0x472cd3||'trackChangesLicenseKeyExpired'==_0x472cd3||'trackChangesLicenseKeyDomainLimit'==_0x472cd3||'trackChangesLicenseKeyNotAllowed'==_0x472cd3||'trackChangesLicenseKeyEvaluationLimit'==_0x472cd3||'trackChangesLicenseKeyUsageLimit'==_0x472cd3){delete _0x51a696[_0x2de491],_0x1302b6=_0x472cd3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1302b6&&_0x51a696['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1302b6&&_0x51a696['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1302b6&&_0x51a696['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x5603c4){const _0x1ad592=this['_suggestionToController']['get'](_0x5603c4);return _0x1ad592&&this['editor']['plugins']['get'](_0x40bec5)['getByInnerView'](_0x1ad592['view'])||null;}getSuggestionForAnnotation(_0x42c926){const _0x2ce6c5=this['_viewToController']['get'](_0x42c926['innerView']);return _0x2ce6c5?_0x2ce6c5['model']:null;}_refreshActiveMarkers(){const _0x114145=this['editor']['plugins']['get'](_0x40bec5),_0x3e4c7e=this['editor']['plugins']['get'](ln),_0x1e49ee=Array['from'](_0x114145['activeAnnotations'],_0x15c3a0=>_0x15c3a0['innerView'])['filter'](_0x2fa9f5=>this['_viewToController']['has'](_0x2fa9f5)),_0x1c15a4=[];for(const _0x45e848 of _0x1e49ee){const _0x3707ec=this['_viewToController']['get'](_0x45e848)['model']['getAllAdjacentSuggestions']();_0x1c15a4['push'](..._0x3707ec['reduce']((_0x30a898,_0x29d06f)=>[..._0x30a898,..._0x29d06f['getMarkerNames']()],[]));}_0x3e4c7e['activeMarkers']=_0x1c15a4;}_addUIComponentsToFactory(){const _0x473a2e=this['editor'],_0x3795bd=_0x473a2e['locale'],_0x52a26c=wt(_0x3795bd,'Track\x20changes'),_0x16aa59=new _0xdb857c([{'type':'switchbutton','model':new _0x13e951({'withText':!0x0,'isToggleable':!0x0,'label':_0x52a26c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x473a2e['plugins']['has']('TrackChangesPreview')&&_0x16aa59['addMany']([{'type':'separator'},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2af3d3 of _0x16aa59)if(On(_0x2af3d3)){const _0x20a925=_0x473a2e['commands']['get'](_0x2af3d3['model']['commandName']);_0x2af3d3['model']['bind']('isOn','isEnabled')['to'](_0x20a925,'value','isEnabled');}_0x473a2e['ui']['componentFactory']['add']('trackChanges',_0x41c8b2=>this['_createToolbarButton'](_0x41c8b2,_0x16aa59,_0x52a26c)),_0x473a2e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x30fd60=>this['_createMenuBarMenu'](_0x30fd60,_0x16aa59,_0x52a26c));}_createToolbarButton(_0x1bfae4,_0x249d66,_0x266d66){const _0x4229d5=_0x29baa9(_0x1bfae4,_0x168f8e),_0x33649e=this['editor']['commands']['get']('trackChanges');_0x4229d5['buttonView']['set']({'tooltip':_0x266d66,'label':_0x266d66,'icon':_0x17cf87}),_0x4229d5['buttonView']['bind']('isOn')['to'](_0x33649e,'value'),_0x4229d5['buttonView']['on']('execute',()=>{_0x33649e['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a2abb(_0x4229d5,_0x249d66,{'role':'menu'});const _0x306b1e=[];for(const _0x34c809 of _0x249d66)On(_0x34c809)&&_0x306b1e['push'](this['editor']['commands']['get'](_0x34c809['model']['commandName']));const _0x504217=_0x4229d5['buttonView'];return _0x504217['actionView']['unbind']('isEnabled'),_0x504217['arrowView']['unbind']('isEnabled'),_0x504217['actionView']['bind']('isEnabled')['to'](_0x33649e,'isEnabled'),_0x504217['arrowView']['bind']('isEnabled')['toMany'](_0x306b1e,'isEnabled',(..._0x40e5a3)=>_0x40e5a3['some'](_0x579f3e=>_0x579f3e)),_0x4229d5['on']('execute',_0x1fc1cb=>{this['editor']['execute'](_0x1fc1cb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4229d5;}_createMenuBarMenu(_0x3904ed,_0x465d3f,_0x7750aa){const _0x2c5462=new _0x2da019(_0x3904ed),_0x2ec251=this['editor']['commands']['get']('trackChanges');_0x2c5462['buttonView']['set']({'label':_0x7750aa,'icon':_0x17cf87});const _0xd7f3a7=new _0x19fe0d(_0x3904ed);for(const _0x46c342 of _0x465d3f){if('separator'==_0x46c342['type']){_0xd7f3a7['items']['add'](new _0x1e2a38(_0x3904ed));continue;}const _0x34c06a=new _0x219c83(_0x3904ed,_0x2c5462),_0x21d2b0=new _0x5b55d0(_0x3904ed),_0x515292=_0x46c342['model'];_0x21d2b0['bind'](...Object['keys'](_0x515292))['to'](_0x515292),_0x21d2b0['delegate']('execute')['to'](_0x2c5462),_0x21d2b0['on']('execute',()=>{this['editor']['execute'](_0x515292['commandName']),this['editor']['editing']['view']['focus']();}),_0x34c06a['children']['add'](_0x21d2b0),_0xd7f3a7['items']['add'](_0x34c06a);}return _0x2c5462['bind']('isEnabled')['to'](_0x2ec251,'isEnabled'),_0x2c5462['panelView']['children']['add'](_0xd7f3a7),_0x2c5462;}_initializeController(_0x3f7fdb){const _0x59cfbb=this['editor'],_0x4a0f9e=_0x59cfbb['config'],_0x15d880=_0x59cfbb['plugins']['get'](_0x40bec5),_0xdc5e57=_0x59cfbb['plugins']['get'](_0x3e91e1),_0x5007a9=_0x59cfbb['plugins']['get'](_0xdc7e83),_0x1f3f74=_0x59cfbb['plugins']['get'](_0x15dcb3)['me'],_0x435fe8=_0x4a0f9e['get']('trackChanges')['SuggestionThreadView'],_0x287f40=_0x4a0f9e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b3a24,CommentThreadInputView:_0x37c15e}=_0x59cfbb['plugins']['get']('CommentsUI');let _0x298d4b,_0x12d3d6,_0x258ba8;this['_annotationViews']['has'](_0x3f7fdb['id'])?(_0x12d3d6=this['_annotationViews']['get'](_0x3f7fdb['id']),_0x298d4b=_0x12d3d6['mainView']):(_0x298d4b=new _0x435fe8(_0x59cfbb['locale'],_0x3f7fdb,_0x1f3f74,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a0f9e['get']('comments.editorConfig'),'licenseKey':_0x4a0f9e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a0f9e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a0f9e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a0f9e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33ae88(_0x4a0f9e['get']('locale'),_0x59cfbb['locale']),'CommentView':_0x4a0f9e['get']('comments')['CommentView'],'CommentsListView':_0x1b3a24,'CommentThreadInputView':_0x37c15e,'SuggestionView':_0x287f40,'showAISource':_0x4a0f9e['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4a0f9e['get']('trackChanges.aiAuthor'),'name':_0x4a0f9e['get']('trackChanges.aiAuthor')?.['name']||wt(_0x59cfbb['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x298d4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x59cfbb['editing']['view']['focus']();}),_0x298d4b['suggestionView']['discardButton']['on']('execute',()=>{_0x59cfbb['editing']['view']['focus']();}),_0x12d3d6=_0x15d880['createAnnotationView'](this['editor']['locale'],_0x298d4b),_0x12d3d6['bind']('isDirty')['to'](_0x298d4b,'isDirty'),_0x12d3d6['bind']('length')['to'](_0x298d4b),_0x12d3d6['bind']('type')['to'](_0x298d4b,'type',_0x2ffb7d=>'suggestion-'+_0x2ffb7d),_0x298d4b['on']('escape',()=>{_0x258ba8['fire']('escape');}),this['_annotationViews']['set'](_0x3f7fdb['id'],_0x12d3d6));const _0x332d45=_0xdc5e57['createCommentThreadController'](_0x3f7fdb['commentThread'],_0x298d4b),_0x4fcdb9=new Rn(_0x59cfbb,_0x3f7fdb,_0x298d4b,_0x332d45),_0x5e16ea=_0x3f7fdb['getAllAdjacentSuggestions']()['filter'](_0x3ddb79=>_0x3ddb79['isInContent']);_0x298d4b['descriptionParts']=_0x59cfbb['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x5e16ea),this['_suggestionToController']['set'](_0x3f7fdb,_0x4fcdb9),this['_viewToController']['set'](_0x298d4b,_0x4fcdb9);const _0x2a92ed=()=>{const _0x3cb603=[],_0x27a53e=_0x3f7fdb['getAllAdjacentSuggestions']()['filter'](_0x231e7c=>_0x231e7c['isInContent']);for(const _0xd1ee4c of _0x27a53e)_0x3cb603['push'](..._0xd1ee4c['getMarkers']());return _0x21c956(_0x59cfbb['editing'],_0x3cb603);};_0x258ba8=_0x15d880['createAnnotation']({'view':_0x12d3d6,'target':_0x2a92ed,'type':()=>'suggestion-'+_0x4fcdb9['view']['type'],'isVisible':!!_0x2a92ed()}),_0xdc5e57['_bindAnnotationToEditors'](_0x298d4b,_0x258ba8),_0x15d880['add'](_0x258ba8),_0x5007a9['registerAnnotation'](_0x258ba8);}_destroyController(_0xdef6c2){const _0x4818d9=this['editor']['plugins']['get'](_0x3e91e1),_0x297ccd=this['editor']['plugins']['get'](_0x40bec5),_0x13b01f=this['_suggestionToController']['get'](_0xdef6c2),_0x21411=_0x13b01f['view'],_0x33e92b=_0x297ccd['getByInnerView'](_0x21411);_0x4818d9['_unbindEditors'](_0x21411),_0x33e92b&&_0x297ccd['remove'](_0x33e92b),this['_suggestionToController']['delete'](_0xdef6c2),this['_viewToController']['delete'](_0x21411),_0x13b01f['destroy']();}_updateController(_0x348f4c){if(!_0x348f4c['isInContent']||!this['_suggestionToController']['has'](_0x348f4c))return;const _0x16c583=this['editor']['plugins']['get'](ln),_0x4b2c30=this['_suggestionToController']['get'](_0x348f4c),_0x5876e9=_0x348f4c['getAllAdjacentSuggestions']();_0x4b2c30['view']['descriptionParts']=_0x16c583['descriptionFactory']['getDescriptions'](_0x5876e9);}destroy(){for(const _0x218bc7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x218bc7);for(const _0x344d31 of this['_annotationViews']['values']())_0x344d31['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x308abc){return'model'in _0x308abc;}var wn=class extends _0x17c3d7{static get requires(){return[ln,Mn,_0xa8cd16];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3b3877){this['editor']['plugins']['get'](ln)['adapter']=_0x3b3877;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x4f60db){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x4f60db);}getSuggestions({skipNotAttached:_0x495dd0=!0x1,toJSON:_0x3e7c5f=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x495dd0,'toJSON':_0x3e7c5f});}getSuggestion(_0x54996){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x54996);}};const Bn=['Pagination'];var Fn=class extends _0x17c3d7{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x19ce10=this['editor'];if(_0x19ce10['config']['define']('trackChangesData.editorCreator',_0x992ae1=>{const _0x154dce=_0x19ce10['model']['document']['getRootNames']()['reduce']((_0x525bac,_0x7ecedc)=>(_0x525bac[_0x7ecedc]='',_0x525bac),{});return _0x19ce10['constructor']['create'](_0x154dce,_0x992ae1);}),'function'!=typeof _0x19ce10['config']['get']('trackChangesData')['editorCreator'])throw new _0x1539e5('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x3b91c5){return Un(this['editor'],!0x0,_0x3b91c5);}getDataWithDiscardedSuggestions(_0x19f2fe){return Un(this['editor'],!0x1,_0x19f2fe);}},vn=class extends _0x17c3d7{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ca8e8){super(_0x4ca8e8),this['result']='end',_0x4ca8e8['editing']['view']['_overlayModeHint']='auto',_0x4ca8e8['_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 Dn(_0x191e7b){return void 0x0!==_0x191e7b['getRootsAttributes'];}async function Un(_0x4f1455,_0x3e137a,_0x283b61){const _0x30fa2c=tt(_0x4f1455,Bn);if(_0x30fa2c['plugins']['push'](ln,vn),Dn(_0x4f1455)){_0x30fa2c['roots']=Object['create'](null);for(const _0x5c1bc4 of _0x4f1455['model']['document']['getRootNames']())_0x30fa2c['roots'][_0x5c1bc4]={'modelAttributes':_0x4f1455['getRootAttributes'](_0x5c1bc4)};}const _0x12337e=document['createDocumentFragment'](),_0x55c148=_0x4f1455['config']['get']('trackChangesData')['editorCreator'],_0xa6a610=await _0x55c148(_0x30fa2c,()=>function(_0x43dc6d){const _0x4af9d7=document['createElement']('div');return _0x43dc6d['appendChild'](_0x4af9d7),_0x4af9d7;}(_0x12337e));!function(_0x1d4a58,_0x3d30e7){const _0x42bf09=_0x1d4a58['model']['document']['getRootNames']()['reduce']((_0x51a926,_0x49d89c)=>(_0x51a926[_0x49d89c]=_0x1d4a58['data']['get']({'rootName':_0x49d89c}),_0x51a926),{}),_0x3ef437=_0x1d4a58['plugins']['get']('Users')['users']['map'](_0x1e6b7d=>({'id':_0x1e6b7d['id'],'name':_0x1e6b7d['name']})),_0x3de8be=_0x1d4a58['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xef6d33=_0x1d4a58['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e2dca=_0x3d30e7['plugins']['get']('Users'),_0xbc0b99=_0x3d30e7['plugins']['get']('TrackChangesEditing'),_0xc36965=_0x3d30e7['plugins']['get']('CommentsRepository');for(const _0x15f79d of _0xc36965['getCommentThreads']())_0x15f79d['remove']();for(const _0x41b24a of _0x3ef437)_0x2e2dca['getUser'](_0x41b24a['id'])||_0x2e2dca['addUser'](_0x41b24a);_0x2e2dca['me']||_0x2e2dca['useAnonymousUser']();for(const _0x4ca40c of _0xef6d33)_0xc36965['addCommentThread'](_0x4ca40c);for(const _0x4bc6b7 of _0x3de8be)_0xbc0b99['addSuggestionData'](_0x4bc6b7);_0x3d30e7['data']['set'](_0x42bf09);}(_0x4f1455,_0xa6a610),_0xa6a610['execute'](_0x3e137a?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f3d76=Dn(_0xa6a610)?_0xa6a610['getFullData'](_0x283b61):_0xa6a610['data']['get'](_0x283b61);return await _0xa6a610['destroy'](),_0x4f3d76;}var Pn=class extends _0x436391{options;constructor(_0x2f17ab,_0x3c8b9f){super(_0x2f17ab),this['options']=_0x3c8b9f,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(_0x446d51,_0x31ef26){if(!this['element'])return;const _0x25be99=[];for(const [_0x4b5c03,_0x1e00b1]of _0x446d51){const _0x38ff7f=document['createElement']('div');_0x38ff7f['setAttribute']('data-ck-root-name',_0x4b5c03),_0x38ff7f['className']=_0x1e00b1['classes']+'\x20ck-track-changes-preview__root-container',_0x38ff7f['innerHTML']=_0x232c5d(_0x1e00b1['content']),_0x25be99['push'](_0x38ff7f);}_0x31ef26(this['element'],_0x25be99),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x4a2133{constructor(_0x250834){super(_0x250834),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x299de2=this['editor'],_0x5b9790=_0x299de2['locale'],_0x2ee3a3=_0x299de2['plugins']['get']('Dialog');let _0xa5b768;const _0x8c7367=function(_0x30438d){const _0x125076={};if('editables'in _0x30438d['ui']['view']){for(const [_0x5b8859,_0x13a5a4]of Object['entries'](_0x30438d['ui']['view']['editables']))_0x125076[_0x5b8859]=_0x13a5a4['element'];}else _0x125076[_0x30438d['model']['document']['getRootNames']()[0x0]]=_0x30438d['ui']['view']['editable']['element'];return _0x125076;}(_0x299de2),_0x3fea58=function(_0x34d482){let _0x172283=0x0;for(const _0x4434ac of Object['values'](_0x34d482))_0x172283=Math['max'](_0x172283,_0x4434ac['getBoundingClientRect']()['width']);let _0x56a16f=0x0;for(const _0x984917 of Object['values'](_0x34d482))_0x56a16f+=_0x984917['getBoundingClientRect']()['height'];const _0x10109e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x172283,'height':Math['min'](_0x56a16f,_0x10109e)};}(_0x8c7367);_0x2ee3a3['show']({'id':'finalContentPreview','title':wt(_0x5b9790,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x5b9790,{'dialogRects':_0x3fea58}),'onHide':()=>{_0xa5b768['destroy']();},'onShow':()=>{_0x299de2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x40766e=>{const _0x1b436d=this['_standarizeRootsData'](_0x40766e,_0x299de2,_0x8c7367);_0x2ee3a3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1b436d,_0x299de2['config']['get']('trackChanges.preview.renderFunction'));}),_0xa5b768=new _0x1e4244(_0x5b9790,[_0x2ee3a3['view']]),_0xa5b768['attachToDom'](_0x299de2['ui']['view']['body']['mountTarget']),_0xa5b768['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x299de2['once']('destroy',()=>{_0xa5b768['destroy']();});const _0x20535d=_0x2ee3a3['view']['headerView']['class'];_0x2ee3a3['view']['headerView']['class']=_0x20535d?_0x20535d+'\x20ck-reset_all':'ck-reset_all',_0x2ee3a3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ee3a3['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bbf4d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3b4b9a=_0x5bbf4d['previewMode'],_0x187afa={};if('$labels'===_0x3b4b9a){for(const _0x1de7aa of _0x5bbf4d['getMergeFieldsIds']())_0x187afa[_0x1de7aa]=_0x5bbf4d['getLabel'](_0x1de7aa)||_0x1de7aa;}else{const _0x53bb17='$defaultValues'===_0x3b4b9a?_0x5bbf4d['getDefaultValues']():_0x5bbf4d['getDataSetValues'](_0x3b4b9a,!0x0);for(const _0x149df3 of Object['entries'](_0x53bb17)){const [_0x575a5c,_0x175c45]=_0x149df3;_0x187afa[_0x575a5c]=null!==_0x175c45?_0x175c45:_0x5bbf4d['getLabel'](_0x575a5c)||_0x575a5c;}}return{'mergeFieldsData':_0x187afa};}_standarizeRootsData(_0x99c9be,_0x358a60,_0x4ed840){let _0x2439fb;_0x2439fb='string'==typeof _0x99c9be?{[_0x358a60['model']['document']['getRootNames']()[0x0]]:_0x99c9be}:_0x99c9be;const _0x291395=this['_fixMediaEmbeds'](_0x2439fb,_0x358a60);return function(_0xbd4bcb,_0x4dea37){for(const [_0x4aba94,_0x5ee636]of _0xbd4bcb)_0x5ee636['classes']=_0x4dea37[_0x4aba94]['classList']['value']['replace']('ck-focused','');return _0xbd4bcb;}(this['_sortRoots'](_0x358a60)['reduce']((_0xc84b38,_0x1002a2)=>(_0xc84b38['push']([_0x1002a2,{'content':_0x291395[_0x1002a2],'classes':''}]),_0xc84b38),[]),_0x4ed840);}['_fixMediaEmbeds'](_0x5e0148,_0x350733){if(!_0x350733['plugins']['has']('MediaEmbedEditing'))return _0x5e0148;const _0x409e20=_0x350733['plugins']['get']('MediaEmbedEditing');for(const [_0x446023,_0x2d3ab0]of Object['entries'](_0x5e0148)){const _0x2368db=document['createElement']('div');_0x2368db['innerHTML']=_0x232c5d(_0x2d3ab0),_0x2368db['querySelectorAll']('figure.media')['forEach'](_0x4abbd1=>{const _0x266250=_0x4abbd1['querySelector']('oembed');if(_0x266250){const _0x4317a5=_0x266250['getAttribute']('url');if(_0x4317a5){const _0x5060bd=_0x409e20['registry']['getMediaViewElement'](new ct(_0x350733['editing']['view']['document']),_0x4317a5,{'elementName':'','renderForEditingView':!0x0}),_0x5ca56d=document['createElement']('div');_0x5ca56d['classList']['add']('ck-media__wrapper'),_0x5060bd['render'](_0x5ca56d,_0x350733['editing']['view']['domConverter']),_0x266250['replaceWith'](_0x5ca56d);}}}),_0x5e0148[_0x446023]=_0x2368db['innerHTML'];}return _0x5e0148;}_sortRoots(_0x5ab2e2){if(!function(_0x3fb462){return void 0x0!==_0x3fb462['getRootsAttributes'];}(_0x5ab2e2))return _0x5ab2e2['model']['document']['getRootNames']();const _0x1b10ea=[],_0x3c9bc9=new Map();for(const _0x4d4bff of _0x5ab2e2['model']['document']['getRootNames']()){const _0x4987d5=_0x5ab2e2['editing']['view']['getDomRoot'](_0x4d4bff)['getClientRects']()['item'](0x0);_0x1b10ea['push'](_0x4d4bff),_0x3c9bc9['set'](_0x4d4bff,_0x4987d5);}return _0x1b10ea['sort']((_0x7caee9,_0x12784e)=>{const _0x4b3dd4=_0x3c9bc9['get'](_0x7caee9),_0x4385b5=_0x3c9bc9['get'](_0x12784e);return _0x4b3dd4['y']-_0x4385b5['y']||_0x4b3dd4['x']-_0x4385b5['x'];}),_0x1b10ea;}},Gn=class extends _0x17c3d7{static get requires(){return[Fn,_0x39c4a7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d2aa6){super(_0x2d2aa6),_0x2d2aa6['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x2d2aa6['config']['define']('trackChanges.preview.renderFunction',(_0x48ca15,_0x513185)=>{for(const _0x10c55d of _0x513185)_0x48ca15['appendChild'](_0x10c55d);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x310ec9,PendingActions as _0x3fa834,Plugin as _0x139d64}from'@ckeditor/ckeditor5-core';import{Annotations as _0x1be584,Comments as _0x31d5d1,CommentsRepository as _0x72b439,EditorAnnotations as _0x38a179}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x228d64,Collection as _0x360d71,FocusTracker as _0x58d28b,KeystrokeHandler as _0x181292,ObservableMixin as _0x5ca6a1,getEnvKeystrokeText as _0x594d7d,insertToPriorityArray as _0x3fe998,logWarning as _0x4eb8ec,priorities as _0x222bed,trustedHtml as _0x366f89,uid as _0xa3c351}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0xa05be7,IconCancel as _0x213729,IconCheck as _0xd3dbe3,IconSparkle as _0x9221cd,IconTrackChanges as _0x2994b0}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x3999ae,Dialog as _0x189e12,FocusCycler as _0x9acfff,ListSeparatorView as _0x45abed,MenuBarMenuListItemButtonView as _0x22d961,MenuBarMenuListItemView as _0x705306,MenuBarMenuListView as _0x2bc35c,MenuBarMenuView as _0x1c8df3,SplitButtonView as _0x1afc18,UIModel as _0x2c70e6,View as _0x2195ca,ViewCollection as _0x4a7c66,_getLocalizedColorName as _0x56ef0d,addListToDropdown as _0x5bc4f8,createDropdown as _0x1805ae,normalizeColorOptions as _0xf264e0}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x2f2303,CollaborationUserColor as _0x2dd2ad,FOCUS_ANNOTATION_KEYSTROKE as _0x41c81f,LateFocusButtonView as _0x3f2d28,PillView as _0x304d6f,SuggestionsConversion as _0x159bfb,User as _0x1820d7,UserView as _0x37ba6d,Users as _0x1e3a1d,fixElementSuggestionRange as _0x155c70,getAllMarkersDomElementsSorted as _0x4fc5be,getDateTimeFormatter as _0x1db24c,hashObject as _0x5032f4,isInvalidAttributeOperation as _0x14639a,sanitizeEditorConfig as tt,setupThreadKeyboardNavigation as et,splitSuggestionMarkerName as nt,surroundingMarkersDetector as it,trimHtml as st}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as rt,ModelLivePosition as ot,ModelLiveRange as at,ViewDowncastWriter as ct}from'@ckeditor/ckeditor5-engine';import{cloneDeep as lt,isEqual as ut,omit as dt,set as ht,unset as gt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ft,ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';import{Delete as Et,Input as Tt}from'@ckeditor/ckeditor5-typing';import{Enter as _t}from'@ckeditor/ckeditor5-enter';var pt=class extends _0x310ec9{['_enabledCommands'];constructor(_0x3a73a1,_0x5d1d8b){super(_0x3a73a1),this['_enabledCommands']=_0x5d1d8b,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 _0x250cb5 of this['editor']['commands']['commands']())_0x250cb5['affectsData']&&!this['_enabledCommands']['has'](_0x250cb5)&&_0x250cb5['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1dafa0 of this['editor']['commands']['commands']())_0x1dafa0['affectsData']&&!this['_enabledCommands']['has'](_0x1dafa0)&&_0x1dafa0['clearForceDisabled']('TrackChangesCommand');}},Lt=class extends _0x310ec9{_suggestions;constructor(_0x1505a0,_0x347eff){super(_0x1505a0),this['_suggestions']=_0x347eff,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x21a4ce){const _0x3c8a1b=this['_suggestions']['get'](_0x21a4ce);if(!_0x3c8a1b)throw new _0x228d64('track-changes-accept-suggestion-not-found',this);const _0x15e412=_0x3c8a1b['getRanges']();this['editor']['model']['canEditAt'](_0x15e412)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3c8a1b);}},It=class extends _0x310ec9{_suggestions;constructor(_0x2bcfda,_0x2a2d23){super(_0x2bcfda),this['_suggestions']=_0x2a2d23,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x51654a){const _0xf9b762=this['_suggestions']['get'](_0x51654a);if(!_0xf9b762)throw new _0x228d64('track-changes-discard-suggestion-not-found',this);const _0x4dbefb=_0xf9b762['getRanges']();this['editor']['model']['canEditAt'](_0x4dbefb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xf9b762);}};function At(_0x204156,_0x189c7c){let _0x3f3c7b='';return _0x3f3c7b+=_0x204156['split']('*')['map']((_0x5bd2fd,_0x5090a3)=>_0x5090a3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+bt(_0x5bd2fd)+'</span>':bt(_0x5bd2fd))['join'](''),_0x189c7c&&(_0x3f3c7b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x189c7c['value']+'\x22\x20title=\x22'+_0x189c7c['title']+'\x22></span>'),_0x3f3c7b;}function bt(_0x204b0f){const _0x5ed260=document['createElement']('span');return _0x5ed260['innerText']=_0x204b0f,_0x5ed260['innerHTML'];}function Ct(_0x4d18b7){return _0x4d18b7['sort']((_0x3a3de4,_0x40370d)=>'attribute'===_0x3a3de4['type']&&'attribute'!==_0x40370d['type']?-0x1:'attribute'!==_0x3a3de4['type']&&'attribute'===_0x40370d['type']?0x1:'deletion'==_0x3a3de4['type']&&'deletion'!=_0x40370d['type']?-0x1:'deletion'!=_0x3a3de4['type']&&'deletion'==_0x40370d['type']?0x1:0x0);}function kt(_0x489b5f,_0x294b0d){let _0x380076,_0x174b75=0x0;const _0x5633c9=[],_0x25f52a=_0x294b0d['schema'];for(;_0x174b75<_0x489b5f['length'];){const _0x3ab1ce=_0x489b5f[_0x174b75],_0xc1d62a=_0x489b5f[_0x174b75+0x1];_0x380076||(_0x380076=_0x294b0d['createPositionBefore'](_0x3ab1ce)),Rt(_0x294b0d,_0x3ab1ce,_0xc1d62a)||(_0x5633c9['push'](_0x294b0d['createRange'](_0x380076,_0x25f52a['isObject'](_0x3ab1ce)?_0x294b0d['createPositionAfter'](_0x3ab1ce):_0x294b0d['createPositionAt'](_0x3ab1ce,'end'))),_0x380076=null),_0x174b75++;}return _0x5633c9;}function Rt(_0x57fa93,_0x28a8bf,_0x7ba475){if(!_0x7ba475)return!0x1;const _0x447b0b=_0x57fa93['createPositionAfter'](_0x28a8bf),_0xaf6c60=_0x57fa93['createPositionBefore'](_0x7ba475);return _0x447b0b['isTouching'](_0xaf6c60);}function Nt(_0x19435b,_0x5c3cab,_0x287fc2){for(;_0x287fc2['length'];){const _0x2b1f35=_0x287fc2['splice'](0x0,0x64);_0x19435b['change'](()=>{for(const _0x289510 of _0x2b1f35)_0x289510['isInContent']&&_0x5c3cab['execute'](_0x289510['id']);});}}var yt=class extends _0x310ec9{['_command'];_suggestions;constructor(_0x37f48b,_0x5809f3,_0x3fad39){super(_0x37f48b),this['_command']=_0x5809f3,this['_suggestions']=_0x3fad39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7a9cbc=Array['from'](this['_suggestions']['values']())['some'](_0x20be4e=>_0x20be4e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x7a9cbc;}execute(){const _0x111174=Ct(Array['from'](this['_suggestions']['values']()));for(const _0x6dc3ef of _0x111174){const _0x4d14a0=_0x6dc3ef['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d14a0))return;}Nt(this['editor']['model'],this['_command'],_0x111174);}},St=class extends _0x310ec9{['_command'];_suggestions;_selectedSuggestions;constructor(_0x11f673,_0x5bc35c,_0x31c137){super(_0x11f673),this['_command']=_0x5bc35c,this['_suggestions']=_0x31c137,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37c605=this['editor']['model']['document']['selection'],_0x285016=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5b4c5f,_0x3ca220){const _0x4e387e=Array['from'](_0x5b4c5f['getRanges']()),_0x32222e=new Set();for(const _0x36e9ef of _0x3ca220)if(_0x36e9ef['isInContent']){for(const _0x23bdcf of _0x4e387e)for(const _0x5a26b2 of _0x36e9ef['getRanges']())(_0x23bdcf['isIntersecting'](_0x5a26b2)||_0x5b4c5f['isCollapsed']&&!_0x36e9ef['isMultiRange']&&_0x36e9ef['next']&&_0x5a26b2['end']['isTouching'](_0x23bdcf['start']))&&_0x32222e['add'](_0x36e9ef);}return _0x32222e;}(_0x37c605,_0x285016),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x4ab2c3=Ct(Array['from'](this['_selectedSuggestions']));for(const _0x6a1861 of _0x4ab2c3){const _0x3a3c7a=_0x6a1861['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3a3c7a))return;}Nt(this['editor']['model'],this['_command'],_0x4ab2c3);}};const Mt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5ca6a1();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x42cb93,_0x25b05d){super(),this['id']=_0x25b05d['id'],this['type']=_0x25b05d['type'],this['subType']=_0x25b05d['subType']||null,this['author']=_0x25b05d['author'],this['creator']=_0x25b05d['creator']||_0x25b05d['author'],this['data']=null,this['_originalSuggestionId']=_0x25b05d['originalSuggestionId']||null,this['_model']=_0x42cb93,this['_onAccept']=_0x25b05d['onAccept'],this['_onDiscard']=_0x25b05d['onDiscard'],this['_onAttributesChange']=_0x25b05d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x25b05d['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 _0x5f0c5d=this;for(;_0x5f0c5d['previous'];)_0x5f0c5d=_0x5f0c5d['previous'];return _0x5f0c5d;}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'](_0x336d5b){this['_markerNames']['add'](_0x336d5b);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x14d193=>this['_model']['markers']['get'](_0x14d193))['filter'](_0x44cbbc=>_0x44cbbc);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x42088d=>{for(const _0x37e0ec of this['getMarkers']())_0x42088d['removeMarker'](_0x37e0ec);}),this['_markerNames']['clear']();}['removeMarker'](_0x419acb){this['_model']['change'](_0x57b5a2=>{_0x57b5a2['removeMarker'](_0x419acb);}),this['_markerNames']['delete'](_0x419acb);}['addRange'](_0x450631){const _0x72129e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x72129e),this['_model']['change'](_0x3c13be=>{_0x3c13be['addMarker'](_0x72129e,{'range':_0x450631,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x159e76){for(const _0x598f00 of this['getRanges']())if(_0x598f00['isIntersecting'](_0x159e76))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x261268=>_0x261268['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x2a30f5,_0x5905c5)=>[..._0x2a30f5,..._0x5905c5['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x526980=this['getRanges']();if(0x1!=_0x526980['length'])return null;const _0x273b27=_0x526980[0x0],_0x408587=_0x273b27['start']['nodeAfter'],_0x1577ad=_0x273b27['end']['nodeBefore'];return _0x408587 instanceof rt?_0x408587!=_0x1577ad?null:_0x408587: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 _0x173dd6=[];let _0x129acc=this['head'];for(;_0x129acc;)_0x173dd6['push'](_0x129acc),_0x129acc=_0x129acc['next'];return _0x173dd6;}setAttribute(_0x240eaf,_0x582d5f){const _0x430bc8=lt(this['attributes']);ht(_0x430bc8,_0x240eaf,_0x582d5f),ut(_0x430bc8,this['attributes'])||(this['attributes']=_0x430bc8,this['_onAttributesChange'](_0x430bc8));}removeAttribute(_0x30a4cf){const _0x3231cf=lt(this['attributes']);gt(_0x3231cf,_0x30a4cf),ut(_0x3231cf,this['attributes'])||(this['attributes']=_0x3231cf,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 _0xa3c351()['substr'](0x1,0x5);}};function wt(_0x10caa7,_0x88a615,_0x1487a8){const _0x1d0ff2=_0x10caa7['t'],t=_0x10caa7['t'];switch(_0x88a615){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',_0x1487a8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1487a8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1487a8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1487a8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1487a8);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',_0x1487a8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1487a8);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',_0x1487a8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1487a8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1487a8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1487a8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1487a8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1487a8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1487a8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1487a8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1487a8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1487a8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1487a8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1487a8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1487a8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1487a8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1487a8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1487a8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1487a8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1487a8);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'},_0x1487a8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1487a8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1487a8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1487a8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1487a8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1487a8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1487a8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1487a8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1487a8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1487a8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1487a8);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1487a8);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1487a8);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1487a8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1487a8);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'},_0x1487a8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1487a8);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 _0x1d0ff2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1487a8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1d0ff2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1487a8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);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'},_0x1487a8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0x88a615;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x4c5193,_0x8ad256){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4c5193,this['_locale']=_0x8ad256;}getDescriptions(_0x4519d8){const _0x381988=[],_0x189729=new Set(),_0x5d9380=new Set();for(let _0x6511a9=0x0;_0x6511a9<_0x4519d8['length'];_0x6511a9++){const _0x52bc26=_0x4519d8[_0x6511a9];if(!_0x52bc26['isInContent'])continue;const _0x4bad29=this['_handleCustomCallbackDescription'](_0x52bc26);if(_0x4bad29){if(null!=_0x52bc26['subType']){if(_0x189729['has'](_0x52bc26['subType']))continue;_0x189729['add'](_0x52bc26['subType']);}_0x381988['push'](_0x4bad29);}else{if('attribute'==_0x52bc26['type']){const _0x1e06b7=_0x52bc26['data']['key'];if(_0x5d9380['has'](_0x1e06b7))continue;_0x5d9380['add'](_0x52bc26['data']['key']),'$elementName'==_0x1e06b7?this['_handleRenameSuggestionDescription'](_0x381988,_0x52bc26):this['_handleAttributeSuggestionDescription'](_0x381988,_0x52bc26);continue;}'insertion'!=_0x52bc26['type']&&'deletion'!=_0x52bc26['type']||this['_handleInsertRemoveSuggestionDescription'](_0x381988,_0x52bc26,_0x4519d8[_0x6511a9+0x1]);}}return this['_resolveDescriptionItems'](_0x381988);}registerDescriptionCallback(_0x2c7173){this['_customCallbacks']['push'](_0x2c7173);}registerElementLabel(_0x3735d0,_0x10a2c6,_0x4af14d=_0x222bed['normal']){'function'==typeof _0x3735d0?_0x3fe998(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3735d0,'label':_0x10a2c6,'priority':_0x4af14d}):this['_itemLabels']['set'](_0x3735d0,_0x10a2c6);}registerAttributeLabel(_0x2b964d,_0x42138c){this['_attributeLabels']['set'](_0x2b964d,_0x42138c);}getItemLabel(_0x588d2,_0x3f3c1e=0x1){let _0x377db4;for(const _0x2d6f6b of this['_itemLabelsCallbacks'])if(_0x2d6f6b['matchingCallback'](_0x588d2)){_0x377db4=_0x2d6f6b['label'];break;}return _0x377db4||(_0x377db4=this['_itemLabels']['get'](_0x588d2['name'])),_0x377db4?_0x377db4(_0x3f3c1e):0x1!==_0x3f3c1e?_0x3f3c1e+'\x20'+_0x588d2['name']+'s':''+_0x588d2['name'];}_addDescriptionItems(_0x427f01,_0x3728fa){const _0x4ea769=_0x3728fa['getFirstRange']()['getWalker'](),_0x3b4a1c='insertion'==_0x3728fa['type']?'add':'remove';for(const _0x169b48 of _0x4ea769){const _0x5e9ecb=_0x169b48['item'],_0x54c3d1=_0x427f01[_0x427f01['length']-0x1];if(_0x5e9ecb['is']('$textProxy'))_0x54c3d1&&_0x54c3d1['type']['indexOf']('Container')>-0x1&&_0x427f01['pop'](),_0x54c3d1&&'text'==_0x54c3d1['type']?_0x54c3d1[_0x3b4a1c]+=_0x5e9ecb['data']:_0x427f01['push']({'type':'text','add':'add'==_0x3b4a1c?_0x5e9ecb['data']:'','remove':'remove'==_0x3b4a1c?_0x5e9ecb['data']:''});else{if(this['_schema']['isObject'](_0x5e9ecb)){const _0x272ffd=_0x5e9ecb;if(_0x54c3d1&&_0x54c3d1['type']['indexOf']('Container')>-0x1&&_0x427f01['pop'](),'elementEnd'==_0x169b48['type'])continue;_0x54c3d1&&_0x54c3d1['type']==_0x3b4a1c+'Object'&&_0x54c3d1['element']['name']==_0x272ffd['name']?_0x54c3d1['quantity']++:_0x427f01['push']({'type':_0x3b4a1c+'Object','element':_0x272ffd,'quantity':0x1}),_0x4ea769['skip'](_0x3cc1d6=>!('elementEnd'==_0x3cc1d6['type']&&_0x3cc1d6['item']==_0x5e9ecb));}else{if(this['_schema']['checkChild'](_0x5e9ecb,'$text')||_0x5e9ecb['is']('element','softBreak')){const _0x5687f9=_0x5e9ecb;if('add'==_0x3b4a1c&&'elementStart'==_0x169b48['type']||'remove'==_0x3b4a1c&&'elementEnd'==_0x169b48['type'])continue;if(_0x54c3d1&&-0x1==_0x54c3d1['type']['indexOf']('Container')){'text'==_0x54c3d1['type']&&(_0x54c3d1[_0x3b4a1c]+='\x0a');continue;}let _0x11015d;if(_0x11015d='add'==_0x3b4a1c?_0x5687f9['nextSibling']&&!this['_schema']['isObject'](_0x5687f9['nextSibling'])?_0x5687f9['nextSibling']:null:_0x5687f9['previousSibling']&&!this['_schema']['isObject'](_0x5687f9['previousSibling'])?_0x5687f9['previousSibling']:null,_0x5687f9['isEmpty']||_0x11015d&&_0x11015d['isEmpty']){const _0x315f20=_0x11015d&&_0x11015d['isEmpty']?_0x11015d:_0x5687f9;_0x54c3d1&&_0x54c3d1['type']==_0x3b4a1c+'EmptyContainer'&&_0x54c3d1['element']['name']==_0x315f20['name']?_0x54c3d1['quantity']++:_0x427f01['push']({'type':_0x3b4a1c+'EmptyContainer','element':_0x315f20,'quantity':0x1});}else _0x427f01['push']({'type':_0x3b4a1c+'Container','element':_0x5687f9});}}}}}_resolveDescriptionItems(_0x13cb47){const _0x525a59=this['_locale'],_0x23d769=[],_0x5e2bc8=[],_0x44059b=[];for(const _0x45b386 of _0x13cb47)switch(_0x45b386['type']){case'text':if(_0x45b386['add']=_0x45b386['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x45b386['remove']=_0x45b386['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x45b386['add']&&''!=_0x45b386['remove']){_0x23d769['push']({'type':'replace','content':wt(_0x525a59,'REPLACE_TEXT',['\x22'+_0x45b386['remove']+'\x22','\x22'+_0x45b386['add']+'\x22'])});continue;}if(null!=_0x45b386['add']['match'](/^ +$/)){_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0',wt(_0x525a59,'ELEMENT_SPACE',_0x45b386['add']['length']))});continue;}if(null!=_0x45b386['remove']['match'](/^ +$/)){_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0',wt(_0x525a59,'ELEMENT_SPACE',_0x45b386['remove']['length']))});continue;}if(''!=_0x45b386['add']){_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0','\x22'+_0x45b386['add']+'\x22')});continue;}_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0','\x22'+_0x45b386['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Insert:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Remove:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'addContainer':_0x23d769['push']({'type':'insertion','content':wt(_0x525a59,'*Split:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'removeContainer':_0x23d769['push']({'type':'deletion','content':wt(_0x525a59,'*Merge:*\x20%0',this['getItemLabel'](_0x45b386['element'],_0x45b386['quantity']))});continue;case'addFormat':_0x5e2bc8['push'](_0x45b386['key']);continue;case'removeFormat':_0x44059b['push'](_0x45b386['key']);continue;default:_0x23d769['push'](_0x45b386);}if(_0x5e2bc8['length']){const _0x1cf937=_0x5e2bc8['map'](_0x4918f2=>this['_attributeLabels']['has'](_0x4918f2)?this['_attributeLabels']['get'](_0x4918f2):_0x4918f2)['join'](',\x20');_0x23d769['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x1cf937)});}if(_0x44059b['length']){const _0x4ed999=_0x44059b['map'](_0x4f3308=>this['_attributeLabels']['has'](_0x4f3308)?this['_attributeLabels']['get'](_0x4f3308):_0x4f3308)['join'](',\x20');_0x23d769['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4ed999)});}return _0x23d769;}_handleCustomCallbackDescription(_0x13ceab){for(const _0x218804 of this['_customCallbacks']){const _0x32b3f4=_0x218804(_0x13ceab);if(_0x32b3f4&&'type'in _0x32b3f4)return _0x32b3f4;}}_handleAttributeSuggestionDescription(_0x5bfe93,_0x3aae5c){const _0x512911=_0x3aae5c['data'],_0x59466d=void 0x0===_0x512911['newValue']?'removeFormat':'addFormat';_0x5bfe93['push']({'type':_0x59466d,'key':_0x512911['key']});}_handleRenameSuggestionDescription(_0x3d9952,_0x25a1dd){_0x3d9952['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x25a1dd['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x3b3850,_0x214e94,_0x58701e){if(this['_addDescriptionItems'](_0x3b3850,_0x214e94),_0x58701e&&_0x58701e['getFirstRange']()&&!_0x214e94['getFirstRange']()['end']['isEqual'](_0x58701e['getFirstRange']()['start'])){const _0x232b88=_0x3b3850[_0x3b3850['length']-0x1],_0x8101c='insertion'==_0x214e94['type']?'add':'remove';_0x232b88&&'text'==_0x232b88['type']&&(_0x232b88[_0x8101c]+='\x0a');}}},Ft=class extends _0x139d64{afterInit(){const _0x23caa6=this['editor'],_0x28c99f=_0x23caa6['plugins']['get']('TrackChangesEditing');_0x23caa6['commands']['get']('showAIAssistant')&&_0x28c99f['enableCommand']('showAIAssistant');}},vt=class extends _0x139d64{afterInit(){const _0x5170d9=this['editor'],_0x6b7a13=_0x5170d9['plugins']['get']('TrackChangesEditing');_0x5170d9['commands']['get']('toggleAi')&&_0x6b7a13['enableCommand']('toggleAi');}},Dt=class extends _0x139d64{afterInit(){const _0x32f027=this['editor'],_0x19aff4=_0x32f027['plugins']['get']('TrackChangesEditing');_0x32f027['commands']['get']('aiQuickAction')&&_0x19aff4['enableCommand']('aiQuickAction');}},Ut=class extends _0x139d64{afterInit(){const _0x5a2db8=this['editor'],_0x4aedbc=_0x5a2db8['locale'];if(!_0x5a2db8['plugins']['has']('AlignmentEditing'))return;const _0x3930ad=_0x5a2db8['plugins']['get']('TrackChangesEditing');_0x3930ad['enableDefaultAttributesIntegration']('alignment'),_0x3930ad['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x4aedbc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x215e65=this['editor'],_0x27550f=_0x215e65['locale'];_0x215e65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3faf12=>{if('formatBlock'!=_0x3faf12['type'])return;const {data:_0x27aa60}=_0x3faf12;if(_0x27aa60&&'alignment'==_0x27aa60['commandName']){const _0x3d3426=_0x27aa60['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x27550f,'*Format:*\x20%0',function(_0x4641b6){switch(_0x4641b6){case'left':return wt(_0x27550f,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x27550f,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x27550f,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x27550f,'FORMAT_JUSTIFY_TEXT');}}(_0x3d3426))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x139d64{afterInit(){const _0x5abc23=this['editor'],_0x2e74f8=_0x5abc23['plugins']['get']('TrackChangesEditing'),_0x2f2061=_0x5abc23['locale'];for(const _0x472901 of Pt){if(!_0x5abc23['plugins']['has'](_0x472901))continue;const _0x2bba08=_0x472901['slice'](0x0,-0x7)['toLowerCase'](),_0x37ec48='FORMAT_'+_0x2bba08['toUpperCase']();_0x2e74f8['enableDefaultAttributesIntegration'](_0x2bba08),_0x2e74f8['descriptionFactory']['registerAttributeLabel'](_0x2bba08,wt(_0x2f2061,_0x37ec48));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43de90=this['editor'],_0x144a23=_0x43de90['locale'],_0x39a840=_0x43de90['plugins']['get']('TrackChangesEditing');function _0x502820(_0xa1d8a3,_0x1e265b){_0x39a840['descriptionFactory']['registerDescriptionCallback'](_0x4edc9a=>{if('formatInline'!=_0x4edc9a['type'])return;const {data:_0x24be12}=_0x4edc9a;return _0x24be12&&_0x24be12['commandName']===_0xa1d8a3?_0x24be12['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x144a23,'*Format:*\x20%0',_0x1e265b)}:{'type':'format','content':wt(_0x144a23,'*Remove\x20format:*\x20%0',_0x1e265b)}:void 0x0;});}_0x502820('bold',wt(_0x144a23,'FORMAT_BOLD')),_0x502820('italic',wt(_0x144a23,'FORMAT_ITALIC')),_0x502820('underline',wt(_0x144a23,'FORMAT_UNDERLINE')),_0x502820('code',wt(_0x144a23,'FORMAT_CODE')),_0x502820('strikethrough',wt(_0x144a23,'FORMAT_STRIKETHROUGH')),_0x502820('subscript',wt(_0x144a23,'FORMAT_SUBSCRIPT')),_0x502820('superscript',wt(_0x144a23,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x139d64{afterInit(){const _0xb9b129=this['editor'],_0x5b0582=_0xb9b129['locale'];if(!_0xb9b129['plugins']['has']('BlockQuoteEditing'))return;const _0x19be12=_0xb9b129['plugins']['get']('TrackChangesEditing'),_0x53a1bb=this['editor']['commands']['get']('blockQuote');_0x19be12['enableCommand']('blockQuote',(_0xd90e54,_0x2ec141={})=>{const _0xc390a4=this['editor']['model']['document']['selection'],_0x36e3c0=_0x2ec141&&void 0x0!==_0x2ec141['forceValue']?_0x2ec141['forceValue']:!_0x53a1bb['value'];let _0x200bf5=[];if(_0x36e3c0){const _0x55f013=Array['from'](_0xc390a4['getSelectedBlocks']())['filter'](_0x54607d=>Ht(_0x54607d)||function(_0x3fa9db,_0x4a2cf0){const _0x47fc1e=_0x4a2cf0['createContext'](_0x3fa9db['parent']);return!!_0x4a2cf0['checkChild'](_0x47fc1e,'blockQuote')&&!!_0x4a2cf0['checkChild'](_0x47fc1e['push']('blockQuote'),_0x3fa9db);}(_0x54607d,this['editor']['model']['schema']));_0x200bf5=kt(_0x55f013,_0xb9b129['model']);}else{const _0x53055e=Array['from'](_0xc390a4['getSelectedBlocks']())['filter'](_0x5569b3=>Ht(_0x5569b3));_0x200bf5=kt(_0x53055e,_0xb9b129['model']);}_0xb9b129['model']['change'](()=>{for(const _0x3aae18 of _0x200bf5)_0x19be12['markBlockFormat'](_0x3aae18,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x36e3c0}]});});}),_0x19be12['descriptionFactory']['registerDescriptionCallback'](_0x503533=>{const {data:_0x570101}=_0x503533;if(_0x570101&&'blockQuote'==_0x570101['commandName']){const _0x27321f=wt(_0x5b0582,'ELEMENT_BLOCK_QUOTE');return _0x570101['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x5b0582,'*Set\x20format:*\x20%0',_0x27321f)}:{'type':'format','content':wt(_0x5b0582,'*Remove\x20format:*\x20%0',_0x27321f)};}});}};function Ht(_0x517f77){return'blockQuote'==_0x517f77['parent']['name'];}var $t=class extends _0x139d64{afterInit(){const _0x4161e1=this['editor'],_0x3968b7=_0x4161e1['locale'],_0x22522c=_0x4161e1['plugins']['get']('TrackChangesEditing');_0x4161e1['plugins']['has']('BookmarkEditing')&&(_0x22522c['enableCommand']('insertBookmark'),_0x22522c['enableDefaultAttributesIntegration']('updateBookmark'),_0x22522c['descriptionFactory']['registerDescriptionCallback'](_0x2b707c=>{if('insertion'!=_0x2b707c['type']&&'deletion'!=_0x2b707c['type']&&'attribute'!=_0x2b707c['type'])return;const _0x1a3811=_0x2b707c['getContainedElement']();if(null==_0x1a3811)return;if(!_0x1a3811['is']('element','bookmark'))return;const _0x27252e=_0x1a3811['getAttribute']('bookmarkId');if('insertion'==_0x2b707c['type'])return{'type':'insertion','content':wt(_0x3968b7,'*Insert:*\x20%0','\x22'+_0x27252e+'\x22\x20'+wt(_0x3968b7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b707c['type'])return{'type':'deletion','content':wt(_0x3968b7,'*Remove:*\x20%0','\x22'+_0x27252e+'\x22\x20'+wt(_0x3968b7,'ELEMENT_BOOKMARK'))};const {data:_0x9e13a0}=_0x2b707c;return _0x9e13a0&&'bookmarkId'==_0x9e13a0['key']?{'type':'format','content':wt(_0x3968b7,'*Set\x20bookmark:*\x20%0','\x22'+_0x9e13a0['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x139d64{afterInit(){const _0x49033c=this['editor'];_0x49033c['plugins']['has']('CaseChange')&&(_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x49033c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x139d64{afterInit(){const _0x997384=this['editor'];_0x997384['commands']['get']('ckbox')&&_0x997384['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x139d64{static get requires(){return[ft,mt];}constructor(_0x5afe9a){super(_0x5afe9a),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x7e5ffa=this['editor'],_0x49d9a6=_0x7e5ffa['plugins']['get']('ClipboardMarkersUtils'),_0x37feb7=_0x7e5ffa['plugins']['get'](mt);_0x49d9a6['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x37feb7['on']('outputTransformation',(_0x238cd4,_0x22e0bb)=>{const _0x3b3443=this['_getSuggestionEntries'](_0x22e0bb);for(const [_0x27e115,_0xf5c095]of _0x22e0bb['content']['markers']){const _0x5e9c57=at['_fromRangeInDocumentFragment'](_0xf5c095,_0x7e5ffa['model']);function _0x2b19ae(){_0x5e9c57['detach'](),_0x22e0bb['content']['markers']['delete'](_0x27e115);}_0x5e9c57['on']('change:drop',_0x2b19ae),(_0x27e115['startsWith']('suggestion:')||_0x27e115['startsWith']('comment:'))&&_0x5e9c57['on']('change:range',()=>{_0x5e9c57['isCollapsed']&&_0x2b19ae();}),_0x22e0bb['content']['markers']['set'](_0x27e115,_0x5e9c57);}const _0x5d4989=_0x3b3443['filter'](_0x3ec33f=>'deletion'===_0x3ec33f['meta']['type'])['map'](_0x584c5b=>_0x584c5b['modelRange']);if(this['_shouldSkipDeletions'](_0x5d4989,_0x22e0bb['content']))return[..._0x3b3443]['forEach'](_0x1f2f33=>{_0x22e0bb['content']['markers']['get'](_0x1f2f33['markerName'])['detach'](),_0x22e0bb['content']['markers']['delete'](_0x1f2f33['markerName']);}),void this['_restoreRegularRanges'](_0x22e0bb['content']['markers']);[..._0x3b3443]['forEach'](_0x4bd924=>{const _0x30361e=_0x7e5ffa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4bd924['meta']['type'],_0x4bd924['meta']['subType'],'accept'),{markerName:_0x4243f5,meta:_0x2ce184}=_0x4bd924;if(_0x22e0bb['content']['markers']['has'](_0x4243f5)){switch(_0x2ce184['type']){case'deletion':if('tableRow'===_0x2ce184['subType']||'tableColumn'===_0x2ce184['subType']){if(!_0x7e5ffa['plugins']['has']('TableUtils'))break;const _0x3ea98a=_0x7e5ffa['plugins']['get']('TableUtils'),_0x14cb1c=_0x3ea98a['getSelectionAffectedTableCells'](_0x7e5ffa['model']['createSelection'](_0x22e0bb['content']['markers']['get'](_0x4243f5))),_0x1cba60=_0x14cb1c[0x0]['findAncestor']('table');if('tableRow'===_0x2ce184['subType']){const {first:_0x2aa2c8,last:_0x5b448c}=_0x3ea98a['getRowIndexes'](_0x14cb1c);_0x3ea98a['removeRows'](_0x1cba60,{'at':_0x2aa2c8,'rows':_0x5b448c-_0x2aa2c8+0x1});}else{const {first:_0x26430c,last:_0x2a589e}=_0x3ea98a['getColumnIndexes'](_0x14cb1c);_0x3ea98a['removeColumns'](_0x1cba60,{'at':_0x26430c,'columns':_0x2a589e-_0x26430c+0x1});}break;}_0x30361e([_0x22e0bb['content']['markers']['get'](_0x4243f5)]);}_0x22e0bb['content']['markers']['has'](_0x4243f5)&&(_0x22e0bb['content']['markers']['get'](_0x4243f5)['detach'](),_0x22e0bb['content']['markers']['delete'](_0x4243f5));}}),this['_restoreRegularRanges'](_0x22e0bb['content']['markers']);});}_getSuggestionEntries(_0x4d1939){const _0x23aef4=_0x4dc040=>'dragstart'===_0x4d1939['method']?_0x4dc040['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x4dc040;return Array['from'](_0x4d1939['content']['markers'])['map'](([_0x254666,_0x508b89])=>({'markerName':_0x254666,'modelRange':_0x508b89,'meta':nt(_0x23aef4(_0x254666))}))['filter'](({meta:_0x4cc357})=>'suggestion'===_0x4cc357['group']);}_shouldSkipDeletions(_0x5e7a0e,_0x4c5b2e){if(!_0x5e7a0e['length'])return!0x1;let _0x142349=[this['editor']['model']['createRangeIn'](_0x4c5b2e)];for(const _0x483f67 of _0x5e7a0e)_0x142349=_0x142349['flatMap'](_0x4f4a02=>_0x4f4a02['getDifference'](_0x483f67));return!_0x142349['some'](_0x5dfa03=>this['editor']['model']['hasContent'](_0x5dfa03,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x117231){[..._0x117231['keys']()]['forEach'](_0x3231dd=>{const _0x3fe7e1=_0x117231['get'](_0x3231dd);_0x3fe7e1['detach'](),_0x117231['set'](_0x3231dd,_0x3fe7e1['toRange']());});}},jt=class extends _0x139d64{afterInit(){const _0x536700=this['editor'];if(!_0x536700['plugins']['has']('CodeBlock'))return;const _0x4b2499=_0x536700['plugins']['get']('TrackChangesEditing'),_0x4d8c88=_0x536700['locale'],_0x328960=_0x536700['config']['get']('codeBlock')['languages'],_0x5f0a55=_0x536700['commands']['get']('codeBlock');_0x4b2499['enableCommand']('indentCodeBlock'),_0x4b2499['enableCommand']('outdentCodeBlock'),_0x4b2499['enableCommand']('codeBlock',(_0x44c445,_0x1725df={})=>{const _0x771f5c=_0x536700['model'],_0x1a0d9a=_0x536700['model']['document']['selection'],_0x5b0bea=_0x1725df&&void 0x0!==_0x1725df['forceValue']?_0x1725df['forceValue']:!_0x5f0a55['value'];let _0x597663;_0x1725df['language']||(_0x1725df['language']=_0x328960[0x0]['language']),_0x597663=_0x5b0bea?Array['from'](_0x1a0d9a['getSelectedBlocks']())['filter'](_0x5dc69a=>{return Kt(_0x5dc69a)||(_0x21f695=_0x5dc69a,_0x4e6b94=_0x771f5c['schema'],!_0x21f695['is']('rootElement')&&!_0x4e6b94['isLimit'](_0x21f695)&&_0x4e6b94['checkChild'](_0x21f695['parent'],'codeBlock'));var _0x21f695,_0x4e6b94;}):Array['from'](_0x1a0d9a['getSelectedBlocks']())['filter'](_0x30016e=>Kt(_0x30016e));const _0xf5d0b7=kt(_0x597663,_0x771f5c);_0x771f5c['change'](()=>{for(const _0x1f63a6 of _0xf5d0b7)_0x4b2499['markBlockFormat'](_0x1f63a6,{'commandName':'codeBlock','commandParams':[{..._0x1725df,'forceValue':_0x5b0bea}],'formatGroupId':'blockName'});});}),(_0x4b2499['descriptionFactory']['registerElementLabel']('codeBlock',_0x3884b8=>wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',_0x3884b8)),_0x4b2499['descriptionFactory']['registerDescriptionCallback'](_0x337ca3=>{if('formatBlock'!=_0x337ca3['type'])return;const _0x222817=_0x4d8c88['t'],{data:_0x1d0b5e}=_0x337ca3;if(!_0x1d0b5e||'codeBlock'!=_0x1d0b5e['commandName'])return;const _0x54458e=_0x1d0b5e['commandParams'][0x0]['language'],_0x44a492=_0x222817(_0x328960['find'](_0x353fe7=>_0x353fe7['language']===_0x54458e)['label'])['toLowerCase']();return _0x1d0b5e['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4d8c88,'*Set\x20format:*\x20%0',wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x44a492+')')}:{'type':'format','content':wt(_0x4d8c88,'*Remove\x20format:*\x20%0',wt(_0x4d8c88,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x119ab2){return'codeBlock'==_0x119ab2['name'];}var Xt=class extends _0x139d64{afterInit(){const _0x529edd=this['editor'];_0x529edd['plugins']['has']('CommentsEditing')&&_0x529edd['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x139d64{static get requires(){return[Et];}init(){const _0x2635ae=this['editor'],_0x18e376=_0x2635ae['plugins']['get']('TrackChangesEditing');_0x18e376['enableCommand']('delete');const _0x4e22df=_0x2635ae['commands']['get']('deleteForward');_0x18e376['enableCommand']('deleteForward',(_0xaf2876,_0x44fb22={})=>{const _0x39e25a=_0x2635ae['model']['createSelection'](_0x2635ae['model']['document']['selection']);_0x39e25a['isCollapsed']&&_0x2635ae['model']['modifySelection'](_0x39e25a,{'direction':'forward','unit':_0x44fb22['unit']});const _0x5b83d8=_0x39e25a['getFirstRange'](),_0x48971a=at['fromRange'](_0x5b83d8);let _0x4da61d;_0xaf2876(_0x44fb22),_0x4da61d='$graveyard'==_0x48971a['root']['rootName']?_0x2635ae['model']['createRange'](_0x5b83d8['start']):_0x2635ae['model']['createRange'](_0x48971a['start'],_0x48971a['end']),_0x48971a['detach'](),_0x2635ae['model']['enqueueChange'](_0x4e22df['buffer']['batch'],_0x54118b=>{_0x4e22df['buffer']['lock'](),_0x54118b['setSelection'](_0x54118b['createRange'](_0x4da61d['end'])),_0x4e22df['buffer']['unlock']();});});}},Yt=class extends _0x139d64{afterInit(){const _0x5af2d9=this['editor'];if(!_0x5af2d9['plugins']['has']('ListEditing'))return;const _0x14649d=_0x5af2d9['locale'],_0x369f70=_0x5af2d9['plugins']['get']('TrackChangesEditing'),_0x49256d=_0x5af2d9['plugins']['has']('TodoListEditing'),_0x3d926d=!!_0x5af2d9['config']['get']('list.multiBlock');function _0x1da7ea(_0x35d140){return{'type':'format','content':''+wt(_0x14649d,'*Set\x20format:*\x20%0',_0x35d140)};}function _0xfece8f(_0x190648){return{'type':'format','content':''+wt(_0x14649d,'*Remove\x20format:*\x20%0',_0x190648)};}_0x369f70['enableDefaultAttributesIntegration']('numberedList'),_0x369f70['enableDefaultAttributesIntegration']('bulletedList'),_0x369f70['enableDefaultAttributesIntegration']('customNumberedList'),_0x369f70['enableDefaultAttributesIntegration']('customBulletedList'),_0x369f70['enableDefaultAttributesIntegration']('indentList'),_0x369f70['enableDefaultAttributesIntegration']('outdentList'),_0x369f70['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x369f70['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d926d&&(_0x369f70['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x369f70['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x49256d&&(_0x369f70['enableDefaultAttributesIntegration']('todoList'),_0x369f70['enableDefaultAttributesIntegration']('checkTodoList'),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x1995d5=>{const {data:_0xfc925f}=_0x1995d5;if(_0xfc925f&&'todoListChecked'==_0xfc925f['key'])return{'type':'format','content':_0xfc925f['newValue']?wt(_0x14649d,'*Check\x20item*'):wt(_0x14649d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xcdb355=>{if(_0xcdb355['batch']['isUndo'])return!0x1;let _0x4f1bfc=!0x1;const _0x4bd122=_0x369f70['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57c387=>'todoListChecked'===_0x369f70['_getAttributeKey'](_0x57c387));for(const _0x14d85a of _0x4bd122)'todo'!=_0x14d85a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x369f70['_findSuggestions'](_0x14d85a['getFirstRange'](),'attribute')['find'](_0xb73793=>'listType'===_0x369f70['_getAttributeKey'](_0xb73793['suggestion']))||(_0xcdb355['removeMarker'](_0x14d85a['getFirstMarker']()),_0x4f1bfc=!0x0));return _0x4f1bfc;})),_0x369f70['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x14649d,'FORMAT_INDENT'));const _0x4a7f0d={'type':'format','content':''};_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x445c80=>{const {data:_0x568c33}=_0x445c80;if(!_0x568c33||'listType'!=_0x568c33['key'])return;let _0x3e9cd2=_0x445c80['head'];for(;_0x3e9cd2;){if(_0x3e9cd2['data']&&(('listStyle'==_0x3e9cd2['data']['key']||'listMarkerStyle'==_0x3e9cd2['data']['key'])&&(_0x3e9cd2['data']['newValue']&&'default'!=_0x3e9cd2['data']['newValue']||'default'!=_0x3e9cd2['data']['oldValue']&&!_0x568c33['newValue'])||!_0x3d926d&&'$elementName'==_0x3e9cd2['data']['key']))return _0x4a7f0d;_0x3e9cd2=_0x3e9cd2['next'];}if(null==_0x568c33['newValue'])switch(_0x568c33['oldValue']){case'bulleted':return _0xfece8f(wt(_0x14649d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfece8f(wt(_0x14649d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfece8f(wt(_0x14649d,'ELEMENT_TODO_LIST'));}switch(_0x568c33['newValue']){case'bulleted':return _0x1da7ea(wt(_0x14649d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1da7ea(wt(_0x14649d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1da7ea(wt(_0x14649d,'ELEMENT_TODO_LIST'));}}),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x4c9cb9=>{const {data:_0x22bd99}=_0x4c9cb9;if(_0x22bd99&&'listIndent'==_0x22bd99['key'])return null==_0x22bd99['newValue']||null==_0x22bd99['oldValue']&&0x0==_0x22bd99['newValue']?_0x4a7f0d:void 0x0;}),_0x369f70['descriptionFactory']['registerDescriptionCallback'](_0x4e9007=>{if('attribute'!=_0x4e9007['type'])return;const {data:_0x568534}=_0x4e9007;if(!_0x568534||'listItemId'!=_0x568534['key'])return;const _0x462a2d=Qt(_0x4e9007);return'newValue'==_0x462a2d?{'type':'format','content':wt(_0x14649d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x462a2d?{'type':'format','content':wt(_0x14649d,'*Split:*\x20list\x20item')}:_0x4a7f0d;}),_0x5af2d9['model']['document']['registerPostFixer'](_0x365799=>this['listItemIdFixer'](_0x365799)),_0x5af2d9['model']['document']['registerPostFixer'](_0x59add8=>this['noTrackChangesFixer'](_0x59add8)),_0x5af2d9['model']['document']['on']('change:data',(_0x4e25ef,_0x314d78)=>{if(_0x314d78['isUndo']||!_0x314d78['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x5139d6){if(_0x5139d6['batch']['isUndo']||!_0x5139d6['batch']['isLocal'])return!0x1;let _0x44e44c=!0x1;const _0x4d9a4d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d5487=>_0x1d5487['data']&&'listItemId'==_0x1d5487['data']['key'])['filter'](_0x2081d4=>_0x2081d4['data']['newValue']&&_0x2081d4['data']['oldValue']);for(const _0x167f8c of _0x4d9a4d)Qt(_0x167f8c)||(_0x5139d6['removeMarker'](_0x167f8c['getFirstMarker']()),_0x44e44c=!0x0);return _0x44e44c;}['noTrackChangesFixer'](_0xcf20af){if(_0xcf20af['batch']['isUndo']||!_0xcf20af['batch']['isLocal'])return!0x1;const _0x2d5893=this['editor']['model']['document']['differ'],_0x267a21=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x267a21['trackChangesCommand']['value'])return!0x1;let _0x28040d=!0x1;const _0x40af69=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3ca65d=_0x2d5893['getChanges']()['filter'](_0x4e176e=>'attribute'==_0x4e176e['type'])['filter'](_0x172ce7=>_0x40af69['has'](_0x172ce7['attributeKey']));if(0x0==_0x3ca65d['length'])return _0x28040d;const _0x516393=new Set(_0x2d5893['getMarkersToAdd']()['filter'](_0xbb80de=>{if(!_0xbb80de['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x47609c=nt(_0xbb80de['name'])['subType']['split']('|')[0x0];return _0x40af69['has'](_0x47609c);})['map'](_0x301593=>nt(_0x301593['name'])['id']));for(const _0x4d01f4 of _0x3ca65d){const _0x245c77=_0x267a21['_findSuggestions'](_0x4d01f4['range'],'attribute')['filter'](_0x29f0d5=>{if(_0x29f0d5['meta']['isNextTo'])return!0x1;if(_0x516393['has'](_0x29f0d5['suggestion']['id']))return!0x1;const _0x531364=_0x267a21['_getAttributeKey'](_0x29f0d5['suggestion']);return _0x40af69['has'](_0x531364);})['map'](_0x10491b=>_0x10491b['suggestion']);if(_0x245c77['length']){for(const _0x1e6f7d of _0x245c77)_0xcf20af['removeMarker'](_0x1e6f7d['getFirstMarker']());_0x28040d=!0x0;}}return _0x28040d;}['assureChains'](){const _0x1dd91a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc3b72=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x4882ca;const _0x4e7f31=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31b2b9=>{if(_0x31b2b9['data']['oldRange']||!_0x31b2b9['data']['newRange'])return null;if(!_0x31b2b9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7a183}=nt(_0x31b2b9['name']);if(!_0x1dd91a['hasSuggestion'](_0x7a183))return null;const _0x62f0fb=_0x1dd91a['getSuggestion'](_0x7a183);return _0xc3b72['includes'](_0x62f0fb['data']['key']);})['map'](_0x3d706a=>{const {id:_0x14e023}=nt(_0x3d706a['name']),_0x3fcc27=_0x1dd91a['getSuggestion'](_0x14e023);return _0x4882ca=_0x3fcc27['attributes']['groupId'],_0x3fcc27['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4e7f31['size'])return;const _0xabbce6=_0x1dd91a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ce518=>'attribute'==_0x5ce518['type']&&_0x5ce518['data']&&_0xc3b72['includes'](_0x5ce518['data']['key'])&&_0x5ce518['attributes']['groupId']!=_0x4882ca)['map'](_0x4a3f79=>({'listItem':_0x4a3f79['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4a3f79['attributes']['groupId']})),_0x17ab73=new Set();for(const {groupId:_0x266b9b,listItem:_0x430fb3}of _0xabbce6)_0x4e7f31['has'](_0x430fb3)&&_0x17ab73['add'](_0x266b9b);for(const _0x31164c of _0x1dd91a['getSuggestions']())_0x17ab73['has'](_0x31164c['attributes']['groupId'])&&_0x31164c['setAttribute']('groupId',_0x4882ca);}_supportLegacySuggestions(){const _0x20face=this['editor'],_0x2f1c51=_0x20face['locale'],_0x42db9e=_0x20face['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x42db9e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x11090c,_0x18d4dd){const _0x798ddb=[];for(let _0x5a2ad7 of _0x11090c)_0x5a2ad7['start']['nodeAfter']===_0x5a2ad7['end']['parent']&&(_0x5a2ad7=_0x20face['model']['createRange'](_0x20face['model']['createPositionAt'](_0x5a2ad7['start']['nodeAfter'],0x0))),_0x798ddb['push'](_0x5a2ad7);_0x20face['model']['change'](_0x32cf34=>{const _0x24b3fb=_0x20face['model']['document']['selection'],_0x280d68=Array['from'](_0x24b3fb['getRanges']())['map'](_0xd8afee=>at['fromRange'](_0xd8afee));_0x32cf34['setSelection'](_0x798ddb),_0x20face['commands']['get'](_0x18d4dd['commandName'])['refresh'](),_0x18d4dd['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x20face['execute'](_0x18d4dd['commandName'],..._0x18d4dd['commandParams']),_0x32cf34['setSelection'](_0x280d68);for(const _0x2bee80 of _0x280d68)_0x2bee80['detach']();});}),_0x42db9e['descriptionFactory']['registerElementLabel'](function(_0x2710c6){const _0xdaf67=!_0x20face['model']['schema']['isObject'](_0x2710c6),_0x41424e=_0x2710c6['previousSibling'],_0x2a3633=_0x2710c6['nextSibling'],_0x183c19=_0x2710c6['getAttribute']('listItemId'),_0x54709c=!_0x41424e||_0x41424e['getAttribute']('listItemId')!==_0x183c19,_0x1dc5cb=!_0x2a3633||_0x2a3633['getAttribute']('listItemId')!==_0x183c19;return _0xdaf67&&Boolean(_0x183c19)&&_0x54709c&&_0x1dc5cb;},_0x5bba04=>wt(_0x2f1c51,'ELEMENT_LIST_ITEM',_0x5bba04));}_registerLegacyDescription(){const _0xda861f=this['editor'],_0x582a65=_0xda861f['locale'];function _0x3cfb23(_0x15982c){const _0x45db13=_0xda861f['commands']['get']('bulletedList')['value'],_0x299862=_0xda861f['commands']['get']('numberedList')['value'];return'numberedList'===_0x15982c?_0x45db13:_0x299862;}_0xda861f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4568d7){if('formatBlock'!=_0x4568d7['type'])return;const {data:_0x32bf14}=_0x4568d7;if(!_0x32bf14)return;let _0x7142fb,_0x4da903,_0x1127b9,_0x39e0ca;switch(_0x32bf14['commandName']){case'bulletedList':_0x1127b9=_0x32bf14['commandParams'][0x0]['forceValue'],_0x39e0ca=_0x3cfb23(_0x32bf14['commandName']),_0x7142fb=_0x1127b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39e0ca&&_0xda861f['config']['get']('list.multiBlock')||(_0x7142fb='*Change\x20to:*\x20%0'),_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1127b9=_0x32bf14['commandParams'][0x0]['forceValue'],_0x39e0ca=_0x3cfb23(_0x32bf14['commandName']),_0x7142fb=_0x1127b9?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x39e0ca&&_0xda861f['config']['get']('list.multiBlock')||(_0x7142fb='*Change\x20to:*\x20%0'),_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x7142fb='*Indent:*\x20%0',_0x4da903={'type':'format','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x7142fb=function(_0x2ac6b3){const _0xd445c6=_0x2ac6b3['getFirstRange']();let _0x316f11=_0xd445c6['start']['nodeAfter'];for(;_0x316f11&&_0xd445c6['containsItem'](_0x316f11);){if(_0x316f11['getAttribute']('listIndent')>0x0)return!0x1;_0x316f11=_0x316f11['nextSibling'];}return!0x0;}(_0x4568d7)?wt(_0x582a65,'*Format:*\x20remove\x20from\x20%0',wt(_0x582a65,function(_0xed3685){return'ELEMENT_'+_0xed3685['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4568d7))):wt(_0x582a65,'*Outdent:*\x20%0',wt(_0x582a65,'ELEMENT_LIST_ITEM')),_0x4da903={'type':'format','content':_0x7142fb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x32bf14['multipleBlocks']&&(_0x7142fb='*Merge:*\x20%0',_0x4da903={'type':'deletion','content':wt(_0x582a65,_0x7142fb,wt(_0x582a65,'ELEMENT_LIST_ITEM'))});}return _0x4da903;});}};function Qt(_0x59c2e1){let _0x196b2f=_0x59c2e1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x196b2f;){const _0x48fb5d=_0x196b2f['getAttribute']('listItemId');if(!_0x48fb5d)return!0x1;if(_0x48fb5d==_0x59c2e1['data']['newValue'])return'newValue';if(_0x48fb5d==_0x59c2e1['data']['oldValue'])return'oldValue';_0x196b2f=_0x196b2f['previousSibling'];}return!0x1;}var Zt=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2accb2=this['editor']['config']['get']('list.properties'),_0x167edb=this['editor']['plugins']['get']('TrackChangesEditing');_0x2accb2['styles']&&_0x167edb['enableDefaultAttributesIntegration']('listStyle'),_0x2accb2['reversed']&&_0x167edb['enableDefaultAttributesIntegration']('listReversed'),_0x2accb2['startIndex']&&_0x167edb['enableDefaultAttributesIntegration']('listStart');const _0x518182={'type':'format','content':''};_0x167edb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5832be=this['editor']['locale'];_0x167edb['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x5832be,'FORMAT_LIST_REVERSED')),_0x167edb['descriptionFactory']['registerDescriptionCallback'](_0x11cabc=>{const {data:_0x8452e1}=_0x11cabc;if(_0x8452e1&&'listReversed'==_0x8452e1['key'])return null==_0x8452e1['newValue']||0x0==_0x8452e1['newValue']&&null==_0x8452e1['oldValue']?_0x518182:void 0x0;}),_0x167edb['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x5832be,'FORMAT_LIST_START')),_0x167edb['descriptionFactory']['registerDescriptionCallback'](_0x2d9cdf=>{const {data:_0x301f65}=_0x2d9cdf;if(_0x301f65&&'listStart'==_0x301f65['key'])return null==_0x301f65['newValue']||0x1==_0x301f65['newValue']&&null==_0x301f65['oldValue']?_0x518182:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2efca5=>{if(_0x2efca5['batch']['isUndo'])return!0x1;let _0x45920a=!0x1;const _0x535129=_0x167edb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x496580=>{const _0x14d367=_0x167edb['_getAttributeKey'](_0x496580);return'listStart'==_0x14d367||'listReversed'==_0x14d367;});for(const _0x4d011e of _0x535129){const _0x5ffc99=_0x4d011e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x5ffc99&&'customNumbered'!=_0x5ffc99&&(_0x167edb['_findSuggestions'](_0x4d011e['getFirstRange'](),'attribute')['find'](_0xd53a92=>'listType'==_0x167edb['_getAttributeKey'](_0xd53a92['suggestion']))||(_0x2efca5['removeMarker'](_0x4d011e['getFirstMarker']()),_0x45920a=!0x0));}return _0x45920a;}),this['_registerLegacyDescription']();}handleDescriptions(_0x2e1db2){const _0x57f55d=this['editor']['locale'],{data:_0xcd6554}=_0x2e1db2,_0xdb80f8={'type':'format','content':''};if(!_0xcd6554||'listStyle'!=_0xcd6554['key'])return;if(!_0xcd6554['oldValue'])return'default'==_0xcd6554['newValue']?_0xdb80f8:{'type':'format','content':''+wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['newValue'])))};if(!_0xcd6554['newValue']){if('default'==_0xcd6554['oldValue'])return _0xdb80f8;let _0x16f8e2=_0x2e1db2['head'];for(;_0x16f8e2;){if(_0x16f8e2['data']&&'listType'==_0x16f8e2['data']['key']&&_0x16f8e2['data']['newValue'])return _0xdb80f8;_0x16f8e2=_0x16f8e2['next'];}return{'type':'format','content':''+wt(_0x57f55d,'*Remove\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['oldValue'])))};}if('default'!=_0xcd6554['newValue'])return{'type':'format','content':''+wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,this['_getTranslationKeyForListStyle'](_0xcd6554['newValue'])))};let _0x4d13fb=_0x2e1db2['head'];for(;_0x4d13fb;){if(_0x4d13fb['data']&&'listType'==_0x4d13fb['data']['key']&&_0x4d13fb['data']['newValue']&&_0x4d13fb['data']['oldValue'])return _0xdb80f8;_0x4d13fb=_0x4d13fb['next'];}return{'type':'format','content':wt(_0x57f55d,'*Set\x20format:*\x20%0',wt(_0x57f55d,'ELEMENT_'+_0x2e1db2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x1bcb86=this['editor'],_0x176fa8=_0x1bcb86['locale'];_0x1bcb86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19aa08=>{if('formatBlock'!=_0x19aa08['type'])return;const {data:_0x4b3262}=_0x19aa08;if(!_0x4b3262)return;let _0x4c5128,_0x1cd725;switch(_0x4b3262['commandName']){case'listStyle':_0x4c5128='*Change\x20to:*\x20%0',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128,wt(_0x176fa8,this['_getTranslationKeyForListStyle'](_0x4b3262['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c5128=_0x4b3262['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128)};break;case'listStart':_0x4c5128='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1cd725={'type':'format','content':wt(_0x176fa8,_0x4c5128,_0x4b3262['commandParams'][0x0]['startIndex'])};}return _0x1cd725;});}_getTranslationKeyForListStyle(_0x2342ef){return'ELEMENT_'+(_0x2e8b91=_0x2342ef,Jt['includes'](_0x2e8b91)?'bulleted':te['includes'](_0x2e8b91)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x2342ef['toUpperCase']()['replace'](/-/g,'_');var _0x2e8b91;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x139d64{afterInit(){const _0x3bb716=this['editor'];_0x3bb716['commands']['get']('emoji')&&_0x3bb716['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x139d64{static get requires(){return[_t];}init(){const _0x2b12f3=this['editor'],_0x4a5a08=_0x2b12f3['plugins']['get']('TrackChangesEditing'),_0x247420=_0x2b12f3['commands']['get']('enter');_0x4a5a08['enableCommand']('enter',()=>{_0x2b12f3['model']['change'](_0xd4cd33=>{const _0x5ef31e=_0x2b12f3['model']['document']['selection'],_0x313142=_0x5ef31e['getFirstPosition'](),_0x47c93f=at['fromRange'](_0x5ef31e['getFirstRange']());if(_0x247420['enterBlock'](_0xd4cd33)){const _0xaed4ff=_0x2b12f3['model']['createPositionAt'](_0x313142['parent']['nextSibling'],0x0),_0x2e71d8=_0xd4cd33['createRange'](_0x313142,_0xaed4ff);_0x4a5a08['markInsertion'](_0x2e71d8);}else _0xd4cd33['setSelection'](_0xd4cd33['createRange'](_0x47c93f['end']));_0x47c93f['detach'](),_0x247420['fire']('afterExecute',{'writer':_0xd4cd33});});});}},ie=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1afea8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1afea8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1afea8['enableCommand']('findNext'),_0x1afea8['enableCommand']('findPrevious'),_0x1afea8['enableCommand']('replace'),_0x1afea8['enableCommand']('replaceAll');}['handleFindCommand'](_0x56fa28,_0xe82411,_0x230c74={}){const _0x22efd5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x56fa28(_0x429879=>{let _0x29bcd0=('string'==typeof _0xe82411?_0x22efd5['findByTextCallback'](_0xe82411,_0x230c74):_0xe82411)(_0x429879);Array['isArray'](_0x29bcd0)&&(_0x29bcd0={'results':_0x29bcd0,'searchText':'string'==typeof _0xe82411?_0xe82411:''});const _0x1f552a=_0x29bcd0['results']['filter'](_0x7d3638=>!0x1===this['_isInDeletionRange'](_0x7d3638,_0x429879['item']));return{..._0x29bcd0,'results':_0x1f552a};},_0x230c74);}_isInDeletionRange(_0x3bcac8,_0x4c2098){const _0x2a5843=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c2098,_0x3bcac8['start']),this['editor']['model']['createPositionAt'](_0x4c2098,_0x3bcac8['end']));for(const _0x3cfeb2 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a5843['getIntersection'](_0x3cfeb2['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x139d64{afterInit(){const _0x1c5dc9=this['editor']['locale'],_0x1cfc63=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x271c9c,commandName:_0x3fb715}of se)this['editor']['plugins']['has'](_0x271c9c)&&_0x1cfc63['enableDefaultAttributesIntegration'](_0x3fb715);_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x1c5dc9,'FORMAT_FONT_SIZE')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x1c5dc9,'FORMAT_FONT_FAMILY')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x1c5dc9,'FORMAT_FONT_COLOR')),_0x1cfc63['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x1c5dc9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4ccf55=this['editor'],_0x162559=_0x4ccf55['locale'];_0x4ccf55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59949d=>{const _0x1eec20=_0x162559['t'];if('formatInline'!=_0x59949d['type'])return;const {data:_0x41761c}=_0x59949d;if(null!=_0x41761c){if('fontSize'==_0x41761c['commandName']){const _0x3b6866=_0x41761c['commandParams'][0x0]['value'];if(_0x3b6866){const _0x37be37=_0x1eec20(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5da668=>_0x5da668['model']==_0x3b6866)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x162559,'*Set\x20font\x20size:*\x20%0',_0x37be37)};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x41761c['commandName']){const _0x55db9c=_0x41761c['commandParams'][0x0]['value'];return _0x55db9c?{'type':'format','content':wt(_0x162559,'*Set\x20font\x20family:*\x20%0',_0x55db9c)}:{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20family*')};}if('fontColor'==_0x41761c['commandName']){const _0x48c612=_0x41761c['commandParams'][0x0]['value'];if(_0x48c612){const _0xfaa965=_0xf264e0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2ed5e9=>_0x2ed5e9['model']==_0x48c612);let _0x302d44=_0x48c612,_0x4a8ff7='';return _0xfaa965&&(_0x302d44=_0xfaa965['label'],_0x4a8ff7=_0x56ef0d(_0x162559,_0x302d44)['toLowerCase']()),{'type':'format','content':wt(_0x162559,'*Set\x20font\x20color:*\x20%0',_0x4a8ff7)['trim'](),'color':{'value':_0x48c612,'title':_0x4a8ff7||_0x302d44}};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x41761c['commandName']){const _0xb8db75=_0x41761c['commandParams'][0x0]['value'];if(_0xb8db75){const _0x48b74c=_0xf264e0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4ff59c=>_0x4ff59c['model']==_0xb8db75);let _0x3e9613=_0xb8db75,_0x21bf52='';return _0x48b74c&&(_0x3e9613=_0x48b74c['label'],_0x21bf52=_0x56ef0d(_0x162559,_0x3e9613)['toLowerCase']()),{'type':'format','content':wt(_0x162559,'*Set\x20font\x20background\x20color:*\x20%0',_0x21bf52)['trim'](),'color':{'value':_0xb8db75,'title':_0x21bf52||_0x3e9613}};}return{'type':'format','content':wt(_0x162559,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x139d64{afterInit(){const {plugins:_0x3f6169}=this['editor'];_0x3f6169['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3f6169['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1b8857,plugins:_0x4c0bf6,commands:_0x838868}=this['editor'],_0xd0315f=_0x4c0bf6['get']('TrackChangesEditing');_0x838868['get']('footnotesStyle')&&_0xd0315f['enableDefaultAttributesIntegration']('footnotesStyle'),_0x838868['get']('footnotesStart')&&_0xd0315f['enableDefaultAttributesIntegration']('footnotesStart'),_0xd0315f['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x1b8857,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xd0315f['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x1b8857,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x459520=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x1c3acb,commands:_0x31fa83}=this['editor'];_0x31fa83['get']('insertFootnote')&&_0x459520['enableCommand']('insertFootnote'),_0x459520['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2dd82a=>wt(_0x1c3acb,'ELEMENT_FOOTNOTE_REF',_0x2dd82a)),_0x459520['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4b90b6=>wt(_0x1c3acb,'ELEMENT_FOOTNOTE_DEFINITION',_0x4b90b6)),_0x459520['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x414c4f=>wt(_0x1c3acb,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x414c4f));}},ae=class extends _0x139d64{afterInit(){const _0x35fcb5=this['editor'],_0x15000a=_0x35fcb5['plugins']['get']('TrackChangesEditing'),_0x4b52d4=_0x35fcb5['commands']['get']('copyFormat'),_0x5dd83c=_0x35fcb5['commands']['get']('pasteFormat');_0x4b52d4&&_0x5dd83c&&(_0x15000a['enableDefaultAttributesIntegration']('pasteFormat'),_0x15000a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3a9399=this['editor'],_0x3b7d68=_0x3a9399['locale'];_0x3a9399['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2090a6=>{if('formatBlock'!=_0x2090a6['type']&&'formatInline'!=_0x2090a6['type'])return;const {data:_0xa3b474}=_0x2090a6;if(_0xa3b474&&'pasteFormat'===_0xa3b474['commandName']){const _0x4c6220=[],_0x26c9f9=_0xa3b474['commandParams'][0x0];for(const [_0x47a446,_0x15e012]of Object['entries'](_0x26c9f9))_0x4c6220['push'](ce(_0x3a9399,_0x47a446,_0x15e012));return _0x4c6220['length']?{'type':'format','content':wt(_0x3b7d68,'*Set\x20format\x20to:*\x20%0',_0x4c6220['join'](',\x20'))}:{'type':'format','content':wt(_0x3b7d68,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x351536,_0x44b228,_0x32dde9){const _0x55fcde=_0x351536['locale'],_0x362efa=_0x55fcde['t'],_0x44a94d=_0x44b228['split'](/(?=[A-Z])/)['join']('\x20'),_0x2751f2=_0x362efa(_0x44a94d['charAt'](0x0)['toUpperCase']()+_0x44a94d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x32dde9)return _0x2751f2;if('fontColor'===_0x44b228||'fontBackgroundColor'===_0x44b228){const _0x1e44bf=_0xf264e0(_0x351536['config']['get']('fontColor.colors'))['find'](_0x13b1cb=>_0x13b1cb['model']==_0x32dde9);return _0x2751f2+'\x20('+(_0x1e44bf?_0x56ef0d(_0x55fcde,_0x1e44bf['label'])['toLowerCase']():_0x32dde9)+')';}if('fontSize'===_0x44b228&&isNaN(parseFloat(_0x32dde9))){const _0x58fe5d=_0x351536['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351536['config']['get']('fontSize.options'))['find'](_0x33e055=>_0x33e055['model']==_0x32dde9);return _0x2751f2+'\x20('+(_0x58fe5d?_0x362efa(_0x58fe5d['title'])['toLowerCase']():_0x32dde9)+')';}return _0x2751f2+'\x20('+_0x32dde9+')';}var le=class extends _0x139d64{afterInit(){const _0x49a558=this['editor'];if(!_0x49a558['plugins']['has']('GeneralHtmlSupport')||!_0x49a558['plugins']['has']('DataSchema'))return;const _0x430234=_0x49a558['plugins']['get']('TrackChangesEditing'),_0x2c6506=_0x49a558['plugins']['get']('GeneralHtmlSupport'),_0x977adf=_0x49a558['plugins']['get']('DataSchema'),_0x528e5b=_0x49a558['locale'],_0x58abfb=new Set(['htmlContent']);for(const _0x447e8b of _0x977adf['getDefinitionsForView'](/.*/,!0x1)){const _0x4f54ac=_0x447e8b['view'],_0x50a2a6=_0x2c6506['getGhsAttributeNameForElement'](_0x4f54ac);_0x58abfb['add'](_0x50a2a6),!_0x447e8b['isInline']||_0x447e8b['isObject']||'appliesToBlock'in _0x447e8b&&_0x447e8b['appliesToBlock']||_0x430234['descriptionFactory']['registerAttributeLabel'](_0x50a2a6,_0x4f54ac),_0x447e8b['model']['startsWith']('html')&&_0x430234['descriptionFactory']['registerElementLabel'](_0x447e8b['model'],_0x31701a=>wt(_0x528e5b,'ELEMENT_HTML_TAG',[_0x31701a,_0x4f54ac]));}_0x430234['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x528e5b,'FORMAT_RAW_HTML_CONTENT')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x528e5b,'FORMAT_HTML_LIST_ITEM')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x528e5b,'FORMAT_HTML_BULLETED_LIST')),_0x430234['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x528e5b,'FORMAT_HTML_NUMBERED_LIST')),_0x430234['descriptionFactory']['registerDescriptionCallback'](_0x4d27c6=>{if('attribute'!==_0x4d27c6['type'])return;const _0x247c35=_0x4d27c6['data'];if(!_0x247c35||!_0x58abfb['has'](_0x247c35['key']))return;if('htmlContent'===_0x247c35['key'])return{'type':'format','content':wt(_0x528e5b,'*Change\x20%0\x20content*',wt(_0x528e5b,'ELEMENT_RAW_HTML'))};const {setItems:_0x36b9fc,removeItems:_0x4d9425}=function(_0x4da9b7,_0x54e955,_0x2836a7){const _0x1339bf=[],_0x508697=[],_0x586754=_0x4da9b7['styles']??{},_0x387b01=_0x54e955['styles']??{};for(const _0xbf0238 of new Set([...Object['keys'](_0x586754),...Object['keys'](_0x387b01)]))_0x586754[_0xbf0238]!==_0x387b01[_0xbf0238]&&(void 0x0===_0x387b01[_0xbf0238]?_0x508697['push'](_0xbf0238):_0x1339bf['push'](_0xbf0238+'\x20('+_0x387b01[_0xbf0238]+')'));const _0x5be2f9=wt(_0x2836a7,'FORMAT_HTML_CLASS'),_0x586b28=new Set(_0x4da9b7['classes']??[]),_0x530cd7=new Set(_0x54e955['classes']??[]),_0x42ffe5=[..._0x530cd7]['some'](_0x34b1bf=>!_0x586b28['has'](_0x34b1bf)),_0x51a10e=[..._0x586b28]['some'](_0x1ffaef=>!_0x530cd7['has'](_0x1ffaef));_0x42ffe5&&_0x1339bf['push'](_0x5be2f9),_0x51a10e&&_0x508697['push'](_0x5be2f9);const _0x534e47=wt(_0x2836a7,'FORMAT_HTML_ATTRIBUTE'),_0x344b13=_0x4da9b7['attributes']??{},_0x1eab08=_0x54e955['attributes']??{};let _0xbef936=!0x1,_0x474ff6=!0x1;for(const _0x1ec609 of new Set([...Object['keys'](_0x344b13),...Object['keys'](_0x1eab08)]))_0x344b13[_0x1ec609]!==_0x1eab08[_0x1ec609]&&(void 0x0===_0x1eab08[_0x1ec609]?_0x474ff6=!0x0:_0xbef936=!0x0);return _0xbef936&&_0x1339bf['push'](_0x534e47),_0x474ff6&&_0x508697['push'](_0x534e47),{'setItems':_0x1339bf,'removeItems':_0x508697};}(_0x247c35['oldValue']??{},_0x247c35['newValue']??{},_0x528e5b);if(!_0x36b9fc['length']&&!_0x4d9425['length'])return;const _0x5d9a8a=[];return _0x36b9fc['length']&&_0x5d9a8a['push'](wt(_0x528e5b,'*Set\x20format:*\x20%0',_0x36b9fc['join'](',\x20'))),_0x4d9425['length']&&_0x5d9a8a['push'](wt(_0x528e5b,'*Remove\x20format:*\x20%0',_0x4d9425['join'](',\x20'))),{'type':'format','content':_0x5d9a8a['join']('\x0a')};});}},ue=class extends _0x139d64{_headingOptions;afterInit(){const _0x261185=this['editor'];if(!_0x261185['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x261185['config']['get']('heading.options');const _0x4bbcda=_0x261185['locale'],_0x3910a3=_0x261185['plugins']['get']('TrackChangesEditing');_0x3910a3['enableDefaultAttributesIntegration']('heading');for(const _0x3002a6 of this['_headingOptions'])'paragraph'!=_0x3002a6['model']&&_0x3910a3['descriptionFactory']['registerElementLabel'](_0x3002a6['model'],_0x30d58c=>{const _0x50f4a8=this['_getHeadingLevel'](_0x3002a6['model']);return null!==_0x50f4a8?_0x2cf3a5(_0x30d58c,_0x50f4a8):_0xaa430c(_0x30d58c,_0x3002a6['title']);});function _0x2cf3a5(_0x5c1656,_0x397b71){return wt(_0x4bbcda,'ELEMENT_HEADING',[_0x5c1656,_0x397b71]);}function _0xaa430c(_0x4b27ae,_0x3ba026){return wt(_0x4bbcda,'ELEMENT_HEADING_CUSTOM',[_0x4b27ae,_0x3ba026]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3653ea=this['editor'],_0x1a3d56=_0x3653ea['locale'];function _0x2157c7(_0x459890,_0x46fea4){return wt(_0x1a3d56,'ELEMENT_HEADING_CUSTOM',[_0x459890,_0x46fea4]);}_0x3653ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe094ac=>{if('formatBlock'!=_0xe094ac['type'])return;const {data:_0x4902ce}=_0xe094ac;if(_0x4902ce&&'heading'==_0x4902ce['commandName']){const _0x3ee67f=_0x4902ce['commandParams'][0x0]['value'],_0x5a426e=this['_getHeadingLevel'](_0x3ee67f);if(null!==_0x5a426e)return{'type':'format','content':wt(_0x1a3d56,'*Change\x20to:*\x20%0',(_0x56c8ef=0x1,_0x16e9bb=_0x5a426e,wt(_0x1a3d56,'ELEMENT_HEADING',[_0x56c8ef,_0x16e9bb])))};const _0x25d1fb=this['_headingOptions']['find'](_0x9e3269=>_0x9e3269['model']===_0x3ee67f)['title'];return{'type':'format','content':wt(_0x1a3d56,'*Change\x20to:*\x20%0',_0x2157c7(0x1,_0x25d1fb))};}var _0x56c8ef,_0x16e9bb;});}_getHeadingLevel(_0x242986){const _0x5bdcb1=_0x242986['match'](/^heading(\d+)/);if(_0x5bdcb1)return _0x5bdcb1[0x1];const _0x2ffd07=this['_headingOptions']?.['find'](_0x37b0b1=>_0x37b0b1['model']==_0x242986);if(_0x2ffd07&&_0x2ffd07['view']){const _0x275f47=_0x2ffd07['view'],_0x11e972=(_0x275f47['name']??_0x275f47)['match'](/^h(\d+)/);if(_0x11e972)return _0x11e972[0x1];}return null;}},de=class extends _0x139d64{afterInit(){const _0x248e16=this['editor'];if(!_0x248e16['plugins']['has']('HighlightEditing'))return;const _0x130817=_0x248e16['plugins']['get']('TrackChangesEditing'),_0x3e6038=_0x248e16['locale'];_0x130817['enableDefaultAttributesIntegration']('highlight'),_0x130817['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x3e6038,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xec6f=this['editor'],_0x342f88=_0xec6f['locale'];_0xec6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51704c=>{if('formatInline'!=_0x51704c['type'])return;const {data:_0x2f7858}=_0x51704c;if(_0x2f7858&&'highlight'==_0x2f7858['commandName']){const _0x3f337e=_0x342f88['t'],_0x2ed512=_0x2f7858['commandParams'][0x0]['value'];if(_0x2ed512){const _0x1e7fd0=_0xec6f['config']['get']('highlight.options')['find'](_0x32fff8=>_0x32fff8['model']==_0x2ed512),_0x785b76=_0x3f337e(_0x1e7fd0['title'])['toLowerCase']();return{'type':'format','content':wt(_0x342f88,'*Set\x20highlight:*\x20%0',_0x785b76),'color':{'value':_0x1e7fd0['color'],'title':_0x1e7fd0['title']}};}return{'type':'format','content':wt(_0x342f88,'*Remove\x20highlight*',wt(_0x342f88,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x139d64{afterInit(){const _0x1e8d95=this['editor'];if(!_0x1e8d95['plugins']['has']('HorizontalLineEditing'))return;_0x1e8d95['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xf32c70=_0x1e8d95['plugins']['get']('TrackChangesEditing'),_0x396c54=_0x1e8d95['locale'];_0xf32c70['descriptionFactory']['registerElementLabel']('horizontalLine',_0x112e7e=>wt(_0x396c54,'ELEMENT_HORIZONTAL_LINE',_0x112e7e));}},ge=class extends _0x139d64{afterInit(){const _0x2bb1ad=this['editor'];if(!_0x2bb1ad['plugins']['has']('HtmlEmbed'))return;const _0x5d9edf=_0x2bb1ad['plugins']['get']('TrackChangesEditing'),_0x2cc748=_0x2bb1ad['locale'];_0x5d9edf['descriptionFactory']['registerElementLabel']('rawHtml',_0x47bd82=>wt(_0x2cc748,'ELEMENT_HTML_EMBED',_0x47bd82)),_0x5d9edf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5d9edf['descriptionFactory']['registerDescriptionCallback'](_0x6fd7ba=>{if('attribute'!=_0x6fd7ba['type'])return;const {data:_0x1fb581}=_0x6fd7ba;if(_0x1fb581&&'value'==_0x1fb581['key']&&_0x6fd7ba['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x46ee28=wt(_0x2cc748,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x2cc748,'*Change\x20%0\x20content*',_0x46ee28)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4d744a=this['editor'],_0x38f778=_0x4d744a['locale'];_0x4d744a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7cc492=>{if('formatBlock'!=_0x7cc492['type'])return;const {data:_0x2915b2}=_0x7cc492;if(_0x2915b2&&'htmlEmbed'==_0x2915b2['commandName']){const _0xb48b89=wt(_0x38f778,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x38f778,'*Change\x20%0\x20content*',_0xb48b89)};}});}},fe=class extends _0x139d64{afterInit(){const _0x3596b5=this['editor'];if(!_0x3596b5['plugins']['has']('ImageEditing'))return;const _0x3441df=_0x3596b5['plugins']['get']('TrackChangesEditing'),_0x1be620=_0x3596b5['plugins']['get']('ImageUtils'),_0x3f8018=_0x3596b5['locale'];_0x3441df['enableCommand']('insertImage'),_0x3441df['descriptionFactory']['registerElementLabel']('imageBlock',_0x43aed4=>wt(_0x3f8018,'ELEMENT_IMAGE',_0x43aed4)),_0x3441df['descriptionFactory']['registerElementLabel']('imageInline',_0x327aad=>wt(_0x3f8018,'ELEMENT_INLINE_IMAGE',_0x327aad)),_0x3441df['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x3f8018,'ELEMENT_CAPTION')),_0x3596b5['plugins']['has']('ImageUploadEditing')&&_0x3441df['enableCommand']('uploadImage'),_0x3596b5['plugins']['has']('ImageBlockEditing')&&_0x3596b5['plugins']['has']('ImageInlineEditing')&&(_0x3441df['enableCommand']('imageTypeInline',(_0x2fcea5,_0x3b5070)=>{const _0x3bec35=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']);_0x3596b5['model']['change'](()=>{_0x3441df['markBlockFormat'](_0x3bec35,{'commandName':'imageTypeInline','commandParams':[_0x3b5070]},[],'convertBlockImageToInline');});}),_0x3441df['enableCommand']('imageTypeBlock',(_0x207650,_0x162e45)=>{_0x3596b5['model']['change'](_0x7a995e=>{let _0x35cbbf=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x3e3f7f=_0x7a995e['createRangeOn'](_0x35cbbf);const _0xb96cd4=ot['fromPosition'](_0x3e3f7f['start'],'toPrevious'),_0x1341ca=ot['fromPosition'](_0x3e3f7f['end'],'toNext');_0x3441df['forceDefaultExecution'](()=>_0x207650(_0x162e45)),_0x35cbbf=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x3e3f7f=_0x7a995e['createRangeOn'](_0x35cbbf);const _0x3247e3=_0x7a995e['createRange'](_0xb96cd4,_0x1341ca);_0xb96cd4['detach'](),_0x1341ca['detach'](),_0x3441df['markBlockFormat'](_0x35cbbf,{'commandName':'imageTypeInline','commandParams':[_0x162e45]},[],'convertInlineImageToBlock'),_0x3247e3['start']['isBefore'](_0x3e3f7f['start'])&&_0x3441df['markInsertion'](_0x7a995e['createRange'](_0x3247e3['start'],_0x3e3f7f['start']),'convertInlineImageToBlock'),_0x3e3f7f['end']['isBefore'](_0x3247e3['end'])&&_0x3441df['markInsertion'](_0x7a995e['createRange'](_0x3e3f7f['end'],_0x3247e3['end']),'convertInlineImageToBlock');});}),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3441df['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x58be0a])=>{const _0x2cbe7b=_0x3441df['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3af3d8=_0x58be0a['start'],_0x5e9c28=_0x58be0a['end'];const _0x524687=_0x3596b5['model']['schema']['getNearestSelectionRange'](_0x3af3d8,'backward'),_0x2b707b=_0x3596b5['model']['schema']['getNearestSelectionRange'](_0x5e9c28,'forward');_0x524687['isCollapsed']&&(_0x3af3d8=_0x524687['start']),_0x2b707b['isCollapsed']&&(_0x5e9c28=_0x2b707b['end']),_0x2cbe7b([_0x3596b5['model']['createRange'](_0x3af3d8,_0x5e9c28)]);}),_0x3441df['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2130ef),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2130ef)),_0x3596b5['plugins']['has']('ImageCaptionEditing')&&(_0x3441df['enableCommand']('toggleImageCaption',(_0x2a3642,_0x334519)=>{const _0x41dde8=_0x3596b5['plugins']['get']('ImageCaptionUtils');let _0x181b6b=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x457bb0=_0x41dde8['getCaptionFromImageModelElement'](_0x181b6b);_0x3596b5['model']['change'](()=>{if(_0x457bb0)return void _0x3441df['markDeletion'](_0x3596b5['model']['createRangeOn'](_0x457bb0));const _0x2c8307=_0x1be620['isBlockImage'](_0x181b6b);_0x2a3642(_0x334519),_0x181b6b=_0x1be620['getClosestSelectedImageElement'](_0x3596b5['model']['document']['selection']),_0x457bb0=_0x41dde8['getCaptionFromImageModelElement'](_0x181b6b),_0x3441df['markInsertion'](_0x3596b5['model']['createRangeOn'](_0x457bb0),_0x2c8307?null:'imageCaption');});}),_0x3441df['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2130ef));const _0x25c5b7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1675be(_0x278403,_0x153839){const _0x3322e6=_0x25c5b7['findIndex'](({type:_0x26aeae,subType:_0x24374b})=>_0x278403['type']==_0x26aeae&&_0x278403['subType']==_0x24374b),_0x30f4b5=_0x25c5b7['findIndex'](({type:_0x52ca82,subType:_0x1572e1})=>_0x153839['type']==_0x52ca82&&_0x153839['subType']==_0x1572e1);if(_0x3322e6<0x0||_0x30f4b5<0x0)return!0x1;const _0x4c21b1=_0x278403['getFirstRange'](),_0x1fc6fd=_0x153839['getFirstRange']();if((0x0==_0x3322e6||0x1==_0x3322e6)&&0x2==_0x30f4b5&&_0x4c21b1['isIntersecting'](_0x1fc6fd))return!0x0;if(0x2==_0x3322e6&&0x3==_0x30f4b5){const _0x11d435=_0x3441df['_findSuggestions'](_0x4c21b1,'insertion')['filter'](({suggestion:_0x40268a,meta:_0x5878d2})=>_0x5878d2['isOwn']&&'convertInlineImageToBlock'==_0x40268a['subType']);if(_0x11d435['length']>0x1&&_0x1fc6fd['end']['isEqual'](_0x4c21b1['start']))return!0x0;if(0x1==_0x11d435['length']&&(_0x4c21b1['start']['isEqual'](_0x1fc6fd['end'])||_0x4c21b1['end']['isEqual'](_0x1fc6fd['start'])))return!0x0;}if(0x3==_0x3322e6&&0x3==_0x30f4b5&&_0x4c21b1['start']['isBefore'](_0x1fc6fd['start'])){const _0x2e15e5=_0x4c21b1['end']['nodeAfter'],_0x54a242=_0x1fc6fd['start']['nodeBefore'];return _0x1be620['isBlockImage'](_0x2e15e5)&&_0x2e15e5===_0x54a242;}return!0x1;}function _0x2130ef(_0x18d97d,_0x369180){return _0x1675be(_0x18d97d,_0x369180)?[_0x18d97d,_0x369180]:_0x1675be(_0x369180,_0x18d97d)?[_0x369180,_0x18d97d]:null;}_0x3596b5['plugins']['has']('ImageResize')&&(_0x3441df['enableDefaultAttributesIntegration']('resizeImage'),_0x3441df['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x3f8018,'FORMAT_IMAGE_SIZE'))),_0x3596b5['plugins']['has']('ImageTextAlternativeEditing')&&_0x3441df['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3596b5['plugins']['has']('PictureEditing')&&_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1bb36f=>{if('attribute'!=_0x1bb36f['type'])return;const {data:_0x5ba611}=_0x1bb36f;return _0x5ba611&&'sources'==_0x5ba611['key']?{'type':'format','content':''}:void 0x0;}),_0x3596b5['plugins']['has']('ImageSizeAttributes')&&_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x44ca96=>{if('attribute'!=_0x44ca96['type'])return;const {data:_0x2c944d}=_0x44ca96;return!_0x2c944d||'width'!=_0x2c944d['key']&&'height'!=_0x2c944d['key']?void 0x0:{'type':'format','content':''};}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1ba718=>{if(_0x25c5b7['find'](({type:_0x56a5c7,subType:_0x281249})=>_0x1ba718['type']==_0x56a5c7&&_0x1ba718['subType']==_0x281249))return _0x1ba718['previous']?{}:void 0x0;}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x71bf16=>{if('insertion'==_0x71bf16['type']||'deletion'==_0x71bf16['type']){const _0x40745a=_0x71bf16['getContainedElement']();if(_0x40745a&&_0x40745a['is']('element','caption'))return{'type':'insertion'==_0x71bf16['type']?'addObject':'removeObject','element':_0x40745a,'quantity':0x1};}}),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x487dc8=>'formatBlock'==_0x487dc8['type']&&'convertInlineImageToBlock'==_0x487dc8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x487dc8['type']&&'convertBlockImageToInline'==_0x487dc8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3441df['descriptionFactory']['registerDescriptionCallback'](_0x1d5eaa=>{if('attribute'!=_0x1d5eaa['type'])return;const {data:_0x330ff2}=_0x1d5eaa;if(!_0x330ff2||'alt'!=_0x330ff2['key'])return;const _0x1e6235=_0x330ff2['newValue'];return _0x1e6235?{'type':'format','content':wt(_0x3f8018,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1e6235+'\x22')}:{'type':'format','content':wt(_0x3f8018,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d8d68=this['editor'],_0x2949b7=_0x5d8d68['locale'];_0x5d8d68['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bed05=>{if('formatBlock'!=_0x3bed05['type']&&'formatInline'!=_0x3bed05['type'])return;const {data:_0x568b87}=_0x3bed05;if(_0x568b87){if('imageTextAlternative'==_0x568b87['commandName']){const _0x45a172=_0x568b87['commandParams'][0x0]['newValue'];return _0x45a172?{'type':'format','content':wt(_0x2949b7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45a172+'\x22')}:{'type':'format','content':wt(_0x2949b7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x568b87['commandName']){const _0x23e70f=_0x568b87['commandParams'][0x0]['width'];return _0x23e70f?{'type':'format','content':wt(_0x2949b7,'*Set\x20image\x20width:*\x20%0',_0x23e70f)}:{'type':'format','content':wt(_0x2949b7,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5007aa=this['editor']['locale'],_0x218d03=this['editor']['plugins']['get']('TrackChangesEditing');_0x218d03['enableDefaultAttributesIntegration']('replaceImageSource'),_0x218d03['descriptionFactory']['registerDescriptionCallback'](_0x46ba54=>{if('attribute'!=_0x46ba54['type'])return;const {data:_0x3cad25}=_0x46ba54;return _0x3cad25&&'src'==_0x3cad25['key']?_0x3cad25['newValue']&&_0x3cad25['oldValue']?{'type':'format','content':wt(_0x5007aa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x27d98a=this['editor']['plugins']['get']('TrackChangesEditing');_0x27d98a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x27d98a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x27d98a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x27d98a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x37ff59=this['editor'],_0x2fce49=_0x37ff59['locale'];_0x37ff59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1531ea=>{if('formatBlock'!=_0x1531ea['type']&&'formatInline'!=_0x1531ea['type'])return;const {data:_0x2903dd}=_0x1531ea;return _0x2903dd&&'replaceImageSource'==_0x2903dd['commandName']?{'type':'format','content':wt(_0x2fce49,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x139d64{afterInit(){const _0x5bbc0f=this['editor'];if(!_0x5bbc0f['plugins']['has']('ImageStyleEditing'))return;const _0x3b38a8=_0x5bbc0f['plugins']['get']('TrackChangesEditing'),_0x45cec1=_0x5bbc0f['plugins']['get']('ImageUtils'),_0x4208a6={};_0x3b38a8['enableCommand']('imageStyle',(_0x54b20c,_0xbb2fec)=>{const _0xc71568=_0x5bbc0f['plugins']['get']('Users')['me'],_0x544301=_0x5bbc0f['commands']['get']('imageStyle');let _0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),_0x539b85=_0x5bbc0f['model']['createRangeOn'](_0x479021),_0x38379b=_0x544301['value'];if(_0x38379b==_0xbb2fec['value'])return;if(_0xbb2fec['value']&&_0x45cec1['isInlineImage'](_0x479021)&&!_0x544301['isStyleEnabled'](_0xbb2fec['value']))return;const _0x49242c={'commandName':'imageStyle','commandParams':[_0xbb2fec],'formatGroupId':_0xa3c351()};_0x5bbc0f['model']['change'](()=>{if(_0x3b38a8['getSuggestions']()['filter'](_0x3af468=>_0x3af468['isInContent']&&_0xc71568==_0x3af468['author']&&('formatBlock'==_0x3af468['type']||'formatInline'==_0x3af468['type'])&&('imageStylePreApply'==_0x3af468['subType']||'imageStylePostApply'==_0x3af468['subType'])&&_0x3af468['getFirstRange']()['isEqual'](_0x539b85))['forEach'](_0xf9261a=>_0x3b38a8['discardSuggestion'](_0xf9261a['head'])),_0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),_0x539b85=_0x5bbc0f['model']['createRangeOn'](_0x479021),_0x544301['refresh'](),_0x5bbc0f['commands']['get']('imageTypeInline')['refresh'](),_0x5bbc0f['commands']['get']('imageTypeBlock')['refresh'](),_0x38379b=_0x544301['value'],_0x38379b!=_0xbb2fec['value'])return _0x45cec1['isInlineImage'](_0x479021)&&_0x544301['shouldConvertImageType'](_0xbb2fec['value'],_0x479021)?(_0x54b20c({..._0xbb2fec,'setImageSizes':!0x1}),_0x479021=_0x45cec1['getClosestSelectedImageElement'](_0x5bbc0f['model']['document']['selection']),void _0x3b38a8['markBlockFormat'](_0x479021,{..._0x49242c,'commandReversedParams':[{'value':_0x38379b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45cec1['isBlockImage'](_0x479021)?_0x3b38a8['markBlockFormat'](_0x479021,_0x49242c,[],'imageStylePostApply'):_0x3b38a8['markInlineFormat'](_0x539b85,_0x49242c,'imageStylePostApply'));});});for(const _0x51a68e of _0x5bbc0f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4208a6[_0x51a68e['name']]=_0x51a68e['title']['toLowerCase']();_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4387d8])=>{_0x45cec1['setImageNaturalSizeAttributes'](_0x4387d8['getContainedElement']());}),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xbaace3,_0x591cca)=>{_0x3b38a8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xbaace3,{'commandName':_0x591cca['commandName'],'commandParams':_0x591cca['commandReversedParams']});}),_0x3b38a8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x17c080,_0x7f81b4){return _0x41029d(_0x17c080,_0x7f81b4)?[_0x17c080,_0x7f81b4]:_0x41029d(_0x7f81b4,_0x17c080)?[_0x7f81b4,_0x17c080]:null;});const _0x40881a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41029d(_0x45bc2,_0x44520b){const _0x1a2379=_0x40881a['findIndex'](({type:_0x2b01b7,subType:_0x4e10f4})=>_0x45bc2['type']==_0x2b01b7&&_0x45bc2['subType']==_0x4e10f4),_0x1b936a=_0x40881a['findIndex'](({type:_0x1de19c,subType:_0x3febd2})=>_0x44520b['type']==_0x1de19c&&_0x44520b['subType']==_0x3febd2);if(_0x1a2379<0x0||_0x1b936a<0x0)return!0x1;const _0xccc167=_0x45bc2['getFirstRange'](),_0x44f957=_0x44520b['getFirstRange']();if((0x0==_0x1a2379||0x1==_0x1a2379)&&0x2==_0x1b936a&&_0xccc167['isIntersecting'](_0x44f957))return!0x0;if(0x2==_0x1a2379&&0x3==_0x1b936a){const _0x829854=_0x3b38a8['_findSuggestions'](_0xccc167,'insertion')['filter'](({suggestion:_0x2cc46e,meta:_0x1dd38e})=>_0x1dd38e['isOwn']&&'convertInlineImageToBlock'==_0x2cc46e['subType']);if(_0x829854['length']>0x1&&_0x44f957['end']['isEqual'](_0xccc167['start']))return!0x0;if(0x1==_0x829854['length']&&(_0xccc167['start']['isEqual'](_0x44f957['end'])||_0xccc167['end']['isEqual'](_0x44f957['start'])))return!0x0;}if(0x3==_0x1a2379&&0x3==_0x1b936a&&_0xccc167['start']['isBefore'](_0x44f957['start'])){const _0x5b9367=_0xccc167['end']['nodeAfter'],_0x20974e=_0x44f957['start']['nodeBefore'];return _0x45cec1['isBlockImage'](_0x5b9367)&&_0x5b9367===_0x20974e;}return!0x1;}_0x5bbc0f['model']['document']['registerPostFixer'](()=>{let _0x562ad5=!0x1;const _0x446524=Array['from'](_0x5bbc0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x581fff,data:_0x39e741}of _0x446524){const {group:_0x2f762f,type:_0x458eb2,subType:_0x28afe4,id:_0x52f65f}=nt(_0x581fff);if('suggestion'==_0x2f762f&&_0x3b38a8['hasSuggestion'](_0x52f65f)){if('formatBlock'==_0x458eb2&&('imageStylePreApply'==_0x28afe4||'imageStylePostApply'==_0x28afe4)){const _0x263984=_0x3b38a8['getSuggestion'](_0x52f65f);if(_0x39e741['newRange']){const _0x219e43=_0x263984['getFirstRange']()['getContainedElement']();if(_0x45cec1['isBlockImage'](_0x219e43))continue;_0x3b38a8['discardSuggestion'](_0x263984),_0x562ad5=!0x0;}}if('insertion'==_0x458eb2&&'imageCaption'==_0x28afe4&&!_0x39e741['newRange']){const _0x264d23=_0x3b38a8['getSuggestion'](_0x52f65f);_0x264d23['next']&&_0x264d23['next']['isInContent']&&(_0x3b38a8['discardSuggestion'](_0x264d23['next']),_0x562ad5=!0x0);}}}return _0x562ad5;}),this['_registerLegacyDescription'](_0x4208a6);}_registerLegacyDescription(_0x14c228){const _0x3b2dd9=this['editor'],_0x32a6a4=_0x3b2dd9['locale'];_0x3b2dd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3bb050=>{if('formatBlock'!=_0x3bb050['type']&&'formatInline'!=_0x3bb050['type'])return;const {data:_0x32e656}=_0x3bb050;if(!_0x32e656||'imageStyle'!=_0x32e656['commandName'])return;const _0x503cb6=_0x32e656['commandParams'][0x0]['value'];return _0x39d47e('side'===_0x503cb6?wt(_0x32a6a4,'FORMAT_SIDE_IMAGE'):_0x14c228[_0x503cb6]||_0x503cb6);function _0x39d47e(_0x251933){return{'type':'format','content':wt(_0x32a6a4,'*Format:*\x20%0',_0x251933)};}});}},Te=class extends _0x139d64{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x575c1f){super(_0x575c1f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0xeedebd=this['editor'],_0x81c6d=_0xeedebd['commands']['get']('importWord'),_0x44a667=_0xeedebd['commands']['get']('trackChanges');_0x81c6d&&(_0x81c6d['on']('execute',(_0x5015f5,[,_0x1229d0])=>{this['_trackChangesValueDuringImport']=_0x44a667['value'],_0x1229d0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x81c6d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x81c6d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x44a667['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xeedebd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0xee51c0,_0x58ffd7){const {suggestions:_0x4bb8ad}=_0x58ffd7,_0x4aaa88=this['editor']['commands']['get']('trackChanges'),_0xe727a2=_0x4aaa88['value'];this['_trackChangesValueDuringImport']!==_0xe727a2&&(_0x4aaa88['execute'](),this['_trackChangesExecuted']=!0x0),_0x4bb8ad&&_0x4bb8ad['forEach'](({id:_0x4cc606,type:_0x5d5bfe,author:_0x2fd969,created_at:_0x4b74b8})=>{const _0x335ff6={'id':_0x4cc606,'type':_0x5d5bfe,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2fd969,'createdAt':_0x4b74b8?new Date(_0x4b74b8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x335ff6);});}},_e=class extends _0x139d64{afterInit(){const _0x2c5f9c=this['editor'],_0x40a64e=_0x2c5f9c['plugins']['get']('TrackChangesEditing');if(_0x2c5f9c['plugins']['has']('IndentEditing')&&(_0x40a64e['enableCommand']('indent'),_0x40a64e['enableCommand']('outdent')),_0x2c5f9c['plugins']['has']('IndentBlock')){for(const _0x345648 of['indentBlock','outdentBlock'])_0x40a64e['enableDefaultAttributesIntegration'](_0x345648);if(_0x2c5f9c['plugins']['has']('ListEditing')){for(const _0x17113a of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x40a64e['enableDefaultAttributesIntegration'](_0x17113a);}}const _0x2d149e=_0x2c5f9c['locale'];_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x2d149e,'FORMAT_INDENT')),_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x2d149e,'FORMAT_INDENT')),_0x40a64e['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x2d149e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1fdd3c=this['editor'],_0x1dfa25=_0x1fdd3c['locale'],_0x4b3598=_0x1fdd3c['plugins']['get']('TrackChangesEditing');_0x4b3598['descriptionFactory']['registerDescriptionCallback'](_0x1dc4dc=>{if('formatBlock'!=_0x1dc4dc['type'])return;const {data:_0x4d822a}=_0x1dc4dc;if(!_0x4d822a)return;if('indentBlock'!=_0x4d822a['commandName']&&'outdentBlock'!=_0x4d822a['commandName'])return;const _0x2e67d9=_0x1dc4dc['getItems']()[0x0],_0x3988e4=_0x4b3598['descriptionFactory']['getItemLabel'](_0x2e67d9);return'indentBlock'==_0x4d822a['commandName']?{'type':'format','content':wt(_0x1dfa25,'*Indent:*\x20%0',_0x3988e4)}:'outdentBlock'==_0x4d822a['commandName']?{'type':'format','content':wt(_0x1dfa25,'*Outdent:*\x20%0',_0x3988e4)}:void 0x0;});}},pe=class extends _0x139d64{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x139d64{afterInit(){const _0x11b294=this['editor'];if(!_0x11b294['plugins']['has']('LinkEditing'))return;const _0x588e3c=_0x11b294['plugins']['get']('TrackChangesEditing'),_0x545db1=_0x11b294['commands']['get']('link');_0x588e3c['enableDefaultAttributesIntegration']('link'),_0x588e3c['enableDefaultAttributesIntegration']('unlink');for(const _0x1fd8ec of _0x545db1['manualDecorators'])_0x588e3c['descriptionFactory']['registerAttributeLabel'](_0x1fd8ec['id'],'link\x20('+_0x1fd8ec['label']['toLowerCase']()+')');_0x588e3c['descriptionFactory']['registerDescriptionCallback'](_0x4edd61=>{if('attribute'!=_0x4edd61['type'])return;const {data:_0x563c5c}=_0x4edd61;if(!_0x563c5c||'linkHref'!=_0x563c5c['key'])return;const _0x1c0bad=_0x563c5c['newValue'],_0x2c810d=_0x11b294['locale'];return{'type':'format','content':null==_0x1c0bad?wt(_0x2c810d,'*Remove\x20link*'):wt(_0x2c810d,'*Set\x20link:*\x20%0','\x22'+_0x1c0bad+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5e4bab=this['editor'],_0x11ed0a=_0x5e4bab['locale'];_0x5e4bab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a795c=>{if('formatInline'!=_0x2a795c['type'])return;const {data:_0x1b225a}=_0x2a795c;if(_0x1b225a){if('link'==_0x1b225a['commandName']){const _0x50677f=_0x1b225a['commandParams'][0x0];return{'type':'format','content':wt(_0x11ed0a,'*Set\x20link:*\x20%0','\x22'+_0x50677f+'\x22')};}return'unlink'==_0x1b225a['commandName']?{'type':'format','content':wt(_0x11ed0a,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x139d64{afterInit(){const _0x2628de=this['editor'],_0x1d2ac0=_0x2628de['locale'];if(!_0x2628de['plugins']['has']('LegacyListEditing'))return;const _0x2b901a=_0x2628de['plugins']['get']('TrackChangesEditing'),_0x51ff7b=_0x2628de['plugins']['has']('LegacyTodoListEditing');function _0x33a3a7(_0x306ab2){return()=>{const _0x421d64=_0x2628de['model']['document']['selection'],_0x57a416=_0x2628de['commands']['get'](_0x306ab2);if(_0x57a416['value'])return void _0x2628de['execute']('paragraph',{});const _0xfbe9c0=_0x306ab2['slice'](0x0,-0x4),_0x5a5533=function(_0x132aaa,_0x56b8e1,_0x4e2d83){let _0x14ff66=Array['from'](_0x132aaa)['filter'](_0x27de2d=>function(_0x500f11,_0x270862){return _0x270862['checkChild'](_0x500f11['parent'],'listItem')&&!_0x270862['isObject'](_0x500f11);}(_0x27de2d,_0x4e2d83));_0x14ff66=_0x14ff66['filter'](_0x123121=>!_0x123121['is']('element','listItem')||_0x123121['getAttribute']('listType')!=_0x56b8e1);const _0x356022=new Set();for(const _0x4e06af of _0x14ff66)_0x4e06af['is']('element','listItem')?_0x356022['add'](Ae(_0x4e06af)):_0x356022['add'](_0x4e06af);return Array['from'](_0x356022);}(_0x421d64['getSelectedBlocks'](),_0xfbe9c0,_0x2628de['model']['schema']);_0x2628de['model']['change'](()=>{for(const _0x394d05 of _0x5a5533)_0x2b901a['markBlockFormat'](_0x394d05,{'commandName':_0x306ab2,'commandParams':[{'forceValue':!_0x57a416['value']}],'formatGroupId':'blockName'},be(_0x394d05));});};}function _0x1fb044(_0xd71cba){return()=>{const _0x6ff774=function(_0x19491e){let _0x2fcb51=Array['from'](_0x19491e);const _0xaf0a35=_0x2fcb51['findIndex'](_0x36e9a0=>'listItem'!=_0x36e9a0['name']);return _0xaf0a35>-0x1&&(_0x2fcb51=_0x2fcb51['slice'](0x0,_0xaf0a35)),_0x2fcb51;}(_0x2628de['model']['document']['selection']['getSelectedBlocks']()),_0x40e69c=_0x2628de['model']['createRange'](_0x2628de['model']['createPositionAt'](_0x6ff774[0x0],'before'),_0x2628de['model']['createPositionAt'](_0x6ff774[_0x6ff774['length']-0x1],'end'));_0x2628de['model']['change'](()=>{_0x2b901a['markBlockFormat'](_0x40e69c,{'commandName':_0xd71cba,'commandParams':[],'formatGroupId':'listIndent'},function(_0xd8dea1){const _0xcf5d04=new Set();for(const _0xba9ebb of _0xd8dea1){let _0x54961f=_0xba9ebb['nextSibling'];for(;_0x54961f&&_0x54961f['getAttribute']('listIndent')>_0xba9ebb['getAttribute']('listIndent');)_0xcf5d04['add'](_0x54961f),_0x54961f=_0x54961f['nextSibling'];}return Array['from'](_0xcf5d04);}(_0x6ff774));});};}_0x2b901a['enableCommand']('numberedList',_0x33a3a7('numberedList')),_0x2b901a['enableCommand']('bulletedList',_0x33a3a7('bulletedList')),_0x51ff7b&&_0x2b901a['enableCommand']('todoList',_0x33a3a7('todoList')),_0x2b901a['enableCommand']('indentList',_0x1fb044('indentList')),_0x2b901a['enableCommand']('outdentList',_0x1fb044('outdentList')),_0x51ff7b&&_0x2b901a['enableCommand']('checkTodoList',()=>{const _0xfce839=_0x2628de['commands']['get']('checkTodoList'),_0x418178=Array['from'](_0xfce839['_selectedElements']);_0x418178['filter'](_0x1d10ab=>_0x1d10ab['getAttribute']('todoListChecked')!=_0xfce839['value']),_0x2628de['model']['change'](()=>{for(const _0x2f09df of _0x418178)_0x2b901a['markBlockFormat'](_0x2f09df,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xfce839['value']}]});});}),_0x2b901a['descriptionFactory']['registerElementLabel']('listItem',_0x4e2093=>wt(_0x1d2ac0,'ELEMENT_LIST_ITEM',_0x4e2093)),_0x2b901a['descriptionFactory']['registerDescriptionCallback'](_0x6afc6d=>{if('formatBlock'!=_0x6afc6d['type']&&'formatInline'!=_0x6afc6d['type'])return;const {data:_0x404836}=_0x6afc6d;if(_0x404836){if('numberedList'==_0x404836['commandName']||'bulletedList'==_0x404836['commandName']||'todoList'==_0x404836['commandName'])switch(_0x404836['commandName']['replace']('List','')){case'bulleted':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14cada(wt(_0x1d2ac0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x404836['commandName'])return{'type':'format','content':wt(_0x1d2ac0,'*Indent:*\x20%0',wt(_0x1d2ac0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x404836['commandName'])return{'type':'format','content':wt(_0x1d2ac0,'*Outdent:*\x20%0',wt(_0x1d2ac0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x404836['commandName'])return _0x404836['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x1d2ac0,'*Check\x20item*')}:{'type':'format','content':wt(_0x1d2ac0,'*Uncheck\x20item*')};}function _0x14cada(_0x2d1a1f){return{'type':'format','content':wt(_0x1d2ac0,'*Change\x20to:*\x20%0',_0x2d1a1f)};}});}};function Ae(_0x1bcb62){const _0x384ea4=_0x1bcb62['getAttribute']('listIndent');if(0x0==_0x384ea4)return _0x1bcb62;let _0x29f8a9=_0x1bcb62;for(;_0x1bcb62['previousSibling']&&_0x1bcb62['previousSibling']['is']('element','listItem');){const _0x15f345=_0x1bcb62['previousSibling']['getAttribute']('listIndent');if(_0x15f345==_0x384ea4)_0x29f8a9=_0x1bcb62['previousSibling'];else{if(_0x15f345<_0x384ea4)break;}_0x1bcb62=_0x1bcb62['previousSibling'];}return _0x29f8a9;}function be(_0x17d230){const _0x198355=[];if(_0x17d230['is']('element','listItem')&&_0x17d230['getAttribute']('listIndent')>0x0){let _0x1d8004=_0x17d230['nextSibling'];for(;_0x1d8004&&'listItem'==_0x1d8004['name']&&_0x1d8004['getAttribute']('listIndent')==_0x17d230['getAttribute']('listIndent');)_0x198355['push'](_0x1d8004),_0x1d8004=_0x1d8004['nextSibling'];}return _0x198355;}var Ce=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e7044=this['editor']['config']['get']('list.properties'),_0xcbd946=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e7044['styles']&&_0xcbd946['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e7044['reversed']&&_0xcbd946['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e7044['startIndex']&&_0xcbd946['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xcbd946['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x130e9e,_0x1540c5={}){const _0x11df72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5eee63=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11df72['markMultiRangeBlockFormat'](_0x5eee63,{'commandName':'listStyle','commandParams':[{'type':_0x1540c5['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3d521b,_0x99d2d8={}){const _0x52ebac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x779d3d=this['_getSuggestionBlocks'](_0xe9591c=>_0xe9591c['is']('element','listItem')&&'numbered'===_0xe9591c['getAttribute']('listType'));if(_0x779d3d['length']<0x1)return;const _0x58f27f=_0x779d3d['map'](_0x17ea77=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x17ea77,'before'),this['editor']['model']['createPositionAt'](_0x17ea77,0x0)));this['editor']['model']['change'](()=>{_0x52ebac['markMultiRangeBlockFormat'](_0x58f27f,{'commandName':'listReversed','commandParams':[{'reversed':_0x99d2d8['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x1759f2,_0x51a76b={}){const _0x10829b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c5802=this['_getSuggestionBlocks'](_0x14c129=>_0x14c129['is']('element','listItem')&&'numbered'===_0x14c129['getAttribute']('listType'));if(_0x2c5802['length']<0x1)return;const _0x2750b7=_0x2c5802['map'](_0x37bc04=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37bc04,'before'),this['editor']['model']['createPositionAt'](_0x37bc04,0x0)));this['editor']['model']['change'](()=>{_0x10829b['markMultiRangeBlockFormat'](_0x2750b7,{'commandName':'listStart','commandParams':[{'startIndex':_0x51a76b['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x53db11){if('formatBlock'!=_0x53db11['type']&&'formatInline'!=_0x53db11['type'])return;const _0xbc4d06=this['editor']['locale'],{data:_0x1afd0d}=_0x53db11;if(!_0x1afd0d)return;let _0x16d5bb,_0x2e66e7;switch(_0x1afd0d['commandName']){case'listStyle':_0x16d5bb='*Change\x20to:*\x20%0',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb,wt(_0xbc4d06,this['_getTranslationKeyForListStyle'](_0x1afd0d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x16d5bb=_0x1afd0d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb)};break;case'listStart':_0x16d5bb='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2e66e7={'type':'format','content':wt(_0xbc4d06,_0x16d5bb,_0x1afd0d['commandParams'][0x0]['startIndex'])};}return _0x2e66e7;}_getSuggestionBlocksForListStyle(){const _0x351813=this['editor']['plugins']['get']('LegacyListUtils');let _0x29c60b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x29c60b[0x0]?.['is']('element','listItem')&&_0x29c60b['unshift'](..._0x351813['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x29c60b[_0x29c60b['length']-0x1]?.['is']('element','listItem')&&_0x29c60b['push'](..._0x351813['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x29c60b=[...new Set(_0x29c60b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x29c60b=_0x29c60b['filter'](_0x32355c=>_0x32355c['is']('element','listItem'))),_0x29c60b;}_getSuggestionBlocks(_0x56e5f8){const _0x2575d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x39eb0d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x56e5f8)['map'](_0x8003b6=>{const _0x112ae4=this['editor']['model']['createPositionAt'](_0x8003b6,0x0);return[..._0x2575d3['getSiblingNodes'](_0x112ae4,'backward'),..._0x2575d3['getSiblingNodes'](_0x112ae4,'forward')];})['flat']();return _0x39eb0d=[...new Set(_0x39eb0d)],_0x39eb0d;}_getTranslationKeyForListStyle(_0x35ac5c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x35ac5c)||'default')['toUpperCase']()+'_LIST_'+_0x35ac5c['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x139d64{afterInit(){const _0x48127d=this['editor'];if(!_0x48127d['plugins']['has']('MediaEmbedEditing'))return;const _0x59080a=_0x48127d['plugins']['get']('TrackChangesEditing'),_0x1318db=_0x48127d['locale'];_0x59080a['enableCommand']('mediaEmbed'),_0x59080a['descriptionFactory']['registerElementLabel']('media',_0x1da13f=>wt(_0x1318db,'ELEMENT_MEDIA',_0x1da13f)),_0x48127d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x59080a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x59080a['descriptionFactory']['registerDescriptionCallback'](_0xe70ac8=>{if('attribute'!=_0xe70ac8['type'])return;const {data:_0x17ecf1}=_0xe70ac8;if(!_0x17ecf1||'resizedWidth'!=_0x17ecf1['key'])return;const _0x28eaf4=_0xe70ac8['getContainedElement']();if(!_0x28eaf4||!_0x28eaf4['is']('element','media'))return;const _0x2cad16=wt(_0x1318db,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x1318db,'*Set\x20format:*\x20%0',_0x2cad16)};}));}},Re=class extends _0x139d64{afterInit(){const _0x4e8236=this['editor'];if(!_0x4e8236['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x3b6919=_0x4e8236['plugins']['get']('TrackChangesEditing'),_0xbb103d=_0x4e8236['locale'],_0x3c1c59=_0x4e8236['plugins']['get']('MediaEmbedStyleEditing'),_0x4b4bb0={};for(const _0x267e88 of _0x3c1c59['normalizedStyles'])_0x4b4bb0[_0x267e88['name']]=_0x267e88['title']['toLowerCase']();const _0x5500f2=_0x3c1c59['normalizedStyles']['find'](_0x5bef49=>_0x5bef49['isDefault'])?.['name'];_0x3b6919['enableCommand']('mediaStyle',(_0x2568e2,_0x29be06)=>{const _0x5d4854=_0x4e8236['plugins']['get']('Users')['me'],_0x217ae3=_0x4e8236['commands']['get']('mediaStyle'),_0x347f01=function(_0x1f8084){const _0x1463bf=_0x1f8084['model']['document']['selection']['getSelectedElement']();return _0x1463bf&&_0x1463bf['is']('element','media')?_0x1463bf:null;}(_0x4e8236);if(!_0x347f01)return;const _0x53bb13=_0x4e8236['model']['createRangeOn'](_0x347f01);let _0x269722=_0x217ae3['value'];if(_0x269722==_0x29be06['value'])return;const _0x272ed0={'commandName':'mediaStyle','commandParams':[_0x29be06],'formatGroupId':_0xa3c351()};_0x4e8236['model']['change'](()=>{_0x3b6919['getSuggestions']()['filter'](_0x1bdaf6=>_0x1bdaf6['isInContent']&&_0x5d4854==_0x1bdaf6['author']&&'formatBlock'==_0x1bdaf6['type']&&'mediaStylePostApply'==_0x1bdaf6['subType']&&_0x1bdaf6['getFirstRange']()['isEqual'](_0x53bb13))['forEach'](_0x1137d5=>_0x3b6919['discardSuggestion'](_0x1137d5['head'])),_0x217ae3['refresh'](),_0x269722=_0x217ae3['value'],_0x269722!=_0x29be06['value']&&_0x3b6919['markBlockFormat'](_0x347f01,{..._0x272ed0,'commandReversedParams':[{'value':'string'==typeof _0x269722?_0x269722:null}]},[],'mediaStylePostApply');});}),_0x3b6919['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x3b6919['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5210eb,_0xbab1a1)=>{_0x3b6919['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5210eb,{'commandName':_0xbab1a1['commandName'],'commandParams':_0xbab1a1['commandReversedParams']});}),_0x3b6919['descriptionFactory']['registerDescriptionCallback'](_0x4fddb4=>{if('formatBlock'!=_0x4fddb4['type'])return;const {data:_0x2df5bb}=_0x4fddb4;if(!_0x2df5bb||'mediaStyle'!=_0x2df5bb['commandName'])return;const _0x22f70d=_0x2df5bb['commandParams'][0x0]['value']||_0x5500f2;if(!_0x22f70d)return;const _0x29d50c=_0x4b4bb0[_0x22f70d]||_0x22f70d;return{'type':'format','content':wt(_0xbb103d,'*Format:*\x20%0',_0x29d50c)};});}},Ne=class extends _0x139d64{afterInit(){const _0x21a03e=this['editor'];_0x21a03e['plugins']['has']('MentionEditing')&&_0x21a03e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x139d64{afterInit(){const _0xcb9dde=this['editor'];if(!_0xcb9dde['plugins']['has']('MergeFieldsEditing'))return;const _0x46d83f=_0xcb9dde['plugins']['get']('TrackChangesEditing'),_0x4817e4=_0xcb9dde['locale'];_0x46d83f['enableCommand']('insertMergeField'),_0x46d83f['enableCommand']('insertMergeFieldBlock'),_0x46d83f['enableCommand']('insertMergeFieldImage'),_0x46d83f['descriptionFactory']['registerElementLabel']('mergeField',_0x5e1bbd=>wt(_0x4817e4,'ELEMENT_MERGE_FIELD',_0x5e1bbd)),_0x46d83f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4b326d=>wt(_0x4817e4,'ELEMENT_MERGE_FIELD',_0x4b326d)),_0x46d83f['descriptionFactory']['registerDescriptionCallback'](_0x44f503=>{if('insertion'!=_0x44f503['type']&&'deletion'!=_0x44f503['type'])return;const _0x29bd93=_0x44f503['getContainedElement']();if(null==_0x29bd93)return;const _0x15c3db=_0xcb9dde['plugins']['get']('MergeFieldsEditing');let _0x29f782;switch(_0x15c3db['getMergeFieldType'](_0x29bd93)){case null:return;case'image':{const _0x5c6d32=_0x15c3db['unwrapAffixes'](_0x29bd93['getAttribute']('src'));_0x29f782=_0x15c3db['getLabel'](_0x5c6d32)||_0x5c6d32;break;}default:{const _0x3ec975=_0x29bd93['getAttribute']('id');_0x29f782=_0x15c3db['getLabel'](_0x3ec975)||_0x3ec975;break;}}return'insertion'==_0x44f503['type']?{'type':'insertion','content':wt(_0x4817e4,'*Insert:*\x20%0','\x22'+_0x29f782+'\x22\x20'+wt(_0x4817e4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x4817e4,'*Remove:*\x20%0','\x22'+_0x29f782+'\x22\x20'+wt(_0x4817e4,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x139d64{afterInit(){const _0x261c87=this['editor'],_0x4852e3=_0x261c87['plugins']['get']('TrackChangesEditing');_0x261c87['plugins']['has']('MultiLevelList')&&(_0x4852e3['enableDefaultAttributesIntegration']('multiLevelList'),_0x4852e3['descriptionFactory']['registerDescriptionCallback'](_0x125127=>this['handleDescriptions'](_0x125127)));}handleDescriptions(_0x538ef8){const _0x63acbe=this['editor']['locale'],{data:_0x2f6a94}=_0x538ef8,_0x3bf805={'type':'format','content':''};if(_0x2f6a94&&'listMarkerStyle'==_0x2f6a94['key']){if(!_0x2f6a94['oldValue'])return{'type':'format','content':wt(_0x63acbe,'*Set\x20format:*\x20%0',wt(_0x63acbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6a94['newValue']+')'};if(!_0x2f6a94['newValue']){let _0x49d5f3=_0x538ef8['head'];for(;_0x49d5f3;){if(_0x49d5f3['data']&&'listType'==_0x49d5f3['data']['key']&&_0x49d5f3['data']['newValue'])return _0x3bf805;_0x49d5f3=_0x49d5f3['next'];}return{'type':'format','content':wt(_0x63acbe,'*Remove\x20format:*\x20%0',wt(_0x63acbe,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2f6a94['oldValue']+')'};}}}},Me=class extends _0x139d64{afterInit(){const _0x30ada2=this['editor'];if(!_0x30ada2['plugins']['has']('PageBreakEditing'))return;_0x30ada2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a26f9=_0x30ada2['plugins']['get']('TrackChangesEditing'),_0x1da9a6=_0x30ada2['locale'];_0x3a26f9['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dd789=>wt(_0x1da9a6,'ELEMENT_PAGE_BREAK',_0x1dd789));}},Oe=class extends _0x139d64{afterInit(){const _0x259ffb=this['editor'];if(!_0x259ffb['plugins']['has']('Paragraph'))return;const _0x34780d=_0x259ffb['locale'],_0xb6882d=_0x259ffb['plugins']['get']('TrackChangesEditing');_0xb6882d['descriptionFactory']['registerElementLabel']('paragraph',_0xb59491=>wt(_0x34780d,'ELEMENT_PARAGRAPH',_0xb59491)),_0xb6882d['enableDefaultAttributesIntegration']('paragraph'),_0xb6882d['enableCommand']('insertParagraph');const _0x1249cb=_0xb6882d['descriptionFactory'];_0x1249cb['registerDescriptionCallback'](_0x21dddf=>{if('insertion'!==_0x21dddf['type'])return;const {start:_0x5ae98f,end:_0x1fd0e5}=_0x21dddf['getFirstRange']();if(!_0x5ae98f['isTouching'](_0x1fd0e5)||!_0x5ae98f['nodeAfter'])return;const _0x30db05=_0x259ffb['model']['schema'],_0x2eb1da=_0x5ae98f['nodeAfter'];return _0x30db05['isBlock'](_0x2eb1da)&&!_0x30db05['isLimit'](_0x2eb1da)&&_0x30db05['checkChild'](_0x2eb1da,'$text')?{'type':'insertion','content':wt(_0x34780d,'*Insert:*\x20%0',_0x1249cb['getItemLabel'](_0x2eb1da,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x540600=this['editor'],_0x304bb7=_0x540600['locale'];_0x540600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf19e21=>{if('formatBlock'!=_0xf19e21['type'])return;const {data:_0x1b1a00}=_0xf19e21;return _0x1b1a00&&'paragraph'==_0x1b1a00['commandName']?{'type':'format','content':wt(_0x304bb7,'*Change\x20to:*\x20%0',wt(_0x304bb7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x139d64{afterInit(){const _0x37bbf6=this['editor'];_0x37bbf6['commands']['get']('replaceSource')&&_0x37bbf6['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x139d64{afterInit(){const _0x5daeb4=this['editor'];_0x5daeb4['plugins']['has']('RemoveFormatEditing')&&(_0x5daeb4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x11eef2=this['editor'];_0x11eef2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eef11=>{if('formatBlock'!=_0x1eef11['type']&&'formatInline'!=_0x1eef11['type'])return;const {data:_0x9668a5}=_0x1eef11;return _0x9668a5&&'removeFormat'==_0x9668a5['commandName']?{'type':'format','content':wt(_0x11eef2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x139d64{afterInit(){const _0x400152=this['editor'];if(!_0x400152['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x455a5e=_0x400152['plugins']['get']('TrackChangesEditing');_0x455a5e['enableCommand']('goToPreviousRestrictedEditingException'),_0x455a5e['enableCommand']('goToNextRestrictedEditingException');const _0x4ee33d=_0x400152['plugins']['get']('RestrictedEditingModeEditing');_0x4ee33d['enableCommand']('trackChanges'),_0x4ee33d['enableCommand']('acceptSuggestion'),_0x4ee33d['enableCommand']('discardSuggestion'),_0x4ee33d['enableCommand']('acceptAllSuggestions'),_0x4ee33d['enableCommand']('discardAllSuggestions'),_0x4ee33d['enableCommand']('acceptSelectedSuggestions'),_0x4ee33d['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x139d64{afterInit(){const _0x23f4fc=this['editor'];if(!_0x23f4fc['plugins']['has']('ShiftEnter'))return;const _0x1a21bc=_0x23f4fc['plugins']['get']('TrackChangesEditing');_0x1a21bc['enableCommand']('shiftEnter'),_0x1a21bc['descriptionFactory']['registerElementLabel']('softBreak',_0x3323cf=>wt(_0x23f4fc['locale'],'ELEMENT_LINE_BREAK',_0x3323cf));}};function De(_0x1e4798,_0x46ad91,_0x2a3229){const _0x3f7399=[];for(const _0x3ec087 of _0x46ad91['getItems']())_0x3ec087['hasAttribute'](_0x1e4798)&&_0x3f7399['push'](_0x2a3229['createRangeOn'](_0x3ec087));return _0x3f7399;}var Ue=class extends _0x139d64{afterInit(){const _0x334055=this['editor'],_0x57e1ef=_0x334055['plugins']['get']('TrackChangesEditing');_0x334055['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x57e1ef['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5c4bf7=this['editor'],_0x11798e=_0x5c4bf7['model'],_0x4721bc=_0x5c4bf7['locale'],_0x1dc471=_0x5c4bf7['plugins']['get']('TrackChangesEditing'),_0x384123='restrictedEditingException',_0x1eb342=_0x5c4bf7['commands']['get'](_0x384123);_0x1dc471['enableCommand'](_0x384123,(_0x50b5ce,_0x4acd54={})=>{const _0x57e5ce=_0x11798e['document']['selection'];if(_0x57e5ce['isCollapsed'])return void _0x50b5ce(_0x4acd54);const _0x46a5df=void 0x0!==_0x4acd54['forceValue']?_0x4acd54['forceValue']:!_0x1eb342['value'];_0x11798e['change'](()=>{const _0x19df41=Array['from'](_0x57e5ce['getRanges']());for(const _0x24a8da of _0x19df41){const _0x17b836=_0x46a5df?[_0x24a8da]:De(_0x384123,_0x24a8da,_0x11798e);for(const _0xdd89f1 of _0x17b836)_0x1dc471['markInlineFormat'](_0xdd89f1,{'commandName':_0x384123,'commandParams':[{'forceValue':_0x46a5df}]});}});}),_0x1dc471['descriptionFactory']['registerDescriptionCallback'](_0x315504=>{if('formatBlock'!=_0x315504['type']&&'formatInline'!=_0x315504['type'])return;const {data:_0x5d0992}=_0x315504;return _0x5d0992&&_0x5d0992['commandName']==_0x384123?_0x5d0992['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x4721bc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x4721bc,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x195bd4=this['editor'],_0x3b1ebb=_0x195bd4['locale'],_0x10ea12=_0x195bd4['plugins']['get']('TrackChangesEditing'),_0x28982c='restrictedEditingExceptionBlock',_0x1a9451=this['editor']['commands']['get'](_0x28982c);_0x10ea12['enableCommand'](_0x28982c,(_0x192235,_0x158b08={})=>{const _0x1d5b9c=this['editor']['model']['document']['selection'],_0x262dfb=_0x158b08&&void 0x0!==_0x158b08['forceValue']?_0x158b08['forceValue']:!_0x1a9451['value'];let _0x147029=[];if(_0x262dfb){const _0x410214=Array['from'](_0x1d5b9c['getSelectedBlocks']())['filter'](_0x51bc67=>function(_0x4119b1){return!!_0x4119b1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x51bc67)||function(_0x479c3d,_0x11639f){const _0x4d05a7=_0x11639f['createContext'](_0x479c3d['parent']);return!!_0x11639f['checkChild'](_0x4d05a7,'restrictedEditingException')&&!!_0x11639f['checkChild'](_0x4d05a7['push']('restrictedEditingException'),_0x479c3d);}(_0x51bc67,this['editor']['model']['schema']));_0x147029=kt(_0x410214,_0x195bd4['model']);}else{const _0x23a1f4=Array['from'](_0x1d5b9c['getSelectedBlocks']())['map'](_0x430adb=>function(_0x129e4b){let _0x520e08=_0x129e4b;for(;_0x520e08['parent'];){if('restrictedEditingException'==_0x520e08['parent']['name'])return _0x520e08;_0x520e08=_0x520e08['parent'];}return null;}(_0x430adb))['filter'](_0x153733=>!!_0x153733);_0x147029=kt(_0x23a1f4,_0x195bd4['model']);}_0x195bd4['model']['change'](()=>{for(const _0x379491 of _0x147029)_0x10ea12['markBlockFormat'](_0x379491,{'commandName':_0x28982c,'commandParams':[{'forceValue':_0x262dfb}]});});}),_0x10ea12['descriptionFactory']['registerDescriptionCallback'](_0x460b6c=>{const {data:_0x153192}=_0x460b6c;if(_0x153192&&_0x153192['commandName']==_0x28982c)return _0x153192['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3b1ebb,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x3b1ebb,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x139d64{afterInit(){const _0x4d7374=this['editor'];_0x4d7374['plugins']['has']('Style')&&_0x4d7374['plugins']['has']('DataSchema')&&(_0x4d7374['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5edc2b=this['editor'],_0x198509=_0x5edc2b['locale'];_0x5edc2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x363336=>{if('formatBlock'!=_0x363336['type']&&'formatInline'!=_0x363336['type'])return;const {data:_0x5c65df}=_0x363336;return _0x5c65df&&'style'===_0x5c65df['commandName']?_0x5c65df['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x198509,'*Set\x20format:*\x20%0',_0x5c65df['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x198509,'*Remove\x20format:*\x20%0',_0x5c65df['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x139d64{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x38cb7c){super(_0x38cb7c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x1a9fee=this['editor'],_0x257db7=_0x1a9fee['model']['document']['selection'];if(!_0x1a9fee['plugins']['has']('TableEditing'))return;const _0x36597d=_0x1a9fee['locale'],_0x240439=_0x1a9fee['plugins']['get']('TrackChangesEditing'),_0x274d14=_0x1a9fee['plugins']['get']('TableUtils');_0x240439['descriptionFactory']['registerElementLabel']('table',_0x297c9c=>wt(_0x36597d,'ELEMENT_TABLE',_0x297c9c)),this['_setupColumnsRowsFixing'](),_0x240439['enableCommand']('insertTable'),_0x240439['enableCommand']('selectTableRow'),_0x240439['enableCommand']('selectTableColumn');for(const _0x3d32fa of['insertTableRowAbove','insertTableRowBelow']){const _0x1c96e3=_0x1a9fee['commands']['get'](_0x3d32fa);_0x240439['enableCommand'](_0x3d32fa,_0x4d603a=>{_0x1a9fee['model']['change'](_0x43a2b3=>{_0x4d603a();const _0x25c3c9='above'===_0x1c96e3['order'],_0x2e617d=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x297159=_0x274d14['getRowIndexes'](_0x2e617d),_0x4c2d58=_0x25c3c9?_0x297159['first']-0x1:_0x297159['last']+0x1,_0x289e39=_0x2e617d[0x0]['findAncestor']('table'),_0x15eefe=_0x274d14['createTableWalker'](_0x289e39,{'startRow':_0x4c2d58,'endRow':_0x4c2d58}),_0x321460=Array['from'](_0x15eefe)['map'](_0x2d8457=>_0x43a2b3['createRangeOn'](_0x2d8457['cell']));_0x240439['markMultiRangeInsertion'](_0x321460,'tableRow');});});}for(const _0x1b2022 of['insertTableColumnLeft','insertTableColumnRight']){const _0x46adb5=_0x1a9fee['commands']['get'](_0x1b2022);_0x240439['enableCommand'](_0x1b2022,_0x2b882c=>{_0x1a9fee['model']['change'](_0x58a21a=>{_0x2b882c();const _0x25fa3a='left'===_0x46adb5['order'],_0x2bb0c6=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x5c5e05=_0x274d14['getColumnIndexes'](_0x2bb0c6),_0xf9badf=_0x25fa3a?_0x5c5e05['first']-0x1:_0x5c5e05['last']+0x1,_0x24bdc0=_0x2bb0c6[0x0]['findAncestor']('table'),_0x56c51f=_0x274d14['createTableWalker'](_0x24bdc0,{'startRow':0x0,'column':_0xf9badf,'includeAllSlots':!0x1}),_0x518850=Array['from'](_0x56c51f)['map'](_0x1495ed=>_0x58a21a['createRangeOn'](_0x1495ed['cell']));_0x240439['markMultiRangeInsertion'](_0x518850,'tableColumn');});});}for(const _0x5d3a97 of['removeTableRow','removeTableColumn']){const _0x1a5ed5=_0x5d3a97['substr'](0xb),_0x333860=_0x1a5ed5['toLowerCase'](),_0x4e13d3=_0x333860['substr'](0x0,0x3)+'span',_0x1a9000='table'+_0x1a5ed5,_0x4115ef='min'+_0x1a5ed5,_0xa2a8eb='max'+_0x1a5ed5;_0x240439['enableCommand'](_0x5d3a97,()=>{_0x1a9fee['model']['change'](_0x422f8e=>{const _0x52df3e=_0x274d14['getSelectionAffectedTableCells'](_0x257db7),_0x4a4ef5=_0x52df3e[0x0]['findAncestor']('table');let _0x185dd3;if('removeTableRow'==_0x5d3a97){const _0x29d2cc=_0x274d14['getRowIndexes'](_0x52df3e);_0x185dd3={'startRow':_0x29d2cc['first'],'endRow':_0x29d2cc['last'],'includeAllSlots':!0x0};}else{const _0x5f3513=_0x274d14['getColumnIndexes'](_0x52df3e);_0x185dd3={'startColumn':_0x5f3513['first'],'endColumn':_0x5f3513['last'],'includeAllSlots':!0x0};}const _0xea1923=_0x274d14['createTableWalker'](_0x4a4ef5,_0x185dd3),_0x3e9e66=Array['from'](_0xea1923)['map'](({cell:_0x2387ed})=>_0x2387ed),_0x5d5c77=Ge(_0x3e9e66['filter'](_0x27de5a=>_0x27de5a['hasAttribute'](_0x4e13d3))),_0x564d8a=Ge(_0x3e9e66['filter'](_0x131fdf=>!_0x131fdf['hasAttribute'](_0x4e13d3)))['map'](_0x31e95b=>_0x422f8e['createRangeOn'](_0x31e95b)),_0xa195fc=_0x240439['markMultiRangeDeletion'](_0x564d8a,_0x1a9000);if(_0xa195fc&&('tableRow'==_0xa195fc['subType']||'tableColumn'==_0xa195fc['subType'])){const _0x3c9679=this['_getSuggestionCoords'](_0xa195fc);for(const _0x3343a1 of _0x5d5c77){const _0x5d8953=_0x422f8e['createRangeOn'](_0x3343a1),_0x3c0c93=_0x274d14['getCellLocation'](_0x3343a1),_0x41ea7f=_0x3343a1['getAttribute'](_0x4e13d3)-0x1,_0x217f2f=_0x3c9679[_0x4115ef],_0x1810e4=_0x3c9679[_0xa2a8eb];_0x217f2f<=_0x3c0c93[_0x333860]&&_0x3c0c93[_0x333860]+_0x41ea7f<=_0x1810e4&&_0xa195fc['addRange'](_0x5d8953);}}});});}function _0x9010d1(_0x402044){const _0x33626d=Array['from'](_0x257db7['getRanges']())['map'](_0xd511b7=>at['fromRange'](_0xd511b7));_0x1a9fee['model']['change'](_0x2684a9=>{const _0x436bef=_0x2684a9['batch'];_0x402044=_0x402044['filter'](_0x415a76=>'$graveyard'!=_0x415a76['root']['rootName']),_0x2684a9['setSelection'](_0x402044),_0x1a9fee['commands']['get']('removeTableRow')['refresh'](),_0x1a9fee['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a9fee['model']['enqueueChange'](()=>{_0x1a9fee['model']['enqueueChange'](_0x436bef,_0x1e70cb=>{const _0x4da758=_0x33626d['filter'](_0x55db2c=>'$graveyard'!=_0x55db2c['root']['rootName']);_0x4da758['length']>0x0&&_0x1e70cb['setSelection'](_0x4da758);for(const _0xab9178 of _0x33626d)_0xab9178['detach']();});});});}function _0x4e39a1(_0x124f5d){_0x1a9fee['model']['change'](_0x1faf6d=>{const _0x8c2864=Array['from'](_0x257db7['getRanges']())['map'](_0x37b831=>at['fromRange'](_0x37b831)),_0x1a71bc=[];for(const _0x2fa934 of _0x124f5d)for(const _0x1647a0 of _0x2fa934['getItems']({'shallow':!0x0}))_0x1a71bc['push'](_0x1647a0);for(const _0x55a601 of _0x1a71bc)'$graveyard'!=_0x55a601['root']['rootName']&&(_0x1faf6d['setSelection'](_0x1faf6d['createPositionAt'](_0x55a601,0x0)),_0x1a9fee['commands']['get']('removeTableColumn')['refresh'](),_0x1a9fee['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5d8754=_0x8c2864['filter'](_0xced791=>'$graveyard'!=_0xced791['root']['rootName']);_0x5d8754['length']>0x0&&_0x1faf6d['setSelection'](_0x5d8754);for(const _0xfb63b7 of _0x8c2864)_0xfb63b7['detach']();});}function _0x25c68f(_0xe704d1,_0x481f5f){return _0x481f5f['every'](_0x1d3441=>_0xe704d1['some'](_0x48d5c1=>_0x48d5c1['end']['isEqual'](_0x1d3441['start'])||_0x1d3441['end']['isEqual'](_0x48d5c1['start'])));}function _0x535312(_0x20aac7,_0x4efef2){return!_0x20aac7['some'](_0x5ab478=>_0x4efef2['some'](_0x4ae441=>_0x5ab478['isIntersecting'](_0x4ae441)))&&_0x20aac7['some'](_0x4369ed=>_0x4efef2['some'](_0x5a9775=>_0x4369ed['end']['isTouching'](_0x5a9775['start'])));}_0x240439['descriptionFactory']['registerDescriptionCallback'](_0x5aba0a=>{if('insertion'!=_0x5aba0a['type']&&'deletion'!=_0x5aba0a['type'])return;const _0x20b084=_0x5aba0a['getContainedElement']();if(null!=_0x20b084&&_0x20b084['is']('element','table')){if('insertion'==_0x5aba0a['type']){const _0x3f3efc=_0x5aba0a['getItems']()['filter'](_0x268fec=>_0x268fec['is']('$textProxy'))['map'](_0x483dae=>_0x483dae['data']);if(_0x3f3efc['length'])return{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f3efc['join']('\x20')+'\x22'))};}if('deletion'==_0x5aba0a['type']){const _0x22101c=_0x5aba0a['getItems']()['filter'](_0x55e28f=>_0x55e28f['is']('$textProxy'))['map'](_0x2d70ec=>_0x2d70ec['data']);if(_0x22101c['length'])return{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x22101c['join']('\x20')+'\x22'))};}}}),_0x240439['descriptionFactory']['registerDescriptionCallback'](_0x281310=>{if('tableRow'==_0x281310['subType']){const _0x87792=_0x281310['getItems']()['filter'](_0x2c4390=>_0x2c4390['is']('$textProxy'))['map'](_0x19dccd=>_0x19dccd['data']),_0x48b675=this['_getSuggestionCoords'](_0x281310),_0x17f421=_0x48b675['maxRow']-_0x48b675['minRow']+0x1;if('insertion'==_0x281310['type'])return _0x87792['length']?{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17f421,'\x22'+_0x87792['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW',_0x17f421))};if('deletion'==_0x281310['type'])return _0x87792['length']?{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x17f421,'\x22'+_0x87792['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_ROW',_0x17f421))};}if('tableColumn'==_0x281310['subType']){const _0x33dd47=_0x281310['getItems']()['filter'](_0x23c033=>_0x23c033['is']('$textProxy'))['map'](_0x338048=>_0x338048['data']),_0x16df93=this['_getSuggestionCoords'](_0x281310),_0xfa8289=_0x16df93['maxColumn']-_0x16df93['minColumn']+0x1;if('insertion'==_0x281310['type'])return _0x33dd47['length']?{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8289,'\x22'+_0x33dd47['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x36597d,'*Insert:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN',_0xfa8289))};if('deletion'==_0x281310['type'])return _0x33dd47['length']?{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfa8289,'\x22'+_0x33dd47['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x36597d,'*Remove:*\x20%0',wt(_0x36597d,'ELEMENT_TABLE_COLUMN',_0xfa8289))};}}),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x9010d1),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x9010d1),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4e39a1),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4e39a1),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x25c68f),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x25c68f),_0x240439['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x535312),_0x240439['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x535312);}_acceptFormatSuggestionCallbackFactory(){const _0x4c4144=this['editor'],_0x3903b8=_0x4c4144['model']['document']['selection'];return(_0x2cd409,_0x4c5771)=>{_0x4c4144['model']['change'](_0x5b4e42=>{const {commandName:_0x44b849,commandParams:_0x291f57}=_0x4c5771;let _0x411ba0=_0x2cd409[0x0]['end']['nodeBefore'];_0x291f57&&_0x291f57[0x0]&&!0x1===_0x291f57[0x0]['forceValue']&&(_0x411ba0=_0x2cd409[0x0]['start']['nodeAfter']);const _0x43859b=_0x5b4e42['createRangeIn'](_0x411ba0);if('$graveyard'==_0x43859b['root']['rootName'])return;const _0xedfa4=Array['from'](_0x3903b8['getRanges']())['map'](_0x5c36a0=>at['fromRange'](_0x5c36a0));_0x5b4e42['setSelection'](_0x43859b),_0x4c4144['commands']['get'](_0x44b849)['refresh'](),_0x291f57['push']({'forceDefaultExecution':!0x0}),_0x4c4144['execute'](_0x44b849,..._0x291f57);const _0x2ff81b=_0xedfa4['filter'](_0xc9d98d=>'$graveyard'!=_0xc9d98d['root']['rootName']);_0x2ff81b['length']>0x0&&_0x5b4e42['setSelection'](_0x2ff81b);for(const _0x23b29f of _0xedfa4)_0x23b29f['detach']();});};}_getCoordsForCells(_0x1e3106){const _0x12ba7e=this['editor']['plugins']['get']('TableUtils');let _0x274790=Number['MAX_SAFE_INTEGER'],_0x123a75=Number['MIN_SAFE_INTEGER'],_0x371337=Number['MAX_SAFE_INTEGER'],_0x2fc4f4=Number['MIN_SAFE_INTEGER'];for(const _0x360009 of _0x1e3106){if('$graveyard'==_0x360009['root']['rootName'])continue;const {row:_0xb54db4,column:_0x39b8e9}=_0x12ba7e['getCellLocation'](_0x360009),_0x362472=_0x360009['hasAttribute']('rowspan')?_0x360009['getAttribute']('rowspan')-0x1:0x0,_0x29ae8b=_0x360009['hasAttribute']('colspan')?_0x360009['getAttribute']('colspan')-0x1:0x0;_0x274790=_0xb54db4<_0x274790?_0xb54db4:_0x274790,_0x123a75=_0xb54db4+_0x362472>_0x123a75?_0xb54db4+_0x362472:_0x123a75,_0x371337=_0x39b8e9<_0x371337?_0x39b8e9:_0x371337,_0x2fc4f4=_0x39b8e9+_0x29ae8b>_0x2fc4f4?_0x39b8e9+_0x29ae8b:_0x2fc4f4;}return{'minRow':_0x274790,'maxRow':_0x123a75,'minColumn':_0x371337,'maxColumn':_0x2fc4f4};}_setupColumnsRowsFixing(){const _0x398af6=this['editor'],_0x1cf8ee=_0x398af6['plugins']['get']('TrackChangesEditing'),_0x2b119f=_0x398af6['plugins']['get']('TableUtils');_0x398af6['model']['document']['on']('change:data',()=>{const _0x409a83=Array['from'](_0x398af6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb0ff0f,data:_0x2691c3}of _0x409a83){const {group:_0x24fa86,id:_0x1990d8,subType:_0x2dcf39}=nt(_0xb0ff0f);if('suggestion'!=_0x24fa86)continue;if(null!=_0x2691c3['oldRange'])continue;const _0x3152e1=_0x1cf8ee['getSuggestion'](_0x1990d8);this['_tablePostFixingSubtypes']['includes'](_0x2dcf39)&&this['_tableSuggestions']['add'](_0x3152e1);}},{'priority':'low'});const _0x4d43e5=(_0x246436,_0x3018b1)=>{let _0x4424a8=!0x1;const _0x10bb6c=_0x3018b1['createRangeOn'](_0x246436),_0x3d6021=_0x246436['findAncestor']('table'),_0x277b58=_0x2b119f['getCellLocation'](_0x246436);for(const _0x43e8c7 of this['_tableSuggestions']){const _0x2cd647=_0x43e8c7['subType'],_0x5ed72f=_0x2cd647['startsWith']('tablePaste'),_0x156594=_0x2cd647['substr'](_0x5ed72f?0xa:0x5),_0x43d45f=_0x156594['toLowerCase'](),_0x135e45=_0x43d45f['substr'](0x0,0x3)+'span',_0x460149='min'+_0x156594,_0x5518ac='max'+_0x156594;if(!_0x43e8c7['isInContent'])continue;if(_0x3d6021!=_0x43e8c7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x43e8c7['isIntersectingWithRange'](_0x10bb6c))continue;const _0x15123f=_0x246436['hasAttribute'](_0x135e45)?_0x246436['getAttribute'](_0x135e45)-0x1:0x0,_0xc9680a=this['_getSuggestionCoords'](_0x43e8c7),_0x594615=_0xc9680a[_0x460149],_0xcc69a7=_0xc9680a[_0x5518ac];_0x594615<=_0x277b58[_0x43d45f]&&_0x277b58[_0x43d45f]+_0x15123f<=_0xcc69a7&&(_0x43e8c7['addRange'](_0x10bb6c),_0x4424a8=!0x0);}return _0x4424a8;};_0x398af6['model']['document']['registerPostFixer'](_0x383f4d=>{let _0x482643=!0x1;for(const _0x251534 of _0x398af6['model']['document']['differ']['getChanges']())if('insert'==_0x251534['type']){if('tableRow'==_0x251534['name']){for(const _0x51972d of _0x251534['position']['nodeAfter']['getChildren']())_0x482643=_0x482643||_0x4d43e5(_0x51972d,_0x383f4d);}else'tableCell'==_0x251534['name']&&(_0x482643=_0x482643||_0x4d43e5(_0x251534['position']['nodeAfter'],_0x383f4d));}return _0x482643;});}_getSuggestionCoords(_0xf06dfc){return this['_getCoordsForCells'](_0xf06dfc['getRanges']()['map'](_0x3ec3ff=>_0x3ec3ff['start']['nodeAfter']));}};function Ge(_0x1dcfc3){return Array['from'](new Set(_0x1dcfc3)['values']());}var He=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x508d48=this['editor'],_0xea0b82=_0x508d48['model']['document']['selection'],_0x23ed5d=_0x508d48['locale'];if(!_0x508d48['plugins']['has']('TableEditing'))return;const _0x9cf697=_0x508d48['plugins']['get']('TrackChangesEditing'),_0xa3b93e=_0x508d48['plugins']['get']('TableUtils'),_0x2dda0f=_0x508d48['plugins']['get'](xe);_0x2dda0f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9cf697['enableCommand']('mergeTableCells',()=>{const _0x14967f=_0xa3b93e['getSelectionAffectedTableCells'](_0x508d48['model']['document']['selection']);_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat'](_0x14967f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x508d48['commands']['get']('mergeTableCells')['on']('execute',(_0x5d1d15,_0x1ef5db)=>{_0x508d48['commands']['get']('trackChanges')['value']&&(_0x1ef5db['length']>0x0&&_0x1ef5db[_0x1ef5db['length']-0x1]&&_0x1ef5db[_0x1ef5db['length']-0x1]['forceDefaultExecution']||_0x9cf697['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5d1d15['stop']());},{'priority':'highest'});for(const _0x2b0330 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3255e8=_0x508d48['commands']['get'](_0x2b0330);_0x9cf697['enableCommand'](_0x2b0330,()=>{const _0xbb24ac=_0x508d48['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x23c37=>_0x23c37['is']('element','tableCell')),_0x266de3=_0x3255e8['value'];_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat']([_0xbb24ac,_0x266de3],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x365c0c of['splitTableCellVertically','splitTableCellHorizontally']){const _0xe2e793=_0x508d48['commands']['get'](_0x365c0c);_0x9cf697['enableCommand'](_0x365c0c,()=>{const _0x1e50e1=_0xa3b93e['getSelectionAffectedTableCells'](_0x508d48['model']['document']['selection']),_0x2bfc58=_0x1e50e1[0x0]['findAncestor']('table'),_0x997830=new Set();for(const _0x3b8763 of _0x1e50e1){const {column:_0x4832bb,row:_0x46fd4e}=_0xa3b93e['getCellLocation'](_0x3b8763),_0x2c2ed1='horizontally'==_0xe2e793['direction']?_0xa3b93e['createTableWalker'](_0x2bfc58,{'startRow':_0x46fd4e,'endRow':_0x46fd4e,'includeAllSlots':!0x0}):_0xa3b93e['createTableWalker'](_0x2bfc58,{'column':_0x4832bb,'includeAllSlots':!0x0});for(const {cell:_0x13a8e9}of _0x2c2ed1)_0x997830['add'](_0x13a8e9);}_0x508d48['model']['change'](()=>{_0x9cf697['markMultiRangeBlockFormat'](_0x1e50e1,{'commandName':_0x365c0c,'commandParams':[]},Array['from'](_0x997830),_0x365c0c);});});}_0x9cf697['descriptionFactory']['registerDescriptionCallback'](_0x148552=>{if('formatBlock'!=_0x148552['type']&&'formatInline'!=_0x148552['type'])return;const {data:_0x3964ca}=_0x148552;return _0x3964ca&&'mergeTableCells'==_0x3964ca['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Merge\x20cells*')}:void 0x0;}),_0x9cf697['descriptionFactory']['registerDescriptionCallback'](_0x41f7cd=>{if('formatBlock'!=_0x41f7cd['type']&&'formatInline'!=_0x41f7cd['type'])return;const {data:_0x26fccc}=_0x41f7cd;return _0x26fccc?'splitTableCellVertically'==_0x26fccc['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x26fccc['commandName']?{'type':'format','content':wt(_0x23ed5d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb581d4=_0x2dda0f['_acceptFormatSuggestionCallbackFactory']();for(const _0xadd143 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xadd143,'accept',_0xb581d4);for(const _0xa33064 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa33064,'accept',_0x57010d=>{_0x508d48['model']['change'](_0x4fcd8=>{const _0x544a04=Array['from'](_0x57010d)['filter'](_0x4f19f1=>'$graveyard'!=_0x4f19f1['root']['rootName']&&!!_0x4f19f1['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x544a04['length'])return;const _0x4ee204=Array['from'](_0xea0b82['getRanges']())['map'](_0xaa95e5=>at['fromRange'](_0xaa95e5));_0x4fcd8['setSelection'](_0x544a04),_0x508d48['commands']['get'](_0xa33064)['refresh'](),_0x508d48['execute'](_0xa33064,{'forceDefaultExecution':!0x0});const _0x493a6b=_0x4ee204['filter'](_0x29cb95=>'$graveyard'!=_0x29cb95['root']['rootName']);_0x493a6b['length']>0x0&&_0x4fcd8['setSelection'](_0x493a6b);for(const _0x1d2bac of _0x4ee204)_0x1d2bac['detach']();});});_0x9cf697['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3e8692=>{_0x508d48['model']['change'](_0x52e95d=>{const _0x30ff58=Array['from'](_0xea0b82['getRanges']())['map'](_0x56fa13=>at['fromRange'](_0x56fa13));_0x52e95d['setSelection'](_0x3e8692),_0x508d48['commands']['get']('mergeTableCells')['refresh'](),_0x508d48['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5b44ce=_0x30ff58['filter'](_0x211f9d=>'$graveyard'!=_0x211f9d['root']['rootName']);_0x5b44ce['length']>0x0&&_0x52e95d['setSelection'](_0x5b44ce);for(const _0x4f4661 of _0x30ff58)_0x4f4661['detach']();});});for(const _0x588bb7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4944ea=_0x508d48['commands']['get'](_0x588bb7);_0x4944ea['on']('set:isEnabled',(_0x5a1d2c,_0x58adf4,_0x3ce4bf)=>{if(_0x3ce4bf){const _0x483fb7=_0x508d48['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2b1df8=>_0x2b1df8['is']('element','tableCell'));this['_areMergableCells'](_0x4944ea['value'],_0x483fb7)||(_0x5a1d2c['return']=!0x1,_0x5a1d2c['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x386baa=this['editor']['commands']['get']('mergeTableCells'),_0x362fdf=this['editor']['plugins']['get']('TableUtils');if(!_0x386baa['isEnabled'])return!0x1;const _0x3816b2=_0x362fdf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x571170 of _0x3816b2)for(const _0xe636a5 of _0x3816b2)if(_0x571170!=_0xe636a5&&!this['_areMergableCells'](_0x571170,_0xe636a5))return!0x1;return!0x0;}['_areMergableCells'](_0x21a9b5,_0x55a13f){const _0x592a43=this['editor']['plugins']['get']('TrackChangesEditing'),_0x67981d=this['editor']['model']['createRangeOn'](_0x21a9b5),_0x23d4fb=this['editor']['model']['createRangeOn'](_0x55a13f),_0x280dad=new Set(),_0x3b227f=new Set();for(const _0x47bd8d of _0x592a43['getSuggestions']())if(('insertion'==_0x47bd8d['type']||'deletion'==_0x47bd8d['type']||'mergeTableCells'==_0x47bd8d['subType'])&&_0x47bd8d['isInContent']){for(const _0x1984ca of _0x47bd8d['getRanges']())_0x1984ca['containsRange'](_0x67981d,!0x0)&&_0x280dad['add'](_0x47bd8d['type']+':'+_0x47bd8d['author']['id']),_0x1984ca['containsRange'](_0x23d4fb,!0x0)&&_0x3b227f['add'](_0x47bd8d['type']+':'+_0x47bd8d['author']['id']);}if(_0x280dad['size']!=_0x3b227f['size'])return!0x1;for(const _0x201eee of _0x280dad)if(!_0x3b227f['has'](_0x201eee))return!0x1;return!0x0;}},$e=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x40061d=this['editor'];if(!_0x40061d['plugins']['has']('TableEditing'))return;const _0x15b775=_0x40061d['locale'],_0xe4f191=_0x40061d['plugins']['get']('TrackChangesEditing');_0xe4f191['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xe4f191['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xe4f191['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x15b775,'FORMAT_HEADER_ROW')),_0xe4f191['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x15b775,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x50b64c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cd628=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x50b64c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4cd628),_0x50b64c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4cd628),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0xc918da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15f1a9=this['editor']['plugins']['get']('TableUtils');function _0x30095f({showActiveMarker:_0xd4b86=!0x0,setDataAttribute:_0x2e5799=!0x0}={}){return(_0xa16a7c,_0x1b0e74,_0x4c41bf)=>{const {type:_0x25c673,id:_0x5226f1}=nt(_0x1b0e74['markerName']);if(!_0xc918da['hasSuggestion'](_0x5226f1))return;const _0x5d1e97=_0xc918da['getSuggestion'](_0x5226f1),_0x3f4564=_0x5d1e97['data'];if('formatBlock'!=_0x5d1e97['type']||!_0x3f4564||'setTableColumnHeader'!=_0x3f4564['commandName'])return;if(_0x1b0e74['item'])return void _0xa16a7c['stop']();if(!_0x4c41bf['consumable']['consume'](_0x1b0e74['markerRange'],_0xa16a7c['name']))return;const _0x46c6aa=_0x1b0e74['markerRange']['start']['nodeAfter'],_0x5c6955=_0x1b0e74['markerRange']['end']['nodeBefore'],_0x4ee73e=_0x46c6aa['parent']['parent'],{column:_0x1a0a6f}=_0x15f1a9['getCellLocation'](_0x46c6aa),{column:_0x303f37}=_0x15f1a9['getCellLocation'](_0x5c6955);for(let _0x58b872=_0x1a0a6f;_0x58b872<=_0x303f37;_0x58b872++){const _0x2a3e6f=_0x15f1a9['createTableWalker'](_0x4ee73e,{'column':_0x58b872,'includeAllSlots':!0x1});for(const _0x13421b of _0x2a3e6f){const _0x16d200=_0x13421b['cell'],_0x2f481e=_0x4c41bf['mapper']['toViewElement'](_0x16d200);_0x4c41bf['writer']['addClass']('ck-suggestion-marker-'+_0x25c673,_0x2f481e),_0x2e5799&&_0x4c41bf['writer']['setAttribute']('data-suggestion',_0x5226f1,_0x2f481e),_0x4c41bf['mapper']['bindElementToMarker'](_0x2f481e,_0x1b0e74['markerName']),_0xd4b86&&(_0xc918da['activeMarkers']['includes'](_0x1b0e74['markerName'])?_0x4c41bf['writer']['addClass']('ck-suggestion-marker--active',_0x2f481e):_0x4c41bf['writer']['removeClass']('ck-suggestion-marker--active',_0x2f481e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x30095f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x274cad,_0x528aa7,_0x5dd7dd)=>{_0x5dd7dd['options']['showSuggestionHighlights']&&_0x30095f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x274cad,_0x528aa7,_0x5dd7dd);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5b0529,_0xe6842c,_0x380809)=>{const {type:_0x3745db,id:_0x3f3176}=nt(_0xe6842c['markerName']);if(!_0xc918da['hasSuggestion'](_0x3f3176))return;const _0x5d0e80=_0xc918da['getSuggestion'](_0x3f3176),_0x331e92=_0x5d0e80['data'];if('formatBlock'!=_0x5d0e80['type']||!_0x331e92||'setTableColumnHeader'!=_0x331e92['commandName'])return;const _0x398b1b=_0x380809['mapper']['markerNameToElements'](_0xe6842c['markerName']);if(_0x398b1b){for(const _0x3fcf6c of _0x398b1b)_0x380809['writer']['removeClass']('ck-suggestion-marker-'+_0x3745db,_0x3fcf6c),_0x380809['writer']['removeClass']('ck-suggestion-marker--active',_0x3fcf6c),_0x380809['writer']['removeAttribute']('data-suggestion',_0x3fcf6c),_0x380809['mapper']['unbindElementFromMarkerName'](_0x3fcf6c,_0xe6842c['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x373d53=this['editor'],_0x2ea222=_0x373d53['locale'];function _0x59c864(_0x3879b1){return{'type':'format','content':wt(_0x2ea222,'*Format:*\x20%0',_0x3879b1)};}_0x373d53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19de14=>{if('formatBlock'!=_0x19de14['type'])return;const {data:_0x447db7}=_0x19de14;return _0x447db7?'setTableRowHeader'==_0x447db7['commandName']?_0x447db7['commandParams'][0x0]['forceValue']?_0x59c864(wt(_0x2ea222,'FORMAT_HEADER_ROW')):_0x59c864(wt(_0x2ea222,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x447db7['commandName']?_0x447db7['commandParams'][0x0]['forceValue']?_0x59c864(wt(_0x2ea222,'FORMAT_HEADER_COLUMN')):_0x59c864(wt(_0x2ea222,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x32ae6b=this['editor'];if(!_0x32ae6b['plugins']['has']('TableEditing')||!_0x32ae6b['config']['get']('table.enableFooters'))return;const _0x253d6c=_0x32ae6b['locale'],_0x545880=_0x32ae6b['plugins']['get']('TrackChangesEditing');_0x545880['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x545880['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x253d6c,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x139d64{afterInit(){const _0x3ffc86=this['editor'],_0xab79ed=_0x3ffc86['locale'],_0x2effbf=_0x3ffc86['plugins']['get']('TrackChangesEditing');function _0x124c0d(_0x1220e6){return{'type':'format','content':''+wt(_0xab79ed,'*Set\x20table\x20type:*\x20%0',_0x1220e6)};}_0x3ffc86['plugins']['has']('TableLayout')&&(_0x2effbf['enableCommand']('insertTableLayout'),_0x2effbf['enableDefaultAttributesIntegration']('tableType'),_0x2effbf['descriptionFactory']['registerElementLabel'](_0xe54de6=>_0xe54de6['is']('element','table')&&'layout'===_0xe54de6['getAttribute']('tableType'),_0x509a9d=>wt(_0xab79ed,'ELEMENT_LAYOUT_TABLE',_0x509a9d)),_0x2effbf['descriptionFactory']['registerDescriptionCallback'](_0x3f81fe=>{const {data:_0x4d591c}=_0x3f81fe;if(_0x4d591c&&'tableType'==_0x4d591c['key'])switch(_0x4d591c['newValue']){case'layout':return _0x124c0d(wt(_0xab79ed,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x124c0d(wt(_0xab79ed,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](ze['map'](_0x117a52=>[_0x117a52,null]));var Ke=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x49754e=this['editor'];if(!_0x49754e['plugins']['has']('TableClipboard'))return;const _0x4c0500=_0x49754e['plugins']['get']('TrackChangesEditing'),_0x44464e=_0x49754e['plugins']['get']('TableUtils'),_0x461139=_0x49754e['plugins']['get'](xe),_0x45747=_0x49754e['plugins']['get']('TableClipboard'),_0x9c0890=_0x49754e['plugins']['get']('TableSelection'),_0x2c168e=_0x49754e['plugins']['get'](mt);_0x461139['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x49754e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x49754e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x198bee=null,_0x512430=!0x1;_0x2c168e['on']('contentInsertion',(_0x580ae9,_0x486e8f)=>{_0x512430='paste'===_0x486e8f['method'];}),_0x49754e['model']['on']('insertContent',(_0x3714fd,_0x350f24)=>{if(!_0x512430&&null===_0x9c0890['getSelectedTableCells']())return;const [_0x454c14,_0xa0edcf]=_0x350f24,_0x5597ba=_0x350f24[_0x350f24['length']-0x1];_0x5597ba&&_0x5597ba['forceDefaultExecution']||_0x4c0500['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x313399,_0x3e6ba3,_0x14c0f1,_0x306689,_0xd5814c){if(_0x3e6ba3&&!_0x3e6ba3['is']('documentSelection'))return!0x1;const _0x55d01b=_0xd5814c['getTableIfOnlyTableInContent'](_0x313399,_0x14c0f1);if(!_0x55d01b||!qe(_0x55d01b,void 0x0,_0x306689))return!0x1;const _0x5d13d9=_0x306689['getSelectionAffectedTableCells'](_0x14c0f1['document']['selection']);if(!_0x5d13d9['length'])return!0x1;const _0x4b16e7=_0x5d13d9[0x0]['findAncestor']('table'),_0x5629a8=_0x306689['getRowIndexes'](_0x5d13d9),_0xe83349=_0x306689['getColumnIndexes'](_0x5d13d9),_0x510a36={'startRow':_0x5629a8['first'],'endRow':_0x5629a8['last'],'startColumn':_0xe83349['first'],'endColumn':_0xe83349['last']};return 0x1==_0x5d13d9['length']&&(_0x510a36['endRow']+=_0x306689['getRows'](_0x55d01b)-0x1,_0x510a36['endColumn']+=_0x306689['getColumns'](_0x55d01b)-0x1),qe(_0x4b16e7,_0x510a36,_0x306689);}(_0x454c14,_0xa0edcf,_0x49754e['model'],_0x44464e,_0x45747)&&(_0x3714fd['stop'](),_0x198bee={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x49754e['model']['change'](()=>{_0x49754e['model']['insertContent'](_0x350f24[0x0],_0x350f24[0x1],_0x350f24[0x2],{'forceDefaultExecution':!0x0});const _0x5ca1c1=_0xa3c351(),{rowInsertionRanges:_0x2dcc7e,columnInsertionRanges:_0x5d9f45,insertionRanges:_0x283dc5,deletionRanges:_0x4bfa11,cells:_0x323dae}=_0x198bee;_0x2dcc7e['length']&&_0x4c0500['markMultiRangeInsertion'](_0x2dcc7e,'tablePasteRow',{'tablePasteChainId':_0x5ca1c1}),_0x5d9f45['length']&&_0x4c0500['markMultiRangeInsertion'](_0x5d9f45,'tablePasteColumn',{'tablePasteChainId':_0x5ca1c1}),_0x283dc5['length']&&(_0x4c0500['markMultiRangeInsertion'](_0x283dc5,'tablePaste',{'tablePasteChainId':_0x5ca1c1,'skipNestingCheck':!0x0}),_0x283dc5['forEach'](_0x44bc88=>_0x44bc88['detach']?.())),_0x4bfa11['length']&&(_0x4c0500['markMultiRangeDeletion'](_0x4bfa11,'tablePaste',{'tablePasteChainId':_0x5ca1c1,'skipNestingCheck':!0x0}),_0x4bfa11['forEach'](_0x2efe56=>_0x2efe56['detach']?.()));const _0x47659f=_0x4c0500['markMultiRangeBlockFormat'](_0x323dae['map'](({element:_0x5993c9})=>_0x5993c9),{'formatGroupId':_0xa3c351()},[],'tablePasteCell',{'tablePasteChainId':_0x5ca1c1});if(_0x47659f){const _0x29b49a=_0x47659f['getMarkers'](),_0x291a51=[];for(const {element:_0x53e4de,attributes:_0x18fd9e}of _0x323dae){if(!_0x18fd9e)continue;const _0xac5054=_0x49754e['model']['createRangeOn'](_0x53e4de),_0x21016c=_0x29b49a['find'](_0x409e89=>_0x409e89['getRange']()['isEqual'](_0xac5054));_0x21016c&&_0x291a51['push']([_0x21016c['name'],_0x18fd9e]);}_0x291a51['length']&&_0x47659f['setAttribute']('markerAttributes',Object['fromEntries'](_0x291a51));}_0x198bee=null;}));},{'priority':_0x222bed['high']+0xa}),_0x2c168e['on']('contentInsertion',()=>{_0x512430=!0x1;},{'priority':'lowest'}),_0x49754e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3d486c,_0x2f8711)=>{const [_0x1e6002,_0x354724,,_0x4a8b01]=_0x2f8711;if(!_0x198bee)return;_0x3d486c['stop']();const _0x250e43=_0x1e6002['cell'],_0x24ce9e=_0x354724,_0x242a5f=Xe(_0x250e43),_0x11baae=Xe(_0x24ce9e);_0x3d486c['return']=_0x250e43;let _0x5d7f2d=null,_0x1395e0=null;if(_0x11baae||_0x242a5f){if(_0x242a5f&&!_0x11baae){_0x4a8b01['remove'](_0x250e43['getChild'](0x0));for(const _0xf1917c of Array['from'](_0x24ce9e['getChildren']()))_0x4a8b01['insert'](_0xf1917c,_0x250e43,'end');const _0x259a5d=_0x198bee['rowInsertionIndexes']['includes'](_0x1e6002['row']),_0x12b19c=_0x198bee['columnInsertionIndexes']['includes'](_0x1e6002['column']);_0x259a5d||_0x12b19c||(_0x5d7f2d=at['fromRange'](_0x4a8b01['createRangeIn'](_0x250e43)));}else _0x11baae&&!_0x242a5f&&(_0x1395e0=_0x4a8b01['createRangeIn'](_0x250e43));}else{const _0xaf6a19=_0x4a8b01['createElement']('tableCellSuggestion'),_0x4824aa=_0x4a8b01['createElement']('tableCellSuggestion');_0x4a8b01['wrap'](_0x4a8b01['createRangeIn'](_0x250e43),_0x4824aa),_0x4a8b01['insert'](_0xaf6a19,_0x250e43,0x0);for(const _0x3d9c37 of Array['from'](_0x24ce9e['getChildren']()))_0x4a8b01['insert'](_0x3d9c37,_0xaf6a19,'end');_0x5d7f2d=at['fromRange'](_0x4a8b01['createRangeOn'](_0xaf6a19)),_0x1395e0=at['fromRange'](_0x4a8b01['createRangeOn'](_0x4824aa));}const _0x160f53=Array['from'](_0x24ce9e['getAttributes']())['filter'](([_0x5418bc])=>ze['includes'](_0x5418bc));_0x198bee['cells']['push']({'element':_0x250e43,'attributes':_0x160f53['length']?Object['fromEntries'](_0x160f53):null}),_0x5d7f2d&&_0x198bee['insertionRanges']['push'](_0x5d7f2d),_0x1395e0&&_0x198bee['deletionRanges']['push'](_0x1395e0);},{'priority':'high'}),_0x44464e['on']('insertColumns',(_0x1c4e88,_0x173203)=>{const [_0x3c9305,_0x451371={}]=_0x173203;if(!_0x198bee)return;const _0x35549c=_0x451371['at']||0x0,_0x30f230=_0x451371['columns']||0x1;_0x198bee['columnInsertionIndexes']=new Array(_0x30f230)['fill'](_0x35549c)['map']((_0x5af027,_0x4a63dc)=>_0x5af027+_0x4a63dc);for(const {cell:_0x113e00}of _0x44464e['createTableWalker'](_0x3c9305,{'startColumn':_0x35549c,'endColumn':_0x35549c+_0x30f230-0x1}))_0x198bee['columnInsertionRanges']['push'](_0x49754e['model']['createRangeOn'](_0x113e00));},{'priority':'low'}),_0x44464e['on']('insertRows',(_0x145920,_0x7404ae)=>{const [_0x5cbde8,_0x2cb7d5={}]=_0x7404ae;if(!_0x198bee)return;const _0xf4b912=_0x2cb7d5['at']||0x0,_0x13ca8=_0x2cb7d5['rows']||0x1;_0x198bee['rowInsertionIndexes']=new Array(_0x13ca8)['fill'](_0xf4b912)['map']((_0x7a6d9b,_0x5f51f4)=>_0x7a6d9b+_0x5f51f4);for(const {cell:_0x2187b6}of _0x44464e['createTableWalker'](_0x5cbde8,{'startRow':_0xf4b912,'endRow':_0xf4b912+_0x13ca8-0x1}))_0x198bee['rowInsertionRanges']['push'](_0x49754e['model']['createRangeOn'](_0x2187b6));},{'priority':'low'}),_0x4c0500['descriptionFactory']['registerDescriptionCallback'](_0x53ead6=>{if(_0x53ead6['subType']&&_0x53ead6['subType']['startsWith']('tablePaste'))return _0x53ead6['previous']?{}:{'type':'insertion','content':wt(_0x49754e['locale'],'*Replace\x20table\x20cells*')};});const _0x1fa500=()=>!0x1;for(const _0x943d49 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion',_0x943d49,'join',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('deletion',_0x943d49,'join',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x943d49,'join',_0x1fa500);_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fa500),_0x4c0500['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x358423,_0x39c235,_0x395507)=>{const _0x50d52a=_0x358423['map'](_0x45e0c5=>_0x45e0c5['getContainedElement']())['filter'](_0x8bc758=>_0x8bc758),_0x3a6a6a=new Map(_0x50d52a['map'](_0x3816d8=>[_0x3816d8,null]));if(_0x198bee){for(const {element:_0x349c2d,attributes:_0x2973d8}of _0x198bee['cells'])_0x2973d8&&_0x3a6a6a['set'](_0x349c2d,_0x2973d8);}else{if(_0x395507&&_0x395507['markerAttributes'])for(const [_0x33f9d8,_0x42a3b8]of Object['entries'](_0x395507['markerAttributes'])){const _0xa980c6=_0x49754e['model']['markers']['get'](_0x33f9d8),_0x1321e0=_0xa980c6?_0xa980c6['getRange']()['getContainedElement']():null;_0x1321e0&&_0x3a6a6a['set'](_0x1321e0,_0x42a3b8);}}_0x49754e['model']['change'](_0xdf26e5=>{for(const [_0x10c09e,_0x134e65]of _0x3a6a6a)_0xdf26e5['setAttributes']({...je,..._0x134e65},_0x10c09e);});});const _0x500b3a=(_0x280e2c,_0x366df3)=>{_0x4c0500['_suggestionFactory']['registerCustomCallback'](_0x280e2c,'tablePaste',_0x366df3,(_0x4019ac,_0x577468,_0x5b6646)=>{_0x49754e['model']['change'](_0x5664d8=>{const _0x371f36=[];for(const _0x16633a of _0x4019ac){const _0x515aab=_0x16633a['start']['nodeAfter'];_0x515aab['is']('element','tableCellSuggestion')&&_0x371f36['push'](_0x515aab);}_0x4c0500['_suggestionFactory']['getSuggestionCallback'](_0x280e2c,null,_0x366df3)(_0x4019ac,_0x577468,_0x5b6646);for(const _0x422aa4 of _0x371f36)'$graveyard'!=_0x422aa4['root']['rootName']&&_0x5664d8['unwrap'](_0x422aa4);});});};_0x500b3a('insertion','accept'),_0x500b3a('insertion','discard'),_0x500b3a('deletion','accept'),_0x500b3a('deletion','discard'),_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1dd3ec=>{const _0x8050aa=_0x1dd3ec['map'](_0x3ef13f=>_0x3ef13f['getContainedElement']()),_0x16978a=_0x8050aa[0x0]['findAncestor']('table'),{minRow:_0x2b5348,maxRow:_0x1a1c0f}=_0x461139['_getCoordsForCells'](_0x8050aa);_0x44464e['removeRows'](_0x16978a,{'at':_0x2b5348,'rows':_0x1a1c0f-_0x2b5348+0x1});}),_0x4c0500['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55a6dc=>{const _0x2413c2=_0x55a6dc['map'](_0x353163=>_0x353163['getContainedElement']()),_0x520a95=_0x2413c2[0x0]['findAncestor']('table'),{minColumn:_0x2ba93b,maxColumn:_0x4a629b}=_0x461139['_getCoordsForCells'](_0x2413c2);_0x44464e['removeColumns'](_0x520a95,{'at':_0x2ba93b,'columns':_0x4a629b-_0x2ba93b+0x1});});const _0x78cbbe=(_0x23e4e4,_0x4fbe12)=>{if(!_0x4fbe12['subType']||!_0x4fbe12['subType']['startsWith']('tablePaste'))return;const _0x2249b2=_0x4fbe12['attributes']['tablePasteChainId'],_0x3671a8=_0x4c0500['getSuggestions']()['filter'](_0x27bb3a=>_0x27bb3a['isInContent']&&_0x27bb3a['attributes']&&_0x27bb3a['attributes']['tablePasteChainId']==_0x2249b2);_0x3671a8['length']&&_0x4fbe12['getAllAdjacentSuggestions']()['length']!=_0x3671a8['length']&&_0x3671a8['reduce']((_0x3a5de7,_0x32efa4)=>(_0x3a5de7['next']=_0x32efa4,_0x32efa4['previous']=_0x3a5de7,_0x32efa4));};function _0x4f8608(_0x257b18,_0x4e0264=!0x0){const {id:_0x2c9976,authorId:_0x3dce05}=nt(_0x257b18['markerName']),_0x5d9742=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x344978=_0x4c0500['activeMarkers']['includes'](_0x257b18['markerName']);return _0x344978&&_0x5d9742['push']('ck-suggestion-marker--active'),{'classes':_0x5d9742,'attributes':{'data-suggestion':_0x2c9976,'data-author-id':_0x3dce05},'priority':_0x344978&&_0x4e0264?0xbc2:0xbb8};}_0x4c0500['on']('suggestionLoaded',_0x78cbbe,{'priority':'high'}),_0x4c0500['on']('suggestionUnloaded',_0x78cbbe,{'priority':'high'}),_0x49754e['model']['document']['registerPostFixer'](()=>{let _0x2820c4=!0x1;const _0xc361f8=Array['from'](_0x49754e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bd382,data:_0x417a15}of _0xc361f8){const {group:_0x4cb1c7,type:_0x18526c,id:_0xe49751}=nt(_0x4bd382);if('suggestion'!=_0x4cb1c7||'deletion'!=_0x18526c||_0x417a15['oldRange'])continue;if(!_0x4c0500['hasSuggestion'](_0xe49751))continue;const _0x51e6f0=_0x4c0500['getSuggestion'](_0xe49751)['getRanges'](),_0x3b8e63=_0x49754e['plugins']['get']('Users')['me'];for(const _0x552808 of _0x4c0500['getSuggestions']())if(_0x552808['isInContent']&&_0x552808['author']==_0x3b8e63&&'formatBlock'==_0x552808['type']&&'tablePasteCell'==_0x552808['subType']&&_0x552808['getRanges']()['every'](_0x328931=>_0x51e6f0['some'](_0x215feb=>_0x215feb['containsRange'](_0x328931,!0x0)))){for(const _0xcb3753 of _0x552808['getAllAdjacentSuggestions']())_0xcb3753['isInContent']&&(_0xcb3753['discard'](),_0x2820c4=!0x0);}}return _0x2820c4;}),_0x49754e['model']['document']['registerPostFixer'](_0x2f4b70=>{const _0x184a35=_0x49754e['commands']['get']('redo');if(!_0x184a35||!_0x184a35['_createdBatches']['has'](_0x2f4b70['batch']))return!0x1;let _0x449e02=!0x1;const _0x3cca06=_0x49754e['plugins']['get']('Users')['me'],_0x419ab1=_0x49754e['model']['document']['differ']['getChanges'](),_0x3be0ef=Array['from'](_0x49754e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3f3294,data:_0x55d88b})=>{const {group:_0x39218b,subType:_0x42dff4,authorId:_0xe817c}=nt(_0x3f3294);return'suggestion'==_0x39218b&&'tablePaste'==_0x42dff4&&_0xe817c==_0x3cca06['id']&&!_0x55d88b['oldRange'];});for(const _0x37f3d7 of _0x419ab1){if('insert'!=_0x37f3d7['type']||'tableCellSuggestion'!=_0x37f3d7['name']||0x1!=_0x37f3d7['length'])continue;const _0x170092=_0x2f4b70['createRange'](_0x37f3d7['position'],_0x37f3d7['position']['getShiftedBy'](0x1));if(!_0x3be0ef['find'](({data:_0x4d49c0})=>_0x4d49c0['newRange']['isEqual'](_0x170092))){for(const {name:_0x4bdf25,data:_0x571a1e}of _0x3be0ef)if(_0x170092['containsRange'](_0x571a1e['newRange'])){_0x2f4b70['updateMarker'](_0x4bdf25,{'range':_0x170092}),_0x449e02=!0x0;break;}}}return _0x449e02;}),_0x49754e['model']['document']['registerPostFixer'](_0x4383dd=>{let _0x18cdac=!0x1;const _0x1a1d48=_0x49754e['plugins']['get']('Users')['me'],_0x4b66cf=_0x4c0500['getSuggestions']()['filter'](_0x2574b6=>_0x2574b6['isInContent']&&_0x2574b6['author']==_0x1a1d48),_0x464744=new Set(),_0xb93c64=new Set();for(const _0x280c27 of _0x4b66cf)if('tablePaste'==_0x280c27['subType'])for(const _0x446cef of _0x280c27['getMarkers']()){const _0x2652fd=_0x446cef['getRange']()['getContainedElement']();if(_0x2652fd){if(_0x2652fd['is']('element','tableCellSuggestion')&&Xe(_0x2652fd)){_0x280c27['removeMarker'](_0x446cef['name']),_0x464744['add'](_0x2652fd),_0x18cdac=!0x0;const _0x5b1722=_0x2652fd['nextSibling'],_0x226d86=_0x2652fd['previousSibling'],_0x587a9c=_0x5b1722&&_0x5b1722['is']('element','tableCellSuggestion'),_0x350879=_0x226d86&&_0x226d86['is']('element','tableCellSuggestion');_0x587a9c&&!_0x464744['has'](_0x5b1722)&&_0xb93c64['add'](_0x5b1722),_0x350879&&!_0x464744['has'](_0x226d86)&&_0xb93c64['add'](_0x226d86);}else _0x2652fd['is']('element','paragraph')&&_0x2652fd['isEmpty']&&(_0x280c27['removeMarker'](_0x446cef['name']),_0x18cdac=!0x0);}}else{if('tablePasteCell'==_0x280c27['subType']){if(!_0x280c27['attributes']||!_0x280c27['attributes']['tablePasteChainId'])continue;const _0x5c6ac9=_0x280c27['attributes']['markerAttributes'];if(_0x5c6ac9&&Object['keys'](_0x5c6ac9)['length'])continue;const _0x59d0b9=_0x280c27['attributes']['tablePasteChainId'];let _0x4161c8=!0x0,_0x2d0a9c=!0x0;for(const _0x3b13a4 of _0x4b66cf)if(_0x3b13a4['subType']&&_0x3b13a4['subType']['startsWith']('tablePaste')){if(!_0x3b13a4['attributes']['tablePasteChainId']){_0x2d0a9c=!0x1;break;}if(_0x3b13a4['id']!=_0x280c27['id']&&_0x3b13a4['attributes']['tablePasteChainId']==_0x59d0b9){_0x4161c8=!0x1;break;}}_0x2d0a9c&&_0x4161c8&&(_0x280c27['removeMarkers'](),_0x18cdac=!0x0);}}for(const _0x3475d0 of _0x464744)_0x4383dd['remove'](_0x3475d0);for(const _0x1a5745 of _0xb93c64)_0x4383dd['unwrap'](_0x1a5745);return _0x18cdac;}),_0x49754e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x15b008=>_0x4f8608(_0x15b008),'converterPriority':'high'}),_0x49754e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13a4a0,_0x535436)=>_0x535436['options']['showSuggestionHighlights']?_0x4f8608(_0x13a4a0,!0x1):null,'converterPriority':'high'});const _0x31b3dd=_0x49754e['editing']['view'];this['listenTo'](_0x31b3dd['document'],'clipboardOutput',(_0xdc5a58,_0x1f7031)=>{const _0x2636da=[];for(const _0x13780d of _0x31b3dd['createRangeIn'](_0x1f7031['content'])['getItems']())_0x13780d['is']('element','suggestion-td')&&_0x2636da['push'](_0x13780d);_0x31b3dd['change'](_0x2b1ddf=>{for(const _0x101e5a of _0x2636da)_0x2b1ddf['move'](_0x2b1ddf['createRangeIn'](_0x101e5a),_0x2b1ddf['createPositionBefore'](_0x101e5a)),_0x2b1ddf['remove'](_0x101e5a);});});}};function Xe(_0x5c5e30){if(_0x5c5e30['isEmpty'])return!0x0;const _0x33961f=_0x5c5e30['getChild'](0x0);return _0x33961f['is']('element','paragraph')&&_0x33961f['isEmpty'];}function qe(_0xc66719,_0x3f4388={},_0x13fc3b){for(const {isAnchor:_0x45d3e8,cellHeight:_0x4563dc,cellWidth:_0x553941}of _0x13fc3b['createTableWalker'](_0xc66719,{'includeAllSlots':!0x0,..._0x3f4388}))if(!_0x45d3e8||0x1!=_0x4563dc||0x1!=_0x553941)return!0x1;return!0x0;}var Ye=class extends _0x139d64{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x6fb5bb=this['editor']['plugins']['get']('TrackChangesEditing');_0x6fb5bb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x6fb5bb['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x6fb5bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x6fb5bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x18d125=_0x6fb5bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x6fb5bb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3526ad,_0x5924f6)=>{_0x18d125(_0x3526ad,_0x5924f6),this['_restoreCellWidths'](_0x3526ad[0x0]['start']['nodeAfter'],_0x5924f6['commandParams'][0x0]['cellWidths']);}),_0x6fb5bb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x5c24ec,_0x35ffd8){const _0x3cf742=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdcaa67=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50ab00=_0x35ffd8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x23bbdc=_0xdcaa67['getColumnGroupElement'](_0x50ab00);let _0x3dd440=_0x23bbdc?_0xdcaa67['getTableColumnsWidths'](_0x23bbdc):null,_0xd58d3=_0x50ab00['getAttribute']('tableWidth')||null;const _0x2ca133=_0x35ffd8['tableWidth']||_0xd58d3,_0x4f83e9=_0x35ffd8['columnWidths']||_0x3dd440;let _0xc9543b=this['_getCellWidths'](_0x50ab00);const _0x23ea93=this['_foldResizeTableSuggestion'](_0x50ab00);_0x23ea93&&(_0xd58d3=_0x23ea93['tableWidth'],_0x3dd440=_0x23ea93['columnWidths'],_0xc9543b=_0x23ea93['cellWidths']||_0xc9543b),_0x5c24ec({'table':_0x50ab00,'tableWidth':_0x2ca133,'columnWidths':_0x4f83e9}),_0x3cf742['markBlockFormat'](_0x50ab00,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd58d3,'columnWidths':_0x3dd440,'cellWidths':_0xc9543b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x4227d5,_0x13a155={}){if(void 0x0===_0x13a155['value']||''===_0x13a155['value'])return void _0x4227d5(_0x13a155);const _0x454194=this['editor']['plugins']['get']('TrackChangesEditing'),_0x396391=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x15bc4e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x13a155['batch']||(_0x13a155['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x13a155['batch'],()=>{const _0x3a1429=_0x396391['getColumnGroupElement'](_0x15bc4e);let _0x151b49=_0x3a1429?_0x396391['getTableColumnsWidths'](_0x3a1429):null,_0x22e469=_0x15bc4e['getAttribute']('tableWidth')||null,_0x13ced9=this['_getCellWidths'](_0x15bc4e);const _0x10b1ae=this['_foldResizeTableSuggestion'](_0x15bc4e,!0x0);_0x10b1ae&&(_0x22e469=_0x10b1ae['tableWidth'],_0x151b49=_0x10b1ae['columnWidths'],_0x13ced9=_0x10b1ae['cellWidths']||_0x13ced9),_0x4227d5(_0x13a155),_0x454194['markBlockFormat'](_0x15bc4e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x22e469,'columnWidths':_0x151b49,'cellWidths':_0x13ced9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2cdbf8,_0x781ff7=!0x1){const _0x1265eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbea2c1=this['editor']['plugins']['get']('Users')['me'];for(const _0x34aaa5 of _0x1265eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x147c3a=_0x34aaa5['getContainedElement']();if('resizeTable'===_0x34aaa5['subType']&&_0x147c3a===_0x2cdbf8){_0x34aaa5['author']!==_0xbea2c1&&(_0x781ff7?_0x34aaa5['removeMarkers']():_0x34aaa5['discard']());const _0x484c48=_0x34aaa5['data']['commandParams'];return{'tableWidth':_0x484c48[0x0]['tableWidth'],'columnWidths':_0x484c48[0x0]['columnWidths'],'cellWidths':_0x484c48[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x168fc9){const _0x1f092c=[];for(const _0x2499c9 of _0x168fc9['getChildren']())if(_0x2499c9['is']('element','tableRow')){for(const _0x23163a of _0x2499c9['getChildren']())_0x1f092c['push'](_0x23163a['getAttribute']('tableCellWidth')||null);}return _0x1f092c;}_restoreCellWidths(_0x1572da,_0x5d1b6a){_0x5d1b6a&&this['editor']['model']['change'](_0x23d65a=>{let _0x154f67=0x0;for(const _0x4281c2 of _0x1572da['getChildren']())if(_0x4281c2['is']('element','tableRow'))for(const _0x5d7aa7 of _0x4281c2['getChildren']()){const _0xc538a7=_0x5d1b6a[_0x154f67++];_0xc538a7&&_0x23d65a['setAttribute']('tableCellWidth',_0xc538a7,_0x5d7aa7);}});}handleSuggestionDescription(_0x1edfe5){if('formatBlock'!=_0x1edfe5['type']&&'formatInline'!=_0x1edfe5['type'])return;const {data:_0x3941ee}=_0x1edfe5;return _0x3941ee&&'resizeTable'===_0x3941ee['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x139d64{afterInit(){const _0x265918=this['editor'];_0x265918['plugins']['has']('Template')&&_0x265918['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x139d64{afterInit(){const _0x40ee26=this['editor'];if(!_0x40ee26['commands']['get']('insertTableOfContents'))return;_0x40ee26['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x43afa0=_0x40ee26['plugins']['get']('TrackChangesEditing'),_0x3187f7=_0x40ee26['locale'];_0x43afa0['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5d50ab=>wt(_0x3187f7,'ELEMENT_TABLE_OF_CONTENTS',_0x5d50ab));}},Je=class extends _0x139d64{afterInit(){const _0x3cd2a4=this['editor'];_0x3cd2a4['plugins']['has']('Title')&&(_0x3cd2a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x3cd2a4['locale'],'ELEMENT_TITLE')),_0x3cd2a4['model']['document']['registerPostFixer'](_0x4da501=>{let _0x248e91=!0x1;const _0x1df19f=Array['from'](_0x3cd2a4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35831c,data:_0x47d1a9}of _0x1df19f){const {group:_0x11d342}=nt(_0x35831c);if('suggestion'!==_0x11d342||!_0x47d1a9['newRange'])continue;const _0x5957f7=_0x47d1a9['newRange'],_0x225c5a=_0x5957f7['end']['nodeBefore'];if(!_0x225c5a||!_0x225c5a['is']('element','title-content'))continue;if(!_0x5957f7['start']['isTouching'](_0x5957f7['end']))continue;const _0x3d0a5e=_0x3cd2a4['model']['schema']['getNearestSelectionRange'](_0x5957f7['end'],'forward');if(_0x3d0a5e&&_0x3d0a5e['isCollapsed']){const _0xb121ca=_0x4da501['createRange'](_0x5957f7['start'],_0x3d0a5e['start']);_0xb121ca['isEqual'](_0x5957f7)||(_0x4da501['updateMarker'](_0x35831c,{'range':_0xb121ca}),_0x248e91=!0x0);}_0x248e91||(_0x4da501['removeMarker'](_0x35831c),_0x248e91=!0x0);}return _0x248e91;}));}},tn=class extends _0x139d64{afterInit(){const _0x421392=this['editor'],_0x20d8d5=_0x421392['plugins']['get']('TrackChangesEditing');_0x421392['plugins']['has']('Uploadcare')&&(_0x20d8d5['enableCommand']('uploadcare'),_0x421392['plugins']['has']('UploadcareImageEdit')&&(_0x20d8d5['enableCommand']('uploadcareImageEdit'),_0x20d8d5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x20d8d5['descriptionFactory']['registerDescriptionCallback'](_0x10faa9=>{if('attribute'!=_0x10faa9['type'])return;const {data:_0x5543e5}=_0x10faa9;return _0x5543e5&&'uploadcareImageId'==_0x5543e5['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x139d64{afterInit(){const _0x3c09a8=this['editor'],_0x147584=_0x3c09a8['plugins']['get']('TrackChangesEditing');_0x3c09a8['plugins']['has']('UndoEditing')&&(_0x147584['enableCommand']('undo'),_0x147584['enableCommand']('redo'));}},nn=class extends _0x139d64{static get requires(){return[xe];}afterInit(){const _0x4fbe42=this['editor'];_0x4fbe42['plugins']['has']('TableCaptionEditing')&&_0x4fbe42['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x139d64{tableProperties;tableCellProperties;constructor(_0xf2d701){super(_0xf2d701),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 _0x2b3f3c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x431593 of this['tableProperties'])_0x2b3f3c['enableCommand'](_0x431593,(_0x3977f3,_0x2d2e99)=>{const _0x1716a2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x431593,[_0x1716a2],this['tableProperties'],'tableProperties',_0x3977f3,_0x2d2e99);});_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b3f3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x6a27a2,_0x1d0c4f)=>this['handleDiscardAction'](this['tableProperties'],_0x6a27a2,_0x1d0c4f)),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x549a6b of this['tableCellProperties'])this['editor']['commands']['get'](_0x549a6b)&&_0x2b3f3c['enableCommand'](_0x549a6b,(_0x62e25,_0x4a3038)=>{const _0x2ef35c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x549a6b,_0x2ef35c,this['tableCellProperties'],'tableCellProperties',_0x62e25,_0x4a3038);});_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b3f3c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xbfd991,_0xc63845)=>this['handleDiscardAction'](this['tableCellProperties'],_0xbfd991,_0xc63845)),_0x2b3f3c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2b3f3c['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2b3f3c['descriptionFactory']['registerDescriptionCallback'](_0x45e64a=>this['handleSuggestionDescription'](_0x45e64a)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x18c946,_0x4f9be7,_0x290ed9,_0x56e760,_0x3808d2,_0x457c47){const _0x301510=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x457c47['batch'],()=>{for(const _0x3fe7e4 of _0x4f9be7)if(this['_getSuggestion'](_0x3fe7e4,_0x56e760))_0x3808d2(_0x457c47);else{const _0x1ff66b={};for(const _0x4dd945 of _0x290ed9){const _0x5514ab=_0x3fe7e4['getAttribute'](_0x4dd945);void 0x0!==_0x5514ab&&(_0x1ff66b[_0x4dd945]=_0x5514ab);}const _0x141d17=this['_getResizedColumnWidths'](_0x3fe7e4);_0x141d17&&(_0x1ff66b['columnWidths']=_0x141d17),_0x3808d2(_0x457c47),_0x301510['markBlockFormat'](_0x3fe7e4,{'commandParams':[_0x1ff66b]},[],_0x56e760);}});}handleDiscardAction(_0x429518,_0x2c9e0,_0xafb59e){const _0x552957=_0x2c9e0[0x0]['start']['nodeAfter'],_0x5a5b5e=_0xafb59e['commandParams'][0x0];this['editor']['model']['change'](_0x4af292=>{for(const _0x191aa2 of _0x429518)void 0x0!==_0x5a5b5e[_0x191aa2]?_0x4af292['setAttribute'](_0x191aa2,_0x5a5b5e[_0x191aa2],_0x552957):_0x4af292['removeAttribute'](_0x191aa2,_0x552957);if(_0x5a5b5e['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x277b33=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2aa4a0=_0x277b33['getColumnGroupElement'](_0x552957);if(_0x2aa4a0){const _0x23d01e=_0x277b33['getTableColumnsWidths'](_0x2aa4a0),_0x4117a8=_0x552957['getAttribute']('tableWidth');if(('string'==typeof _0x4117a8&&_0x4117a8['trim']()['endsWith']('px'))!==_0x23d01e['some'](_0x2de49a=>'string'==typeof _0x2de49a&&_0x2de49a['endsWith']('px'))){const _0xf05d3=_0x277b33['getTableColumnElements'](_0x2aa4a0);_0x5a5b5e['columnWidths']['forEach']((_0x48fa38,_0x1f6ad8)=>{_0xf05d3[_0x1f6ad8]&&_0x4af292['setAttribute']('columnWidth',_0x48fa38,_0xf05d3[_0x1f6ad8]);});}}}});}_getResizedColumnWidths(_0x38956a){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x38956a['is']('element','table'))return;const _0x2d742a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x320f31=_0x2d742a['getColumnGroupElement'](_0x38956a);return _0x320f31?_0x2d742a['getTableColumnsWidths'](_0x320f31):void 0x0;}handleSuggestionDescription(_0xab1cf5){if(_0xab1cf5['data'])switch(_0xab1cf5['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xa552c3,_0x4daa67){const _0x1e140b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3954bd of _0x1e140b['getSuggestions']({'skipNotAttached':!0x0})){const _0x49c33e=_0x3954bd['getContainedElement']();if(_0x3954bd['subType']===_0x4daa67&&_0x49c33e===_0xa552c3)return _0x3954bd;}return null;}_registerTablePropertiesAttributes(){const _0x223d39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52d6dd=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x215996 of _0x52d6dd){const _0x33ec42=_0x215996['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x223d39['descriptionFactory']['registerAttributeLabel'](_0x215996,wt(this['editor']['locale'],'FORMAT_'+_0x33ec42));}}},rn=class extends _0x139d64{afterInit(){const _0x53f252=this['editor'];if(!_0x53f252['plugins']['has']('LineHeight'))return;const _0x34729d=_0x53f252['plugins']['get']('TrackChangesEditing'),_0x53f915=_0x53f252['locale'];_0x34729d['enableDefaultAttributesIntegration']('lineHeight'),_0x34729d['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x53f915,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x4b96dc){return'marker'==_0x4b96dc['type']&&_0x4b96dc['name']['startsWith']('$markedRemove');}function cn(_0x5c124e){return _0x5c124e?[_0x5c124e]:[];}var ln=class extends _0x139d64{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x72b439,_0x159bfb,_0x1e3a1d,_0x3fa834,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x163cde){super(_0x163cde),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x465bce,_0x21e7c,_0x562305,_0x3ac822)=>{this['_model']['change'](()=>{for(const _0x2f83ad of[..._0x3ac822,..._0x562305])this['_model']['markers']['has'](_0x2f83ad)&&_0x163cde['editing']['reconvertMarker'](_0x2f83ad);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x163cde['plugins']['get'](_0x72b439),this['_suggestionsConversion']=_0x163cde['plugins']['get'](_0x159bfb),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x163cde['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x163cde['config']['get']('trackChanges.trackFormatChanges'),_0x163cde['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x163cde['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x163cde,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x5e07e2=this['editor'];_0x5e07e2['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1205a7,{writer:_0x119dcd})=>{let _0x563575='suggestion:'+_0x1205a7['getAttribute']('suggestion-type')+':'+_0x1205a7['getAttribute']('id');return _0x1205a7['getAttribute']('marker-count')&&(_0x563575+=':'+_0x1205a7['getAttribute']('marker-count')),_0x119dcd['createElement']('$marker',{'data-name':_0x563575});}}),_0x5e07e2['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e07e2['model']['document']['registerPostFixer'](_0x46944e=>{let _0x2183f8=!0x1;const _0x1c9430=Array['from'](_0x5e07e2['model']['document']['differ']['getChangedMarkers']()),_0x530f18=new Set();for(const {name:_0x580ef6,data:_0x43df25}of _0x1c9430){const {group:_0x3f0894,type:_0x5367b1,subType:_0x11e020,id:_0x115d90}=nt(_0x580ef6);if('suggestion'!==_0x3f0894)continue;const _0x4f7599=_0x11e020?'suggestion:'+_0x5367b1+':'+_0x11e020+':'+_0x115d90:'suggestion:'+_0x5367b1+':'+_0x115d90,_0x5c102c=_0x5e07e2['model']['markers']['getMarkersGroup'](_0x4f7599),_0x3fe0d3=_0x5e07e2['model']['markers']['get'](_0x580ef6),_0x2a1299=this['_suggestions']['get'](_0x115d90);if(null!=_0x43df25['newRange']){'formatInline'==_0x5367b1&&(_0x2183f8=_0x2183f8||gn(_0x43df25['newRange'],_0x580ef6,_0x46944e,_0x5e07e2['model']['schema']));const _0x223b35='attribute'==_0x5367b1&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x11e020)),_0x17ab5c='attribute'==_0x5367b1&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x11e020));if(_0x43df25['newRange']['isCollapsed']||'$graveyard'==_0x43df25['newRange']['root']['rootName']||'formatBlock'==_0x5367b1&&!mn(_0x43df25['newRange'])||_0x223b35&&!mn(_0x43df25['newRange'])||_0x17ab5c&&En(_0x43df25['newRange'])||'deletion'==_0x5367b1&&En(_0x43df25['newRange'])||_0x3fe0d3&&Tn(_0x3fe0d3,_0x5c102c))_0x46944e['removeMarker'](_0x580ef6),_0x2183f8=!0x0;else{if(!_0x2a1299||!_0x2a1299['isInContent'])continue;if(_0x43df25['newRange']&&_0x43df25['oldRange']&&_0x43df25['newRange']['isEqual'](_0x43df25['oldRange']))continue;_0x530f18['add'](_0x2a1299);}}}return _0x530f18['size']>0x0&&(_0x2183f8=!!this['_joinWithAdjacentSuggestions'](_0x530f18)||_0x2183f8),_0x2183f8;}),_0x5e07e2['model']['document']['registerPostFixer'](_0x1759fb=>{let _0x20d970=!0x1;for(const _0x2f4b7b of _0x5e07e2['model']['document']['differ']['getChanges']())if('insert'==_0x2f4b7b['type'])for(const _0xd09637 of this['_suggestions']['values']()){if(_0xd09637['isMultiRange']||!_0xd09637['isInContent'])continue;const _0x3600fb='formatBlock'==_0xd09637['type'],_0x235ece=this['_getAttributeKey'](_0xd09637),_0x2ae63a=_0x235ece&&this['_suggestionsConversion']['isBlockAttribute'](_0x235ece);if(!_0x3600fb&&!_0x2ae63a)continue;const _0x3fabaf=_0xd09637['getFirstRange']();if(_0x3fabaf['start']['parent']!=_0x3fabaf['end']['parent']&&!_0x3fabaf['end']['isAtEnd']){const _0x309357=_0x5e07e2['model']['createPositionAt'](_0x3fabaf['start']['nodeAfter'],'end'),_0x38c8a8=_0x5e07e2['model']['createRange'](_0x3fabaf['start'],_0x309357);_0x1759fb['updateMarker'](_0xd09637['getFirstMarker'](),{'range':_0x38c8a8}),_0x20d970=!0x0;}}return _0x20d970;}),_0x5e07e2['model']['document']['registerPostFixer'](_0x771fe8=>this['_processAttributeChanges'](_0x771fe8)),_0x5e07e2['model']['document']['registerPostFixer'](_0x30f8a4=>!_0x30f8a4['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30f8a4)),_0x5e07e2['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e07e2['model']['document']['on']('change:data',(_0x285e37,_0x290862)=>{if(!_0x290862['isLocal']||_0x290862['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x336a3f=_0x5e07e2['model']['document']['differ']['getChanges']();if(0x0==_0x336a3f['length'])return;const _0x98c939=[],_0x293c81=_0x336a3f['filter'](_0x5431f8=>'attribute'==_0x5431f8['type']),_0x584b92=_0x336a3f['filter'](_0x491402=>'insert'==_0x491402['type']&&'$text'!=_0x491402['name']);for(const _0x136114 of _0x293c81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x136114['attributeKey'])&&_0x98c939['push']({'key':_0x136114['attributeKey'],'newValue':_0x136114['attributeNewValue'],'oldValue':_0x136114['attributeOldValue'],'range':_n(_0x136114['range'],_0x5e07e2['model'])});for(const _0x37281e of _0x584b92){if('rename'!=_0x37281e['action']&&'refresh'!=_0x37281e['action'])continue;const _0x12af8e=pn(_0x37281e['position']['nodeAfter'],_0x5e07e2['model']),_0x1e051b=_0x37281e['before'];'rename'==_0x37281e['action']&&_0x98c939['push']({'key':on,'newValue':_0x37281e['name'],'oldValue':_0x1e051b['name'],'range':_0x12af8e});for(const [_0x2fe851,_0x10cbaf]of _0x1e051b['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2fe851))continue;const _0x1f38e8=_0x37281e['attributes']['get'](_0x2fe851);_0x10cbaf!==_0x1f38e8&&_0x98c939['push']({'key':_0x2fe851,'newValue':_0x1f38e8,'oldValue':_0x10cbaf,'range':_0x12af8e});}for(const [_0x2518c4,_0x3c4b8e]of _0x37281e['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x2518c4)&&(_0x1e051b['attributes']['has'](_0x2518c4)||_0x98c939['push']({'key':_0x2518c4,'newValue':_0x3c4b8e,'oldValue':null,'range':_0x12af8e}));}0x0!=_0x98c939['length']&&_0x5e07e2['model']['enqueueChange'](_0x290862,_0xc869b4=>{const _0x40340e=_0xa3c351();for(const {range:_0x3a124d,key:_0x532700,oldValue:_0x19fe5c,newValue:_0x2ebbc5}of _0x98c939)this['markAttributeChange'](_0x3a124d,_0x532700,_0x19fe5c,_0x2ebbc5,{'groupId':_0x40340e});this['_reduceExistingSuggestions'](_0xc869b4,_0x98c939);});},{'priority':'lowest'}),_0x5e07e2['model']['markers']['on']('update:suggestion',(_0x516b5a,_0x5de69f,_0x56b3d5)=>{if(null==_0x56b3d5){const {id:_0x41bceb}=nt(_0x5de69f['name']),_0x48f138=this['_suggestions']['get'](_0x41bceb);_0x48f138&&_0x48f138['addMarkerName'](_0x5de69f['name']);}}),_0x5e07e2['model']['document']['on']('change:data',()=>{const _0x1f14ea=Array['from'](_0x5e07e2['model']['document']['differ']['getChangedMarkers']())['filter'](_0x289ae1=>'suggestion'===nt(_0x289ae1['name'])['group']);if(0x0===_0x1f14ea['length'])return;_0x1f14ea['sort']((_0x4ff617,_0x4d05cc)=>{const _0x57ef20=_0x4ff617['data']['oldRange'],_0x57dbda=_0x4d05cc['data']['oldRange'];return null===_0x57ef20&&null===_0x57dbda?0x0:null===_0x57ef20&&null!==_0x57dbda?-0x1:null!==_0x57ef20&&null===_0x57dbda?0x1:_0x57ef20['start']['isBefore'](_0x57dbda['start'])?-0x1:0x1;});const _0x13982c=new Set(),_0x2171bb=new Set();for(const {name:_0x3d3863,data:_0x680943}of _0x1f14ea){const {id:_0x22ebc9}=nt(_0x3d3863);if(null===_0x680943['oldRange']){const _0x3cda4f=this['_handleNewSuggestionMarker'](_0x3d3863);_0x2171bb['add'](_0x3cda4f);}else{const _0x55f3e9=this['_suggestions']['get'](_0x22ebc9);null!==_0x680943['newRange']||_0x55f3e9['isInContent']?(_0x13982c['add'](_0x55f3e9['head']),_0x2171bb['add'](_0x55f3e9)):this['_removeSuggestion'](_0x55f3e9);}}_0x2171bb['size']>0x0&&this['_refreshSuggestionsChain'](_0x2171bb);for(const _0xe1b107 of _0x13982c)this['fire']('suggestionChanged',_0xe1b107);}),_0x5e07e2['model']['on']('applyOperation',(_0x37934d,_0x3fafda)=>{const _0xdc4a0c=_0x3fafda[0x0];if(!this['_suggestions']['size'])return;if(!_0xdc4a0c['isDocumentOperation'])return;if(_0xdc4a0c['batch']['isUndo']||!_0xdc4a0c['batch']['isLocal'])return;let _0x36c7d8,_0xb692d7;switch(_0xdc4a0c['type']){case'insert':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['position']),_0xb692d7=_0x36c7d8['getShiftedBy'](_0xdc4a0c['howMany']);break;case'split':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['splitPosition']),_0xb692d7=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['moveTargetPosition']);break;case'move':_0x36c7d8=_0x5e07e2['model']['createPositionAt'](_0xdc4a0c['targetPosition']),_0xb692d7=_0x36c7d8['getShiftedBy'](_0xdc4a0c['howMany']);break;default:return;}const _0x2cc775=_0x5e07e2['model']['createRange'](_0x36c7d8,_0xb692d7);_0x5e07e2['model']['change'](()=>{for(const {suggestion:_0x49bf2a,meta:_0x3c2c7e}of this['_findSuggestions'](_0x2cc775)){if(_0x49bf2a['isMultiRange'])continue;if('formatInline'==_0x49bf2a['type'])continue;const _0x11d8e1=this['_getAttributeKey'](_0x49bf2a);if(_0x11d8e1&&this['_suggestionsConversion']['isBlockAttribute'](_0x11d8e1)&&'split'!=_0xdc4a0c['type'])continue;const _0x47ac16=_0x49bf2a['data']&&_0x49bf2a['data']['multipleBlocks'];('formatBlock'!=_0x49bf2a['type']||'split'==_0xdc4a0c['type']&&!_0x47ac16)&&(_0x3c2c7e['containsRangeInObject']||'insertion'==_0x49bf2a['type']&&_0x3c2c7e['isOwn']||_0x49bf2a['getFirstRange']()['containsRange'](_0x2cc775)&&this['_breakSuggestionMarker'](_0x49bf2a,_0x36c7d8,_0xb692d7));}});},{'priority':'lowest'}),_0x5e07e2['model']['on']('deleteContent',(_0x1df0ae,_0x49274c)=>{const _0x10ebcd=_0x49274c[0x0],_0x1b9351=_0x49274c[0x1];if(_0x1b9351&&_0x1b9351['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10ebcd['isCollapsed'])return;const _0x5dd24c=_0x5e07e2['model']['schema'],{start:_0x53260f,end:_0x31e5f2}=_0x10ebcd['getFirstRange'](),_0x50ca27=_0x53260f['nodeAfter']&&_0x5dd24c['isLimit'](_0x53260f['nodeAfter'])?null:_0x5dd24c['getNearestSelectionRange'](_0x53260f,'forward'),_0x1114a7=_0x31e5f2['nodeBefore']&&_0x5dd24c['isLimit'](_0x31e5f2['nodeBefore'])?null:_0x5dd24c['getNearestSelectionRange'](_0x31e5f2,'backward'),_0x40e1d8=_0x5e07e2['model']['createRange'](_0x50ca27?_0x50ca27['start']:_0x53260f,_0x1114a7?_0x1114a7['end']:_0x31e5f2);_0x5e07e2['model']['change'](_0x12d249=>{this['markDeletion'](_0x40e1d8);const _0x46f9d0=_0x5e07e2['model']['schema']['getNearestSelectionRange'](_0x40e1d8['start']);_0x10ebcd['is']('documentSelection')?_0x12d249['setSelection'](_0x46f9d0):_0x10ebcd['setTo'](_0x46f9d0);}),_0x1df0ae['stop']();},{'priority':_0x222bed['normal']+0xa}),_0x5e07e2['model']['on']('insertContent',(_0x569f34,_0x4b7c44)=>{const _0x1fc3ba=_0x4b7c44[_0x4b7c44['length']-0x1];_0x1fc3ba&&_0x1fc3ba['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e07e2['model']['change'](()=>{let _0xf3241=_0x5e07e2['model']['insertContent'](_0x4b7c44[0x0],_0x4b7c44[0x1],_0x4b7c44[0x2],{'forceDefaultExecution':!0x0});if(!_0xf3241)return;_0x569f34['return']=_0xf3241['clone']();const _0x448322=_0xf3241['end']['nodeBefore'],_0x89901=_0x5e07e2['model']['schema'];_0x448322&&_0x89901['isBlock'](_0x448322)&&!_0x89901['isObject'](_0x448322)&&(_0xf3241=_0x5e07e2['model']['createRange'](_0xf3241['start'],_0x5e07e2['model']['createPositionAt'](_0x448322,'end'))),this['markInsertion'](_0xf3241);}),_0x569f34['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3ee24c=new Lt(_0x5e07e2,this['_suggestions']);_0x5e07e2['commands']['add']('acceptSuggestion',_0x3ee24c),this['enableCommand']('acceptSuggestion');const _0x5aa444=new It(_0x5e07e2,this['_suggestions']);_0x5e07e2['commands']['add']('discardSuggestion',_0x5aa444),this['enableCommand']('discardSuggestion'),_0x5e07e2['commands']['add']('acceptAllSuggestions',new yt(_0x5e07e2,_0x3ee24c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e07e2['commands']['add']('discardAllSuggestions',new yt(_0x5e07e2,_0x5aa444,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e07e2['commands']['add']('acceptSelectedSuggestions',new St(_0x5e07e2,_0x3ee24c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e07e2['commands']['add']('discardSelectedSuggestions',new St(_0x5e07e2,_0x5aa444,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x208ffb=_0x5e07e2['plugins']['get'](_0x72b439);this['listenTo'](_0x208ffb,'addComment',(_0x789325,{threadId:_0x149cee})=>{const _0x57bcaf=this['_suggestions']['get'](_0x149cee);_0x57bcaf&&_0x57bcaf['commentThread']&&0x1===_0x57bcaf['commentThread']['length']&&this['_updateSuggestionData'](_0x149cee,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x208ffb,'removeComment',(_0x551bb0,{threadId:_0x2f34ac})=>{const _0x4c1ead=this['_suggestions']['get'](_0x2f34ac);_0x4c1ead&&_0x4c1ead['commentThread']&&!_0x4c1ead['commentThread']['length']&&this['_updateSuggestionData'](_0x2f34ac,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x371b66){const _0x210a6c='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x214b6b=0x79770,_0x18e457={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x244345(_0x1c676b){const _0x154c76=new window['Promise'](_0x69fb57=>{_0x1c676b['once']('ready',_0x69fb57);}),_0x34596a=window['Date']['now'](),_0x9cca78=_0x1c676b['config']['get']('licenseKey');async function _0x5576c0(){let _0x2320ab,_0x216d38=null,_0x149a77=null;try{return'GPL'==_0x9cca78?'NotAllowed':(_0x2320ab=_0x1aaec2(),_0x2320ab?(_0x2320ab['usageEndpoint']&&(_0x149a77=_0x2756cc(_0x2320ab['usageEndpoint'],_0x2320ab['jti'])),await _0x2fac64()?_0x3de546()?_0x85fb27()?'Expired':_0x259b98()?('evaluation'==_0x2320ab['licenseType']&&(_0x216d38=_0x8e4d3b('EvaluationLimit')),await _0xc92836()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x85fb27(){const _0x9edaa7=['evaluation','trial']['includes'](_0x2320ab['licenseType'])?_0x34596a/0x3e8:0xe10*_0x214b6b;return _0x2320ab['exp']<_0x9edaa7;}function _0x3de546(){const _0x32e586=_0x2320ab['features'];if(!_0x32e586)return!0x1;if(_0x32e586['includes']('*'))return!0x0;if(_0x32e586['includes']('TC'))return!0x0;if(_0x32e586['includes']('RTC')){if(_0x4db478())return!0x0;if(_0x330cdb()||_0x174781())return!0x0;}return!0x1;}function _0x259b98(){const _0x1e6806=_0x2320ab['licensedHosts'];if(!_0x1e6806||0x0==_0x1e6806['length'])return!0x0;const {hostname:_0x57cd51}=new URL(window['location']['href']);if(_0x1e6806['includes'](_0x57cd51))return!0x0;const _0x5c631e=_0x57cd51['split']('.');return _0x1e6806['filter'](_0x1f8330=>_0x1f8330['includes']('*'))['map'](_0x17389e=>_0x17389e['split']('.'))['filter'](_0x4b6f22=>_0x4b6f22['length']<=_0x5c631e['length'])['map'](_0x278630=>Array(_0x5c631e['length']-_0x278630['length'])['fill']('*'===_0x278630[0x0]?'*':'')['concat'](_0x278630))['some'](_0x3be01d=>_0x5c631e['every']((_0x41c8b7,_0x3ccaec)=>_0x3be01d[_0x3ccaec]===_0x41c8b7||'*'===_0x3be01d[_0x3ccaec]));}function _0xc92836(){return _0x216d38&&_0x149a77?new window['Promise']((_0x278665,_0x18fc67)=>{_0x216d38['then'](_0x278665,_0x18fc67),_0x149a77['then'](_0x1f81f4=>{'Valid'!=_0x1f81f4&&_0x278665(_0x1f81f4);},_0x18fc67);}):_0x216d38||_0x149a77||'Valid';}}function _0x2756cc(_0x2f1da7,_0x494568){return new window['Promise'](_0x19650d=>{if(_0xad3f83())return _0x19650d('Valid');_0x43cbe8(),_0x1c676b['decorate']('_sendUsageRequest');let _0x171072=!0x1;const _0x257cb6=_0xa3c351();function _0x4835e4(_0x2792cb){return!!_0x2792cb&&('object'==typeof _0x2792cb||'function'==typeof _0x2792cb)&&'function'==typeof _0x2792cb['then']&&'function'==typeof _0x2792cb['catch'];}function _0x5e8977(_0xef9579){_0x3f77fc(_0xef9579)['then'](_0x5e54a9=>_0x5e54a9&&'ok'==_0x5e54a9['status']?_0x3737a7(_0x21cef2(_0x257cb6+_0x494568))!=_0x5e54a9['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x39ab57=>(_0x5ea8f7(),_0x39ab57),()=>{const _0x1c1d19=_0xed4c06();return null==_0x1c1d19?(_0x5ea8f7(),'Valid'):_0x34596a-_0x1c1d19>0x240c8400?'UsageLimit':'Valid';})['then'](_0x19650d)['catch'](()=>{_0x19650d('UsageLimit');});const _0x37676f=0x36ee80;function _0x5ea8f7(){const _0x3742e0='llct-'+_0x3737a7(_0x21cef2(_0x2f1da7)),_0x28aa70=_0xd39f39(_0x3737a7(window['Math']['ceil'](_0x34596a/_0x37676f)));window['localStorage']['setItem'](_0x3742e0,_0x28aa70);}function _0xed4c06(){const _0x34fb5f='llct-'+_0x3737a7(_0x21cef2(_0x2f1da7)),_0x5c2c5a=window['localStorage']['getItem'](_0x34fb5f);return _0x5c2c5a?window['parseInt'](_0xd39f39(_0x5c2c5a),0x10)*_0x37676f:null;}function _0x3f77fc(_0x28f2d4){return new window['Promise']((_0x35e2de,_0x4a5b0f)=>{_0x28f2d4['then'](_0x35e2de,_0x4a5b0f),window['setTimeout'](_0x4a5b0f,0x1d4c0);});}}_0x1c676b['on']('_sendUsageRequest',(_0x4a60ff,_0x3f68de)=>{if(_0x3f68de[0x0]!=_0x2f1da7)return _0x19650d('UsageLimit');_0x3f68de[0x1]={..._0x3f68de[0x1],'requestId':_0x257cb6};},{'priority':'high'}),_0x1c676b['on']('_sendUsageRequest',_0x29b898=>{_0x4835e4(_0x29b898['return'])&&(_0x171072=!0x0,_0x5e8977(_0x29b898['return']));},{'priority':'low'}),_0x154c76['then'](()=>{_0x171072||_0x19650d('UsageLimit');});});function _0xad3f83(){return'auto'==_0x1c676b['editing']['view']['_overlayModeHint'];}function _0x43cbe8(){_0x1c676b['editing']['view']['_overlayModeHint']='auto';}}function _0x8e4d3b(_0x74f072){const _0x17b056=[new window['Promise'](_0x3ad37f=>setTimeout(_0x3ad37f,0x93ecc)),_0x154c76['then'](()=>new window['Promise'](_0x586492=>{let _0x34c560=0x0;_0x1c676b['model']['on']('applyOperation',(_0x644393,_0x3ec7c3)=>{_0x3ec7c3[0x0]['isDocumentOperation']&&_0x34c560++,0x5e8==_0x34c560&&(_0x586492(),_0x644393['off']());});}))];return window['Promise']['race'](_0x17b056)['then'](()=>_0x74f072);}async function _0x522530(){await _0x154c76,_0x1c676b['model']['change']=_0x5d53ca,_0x1c676b['model']['enqueueChange']=_0x5d53ca,_0x1c676b['enableReadOnlyMode']('model');}function _0x4db478(){return _0x5bd12a('WebSocketGateway')&&'connected'==_0x345b2f('WebSocketGateway')['state'];}function _0x330cdb(){return _0x5bd12a('RevisionViewerIntegration');}function _0x174781(){return _0x5bd12a('TrackChangesDataGetter');}function _0x5e9aa7(_0x2d9adb){const _0x3a9a89=_0x45c377();_0x1c676b[_0x3a9a89]='trackChangesLicenseKey'+_0x2d9adb,'Valid'!=_0x2d9adb&&_0x522530();}function _0x45c377(){const _0x1c8167=window['String'](window['performance']['now']())['replace']('.','');let _0x10f60d='U';for(let _0x37bae9=0x0;_0x37bae9<_0x1c8167['length'];_0x37bae9+=0x2){let _0x5262cb=window['parseInt'](_0x1c8167['substring'](_0x37bae9,_0x37bae9+0x2));_0x5262cb>=0x3e&&(_0x5262cb-=0x3e),_0x10f60d+=_0x210a6c[_0x5262cb];}return _0x10f60d;}function _0x1aaec2(){const _0x2f643b=_0x9cca78['split']('.');if(0x3!=_0x2f643b['length'])return null;return _0x12dbe2(_0x2f643b[0x1]);function _0x12dbe2(_0xd83baf){const _0x2a04f0=_0x45d059(_0xd83baf);return _0x2a04f0&&_0x3171b0()?_0x2a04f0:null;function _0x3171b0(){const _0xcde66=_0x2a04f0['jti'],_0x17f0b2=window['parseInt'](_0xcde66['substring'](_0xcde66['length']-0x8),0x10),_0x130c49={..._0x2a04f0,'jti':_0xcde66['substring'](0x0,_0xcde66['length']-0x8)};return delete _0x130c49['vc'],_0x21cef2(_0x130c49)==_0x17f0b2;}}}async function _0x2fac64(){let _0x40584c=!0x0;try{const [_0x2c22fc,_0x230c36,_0x137613]=_0x9cca78['split']('.');return _0x21a908(_0x2c22fc),await _0x3388b7(_0x2c22fc,_0x230c36,_0x137613),_0x40584c;}catch{return!0x1;}function _0x21a908(_0x1fd754){const _0x2bea66=_0x45d059(_0x1fd754);_0x2bea66&&'ES256'==_0x2bea66['alg']||(_0x40584c=!0x1);}async function _0x3388b7(_0x1ca79a,_0x4f5eb0,_0xb6db5e){const _0xabce3c=window['Uint8Array']['from'](_0x595547(_0xb6db5e),_0x49b412=>_0x49b412['charCodeAt'](0x0)),_0x5289a8=new window['TextEncoder']()['encode'](_0x1ca79a+'.'+_0x4f5eb0),_0x3f73ab=window['crypto']['subtle'];if(!_0x3f73ab)return;const _0x192160=await _0x3f73ab['importKey']('jwk',_0x18e457,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x3f73ab['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x192160,_0xabce3c,_0x5289a8)||(_0x40584c=!0x1);}}function _0x45d059(_0x187382){return _0x187382['startsWith']('ey')?JSON['parse'](_0x595547(_0x187382)):null;}function _0x595547(_0x1a81f5){return window['atob'](_0x1a81f5['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x21cef2(_0x393ab7){let _0x50a92d=0x1505;function _0x170428(_0x4bef1a){for(let _0x33bd25=0x0;_0x33bd25<_0x4bef1a['length'];_0x33bd25++){const _0x413ecb=_0x4bef1a['charCodeAt'](_0x33bd25);_0x50a92d=(_0x50a92d<<0x5)+_0x50a92d+_0x413ecb,_0x50a92d&=_0x50a92d;}}function _0x2f0a3f(_0x507508){Array['isArray'](_0x507508)?_0x507508['forEach'](_0x2f0a3f):_0x507508&&'object'==typeof _0x507508?Object['entries'](_0x507508)['sort']()['forEach'](([_0x986a80,_0xc6f993])=>{_0x170428(_0x986a80),_0x2f0a3f(_0xc6f993);}):_0x170428(window['String'](_0x507508));}return _0x2f0a3f(_0x393ab7),_0x50a92d>>>0x0;}function _0x3737a7(_0x1d3c09){return _0x1d3c09['toString'](0x10)['padStart'](0x8,'0');}function _0xd39f39(_0x201e24){return _0x201e24['split']('')['reverse']()['join']('');}function _0x5bd12a(_0x169ffb){return _0x1c676b['plugins']['has'](_0x169ffb);}function _0x345b2f(_0x1c3d49){return _0x1c676b['plugins']['get'](_0x1c3d49);}function _0x5d53ca(){}_0x5e9aa7(await _0x5576c0());}_0x244345(_0x371b66['editor']);}(this);}set adapter(_0x1b3788){if(this['_adapter'])throw new _0x228d64('track-changes-adapter-already-set',this);this['_adapter']=_0x1b3788;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0xa74457=!0x1,toJSON:_0x598dfc=!0x1}={}){const _0x4fff54=[];for(const _0x42cfb7 of this['_suggestions']['values']())_0xa74457&&!_0x42cfb7['isInContent']||_0x4fff54['push'](_0x42cfb7);return _0x598dfc?_0x4fff54['map'](_0x50c85a=>_0x50c85a['toJSON']()):_0x4fff54;}getSuggestion(_0x3073de){const _0x535851=this['_suggestions']['get'](_0x3073de);if(!_0x535851)throw new _0x228d64('track-changes-suggestion-not-found',this);return _0x535851;}hasSuggestion(_0x28b8fe){return this['_suggestions']['has'](_0x28b8fe);}addSuggestionData(_0x54afab){const {authorId:_0x561235,id:_0x1e91dd,originalSuggestionId:_0x1d6305,attributes:_0x236da0}=_0x54afab,[_0x329429,_0x1e1d20]=_0x54afab['type']['split'](':'),_0x15dbeb=this['_suggestions']['get'](_0x1e91dd)||this['_createSuggestion'](_0x329429,_0x1e1d20,_0x1e91dd,_0x561235,_0x236da0,_0x1d6305);if(this['_addThreadToSuggestion'](_0x15dbeb),this['_checkSuggestionCorrectness'](_0x15dbeb,_0x329429,_0x1e1d20||null,_0x561235),_0x15dbeb['createdAt']=_0x54afab['createdAt'],_0x15dbeb['_isDataLoaded']=!0x0,_0x236da0&&_0x236da0['@external']){const _0x441059=_0x236da0['@external'],_0x2656de=this['_getExternalAuthor'](_0x441059['authorName']);_0x15dbeb['authoredAt']=_0x441059['createdAt'],_0x15dbeb['author']=_0x2656de;}else _0x15dbeb['authoredAt']=_0x54afab['createdAt'];switch(_0x54afab['data']&&(_0x15dbeb['data']=_0x54afab['data']),_0x54afab['attributes']&&(_0x15dbeb['attributes']=_0x54afab['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15dbeb['_saved']=!0x0),this['_suggestionState']['get'](_0x15dbeb)){case'notReady':this['_suggestionState']['set'](_0x15dbeb,'dataReady');break;case'markerReady':_0x15dbeb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15dbeb])),this['_refreshSuggestionsChain'](new Set([_0x15dbeb])),this['_suggestionState']['set'](_0x15dbeb,'ready'),this['fire']('suggestionLoaded',_0x15dbeb)):this['_suggestionState']['set'](_0x15dbeb,'removed');}return _0x15dbeb;}acceptSuggestion(_0x1fb18c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xbd23f of _0x1fb18c['getAllAdjacentSuggestions']())_0xbd23f['accept']();});});}discardSuggestion(_0x3f166c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49b9c5 of _0x3f166c['getAllAdjacentSuggestions']())_0x49b9c5['discard']();});});}['enableCommand'](_0x3e56d5,_0x3b470f){const _0x5d954c=this['editor']['commands']['get'](_0x3e56d5);if(!_0x5d954c)throw new _0x228d64('track-changes-command-not-found',this,{'commandName':_0x3e56d5});if(this['_enabledCommands']['has'](_0x5d954c))throw new _0x228d64('track-changes-enable-command-twice',this,{'commandName':_0x3e56d5});this['_enabledCommands']['add'](_0x5d954c),_0x3b470f&&_0x5d954c['on']('execute',(_0x369442,_0x100a27)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x100a27['length']>0x0&&_0x100a27[_0x100a27['length']-0x1]&&_0x100a27[_0x100a27['length']-0x1]['forceDefaultExecution']?_0x100a27['pop']():(_0x369442['return']=_0x3b470f((..._0x12fa6f)=>_0x5d954c['execute'](..._0x12fa6f,{'forceDefaultExecution':!0x0}),..._0x100a27),_0x369442['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x4dd62e){let _0x502f3c,_0x17a1c3;const _0x25d075=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x502f3c=_0x4dd62e();}catch(_0x127beb){_0x17a1c3=_0x127beb;}return _0x25d075||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17a1c3&&_0x228d64['rethrowUnexpectedError'](_0x17a1c3,this),_0x502f3c;}markInsertion(_0x56d728,_0x5412ca=null,_0x4fbaba={}){if(_0x56d728['isCollapsed'])return null;const _0x3bb81c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4fbaba['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x15e215,meta:_0x3d848d}of this['_findSuggestions'](_0x56d728,'insertion'))if(_0x3d848d['isOwn']){if(!_0x3d848d['isNextTo']){if(_0x3d848d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x15e215,_0x4fbaba))continue;return _0x15e215;}if(An(_0x15e215,_0x4fbaba))return _0x15e215;this['_breakSuggestionMarker'](_0x15e215,_0x56d728['start'],_0x56d728['end']);break;}if(_0x5412ca==_0x15e215['subType']&&An(_0x15e215,_0x4fbaba)){const _0x1f5d76=_0x15e215['getFirstRange']();return _0x1f5d76['start']['isEqual'](_0x56d728['end'])?this['_setSuggestionRange'](_0x15e215,this['_model']['createRange'](_0x56d728['start'],_0x1f5d76['end'])):this['_setSuggestionRange'](_0x15e215,this['_model']['createRange'](_0x1f5d76['start'],_0x56d728['end'])),_0x15e215;}}const _0x5cbf71=_0xa3c351(),_0x3298f8=_0x3bb81c['id'],_0x5780ff=_0x5412ca?'insertion:'+_0x5412ca:'insertion',_0x17770e=this['_setSuggestionData']({'id':_0x5cbf71,'type':_0x5780ff,'createdAt':new Date(),'authorId':_0x3298f8,'attributes':_0x4fbaba});return this['_addSuggestionMarker'](_0x5780ff,_0x5cbf71,_0x3298f8,_0x56d728),_0x17770e;}markMultiRangeInsertion(_0x30768b,_0x276be6='multi',_0x36c8fd={}){const _0x4de543=this['editor']['plugins']['get']('Users')['me'],_0x4852b8=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x276be6,'join');this['_trackingSessionId']&&(_0x36c8fd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ba6ca of this['getSuggestions']())if(_0x2ba6ca['author']['id']==_0x4de543['id']&&'insertion'==_0x2ba6ca['type']&&_0x2ba6ca['subType']==_0x276be6&&An(_0x2ba6ca,_0x36c8fd)&&(_0x4852b8(_0x2ba6ca['getRanges'](),_0x30768b)||_0x4852b8(_0x30768b,_0x2ba6ca['getRanges']()))){for(const _0x551d1b of _0x30768b)_0x2ba6ca['addRange'](_0x551d1b);return _0x2ba6ca;}for(const {suggestion:_0x1a52c3,meta:_0x1865d3}of this['_findSuggestions'](_0x30768b,'insertion')){if(!_0x1865d3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1865d3['containsRangeInObject'])continue;if(!An(_0x1a52c3,_0x36c8fd))continue;let _0x5610f8=!0x0;for(const _0x37fb1e of _0x1a52c3['getRanges']())for(const _0x4bccbf of _0x30768b)if(!_0x37fb1e['containsRange'](_0x4bccbf)){_0x5610f8=!0x1;break;}if(_0x5610f8)return _0x1a52c3;}const _0x15cb38=_0xa3c351(),_0x5bde3d=_0x4de543['id'],_0x3b5ab8='insertion:'+_0x276be6,_0x24218e=this['_setSuggestionData']({'id':_0x15cb38,'type':_0x3b5ab8,'createdAt':new Date(),'authorId':_0x5bde3d,'attributes':_0x36c8fd});for(const _0x115759 of _0x30768b)this['_addSuggestionMarker'](_0x3b5ab8,_0x15cb38,_0x5bde3d,_0x115759,Ot['getMultiRangeId']());return _0x24218e;}markInlineFormat(_0x392bb5,_0x1034d9,_0x4d9c05=null,_0x571856={}){if(_0x4d9c05=_0x4d9c05||fn(_0x1034d9),_0x392bb5['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x571856['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e92c6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d9c05,'accept');return this['forceDefaultExecution'](()=>_0x3e92c6([_0x392bb5],_0x1034d9,_0x571856)),null;}const _0x345390=this['editor']['plugins']['get']('Users')['me'],_0x5b76e6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x9b2147,meta:_0x36444b}of this['_findSuggestions'](_0x392bb5,'insertion'))_0x36444b['isOwn']&&!_0x36444b['isInsideObject']&&_0x5b76e6['push'](..._0x9b2147['getRanges']());}const _0x1c223b=function(_0x1b8b07,_0x9e85c3){const _0x5658d6=[];for(const _0x21589b of _0x9e85c3){const _0x223194=_0x1b8b07['getIntersection'](_0x21589b);_0x223194&&_0x5658d6['push'](_0x223194);}return _0x5658d6;}(_0x392bb5,_0x5b76e6),_0x1cda94=function(_0x2758f2,_0x547db0){const _0x17e795=[_0x2758f2];for(const _0x1d0253 of _0x547db0){let _0x373694=0x0;for(;_0x373694<_0x17e795['length'];){const _0x5210a6=_0x17e795[_0x373694]['getDifference'](_0x1d0253);_0x17e795['splice'](_0x373694,0x1,..._0x5210a6),_0x373694+=_0x5210a6['length'];}}return _0x17e795;}(_0x392bb5,_0x5b76e6);_0x1c223b['length']&&this['_model']['change'](()=>{for(const _0x164da7 of _0x1c223b){const _0x4b04b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4d9c05,'accept');this['forceDefaultExecution'](()=>_0x4b04b1([_0x164da7],_0x1034d9,_0x571856));}});for(const _0x406e56 of _0x1cda94){let _0x4b711e=null,_0x1c59c9=_0x406e56['start'],_0x5750ed=_0x406e56['end'];for(const {suggestion:_0x18afab,meta:_0x32ad2b}of this['_findSuggestions'](_0x406e56,'formatInline')){if(!_0x32ad2b['isOwn'])continue;if(_0x18afab['subType']!=_0x4d9c05)continue;if(!An(_0x18afab,_0x571856))continue;const _0x5e81ee=_0x18afab['getFirstRange']();if(_0x5e81ee['containsRange'](_0x406e56,!0x0))return null;_0x1c59c9=_0x1c59c9['isBefore'](_0x5e81ee['start'])?_0x1c59c9:_0x5e81ee['start'],_0x5750ed=_0x5750ed['isAfter'](_0x5e81ee['end'])?_0x5750ed:_0x5e81ee['end'],_0x4b711e?_0x5e81ee['start']['isBefore'](_0x4b711e['getFirstRange']()['start'])?(_0x4b711e['removeMarkers'](),_0x4b711e=_0x18afab):_0x18afab['removeMarkers']():_0x4b711e=_0x18afab;}const _0x3e7f4e=this['_model']['createRange'](_0x1c59c9,_0x5750ed);if(_0x4b711e)this['_setSuggestionRange'](_0x4b711e,_0x3e7f4e);else{const _0xc8023b=_0xa3c351(),_0x1c5620=_0x345390['id'];this['_setSuggestionData']({'id':_0xc8023b,'type':'formatInline:'+_0x4d9c05,'data':_0x1034d9,'createdAt':new Date(),'authorId':_0x1c5620,'attributes':_0x571856}),this['_addSuggestionMarker']('formatInline:'+_0x4d9c05,_0xc8023b,_0x1c5620,_0x3e7f4e);}}return null;}markBlockFormat(_0x43f398,_0x59ddc3,_0x17c0f9=[],_0x3f6045=null,_0x2408ab={}){_0x59ddc3['formatGroupId']||(_0x59ddc3['formatGroupId']=_0x59ddc3['commandName']),_0x59ddc3['multipleBlocks']=_0x43f398['is']('range'),_0x3f6045=_0x3f6045||fn(_0x59ddc3);const _0x658269=_0x17c0f9['map'](_0x43a1a5=>pn(_0x43a1a5,this['_model'])),_0xee1fcd=_0x43f398['is']('range')?_0x43f398:pn(_0x43f398,this['_model']);if(this['_trackingSessionId']&&(_0x2408ab['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x57fe62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6045,'accept');return this['forceDefaultExecution'](()=>_0x57fe62([_0xee1fcd],_0x59ddc3,_0x2408ab)),null;}_0x658269['push'](_0xee1fcd);let _0x5e742a=!0x0;for(const _0x2e3891 of _0x658269)if(!this['_rangeIsInLocalUserInsertion'](_0x2e3891)){_0x5e742a=!0x1;break;}if(_0x5e742a&&'always'!==this['_trackFormatChanges']){const _0x2fdd55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f6045,'accept');return this['forceDefaultExecution'](()=>_0x2fdd55([_0xee1fcd],_0x59ddc3,_0x2408ab)),null;}let _0x1ea315=null,_0xc05072=_0xee1fcd['start'],_0x3a99d8=_0xee1fcd['end'];for(const {suggestion:_0x35d88b,meta:_0x59c433}of this['_findSuggestions'](_0xee1fcd,'formatBlock')){if(!_0x59c433['isOwn'])continue;if(_0x59c433['isNextTo']||_0x59c433['containsRangeInObject']||_0x59c433['isInsideObject'])continue;if(_0x35d88b['data']['formatGroupId']!=_0x59ddc3['formatGroupId'])continue;if(!An(_0x35d88b,_0x2408ab))continue;const _0x1bed2a=_0x35d88b['getFirstRange']();if(_0x35d88b['subType']==_0x3f6045){if(_0x1bed2a['containsRange'](_0xee1fcd,!0x0))return null;_0xc05072=_0xc05072['isBefore'](_0x1bed2a['start'])?_0xc05072:_0x1bed2a['start'],_0x3a99d8=_0x3a99d8['isAfter'](_0x1bed2a['end'])?_0x3a99d8:_0x1bed2a['end'],_0x1ea315?_0x1bed2a['start']['isBefore'](_0x1ea315['getFirstRange']()['start'])?(_0x1ea315['removeMarkers'](),_0x1ea315=_0x35d88b):_0x35d88b['removeMarkers']():_0x1ea315=_0x35d88b;}else{const _0x3a47a8=_0xee1fcd['getIntersection'](_0x1bed2a);this['_cutOutSuggestionMarker'](_0x35d88b,_0x3a47a8);}}const _0x484f6c=this['editor']['plugins']['get']('Users')['me'],_0x254072=_0xa3c351(),_0x59c03a=_0x484f6c['id'];if(_0x1ea315)return this['_setSuggestionRange'](_0x1ea315,this['_model']['createRange'](_0xc05072,_0x3a99d8)),_0x1ea315;{const _0x573ba7=this['_setSuggestionData']({'id':_0x254072,'type':'formatBlock:'+_0x3f6045,'data':_0x59ddc3,'createdAt':new Date(),'authorId':_0x59c03a,'attributes':_0x2408ab});return this['_addSuggestionMarker']('formatBlock:'+_0x3f6045,_0x254072,_0x59c03a,this['_model']['createRange'](_0xc05072,_0x3a99d8)),_0x573ba7;}}markMultiRangeBlockFormat(_0x20f8e9,_0x33dad6,_0x472445=[],_0x36eb1c=null,_0x44b37f={}){_0x33dad6['formatGroupId']||(_0x33dad6['formatGroupId']=_0x33dad6['commandName']);const _0x50a495=_0x20f8e9[0x0];_0x33dad6['multipleBlocks']=_0x50a495['is']('range'),_0x36eb1c=_0x36eb1c||fn(_0x33dad6);const _0x43d1a3=_0x472445['map'](_0x27672d=>pn(_0x27672d,this['_model'])),_0x592b65=_0x50a495['is']('range')?_0x20f8e9:_0x20f8e9['map'](_0x414f86=>pn(_0x414f86,this['_model']));if(this['_trackingSessionId']&&(_0x44b37f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x9bc9ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'accept');return this['forceDefaultExecution'](()=>_0x9bc9ca(_0x592b65,_0x33dad6,_0x44b37f)),null;}_0x43d1a3['push'](..._0x592b65);let _0x40a245=!0x0;for(const _0xb2906e of _0x43d1a3)if(!this['_rangeIsInLocalUserInsertion'](_0xb2906e)){_0x40a245=!0x1;break;}if(_0x40a245&&'always'!==this['_trackFormatChanges']){const _0xb0c10a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'accept');return this['forceDefaultExecution'](()=>_0xb0c10a(_0x592b65,_0x33dad6,_0x44b37f)),null;}const _0x1f9d57=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f4bba of this['getSuggestions']()){const _0x3c73dc=_0x3f4bba['data'];if(_0x3f4bba['author']['id']!=_0x1f9d57['id'])continue;if('formatBlock'!=_0x3f4bba['type']||_0x3c73dc['formatGroupId']!=_0x33dad6['formatGroupId'])continue;if(!An(_0x3f4bba,_0x44b37f))continue;const _0x5bddbd=_0x3f4bba['subType']==_0x36eb1c;for(let _0x56b9c5=0x0;_0x56b9c5<_0x592b65['length'];_0x56b9c5++){const _0x550079=_0x592b65[_0x56b9c5];for(const _0x555343 of _0x3f4bba['getMarkers']()){const _0x1a5376=_0x555343['getRange']();if(_0x550079['isEqual'](_0x1a5376)){_0x5bddbd?(_0x592b65['splice'](_0x56b9c5,0x1),_0x56b9c5--):_0x3f4bba['removeMarker'](_0x555343['name']);break;}}}}if(0x0==_0x592b65['length'])return null;const _0x115582=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x36eb1c,'join');for(const _0x3a7577 of this['getSuggestions']()){const _0x387168=_0x3a7577['data'];if(_0x3a7577['author']['id']==_0x1f9d57['id']&&('formatBlock'==_0x3a7577['type']&&_0x387168['formatGroupId']==_0x33dad6['formatGroupId']&&_0x3a7577['subType']==_0x36eb1c&&An(_0x3a7577,_0x44b37f)&&(_0x115582(_0x3a7577['getRanges'](),_0x592b65)||_0x115582(_0x592b65,_0x3a7577['getRanges']())))){for(const _0x200e15 of _0x592b65)_0x3a7577['addRange'](_0x200e15);return _0x3a7577;}}const _0x15b6f3=_0xa3c351(),_0x2e1e8d=_0x1f9d57['id'],_0x819140='formatBlock:'+_0x36eb1c,_0x394460=this['_setSuggestionData']({'id':_0x15b6f3,'type':_0x819140,'data':_0x33dad6,'createdAt':new Date(),'authorId':_0x2e1e8d,'attributes':_0x44b37f});for(const _0x360b24 of _0x592b65)this['_addSuggestionMarker'](_0x819140,_0x15b6f3,_0x2e1e8d,_0x360b24,Ot['getMultiRangeId']());return _0x394460;}markDeletion(_0x1ffcee,_0x46271c=null,_0x32d691={}){if(_0x1ffcee['isCollapsed'])return null;const _0x4ea5e7=this['editor']['plugins']['get']('Users')['me'],_0x1ae4dc=new at(_0x1ffcee['start'],_0x1ffcee['end']);this['_trackingSessionId']&&(_0x32d691['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x508ccb,meta:_0x4c80d5}of this['_findSuggestions'](_0x1ae4dc,'insertion'))if(_0x4c80d5['isOwn']&&!_0x4c80d5['isNextTo']){if(_0x508ccb['isMultiRange']){const _0x423783=_0x508ccb['getRanges']()['filter'](_0x4cc4f5=>'$graveyard'!=_0x4cc4f5['root']['rootName']);if(_0x423783['every'](_0x18fddc=>_0x1ae4dc['containsRange'](_0x18fddc,!0x0))&&_0x508ccb['discard'](),_0x423783['some'](_0x590de6=>_0x590de6['containsRange'](_0x1ae4dc,!0x0))){const _0x1301a6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x46271c,'accept');return this['forceDefaultExecution'](()=>_0x1301a6([_0x1ae4dc],null,_0x32d691)),null;}}else{const _0x4da597=_0x1ae4dc['getIntersection'](_0x508ccb['getFirstRange']());null!==_0x4da597&&_0x508ccb['_onDiscard']([_0x4da597],null,_0x32d691);}}if(_0x1ae4dc['detach'](),_0x1ae4dc['isCollapsed']||'$graveyard'==_0x1ae4dc['root']['rootName'])return null;let _0x453e81=null,_0x246cc6=_0x1ae4dc['start'],_0x473d5f=_0x1ae4dc['end'];const _0x2765e9=this['_findSuggestions'](_0x1ae4dc,'deletion');for(const {suggestion:_0x12aaf8,meta:_0x46cb1c}of _0x2765e9){const _0x4f072d=this['_model']['createRange'](_0x246cc6,_0x473d5f);if(_0x46cb1c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46cb1c['containsRangeInObject']&&!_0x46cb1c['isInsideObject'])){if(_0x12aaf8['isMultiRange']){if(!An(_0x12aaf8,_0x32d691))continue;let _0x98d170=!0x0;for(const _0x2eebad of _0x12aaf8['getRanges']()){if(_0x2eebad['containsRange'](_0x4f072d,!0x0))return _0x12aaf8;_0x4f072d['containsRange'](_0x2eebad)||(_0x98d170=!0x1);}_0x98d170&&_0x12aaf8['discard']();}else{const _0x177826=_0x12aaf8['getFirstRange']();if(_0x177826['containsRange'](_0x4f072d,!0x0))return _0x12aaf8;if(!An(_0x12aaf8,_0x32d691)){_0x4f072d['containsRange'](_0x177826)?_0x12aaf8['removeMarkers']():_0x177826['containsPosition'](_0x246cc6)?_0x246cc6=_0x177826['end']:_0x177826['containsPosition'](_0x473d5f)&&(_0x473d5f=_0x177826['start']);continue;}_0x246cc6=_0x246cc6['isBefore'](_0x177826['start'])?_0x246cc6:_0x177826['start'],_0x473d5f=_0x473d5f['isAfter'](_0x177826['end'])?_0x473d5f:_0x177826['end'],_0x32d691=Object['assign']({},_0x12aaf8['attributes']),_0x453e81?_0x177826['start']['isBefore'](_0x453e81['getFirstRange']()['start'])?(_0x453e81['removeMarkers'](),_0x453e81=_0x12aaf8):_0x12aaf8['removeMarkers']():_0x453e81=_0x12aaf8;}}}if(_0x453e81)return this['_setSuggestionRange'](_0x453e81,this['_model']['createRange'](_0x246cc6,_0x473d5f)),_0x453e81;{const _0x33982f=_0xa3c351(),_0x152a99=this['_model']['createRange'](_0x246cc6,_0x473d5f),_0x6bdb7c=_0x4ea5e7['id'],_0x2e657b=_0x46271c?'deletion:'+_0x46271c:'deletion',_0x38a54f=this['_setSuggestionData']({'id':_0x33982f,'type':_0x2e657b,'createdAt':new Date(),'authorId':_0x6bdb7c,'attributes':_0x32d691});return this['_addSuggestionMarker'](_0x2e657b,_0x33982f,_0x6bdb7c,_0x152a99),_0x38a54f;}}markMultiRangeDeletion(_0x8d99b8,_0x2120ae='multi',_0x59bbe9={}){const _0x3a7bb4=this['editor']['plugins']['get']('Users')['me'],_0xb959a=_0x8d99b8['map'](_0x256648=>new at(_0x256648['start'],_0x256648['end'])),_0x2277ec=new Set();this['_trackingSessionId']&&(_0x59bbe9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2a2c74,meta:_0x214cc1}of this['_findSuggestions'](_0xb959a,'insertion'))_0x214cc1['isOwn']&&!_0x214cc1['isNextTo']&&_0x2277ec['add'](_0x2a2c74);for(const _0x11f1ff of _0x2277ec)if(_0x11f1ff['isMultiRange']){const _0x5113f8=_0x11f1ff['getRanges']();if(_0x11f1ff['attributes']&&_0x11f1ff['attributes']['skipNestingCheck']||_0x5113f8['every'](_0x25e9dd=>_0xb959a['some'](_0x886822=>_0x886822['containsRange'](_0x25e9dd,!0x0)))&&_0x11f1ff['discard'](),_0xb959a['every'](_0x4830a8=>_0x5113f8['some'](_0x1e8af9=>_0x1e8af9['containsRange'](_0x4830a8,!0x0)))){const _0x4a0cf6=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'accept');return this['forceDefaultExecution'](()=>_0x4a0cf6(_0x8d99b8,null,_0x59bbe9)),null;}}else{const _0x47ac1e=_0x11f1ff['getFirstRange']();if(_0xb959a['some'](_0x53e6e9=>_0x53e6e9['containsRange'](_0x47ac1e,!0x0))&&_0x11f1ff['discard'](),_0xb959a['every'](_0x4f31e8=>_0x47ac1e['containsRange'](_0x4f31e8,!0x0))){const _0x4a5ade=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'accept');return this['forceDefaultExecution'](()=>_0x4a5ade(_0xb959a,null,_0x59bbe9)),null;}}const _0x4065a7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2120ae,'join');let _0x2b599c=null;for(const _0x2584cd of this['getSuggestions']())if(_0x2584cd['author']['id']==_0x3a7bb4['id']&&_0x2584cd['isInContent']&&'deletion'==_0x2584cd['type']&&_0x2584cd['subType']==_0x2120ae&&An(_0x2584cd,_0x59bbe9)&&(_0x4065a7(_0x2584cd['getRanges'](),_0xb959a)||_0x4065a7(_0xb959a,_0x2584cd['getRanges']()))){if(_0x2b599c){if(_0x2584cd['commentThread']&&_0x2584cd['commentThread']['length'])continue;for(const _0x4e8f3c of _0x2584cd['getRanges']())_0x2b599c['isIntersectingWithRange'](_0x4e8f3c)||_0x2b599c['addRange'](_0x4e8f3c);_0x2584cd['removeMarkers']();}else{_0x2b599c=_0x2584cd;for(const _0x518266 of _0xb959a)_0x2584cd['isIntersectingWithRange'](_0x518266)||_0x2584cd['addRange'](_0x518266);}}if(_0x2b599c)return _0x2b599c;_0x2277ec['clear']();for(const {suggestion:_0x57067c,meta:_0x4a5bc9}of this['_findSuggestions'](_0xb959a,'deletion'))_0x4a5bc9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a5bc9['containsRangeInObject']&&!_0x4a5bc9['isInsideObject'])&&An(_0x57067c,_0x59bbe9)&&_0x2277ec['add'](_0x57067c);for(const _0x2f7265 of _0x2277ec){const _0x4014c7=_0x2f7265['getRanges']();if((!_0x59bbe9||!_0x59bbe9['skipNestingCheck'])&&_0xb959a['every'](_0x2b6e05=>_0x4014c7['some'](_0x2bafb2=>_0x2bafb2['containsRange'](_0x2b6e05,!0x0))))return _0x2f7265;_0x2f7265['attributes']&&_0x2f7265['attributes']['skipNestingCheck']||_0x4014c7['every'](_0x440d02=>_0xb959a['some'](_0x4eb838=>_0x4eb838['containsRange'](_0x440d02,!0x0)))&&_0x2f7265['discard']();}const _0x1ddde5=_0xa3c351(),_0x58bb8c=_0x3a7bb4['id'],_0x4c6c18='deletion:'+_0x2120ae,_0x4a6b06=this['_setSuggestionData']({'id':_0x1ddde5,'type':_0x4c6c18,'createdAt':new Date(),'authorId':_0x58bb8c,'attributes':_0x59bbe9});for(const _0x1b0a48 of _0xb959a)_0x1b0a48['detach'](),_0x1b0a48['isCollapsed']||'$graveyard'==_0x1b0a48['root']['rootName']||this['_addSuggestionMarker'](_0x4c6c18,_0x1ddde5,_0x58bb8c,_0x1b0a48,Ot['getMultiRangeId']());return _0x4a6b06;}markAttributeChange(_0x5cc154,_0xa6fcaa,_0x1c1832,_0x4f9841,_0x5ccc2a){if(_0x5cc154['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b1398=this['editor']['plugins']['get']('Users')['me']['id'],_0x50516a=Array['from'](this['_suggestions']['values']())['filter'](_0x1f4fad=>'attribute'==_0x1f4fad['type']&&_0x1f4fad['data']['key']==_0xa6fcaa&&_0x1f4fad['isIntersectingWithRange'](_0x5cc154));if(this['_trackingSessionId']&&(_0x5ccc2a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1bbffa=this['_findSuggestions'](_0x5cc154,'insertion')['filter'](({meta:_0x43d7ed})=>_0x43d7ed['isOwn']&&!_0x43d7ed['isInsideObject']&&!_0x43d7ed['isNextTo'])['map'](({suggestion:_0x23c5c7})=>_0x23c5c7);_0x50516a['unshift'](..._0x1bbffa);}const _0x7d89c0=new Map([[_0x5cc154,_0x1c1832]]);for(const _0xa971cd of _0x50516a){const _0x3e5576='attribute'==_0xa971cd['type']?_0xa971cd['data']['oldValue']:void 0x0,_0x5d7039=_0xa971cd['getFirstRange'](),_0x331f49=Array['from'](_0x7d89c0['keys']())['find'](_0xd9c0dc=>_0xd9c0dc['isIntersecting'](_0x5d7039));if(!_0x331f49)continue;const _0x535eb2=_0x331f49['getDifference'](_0x5d7039);this['_suggestionsConversion']['isBlockAttribute'](_0xa6fcaa)&&'insertion'==_0xa971cd['type']&&0x0!=_0x535eb2['length']||(_0x7d89c0['delete'](_0x331f49),_0x535eb2['forEach'](_0x51c60e=>{_0x7d89c0['set'](_0x51c60e,_0x1c1832);}),'insertion'!=_0xa971cd['type']&&_0x3e5576!=_0x4f9841&&_0x7d89c0['set'](_0x331f49['getIntersection'](_0x5d7039),_0x3e5576));}const _0x117099=[];for(const [_0x2b560c,_0x47c32f]of _0x7d89c0){const _0x4dad95=_0xa3c351(),_0x2268b8={'key':_0xa6fcaa,'oldValue':_0x47c32f,'newValue':_0x4f9841};_0xa6fcaa['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':_0xa6fcaa});const _0x18445b=('attribute:'+_0xa6fcaa+'|'+fn({'newValue':_0x4f9841}))['substring'](0x0,0x3c),_0x39133f=this['_setSuggestionData']({'id':_0x4dad95,'type':_0x18445b,'data':_0x2268b8,'createdAt':new Date(),'authorId':_0x2b1398,'attributes':_0x5ccc2a});_0x117099['push'](_0x39133f),this['_addSuggestionMarker'](_0x18445b,_0x4dad95,_0x2b1398,_0x2b560c);}return _0x117099;}enableDefaultAttributesIntegration(_0x375698){this['enableCommand'](_0x375698,(_0x588a91,..._0x1e47a8)=>{this['recordAttributeChanges'](()=>{_0x588a91(..._0x1e47a8);});});}startTrackingSession(_0x376173){return this['_trackingSessionId']=void 0x0!==_0x376173?_0x376173:_0xa3c351(),this['_trackingSessionId'];}_getAttributeKey(_0x43e3df){return'attribute'==_0x43e3df['type']?Cn(_0x43e3df['subType']):null;}_applyOperationsAsSuggestions(_0x42967d){if(0x0==_0x42967d['length'])return;const _0x190758=this['editor'],_0x4b46cb=[],_0x25b217=_0x25e279=>{const _0x8d097f=_0x25e279['_aiSource'];return _0x8d097f?{'@ai':{'type':_0x8d097f}}:{};},_0x368fef=(_0x10f9e8,_0x377b9d,_0x21ad20,_0x48690c)=>{const _0x211cbd=new Set(_0x48690c['flatMap'](_0x4dc8a5=>_0x4dc8a5['getMarkerNames']()));let _0x4ad636=!0x1;for(let _0x1c6801=_0x377b9d;_0x1c6801<_0x10f9e8['operations']['length'];_0x1c6801++){const _0x1104fd=_0x10f9e8['operations'][_0x1c6801];if('marker'==_0x1104fd['type']){if(!_0x211cbd['has'](_0x1104fd['name']))continue;_0x4ad636=!0x0;}_0x1104fd['_aiSource']=_0x21ad20;}return _0x4ad636;};_0x190758['model']['change'](_0x396aad=>{for(let _0x350c11=0x0;_0x350c11<_0x42967d['length'];_0x350c11++){const _0xb67d=_0x42967d[_0x350c11],_0x3f568e=_0xb67d['_aiSource'];if(_0xb67d['baseVersion']=_0x190758['model']['document']['version'],_0xb67d['isDocumentOperation']=!0x0,_0x14639a(_0xb67d))continue;if(an(_0xb67d)){const _0x562726=_0x155c70(_0xb67d['newRange'],_0x190758['model']);_0x4b46cb['unshift']({'range':at['fromRange'](_0x562726),'operation':_0xb67d});continue;}const _0x38b814=_0x396aad['batch']['operations']['length']+0x1;let _0x568291=[];switch(_0xb67d['type']){case'rename':{const _0x109378=_0xb67d['oldName'],_0x36c003=_0xb67d['newName'];if(_0x109378==_0x36c003)break;_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x53a2bc='$elementName',_0x3e6c90=_0xb67d['position'],_0x1d5b35=_0x190758['model']['createRange'](_0x3e6c90,_0x190758['model']['createPositionAt'](_0x3e6c90['nodeAfter'],'end'));_0x568291=this['markAttributeChange'](_0x1d5b35,_0x53a2bc,_0x109378,_0x36c003,{..._0x25b217(_0xb67d),'groupId':_0xa3c351()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1b2480=_0xb67d['oldValue'],_0x1d8bd0=_0xb67d['newValue'];if(_0x1b2480==_0x1d8bd0)break;_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x3f73fb=_0xb67d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3f73fb))break;const _0x11bf87=_0x155c70(_0xb67d['range'],_0x190758['model']);_0x568291=this['markAttributeChange'](_0x11bf87,_0x3f73fb,_0x1b2480,_0x1d8bd0,{..._0x25b217(_0xb67d),'groupId':_0xa3c351()});break;}case'insert':{if(_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d),_0x42967d[_0x350c11+0x1]&&'move'==_0x42967d[_0x350c11+0x1]['type'])break;const _0x28a0dc=_0xb67d['position'],_0x20a589=_0xb67d['howMany'],_0x44b307=_0x155c70(_0x190758['model']['createRange'](_0x28a0dc,_0x28a0dc['getShiftedBy'](_0x20a589)),_0x190758['model']);_0x568291=cn(this['markInsertion'](_0x44b307,null,{..._0x25b217(_0xb67d)}));break;}case'split':{_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);const _0x1a2c09=_0xb67d['splitPosition'],_0x554625=_0xb67d['moveTargetPosition'],_0x43ec27=_0x190758['model']['createRange'](_0x1a2c09,_0x554625);_0x568291=cn(this['markInsertion'](_0x43ec27,null,{..._0x25b217(_0xb67d)}));break;}case'move':case'remove':_0x396aad['batch']['addOperation'](_0xb67d),_0x190758['model']['applyOperation'](_0xb67d);}_0x3f568e&&_0x368fef(_0x396aad['batch'],_0x38b814,_0x3f568e,_0x568291)&&delete _0xb67d['_aiSource'];}for(const {range:_0x5d3adf,operation:_0x14558e}of _0x4b46cb){const _0x448d6c=_0x14558e['_aiSource'],_0x383b23=_0x25b217(_0x14558e),_0x3cdfbc=_0x396aad['batch']['operations']['length'];_0x5d3adf['detach']();const _0x2fe9e8=this['markDeletion'](_0x5d3adf,null,{..._0x383b23});_0x448d6c&&_0x368fef(_0x396aad['batch'],_0x3cdfbc,_0x448d6c,cn(_0x2fe9e8));}});}_setSuggestionRange(_0x4140ea,_0x1dd4e9){const _0x32dd0c=_0x4140ea['getFirstMarker']();this['_model']['change'](_0x84680e=>{_0x84680e['updateMarker'](_0x32dd0c,{'range':_0x1dd4e9});});}_addThreadToSuggestion(_0x5ebe99){const _0x279f5b=_0x5ebe99['id'],_0x3d6875=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x279f5b)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3d6875,'threadId':_0x279f5b,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x20cfb1=this['_commentsRepository']['getCommentThread'](_0x279f5b);_0x20cfb1['unbind']('isRemovable'),_0x20cfb1['isRemovable']=!0x1,_0x5ebe99['commentThread']=_0x20cfb1;}_checkSuggestionCorrectness(_0x1190d7,_0x1ea73e,_0x5aad38,_0x4d9688){if(_0x1190d7['type']!=_0x1ea73e||_0x1190d7['subType']!=_0x5aad38||_0x1190d7['creator']['id']!=_0x4d9688)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x228d64('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x355f91,_0x2cfd97){const _0x57f3b8=_0x355f91['getFirstRange']();if(_0x2cfd97['isEqual'](_0x57f3b8))_0x355f91['removeMarkers']();else{if(_0x57f3b8['containsRange'](_0x2cfd97)){const _0x29e009=this['_model']['createPositionAt'](_0x2cfd97['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x57f3b8['start'],_0x29e009));const _0x4c44ff=_0xa3c351(),_0x3b3414=_0x355f91['creator']['id'],_0x13d098=_0x355f91['type']+':'+_0x355f91['subType'];this['_setSuggestionData']({'id':_0x4c44ff,'type':_0x13d098,'createdAt':new Date(),'authorId':_0x3b3414,'data':_0x355f91['data'],'attributes':_0x355f91['attributes']});const _0x2edfc2=this['_model']['createPositionAt'](_0x2cfd97['end']['parent'],'after'),_0xf98f8c=this['_model']['createRange'](_0x2edfc2,_0x57f3b8['end']);this['_addSuggestionMarker'](_0x13d098,_0x4c44ff,_0x3b3414,_0xf98f8c);}else{if(_0x57f3b8['containsPosition'](_0x2cfd97['start'])){const _0x17ac25=this['_model']['createPositionAt'](_0x2cfd97['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x57f3b8['start'],_0x17ac25));}else{const _0x660230=this['_model']['createPositionAt'](_0x2cfd97['end']['parent'],'after');this['_setSuggestionRange'](_0x355f91,this['_model']['createRange'](_0x660230,_0x57f3b8['end']));}}}}_rangeIsInLocalUserInsertion(_0x4487b4){for(const {suggestion:_0x2ca24d,meta:_0x249afc}of this['_findSuggestions'](_0x4487b4,'insertion')){if(!_0x249afc['isOwn'])continue;const _0x2a687c=_0x2ca24d['getRanges']();for(const _0x4864ca of _0x2a687c)if(!_0x4487b4['getDifference'](_0x4864ca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x34f781){return this['editor']['plugins']['get']('Users')['getUser'](_0x34f781);}_getExternalAuthor(_0x318404){const _0x45151c=this['editor']['plugins']['get']('Users'),_0xe3fb3d=_0x5032f4('external:'+_0x318404),_0x59011c=_0x45151c['getUser'](_0xe3fb3d);return _0x59011c||_0x45151c['addUser']({'id':_0xe3fb3d,'name':_0x318404});}_createSuggestion(_0x3e4316,_0x35e133,_0x72781d,_0x1dd1b8,_0x2b7839,_0x4ed260){const _0x33ab38=this['_getAuthorFromId'](_0x1dd1b8);if(!_0x33ab38)throw new _0x228d64('track-changes-user-not-found',this,{'authorId':_0x1dd1b8,'suggestionId':_0x72781d});const _0x35ddee=this['_suggestionFactory']['buildSuggestion'](_0x3e4316,_0x35e133,_0x72781d,_0x33ab38,_0x2b7839,_0x4b725d=>{this['_updateSuggestionData'](_0x72781d,{'attributes':_0x4b725d});const _0x5afa9f=this['getSuggestion'](_0x72781d);this['_joinWithAdjacentSuggestions'](new Set([_0x5afa9f])),this['_refreshSuggestionsChain'](new Set([_0x5afa9f]));},_0x4ed260);return this['listenTo'](_0x35ddee,'accept',()=>{this['_updateSuggestionData'](_0x72781d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x35ddee,'discard',()=>{this['_updateSuggestionData'](_0x72781d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x72781d,_0x35ddee),this['_suggestionState']['set'](_0x35ddee,'notReady'),_0x35ddee;}_breakSuggestionMarker(_0x1dee91,_0x4d33c0,_0x447ec3){const _0x416307=_0x1dee91['getFirstRange'](),_0x598b2c=_0x416307['start'],_0x13c489=_0x416307['end'];this['_setSuggestionRange'](_0x1dee91,this['_model']['createRange'](_0x598b2c,_0x4d33c0));const _0x18dadb=_0xa3c351(),_0x8b4036=_0x1dee91['creator']['id'],_0x403d2a=_0x1dee91['type']+(_0x1dee91['subType']?':'+_0x1dee91['subType']:'');this['_setSuggestionData']({'id':_0x18dadb,'type':_0x403d2a,'createdAt':new Date(),'authorId':_0x8b4036,'originalSuggestionId':_0x1dee91['_originalSuggestionId']||_0x1dee91['id'],'attributes':_0x1dee91['attributes'],'data':_0x1dee91['data']});const _0x1d3de4=this['_getAttributeKey'](_0x1dee91);('formatBlock'==_0x1dee91['type']||_0x1d3de4&&this['_suggestionsConversion']['isBlockAttribute'](_0x1d3de4))&&(_0x447ec3=this['_model']['createPositionBefore'](_0x447ec3['parent'])),this['_addSuggestionMarker'](_0x403d2a,_0x18dadb,_0x8b4036,this['_model']['createRange'](_0x447ec3,_0x13c489));}_findSuggestions(_0x27c09c,_0x56f5bd=null){const _0x13ae6c=[],_0x34baee=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x27c09c)||(_0x27c09c=[_0x27c09c]);for(const _0x2308e7 of this['getSuggestions']()){if(!_0x2308e7['isInContent'])continue;if(_0x56f5bd&&_0x2308e7['type']!=_0x56f5bd)continue;let _0x3366eb=!0x1;for(const _0x2ace3a of _0x2308e7['getRanges']()){for(const _0x4bd5dd of _0x27c09c){const _0x987052=_0x4bd5dd['start']['isEqual'](_0x2ace3a['end'])||_0x4bd5dd['end']['isEqual'](_0x2ace3a['start']);if(_0x987052||_0x4bd5dd['getIntersection'](_0x2ace3a)){const _0x36acbb=_0x4bd5dd['containsRange'](_0x2ace3a)&&dn(this['_model']['schema'],_0x2ace3a['start'],_0x4bd5dd),_0x17f3f9=_0x2ace3a['containsRange'](_0x4bd5dd)&&dn(this['_model']['schema'],_0x4bd5dd['start'],_0x2ace3a);_0x13ae6c['push']({'suggestion':_0x2308e7,'meta':{'isOwn':_0x34baee==_0x2308e7['author'],'isNextTo':_0x987052,'isInsideObject':_0x36acbb,'containsRangeInObject':_0x17f3f9}}),_0x3366eb=!0x0;break;}}if(_0x3366eb)break;}}return _0x13ae6c;}_addSuggestionMarker(_0x449782,_0x450dd7,_0x17dcc9,_0x1264b8,_0x329402){this['_model']['change'](_0x1c4bbe=>{let _0x3688b1='suggestion:'+_0x449782+':'+_0x450dd7+':'+_0x17dcc9;_0x329402&&(_0x3688b1=_0x3688b1+':'+_0x329402),_0x1c4bbe['addMarker'](_0x3688b1,{'range':_0x1264b8,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x5a59d8){const _0x53ee93=_0x5a59d8['previous'],_0x454596=_0x5a59d8['next'];_0x5a59d8['previous']=null,_0x5a59d8['next']=null,null!=_0x53ee93&&_0x53ee93['next']==_0x5a59d8&&(_0x53ee93['next']=_0x454596),null!=_0x454596&&_0x454596['previous']==_0x5a59d8&&(_0x454596['previous']=_0x53ee93),'ready'==this['_suggestionState']['get'](_0x5a59d8)&&(this['_suggestionState']['set'](_0x5a59d8,'removed'),this['fire']('suggestionUnloaded',_0x5a59d8,_0x53ee93,_0x454596));}_setSuggestionData(_0x33ad50){const _0x3f334d=_0x33ad50['id'],_0x59a3e6=this['addSuggestionData'](_0x33ad50);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3d1300=this['editor']['plugins']['get']('PendingActions'),_0x2dc013=_0x59a3e6['hasComments'],_0x13331e=_0x59a3e6['subType']?_0x59a3e6['type']+':'+_0x59a3e6['subType']:_0x59a3e6['type'],_0x3fb064=this['editor']['locale'],_0x56b93a=_0x3d1300['add'](wt(_0x3fb064,'PENDING_ACTION_SUGGESTION')),_0x7fee62={'id':_0x3f334d,'type':_0x13331e,'hasComments':_0x2dc013,'data':_0x33ad50['data']||null,'originalSuggestionId':_0x33ad50['originalSuggestionId']||null,'attributes':_0x59a3e6['attributes']};this['_adapter']['addSuggestion'](_0x7fee62)['then'](_0x1c018d=>{_0x59a3e6['_saved']=!0x0,_0x3d1300['remove'](_0x56b93a),_0x1c018d&&_0x1c018d['createdAt']&&(this['_suggestions']['get'](_0x3f334d)['createdAt']=_0x1c018d['createdAt']);})['catch'](_0x53be66=>{throw _0x4eb8ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x59a3e6['discard']();}),_0x59a3e6['stopListening'](),this['_suggestions']['delete'](_0x59a3e6['id']),this['_suggestionState']['delete'](_0x59a3e6),_0x53be66;});}return _0x59a3e6;}_updateSuggestionData(_0x54ec0b,_0x59fdb6){const _0x120f50=this['editor']['plugins']['get']('PendingActions'),_0x622088=this['getSuggestion'](_0x54ec0b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x622088['_saved']){const _0x165676=_0x120f50['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x54ec0b,_0x59fdb6)['then'](()=>{_0x120f50['remove'](_0x165676);});}else _0x622088['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x54ec0b,_0x59fdb6);});}}_getSuggestionData(_0x4c1cc4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x228d64('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4c1cc4);}_handleNewSuggestionMarker(_0x256190){const {id:_0x3bc3d5,type:_0x38fc2c,subType:_0x25da1f,authorId:_0x2a15ea}=nt(_0x256190),_0x146da2=this['_suggestions']['get'](_0x3bc3d5)||this['_createSuggestion'](_0x38fc2c,_0x25da1f,_0x3bc3d5,_0x2a15ea,{});switch(this['_checkSuggestionCorrectness'](_0x146da2,_0x38fc2c,_0x25da1f,_0x2a15ea),this['_suggestionState']['get'](_0x146da2)){case'notReady':this['_getSuggestionData'](_0x3bc3d5)['then'](_0x22eec5=>{let _0xca489c=Promise['resolve']();_0x22eec5['hasComments']&&(_0xca489c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3bc3d5})),_0xca489c['then'](()=>{this['addSuggestionData'](_0x22eec5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x146da2,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3bc3d5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x146da2,'ready'),this['fire']('suggestionLoaded',_0x146da2);break;case'ready':this['fire']('suggestionChanged',_0x146da2);}return _0x146da2['addMarkerName'](_0x256190),_0x146da2;}_refreshSuggestionsChain(_0x475814){const _0xda6d05=Array['from'](_0x475814),_0x481a28=_0xda6d05['filter'](_0x359f3b=>'attribute'==_0x359f3b['type']);this['_refreshAttributeSuggestionsChain'](_0x481a28);const _0x10ed0d=_0xda6d05['filter'](_0x255d19=>!_0x255d19['isMultiRange']&&'attribute'!=_0x255d19['type']),_0x5ced18=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39c946=>!_0x39c946['isMultiRange']&&'attribute'!=_0x39c946['type']),_0x20ac2f=_0x5ced18['filter'](_0xe29b89=>!_0x475814['has'](_0xe29b89)),_0x25755f=new Map(_0x5ced18['map'](_0x2500a3=>[_0x2500a3,this['_suggestionFactory']['getSuggestionCallback'](_0x2500a3['type'],_0x2500a3['subType'],'chain')])),_0x598d3f=new Map(_0x5ced18['map'](_0x30f0dd=>[_0x30f0dd,_0x30f0dd['getFirstRange']()])),_0x53542f=new Set(),_0xbeb5fb=new Set();for(let _0x3adaf6=0x0;_0x3adaf6<_0x10ed0d['length'];_0x3adaf6++)_0x1ee902(_0x10ed0d[_0x3adaf6],_0x10ed0d,_0x3adaf6+0x1);for(let _0x140b09=0x0;_0x140b09<_0x10ed0d['length'];_0x140b09++)_0x1ee902(_0x10ed0d[_0x140b09],_0x20ac2f,0x0);const _0x1466a=new Set();for(let _0x51e795=0x0;_0x51e795<_0x10ed0d['length'];_0x51e795++){const _0x178685=_0x10ed0d[_0x51e795];!_0xbeb5fb['has'](_0x178685)&&_0x178685['previous']&&(_0x1466a['add'](_0x178685['previous']),_0x178685['previous']['next']===_0x178685&&(_0x178685['previous']['next']=null),_0x178685['previous']=null),!_0x53542f['has'](_0x178685)&&_0x178685['next']&&(_0x1466a['add'](_0x178685['next']),_0x178685['next']['previous']===_0x178685&&(_0x178685['next']['previous']=null),_0x178685['next']=null);}function _0x1ee902(_0x5047e4,_0x57fa4a,_0x4b9490){for(let _0x60aeab=_0x4b9490;_0x60aeab<_0x57fa4a['length'];_0x60aeab++){const _0x4608f4=_0x3ed9cb(_0x5047e4,_0x57fa4a[_0x60aeab]);_0x4608f4&&(_0x4608f4[0x0]['next']=_0x4608f4[0x1],_0x4608f4[0x1]['previous']=_0x4608f4[0x0],_0x53542f['add'](_0x4608f4[0x0]),_0xbeb5fb['add'](_0x4608f4[0x1]));}}function _0x3ed9cb(_0x1c20eb,_0x33d6cb){if(_0x1c20eb['author']['id']!==_0x33d6cb['author']['id'])return null;const _0x5d38ae=_0x25755f['get'](_0x1c20eb)(_0x1c20eb,_0x33d6cb,_0x598d3f['get'](_0x1c20eb),_0x598d3f['get'](_0x33d6cb));return _0x5d38ae&&_0x25755f['get'](_0x33d6cb)(_0x1c20eb,_0x33d6cb,_0x598d3f['get'](_0x1c20eb),_0x598d3f['get'](_0x33d6cb))?_0x5d38ae[0x1]['commentThread']&&_0x5d38ae[0x1]['commentThread']['length']?null:_0x5d38ae:null;}_0x1466a['size']&&this['_refreshSuggestionsChain'](_0x1466a);}_refreshAttributeSuggestionsChain(_0x11d139){if(0x0==_0x11d139['length'])return;const _0x1a6bc7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b6509=>'attribute'==_0x5b6509['type']&&_0x5b6509['_isDataLoaded']),_0x593e3c=[],_0x25438e=new Map();for(const _0x2ce180 of _0x1a6bc7){const _0x3e7749=_0x5032f4(_0x2ce180['attributes']);_0x25438e['has'](_0x3e7749)||(_0x25438e['set'](_0x3e7749,_0x593e3c['length']),_0x593e3c['push']([])),_0x593e3c[_0x25438e['get'](_0x3e7749)]['push'](_0x2ce180);}!(function(){_0x593e3c['sort']((_0x493d89,_0x174020)=>{const _0x44f8f6=_0x493d89[0x0]['createdAt'],_0x24f6a2=_0x174020[0x0]['createdAt'];return _0x44f8f6==_0x24f6a2?_0x493d89[0x0]['attributes']['groupId']<_0x174020[0x0]['attributes']['groupId']?-0x1:0x1:_0x44f8f6<_0x24f6a2?-0x1:0x1;});for(const _0x30a36d of _0x593e3c)_0x30a36d['sort']((_0x2e6f31,_0x54718b)=>_0x2e6f31['id']<_0x54718b['id']?-0x1:0x1);}());for(let _0x460e41=0x0;_0x460e41<_0x593e3c['length'];_0x460e41++){if(0x0==_0x593e3c[_0x460e41]['length'])continue;const _0x388eb9=[];for(let _0x2c8204=_0x460e41+0x1;_0x2c8204<_0x593e3c['length'];_0x2c8204++)0x0!=_0x593e3c[_0x2c8204]['length']&&_0x2216e2(_0x593e3c[_0x460e41],_0x593e3c[_0x2c8204])&&_0x388eb9['push'](_0x2c8204);for(const _0xe888d0 of _0x388eb9)_0x593e3c[_0x460e41]=_0x593e3c[_0x460e41]['concat'](_0x593e3c[_0xe888d0]),_0x593e3c[_0xe888d0]=[];}for(const _0xc7af3 of _0x593e3c)for(let _0x448f88=0x0;_0x448f88<_0xc7af3['length'];_0x448f88++){const _0x8c6a8a=_0xc7af3[_0x448f88+0x1]||null;_0xc7af3[_0x448f88]['next']!==_0x8c6a8a&&(_0xc7af3[_0x448f88]['next']=_0x8c6a8a);}for(const _0x361e05 of _0x593e3c)for(let _0xef8f68=0x0;_0xef8f68<_0x361e05['length'];_0xef8f68++){const _0xef4423=_0x361e05[_0xef8f68-0x1]||null;_0x361e05[_0xef8f68]['previous']!==_0xef4423&&(_0x361e05[_0xef8f68]['previous']=_0xef4423);}function _0x2216e2(_0x7bcc6e,_0x5d9088){if(_0x7bcc6e[0x0]['attributes']['groupId']!==_0x5d9088[0x0]['attributes']['groupId']&&_0x7bcc6e[0x0]['author']!==_0x5d9088[0x0]['author'])return!0x1;if(!function(_0x55dc9c,_0x43b27f){return!_0x55dc9c['hasComments']&&!_0x43b27f['hasComments']||(!_0x55dc9c['hasComments']||!_0x43b27f['hasComments'])&&(!!(_0x55dc9c['hasComments']&&_0x43b27f['createdAt']<_0x55dc9c['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x43b27f['hasComments']&&_0x55dc9c['createdAt']<_0x43b27f['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x7bcc6e[0x0],_0x5d9088[0x0]))return!0x1;const _0x5cba13=dt(_0x7bcc6e[0x0]['attributes'],['groupId','trackingSessionId']),_0x19cc7c=dt(_0x5d9088[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x5cba13,_0x19cc7c)&&(_0x7bcc6e[0x0]['attributes']['groupId']==_0x5d9088[0x0]['attributes']['groupId']||_0x7bcc6e[0x0]['attributes']['trackingSessionId']===_0x5d9088[0x0]['attributes']['trackingSessionId']&&(!!_0x7bcc6e['every'](_0x230713=>_0x5d9088['some'](_0x50e2db=>_0x230713['getFirstRange']()['isEqual'](_0x50e2db['getFirstRange']())))&&_0x5d9088['every'](_0x49728e=>_0x7bcc6e['some'](_0x3232c7=>_0x49728e['getFirstRange']()['isEqual'](_0x3232c7['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x4ab5a3){const _0x4d1bc1=Array['from'](_0x4ab5a3),_0x9c2ccf=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57cebb=_0x9c2ccf['filter'](_0x408d86=>!_0x4ab5a3['has'](_0x408d86)),_0x139701=new Map(_0x4d1bc1['map'](_0x78d768=>[_0x78d768,this['_suggestionFactory']['getSuggestionCallback'](_0x78d768['type'],_0x78d768['subType'],'join')])),_0x4ce2d5=new Map(_0x9c2ccf['map'](_0xdf0390=>[_0xdf0390,_0xdf0390['getRanges']()]));for(let _0x3bf876=0x0;_0x3bf876<_0x4d1bc1['length'];_0x3bf876++)if(_0x560357(this,_0x4d1bc1[_0x3bf876],_0x4d1bc1,_0x3bf876+0x1))return!0x0;for(let _0x22a242=0x0;_0x22a242<_0x4d1bc1['length'];_0x22a242++)if(_0x560357(this,_0x4d1bc1[_0x22a242],_0x57cebb,0x0))return!0x0;return!0x1;function _0x560357(_0x2e823e,_0x40112f,_0x1687cf,_0x961504){for(let _0x288365=_0x961504;_0x288365<_0x1687cf['length'];_0x288365++){const _0x4aa3dc=_0x1687cf[_0x288365];if(_0x4aa3dc['type']!==_0x40112f['type']||_0x4aa3dc['author']['id']!==_0x40112f['author']['id']||_0x4aa3dc['subType']!==_0x40112f['subType'])continue;if(!In(_0x40112f,_0x4aa3dc))continue;if('attribute'==_0x40112f['type']&&_0x40112f['data']['oldValue']!=_0x4aa3dc['data']['oldValue'])continue;if('attribute'==_0x40112f['type']&&_0x2e823e['_suggestionsConversion']['isBlockAttribute'](_0x40112f['data']['key']))continue;if('formatBlock'==_0x40112f['type']){const _0x1fc263=_0x2e823e['editor']['model'],_0x15c716=_0x40112f['getContainedElement']();if(_0x15c716&&(_0x1fc263['schema']['isObject'](_0x15c716)||_0x1fc263['schema']['isLimit'](_0x15c716)))continue;}const _0x55a1c0=_0x139701['get'](_0x40112f),_0x5eaf05=_0x4ce2d5['get'](_0x40112f),_0x306883=_0x4ce2d5['get'](_0x4aa3dc),_0x16a9cb=_0x40112f['commentThread']&&_0x40112f['commentThread']['length'],_0xae7761=_0x4aa3dc['commentThread']&&_0x4aa3dc['commentThread']['length'];if(!_0x16a9cb&&_0x55a1c0(_0x306883,_0x5eaf05))return _0x2e823e['_joinSuggestions'](_0x4aa3dc,_0x40112f),_0x4ce2d5['delete'](_0x40112f),!0x0;if(!_0xae7761&&_0x55a1c0(_0x5eaf05,_0x306883))return _0x2e823e['_joinSuggestions'](_0x40112f,_0x4aa3dc),_0x4ce2d5['delete'](_0x4aa3dc),!0x0;}return!0x1;}}_joinSuggestions(_0x5d5b9e,_0x42fa6c){if(_0x5d5b9e['isMultiRange']){for(const _0x14f603 of _0x42fa6c['getRanges']())_0x5d5b9e['addRange'](_0x14f603);}else{const _0x5ab7de=_0x42fa6c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d5b9e,this['_model']['createRange'](_0x5d5b9e['getFirstRange']()['start'],_0x5ab7de));}_0x42fa6c['removeMarkers']();}_getMarkerAnnouncementText(_0x5cc0d1,_0x5d0e28,_0x4f54be){const _0x3ba29b=_0x5cc0d1['startsWith']('format')||_0x5cc0d1['startsWith']('attribute')?'FORMATTING':_0x5cc0d1['toUpperCase']();return wt(this['editor']['locale'],_0x5d0e28+'_'+_0x3ba29b+'_SUGGESTION_ANNOUNCEMENT',_0x4f54be);}_initAriaMarkerChangeAnnouncements(){const _0xe7c677=this['editor'];if(!_0xe7c677['ui'])return;const {ariaLiveAnnouncer:_0x24dcfb}=_0xe7c677['ui'];it(this['_model'],({left:_0x127331,entered:_0x534218})=>{for(const _0x1f4cbb of _0x127331){const {group:_0x33a7a1,type:_0x2ab7a8}=nt(_0x1f4cbb['name']);if('suggestion'===_0x33a7a1){_0x24dcfb['announce'](this['_getMarkerAnnouncementText'](_0x2ab7a8,'LEAVE'));break;}}for(const _0x126a61 of _0x534218){const {group:_0x5bf0a9,type:_0xa490db}=nt(_0x126a61['name']);if('suggestion'===_0x5bf0a9){_0x24dcfb['announce'](this['_getMarkerAnnouncementText'](_0xa490db,'ENTER',_0x594d7d(_0x41c81f)));break;}}});}_processAttributeChanges(_0x4e9b6a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ff6f7=this['editor'],_0x2c083a=_0x3ff6f7['model']['document']['differ']['getChanges']();if(0x0==_0x2c083a['length'])return!0x1;const _0x3006a7=[],_0x2ce4b2=_0x2c083a['filter'](_0x1fbf14=>'attribute'==_0x1fbf14['type']),_0x231313=_0x2c083a['filter'](_0x4d1c99=>'insert'==_0x4d1c99['type']&&'$text'!=_0x4d1c99['name']),_0x55ec43=_0x2c083a['filter'](_0x219d96=>'remove'==_0x219d96['type']&&'$text'!=_0x219d96['name']);for(const _0x4b413b of _0x2ce4b2)_0x3006a7['push']({'key':_0x4b413b['attributeKey'],'newValue':_0x4b413b['attributeNewValue'],'oldValue':_0x4b413b['attributeOldValue'],'range':_n(_0x4b413b['range'],_0x3ff6f7['model'])});for(const _0x1dbd58 of _0x231313){const _0x224554=_0x55ec43['find'](_0x4874c0=>_0x4874c0['position']['isEqual'](_0x1dbd58['position']));_0x224554&&_0x3006a7['push']({'key':on,'newValue':_0x1dbd58['name'],'oldValue':_0x224554['name'],'range':_0x3ff6f7['model']['createRangeOn'](_0x1dbd58['position']['nodeAfter'])});}return 0x0!=_0x3006a7['length']&&this['_reduceExistingSuggestions'](_0x4e9b6a,_0x3006a7);}_processAttributeSuggestions(_0x460b8c){let _0x355441=!0x1;const _0x5b3e0f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5232aa=>_0x5232aa['data']['newRange']&&_0x5232aa['name']['startsWith']('suggestion:attribute:'));for(const _0x68023f of _0x5b3e0f){const {subType:_0x5b8ff8,id:_0x330989}=nt(_0x68023f['name']),_0x28b3bf=_0x5b8ff8['split']('|')[0x0];for(const _0x532fd0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x532fd0['id']!=_0x330989&&'attribute'==_0x532fd0['type']&&_0x532fd0['data']&&_0x532fd0['data']['key']==_0x28b3bf&&_0x532fd0['getFirstRange']()['isIntersecting'](_0x68023f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x532fd0,_0x68023f['data']['newRange'],_0x460b8c),_0x355441=!0x0);}return _0x355441;}recordAttributeChanges(_0x5b170a){this['_recordAttributeSuggestions']=!0x0,_0x5b170a();}_reduceExistingSuggestions(_0x1a9e7d,_0x105cc8){if(0x0==_0x105cc8['length'])return!0x1;let _0x276e9f=!0x1;for(const _0x147d4a of _0x105cc8){const _0x4f7b40=this['_findSuggestions'](_0x147d4a['range'],'attribute')['filter'](_0x41ca16=>!_0x41ca16['meta']['isNextTo'])['map'](_0x35e536=>_0x35e536['suggestion']),_0x35cbab=_0x5032f4({'newValue':_0x147d4a['newValue']});_0x4f7b40['filter'](_0xfea385=>{const [_0x5a311d,_0x21d033]=_0xfea385['subType']['split']('|');return _0x5a311d==_0x147d4a['key']&&_0x21d033!=_0x35cbab;})['forEach'](_0xa31239=>{this['_reduceSuggestionAttributeRange'](_0xa31239,_0x147d4a['range'],_0x1a9e7d),_0x276e9f=!0x0;});}return _0x276e9f;}_reduceSuggestionAttributeRange(_0x217ce1,_0x478508,_0x40740f){const _0x302998=_0x217ce1['getFirstRange']()['getDifference'](_0x478508);0x0!==_0x302998['length']?0x1!==_0x302998['length']?this['_breakSuggestionMarker'](_0x217ce1,_0x478508['start'],_0x478508['end']):this['_setSuggestionRange'](_0x217ce1,_0x302998[0x0]):_0x40740f['removeMarker'](_0x217ce1['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4243f0){this['_editor']=_0x4243f0,this['_model']=_0x4243f0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x501e1f,_0x5f43ed,_0x2bc91b,_0x4757ff,_0x729c29,_0x11252a,_0x41030a){return new Ot(this['_model'],{'type':_0x501e1f,'subType':_0x5f43ed,'id':_0x2bc91b,'originalSuggestionId':_0x41030a,'author':_0x4757ff,'creator':_0x4757ff,'attributes':_0x729c29,'onAttributesChange':_0x11252a,'onAccept':(..._0x417a6e)=>this['getSuggestionCallback'](_0x501e1f,_0x5f43ed,'accept')(..._0x417a6e),'onDiscard':(..._0x9cff03)=>this['getSuggestionCallback'](_0x501e1f,_0x5f43ed,'discard')(..._0x9cff03)});}registerCustomCallback(_0x7ac3a2,_0x5aca12,_0x4e697e,_0x438221){const _0x4e62fb=_0x7ac3a2+':'+_0x5aca12+':'+_0x4e697e;this['_customCallbacks']['set'](_0x4e62fb,_0x438221);}getSuggestionCallback(_0x58fe50,_0x47d37b,_0x21e85c){const _0x2d3c33=_0x58fe50+':'+_0x47d37b+':'+_0x21e85c;return this['_customCallbacks']['get'](_0x2d3c33)||this['_defaultCallbacks']['get'](_0x58fe50+':'+_0x21e85c);}_registerDefaultCallbacks(){const _0x3c1cea=()=>!0x1,_0x3ae3e3=_0x4aa13d=>{_0x4aa13d['sort']((_0x76222d,_0x27515c)=>_0x76222d['start']['isBefore'](_0x27515c['start'])?0x1:-0x1),this['_model']['change'](_0x42a00a=>{for(const _0x1a80dc of _0x4aa13d){let _0x1ef88f;_0x1ef88f=_0x1a80dc['end']['isAtEnd']&&_0x1a80dc['end']['parent']==_0x1a80dc['start']['nodeAfter']?_0x42a00a['createSelection'](_0x1a80dc['start']['nodeAfter'],'on'):_0x42a00a['createSelection'](_0x1a80dc),this['_model']['deleteContent'](_0x1ef88f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x51f623=(_0x2e086f,_0x202650)=>{_0x202650&&this['_model']['change'](_0x33bfd5=>{const {commandName:_0x126057,commandParams:_0x24a035=[]}=_0x202650,_0x3050c5=_0x2e086f['map'](_0x3d9638=>(hn(_0x3d9638)&&(_0x3d9638=this['_model']['createRange'](_0x3d9638['end'])),_0x3d9638))['filter'](_0x1e987d=>'$graveyard'!==_0x1e987d['root']['rootName']);if(_0x3050c5['length']<0x1)return;const _0x307d5d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x155060=>at['fromRange'](_0x155060));_0x33bfd5['setSelection'](_0x3050c5);for(const _0x2ad12f of this['_editor']['commands']['commands']())_0x2ad12f['refresh']();_0x24a035['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x126057,..._0x24a035);const _0x48b22c=_0x307d5d['filter'](_0x48dfe9=>'$graveyard'!=_0x48dfe9['root']['rootName']);_0x48b22c['length']>0x0&&_0x33bfd5['setSelection'](_0x48b22c);for(const _0x43a4ec of _0x307d5d)_0x43a4ec['detach']();});},_0x6b89cd=(_0x5247b1,_0x32f97e)=>0x1==_0x5247b1['length']&&0x1==_0x32f97e['length']&&_0x5247b1[0x0]['end']['isEqual'](_0x32f97e[0x0]['start']),_0x1feace=(_0x9b9946,_0x545fec,_0x136bf3,_0x4918bc)=>Ln(_0x9b9946,_0x545fec,_0x136bf3,_0x4918bc)?[_0x9b9946,_0x545fec]:Ln(_0x545fec,_0x9b9946,_0x4918bc,_0x136bf3)?[_0x545fec,_0x9b9946]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3c1cea),this['_defaultCallbacks']['set']('insertion:discard',_0x3ae3e3),this['_defaultCallbacks']['set']('insertion:join',_0x6b89cd),this['_defaultCallbacks']['set']('insertion:chain',_0x1feace),this['_defaultCallbacks']['set']('deletion:accept',_0x3ae3e3),this['_defaultCallbacks']['set']('deletion:discard',_0x3c1cea),this['_defaultCallbacks']['set']('deletion:join',_0x6b89cd),this['_defaultCallbacks']['set']('deletion:chain',_0x1feace),this['_defaultCallbacks']['set']('formatInline:accept',_0x51f623),this['_defaultCallbacks']['set']('formatInline:discard',_0x3c1cea),this['_defaultCallbacks']['set']('formatInline:join',_0x6b89cd),this['_defaultCallbacks']['set']('formatInline:chain',_0x3c1cea),this['_defaultCallbacks']['set']('formatBlock:accept',_0x51f623),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3c1cea),this['_defaultCallbacks']['set']('formatBlock:join',_0x6b89cd),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3c1cea),this['_defaultCallbacks']['set']('attribute:accept',_0x3c1cea),this['_defaultCallbacks']['set']('attribute:discard',(_0x566adc,_0x579de9)=>{if(!_0x579de9)return;const _0x4702c6=this['_editor']['plugins']['get'](_0x159bfb);this['_model']['change'](_0x43714c=>{if('$elementName'==_0x579de9['key'])for(const _0x4de527 of _0x566adc){const _0x47f06a=_0x4de527['start']['nodeAfter'],_0x5e8b8a=_0x579de9['oldValue'];_0x43714c['rename'](_0x47f06a,_0x5e8b8a);}else{if(_0x4702c6['isBlockAttribute'](_0x579de9['key'])){for(const _0x322e84 of _0x566adc)void 0x0!==_0x579de9['oldValue']?_0x43714c['setAttribute'](_0x579de9['key'],_0x579de9['oldValue'],_0x322e84['start']['nodeAfter']):_0x43714c['removeAttribute'](_0x579de9['key'],_0x322e84['start']['nodeAfter']);}else{for(const _0x18c247 of _0x566adc)_0x579de9['oldValue']?_0x43714c['setAttribute'](_0x579de9['key'],_0x579de9['oldValue'],_0x18c247):_0x43714c['removeAttribute'](_0x579de9['key'],_0x18c247);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x6b89cd);}};function dn(_0x27cb9b,_0x3b2e6c,_0x20fa82){for(const _0x503cbb of _0x3b2e6c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x503cbb['root']==_0x503cbb)return!0x1;if(!_0x20fa82['containsItem'](_0x503cbb))return!0x1;if(_0x27cb9b['isObject'](_0x503cbb)||_0x27cb9b['isLimit'](_0x503cbb))return!0x0;}return!0x1;}function hn(_0x3e8035){return _0x3e8035['end']['parent']==_0x3e8035['start']['nodeAfter']&&_0x3e8035['end']['isAtStart'];}function gn(_0x235ce5,_0xb084f9,_0x528415,_0x96784d){const _0x48ad54=_0x544aee=>!_0x544aee['item']['is']('$textProxy')&&!_0x96784d['isObject'](_0x544aee['item']),_0x23e189=_0x235ce5['start']['getLastMatchingPosition'](_0x48ad54),_0x56e524=_0x235ce5['end']['getLastMatchingPosition'](_0x48ad54,{'direction':'backward'});return(!_0x235ce5['start']['isEqual'](_0x23e189)||!_0x235ce5['end']['isEqual'](_0x56e524))&&(_0x23e189['isBefore'](_0x56e524)?_0x528415['updateMarker'](_0xb084f9,{'range':_0x528415['createRange'](_0x23e189,_0x56e524)}):_0x528415['removeMarker'](_0xb084f9),!0x0);}function fn(_0x2a5a30){return _0x5032f4(_0x2a5a30);}function mn(_0x329064){const _0x3372f1=_0x329064['start']['nodeAfter'];return _0x3372f1&&_0x3372f1['is']('element');}function En(_0x4116a1){return hn(_0x4116a1)||function(_0x48740e){return _0x48740e['start']['parent']==_0x48740e['end']['nodeBefore']&&_0x48740e['start']['isAtEnd'];}(_0x4116a1);}function Tn(_0xbb4fa7,_0x53b5ac){try{const _0x2f4c76=_0xbb4fa7['getRange']();for(const _0x544f7a of _0x53b5ac)if(_0xbb4fa7!==_0x544f7a&&_0x2f4c76&&_0x2f4c76['isIntersecting'](_0x544f7a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x55ba86,_0x1e2fce){return null==_0x55ba86['end']['nodeBefore']&&_0x55ba86['end']['parent']==_0x55ba86['start']['nodeAfter']?pn(_0x55ba86['start']['nodeAfter'],_0x1e2fce):_0x55ba86;}function pn(_0x141745,_0x7aa5f){const _0xace0b7=_0x7aa5f['schema']['isObject'](_0x141745)||_0x7aa5f['schema']['isSelectable'](_0x141745);return _0x7aa5f['createRange'](_0x7aa5f['createPositionAt'](_0x141745,'before'),_0xace0b7?_0x7aa5f['createPositionAfter'](_0x141745):_0x7aa5f['createPositionAt'](_0x141745,'end'));}function Ln(_0xe29a0a,_0x906463,_0x24828b,_0x39eb50){return!!In(_0xe29a0a,_0x906463)&&_0x24828b['end']['isEqual'](_0x39eb50['start']);}function In(_0x2a9f5b,_0x51104b){if(!_0x2a9f5b['_isDataLoaded']||!_0x51104b['_isDataLoaded'])return!0x1;const _0x171e8d=new Set(Object['keys'](_0x2a9f5b['attributes'])),_0x457950=new Set(Object['keys'](_0x51104b['attributes']));if(_0x171e8d['delete']('groupId'),_0x457950['delete']('groupId'),0x0==_0x171e8d['size']&&0x0==_0x457950['size'])return!0x0;if(_0x171e8d['size']!=_0x457950['size'])return!0x1;const _0x1fb10e={..._0x2a9f5b['attributes']},_0xd95923={..._0x51104b['attributes']};return delete _0x1fb10e['groupId'],delete _0xd95923['groupId'],JSON['stringify'](_0x1fb10e)==JSON['stringify'](_0xd95923);}function An(_0x42e048,_0x239ea1){const _0xbfb4ba=bn(_0x42e048['attributes']),_0x37089f=bn(_0x239ea1);if(!_0x42e048['_isDataLoaded'])return!0x1;if(!ut(_0xbfb4ba['@ai'],_0x37089f['@ai']))return!0x1;for(const _0x260cc5 of Object['keys'](_0x37089f))if(!ut(_0xbfb4ba[_0x260cc5],_0x37089f[_0x260cc5]))return!0x1;return!0x0;}function bn(_0x54ad2e){const _0xadddea=Object['assign']({},_0x54ad2e);return delete _0xadddea['skipNestingCheck'],delete _0xadddea['tablePasteChainId'],_0xadddea;}function Cn(_0x4814ce){return _0x4814ce['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5ca6a1();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x4d8836,_0x593da2,_0x36b634,_0x5d9fda){super(),this['model']=_0x593da2,this['view']=_0x36b634,this['commentThreadController']=_0x5d9fda,this['_editor']=_0x4d8836,this['_acceptCommand']=_0x4d8836['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4d8836['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x41f02a,_0x37c500)=>_0x41f02a||_0x37c500),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x231576=>_0x231576&&this['_editor']['model']['canEditAt'](_0x593da2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xbad6d0=>_0xbad6d0&&this['_editor']['model']['canEditAt'](_0x593da2['getRanges']())),this['_pendingAction']=null,_0x36b634['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x36b634,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x36b634,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x36b634,'change:isDirty',()=>{_0x36b634['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 _0xdd211a=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xdd211a);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x2195ca{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x338495,_0x256f9e,_0x5bda43,_0xa7faba){super(_0x338495),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f2303(_0x338495,wt(_0x338495,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x256f9e['authoredAt']),this['bind']('authoredAt')['to'](_0x256f9e),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',_0x256f9e,'authoredAt',this,'descriptionParts',(_0x2684cb,_0x4b5d89,_0x18ea5c)=>{const _0x1a0c1d=_0x18ea5c['map'](_0x562141=>At(_0x562141['content']))['join']('.\x20')+'.',_0x163582=_0x256f9e['aiSource']&&'author'===_0xa7faba['showAISource']?_0xa7faba['aiAuthor']['name']:_0x256f9e['author']['name'],_0x4c7f8d=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2684cb-0x1,_0x163582,_0x4b5d89?_0xa7faba['formatDateTime'](_0x4b5d89):'',new DOMParser()['parseFromString'](_0x366f89(_0x1a0c1d),'text/html')['body']['textContent']]);return _0x256f9e['aiSource']&&'pill'===_0xa7faba['showAISource']?_0x4c7f8d+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x4c7f8d;}),this['focusables']=new _0x4a7c66(),this['focusTracker']=new _0x58d28b(),this['keystrokes']=new _0x181292(),this['focusCycler']=new _0x9acfff({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d5c69=>_0x4d5c69['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x256f9e,this['_localUser']=_0x5bda43,this['_config']=_0xa7faba,_0xa7faba['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x35353f}=this['_config'];this['commentsListView']=new _0x35353f(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',_0x507386=>_0x507386+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x430480,_0x2dec8b)=>_0x430480||!!_0x2dec8b);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x58a3b7}=this['_config'],_0x4cbb70=new _0x58a3b7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x467149=_0x4cbb70['commentInputView'];return _0x4cbb70['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x467149,'value',(_0x42698f,_0x5f2528,_0x91f56b)=>!!_0x91f56b||_0x42698f&&!_0x5f2528),_0x467149['on']('submit',(_0x7fe45d,_0x357d70)=>{this['fire']('addComment',_0x357d70),_0x467149['editor']['setData']('');}),_0x467149['on']('cancel',()=>this['focus']()),_0x467149['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4cbb70;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x58aa1b,_0x368bfc,_0x1bd250,_0xe30fe8){super(_0x58aa1b,_0x368bfc,_0x1bd250,_0xe30fe8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40cdf4=>_0x40cdf4&&_0x40cdf4[0x0]?_0x40cdf4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x591539,_0x172339)=>{let _0x52f5de='';for(const _0x10e093 of _0x591539)_0x52f5de+='<p>'+At(_0x10e093['content'],_0x10e093['color'])+'</p>';return _0x172339?_0x52f5de:st(_0x52f5de,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe30fe8['SuggestionView'](_0x58aa1b,_0x368bfc,{'formatDateTime':_0xe30fe8['formatDateTime'],'showAISource':_0xe30fe8['showAISource'],'aiAuthor':_0xe30fe8['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x539a44=>!!_0x539a44||wt(_0x58aa1b,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x423ee8=>!!_0x423ee8||wt(_0x58aa1b,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),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 _0x33143a=this['bindTemplate'],_0x56daa9=[this['suggestionView']];return this['commentsListView']&&_0x56daa9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56daa9['push'](this['commentThreadInputView']),_0x56daa9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x33143a['if']('isActive','ck-suggestion-wrapper--active'),_0x33143a['to']('type',_0x52e5ea=>'ck-suggestion-'+_0x52e5ea),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':_0x33143a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56daa9};}['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));}},Sn=class extends _0x2195ca{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x236e82,_0x48597b,_0x2c3ffe){super(_0x236e82),this['_model']=_0x48597b,this['_config']=_0x2c3ffe,this['set']('description',''),this['bind']('authoredAt')['to'](_0x48597b),this['acceptButton']=this['_createButton'](wt(_0x236e82,'Accept\x20suggestion'),_0xd3dbe3,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x236e82,'Discard\x20suggestion'),_0x213729,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x578094=!!_0x48597b['aiSource']&&'author'===_0x2c3ffe['showAISource'],_0x196892=_0x578094?this['_createAIUser'](_0x2c3ffe['aiAuthor']):_0x48597b['author'],_0x5eb8df=_0x578094&&!_0x2c3ffe['aiAuthor']['avatar']?_0xa05be7:void 0x0;this['userView']=new _0x37ba6d(_0x236e82,_0x196892,this['getUserViewNotificationText'](),_0x5eb8df),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4a7c66([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x58d28b(),this['keystrokes']=new _0x181292(),this['focusCycler']=new _0x9acfff({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xe70fa0=>_0xe70fa0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xa4653f=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xa4653f['innerHTML']=_0x366f89(this['description']),this['on']('change:description',(_0x3f21aa,_0x3e1a50,_0xb7343)=>{_0xa4653f['innerHTML']=_0x366f89(_0xb7343);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0xe38fda=this['bindTemplate'],_0x96188e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xe38fda['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xe38fda['to']('authoredAt',_0x1afaeb=>this['_config']['formatDateTime'](_0x1afaeb))}]}]},{'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']&&_0x96188e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x5d52fe=new _0x304d6f(this['locale']);_0x5d52fe['set']({'icon':_0x9221cd,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x96188e['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x5d52fe]});}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':_0x96188e}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1b92de){return new _0x1820d7({'id':'ck-ai-author','name':_0x1b92de['name'],'avatar':_0x1b92de['avatar'],'color':new _0x2dd2ad(0x0)});}_createButton(_0x117f70,_0x3c2e5d,_0x535c13,_0x249821,_0x53efa5){const _0x86b58=new _0x3f2d28(this['locale']);return _0x86b58['set']({'label':_0x117f70,'icon':_0x3c2e5d,'tooltip':!0x0,'tooltipPosition':_0x53efa5}),_0x86b58['extendTemplate']({'attributes':{'class':_0x535c13}}),_0x86b58['on']('execute',()=>{this['fire'](_0x249821,this['_model']['id']);}),_0x86b58;}_setupKeyboardNavigation(){const _0x36f7b7=this['element'];this['keystrokes']['listenTo'](_0x36f7b7);for(const _0x42125b of this['focusables'])this['focusTracker']['add'](_0x42125b['element']),this['keystrokes']['listenTo'](_0x42125b['element']);this['keystrokes']['set']('enter',(_0x3ca6c7,_0x4ddaa6)=>{_0x36f7b7===_0x3ca6c7['target']&&(this['focusCycler']['focusFirst'](),_0x4ddaa6());}),this['keystrokes']['set']('esc',(_0x9e6d93,_0x263982)=>{_0x36f7b7!==_0x9e6d93['target']&&(this['focus'](),_0x263982());});}},Mn=class extends _0x139d64{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x1e3a1d,_0x72b439,_0x1be584,_0x38a179];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x112c40){super(_0x112c40),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bbf01=this['editor']['config'];_0x3bbf01['define']('trackChanges.SuggestionThreadView',yn),_0x3bbf01['define']('trackChanges.SuggestionView',Sn),_0x3bbf01['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bbf01['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x1b185b,_0x3176ad){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x14c30f,_0x1c0e52]of this['_handleControllerBuffer']){const _0x2b284c=this['_suggestionToController']['has'](_0x14c30f);_0x2b284c||_0x1c0e52?_0x2b284c&&_0x1c0e52&&this['_destroyController'](_0x14c30f):this['_initializeController'](_0x14c30f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x38a179)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1b185b,_0x3176ad);}init(){const _0x4a2e34=this['editor'],_0x55c7a0=_0x4a2e34['plugins']['get'](ln),_0x53f222=_0x4a2e34['plugins']['get'](_0x1be584),_0x5dac01=_0x4a2e34['plugins']['get'](_0x38a179),_0x1f5d8b=_0x4a2e34['plugins']['get'](_0x72b439);this['_addUIComponentsToFactory'](),_0x5dac01['addSourceCollector'](()=>{const _0x2f5c46=[];for(const [_0x3c2541,_0x299b53]of Array['from'](this['_suggestionToController'])){const _0x1735cd=_0x3c2541['getAllAdjacentSuggestions'](),_0x2c3042=[];for(const _0x185e21 of _0x1735cd){if(!_0x185e21['isInContent'])continue;if(_0x185e21['isMultiRange']){_0x2c3042['push'](..._0x185e21['getRanges']());continue;}const _0x554edc=_0x185e21['getFirstRange']();if(_0x2c3042['length']>0x0){const _0x33de29=_0x2c3042[0x0]['getJoined'](_0x554edc);if(_0x33de29){_0x2c3042[0x0]=_0x33de29;continue;}}_0x2c3042['push'](_0x554edc);}_0x2f5c46['push']([_0x299b53['view'],_0x2c3042]);}return _0x2f5c46;}),this['listenTo'](_0x55c7a0,'suggestionLoaded',(_0x25451f,_0x408031)=>{this['listenTo'](_0x408031,'change:previous',(_0x4c5ac3,_0x22880d,_0x1a703c,_0x1dd0e5)=>{_0x408031['isInContent']&&(null==_0x1a703c?(this['_updateController'](_0x1dd0e5['head']),this['_handleSuggestionControllerDelayed'](_0x408031,!0x1)):(this['_updateController'](_0x1a703c['head']),null==_0x1dd0e5&&this['_handleSuggestionControllerDelayed'](_0x408031,!0x0)));}),null!==_0x408031['previous']?this['_updateController'](_0x408031['head']):this['_handleSuggestionControllerDelayed'](_0x408031,!0x1);}),this['listenTo'](_0x55c7a0,'suggestionUnloaded',(_0x57199a,_0x3d27dc,_0x3acf1f)=>{this['stopListening'](_0x3d27dc,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d27dc),this['_suggestionToController']['has'](_0x3d27dc)&&this['_destroyController'](_0x3d27dc),_0x3acf1f&&this['_updateController'](_0x3acf1f['head']);}),this['listenTo'](_0x55c7a0,'suggestionChanged',(_0x340beb,_0x4a8e6f)=>{this['_updateController'](_0x4a8e6f);}),this['listenTo'](_0x53f222,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1f5d8b,'addComment',(_0x2cd39a,{threadId:_0x2bed84,isFromAdapter:_0x3e933c})=>{if(_0x3e933c||!_0x55c7a0['hasSuggestion'](_0x2bed84))return;const _0x58077d=_0x55c7a0['getSuggestion'](_0x2bed84);this['_suggestionToController']['get'](_0x58077d)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x308fda=[this['editor']];for(const _0x205be7 of _0x308fda){let _0x439e28;for(const _0x2ecbf5 in _0x205be7){const _0x152b0e=_0x2ecbf5,_0x3223b8=_0x205be7[_0x152b0e];if('trackChangesLicenseKeyValid'==_0x3223b8||'trackChangesLicenseKeyInvalid'==_0x3223b8||'trackChangesLicenseKeyExpired'==_0x3223b8||'trackChangesLicenseKeyDomainLimit'==_0x3223b8||'trackChangesLicenseKeyNotAllowed'==_0x3223b8||'trackChangesLicenseKeyEvaluationLimit'==_0x3223b8||'trackChangesLicenseKeyUsageLimit'==_0x3223b8){delete _0x205be7[_0x152b0e],_0x439e28=_0x3223b8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x439e28&&_0x205be7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x439e28&&_0x205be7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x439e28&&_0x205be7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x439e28&&_0x205be7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x439e28&&_0x205be7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x439e28&&_0x205be7['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x4468eb){const _0x163883=this['_suggestionToController']['get'](_0x4468eb);return _0x163883&&this['editor']['plugins']['get'](_0x1be584)['getByInnerView'](_0x163883['view'])||null;}getSuggestionForAnnotation(_0x4d4b7d){const _0x3a062e=this['_viewToController']['get'](_0x4d4b7d['innerView']);return _0x3a062e?_0x3a062e['model']:null;}_refreshActiveMarkers(){const _0x51a58b=this['editor']['plugins']['get'](_0x1be584),_0x5a9da2=this['editor']['plugins']['get'](ln),_0x257a8f=Array['from'](_0x51a58b['activeAnnotations'],_0x20ba0f=>_0x20ba0f['innerView'])['filter'](_0x19e6ad=>this['_viewToController']['has'](_0x19e6ad)),_0x5298bd=[];for(const _0x47afc0 of _0x257a8f){const _0x3f165e=this['_viewToController']['get'](_0x47afc0)['model']['getAllAdjacentSuggestions']();_0x5298bd['push'](..._0x3f165e['reduce']((_0x3b9c79,_0x4d4f53)=>[..._0x3b9c79,..._0x4d4f53['getMarkerNames']()],[]));}_0x5a9da2['activeMarkers']=_0x5298bd;}_addUIComponentsToFactory(){const _0x3ee863=this['editor'],_0x1d2314=_0x3ee863['locale'],_0x290418=wt(_0x1d2314,'Track\x20changes'),_0xf84b6b=new _0x360d71([{'type':'switchbutton','model':new _0x2c70e6({'withText':!0x0,'isToggleable':!0x0,'label':_0x290418,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3ee863['plugins']['has']('TrackChangesPreview')&&_0xf84b6b['addMany']([{'type':'separator'},{'type':'button','model':new _0x2c70e6({'withText':!0x0,'label':wt(_0x1d2314,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3948ce of _0xf84b6b)if(On(_0x3948ce)){const _0x2f038b=_0x3ee863['commands']['get'](_0x3948ce['model']['commandName']);_0x3948ce['model']['bind']('isOn','isEnabled')['to'](_0x2f038b,'value','isEnabled');}_0x3ee863['ui']['componentFactory']['add']('trackChanges',_0x5401fd=>this['_createToolbarButton'](_0x5401fd,_0xf84b6b,_0x290418)),_0x3ee863['ui']['componentFactory']['add']('menuBar:trackChanges',_0x20b3bd=>this['_createMenuBarMenu'](_0x20b3bd,_0xf84b6b,_0x290418));}_createToolbarButton(_0x25bf95,_0x320ce8,_0x41c6ad){const _0x5d3287=_0x1805ae(_0x25bf95,_0x1afc18),_0x19c34b=this['editor']['commands']['get']('trackChanges');_0x5d3287['buttonView']['set']({'tooltip':_0x41c6ad,'label':_0x41c6ad,'icon':_0x2994b0}),_0x5d3287['buttonView']['bind']('isOn')['to'](_0x19c34b,'value'),_0x5d3287['buttonView']['on']('execute',()=>{_0x19c34b['execute'](),this['editor']['editing']['view']['focus']();}),_0x5bc4f8(_0x5d3287,_0x320ce8,{'role':'menu'});const _0x4f3f55=[];for(const _0x41ac19 of _0x320ce8)On(_0x41ac19)&&_0x4f3f55['push'](this['editor']['commands']['get'](_0x41ac19['model']['commandName']));const _0x3d0815=_0x5d3287['buttonView'];return _0x3d0815['actionView']['unbind']('isEnabled'),_0x3d0815['arrowView']['unbind']('isEnabled'),_0x3d0815['actionView']['bind']('isEnabled')['to'](_0x19c34b,'isEnabled'),_0x3d0815['arrowView']['bind']('isEnabled')['toMany'](_0x4f3f55,'isEnabled',(..._0x5c13c7)=>_0x5c13c7['some'](_0x42677d=>_0x42677d)),_0x5d3287['on']('execute',_0x492f0e=>{this['editor']['execute'](_0x492f0e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5d3287;}_createMenuBarMenu(_0x41d157,_0x417467,_0x2974c3){const _0x3d4dc4=new _0x1c8df3(_0x41d157),_0x1346b1=this['editor']['commands']['get']('trackChanges');_0x3d4dc4['buttonView']['set']({'label':_0x2974c3,'icon':_0x2994b0});const _0x376919=new _0x2bc35c(_0x41d157);for(const _0x51c65b of _0x417467){if('separator'==_0x51c65b['type']){_0x376919['items']['add'](new _0x45abed(_0x41d157));continue;}const _0x2d1b70=new _0x705306(_0x41d157,_0x3d4dc4),_0x4972e2=new _0x22d961(_0x41d157),_0x205eb6=_0x51c65b['model'];_0x4972e2['bind'](...Object['keys'](_0x205eb6))['to'](_0x205eb6),_0x4972e2['delegate']('execute')['to'](_0x3d4dc4),_0x4972e2['on']('execute',()=>{this['editor']['execute'](_0x205eb6['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d1b70['children']['add'](_0x4972e2),_0x376919['items']['add'](_0x2d1b70);}return _0x3d4dc4['bind']('isEnabled')['to'](_0x1346b1,'isEnabled'),_0x3d4dc4['panelView']['children']['add'](_0x376919),_0x3d4dc4;}_initializeController(_0x51148b){const _0x56e42f=this['editor'],_0xd441bf=_0x56e42f['config'],_0xdb4a19=_0x56e42f['plugins']['get'](_0x1be584),_0x371477=_0x56e42f['plugins']['get'](_0x72b439),_0xad5b61=_0x56e42f['plugins']['get'](_0x38a179),_0x2cec2a=_0x56e42f['plugins']['get'](_0x1e3a1d)['me'],_0x24fc5e=_0xd441bf['get']('trackChanges')['SuggestionThreadView'],_0x12aa38=_0xd441bf['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x33d309,CommentThreadInputView:_0x2fd4c3}=_0x56e42f['plugins']['get']('CommentsUI');let _0x516a92,_0x6b6098,_0x1a62c1;this['_annotationViews']['has'](_0x51148b['id'])?(_0x6b6098=this['_annotationViews']['get'](_0x51148b['id']),_0x516a92=_0x6b6098['mainView']):(_0x516a92=new _0x24fc5e(_0x56e42f['locale'],_0x51148b,_0x2cec2a,{'disableComments':this['_disableComments'],'editorConfig':{..._0xd441bf['get']('comments.editorConfig'),'licenseKey':_0xd441bf['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xd441bf['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xd441bf['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xd441bf['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1db24c(_0xd441bf['get']('locale'),_0x56e42f['locale']),'CommentView':_0xd441bf['get']('comments')['CommentView'],'CommentsListView':_0x33d309,'CommentThreadInputView':_0x2fd4c3,'SuggestionView':_0x12aa38,'showAISource':_0xd441bf['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xd441bf['get']('trackChanges.aiAuthor'),'name':_0xd441bf['get']('trackChanges.aiAuthor')?.['name']||wt(_0x56e42f['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x516a92['suggestionView']['acceptButton']['on']('execute',()=>{_0x56e42f['editing']['view']['focus']();}),_0x516a92['suggestionView']['discardButton']['on']('execute',()=>{_0x56e42f['editing']['view']['focus']();}),_0x6b6098=_0xdb4a19['createAnnotationView'](this['editor']['locale'],_0x516a92),_0x6b6098['bind']('isDirty')['to'](_0x516a92,'isDirty'),_0x6b6098['bind']('length')['to'](_0x516a92),_0x6b6098['bind']('type')['to'](_0x516a92,'type',_0x15a401=>'suggestion-'+_0x15a401),_0x516a92['on']('escape',()=>{_0x1a62c1['fire']('escape');}),this['_annotationViews']['set'](_0x51148b['id'],_0x6b6098));const _0xb8f8fa=_0x371477['createCommentThreadController'](_0x51148b['commentThread'],_0x516a92),_0x3e58a2=new Rn(_0x56e42f,_0x51148b,_0x516a92,_0xb8f8fa),_0x438c88=_0x51148b['getAllAdjacentSuggestions']()['filter'](_0x537782=>_0x537782['isInContent']);_0x516a92['descriptionParts']=_0x56e42f['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x438c88),this['_suggestionToController']['set'](_0x51148b,_0x3e58a2),this['_viewToController']['set'](_0x516a92,_0x3e58a2);const _0x3a8e23=()=>{const _0x47768b=[],_0x6d296d=_0x51148b['getAllAdjacentSuggestions']()['filter'](_0x1ee49c=>_0x1ee49c['isInContent']);for(const _0x4c2c4c of _0x6d296d)_0x47768b['push'](..._0x4c2c4c['getMarkers']());return _0x4fc5be(_0x56e42f['editing'],_0x47768b);};_0x1a62c1=_0xdb4a19['createAnnotation']({'view':_0x6b6098,'target':_0x3a8e23,'type':()=>'suggestion-'+_0x3e58a2['view']['type'],'isVisible':!!_0x3a8e23()}),_0x371477['_bindAnnotationToEditors'](_0x516a92,_0x1a62c1),_0xdb4a19['add'](_0x1a62c1),_0xad5b61['registerAnnotation'](_0x1a62c1);}_destroyController(_0x55ef8d){const _0x557ebf=this['editor']['plugins']['get'](_0x72b439),_0x384d40=this['editor']['plugins']['get'](_0x1be584),_0x53b6c5=this['_suggestionToController']['get'](_0x55ef8d),_0xe2edbd=_0x53b6c5['view'],_0x12da6f=_0x384d40['getByInnerView'](_0xe2edbd);_0x557ebf['_unbindEditors'](_0xe2edbd),_0x12da6f&&_0x384d40['remove'](_0x12da6f),this['_suggestionToController']['delete'](_0x55ef8d),this['_viewToController']['delete'](_0xe2edbd),_0x53b6c5['destroy']();}_updateController(_0x3f337b){if(!_0x3f337b['isInContent']||!this['_suggestionToController']['has'](_0x3f337b))return;const _0x193db4=this['editor']['plugins']['get'](ln),_0x1c3ef3=this['_suggestionToController']['get'](_0x3f337b),_0x1ed3a8=_0x3f337b['getAllAdjacentSuggestions']();_0x1c3ef3['view']['descriptionParts']=_0x193db4['descriptionFactory']['getDescriptions'](_0x1ed3a8);}destroy(){for(const _0x2aaa1c of this['_suggestionToController']['keys']())this['_destroyController'](_0x2aaa1c);for(const _0x103bcb of this['_annotationViews']['values']())_0x103bcb['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x2bfff1){return'model'in _0x2bfff1;}var wn=class extends _0x139d64{static get requires(){return[ln,Mn,_0x31d5d1];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x260243){this['editor']['plugins']['get'](ln)['adapter']=_0x260243;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0xafdcba){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0xafdcba);}getSuggestions({skipNotAttached:_0x3ad4e0=!0x1,toJSON:_0x58f557=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x3ad4e0,'toJSON':_0x58f557});}getSuggestion(_0x40b602){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x40b602);}};const Bn=['Pagination'];var Fn=class extends _0x139d64{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x46a1d1=this['editor'];if(_0x46a1d1['config']['define']('trackChangesData.editorCreator',_0xd6f611=>{const _0x4a5239=_0x46a1d1['model']['document']['getRootNames']()['reduce']((_0x2d4ee7,_0x504190)=>(_0x2d4ee7[_0x504190]='',_0x2d4ee7),{});return _0x46a1d1['constructor']['create'](_0x4a5239,_0xd6f611);}),'function'!=typeof _0x46a1d1['config']['get']('trackChangesData')['editorCreator'])throw new _0x228d64('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x2b3210){return Un(this['editor'],!0x0,_0x2b3210);}getDataWithDiscardedSuggestions(_0x3b66bf){return Un(this['editor'],!0x1,_0x3b66bf);}},vn=class extends _0x139d64{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19f795){super(_0x19f795),this['result']='end',_0x19f795['editing']['view']['_overlayModeHint']='auto',_0x19f795['_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 Dn(_0x35a916){return void 0x0!==_0x35a916['getRootsAttributes'];}async function Un(_0x176a20,_0x1160d8,_0x3dbb3b){const _0x5ef5b7=tt(_0x176a20,Bn);if(_0x5ef5b7['plugins']['push'](ln,vn),Dn(_0x176a20)){_0x5ef5b7['roots']=Object['create'](null);for(const _0x188453 of _0x176a20['model']['document']['getRootNames']())_0x5ef5b7['roots'][_0x188453]={'modelAttributes':_0x176a20['getRootAttributes'](_0x188453)};}const _0x532986=document['createDocumentFragment'](),_0x4ac998=_0x176a20['config']['get']('trackChangesData')['editorCreator'],_0x68f5f4=await _0x4ac998(_0x5ef5b7,()=>function(_0x3de9a3){const _0x44bfae=document['createElement']('div');return _0x3de9a3['appendChild'](_0x44bfae),_0x44bfae;}(_0x532986));!function(_0x24b17f,_0x37f472){const _0x15227f=_0x24b17f['model']['document']['getRootNames']()['reduce']((_0x66ee35,_0x3e4a7d)=>(_0x66ee35[_0x3e4a7d]=_0x24b17f['data']['get']({'rootName':_0x3e4a7d}),_0x66ee35),{}),_0x15b8da=_0x24b17f['plugins']['get']('Users')['users']['map'](_0x2725e6=>({'id':_0x2725e6['id'],'name':_0x2725e6['name']})),_0x50ac42=_0x24b17f['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd9ac6c=_0x24b17f['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24e152=_0x37f472['plugins']['get']('Users'),_0x32f42e=_0x37f472['plugins']['get']('TrackChangesEditing'),_0x4107f1=_0x37f472['plugins']['get']('CommentsRepository');for(const _0x108b40 of _0x4107f1['getCommentThreads']())_0x108b40['remove']();for(const _0x3a6b9d of _0x15b8da)_0x24e152['getUser'](_0x3a6b9d['id'])||_0x24e152['addUser'](_0x3a6b9d);_0x24e152['me']||_0x24e152['useAnonymousUser']();for(const _0x43bebe of _0xd9ac6c)_0x4107f1['addCommentThread'](_0x43bebe);for(const _0x53c6ff of _0x50ac42)_0x32f42e['addSuggestionData'](_0x53c6ff);_0x37f472['data']['set'](_0x15227f);}(_0x176a20,_0x68f5f4),_0x68f5f4['execute'](_0x1160d8?'acceptAllSuggestions':'discardAllSuggestions');const _0x294bcf=Dn(_0x68f5f4)?_0x68f5f4['getFullData'](_0x3dbb3b):_0x68f5f4['data']['get'](_0x3dbb3b);return await _0x68f5f4['destroy'](),_0x294bcf;}var Pn=class extends _0x2195ca{options;constructor(_0x2caa1b,_0x176d81){super(_0x2caa1b),this['options']=_0x176d81,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(_0x292f2b,_0x49e826){if(!this['element'])return;const _0x497c3a=[];for(const [_0x166716,_0x3d7da7]of _0x292f2b){const _0x8fd02b=document['createElement']('div');_0x8fd02b['setAttribute']('data-ck-root-name',_0x166716),_0x8fd02b['className']=_0x3d7da7['classes']+'\x20ck-track-changes-preview__root-container',_0x8fd02b['innerHTML']=_0x366f89(_0x3d7da7['content']),_0x497c3a['push'](_0x8fd02b);}_0x49e826(this['element'],_0x497c3a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x310ec9{constructor(_0x29b61b){super(_0x29b61b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x2f441d=this['editor'],_0x503ec0=_0x2f441d['locale'],_0x44d089=_0x2f441d['plugins']['get']('Dialog');let _0x398e08;const _0x198f3b=function(_0x5dfa7c){const _0x3767a3={};if('editables'in _0x5dfa7c['ui']['view']){for(const [_0x1d9bd9,_0x2c8d1b]of Object['entries'](_0x5dfa7c['ui']['view']['editables']))_0x3767a3[_0x1d9bd9]=_0x2c8d1b['element'];}else _0x3767a3[_0x5dfa7c['model']['document']['getRootNames']()[0x0]]=_0x5dfa7c['ui']['view']['editable']['element'];return _0x3767a3;}(_0x2f441d),_0x4109f9=function(_0x5189ed){let _0x311aa=0x0;for(const _0x3dc463 of Object['values'](_0x5189ed))_0x311aa=Math['max'](_0x311aa,_0x3dc463['getBoundingClientRect']()['width']);let _0x1f8c24=0x0;for(const _0x13eebf of Object['values'](_0x5189ed))_0x1f8c24+=_0x13eebf['getBoundingClientRect']()['height'];const _0x1f9c09=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x311aa,'height':Math['min'](_0x1f8c24,_0x1f9c09)};}(_0x198f3b);_0x44d089['show']({'id':'finalContentPreview','title':wt(_0x503ec0,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x503ec0,{'dialogRects':_0x4109f9}),'onHide':()=>{_0x398e08['destroy']();},'onShow':()=>{_0x2f441d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x51ea86=>{const _0x48a1cc=this['_standarizeRootsData'](_0x51ea86,_0x2f441d,_0x198f3b);_0x44d089['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x48a1cc,_0x2f441d['config']['get']('trackChanges.preview.renderFunction'));}),_0x398e08=new _0x3999ae(_0x503ec0,[_0x44d089['view']]),_0x398e08['attachToDom'](_0x2f441d['ui']['view']['body']['mountTarget']),_0x398e08['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2f441d['once']('destroy',()=>{_0x398e08['destroy']();});const _0x5f5b91=_0x44d089['view']['headerView']['class'];_0x44d089['view']['headerView']['class']=_0x5f5b91?_0x5f5b91+'\x20ck-reset_all':'ck-reset_all',_0x44d089['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x44d089['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x3ffcf6=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d94e8=_0x3ffcf6['previewMode'],_0x547caa={};if('$labels'===_0x2d94e8){for(const _0x4f4a45 of _0x3ffcf6['getMergeFieldsIds']())_0x547caa[_0x4f4a45]=_0x3ffcf6['getLabel'](_0x4f4a45)||_0x4f4a45;}else{const _0x54decf='$defaultValues'===_0x2d94e8?_0x3ffcf6['getDefaultValues']():_0x3ffcf6['getDataSetValues'](_0x2d94e8,!0x0);for(const _0x2d5977 of Object['entries'](_0x54decf)){const [_0x371e20,_0x46ab36]=_0x2d5977;_0x547caa[_0x371e20]=null!==_0x46ab36?_0x46ab36:_0x3ffcf6['getLabel'](_0x371e20)||_0x371e20;}}return{'mergeFieldsData':_0x547caa};}_standarizeRootsData(_0x31b809,_0x15777c,_0xa5080c){let _0x1edee2;_0x1edee2='string'==typeof _0x31b809?{[_0x15777c['model']['document']['getRootNames']()[0x0]]:_0x31b809}:_0x31b809;const _0x198f40=this['_fixMediaEmbeds'](_0x1edee2,_0x15777c);return function(_0x4f3be9,_0xaefb4c){for(const [_0x39ca6a,_0x164de2]of _0x4f3be9)_0x164de2['classes']=_0xaefb4c[_0x39ca6a]['classList']['value']['replace']('ck-focused','');return _0x4f3be9;}(this['_sortRoots'](_0x15777c)['reduce']((_0x5b9a37,_0x33c0d0)=>(_0x5b9a37['push']([_0x33c0d0,{'content':_0x198f40[_0x33c0d0],'classes':''}]),_0x5b9a37),[]),_0xa5080c);}['_fixMediaEmbeds'](_0x50109a,_0xe0bc09){if(!_0xe0bc09['plugins']['has']('MediaEmbedEditing'))return _0x50109a;const _0x50688f=_0xe0bc09['plugins']['get']('MediaEmbedEditing');for(const [_0x43749c,_0x5f4f4f]of Object['entries'](_0x50109a)){const _0x57df0d=document['createElement']('div');_0x57df0d['innerHTML']=_0x366f89(_0x5f4f4f),_0x57df0d['querySelectorAll']('figure.media')['forEach'](_0x45a406=>{const _0x581fa4=_0x45a406['querySelector']('oembed');if(_0x581fa4){const _0x1f2434=_0x581fa4['getAttribute']('url');if(_0x1f2434){const _0x262a9f=_0x50688f['registry']['getMediaViewElement'](new ct(_0xe0bc09['editing']['view']['document']),_0x1f2434,{'elementName':'','renderForEditingView':!0x0}),_0x5cd3ca=document['createElement']('div');_0x5cd3ca['classList']['add']('ck-media__wrapper'),_0x262a9f['render'](_0x5cd3ca,_0xe0bc09['editing']['view']['domConverter']),_0x581fa4['replaceWith'](_0x5cd3ca);}}}),_0x50109a[_0x43749c]=_0x57df0d['innerHTML'];}return _0x50109a;}_sortRoots(_0x5dcb4a){if(!function(_0x9646a3){return void 0x0!==_0x9646a3['getRootsAttributes'];}(_0x5dcb4a))return _0x5dcb4a['model']['document']['getRootNames']();const _0x5df0ac=[],_0x55ab32=new Map();for(const _0x173a02 of _0x5dcb4a['model']['document']['getRootNames']()){const _0x4f779d=_0x5dcb4a['editing']['view']['getDomRoot'](_0x173a02)['getClientRects']()['item'](0x0);_0x5df0ac['push'](_0x173a02),_0x55ab32['set'](_0x173a02,_0x4f779d);}return _0x5df0ac['sort']((_0x5150bf,_0x3cd9d4)=>{const _0x4059b7=_0x55ab32['get'](_0x5150bf),_0x327376=_0x55ab32['get'](_0x3cd9d4);return _0x4059b7['y']-_0x327376['y']||_0x4059b7['x']-_0x327376['x'];}),_0x5df0ac;}},Gn=class extends _0x139d64{static get requires(){return[Fn,_0x189e12];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x555ee0){super(_0x555ee0),_0x555ee0['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x555ee0['config']['define']('trackChanges.preview.renderFunction',(_0x1b4e9c,_0x2a19da)=>{for(const _0x2739f8 of _0x2a19da)_0x1b4e9c['appendChild'](_0x2739f8);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|