@ckeditor/ckeditor5-track-changes 49.0.0-alpha.8 → 49.0.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.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
|
-
_0x5e24a2();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x32e91c,_0x50ea3a){super(),this['id']=_0x50ea3a['id'],this['type']=_0x50ea3a['type'],this['subType']=_0x50ea3a['subType']||null,this['author']=_0x50ea3a['author'],this['creator']=_0x50ea3a['creator']||_0x50ea3a['author'],this['data']=null,this['_originalSuggestionId']=_0x50ea3a['originalSuggestionId']||null,this['_model']=_0x32e91c,this['_onAccept']=_0x50ea3a['onAccept'],this['_onDiscard']=_0x50ea3a['onDiscard'],this['_onAttributesChange']=_0x50ea3a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x50ea3a['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 _0x58b656=this;for(;_0x58b656['previous'];)_0x58b656=_0x58b656['previous'];return _0x58b656;}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'](_0x2b90dd){this['_markerNames']['add'](_0x2b90dd);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4bf62a=>this['_model']['markers']['get'](_0x4bf62a))['filter'](_0x156e34=>_0x156e34);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x170f78=>{for(const _0x15dd46 of this['getMarkers']())_0x170f78['removeMarker'](_0x15dd46);}),this['_markerNames']['clear']();}['removeMarker'](_0x3e4381){this['_model']['change'](_0x30af77=>{_0x30af77['removeMarker'](_0x3e4381);}),this['_markerNames']['delete'](_0x3e4381);}['addRange'](_0x5c2eba){const _0x34fee4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x34fee4),this['_model']['change'](_0x3792ee=>{_0x3792ee['addMarker'](_0x34fee4,{'range':_0x5c2eba,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x563772){for(const _0x2b30d9 of this['getRanges']())if(_0x2b30d9['isIntersecting'](_0x563772))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x55668c=>_0x55668c['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3110bb,_0x12cd66)=>[..._0x3110bb,..._0x12cd66['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xc9d2db=this['getRanges']();if(0x1!=_0xc9d2db['length'])return null;const _0x2ca944=_0xc9d2db[0x0],_0xff098d=_0x2ca944['start']['nodeAfter'],_0x388f7c=_0x2ca944['end']['nodeBefore'];return _0xff098d instanceof ot?_0xff098d!=_0x388f7c?null:_0xff098d: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 _0x32d95d=[];let _0x34d85e=this['head'];for(;_0x34d85e;)_0x32d95d['push'](_0x34d85e),_0x34d85e=_0x34d85e['next'];return _0x32d95d;}setAttribute(_0x20a169,_0x5e42da){const _0xf0d823=ut(this['attributes']);gt(_0xf0d823,_0x20a169,_0x5e42da),dt(_0xf0d823,this['attributes'])||(this['attributes']=_0xf0d823,this['_onAttributesChange'](_0xf0d823));}removeAttribute(_0x2c782e){const _0x4c18a2=ut(this['attributes']);ft(_0x4c18a2,_0x2c782e),dt(_0x4c18a2,this['attributes'])||(this['attributes']=_0x4c18a2,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 _0x41fde1()['substr'](0x1,0x5);}};function Bt(_0x244ed6,_0x2f4890,_0x3f7e92){const _0x5271be=_0x244ed6['t'],t=_0x244ed6['t'];switch(_0x2f4890){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',_0x3f7e92);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3f7e92);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3f7e92);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3f7e92);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3f7e92);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',_0x3f7e92);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3f7e92);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',_0x3f7e92);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3f7e92);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3f7e92);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3f7e92);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3f7e92);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3f7e92);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3f7e92);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3f7e92);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3f7e92);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3f7e92);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3f7e92);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3f7e92);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3f7e92);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3f7e92);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3f7e92);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3f7e92);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3f7e92);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3f7e92);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3f7e92);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3f7e92);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3f7e92);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3f7e92);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3f7e92);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3f7e92);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'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3f7e92);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3f7e92);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3f7e92);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3f7e92);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'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3f7e92);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3f7e92);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3f7e92);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3f7e92);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3f7e92);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'},_0x3f7e92);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3f7e92);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 _0x5271be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3f7e92);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5271be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3f7e92);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3f7e92);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'},_0x3f7e92);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'},_0x3f7e92);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'},_0x3f7e92);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 _0x2f4890;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x254b41,_0x97fac2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x254b41,this['_locale']=_0x97fac2;}getDescriptions(_0x5371b5){const _0x10b8ae=[],_0x380ab7=new Set(),_0x55acab=new Set();for(let _0x4ead63=0x0;_0x4ead63<_0x5371b5['length'];_0x4ead63++){const _0x2ef2e3=_0x5371b5[_0x4ead63];if(!_0x2ef2e3['isInContent'])continue;const _0x3bd566=this['_handleCustomCallbackDescription'](_0x2ef2e3);if(_0x3bd566){if(null!=_0x2ef2e3['subType']){if(_0x380ab7['has'](_0x2ef2e3['subType']))continue;_0x380ab7['add'](_0x2ef2e3['subType']);}_0x10b8ae['push'](_0x3bd566);}else{if('attribute'==_0x2ef2e3['type']){const _0x488f8e=_0x2ef2e3['data']['key'];if(_0x55acab['has'](_0x488f8e))continue;_0x55acab['add'](_0x2ef2e3['data']['key']),'$elementName'==_0x488f8e?this['_handleRenameSuggestionDescription'](_0x10b8ae,_0x2ef2e3):this['_handleAttributeSuggestionDescription'](_0x10b8ae,_0x2ef2e3);continue;}'insertion'!=_0x2ef2e3['type']&&'deletion'!=_0x2ef2e3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10b8ae,_0x2ef2e3,_0x5371b5[_0x4ead63+0x1]);}}return this['_resolveDescriptionItems'](_0x10b8ae);}registerDescriptionCallback(_0x443c12){this['_customCallbacks']['push'](_0x443c12);}registerElementLabel(_0x470328,_0x171ec1,_0x2fe7c3=_0x20248e['normal']){'function'==typeof _0x470328?_0x5e18e8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x470328,'label':_0x171ec1,'priority':_0x2fe7c3}):this['_itemLabels']['set'](_0x470328,_0x171ec1);}registerAttributeLabel(_0x33e645,_0x4da3e2){this['_attributeLabels']['set'](_0x33e645,_0x4da3e2);}getItemLabel(_0x4c35f4,_0x3eb42c=0x1){let _0x58d280;for(const _0x336898 of this['_itemLabelsCallbacks'])if(_0x336898['matchingCallback'](_0x4c35f4)){_0x58d280=_0x336898['label'];break;}return _0x58d280||(_0x58d280=this['_itemLabels']['get'](_0x4c35f4['name'])),_0x58d280?_0x58d280(_0x3eb42c):0x1!==_0x3eb42c?_0x3eb42c+'\x20'+_0x4c35f4['name']+'s':''+_0x4c35f4['name'];}_addDescriptionItems(_0x5c8feb,_0x38963f){const _0x29f06f=_0x38963f['getFirstRange']()['getWalker'](),_0x2b258c='insertion'==_0x38963f['type']?'add':'remove';for(const _0x16a4b4 of _0x29f06f){const _0x4a676d=_0x16a4b4['item'],_0x4b8075=_0x5c8feb[_0x5c8feb['length']-0x1];if(_0x4a676d['is']('$textProxy'))_0x4b8075&&_0x4b8075['type']['indexOf']('Container')>-0x1&&_0x5c8feb['pop'](),_0x4b8075&&'text'==_0x4b8075['type']?_0x4b8075[_0x2b258c]+=_0x4a676d['data']:_0x5c8feb['push']({'type':'text','add':'add'==_0x2b258c?_0x4a676d['data']:'','remove':'remove'==_0x2b258c?_0x4a676d['data']:''});else{if(this['_schema']['isObject'](_0x4a676d)){const _0x3db437=_0x4a676d;if(_0x4b8075&&_0x4b8075['type']['indexOf']('Container')>-0x1&&_0x5c8feb['pop'](),'elementEnd'==_0x16a4b4['type'])continue;_0x4b8075&&_0x4b8075['type']==_0x2b258c+'Object'&&_0x4b8075['element']['name']==_0x3db437['name']?_0x4b8075['quantity']++:_0x5c8feb['push']({'type':_0x2b258c+'Object','element':_0x3db437,'quantity':0x1}),_0x29f06f['skip'](_0x30211e=>!('elementEnd'==_0x30211e['type']&&_0x30211e['item']==_0x4a676d));}else{if(this['_schema']['checkChild'](_0x4a676d,'$text')||_0x4a676d['is']('element','softBreak')){const _0x4e3982=_0x4a676d;if('add'==_0x2b258c&&'elementStart'==_0x16a4b4['type']||'remove'==_0x2b258c&&'elementEnd'==_0x16a4b4['type'])continue;if(_0x4b8075&&-0x1==_0x4b8075['type']['indexOf']('Container')){'text'==_0x4b8075['type']&&(_0x4b8075[_0x2b258c]+='\x0a');continue;}let _0x105adf;if(_0x105adf='add'==_0x2b258c?_0x4e3982['nextSibling']&&!this['_schema']['isObject'](_0x4e3982['nextSibling'])?_0x4e3982['nextSibling']:null:_0x4e3982['previousSibling']&&!this['_schema']['isObject'](_0x4e3982['previousSibling'])?_0x4e3982['previousSibling']:null,_0x4e3982['isEmpty']||_0x105adf&&_0x105adf['isEmpty']){const _0x8bb3d5=_0x105adf&&_0x105adf['isEmpty']?_0x105adf:_0x4e3982;_0x4b8075&&_0x4b8075['type']==_0x2b258c+'EmptyContainer'&&_0x4b8075['element']['name']==_0x8bb3d5['name']?_0x4b8075['quantity']++:_0x5c8feb['push']({'type':_0x2b258c+'EmptyContainer','element':_0x8bb3d5,'quantity':0x1});}else _0x5c8feb['push']({'type':_0x2b258c+'Container','element':_0x4e3982});}}}}}_resolveDescriptionItems(_0xd0d59c){const _0x3a88b6=this['_locale'],_0x3f73d5=[],_0x2d1908=[],_0x54fdec=[];for(const _0x470a8d of _0xd0d59c)switch(_0x470a8d['type']){case'text':if(_0x470a8d['add']=_0x470a8d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x470a8d['remove']=_0x470a8d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x470a8d['add']&&''!=_0x470a8d['remove']){_0x3f73d5['push']({'type':'replace','content':Bt(_0x3a88b6,'REPLACE_TEXT',['\x22'+_0x470a8d['remove']+'\x22','\x22'+_0x470a8d['add']+'\x22'])});continue;}if(null!=_0x470a8d['add']['match'](/^ +$/)){_0x3f73d5['push']({'type':'insertion','content':Bt(_0x3a88b6,'*Insert:*\x20%0',Bt(_0x3a88b6,'ELEMENT_SPACE',_0x470a8d['add']['length']))});continue;}if(null!=_0x470a8d['remove']['match'](/^ +$/)){_0x3f73d5['push']({'type':'deletion','content':Bt(_0x3a88b6,'*Remove:*\x20%0',Bt(_0x3a88b6,'ELEMENT_SPACE',_0x470a8d['remove']['length']))});continue;}if(''!=_0x470a8d['add']){_0x3f73d5['push']({'type':'insertion','content':Bt(_0x3a88b6,'*Insert:*\x20%0','\x22'+_0x470a8d['add']+'\x22')});continue;}_0x3f73d5['push']({'type':'deletion','content':Bt(_0x3a88b6,'*Remove:*\x20%0','\x22'+_0x470a8d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3f73d5['push']({'type':'insertion','content':Bt(_0x3a88b6,'*Insert:*\x20%0',this['getItemLabel'](_0x470a8d['element'],_0x470a8d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3f73d5['push']({'type':'deletion','content':Bt(_0x3a88b6,'*Remove:*\x20%0',this['getItemLabel'](_0x470a8d['element'],_0x470a8d['quantity']))});continue;case'addContainer':_0x3f73d5['push']({'type':'insertion','content':Bt(_0x3a88b6,'*Split:*\x20%0',this['getItemLabel'](_0x470a8d['element'],_0x470a8d['quantity']))});continue;case'removeContainer':_0x3f73d5['push']({'type':'deletion','content':Bt(_0x3a88b6,'*Merge:*\x20%0',this['getItemLabel'](_0x470a8d['element'],_0x470a8d['quantity']))});continue;case'addFormat':_0x2d1908['push'](_0x470a8d['key']);continue;case'removeFormat':_0x54fdec['push'](_0x470a8d['key']);continue;default:_0x3f73d5['push'](_0x470a8d);}if(_0x2d1908['length']){const _0x2985d2=_0x2d1908['map'](_0x1bb8b6=>this['_attributeLabels']['has'](_0x1bb8b6)?this['_attributeLabels']['get'](_0x1bb8b6):_0x1bb8b6)['join'](',\x20');_0x3f73d5['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x2985d2)});}if(_0x54fdec['length']){const _0xa3b2e8=_0x54fdec['map'](_0x176cbd=>this['_attributeLabels']['has'](_0x176cbd)?this['_attributeLabels']['get'](_0x176cbd):_0x176cbd)['join'](',\x20');_0x3f73d5['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0xa3b2e8)});}return _0x3f73d5;}_handleCustomCallbackDescription(_0x230f5e){for(const _0x3f8814 of this['_customCallbacks']){const _0x504f80=_0x3f8814(_0x230f5e);if(_0x504f80&&'type'in _0x504f80)return _0x504f80;}}_handleAttributeSuggestionDescription(_0x27b988,_0x22ed5b){const _0x5de22f=_0x22ed5b['data'],_0x384fe5=void 0x0===_0x5de22f['newValue']?'removeFormat':'addFormat';_0x27b988['push']({'type':_0x384fe5,'key':_0x5de22f['key']});}_handleRenameSuggestionDescription(_0x13bc58,_0xb6c956){_0x13bc58['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb6c956['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x4d8838,_0x2c38c4,_0x3f9d71){if(this['_addDescriptionItems'](_0x4d8838,_0x2c38c4),_0x3f9d71&&_0x3f9d71['getFirstRange']()&&!_0x2c38c4['getFirstRange']()['end']['isEqual'](_0x3f9d71['getFirstRange']()['start'])){const _0x2f2ad1=_0x4d8838[_0x4d8838['length']-0x1],_0x38abff='insertion'==_0x2c38c4['type']?'add':'remove';_0x2f2ad1&&'text'==_0x2f2ad1['type']&&(_0x2f2ad1[_0x38abff]+='\x0a');}}},vt=class extends _0x3e92ef{afterInit(){const _0x2d2195=this['editor'],_0x30970e=_0x2d2195['plugins']['get']('TrackChangesEditing');_0x2d2195['commands']['get']('showAIAssistant')&&_0x30970e['enableCommand']('showAIAssistant');}},Dt=class extends _0x3e92ef{afterInit(){const _0x1c2d6e=this['editor'],_0x1f6c28=_0x1c2d6e['plugins']['get']('TrackChangesEditing');_0x1c2d6e['commands']['get']('toggleAi')&&_0x1f6c28['enableCommand']('toggleAi');}},Ut=class extends _0x3e92ef{afterInit(){const _0x146e18=this['editor'],_0x3b12b0=_0x146e18['plugins']['get']('TrackChangesEditing');_0x146e18['commands']['get']('aiQuickAction')&&_0x3b12b0['enableCommand']('aiQuickAction');}},Pt=class extends _0x3e92ef{afterInit(){const _0x52c3de=this['editor'],_0x3bf346=_0x52c3de['locale'];if(!_0x52c3de['plugins']['has']('AlignmentEditing'))return;const _0x33000f=_0x52c3de['plugins']['get']('TrackChangesEditing');_0x33000f['enableDefaultAttributesIntegration']('alignment'),_0x33000f['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x3bf346,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xb49b21=this['editor'],_0x22b27d=_0xb49b21['locale'];_0xb49b21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x118222=>{if('formatBlock'!=_0x118222['type'])return;const {data:_0x492a05}=_0x118222;if(_0x492a05&&'alignment'==_0x492a05['commandName']){const _0xc4bde2=_0x492a05['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0x22b27d,'*Format:*\x20%0',function(_0x2d92e6){switch(_0x2d92e6){case'left':return Bt(_0x22b27d,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0x22b27d,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0x22b27d,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0x22b27d,'FORMAT_JUSTIFY_TEXT');}}(_0xc4bde2))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0x3e92ef{afterInit(){const _0x3af996=this['editor'],_0x569d71=_0x3af996['plugins']['get']('TrackChangesEditing'),_0x25c147=_0x3af996['locale'];for(const _0x1b1dc0 of xt){if(!_0x3af996['plugins']['has'](_0x1b1dc0))continue;const _0x1d1b02=_0x1b1dc0['slice'](0x0,-0x7)['toLowerCase'](),_0x40e434='FORMAT_'+_0x1d1b02['toUpperCase']();_0x569d71['enableDefaultAttributesIntegration'](_0x1d1b02),_0x569d71['descriptionFactory']['registerAttributeLabel'](_0x1d1b02,Bt(_0x25c147,_0x40e434));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3d2349=this['editor'],_0x49bc2a=_0x3d2349['locale'],_0x303d2a=_0x3d2349['plugins']['get']('TrackChangesEditing');function _0x1ce3ed(_0x19025b,_0x1437d0){_0x303d2a['descriptionFactory']['registerDescriptionCallback'](_0x5b4a3f=>{if('formatInline'!=_0x5b4a3f['type'])return;const {data:_0x3dab4f}=_0x5b4a3f;return _0x3dab4f&&_0x3dab4f['commandName']===_0x19025b?_0x3dab4f['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x49bc2a,'*Format:*\x20%0',_0x1437d0)}:{'type':'format','content':Bt(_0x49bc2a,'*Remove\x20format:*\x20%0',_0x1437d0)}:void 0x0;});}_0x1ce3ed('bold',Bt(_0x49bc2a,'FORMAT_BOLD')),_0x1ce3ed('italic',Bt(_0x49bc2a,'FORMAT_ITALIC')),_0x1ce3ed('underline',Bt(_0x49bc2a,'FORMAT_UNDERLINE')),_0x1ce3ed('code',Bt(_0x49bc2a,'FORMAT_CODE')),_0x1ce3ed('strikethrough',Bt(_0x49bc2a,'FORMAT_STRIKETHROUGH')),_0x1ce3ed('subscript',Bt(_0x49bc2a,'FORMAT_SUBSCRIPT')),_0x1ce3ed('superscript',Bt(_0x49bc2a,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0x3e92ef{afterInit(){const _0x2f1176=this['editor'],_0x55e86b=_0x2f1176['locale'];if(!_0x2f1176['plugins']['has']('BlockQuoteEditing'))return;const _0x13f48b=_0x2f1176['plugins']['get']('TrackChangesEditing'),_0x303d49=this['editor']['commands']['get']('blockQuote');_0x13f48b['enableCommand']('blockQuote',(_0x5eaeee,_0x293c0e={})=>{const _0x35adbe=this['editor']['model']['document']['selection'],_0x5abf45=_0x293c0e&&void 0x0!==_0x293c0e['forceValue']?_0x293c0e['forceValue']:!_0x303d49['value'];let _0xdc9aaa=[];if(_0x5abf45){const _0x325a7c=Array['from'](_0x35adbe['getSelectedBlocks']())['filter'](_0x47d6a9=>$t(_0x47d6a9)||function(_0x2d0373,_0x4d5c8d){const _0x310117=_0x4d5c8d['createContext'](_0x2d0373['parent']);return!!_0x4d5c8d['checkChild'](_0x310117,'blockQuote')&&!!_0x4d5c8d['checkChild'](_0x310117['push']('blockQuote'),_0x2d0373);}(_0x47d6a9,this['editor']['model']['schema']));_0xdc9aaa=Rt(_0x325a7c,_0x2f1176['model']);}else{const _0x31a25d=Array['from'](_0x35adbe['getSelectedBlocks']())['filter'](_0x105fa1=>$t(_0x105fa1));_0xdc9aaa=Rt(_0x31a25d,_0x2f1176['model']);}_0x2f1176['model']['change'](()=>{for(const _0x25b313 of _0xdc9aaa)_0x13f48b['markBlockFormat'](_0x25b313,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5abf45}]});});}),_0x13f48b['descriptionFactory']['registerDescriptionCallback'](_0x5b3aa8=>{const {data:_0x92509e}=_0x5b3aa8;if(_0x92509e&&'blockQuote'==_0x92509e['commandName']){const _0x349665=Bt(_0x55e86b,'ELEMENT_BLOCK_QUOTE');return _0x92509e['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x55e86b,'*Set\x20format:*\x20%0',_0x349665)}:{'type':'format','content':Bt(_0x55e86b,'*Remove\x20format:*\x20%0',_0x349665)};}});}};function $t(_0x14e17c){return'blockQuote'==_0x14e17c['parent']['name'];}var Wt=class extends _0x3e92ef{afterInit(){const _0x46851a=this['editor'],_0xee2375=_0x46851a['locale'],_0x23a61c=_0x46851a['plugins']['get']('TrackChangesEditing');_0x46851a['plugins']['has']('BookmarkEditing')&&(_0x23a61c['enableCommand']('insertBookmark'),_0x23a61c['enableDefaultAttributesIntegration']('updateBookmark'),_0x23a61c['descriptionFactory']['registerDescriptionCallback'](_0x445809=>{if('insertion'!=_0x445809['type']&&'deletion'!=_0x445809['type']&&'attribute'!=_0x445809['type'])return;const _0x46ae35=_0x445809['getContainedElement']();if(null==_0x46ae35)return;if(!_0x46ae35['is']('element','bookmark'))return;const _0x456073=_0x46ae35['getAttribute']('bookmarkId');if('insertion'==_0x445809['type'])return{'type':'insertion','content':Bt(_0xee2375,'*Insert:*\x20%0','\x22'+_0x456073+'\x22\x20'+Bt(_0xee2375,'ELEMENT_BOOKMARK'))};if('deletion'==_0x445809['type'])return{'type':'deletion','content':Bt(_0xee2375,'*Remove:*\x20%0','\x22'+_0x456073+'\x22\x20'+Bt(_0xee2375,'ELEMENT_BOOKMARK'))};const {data:_0x201e12}=_0x445809;return _0x201e12&&'bookmarkId'==_0x201e12['key']?{'type':'format','content':Bt(_0xee2375,'*Set\x20bookmark:*\x20%0','\x22'+_0x201e12['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0x3e92ef{afterInit(){const _0x4dc995=this['editor'];_0x4dc995['plugins']['has']('CaseChange')&&(_0x4dc995['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4dc995['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4dc995['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0x3e92ef{afterInit(){const _0x5a98cd=this['editor'];_0x5a98cd['commands']['get']('ckbox')&&_0x5a98cd['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0x3e92ef{static get requires(){return[mt,Et];}constructor(_0x3d2ff6){super(_0x3d2ff6),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x4b2386=this['editor'],_0x29a9e9=_0x4b2386['plugins']['get']('ClipboardMarkersUtils'),_0x4b6166=_0x4b2386['plugins']['get'](Et);_0x29a9e9['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x4b6166['on']('outputTransformation',(_0x2166a1,_0x3404f5)=>{const _0x3c7365=this['_getSuggestionEntries'](_0x3404f5);for(const [_0x1d1ed6,_0x59df51]of _0x3404f5['content']['markers']){const _0x25e2f3=ct['_fromRangeInDocumentFragment'](_0x59df51,_0x4b2386['model']);function _0xa11f34(){_0x25e2f3['detach'](),_0x3404f5['content']['markers']['delete'](_0x1d1ed6);}_0x25e2f3['on']('change:drop',_0xa11f34),(_0x1d1ed6['startsWith']('suggestion:')||_0x1d1ed6['startsWith']('comment:'))&&_0x25e2f3['on']('change:range',()=>{_0x25e2f3['isCollapsed']&&_0xa11f34();}),_0x3404f5['content']['markers']['set'](_0x1d1ed6,_0x25e2f3);}const _0x406293=_0x3c7365['filter'](_0x10a333=>'deletion'===_0x10a333['meta']['type'])['map'](_0x2c7727=>_0x2c7727['modelRange']);if(this['_shouldSkipDeletions'](_0x406293,_0x3404f5['content']))return[..._0x3c7365]['forEach'](_0x137960=>{_0x3404f5['content']['markers']['get'](_0x137960['markerName'])['detach'](),_0x3404f5['content']['markers']['delete'](_0x137960['markerName']);}),void this['_restoreRegularRanges'](_0x3404f5['content']['markers']);[..._0x3c7365]['forEach'](_0x139cae=>{const _0x3002a8=_0x4b2386['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x139cae['meta']['type'],_0x139cae['meta']['subType'],'accept'),{markerName:_0xd5a054,meta:_0x20b02d}=_0x139cae;if(_0x3404f5['content']['markers']['has'](_0xd5a054)){switch(_0x20b02d['type']){case'deletion':if('tableRow'===_0x20b02d['subType']||'tableColumn'===_0x20b02d['subType']){if(!_0x4b2386['plugins']['has']('TableUtils'))break;const _0x3c5c25=_0x4b2386['plugins']['get']('TableUtils'),_0xf6b44f=_0x3c5c25['getSelectionAffectedTableCells'](_0x4b2386['model']['createSelection'](_0x3404f5['content']['markers']['get'](_0xd5a054))),_0x49e6c8=_0xf6b44f[0x0]['findAncestor']('table');if('tableRow'===_0x20b02d['subType']){const {first:_0x146ba0,last:_0x1bd684}=_0x3c5c25['getRowIndexes'](_0xf6b44f);_0x3c5c25['removeRows'](_0x49e6c8,{'at':_0x146ba0,'rows':_0x1bd684-_0x146ba0+0x1});}else{const {first:_0x2ba4cd,last:_0xf2be27}=_0x3c5c25['getColumnIndexes'](_0xf6b44f);_0x3c5c25['removeColumns'](_0x49e6c8,{'at':_0x2ba4cd,'columns':_0xf2be27-_0x2ba4cd+0x1});}break;}_0x3002a8([_0x3404f5['content']['markers']['get'](_0xd5a054)]);}_0x3404f5['content']['markers']['has'](_0xd5a054)&&(_0x3404f5['content']['markers']['get'](_0xd5a054)['detach'](),_0x3404f5['content']['markers']['delete'](_0xd5a054));}}),this['_restoreRegularRanges'](_0x3404f5['content']['markers']);});}_getSuggestionEntries(_0x271035){const _0x553268=_0x14576d=>'dragstart'===_0x271035['method']?_0x14576d['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x14576d;return Array['from'](_0x271035['content']['markers'])['map'](([_0x11c058,_0x3cce85])=>({'markerName':_0x11c058,'modelRange':_0x3cce85,'meta':it(_0x553268(_0x11c058))}))['filter'](({meta:_0x587788})=>'suggestion'===_0x587788['group']);}_shouldSkipDeletions(_0x279e8f,_0x597e03){if(!_0x279e8f['length'])return!0x1;let _0xe5a709=[this['editor']['model']['createRangeIn'](_0x597e03)];for(const _0x6fb05a of _0x279e8f)_0xe5a709=_0xe5a709['flatMap'](_0x5c250e=>_0x5c250e['getDifference'](_0x6fb05a));return!_0xe5a709['some'](_0x2b3aa5=>this['editor']['model']['hasContent'](_0x2b3aa5,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x37dcb7){[..._0x37dcb7['keys']()]['forEach'](_0x3ed3ef=>{const _0x46bfc4=_0x37dcb7['get'](_0x3ed3ef);_0x46bfc4['detach'](),_0x37dcb7['set'](_0x3ed3ef,_0x46bfc4['toRange']());});}},Kt=class extends _0x3e92ef{afterInit(){const _0x49791e=this['editor'];if(!_0x49791e['plugins']['has']('CodeBlock'))return;const _0x413579=_0x49791e['plugins']['get']('TrackChangesEditing'),_0xdb3767=_0x49791e['locale'],_0x43dac7=_0x49791e['config']['get']('codeBlock')['languages'],_0x2ba9ee=_0x49791e['commands']['get']('codeBlock');_0x413579['enableCommand']('indentCodeBlock'),_0x413579['enableCommand']('outdentCodeBlock'),_0x413579['enableCommand']('codeBlock',(_0x16b508,_0x5ea8ef={})=>{const _0x51f85e=_0x49791e['model'],_0x9c4a5f=_0x49791e['model']['document']['selection'],_0x1f18b4=_0x5ea8ef&&void 0x0!==_0x5ea8ef['forceValue']?_0x5ea8ef['forceValue']:!_0x2ba9ee['value'];let _0x29858f;_0x5ea8ef['language']||(_0x5ea8ef['language']=_0x43dac7[0x0]['language']),_0x29858f=_0x1f18b4?Array['from'](_0x9c4a5f['getSelectedBlocks']())['filter'](_0xc89cfd=>{return Xt(_0xc89cfd)||(_0x103fa3=_0xc89cfd,_0xd06789=_0x51f85e['schema'],!_0x103fa3['is']('rootElement')&&!_0xd06789['isLimit'](_0x103fa3)&&_0xd06789['checkChild'](_0x103fa3['parent'],'codeBlock'));var _0x103fa3,_0xd06789;}):Array['from'](_0x9c4a5f['getSelectedBlocks']())['filter'](_0x246639=>Xt(_0x246639));const _0x6672e7=Rt(_0x29858f,_0x51f85e);_0x51f85e['change'](()=>{for(const _0x4bd4be of _0x6672e7)_0x413579['markBlockFormat'](_0x4bd4be,{'commandName':'codeBlock','commandParams':[{..._0x5ea8ef,'forceValue':_0x1f18b4}],'formatGroupId':'blockName'});});}),(_0x413579['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d98f9=>Bt(_0xdb3767,'ELEMENT_CODE_BLOCK',_0x3d98f9)),_0x413579['descriptionFactory']['registerDescriptionCallback'](_0x2448d3=>{if('formatBlock'!=_0x2448d3['type'])return;const _0x2776fe=_0xdb3767['t'],{data:_0x1e9602}=_0x2448d3;if(!_0x1e9602||'codeBlock'!=_0x1e9602['commandName'])return;const _0x4b7375=_0x1e9602['commandParams'][0x0]['language'],_0x441b30=_0x2776fe(_0x43dac7['find'](_0x1d779e=>_0x1d779e['language']===_0x4b7375)['label'])['toLowerCase']();return _0x1e9602['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0xdb3767,'*Set\x20format:*\x20%0',Bt(_0xdb3767,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x441b30+')')}:{'type':'format','content':Bt(_0xdb3767,'*Remove\x20format:*\x20%0',Bt(_0xdb3767,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x28e4f3){return'codeBlock'==_0x28e4f3['name'];}var qt=class extends _0x3e92ef{afterInit(){const _0x30f328=this['editor'];_0x30f328['plugins']['has']('CommentsEditing')&&_0x30f328['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0x3e92ef{static get requires(){return[Tt];}init(){const _0x4d6068=this['editor'],_0x5db628=_0x4d6068['plugins']['get']('TrackChangesEditing');_0x5db628['enableCommand']('delete');const _0x3294d0=_0x4d6068['commands']['get']('deleteForward');_0x5db628['enableCommand']('deleteForward',(_0x53a2c6,_0x5a0aac={})=>{const _0x5df1ee=_0x4d6068['model']['createSelection'](_0x4d6068['model']['document']['selection']);_0x5df1ee['isCollapsed']&&_0x4d6068['model']['modifySelection'](_0x5df1ee,{'direction':'forward','unit':_0x5a0aac['unit']});const _0x6d49b2=_0x5df1ee['getFirstRange'](),_0x32944e=ct['fromRange'](_0x6d49b2);let _0x3eff6b;_0x53a2c6(_0x5a0aac),_0x3eff6b='$graveyard'==_0x32944e['root']['rootName']?_0x4d6068['model']['createRange'](_0x6d49b2['start']):_0x4d6068['model']['createRange'](_0x32944e['start'],_0x32944e['end']),_0x32944e['detach'](),_0x4d6068['model']['enqueueChange'](_0x3294d0['buffer']['batch'],_0x45ca0f=>{_0x3294d0['buffer']['lock'](),_0x45ca0f['setSelection'](_0x45ca0f['createRange'](_0x3eff6b['end'])),_0x3294d0['buffer']['unlock']();});});}},Qt=class extends _0x3e92ef{afterInit(){const _0x59bfe7=this['editor'];if(!_0x59bfe7['plugins']['has']('ListEditing'))return;const _0x231fe6=_0x59bfe7['locale'],_0x2bf31f=_0x59bfe7['plugins']['get']('TrackChangesEditing'),_0x2477c5=_0x59bfe7['plugins']['has']('TodoListEditing'),_0xbcb249=!!_0x59bfe7['config']['get']('list.multiBlock');function _0x310bda(_0x2aff02){return{'type':'format','content':''+Bt(_0x231fe6,'*Set\x20format:*\x20%0',_0x2aff02)};}function _0x473e33(_0xf1b5a8){return{'type':'format','content':''+Bt(_0x231fe6,'*Remove\x20format:*\x20%0',_0xf1b5a8)};}_0x2bf31f['enableDefaultAttributesIntegration']('numberedList'),_0x2bf31f['enableDefaultAttributesIntegration']('bulletedList'),_0x2bf31f['enableDefaultAttributesIntegration']('customNumberedList'),_0x2bf31f['enableDefaultAttributesIntegration']('customBulletedList'),_0x2bf31f['enableDefaultAttributesIntegration']('indentList'),_0x2bf31f['enableDefaultAttributesIntegration']('outdentList'),_0x2bf31f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2bf31f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbcb249&&(_0x2bf31f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2bf31f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2477c5&&(_0x2bf31f['enableDefaultAttributesIntegration']('todoList'),_0x2bf31f['enableDefaultAttributesIntegration']('checkTodoList'),_0x2bf31f['descriptionFactory']['registerDescriptionCallback'](_0x13b4ff=>{const {data:_0x402a98}=_0x13b4ff;if(_0x402a98&&'todoListChecked'==_0x402a98['key'])return{'type':'format','content':_0x402a98['newValue']?Bt(_0x231fe6,'*Check\x20item*'):Bt(_0x231fe6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x29289c=>{if(_0x29289c['batch']['isUndo'])return!0x1;let _0x3a7d4d=!0x1;const _0x38df47=_0x2bf31f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x22f2ed=>'todoListChecked'===_0x2bf31f['_getAttributeKey'](_0x22f2ed));for(const _0x4df51d of _0x38df47)'todo'!=_0x4df51d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2bf31f['_findSuggestions'](_0x4df51d['getFirstRange'](),'attribute')['find'](_0x1778aa=>'listType'===_0x2bf31f['_getAttributeKey'](_0x1778aa['suggestion']))||(_0x29289c['removeMarker'](_0x4df51d['getFirstMarker']()),_0x3a7d4d=!0x0));return _0x3a7d4d;})),_0x2bf31f['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x231fe6,'FORMAT_INDENT'));const _0xec0c13={'type':'format','content':''};_0x2bf31f['descriptionFactory']['registerDescriptionCallback'](_0x54bd0a=>{const {data:_0x15188c}=_0x54bd0a;if(!_0x15188c||'listType'!=_0x15188c['key'])return;let _0x44fa03=_0x54bd0a['head'];for(;_0x44fa03;){if(_0x44fa03['data']&&(('listStyle'==_0x44fa03['data']['key']||'listMarkerStyle'==_0x44fa03['data']['key'])&&(_0x44fa03['data']['newValue']&&'default'!=_0x44fa03['data']['newValue']||'default'!=_0x44fa03['data']['oldValue']&&!_0x15188c['newValue'])||!_0xbcb249&&'$elementName'==_0x44fa03['data']['key']))return _0xec0c13;_0x44fa03=_0x44fa03['next'];}if(null==_0x15188c['newValue'])switch(_0x15188c['oldValue']){case'bulleted':return _0x473e33(Bt(_0x231fe6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x473e33(Bt(_0x231fe6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x473e33(Bt(_0x231fe6,'ELEMENT_TODO_LIST'));}switch(_0x15188c['newValue']){case'bulleted':return _0x310bda(Bt(_0x231fe6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x310bda(Bt(_0x231fe6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x310bda(Bt(_0x231fe6,'ELEMENT_TODO_LIST'));}}),_0x2bf31f['descriptionFactory']['registerDescriptionCallback'](_0xd6434c=>{const {data:_0x2c58f3}=_0xd6434c;if(_0x2c58f3&&'listIndent'==_0x2c58f3['key'])return null==_0x2c58f3['newValue']||null==_0x2c58f3['oldValue']&&0x0==_0x2c58f3['newValue']?_0xec0c13:void 0x0;}),_0x2bf31f['descriptionFactory']['registerDescriptionCallback'](_0x3d85ed=>{if('attribute'!=_0x3d85ed['type'])return;const {data:_0x380008}=_0x3d85ed;if(!_0x380008||'listItemId'!=_0x380008['key'])return;const _0x4867eb=Zt(_0x3d85ed);return'newValue'==_0x4867eb?{'type':'format','content':Bt(_0x231fe6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4867eb?{'type':'format','content':Bt(_0x231fe6,'*Split:*\x20list\x20item')}:_0xec0c13;}),_0x59bfe7['model']['document']['registerPostFixer'](_0x3a11c6=>this['listItemIdFixer'](_0x3a11c6)),_0x59bfe7['model']['document']['registerPostFixer'](_0x16d6e7=>this['noTrackChangesFixer'](_0x16d6e7)),_0x59bfe7['model']['document']['on']('change:data',(_0x561140,_0x305e26)=>{if(_0x305e26['isUndo']||!_0x305e26['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x55cca9){if(_0x55cca9['batch']['isUndo']||!_0x55cca9['batch']['isLocal'])return!0x1;let _0x23be67=!0x1;const _0x4b8ca8=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a2e65=>_0x4a2e65['data']&&'listItemId'==_0x4a2e65['data']['key'])['filter'](_0x9600f2=>_0x9600f2['data']['newValue']&&_0x9600f2['data']['oldValue']);for(const _0x47593b of _0x4b8ca8)Zt(_0x47593b)||(_0x55cca9['removeMarker'](_0x47593b['getFirstMarker']()),_0x23be67=!0x0);return _0x23be67;}['noTrackChangesFixer'](_0x122513){if(_0x122513['batch']['isUndo']||!_0x122513['batch']['isLocal'])return!0x1;const _0x42004f=this['editor']['model']['document']['differ'],_0x3eae97=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3eae97['trackChangesCommand']['value'])return!0x1;let _0x10e5c8=!0x1;const _0x2f455d=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3c4ac6=_0x42004f['getChanges']()['filter'](_0x1e2a61=>'attribute'==_0x1e2a61['type'])['filter'](_0x424314=>_0x2f455d['has'](_0x424314['attributeKey']));if(0x0==_0x3c4ac6['length'])return _0x10e5c8;const _0x5eda8e=new Set(_0x42004f['getMarkersToAdd']()['filter'](_0x58ba28=>{if(!_0x58ba28['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x4b65d=it(_0x58ba28['name'])['subType']['split']('|')[0x0];return _0x2f455d['has'](_0x4b65d);})['map'](_0x2ae0b8=>it(_0x2ae0b8['name'])['id']));for(const _0x44c4af of _0x3c4ac6){const _0x57dc05=_0x3eae97['_findSuggestions'](_0x44c4af['range'],'attribute')['filter'](_0x13a787=>{if(_0x13a787['meta']['isNextTo'])return!0x1;if(_0x5eda8e['has'](_0x13a787['suggestion']['id']))return!0x1;const _0x2ba816=_0x3eae97['_getAttributeKey'](_0x13a787['suggestion']);return _0x2f455d['has'](_0x2ba816);})['map'](_0x183cf0=>_0x183cf0['suggestion']);if(_0x57dc05['length']){for(const _0x49bc35 of _0x57dc05)_0x122513['removeMarker'](_0x49bc35['getFirstMarker']());_0x10e5c8=!0x0;}}return _0x10e5c8;}['assureChains'](){const _0x14edd9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a6d9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x452b77;const _0x25c6cd=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x64ee70=>{if(_0x64ee70['data']['oldRange']||!_0x64ee70['data']['newRange'])return null;if(!_0x64ee70['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x599b61}=it(_0x64ee70['name']);if(!_0x14edd9['hasSuggestion'](_0x599b61))return null;const _0x4febac=_0x14edd9['getSuggestion'](_0x599b61);return _0x35a6d9['includes'](_0x4febac['data']['key']);})['map'](_0xe45a1e=>{const {id:_0x52d639}=it(_0xe45a1e['name']),_0x5340c8=_0x14edd9['getSuggestion'](_0x52d639);return _0x452b77=_0x5340c8['attributes']['groupId'],_0x5340c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x25c6cd['size'])return;const _0x3b8734=_0x14edd9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x498fa7=>'attribute'==_0x498fa7['type']&&_0x498fa7['data']&&_0x35a6d9['includes'](_0x498fa7['data']['key'])&&_0x498fa7['attributes']['groupId']!=_0x452b77)['map'](_0x149fc7=>({'listItem':_0x149fc7['getFirstRange']()['start']['nodeAfter'],'groupId':_0x149fc7['attributes']['groupId']})),_0x168e61=new Set();for(const {groupId:_0x348563,listItem:_0x312739}of _0x3b8734)_0x25c6cd['has'](_0x312739)&&_0x168e61['add'](_0x348563);for(const _0x510687 of _0x14edd9['getSuggestions']())_0x168e61['has'](_0x510687['attributes']['groupId'])&&_0x510687['setAttribute']('groupId',_0x452b77);}_supportLegacySuggestions(){const _0x3311e9=this['editor'],_0x9fb698=_0x3311e9['locale'],_0x3fc19a=_0x3311e9['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3fc19a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x37cc6a,_0x48871f){const _0x6a5952=[];for(let _0x3453e9 of _0x37cc6a)_0x3453e9['start']['nodeAfter']===_0x3453e9['end']['parent']&&(_0x3453e9=_0x3311e9['model']['createRange'](_0x3311e9['model']['createPositionAt'](_0x3453e9['start']['nodeAfter'],0x0))),_0x6a5952['push'](_0x3453e9);_0x3311e9['model']['change'](_0x37371b=>{const _0x1b157b=_0x3311e9['model']['document']['selection'],_0x2157c1=Array['from'](_0x1b157b['getRanges']())['map'](_0x2ff00c=>ct['fromRange'](_0x2ff00c));_0x37371b['setSelection'](_0x6a5952),_0x3311e9['commands']['get'](_0x48871f['commandName'])['refresh'](),_0x48871f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3311e9['execute'](_0x48871f['commandName'],..._0x48871f['commandParams']),_0x37371b['setSelection'](_0x2157c1);for(const _0xec613c of _0x2157c1)_0xec613c['detach']();});}),_0x3fc19a['descriptionFactory']['registerElementLabel'](function(_0x3ae09e){const _0x58ad1b=!_0x3311e9['model']['schema']['isObject'](_0x3ae09e),_0x31995e=_0x3ae09e['previousSibling'],_0x131e36=_0x3ae09e['nextSibling'],_0x79d4ca=_0x3ae09e['getAttribute']('listItemId'),_0x57942e=!_0x31995e||_0x31995e['getAttribute']('listItemId')!==_0x79d4ca,_0x2fc6df=!_0x131e36||_0x131e36['getAttribute']('listItemId')!==_0x79d4ca;return _0x58ad1b&&Boolean(_0x79d4ca)&&_0x57942e&&_0x2fc6df;},_0x1c8121=>Bt(_0x9fb698,'ELEMENT_LIST_ITEM',_0x1c8121));}_registerLegacyDescription(){const _0x29855c=this['editor'],_0x2c0072=_0x29855c['locale'];function _0x3b2ceb(_0x2263b6){const _0x3e5533=_0x29855c['commands']['get']('bulletedList')['value'],_0x417ff5=_0x29855c['commands']['get']('numberedList')['value'];return'numberedList'===_0x2263b6?_0x3e5533:_0x417ff5;}_0x29855c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5df401){if('formatBlock'!=_0x5df401['type'])return;const {data:_0x22ee4b}=_0x5df401;if(!_0x22ee4b)return;let _0x543407,_0x499f79,_0x245ffa,_0x30dde8;switch(_0x22ee4b['commandName']){case'bulletedList':_0x245ffa=_0x22ee4b['commandParams'][0x0]['forceValue'],_0x30dde8=_0x3b2ceb(_0x22ee4b['commandName']),_0x543407=_0x245ffa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30dde8&&_0x29855c['config']['get']('list.multiBlock')||(_0x543407='*Change\x20to:*\x20%0'),_0x499f79={'type':'format','content':Bt(_0x2c0072,_0x543407,Bt(_0x2c0072,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x245ffa=_0x22ee4b['commandParams'][0x0]['forceValue'],_0x30dde8=_0x3b2ceb(_0x22ee4b['commandName']),_0x543407=_0x245ffa?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x30dde8&&_0x29855c['config']['get']('list.multiBlock')||(_0x543407='*Change\x20to:*\x20%0'),_0x499f79={'type':'format','content':Bt(_0x2c0072,_0x543407,Bt(_0x2c0072,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x543407='*Indent:*\x20%0',_0x499f79={'type':'format','content':Bt(_0x2c0072,_0x543407,Bt(_0x2c0072,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x543407=function(_0x129a8d){const _0x3e716b=_0x129a8d['getFirstRange']();let _0x5695d3=_0x3e716b['start']['nodeAfter'];for(;_0x5695d3&&_0x3e716b['containsItem'](_0x5695d3);){if(_0x5695d3['getAttribute']('listIndent')>0x0)return!0x1;_0x5695d3=_0x5695d3['nextSibling'];}return!0x0;}(_0x5df401)?Bt(_0x2c0072,'*Format:*\x20remove\x20from\x20%0',Bt(_0x2c0072,function(_0xb637d0){return'ELEMENT_'+_0xb637d0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5df401))):Bt(_0x2c0072,'*Outdent:*\x20%0',Bt(_0x2c0072,'ELEMENT_LIST_ITEM')),_0x499f79={'type':'format','content':_0x543407};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x22ee4b['multipleBlocks']&&(_0x543407='*Merge:*\x20%0',_0x499f79={'type':'deletion','content':Bt(_0x2c0072,_0x543407,Bt(_0x2c0072,'ELEMENT_LIST_ITEM'))});}return _0x499f79;});}};function Zt(_0x3715f5){let _0x2b1cf5=_0x3715f5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2b1cf5;){const _0xc2278f=_0x2b1cf5['getAttribute']('listItemId');if(!_0xc2278f)return!0x1;if(_0xc2278f==_0x3715f5['data']['newValue'])return'newValue';if(_0xc2278f==_0x3715f5['data']['oldValue'])return'oldValue';_0x2b1cf5=_0x2b1cf5['previousSibling'];}return!0x1;}var Jt=class extends _0x3e92ef{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2511af=this['editor']['config']['get']('list.properties'),_0x574bf4=this['editor']['plugins']['get']('TrackChangesEditing');_0x2511af['styles']&&_0x574bf4['enableDefaultAttributesIntegration']('listStyle'),_0x2511af['reversed']&&_0x574bf4['enableDefaultAttributesIntegration']('listReversed'),_0x2511af['startIndex']&&_0x574bf4['enableDefaultAttributesIntegration']('listStart');const _0x1771b4={'type':'format','content':''};_0x574bf4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2ec98f=this['editor']['locale'];_0x574bf4['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x2ec98f,'FORMAT_LIST_REVERSED')),_0x574bf4['descriptionFactory']['registerDescriptionCallback'](_0x5a5b06=>{const {data:_0x5750b6}=_0x5a5b06;if(_0x5750b6&&'listReversed'==_0x5750b6['key'])return null==_0x5750b6['newValue']||0x0==_0x5750b6['newValue']&&null==_0x5750b6['oldValue']?_0x1771b4:void 0x0;}),_0x574bf4['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x2ec98f,'FORMAT_LIST_START')),_0x574bf4['descriptionFactory']['registerDescriptionCallback'](_0x171135=>{const {data:_0x3d2f0b}=_0x171135;if(_0x3d2f0b&&'listStart'==_0x3d2f0b['key'])return null==_0x3d2f0b['newValue']||0x1==_0x3d2f0b['newValue']&&null==_0x3d2f0b['oldValue']?_0x1771b4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5af4e1=>{if(_0x5af4e1['batch']['isUndo'])return!0x1;let _0x1fe4c7=!0x1;const _0x428e1d=_0x574bf4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49add0=>{const _0x25cdfa=_0x574bf4['_getAttributeKey'](_0x49add0);return'listStart'==_0x25cdfa||'listReversed'==_0x25cdfa;});for(const _0x3e8cb4 of _0x428e1d){const _0xf5aa5f=_0x3e8cb4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0xf5aa5f&&'customNumbered'!=_0xf5aa5f&&(_0x574bf4['_findSuggestions'](_0x3e8cb4['getFirstRange'](),'attribute')['find'](_0x1f92e9=>'listType'==_0x574bf4['_getAttributeKey'](_0x1f92e9['suggestion']))||(_0x5af4e1['removeMarker'](_0x3e8cb4['getFirstMarker']()),_0x1fe4c7=!0x0));}return _0x1fe4c7;}),this['_registerLegacyDescription']();}handleDescriptions(_0x1a9670){const _0x37fa16=this['editor']['locale'],{data:_0x17129a}=_0x1a9670,_0x2c106f={'type':'format','content':''};if(!_0x17129a||'listStyle'!=_0x17129a['key'])return;if(!_0x17129a['oldValue'])return'default'==_0x17129a['newValue']?_0x2c106f:{'type':'format','content':''+Bt(_0x37fa16,'*Set\x20format:*\x20%0',Bt(_0x37fa16,this['_getTranslationKeyForListStyle'](_0x17129a['newValue'])))};if(!_0x17129a['newValue']){if('default'==_0x17129a['oldValue'])return _0x2c106f;let _0x175025=_0x1a9670['head'];for(;_0x175025;){if(_0x175025['data']&&'listType'==_0x175025['data']['key']&&_0x175025['data']['newValue'])return _0x2c106f;_0x175025=_0x175025['next'];}return{'type':'format','content':''+Bt(_0x37fa16,'*Remove\x20format:*\x20%0',Bt(_0x37fa16,this['_getTranslationKeyForListStyle'](_0x17129a['oldValue'])))};}if('default'!=_0x17129a['newValue'])return{'type':'format','content':''+Bt(_0x37fa16,'*Set\x20format:*\x20%0',Bt(_0x37fa16,this['_getTranslationKeyForListStyle'](_0x17129a['newValue'])))};let _0x49c8e9=_0x1a9670['head'];for(;_0x49c8e9;){if(_0x49c8e9['data']&&'listType'==_0x49c8e9['data']['key']&&_0x49c8e9['data']['newValue']&&_0x49c8e9['data']['oldValue'])return _0x2c106f;_0x49c8e9=_0x49c8e9['next'];}return{'type':'format','content':Bt(_0x37fa16,'*Set\x20format:*\x20%0',Bt(_0x37fa16,'ELEMENT_'+_0x1a9670['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0xddfee8=this['editor'],_0x42c682=_0xddfee8['locale'];_0xddfee8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c8c30=>{if('formatBlock'!=_0x1c8c30['type'])return;const {data:_0x3ee3f2}=_0x1c8c30;if(!_0x3ee3f2)return;let _0x256f77,_0x3b690d;switch(_0x3ee3f2['commandName']){case'listStyle':_0x256f77='*Change\x20to:*\x20%0',_0x3b690d={'type':'format','content':Bt(_0x42c682,_0x256f77,Bt(_0x42c682,this['_getTranslationKeyForListStyle'](_0x3ee3f2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x256f77=_0x3ee3f2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3b690d={'type':'format','content':Bt(_0x42c682,_0x256f77)};break;case'listStart':_0x256f77='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3b690d={'type':'format','content':Bt(_0x42c682,_0x256f77,_0x3ee3f2['commandParams'][0x0]['startIndex'])};}return _0x3b690d;});}_getTranslationKeyForListStyle(_0x638648){return'ELEMENT_'+(_0x2c7b9e=_0x638648,te['includes'](_0x2c7b9e)?'bulleted':ee['includes'](_0x2c7b9e)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x638648['toUpperCase']()['replace'](/-/g,'_');var _0x2c7b9e;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0x3e92ef{afterInit(){const _0x42f3f4=this['editor'];_0x42f3f4['commands']['get']('emoji')&&_0x42f3f4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0x3e92ef{static get requires(){return[pt];}init(){const _0x38111e=this['editor'],_0x5a4a8f=_0x38111e['plugins']['get']('TrackChangesEditing'),_0x46c66d=_0x38111e['commands']['get']('enter');_0x5a4a8f['enableCommand']('enter',()=>{_0x38111e['model']['change'](_0x58ade1=>{const _0x550d52=_0x38111e['model']['document']['selection'],_0xe30466=_0x550d52['getFirstPosition'](),_0x3476fc=ct['fromRange'](_0x550d52['getFirstRange']());if(_0x46c66d['enterBlock'](_0x58ade1)){const _0x150bb4=_0x38111e['model']['createPositionAt'](_0xe30466['parent']['nextSibling'],0x0),_0x575861=_0x58ade1['createRange'](_0xe30466,_0x150bb4);_0x5a4a8f['markInsertion'](_0x575861);}else _0x58ade1['setSelection'](_0x58ade1['createRange'](_0x3476fc['end']));_0x3476fc['detach'](),_0x46c66d['fire']('afterExecute',{'writer':_0x58ade1});});});}},se=class extends _0x3e92ef{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x482d4c=this['editor']['plugins']['get']('TrackChangesEditing');_0x482d4c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x482d4c['enableCommand']('findNext'),_0x482d4c['enableCommand']('findPrevious'),_0x482d4c['enableCommand']('replace'),_0x482d4c['enableCommand']('replaceAll');}['handleFindCommand'](_0x976669,_0x23fe43,_0x28791d={}){const _0x232972=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x976669(_0x55031e=>{let _0x478e38=('string'==typeof _0x23fe43?_0x232972['findByTextCallback'](_0x23fe43,_0x28791d):_0x23fe43)(_0x55031e);Array['isArray'](_0x478e38)&&(_0x478e38={'results':_0x478e38,'searchText':'string'==typeof _0x23fe43?_0x23fe43:''});const _0x99b25d=_0x478e38['results']['filter'](_0x223840=>!0x1===this['_isInDeletionRange'](_0x223840,_0x55031e['item']));return{..._0x478e38,'results':_0x99b25d};},_0x28791d);}_isInDeletionRange(_0x49f832,_0x1497ad){const _0x30acef=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1497ad,_0x49f832['start']),this['editor']['model']['createPositionAt'](_0x1497ad,_0x49f832['end']));for(const _0xff6a04 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x30acef['getIntersection'](_0xff6a04['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0x3e92ef{afterInit(){const _0x10263c=this['editor']['locale'],_0x3e7fe4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x328756,commandName:_0x2f58fa}of re)this['editor']['plugins']['has'](_0x328756)&&_0x3e7fe4['enableDefaultAttributesIntegration'](_0x2f58fa);_0x3e7fe4['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x10263c,'FORMAT_FONT_SIZE')),_0x3e7fe4['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x10263c,'FORMAT_FONT_FAMILY')),_0x3e7fe4['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x10263c,'FORMAT_FONT_COLOR')),_0x3e7fe4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x10263c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4a646a=this['editor'],_0x51ab22=_0x4a646a['locale'];_0x4a646a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3af83b=>{const _0x1d1ea9=_0x51ab22['t'];if('formatInline'!=_0x3af83b['type'])return;const {data:_0x4361fe}=_0x3af83b;if(null!=_0x4361fe){if('fontSize'==_0x4361fe['commandName']){const _0x37d46d=_0x4361fe['commandParams'][0x0]['value'];if(_0x37d46d){const _0x5bc368=_0x1d1ea9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x412911=>_0x412911['model']==_0x37d46d)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x51ab22,'*Set\x20font\x20size:*\x20%0',_0x5bc368)};}return{'type':'format','content':Bt(_0x51ab22,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4361fe['commandName']){const _0x57904d=_0x4361fe['commandParams'][0x0]['value'];return _0x57904d?{'type':'format','content':Bt(_0x51ab22,'*Set\x20font\x20family:*\x20%0',_0x57904d)}:{'type':'format','content':Bt(_0x51ab22,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4361fe['commandName']){const _0x375f8e=_0x4361fe['commandParams'][0x0]['value'];if(_0x375f8e){const _0x506067=_0x4d17b2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5c89ac=>_0x5c89ac['model']==_0x375f8e);let _0x4b6606=_0x375f8e,_0x3611f3='';return _0x506067&&(_0x4b6606=_0x506067['label'],_0x3611f3=_0x513346(_0x51ab22,_0x4b6606)['toLowerCase']()),{'type':'format','content':Bt(_0x51ab22,'*Set\x20font\x20color:*\x20%0',_0x3611f3)['trim'](),'color':{'value':_0x375f8e,'title':_0x3611f3||_0x4b6606}};}return{'type':'format','content':Bt(_0x51ab22,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4361fe['commandName']){const _0x2e0149=_0x4361fe['commandParams'][0x0]['value'];if(_0x2e0149){const _0x1f5da5=_0x4d17b2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13ec5a=>_0x13ec5a['model']==_0x2e0149);let _0x23fe6e=_0x2e0149,_0x5744c8='';return _0x1f5da5&&(_0x23fe6e=_0x1f5da5['label'],_0x5744c8=_0x513346(_0x51ab22,_0x23fe6e)['toLowerCase']()),{'type':'format','content':Bt(_0x51ab22,'*Set\x20font\x20background\x20color:*\x20%0',_0x5744c8)['trim'](),'color':{'value':_0x2e0149,'title':_0x5744c8||_0x23fe6e}};}return{'type':'format','content':Bt(_0x51ab22,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0x3e92ef{afterInit(){const {plugins:_0xda44a0}=this['editor'];_0xda44a0['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xda44a0['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1166f6,plugins:_0x5cefa2,commands:_0x319262}=this['editor'],_0x21c7f4=_0x5cefa2['get']('TrackChangesEditing');_0x319262['get']('footnotesStyle')&&_0x21c7f4['enableDefaultAttributesIntegration']('footnotesStyle'),_0x319262['get']('footnotesStart')&&_0x21c7f4['enableDefaultAttributesIntegration']('footnotesStart'),_0x21c7f4['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x1166f6,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x21c7f4['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x1166f6,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x2e5b9f=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4c7134,commands:_0xd4861d}=this['editor'];_0xd4861d['get']('insertFootnote')&&_0x2e5b9f['enableCommand']('insertFootnote'),_0x2e5b9f['descriptionFactory']['registerElementLabel']('footnoteRef',_0x16f38c=>Bt(_0x4c7134,'ELEMENT_FOOTNOTE_REF',_0x16f38c)),_0x2e5b9f['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0xae2e2d=>Bt(_0x4c7134,'ELEMENT_FOOTNOTE_DEFINITION',_0xae2e2d)),_0x2e5b9f['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xd858e=>Bt(_0x4c7134,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xd858e));}},ce=class extends _0x3e92ef{afterInit(){const _0x2f4ff5=this['editor'],_0x4ca56e=_0x2f4ff5['plugins']['get']('TrackChangesEditing'),_0x55ebd1=_0x2f4ff5['commands']['get']('copyFormat'),_0x5d5e57=_0x2f4ff5['commands']['get']('pasteFormat');_0x55ebd1&&_0x5d5e57&&(_0x4ca56e['enableDefaultAttributesIntegration']('pasteFormat'),_0x4ca56e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x3faf69=this['editor'],_0x5981a7=_0x3faf69['locale'];_0x3faf69['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17f4eb=>{if('formatBlock'!=_0x17f4eb['type']&&'formatInline'!=_0x17f4eb['type'])return;const {data:_0x2df027}=_0x17f4eb;if(_0x2df027&&'pasteFormat'===_0x2df027['commandName']){const _0x1e6eab=[],_0x585e3c=_0x2df027['commandParams'][0x0];for(const [_0x45fd94,_0x4a6732]of Object['entries'](_0x585e3c))_0x1e6eab['push'](le(_0x3faf69,_0x45fd94,_0x4a6732));return _0x1e6eab['length']?{'type':'format','content':Bt(_0x5981a7,'*Set\x20format\x20to:*\x20%0',_0x1e6eab['join'](',\x20'))}:{'type':'format','content':Bt(_0x5981a7,'*Remove\x20all\x20formatting*')};}});}};function le(_0x281869,_0x377409,_0xa01265){const _0x57b784=_0x281869['locale'],_0x4ef135=_0x57b784['t'],_0x1492c2=_0x377409['split'](/(?=[A-Z])/)['join']('\x20'),_0x12110e=_0x4ef135(_0x1492c2['charAt'](0x0)['toUpperCase']()+_0x1492c2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa01265)return _0x12110e;if('fontColor'===_0x377409||'fontBackgroundColor'===_0x377409){const _0x4b4629=_0x4d17b2(_0x281869['config']['get']('fontColor.colors'))['find'](_0x2f4735=>_0x2f4735['model']==_0xa01265);return _0x12110e+'\x20('+(_0x4b4629?_0x513346(_0x57b784,_0x4b4629['label'])['toLowerCase']():_0xa01265)+')';}if('fontSize'===_0x377409&&isNaN(parseFloat(_0xa01265))){const _0x1d2eb7=_0x281869['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x281869['config']['get']('fontSize.options'))['find'](_0x49e966=>_0x49e966['model']==_0xa01265);return _0x12110e+'\x20('+(_0x1d2eb7?_0x4ef135(_0x1d2eb7['title'])['toLowerCase']():_0xa01265)+')';}return _0x12110e+'\x20('+_0xa01265+')';}var ue=class extends _0x3e92ef{afterInit(){const _0x365ae2=this['editor'];if(!_0x365ae2['plugins']['has']('GeneralHtmlSupport')||!_0x365ae2['plugins']['has']('DataSchema'))return;const _0x3949ca=_0x365ae2['plugins']['get']('TrackChangesEditing'),_0x37c157=_0x365ae2['plugins']['get']('GeneralHtmlSupport'),_0x4a9599=_0x365ae2['plugins']['get']('DataSchema'),_0x509fa0=_0x365ae2['locale'],_0x1cf3d8=new Set(['htmlContent']);for(const _0xb2ff62 of _0x4a9599['getDefinitionsForView'](/.*/,!0x1)){const _0x4bbae6=_0xb2ff62['view'],_0x2dc44a=_0x37c157['getGhsAttributeNameForElement'](_0x4bbae6);_0x1cf3d8['add'](_0x2dc44a),!_0xb2ff62['isInline']||_0xb2ff62['isObject']||'appliesToBlock'in _0xb2ff62&&_0xb2ff62['appliesToBlock']||_0x3949ca['descriptionFactory']['registerAttributeLabel'](_0x2dc44a,_0x4bbae6),_0xb2ff62['model']['startsWith']('html')&&_0x3949ca['descriptionFactory']['registerElementLabel'](_0xb2ff62['model'],_0x1fa3c1=>Bt(_0x509fa0,'ELEMENT_HTML_TAG',[_0x1fa3c1,_0x4bbae6]));}_0x3949ca['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0x509fa0,'FORMAT_RAW_HTML_CONTENT')),_0x3949ca['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0x509fa0,'FORMAT_HTML_LIST_ITEM')),_0x3949ca['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0x509fa0,'FORMAT_HTML_BULLETED_LIST')),_0x3949ca['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0x509fa0,'FORMAT_HTML_NUMBERED_LIST')),_0x3949ca['descriptionFactory']['registerDescriptionCallback'](_0x58063f=>{if('attribute'!==_0x58063f['type'])return;const _0x358b68=_0x58063f['data'];if(!_0x358b68||!_0x1cf3d8['has'](_0x358b68['key']))return;if('htmlContent'===_0x358b68['key'])return{'type':'format','content':Bt(_0x509fa0,'*Change\x20%0\x20content*',Bt(_0x509fa0,'ELEMENT_RAW_HTML'))};const {setItems:_0x53e250,removeItems:_0x4e8708}=function(_0x18b60f,_0x4bacf4,_0x175fc1){const _0x5cc0cd=[],_0x406fed=[],_0x3cfbee=_0x18b60f['styles']??{},_0x3d66c0=_0x4bacf4['styles']??{};for(const _0x5283e6 of new Set([...Object['keys'](_0x3cfbee),...Object['keys'](_0x3d66c0)]))_0x3cfbee[_0x5283e6]!==_0x3d66c0[_0x5283e6]&&(void 0x0===_0x3d66c0[_0x5283e6]?_0x406fed['push'](_0x5283e6):_0x5cc0cd['push'](_0x5283e6+'\x20('+_0x3d66c0[_0x5283e6]+')'));const _0x111e3b=Bt(_0x175fc1,'FORMAT_HTML_CLASS'),_0x2b04a2=new Set(_0x18b60f['classes']??[]),_0x2abaac=new Set(_0x4bacf4['classes']??[]),_0xbb0b89=[..._0x2abaac]['some'](_0x5b3f07=>!_0x2b04a2['has'](_0x5b3f07)),_0x3d6d58=[..._0x2b04a2]['some'](_0x4fbecd=>!_0x2abaac['has'](_0x4fbecd));_0xbb0b89&&_0x5cc0cd['push'](_0x111e3b),_0x3d6d58&&_0x406fed['push'](_0x111e3b);const _0x4d3ef1=Bt(_0x175fc1,'FORMAT_HTML_ATTRIBUTE'),_0xf11352=_0x18b60f['attributes']??{},_0x39dae0=_0x4bacf4['attributes']??{};let _0x5bbf9b=!0x1,_0x114802=!0x1;for(const _0x1e345c of new Set([...Object['keys'](_0xf11352),...Object['keys'](_0x39dae0)]))_0xf11352[_0x1e345c]!==_0x39dae0[_0x1e345c]&&(void 0x0===_0x39dae0[_0x1e345c]?_0x114802=!0x0:_0x5bbf9b=!0x0);return _0x5bbf9b&&_0x5cc0cd['push'](_0x4d3ef1),_0x114802&&_0x406fed['push'](_0x4d3ef1),{'setItems':_0x5cc0cd,'removeItems':_0x406fed};}(_0x358b68['oldValue']??{},_0x358b68['newValue']??{},_0x509fa0);if(!_0x53e250['length']&&!_0x4e8708['length'])return;const _0x127ca3=[];return _0x53e250['length']&&_0x127ca3['push'](Bt(_0x509fa0,'*Set\x20format:*\x20%0',_0x53e250['join'](',\x20'))),_0x4e8708['length']&&_0x127ca3['push'](Bt(_0x509fa0,'*Remove\x20format:*\x20%0',_0x4e8708['join'](',\x20'))),{'type':'format','content':_0x127ca3['join']('\x0a')};});}},de=class extends _0x3e92ef{_headingOptions;afterInit(){const _0x18053b=this['editor'];if(!_0x18053b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x18053b['config']['get']('heading.options');const _0x305aa6=_0x18053b['locale'],_0x1560cf=_0x18053b['plugins']['get']('TrackChangesEditing');_0x1560cf['enableDefaultAttributesIntegration']('heading');for(const _0x1fd1e5 of this['_headingOptions'])'paragraph'!=_0x1fd1e5['model']&&_0x1560cf['descriptionFactory']['registerElementLabel'](_0x1fd1e5['model'],_0x599303=>{const _0x26a1d3=this['_getHeadingLevel'](_0x1fd1e5['model']);return null!==_0x26a1d3?_0x1e6e02(_0x599303,_0x26a1d3):_0xbe26d5(_0x599303,_0x1fd1e5['title']);});function _0x1e6e02(_0x5cdd9c,_0x489736){return Bt(_0x305aa6,'ELEMENT_HEADING',[_0x5cdd9c,_0x489736]);}function _0xbe26d5(_0x21ec41,_0x2a3006){return Bt(_0x305aa6,'ELEMENT_HEADING_CUSTOM',[_0x21ec41,_0x2a3006]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5448ef=this['editor'],_0x4b47ab=_0x5448ef['locale'];function _0x32a312(_0x377402,_0x44f8e5){return Bt(_0x4b47ab,'ELEMENT_HEADING_CUSTOM',[_0x377402,_0x44f8e5]);}_0x5448ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e865b=>{if('formatBlock'!=_0x5e865b['type'])return;const {data:_0xaa4496}=_0x5e865b;if(_0xaa4496&&'heading'==_0xaa4496['commandName']){const _0x3b1ffd=_0xaa4496['commandParams'][0x0]['value'],_0x3a9785=this['_getHeadingLevel'](_0x3b1ffd);if(null!==_0x3a9785)return{'type':'format','content':Bt(_0x4b47ab,'*Change\x20to:*\x20%0',(_0x5d3e1e=0x1,_0x28b064=_0x3a9785,Bt(_0x4b47ab,'ELEMENT_HEADING',[_0x5d3e1e,_0x28b064])))};const _0x1d7814=this['_headingOptions']['find'](_0x35257f=>_0x35257f['model']===_0x3b1ffd)['title'];return{'type':'format','content':Bt(_0x4b47ab,'*Change\x20to:*\x20%0',_0x32a312(0x1,_0x1d7814))};}var _0x5d3e1e,_0x28b064;});}_getHeadingLevel(_0x2de6ed){const _0x3e4750=_0x2de6ed['match'](/^heading(\d+)/);if(_0x3e4750)return _0x3e4750[0x1];const _0x1b2537=this['_headingOptions']?.['find'](_0x3ba2c8=>_0x3ba2c8['model']==_0x2de6ed);if(_0x1b2537&&_0x1b2537['view']){const _0x1c5034=_0x1b2537['view'],_0x3a0354=(_0x1c5034['name']??_0x1c5034)['match'](/^h(\d+)/);if(_0x3a0354)return _0x3a0354[0x1];}return null;}},he=class extends _0x3e92ef{afterInit(){const _0x1e9220=this['editor'];if(!_0x1e9220['plugins']['has']('HighlightEditing'))return;const _0x55ca1f=_0x1e9220['plugins']['get']('TrackChangesEditing'),_0x641b8b=_0x1e9220['locale'];_0x55ca1f['enableDefaultAttributesIntegration']('highlight'),_0x55ca1f['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x641b8b,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x107376=this['editor'],_0x5cad1e=_0x107376['locale'];_0x107376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x93ec41=>{if('formatInline'!=_0x93ec41['type'])return;const {data:_0x4a52f7}=_0x93ec41;if(_0x4a52f7&&'highlight'==_0x4a52f7['commandName']){const _0x24548e=_0x5cad1e['t'],_0x5c7262=_0x4a52f7['commandParams'][0x0]['value'];if(_0x5c7262){const _0x5e0071=_0x107376['config']['get']('highlight.options')['find'](_0x13e6a6=>_0x13e6a6['model']==_0x5c7262),_0x3c3352=_0x24548e(_0x5e0071['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5cad1e,'*Set\x20highlight:*\x20%0',_0x3c3352),'color':{'value':_0x5e0071['color'],'title':_0x5e0071['title']}};}return{'type':'format','content':Bt(_0x5cad1e,'*Remove\x20highlight*',Bt(_0x5cad1e,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0x3e92ef{afterInit(){const _0x551421=this['editor'];if(!_0x551421['plugins']['has']('HorizontalLineEditing'))return;_0x551421['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x10e55b=_0x551421['plugins']['get']('TrackChangesEditing'),_0x37b173=_0x551421['locale'];_0x10e55b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x321a5b=>Bt(_0x37b173,'ELEMENT_HORIZONTAL_LINE',_0x321a5b));}},fe=class extends _0x3e92ef{afterInit(){const _0x1d9f5a=this['editor'];if(!_0x1d9f5a['plugins']['has']('HtmlEmbed'))return;const _0x515fe2=_0x1d9f5a['plugins']['get']('TrackChangesEditing'),_0x3e3849=_0x1d9f5a['locale'];_0x515fe2['descriptionFactory']['registerElementLabel']('rawHtml',_0xe4bb3e=>Bt(_0x3e3849,'ELEMENT_HTML_EMBED',_0xe4bb3e)),_0x515fe2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x515fe2['descriptionFactory']['registerDescriptionCallback'](_0x955ac5=>{if('attribute'!=_0x955ac5['type'])return;const {data:_0xa172f7}=_0x955ac5;if(_0xa172f7&&'value'==_0xa172f7['key']&&_0x955ac5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x55633f=Bt(_0x3e3849,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x3e3849,'*Change\x20%0\x20content*',_0x55633f)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x31116c=this['editor'],_0x2e0517=_0x31116c['locale'];_0x31116c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x357cc7=>{if('formatBlock'!=_0x357cc7['type'])return;const {data:_0x10fa9b}=_0x357cc7;if(_0x10fa9b&&'htmlEmbed'==_0x10fa9b['commandName']){const _0x2606a4=Bt(_0x2e0517,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x2e0517,'*Change\x20%0\x20content*',_0x2606a4)};}});}},me=class extends _0x3e92ef{afterInit(){const _0x489a6e=this['editor'];if(!_0x489a6e['plugins']['has']('ImageEditing'))return;const _0x296066=_0x489a6e['plugins']['get']('TrackChangesEditing'),_0xb8a8a7=_0x489a6e['plugins']['get']('ImageUtils'),_0x31937b=_0x489a6e['locale'];_0x296066['enableCommand']('insertImage'),_0x296066['descriptionFactory']['registerElementLabel']('imageBlock',_0x906400=>Bt(_0x31937b,'ELEMENT_IMAGE',_0x906400)),_0x296066['descriptionFactory']['registerElementLabel']('imageInline',_0x7c20e3=>Bt(_0x31937b,'ELEMENT_INLINE_IMAGE',_0x7c20e3)),_0x296066['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x31937b,'ELEMENT_CAPTION')),_0x489a6e['plugins']['has']('ImageUploadEditing')&&_0x296066['enableCommand']('uploadImage'),_0x489a6e['plugins']['has']('ImageBlockEditing')&&_0x489a6e['plugins']['has']('ImageInlineEditing')&&(_0x296066['enableCommand']('imageTypeInline',(_0x4b0ed6,_0xb59ff0)=>{const _0x44307e=_0xb8a8a7['getClosestSelectedImageElement'](_0x489a6e['model']['document']['selection']);_0x489a6e['model']['change'](()=>{_0x296066['markBlockFormat'](_0x44307e,{'commandName':'imageTypeInline','commandParams':[_0xb59ff0]},[],'convertBlockImageToInline');});}),_0x296066['enableCommand']('imageTypeBlock',(_0x396ae9,_0x4752ce)=>{_0x489a6e['model']['change'](_0x34b650=>{let _0x444b80=_0xb8a8a7['getClosestSelectedImageElement'](_0x489a6e['model']['document']['selection']),_0x1170f6=_0x34b650['createRangeOn'](_0x444b80);const _0x5cae78=at['fromPosition'](_0x1170f6['start'],'toPrevious'),_0x2ac88e=at['fromPosition'](_0x1170f6['end'],'toNext');_0x296066['forceDefaultExecution'](()=>_0x396ae9(_0x4752ce)),_0x444b80=_0xb8a8a7['getClosestSelectedImageElement'](_0x489a6e['model']['document']['selection']),_0x1170f6=_0x34b650['createRangeOn'](_0x444b80);const _0xf18f24=_0x34b650['createRange'](_0x5cae78,_0x2ac88e);_0x5cae78['detach'](),_0x2ac88e['detach'](),_0x296066['markBlockFormat'](_0x444b80,{'commandName':'imageTypeInline','commandParams':[_0x4752ce]},[],'convertInlineImageToBlock'),_0xf18f24['start']['isBefore'](_0x1170f6['start'])&&_0x296066['markInsertion'](_0x34b650['createRange'](_0xf18f24['start'],_0x1170f6['start']),'convertInlineImageToBlock'),_0x1170f6['end']['isBefore'](_0xf18f24['end'])&&_0x296066['markInsertion'](_0x34b650['createRange'](_0x1170f6['end'],_0xf18f24['end']),'convertInlineImageToBlock');});}),_0x296066['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x296066['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x296066['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x296066['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x296066['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x296066['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3139ff])=>{const _0x99f7d5=_0x296066['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x35bbcd=_0x3139ff['start'],_0x15f8b0=_0x3139ff['end'];const _0xfac493=_0x489a6e['model']['schema']['getNearestSelectionRange'](_0x35bbcd,'backward'),_0x3033f1=_0x489a6e['model']['schema']['getNearestSelectionRange'](_0x15f8b0,'forward');_0xfac493['isCollapsed']&&(_0x35bbcd=_0xfac493['start']),_0x3033f1['isCollapsed']&&(_0x15f8b0=_0x3033f1['end']),_0x99f7d5([_0x489a6e['model']['createRange'](_0x35bbcd,_0x15f8b0)]);}),_0x296066['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9e1f0d),_0x296066['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9e1f0d)),_0x489a6e['plugins']['has']('ImageCaptionEditing')&&(_0x296066['enableCommand']('toggleImageCaption',(_0x1ed6dc,_0xebcf4e)=>{const _0x1250f8=_0x489a6e['plugins']['get']('ImageCaptionUtils');let _0x168506=_0xb8a8a7['getClosestSelectedImageElement'](_0x489a6e['model']['document']['selection']),_0xedfd17=_0x1250f8['getCaptionFromImageModelElement'](_0x168506);_0x489a6e['model']['change'](()=>{if(_0xedfd17)return void _0x296066['markDeletion'](_0x489a6e['model']['createRangeOn'](_0xedfd17));const _0x530848=_0xb8a8a7['isBlockImage'](_0x168506);_0x1ed6dc(_0xebcf4e),_0x168506=_0xb8a8a7['getClosestSelectedImageElement'](_0x489a6e['model']['document']['selection']),_0xedfd17=_0x1250f8['getCaptionFromImageModelElement'](_0x168506),_0x296066['markInsertion'](_0x489a6e['model']['createRangeOn'](_0xedfd17),_0x530848?null:'imageCaption');});}),_0x296066['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9e1f0d));const _0x76691b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x144769(_0x50d990,_0x191c36){const _0x383984=_0x76691b['findIndex'](({type:_0x2e8cb1,subType:_0x2f5a24})=>_0x50d990['type']==_0x2e8cb1&&_0x50d990['subType']==_0x2f5a24),_0x1bd80b=_0x76691b['findIndex'](({type:_0x441fd2,subType:_0x2196f2})=>_0x191c36['type']==_0x441fd2&&_0x191c36['subType']==_0x2196f2);if(_0x383984<0x0||_0x1bd80b<0x0)return!0x1;const _0x1821d5=_0x50d990['getFirstRange'](),_0x4b63b3=_0x191c36['getFirstRange']();if((0x0==_0x383984||0x1==_0x383984)&&0x2==_0x1bd80b&&_0x1821d5['isIntersecting'](_0x4b63b3))return!0x0;if(0x2==_0x383984&&0x3==_0x1bd80b){const _0x5c0fbf=_0x296066['_findSuggestions'](_0x1821d5,'insertion')['filter'](({suggestion:_0x5d3c2d,meta:_0xb8e30})=>_0xb8e30['isOwn']&&'convertInlineImageToBlock'==_0x5d3c2d['subType']);if(_0x5c0fbf['length']>0x1&&_0x4b63b3['end']['isEqual'](_0x1821d5['start']))return!0x0;if(0x1==_0x5c0fbf['length']&&(_0x1821d5['start']['isEqual'](_0x4b63b3['end'])||_0x1821d5['end']['isEqual'](_0x4b63b3['start'])))return!0x0;}if(0x3==_0x383984&&0x3==_0x1bd80b&&_0x1821d5['start']['isBefore'](_0x4b63b3['start'])){const _0x59ddb2=_0x1821d5['end']['nodeAfter'],_0x45a141=_0x4b63b3['start']['nodeBefore'];return _0xb8a8a7['isBlockImage'](_0x59ddb2)&&_0x59ddb2===_0x45a141;}return!0x1;}function _0x9e1f0d(_0x3e1245,_0x1275ca){return _0x144769(_0x3e1245,_0x1275ca)?[_0x3e1245,_0x1275ca]:_0x144769(_0x1275ca,_0x3e1245)?[_0x1275ca,_0x3e1245]:null;}_0x489a6e['plugins']['has']('ImageResize')&&(_0x296066['enableDefaultAttributesIntegration']('resizeImage'),_0x296066['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x31937b,'FORMAT_IMAGE_SIZE'))),_0x489a6e['plugins']['has']('ImageTextAlternativeEditing')&&_0x296066['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x489a6e['plugins']['has']('PictureEditing')&&_0x296066['descriptionFactory']['registerDescriptionCallback'](_0x336be9=>{if('attribute'!=_0x336be9['type'])return;const {data:_0x578306}=_0x336be9;return _0x578306&&'sources'==_0x578306['key']?{'type':'format','content':''}:void 0x0;}),_0x489a6e['plugins']['has']('ImageSizeAttributes')&&_0x296066['descriptionFactory']['registerDescriptionCallback'](_0xe64065=>{if('attribute'!=_0xe64065['type'])return;const {data:_0x495d19}=_0xe64065;return!_0x495d19||'width'!=_0x495d19['key']&&'height'!=_0x495d19['key']?void 0x0:{'type':'format','content':''};}),_0x296066['descriptionFactory']['registerDescriptionCallback'](_0x4b3509=>{if(_0x76691b['find'](({type:_0xc1e235,subType:_0x32e3b1})=>_0x4b3509['type']==_0xc1e235&&_0x4b3509['subType']==_0x32e3b1))return _0x4b3509['previous']?{}:void 0x0;}),_0x296066['descriptionFactory']['registerDescriptionCallback'](_0x4b5cd1=>{if('insertion'==_0x4b5cd1['type']||'deletion'==_0x4b5cd1['type']){const _0x123679=_0x4b5cd1['getContainedElement']();if(_0x123679&&_0x123679['is']('element','caption'))return{'type':'insertion'==_0x4b5cd1['type']?'addObject':'removeObject','element':_0x123679,'quantity':0x1};}}),_0x296066['descriptionFactory']['registerDescriptionCallback'](_0x4936c0=>'formatBlock'==_0x4936c0['type']&&'convertInlineImageToBlock'==_0x4936c0['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4936c0['type']&&'convertBlockImageToInline'==_0x4936c0['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x296066['descriptionFactory']['registerDescriptionCallback'](_0x5371ae=>{if('attribute'!=_0x5371ae['type'])return;const {data:_0xf50491}=_0x5371ae;if(!_0xf50491||'alt'!=_0xf50491['key'])return;const _0x47167f=_0xf50491['newValue'];return _0x47167f?{'type':'format','content':Bt(_0x31937b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x47167f+'\x22')}:{'type':'format','content':Bt(_0x31937b,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1cb8cf=this['editor'],_0x315a66=_0x1cb8cf['locale'];_0x1cb8cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd3afcf=>{if('formatBlock'!=_0xd3afcf['type']&&'formatInline'!=_0xd3afcf['type'])return;const {data:_0x58cc7b}=_0xd3afcf;if(_0x58cc7b){if('imageTextAlternative'==_0x58cc7b['commandName']){const _0x1b0e10=_0x58cc7b['commandParams'][0x0]['newValue'];return _0x1b0e10?{'type':'format','content':Bt(_0x315a66,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b0e10+'\x22')}:{'type':'format','content':Bt(_0x315a66,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x58cc7b['commandName']){const _0x5a7540=_0x58cc7b['commandParams'][0x0]['width'];return _0x5a7540?{'type':'format','content':Bt(_0x315a66,'*Set\x20image\x20width:*\x20%0',_0x5a7540)}:{'type':'format','content':Bt(_0x315a66,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0x3e92ef{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf4c8bd=this['editor']['locale'],_0x57b0cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x57b0cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x57b0cd['descriptionFactory']['registerDescriptionCallback'](_0x41f920=>{if('attribute'!=_0x41f920['type'])return;const {data:_0x1c543f}=_0x41f920;return _0x1c543f&&'src'==_0x1c543f['key']?_0x1c543f['newValue']&&_0x1c543f['oldValue']?{'type':'format','content':Bt(_0xf4c8bd,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x29e921=this['editor']['plugins']['get']('TrackChangesEditing');_0x29e921['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x29e921['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29e921['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x29e921['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3a979a=this['editor'],_0x205fe3=_0x3a979a['locale'];_0x3a979a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c86eb=>{if('formatBlock'!=_0x1c86eb['type']&&'formatInline'!=_0x1c86eb['type'])return;const {data:_0x3fd3d1}=_0x1c86eb;return _0x3fd3d1&&'replaceImageSource'==_0x3fd3d1['commandName']?{'type':'format','content':Bt(_0x205fe3,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0x3e92ef{afterInit(){const _0x400c8f=this['editor'];if(!_0x400c8f['plugins']['has']('ImageStyleEditing'))return;const _0x2043b7=_0x400c8f['plugins']['get']('TrackChangesEditing'),_0x4224dd=_0x400c8f['plugins']['get']('ImageUtils'),_0x1d5f14={};_0x2043b7['enableCommand']('imageStyle',(_0x4697b1,_0x3e65d1)=>{const _0x1857e7=_0x400c8f['plugins']['get']('Users')['me'],_0x819e53=_0x400c8f['commands']['get']('imageStyle');let _0x24fb7e=_0x4224dd['getClosestSelectedImageElement'](_0x400c8f['model']['document']['selection']),_0x4b724c=_0x400c8f['model']['createRangeOn'](_0x24fb7e),_0x425841=_0x819e53['value'];if(_0x425841==_0x3e65d1['value'])return;if(_0x3e65d1['value']&&_0x4224dd['isInlineImage'](_0x24fb7e)&&!_0x819e53['isStyleEnabled'](_0x3e65d1['value']))return;const _0x3a1555={'commandName':'imageStyle','commandParams':[_0x3e65d1],'formatGroupId':_0x41fde1()};_0x400c8f['model']['change'](()=>{if(_0x2043b7['getSuggestions']()['filter'](_0x24a071=>_0x24a071['isInContent']&&_0x1857e7==_0x24a071['author']&&('formatBlock'==_0x24a071['type']||'formatInline'==_0x24a071['type'])&&('imageStylePreApply'==_0x24a071['subType']||'imageStylePostApply'==_0x24a071['subType'])&&_0x24a071['getFirstRange']()['isEqual'](_0x4b724c))['forEach'](_0x4d6656=>_0x2043b7['discardSuggestion'](_0x4d6656['head'])),_0x24fb7e=_0x4224dd['getClosestSelectedImageElement'](_0x400c8f['model']['document']['selection']),_0x4b724c=_0x400c8f['model']['createRangeOn'](_0x24fb7e),_0x819e53['refresh'](),_0x400c8f['commands']['get']('imageTypeInline')['refresh'](),_0x400c8f['commands']['get']('imageTypeBlock')['refresh'](),_0x425841=_0x819e53['value'],_0x425841!=_0x3e65d1['value'])return _0x4224dd['isInlineImage'](_0x24fb7e)&&_0x819e53['shouldConvertImageType'](_0x3e65d1['value'],_0x24fb7e)?(_0x4697b1({..._0x3e65d1,'setImageSizes':!0x1}),_0x24fb7e=_0x4224dd['getClosestSelectedImageElement'](_0x400c8f['model']['document']['selection']),void _0x2043b7['markBlockFormat'](_0x24fb7e,{..._0x3a1555,'commandReversedParams':[{'value':_0x425841||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4224dd['isBlockImage'](_0x24fb7e)?_0x2043b7['markBlockFormat'](_0x24fb7e,_0x3a1555,[],'imageStylePostApply'):_0x2043b7['markInlineFormat'](_0x4b724c,_0x3a1555,'imageStylePostApply'));});});for(const _0x10f979 of _0x400c8f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1d5f14[_0x10f979['name']]=_0x10f979['title']['toLowerCase']();_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x54971e])=>{_0x4224dd['setImageNaturalSizeAttributes'](_0x54971e['getContainedElement']());}),_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x9e9b6d,_0xa13d8f)=>{_0x2043b7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x9e9b6d,{'commandName':_0xa13d8f['commandName'],'commandParams':_0xa13d8f['commandReversedParams']});}),_0x2043b7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x407386,_0x1f1b21){return _0x16fe9a(_0x407386,_0x1f1b21)?[_0x407386,_0x1f1b21]:_0x16fe9a(_0x1f1b21,_0x407386)?[_0x1f1b21,_0x407386]:null;});const _0xeb276d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16fe9a(_0xa2dac8,_0x446d93){const _0x548817=_0xeb276d['findIndex'](({type:_0x521075,subType:_0x2eea49})=>_0xa2dac8['type']==_0x521075&&_0xa2dac8['subType']==_0x2eea49),_0x126653=_0xeb276d['findIndex'](({type:_0x4f4482,subType:_0x55d671})=>_0x446d93['type']==_0x4f4482&&_0x446d93['subType']==_0x55d671);if(_0x548817<0x0||_0x126653<0x0)return!0x1;const _0x36ebde=_0xa2dac8['getFirstRange'](),_0x438e4a=_0x446d93['getFirstRange']();if((0x0==_0x548817||0x1==_0x548817)&&0x2==_0x126653&&_0x36ebde['isIntersecting'](_0x438e4a))return!0x0;if(0x2==_0x548817&&0x3==_0x126653){const _0x127b7d=_0x2043b7['_findSuggestions'](_0x36ebde,'insertion')['filter'](({suggestion:_0x515e25,meta:_0x14ebfc})=>_0x14ebfc['isOwn']&&'convertInlineImageToBlock'==_0x515e25['subType']);if(_0x127b7d['length']>0x1&&_0x438e4a['end']['isEqual'](_0x36ebde['start']))return!0x0;if(0x1==_0x127b7d['length']&&(_0x36ebde['start']['isEqual'](_0x438e4a['end'])||_0x36ebde['end']['isEqual'](_0x438e4a['start'])))return!0x0;}if(0x3==_0x548817&&0x3==_0x126653&&_0x36ebde['start']['isBefore'](_0x438e4a['start'])){const _0xec3e9f=_0x36ebde['end']['nodeAfter'],_0x1a326d=_0x438e4a['start']['nodeBefore'];return _0x4224dd['isBlockImage'](_0xec3e9f)&&_0xec3e9f===_0x1a326d;}return!0x1;}_0x400c8f['model']['document']['registerPostFixer'](()=>{let _0x243bb6=!0x1;const _0x438fbf=Array['from'](_0x400c8f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28f5d0,data:_0x2dd89b}of _0x438fbf){const {group:_0x3a7bee,type:_0x4e5f6a,subType:_0x37f477,id:_0x540d81}=it(_0x28f5d0);if('suggestion'==_0x3a7bee&&_0x2043b7['hasSuggestion'](_0x540d81)){if('formatBlock'==_0x4e5f6a&&('imageStylePreApply'==_0x37f477||'imageStylePostApply'==_0x37f477)){const _0x2a070f=_0x2043b7['getSuggestion'](_0x540d81);if(_0x2dd89b['newRange']){const _0x191e00=_0x2a070f['getFirstRange']()['getContainedElement']();if(_0x4224dd['isBlockImage'](_0x191e00))continue;_0x2043b7['discardSuggestion'](_0x2a070f),_0x243bb6=!0x0;}}if('insertion'==_0x4e5f6a&&'imageCaption'==_0x37f477&&!_0x2dd89b['newRange']){const _0x5ce5e8=_0x2043b7['getSuggestion'](_0x540d81);_0x5ce5e8['next']&&_0x5ce5e8['next']['isInContent']&&(_0x2043b7['discardSuggestion'](_0x5ce5e8['next']),_0x243bb6=!0x0);}}}return _0x243bb6;}),this['_registerLegacyDescription'](_0x1d5f14);}_registerLegacyDescription(_0x4acc90){const _0x15a7d0=this['editor'],_0x1e3ad9=_0x15a7d0['locale'];_0x15a7d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e31c8=>{if('formatBlock'!=_0x3e31c8['type']&&'formatInline'!=_0x3e31c8['type'])return;const {data:_0x303e50}=_0x3e31c8;if(!_0x303e50||'imageStyle'!=_0x303e50['commandName'])return;const _0x40b0ff=_0x303e50['commandParams'][0x0]['value'];return _0x125d3a('side'===_0x40b0ff?Bt(_0x1e3ad9,'FORMAT_SIDE_IMAGE'):_0x4acc90[_0x40b0ff]||_0x40b0ff);function _0x125d3a(_0x5529da){return{'type':'format','content':Bt(_0x1e3ad9,'*Format:*\x20%0',_0x5529da)};}});}},_e=class extends _0x3e92ef{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0xd30a1d){super(_0xd30a1d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x5748c1=this['editor'],_0x1fc788=_0x5748c1['commands']['get']('importWord'),_0x5adbe7=_0x5748c1['commands']['get']('trackChanges');_0x1fc788&&(_0x1fc788['on']('execute',(_0x1115f3,[,_0x58b674])=>{this['_trackChangesValueDuringImport']=_0x5adbe7['value'],_0x58b674['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1fc788,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1fc788,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5adbe7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5748c1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x47c461,_0x527833){const {suggestions:_0x7ecced}=_0x527833,_0x46ade3=this['editor']['commands']['get']('trackChanges'),_0x815193=_0x46ade3['value'];this['_trackChangesValueDuringImport']!==_0x815193&&(_0x46ade3['execute'](),this['_trackChangesExecuted']=!0x0),_0x7ecced&&_0x7ecced['forEach'](({id:_0x33de79,type:_0x513cf1,author:_0x571f63,created_at:_0x4c9f42})=>{const _0x184c93={'id':_0x33de79,'type':_0x513cf1,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x571f63,'createdAt':_0x4c9f42?new Date(_0x4c9f42):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x184c93);});}},pe=class extends _0x3e92ef{afterInit(){const _0x4d715b=this['editor'],_0x4a6d2d=_0x4d715b['plugins']['get']('TrackChangesEditing');if(_0x4d715b['plugins']['has']('IndentEditing')&&(_0x4a6d2d['enableCommand']('indent'),_0x4a6d2d['enableCommand']('outdent')),_0x4d715b['plugins']['has']('IndentBlock')){for(const _0x5c1257 of['indentBlock','outdentBlock'])_0x4a6d2d['enableDefaultAttributesIntegration'](_0x5c1257);if(_0x4d715b['plugins']['has']('ListEditing')){for(const _0x47d7e4 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4a6d2d['enableDefaultAttributesIntegration'](_0x47d7e4);}}const _0x2f3da0=_0x4d715b['locale'];_0x4a6d2d['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x2f3da0,'FORMAT_INDENT')),_0x4a6d2d['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x2f3da0,'FORMAT_INDENT')),_0x4a6d2d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x2f3da0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x452457=this['editor'],_0x21eb98=_0x452457['locale'],_0x3f1823=_0x452457['plugins']['get']('TrackChangesEditing');_0x3f1823['descriptionFactory']['registerDescriptionCallback'](_0x3f8f0d=>{if('formatBlock'!=_0x3f8f0d['type'])return;const {data:_0x44fa70}=_0x3f8f0d;if(!_0x44fa70)return;if('indentBlock'!=_0x44fa70['commandName']&&'outdentBlock'!=_0x44fa70['commandName'])return;const _0x844fa2=_0x3f8f0d['getItems']()[0x0],_0xbec534=_0x3f1823['descriptionFactory']['getItemLabel'](_0x844fa2);return'indentBlock'==_0x44fa70['commandName']?{'type':'format','content':Bt(_0x21eb98,'*Indent:*\x20%0',_0xbec534)}:'outdentBlock'==_0x44fa70['commandName']?{'type':'format','content':Bt(_0x21eb98,'*Outdent:*\x20%0',_0xbec534)}:void 0x0;});}},Le=class extends _0x3e92ef{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0x3e92ef{afterInit(){const _0x1c27ed=this['editor'];if(!_0x1c27ed['plugins']['has']('LinkEditing'))return;const _0x2ab6cd=_0x1c27ed['plugins']['get']('TrackChangesEditing'),_0x1a28ee=_0x1c27ed['commands']['get']('link');_0x2ab6cd['enableDefaultAttributesIntegration']('link'),_0x2ab6cd['enableDefaultAttributesIntegration']('unlink');for(const _0x56a93c of _0x1a28ee['manualDecorators'])_0x2ab6cd['descriptionFactory']['registerAttributeLabel'](_0x56a93c['id'],'link\x20('+_0x56a93c['label']['toLowerCase']()+')');_0x2ab6cd['descriptionFactory']['registerDescriptionCallback'](_0x51cfb2=>{if('attribute'!=_0x51cfb2['type'])return;const {data:_0x4bb32c}=_0x51cfb2;if(!_0x4bb32c||'linkHref'!=_0x4bb32c['key'])return;const _0x575493=_0x4bb32c['newValue'],_0x23f6ad=_0x1c27ed['locale'];return{'type':'format','content':null==_0x575493?Bt(_0x23f6ad,'*Remove\x20link*'):Bt(_0x23f6ad,'*Set\x20link:*\x20%0','\x22'+_0x575493+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x555a86=this['editor'],_0x48ebe8=_0x555a86['locale'];_0x555a86['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2da7=>{if('formatInline'!=_0x5d2da7['type'])return;const {data:_0x28b532}=_0x5d2da7;if(_0x28b532){if('link'==_0x28b532['commandName']){const _0x4133a7=_0x28b532['commandParams'][0x0];return{'type':'format','content':Bt(_0x48ebe8,'*Set\x20link:*\x20%0','\x22'+_0x4133a7+'\x22')};}return'unlink'==_0x28b532['commandName']?{'type':'format','content':Bt(_0x48ebe8,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0x3e92ef{afterInit(){const _0x125758=this['editor'],_0x166f75=_0x125758['locale'];if(!_0x125758['plugins']['has']('LegacyListEditing'))return;const _0x3e7d14=_0x125758['plugins']['get']('TrackChangesEditing'),_0x5024b2=_0x125758['plugins']['has']('LegacyTodoListEditing');function _0x55bd97(_0x54db79){return()=>{const _0x38d2d5=_0x125758['model']['document']['selection'],_0x4dd0a8=_0x125758['commands']['get'](_0x54db79);if(_0x4dd0a8['value'])return void _0x125758['execute']('paragraph',{});const _0x12447b=_0x54db79['slice'](0x0,-0x4),_0x25eb1f=function(_0x10453,_0x391ed1,_0x2bef09){let _0x440288=Array['from'](_0x10453)['filter'](_0x4981e7=>function(_0x5dd4f0,_0x66ec2c){return _0x66ec2c['checkChild'](_0x5dd4f0['parent'],'listItem')&&!_0x66ec2c['isObject'](_0x5dd4f0);}(_0x4981e7,_0x2bef09));_0x440288=_0x440288['filter'](_0x1f3421=>!_0x1f3421['is']('element','listItem')||_0x1f3421['getAttribute']('listType')!=_0x391ed1);const _0x18ae1e=new Set();for(const _0x11f85e of _0x440288)_0x11f85e['is']('element','listItem')?_0x18ae1e['add'](be(_0x11f85e)):_0x18ae1e['add'](_0x11f85e);return Array['from'](_0x18ae1e);}(_0x38d2d5['getSelectedBlocks'](),_0x12447b,_0x125758['model']['schema']);_0x125758['model']['change'](()=>{for(const _0x3423dc of _0x25eb1f)_0x3e7d14['markBlockFormat'](_0x3423dc,{'commandName':_0x54db79,'commandParams':[{'forceValue':!_0x4dd0a8['value']}],'formatGroupId':'blockName'},Ce(_0x3423dc));});};}function _0x57d160(_0x4c6331){return()=>{const _0x1a6b4d=function(_0x238a85){let _0x32e541=Array['from'](_0x238a85);const _0x146906=_0x32e541['findIndex'](_0x15cf66=>'listItem'!=_0x15cf66['name']);return _0x146906>-0x1&&(_0x32e541=_0x32e541['slice'](0x0,_0x146906)),_0x32e541;}(_0x125758['model']['document']['selection']['getSelectedBlocks']()),_0x1b57cc=_0x125758['model']['createRange'](_0x125758['model']['createPositionAt'](_0x1a6b4d[0x0],'before'),_0x125758['model']['createPositionAt'](_0x1a6b4d[_0x1a6b4d['length']-0x1],'end'));_0x125758['model']['change'](()=>{_0x3e7d14['markBlockFormat'](_0x1b57cc,{'commandName':_0x4c6331,'commandParams':[],'formatGroupId':'listIndent'},function(_0x389541){const _0x212305=new Set();for(const _0x10617b of _0x389541){let _0xd4114a=_0x10617b['nextSibling'];for(;_0xd4114a&&_0xd4114a['getAttribute']('listIndent')>_0x10617b['getAttribute']('listIndent');)_0x212305['add'](_0xd4114a),_0xd4114a=_0xd4114a['nextSibling'];}return Array['from'](_0x212305);}(_0x1a6b4d));});};}_0x3e7d14['enableCommand']('numberedList',_0x55bd97('numberedList')),_0x3e7d14['enableCommand']('bulletedList',_0x55bd97('bulletedList')),_0x5024b2&&_0x3e7d14['enableCommand']('todoList',_0x55bd97('todoList')),_0x3e7d14['enableCommand']('indentList',_0x57d160('indentList')),_0x3e7d14['enableCommand']('outdentList',_0x57d160('outdentList')),_0x5024b2&&_0x3e7d14['enableCommand']('checkTodoList',()=>{const _0x40d7bf=_0x125758['commands']['get']('checkTodoList'),_0x47a237=Array['from'](_0x40d7bf['_selectedElements']);_0x47a237['filter'](_0x4292af=>_0x4292af['getAttribute']('todoListChecked')!=_0x40d7bf['value']),_0x125758['model']['change'](()=>{for(const _0x467fee of _0x47a237)_0x3e7d14['markBlockFormat'](_0x467fee,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x40d7bf['value']}]});});}),_0x3e7d14['descriptionFactory']['registerElementLabel']('listItem',_0x1bd885=>Bt(_0x166f75,'ELEMENT_LIST_ITEM',_0x1bd885)),_0x3e7d14['descriptionFactory']['registerDescriptionCallback'](_0x11c770=>{if('formatBlock'!=_0x11c770['type']&&'formatInline'!=_0x11c770['type'])return;const {data:_0x3ad1a1}=_0x11c770;if(_0x3ad1a1){if('numberedList'==_0x3ad1a1['commandName']||'bulletedList'==_0x3ad1a1['commandName']||'todoList'==_0x3ad1a1['commandName'])switch(_0x3ad1a1['commandName']['replace']('List','')){case'bulleted':return _0x3839ea(Bt(_0x166f75,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3839ea(Bt(_0x166f75,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3839ea(Bt(_0x166f75,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3ad1a1['commandName'])return{'type':'format','content':Bt(_0x166f75,'*Indent:*\x20%0',Bt(_0x166f75,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3ad1a1['commandName'])return{'type':'format','content':Bt(_0x166f75,'*Outdent:*\x20%0',Bt(_0x166f75,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3ad1a1['commandName'])return _0x3ad1a1['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x166f75,'*Check\x20item*')}:{'type':'format','content':Bt(_0x166f75,'*Uncheck\x20item*')};}function _0x3839ea(_0x884df8){return{'type':'format','content':Bt(_0x166f75,'*Change\x20to:*\x20%0',_0x884df8)};}});}};function be(_0x4334e2){const _0x5aee54=_0x4334e2['getAttribute']('listIndent');if(0x0==_0x5aee54)return _0x4334e2;let _0x1ec828=_0x4334e2;for(;_0x4334e2['previousSibling']&&_0x4334e2['previousSibling']['is']('element','listItem');){const _0x34192f=_0x4334e2['previousSibling']['getAttribute']('listIndent');if(_0x34192f==_0x5aee54)_0x1ec828=_0x4334e2['previousSibling'];else{if(_0x34192f<_0x5aee54)break;}_0x4334e2=_0x4334e2['previousSibling'];}return _0x1ec828;}function Ce(_0x22add9){const _0x2358fa=[];if(_0x22add9['is']('element','listItem')&&_0x22add9['getAttribute']('listIndent')>0x0){let _0x8f3cc0=_0x22add9['nextSibling'];for(;_0x8f3cc0&&'listItem'==_0x8f3cc0['name']&&_0x8f3cc0['getAttribute']('listIndent')==_0x22add9['getAttribute']('listIndent');)_0x2358fa['push'](_0x8f3cc0),_0x8f3cc0=_0x8f3cc0['nextSibling'];}return _0x2358fa;}var ke=class extends _0x3e92ef{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x41bb01=this['editor']['config']['get']('list.properties'),_0x24f85e=this['editor']['plugins']['get']('TrackChangesEditing');_0x41bb01['styles']&&_0x24f85e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x41bb01['reversed']&&_0x24f85e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x41bb01['startIndex']&&_0x24f85e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x24f85e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0xb13929,_0x56415f={}){const _0x459cb2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf4a8e0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x459cb2['markMultiRangeBlockFormat'](_0xf4a8e0,{'commandName':'listStyle','commandParams':[{'type':_0x56415f['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x896030,_0x360a42={}){const _0x181740=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d634e=this['_getSuggestionBlocks'](_0x1508ef=>_0x1508ef['is']('element','listItem')&&'numbered'===_0x1508ef['getAttribute']('listType'));if(_0x2d634e['length']<0x1)return;const _0x549b3a=_0x2d634e['map'](_0x164505=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x164505,'before'),this['editor']['model']['createPositionAt'](_0x164505,0x0)));this['editor']['model']['change'](()=>{_0x181740['markMultiRangeBlockFormat'](_0x549b3a,{'commandName':'listReversed','commandParams':[{'reversed':_0x360a42['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x33713c,_0x3525a5={}){const _0x7b816f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d35a8=this['_getSuggestionBlocks'](_0x438ae7=>_0x438ae7['is']('element','listItem')&&'numbered'===_0x438ae7['getAttribute']('listType'));if(_0x4d35a8['length']<0x1)return;const _0x1294d0=_0x4d35a8['map'](_0x3f5f39=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f5f39,'before'),this['editor']['model']['createPositionAt'](_0x3f5f39,0x0)));this['editor']['model']['change'](()=>{_0x7b816f['markMultiRangeBlockFormat'](_0x1294d0,{'commandName':'listStart','commandParams':[{'startIndex':_0x3525a5['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x416476){if('formatBlock'!=_0x416476['type']&&'formatInline'!=_0x416476['type'])return;const _0x97a0c2=this['editor']['locale'],{data:_0x425478}=_0x416476;if(!_0x425478)return;let _0x1174a9,_0x2d4454;switch(_0x425478['commandName']){case'listStyle':_0x1174a9='*Change\x20to:*\x20%0',_0x2d4454={'type':'format','content':Bt(_0x97a0c2,_0x1174a9,Bt(_0x97a0c2,this['_getTranslationKeyForListStyle'](_0x425478['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1174a9=_0x425478['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d4454={'type':'format','content':Bt(_0x97a0c2,_0x1174a9)};break;case'listStart':_0x1174a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d4454={'type':'format','content':Bt(_0x97a0c2,_0x1174a9,_0x425478['commandParams'][0x0]['startIndex'])};}return _0x2d4454;}_getSuggestionBlocksForListStyle(){const _0x3c48d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x506648=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x506648[0x0]?.['is']('element','listItem')&&_0x506648['unshift'](..._0x3c48d7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x506648[_0x506648['length']-0x1]?.['is']('element','listItem')&&_0x506648['push'](..._0x3c48d7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x506648=[...new Set(_0x506648)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x506648=_0x506648['filter'](_0x3b3107=>_0x3b3107['is']('element','listItem'))),_0x506648;}_getSuggestionBlocks(_0x4be744){const _0x5e1ac9=this['editor']['plugins']['get']('LegacyListUtils');let _0x182456=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4be744)['map'](_0x1c4782=>{const _0x1e798b=this['editor']['model']['createPositionAt'](_0x1c4782,0x0);return[..._0x5e1ac9['getSiblingNodes'](_0x1e798b,'backward'),..._0x5e1ac9['getSiblingNodes'](_0x1e798b,'forward')];})['flat']();return _0x182456=[...new Set(_0x182456)],_0x182456;}_getTranslationKeyForListStyle(_0x3b1d53){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3b1d53)||'default')['toUpperCase']()+'_LIST_'+_0x3b1d53['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0x3e92ef{afterInit(){const _0x61db4e=this['editor'];if(!_0x61db4e['plugins']['has']('MediaEmbedEditing'))return;const _0x6b5dbf=_0x61db4e['plugins']['get']('TrackChangesEditing'),_0x3742c0=_0x61db4e['locale'];_0x6b5dbf['enableCommand']('mediaEmbed'),_0x6b5dbf['descriptionFactory']['registerElementLabel']('media',_0x2cd95e=>Bt(_0x3742c0,'ELEMENT_MEDIA',_0x2cd95e)),_0x61db4e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x6b5dbf['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x6b5dbf['descriptionFactory']['registerDescriptionCallback'](_0x186c35=>{if('attribute'!=_0x186c35['type'])return;const {data:_0x5e0301}=_0x186c35;if(!_0x5e0301||'resizedWidth'!=_0x5e0301['key'])return;const _0x15caea=_0x186c35['getContainedElement']();if(!_0x15caea||!_0x15caea['is']('element','media'))return;const _0x3d8309=Bt(_0x3742c0,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x3742c0,'*Set\x20format:*\x20%0',_0x3d8309)};}));}},Ne=class extends _0x3e92ef{afterInit(){const _0x439443=this['editor'];if(!_0x439443['plugins']['has']('MediaEmbedStyleEditing'))return;const _0xd6f7b5=_0x439443['plugins']['get']('TrackChangesEditing'),_0x1468ac=_0x439443['locale'],_0x3990ed=_0x439443['plugins']['get']('MediaEmbedStyleEditing'),_0x3d0b47={};for(const _0x3ae868 of _0x3990ed['normalizedStyles'])_0x3d0b47[_0x3ae868['name']]=_0x3ae868['title']['toLowerCase']();const _0x2bde37=_0x3990ed['normalizedStyles']['find'](_0x361e9f=>_0x361e9f['isDefault'])?.['name'];_0xd6f7b5['enableCommand']('mediaStyle',(_0x26e9c7,_0x23f4dd)=>{const _0x4a4f31=_0x439443['plugins']['get']('Users')['me'],_0x10ba18=_0x439443['commands']['get']('mediaStyle'),_0xd5922d=function(_0x44d4fc){const _0x294397=_0x44d4fc['model']['document']['selection']['getSelectedElement']();return _0x294397&&_0x294397['is']('element','media')?_0x294397:null;}(_0x439443);if(!_0xd5922d)return;const _0x2a83e0=_0x439443['model']['createRangeOn'](_0xd5922d);let _0x4a6a60=_0x10ba18['value'];if(_0x4a6a60==_0x23f4dd['value'])return;const _0x11c2ed={'commandName':'mediaStyle','commandParams':[_0x23f4dd],'formatGroupId':_0x41fde1()};_0x439443['model']['change'](()=>{_0xd6f7b5['getSuggestions']()['filter'](_0x3247f9=>_0x3247f9['isInContent']&&_0x4a4f31==_0x3247f9['author']&&'formatBlock'==_0x3247f9['type']&&'mediaStylePostApply'==_0x3247f9['subType']&&_0x3247f9['getFirstRange']()['isEqual'](_0x2a83e0))['forEach'](_0x2ee00a=>_0xd6f7b5['discardSuggestion'](_0x2ee00a['head'])),_0x10ba18['refresh'](),_0x4a6a60=_0x10ba18['value'],_0x4a6a60!=_0x23f4dd['value']&&_0xd6f7b5['markBlockFormat'](_0xd5922d,{..._0x11c2ed,'commandReversedParams':[{'value':'string'==typeof _0x4a6a60?_0x4a6a60:null}]},[],'mediaStylePostApply');});}),_0xd6f7b5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0xd6f7b5['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x40ba8f,_0x2c25f8)=>{_0xd6f7b5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x40ba8f,{'commandName':_0x2c25f8['commandName'],'commandParams':_0x2c25f8['commandReversedParams']});}),_0xd6f7b5['descriptionFactory']['registerDescriptionCallback'](_0x25debb=>{if('formatBlock'!=_0x25debb['type'])return;const {data:_0x39f3a5}=_0x25debb;if(!_0x39f3a5||'mediaStyle'!=_0x39f3a5['commandName'])return;const _0x1f4913=_0x39f3a5['commandParams'][0x0]['value']||_0x2bde37;if(!_0x1f4913)return;const _0x5e6311=_0x3d0b47[_0x1f4913]||_0x1f4913;return{'type':'format','content':Bt(_0x1468ac,'*Format:*\x20%0',_0x5e6311)};});}},ye=class extends _0x3e92ef{afterInit(){const _0x97d5b=this['editor'];_0x97d5b['plugins']['has']('MentionEditing')&&_0x97d5b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0x3e92ef{afterInit(){const _0x13e14a=this['editor'];if(!_0x13e14a['plugins']['has']('MergeFieldsEditing'))return;const _0xebb1f4=_0x13e14a['plugins']['get']('TrackChangesEditing'),_0x1c97e1=_0x13e14a['locale'];_0xebb1f4['enableCommand']('insertMergeField'),_0xebb1f4['enableCommand']('insertMergeFieldBlock'),_0xebb1f4['enableCommand']('insertMergeFieldImage'),_0xebb1f4['descriptionFactory']['registerElementLabel']('mergeField',_0x11bc27=>Bt(_0x1c97e1,'ELEMENT_MERGE_FIELD',_0x11bc27)),_0xebb1f4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1299f8=>Bt(_0x1c97e1,'ELEMENT_MERGE_FIELD',_0x1299f8)),_0xebb1f4['descriptionFactory']['registerDescriptionCallback'](_0x589bd0=>{if('insertion'!=_0x589bd0['type']&&'deletion'!=_0x589bd0['type'])return;const _0x5e7f79=_0x589bd0['getContainedElement']();if(null==_0x5e7f79)return;const _0x1950cb=_0x13e14a['plugins']['get']('MergeFieldsEditing');let _0x118b83;switch(_0x1950cb['getMergeFieldType'](_0x5e7f79)){case null:return;case'image':{const _0x1c7b62=_0x1950cb['unwrapAffixes'](_0x5e7f79['getAttribute']('src'));_0x118b83=_0x1950cb['getLabel'](_0x1c7b62)||_0x1c7b62;break;}default:{const _0xba5b24=_0x5e7f79['getAttribute']('id');_0x118b83=_0x1950cb['getLabel'](_0xba5b24)||_0xba5b24;break;}}return'insertion'==_0x589bd0['type']?{'type':'insertion','content':Bt(_0x1c97e1,'*Insert:*\x20%0','\x22'+_0x118b83+'\x22\x20'+Bt(_0x1c97e1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0x1c97e1,'*Remove:*\x20%0','\x22'+_0x118b83+'\x22\x20'+Bt(_0x1c97e1,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0x3e92ef{afterInit(){const _0x2b2d72=this['editor'],_0x28757f=_0x2b2d72['plugins']['get']('TrackChangesEditing');_0x2b2d72['plugins']['has']('MultiLevelList')&&(_0x28757f['enableDefaultAttributesIntegration']('multiLevelList'),_0x28757f['descriptionFactory']['registerDescriptionCallback'](_0x52f431=>this['handleDescriptions'](_0x52f431)));}handleDescriptions(_0x19e27f){const _0x2e746f=this['editor']['locale'],{data:_0x519070}=_0x19e27f,_0x4af881={'type':'format','content':''};if(_0x519070&&'listMarkerStyle'==_0x519070['key']){if(!_0x519070['oldValue'])return{'type':'format','content':Bt(_0x2e746f,'*Set\x20format:*\x20%0',Bt(_0x2e746f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x519070['newValue']+')'};if(!_0x519070['newValue']){let _0xcef439=_0x19e27f['head'];for(;_0xcef439;){if(_0xcef439['data']&&'listType'==_0xcef439['data']['key']&&_0xcef439['data']['newValue'])return _0x4af881;_0xcef439=_0xcef439['next'];}return{'type':'format','content':Bt(_0x2e746f,'*Remove\x20format:*\x20%0',Bt(_0x2e746f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x519070['oldValue']+')'};}}}},Oe=class extends _0x3e92ef{afterInit(){const _0x53eb3c=this['editor'];if(!_0x53eb3c['plugins']['has']('PageBreakEditing'))return;_0x53eb3c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xb85ac2=_0x53eb3c['plugins']['get']('TrackChangesEditing'),_0x4f8691=_0x53eb3c['locale'];_0xb85ac2['descriptionFactory']['registerElementLabel']('pageBreak',_0xf6202b=>Bt(_0x4f8691,'ELEMENT_PAGE_BREAK',_0xf6202b));}},we=class extends _0x3e92ef{afterInit(){const _0x252208=this['editor'];if(!_0x252208['plugins']['has']('Paragraph'))return;const _0x247569=_0x252208['locale'],_0x44f0b2=_0x252208['plugins']['get']('TrackChangesEditing');_0x44f0b2['descriptionFactory']['registerElementLabel']('paragraph',_0x57307a=>Bt(_0x247569,'ELEMENT_PARAGRAPH',_0x57307a)),_0x44f0b2['enableDefaultAttributesIntegration']('paragraph'),_0x44f0b2['enableCommand']('insertParagraph');const _0x516047=_0x44f0b2['descriptionFactory'];_0x516047['registerDescriptionCallback'](_0x28c19a=>{if('insertion'!==_0x28c19a['type'])return;const {start:_0x21e8c1,end:_0x1a96a7}=_0x28c19a['getFirstRange']();if(!_0x21e8c1['isTouching'](_0x1a96a7)||!_0x21e8c1['nodeAfter'])return;const _0x4f32d6=_0x252208['model']['schema'],_0x20fb00=_0x21e8c1['nodeAfter'];return _0x4f32d6['isBlock'](_0x20fb00)&&!_0x4f32d6['isLimit'](_0x20fb00)&&_0x4f32d6['checkChild'](_0x20fb00,'$text')?{'type':'insertion','content':Bt(_0x247569,'*Insert:*\x20%0',_0x516047['getItemLabel'](_0x20fb00,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4c42d2=this['editor'],_0x3bb975=_0x4c42d2['locale'];_0x4c42d2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56f2f5=>{if('formatBlock'!=_0x56f2f5['type'])return;const {data:_0x76819f}=_0x56f2f5;return _0x76819f&&'paragraph'==_0x76819f['commandName']?{'type':'format','content':Bt(_0x3bb975,'*Change\x20to:*\x20%0',Bt(_0x3bb975,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0x3e92ef{afterInit(){const _0x58bffc=this['editor'];_0x58bffc['commands']['get']('replaceSource')&&_0x58bffc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0x3e92ef{afterInit(){const _0xcbdc7e=this['editor'];_0xcbdc7e['plugins']['has']('RemoveFormatEditing')&&(_0xcbdc7e['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2a1808=this['editor'];_0x2a1808['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1b67cf=>{if('formatBlock'!=_0x1b67cf['type']&&'formatInline'!=_0x1b67cf['type'])return;const {data:_0x141d72}=_0x1b67cf;return _0x141d72&&'removeFormat'==_0x141d72['commandName']?{'type':'format','content':Bt(_0x2a1808['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0x3e92ef{afterInit(){const _0x56414f=this['editor'];if(!_0x56414f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5852b0=_0x56414f['plugins']['get']('TrackChangesEditing');_0x5852b0['enableCommand']('goToPreviousRestrictedEditingException'),_0x5852b0['enableCommand']('goToNextRestrictedEditingException');const _0x3c93f5=_0x56414f['plugins']['get']('RestrictedEditingModeEditing');_0x3c93f5['enableCommand']('trackChanges'),_0x3c93f5['enableCommand']('acceptSuggestion'),_0x3c93f5['enableCommand']('discardSuggestion'),_0x3c93f5['enableCommand']('acceptAllSuggestions'),_0x3c93f5['enableCommand']('discardAllSuggestions'),_0x3c93f5['enableCommand']('acceptSelectedSuggestions'),_0x3c93f5['enableCommand']('discardSelectedSuggestions');}},De=class extends _0x3e92ef{afterInit(){const _0x3f9a97=this['editor'];if(!_0x3f9a97['plugins']['has']('ShiftEnter'))return;const _0x21d49f=_0x3f9a97['plugins']['get']('TrackChangesEditing');_0x21d49f['enableCommand']('shiftEnter'),_0x21d49f['descriptionFactory']['registerElementLabel']('softBreak',_0x4a53a5=>Bt(_0x3f9a97['locale'],'ELEMENT_LINE_BREAK',_0x4a53a5));}};function Ue(_0x94688e,_0x2e0e0f,_0xdf27b3){const _0x208de4=[];for(const _0x1696d0 of _0x2e0e0f['getItems']())_0x1696d0['hasAttribute'](_0x94688e)&&_0x208de4['push'](_0xdf27b3['createRangeOn'](_0x1696d0));return _0x208de4;}var Pe=class extends _0x3e92ef{afterInit(){const _0x12c904=this['editor'],_0x5d8dba=_0x12c904['plugins']['get']('TrackChangesEditing');_0x12c904['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5d8dba['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x18153d=this['editor'],_0x506a1c=_0x18153d['model'],_0x5146c6=_0x18153d['locale'],_0x38b8b2=_0x18153d['plugins']['get']('TrackChangesEditing'),_0x175d1e='restrictedEditingException',_0xe12c37=_0x18153d['commands']['get'](_0x175d1e);_0x38b8b2['enableCommand'](_0x175d1e,(_0x587fc6,_0x53e463={})=>{const _0x562700=_0x506a1c['document']['selection'];if(_0x562700['isCollapsed'])return void _0x587fc6(_0x53e463);const _0x3f6ed3=void 0x0!==_0x53e463['forceValue']?_0x53e463['forceValue']:!_0xe12c37['value'];_0x506a1c['change'](()=>{const _0x2fd29f=Array['from'](_0x562700['getRanges']());for(const _0x4c9205 of _0x2fd29f){const _0x81b06a=_0x3f6ed3?[_0x4c9205]:Ue(_0x175d1e,_0x4c9205,_0x506a1c);for(const _0x18ee3d of _0x81b06a)_0x38b8b2['markInlineFormat'](_0x18ee3d,{'commandName':_0x175d1e,'commandParams':[{'forceValue':_0x3f6ed3}]});}});}),_0x38b8b2['descriptionFactory']['registerDescriptionCallback'](_0x3f493b=>{if('formatBlock'!=_0x3f493b['type']&&'formatInline'!=_0x3f493b['type'])return;const {data:_0x2179ee}=_0x3f493b;return _0x2179ee&&_0x2179ee['commandName']==_0x175d1e?_0x2179ee['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x5146c6,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x5146c6,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0xd426af=this['editor'],_0x2a1af4=_0xd426af['locale'],_0x5b300b=_0xd426af['plugins']['get']('TrackChangesEditing'),_0x51948d='restrictedEditingExceptionBlock',_0x203ab8=this['editor']['commands']['get'](_0x51948d);_0x5b300b['enableCommand'](_0x51948d,(_0xfcf619,_0x5df3f3={})=>{const _0x1c939f=this['editor']['model']['document']['selection'],_0x4bca0a=_0x5df3f3&&void 0x0!==_0x5df3f3['forceValue']?_0x5df3f3['forceValue']:!_0x203ab8['value'];let _0x2c9d25=[];if(_0x4bca0a){const _0x1faf45=Array['from'](_0x1c939f['getSelectedBlocks']())['filter'](_0x3ddebe=>function(_0x290db0){return!!_0x290db0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3ddebe)||function(_0x22528c,_0x15eabb){const _0x1aa392=_0x15eabb['createContext'](_0x22528c['parent']);return!!_0x15eabb['checkChild'](_0x1aa392,'restrictedEditingException')&&!!_0x15eabb['checkChild'](_0x1aa392['push']('restrictedEditingException'),_0x22528c);}(_0x3ddebe,this['editor']['model']['schema']));_0x2c9d25=Rt(_0x1faf45,_0xd426af['model']);}else{const _0x2404be=Array['from'](_0x1c939f['getSelectedBlocks']())['map'](_0x1f532c=>function(_0x487b8b){let _0x53a723=_0x487b8b;for(;_0x53a723['parent'];){if('restrictedEditingException'==_0x53a723['parent']['name'])return _0x53a723;_0x53a723=_0x53a723['parent'];}return null;}(_0x1f532c))['filter'](_0x261497=>!!_0x261497);_0x2c9d25=Rt(_0x2404be,_0xd426af['model']);}_0xd426af['model']['change'](()=>{for(const _0x4bca69 of _0x2c9d25)_0x5b300b['markBlockFormat'](_0x4bca69,{'commandName':_0x51948d,'commandParams':[{'forceValue':_0x4bca0a}]});});}),_0x5b300b['descriptionFactory']['registerDescriptionCallback'](_0x674ea0=>{const {data:_0x5b215b}=_0x674ea0;if(_0x5b215b&&_0x5b215b['commandName']==_0x51948d)return _0x5b215b['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x2a1af4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x2a1af4,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0x3e92ef{afterInit(){const _0x37d37c=this['editor'];_0x37d37c['plugins']['has']('Style')&&_0x37d37c['plugins']['has']('DataSchema')&&(_0x37d37c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x1aa764=this['editor'],_0xd9d610=_0x1aa764['locale'];_0x1aa764['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13abc6=>{if('formatBlock'!=_0x13abc6['type']&&'formatInline'!=_0x13abc6['type'])return;const {data:_0x5b9a97}=_0x13abc6;return _0x5b9a97&&'style'===_0x5b9a97['commandName']?_0x5b9a97['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0xd9d610,'*Set\x20format:*\x20%0',_0x5b9a97['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0xd9d610,'*Remove\x20format:*\x20%0',_0x5b9a97['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0x3e92ef{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x1469dc){super(_0x1469dc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x2f1d9d=this['editor'],_0x4ae3ef=_0x2f1d9d['model']['document']['selection'];if(!_0x2f1d9d['plugins']['has']('TableEditing'))return;const _0x20849b=_0x2f1d9d['locale'],_0x447848=_0x2f1d9d['plugins']['get']('TrackChangesEditing'),_0x588075=_0x2f1d9d['plugins']['get']('TableUtils');_0x447848['descriptionFactory']['registerElementLabel']('table',_0x3b067e=>Bt(_0x20849b,'ELEMENT_TABLE',_0x3b067e)),this['_setupColumnsRowsFixing'](),_0x447848['enableCommand']('insertTable'),_0x447848['enableCommand']('selectTableRow'),_0x447848['enableCommand']('selectTableColumn');for(const _0x5384c7 of['insertTableRowAbove','insertTableRowBelow']){const _0x13c4bb=_0x2f1d9d['commands']['get'](_0x5384c7);_0x447848['enableCommand'](_0x5384c7,_0x158745=>{_0x2f1d9d['model']['change'](_0x1decac=>{_0x158745();const _0x43b71c='above'===_0x13c4bb['order'],_0x312968=_0x588075['getSelectionAffectedTableCells'](_0x4ae3ef),_0x2be5f5=_0x588075['getRowIndexes'](_0x312968),_0x117bb1=_0x43b71c?_0x2be5f5['first']-0x1:_0x2be5f5['last']+0x1,_0x3c141d=_0x312968[0x0]['findAncestor']('table'),_0x3b6419=_0x588075['createTableWalker'](_0x3c141d,{'startRow':_0x117bb1,'endRow':_0x117bb1}),_0x3c86c3=Array['from'](_0x3b6419)['map'](_0x5c2852=>_0x1decac['createRangeOn'](_0x5c2852['cell']));_0x447848['markMultiRangeInsertion'](_0x3c86c3,'tableRow');});});}for(const _0x185512 of['insertTableColumnLeft','insertTableColumnRight']){const _0x2d57f8=_0x2f1d9d['commands']['get'](_0x185512);_0x447848['enableCommand'](_0x185512,_0x438827=>{_0x2f1d9d['model']['change'](_0x2f5df8=>{_0x438827();const _0x2c4159='left'===_0x2d57f8['order'],_0x469724=_0x588075['getSelectionAffectedTableCells'](_0x4ae3ef),_0x5156a6=_0x588075['getColumnIndexes'](_0x469724),_0x3c8c65=_0x2c4159?_0x5156a6['first']-0x1:_0x5156a6['last']+0x1,_0x47e6ea=_0x469724[0x0]['findAncestor']('table'),_0x1c1356=_0x588075['createTableWalker'](_0x47e6ea,{'startRow':0x0,'column':_0x3c8c65,'includeAllSlots':!0x1}),_0x39ff66=Array['from'](_0x1c1356)['map'](_0x469a05=>_0x2f5df8['createRangeOn'](_0x469a05['cell']));_0x447848['markMultiRangeInsertion'](_0x39ff66,'tableColumn');});});}for(const _0xa60a2d of['removeTableRow','removeTableColumn']){const _0x24f496=_0xa60a2d['substr'](0xb),_0x15bce0=_0x24f496['toLowerCase'](),_0x5666e7=_0x15bce0['substr'](0x0,0x3)+'span',_0x568c36='table'+_0x24f496,_0x320613='min'+_0x24f496,_0x577bae='max'+_0x24f496;_0x447848['enableCommand'](_0xa60a2d,()=>{_0x2f1d9d['model']['change'](_0x3aa3d5=>{const _0x234575=_0x588075['getSelectionAffectedTableCells'](_0x4ae3ef),_0x3e1112=_0x234575[0x0]['findAncestor']('table');let _0x490104;if('removeTableRow'==_0xa60a2d){const _0x3c897c=_0x588075['getRowIndexes'](_0x234575);_0x490104={'startRow':_0x3c897c['first'],'endRow':_0x3c897c['last'],'includeAllSlots':!0x0};}else{const _0x3c8f26=_0x588075['getColumnIndexes'](_0x234575);_0x490104={'startColumn':_0x3c8f26['first'],'endColumn':_0x3c8f26['last'],'includeAllSlots':!0x0};}const _0x4acea7=_0x588075['createTableWalker'](_0x3e1112,_0x490104),_0x499e86=Array['from'](_0x4acea7)['map'](({cell:_0x225263})=>_0x225263),_0x2cfc7b=He(_0x499e86['filter'](_0x14b14b=>_0x14b14b['hasAttribute'](_0x5666e7))),_0x50d1d4=He(_0x499e86['filter'](_0x376087=>!_0x376087['hasAttribute'](_0x5666e7)))['map'](_0x5b61a4=>_0x3aa3d5['createRangeOn'](_0x5b61a4)),_0x30eb6f=_0x447848['markMultiRangeDeletion'](_0x50d1d4,_0x568c36);if(_0x30eb6f&&('tableRow'==_0x30eb6f['subType']||'tableColumn'==_0x30eb6f['subType'])){const _0x411653=this['_getSuggestionCoords'](_0x30eb6f);for(const _0x5dfeb6 of _0x2cfc7b){const _0xda3614=_0x3aa3d5['createRangeOn'](_0x5dfeb6),_0x3c7af6=_0x588075['getCellLocation'](_0x5dfeb6),_0xe91ccf=_0x5dfeb6['getAttribute'](_0x5666e7)-0x1,_0x1f8603=_0x411653[_0x320613],_0x5bdfa1=_0x411653[_0x577bae];_0x1f8603<=_0x3c7af6[_0x15bce0]&&_0x3c7af6[_0x15bce0]+_0xe91ccf<=_0x5bdfa1&&_0x30eb6f['addRange'](_0xda3614);}}});});}function _0x147be2(_0x549eab){const _0x5ddb8d=Array['from'](_0x4ae3ef['getRanges']())['map'](_0x707dd6=>ct['fromRange'](_0x707dd6));_0x2f1d9d['model']['change'](_0xe1ee5a=>{const _0x262ada=_0xe1ee5a['batch'];_0x549eab=_0x549eab['filter'](_0x1606a4=>'$graveyard'!=_0x1606a4['root']['rootName']),_0xe1ee5a['setSelection'](_0x549eab),_0x2f1d9d['commands']['get']('removeTableRow')['refresh'](),_0x2f1d9d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2f1d9d['model']['enqueueChange'](()=>{_0x2f1d9d['model']['enqueueChange'](_0x262ada,_0x2ccee8=>{const _0x1be2bc=_0x5ddb8d['filter'](_0x11bbfa=>'$graveyard'!=_0x11bbfa['root']['rootName']);_0x1be2bc['length']>0x0&&_0x2ccee8['setSelection'](_0x1be2bc);for(const _0x45d7b9 of _0x5ddb8d)_0x45d7b9['detach']();});});});}function _0x42c9f4(_0x3a016a){_0x2f1d9d['model']['change'](_0xd51b40=>{const _0xf79a17=Array['from'](_0x4ae3ef['getRanges']())['map'](_0x1c89fe=>ct['fromRange'](_0x1c89fe)),_0xa35624=[];for(const _0x48f529 of _0x3a016a)for(const _0x2ac748 of _0x48f529['getItems']({'shallow':!0x0}))_0xa35624['push'](_0x2ac748);for(const _0x22904b of _0xa35624)'$graveyard'!=_0x22904b['root']['rootName']&&(_0xd51b40['setSelection'](_0xd51b40['createPositionAt'](_0x22904b,0x0)),_0x2f1d9d['commands']['get']('removeTableColumn')['refresh'](),_0x2f1d9d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1aa616=_0xf79a17['filter'](_0x34d4b6=>'$graveyard'!=_0x34d4b6['root']['rootName']);_0x1aa616['length']>0x0&&_0xd51b40['setSelection'](_0x1aa616);for(const _0x13e95a of _0xf79a17)_0x13e95a['detach']();});}function _0x19103e(_0x13367d,_0x44982e){return _0x44982e['every'](_0x33bee9=>_0x13367d['some'](_0x53bb7b=>_0x53bb7b['end']['isEqual'](_0x33bee9['start'])||_0x33bee9['end']['isEqual'](_0x53bb7b['start'])));}function _0x6e8a47(_0x431eb6,_0x49c6ce){return!_0x431eb6['some'](_0x2d6ded=>_0x49c6ce['some'](_0x4f557e=>_0x2d6ded['isIntersecting'](_0x4f557e)))&&_0x431eb6['some'](_0x27b4ed=>_0x49c6ce['some'](_0x9b07d1=>_0x27b4ed['end']['isTouching'](_0x9b07d1['start'])));}_0x447848['descriptionFactory']['registerDescriptionCallback'](_0x3aae8c=>{if('insertion'!=_0x3aae8c['type']&&'deletion'!=_0x3aae8c['type'])return;const _0xf44ee4=_0x3aae8c['getContainedElement']();if(null!=_0xf44ee4&&_0xf44ee4['is']('element','table')){if('insertion'==_0x3aae8c['type']){const _0x8093a0=_0x3aae8c['getItems']()['filter'](_0x58d1a4=>_0x58d1a4['is']('$textProxy'))['map'](_0x1c1942=>_0x1c1942['data']);if(_0x8093a0['length'])return{'type':'insertion','content':Bt(_0x20849b,'*Insert:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8093a0['join']('\x20')+'\x22'))};}if('deletion'==_0x3aae8c['type']){const _0x1bad9c=_0x3aae8c['getItems']()['filter'](_0x2c22b9=>_0x2c22b9['is']('$textProxy'))['map'](_0x1a3f46=>_0x1a3f46['data']);if(_0x1bad9c['length'])return{'type':'deletion','content':Bt(_0x20849b,'*Remove:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1bad9c['join']('\x20')+'\x22'))};}}}),_0x447848['descriptionFactory']['registerDescriptionCallback'](_0xc6d38c=>{if('tableRow'==_0xc6d38c['subType']){const _0x44e031=_0xc6d38c['getItems']()['filter'](_0x5ca448=>_0x5ca448['is']('$textProxy'))['map'](_0x508006=>_0x508006['data']),_0x3f497f=this['_getSuggestionCoords'](_0xc6d38c),_0x3f2084=_0x3f497f['maxRow']-_0x3f497f['minRow']+0x1;if('insertion'==_0xc6d38c['type'])return _0x44e031['length']?{'type':'insertion','content':Bt(_0x20849b,'*Insert:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f2084,'\x22'+_0x44e031['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x20849b,'*Insert:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_ROW',_0x3f2084))};if('deletion'==_0xc6d38c['type'])return _0x44e031['length']?{'type':'deletion','content':Bt(_0x20849b,'*Remove:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3f2084,'\x22'+_0x44e031['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x20849b,'*Remove:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_ROW',_0x3f2084))};}if('tableColumn'==_0xc6d38c['subType']){const _0x1aef56=_0xc6d38c['getItems']()['filter'](_0x3fe5a5=>_0x3fe5a5['is']('$textProxy'))['map'](_0x4aa811=>_0x4aa811['data']),_0x54ae49=this['_getSuggestionCoords'](_0xc6d38c),_0x20d63b=_0x54ae49['maxColumn']-_0x54ae49['minColumn']+0x1;if('insertion'==_0xc6d38c['type'])return _0x1aef56['length']?{'type':'insertion','content':Bt(_0x20849b,'*Insert:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d63b,'\x22'+_0x1aef56['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x20849b,'*Insert:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_COLUMN',_0x20d63b))};if('deletion'==_0xc6d38c['type'])return _0x1aef56['length']?{'type':'deletion','content':Bt(_0x20849b,'*Remove:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x20d63b,'\x22'+_0x1aef56['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x20849b,'*Remove:*\x20%0',Bt(_0x20849b,'ELEMENT_TABLE_COLUMN',_0x20d63b))};}}),_0x447848['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x147be2),_0x447848['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x147be2),_0x447848['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42c9f4),_0x447848['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42c9f4),_0x447848['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x19103e),_0x447848['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x19103e),_0x447848['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x6e8a47),_0x447848['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x6e8a47);}_acceptFormatSuggestionCallbackFactory(){const _0xea0aca=this['editor'],_0x162504=_0xea0aca['model']['document']['selection'];return(_0x57973d,_0x284070)=>{_0xea0aca['model']['change'](_0x476feb=>{const {commandName:_0x452a39,commandParams:_0x203943}=_0x284070;let _0x132dbc=_0x57973d[0x0]['end']['nodeBefore'];_0x203943&&_0x203943[0x0]&&!0x1===_0x203943[0x0]['forceValue']&&(_0x132dbc=_0x57973d[0x0]['start']['nodeAfter']);const _0x1d0371=_0x476feb['createRangeIn'](_0x132dbc);if('$graveyard'==_0x1d0371['root']['rootName'])return;const _0x59df1b=Array['from'](_0x162504['getRanges']())['map'](_0x5a3784=>ct['fromRange'](_0x5a3784));_0x476feb['setSelection'](_0x1d0371),_0xea0aca['commands']['get'](_0x452a39)['refresh'](),_0x203943['push']({'forceDefaultExecution':!0x0}),_0xea0aca['execute'](_0x452a39,..._0x203943);const _0xa5089d=_0x59df1b['filter'](_0xa9d0e3=>'$graveyard'!=_0xa9d0e3['root']['rootName']);_0xa5089d['length']>0x0&&_0x476feb['setSelection'](_0xa5089d);for(const _0x75b98b of _0x59df1b)_0x75b98b['detach']();});};}_getCoordsForCells(_0x484984){const _0x30de29=this['editor']['plugins']['get']('TableUtils');let _0x282170=Number['MAX_SAFE_INTEGER'],_0x32b3e3=Number['MIN_SAFE_INTEGER'],_0x5ca8f8=Number['MAX_SAFE_INTEGER'],_0x88e708=Number['MIN_SAFE_INTEGER'];for(const _0x495354 of _0x484984){if('$graveyard'==_0x495354['root']['rootName'])continue;const {row:_0x24c408,column:_0x45aca5}=_0x30de29['getCellLocation'](_0x495354),_0x2c7f74=_0x495354['hasAttribute']('rowspan')?_0x495354['getAttribute']('rowspan')-0x1:0x0,_0x323dc1=_0x495354['hasAttribute']('colspan')?_0x495354['getAttribute']('colspan')-0x1:0x0;_0x282170=_0x24c408<_0x282170?_0x24c408:_0x282170,_0x32b3e3=_0x24c408+_0x2c7f74>_0x32b3e3?_0x24c408+_0x2c7f74:_0x32b3e3,_0x5ca8f8=_0x45aca5<_0x5ca8f8?_0x45aca5:_0x5ca8f8,_0x88e708=_0x45aca5+_0x323dc1>_0x88e708?_0x45aca5+_0x323dc1:_0x88e708;}return{'minRow':_0x282170,'maxRow':_0x32b3e3,'minColumn':_0x5ca8f8,'maxColumn':_0x88e708};}_setupColumnsRowsFixing(){const _0x219760=this['editor'],_0xc4c55e=_0x219760['plugins']['get']('TrackChangesEditing'),_0x35b945=_0x219760['plugins']['get']('TableUtils');_0x219760['model']['document']['on']('change:data',()=>{const _0x129d47=Array['from'](_0x219760['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x15d24e,data:_0x5f57c7}of _0x129d47){const {group:_0x107edc,id:_0x52ad1c,subType:_0x54b547}=it(_0x15d24e);if('suggestion'!=_0x107edc)continue;if(null!=_0x5f57c7['oldRange'])continue;const _0x3f9710=_0xc4c55e['getSuggestion'](_0x52ad1c);this['_tablePostFixingSubtypes']['includes'](_0x54b547)&&this['_tableSuggestions']['add'](_0x3f9710);}},{'priority':'low'});const _0x1bad23=(_0x3b994c,_0x53b5ad)=>{let _0x2b107a=!0x1;const _0x4d1c6f=_0x53b5ad['createRangeOn'](_0x3b994c),_0x22be0e=_0x3b994c['findAncestor']('table'),_0x5a22e2=_0x35b945['getCellLocation'](_0x3b994c);for(const _0x30cc6d of this['_tableSuggestions']){const _0x2b88e7=_0x30cc6d['subType'],_0x47f27a=_0x2b88e7['startsWith']('tablePaste'),_0x41f09e=_0x2b88e7['substr'](_0x47f27a?0xa:0x5),_0x1e8589=_0x41f09e['toLowerCase'](),_0x1289dd=_0x1e8589['substr'](0x0,0x3)+'span',_0x3afec4='min'+_0x41f09e,_0x52d9fc='max'+_0x41f09e;if(!_0x30cc6d['isInContent'])continue;if(_0x22be0e!=_0x30cc6d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x30cc6d['isIntersectingWithRange'](_0x4d1c6f))continue;const _0x69b30e=_0x3b994c['hasAttribute'](_0x1289dd)?_0x3b994c['getAttribute'](_0x1289dd)-0x1:0x0,_0x210d16=this['_getSuggestionCoords'](_0x30cc6d),_0x238f16=_0x210d16[_0x3afec4],_0x4b2308=_0x210d16[_0x52d9fc];_0x238f16<=_0x5a22e2[_0x1e8589]&&_0x5a22e2[_0x1e8589]+_0x69b30e<=_0x4b2308&&(_0x30cc6d['addRange'](_0x4d1c6f),_0x2b107a=!0x0);}return _0x2b107a;};_0x219760['model']['document']['registerPostFixer'](_0x49891b=>{let _0x13b150=!0x1;for(const _0x341194 of _0x219760['model']['document']['differ']['getChanges']())if('insert'==_0x341194['type']){if('tableRow'==_0x341194['name']){for(const _0x4365f1 of _0x341194['position']['nodeAfter']['getChildren']())_0x13b150=_0x13b150||_0x1bad23(_0x4365f1,_0x49891b);}else'tableCell'==_0x341194['name']&&(_0x13b150=_0x13b150||_0x1bad23(_0x341194['position']['nodeAfter'],_0x49891b));}return _0x13b150;});}_getSuggestionCoords(_0x336c3d){return this['_getCoordsForCells'](_0x336c3d['getRanges']()['map'](_0x15ebdc=>_0x15ebdc['start']['nodeAfter']));}};function He(_0x141d4a){return Array['from'](new Set(_0x141d4a)['values']());}var $e=class extends _0x3e92ef{static get requires(){return[Ge];}afterInit(){const _0x44bd42=this['editor'],_0x4cbf65=_0x44bd42['model']['document']['selection'],_0x3ce956=_0x44bd42['locale'];if(!_0x44bd42['plugins']['has']('TableEditing'))return;const _0x3bb746=_0x44bd42['plugins']['get']('TrackChangesEditing'),_0x38bc26=_0x44bd42['plugins']['get']('TableUtils'),_0x7005b=_0x44bd42['plugins']['get'](Ge);_0x7005b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3bb746['enableCommand']('mergeTableCells',()=>{const _0x16c222=_0x38bc26['getSelectionAffectedTableCells'](_0x44bd42['model']['document']['selection']);_0x44bd42['model']['change'](()=>{_0x3bb746['markMultiRangeBlockFormat'](_0x16c222,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x44bd42['commands']['get']('mergeTableCells')['on']('execute',(_0x415330,_0x2325f1)=>{_0x44bd42['commands']['get']('trackChanges')['value']&&(_0x2325f1['length']>0x0&&_0x2325f1[_0x2325f1['length']-0x1]&&_0x2325f1[_0x2325f1['length']-0x1]['forceDefaultExecution']||_0x3bb746['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x415330['stop']());},{'priority':'highest'});for(const _0x552c4f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5170e4=_0x44bd42['commands']['get'](_0x552c4f);_0x3bb746['enableCommand'](_0x552c4f,()=>{const _0x5433f3=_0x44bd42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2a19a8=>_0x2a19a8['is']('element','tableCell')),_0x113b94=_0x5170e4['value'];_0x44bd42['model']['change'](()=>{_0x3bb746['markMultiRangeBlockFormat']([_0x5433f3,_0x113b94],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x23d108 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x7bc1e8=_0x44bd42['commands']['get'](_0x23d108);_0x3bb746['enableCommand'](_0x23d108,()=>{const _0x281510=_0x38bc26['getSelectionAffectedTableCells'](_0x44bd42['model']['document']['selection']),_0x473c46=_0x281510[0x0]['findAncestor']('table'),_0x3e4889=new Set();for(const _0x4a74a3 of _0x281510){const {column:_0x263f05,row:_0xb5f6cc}=_0x38bc26['getCellLocation'](_0x4a74a3),_0x1bebe9='horizontally'==_0x7bc1e8['direction']?_0x38bc26['createTableWalker'](_0x473c46,{'startRow':_0xb5f6cc,'endRow':_0xb5f6cc,'includeAllSlots':!0x0}):_0x38bc26['createTableWalker'](_0x473c46,{'column':_0x263f05,'includeAllSlots':!0x0});for(const {cell:_0x255fba}of _0x1bebe9)_0x3e4889['add'](_0x255fba);}_0x44bd42['model']['change'](()=>{_0x3bb746['markMultiRangeBlockFormat'](_0x281510,{'commandName':_0x23d108,'commandParams':[]},Array['from'](_0x3e4889),_0x23d108);});});}_0x3bb746['descriptionFactory']['registerDescriptionCallback'](_0x1d5430=>{if('formatBlock'!=_0x1d5430['type']&&'formatInline'!=_0x1d5430['type'])return;const {data:_0x195dc8}=_0x1d5430;return _0x195dc8&&'mergeTableCells'==_0x195dc8['commandName']?{'type':'format','content':Bt(_0x3ce956,'*Merge\x20cells*')}:void 0x0;}),_0x3bb746['descriptionFactory']['registerDescriptionCallback'](_0x1ae759=>{if('formatBlock'!=_0x1ae759['type']&&'formatInline'!=_0x1ae759['type'])return;const {data:_0x1d950f}=_0x1ae759;return _0x1d950f?'splitTableCellVertically'==_0x1d950f['commandName']?{'type':'format','content':Bt(_0x3ce956,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d950f['commandName']?{'type':'format','content':Bt(_0x3ce956,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3dbfaa=_0x7005b['_acceptFormatSuggestionCallbackFactory']();for(const _0x381637 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3bb746['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x381637,'accept',_0x3dbfaa);for(const _0x6b548e of['splitTableCellVertically','splitTableCellHorizontally'])_0x3bb746['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6b548e,'accept',_0x5cde71=>{_0x44bd42['model']['change'](_0x11c050=>{const _0x55991a=Array['from'](_0x5cde71)['filter'](_0x4cfe14=>'$graveyard'!=_0x4cfe14['root']['rootName']&&!!_0x4cfe14['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x55991a['length'])return;const _0x3cbf2f=Array['from'](_0x4cbf65['getRanges']())['map'](_0x46910e=>ct['fromRange'](_0x46910e));_0x11c050['setSelection'](_0x55991a),_0x44bd42['commands']['get'](_0x6b548e)['refresh'](),_0x44bd42['execute'](_0x6b548e,{'forceDefaultExecution':!0x0});const _0x6bd1ef=_0x3cbf2f['filter'](_0x2daa29=>'$graveyard'!=_0x2daa29['root']['rootName']);_0x6bd1ef['length']>0x0&&_0x11c050['setSelection'](_0x6bd1ef);for(const _0x255df5 of _0x3cbf2f)_0x255df5['detach']();});});_0x3bb746['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2b4f9c=>{_0x44bd42['model']['change'](_0x168dff=>{const _0x3ad734=Array['from'](_0x4cbf65['getRanges']())['map'](_0x355823=>ct['fromRange'](_0x355823));_0x168dff['setSelection'](_0x2b4f9c),_0x44bd42['commands']['get']('mergeTableCells')['refresh'](),_0x44bd42['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x62363f=_0x3ad734['filter'](_0x3e2e71=>'$graveyard'!=_0x3e2e71['root']['rootName']);_0x62363f['length']>0x0&&_0x168dff['setSelection'](_0x62363f);for(const _0x592e8d of _0x3ad734)_0x592e8d['detach']();});});for(const _0x334556 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2f7e8a=_0x44bd42['commands']['get'](_0x334556);_0x2f7e8a['on']('set:isEnabled',(_0x492f76,_0x17d0b2,_0x18b704)=>{if(_0x18b704){const _0x194f3f=_0x44bd42['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x52a05d=>_0x52a05d['is']('element','tableCell'));this['_areMergableCells'](_0x2f7e8a['value'],_0x194f3f)||(_0x492f76['return']=!0x1,_0x492f76['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x5000b1=this['editor']['commands']['get']('mergeTableCells'),_0x751259=this['editor']['plugins']['get']('TableUtils');if(!_0x5000b1['isEnabled'])return!0x1;const _0x1ebc6e=_0x751259['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2bc600 of _0x1ebc6e)for(const _0x433857 of _0x1ebc6e)if(_0x2bc600!=_0x433857&&!this['_areMergableCells'](_0x2bc600,_0x433857))return!0x1;return!0x0;}['_areMergableCells'](_0x337886,_0x31bb5f){const _0x1a8b6d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x253064=this['editor']['model']['createRangeOn'](_0x337886),_0x2fac88=this['editor']['model']['createRangeOn'](_0x31bb5f),_0x26da7c=new Set(),_0x1a7fd8=new Set();for(const _0x282d3c of _0x1a8b6d['getSuggestions']())if(('insertion'==_0x282d3c['type']||'deletion'==_0x282d3c['type']||'mergeTableCells'==_0x282d3c['subType'])&&_0x282d3c['isInContent']){for(const _0x12e19f of _0x282d3c['getRanges']())_0x12e19f['containsRange'](_0x253064,!0x0)&&_0x26da7c['add'](_0x282d3c['type']+':'+_0x282d3c['author']['id']),_0x12e19f['containsRange'](_0x2fac88,!0x0)&&_0x1a7fd8['add'](_0x282d3c['type']+':'+_0x282d3c['author']['id']);}if(_0x26da7c['size']!=_0x1a7fd8['size'])return!0x1;for(const _0x908224 of _0x26da7c)if(!_0x1a7fd8['has'](_0x908224))return!0x1;return!0x0;}},We=class extends _0x3e92ef{static get requires(){return[Ge];}afterInit(){const _0x43f13a=this['editor'];if(!_0x43f13a['plugins']['has']('TableEditing'))return;const _0x4bf3a3=_0x43f13a['locale'],_0x4c1830=_0x43f13a['plugins']['get']('TrackChangesEditing');_0x4c1830['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c1830['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c1830['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x4bf3a3,'FORMAT_HEADER_ROW')),_0x4c1830['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x4bf3a3,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x58fafa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d13cd=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x58fafa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2d13cd),_0x58fafa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2d13cd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x35c1cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36d7b0=this['editor']['plugins']['get']('TableUtils');function _0xb0470c({showActiveMarker:_0xfd1833=!0x0,setDataAttribute:_0x43ff39=!0x0}={}){return(_0x379348,_0xae9c35,_0x19c4bd)=>{const {type:_0x2e7125,id:_0x3cfc61}=it(_0xae9c35['markerName']);if(!_0x35c1cc['hasSuggestion'](_0x3cfc61))return;const _0x5463a5=_0x35c1cc['getSuggestion'](_0x3cfc61),_0x22f8e5=_0x5463a5['data'];if('formatBlock'!=_0x5463a5['type']||!_0x22f8e5||'setTableColumnHeader'!=_0x22f8e5['commandName'])return;if(_0xae9c35['item'])return void _0x379348['stop']();if(!_0x19c4bd['consumable']['consume'](_0xae9c35['markerRange'],_0x379348['name']))return;const _0x8c2446=_0xae9c35['markerRange']['start']['nodeAfter'],_0x201818=_0xae9c35['markerRange']['end']['nodeBefore'],_0x705f3c=_0x8c2446['parent']['parent'],{column:_0x450507}=_0x36d7b0['getCellLocation'](_0x8c2446),{column:_0x1c6f9e}=_0x36d7b0['getCellLocation'](_0x201818);for(let _0xc01a6b=_0x450507;_0xc01a6b<=_0x1c6f9e;_0xc01a6b++){const _0x330f0f=_0x36d7b0['createTableWalker'](_0x705f3c,{'column':_0xc01a6b,'includeAllSlots':!0x1});for(const _0x470639 of _0x330f0f){const _0x4bb995=_0x470639['cell'],_0x57bcb3=_0x19c4bd['mapper']['toViewElement'](_0x4bb995);_0x19c4bd['writer']['addClass']('ck-suggestion-marker-'+_0x2e7125,_0x57bcb3),_0x43ff39&&_0x19c4bd['writer']['setAttribute']('data-suggestion',_0x3cfc61,_0x57bcb3),_0x19c4bd['mapper']['bindElementToMarker'](_0x57bcb3,_0xae9c35['markerName']),_0xfd1833&&(_0x35c1cc['activeMarkers']['includes'](_0xae9c35['markerName'])?_0x19c4bd['writer']['addClass']('ck-suggestion-marker--active',_0x57bcb3):_0x19c4bd['writer']['removeClass']('ck-suggestion-marker--active',_0x57bcb3));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb0470c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xf082c6,_0x514858,_0x64a3d)=>{_0x64a3d['options']['showSuggestionHighlights']&&_0xb0470c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xf082c6,_0x514858,_0x64a3d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1feaa2,_0x34104e,_0x5c9e32)=>{const {type:_0x51d632,id:_0x453dda}=it(_0x34104e['markerName']);if(!_0x35c1cc['hasSuggestion'](_0x453dda))return;const _0x2de8e8=_0x35c1cc['getSuggestion'](_0x453dda),_0x239ec9=_0x2de8e8['data'];if('formatBlock'!=_0x2de8e8['type']||!_0x239ec9||'setTableColumnHeader'!=_0x239ec9['commandName'])return;const _0x22c1c9=_0x5c9e32['mapper']['markerNameToElements'](_0x34104e['markerName']);if(_0x22c1c9){for(const _0x2d0226 of _0x22c1c9)_0x5c9e32['writer']['removeClass']('ck-suggestion-marker-'+_0x51d632,_0x2d0226),_0x5c9e32['writer']['removeClass']('ck-suggestion-marker--active',_0x2d0226),_0x5c9e32['writer']['removeAttribute']('data-suggestion',_0x2d0226),_0x5c9e32['mapper']['unbindElementFromMarkerName'](_0x2d0226,_0x34104e['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x3079e4=this['editor'],_0x5e5433=_0x3079e4['locale'];function _0x518d8a(_0x287dff){return{'type':'format','content':Bt(_0x5e5433,'*Format:*\x20%0',_0x287dff)};}_0x3079e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e1a5f=>{if('formatBlock'!=_0x3e1a5f['type'])return;const {data:_0x2f4ca8}=_0x3e1a5f;return _0x2f4ca8?'setTableRowHeader'==_0x2f4ca8['commandName']?_0x2f4ca8['commandParams'][0x0]['forceValue']?_0x518d8a(Bt(_0x5e5433,'FORMAT_HEADER_ROW')):_0x518d8a(Bt(_0x5e5433,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x2f4ca8['commandName']?_0x2f4ca8['commandParams'][0x0]['forceValue']?_0x518d8a(Bt(_0x5e5433,'FORMAT_HEADER_COLUMN')):_0x518d8a(Bt(_0x5e5433,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0x3e92ef{static get requires(){return[Ge];}afterInit(){const _0x3014fe=this['editor'];if(!_0x3014fe['plugins']['has']('TableEditing')||!_0x3014fe['config']['get']('table.enableFooters'))return;const _0x51a7bf=_0x3014fe['locale'],_0x329d0c=_0x3014fe['plugins']['get']('TrackChangesEditing');_0x329d0c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x329d0c['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x51a7bf,'FORMAT_FOOTER_ROW'));}},ze=class extends _0x3e92ef{afterInit(){const _0x527b0e=this['editor'],_0x3b426f=_0x527b0e['locale'],_0x1e64af=_0x527b0e['plugins']['get']('TrackChangesEditing');function _0x55aa55(_0x30e444){return{'type':'format','content':''+Bt(_0x3b426f,'*Set\x20table\x20type:*\x20%0',_0x30e444)};}_0x527b0e['plugins']['has']('TableLayout')&&(_0x1e64af['enableCommand']('insertTableLayout'),_0x1e64af['enableDefaultAttributesIntegration']('tableType'),_0x1e64af['descriptionFactory']['registerElementLabel'](_0xde095d=>_0xde095d['is']('element','table')&&'layout'===_0xde095d['getAttribute']('tableType'),_0x379d48=>Bt(_0x3b426f,'ELEMENT_LAYOUT_TABLE',_0x379d48)),_0x1e64af['descriptionFactory']['registerDescriptionCallback'](_0x2da124=>{const {data:_0x199732}=_0x2da124;if(_0x199732&&'tableType'==_0x199732['key'])switch(_0x199732['newValue']){case'layout':return _0x55aa55(Bt(_0x3b426f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x55aa55(Bt(_0x3b426f,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](je['map'](_0x4ea5d4=>[_0x4ea5d4,null]));var Xe=class extends _0x3e92ef{static get requires(){return[Ge];}afterInit(){const _0x585c73=this['editor'];if(!_0x585c73['plugins']['has']('TableClipboard'))return;const _0x55b256=_0x585c73['plugins']['get']('TrackChangesEditing'),_0x5b5257=_0x585c73['plugins']['get']('TableUtils'),_0x2553f3=_0x585c73['plugins']['get'](Ge),_0x50ae85=_0x585c73['plugins']['get']('TableClipboard'),_0x243bd5=_0x585c73['plugins']['get']('TableSelection'),_0x20d984=_0x585c73['plugins']['get'](Et);_0x2553f3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x585c73['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x585c73['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5ce565=null,_0x5e0a6e=!0x1;_0x20d984['on']('contentInsertion',(_0x43b5fe,_0x13be01)=>{_0x5e0a6e='paste'===_0x13be01['method'];}),_0x585c73['model']['on']('insertContent',(_0x7678b6,_0x1191a2)=>{if(!_0x5e0a6e&&null===_0x243bd5['getSelectedTableCells']())return;const [_0x817858,_0x29b6ef]=_0x1191a2,_0x308026=_0x1191a2[_0x1191a2['length']-0x1];_0x308026&&_0x308026['forceDefaultExecution']||_0x55b256['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3ea9ed,_0x41350e,_0x443cfb,_0x2b5a61,_0x3f7d3d){if(_0x41350e&&!_0x41350e['is']('documentSelection'))return!0x1;const _0x30a62b=_0x3f7d3d['getTableIfOnlyTableInContent'](_0x3ea9ed,_0x443cfb);if(!_0x30a62b||!Ye(_0x30a62b,void 0x0,_0x2b5a61))return!0x1;const _0x1d288b=_0x2b5a61['getSelectionAffectedTableCells'](_0x443cfb['document']['selection']);if(!_0x1d288b['length'])return!0x1;const _0x5f2f53=_0x1d288b[0x0]['findAncestor']('table'),_0x6a1ada=_0x2b5a61['getRowIndexes'](_0x1d288b),_0x53104b=_0x2b5a61['getColumnIndexes'](_0x1d288b),_0x35ddf9={'startRow':_0x6a1ada['first'],'endRow':_0x6a1ada['last'],'startColumn':_0x53104b['first'],'endColumn':_0x53104b['last']};return 0x1==_0x1d288b['length']&&(_0x35ddf9['endRow']+=_0x2b5a61['getRows'](_0x30a62b)-0x1,_0x35ddf9['endColumn']+=_0x2b5a61['getColumns'](_0x30a62b)-0x1),Ye(_0x5f2f53,_0x35ddf9,_0x2b5a61);}(_0x817858,_0x29b6ef,_0x585c73['model'],_0x5b5257,_0x50ae85)&&(_0x7678b6['stop'](),_0x5ce565={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x585c73['model']['change'](()=>{_0x585c73['model']['insertContent'](_0x1191a2[0x0],_0x1191a2[0x1],_0x1191a2[0x2],{'forceDefaultExecution':!0x0});const _0x23fff8=_0x41fde1(),{rowInsertionRanges:_0x382b00,columnInsertionRanges:_0x573e58,insertionRanges:_0x3ffdc0,deletionRanges:_0x40456b,cells:_0x4734bb}=_0x5ce565;_0x382b00['length']&&_0x55b256['markMultiRangeInsertion'](_0x382b00,'tablePasteRow',{'tablePasteChainId':_0x23fff8}),_0x573e58['length']&&_0x55b256['markMultiRangeInsertion'](_0x573e58,'tablePasteColumn',{'tablePasteChainId':_0x23fff8}),_0x3ffdc0['length']&&(_0x55b256['markMultiRangeInsertion'](_0x3ffdc0,'tablePaste',{'tablePasteChainId':_0x23fff8,'skipNestingCheck':!0x0}),_0x3ffdc0['forEach'](_0x173800=>_0x173800['detach']?.())),_0x40456b['length']&&(_0x55b256['markMultiRangeDeletion'](_0x40456b,'tablePaste',{'tablePasteChainId':_0x23fff8,'skipNestingCheck':!0x0}),_0x40456b['forEach'](_0x37ae57=>_0x37ae57['detach']?.()));const _0x51fdaf=_0x55b256['markMultiRangeBlockFormat'](_0x4734bb['map'](({element:_0x253a63})=>_0x253a63),{'formatGroupId':_0x41fde1()},[],'tablePasteCell',{'tablePasteChainId':_0x23fff8});if(_0x51fdaf){const _0x559af8=_0x51fdaf['getMarkers'](),_0x1c7b91=[];for(const {element:_0x2a4eb1,attributes:_0x499d35}of _0x4734bb){if(!_0x499d35)continue;const _0x2c8443=_0x585c73['model']['createRangeOn'](_0x2a4eb1),_0x3c8344=_0x559af8['find'](_0x35cd0a=>_0x35cd0a['getRange']()['isEqual'](_0x2c8443));_0x3c8344&&_0x1c7b91['push']([_0x3c8344['name'],_0x499d35]);}_0x1c7b91['length']&&_0x51fdaf['setAttribute']('markerAttributes',Object['fromEntries'](_0x1c7b91));}_0x5ce565=null;}));},{'priority':_0x20248e['high']+0xa}),_0x20d984['on']('contentInsertion',()=>{_0x5e0a6e=!0x1;},{'priority':'lowest'}),_0x585c73['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x15f149,_0x5259b6)=>{const [_0x38b0a4,_0x574adf,,_0x48587d]=_0x5259b6;if(!_0x5ce565)return;_0x15f149['stop']();const _0x36de0b=_0x38b0a4['cell'],_0x2eddc7=_0x574adf,_0x4770d9=qe(_0x36de0b),_0x454e8b=qe(_0x2eddc7);_0x15f149['return']=_0x36de0b;let _0x3fff62=null,_0x362f66=null;if(_0x454e8b||_0x4770d9){if(_0x4770d9&&!_0x454e8b){_0x48587d['remove'](_0x36de0b['getChild'](0x0));for(const _0x5a916f of Array['from'](_0x2eddc7['getChildren']()))_0x48587d['insert'](_0x5a916f,_0x36de0b,'end');const _0x58785d=_0x5ce565['rowInsertionIndexes']['includes'](_0x38b0a4['row']),_0x2c8270=_0x5ce565['columnInsertionIndexes']['includes'](_0x38b0a4['column']);_0x58785d||_0x2c8270||(_0x3fff62=ct['fromRange'](_0x48587d['createRangeIn'](_0x36de0b)));}else _0x454e8b&&!_0x4770d9&&(_0x362f66=_0x48587d['createRangeIn'](_0x36de0b));}else{const _0x44e859=_0x48587d['createElement']('tableCellSuggestion'),_0x6f80ff=_0x48587d['createElement']('tableCellSuggestion');_0x48587d['wrap'](_0x48587d['createRangeIn'](_0x36de0b),_0x6f80ff),_0x48587d['insert'](_0x44e859,_0x36de0b,0x0);for(const _0x65d897 of Array['from'](_0x2eddc7['getChildren']()))_0x48587d['insert'](_0x65d897,_0x44e859,'end');_0x3fff62=ct['fromRange'](_0x48587d['createRangeOn'](_0x44e859)),_0x362f66=ct['fromRange'](_0x48587d['createRangeOn'](_0x6f80ff));}const _0x2f3554=Array['from'](_0x2eddc7['getAttributes']())['filter'](([_0x2636b0])=>je['includes'](_0x2636b0));_0x5ce565['cells']['push']({'element':_0x36de0b,'attributes':_0x2f3554['length']?Object['fromEntries'](_0x2f3554):null}),_0x3fff62&&_0x5ce565['insertionRanges']['push'](_0x3fff62),_0x362f66&&_0x5ce565['deletionRanges']['push'](_0x362f66);},{'priority':'high'}),_0x5b5257['on']('insertColumns',(_0x2d3914,_0x20cbcc)=>{const [_0x1dc8e0,_0xb74e1f={}]=_0x20cbcc;if(!_0x5ce565)return;const _0x4c07f3=_0xb74e1f['at']||0x0,_0x3174ae=_0xb74e1f['columns']||0x1;_0x5ce565['columnInsertionIndexes']=new Array(_0x3174ae)['fill'](_0x4c07f3)['map']((_0x1d5c5f,_0x4f0f8d)=>_0x1d5c5f+_0x4f0f8d);for(const {cell:_0x5dfe5e}of _0x5b5257['createTableWalker'](_0x1dc8e0,{'startColumn':_0x4c07f3,'endColumn':_0x4c07f3+_0x3174ae-0x1}))_0x5ce565['columnInsertionRanges']['push'](_0x585c73['model']['createRangeOn'](_0x5dfe5e));},{'priority':'low'}),_0x5b5257['on']('insertRows',(_0x32ed7b,_0x499427)=>{const [_0x4ad444,_0x3822e6={}]=_0x499427;if(!_0x5ce565)return;const _0x2d364e=_0x3822e6['at']||0x0,_0x410194=_0x3822e6['rows']||0x1;_0x5ce565['rowInsertionIndexes']=new Array(_0x410194)['fill'](_0x2d364e)['map']((_0x286a27,_0x2cb8f9)=>_0x286a27+_0x2cb8f9);for(const {cell:_0x178cce}of _0x5b5257['createTableWalker'](_0x4ad444,{'startRow':_0x2d364e,'endRow':_0x2d364e+_0x410194-0x1}))_0x5ce565['rowInsertionRanges']['push'](_0x585c73['model']['createRangeOn'](_0x178cce));},{'priority':'low'}),_0x55b256['descriptionFactory']['registerDescriptionCallback'](_0x5961cd=>{if(_0x5961cd['subType']&&_0x5961cd['subType']['startsWith']('tablePaste'))return _0x5961cd['previous']?{}:{'type':'insertion','content':Bt(_0x585c73['locale'],'*Replace\x20table\x20cells*')};});const _0x3d76b2=()=>!0x1;for(const _0x55294f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b256['_suggestionFactory']['registerCustomCallback']('insertion',_0x55294f,'join',_0x3d76b2),_0x55b256['_suggestionFactory']['registerCustomCallback']('deletion',_0x55294f,'join',_0x3d76b2),_0x55b256['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55294f,'join',_0x3d76b2);_0x55b256['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d76b2),_0x55b256['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x6ee02,_0x52fad7,_0x2fa31d)=>{const _0x37d252=_0x6ee02['map'](_0x96d0a0=>_0x96d0a0['getContainedElement']())['filter'](_0x17b86a=>_0x17b86a),_0x230fc5=new Map(_0x37d252['map'](_0x4be671=>[_0x4be671,null]));if(_0x5ce565){for(const {element:_0x557991,attributes:_0x2ed24c}of _0x5ce565['cells'])_0x2ed24c&&_0x230fc5['set'](_0x557991,_0x2ed24c);}else{if(_0x2fa31d&&_0x2fa31d['markerAttributes'])for(const [_0x12aff9,_0x3788f0]of Object['entries'](_0x2fa31d['markerAttributes'])){const _0x2c3bb3=_0x585c73['model']['markers']['get'](_0x12aff9),_0xf7ee38=_0x2c3bb3?_0x2c3bb3['getRange']()['getContainedElement']():null;_0xf7ee38&&_0x230fc5['set'](_0xf7ee38,_0x3788f0);}}_0x585c73['model']['change'](_0x4b6bab=>{for(const [_0x19bc87,_0x3f2481]of _0x230fc5)_0x4b6bab['setAttributes']({...Ke,..._0x3f2481},_0x19bc87);});});const _0x455f18=(_0x236914,_0x146d8f)=>{_0x55b256['_suggestionFactory']['registerCustomCallback'](_0x236914,'tablePaste',_0x146d8f,(_0x829c98,_0x2afd7a,_0x37a330)=>{_0x585c73['model']['change'](_0x1134e6=>{const _0x91fe9f=[];for(const _0x4987ba of _0x829c98){const _0x1fbf88=_0x4987ba['start']['nodeAfter'];_0x1fbf88['is']('element','tableCellSuggestion')&&_0x91fe9f['push'](_0x1fbf88);}_0x55b256['_suggestionFactory']['getSuggestionCallback'](_0x236914,null,_0x146d8f)(_0x829c98,_0x2afd7a,_0x37a330);for(const _0x2fd4d5 of _0x91fe9f)'$graveyard'!=_0x2fd4d5['root']['rootName']&&_0x1134e6['unwrap'](_0x2fd4d5);});});};_0x455f18('insertion','accept'),_0x455f18('insertion','discard'),_0x455f18('deletion','accept'),_0x455f18('deletion','discard'),_0x55b256['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5acbd8=>{const _0xf3271d=_0x5acbd8['map'](_0x53479d=>_0x53479d['getContainedElement']()),_0x15a41c=_0xf3271d[0x0]['findAncestor']('table'),{minRow:_0xcf540c,maxRow:_0x24d5c8}=_0x2553f3['_getCoordsForCells'](_0xf3271d);_0x5b5257['removeRows'](_0x15a41c,{'at':_0xcf540c,'rows':_0x24d5c8-_0xcf540c+0x1});}),_0x55b256['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xb944ea=>{const _0x16048c=_0xb944ea['map'](_0x4c222f=>_0x4c222f['getContainedElement']()),_0x23f3f1=_0x16048c[0x0]['findAncestor']('table'),{minColumn:_0x2ffd1a,maxColumn:_0xda8082}=_0x2553f3['_getCoordsForCells'](_0x16048c);_0x5b5257['removeColumns'](_0x23f3f1,{'at':_0x2ffd1a,'columns':_0xda8082-_0x2ffd1a+0x1});});const _0x5dd5b0=(_0x8891fe,_0x16703a)=>{if(!_0x16703a['subType']||!_0x16703a['subType']['startsWith']('tablePaste'))return;const _0x35857c=_0x16703a['attributes']['tablePasteChainId'],_0x34cfc8=_0x55b256['getSuggestions']()['filter'](_0x39d74e=>_0x39d74e['isInContent']&&_0x39d74e['attributes']&&_0x39d74e['attributes']['tablePasteChainId']==_0x35857c);_0x34cfc8['length']&&_0x16703a['getAllAdjacentSuggestions']()['length']!=_0x34cfc8['length']&&_0x34cfc8['reduce']((_0x33ba2a,_0x453a1e)=>(_0x33ba2a['next']=_0x453a1e,_0x453a1e['previous']=_0x33ba2a,_0x453a1e));};function _0x263cf2(_0x10acd0,_0x1298b8=!0x0){const {id:_0x41530a,authorId:_0xebfef}=it(_0x10acd0['markerName']),_0x55100d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x57cd5b=_0x55b256['activeMarkers']['includes'](_0x10acd0['markerName']);return _0x57cd5b&&_0x55100d['push']('ck-suggestion-marker--active'),{'classes':_0x55100d,'attributes':{'data-suggestion':_0x41530a,'data-author-id':_0xebfef},'priority':_0x57cd5b&&_0x1298b8?0xbc2:0xbb8};}_0x55b256['on']('suggestionLoaded',_0x5dd5b0,{'priority':'high'}),_0x55b256['on']('suggestionUnloaded',_0x5dd5b0,{'priority':'high'}),_0x585c73['model']['document']['registerPostFixer'](()=>{let _0x3c957f=!0x1;const _0x31547b=Array['from'](_0x585c73['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56fbb3,data:_0x349fda}of _0x31547b){const {group:_0x3bb8dc,type:_0x4b489a,id:_0x459214}=it(_0x56fbb3);if('suggestion'!=_0x3bb8dc||'deletion'!=_0x4b489a||_0x349fda['oldRange'])continue;if(!_0x55b256['hasSuggestion'](_0x459214))continue;const _0x2f9ee5=_0x55b256['getSuggestion'](_0x459214)['getRanges'](),_0x4116a1=_0x585c73['plugins']['get']('Users')['me'];for(const _0x531ebb of _0x55b256['getSuggestions']())if(_0x531ebb['isInContent']&&_0x531ebb['author']==_0x4116a1&&'formatBlock'==_0x531ebb['type']&&'tablePasteCell'==_0x531ebb['subType']&&_0x531ebb['getRanges']()['every'](_0x408478=>_0x2f9ee5['some'](_0x5c6749=>_0x5c6749['containsRange'](_0x408478,!0x0)))){for(const _0x32b711 of _0x531ebb['getAllAdjacentSuggestions']())_0x32b711['isInContent']&&(_0x32b711['discard'](),_0x3c957f=!0x0);}}return _0x3c957f;}),_0x585c73['model']['document']['registerPostFixer'](_0x1eca61=>{const _0x3e0b07=_0x585c73['commands']['get']('redo');if(!_0x3e0b07||!_0x3e0b07['_createdBatches']['has'](_0x1eca61['batch']))return!0x1;let _0x201529=!0x1;const _0x26f607=_0x585c73['plugins']['get']('Users')['me'],_0x2cc807=_0x585c73['model']['document']['differ']['getChanges'](),_0x2d7eef=Array['from'](_0x585c73['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x566ea0,data:_0x3b49fc})=>{const {group:_0x144919,subType:_0x24dbb9,authorId:_0x543b8a}=it(_0x566ea0);return'suggestion'==_0x144919&&'tablePaste'==_0x24dbb9&&_0x543b8a==_0x26f607['id']&&!_0x3b49fc['oldRange'];});for(const _0x3974cb of _0x2cc807){if('insert'!=_0x3974cb['type']||'tableCellSuggestion'!=_0x3974cb['name']||0x1!=_0x3974cb['length'])continue;const _0x512cd1=_0x1eca61['createRange'](_0x3974cb['position'],_0x3974cb['position']['getShiftedBy'](0x1));if(!_0x2d7eef['find'](({data:_0x16cb40})=>_0x16cb40['newRange']['isEqual'](_0x512cd1))){for(const {name:_0x366cd5,data:_0x3a87c2}of _0x2d7eef)if(_0x512cd1['containsRange'](_0x3a87c2['newRange'])){_0x1eca61['updateMarker'](_0x366cd5,{'range':_0x512cd1}),_0x201529=!0x0;break;}}}return _0x201529;}),_0x585c73['model']['document']['registerPostFixer'](_0x5ca5c8=>{let _0x433336=!0x1;const _0x47934e=_0x585c73['plugins']['get']('Users')['me'],_0x4c1156=_0x55b256['getSuggestions']()['filter'](_0x2f6d30=>_0x2f6d30['isInContent']&&_0x2f6d30['author']==_0x47934e),_0x42601f=new Set(),_0x220ead=new Set();for(const _0x107a43 of _0x4c1156)if('tablePaste'==_0x107a43['subType'])for(const _0x1ed482 of _0x107a43['getMarkers']()){const _0x5858a2=_0x1ed482['getRange']()['getContainedElement']();if(_0x5858a2){if(_0x5858a2['is']('element','tableCellSuggestion')&&qe(_0x5858a2)){_0x107a43['removeMarker'](_0x1ed482['name']),_0x42601f['add'](_0x5858a2),_0x433336=!0x0;const _0x371f5d=_0x5858a2['nextSibling'],_0x290dc9=_0x5858a2['previousSibling'],_0x5f37e8=_0x371f5d&&_0x371f5d['is']('element','tableCellSuggestion'),_0x10ddd3=_0x290dc9&&_0x290dc9['is']('element','tableCellSuggestion');_0x5f37e8&&!_0x42601f['has'](_0x371f5d)&&_0x220ead['add'](_0x371f5d),_0x10ddd3&&!_0x42601f['has'](_0x290dc9)&&_0x220ead['add'](_0x290dc9);}else _0x5858a2['is']('element','paragraph')&&_0x5858a2['isEmpty']&&(_0x107a43['removeMarker'](_0x1ed482['name']),_0x433336=!0x0);}}else{if('tablePasteCell'==_0x107a43['subType']){if(!_0x107a43['attributes']||!_0x107a43['attributes']['tablePasteChainId'])continue;const _0x3ecc54=_0x107a43['attributes']['markerAttributes'];if(_0x3ecc54&&Object['keys'](_0x3ecc54)['length'])continue;const _0x31c32b=_0x107a43['attributes']['tablePasteChainId'];let _0x5d04af=!0x0,_0x2d2642=!0x0;for(const _0x1e6771 of _0x4c1156)if(_0x1e6771['subType']&&_0x1e6771['subType']['startsWith']('tablePaste')){if(!_0x1e6771['attributes']['tablePasteChainId']){_0x2d2642=!0x1;break;}if(_0x1e6771['id']!=_0x107a43['id']&&_0x1e6771['attributes']['tablePasteChainId']==_0x31c32b){_0x5d04af=!0x1;break;}}_0x2d2642&&_0x5d04af&&(_0x107a43['removeMarkers'](),_0x433336=!0x0);}}for(const _0x166864 of _0x42601f)_0x5ca5c8['remove'](_0x166864);for(const _0x5f3ea4 of _0x220ead)_0x5ca5c8['unwrap'](_0x5f3ea4);return _0x433336;}),_0x585c73['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x44f047=>_0x263cf2(_0x44f047),'converterPriority':'high'}),_0x585c73['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xdf841e,_0x583419)=>_0x583419['options']['showSuggestionHighlights']?_0x263cf2(_0xdf841e,!0x1):null,'converterPriority':'high'});const _0x56df8a=_0x585c73['editing']['view'];this['listenTo'](_0x56df8a['document'],'clipboardOutput',(_0x1e97d8,_0x408a20)=>{const _0xb4abfc=[];for(const _0x1928ef of _0x56df8a['createRangeIn'](_0x408a20['content'])['getItems']())_0x1928ef['is']('element','suggestion-td')&&_0xb4abfc['push'](_0x1928ef);_0x56df8a['change'](_0x32134d=>{for(const _0x207de1 of _0xb4abfc)_0x32134d['move'](_0x32134d['createRangeIn'](_0x207de1),_0x32134d['createPositionBefore'](_0x207de1)),_0x32134d['remove'](_0x207de1);});});}};function qe(_0xa271a2){if(_0xa271a2['isEmpty'])return!0x0;const _0x5ac1c6=_0xa271a2['getChild'](0x0);return _0x5ac1c6['is']('element','paragraph')&&_0x5ac1c6['isEmpty'];}function Ye(_0x1509be,_0x5bbb2d={},_0x937f55){for(const {isAnchor:_0xf3322c,cellHeight:_0x2c2101,cellWidth:_0x35e04a}of _0x937f55['createTableWalker'](_0x1509be,{'includeAllSlots':!0x0,..._0x5bbb2d}))if(!_0xf3322c||0x1!=_0x2c2101||0x1!=_0x35e04a)return!0x1;return!0x0;}var Qe=class extends _0x3e92ef{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x283489=this['editor']['plugins']['get']('TrackChangesEditing');_0x283489['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x283489['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x283489['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x283489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x48837c=_0x283489['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x283489['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x58078d,_0x6f44b6)=>{_0x48837c(_0x58078d,_0x6f44b6),this['_restoreCellWidths'](_0x58078d[0x0]['start']['nodeAfter'],_0x6f44b6['commandParams'][0x0]['cellWidths']);}),_0x283489['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x11f1fe,_0x3d1fc5){const _0x2e7636=this['editor']['plugins']['get']('TrackChangesEditing'),_0x192a30=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x368d22=_0x3d1fc5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xb8bd7d=_0x192a30['getColumnGroupElement'](_0x368d22);let _0x527e55=_0xb8bd7d?_0x192a30['getTableColumnsWidths'](_0xb8bd7d):null,_0x163f79=_0x368d22['getAttribute']('tableWidth')||null;const _0xfb3b61=_0x3d1fc5['tableWidth']||_0x163f79,_0x2f1468=_0x3d1fc5['columnWidths']||_0x527e55;let _0x6e05b4=this['_getCellWidths'](_0x368d22);const _0x1743e9=this['_foldResizeTableSuggestion'](_0x368d22);_0x1743e9&&(_0x163f79=_0x1743e9['tableWidth'],_0x527e55=_0x1743e9['columnWidths'],_0x6e05b4=_0x1743e9['cellWidths']||_0x6e05b4),_0x11f1fe({'table':_0x368d22,'tableWidth':_0xfb3b61,'columnWidths':_0x2f1468}),_0x2e7636['markBlockFormat'](_0x368d22,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x163f79,'columnWidths':_0x527e55,'cellWidths':_0x6e05b4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2bfe22,_0x2814f9={}){if(void 0x0===_0x2814f9['value']||''===_0x2814f9['value'])return void _0x2bfe22(_0x2814f9);const _0x5872a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d5345=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3ccedf=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2814f9['batch']||(_0x2814f9['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2814f9['batch'],()=>{const _0x314a82=_0x1d5345['getColumnGroupElement'](_0x3ccedf);let _0x9fe900=_0x314a82?_0x1d5345['getTableColumnsWidths'](_0x314a82):null,_0x1d994e=_0x3ccedf['getAttribute']('tableWidth')||null,_0x2a8bd4=this['_getCellWidths'](_0x3ccedf);const _0x30635c=this['_foldResizeTableSuggestion'](_0x3ccedf,!0x0);_0x30635c&&(_0x1d994e=_0x30635c['tableWidth'],_0x9fe900=_0x30635c['columnWidths'],_0x2a8bd4=_0x30635c['cellWidths']||_0x2a8bd4),_0x2bfe22(_0x2814f9),_0x5872a2['markBlockFormat'](_0x3ccedf,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1d994e,'columnWidths':_0x9fe900,'cellWidths':_0x2a8bd4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x14c19b,_0x554d2e=!0x1){const _0xe8b93f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33f020=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a1cee of _0xe8b93f['getSuggestions']({'skipNotAttached':!0x0})){const _0x58b9e7=_0x5a1cee['getContainedElement']();if('resizeTable'===_0x5a1cee['subType']&&_0x58b9e7===_0x14c19b){_0x5a1cee['author']!==_0x33f020&&(_0x554d2e?_0x5a1cee['removeMarkers']():_0x5a1cee['discard']());const _0x51615b=_0x5a1cee['data']['commandParams'];return{'tableWidth':_0x51615b[0x0]['tableWidth'],'columnWidths':_0x51615b[0x0]['columnWidths'],'cellWidths':_0x51615b[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x5f2f92){const _0x3cbdf7=[];for(const _0x10a16d of _0x5f2f92['getChildren']())if(_0x10a16d['is']('element','tableRow')){for(const _0x5d7ce7 of _0x10a16d['getChildren']())_0x3cbdf7['push'](_0x5d7ce7['getAttribute']('tableCellWidth')||null);}return _0x3cbdf7;}_restoreCellWidths(_0x19955d,_0x547492){_0x547492&&this['editor']['model']['change'](_0x3e0e3e=>{let _0x72dd54=0x0;for(const _0x41359c of _0x19955d['getChildren']())if(_0x41359c['is']('element','tableRow'))for(const _0x4738cb of _0x41359c['getChildren']()){const _0x2da70c=_0x547492[_0x72dd54++];_0x2da70c&&_0x3e0e3e['setAttribute']('tableCellWidth',_0x2da70c,_0x4738cb);}});}handleSuggestionDescription(_0x318c33){if('formatBlock'!=_0x318c33['type']&&'formatInline'!=_0x318c33['type'])return;const {data:_0x4f9e1a}=_0x318c33;return _0x4f9e1a&&'resizeTable'===_0x4f9e1a['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0x3e92ef{afterInit(){const _0x27a630=this['editor'];_0x27a630['plugins']['has']('Template')&&_0x27a630['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0x3e92ef{afterInit(){const _0x579391=this['editor'];if(!_0x579391['commands']['get']('insertTableOfContents'))return;_0x579391['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1f1e2c=_0x579391['plugins']['get']('TrackChangesEditing'),_0x16d17d=_0x579391['locale'];_0x1f1e2c['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3aa0ce=>Bt(_0x16d17d,'ELEMENT_TABLE_OF_CONTENTS',_0x3aa0ce));}},tn=class extends _0x3e92ef{afterInit(){const _0x4319d9=this['editor'];_0x4319d9['plugins']['has']('Title')&&(_0x4319d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0x4319d9['locale'],'ELEMENT_TITLE')),_0x4319d9['model']['document']['registerPostFixer'](_0x1a5e34=>{let _0xaa5451=!0x1;const _0x3a9885=Array['from'](_0x4319d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x65d685,data:_0x44b44f}of _0x3a9885){const {group:_0x3eb555}=it(_0x65d685);if('suggestion'!==_0x3eb555||!_0x44b44f['newRange'])continue;const _0x3e43de=_0x44b44f['newRange'],_0x3848b3=_0x3e43de['end']['nodeBefore'];if(!_0x3848b3||!_0x3848b3['is']('element','title-content'))continue;if(!_0x3e43de['start']['isTouching'](_0x3e43de['end']))continue;const _0x157f6f=_0x4319d9['model']['schema']['getNearestSelectionRange'](_0x3e43de['end'],'forward');if(_0x157f6f&&_0x157f6f['isCollapsed']){const _0x64ebe1=_0x1a5e34['createRange'](_0x3e43de['start'],_0x157f6f['start']);_0x64ebe1['isEqual'](_0x3e43de)||(_0x1a5e34['updateMarker'](_0x65d685,{'range':_0x64ebe1}),_0xaa5451=!0x0);}_0xaa5451||(_0x1a5e34['removeMarker'](_0x65d685),_0xaa5451=!0x0);}return _0xaa5451;}));}},en=class extends _0x3e92ef{afterInit(){const _0x4f56f6=this['editor'],_0x51c7dd=_0x4f56f6['plugins']['get']('TrackChangesEditing');_0x4f56f6['plugins']['has']('Uploadcare')&&(_0x51c7dd['enableCommand']('uploadcare'),_0x4f56f6['plugins']['has']('UploadcareImageEdit')&&(_0x51c7dd['enableCommand']('uploadcareImageEdit'),_0x51c7dd['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x51c7dd['descriptionFactory']['registerDescriptionCallback'](_0x2fa558=>{if('attribute'!=_0x2fa558['type'])return;const {data:_0x1355dd}=_0x2fa558;return _0x1355dd&&'uploadcareImageId'==_0x1355dd['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0x3e92ef{afterInit(){const _0x4c0205=this['editor'],_0x89b637=_0x4c0205['plugins']['get']('TrackChangesEditing');_0x4c0205['plugins']['has']('UndoEditing')&&(_0x89b637['enableCommand']('undo'),_0x89b637['enableCommand']('redo'));}},sn=class extends _0x3e92ef{static get requires(){return[Ge];}afterInit(){const _0x46d089=this['editor'];_0x46d089['plugins']['has']('TableCaptionEditing')&&_0x46d089['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0x3e92ef{tableProperties;tableCellProperties;constructor(_0x2dba02){super(_0x2dba02),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 _0x14ef56=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xebf9e6 of this['tableProperties'])_0x14ef56['enableCommand'](_0xebf9e6,(_0x5908f0,_0x40b94c)=>{const _0x5eabf8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xebf9e6,[_0x5eabf8],this['tableProperties'],'tableProperties',_0x5908f0,_0x40b94c);});_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x14ef56['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3fcf6d,_0x9f82c7)=>this['handleDiscardAction'](this['tableProperties'],_0x3fcf6d,_0x9f82c7)),_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xa7c6a1 of this['tableCellProperties'])this['editor']['commands']['get'](_0xa7c6a1)&&_0x14ef56['enableCommand'](_0xa7c6a1,(_0x5dfb36,_0x536e52)=>{const _0x20c52e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xa7c6a1,_0x20c52e,this['tableCellProperties'],'tableCellProperties',_0x5dfb36,_0x536e52);});_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x14ef56['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x9c3df0,_0x4f9763)=>this['handleDiscardAction'](this['tableCellProperties'],_0x9c3df0,_0x4f9763)),_0x14ef56['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x14ef56['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x14ef56['descriptionFactory']['registerDescriptionCallback'](_0x5b0828=>this['handleSuggestionDescription'](_0x5b0828)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0xd886be,_0xadd542,_0x3aefa2,_0x3a6be2,_0x13cb6d,_0xc9a609){const _0x33a5b9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc9a609['batch'],()=>{for(const _0x164029 of _0xadd542)if(this['_getSuggestion'](_0x164029,_0x3a6be2))_0x13cb6d(_0xc9a609);else{const _0xa42d73={};for(const _0x3125dd of _0x3aefa2){const _0x3bac1b=_0x164029['getAttribute'](_0x3125dd);void 0x0!==_0x3bac1b&&(_0xa42d73[_0x3125dd]=_0x3bac1b);}const _0x5f0f69=this['_getResizedColumnWidths'](_0x164029);_0x5f0f69&&(_0xa42d73['columnWidths']=_0x5f0f69),_0x13cb6d(_0xc9a609),_0x33a5b9['markBlockFormat'](_0x164029,{'commandParams':[_0xa42d73]},[],_0x3a6be2);}});}handleDiscardAction(_0x3d1fde,_0x1144e8,_0x15e359){const _0x5ecdff=_0x1144e8[0x0]['start']['nodeAfter'],_0x90f6b4=_0x15e359['commandParams'][0x0];this['editor']['model']['change'](_0x119c26=>{for(const _0x419845 of _0x3d1fde)void 0x0!==_0x90f6b4[_0x419845]?_0x119c26['setAttribute'](_0x419845,_0x90f6b4[_0x419845],_0x5ecdff):_0x119c26['removeAttribute'](_0x419845,_0x5ecdff);if(_0x90f6b4['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0xd5a3cb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x40198d=_0xd5a3cb['getColumnGroupElement'](_0x5ecdff);if(_0x40198d){const _0x452233=_0xd5a3cb['getTableColumnsWidths'](_0x40198d),_0x2a46dd=_0x5ecdff['getAttribute']('tableWidth');if(('string'==typeof _0x2a46dd&&_0x2a46dd['trim']()['endsWith']('px'))!==_0x452233['some'](_0x39449c=>'string'==typeof _0x39449c&&_0x39449c['endsWith']('px'))){const _0x205219=_0xd5a3cb['getTableColumnElements'](_0x40198d);_0x90f6b4['columnWidths']['forEach']((_0x2321b5,_0x2b38ae)=>{_0x205219[_0x2b38ae]&&_0x119c26['setAttribute']('columnWidth',_0x2321b5,_0x205219[_0x2b38ae]);});}}}});}_getResizedColumnWidths(_0x30f04e){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x30f04e['is']('element','table'))return;const _0x15b636=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ff748=_0x15b636['getColumnGroupElement'](_0x30f04e);return _0x1ff748?_0x15b636['getTableColumnsWidths'](_0x1ff748):void 0x0;}handleSuggestionDescription(_0x43ac2d){if(_0x43ac2d['data'])switch(_0x43ac2d['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x285240,_0x71cacf){const _0x24c641=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1bb887 of _0x24c641['getSuggestions']({'skipNotAttached':!0x0})){const _0x56e67b=_0x1bb887['getContainedElement']();if(_0x1bb887['subType']===_0x71cacf&&_0x56e67b===_0x285240)return _0x1bb887;}return null;}_registerTablePropertiesAttributes(){const _0x1b9855=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f48e4=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x12c6dc of _0x4f48e4){const _0x4bd63f=_0x12c6dc['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x1b9855['descriptionFactory']['registerAttributeLabel'](_0x12c6dc,Bt(this['editor']['locale'],'FORMAT_'+_0x4bd63f));}}},on=class extends _0x3e92ef{afterInit(){const _0x601ffb=this['editor'];if(!_0x601ffb['plugins']['has']('LineHeight'))return;const _0x2c0985=_0x601ffb['plugins']['get']('TrackChangesEditing'),_0x4cdffb=_0x601ffb['locale'];_0x2c0985['enableDefaultAttributesIntegration']('lineHeight'),_0x2c0985['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x4cdffb,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0x1ae269){return'marker'==_0x1ae269['type']&&_0x1ae269['name']['startsWith']('$markedRemove');}function ln(_0x246072){return _0x246072?[_0x246072]:[];}var un=class extends _0x3e92ef{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3ed633,_0x3d313e,_0x59419f,_0x41a4ea,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf80a6){super(_0xf80a6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x289613,_0x429361,_0x4c2a29,_0x226c0a)=>{this['_model']['change'](()=>{for(const _0x51e5d4 of[..._0x226c0a,..._0x4c2a29])this['_model']['markers']['has'](_0x51e5d4)&&_0xf80a6['editing']['reconvertMarker'](_0x51e5d4);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xf80a6['plugins']['get'](_0x3ed633),this['_suggestionsConversion']=_0xf80a6['plugins']['get'](_0x3d313e),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xf80a6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf80a6['config']['get']('trackChanges.trackFormatChanges'),_0xf80a6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf80a6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0xf80a6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x5a81b7=this['editor'];_0x5a81b7['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5b18aa,{writer:_0x41a9e0})=>{let _0x466b69='suggestion:'+_0x5b18aa['getAttribute']('suggestion-type')+':'+_0x5b18aa['getAttribute']('id');return _0x5b18aa['getAttribute']('marker-count')&&(_0x466b69+=':'+_0x5b18aa['getAttribute']('marker-count')),_0x41a9e0['createElement']('$marker',{'data-name':_0x466b69});}}),_0x5a81b7['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5a81b7['model']['document']['registerPostFixer'](_0x54b562=>{let _0x1a98a0=!0x1;const _0x4afe9c=Array['from'](_0x5a81b7['model']['document']['differ']['getChangedMarkers']()),_0x575c80=new Set();for(const {name:_0x9dbb78,data:_0x45b78c}of _0x4afe9c){const {group:_0x3f5347,type:_0x106d64,subType:_0x5d8be6,id:_0x18bb67}=it(_0x9dbb78);if('suggestion'!==_0x3f5347)continue;const _0x4f72bb=_0x5d8be6?'suggestion:'+_0x106d64+':'+_0x5d8be6+':'+_0x18bb67:'suggestion:'+_0x106d64+':'+_0x18bb67,_0x4a5191=_0x5a81b7['model']['markers']['getMarkersGroup'](_0x4f72bb),_0x277f96=_0x5a81b7['model']['markers']['get'](_0x9dbb78),_0x45a1b8=this['_suggestions']['get'](_0x18bb67);if(null!=_0x45b78c['newRange']){'formatInline'==_0x106d64&&(_0x1a98a0=_0x1a98a0||fn(_0x45b78c['newRange'],_0x9dbb78,_0x54b562,_0x5a81b7['model']['schema']));const _0x4ccec2='attribute'==_0x106d64&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x5d8be6)),_0x515d84='attribute'==_0x106d64&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x5d8be6));if(_0x45b78c['newRange']['isCollapsed']||'$graveyard'==_0x45b78c['newRange']['root']['rootName']||'formatBlock'==_0x106d64&&!En(_0x45b78c['newRange'])||_0x4ccec2&&!En(_0x45b78c['newRange'])||_0x515d84&&Tn(_0x45b78c['newRange'])||'deletion'==_0x106d64&&Tn(_0x45b78c['newRange'])||_0x277f96&&_n(_0x277f96,_0x4a5191))_0x54b562['removeMarker'](_0x9dbb78),_0x1a98a0=!0x0;else{if(!_0x45a1b8||!_0x45a1b8['isInContent'])continue;if(_0x45b78c['newRange']&&_0x45b78c['oldRange']&&_0x45b78c['newRange']['isEqual'](_0x45b78c['oldRange']))continue;_0x575c80['add'](_0x45a1b8);}}}return _0x575c80['size']>0x0&&(_0x1a98a0=!!this['_joinWithAdjacentSuggestions'](_0x575c80)||_0x1a98a0),_0x1a98a0;}),_0x5a81b7['model']['document']['registerPostFixer'](_0x36a669=>{let _0x3db346=!0x1;for(const _0x5c30c7 of _0x5a81b7['model']['document']['differ']['getChanges']())if('insert'==_0x5c30c7['type'])for(const _0x581983 of this['_suggestions']['values']()){if(_0x581983['isMultiRange']||!_0x581983['isInContent'])continue;const _0x42ac1f='formatBlock'==_0x581983['type'],_0x3635c1=this['_getAttributeKey'](_0x581983),_0x41c997=_0x3635c1&&this['_suggestionsConversion']['isBlockAttribute'](_0x3635c1);if(!_0x42ac1f&&!_0x41c997)continue;const _0x415622=_0x581983['getFirstRange']();if(_0x415622['start']['parent']!=_0x415622['end']['parent']&&!_0x415622['end']['isAtEnd']){const _0x3fc780=_0x5a81b7['model']['createPositionAt'](_0x415622['start']['nodeAfter'],'end'),_0x515923=_0x5a81b7['model']['createRange'](_0x415622['start'],_0x3fc780);_0x36a669['updateMarker'](_0x581983['getFirstMarker'](),{'range':_0x515923}),_0x3db346=!0x0;}}return _0x3db346;}),_0x5a81b7['model']['document']['registerPostFixer'](_0x2330dd=>this['_processAttributeChanges'](_0x2330dd)),_0x5a81b7['model']['document']['registerPostFixer'](_0x547ca7=>!_0x547ca7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x547ca7)),_0x5a81b7['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5a81b7['model']['document']['on']('change:data',(_0x3ab611,_0x27513c)=>{if(!_0x27513c['isLocal']||_0x27513c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4206f0=_0x5a81b7['model']['document']['differ']['getChanges']();if(0x0==_0x4206f0['length'])return;const _0x46f57b=[],_0x5ec908=_0x4206f0['filter'](_0x7d8396=>'attribute'==_0x7d8396['type']),_0x44eb5b=_0x4206f0['filter'](_0x211616=>'insert'==_0x211616['type']&&'$text'!=_0x211616['name']);for(const _0xa1d1c6 of _0x5ec908)this['_suggestionsConversion']['isRegisteredAttribute'](_0xa1d1c6['attributeKey'])&&_0x46f57b['push']({'key':_0xa1d1c6['attributeKey'],'newValue':_0xa1d1c6['attributeNewValue'],'oldValue':_0xa1d1c6['attributeOldValue'],'range':pn(_0xa1d1c6['range'],_0x5a81b7['model'])});for(const _0x1cec93 of _0x44eb5b){if('rename'!=_0x1cec93['action']&&'refresh'!=_0x1cec93['action'])continue;const _0x223de8=Ln(_0x1cec93['position']['nodeAfter'],_0x5a81b7['model']),_0x19e1f9=_0x1cec93['before'];'rename'==_0x1cec93['action']&&_0x46f57b['push']({'key':an,'newValue':_0x1cec93['name'],'oldValue':_0x19e1f9['name'],'range':_0x223de8});for(const [_0x2e2554,_0x405e4d]of _0x19e1f9['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e2554))continue;const _0x4e0a76=_0x1cec93['attributes']['get'](_0x2e2554);_0x405e4d!==_0x4e0a76&&_0x46f57b['push']({'key':_0x2e2554,'newValue':_0x4e0a76,'oldValue':_0x405e4d,'range':_0x223de8});}for(const [_0x54d98d,_0x2a01ad]of _0x1cec93['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x54d98d)&&(_0x19e1f9['attributes']['has'](_0x54d98d)||_0x46f57b['push']({'key':_0x54d98d,'newValue':_0x2a01ad,'oldValue':null,'range':_0x223de8}));}0x0!=_0x46f57b['length']&&_0x5a81b7['model']['enqueueChange'](_0x27513c,_0x2ef7d7=>{const _0x4f43a1=_0x41fde1();for(const {range:_0x4e67c8,key:_0x15ec17,oldValue:_0x35b04e,newValue:_0x38d0b4}of _0x46f57b)this['markAttributeChange'](_0x4e67c8,_0x15ec17,_0x35b04e,_0x38d0b4,{'groupId':_0x4f43a1});this['_reduceExistingSuggestions'](_0x2ef7d7,_0x46f57b);});},{'priority':'lowest'}),_0x5a81b7['model']['markers']['on']('update:suggestion',(_0x979dd6,_0x263aba,_0x456774)=>{if(null==_0x456774){const {id:_0x465bcd}=it(_0x263aba['name']),_0x47b7e2=this['_suggestions']['get'](_0x465bcd);_0x47b7e2&&_0x47b7e2['addMarkerName'](_0x263aba['name']);}}),_0x5a81b7['model']['document']['on']('change:data',()=>{const _0x52afce=Array['from'](_0x5a81b7['model']['document']['differ']['getChangedMarkers']())['filter'](_0x384b4d=>'suggestion'===it(_0x384b4d['name'])['group']);if(0x0===_0x52afce['length'])return;_0x52afce['sort']((_0xb4a7c2,_0x521a90)=>{const _0x2f825f=_0xb4a7c2['data']['oldRange'],_0xff4b83=_0x521a90['data']['oldRange'];return null===_0x2f825f&&null===_0xff4b83?0x0:null===_0x2f825f&&null!==_0xff4b83?-0x1:null!==_0x2f825f&&null===_0xff4b83?0x1:_0x2f825f['start']['isBefore'](_0xff4b83['start'])?-0x1:0x1;});const _0x54acd5=new Set(),_0x3a993b=new Set();for(const {name:_0x33023f,data:_0x4b56e2}of _0x52afce){const {id:_0x17bfa5}=it(_0x33023f);if(null===_0x4b56e2['oldRange']){const _0xd44182=this['_handleNewSuggestionMarker'](_0x33023f);_0x3a993b['add'](_0xd44182);}else{const _0x3586e4=this['_suggestions']['get'](_0x17bfa5);null!==_0x4b56e2['newRange']||_0x3586e4['isInContent']?(_0x54acd5['add'](_0x3586e4['head']),_0x3a993b['add'](_0x3586e4)):this['_removeSuggestion'](_0x3586e4);}}_0x3a993b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3a993b);for(const _0x1499dd of _0x54acd5)this['fire']('suggestionChanged',_0x1499dd);}),_0x5a81b7['model']['on']('applyOperation',(_0x451530,_0x3f5ec6)=>{const _0x3844a4=_0x3f5ec6[0x0];if(!this['_suggestions']['size'])return;if(!_0x3844a4['isDocumentOperation'])return;if(_0x3844a4['batch']['isUndo']||!_0x3844a4['batch']['isLocal'])return;let _0x25df7e,_0xce6b45;switch(_0x3844a4['type']){case'insert':_0x25df7e=_0x5a81b7['model']['createPositionAt'](_0x3844a4['position']),_0xce6b45=_0x25df7e['getShiftedBy'](_0x3844a4['howMany']);break;case'split':_0x25df7e=_0x5a81b7['model']['createPositionAt'](_0x3844a4['splitPosition']),_0xce6b45=_0x5a81b7['model']['createPositionAt'](_0x3844a4['moveTargetPosition']);break;case'move':_0x25df7e=_0x5a81b7['model']['createPositionAt'](_0x3844a4['targetPosition']),_0xce6b45=_0x25df7e['getShiftedBy'](_0x3844a4['howMany']);break;default:return;}const _0x26aff8=_0x5a81b7['model']['createRange'](_0x25df7e,_0xce6b45);_0x5a81b7['model']['change'](()=>{for(const {suggestion:_0x3ce5c2,meta:_0x52b47e}of this['_findSuggestions'](_0x26aff8)){if(_0x3ce5c2['isMultiRange'])continue;if('formatInline'==_0x3ce5c2['type'])continue;const _0x564c74=this['_getAttributeKey'](_0x3ce5c2);if(_0x564c74&&this['_suggestionsConversion']['isBlockAttribute'](_0x564c74)&&'split'!=_0x3844a4['type'])continue;const _0x2d695c=_0x3ce5c2['data']&&_0x3ce5c2['data']['multipleBlocks'];('formatBlock'!=_0x3ce5c2['type']||'split'==_0x3844a4['type']&&!_0x2d695c)&&(_0x52b47e['containsRangeInObject']||'insertion'==_0x3ce5c2['type']&&_0x52b47e['isOwn']||_0x3ce5c2['getFirstRange']()['containsRange'](_0x26aff8)&&this['_breakSuggestionMarker'](_0x3ce5c2,_0x25df7e,_0xce6b45));}});},{'priority':'lowest'}),_0x5a81b7['model']['on']('deleteContent',(_0x3912d9,_0xc9f56f)=>{const _0x4565ca=_0xc9f56f[0x0],_0x3bb406=_0xc9f56f[0x1];if(_0x3bb406&&_0x3bb406['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4565ca['isCollapsed'])return;const _0x1021e8=_0x5a81b7['model']['schema'],{start:_0x24cfd2,end:_0x1b4d37}=_0x4565ca['getFirstRange'](),_0x5e436a=_0x24cfd2['nodeAfter']&&_0x1021e8['isLimit'](_0x24cfd2['nodeAfter'])?null:_0x1021e8['getNearestSelectionRange'](_0x24cfd2,'forward'),_0x55760f=_0x1b4d37['nodeBefore']&&_0x1021e8['isLimit'](_0x1b4d37['nodeBefore'])?null:_0x1021e8['getNearestSelectionRange'](_0x1b4d37,'backward'),_0x22890f=_0x5a81b7['model']['createRange'](_0x5e436a?_0x5e436a['start']:_0x24cfd2,_0x55760f?_0x55760f['end']:_0x1b4d37);_0x5a81b7['model']['change'](_0x94ed0=>{this['markDeletion'](_0x22890f);const _0x2e840e=_0x5a81b7['model']['schema']['getNearestSelectionRange'](_0x22890f['start']);_0x4565ca['is']('documentSelection')?_0x94ed0['setSelection'](_0x2e840e):_0x4565ca['setTo'](_0x2e840e);}),_0x3912d9['stop']();},{'priority':_0x20248e['normal']+0xa}),_0x5a81b7['model']['on']('insertContent',(_0x20bd8d,_0x3155c6)=>{const _0x1777b6=_0x3155c6[_0x3155c6['length']-0x1];_0x1777b6&&_0x1777b6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5a81b7['model']['change'](()=>{let _0x1ca2aa=_0x5a81b7['model']['insertContent'](_0x3155c6[0x0],_0x3155c6[0x1],_0x3155c6[0x2],{'forceDefaultExecution':!0x0});if(!_0x1ca2aa)return;_0x20bd8d['return']=_0x1ca2aa['clone']();const _0x2a4047=_0x1ca2aa['end']['nodeBefore'],_0x54870d=_0x5a81b7['model']['schema'];_0x2a4047&&_0x54870d['isBlock'](_0x2a4047)&&!_0x54870d['isObject'](_0x2a4047)&&(_0x1ca2aa=_0x5a81b7['model']['createRange'](_0x1ca2aa['start'],_0x5a81b7['model']['createPositionAt'](_0x2a4047,'end'))),this['markInsertion'](_0x1ca2aa);}),_0x20bd8d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x37eb82=new It(_0x5a81b7,this['_suggestions']);_0x5a81b7['commands']['add']('acceptSuggestion',_0x37eb82),this['enableCommand']('acceptSuggestion');const _0x23345c=new At(_0x5a81b7,this['_suggestions']);_0x5a81b7['commands']['add']('discardSuggestion',_0x23345c),this['enableCommand']('discardSuggestion'),_0x5a81b7['commands']['add']('acceptAllSuggestions',new St(_0x5a81b7,_0x37eb82,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5a81b7['commands']['add']('discardAllSuggestions',new St(_0x5a81b7,_0x23345c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5a81b7['commands']['add']('acceptSelectedSuggestions',new Mt(_0x5a81b7,_0x37eb82,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5a81b7['commands']['add']('discardSelectedSuggestions',new Mt(_0x5a81b7,_0x23345c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x46179b=_0x5a81b7['plugins']['get'](_0x3ed633);this['listenTo'](_0x46179b,'addComment',(_0x1df1ee,{threadId:_0xc5457e})=>{const _0x368b7c=this['_suggestions']['get'](_0xc5457e);_0x368b7c&&_0x368b7c['commentThread']&&0x1===_0x368b7c['commentThread']['length']&&this['_updateSuggestionData'](_0xc5457e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x46179b,'removeComment',(_0x3f9662,{threadId:_0x102fc1})=>{const _0x491c3d=this['_suggestions']['get'](_0x102fc1);_0x491c3d&&_0x491c3d['commentThread']&&!_0x491c3d['commentThread']['length']&&this['_updateSuggestionData'](_0x102fc1,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x59c36d){const _0x32f510='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x428209=0x797b8,_0x3280ff={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x53ebf7(_0x2c37b3){const _0x29f332=new window['Promise'](_0x17e94a=>{_0x2c37b3['once']('ready',_0x17e94a);}),_0x36a6a1=window['Date']['now'](),_0x52cb04=_0x2c37b3['config']['get']('licenseKey');async function _0x404ad6(){let _0xa6fff,_0x480581=null,_0x141450=null;try{return'GPL'==_0x52cb04?'NotAllowed':(_0xa6fff=_0x38cc0b(),_0xa6fff?(_0xa6fff['usageEndpoint']&&(_0x141450=_0x2594c2(_0xa6fff['usageEndpoint'],_0xa6fff['jti'])),await _0x5c63bf()?_0x2bc0e5()?_0x2dd294()?'Expired':_0x46b3fd()?('evaluation'==_0xa6fff['licenseType']&&(_0x480581=_0x410a23('EvaluationLimit')),await _0x1c60aa()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x2dd294(){const _0x43b178=['evaluation','trial']['includes'](_0xa6fff['licenseType'])?_0x36a6a1/0x3e8:0xe10*_0x428209;return _0xa6fff['exp']<_0x43b178;}function _0x2bc0e5(){const _0xd1aa49=_0xa6fff['features'];if(!_0xd1aa49)return!0x1;if(_0xd1aa49['includes']('*'))return!0x0;if(_0xd1aa49['includes']('TC'))return!0x0;if(_0xd1aa49['includes']('RTC')){if(_0x327577())return!0x0;if(_0x4a7fbf()||_0x42a77f())return!0x0;}return!0x1;}function _0x46b3fd(){const _0x9569bd=_0xa6fff['licensedHosts'];if(!_0x9569bd||0x0==_0x9569bd['length'])return!0x0;const {hostname:_0x49b81c}=new URL(window['location']['href']);if(_0x9569bd['includes'](_0x49b81c))return!0x0;const _0x389de1=_0x49b81c['split']('.');return _0x9569bd['filter'](_0x3ffff0=>_0x3ffff0['includes']('*'))['map'](_0x47cb1c=>_0x47cb1c['split']('.'))['filter'](_0x1181ff=>_0x1181ff['length']<=_0x389de1['length'])['map'](_0x2411ba=>Array(_0x389de1['length']-_0x2411ba['length'])['fill']('*'===_0x2411ba[0x0]?'*':'')['concat'](_0x2411ba))['some'](_0x5a06ca=>_0x389de1['every']((_0x200c97,_0xf17675)=>_0x5a06ca[_0xf17675]===_0x200c97||'*'===_0x5a06ca[_0xf17675]));}function _0x1c60aa(){return _0x480581&&_0x141450?new window['Promise']((_0x129f25,_0x3a4805)=>{_0x480581['then'](_0x129f25,_0x3a4805),_0x141450['then'](_0x458af0=>{'Valid'!=_0x458af0&&_0x129f25(_0x458af0);},_0x3a4805);}):_0x480581||_0x141450||'Valid';}}function _0x2594c2(_0x59ff94,_0x5af24f){return new window['Promise'](_0x79a0f3=>{if(_0x38e687())return _0x79a0f3('Valid');_0x13ed94(),_0x2c37b3['decorate']('_sendUsageRequest');let _0x50835b=!0x1;const _0x2f29d1=_0x41fde1();function _0x1d4572(_0x203a44){return!!_0x203a44&&('object'==typeof _0x203a44||'function'==typeof _0x203a44)&&'function'==typeof _0x203a44['then']&&'function'==typeof _0x203a44['catch'];}function _0x3f345(_0x55bad5){_0xb915bd(_0x55bad5)['then'](_0x1aa362=>_0x1aa362&&'ok'==_0x1aa362['status']?_0x11e19b(_0x40c120(_0x2f29d1+_0x5af24f))!=_0x1aa362['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xa3741d=>(_0x9cbce1(),_0xa3741d),()=>{const _0x2323e7=_0x18b73e();return null==_0x2323e7?(_0x9cbce1(),'Valid'):_0x36a6a1-_0x2323e7>0x240c8400?'UsageLimit':'Valid';})['then'](_0x79a0f3)['catch'](()=>{_0x79a0f3('UsageLimit');});const _0x222011=0x36ee80;function _0x9cbce1(){const _0xc8fc52='llct-'+_0x11e19b(_0x40c120(_0x59ff94)),_0x341544=_0x268bbe(_0x11e19b(window['Math']['ceil'](_0x36a6a1/_0x222011)));window['localStorage']['setItem'](_0xc8fc52,_0x341544);}function _0x18b73e(){const _0xcb194='llct-'+_0x11e19b(_0x40c120(_0x59ff94)),_0x5168e0=window['localStorage']['getItem'](_0xcb194);return _0x5168e0?window['parseInt'](_0x268bbe(_0x5168e0),0x10)*_0x222011:null;}function _0xb915bd(_0x55e171){return new window['Promise']((_0x5a5617,_0x3c003b)=>{_0x55e171['then'](_0x5a5617,_0x3c003b),window['setTimeout'](_0x3c003b,0x1d4c0);});}}_0x2c37b3['on']('_sendUsageRequest',(_0x26f056,_0x455b2f)=>{if(_0x455b2f[0x0]!=_0x59ff94)return _0x79a0f3('UsageLimit');_0x455b2f[0x1]={..._0x455b2f[0x1],'requestId':_0x2f29d1};},{'priority':'high'}),_0x2c37b3['on']('_sendUsageRequest',_0x23a42d=>{_0x1d4572(_0x23a42d['return'])&&(_0x50835b=!0x0,_0x3f345(_0x23a42d['return']));},{'priority':'low'}),_0x29f332['then'](()=>{_0x50835b||_0x79a0f3('UsageLimit');});});function _0x38e687(){return'auto'==_0x2c37b3['editing']['view']['_overlayModeHint'];}function _0x13ed94(){_0x2c37b3['editing']['view']['_overlayModeHint']='auto';}}function _0x410a23(_0x439869){const _0x2a55b1=[new window['Promise'](_0x45f2b1=>setTimeout(_0x45f2b1,0x93ecc)),_0x29f332['then'](()=>new window['Promise'](_0x4f1d25=>{let _0x5490ab=0x0;_0x2c37b3['model']['on']('applyOperation',(_0x18201d,_0xf3f8a8)=>{_0xf3f8a8[0x0]['isDocumentOperation']&&_0x5490ab++,0x5e8==_0x5490ab&&(_0x4f1d25(),_0x18201d['off']());});}))];return window['Promise']['race'](_0x2a55b1)['then'](()=>_0x439869);}async function _0x14fe8a(){await _0x29f332,_0x2c37b3['model']['change']=_0x2be0b4,_0x2c37b3['model']['enqueueChange']=_0x2be0b4,_0x2c37b3['enableReadOnlyMode']('model');}function _0x327577(){return _0x2bccaa('WebSocketGateway')&&'connected'==_0x10e876('WebSocketGateway')['state'];}function _0x4a7fbf(){return _0x2bccaa('RevisionViewerIntegration');}function _0x42a77f(){return _0x2bccaa('TrackChangesDataGetter');}function _0x5d17ab(_0x1328cd){const _0x1ea195=_0x5a910d();_0x2c37b3[_0x1ea195]='trackChangesLicenseKey'+_0x1328cd,'Valid'!=_0x1328cd&&_0x14fe8a();}function _0x5a910d(){const _0x2db122=window['String'](window['performance']['now']())['replace']('.','');let _0x89c6b8='U';for(let _0x163e0e=0x0;_0x163e0e<_0x2db122['length'];_0x163e0e+=0x2){let _0x5d9df1=window['parseInt'](_0x2db122['substring'](_0x163e0e,_0x163e0e+0x2));_0x5d9df1>=0x3e&&(_0x5d9df1-=0x3e),_0x89c6b8+=_0x32f510[_0x5d9df1];}return _0x89c6b8;}function _0x38cc0b(){const _0x144adf=_0x52cb04['split']('.');if(0x3!=_0x144adf['length'])return null;return _0x149d97(_0x144adf[0x1]);function _0x149d97(_0x32db9f){const _0x428c79=_0x302aa4(_0x32db9f);return _0x428c79&&_0x4a242b()?_0x428c79:null;function _0x4a242b(){const _0x4b4726=_0x428c79['jti'],_0x35a1a4=window['parseInt'](_0x4b4726['substring'](_0x4b4726['length']-0x8),0x10),_0x34eb88={..._0x428c79,'jti':_0x4b4726['substring'](0x0,_0x4b4726['length']-0x8)};return delete _0x34eb88['vc'],_0x40c120(_0x34eb88)==_0x35a1a4;}}}async function _0x5c63bf(){let _0x545906=!0x0;try{const [_0x110b99,_0x220a6c,_0x5a2bd6]=_0x52cb04['split']('.');return _0x447382(_0x110b99),await _0xac1fa7(_0x110b99,_0x220a6c,_0x5a2bd6),_0x545906;}catch{return!0x1;}function _0x447382(_0x5ca249){const _0x24bbe6=_0x302aa4(_0x5ca249);_0x24bbe6&&'ES256'==_0x24bbe6['alg']||(_0x545906=!0x1);}async function _0xac1fa7(_0x6387b2,_0x50d332,_0x54ce7f){const _0x35ba82=window['Uint8Array']['from'](_0x744b2d(_0x54ce7f),_0x4428fe=>_0x4428fe['charCodeAt'](0x0)),_0xf8a7ed=new window['TextEncoder']()['encode'](_0x6387b2+'.'+_0x50d332),_0x41d38d=window['crypto']['subtle'];if(!_0x41d38d)return;const _0x2fb908=await _0x41d38d['importKey']('jwk',_0x3280ff,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x41d38d['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2fb908,_0x35ba82,_0xf8a7ed)||(_0x545906=!0x1);}}function _0x302aa4(_0x10781a){return _0x10781a['startsWith']('ey')?JSON['parse'](_0x744b2d(_0x10781a)):null;}function _0x744b2d(_0x1079d4){return window['atob'](_0x1079d4['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x40c120(_0x32acf7){let _0x3660f8=0x1505;function _0x492f71(_0x428be6){for(let _0x5a0de8=0x0;_0x5a0de8<_0x428be6['length'];_0x5a0de8++){const _0x1cd876=_0x428be6['charCodeAt'](_0x5a0de8);_0x3660f8=(_0x3660f8<<0x5)+_0x3660f8+_0x1cd876,_0x3660f8&=_0x3660f8;}}function _0x53fa40(_0x1693c4){Array['isArray'](_0x1693c4)?_0x1693c4['forEach'](_0x53fa40):_0x1693c4&&'object'==typeof _0x1693c4?Object['entries'](_0x1693c4)['sort']()['forEach'](([_0x411079,_0x135359])=>{_0x492f71(_0x411079),_0x53fa40(_0x135359);}):_0x492f71(window['String'](_0x1693c4));}return _0x53fa40(_0x32acf7),_0x3660f8>>>0x0;}function _0x11e19b(_0xb3eb73){return _0xb3eb73['toString'](0x10)['padStart'](0x8,'0');}function _0x268bbe(_0x2c7c85){return _0x2c7c85['split']('')['reverse']()['join']('');}function _0x2bccaa(_0x58a01a){return _0x2c37b3['plugins']['has'](_0x58a01a);}function _0x10e876(_0x302ed8){return _0x2c37b3['plugins']['get'](_0x302ed8);}function _0x2be0b4(){}_0x5d17ab(await _0x404ad6());}_0x53ebf7(_0x59c36d['editor']);}(this);}set adapter(_0x2f8cd4){if(this['_adapter'])throw new _0x579d79('track-changes-adapter-already-set',this);this['_adapter']=_0x2f8cd4;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3a10ad=!0x1,toJSON:_0xec9ba9=!0x1}={}){const _0x4b854b=[];for(const _0x47e05a of this['_suggestions']['values']())_0x3a10ad&&!_0x47e05a['isInContent']||_0x4b854b['push'](_0x47e05a);return _0xec9ba9?_0x4b854b['map'](_0x256d23=>_0x256d23['toJSON']()):_0x4b854b;}getSuggestion(_0x28fd6){const _0x391b03=this['_suggestions']['get'](_0x28fd6);if(!_0x391b03)throw new _0x579d79('track-changes-suggestion-not-found',this);return _0x391b03;}hasSuggestion(_0x4e3e5d){return this['_suggestions']['has'](_0x4e3e5d);}addSuggestionData(_0x5d439a){const {authorId:_0x366b4f,id:_0x180a72,originalSuggestionId:_0xa6abe5,attributes:_0x5b03ea}=_0x5d439a,[_0x5af7a9,_0x35f50e]=_0x5d439a['type']['split'](':'),_0x598e82=this['_suggestions']['get'](_0x180a72)||this['_createSuggestion'](_0x5af7a9,_0x35f50e,_0x180a72,_0x366b4f,_0x5b03ea,_0xa6abe5);if(this['_addThreadToSuggestion'](_0x598e82),this['_checkSuggestionCorrectness'](_0x598e82,_0x5af7a9,_0x35f50e||null,_0x366b4f),_0x598e82['createdAt']=_0x5d439a['createdAt'],_0x598e82['_isDataLoaded']=!0x0,_0x5b03ea&&_0x5b03ea['@external']){const _0x3f93b5=_0x5b03ea['@external'],_0x5798c3=this['_getExternalAuthor'](_0x3f93b5['authorName']);_0x598e82['authoredAt']=_0x3f93b5['createdAt'],_0x598e82['author']=_0x5798c3;}else _0x598e82['authoredAt']=_0x5d439a['createdAt'];switch(_0x5d439a['data']&&(_0x598e82['data']=_0x5d439a['data']),_0x5d439a['attributes']&&(_0x598e82['attributes']=_0x5d439a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x598e82['_saved']=!0x0),this['_suggestionState']['get'](_0x598e82)){case'notReady':this['_suggestionState']['set'](_0x598e82,'dataReady');break;case'markerReady':_0x598e82['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x598e82])),this['_refreshSuggestionsChain'](new Set([_0x598e82])),this['_suggestionState']['set'](_0x598e82,'ready'),this['fire']('suggestionLoaded',_0x598e82)):this['_suggestionState']['set'](_0x598e82,'removed');}return _0x598e82;}acceptSuggestion(_0x1c1a67){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2527d7 of _0x1c1a67['getAllAdjacentSuggestions']())_0x2527d7['accept']();});});}discardSuggestion(_0x23de11){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x322df1 of _0x23de11['getAllAdjacentSuggestions']())_0x322df1['discard']();});});}['enableCommand'](_0x4fd3a9,_0x3a050d){const _0xb6551c=this['editor']['commands']['get'](_0x4fd3a9);if(!_0xb6551c)throw new _0x579d79('track-changes-command-not-found',this,{'commandName':_0x4fd3a9});if(this['_enabledCommands']['has'](_0xb6551c))throw new _0x579d79('track-changes-enable-command-twice',this,{'commandName':_0x4fd3a9});this['_enabledCommands']['add'](_0xb6551c),_0x3a050d&&_0xb6551c['on']('execute',(_0x1b6054,_0x139580)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x139580['length']>0x0&&_0x139580[_0x139580['length']-0x1]&&_0x139580[_0x139580['length']-0x1]['forceDefaultExecution']?_0x139580['pop']():(_0x1b6054['return']=_0x3a050d((..._0x5c9a1e)=>_0xb6551c['execute'](..._0x5c9a1e,{'forceDefaultExecution':!0x0}),..._0x139580),_0x1b6054['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x2cb8a9){let _0x264ac1,_0x14eeb7;const _0x43636d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x264ac1=_0x2cb8a9();}catch(_0x1c8cd7){_0x14eeb7=_0x1c8cd7;}return _0x43636d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x14eeb7&&_0x579d79['rethrowUnexpectedError'](_0x14eeb7,this),_0x264ac1;}markInsertion(_0x10297d,_0x445d6b=null,_0x501a17={}){if(_0x10297d['isCollapsed'])return null;const _0x4f034=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x501a17['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x594285,meta:_0x395f1f}of this['_findSuggestions'](_0x10297d,'insertion'))if(_0x395f1f['isOwn']){if(!_0x395f1f['isNextTo']){if(_0x395f1f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0x594285,_0x501a17))continue;return _0x594285;}if(bn(_0x594285,_0x501a17))return _0x594285;this['_breakSuggestionMarker'](_0x594285,_0x10297d['start'],_0x10297d['end']);break;}if(_0x445d6b==_0x594285['subType']&&bn(_0x594285,_0x501a17)){const _0x487b25=_0x594285['getFirstRange']();return _0x487b25['start']['isEqual'](_0x10297d['end'])?this['_setSuggestionRange'](_0x594285,this['_model']['createRange'](_0x10297d['start'],_0x487b25['end'])):this['_setSuggestionRange'](_0x594285,this['_model']['createRange'](_0x487b25['start'],_0x10297d['end'])),_0x594285;}}const _0x306819=_0x41fde1(),_0x37387a=_0x4f034['id'],_0xa6fa77=_0x445d6b?'insertion:'+_0x445d6b:'insertion',_0x498802=this['_setSuggestionData']({'id':_0x306819,'type':_0xa6fa77,'createdAt':new Date(),'authorId':_0x37387a,'attributes':_0x501a17});return this['_addSuggestionMarker'](_0xa6fa77,_0x306819,_0x37387a,_0x10297d),_0x498802;}markMultiRangeInsertion(_0x2acfcf,_0x176a4e='multi',_0x1aaeac={}){const _0x614841=this['editor']['plugins']['get']('Users')['me'],_0x27aa21=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x176a4e,'join');this['_trackingSessionId']&&(_0x1aaeac['trackingSessionId']=this['_trackingSessionId']);for(const _0xf2543a of this['getSuggestions']())if(_0xf2543a['author']['id']==_0x614841['id']&&'insertion'==_0xf2543a['type']&&_0xf2543a['subType']==_0x176a4e&&bn(_0xf2543a,_0x1aaeac)&&(_0x27aa21(_0xf2543a['getRanges'](),_0x2acfcf)||_0x27aa21(_0x2acfcf,_0xf2543a['getRanges']()))){for(const _0x4ddbef of _0x2acfcf)_0xf2543a['addRange'](_0x4ddbef);return _0xf2543a;}for(const {suggestion:_0x3164be,meta:_0x11dc04}of this['_findSuggestions'](_0x2acfcf,'insertion')){if(!_0x11dc04['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x11dc04['containsRangeInObject'])continue;if(!bn(_0x3164be,_0x1aaeac))continue;let _0x44390a=!0x0;for(const _0x3c64d7 of _0x3164be['getRanges']())for(const _0x396b2e of _0x2acfcf)if(!_0x3c64d7['containsRange'](_0x396b2e)){_0x44390a=!0x1;break;}if(_0x44390a)return _0x3164be;}const _0x1457d0=_0x41fde1(),_0x477a04=_0x614841['id'],_0x3fa2f2='insertion:'+_0x176a4e,_0x4d72ed=this['_setSuggestionData']({'id':_0x1457d0,'type':_0x3fa2f2,'createdAt':new Date(),'authorId':_0x477a04,'attributes':_0x1aaeac});for(const _0x43d0ff of _0x2acfcf)this['_addSuggestionMarker'](_0x3fa2f2,_0x1457d0,_0x477a04,_0x43d0ff,wt['getMultiRangeId']());return _0x4d72ed;}markInlineFormat(_0xcb5387,_0x202f16,_0x2aea55=null,_0x43e947={}){if(_0x2aea55=_0x2aea55||mn(_0x202f16),_0xcb5387['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x43e947['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4f0f38=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2aea55,'accept');return this['forceDefaultExecution'](()=>_0x4f0f38([_0xcb5387],_0x202f16,_0x43e947)),null;}const _0xcd37dc=this['editor']['plugins']['get']('Users')['me'],_0x2ffd73=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x491775,meta:_0x59c0c4}of this['_findSuggestions'](_0xcb5387,'insertion'))_0x59c0c4['isOwn']&&!_0x59c0c4['isInsideObject']&&_0x2ffd73['push'](..._0x491775['getRanges']());}const _0x419b4f=function(_0x58caf3,_0x15abcd){const _0x584717=[];for(const _0xba45fc of _0x15abcd){const _0x24274e=_0x58caf3['getIntersection'](_0xba45fc);_0x24274e&&_0x584717['push'](_0x24274e);}return _0x584717;}(_0xcb5387,_0x2ffd73),_0x44d3cc=function(_0x380b56,_0x47358a){const _0x24bfe8=[_0x380b56];for(const _0x213b82 of _0x47358a){let _0x496177=0x0;for(;_0x496177<_0x24bfe8['length'];){const _0x5e94eb=_0x24bfe8[_0x496177]['getDifference'](_0x213b82);_0x24bfe8['splice'](_0x496177,0x1,..._0x5e94eb),_0x496177+=_0x5e94eb['length'];}}return _0x24bfe8;}(_0xcb5387,_0x2ffd73);_0x419b4f['length']&&this['_model']['change'](()=>{for(const _0x1192cb of _0x419b4f){const _0x34e9b1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2aea55,'accept');this['forceDefaultExecution'](()=>_0x34e9b1([_0x1192cb],_0x202f16,_0x43e947));}});for(const _0x569a42 of _0x44d3cc){let _0x12ca2d=null,_0x3fc6bd=_0x569a42['start'],_0x21097b=_0x569a42['end'];for(const {suggestion:_0x4521c9,meta:_0x2c159f}of this['_findSuggestions'](_0x569a42,'formatInline')){if(!_0x2c159f['isOwn'])continue;if(_0x4521c9['subType']!=_0x2aea55)continue;if(!bn(_0x4521c9,_0x43e947))continue;const _0x5b92c0=_0x4521c9['getFirstRange']();if(_0x5b92c0['containsRange'](_0x569a42,!0x0))return null;_0x3fc6bd=_0x3fc6bd['isBefore'](_0x5b92c0['start'])?_0x3fc6bd:_0x5b92c0['start'],_0x21097b=_0x21097b['isAfter'](_0x5b92c0['end'])?_0x21097b:_0x5b92c0['end'],_0x12ca2d?_0x5b92c0['start']['isBefore'](_0x12ca2d['getFirstRange']()['start'])?(_0x12ca2d['removeMarkers'](),_0x12ca2d=_0x4521c9):_0x4521c9['removeMarkers']():_0x12ca2d=_0x4521c9;}const _0x224f6f=this['_model']['createRange'](_0x3fc6bd,_0x21097b);if(_0x12ca2d)this['_setSuggestionRange'](_0x12ca2d,_0x224f6f);else{const _0x96ba48=_0x41fde1(),_0x4c6f1f=_0xcd37dc['id'];this['_setSuggestionData']({'id':_0x96ba48,'type':'formatInline:'+_0x2aea55,'data':_0x202f16,'createdAt':new Date(),'authorId':_0x4c6f1f,'attributes':_0x43e947}),this['_addSuggestionMarker']('formatInline:'+_0x2aea55,_0x96ba48,_0x4c6f1f,_0x224f6f);}}return null;}markBlockFormat(_0x4e51e7,_0xa2e76d,_0x2defc0=[],_0x517c70=null,_0x5ecddb={}){_0xa2e76d['formatGroupId']||(_0xa2e76d['formatGroupId']=_0xa2e76d['commandName']),_0xa2e76d['multipleBlocks']=_0x4e51e7['is']('range'),_0x517c70=_0x517c70||mn(_0xa2e76d);const _0x5ac9e6=_0x2defc0['map'](_0x51a989=>Ln(_0x51a989,this['_model'])),_0x33316b=_0x4e51e7['is']('range')?_0x4e51e7:Ln(_0x4e51e7,this['_model']);if(this['_trackingSessionId']&&(_0x5ecddb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4627f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517c70,'accept');return this['forceDefaultExecution'](()=>_0x4627f7([_0x33316b],_0xa2e76d,_0x5ecddb)),null;}_0x5ac9e6['push'](_0x33316b);let _0x47ae41=!0x0;for(const _0x4a6a98 of _0x5ac9e6)if(!this['_rangeIsInLocalUserInsertion'](_0x4a6a98)){_0x47ae41=!0x1;break;}if(_0x47ae41&&'always'!==this['_trackFormatChanges']){const _0x3a0b17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x517c70,'accept');return this['forceDefaultExecution'](()=>_0x3a0b17([_0x33316b],_0xa2e76d,_0x5ecddb)),null;}let _0x2b7132=null,_0x593451=_0x33316b['start'],_0x1c37d1=_0x33316b['end'];for(const {suggestion:_0x488094,meta:_0x409a35}of this['_findSuggestions'](_0x33316b,'formatBlock')){if(!_0x409a35['isOwn'])continue;if(_0x409a35['isNextTo']||_0x409a35['containsRangeInObject']||_0x409a35['isInsideObject'])continue;if(_0x488094['data']['formatGroupId']!=_0xa2e76d['formatGroupId'])continue;if(!bn(_0x488094,_0x5ecddb))continue;const _0x3e5a1f=_0x488094['getFirstRange']();if(_0x488094['subType']==_0x517c70){if(_0x3e5a1f['containsRange'](_0x33316b,!0x0))return null;_0x593451=_0x593451['isBefore'](_0x3e5a1f['start'])?_0x593451:_0x3e5a1f['start'],_0x1c37d1=_0x1c37d1['isAfter'](_0x3e5a1f['end'])?_0x1c37d1:_0x3e5a1f['end'],_0x2b7132?_0x3e5a1f['start']['isBefore'](_0x2b7132['getFirstRange']()['start'])?(_0x2b7132['removeMarkers'](),_0x2b7132=_0x488094):_0x488094['removeMarkers']():_0x2b7132=_0x488094;}else{const _0xf916a0=_0x33316b['getIntersection'](_0x3e5a1f);this['_cutOutSuggestionMarker'](_0x488094,_0xf916a0);}}const _0x1da5b9=this['editor']['plugins']['get']('Users')['me'],_0x5d45aa=_0x41fde1(),_0x563f1f=_0x1da5b9['id'];if(_0x2b7132)return this['_setSuggestionRange'](_0x2b7132,this['_model']['createRange'](_0x593451,_0x1c37d1)),_0x2b7132;{const _0x4153ee=this['_setSuggestionData']({'id':_0x5d45aa,'type':'formatBlock:'+_0x517c70,'data':_0xa2e76d,'createdAt':new Date(),'authorId':_0x563f1f,'attributes':_0x5ecddb});return this['_addSuggestionMarker']('formatBlock:'+_0x517c70,_0x5d45aa,_0x563f1f,this['_model']['createRange'](_0x593451,_0x1c37d1)),_0x4153ee;}}markMultiRangeBlockFormat(_0x1a8ec9,_0x403842,_0x345839=[],_0x553f14=null,_0x238aa1={}){_0x403842['formatGroupId']||(_0x403842['formatGroupId']=_0x403842['commandName']);const _0x43f832=_0x1a8ec9[0x0];_0x403842['multipleBlocks']=_0x43f832['is']('range'),_0x553f14=_0x553f14||mn(_0x403842);const _0x13d531=_0x345839['map'](_0x18a3a7=>Ln(_0x18a3a7,this['_model'])),_0x3bd0e5=_0x43f832['is']('range')?_0x1a8ec9:_0x1a8ec9['map'](_0x478226=>Ln(_0x478226,this['_model']));if(this['_trackingSessionId']&&(_0x238aa1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xcc28ce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x553f14,'accept');return this['forceDefaultExecution'](()=>_0xcc28ce(_0x3bd0e5,_0x403842,_0x238aa1)),null;}_0x13d531['push'](..._0x3bd0e5);let _0x2cb621=!0x0;for(const _0x16e5dc of _0x13d531)if(!this['_rangeIsInLocalUserInsertion'](_0x16e5dc)){_0x2cb621=!0x1;break;}if(_0x2cb621&&'always'!==this['_trackFormatChanges']){const _0x2ec15b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x553f14,'accept');return this['forceDefaultExecution'](()=>_0x2ec15b(_0x3bd0e5,_0x403842,_0x238aa1)),null;}const _0x5c83bb=this['editor']['plugins']['get']('Users')['me'];for(const _0x17dd06 of this['getSuggestions']()){const _0x3fec86=_0x17dd06['data'];if(_0x17dd06['author']['id']!=_0x5c83bb['id'])continue;if('formatBlock'!=_0x17dd06['type']||_0x3fec86['formatGroupId']!=_0x403842['formatGroupId'])continue;if(!bn(_0x17dd06,_0x238aa1))continue;const _0x37d1e8=_0x17dd06['subType']==_0x553f14;for(let _0x24ba1f=0x0;_0x24ba1f<_0x3bd0e5['length'];_0x24ba1f++){const _0xe2f898=_0x3bd0e5[_0x24ba1f];for(const _0x524faf of _0x17dd06['getMarkers']()){const _0x8e2a82=_0x524faf['getRange']();if(_0xe2f898['isEqual'](_0x8e2a82)){_0x37d1e8?(_0x3bd0e5['splice'](_0x24ba1f,0x1),_0x24ba1f--):_0x17dd06['removeMarker'](_0x524faf['name']);break;}}}}if(0x0==_0x3bd0e5['length'])return null;const _0x2e491a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x553f14,'join');for(const _0x1481d6 of this['getSuggestions']()){const _0x36ad3e=_0x1481d6['data'];if(_0x1481d6['author']['id']==_0x5c83bb['id']&&('formatBlock'==_0x1481d6['type']&&_0x36ad3e['formatGroupId']==_0x403842['formatGroupId']&&_0x1481d6['subType']==_0x553f14&&bn(_0x1481d6,_0x238aa1)&&(_0x2e491a(_0x1481d6['getRanges'](),_0x3bd0e5)||_0x2e491a(_0x3bd0e5,_0x1481d6['getRanges']())))){for(const _0x3c8c93 of _0x3bd0e5)_0x1481d6['addRange'](_0x3c8c93);return _0x1481d6;}}const _0x29b32e=_0x41fde1(),_0x55baa1=_0x5c83bb['id'],_0x21ed89='formatBlock:'+_0x553f14,_0x32b45c=this['_setSuggestionData']({'id':_0x29b32e,'type':_0x21ed89,'data':_0x403842,'createdAt':new Date(),'authorId':_0x55baa1,'attributes':_0x238aa1});for(const _0x38e421 of _0x3bd0e5)this['_addSuggestionMarker'](_0x21ed89,_0x29b32e,_0x55baa1,_0x38e421,wt['getMultiRangeId']());return _0x32b45c;}markDeletion(_0x1b2689,_0x1ec35c=null,_0xa6f416={}){if(_0x1b2689['isCollapsed'])return null;const _0x713f46=this['editor']['plugins']['get']('Users')['me'],_0x14e662=new ct(_0x1b2689['start'],_0x1b2689['end']);this['_trackingSessionId']&&(_0xa6f416['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3da7eb,meta:_0x11f45d}of this['_findSuggestions'](_0x14e662,'insertion'))if(_0x11f45d['isOwn']&&!_0x11f45d['isNextTo']){if(_0x3da7eb['isMultiRange']){const _0x2780a3=_0x3da7eb['getRanges']()['filter'](_0x5b1753=>'$graveyard'!=_0x5b1753['root']['rootName']);if(_0x2780a3['every'](_0x3f0dab=>_0x14e662['containsRange'](_0x3f0dab,!0x0))&&_0x3da7eb['discard'](),_0x2780a3['some'](_0x2be606=>_0x2be606['containsRange'](_0x14e662,!0x0))){const _0x1547ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ec35c,'accept');return this['forceDefaultExecution'](()=>_0x1547ba([_0x14e662],null,_0xa6f416)),null;}}else{const _0x2def68=_0x14e662['getIntersection'](_0x3da7eb['getFirstRange']());null!==_0x2def68&&_0x3da7eb['_onDiscard']([_0x2def68],null,_0xa6f416);}}if(_0x14e662['detach'](),_0x14e662['isCollapsed']||'$graveyard'==_0x14e662['root']['rootName'])return null;let _0x4895ab=null,_0x4a674d=_0x14e662['start'],_0x4d6ca1=_0x14e662['end'];const _0x5672a8=this['_findSuggestions'](_0x14e662,'deletion');for(const {suggestion:_0x1a5d43,meta:_0x10c050}of _0x5672a8){const _0x454a68=this['_model']['createRange'](_0x4a674d,_0x4d6ca1);if(_0x10c050['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10c050['containsRangeInObject']&&!_0x10c050['isInsideObject'])){if(_0x1a5d43['isMultiRange']){if(!bn(_0x1a5d43,_0xa6f416))continue;let _0x48e3fc=!0x0;for(const _0x3e2489 of _0x1a5d43['getRanges']()){if(_0x3e2489['containsRange'](_0x454a68,!0x0))return _0x1a5d43;_0x454a68['containsRange'](_0x3e2489)||(_0x48e3fc=!0x1);}_0x48e3fc&&_0x1a5d43['discard']();}else{const _0x2f297f=_0x1a5d43['getFirstRange']();if(_0x2f297f['containsRange'](_0x454a68,!0x0))return _0x1a5d43;if(!bn(_0x1a5d43,_0xa6f416)){_0x454a68['containsRange'](_0x2f297f)?_0x1a5d43['removeMarkers']():_0x2f297f['containsPosition'](_0x4a674d)?_0x4a674d=_0x2f297f['end']:_0x2f297f['containsPosition'](_0x4d6ca1)&&(_0x4d6ca1=_0x2f297f['start']);continue;}_0x4a674d=_0x4a674d['isBefore'](_0x2f297f['start'])?_0x4a674d:_0x2f297f['start'],_0x4d6ca1=_0x4d6ca1['isAfter'](_0x2f297f['end'])?_0x4d6ca1:_0x2f297f['end'],_0xa6f416=Object['assign']({},_0x1a5d43['attributes']),_0x4895ab?_0x2f297f['start']['isBefore'](_0x4895ab['getFirstRange']()['start'])?(_0x4895ab['removeMarkers'](),_0x4895ab=_0x1a5d43):_0x1a5d43['removeMarkers']():_0x4895ab=_0x1a5d43;}}}if(_0x4895ab)return this['_setSuggestionRange'](_0x4895ab,this['_model']['createRange'](_0x4a674d,_0x4d6ca1)),_0x4895ab;{const _0x543b40=_0x41fde1(),_0x268f18=this['_model']['createRange'](_0x4a674d,_0x4d6ca1),_0x4c8aad=_0x713f46['id'],_0x32954d=_0x1ec35c?'deletion:'+_0x1ec35c:'deletion',_0x2ff8ce=this['_setSuggestionData']({'id':_0x543b40,'type':_0x32954d,'createdAt':new Date(),'authorId':_0x4c8aad,'attributes':_0xa6f416});return this['_addSuggestionMarker'](_0x32954d,_0x543b40,_0x4c8aad,_0x268f18),_0x2ff8ce;}}markMultiRangeDeletion(_0x2a3cc1,_0x123f66='multi',_0x32e98d={}){const _0x401d6c=this['editor']['plugins']['get']('Users')['me'],_0x2223a5=_0x2a3cc1['map'](_0xc3c114=>new ct(_0xc3c114['start'],_0xc3c114['end'])),_0x4b2de7=new Set();this['_trackingSessionId']&&(_0x32e98d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x526223,meta:_0x240861}of this['_findSuggestions'](_0x2223a5,'insertion'))_0x240861['isOwn']&&!_0x240861['isNextTo']&&_0x4b2de7['add'](_0x526223);for(const _0x5e92f0 of _0x4b2de7)if(_0x5e92f0['isMultiRange']){const _0x279da0=_0x5e92f0['getRanges']();if(_0x5e92f0['attributes']&&_0x5e92f0['attributes']['skipNestingCheck']||_0x279da0['every'](_0x397f45=>_0x2223a5['some'](_0x1506b8=>_0x1506b8['containsRange'](_0x397f45,!0x0)))&&_0x5e92f0['discard'](),_0x2223a5['every'](_0x248d51=>_0x279da0['some'](_0x406ffa=>_0x406ffa['containsRange'](_0x248d51,!0x0)))){const _0x24524c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123f66,'accept');return this['forceDefaultExecution'](()=>_0x24524c(_0x2a3cc1,null,_0x32e98d)),null;}}else{const _0x3e30fd=_0x5e92f0['getFirstRange']();if(_0x2223a5['some'](_0x2237e5=>_0x2237e5['containsRange'](_0x3e30fd,!0x0))&&_0x5e92f0['discard'](),_0x2223a5['every'](_0xff0059=>_0x3e30fd['containsRange'](_0xff0059,!0x0))){const _0x424a69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123f66,'accept');return this['forceDefaultExecution'](()=>_0x424a69(_0x2223a5,null,_0x32e98d)),null;}}const _0x178409=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x123f66,'join');let _0x514647=null;for(const _0x30eb2e of this['getSuggestions']())if(_0x30eb2e['author']['id']==_0x401d6c['id']&&_0x30eb2e['isInContent']&&'deletion'==_0x30eb2e['type']&&_0x30eb2e['subType']==_0x123f66&&bn(_0x30eb2e,_0x32e98d)&&(_0x178409(_0x30eb2e['getRanges'](),_0x2223a5)||_0x178409(_0x2223a5,_0x30eb2e['getRanges']()))){if(_0x514647){if(_0x30eb2e['commentThread']&&_0x30eb2e['commentThread']['length'])continue;for(const _0x1b9701 of _0x30eb2e['getRanges']())_0x514647['isIntersectingWithRange'](_0x1b9701)||_0x514647['addRange'](_0x1b9701);_0x30eb2e['removeMarkers']();}else{_0x514647=_0x30eb2e;for(const _0x5c7b2f of _0x2223a5)_0x30eb2e['isIntersectingWithRange'](_0x5c7b2f)||_0x30eb2e['addRange'](_0x5c7b2f);}}if(_0x514647)return _0x514647;_0x4b2de7['clear']();for(const {suggestion:_0x43d98a,meta:_0x561dfe}of this['_findSuggestions'](_0x2223a5,'deletion'))_0x561dfe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x561dfe['containsRangeInObject']&&!_0x561dfe['isInsideObject'])&&bn(_0x43d98a,_0x32e98d)&&_0x4b2de7['add'](_0x43d98a);for(const _0x4472ac of _0x4b2de7){const _0x3ea66c=_0x4472ac['getRanges']();if((!_0x32e98d||!_0x32e98d['skipNestingCheck'])&&_0x2223a5['every'](_0x15f1db=>_0x3ea66c['some'](_0xf8436=>_0xf8436['containsRange'](_0x15f1db,!0x0))))return _0x4472ac;_0x4472ac['attributes']&&_0x4472ac['attributes']['skipNestingCheck']||_0x3ea66c['every'](_0x525d3c=>_0x2223a5['some'](_0x4bebde=>_0x4bebde['containsRange'](_0x525d3c,!0x0)))&&_0x4472ac['discard']();}const _0x2778ba=_0x41fde1(),_0x2196b7=_0x401d6c['id'],_0x38e55a='deletion:'+_0x123f66,_0x28b3b9=this['_setSuggestionData']({'id':_0x2778ba,'type':_0x38e55a,'createdAt':new Date(),'authorId':_0x2196b7,'attributes':_0x32e98d});for(const _0x287fbf of _0x2223a5)_0x287fbf['detach'](),_0x287fbf['isCollapsed']||'$graveyard'==_0x287fbf['root']['rootName']||this['_addSuggestionMarker'](_0x38e55a,_0x2778ba,_0x2196b7,_0x287fbf,wt['getMultiRangeId']());return _0x28b3b9;}markAttributeChange(_0x82af14,_0x152973,_0x24cb7b,_0x1af00f,_0x46d663){if(_0x82af14['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xab8f58=this['editor']['plugins']['get']('Users')['me']['id'],_0x4fca81=Array['from'](this['_suggestions']['values']())['filter'](_0x1100cd=>'attribute'==_0x1100cd['type']&&_0x1100cd['data']['key']==_0x152973&&_0x1100cd['isIntersectingWithRange'](_0x82af14));if(this['_trackingSessionId']&&(_0x46d663['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4bfee6=this['_findSuggestions'](_0x82af14,'insertion')['filter'](({meta:_0x5711d1})=>_0x5711d1['isOwn']&&!_0x5711d1['isInsideObject']&&!_0x5711d1['isNextTo'])['map'](({suggestion:_0x1283f2})=>_0x1283f2);_0x4fca81['unshift'](..._0x4bfee6);}const _0x3eba9d=new Map([[_0x82af14,_0x24cb7b]]);for(const _0x544b9e of _0x4fca81){const _0x57d139='attribute'==_0x544b9e['type']?_0x544b9e['data']['oldValue']:void 0x0,_0x34c11c=_0x544b9e['getFirstRange'](),_0x39c502=Array['from'](_0x3eba9d['keys']())['find'](_0x122274=>_0x122274['isIntersecting'](_0x34c11c));if(!_0x39c502)continue;const _0x20e09f=_0x39c502['getDifference'](_0x34c11c);this['_suggestionsConversion']['isBlockAttribute'](_0x152973)&&'insertion'==_0x544b9e['type']&&0x0!=_0x20e09f['length']||(_0x3eba9d['delete'](_0x39c502),_0x20e09f['forEach'](_0x2a315c=>{_0x3eba9d['set'](_0x2a315c,_0x24cb7b);}),'insertion'!=_0x544b9e['type']&&_0x57d139!=_0x1af00f&&_0x3eba9d['set'](_0x39c502['getIntersection'](_0x34c11c),_0x57d139));}const _0x51e478=[];for(const [_0x5bc357,_0x303d3d]of _0x3eba9d){const _0x1a4b32=_0x41fde1(),_0x14a716={'key':_0x152973,'oldValue':_0x303d3d,'newValue':_0x1af00f};_0x152973['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':_0x152973});const _0x225bb9=('attribute:'+_0x152973+'|'+mn({'newValue':_0x1af00f}))['substring'](0x0,0x3c),_0x3f9a3a=this['_setSuggestionData']({'id':_0x1a4b32,'type':_0x225bb9,'data':_0x14a716,'createdAt':new Date(),'authorId':_0xab8f58,'attributes':_0x46d663});_0x51e478['push'](_0x3f9a3a),this['_addSuggestionMarker'](_0x225bb9,_0x1a4b32,_0xab8f58,_0x5bc357);}return _0x51e478;}enableDefaultAttributesIntegration(_0x1f43a7){this['enableCommand'](_0x1f43a7,(_0x1c53a5,..._0x441512)=>{this['recordAttributeChanges'](()=>{_0x1c53a5(..._0x441512);});});}startTrackingSession(_0x3deae3){return this['_trackingSessionId']=void 0x0!==_0x3deae3?_0x3deae3:_0x41fde1(),this['_trackingSessionId'];}_getAttributeKey(_0x940cf8){return'attribute'==_0x940cf8['type']?kn(_0x940cf8['subType']):null;}_applyOperationsAsSuggestions(_0x1dccc4){if(0x0==_0x1dccc4['length'])return;const _0x9dc7fa=this['editor'],_0x28c14d=[],_0x4c9e82=_0xe4bab6=>{const _0x3b6a4e=_0xe4bab6['_aiSource'];return _0x3b6a4e?{'@ai':{'type':_0x3b6a4e}}:{};},_0x2a504d=(_0x51610f,_0x511830,_0x5cdb2e,_0x3791e5)=>{const _0x5f508b=new Set(_0x3791e5['flatMap'](_0x995dbc=>_0x995dbc['getMarkerNames']()));let _0x34d649=!0x1;for(let _0x480ab1=_0x511830;_0x480ab1<_0x51610f['operations']['length'];_0x480ab1++){const _0x353a97=_0x51610f['operations'][_0x480ab1];if('marker'==_0x353a97['type']){if(!_0x5f508b['has'](_0x353a97['name']))continue;_0x34d649=!0x0;}_0x353a97['_aiSource']=_0x5cdb2e;}return _0x34d649;};_0x9dc7fa['model']['change'](_0x5ecec5=>{for(let _0x71c9ce=0x0;_0x71c9ce<_0x1dccc4['length'];_0x71c9ce++){const _0x2c32b9=_0x1dccc4[_0x71c9ce],_0x2cbf9e=_0x2c32b9['_aiSource'];if(_0x2c32b9['baseVersion']=_0x9dc7fa['model']['document']['version'],_0x2c32b9['isDocumentOperation']=!0x0,tt(_0x2c32b9))continue;if(cn(_0x2c32b9)){const _0x295d8c=_0x428eee(_0x2c32b9['newRange'],_0x9dc7fa['model']);_0x28c14d['unshift']({'range':ct['fromRange'](_0x295d8c),'operation':_0x2c32b9});continue;}const _0x3c5a24=_0x5ecec5['batch']['operations']['length']+0x1;let _0x74e686=[];switch(_0x2c32b9['type']){case'rename':{const _0x4a2878=_0x2c32b9['oldName'],_0x42b1a6=_0x2c32b9['newName'];if(_0x4a2878==_0x42b1a6)break;_0x5ecec5['batch']['addOperation'](_0x2c32b9),_0x9dc7fa['model']['applyOperation'](_0x2c32b9);const _0x657a5e='$elementName',_0x628327=_0x2c32b9['position'],_0x1b9327=_0x9dc7fa['model']['createRange'](_0x628327,_0x9dc7fa['model']['createPositionAt'](_0x628327['nodeAfter'],'end'));_0x74e686=this['markAttributeChange'](_0x1b9327,_0x657a5e,_0x4a2878,_0x42b1a6,{..._0x4c9e82(_0x2c32b9),'groupId':_0x41fde1()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3c0ce6=_0x2c32b9['oldValue'],_0x45deb9=_0x2c32b9['newValue'];if(_0x3c0ce6==_0x45deb9)break;_0x5ecec5['batch']['addOperation'](_0x2c32b9),_0x9dc7fa['model']['applyOperation'](_0x2c32b9);const _0x3c2d6b=_0x2c32b9['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3c2d6b))break;const _0x4e58fa=_0x428eee(_0x2c32b9['range'],_0x9dc7fa['model']);_0x74e686=this['markAttributeChange'](_0x4e58fa,_0x3c2d6b,_0x3c0ce6,_0x45deb9,{..._0x4c9e82(_0x2c32b9),'groupId':_0x41fde1()});break;}case'insert':{if(_0x5ecec5['batch']['addOperation'](_0x2c32b9),_0x9dc7fa['model']['applyOperation'](_0x2c32b9),_0x1dccc4[_0x71c9ce+0x1]&&'move'==_0x1dccc4[_0x71c9ce+0x1]['type'])break;const _0xd728bd=_0x2c32b9['position'],_0x44b161=_0x2c32b9['howMany'],_0x2bc99f=_0x428eee(_0x9dc7fa['model']['createRange'](_0xd728bd,_0xd728bd['getShiftedBy'](_0x44b161)),_0x9dc7fa['model']);_0x74e686=ln(this['markInsertion'](_0x2bc99f,null,{..._0x4c9e82(_0x2c32b9)}));break;}case'split':{_0x5ecec5['batch']['addOperation'](_0x2c32b9),_0x9dc7fa['model']['applyOperation'](_0x2c32b9);const _0x54b91b=_0x2c32b9['splitPosition'],_0x197915=_0x2c32b9['moveTargetPosition'],_0xf4eb42=_0x9dc7fa['model']['createRange'](_0x54b91b,_0x197915);_0x74e686=ln(this['markInsertion'](_0xf4eb42,null,{..._0x4c9e82(_0x2c32b9)}));break;}case'move':case'remove':_0x5ecec5['batch']['addOperation'](_0x2c32b9),_0x9dc7fa['model']['applyOperation'](_0x2c32b9);}_0x2cbf9e&&_0x2a504d(_0x5ecec5['batch'],_0x3c5a24,_0x2cbf9e,_0x74e686)&&delete _0x2c32b9['_aiSource'];}for(const {range:_0x5d1812,operation:_0x41f5fc}of _0x28c14d){const _0x2b2711=_0x41f5fc['_aiSource'],_0x394cd7=_0x4c9e82(_0x41f5fc),_0x1a4539=_0x5ecec5['batch']['operations']['length'];_0x5d1812['detach']();const _0x4c94ee=this['markDeletion'](_0x5d1812,null,{..._0x394cd7});_0x2b2711&&_0x2a504d(_0x5ecec5['batch'],_0x1a4539,_0x2b2711,ln(_0x4c94ee));}});}_setSuggestionRange(_0x20197f,_0xc4a37b){const _0x5395f3=_0x20197f['getFirstMarker']();this['_model']['change'](_0x313f3a=>{_0x313f3a['updateMarker'](_0x5395f3,{'range':_0xc4a37b});});}_addThreadToSuggestion(_0x402fcf){const _0x4705ff=_0x402fcf['id'],_0x42241c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4705ff)||this['_commentsRepository']['addCommentThread']({'channelId':_0x42241c,'threadId':_0x4705ff,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x24f4a7=this['_commentsRepository']['getCommentThread'](_0x4705ff);_0x24f4a7['unbind']('isRemovable'),_0x24f4a7['isRemovable']=!0x1,_0x402fcf['commentThread']=_0x24f4a7;}_checkSuggestionCorrectness(_0x2efe4d,_0x357ff3,_0x4e3829,_0x4290d9){if(_0x2efe4d['type']!=_0x357ff3||_0x2efe4d['subType']!=_0x4e3829||_0x2efe4d['creator']['id']!=_0x4290d9)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x579d79('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x296164,_0xe8b2d3){const _0xd13985=_0x296164['getFirstRange']();if(_0xe8b2d3['isEqual'](_0xd13985))_0x296164['removeMarkers']();else{if(_0xd13985['containsRange'](_0xe8b2d3)){const _0x491354=this['_model']['createPositionAt'](_0xe8b2d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x296164,this['_model']['createRange'](_0xd13985['start'],_0x491354));const _0x32c291=_0x41fde1(),_0x37e1d3=_0x296164['creator']['id'],_0x1ffa32=_0x296164['type']+':'+_0x296164['subType'];this['_setSuggestionData']({'id':_0x32c291,'type':_0x1ffa32,'createdAt':new Date(),'authorId':_0x37e1d3,'data':_0x296164['data'],'attributes':_0x296164['attributes']});const _0x5e7c17=this['_model']['createPositionAt'](_0xe8b2d3['end']['parent'],'after'),_0x2cb44a=this['_model']['createRange'](_0x5e7c17,_0xd13985['end']);this['_addSuggestionMarker'](_0x1ffa32,_0x32c291,_0x37e1d3,_0x2cb44a);}else{if(_0xd13985['containsPosition'](_0xe8b2d3['start'])){const _0x544361=this['_model']['createPositionAt'](_0xe8b2d3['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x296164,this['_model']['createRange'](_0xd13985['start'],_0x544361));}else{const _0x1d5d96=this['_model']['createPositionAt'](_0xe8b2d3['end']['parent'],'after');this['_setSuggestionRange'](_0x296164,this['_model']['createRange'](_0x1d5d96,_0xd13985['end']));}}}}_rangeIsInLocalUserInsertion(_0x51361c){for(const {suggestion:_0x36a1c6,meta:_0x28d9cd}of this['_findSuggestions'](_0x51361c,'insertion')){if(!_0x28d9cd['isOwn'])continue;const _0xdbac75=_0x36a1c6['getRanges']();for(const _0xb27b72 of _0xdbac75)if(!_0x51361c['getDifference'](_0xb27b72)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x308ba2){return this['editor']['plugins']['get']('Users')['getUser'](_0x308ba2);}_getExternalAuthor(_0x1679c5){const _0x46143f=this['editor']['plugins']['get']('Users'),_0x513587=_0x58c814('external:'+_0x1679c5),_0x5940a2=_0x46143f['getUser'](_0x513587);return _0x5940a2||_0x46143f['addUser']({'id':_0x513587,'name':_0x1679c5});}_createSuggestion(_0x142340,_0x58e09f,_0x5dadb4,_0x59beb9,_0x2b9a34,_0x30e219){const _0x1bdb8b=this['_getAuthorFromId'](_0x59beb9);if(!_0x1bdb8b)throw new _0x579d79('track-changes-user-not-found',this,{'authorId':_0x59beb9,'suggestionId':_0x5dadb4});const _0x1e2ba0=this['_suggestionFactory']['buildSuggestion'](_0x142340,_0x58e09f,_0x5dadb4,_0x1bdb8b,_0x2b9a34,_0x326940=>{this['_updateSuggestionData'](_0x5dadb4,{'attributes':_0x326940});const _0x77679c=this['getSuggestion'](_0x5dadb4);this['_joinWithAdjacentSuggestions'](new Set([_0x77679c])),this['_refreshSuggestionsChain'](new Set([_0x77679c]));},_0x30e219);return this['listenTo'](_0x1e2ba0,'accept',()=>{this['_updateSuggestionData'](_0x5dadb4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1e2ba0,'discard',()=>{this['_updateSuggestionData'](_0x5dadb4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5dadb4,_0x1e2ba0),this['_suggestionState']['set'](_0x1e2ba0,'notReady'),_0x1e2ba0;}_breakSuggestionMarker(_0x4fc83a,_0x14f861,_0x134f11){const _0x4c685a=_0x4fc83a['getFirstRange'](),_0x450d0f=_0x4c685a['start'],_0x1a4740=_0x4c685a['end'];this['_setSuggestionRange'](_0x4fc83a,this['_model']['createRange'](_0x450d0f,_0x14f861));const _0x50f67b=_0x41fde1(),_0xdb5fac=_0x4fc83a['creator']['id'],_0x33aa6d=_0x4fc83a['type']+(_0x4fc83a['subType']?':'+_0x4fc83a['subType']:'');this['_setSuggestionData']({'id':_0x50f67b,'type':_0x33aa6d,'createdAt':new Date(),'authorId':_0xdb5fac,'originalSuggestionId':_0x4fc83a['_originalSuggestionId']||_0x4fc83a['id'],'attributes':_0x4fc83a['attributes'],'data':_0x4fc83a['data']});const _0x5565f4=this['_getAttributeKey'](_0x4fc83a);('formatBlock'==_0x4fc83a['type']||_0x5565f4&&this['_suggestionsConversion']['isBlockAttribute'](_0x5565f4))&&(_0x134f11=this['_model']['createPositionBefore'](_0x134f11['parent'])),this['_addSuggestionMarker'](_0x33aa6d,_0x50f67b,_0xdb5fac,this['_model']['createRange'](_0x134f11,_0x1a4740));}_findSuggestions(_0x452097,_0x238470=null){const _0x4e8768=[],_0x170a55=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x452097)||(_0x452097=[_0x452097]);for(const _0xd29468 of this['getSuggestions']()){if(!_0xd29468['isInContent'])continue;if(_0x238470&&_0xd29468['type']!=_0x238470)continue;let _0x1c3edb=!0x1;for(const _0x412750 of _0xd29468['getRanges']()){for(const _0x548caf of _0x452097){const _0x184b7c=_0x548caf['start']['isEqual'](_0x412750['end'])||_0x548caf['end']['isEqual'](_0x412750['start']);if(_0x184b7c||_0x548caf['getIntersection'](_0x412750)){const _0x3c43bd=_0x548caf['containsRange'](_0x412750)&&hn(this['_model']['schema'],_0x412750['start'],_0x548caf),_0x560fae=_0x412750['containsRange'](_0x548caf)&&hn(this['_model']['schema'],_0x548caf['start'],_0x412750);_0x4e8768['push']({'suggestion':_0xd29468,'meta':{'isOwn':_0x170a55==_0xd29468['author'],'isNextTo':_0x184b7c,'isInsideObject':_0x3c43bd,'containsRangeInObject':_0x560fae}}),_0x1c3edb=!0x0;break;}}if(_0x1c3edb)break;}}return _0x4e8768;}_addSuggestionMarker(_0xd12a3a,_0x271b60,_0x1a6c56,_0x148438,_0x5a47b7){this['_model']['change'](_0x178326=>{let _0x48e3a5='suggestion:'+_0xd12a3a+':'+_0x271b60+':'+_0x1a6c56;_0x5a47b7&&(_0x48e3a5=_0x48e3a5+':'+_0x5a47b7),_0x178326['addMarker'](_0x48e3a5,{'range':_0x148438,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x51ece0){const _0x5dc29e=_0x51ece0['previous'],_0x457745=_0x51ece0['next'];_0x51ece0['previous']=null,_0x51ece0['next']=null,null!=_0x5dc29e&&_0x5dc29e['next']==_0x51ece0&&(_0x5dc29e['next']=_0x457745),null!=_0x457745&&_0x457745['previous']==_0x51ece0&&(_0x457745['previous']=_0x5dc29e),'ready'==this['_suggestionState']['get'](_0x51ece0)&&(this['_suggestionState']['set'](_0x51ece0,'removed'),this['fire']('suggestionUnloaded',_0x51ece0,_0x5dc29e,_0x457745));}_setSuggestionData(_0x4e7663){const _0x44a96f=_0x4e7663['id'],_0xb16339=this['addSuggestionData'](_0x4e7663);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x13931a=this['editor']['plugins']['get']('PendingActions'),_0xd1d5d1=_0xb16339['hasComments'],_0x1640a6=_0xb16339['subType']?_0xb16339['type']+':'+_0xb16339['subType']:_0xb16339['type'],_0x3ed4d2=this['editor']['locale'],_0xdd8dc0=_0x13931a['add'](Bt(_0x3ed4d2,'PENDING_ACTION_SUGGESTION')),_0x56c01b={'id':_0x44a96f,'type':_0x1640a6,'hasComments':_0xd1d5d1,'data':_0x4e7663['data']||null,'originalSuggestionId':_0x4e7663['originalSuggestionId']||null,'attributes':_0xb16339['attributes']};this['_adapter']['addSuggestion'](_0x56c01b)['then'](_0x18337b=>{_0xb16339['_saved']=!0x0,_0x13931a['remove'](_0xdd8dc0),_0x18337b&&_0x18337b['createdAt']&&(this['_suggestions']['get'](_0x44a96f)['createdAt']=_0x18337b['createdAt']);})['catch'](_0x1bc061=>{throw _0x9d1b46('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xb16339['discard']();}),_0xb16339['stopListening'](),this['_suggestions']['delete'](_0xb16339['id']),this['_suggestionState']['delete'](_0xb16339),_0x1bc061;});}return _0xb16339;}_updateSuggestionData(_0x5af324,_0x3b3d2f){const _0x2fbbb1=this['editor']['plugins']['get']('PendingActions'),_0xed4829=this['getSuggestion'](_0x5af324);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xed4829['_saved']){const _0x41a1a7=_0x2fbbb1['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5af324,_0x3b3d2f)['then'](()=>{_0x2fbbb1['remove'](_0x41a1a7);});}else _0xed4829['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5af324,_0x3b3d2f);});}}_getSuggestionData(_0x53c264){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x579d79('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53c264);}_handleNewSuggestionMarker(_0x2db3d3){const {id:_0x2e06bc,type:_0x3d974f,subType:_0xd64837,authorId:_0x4cd547}=it(_0x2db3d3),_0x1671dd=this['_suggestions']['get'](_0x2e06bc)||this['_createSuggestion'](_0x3d974f,_0xd64837,_0x2e06bc,_0x4cd547,{});switch(this['_checkSuggestionCorrectness'](_0x1671dd,_0x3d974f,_0xd64837,_0x4cd547),this['_suggestionState']['get'](_0x1671dd)){case'notReady':this['_getSuggestionData'](_0x2e06bc)['then'](_0x18c79c=>{let _0x3f470e=Promise['resolve']();_0x18c79c['hasComments']&&(_0x3f470e=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e06bc})),_0x3f470e['then'](()=>{this['addSuggestionData'](_0x18c79c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1671dd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e06bc,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1671dd,'ready'),this['fire']('suggestionLoaded',_0x1671dd);break;case'ready':this['fire']('suggestionChanged',_0x1671dd);}return _0x1671dd['addMarkerName'](_0x2db3d3),_0x1671dd;}_refreshSuggestionsChain(_0x264e43){const _0x5317a4=Array['from'](_0x264e43),_0x57f9de=_0x5317a4['filter'](_0x3e9fbb=>'attribute'==_0x3e9fbb['type']);this['_refreshAttributeSuggestionsChain'](_0x57f9de);const _0x5a431b=_0x5317a4['filter'](_0x826243=>!_0x826243['isMultiRange']&&'attribute'!=_0x826243['type']),_0x27bf21=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40ef0a=>!_0x40ef0a['isMultiRange']&&'attribute'!=_0x40ef0a['type']),_0x3ebc87=_0x27bf21['filter'](_0x4edd4d=>!_0x264e43['has'](_0x4edd4d)),_0x2d0870=new Map(_0x27bf21['map'](_0x335044=>[_0x335044,this['_suggestionFactory']['getSuggestionCallback'](_0x335044['type'],_0x335044['subType'],'chain')])),_0x405bd9=new Map(_0x27bf21['map'](_0x21ee1a=>[_0x21ee1a,_0x21ee1a['getFirstRange']()])),_0x480165=new Set(),_0x491b25=new Set();for(let _0x171134=0x0;_0x171134<_0x5a431b['length'];_0x171134++)_0x14b882(_0x5a431b[_0x171134],_0x5a431b,_0x171134+0x1);for(let _0x288302=0x0;_0x288302<_0x5a431b['length'];_0x288302++)_0x14b882(_0x5a431b[_0x288302],_0x3ebc87,0x0);const _0x51fd35=new Set();for(let _0x95c061=0x0;_0x95c061<_0x5a431b['length'];_0x95c061++){const _0x5a2fea=_0x5a431b[_0x95c061];!_0x491b25['has'](_0x5a2fea)&&_0x5a2fea['previous']&&(_0x51fd35['add'](_0x5a2fea['previous']),_0x5a2fea['previous']['next']===_0x5a2fea&&(_0x5a2fea['previous']['next']=null),_0x5a2fea['previous']=null),!_0x480165['has'](_0x5a2fea)&&_0x5a2fea['next']&&(_0x51fd35['add'](_0x5a2fea['next']),_0x5a2fea['next']['previous']===_0x5a2fea&&(_0x5a2fea['next']['previous']=null),_0x5a2fea['next']=null);}function _0x14b882(_0x21f36c,_0x548ce7,_0x1e24ca){for(let _0x2a52ca=_0x1e24ca;_0x2a52ca<_0x548ce7['length'];_0x2a52ca++){const _0x1b5aec=_0x55a1bc(_0x21f36c,_0x548ce7[_0x2a52ca]);_0x1b5aec&&(_0x1b5aec[0x0]['next']=_0x1b5aec[0x1],_0x1b5aec[0x1]['previous']=_0x1b5aec[0x0],_0x480165['add'](_0x1b5aec[0x0]),_0x491b25['add'](_0x1b5aec[0x1]));}}function _0x55a1bc(_0x1427dc,_0x4c9a77){if(_0x1427dc['author']['id']!==_0x4c9a77['author']['id'])return null;const _0x435f2d=_0x2d0870['get'](_0x1427dc)(_0x1427dc,_0x4c9a77,_0x405bd9['get'](_0x1427dc),_0x405bd9['get'](_0x4c9a77));return _0x435f2d&&_0x2d0870['get'](_0x4c9a77)(_0x1427dc,_0x4c9a77,_0x405bd9['get'](_0x1427dc),_0x405bd9['get'](_0x4c9a77))?_0x435f2d[0x1]['commentThread']&&_0x435f2d[0x1]['commentThread']['length']?null:_0x435f2d:null;}_0x51fd35['size']&&this['_refreshSuggestionsChain'](_0x51fd35);}_refreshAttributeSuggestionsChain(_0x59a4ec){if(0x0==_0x59a4ec['length'])return;const _0x3e5a49=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34899a=>'attribute'==_0x34899a['type']&&_0x34899a['_isDataLoaded']),_0x37bf96=[],_0x48e206=new Map();for(const _0x2c5239 of _0x3e5a49){const _0x9d45d7=_0x58c814(_0x2c5239['attributes']);_0x48e206['has'](_0x9d45d7)||(_0x48e206['set'](_0x9d45d7,_0x37bf96['length']),_0x37bf96['push']([])),_0x37bf96[_0x48e206['get'](_0x9d45d7)]['push'](_0x2c5239);}!(function(){_0x37bf96['sort']((_0x2a40e6,_0x1b84ef)=>{const _0x521d16=_0x2a40e6[0x0]['createdAt'],_0x1346a8=_0x1b84ef[0x0]['createdAt'];return _0x521d16==_0x1346a8?_0x2a40e6[0x0]['attributes']['groupId']<_0x1b84ef[0x0]['attributes']['groupId']?-0x1:0x1:_0x521d16<_0x1346a8?-0x1:0x1;});for(const _0x25188d of _0x37bf96)_0x25188d['sort']((_0x14d120,_0x317853)=>_0x14d120['id']<_0x317853['id']?-0x1:0x1);}());for(let _0x5d61a1=0x0;_0x5d61a1<_0x37bf96['length'];_0x5d61a1++){if(0x0==_0x37bf96[_0x5d61a1]['length'])continue;const _0x5949dd=[];for(let _0x312309=_0x5d61a1+0x1;_0x312309<_0x37bf96['length'];_0x312309++)0x0!=_0x37bf96[_0x312309]['length']&&_0x1e0efd(_0x37bf96[_0x5d61a1],_0x37bf96[_0x312309])&&_0x5949dd['push'](_0x312309);for(const _0x29adce of _0x5949dd)_0x37bf96[_0x5d61a1]=_0x37bf96[_0x5d61a1]['concat'](_0x37bf96[_0x29adce]),_0x37bf96[_0x29adce]=[];}for(const _0x3fe2de of _0x37bf96)for(let _0x41e7ec=0x0;_0x41e7ec<_0x3fe2de['length'];_0x41e7ec++){const _0x53efe3=_0x3fe2de[_0x41e7ec+0x1]||null;_0x3fe2de[_0x41e7ec]['next']!==_0x53efe3&&(_0x3fe2de[_0x41e7ec]['next']=_0x53efe3);}for(const _0x5338e1 of _0x37bf96)for(let _0x1fb9cb=0x0;_0x1fb9cb<_0x5338e1['length'];_0x1fb9cb++){const _0x304204=_0x5338e1[_0x1fb9cb-0x1]||null;_0x5338e1[_0x1fb9cb]['previous']!==_0x304204&&(_0x5338e1[_0x1fb9cb]['previous']=_0x304204);}function _0x1e0efd(_0x332b89,_0x3e1224){if(_0x332b89[0x0]['attributes']['groupId']!==_0x3e1224[0x0]['attributes']['groupId']&&_0x332b89[0x0]['author']!==_0x3e1224[0x0]['author'])return!0x1;if(!function(_0x499893,_0x4eec18){return!_0x499893['hasComments']&&!_0x4eec18['hasComments']||(!_0x499893['hasComments']||!_0x4eec18['hasComments'])&&(!!(_0x499893['hasComments']&&_0x4eec18['createdAt']<_0x499893['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x4eec18['hasComments']&&_0x499893['createdAt']<_0x4eec18['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x332b89[0x0],_0x3e1224[0x0]))return!0x1;const _0x48d7e3=ht(_0x332b89[0x0]['attributes'],['groupId','trackingSessionId']),_0x461a84=ht(_0x3e1224[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0x48d7e3,_0x461a84)&&(_0x332b89[0x0]['attributes']['groupId']==_0x3e1224[0x0]['attributes']['groupId']||_0x332b89[0x0]['attributes']['trackingSessionId']===_0x3e1224[0x0]['attributes']['trackingSessionId']&&(!!_0x332b89['every'](_0x3ada15=>_0x3e1224['some'](_0xb044a3=>_0x3ada15['getFirstRange']()['isEqual'](_0xb044a3['getFirstRange']())))&&_0x3e1224['every'](_0xc0c0c3=>_0x332b89['some'](_0x477bd4=>_0xc0c0c3['getFirstRange']()['isEqual'](_0x477bd4['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x3728d2){const _0x584260=Array['from'](_0x3728d2),_0x3c0866=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c6105=_0x3c0866['filter'](_0x57c928=>!_0x3728d2['has'](_0x57c928)),_0x5a81b1=new Map(_0x584260['map'](_0x374acf=>[_0x374acf,this['_suggestionFactory']['getSuggestionCallback'](_0x374acf['type'],_0x374acf['subType'],'join')])),_0x590dfa=new Map(_0x3c0866['map'](_0x515b9=>[_0x515b9,_0x515b9['getRanges']()]));for(let _0x529526=0x0;_0x529526<_0x584260['length'];_0x529526++)if(_0x156e81(this,_0x584260[_0x529526],_0x584260,_0x529526+0x1))return!0x0;for(let _0x43eb6f=0x0;_0x43eb6f<_0x584260['length'];_0x43eb6f++)if(_0x156e81(this,_0x584260[_0x43eb6f],_0x2c6105,0x0))return!0x0;return!0x1;function _0x156e81(_0x147b3a,_0x3f2c55,_0x15c884,_0x409164){for(let _0x2b86be=_0x409164;_0x2b86be<_0x15c884['length'];_0x2b86be++){const _0xeb0c9c=_0x15c884[_0x2b86be];if(_0xeb0c9c['type']!==_0x3f2c55['type']||_0xeb0c9c['author']['id']!==_0x3f2c55['author']['id']||_0xeb0c9c['subType']!==_0x3f2c55['subType'])continue;if(!An(_0x3f2c55,_0xeb0c9c))continue;if('attribute'==_0x3f2c55['type']&&_0x3f2c55['data']['oldValue']!=_0xeb0c9c['data']['oldValue'])continue;if('attribute'==_0x3f2c55['type']&&_0x147b3a['_suggestionsConversion']['isBlockAttribute'](_0x3f2c55['data']['key']))continue;if('formatBlock'==_0x3f2c55['type']){const _0x8e0efc=_0x147b3a['editor']['model'],_0x30cb31=_0x3f2c55['getContainedElement']();if(_0x30cb31&&(_0x8e0efc['schema']['isObject'](_0x30cb31)||_0x8e0efc['schema']['isLimit'](_0x30cb31)))continue;}const _0x3d5696=_0x5a81b1['get'](_0x3f2c55),_0x28c339=_0x590dfa['get'](_0x3f2c55),_0x2baaee=_0x590dfa['get'](_0xeb0c9c),_0x305487=_0x3f2c55['commentThread']&&_0x3f2c55['commentThread']['length'],_0x79f5a8=_0xeb0c9c['commentThread']&&_0xeb0c9c['commentThread']['length'];if(!_0x305487&&_0x3d5696(_0x2baaee,_0x28c339))return _0x147b3a['_joinSuggestions'](_0xeb0c9c,_0x3f2c55),_0x590dfa['delete'](_0x3f2c55),!0x0;if(!_0x79f5a8&&_0x3d5696(_0x28c339,_0x2baaee))return _0x147b3a['_joinSuggestions'](_0x3f2c55,_0xeb0c9c),_0x590dfa['delete'](_0xeb0c9c),!0x0;}return!0x1;}}_joinSuggestions(_0x396a42,_0x33462c){if(_0x396a42['isMultiRange']){for(const _0x4962e9 of _0x33462c['getRanges']())_0x396a42['addRange'](_0x4962e9);}else{const _0x24204e=_0x33462c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x396a42,this['_model']['createRange'](_0x396a42['getFirstRange']()['start'],_0x24204e));}_0x33462c['removeMarkers']();}_getMarkerAnnouncementText(_0x45e958,_0x219b12,_0x470d28){const _0x351d66=_0x45e958['startsWith']('format')||_0x45e958['startsWith']('attribute')?'FORMATTING':_0x45e958['toUpperCase']();return Bt(this['editor']['locale'],_0x219b12+'_'+_0x351d66+'_SUGGESTION_ANNOUNCEMENT',_0x470d28);}_initAriaMarkerChangeAnnouncements(){const _0x39fbf3=this['editor'];if(!_0x39fbf3['ui'])return;const {ariaLiveAnnouncer:_0x43ab36}=_0x39fbf3['ui'];st(this['_model'],({left:_0x546c2b,entered:_0x3923ac})=>{for(const _0x40b19b of _0x546c2b){const {group:_0xe4a02a,type:_0x5c3c4c}=it(_0x40b19b['name']);if('suggestion'===_0xe4a02a){_0x43ab36['announce'](this['_getMarkerAnnouncementText'](_0x5c3c4c,'LEAVE'));break;}}for(const _0x4ab2e5 of _0x3923ac){const {group:_0x4545cb,type:_0x5cc0ad}=it(_0x4ab2e5['name']);if('suggestion'===_0x4545cb){_0x43ab36['announce'](this['_getMarkerAnnouncementText'](_0x5cc0ad,'ENTER',_0x682fd3(_0xdc3757)));break;}}});}_processAttributeChanges(_0x7c72ff){if(this['_recordAttributeSuggestions'])return!0x1;const _0x247a07=this['editor'],_0x462522=_0x247a07['model']['document']['differ']['getChanges']();if(0x0==_0x462522['length'])return!0x1;const _0x103efd=[],_0x48873b=_0x462522['filter'](_0x5a7bfb=>'attribute'==_0x5a7bfb['type']),_0x76b0d2=_0x462522['filter'](_0x70ec48=>'insert'==_0x70ec48['type']&&'$text'!=_0x70ec48['name']),_0x1ede0a=_0x462522['filter'](_0x4b7b2f=>'remove'==_0x4b7b2f['type']&&'$text'!=_0x4b7b2f['name']);for(const _0x2e5b64 of _0x48873b)_0x103efd['push']({'key':_0x2e5b64['attributeKey'],'newValue':_0x2e5b64['attributeNewValue'],'oldValue':_0x2e5b64['attributeOldValue'],'range':pn(_0x2e5b64['range'],_0x247a07['model'])});for(const _0x68b6be of _0x76b0d2){const _0x5b76aa=_0x1ede0a['find'](_0x2d32e3=>_0x2d32e3['position']['isEqual'](_0x68b6be['position']));_0x5b76aa&&_0x103efd['push']({'key':an,'newValue':_0x68b6be['name'],'oldValue':_0x5b76aa['name'],'range':_0x247a07['model']['createRangeOn'](_0x68b6be['position']['nodeAfter'])});}return 0x0!=_0x103efd['length']&&this['_reduceExistingSuggestions'](_0x7c72ff,_0x103efd);}_processAttributeSuggestions(_0x1b9fc3){let _0x5499b7=!0x1;const _0x434ae0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x312dd4=>_0x312dd4['data']['newRange']&&_0x312dd4['name']['startsWith']('suggestion:attribute:'));for(const _0x13715e of _0x434ae0){const {subType:_0x97637a,id:_0x2a92db}=it(_0x13715e['name']),_0x3ae3aa=_0x97637a['split']('|')[0x0];for(const _0x114f90 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x114f90['id']!=_0x2a92db&&'attribute'==_0x114f90['type']&&_0x114f90['data']&&_0x114f90['data']['key']==_0x3ae3aa&&_0x114f90['getFirstRange']()['isIntersecting'](_0x13715e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x114f90,_0x13715e['data']['newRange'],_0x1b9fc3),_0x5499b7=!0x0);}return _0x5499b7;}recordAttributeChanges(_0x411da1){this['_recordAttributeSuggestions']=!0x0,_0x411da1();}_reduceExistingSuggestions(_0x39b98c,_0x8e970f){if(0x0==_0x8e970f['length'])return!0x1;let _0x15605c=!0x1;for(const _0x4df96b of _0x8e970f){const _0x5573a3=this['_findSuggestions'](_0x4df96b['range'],'attribute')['filter'](_0x508b15=>!_0x508b15['meta']['isNextTo'])['map'](_0x21ec69=>_0x21ec69['suggestion']),_0x2b77b6=_0x58c814({'newValue':_0x4df96b['newValue']});_0x5573a3['filter'](_0x391f80=>{const [_0x892667,_0x3f7f15]=_0x391f80['subType']['split']('|');return _0x892667==_0x4df96b['key']&&_0x3f7f15!=_0x2b77b6;})['forEach'](_0x5cae5d=>{this['_reduceSuggestionAttributeRange'](_0x5cae5d,_0x4df96b['range'],_0x39b98c),_0x15605c=!0x0;});}return _0x15605c;}_reduceSuggestionAttributeRange(_0x40b9ae,_0x2af479,_0x1b239a){const _0x740783=_0x40b9ae['getFirstRange']()['getDifference'](_0x2af479);0x0!==_0x740783['length']?0x1!==_0x740783['length']?this['_breakSuggestionMarker'](_0x40b9ae,_0x2af479['start'],_0x2af479['end']):this['_setSuggestionRange'](_0x40b9ae,_0x740783[0x0]):_0x1b239a['removeMarker'](_0x40b9ae['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x23633b){this['_editor']=_0x23633b,this['_model']=_0x23633b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x27a550,_0x305269,_0x517c82,_0x3112f7,_0x47cca4,_0x2fb0ce,_0x3b0a23){return new wt(this['_model'],{'type':_0x27a550,'subType':_0x305269,'id':_0x517c82,'originalSuggestionId':_0x3b0a23,'author':_0x3112f7,'creator':_0x3112f7,'attributes':_0x47cca4,'onAttributesChange':_0x2fb0ce,'onAccept':(..._0xaca494)=>this['getSuggestionCallback'](_0x27a550,_0x305269,'accept')(..._0xaca494),'onDiscard':(..._0x33bb48)=>this['getSuggestionCallback'](_0x27a550,_0x305269,'discard')(..._0x33bb48)});}registerCustomCallback(_0x52be20,_0xf4ce48,_0x303fc3,_0xeeff95){const _0x3720cb=_0x52be20+':'+_0xf4ce48+':'+_0x303fc3;this['_customCallbacks']['set'](_0x3720cb,_0xeeff95);}getSuggestionCallback(_0x3093c2,_0x40c32c,_0x12d978){const _0xb5c8b=_0x3093c2+':'+_0x40c32c+':'+_0x12d978;return this['_customCallbacks']['get'](_0xb5c8b)||this['_defaultCallbacks']['get'](_0x3093c2+':'+_0x12d978);}_registerDefaultCallbacks(){const _0x10ce5e=()=>!0x1,_0x49590f=_0x4a5e89=>{_0x4a5e89['sort']((_0x25d1b4,_0xc3dc15)=>_0x25d1b4['start']['isBefore'](_0xc3dc15['start'])?0x1:-0x1),this['_model']['change'](_0x17bb72=>{for(const _0x571366 of _0x4a5e89){let _0x183c40;_0x183c40=_0x571366['end']['isAtEnd']&&_0x571366['end']['parent']==_0x571366['start']['nodeAfter']?_0x17bb72['createSelection'](_0x571366['start']['nodeAfter'],'on'):_0x17bb72['createSelection'](_0x571366),this['_model']['deleteContent'](_0x183c40,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4a7005=(_0x3ba58d,_0x521034)=>{_0x521034&&this['_model']['change'](_0x9ed307=>{const {commandName:_0x12c54a,commandParams:_0x35afda=[]}=_0x521034,_0x276174=_0x3ba58d['map'](_0x484324=>(gn(_0x484324)&&(_0x484324=this['_model']['createRange'](_0x484324['end'])),_0x484324))['filter'](_0x2df917=>'$graveyard'!==_0x2df917['root']['rootName']);if(_0x276174['length']<0x1)return;const _0x2ff69f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3a65c5=>ct['fromRange'](_0x3a65c5));_0x9ed307['setSelection'](_0x276174);for(const _0x21f407 of this['_editor']['commands']['commands']())_0x21f407['refresh']();_0x35afda['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x12c54a,..._0x35afda);const _0x24c725=_0x2ff69f['filter'](_0x5d22f9=>'$graveyard'!=_0x5d22f9['root']['rootName']);_0x24c725['length']>0x0&&_0x9ed307['setSelection'](_0x24c725);for(const _0x386cc8 of _0x2ff69f)_0x386cc8['detach']();});},_0x4fb1e0=(_0x218f8f,_0x549561)=>0x1==_0x218f8f['length']&&0x1==_0x549561['length']&&_0x218f8f[0x0]['end']['isEqual'](_0x549561[0x0]['start']),_0x13ff4f=(_0x35dcb2,_0x3f3767,_0x19d33b,_0x2c9085)=>In(_0x35dcb2,_0x3f3767,_0x19d33b,_0x2c9085)?[_0x35dcb2,_0x3f3767]:In(_0x3f3767,_0x35dcb2,_0x2c9085,_0x19d33b)?[_0x3f3767,_0x35dcb2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x10ce5e),this['_defaultCallbacks']['set']('insertion:discard',_0x49590f),this['_defaultCallbacks']['set']('insertion:join',_0x4fb1e0),this['_defaultCallbacks']['set']('insertion:chain',_0x13ff4f),this['_defaultCallbacks']['set']('deletion:accept',_0x49590f),this['_defaultCallbacks']['set']('deletion:discard',_0x10ce5e),this['_defaultCallbacks']['set']('deletion:join',_0x4fb1e0),this['_defaultCallbacks']['set']('deletion:chain',_0x13ff4f),this['_defaultCallbacks']['set']('formatInline:accept',_0x4a7005),this['_defaultCallbacks']['set']('formatInline:discard',_0x10ce5e),this['_defaultCallbacks']['set']('formatInline:join',_0x4fb1e0),this['_defaultCallbacks']['set']('formatInline:chain',_0x10ce5e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4a7005),this['_defaultCallbacks']['set']('formatBlock:discard',_0x10ce5e),this['_defaultCallbacks']['set']('formatBlock:join',_0x4fb1e0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x10ce5e),this['_defaultCallbacks']['set']('attribute:accept',_0x10ce5e),this['_defaultCallbacks']['set']('attribute:discard',(_0x144ebc,_0x55c1c7)=>{if(!_0x55c1c7)return;const _0x1d1d06=this['_editor']['plugins']['get'](_0x3d313e);this['_model']['change'](_0x1b447f=>{if('$elementName'==_0x55c1c7['key'])for(const _0x2a85dc of _0x144ebc){const _0x583aff=_0x2a85dc['start']['nodeAfter'],_0x59015b=_0x55c1c7['oldValue'];_0x1b447f['rename'](_0x583aff,_0x59015b);}else{if(_0x1d1d06['isBlockAttribute'](_0x55c1c7['key'])){for(const _0x2d3ea9 of _0x144ebc)void 0x0!==_0x55c1c7['oldValue']?_0x1b447f['setAttribute'](_0x55c1c7['key'],_0x55c1c7['oldValue'],_0x2d3ea9['start']['nodeAfter']):_0x1b447f['removeAttribute'](_0x55c1c7['key'],_0x2d3ea9['start']['nodeAfter']);}else{for(const _0x4de5e9 of _0x144ebc)_0x55c1c7['oldValue']?_0x1b447f['setAttribute'](_0x55c1c7['key'],_0x55c1c7['oldValue'],_0x4de5e9):_0x1b447f['removeAttribute'](_0x55c1c7['key'],_0x4de5e9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4fb1e0);}};function hn(_0x5a6e5b,_0x272348,_0xa06bd){for(const _0x2951ab of _0x272348['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2951ab['root']==_0x2951ab)return!0x1;if(!_0xa06bd['containsItem'](_0x2951ab))return!0x1;if(_0x5a6e5b['isObject'](_0x2951ab)||_0x5a6e5b['isLimit'](_0x2951ab))return!0x0;}return!0x1;}function gn(_0x16aef1){return _0x16aef1['end']['parent']==_0x16aef1['start']['nodeAfter']&&_0x16aef1['end']['isAtStart'];}function fn(_0x3196bd,_0x377c9e,_0x3307a5,_0x4de28b){const _0x54055b=_0x24d19f=>!_0x24d19f['item']['is']('$textProxy')&&!_0x4de28b['isObject'](_0x24d19f['item']),_0x2c4f10=_0x3196bd['start']['getLastMatchingPosition'](_0x54055b),_0x3828a=_0x3196bd['end']['getLastMatchingPosition'](_0x54055b,{'direction':'backward'});return(!_0x3196bd['start']['isEqual'](_0x2c4f10)||!_0x3196bd['end']['isEqual'](_0x3828a))&&(_0x2c4f10['isBefore'](_0x3828a)?_0x3307a5['updateMarker'](_0x377c9e,{'range':_0x3307a5['createRange'](_0x2c4f10,_0x3828a)}):_0x3307a5['removeMarker'](_0x377c9e),!0x0);}function mn(_0x34b806){return _0x58c814(_0x34b806);}function En(_0x38f27b){const _0x2abb84=_0x38f27b['start']['nodeAfter'];return _0x2abb84&&_0x2abb84['is']('element');}function Tn(_0x40e45e){return gn(_0x40e45e)||function(_0xf6397d){return _0xf6397d['start']['parent']==_0xf6397d['end']['nodeBefore']&&_0xf6397d['start']['isAtEnd'];}(_0x40e45e);}function _n(_0x6a588c,_0x16a872){try{const _0x12757b=_0x6a588c['getRange']();for(const _0x57eaa7 of _0x16a872)if(_0x6a588c!==_0x57eaa7&&_0x12757b&&_0x12757b['isIntersecting'](_0x57eaa7['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x2c6124,_0x425fdd){return null==_0x2c6124['end']['nodeBefore']&&_0x2c6124['end']['parent']==_0x2c6124['start']['nodeAfter']?Ln(_0x2c6124['start']['nodeAfter'],_0x425fdd):_0x2c6124;}function Ln(_0x579fb1,_0x3bf827){const _0x32b52a=_0x3bf827['schema']['isObject'](_0x579fb1)||_0x3bf827['schema']['isSelectable'](_0x579fb1);return _0x3bf827['createRange'](_0x3bf827['createPositionAt'](_0x579fb1,'before'),_0x32b52a?_0x3bf827['createPositionAfter'](_0x579fb1):_0x3bf827['createPositionAt'](_0x579fb1,'end'));}function In(_0x3319cb,_0xa562cf,_0x12383e,_0x2d9b20){return!!An(_0x3319cb,_0xa562cf)&&_0x12383e['end']['isEqual'](_0x2d9b20['start']);}function An(_0x1383ea,_0x32acaa){if(!_0x1383ea['_isDataLoaded']||!_0x32acaa['_isDataLoaded'])return!0x1;const _0x42885c=new Set(Object['keys'](_0x1383ea['attributes'])),_0x30232e=new Set(Object['keys'](_0x32acaa['attributes']));if(_0x42885c['delete']('groupId'),_0x30232e['delete']('groupId'),0x0==_0x42885c['size']&&0x0==_0x30232e['size'])return!0x0;if(_0x42885c['size']!=_0x30232e['size'])return!0x1;const _0x2b31d3={..._0x1383ea['attributes']},_0xaada86={..._0x32acaa['attributes']};return delete _0x2b31d3['groupId'],delete _0xaada86['groupId'],JSON['stringify'](_0x2b31d3)==JSON['stringify'](_0xaada86);}function bn(_0x3e8945,_0x5f04cc){const _0x5df69e=Cn(_0x3e8945['attributes']),_0x3363a4=Cn(_0x5f04cc);if(!_0x3e8945['_isDataLoaded'])return!0x1;if(!dt(_0x5df69e['@ai'],_0x3363a4['@ai']))return!0x1;for(const _0x3faf66 of Object['keys'](_0x3363a4))if(!dt(_0x5df69e[_0x3faf66],_0x3363a4[_0x3faf66]))return!0x1;return!0x0;}function Cn(_0x521f8c){const _0x34e178=Object['assign']({},_0x521f8c);return delete _0x34e178['skipNestingCheck'],delete _0x34e178['tablePasteChainId'],_0x34e178;}function kn(_0x272b3e){return _0x272b3e['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x5e24a2();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x1ae41e,_0x4a4cfa,_0x285e9a,_0x4d6359){super(),this['model']=_0x4a4cfa,this['view']=_0x285e9a,this['commentThreadController']=_0x4d6359,this['_editor']=_0x1ae41e,this['_acceptCommand']=_0x1ae41e['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1ae41e['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x426599,_0x497cd7)=>_0x426599||_0x497cd7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2b1632=>_0x2b1632&&this['_editor']['model']['canEditAt'](_0x4a4cfa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x311350=>_0x311350&&this['_editor']['model']['canEditAt'](_0x4a4cfa['getRanges']())),this['_pendingAction']=null,_0x285e9a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x285e9a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x285e9a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x285e9a,'change:isDirty',()=>{_0x285e9a['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 _0x41ee41=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x41ee41);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0xf83b87{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x57342e,_0x1b1f07,_0x1e4435,_0x1483cb){super(_0x57342e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x49e171(_0x57342e,Bt(_0x57342e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1b1f07['authoredAt']),this['bind']('authoredAt')['to'](_0x1b1f07),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',_0x1b1f07,'authoredAt',this,'descriptionParts',(_0x2fe4af,_0x157eb6,_0x47fb65)=>{const _0x2c99a4=_0x47fb65['map'](_0x343448=>bt(_0x343448['content']))['join']('.\x20')+'.',_0xe83075=_0x1b1f07['aiSource']&&'author'===_0x1483cb['showAISource']?_0x1483cb['aiAuthor']['name']:_0x1b1f07['author']['name'],_0x5cf31e=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2fe4af-0x1,_0xe83075,_0x157eb6?_0x1483cb['formatDateTime'](_0x157eb6):'',new DOMParser()['parseFromString'](_0xec8719(_0x2c99a4),'text/html')['body']['textContent']]);return _0x1b1f07['aiSource']&&'pill'===_0x1483cb['showAISource']?_0x5cf31e+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x5cf31e;}),this['focusables']=new _0x209273(),this['focusTracker']=new _0x46c0c2(),this['keystrokes']=new _0x10424c(),this['focusCycler']=new _0x3d7c2a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x31d0e8=>_0x31d0e8['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1b1f07,this['_localUser']=_0x1e4435,this['_config']=_0x1483cb,_0x1483cb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3f6af1}=this['_config'];this['commentsListView']=new _0x3f6af1(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',_0x2a8bce=>_0x2a8bce+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x875c8e,_0x2e6000)=>_0x875c8e||!!_0x2e6000);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x2d1c26}=this['_config'],_0x3addb5=new _0x2d1c26(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x863ec5=_0x3addb5['commentInputView'];return _0x3addb5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x863ec5,'value',(_0x4a272b,_0x46c0f4,_0x59b1fa)=>!!_0x59b1fa||_0x4a272b&&!_0x46c0f4),_0x863ec5['on']('submit',(_0x1c1211,_0x198bfb)=>{this['fire']('addComment',_0x198bfb),_0x863ec5['editor']['setData']('');}),_0x863ec5['on']('cancel',()=>this['focus']()),_0x863ec5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3addb5;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x500958,_0x345123,_0x28ab84,_0x29dea6){super(_0x500958,_0x345123,_0x28ab84,_0x29dea6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x48abc7=>_0x48abc7&&_0x48abc7[0x0]?_0x48abc7[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3b7f63,_0x21858d)=>{let _0x15c200='';for(const _0x411e72 of _0x3b7f63)_0x15c200+='<p>'+bt(_0x411e72['content'],_0x411e72['color'])+'</p>';return _0x21858d?_0x15c200:rt(_0x15c200,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x29dea6['SuggestionView'](_0x500958,_0x345123,{'formatDateTime':_0x29dea6['formatDateTime'],'showAISource':_0x29dea6['showAISource'],'aiAuthor':_0x29dea6['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',_0x210a12=>!!_0x210a12||Bt(_0x500958,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x5a3cf6=>!!_0x5a3cf6||Bt(_0x500958,'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 _0x4c173=this['bindTemplate'],_0x206203=[this['suggestionView']];return this['commentsListView']&&_0x206203['push'](this['commentsListView']),this['commentThreadInputView']&&_0x206203['push'](this['commentThreadInputView']),_0x206203['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4c173['if']('isActive','ck-suggestion-wrapper--active'),_0x4c173['to']('type',_0x125018=>'ck-suggestion-'+_0x125018),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':_0x4c173['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x206203};}['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));}},Mn=class extends _0xf83b87{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1d6853,_0x31c709,_0x39b4b7){super(_0x1d6853),this['_model']=_0x31c709,this['_config']=_0x39b4b7,this['set']('description',''),this['bind']('authoredAt')['to'](_0x31c709),this['acceptButton']=this['_createButton'](Bt(_0x1d6853,'Accept\x20suggestion'),_0x5932ab,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x1d6853,'Discard\x20suggestion'),_0x4c2fec,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x230f9e=!!_0x31c709['aiSource']&&'author'===_0x39b4b7['showAISource'],_0x5634c2=_0x230f9e?this['_createAIUser'](_0x39b4b7['aiAuthor']):_0x31c709['author'],_0x4c481b=_0x230f9e&&!_0x39b4b7['aiAuthor']['avatar']?_0x4ab200:void 0x0;this['userView']=new _0x27277d(_0x1d6853,_0x5634c2,this['getUserViewNotificationText'](),_0x4c481b),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x209273([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46c0c2(),this['keystrokes']=new _0x10424c(),this['focusCycler']=new _0x3d7c2a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3c95f4=>_0x3c95f4['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2786ad=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2786ad['innerHTML']=_0xec8719(this['description']),this['on']('change:description',(_0x31fa66,_0xab1dfa,_0x5ed3cc)=>{_0x2786ad['innerHTML']=_0xec8719(_0x5ed3cc);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x13de70=this['bindTemplate'],_0x498ea4=new _0x1c7793();_0x498ea4['content']=_0x2b89ca;const _0x528cac=[{'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']}},_0x498ea4,{'tag':'time','attributes':{'datetime':_0x13de70['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13de70['to']('authoredAt',_0x3471cf=>this['_config']['formatDateTime'](_0x3471cf))}]}]},{'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']&&_0x528cac['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x50839e=new _0x10ad8c(this['locale']);_0x50839e['set']({'icon':_0xee0c72,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x528cac['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x50839e]});}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':_0x528cac}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x55cdc5){return new _0x51a945({'id':'ck-ai-author','name':_0x55cdc5['name'],'avatar':_0x55cdc5['avatar'],'color':new _0x3fafa6(0x0)});}_createButton(_0x41d3e6,_0x2c99c2,_0xcd5f3d,_0x5ed53f,_0x3eb88b){const _0x12459e=new _0x1a6624(this['locale']);return _0x12459e['set']({'label':_0x41d3e6,'icon':_0x2c99c2,'tooltip':!0x0,'tooltipPosition':_0x3eb88b}),_0x12459e['extendTemplate']({'attributes':{'class':_0xcd5f3d}}),_0x12459e['on']('execute',()=>{this['fire'](_0x5ed53f,this['_model']['id']);}),_0x12459e;}_setupKeyboardNavigation(){const _0x2f0991=this['element'];this['keystrokes']['listenTo'](_0x2f0991);for(const _0x415271 of this['focusables'])this['focusTracker']['add'](_0x415271['element']),this['keystrokes']['listenTo'](_0x415271['element']);this['keystrokes']['set']('enter',(_0x1f6783,_0x1ffe9a)=>{_0x2f0991===_0x1f6783['target']&&(this['focusCycler']['focusFirst'](),_0x1ffe9a());}),this['keystrokes']['set']('esc',(_0x44618b,_0x26ac0e)=>{_0x2f0991!==_0x44618b['target']&&(this['focus'](),_0x26ac0e());});}},On=class extends _0x3e92ef{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x59419f,_0x3ed633,_0x7d0c49,_0x30b8f6];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3de156){super(_0x3de156),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x137282=this['editor']['config'];_0x137282['define']('trackChanges.SuggestionThreadView',Sn),_0x137282['define']('trackChanges.SuggestionView',Mn),_0x137282['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x137282['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x15329a,_0x28a9f3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d3104,_0x89c70e]of this['_handleControllerBuffer']){const _0x1050a3=this['_suggestionToController']['has'](_0x1d3104);_0x1050a3||_0x89c70e?_0x1050a3&&_0x89c70e&&this['_destroyController'](_0x1d3104):this['_initializeController'](_0x1d3104);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x30b8f6)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x15329a,_0x28a9f3);}init(){const _0x5c1370=this['editor'],_0x49e04b=_0x5c1370['plugins']['get'](un),_0x2ee297=_0x5c1370['plugins']['get'](_0x7d0c49),_0x317fba=_0x5c1370['plugins']['get'](_0x30b8f6),_0x454b78=_0x5c1370['plugins']['get'](_0x3ed633);this['_addUIComponentsToFactory'](),_0x317fba['addSourceCollector'](()=>{const _0x5019e3=[];for(const [_0x4333bd,_0x428a20]of Array['from'](this['_suggestionToController'])){const _0x4a08bb=_0x4333bd['getAllAdjacentSuggestions'](),_0x5c8f4b=[];for(const _0x2e47c2 of _0x4a08bb){if(!_0x2e47c2['isInContent'])continue;if(_0x2e47c2['isMultiRange']){_0x5c8f4b['push'](..._0x2e47c2['getRanges']());continue;}const _0x5e9ab9=_0x2e47c2['getFirstRange']();if(_0x5c8f4b['length']>0x0){const _0x594451=_0x5c8f4b[0x0]['getJoined'](_0x5e9ab9);if(_0x594451){_0x5c8f4b[0x0]=_0x594451;continue;}}_0x5c8f4b['push'](_0x5e9ab9);}_0x5019e3['push']([_0x428a20['view'],_0x5c8f4b]);}return _0x5019e3;}),this['listenTo'](_0x49e04b,'suggestionLoaded',(_0x9d935b,_0x213160)=>{this['listenTo'](_0x213160,'change:previous',(_0x1559c9,_0xf382a1,_0x4384d2,_0x5d81e5)=>{_0x213160['isInContent']&&(null==_0x4384d2?(this['_updateController'](_0x5d81e5['head']),this['_handleSuggestionControllerDelayed'](_0x213160,!0x1)):(this['_updateController'](_0x4384d2['head']),null==_0x5d81e5&&this['_handleSuggestionControllerDelayed'](_0x213160,!0x0)));}),null!==_0x213160['previous']?this['_updateController'](_0x213160['head']):this['_handleSuggestionControllerDelayed'](_0x213160,!0x1);}),this['listenTo'](_0x49e04b,'suggestionUnloaded',(_0x2911cf,_0x540052,_0x5aa2c)=>{this['stopListening'](_0x540052,'change:previous'),this['_handleControllerBuffer']['delete'](_0x540052),this['_suggestionToController']['has'](_0x540052)&&this['_destroyController'](_0x540052),_0x5aa2c&&this['_updateController'](_0x5aa2c['head']);}),this['listenTo'](_0x49e04b,'suggestionChanged',(_0xe0d463,_0x5264c8)=>{this['_updateController'](_0x5264c8);}),this['listenTo'](_0x2ee297,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x454b78,'addComment',(_0x594c93,{threadId:_0x539b1a,isFromAdapter:_0x57c80a})=>{if(_0x57c80a||!_0x49e04b['hasSuggestion'](_0x539b1a))return;const _0x35c01f=_0x49e04b['getSuggestion'](_0x539b1a);this['_suggestionToController']['get'](_0x35c01f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x577a1b=[this['editor']];for(const _0x361294 of _0x577a1b){let _0x50681e;for(const _0x251118 in _0x361294){const _0x7d7846=_0x251118,_0x33baa2=_0x361294[_0x7d7846];if('trackChangesLicenseKeyValid'==_0x33baa2||'trackChangesLicenseKeyInvalid'==_0x33baa2||'trackChangesLicenseKeyExpired'==_0x33baa2||'trackChangesLicenseKeyDomainLimit'==_0x33baa2||'trackChangesLicenseKeyNotAllowed'==_0x33baa2||'trackChangesLicenseKeyEvaluationLimit'==_0x33baa2||'trackChangesLicenseKeyUsageLimit'==_0x33baa2){delete _0x361294[_0x7d7846],_0x50681e=_0x33baa2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x50681e&&_0x361294['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x50681e&&_0x361294['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x50681e&&_0x361294['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x50681e&&_0x361294['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x50681e&&_0x361294['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x50681e&&_0x361294['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x562ea9){const _0x20549f=this['_suggestionToController']['get'](_0x562ea9);return _0x20549f&&this['editor']['plugins']['get'](_0x7d0c49)['getByInnerView'](_0x20549f['view'])||null;}getSuggestionForAnnotation(_0x484d2d){const _0xc64e4b=this['_viewToController']['get'](_0x484d2d['innerView']);return _0xc64e4b?_0xc64e4b['model']:null;}_refreshActiveMarkers(){const _0x28eb74=this['editor']['plugins']['get'](_0x7d0c49),_0x4350a5=this['editor']['plugins']['get'](un),_0x32a33e=Array['from'](_0x28eb74['activeAnnotations'],_0x4cfd31=>_0x4cfd31['innerView'])['filter'](_0x485c9c=>this['_viewToController']['has'](_0x485c9c)),_0x1d033c=[];for(const _0xbd0cd2 of _0x32a33e){const _0x1aadba=this['_viewToController']['get'](_0xbd0cd2)['model']['getAllAdjacentSuggestions']();_0x1d033c['push'](..._0x1aadba['reduce']((_0x1fd236,_0x4f0bb9)=>[..._0x1fd236,..._0x4f0bb9['getMarkerNames']()],[]));}_0x4350a5['activeMarkers']=_0x1d033c;}_addUIComponentsToFactory(){const _0x4f1fed=this['editor'],_0x141e01=_0x4f1fed['locale'],_0x2555bf=Bt(_0x141e01,'Track\x20changes'),_0x4cbfa9=new _0x35af9d([{'type':'switchbutton','model':new _0x5e3faf({'withText':!0x0,'isToggleable':!0x0,'label':_0x2555bf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5e3faf({'withText':!0x0,'label':Bt(_0x141e01,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3faf({'withText':!0x0,'label':Bt(_0x141e01,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3faf({'withText':!0x0,'label':Bt(_0x141e01,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5e3faf({'withText':!0x0,'label':Bt(_0x141e01,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x4f1fed['plugins']['has']('TrackChangesPreview')&&_0x4cbfa9['addMany']([{'type':'separator'},{'type':'button','model':new _0x5e3faf({'withText':!0x0,'label':Bt(_0x141e01,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x53922d of _0x4cbfa9)if(wn(_0x53922d)){const _0x50cd7e=_0x4f1fed['commands']['get'](_0x53922d['model']['commandName']);_0x53922d['model']['bind']('isOn','isEnabled')['to'](_0x50cd7e,'value','isEnabled');}_0x4f1fed['ui']['componentFactory']['add']('trackChanges',_0x1cf6ff=>this['_createToolbarButton'](_0x1cf6ff,_0x4cbfa9,_0x2555bf)),_0x4f1fed['ui']['componentFactory']['add']('menuBar:trackChanges',_0x294ab9=>this['_createMenuBarMenu'](_0x294ab9,_0x4cbfa9,_0x2555bf));}_createToolbarButton(_0x190452,_0x4bbe59,_0x2b15fa){const _0x80c2b4=_0x2b2494(_0x190452,_0x3d0313),_0x55fa72=this['editor']['commands']['get']('trackChanges');_0x80c2b4['buttonView']['set']({'tooltip':_0x2b15fa,'label':_0x2b15fa,'icon':_0x2b89ca}),_0x80c2b4['buttonView']['bind']('isOn')['to'](_0x55fa72,'value'),_0x80c2b4['buttonView']['on']('execute',()=>{_0x55fa72['execute'](),this['editor']['editing']['view']['focus']();}),_0x332af6(_0x80c2b4,_0x4bbe59,{'role':'menu'});const _0x11e478=[];for(const _0x5bfc03 of _0x4bbe59)wn(_0x5bfc03)&&_0x11e478['push'](this['editor']['commands']['get'](_0x5bfc03['model']['commandName']));const _0x36d4b9=_0x80c2b4['buttonView'];return _0x36d4b9['actionView']['unbind']('isEnabled'),_0x36d4b9['arrowView']['unbind']('isEnabled'),_0x36d4b9['actionView']['bind']('isEnabled')['to'](_0x55fa72,'isEnabled'),_0x36d4b9['arrowView']['bind']('isEnabled')['toMany'](_0x11e478,'isEnabled',(..._0x316c28)=>_0x316c28['some'](_0x33b81d=>_0x33b81d)),_0x80c2b4['on']('execute',_0x4b0ba8=>{this['editor']['execute'](_0x4b0ba8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x80c2b4;}_createMenuBarMenu(_0x487191,_0x5e7105,_0x2fd978){const _0x3635cf=new _0x4a7ebd(_0x487191),_0x932fed=this['editor']['commands']['get']('trackChanges');_0x3635cf['buttonView']['set']({'label':_0x2fd978,'icon':_0x2b89ca});const _0x21cf77=new _0x188b0b(_0x487191);for(const _0x49e54a of _0x5e7105){if('separator'==_0x49e54a['type']){_0x21cf77['items']['add'](new _0x4ea4ce(_0x487191));continue;}const _0x32d272=new _0x225db7(_0x487191,_0x3635cf),_0x5509c4=new _0x582481(_0x487191),_0x2e01d6=_0x49e54a['model'];_0x5509c4['bind'](...Object['keys'](_0x2e01d6))['to'](_0x2e01d6),_0x5509c4['delegate']('execute')['to'](_0x3635cf),_0x5509c4['on']('execute',()=>{this['editor']['execute'](_0x2e01d6['commandName']),this['editor']['editing']['view']['focus']();}),_0x32d272['children']['add'](_0x5509c4),_0x21cf77['items']['add'](_0x32d272);}return _0x3635cf['bind']('isEnabled')['to'](_0x932fed,'isEnabled'),_0x3635cf['panelView']['children']['add'](_0x21cf77),_0x3635cf;}_initializeController(_0x2835d2){const _0x13a26a=this['editor'],_0x3224d8=_0x13a26a['config'],_0x48207d=_0x13a26a['plugins']['get'](_0x7d0c49),_0x1c25f8=_0x13a26a['plugins']['get'](_0x3ed633),_0x57129b=_0x13a26a['plugins']['get'](_0x30b8f6),_0x17bc92=_0x13a26a['plugins']['get'](_0x59419f)['me'],_0x45b8ca=_0x3224d8['get']('trackChanges')['SuggestionThreadView'],_0x266a80=_0x3224d8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2e4fbb,CommentThreadInputView:_0x118b4f}=_0x13a26a['plugins']['get']('CommentsUI');let _0x4407a1,_0x34adbc,_0x3d9d64;this['_annotationViews']['has'](_0x2835d2['id'])?(_0x34adbc=this['_annotationViews']['get'](_0x2835d2['id']),_0x4407a1=_0x34adbc['mainView']):(_0x4407a1=new _0x45b8ca(_0x13a26a['locale'],_0x2835d2,_0x17bc92,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3224d8['get']('comments.editorConfig'),'licenseKey':_0x3224d8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3224d8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3224d8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3224d8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x89d3d3(_0x3224d8['get']('locale'),_0x13a26a['locale']),'CommentView':_0x3224d8['get']('comments')['CommentView'],'CommentsListView':_0x2e4fbb,'CommentThreadInputView':_0x118b4f,'SuggestionView':_0x266a80,'showAISource':_0x3224d8['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x3224d8['get']('trackChanges.aiAuthor'),'name':_0x3224d8['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x13a26a['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4407a1['suggestionView']['acceptButton']['on']('execute',()=>{_0x13a26a['editing']['view']['focus']();}),_0x4407a1['suggestionView']['discardButton']['on']('execute',()=>{_0x13a26a['editing']['view']['focus']();}),_0x34adbc=_0x48207d['createAnnotationView'](this['editor']['locale'],_0x4407a1),_0x34adbc['bind']('isDirty')['to'](_0x4407a1,'isDirty'),_0x34adbc['bind']('length')['to'](_0x4407a1),_0x34adbc['bind']('type')['to'](_0x4407a1,'type',_0xf6e632=>'suggestion-'+_0xf6e632),_0x4407a1['on']('escape',()=>{_0x3d9d64['fire']('escape');}),this['_annotationViews']['set'](_0x2835d2['id'],_0x34adbc));const _0x25b54e=_0x1c25f8['createCommentThreadController'](_0x2835d2['commentThread'],_0x4407a1),_0x1456bb=new Nn(_0x13a26a,_0x2835d2,_0x4407a1,_0x25b54e),_0x18bbee=_0x2835d2['getAllAdjacentSuggestions']()['filter'](_0x177353=>_0x177353['isInContent']);_0x4407a1['descriptionParts']=_0x13a26a['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x18bbee),this['_suggestionToController']['set'](_0x2835d2,_0x1456bb),this['_viewToController']['set'](_0x4407a1,_0x1456bb);const _0x88910d=()=>{const _0x48c701=[],_0x4c3480=_0x2835d2['getAllAdjacentSuggestions']()['filter'](_0x3239aa=>_0x3239aa['isInContent']);for(const _0x3149e4 of _0x4c3480)_0x48c701['push'](..._0x3149e4['getMarkers']());return _0x5c259a(_0x13a26a['editing'],_0x48c701);};_0x3d9d64=_0x48207d['createAnnotation']({'view':_0x34adbc,'target':_0x88910d,'type':()=>'suggestion-'+_0x1456bb['view']['type'],'isVisible':!!_0x88910d()}),_0x1c25f8['_bindAnnotationToEditors'](_0x4407a1,_0x3d9d64),_0x48207d['add'](_0x3d9d64),_0x57129b['registerAnnotation'](_0x3d9d64);}_destroyController(_0x505e98){const _0xdd70c8=this['editor']['plugins']['get'](_0x3ed633),_0x355528=this['editor']['plugins']['get'](_0x7d0c49),_0x6a21c8=this['_suggestionToController']['get'](_0x505e98),_0x4113a0=_0x6a21c8['view'],_0x51d055=_0x355528['getByInnerView'](_0x4113a0);_0xdd70c8['_unbindEditors'](_0x4113a0),_0x51d055&&_0x355528['remove'](_0x51d055),this['_suggestionToController']['delete'](_0x505e98),this['_viewToController']['delete'](_0x4113a0),_0x6a21c8['destroy']();}_updateController(_0xa212de){if(!_0xa212de['isInContent']||!this['_suggestionToController']['has'](_0xa212de))return;const _0x14ac17=this['editor']['plugins']['get'](un),_0x1c9564=this['_suggestionToController']['get'](_0xa212de),_0x40ab4=_0xa212de['getAllAdjacentSuggestions']();_0x1c9564['view']['descriptionParts']=_0x14ac17['descriptionFactory']['getDescriptions'](_0x40ab4);}destroy(){for(const _0xf6ea17 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf6ea17);for(const _0x4111bd of this['_annotationViews']['values']())_0x4111bd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x19676f){return'model'in _0x19676f;}var Bn=class extends _0x3e92ef{static get requires(){return[un,On,_0x2d03c0];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x164c67){this['editor']['plugins']['get'](un)['adapter']=_0x164c67;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x5465cf){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x5465cf);}getSuggestions({skipNotAttached:_0x116418=!0x1,toJSON:_0x30d7cf=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x116418,'toJSON':_0x30d7cf});}getSuggestion(_0x364b77){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x364b77);}};const Fn=['Pagination'];var vn=class extends _0x3e92ef{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x48f8e6=this['editor'];if(_0x48f8e6['config']['define']('trackChangesData.editorCreator',_0x3b57a2=>{const _0x481dc9=_0x48f8e6['model']['document']['getRootNames']()['reduce']((_0x2e69d5,_0x4f3300)=>(_0x2e69d5[_0x4f3300]='',_0x2e69d5),{});return _0x48f8e6['constructor']['create'](_0x481dc9,_0x3b57a2);}),'function'!=typeof _0x48f8e6['config']['get']('trackChangesData')['editorCreator'])throw new _0x579d79('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x5786ca){return Pn(this['editor'],!0x0,_0x5786ca);}getDataWithDiscardedSuggestions(_0xe9f0b8){return Pn(this['editor'],!0x1,_0xe9f0b8);}},Dn=class extends _0x3e92ef{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x37cc01){super(_0x37cc01),this['result']='end',_0x37cc01['editing']['view']['_overlayModeHint']='auto',_0x37cc01['_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 Un(_0x6ab5a8){return void 0x0!==_0x6ab5a8['getRootsAttributes'];}async function Pn(_0x504910,_0x2c5edc,_0x1d1863){const _0x448b95=et(_0x504910,Fn);if(_0x448b95['plugins']['push'](un,Dn),Un(_0x504910)){_0x448b95['roots']=Object['create'](null);for(const _0x35912b of _0x504910['model']['document']['getRootNames']())_0x448b95['roots'][_0x35912b]={'modelAttributes':_0x504910['getRootAttributes'](_0x35912b)};}const _0x124bae=document['createDocumentFragment'](),_0xb622f6=_0x504910['config']['get']('trackChangesData')['editorCreator'],_0x2a83f5=await _0xb622f6(_0x448b95,()=>function(_0x4672a8){const _0x24bc1c=document['createElement']('div');return _0x4672a8['appendChild'](_0x24bc1c),_0x24bc1c;}(_0x124bae));!function(_0x2db66b,_0x7827c8){const _0x446236=_0x2db66b['model']['document']['getRootNames']()['reduce']((_0x4d54fe,_0x2fb6fe)=>(_0x4d54fe[_0x2fb6fe]=_0x2db66b['data']['get']({'rootName':_0x2fb6fe}),_0x4d54fe),{}),_0x333a15=_0x2db66b['plugins']['get']('Users')['users']['map'](_0x58efe3=>({'id':_0x58efe3['id'],'name':_0x58efe3['name']})),_0x142ccb=_0x2db66b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x50e6eb=_0x2db66b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b315d=_0x7827c8['plugins']['get']('Users'),_0x18f8f5=_0x7827c8['plugins']['get']('TrackChangesEditing'),_0x3335e9=_0x7827c8['plugins']['get']('CommentsRepository');for(const _0x251f22 of _0x3335e9['getCommentThreads']())_0x251f22['remove']();for(const _0x1bb9ce of _0x333a15)_0x2b315d['getUser'](_0x1bb9ce['id'])||_0x2b315d['addUser'](_0x1bb9ce);_0x2b315d['me']||_0x2b315d['useAnonymousUser']();for(const _0x430375 of _0x50e6eb)_0x3335e9['addCommentThread'](_0x430375);for(const _0x3b0b78 of _0x142ccb)_0x18f8f5['addSuggestionData'](_0x3b0b78);_0x7827c8['data']['set'](_0x446236);}(_0x504910,_0x2a83f5),_0x2a83f5['execute'](_0x2c5edc?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c8662=Un(_0x2a83f5)?_0x2a83f5['getFullData'](_0x1d1863):_0x2a83f5['data']['get'](_0x1d1863);return await _0x2a83f5['destroy'](),_0x4c8662;}var xn=class extends _0xf83b87{options;constructor(_0x4c6a43,_0x224164){super(_0x4c6a43),this['options']=_0x224164,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(_0x556d7e,_0x3dc57d){if(!this['element'])return;const _0x43446f=[];for(const [_0x364b37,_0x3d859e]of _0x556d7e){const _0x14e6e9=document['createElement']('div');_0x14e6e9['setAttribute']('data-ck-root-name',_0x364b37),_0x14e6e9['className']=_0x3d859e['classes']+'\x20ck-track-changes-preview__root-container',_0x14e6e9['innerHTML']=_0xec8719(_0x3d859e['content']),_0x43446f['push'](_0x14e6e9);}_0x3dc57d(this['element'],_0x43446f),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x1075a7{constructor(_0x23cee8){super(_0x23cee8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1479e0=this['editor'],_0x554c13=_0x1479e0['locale'],_0x4d7c9f=_0x1479e0['plugins']['get']('Dialog');let _0x60b543;const _0x406112=function(_0x4b7e70){const _0x20c831={};if('editables'in _0x4b7e70['ui']['view']){for(const [_0x37a9d8,_0x44a8d2]of Object['entries'](_0x4b7e70['ui']['view']['editables']))_0x20c831[_0x37a9d8]=_0x44a8d2['element'];}else _0x20c831[_0x4b7e70['model']['document']['getRootNames']()[0x0]]=_0x4b7e70['ui']['view']['editable']['element'];return _0x20c831;}(_0x1479e0),_0x29ab5d=function(_0x3d8743){let _0x5eb02d=0x0;for(const _0x3111ca of Object['values'](_0x3d8743))_0x5eb02d=Math['max'](_0x5eb02d,_0x3111ca['getBoundingClientRect']()['width']);let _0x59c7b4=0x0;for(const _0x3aee11 of Object['values'](_0x3d8743))_0x59c7b4+=_0x3aee11['getBoundingClientRect']()['height'];const _0x2ec5a6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x5eb02d,'height':Math['min'](_0x59c7b4,_0x2ec5a6)};}(_0x406112);_0x4d7c9f['show']({'id':'finalContentPreview','title':Bt(_0x554c13,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0x554c13,{'dialogRects':_0x29ab5d}),'onHide':()=>{_0x60b543['destroy']();},'onShow':()=>{_0x1479e0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xf3fcaf=>{const _0xb3ae03=this['_standarizeRootsData'](_0xf3fcaf,_0x1479e0,_0x406112);_0x4d7c9f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xb3ae03,_0x1479e0['config']['get']('trackChanges.preview.renderFunction'));}),_0x60b543=new _0x55fb20(_0x554c13,[_0x4d7c9f['view']]),_0x60b543['attachToDom'](_0x1479e0['ui']['view']['body']['mountTarget']),_0x60b543['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1479e0['once']('destroy',()=>{_0x60b543['destroy']();});const _0x1f8d6f=_0x4d7c9f['view']['headerView']['class'];_0x4d7c9f['view']['headerView']['class']=_0x1f8d6f?_0x1f8d6f+'\x20ck-reset_all':'ck-reset_all',_0x4d7c9f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x4d7c9f['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x14b7db=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x376ed1=_0x14b7db['previewMode'],_0x1de858={};if('$labels'===_0x376ed1){for(const _0x55367b of _0x14b7db['getMergeFieldsIds']())_0x1de858[_0x55367b]=_0x14b7db['getLabel'](_0x55367b)||_0x55367b;}else{const _0x1845b0='$defaultValues'===_0x376ed1?_0x14b7db['getDefaultValues']():_0x14b7db['getDataSetValues'](_0x376ed1,!0x0);for(const _0xf1ed2d of Object['entries'](_0x1845b0)){const [_0x48a1ab,_0x252e49]=_0xf1ed2d;_0x1de858[_0x48a1ab]=null!==_0x252e49?_0x252e49:_0x14b7db['getLabel'](_0x48a1ab)||_0x48a1ab;}}return{'mergeFieldsData':_0x1de858};}_standarizeRootsData(_0x4f0921,_0x115005,_0x4e231a){let _0x5014fa;_0x5014fa='string'==typeof _0x4f0921?{[_0x115005['model']['document']['getRootNames']()[0x0]]:_0x4f0921}:_0x4f0921;const _0x1e5a21=this['_fixMediaEmbeds'](_0x5014fa,_0x115005);return function(_0x3a3c82,_0x2372e1){const _0x3354ec=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x364be1,_0x47eae5]of _0x3a3c82)_0x47eae5['classes']=Array['from'](_0x2372e1[_0x364be1]['classList'])['filter'](_0x36042f=>!_0x3354ec['has'](_0x36042f))['join']('\x20');return _0x3a3c82;}(this['_sortRoots'](_0x115005)['reduce']((_0x1ae5ea,_0xda4b72)=>(_0x1ae5ea['push']([_0xda4b72,{'content':_0x1e5a21[_0xda4b72],'classes':''}]),_0x1ae5ea),[]),_0x4e231a);}['_fixMediaEmbeds'](_0x2107d3,_0x5b394e){if(!_0x5b394e['plugins']['has']('MediaEmbedEditing'))return _0x2107d3;const _0x114857=_0x5b394e['plugins']['get']('MediaEmbedEditing');for(const [_0x5bc45f,_0x395ec0]of Object['entries'](_0x2107d3)){const _0x3fe4b6=document['createElement']('div');_0x3fe4b6['innerHTML']=_0xec8719(_0x395ec0),_0x3fe4b6['querySelectorAll']('figure.media')['forEach'](_0x29cae7=>{const _0x4dec34=_0x29cae7['querySelector']('oembed');if(_0x4dec34){const _0xd2467f=_0x4dec34['getAttribute']('url');if(_0xd2467f){const _0x40df77=_0x114857['registry']['getMediaViewElement'](new lt(_0x5b394e['editing']['view']['document']),_0xd2467f,{'elementName':'','renderForEditingView':!0x0}),_0x229118=document['createElement']('div');_0x229118['classList']['add']('ck-media__wrapper'),_0x40df77['render'](_0x229118,_0x5b394e['editing']['view']['domConverter']),_0x4dec34['replaceWith'](_0x229118);}}}),_0x2107d3[_0x5bc45f]=_0x3fe4b6['innerHTML'];}return _0x2107d3;}_sortRoots(_0x1afbff){if(!function(_0x3edaaa){return void 0x0!==_0x3edaaa['getRootsAttributes'];}(_0x1afbff))return _0x1afbff['model']['document']['getRootNames']();const _0x155cb4=[],_0x5b836a=new Map();for(const _0x4d4174 of _0x1afbff['model']['document']['getRootNames']()){const _0x3e415c=_0x1afbff['editing']['view']['getDomRoot'](_0x4d4174)['getClientRects']()['item'](0x0);_0x155cb4['push'](_0x4d4174),_0x5b836a['set'](_0x4d4174,_0x3e415c);}return _0x155cb4['sort']((_0x473442,_0x5b27de)=>{const _0x1b37e3=_0x5b836a['get'](_0x473442),_0x2be69e=_0x5b836a['get'](_0x5b27de);return _0x1b37e3['y']-_0x2be69e['y']||_0x1b37e3['x']-_0x2be69e['x'];}),_0x155cb4;}},Hn=class extends _0x3e92ef{static get requires(){return[vn,_0x26dd30];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5593a2){super(_0x5593a2),_0x5593a2['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x5593a2['config']['define']('trackChanges.preview.renderFunction',(_0x5318e6,_0x2010ff)=>{for(const _0x127b60 of _0x2010ff)_0x5318e6['appendChild'](_0x127b60);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};
|
|
23
|
+
import{Command as _0x3259d6,PendingActions as _0x39f60d,Plugin as _0xdaca7a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x315c04,Comments as _0x4c3b8b,CommentsRepository as _0x150919,EditorAnnotations as _0x42ddf7}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4d110d,Collection as _0x1b0b04,FocusTracker as _0x40271f,KeystrokeHandler as _0x5517a6,ObservableMixin as _0x1e31b6,getEnvKeystrokeText as _0x2f473e,insertToPriorityArray as _0x3a6f64,logWarning as _0x2cdc9d,priorities as _0xba5ef9,trustedHtml as _0x319c31,uid as _0x575a49}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x34b5a1,IconCancel as _0x54133c,IconCheck as _0x23bba2,IconSparkle as _0x1c1c92,IconTrackChanges as _0x1d6c3a}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x46809e,Dialog as _0x4d6a67,FocusCycler as _0x413e2c,IconView as _0x2e94b3,ListSeparatorView as _0x4b2908,MenuBarMenuListItemButtonView as _0x52ec9b,MenuBarMenuListItemView as _0x5d0842,MenuBarMenuListView as _0x3125ed,MenuBarMenuView as _0x519cea,SplitButtonView as _0x5c094f,UIModel as _0x423fec,View as _0x529f7f,ViewCollection as _0x137634,_getLocalizedColorName as _0xa13eb7,addListToDropdown as _0xca1535,createDropdown as _0x3baf14,normalizeColorOptions as _0x2125cd}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x17340b,CollaborationUserColor as _0xd3ee25,FOCUS_ANNOTATION_KEYSTROKE as _0xbe07f8,LateFocusButtonView as _0x36bc7f,PillView as _0xf6372,SuggestionsConversion as _0xf71396,User as _0x43a3cd,UserView as _0x54ce75,Users as _0x3496aa,fixElementSuggestionRange as _0x395e9e,getAllMarkersDomElementsSorted as _0x30747b,getDateTimeFormatter as _0x1c194e,hashObject as _0x192d09,isInvalidAttributeOperation as tt,sanitizeEditorConfig as et,setupThreadKeyboardNavigation as nt,splitSuggestionMarkerName as it,surroundingMarkersDetector as st,trimHtml as rt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as ot,ModelLivePosition as at,ModelLiveRange as ct,ViewDowncastWriter as lt}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ut,isEqual as dt,omit as ht,set as gt,unset as ft}from'es-toolkit/compat';import{ClipboardMarkersUtils as mt,ClipboardPipeline as Et}from'@ckeditor/ckeditor5-clipboard';import{Delete as Tt,Input as _t}from'@ckeditor/ckeditor5-typing';import{Enter as pt}from'@ckeditor/ckeditor5-enter';var Lt=class extends _0x3259d6{['_enabledCommands'];constructor(_0x346d3f,_0x3742ed){super(_0x346d3f),this['_enabledCommands']=_0x3742ed,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 _0x3726fb of this['editor']['commands']['commands']())_0x3726fb['affectsData']&&!this['_enabledCommands']['has'](_0x3726fb)&&_0x3726fb['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x420767 of this['editor']['commands']['commands']())_0x420767['affectsData']&&!this['_enabledCommands']['has'](_0x420767)&&_0x420767['clearForceDisabled']('TrackChangesCommand');}},It=class extends _0x3259d6{_suggestions;constructor(_0x222542,_0x55c66a){super(_0x222542),this['_suggestions']=_0x55c66a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x276cc0){const _0x4755bb=this['_suggestions']['get'](_0x276cc0);if(!_0x4755bb)throw new _0x4d110d('track-changes-accept-suggestion-not-found',this);const _0x4b9ee5=_0x4755bb['getRanges']();this['editor']['model']['canEditAt'](_0x4b9ee5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4755bb);}},At=class extends _0x3259d6{_suggestions;constructor(_0x117dc6,_0x244971){super(_0x117dc6),this['_suggestions']=_0x244971,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x14cf67){const _0x129188=this['_suggestions']['get'](_0x14cf67);if(!_0x129188)throw new _0x4d110d('track-changes-discard-suggestion-not-found',this);const _0x402350=_0x129188['getRanges']();this['editor']['model']['canEditAt'](_0x402350)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x129188);}};function bt(_0x2a1940,_0xd4a997){let _0x3ec8e7='';return _0x3ec8e7+=_0x2a1940['split']('*')['map']((_0x474eed,_0x4eae8d)=>_0x4eae8d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Ct(_0x474eed)+'</span>':Ct(_0x474eed))['join'](''),_0xd4a997&&(_0x3ec8e7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xd4a997['value']+'\x22\x20title=\x22'+_0xd4a997['title']+'\x22></span>'),_0x3ec8e7;}function Ct(_0x140503){const _0x23955a=document['createElement']('span');return _0x23955a['innerText']=_0x140503,_0x23955a['innerHTML'];}function kt(_0x250f6b){return _0x250f6b['sort']((_0x3e2e49,_0xb216bc)=>'attribute'===_0x3e2e49['type']&&'attribute'!==_0xb216bc['type']?-0x1:'attribute'!==_0x3e2e49['type']&&'attribute'===_0xb216bc['type']?0x1:'deletion'==_0x3e2e49['type']&&'deletion'!=_0xb216bc['type']?-0x1:'deletion'!=_0x3e2e49['type']&&'deletion'==_0xb216bc['type']?0x1:0x0);}function Rt(_0x363874,_0x83c69){let _0x23921b,_0xc8f774=0x0;const _0x94506c=[],_0x194d04=_0x83c69['schema'];for(;_0xc8f774<_0x363874['length'];){const _0x5538b9=_0x363874[_0xc8f774],_0x243cf4=_0x363874[_0xc8f774+0x1];_0x23921b||(_0x23921b=_0x83c69['createPositionBefore'](_0x5538b9)),Nt(_0x83c69,_0x5538b9,_0x243cf4)||(_0x94506c['push'](_0x83c69['createRange'](_0x23921b,_0x194d04['isObject'](_0x5538b9)?_0x83c69['createPositionAfter'](_0x5538b9):_0x83c69['createPositionAt'](_0x5538b9,'end'))),_0x23921b=null),_0xc8f774++;}return _0x94506c;}function Nt(_0x255e4f,_0x536b9a,_0x343662){if(!_0x343662)return!0x1;const _0x523504=_0x255e4f['createPositionAfter'](_0x536b9a),_0x63b397=_0x255e4f['createPositionBefore'](_0x343662);return _0x523504['isTouching'](_0x63b397);}function yt(_0x5390fe,_0xb5ac3f,_0x4d9159){for(;_0x4d9159['length'];){const _0x3a9908=_0x4d9159['splice'](0x0,0x64);_0x5390fe['change'](()=>{for(const _0x3e0e49 of _0x3a9908)_0x3e0e49['isInContent']&&_0xb5ac3f['execute'](_0x3e0e49['id']);});}}var St=class extends _0x3259d6{['_command'];_suggestions;constructor(_0x1e603c,_0x4a4d71,_0x375cb0){super(_0x1e603c),this['_command']=_0x4a4d71,this['_suggestions']=_0x375cb0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3c47d1=Array['from'](this['_suggestions']['values']())['some'](_0x106d35=>_0x106d35['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3c47d1;}execute(){const _0x5d304a=kt(Array['from'](this['_suggestions']['values']()));for(const _0x26819d of _0x5d304a){const _0x1e4774=_0x26819d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e4774))return;}yt(this['editor']['model'],this['_command'],_0x5d304a);}},Mt=class extends _0x3259d6{['_command'];_suggestions;_selectedSuggestions;constructor(_0x44787d,_0x5e789a,_0x1bf3ce){super(_0x44787d),this['_command']=_0x5e789a,this['_suggestions']=_0x1bf3ce,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5de7bd=this['editor']['model']['document']['selection'],_0x584714=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x3b53d2,_0x44bfcf){const _0x222b45=Array['from'](_0x3b53d2['getRanges']()),_0x199dd9=new Set();for(const _0x5e0f20 of _0x44bfcf)if(_0x5e0f20['isInContent']){for(const _0x5151ad of _0x222b45)for(const _0x28e7d8 of _0x5e0f20['getRanges']())(_0x5151ad['isIntersecting'](_0x28e7d8)||_0x3b53d2['isCollapsed']&&!_0x5e0f20['isMultiRange']&&_0x5e0f20['next']&&_0x28e7d8['end']['isTouching'](_0x5151ad['start']))&&_0x199dd9['add'](_0x5e0f20);}return _0x199dd9;}(_0x5de7bd,_0x584714),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x5794b0=kt(Array['from'](this['_selectedSuggestions']));for(const _0x3d8ef7 of _0x5794b0){const _0x2d7466=_0x3d8ef7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d7466))return;}yt(this['editor']['model'],this['_command'],_0x5794b0);}};const Ot=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1e31b6();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x5d43cc,_0x502e7a){super(),this['id']=_0x502e7a['id'],this['type']=_0x502e7a['type'],this['subType']=_0x502e7a['subType']||null,this['author']=_0x502e7a['author'],this['creator']=_0x502e7a['creator']||_0x502e7a['author'],this['data']=null,this['_originalSuggestionId']=_0x502e7a['originalSuggestionId']||null,this['_model']=_0x5d43cc,this['_onAccept']=_0x502e7a['onAccept'],this['_onDiscard']=_0x502e7a['onDiscard'],this['_onAttributesChange']=_0x502e7a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x502e7a['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 _0x16d28c=this;for(;_0x16d28c['previous'];)_0x16d28c=_0x16d28c['previous'];return _0x16d28c;}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'](_0x3f2eb9){this['_markerNames']['add'](_0x3f2eb9);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x58c7ec=>this['_model']['markers']['get'](_0x58c7ec))['filter'](_0x3fffb5=>_0x3fffb5);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46be53=>{for(const _0x5f4f3c of this['getMarkers']())_0x46be53['removeMarker'](_0x5f4f3c);}),this['_markerNames']['clear']();}['removeMarker'](_0x10da79){this['_model']['change'](_0x223655=>{_0x223655['removeMarker'](_0x10da79);}),this['_markerNames']['delete'](_0x10da79);}['addRange'](_0x583d6c){const _0x1c4b7a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x1c4b7a),this['_model']['change'](_0x375bda=>{_0x375bda['addMarker'](_0x1c4b7a,{'range':_0x583d6c,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x37f406){for(const _0x13aaf5 of this['getRanges']())if(_0x13aaf5['isIntersecting'](_0x37f406))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x397f48=>_0x397f48['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x410de9,_0xa9bea7)=>[..._0x410de9,..._0xa9bea7['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x325e02=this['getRanges']();if(0x1!=_0x325e02['length'])return null;const _0x4926e8=_0x325e02[0x0],_0x376a83=_0x4926e8['start']['nodeAfter'],_0xcebb81=_0x4926e8['end']['nodeBefore'];return _0x376a83 instanceof ot?_0x376a83!=_0xcebb81?null:_0x376a83: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 _0x26d3cf=[];let _0x5ec4cd=this['head'];for(;_0x5ec4cd;)_0x26d3cf['push'](_0x5ec4cd),_0x5ec4cd=_0x5ec4cd['next'];return _0x26d3cf;}setAttribute(_0x57ea6c,_0x29aee9){const _0xec1643=ut(this['attributes']);gt(_0xec1643,_0x57ea6c,_0x29aee9),dt(_0xec1643,this['attributes'])||(this['attributes']=_0xec1643,this['_onAttributesChange'](_0xec1643));}removeAttribute(_0xfa8105){const _0x17943f=ut(this['attributes']);ft(_0x17943f,_0xfa8105),dt(_0x17943f,this['attributes'])||(this['attributes']=_0x17943f,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 _0x575a49()['substr'](0x1,0x5);}};function Bt(_0x18f511,_0x42192a,_0x1f4d63){const _0x28173c=_0x18f511['t'],t=_0x18f511['t'];switch(_0x42192a){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',_0x1f4d63);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f4d63);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f4d63);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f4d63);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f4d63);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',_0x1f4d63);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f4d63);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',_0x1f4d63);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f4d63);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f4d63);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f4d63);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f4d63);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f4d63);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1f4d63);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f4d63);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f4d63);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f4d63);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f4d63);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f4d63);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f4d63);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f4d63);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f4d63);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f4d63);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f4d63);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1f4d63);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1f4d63);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f4d63);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f4d63);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f4d63);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f4d63);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f4d63);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'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f4d63);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f4d63);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f4d63);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f4d63);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'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f4d63);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x1f4d63);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x1f4d63);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x1f4d63);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f4d63);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'},_0x1f4d63);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1f4d63);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 _0x28173c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1f4d63);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x28173c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1f4d63);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1f4d63);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'},_0x1f4d63);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'},_0x1f4d63);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'},_0x1f4d63);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 _0x42192a;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x24346c,_0x2c1362){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24346c,this['_locale']=_0x2c1362;}getDescriptions(_0x32d911){const _0x5acf81=[],_0x1d035b=new Set(),_0x2b930c=new Set();for(let _0x583d21=0x0;_0x583d21<_0x32d911['length'];_0x583d21++){const _0xb43fa9=_0x32d911[_0x583d21];if(!_0xb43fa9['isInContent'])continue;const _0xfbff7c=this['_handleCustomCallbackDescription'](_0xb43fa9);if(_0xfbff7c){if(null!=_0xb43fa9['subType']){if(_0x1d035b['has'](_0xb43fa9['subType']))continue;_0x1d035b['add'](_0xb43fa9['subType']);}_0x5acf81['push'](_0xfbff7c);}else{if('attribute'==_0xb43fa9['type']){const _0x449ca9=_0xb43fa9['data']['key'];if(_0x2b930c['has'](_0x449ca9))continue;_0x2b930c['add'](_0xb43fa9['data']['key']),'$elementName'==_0x449ca9?this['_handleRenameSuggestionDescription'](_0x5acf81,_0xb43fa9):this['_handleAttributeSuggestionDescription'](_0x5acf81,_0xb43fa9);continue;}'insertion'!=_0xb43fa9['type']&&'deletion'!=_0xb43fa9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5acf81,_0xb43fa9,_0x32d911[_0x583d21+0x1]);}}return this['_resolveDescriptionItems'](_0x5acf81);}registerDescriptionCallback(_0x4ef29f){this['_customCallbacks']['push'](_0x4ef29f);}registerElementLabel(_0x42cc16,_0x2f1e11,_0x494598=_0xba5ef9['normal']){'function'==typeof _0x42cc16?_0x3a6f64(this['_itemLabelsCallbacks'],{'matchingCallback':_0x42cc16,'label':_0x2f1e11,'priority':_0x494598}):this['_itemLabels']['set'](_0x42cc16,_0x2f1e11);}registerAttributeLabel(_0x139275,_0x17e898){this['_attributeLabels']['set'](_0x139275,_0x17e898);}getItemLabel(_0xfb7560,_0x5a1b73=0x1){let _0x895c5b;for(const _0x535ca9 of this['_itemLabelsCallbacks'])if(_0x535ca9['matchingCallback'](_0xfb7560)){_0x895c5b=_0x535ca9['label'];break;}return _0x895c5b||(_0x895c5b=this['_itemLabels']['get'](_0xfb7560['name'])),_0x895c5b?_0x895c5b(_0x5a1b73):0x1!==_0x5a1b73?_0x5a1b73+'\x20'+_0xfb7560['name']+'s':''+_0xfb7560['name'];}_addDescriptionItems(_0x6340af,_0x5e29e9){const _0x1ccd38=_0x5e29e9['getFirstRange']()['getWalker'](),_0x5a17fc='insertion'==_0x5e29e9['type']?'add':'remove';for(const _0x411dde of _0x1ccd38){const _0x5e660d=_0x411dde['item'],_0x1b138b=_0x6340af[_0x6340af['length']-0x1];if(_0x5e660d['is']('$textProxy'))_0x1b138b&&_0x1b138b['type']['indexOf']('Container')>-0x1&&_0x6340af['pop'](),_0x1b138b&&'text'==_0x1b138b['type']?_0x1b138b[_0x5a17fc]+=_0x5e660d['data']:_0x6340af['push']({'type':'text','add':'add'==_0x5a17fc?_0x5e660d['data']:'','remove':'remove'==_0x5a17fc?_0x5e660d['data']:''});else{if(this['_schema']['isObject'](_0x5e660d)){const _0x16cd09=_0x5e660d;if(_0x1b138b&&_0x1b138b['type']['indexOf']('Container')>-0x1&&_0x6340af['pop'](),'elementEnd'==_0x411dde['type'])continue;_0x1b138b&&_0x1b138b['type']==_0x5a17fc+'Object'&&_0x1b138b['element']['name']==_0x16cd09['name']?_0x1b138b['quantity']++:_0x6340af['push']({'type':_0x5a17fc+'Object','element':_0x16cd09,'quantity':0x1}),_0x1ccd38['skip'](_0x144047=>!('elementEnd'==_0x144047['type']&&_0x144047['item']==_0x5e660d));}else{if(this['_schema']['checkChild'](_0x5e660d,'$text')||_0x5e660d['is']('element','softBreak')){const _0x37a2f5=_0x5e660d;if('add'==_0x5a17fc&&'elementStart'==_0x411dde['type']||'remove'==_0x5a17fc&&'elementEnd'==_0x411dde['type'])continue;if(_0x1b138b&&-0x1==_0x1b138b['type']['indexOf']('Container')){'text'==_0x1b138b['type']&&(_0x1b138b[_0x5a17fc]+='\x0a');continue;}let _0x3bbaeb;if(_0x3bbaeb='add'==_0x5a17fc?_0x37a2f5['nextSibling']&&!this['_schema']['isObject'](_0x37a2f5['nextSibling'])?_0x37a2f5['nextSibling']:null:_0x37a2f5['previousSibling']&&!this['_schema']['isObject'](_0x37a2f5['previousSibling'])?_0x37a2f5['previousSibling']:null,_0x37a2f5['isEmpty']||_0x3bbaeb&&_0x3bbaeb['isEmpty']){const _0x1887b3=_0x3bbaeb&&_0x3bbaeb['isEmpty']?_0x3bbaeb:_0x37a2f5;_0x1b138b&&_0x1b138b['type']==_0x5a17fc+'EmptyContainer'&&_0x1b138b['element']['name']==_0x1887b3['name']?_0x1b138b['quantity']++:_0x6340af['push']({'type':_0x5a17fc+'EmptyContainer','element':_0x1887b3,'quantity':0x1});}else _0x6340af['push']({'type':_0x5a17fc+'Container','element':_0x37a2f5});}}}}}_resolveDescriptionItems(_0x1e4222){const _0x47d79d=this['_locale'],_0x2c4a22=[],_0x78bc61=[],_0x33d59d=[];for(const _0x522abe of _0x1e4222)switch(_0x522abe['type']){case'text':if(_0x522abe['add']=_0x522abe['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x522abe['remove']=_0x522abe['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x522abe['add']&&''!=_0x522abe['remove']){_0x2c4a22['push']({'type':'replace','content':Bt(_0x47d79d,'REPLACE_TEXT',['\x22'+_0x522abe['remove']+'\x22','\x22'+_0x522abe['add']+'\x22'])});continue;}if(null!=_0x522abe['add']['match'](/^ +$/)){_0x2c4a22['push']({'type':'insertion','content':Bt(_0x47d79d,'*Insert:*\x20%0',Bt(_0x47d79d,'ELEMENT_SPACE',_0x522abe['add']['length']))});continue;}if(null!=_0x522abe['remove']['match'](/^ +$/)){_0x2c4a22['push']({'type':'deletion','content':Bt(_0x47d79d,'*Remove:*\x20%0',Bt(_0x47d79d,'ELEMENT_SPACE',_0x522abe['remove']['length']))});continue;}if(''!=_0x522abe['add']){_0x2c4a22['push']({'type':'insertion','content':Bt(_0x47d79d,'*Insert:*\x20%0','\x22'+_0x522abe['add']+'\x22')});continue;}_0x2c4a22['push']({'type':'deletion','content':Bt(_0x47d79d,'*Remove:*\x20%0','\x22'+_0x522abe['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2c4a22['push']({'type':'insertion','content':Bt(_0x47d79d,'*Insert:*\x20%0',this['getItemLabel'](_0x522abe['element'],_0x522abe['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2c4a22['push']({'type':'deletion','content':Bt(_0x47d79d,'*Remove:*\x20%0',this['getItemLabel'](_0x522abe['element'],_0x522abe['quantity']))});continue;case'addContainer':_0x2c4a22['push']({'type':'insertion','content':Bt(_0x47d79d,'*Split:*\x20%0',this['getItemLabel'](_0x522abe['element'],_0x522abe['quantity']))});continue;case'removeContainer':_0x2c4a22['push']({'type':'deletion','content':Bt(_0x47d79d,'*Merge:*\x20%0',this['getItemLabel'](_0x522abe['element'],_0x522abe['quantity']))});continue;case'addFormat':_0x78bc61['push'](_0x522abe['key']);continue;case'removeFormat':_0x33d59d['push'](_0x522abe['key']);continue;default:_0x2c4a22['push'](_0x522abe);}if(_0x78bc61['length']){const _0x7e6d29=_0x78bc61['map'](_0x5ab191=>this['_attributeLabels']['has'](_0x5ab191)?this['_attributeLabels']['get'](_0x5ab191):_0x5ab191)['join'](',\x20');_0x2c4a22['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x7e6d29)});}if(_0x33d59d['length']){const _0x2c327c=_0x33d59d['map'](_0x354357=>this['_attributeLabels']['has'](_0x354357)?this['_attributeLabels']['get'](_0x354357):_0x354357)['join'](',\x20');_0x2c4a22['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2c327c)});}return _0x2c4a22;}_handleCustomCallbackDescription(_0x901655){for(const _0xec9ac0 of this['_customCallbacks']){const _0x4c5843=_0xec9ac0(_0x901655);if(_0x4c5843&&'type'in _0x4c5843)return _0x4c5843;}}_handleAttributeSuggestionDescription(_0x5900e9,_0x23d03f){const _0x1e37cf=_0x23d03f['data'],_0x1f5402=void 0x0===_0x1e37cf['newValue']?'removeFormat':'addFormat';_0x5900e9['push']({'type':_0x1f5402,'key':_0x1e37cf['key']});}_handleRenameSuggestionDescription(_0x191937,_0x3adde9){_0x191937['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3adde9['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x4d9ca8,_0x953d7b,_0x45acf){if(this['_addDescriptionItems'](_0x4d9ca8,_0x953d7b),_0x45acf&&_0x45acf['getFirstRange']()&&!_0x953d7b['getFirstRange']()['end']['isEqual'](_0x45acf['getFirstRange']()['start'])){const _0xafae1d=_0x4d9ca8[_0x4d9ca8['length']-0x1],_0x1c0bb6='insertion'==_0x953d7b['type']?'add':'remove';_0xafae1d&&'text'==_0xafae1d['type']&&(_0xafae1d[_0x1c0bb6]+='\x0a');}}},vt=class extends _0xdaca7a{afterInit(){const _0x277376=this['editor'],_0x152d37=_0x277376['plugins']['get']('TrackChangesEditing');_0x277376['commands']['get']('showAIAssistant')&&_0x152d37['enableCommand']('showAIAssistant');}},Dt=class extends _0xdaca7a{afterInit(){const _0x17d8e4=this['editor'],_0x49f6ae=_0x17d8e4['plugins']['get']('TrackChangesEditing');_0x17d8e4['commands']['get']('toggleAi')&&_0x49f6ae['enableCommand']('toggleAi');}},Ut=class extends _0xdaca7a{afterInit(){const _0x2e5ca2=this['editor'],_0x1d6a82=_0x2e5ca2['plugins']['get']('TrackChangesEditing');_0x2e5ca2['commands']['get']('aiQuickAction')&&_0x1d6a82['enableCommand']('aiQuickAction');}},Pt=class extends _0xdaca7a{afterInit(){const _0x4a82b0=this['editor'],_0x3cce39=_0x4a82b0['locale'];if(!_0x4a82b0['plugins']['has']('AlignmentEditing'))return;const _0x329f33=_0x4a82b0['plugins']['get']('TrackChangesEditing');_0x329f33['enableDefaultAttributesIntegration']('alignment'),_0x329f33['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x3cce39,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x20d895=this['editor'],_0x33fb95=_0x20d895['locale'];_0x20d895['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f5dd6=>{if('formatBlock'!=_0x4f5dd6['type'])return;const {data:_0x15ab9e}=_0x4f5dd6;if(_0x15ab9e&&'alignment'==_0x15ab9e['commandName']){const _0x35d5a0=_0x15ab9e['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0x33fb95,'*Format:*\x20%0',function(_0x143883){switch(_0x143883){case'left':return Bt(_0x33fb95,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0x33fb95,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0x33fb95,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0x33fb95,'FORMAT_JUSTIFY_TEXT');}}(_0x35d5a0))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0xdaca7a{afterInit(){const _0x2c6025=this['editor'],_0x4cb384=_0x2c6025['plugins']['get']('TrackChangesEditing'),_0x14ac32=_0x2c6025['locale'];for(const _0x2ae4b3 of xt){if(!_0x2c6025['plugins']['has'](_0x2ae4b3))continue;const _0xf8e147=_0x2ae4b3['slice'](0x0,-0x7)['toLowerCase'](),_0x3c1988='FORMAT_'+_0xf8e147['toUpperCase']();_0x4cb384['enableDefaultAttributesIntegration'](_0xf8e147),_0x4cb384['descriptionFactory']['registerAttributeLabel'](_0xf8e147,Bt(_0x14ac32,_0x3c1988));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x31aee6=this['editor'],_0x4aa41c=_0x31aee6['locale'],_0x24b199=_0x31aee6['plugins']['get']('TrackChangesEditing');function _0x2a220b(_0x163737,_0x4a5a29){_0x24b199['descriptionFactory']['registerDescriptionCallback'](_0x51d164=>{if('formatInline'!=_0x51d164['type'])return;const {data:_0x386a58}=_0x51d164;return _0x386a58&&_0x386a58['commandName']===_0x163737?_0x386a58['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x4aa41c,'*Format:*\x20%0',_0x4a5a29)}:{'type':'format','content':Bt(_0x4aa41c,'*Remove\x20format:*\x20%0',_0x4a5a29)}:void 0x0;});}_0x2a220b('bold',Bt(_0x4aa41c,'FORMAT_BOLD')),_0x2a220b('italic',Bt(_0x4aa41c,'FORMAT_ITALIC')),_0x2a220b('underline',Bt(_0x4aa41c,'FORMAT_UNDERLINE')),_0x2a220b('code',Bt(_0x4aa41c,'FORMAT_CODE')),_0x2a220b('strikethrough',Bt(_0x4aa41c,'FORMAT_STRIKETHROUGH')),_0x2a220b('subscript',Bt(_0x4aa41c,'FORMAT_SUBSCRIPT')),_0x2a220b('superscript',Bt(_0x4aa41c,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0xdaca7a{afterInit(){const _0x4fbfab=this['editor'],_0x158494=_0x4fbfab['locale'];if(!_0x4fbfab['plugins']['has']('BlockQuoteEditing'))return;const _0x315f94=_0x4fbfab['plugins']['get']('TrackChangesEditing'),_0x581510=this['editor']['commands']['get']('blockQuote');_0x315f94['enableCommand']('blockQuote',(_0x2336ce,_0x5a425f={})=>{const _0x35f5f3=this['editor']['model']['document']['selection'],_0x34ce51=_0x5a425f&&void 0x0!==_0x5a425f['forceValue']?_0x5a425f['forceValue']:!_0x581510['value'];let _0xff2958=[];if(_0x34ce51){const _0x9520b3=Array['from'](_0x35f5f3['getSelectedBlocks']())['filter'](_0x269f7d=>$t(_0x269f7d)||function(_0x1894fe,_0x2f971f){const _0x1fcab5=_0x2f971f['createContext'](_0x1894fe['parent']);return!!_0x2f971f['checkChild'](_0x1fcab5,'blockQuote')&&!!_0x2f971f['checkChild'](_0x1fcab5['push']('blockQuote'),_0x1894fe);}(_0x269f7d,this['editor']['model']['schema']));_0xff2958=Rt(_0x9520b3,_0x4fbfab['model']);}else{const _0x349cf5=Array['from'](_0x35f5f3['getSelectedBlocks']())['filter'](_0x269a54=>$t(_0x269a54));_0xff2958=Rt(_0x349cf5,_0x4fbfab['model']);}_0x4fbfab['model']['change'](()=>{for(const _0x20a204 of _0xff2958)_0x315f94['markBlockFormat'](_0x20a204,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x34ce51}]});});}),_0x315f94['descriptionFactory']['registerDescriptionCallback'](_0x41a2c1=>{const {data:_0x53c1b3}=_0x41a2c1;if(_0x53c1b3&&'blockQuote'==_0x53c1b3['commandName']){const _0x1cac2b=Bt(_0x158494,'ELEMENT_BLOCK_QUOTE');return _0x53c1b3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x158494,'*Set\x20format:*\x20%0',_0x1cac2b)}:{'type':'format','content':Bt(_0x158494,'*Remove\x20format:*\x20%0',_0x1cac2b)};}});}};function $t(_0x1c1a12){return'blockQuote'==_0x1c1a12['parent']['name'];}var Wt=class extends _0xdaca7a{afterInit(){const _0x31ff2d=this['editor'],_0xf26dad=_0x31ff2d['locale'],_0x37500d=_0x31ff2d['plugins']['get']('TrackChangesEditing');_0x31ff2d['plugins']['has']('BookmarkEditing')&&(_0x37500d['enableCommand']('insertBookmark'),_0x37500d['enableDefaultAttributesIntegration']('updateBookmark'),_0x37500d['descriptionFactory']['registerDescriptionCallback'](_0x415ecf=>{if('insertion'!=_0x415ecf['type']&&'deletion'!=_0x415ecf['type']&&'attribute'!=_0x415ecf['type'])return;const _0x301221=_0x415ecf['getContainedElement']();if(null==_0x301221)return;if(!_0x301221['is']('element','bookmark'))return;const _0x58aaef=_0x301221['getAttribute']('bookmarkId');if('insertion'==_0x415ecf['type'])return{'type':'insertion','content':Bt(_0xf26dad,'*Insert:*\x20%0','\x22'+_0x58aaef+'\x22\x20'+Bt(_0xf26dad,'ELEMENT_BOOKMARK'))};if('deletion'==_0x415ecf['type'])return{'type':'deletion','content':Bt(_0xf26dad,'*Remove:*\x20%0','\x22'+_0x58aaef+'\x22\x20'+Bt(_0xf26dad,'ELEMENT_BOOKMARK'))};const {data:_0xf703fb}=_0x415ecf;return _0xf703fb&&'bookmarkId'==_0xf703fb['key']?{'type':'format','content':Bt(_0xf26dad,'*Set\x20bookmark:*\x20%0','\x22'+_0xf703fb['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0xdaca7a{afterInit(){const _0x4bcddd=this['editor'];_0x4bcddd['plugins']['has']('CaseChange')&&(_0x4bcddd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4bcddd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4bcddd['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0xdaca7a{afterInit(){const _0x27e056=this['editor'];_0x27e056['commands']['get']('ckbox')&&_0x27e056['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0xdaca7a{static get requires(){return[mt,Et];}constructor(_0x12785a){super(_0x12785a),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1769c6=this['editor'],_0x1c9932=_0x1769c6['plugins']['get']('ClipboardMarkersUtils'),_0x5386b9=_0x1769c6['plugins']['get'](Et);_0x1c9932['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x5386b9['on']('outputTransformation',(_0x10e38a,_0x25a0d3)=>{const _0x23129e=this['_getSuggestionEntries'](_0x25a0d3);for(const [_0x45b80b,_0x35fb5d]of _0x25a0d3['content']['markers']){const _0x34d2e0=ct['_fromRangeInDocumentFragment'](_0x35fb5d,_0x1769c6['model']);function _0x4e259e(){_0x34d2e0['detach'](),_0x25a0d3['content']['markers']['delete'](_0x45b80b);}_0x34d2e0['on']('change:drop',_0x4e259e),(_0x45b80b['startsWith']('suggestion:')||_0x45b80b['startsWith']('comment:'))&&_0x34d2e0['on']('change:range',()=>{_0x34d2e0['isCollapsed']&&_0x4e259e();}),_0x25a0d3['content']['markers']['set'](_0x45b80b,_0x34d2e0);}const _0x3c6239=_0x23129e['filter'](_0xcfa28d=>'deletion'===_0xcfa28d['meta']['type'])['map'](_0x150331=>_0x150331['modelRange']);if(this['_shouldSkipDeletions'](_0x3c6239,_0x25a0d3['content']))return[..._0x23129e]['forEach'](_0x10260a=>{_0x25a0d3['content']['markers']['get'](_0x10260a['markerName'])['detach'](),_0x25a0d3['content']['markers']['delete'](_0x10260a['markerName']);}),void this['_restoreRegularRanges'](_0x25a0d3['content']['markers']);[..._0x23129e]['forEach'](_0x4cec15=>{const _0x599d8c=_0x1769c6['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x4cec15['meta']['type'],_0x4cec15['meta']['subType'],'accept'),{markerName:_0x319b45,meta:_0x1ac8c3}=_0x4cec15;if(_0x25a0d3['content']['markers']['has'](_0x319b45)){switch(_0x1ac8c3['type']){case'deletion':if('tableRow'===_0x1ac8c3['subType']||'tableColumn'===_0x1ac8c3['subType']){if(!_0x1769c6['plugins']['has']('TableUtils'))break;const _0x21acd2=_0x1769c6['plugins']['get']('TableUtils'),_0x52f03c=_0x21acd2['getSelectionAffectedTableCells'](_0x1769c6['model']['createSelection'](_0x25a0d3['content']['markers']['get'](_0x319b45))),_0x72d062=_0x52f03c[0x0]['findAncestor']('table');if('tableRow'===_0x1ac8c3['subType']){const {first:_0x1d3fea,last:_0x3fb439}=_0x21acd2['getRowIndexes'](_0x52f03c);_0x21acd2['removeRows'](_0x72d062,{'at':_0x1d3fea,'rows':_0x3fb439-_0x1d3fea+0x1});}else{const {first:_0x427bbf,last:_0xd40380}=_0x21acd2['getColumnIndexes'](_0x52f03c);_0x21acd2['removeColumns'](_0x72d062,{'at':_0x427bbf,'columns':_0xd40380-_0x427bbf+0x1});}break;}_0x599d8c([_0x25a0d3['content']['markers']['get'](_0x319b45)]);}_0x25a0d3['content']['markers']['has'](_0x319b45)&&(_0x25a0d3['content']['markers']['get'](_0x319b45)['detach'](),_0x25a0d3['content']['markers']['delete'](_0x319b45));}}),this['_restoreRegularRanges'](_0x25a0d3['content']['markers']);});}_getSuggestionEntries(_0x23e9c3){const _0xdc1529=_0x5b1a7b=>'dragstart'===_0x23e9c3['method']?_0x5b1a7b['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x5b1a7b;return Array['from'](_0x23e9c3['content']['markers'])['map'](([_0x861d31,_0x26286c])=>({'markerName':_0x861d31,'modelRange':_0x26286c,'meta':it(_0xdc1529(_0x861d31))}))['filter'](({meta:_0x12c239})=>'suggestion'===_0x12c239['group']);}_shouldSkipDeletions(_0x981571,_0x394527){if(!_0x981571['length'])return!0x1;let _0x3f7c1c=[this['editor']['model']['createRangeIn'](_0x394527)];for(const _0x2a9f41 of _0x981571)_0x3f7c1c=_0x3f7c1c['flatMap'](_0x73f8e1=>_0x73f8e1['getDifference'](_0x2a9f41));return!_0x3f7c1c['some'](_0x483a77=>this['editor']['model']['hasContent'](_0x483a77,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x180dfe){[..._0x180dfe['keys']()]['forEach'](_0x5db693=>{const _0x482d3c=_0x180dfe['get'](_0x5db693);_0x482d3c['detach'](),_0x180dfe['set'](_0x5db693,_0x482d3c['toRange']());});}},Kt=class extends _0xdaca7a{afterInit(){const _0x57ceb3=this['editor'];if(!_0x57ceb3['plugins']['has']('CodeBlock'))return;const _0x58e6d3=_0x57ceb3['plugins']['get']('TrackChangesEditing'),_0x42d43d=_0x57ceb3['locale'],_0x4a184d=_0x57ceb3['config']['get']('codeBlock')['languages'],_0x469e3a=_0x57ceb3['commands']['get']('codeBlock');_0x58e6d3['enableCommand']('indentCodeBlock'),_0x58e6d3['enableCommand']('outdentCodeBlock'),_0x58e6d3['enableCommand']('codeBlock',(_0x4ca56f,_0x35cdb1={})=>{const _0x4bdaec=_0x57ceb3['model'],_0x3ef8a9=_0x57ceb3['model']['document']['selection'],_0x11aaec=_0x35cdb1&&void 0x0!==_0x35cdb1['forceValue']?_0x35cdb1['forceValue']:!_0x469e3a['value'];let _0x52a3c2;_0x35cdb1['language']||(_0x35cdb1['language']=_0x4a184d[0x0]['language']),_0x52a3c2=_0x11aaec?Array['from'](_0x3ef8a9['getSelectedBlocks']())['filter'](_0x1c30a5=>{return Xt(_0x1c30a5)||(_0x93c04a=_0x1c30a5,_0x45db53=_0x4bdaec['schema'],!_0x93c04a['is']('rootElement')&&!_0x45db53['isLimit'](_0x93c04a)&&_0x45db53['checkChild'](_0x93c04a['parent'],'codeBlock'));var _0x93c04a,_0x45db53;}):Array['from'](_0x3ef8a9['getSelectedBlocks']())['filter'](_0x1ec01e=>Xt(_0x1ec01e));const _0x1a99ed=Rt(_0x52a3c2,_0x4bdaec);_0x4bdaec['change'](()=>{for(const _0x188dcf of _0x1a99ed)_0x58e6d3['markBlockFormat'](_0x188dcf,{'commandName':'codeBlock','commandParams':[{..._0x35cdb1,'forceValue':_0x11aaec}],'formatGroupId':'blockName'});});}),(_0x58e6d3['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b4c75=>Bt(_0x42d43d,'ELEMENT_CODE_BLOCK',_0x4b4c75)),_0x58e6d3['descriptionFactory']['registerDescriptionCallback'](_0x4cb326=>{if('formatBlock'!=_0x4cb326['type'])return;const _0x1e2644=_0x42d43d['t'],{data:_0x20e28e}=_0x4cb326;if(!_0x20e28e||'codeBlock'!=_0x20e28e['commandName'])return;const _0xfce88d=_0x20e28e['commandParams'][0x0]['language'],_0x50554d=_0x1e2644(_0x4a184d['find'](_0x2bb52e=>_0x2bb52e['language']===_0xfce88d)['label'])['toLowerCase']();return _0x20e28e['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x42d43d,'*Set\x20format:*\x20%0',Bt(_0x42d43d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x50554d+')')}:{'type':'format','content':Bt(_0x42d43d,'*Remove\x20format:*\x20%0',Bt(_0x42d43d,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x568e55){return'codeBlock'==_0x568e55['name'];}var qt=class extends _0xdaca7a{afterInit(){const _0x29fdae=this['editor'];_0x29fdae['plugins']['has']('CommentsEditing')&&_0x29fdae['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0xdaca7a{static get requires(){return[Tt];}init(){const _0x28991b=this['editor'],_0x25b5e7=_0x28991b['plugins']['get']('TrackChangesEditing');_0x25b5e7['enableCommand']('delete');const _0x37f164=_0x28991b['commands']['get']('deleteForward');_0x25b5e7['enableCommand']('deleteForward',(_0x22faeb,_0x4e4547={})=>{const _0x3a93e5=_0x28991b['model']['createSelection'](_0x28991b['model']['document']['selection']);_0x3a93e5['isCollapsed']&&_0x28991b['model']['modifySelection'](_0x3a93e5,{'direction':'forward','unit':_0x4e4547['unit']});const _0x1d9b1e=_0x3a93e5['getFirstRange'](),_0x1ad12c=ct['fromRange'](_0x1d9b1e);let _0x5b2019;_0x22faeb(_0x4e4547),_0x5b2019='$graveyard'==_0x1ad12c['root']['rootName']?_0x28991b['model']['createRange'](_0x1d9b1e['start']):_0x28991b['model']['createRange'](_0x1ad12c['start'],_0x1ad12c['end']),_0x1ad12c['detach'](),_0x28991b['model']['enqueueChange'](_0x37f164['buffer']['batch'],_0x883a01=>{_0x37f164['buffer']['lock'](),_0x883a01['setSelection'](_0x883a01['createRange'](_0x5b2019['end'])),_0x37f164['buffer']['unlock']();});});}},Qt=class extends _0xdaca7a{afterInit(){const _0x4305ca=this['editor'];if(!_0x4305ca['plugins']['has']('ListEditing'))return;const _0x2e872f=_0x4305ca['locale'],_0x48c82a=_0x4305ca['plugins']['get']('TrackChangesEditing'),_0x291688=_0x4305ca['plugins']['has']('TodoListEditing'),_0x3b1b5c=!!_0x4305ca['config']['get']('list.multiBlock');function _0x38e111(_0x41dea8){return{'type':'format','content':''+Bt(_0x2e872f,'*Set\x20format:*\x20%0',_0x41dea8)};}function _0x24a5ea(_0x531c88){return{'type':'format','content':''+Bt(_0x2e872f,'*Remove\x20format:*\x20%0',_0x531c88)};}_0x48c82a['enableDefaultAttributesIntegration']('numberedList'),_0x48c82a['enableDefaultAttributesIntegration']('bulletedList'),_0x48c82a['enableDefaultAttributesIntegration']('customNumberedList'),_0x48c82a['enableDefaultAttributesIntegration']('customBulletedList'),_0x48c82a['enableDefaultAttributesIntegration']('indentList'),_0x48c82a['enableDefaultAttributesIntegration']('outdentList'),_0x48c82a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48c82a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3b1b5c&&(_0x48c82a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48c82a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x291688&&(_0x48c82a['enableDefaultAttributesIntegration']('todoList'),_0x48c82a['enableDefaultAttributesIntegration']('checkTodoList'),_0x48c82a['descriptionFactory']['registerDescriptionCallback'](_0xb70fb1=>{const {data:_0x1072c0}=_0xb70fb1;if(_0x1072c0&&'todoListChecked'==_0x1072c0['key'])return{'type':'format','content':_0x1072c0['newValue']?Bt(_0x2e872f,'*Check\x20item*'):Bt(_0x2e872f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x977df1=>{if(_0x977df1['batch']['isUndo'])return!0x1;let _0x1da38a=!0x1;const _0xeb55f4=_0x48c82a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5b75dd=>'todoListChecked'===_0x48c82a['_getAttributeKey'](_0x5b75dd));for(const _0xfa923c of _0xeb55f4)'todo'!=_0xfa923c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48c82a['_findSuggestions'](_0xfa923c['getFirstRange'](),'attribute')['find'](_0x1136b3=>'listType'===_0x48c82a['_getAttributeKey'](_0x1136b3['suggestion']))||(_0x977df1['removeMarker'](_0xfa923c['getFirstMarker']()),_0x1da38a=!0x0));return _0x1da38a;})),_0x48c82a['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x2e872f,'FORMAT_INDENT'));const _0xe52165={'type':'format','content':''};_0x48c82a['descriptionFactory']['registerDescriptionCallback'](_0x4a47cc=>{const {data:_0x2ecb0f}=_0x4a47cc;if(!_0x2ecb0f||'listType'!=_0x2ecb0f['key'])return;let _0x37235e=_0x4a47cc['head'];for(;_0x37235e;){if(_0x37235e['data']&&(('listStyle'==_0x37235e['data']['key']||'listMarkerStyle'==_0x37235e['data']['key'])&&(_0x37235e['data']['newValue']&&'default'!=_0x37235e['data']['newValue']||'default'!=_0x37235e['data']['oldValue']&&!_0x2ecb0f['newValue'])||!_0x3b1b5c&&'$elementName'==_0x37235e['data']['key']))return _0xe52165;_0x37235e=_0x37235e['next'];}if(null==_0x2ecb0f['newValue'])switch(_0x2ecb0f['oldValue']){case'bulleted':return _0x24a5ea(Bt(_0x2e872f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x24a5ea(Bt(_0x2e872f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x24a5ea(Bt(_0x2e872f,'ELEMENT_TODO_LIST'));}switch(_0x2ecb0f['newValue']){case'bulleted':return _0x38e111(Bt(_0x2e872f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38e111(Bt(_0x2e872f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38e111(Bt(_0x2e872f,'ELEMENT_TODO_LIST'));}}),_0x48c82a['descriptionFactory']['registerDescriptionCallback'](_0x114480=>{const {data:_0x5124e9}=_0x114480;if(_0x5124e9&&'listIndent'==_0x5124e9['key'])return null==_0x5124e9['newValue']||null==_0x5124e9['oldValue']&&0x0==_0x5124e9['newValue']?_0xe52165:void 0x0;}),_0x48c82a['descriptionFactory']['registerDescriptionCallback'](_0x40c800=>{if('attribute'!=_0x40c800['type'])return;const {data:_0x5bc054}=_0x40c800;if(!_0x5bc054||'listItemId'!=_0x5bc054['key'])return;const _0x45ee37=Zt(_0x40c800);return'newValue'==_0x45ee37?{'type':'format','content':Bt(_0x2e872f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x45ee37?{'type':'format','content':Bt(_0x2e872f,'*Split:*\x20list\x20item')}:_0xe52165;}),_0x4305ca['model']['document']['registerPostFixer'](_0x242304=>this['listItemIdFixer'](_0x242304)),_0x4305ca['model']['document']['registerPostFixer'](_0x166e56=>this['noTrackChangesFixer'](_0x166e56)),_0x4305ca['model']['document']['on']('change:data',(_0x231504,_0x2259d0)=>{if(_0x2259d0['isUndo']||!_0x2259d0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x1757d9){if(_0x1757d9['batch']['isUndo']||!_0x1757d9['batch']['isLocal'])return!0x1;let _0x167bf1=!0x1;const _0x72aaff=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46603f=>_0x46603f['data']&&'listItemId'==_0x46603f['data']['key'])['filter'](_0x51e16e=>_0x51e16e['data']['newValue']&&_0x51e16e['data']['oldValue']);for(const _0x48f6e1 of _0x72aaff)Zt(_0x48f6e1)||(_0x1757d9['removeMarker'](_0x48f6e1['getFirstMarker']()),_0x167bf1=!0x0);return _0x167bf1;}['noTrackChangesFixer'](_0x4e2ba2){if(_0x4e2ba2['batch']['isUndo']||!_0x4e2ba2['batch']['isLocal'])return!0x1;const _0x2534e8=this['editor']['model']['document']['differ'],_0x2660aa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2660aa['trackChangesCommand']['value'])return!0x1;let _0x3657eb=!0x1;const _0x22808d=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x1853f9=_0x2534e8['getChanges']()['filter'](_0xe64aa0=>'attribute'==_0xe64aa0['type'])['filter'](_0x50bc37=>_0x22808d['has'](_0x50bc37['attributeKey']));if(0x0==_0x1853f9['length'])return _0x3657eb;const _0x85b12=new Set(_0x2534e8['getMarkersToAdd']()['filter'](_0xb18666=>{if(!_0xb18666['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x53d009=it(_0xb18666['name'])['subType']['split']('|')[0x0];return _0x22808d['has'](_0x53d009);})['map'](_0x5ed4a6=>it(_0x5ed4a6['name'])['id']));for(const _0x55befa of _0x1853f9){const _0x2b646b=_0x2660aa['_findSuggestions'](_0x55befa['range'],'attribute')['filter'](_0x4f8038=>{if(_0x4f8038['meta']['isNextTo'])return!0x1;if(_0x85b12['has'](_0x4f8038['suggestion']['id']))return!0x1;const _0x38789e=_0x2660aa['_getAttributeKey'](_0x4f8038['suggestion']);return _0x22808d['has'](_0x38789e);})['map'](_0x43e075=>_0x43e075['suggestion']);if(_0x2b646b['length']){for(const _0x3fdf69 of _0x2b646b)_0x4e2ba2['removeMarker'](_0x3fdf69['getFirstMarker']());_0x3657eb=!0x0;}}return _0x3657eb;}['assureChains'](){const _0x289a42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a018c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x34cd37;const _0x3a2944=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b9c77=>{if(_0x5b9c77['data']['oldRange']||!_0x5b9c77['data']['newRange'])return null;if(!_0x5b9c77['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x458fd8}=it(_0x5b9c77['name']);if(!_0x289a42['hasSuggestion'](_0x458fd8))return null;const _0x5abbba=_0x289a42['getSuggestion'](_0x458fd8);return _0x1a018c['includes'](_0x5abbba['data']['key']);})['map'](_0x436454=>{const {id:_0x3c52a8}=it(_0x436454['name']),_0x50fd73=_0x289a42['getSuggestion'](_0x3c52a8);return _0x34cd37=_0x50fd73['attributes']['groupId'],_0x50fd73['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a2944['size'])return;const _0x2b5ea9=_0x289a42['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd97809=>'attribute'==_0xd97809['type']&&_0xd97809['data']&&_0x1a018c['includes'](_0xd97809['data']['key'])&&_0xd97809['attributes']['groupId']!=_0x34cd37)['map'](_0x2d2778=>({'listItem':_0x2d2778['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d2778['attributes']['groupId']})),_0x17ef82=new Set();for(const {groupId:_0x423b4d,listItem:_0x23e0e5}of _0x2b5ea9)_0x3a2944['has'](_0x23e0e5)&&_0x17ef82['add'](_0x423b4d);for(const _0xe9e68c of _0x289a42['getSuggestions']())_0x17ef82['has'](_0xe9e68c['attributes']['groupId'])&&_0xe9e68c['setAttribute']('groupId',_0x34cd37);}_supportLegacySuggestions(){const _0x1115c7=this['editor'],_0x5d9fb9=_0x1115c7['locale'],_0x107388=_0x1115c7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x107388['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3438dd,_0xc7d49){const _0x316cd9=[];for(let _0x9d34c3 of _0x3438dd)_0x9d34c3['start']['nodeAfter']===_0x9d34c3['end']['parent']&&(_0x9d34c3=_0x1115c7['model']['createRange'](_0x1115c7['model']['createPositionAt'](_0x9d34c3['start']['nodeAfter'],0x0))),_0x316cd9['push'](_0x9d34c3);_0x1115c7['model']['change'](_0x25d6fb=>{const _0x299db9=_0x1115c7['model']['document']['selection'],_0x300ce9=Array['from'](_0x299db9['getRanges']())['map'](_0x35b6e7=>ct['fromRange'](_0x35b6e7));_0x25d6fb['setSelection'](_0x316cd9),_0x1115c7['commands']['get'](_0xc7d49['commandName'])['refresh'](),_0xc7d49['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1115c7['execute'](_0xc7d49['commandName'],..._0xc7d49['commandParams']),_0x25d6fb['setSelection'](_0x300ce9);for(const _0x35244b of _0x300ce9)_0x35244b['detach']();});}),_0x107388['descriptionFactory']['registerElementLabel'](function(_0x43efcd){const _0x149154=!_0x1115c7['model']['schema']['isObject'](_0x43efcd),_0x599c07=_0x43efcd['previousSibling'],_0x28a4bf=_0x43efcd['nextSibling'],_0x5f4d8b=_0x43efcd['getAttribute']('listItemId'),_0x3bc235=!_0x599c07||_0x599c07['getAttribute']('listItemId')!==_0x5f4d8b,_0x4d884e=!_0x28a4bf||_0x28a4bf['getAttribute']('listItemId')!==_0x5f4d8b;return _0x149154&&Boolean(_0x5f4d8b)&&_0x3bc235&&_0x4d884e;},_0x18db3e=>Bt(_0x5d9fb9,'ELEMENT_LIST_ITEM',_0x18db3e));}_registerLegacyDescription(){const _0x403344=this['editor'],_0x405f2b=_0x403344['locale'];function _0x1d4295(_0x3686c2){const _0x1775a5=_0x403344['commands']['get']('bulletedList')['value'],_0x4330f0=_0x403344['commands']['get']('numberedList')['value'];return'numberedList'===_0x3686c2?_0x1775a5:_0x4330f0;}_0x403344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5a2b94){if('formatBlock'!=_0x5a2b94['type'])return;const {data:_0x5c43a1}=_0x5a2b94;if(!_0x5c43a1)return;let _0x75fd78,_0x16f359,_0x3a820e,_0x40dbac;switch(_0x5c43a1['commandName']){case'bulletedList':_0x3a820e=_0x5c43a1['commandParams'][0x0]['forceValue'],_0x40dbac=_0x1d4295(_0x5c43a1['commandName']),_0x75fd78=_0x3a820e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40dbac&&_0x403344['config']['get']('list.multiBlock')||(_0x75fd78='*Change\x20to:*\x20%0'),_0x16f359={'type':'format','content':Bt(_0x405f2b,_0x75fd78,Bt(_0x405f2b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3a820e=_0x5c43a1['commandParams'][0x0]['forceValue'],_0x40dbac=_0x1d4295(_0x5c43a1['commandName']),_0x75fd78=_0x3a820e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x40dbac&&_0x403344['config']['get']('list.multiBlock')||(_0x75fd78='*Change\x20to:*\x20%0'),_0x16f359={'type':'format','content':Bt(_0x405f2b,_0x75fd78,Bt(_0x405f2b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x75fd78='*Indent:*\x20%0',_0x16f359={'type':'format','content':Bt(_0x405f2b,_0x75fd78,Bt(_0x405f2b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x75fd78=function(_0x38059b){const _0x5f06e8=_0x38059b['getFirstRange']();let _0x57ccc0=_0x5f06e8['start']['nodeAfter'];for(;_0x57ccc0&&_0x5f06e8['containsItem'](_0x57ccc0);){if(_0x57ccc0['getAttribute']('listIndent')>0x0)return!0x1;_0x57ccc0=_0x57ccc0['nextSibling'];}return!0x0;}(_0x5a2b94)?Bt(_0x405f2b,'*Format:*\x20remove\x20from\x20%0',Bt(_0x405f2b,function(_0x503ddb){return'ELEMENT_'+_0x503ddb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5a2b94))):Bt(_0x405f2b,'*Outdent:*\x20%0',Bt(_0x405f2b,'ELEMENT_LIST_ITEM')),_0x16f359={'type':'format','content':_0x75fd78};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5c43a1['multipleBlocks']&&(_0x75fd78='*Merge:*\x20%0',_0x16f359={'type':'deletion','content':Bt(_0x405f2b,_0x75fd78,Bt(_0x405f2b,'ELEMENT_LIST_ITEM'))});}return _0x16f359;});}};function Zt(_0x57686f){let _0x2b24b9=_0x57686f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2b24b9;){const _0x15b176=_0x2b24b9['getAttribute']('listItemId');if(!_0x15b176)return!0x1;if(_0x15b176==_0x57686f['data']['newValue'])return'newValue';if(_0x15b176==_0x57686f['data']['oldValue'])return'oldValue';_0x2b24b9=_0x2b24b9['previousSibling'];}return!0x1;}var Jt=class extends _0xdaca7a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x593f02=this['editor']['config']['get']('list.properties'),_0x3fa9e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x593f02['styles']&&_0x3fa9e5['enableDefaultAttributesIntegration']('listStyle'),_0x593f02['reversed']&&_0x3fa9e5['enableDefaultAttributesIntegration']('listReversed'),_0x593f02['startIndex']&&_0x3fa9e5['enableDefaultAttributesIntegration']('listStart');const _0x6fd84d={'type':'format','content':''};_0x3fa9e5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x202287=this['editor']['locale'];_0x3fa9e5['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x202287,'FORMAT_LIST_REVERSED')),_0x3fa9e5['descriptionFactory']['registerDescriptionCallback'](_0x1ea23e=>{const {data:_0x178bb4}=_0x1ea23e;if(_0x178bb4&&'listReversed'==_0x178bb4['key'])return null==_0x178bb4['newValue']||0x0==_0x178bb4['newValue']&&null==_0x178bb4['oldValue']?_0x6fd84d:void 0x0;}),_0x3fa9e5['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x202287,'FORMAT_LIST_START')),_0x3fa9e5['descriptionFactory']['registerDescriptionCallback'](_0x15c27a=>{const {data:_0x10a528}=_0x15c27a;if(_0x10a528&&'listStart'==_0x10a528['key'])return null==_0x10a528['newValue']||0x1==_0x10a528['newValue']&&null==_0x10a528['oldValue']?_0x6fd84d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x595523=>{if(_0x595523['batch']['isUndo'])return!0x1;let _0x1ac2f4=!0x1;const _0x352cee=_0x3fa9e5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x540d93=>{const _0x464d87=_0x3fa9e5['_getAttributeKey'](_0x540d93);return'listStart'==_0x464d87||'listReversed'==_0x464d87;});for(const _0x348c77 of _0x352cee){const _0x5689cf=_0x348c77['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x5689cf&&'customNumbered'!=_0x5689cf&&(_0x3fa9e5['_findSuggestions'](_0x348c77['getFirstRange'](),'attribute')['find'](_0x3155b0=>'listType'==_0x3fa9e5['_getAttributeKey'](_0x3155b0['suggestion']))||(_0x595523['removeMarker'](_0x348c77['getFirstMarker']()),_0x1ac2f4=!0x0));}return _0x1ac2f4;}),this['_registerLegacyDescription']();}handleDescriptions(_0xbff0c5){const _0x2d1b60=this['editor']['locale'],{data:_0x3359ad}=_0xbff0c5,_0x599f40={'type':'format','content':''};if(!_0x3359ad||'listStyle'!=_0x3359ad['key'])return;if(!_0x3359ad['oldValue'])return'default'==_0x3359ad['newValue']?_0x599f40:{'type':'format','content':''+Bt(_0x2d1b60,'*Set\x20format:*\x20%0',Bt(_0x2d1b60,this['_getTranslationKeyForListStyle'](_0x3359ad['newValue'])))};if(!_0x3359ad['newValue']){if('default'==_0x3359ad['oldValue'])return _0x599f40;let _0xc760ac=_0xbff0c5['head'];for(;_0xc760ac;){if(_0xc760ac['data']&&'listType'==_0xc760ac['data']['key']&&_0xc760ac['data']['newValue'])return _0x599f40;_0xc760ac=_0xc760ac['next'];}return{'type':'format','content':''+Bt(_0x2d1b60,'*Remove\x20format:*\x20%0',Bt(_0x2d1b60,this['_getTranslationKeyForListStyle'](_0x3359ad['oldValue'])))};}if('default'!=_0x3359ad['newValue'])return{'type':'format','content':''+Bt(_0x2d1b60,'*Set\x20format:*\x20%0',Bt(_0x2d1b60,this['_getTranslationKeyForListStyle'](_0x3359ad['newValue'])))};let _0x25fa6a=_0xbff0c5['head'];for(;_0x25fa6a;){if(_0x25fa6a['data']&&'listType'==_0x25fa6a['data']['key']&&_0x25fa6a['data']['newValue']&&_0x25fa6a['data']['oldValue'])return _0x599f40;_0x25fa6a=_0x25fa6a['next'];}return{'type':'format','content':Bt(_0x2d1b60,'*Set\x20format:*\x20%0',Bt(_0x2d1b60,'ELEMENT_'+_0xbff0c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x3c88f4=this['editor'],_0x3213c2=_0x3c88f4['locale'];_0x3c88f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f857e=>{if('formatBlock'!=_0x2f857e['type'])return;const {data:_0x24a1f3}=_0x2f857e;if(!_0x24a1f3)return;let _0x225fb9,_0x3355ea;switch(_0x24a1f3['commandName']){case'listStyle':_0x225fb9='*Change\x20to:*\x20%0',_0x3355ea={'type':'format','content':Bt(_0x3213c2,_0x225fb9,Bt(_0x3213c2,this['_getTranslationKeyForListStyle'](_0x24a1f3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x225fb9=_0x24a1f3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3355ea={'type':'format','content':Bt(_0x3213c2,_0x225fb9)};break;case'listStart':_0x225fb9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3355ea={'type':'format','content':Bt(_0x3213c2,_0x225fb9,_0x24a1f3['commandParams'][0x0]['startIndex'])};}return _0x3355ea;});}_getTranslationKeyForListStyle(_0xb06546){return'ELEMENT_'+(_0x251b6c=_0xb06546,te['includes'](_0x251b6c)?'bulleted':ee['includes'](_0x251b6c)?'numbered':null)['toUpperCase']()+'_LIST_'+_0xb06546['toUpperCase']()['replace'](/-/g,'_');var _0x251b6c;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0xdaca7a{afterInit(){const _0x270abe=this['editor'];_0x270abe['commands']['get']('emoji')&&_0x270abe['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0xdaca7a{static get requires(){return[pt];}init(){const _0x59c0d1=this['editor'],_0x2e049b=_0x59c0d1['plugins']['get']('TrackChangesEditing'),_0x3dd30a=_0x59c0d1['commands']['get']('enter');_0x2e049b['enableCommand']('enter',()=>{_0x59c0d1['model']['change'](_0x28d810=>{const _0x4dbe4d=_0x59c0d1['model']['document']['selection'],_0x499b60=_0x4dbe4d['getFirstPosition'](),_0x158421=ct['fromRange'](_0x4dbe4d['getFirstRange']());if(_0x3dd30a['enterBlock'](_0x28d810)){const _0x34b1aa=_0x59c0d1['model']['createPositionAt'](_0x499b60['parent']['nextSibling'],0x0),_0x40e33d=_0x28d810['createRange'](_0x499b60,_0x34b1aa);_0x2e049b['markInsertion'](_0x40e33d);}else _0x28d810['setSelection'](_0x28d810['createRange'](_0x158421['end']));_0x158421['detach'](),_0x3dd30a['fire']('afterExecute',{'writer':_0x28d810});});});}},se=class extends _0xdaca7a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x992b2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x992b2b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x992b2b['enableCommand']('findNext'),_0x992b2b['enableCommand']('findPrevious'),_0x992b2b['enableCommand']('replace'),_0x992b2b['enableCommand']('replaceAll');}['handleFindCommand'](_0x3af9dd,_0x3481f1,_0x38af06={}){const _0x5b0642=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3af9dd(_0x1b1131=>{let _0x2e9423=('string'==typeof _0x3481f1?_0x5b0642['findByTextCallback'](_0x3481f1,_0x38af06):_0x3481f1)(_0x1b1131);Array['isArray'](_0x2e9423)&&(_0x2e9423={'results':_0x2e9423,'searchText':'string'==typeof _0x3481f1?_0x3481f1:''});const _0x80cf47=_0x2e9423['results']['filter'](_0x103eac=>!0x1===this['_isInDeletionRange'](_0x103eac,_0x1b1131['item']));return{..._0x2e9423,'results':_0x80cf47};},_0x38af06);}_isInDeletionRange(_0x351fad,_0x367fcd){const _0x358a92=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x367fcd,_0x351fad['start']),this['editor']['model']['createPositionAt'](_0x367fcd,_0x351fad['end']));for(const _0x23053e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x358a92['getIntersection'](_0x23053e['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0xdaca7a{afterInit(){const _0x5cbe9c=this['editor']['locale'],_0x209aa1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xd9195e,commandName:_0x334496}of re)this['editor']['plugins']['has'](_0xd9195e)&&_0x209aa1['enableDefaultAttributesIntegration'](_0x334496);_0x209aa1['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x5cbe9c,'FORMAT_FONT_SIZE')),_0x209aa1['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x5cbe9c,'FORMAT_FONT_FAMILY')),_0x209aa1['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x5cbe9c,'FORMAT_FONT_COLOR')),_0x209aa1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x5cbe9c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x353bbf=this['editor'],_0x4bb208=_0x353bbf['locale'];_0x353bbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x529e9e=>{const _0x6a852=_0x4bb208['t'];if('formatInline'!=_0x529e9e['type'])return;const {data:_0x37378b}=_0x529e9e;if(null!=_0x37378b){if('fontSize'==_0x37378b['commandName']){const _0x3ba975=_0x37378b['commandParams'][0x0]['value'];if(_0x3ba975){const _0x3351f6=_0x6a852(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x12eb1a=>_0x12eb1a['model']==_0x3ba975)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x4bb208,'*Set\x20font\x20size:*\x20%0',_0x3351f6)};}return{'type':'format','content':Bt(_0x4bb208,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x37378b['commandName']){const _0x3c8b28=_0x37378b['commandParams'][0x0]['value'];return _0x3c8b28?{'type':'format','content':Bt(_0x4bb208,'*Set\x20font\x20family:*\x20%0',_0x3c8b28)}:{'type':'format','content':Bt(_0x4bb208,'*Reset\x20font\x20family*')};}if('fontColor'==_0x37378b['commandName']){const _0xd06032=_0x37378b['commandParams'][0x0]['value'];if(_0xd06032){const _0x6021ec=_0x2125cd(this['editor']['config']['get']('fontColor.colors'))['find'](_0x245a23=>_0x245a23['model']==_0xd06032);let _0x1ebe5e=_0xd06032,_0x1a08ec='';return _0x6021ec&&(_0x1ebe5e=_0x6021ec['label'],_0x1a08ec=_0xa13eb7(_0x4bb208,_0x1ebe5e)['toLowerCase']()),{'type':'format','content':Bt(_0x4bb208,'*Set\x20font\x20color:*\x20%0',_0x1a08ec)['trim'](),'color':{'value':_0xd06032,'title':_0x1a08ec||_0x1ebe5e}};}return{'type':'format','content':Bt(_0x4bb208,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x37378b['commandName']){const _0x34e574=_0x37378b['commandParams'][0x0]['value'];if(_0x34e574){const _0x4b4289=_0x2125cd(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x481b40=>_0x481b40['model']==_0x34e574);let _0x54c1cf=_0x34e574,_0x60680d='';return _0x4b4289&&(_0x54c1cf=_0x4b4289['label'],_0x60680d=_0xa13eb7(_0x4bb208,_0x54c1cf)['toLowerCase']()),{'type':'format','content':Bt(_0x4bb208,'*Set\x20font\x20background\x20color:*\x20%0',_0x60680d)['trim'](),'color':{'value':_0x34e574,'title':_0x60680d||_0x54c1cf}};}return{'type':'format','content':Bt(_0x4bb208,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0xdaca7a{afterInit(){const {plugins:_0x371a13}=this['editor'];_0x371a13['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x371a13['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x43c5b5,plugins:_0x175dd6,commands:_0x1619ad}=this['editor'],_0x25b613=_0x175dd6['get']('TrackChangesEditing');_0x1619ad['get']('footnotesStyle')&&_0x25b613['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1619ad['get']('footnotesStart')&&_0x25b613['enableDefaultAttributesIntegration']('footnotesStart'),_0x25b613['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x43c5b5,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x25b613['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x43c5b5,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x470a74=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x2f5d84,commands:_0x5aa6c0}=this['editor'];_0x5aa6c0['get']('insertFootnote')&&_0x470a74['enableCommand']('insertFootnote'),_0x470a74['descriptionFactory']['registerElementLabel']('footnoteRef',_0x35b15b=>Bt(_0x2f5d84,'ELEMENT_FOOTNOTE_REF',_0x35b15b)),_0x470a74['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x456ab4=>Bt(_0x2f5d84,'ELEMENT_FOOTNOTE_DEFINITION',_0x456ab4)),_0x470a74['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4d7191=>Bt(_0x2f5d84,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4d7191));}},ce=class extends _0xdaca7a{afterInit(){const _0x18b4f7=this['editor'],_0x39c640=_0x18b4f7['plugins']['get']('TrackChangesEditing'),_0x43a950=_0x18b4f7['commands']['get']('copyFormat'),_0xaf37f0=_0x18b4f7['commands']['get']('pasteFormat');_0x43a950&&_0xaf37f0&&(_0x39c640['enableDefaultAttributesIntegration']('pasteFormat'),_0x39c640['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2f7f88=this['editor'],_0x5402c9=_0x2f7f88['locale'];_0x2f7f88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23bb95=>{if('formatBlock'!=_0x23bb95['type']&&'formatInline'!=_0x23bb95['type'])return;const {data:_0xc61471}=_0x23bb95;if(_0xc61471&&'pasteFormat'===_0xc61471['commandName']){const _0x199f74=[],_0x3569fa=_0xc61471['commandParams'][0x0];for(const [_0x16e37d,_0x445317]of Object['entries'](_0x3569fa))_0x199f74['push'](le(_0x2f7f88,_0x16e37d,_0x445317));return _0x199f74['length']?{'type':'format','content':Bt(_0x5402c9,'*Set\x20format\x20to:*\x20%0',_0x199f74['join'](',\x20'))}:{'type':'format','content':Bt(_0x5402c9,'*Remove\x20all\x20formatting*')};}});}};function le(_0x339251,_0x264721,_0x1a2aad){const _0x10a69b=_0x339251['locale'],_0x3c0746=_0x10a69b['t'],_0x297d4b=_0x264721['split'](/(?=[A-Z])/)['join']('\x20'),_0x2e923c=_0x3c0746(_0x297d4b['charAt'](0x0)['toUpperCase']()+_0x297d4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1a2aad)return _0x2e923c;if('fontColor'===_0x264721||'fontBackgroundColor'===_0x264721){const _0x46324b=_0x2125cd(_0x339251['config']['get']('fontColor.colors'))['find'](_0x536bb4=>_0x536bb4['model']==_0x1a2aad);return _0x2e923c+'\x20('+(_0x46324b?_0xa13eb7(_0x10a69b,_0x46324b['label'])['toLowerCase']():_0x1a2aad)+')';}if('fontSize'===_0x264721&&isNaN(parseFloat(_0x1a2aad))){const _0x5b7085=_0x339251['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x339251['config']['get']('fontSize.options'))['find'](_0x252384=>_0x252384['model']==_0x1a2aad);return _0x2e923c+'\x20('+(_0x5b7085?_0x3c0746(_0x5b7085['title'])['toLowerCase']():_0x1a2aad)+')';}return _0x2e923c+'\x20('+_0x1a2aad+')';}var ue=class extends _0xdaca7a{afterInit(){const _0x2abf55=this['editor'];if(!_0x2abf55['plugins']['has']('GeneralHtmlSupport')||!_0x2abf55['plugins']['has']('DataSchema'))return;const _0x4edbc1=_0x2abf55['plugins']['get']('TrackChangesEditing'),_0x4b123a=_0x2abf55['plugins']['get']('GeneralHtmlSupport'),_0x6ff64e=_0x2abf55['plugins']['get']('DataSchema'),_0xfbf65e=_0x2abf55['locale'],_0x2e2c10=new Set(['htmlContent']);for(const _0x4e3e36 of _0x6ff64e['getDefinitionsForView'](/.*/,!0x1)){const _0x4539a4=_0x4e3e36['view'],_0x1f19da=_0x4b123a['getGhsAttributeNameForElement'](_0x4539a4);_0x2e2c10['add'](_0x1f19da),!_0x4e3e36['isInline']||_0x4e3e36['isObject']||'appliesToBlock'in _0x4e3e36&&_0x4e3e36['appliesToBlock']||_0x4edbc1['descriptionFactory']['registerAttributeLabel'](_0x1f19da,_0x4539a4),_0x4e3e36['model']['startsWith']('html')&&_0x4edbc1['descriptionFactory']['registerElementLabel'](_0x4e3e36['model'],_0x4b8035=>Bt(_0xfbf65e,'ELEMENT_HTML_TAG',[_0x4b8035,_0x4539a4]));}_0x4edbc1['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0xfbf65e,'FORMAT_RAW_HTML_CONTENT')),_0x4edbc1['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0xfbf65e,'FORMAT_HTML_LIST_ITEM')),_0x4edbc1['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0xfbf65e,'FORMAT_HTML_BULLETED_LIST')),_0x4edbc1['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0xfbf65e,'FORMAT_HTML_NUMBERED_LIST')),_0x4edbc1['descriptionFactory']['registerDescriptionCallback'](_0x4311f0=>{if('attribute'!==_0x4311f0['type'])return;const _0x5e3576=_0x4311f0['data'];if(!_0x5e3576||!_0x2e2c10['has'](_0x5e3576['key']))return;if('htmlContent'===_0x5e3576['key'])return{'type':'format','content':Bt(_0xfbf65e,'*Change\x20%0\x20content*',Bt(_0xfbf65e,'ELEMENT_RAW_HTML'))};const {setItems:_0x190743,removeItems:_0x32b78e}=function(_0x24064a,_0x36cc1f,_0x5865c9){const _0x4f250e=[],_0x145c5b=[],_0x4bd9e4=_0x24064a['styles']??{},_0x16cdad=_0x36cc1f['styles']??{};for(const _0xa7fcf1 of new Set([...Object['keys'](_0x4bd9e4),...Object['keys'](_0x16cdad)]))_0x4bd9e4[_0xa7fcf1]!==_0x16cdad[_0xa7fcf1]&&(void 0x0===_0x16cdad[_0xa7fcf1]?_0x145c5b['push'](_0xa7fcf1):_0x4f250e['push'](_0xa7fcf1+'\x20('+_0x16cdad[_0xa7fcf1]+')'));const _0x3101ea=Bt(_0x5865c9,'FORMAT_HTML_CLASS'),_0x555328=new Set(_0x24064a['classes']??[]),_0x464016=new Set(_0x36cc1f['classes']??[]),_0x5adb2b=[..._0x464016]['some'](_0x1407b5=>!_0x555328['has'](_0x1407b5)),_0x1f7213=[..._0x555328]['some'](_0x1bbf4b=>!_0x464016['has'](_0x1bbf4b));_0x5adb2b&&_0x4f250e['push'](_0x3101ea),_0x1f7213&&_0x145c5b['push'](_0x3101ea);const _0x2471a0=Bt(_0x5865c9,'FORMAT_HTML_ATTRIBUTE'),_0x389867=_0x24064a['attributes']??{},_0x5726ae=_0x36cc1f['attributes']??{};let _0x42f41d=!0x1,_0x743abd=!0x1;for(const _0x1f306b of new Set([...Object['keys'](_0x389867),...Object['keys'](_0x5726ae)]))_0x389867[_0x1f306b]!==_0x5726ae[_0x1f306b]&&(void 0x0===_0x5726ae[_0x1f306b]?_0x743abd=!0x0:_0x42f41d=!0x0);return _0x42f41d&&_0x4f250e['push'](_0x2471a0),_0x743abd&&_0x145c5b['push'](_0x2471a0),{'setItems':_0x4f250e,'removeItems':_0x145c5b};}(_0x5e3576['oldValue']??{},_0x5e3576['newValue']??{},_0xfbf65e);if(!_0x190743['length']&&!_0x32b78e['length'])return;const _0x55985c=[];return _0x190743['length']&&_0x55985c['push'](Bt(_0xfbf65e,'*Set\x20format:*\x20%0',_0x190743['join'](',\x20'))),_0x32b78e['length']&&_0x55985c['push'](Bt(_0xfbf65e,'*Remove\x20format:*\x20%0',_0x32b78e['join'](',\x20'))),{'type':'format','content':_0x55985c['join']('\x0a')};});}},de=class extends _0xdaca7a{_headingOptions;afterInit(){const _0x21f009=this['editor'];if(!_0x21f009['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x21f009['config']['get']('heading.options');const _0x4e1e67=_0x21f009['locale'],_0x3ce636=_0x21f009['plugins']['get']('TrackChangesEditing');_0x3ce636['enableDefaultAttributesIntegration']('heading');for(const _0x259dac of this['_headingOptions'])'paragraph'!=_0x259dac['model']&&_0x3ce636['descriptionFactory']['registerElementLabel'](_0x259dac['model'],_0x1869ec=>{const _0x207778=this['_getHeadingLevel'](_0x259dac['model']);return null!==_0x207778?_0x3bb28a(_0x1869ec,_0x207778):_0x5c53c1(_0x1869ec,_0x259dac['title']);});function _0x3bb28a(_0x32400d,_0x645bff){return Bt(_0x4e1e67,'ELEMENT_HEADING',[_0x32400d,_0x645bff]);}function _0x5c53c1(_0x5c39c5,_0x637146){return Bt(_0x4e1e67,'ELEMENT_HEADING_CUSTOM',[_0x5c39c5,_0x637146]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x538666=this['editor'],_0x4adb45=_0x538666['locale'];function _0x49c7f0(_0x1b1442,_0x29f636){return Bt(_0x4adb45,'ELEMENT_HEADING_CUSTOM',[_0x1b1442,_0x29f636]);}_0x538666['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c10a1=>{if('formatBlock'!=_0x2c10a1['type'])return;const {data:_0x39f4b4}=_0x2c10a1;if(_0x39f4b4&&'heading'==_0x39f4b4['commandName']){const _0x1e4aef=_0x39f4b4['commandParams'][0x0]['value'],_0x5052a6=this['_getHeadingLevel'](_0x1e4aef);if(null!==_0x5052a6)return{'type':'format','content':Bt(_0x4adb45,'*Change\x20to:*\x20%0',(_0x917c35=0x1,_0x1c55c2=_0x5052a6,Bt(_0x4adb45,'ELEMENT_HEADING',[_0x917c35,_0x1c55c2])))};const _0x88d42a=this['_headingOptions']['find'](_0x4e261e=>_0x4e261e['model']===_0x1e4aef)['title'];return{'type':'format','content':Bt(_0x4adb45,'*Change\x20to:*\x20%0',_0x49c7f0(0x1,_0x88d42a))};}var _0x917c35,_0x1c55c2;});}_getHeadingLevel(_0x35c6e7){const _0x989a27=_0x35c6e7['match'](/^heading(\d+)/);if(_0x989a27)return _0x989a27[0x1];const _0x1d37a0=this['_headingOptions']?.['find'](_0xa5f62=>_0xa5f62['model']==_0x35c6e7);if(_0x1d37a0&&_0x1d37a0['view']){const _0x1a4da0=_0x1d37a0['view'],_0x4ca0a7=(_0x1a4da0['name']??_0x1a4da0)['match'](/^h(\d+)/);if(_0x4ca0a7)return _0x4ca0a7[0x1];}return null;}},he=class extends _0xdaca7a{afterInit(){const _0xc8867c=this['editor'];if(!_0xc8867c['plugins']['has']('HighlightEditing'))return;const _0x4f84fb=_0xc8867c['plugins']['get']('TrackChangesEditing'),_0x1982a8=_0xc8867c['locale'];_0x4f84fb['enableDefaultAttributesIntegration']('highlight'),_0x4f84fb['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x1982a8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1727bc=this['editor'],_0x472690=_0x1727bc['locale'];_0x1727bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8d3c=>{if('formatInline'!=_0xb8d3c['type'])return;const {data:_0x28b0ab}=_0xb8d3c;if(_0x28b0ab&&'highlight'==_0x28b0ab['commandName']){const _0x178b50=_0x472690['t'],_0x578503=_0x28b0ab['commandParams'][0x0]['value'];if(_0x578503){const _0xc6bca=_0x1727bc['config']['get']('highlight.options')['find'](_0x255e98=>_0x255e98['model']==_0x578503),_0x5f42d8=_0x178b50(_0xc6bca['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x472690,'*Set\x20highlight:*\x20%0',_0x5f42d8),'color':{'value':_0xc6bca['color'],'title':_0xc6bca['title']}};}return{'type':'format','content':Bt(_0x472690,'*Remove\x20highlight*',Bt(_0x472690,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0xdaca7a{afterInit(){const _0x53d49c=this['editor'];if(!_0x53d49c['plugins']['has']('HorizontalLineEditing'))return;_0x53d49c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3d2403=_0x53d49c['plugins']['get']('TrackChangesEditing'),_0x109c3f=_0x53d49c['locale'];_0x3d2403['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3094b1=>Bt(_0x109c3f,'ELEMENT_HORIZONTAL_LINE',_0x3094b1));}},fe=class extends _0xdaca7a{afterInit(){const _0x12f93c=this['editor'];if(!_0x12f93c['plugins']['has']('HtmlEmbed'))return;const _0x1b1bb3=_0x12f93c['plugins']['get']('TrackChangesEditing'),_0x1d2961=_0x12f93c['locale'];_0x1b1bb3['descriptionFactory']['registerElementLabel']('rawHtml',_0x395c80=>Bt(_0x1d2961,'ELEMENT_HTML_EMBED',_0x395c80)),_0x1b1bb3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1b1bb3['descriptionFactory']['registerDescriptionCallback'](_0x239ed8=>{if('attribute'!=_0x239ed8['type'])return;const {data:_0xefc4a8}=_0x239ed8;if(_0xefc4a8&&'value'==_0xefc4a8['key']&&_0x239ed8['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x635aa2=Bt(_0x1d2961,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x1d2961,'*Change\x20%0\x20content*',_0x635aa2)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x567ce7=this['editor'],_0x152817=_0x567ce7['locale'];_0x567ce7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14905f=>{if('formatBlock'!=_0x14905f['type'])return;const {data:_0x12a780}=_0x14905f;if(_0x12a780&&'htmlEmbed'==_0x12a780['commandName']){const _0x1ab1ca=Bt(_0x152817,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x152817,'*Change\x20%0\x20content*',_0x1ab1ca)};}});}},me=class extends _0xdaca7a{afterInit(){const _0xbf2028=this['editor'];if(!_0xbf2028['plugins']['has']('ImageEditing'))return;const _0xaf8f9a=_0xbf2028['plugins']['get']('TrackChangesEditing'),_0x894fba=_0xbf2028['plugins']['get']('ImageUtils'),_0x15f9b6=_0xbf2028['locale'];_0xaf8f9a['enableCommand']('insertImage'),_0xaf8f9a['descriptionFactory']['registerElementLabel']('imageBlock',_0x11a6a2=>Bt(_0x15f9b6,'ELEMENT_IMAGE',_0x11a6a2)),_0xaf8f9a['descriptionFactory']['registerElementLabel']('imageInline',_0x5b2678=>Bt(_0x15f9b6,'ELEMENT_INLINE_IMAGE',_0x5b2678)),_0xaf8f9a['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x15f9b6,'ELEMENT_CAPTION')),_0xbf2028['plugins']['has']('ImageUploadEditing')&&_0xaf8f9a['enableCommand']('uploadImage'),_0xbf2028['plugins']['has']('ImageBlockEditing')&&_0xbf2028['plugins']['has']('ImageInlineEditing')&&(_0xaf8f9a['enableCommand']('imageTypeInline',(_0x554321,_0x4bb478)=>{const _0x30830d=_0x894fba['getClosestSelectedImageElement'](_0xbf2028['model']['document']['selection']);_0xbf2028['model']['change'](()=>{_0xaf8f9a['markBlockFormat'](_0x30830d,{'commandName':'imageTypeInline','commandParams':[_0x4bb478]},[],'convertBlockImageToInline');});}),_0xaf8f9a['enableCommand']('imageTypeBlock',(_0xbba464,_0x2fb556)=>{_0xbf2028['model']['change'](_0x5bdac5=>{let _0x82fb10=_0x894fba['getClosestSelectedImageElement'](_0xbf2028['model']['document']['selection']),_0x247b64=_0x5bdac5['createRangeOn'](_0x82fb10);const _0x2dc51f=at['fromPosition'](_0x247b64['start'],'toPrevious'),_0x5cce67=at['fromPosition'](_0x247b64['end'],'toNext');_0xaf8f9a['forceDefaultExecution'](()=>_0xbba464(_0x2fb556)),_0x82fb10=_0x894fba['getClosestSelectedImageElement'](_0xbf2028['model']['document']['selection']),_0x247b64=_0x5bdac5['createRangeOn'](_0x82fb10);const _0x51164b=_0x5bdac5['createRange'](_0x2dc51f,_0x5cce67);_0x2dc51f['detach'](),_0x5cce67['detach'](),_0xaf8f9a['markBlockFormat'](_0x82fb10,{'commandName':'imageTypeInline','commandParams':[_0x2fb556]},[],'convertInlineImageToBlock'),_0x51164b['start']['isBefore'](_0x247b64['start'])&&_0xaf8f9a['markInsertion'](_0x5bdac5['createRange'](_0x51164b['start'],_0x247b64['start']),'convertInlineImageToBlock'),_0x247b64['end']['isBefore'](_0x51164b['end'])&&_0xaf8f9a['markInsertion'](_0x5bdac5['createRange'](_0x247b64['end'],_0x51164b['end']),'convertInlineImageToBlock');});}),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xaf8f9a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4eb613])=>{const _0x27dab3=_0xaf8f9a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x357bc4=_0x4eb613['start'],_0x417d79=_0x4eb613['end'];const _0x15058b=_0xbf2028['model']['schema']['getNearestSelectionRange'](_0x357bc4,'backward'),_0x374d8a=_0xbf2028['model']['schema']['getNearestSelectionRange'](_0x417d79,'forward');_0x15058b['isCollapsed']&&(_0x357bc4=_0x15058b['start']),_0x374d8a['isCollapsed']&&(_0x417d79=_0x374d8a['end']),_0x27dab3([_0xbf2028['model']['createRange'](_0x357bc4,_0x417d79)]);}),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d7578),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d7578)),_0xbf2028['plugins']['has']('ImageCaptionEditing')&&(_0xaf8f9a['enableCommand']('toggleImageCaption',(_0x5827b2,_0x20b06c)=>{const _0x4827ba=_0xbf2028['plugins']['get']('ImageCaptionUtils');let _0x919791=_0x894fba['getClosestSelectedImageElement'](_0xbf2028['model']['document']['selection']),_0x52eabf=_0x4827ba['getCaptionFromImageModelElement'](_0x919791);_0xbf2028['model']['change'](()=>{if(_0x52eabf)return void _0xaf8f9a['markDeletion'](_0xbf2028['model']['createRangeOn'](_0x52eabf));const _0x594514=_0x894fba['isBlockImage'](_0x919791);_0x5827b2(_0x20b06c),_0x919791=_0x894fba['getClosestSelectedImageElement'](_0xbf2028['model']['document']['selection']),_0x52eabf=_0x4827ba['getCaptionFromImageModelElement'](_0x919791),_0xaf8f9a['markInsertion'](_0xbf2028['model']['createRangeOn'](_0x52eabf),_0x594514?null:'imageCaption');});}),_0xaf8f9a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d7578));const _0x3cac2a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x592c6d(_0x38a2d6,_0x700a1c){const _0x4dd06c=_0x3cac2a['findIndex'](({type:_0x6b5f27,subType:_0x3450dc})=>_0x38a2d6['type']==_0x6b5f27&&_0x38a2d6['subType']==_0x3450dc),_0x176753=_0x3cac2a['findIndex'](({type:_0x453ae6,subType:_0xadc261})=>_0x700a1c['type']==_0x453ae6&&_0x700a1c['subType']==_0xadc261);if(_0x4dd06c<0x0||_0x176753<0x0)return!0x1;const _0x307478=_0x38a2d6['getFirstRange'](),_0x51b748=_0x700a1c['getFirstRange']();if((0x0==_0x4dd06c||0x1==_0x4dd06c)&&0x2==_0x176753&&_0x307478['isIntersecting'](_0x51b748))return!0x0;if(0x2==_0x4dd06c&&0x3==_0x176753){const _0x7dcffc=_0xaf8f9a['_findSuggestions'](_0x307478,'insertion')['filter'](({suggestion:_0x20c97f,meta:_0x8528fd})=>_0x8528fd['isOwn']&&'convertInlineImageToBlock'==_0x20c97f['subType']);if(_0x7dcffc['length']>0x1&&_0x51b748['end']['isEqual'](_0x307478['start']))return!0x0;if(0x1==_0x7dcffc['length']&&(_0x307478['start']['isEqual'](_0x51b748['end'])||_0x307478['end']['isEqual'](_0x51b748['start'])))return!0x0;}if(0x3==_0x4dd06c&&0x3==_0x176753&&_0x307478['start']['isBefore'](_0x51b748['start'])){const _0x3e62fe=_0x307478['end']['nodeAfter'],_0x31374a=_0x51b748['start']['nodeBefore'];return _0x894fba['isBlockImage'](_0x3e62fe)&&_0x3e62fe===_0x31374a;}return!0x1;}function _0x4d7578(_0x316672,_0x4b9be3){return _0x592c6d(_0x316672,_0x4b9be3)?[_0x316672,_0x4b9be3]:_0x592c6d(_0x4b9be3,_0x316672)?[_0x4b9be3,_0x316672]:null;}_0xbf2028['plugins']['has']('ImageResize')&&(_0xaf8f9a['enableDefaultAttributesIntegration']('resizeImage'),_0xaf8f9a['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x15f9b6,'FORMAT_IMAGE_SIZE'))),_0xbf2028['plugins']['has']('ImageTextAlternativeEditing')&&_0xaf8f9a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xbf2028['plugins']['has']('PictureEditing')&&_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x458b5d=>{if('attribute'!=_0x458b5d['type'])return;const {data:_0x34d0a0}=_0x458b5d;return _0x34d0a0&&'sources'==_0x34d0a0['key']?{'type':'format','content':''}:void 0x0;}),_0xbf2028['plugins']['has']('ImageSizeAttributes')&&_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x53906d=>{if('attribute'!=_0x53906d['type'])return;const {data:_0x24755f}=_0x53906d;return!_0x24755f||'width'!=_0x24755f['key']&&'height'!=_0x24755f['key']?void 0x0:{'type':'format','content':''};}),_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x5b619b=>{if(_0x3cac2a['find'](({type:_0xdcf8c,subType:_0x53dd94})=>_0x5b619b['type']==_0xdcf8c&&_0x5b619b['subType']==_0x53dd94))return _0x5b619b['previous']?{}:void 0x0;}),_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x15cf59=>{if('insertion'==_0x15cf59['type']||'deletion'==_0x15cf59['type']){const _0x13cd09=_0x15cf59['getContainedElement']();if(_0x13cd09&&_0x13cd09['is']('element','caption'))return{'type':'insertion'==_0x15cf59['type']?'addObject':'removeObject','element':_0x13cd09,'quantity':0x1};}}),_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x44cad3=>'formatBlock'==_0x44cad3['type']&&'convertInlineImageToBlock'==_0x44cad3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44cad3['type']&&'convertBlockImageToInline'==_0x44cad3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xaf8f9a['descriptionFactory']['registerDescriptionCallback'](_0x71a9e4=>{if('attribute'!=_0x71a9e4['type'])return;const {data:_0x4125b1}=_0x71a9e4;if(!_0x4125b1||'alt'!=_0x4125b1['key'])return;const _0x37d9c2=_0x4125b1['newValue'];return _0x37d9c2?{'type':'format','content':Bt(_0x15f9b6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x37d9c2+'\x22')}:{'type':'format','content':Bt(_0x15f9b6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x130037=this['editor'],_0x3db564=_0x130037['locale'];_0x130037['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e684c=>{if('formatBlock'!=_0x5e684c['type']&&'formatInline'!=_0x5e684c['type'])return;const {data:_0x5b3f42}=_0x5e684c;if(_0x5b3f42){if('imageTextAlternative'==_0x5b3f42['commandName']){const _0x14b5ca=_0x5b3f42['commandParams'][0x0]['newValue'];return _0x14b5ca?{'type':'format','content':Bt(_0x3db564,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14b5ca+'\x22')}:{'type':'format','content':Bt(_0x3db564,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5b3f42['commandName']){const _0x3b1142=_0x5b3f42['commandParams'][0x0]['width'];return _0x3b1142?{'type':'format','content':Bt(_0x3db564,'*Set\x20image\x20width:*\x20%0',_0x3b1142)}:{'type':'format','content':Bt(_0x3db564,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0xdaca7a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x284f04=this['editor']['locale'],_0x4ca6fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ca6fd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4ca6fd['descriptionFactory']['registerDescriptionCallback'](_0x4aa3da=>{if('attribute'!=_0x4aa3da['type'])return;const {data:_0x20358b}=_0x4aa3da;return _0x20358b&&'src'==_0x20358b['key']?_0x20358b['newValue']&&_0x20358b['oldValue']?{'type':'format','content':Bt(_0x284f04,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x2ede45=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ede45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2ede45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ede45['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2ede45['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x642f28=this['editor'],_0xae2148=_0x642f28['locale'];_0x642f28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434e21=>{if('formatBlock'!=_0x434e21['type']&&'formatInline'!=_0x434e21['type'])return;const {data:_0x2ff0fe}=_0x434e21;return _0x2ff0fe&&'replaceImageSource'==_0x2ff0fe['commandName']?{'type':'format','content':Bt(_0xae2148,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0xdaca7a{afterInit(){const _0x2c401f=this['editor'];if(!_0x2c401f['plugins']['has']('ImageStyleEditing'))return;const _0x4ad3e3=_0x2c401f['plugins']['get']('TrackChangesEditing'),_0x1b15a4=_0x2c401f['plugins']['get']('ImageUtils'),_0x5e5641={};_0x4ad3e3['enableCommand']('imageStyle',(_0x47e953,_0xe33c25)=>{const _0x574c45=_0x2c401f['plugins']['get']('Users')['me'],_0x4bb5b9=_0x2c401f['commands']['get']('imageStyle');let _0x5f1ba6=_0x1b15a4['getClosestSelectedImageElement'](_0x2c401f['model']['document']['selection']),_0x41eb50=_0x2c401f['model']['createRangeOn'](_0x5f1ba6),_0x12441a=_0x4bb5b9['value'];if(_0x12441a==_0xe33c25['value'])return;if(_0xe33c25['value']&&_0x1b15a4['isInlineImage'](_0x5f1ba6)&&!_0x4bb5b9['isStyleEnabled'](_0xe33c25['value']))return;const _0x2fb518={'commandName':'imageStyle','commandParams':[_0xe33c25],'formatGroupId':_0x575a49()};_0x2c401f['model']['change'](()=>{if(_0x4ad3e3['getSuggestions']()['filter'](_0x2ab6f3=>_0x2ab6f3['isInContent']&&_0x574c45==_0x2ab6f3['author']&&('formatBlock'==_0x2ab6f3['type']||'formatInline'==_0x2ab6f3['type'])&&('imageStylePreApply'==_0x2ab6f3['subType']||'imageStylePostApply'==_0x2ab6f3['subType'])&&_0x2ab6f3['getFirstRange']()['isEqual'](_0x41eb50))['forEach'](_0x1edc03=>_0x4ad3e3['discardSuggestion'](_0x1edc03['head'])),_0x5f1ba6=_0x1b15a4['getClosestSelectedImageElement'](_0x2c401f['model']['document']['selection']),_0x41eb50=_0x2c401f['model']['createRangeOn'](_0x5f1ba6),_0x4bb5b9['refresh'](),_0x2c401f['commands']['get']('imageTypeInline')['refresh'](),_0x2c401f['commands']['get']('imageTypeBlock')['refresh'](),_0x12441a=_0x4bb5b9['value'],_0x12441a!=_0xe33c25['value'])return _0x1b15a4['isInlineImage'](_0x5f1ba6)&&_0x4bb5b9['shouldConvertImageType'](_0xe33c25['value'],_0x5f1ba6)?(_0x47e953({..._0xe33c25,'setImageSizes':!0x1}),_0x5f1ba6=_0x1b15a4['getClosestSelectedImageElement'](_0x2c401f['model']['document']['selection']),void _0x4ad3e3['markBlockFormat'](_0x5f1ba6,{..._0x2fb518,'commandReversedParams':[{'value':_0x12441a||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1b15a4['isBlockImage'](_0x5f1ba6)?_0x4ad3e3['markBlockFormat'](_0x5f1ba6,_0x2fb518,[],'imageStylePostApply'):_0x4ad3e3['markInlineFormat'](_0x41eb50,_0x2fb518,'imageStylePostApply'));});});for(const _0x4fc61f of _0x2c401f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5e5641[_0x4fc61f['name']]=_0x4fc61f['title']['toLowerCase']();_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x255c11])=>{_0x1b15a4['setImageNaturalSizeAttributes'](_0x255c11['getContainedElement']());}),_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x34fe7d,_0x347d0c)=>{_0x4ad3e3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x34fe7d,{'commandName':_0x347d0c['commandName'],'commandParams':_0x347d0c['commandReversedParams']});}),_0x4ad3e3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2337a5,_0x2a337a){return _0xeafcde(_0x2337a5,_0x2a337a)?[_0x2337a5,_0x2a337a]:_0xeafcde(_0x2a337a,_0x2337a5)?[_0x2a337a,_0x2337a5]:null;});const _0x345eac=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xeafcde(_0x431574,_0x13af48){const _0x15edd1=_0x345eac['findIndex'](({type:_0xa769a5,subType:_0x39ba13})=>_0x431574['type']==_0xa769a5&&_0x431574['subType']==_0x39ba13),_0x2d51c6=_0x345eac['findIndex'](({type:_0x40450f,subType:_0x429c40})=>_0x13af48['type']==_0x40450f&&_0x13af48['subType']==_0x429c40);if(_0x15edd1<0x0||_0x2d51c6<0x0)return!0x1;const _0x59b923=_0x431574['getFirstRange'](),_0x1bd2e0=_0x13af48['getFirstRange']();if((0x0==_0x15edd1||0x1==_0x15edd1)&&0x2==_0x2d51c6&&_0x59b923['isIntersecting'](_0x1bd2e0))return!0x0;if(0x2==_0x15edd1&&0x3==_0x2d51c6){const _0x100158=_0x4ad3e3['_findSuggestions'](_0x59b923,'insertion')['filter'](({suggestion:_0x541f59,meta:_0x5cf1e8})=>_0x5cf1e8['isOwn']&&'convertInlineImageToBlock'==_0x541f59['subType']);if(_0x100158['length']>0x1&&_0x1bd2e0['end']['isEqual'](_0x59b923['start']))return!0x0;if(0x1==_0x100158['length']&&(_0x59b923['start']['isEqual'](_0x1bd2e0['end'])||_0x59b923['end']['isEqual'](_0x1bd2e0['start'])))return!0x0;}if(0x3==_0x15edd1&&0x3==_0x2d51c6&&_0x59b923['start']['isBefore'](_0x1bd2e0['start'])){const _0x44ba1e=_0x59b923['end']['nodeAfter'],_0x220741=_0x1bd2e0['start']['nodeBefore'];return _0x1b15a4['isBlockImage'](_0x44ba1e)&&_0x44ba1e===_0x220741;}return!0x1;}_0x2c401f['model']['document']['registerPostFixer'](()=>{let _0x440aa4=!0x1;const _0x461306=Array['from'](_0x2c401f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22003d,data:_0x41356f}of _0x461306){const {group:_0xcb800a,type:_0x5f281e,subType:_0x4c8723,id:_0x105349}=it(_0x22003d);if('suggestion'==_0xcb800a&&_0x4ad3e3['hasSuggestion'](_0x105349)){if('formatBlock'==_0x5f281e&&('imageStylePreApply'==_0x4c8723||'imageStylePostApply'==_0x4c8723)){const _0x517ecd=_0x4ad3e3['getSuggestion'](_0x105349);if(_0x41356f['newRange']){const _0x242f51=_0x517ecd['getFirstRange']()['getContainedElement']();if(_0x1b15a4['isBlockImage'](_0x242f51))continue;_0x4ad3e3['discardSuggestion'](_0x517ecd),_0x440aa4=!0x0;}}if('insertion'==_0x5f281e&&'imageCaption'==_0x4c8723&&!_0x41356f['newRange']){const _0x52729f=_0x4ad3e3['getSuggestion'](_0x105349);_0x52729f['next']&&_0x52729f['next']['isInContent']&&(_0x4ad3e3['discardSuggestion'](_0x52729f['next']),_0x440aa4=!0x0);}}}return _0x440aa4;}),this['_registerLegacyDescription'](_0x5e5641);}_registerLegacyDescription(_0x56495c){const _0x29856b=this['editor'],_0x5993d8=_0x29856b['locale'];_0x29856b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x158e69=>{if('formatBlock'!=_0x158e69['type']&&'formatInline'!=_0x158e69['type'])return;const {data:_0x467451}=_0x158e69;if(!_0x467451||'imageStyle'!=_0x467451['commandName'])return;const _0x3f9222=_0x467451['commandParams'][0x0]['value'];return _0x110c82('side'===_0x3f9222?Bt(_0x5993d8,'FORMAT_SIDE_IMAGE'):_0x56495c[_0x3f9222]||_0x3f9222);function _0x110c82(_0x597cf9){return{'type':'format','content':Bt(_0x5993d8,'*Format:*\x20%0',_0x597cf9)};}});}},_e=class extends _0xdaca7a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5760a7){super(_0x5760a7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x5859cc=this['editor'],_0x5f4436=_0x5859cc['commands']['get']('importWord'),_0x7caca5=_0x5859cc['commands']['get']('trackChanges');_0x5f4436&&(_0x5f4436['on']('execute',(_0x40e99b,[,_0x31b1c6])=>{this['_trackChangesValueDuringImport']=_0x7caca5['value'],_0x31b1c6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5f4436,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5f4436,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x7caca5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5859cc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x79c6a6,_0x5e5466){const {suggestions:_0x4f4006}=_0x5e5466,_0x5f3960=this['editor']['commands']['get']('trackChanges'),_0x180d35=_0x5f3960['value'];this['_trackChangesValueDuringImport']!==_0x180d35&&(_0x5f3960['execute'](),this['_trackChangesExecuted']=!0x0),_0x4f4006&&_0x4f4006['forEach'](({id:_0x3fd2cf,type:_0xdae304,author:_0xe5077a,created_at:_0x3f2cc6})=>{const _0x43580b={'id':_0x3fd2cf,'type':_0xdae304,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xe5077a,'createdAt':_0x3f2cc6?new Date(_0x3f2cc6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x43580b);});}},pe=class extends _0xdaca7a{afterInit(){const _0x5ca7d5=this['editor'],_0x27d0f0=_0x5ca7d5['plugins']['get']('TrackChangesEditing');if(_0x5ca7d5['plugins']['has']('IndentEditing')&&(_0x27d0f0['enableCommand']('indent'),_0x27d0f0['enableCommand']('outdent')),_0x5ca7d5['plugins']['has']('IndentBlock')){for(const _0x5ba7d0 of['indentBlock','outdentBlock'])_0x27d0f0['enableDefaultAttributesIntegration'](_0x5ba7d0);if(_0x5ca7d5['plugins']['has']('ListEditing')){for(const _0x2cd449 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x27d0f0['enableDefaultAttributesIntegration'](_0x2cd449);}}const _0x1ff216=_0x5ca7d5['locale'];_0x27d0f0['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x1ff216,'FORMAT_INDENT')),_0x27d0f0['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x1ff216,'FORMAT_INDENT')),_0x27d0f0['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x1ff216,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3cc0f9=this['editor'],_0x47849c=_0x3cc0f9['locale'],_0x2fbee6=_0x3cc0f9['plugins']['get']('TrackChangesEditing');_0x2fbee6['descriptionFactory']['registerDescriptionCallback'](_0x1230fc=>{if('formatBlock'!=_0x1230fc['type'])return;const {data:_0x23b730}=_0x1230fc;if(!_0x23b730)return;if('indentBlock'!=_0x23b730['commandName']&&'outdentBlock'!=_0x23b730['commandName'])return;const _0x4716bd=_0x1230fc['getItems']()[0x0],_0x4e54ff=_0x2fbee6['descriptionFactory']['getItemLabel'](_0x4716bd);return'indentBlock'==_0x23b730['commandName']?{'type':'format','content':Bt(_0x47849c,'*Indent:*\x20%0',_0x4e54ff)}:'outdentBlock'==_0x23b730['commandName']?{'type':'format','content':Bt(_0x47849c,'*Outdent:*\x20%0',_0x4e54ff)}:void 0x0;});}},Le=class extends _0xdaca7a{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0xdaca7a{afterInit(){const _0x214ae3=this['editor'];if(!_0x214ae3['plugins']['has']('LinkEditing'))return;const _0x39afd3=_0x214ae3['plugins']['get']('TrackChangesEditing'),_0x1a494c=_0x214ae3['commands']['get']('link');_0x39afd3['enableDefaultAttributesIntegration']('link'),_0x39afd3['enableDefaultAttributesIntegration']('unlink');for(const _0x344439 of _0x1a494c['manualDecorators'])_0x39afd3['descriptionFactory']['registerAttributeLabel'](_0x344439['id'],'link\x20('+_0x344439['label']['toLowerCase']()+')');_0x39afd3['descriptionFactory']['registerDescriptionCallback'](_0xdc4de7=>{if('attribute'!=_0xdc4de7['type'])return;const {data:_0x2cd91c}=_0xdc4de7;if(!_0x2cd91c||'linkHref'!=_0x2cd91c['key'])return;const _0x6a0b4f=_0x2cd91c['newValue'],_0x302f03=_0x214ae3['locale'];return{'type':'format','content':null==_0x6a0b4f?Bt(_0x302f03,'*Remove\x20link*'):Bt(_0x302f03,'*Set\x20link:*\x20%0','\x22'+_0x6a0b4f+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2da8f6=this['editor'],_0x315dbd=_0x2da8f6['locale'];_0x2da8f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x63aa16=>{if('formatInline'!=_0x63aa16['type'])return;const {data:_0x4704fa}=_0x63aa16;if(_0x4704fa){if('link'==_0x4704fa['commandName']){const _0x48dd2b=_0x4704fa['commandParams'][0x0];return{'type':'format','content':Bt(_0x315dbd,'*Set\x20link:*\x20%0','\x22'+_0x48dd2b+'\x22')};}return'unlink'==_0x4704fa['commandName']?{'type':'format','content':Bt(_0x315dbd,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0xdaca7a{afterInit(){const _0x4537b7=this['editor'],_0x5bc8cc=_0x4537b7['locale'];if(!_0x4537b7['plugins']['has']('LegacyListEditing'))return;const _0x40edf0=_0x4537b7['plugins']['get']('TrackChangesEditing'),_0x711385=_0x4537b7['plugins']['has']('LegacyTodoListEditing');function _0x1ddc07(_0xb0a6ea){return()=>{const _0x336370=_0x4537b7['model']['document']['selection'],_0x287ae7=_0x4537b7['commands']['get'](_0xb0a6ea);if(_0x287ae7['value'])return void _0x4537b7['execute']('paragraph',{});const _0x325723=_0xb0a6ea['slice'](0x0,-0x4),_0x221a8d=function(_0x46b2a2,_0x4ce9e5,_0x5ea506){let _0x5a1703=Array['from'](_0x46b2a2)['filter'](_0x5272ba=>function(_0x210170,_0xa81dbe){return _0xa81dbe['checkChild'](_0x210170['parent'],'listItem')&&!_0xa81dbe['isObject'](_0x210170);}(_0x5272ba,_0x5ea506));_0x5a1703=_0x5a1703['filter'](_0xbe8f26=>!_0xbe8f26['is']('element','listItem')||_0xbe8f26['getAttribute']('listType')!=_0x4ce9e5);const _0x315c72=new Set();for(const _0x5d6d38 of _0x5a1703)_0x5d6d38['is']('element','listItem')?_0x315c72['add'](be(_0x5d6d38)):_0x315c72['add'](_0x5d6d38);return Array['from'](_0x315c72);}(_0x336370['getSelectedBlocks'](),_0x325723,_0x4537b7['model']['schema']);_0x4537b7['model']['change'](()=>{for(const _0x29c6d3 of _0x221a8d)_0x40edf0['markBlockFormat'](_0x29c6d3,{'commandName':_0xb0a6ea,'commandParams':[{'forceValue':!_0x287ae7['value']}],'formatGroupId':'blockName'},Ce(_0x29c6d3));});};}function _0x41786b(_0x3bf311){return()=>{const _0x32ffdc=function(_0x9ae65f){let _0x33cf2f=Array['from'](_0x9ae65f);const _0x4647d4=_0x33cf2f['findIndex'](_0x3b8600=>'listItem'!=_0x3b8600['name']);return _0x4647d4>-0x1&&(_0x33cf2f=_0x33cf2f['slice'](0x0,_0x4647d4)),_0x33cf2f;}(_0x4537b7['model']['document']['selection']['getSelectedBlocks']()),_0x3d50fa=_0x4537b7['model']['createRange'](_0x4537b7['model']['createPositionAt'](_0x32ffdc[0x0],'before'),_0x4537b7['model']['createPositionAt'](_0x32ffdc[_0x32ffdc['length']-0x1],'end'));_0x4537b7['model']['change'](()=>{_0x40edf0['markBlockFormat'](_0x3d50fa,{'commandName':_0x3bf311,'commandParams':[],'formatGroupId':'listIndent'},function(_0x503258){const _0x8b1b7=new Set();for(const _0x1f4a1d of _0x503258){let _0x1f5935=_0x1f4a1d['nextSibling'];for(;_0x1f5935&&_0x1f5935['getAttribute']('listIndent')>_0x1f4a1d['getAttribute']('listIndent');)_0x8b1b7['add'](_0x1f5935),_0x1f5935=_0x1f5935['nextSibling'];}return Array['from'](_0x8b1b7);}(_0x32ffdc));});};}_0x40edf0['enableCommand']('numberedList',_0x1ddc07('numberedList')),_0x40edf0['enableCommand']('bulletedList',_0x1ddc07('bulletedList')),_0x711385&&_0x40edf0['enableCommand']('todoList',_0x1ddc07('todoList')),_0x40edf0['enableCommand']('indentList',_0x41786b('indentList')),_0x40edf0['enableCommand']('outdentList',_0x41786b('outdentList')),_0x711385&&_0x40edf0['enableCommand']('checkTodoList',()=>{const _0x4bb7a6=_0x4537b7['commands']['get']('checkTodoList'),_0x55e296=Array['from'](_0x4bb7a6['_selectedElements']);_0x55e296['filter'](_0x304860=>_0x304860['getAttribute']('todoListChecked')!=_0x4bb7a6['value']),_0x4537b7['model']['change'](()=>{for(const _0x22abba of _0x55e296)_0x40edf0['markBlockFormat'](_0x22abba,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4bb7a6['value']}]});});}),_0x40edf0['descriptionFactory']['registerElementLabel']('listItem',_0x19e7fd=>Bt(_0x5bc8cc,'ELEMENT_LIST_ITEM',_0x19e7fd)),_0x40edf0['descriptionFactory']['registerDescriptionCallback'](_0x2d80fa=>{if('formatBlock'!=_0x2d80fa['type']&&'formatInline'!=_0x2d80fa['type'])return;const {data:_0x511ef3}=_0x2d80fa;if(_0x511ef3){if('numberedList'==_0x511ef3['commandName']||'bulletedList'==_0x511ef3['commandName']||'todoList'==_0x511ef3['commandName'])switch(_0x511ef3['commandName']['replace']('List','')){case'bulleted':return _0x4b6bc0(Bt(_0x5bc8cc,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b6bc0(Bt(_0x5bc8cc,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b6bc0(Bt(_0x5bc8cc,'ELEMENT_TODO_LIST'));}if('indentList'==_0x511ef3['commandName'])return{'type':'format','content':Bt(_0x5bc8cc,'*Indent:*\x20%0',Bt(_0x5bc8cc,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x511ef3['commandName'])return{'type':'format','content':Bt(_0x5bc8cc,'*Outdent:*\x20%0',Bt(_0x5bc8cc,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x511ef3['commandName'])return _0x511ef3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x5bc8cc,'*Check\x20item*')}:{'type':'format','content':Bt(_0x5bc8cc,'*Uncheck\x20item*')};}function _0x4b6bc0(_0x4fe9b6){return{'type':'format','content':Bt(_0x5bc8cc,'*Change\x20to:*\x20%0',_0x4fe9b6)};}});}};function be(_0x2c5d56){const _0x4205ef=_0x2c5d56['getAttribute']('listIndent');if(0x0==_0x4205ef)return _0x2c5d56;let _0x1005e5=_0x2c5d56;for(;_0x2c5d56['previousSibling']&&_0x2c5d56['previousSibling']['is']('element','listItem');){const _0xab93e5=_0x2c5d56['previousSibling']['getAttribute']('listIndent');if(_0xab93e5==_0x4205ef)_0x1005e5=_0x2c5d56['previousSibling'];else{if(_0xab93e5<_0x4205ef)break;}_0x2c5d56=_0x2c5d56['previousSibling'];}return _0x1005e5;}function Ce(_0x1c3371){const _0xc281f3=[];if(_0x1c3371['is']('element','listItem')&&_0x1c3371['getAttribute']('listIndent')>0x0){let _0xf38fa5=_0x1c3371['nextSibling'];for(;_0xf38fa5&&'listItem'==_0xf38fa5['name']&&_0xf38fa5['getAttribute']('listIndent')==_0x1c3371['getAttribute']('listIndent');)_0xc281f3['push'](_0xf38fa5),_0xf38fa5=_0xf38fa5['nextSibling'];}return _0xc281f3;}var ke=class extends _0xdaca7a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x13b9cf=this['editor']['config']['get']('list.properties'),_0x30b90a=this['editor']['plugins']['get']('TrackChangesEditing');_0x13b9cf['styles']&&_0x30b90a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x13b9cf['reversed']&&_0x30b90a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x13b9cf['startIndex']&&_0x30b90a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30b90a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x411ae5,_0x5e40c3={}){const _0x29f896=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c6dc4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x29f896['markMultiRangeBlockFormat'](_0x1c6dc4,{'commandName':'listStyle','commandParams':[{'type':_0x5e40c3['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x591dcb,_0x20f140={}){const _0x83ed19=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b615d=this['_getSuggestionBlocks'](_0x56bf9a=>_0x56bf9a['is']('element','listItem')&&'numbered'===_0x56bf9a['getAttribute']('listType'));if(_0x2b615d['length']<0x1)return;const _0x595d2f=_0x2b615d['map'](_0x5a966d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a966d,'before'),this['editor']['model']['createPositionAt'](_0x5a966d,0x0)));this['editor']['model']['change'](()=>{_0x83ed19['markMultiRangeBlockFormat'](_0x595d2f,{'commandName':'listReversed','commandParams':[{'reversed':_0x20f140['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x27c43f,_0x4573ba={}){const _0x2236a8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f940b=this['_getSuggestionBlocks'](_0x2f9fba=>_0x2f9fba['is']('element','listItem')&&'numbered'===_0x2f9fba['getAttribute']('listType'));if(_0x2f940b['length']<0x1)return;const _0x4d07d5=_0x2f940b['map'](_0x4f7e64=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f7e64,'before'),this['editor']['model']['createPositionAt'](_0x4f7e64,0x0)));this['editor']['model']['change'](()=>{_0x2236a8['markMultiRangeBlockFormat'](_0x4d07d5,{'commandName':'listStart','commandParams':[{'startIndex':_0x4573ba['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0xac76eb){if('formatBlock'!=_0xac76eb['type']&&'formatInline'!=_0xac76eb['type'])return;const _0x245c1b=this['editor']['locale'],{data:_0x3c629e}=_0xac76eb;if(!_0x3c629e)return;let _0x5cc0e2,_0x557e8f;switch(_0x3c629e['commandName']){case'listStyle':_0x5cc0e2='*Change\x20to:*\x20%0',_0x557e8f={'type':'format','content':Bt(_0x245c1b,_0x5cc0e2,Bt(_0x245c1b,this['_getTranslationKeyForListStyle'](_0x3c629e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5cc0e2=_0x3c629e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x557e8f={'type':'format','content':Bt(_0x245c1b,_0x5cc0e2)};break;case'listStart':_0x5cc0e2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x557e8f={'type':'format','content':Bt(_0x245c1b,_0x5cc0e2,_0x3c629e['commandParams'][0x0]['startIndex'])};}return _0x557e8f;}_getSuggestionBlocksForListStyle(){const _0x562848=this['editor']['plugins']['get']('LegacyListUtils');let _0x1a0b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1a0b9[0x0]?.['is']('element','listItem')&&_0x1a0b9['unshift'](..._0x562848['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1a0b9[_0x1a0b9['length']-0x1]?.['is']('element','listItem')&&_0x1a0b9['push'](..._0x562848['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1a0b9=[...new Set(_0x1a0b9)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1a0b9=_0x1a0b9['filter'](_0x1dd94f=>_0x1dd94f['is']('element','listItem'))),_0x1a0b9;}_getSuggestionBlocks(_0x17488d){const _0x18085c=this['editor']['plugins']['get']('LegacyListUtils');let _0x5f37b9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17488d)['map'](_0x1872e9=>{const _0x3e07e7=this['editor']['model']['createPositionAt'](_0x1872e9,0x0);return[..._0x18085c['getSiblingNodes'](_0x3e07e7,'backward'),..._0x18085c['getSiblingNodes'](_0x3e07e7,'forward')];})['flat']();return _0x5f37b9=[...new Set(_0x5f37b9)],_0x5f37b9;}_getTranslationKeyForListStyle(_0x11e448){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x11e448)||'default')['toUpperCase']()+'_LIST_'+_0x11e448['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0xdaca7a{afterInit(){const _0x12164d=this['editor'];if(!_0x12164d['plugins']['has']('MediaEmbedEditing'))return;const _0x4465d2=_0x12164d['plugins']['get']('TrackChangesEditing'),_0x1265d9=_0x12164d['locale'];_0x4465d2['enableCommand']('mediaEmbed'),_0x4465d2['descriptionFactory']['registerElementLabel']('media',_0x4120a5=>Bt(_0x1265d9,'ELEMENT_MEDIA',_0x4120a5)),_0x12164d['plugins']['has']('MediaEmbedResizeEditing')&&(_0x4465d2['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x4465d2['descriptionFactory']['registerDescriptionCallback'](_0xbf7fc1=>{if('attribute'!=_0xbf7fc1['type'])return;const {data:_0x423f6f}=_0xbf7fc1;if(!_0x423f6f||'resizedWidth'!=_0x423f6f['key'])return;const _0x7077a5=_0xbf7fc1['getContainedElement']();if(!_0x7077a5||!_0x7077a5['is']('element','media'))return;const _0xaa9f6c=Bt(_0x1265d9,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x1265d9,'*Set\x20format:*\x20%0',_0xaa9f6c)};}));}},Ne=class extends _0xdaca7a{afterInit(){const _0x5b14e4=this['editor'];if(!_0x5b14e4['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x531579=_0x5b14e4['plugins']['get']('TrackChangesEditing'),_0x4ae03c=_0x5b14e4['locale'],_0x2bc6b6=_0x5b14e4['plugins']['get']('MediaEmbedStyleEditing'),_0x1cc5a9={};for(const _0x5b0ee7 of _0x2bc6b6['normalizedStyles'])_0x1cc5a9[_0x5b0ee7['name']]=_0x5b0ee7['title']['toLowerCase']();const _0x13d365=_0x2bc6b6['normalizedStyles']['find'](_0x2d3589=>_0x2d3589['isDefault'])?.['name'];_0x531579['enableCommand']('mediaStyle',(_0x1fe60d,_0xfd6b49)=>{const _0x548c0a=_0x5b14e4['plugins']['get']('Users')['me'],_0x3a136b=_0x5b14e4['commands']['get']('mediaStyle'),_0x524a8a=function(_0x138242){const _0x37d47c=_0x138242['model']['document']['selection']['getSelectedElement']();return _0x37d47c&&_0x37d47c['is']('element','media')?_0x37d47c:null;}(_0x5b14e4);if(!_0x524a8a)return;const _0x441d0c=_0x5b14e4['model']['createRangeOn'](_0x524a8a);let _0xd0a91b=_0x3a136b['value'];if(_0xd0a91b==_0xfd6b49['value'])return;const _0x6c1303={'commandName':'mediaStyle','commandParams':[_0xfd6b49],'formatGroupId':_0x575a49()};_0x5b14e4['model']['change'](()=>{_0x531579['getSuggestions']()['filter'](_0x186db6=>_0x186db6['isInContent']&&_0x548c0a==_0x186db6['author']&&'formatBlock'==_0x186db6['type']&&'mediaStylePostApply'==_0x186db6['subType']&&_0x186db6['getFirstRange']()['isEqual'](_0x441d0c))['forEach'](_0x6c0565=>_0x531579['discardSuggestion'](_0x6c0565['head'])),_0x3a136b['refresh'](),_0xd0a91b=_0x3a136b['value'],_0xd0a91b!=_0xfd6b49['value']&&_0x531579['markBlockFormat'](_0x524a8a,{..._0x6c1303,'commandReversedParams':[{'value':'string'==typeof _0xd0a91b?_0xd0a91b:null}]},[],'mediaStylePostApply');});}),_0x531579['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x531579['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x26fed4,_0x2416f2)=>{_0x531579['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x26fed4,{'commandName':_0x2416f2['commandName'],'commandParams':_0x2416f2['commandReversedParams']});}),_0x531579['descriptionFactory']['registerDescriptionCallback'](_0x19f68f=>{if('formatBlock'!=_0x19f68f['type'])return;const {data:_0x57f76e}=_0x19f68f;if(!_0x57f76e||'mediaStyle'!=_0x57f76e['commandName'])return;const _0x4e1cc5=_0x57f76e['commandParams'][0x0]['value']||_0x13d365;if(!_0x4e1cc5)return;const _0x1cd5d2=_0x1cc5a9[_0x4e1cc5]||_0x4e1cc5;return{'type':'format','content':Bt(_0x4ae03c,'*Format:*\x20%0',_0x1cd5d2)};});}},ye=class extends _0xdaca7a{afterInit(){const _0x1ce11d=this['editor'];_0x1ce11d['plugins']['has']('MentionEditing')&&_0x1ce11d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0xdaca7a{afterInit(){const _0x4618b3=this['editor'];if(!_0x4618b3['plugins']['has']('MergeFieldsEditing'))return;const _0x3118c9=_0x4618b3['plugins']['get']('TrackChangesEditing'),_0x325eea=_0x4618b3['locale'];_0x3118c9['enableCommand']('insertMergeField'),_0x3118c9['enableCommand']('insertMergeFieldBlock'),_0x3118c9['enableCommand']('insertMergeFieldImage'),_0x3118c9['descriptionFactory']['registerElementLabel']('mergeField',_0x2d46c1=>Bt(_0x325eea,'ELEMENT_MERGE_FIELD',_0x2d46c1)),_0x3118c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f6fae=>Bt(_0x325eea,'ELEMENT_MERGE_FIELD',_0x4f6fae)),_0x3118c9['descriptionFactory']['registerDescriptionCallback'](_0x2d4fbf=>{if('insertion'!=_0x2d4fbf['type']&&'deletion'!=_0x2d4fbf['type'])return;const _0x5eafa0=_0x2d4fbf['getContainedElement']();if(null==_0x5eafa0)return;const _0x81526=_0x4618b3['plugins']['get']('MergeFieldsEditing');let _0xa05050;switch(_0x81526['getMergeFieldType'](_0x5eafa0)){case null:return;case'image':{const _0x33cbf9=_0x81526['unwrapAffixes'](_0x5eafa0['getAttribute']('src'));_0xa05050=_0x81526['getLabel'](_0x33cbf9)||_0x33cbf9;break;}default:{const _0x7f056a=_0x5eafa0['getAttribute']('id');_0xa05050=_0x81526['getLabel'](_0x7f056a)||_0x7f056a;break;}}return'insertion'==_0x2d4fbf['type']?{'type':'insertion','content':Bt(_0x325eea,'*Insert:*\x20%0','\x22'+_0xa05050+'\x22\x20'+Bt(_0x325eea,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0x325eea,'*Remove:*\x20%0','\x22'+_0xa05050+'\x22\x20'+Bt(_0x325eea,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0xdaca7a{afterInit(){const _0x25a724=this['editor'],_0x54cf79=_0x25a724['plugins']['get']('TrackChangesEditing');_0x25a724['plugins']['has']('MultiLevelList')&&(_0x54cf79['enableDefaultAttributesIntegration']('multiLevelList'),_0x54cf79['descriptionFactory']['registerDescriptionCallback'](_0x4d0e05=>this['handleDescriptions'](_0x4d0e05)));}handleDescriptions(_0x134994){const _0x584ba7=this['editor']['locale'],{data:_0x32dc7b}=_0x134994,_0x23b3d5={'type':'format','content':''};if(_0x32dc7b&&'listMarkerStyle'==_0x32dc7b['key']){if(!_0x32dc7b['oldValue'])return{'type':'format','content':Bt(_0x584ba7,'*Set\x20format:*\x20%0',Bt(_0x584ba7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dc7b['newValue']+')'};if(!_0x32dc7b['newValue']){let _0x6c1f3c=_0x134994['head'];for(;_0x6c1f3c;){if(_0x6c1f3c['data']&&'listType'==_0x6c1f3c['data']['key']&&_0x6c1f3c['data']['newValue'])return _0x23b3d5;_0x6c1f3c=_0x6c1f3c['next'];}return{'type':'format','content':Bt(_0x584ba7,'*Remove\x20format:*\x20%0',Bt(_0x584ba7,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x32dc7b['oldValue']+')'};}}}},Oe=class extends _0xdaca7a{afterInit(){const _0x343a32=this['editor'];if(!_0x343a32['plugins']['has']('PageBreakEditing'))return;_0x343a32['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x49cbbc=_0x343a32['plugins']['get']('TrackChangesEditing'),_0x5e8312=_0x343a32['locale'];_0x49cbbc['descriptionFactory']['registerElementLabel']('pageBreak',_0x5739eb=>Bt(_0x5e8312,'ELEMENT_PAGE_BREAK',_0x5739eb));}},we=class extends _0xdaca7a{afterInit(){const _0x2f3973=this['editor'];if(!_0x2f3973['plugins']['has']('Paragraph'))return;const _0x2b6629=_0x2f3973['locale'],_0x7f17f5=_0x2f3973['plugins']['get']('TrackChangesEditing');_0x7f17f5['descriptionFactory']['registerElementLabel']('paragraph',_0x589dcb=>Bt(_0x2b6629,'ELEMENT_PARAGRAPH',_0x589dcb)),_0x7f17f5['enableDefaultAttributesIntegration']('paragraph'),_0x7f17f5['enableCommand']('insertParagraph');const _0x34ab5d=_0x7f17f5['descriptionFactory'];_0x34ab5d['registerDescriptionCallback'](_0x168101=>{if('insertion'!==_0x168101['type'])return;const {start:_0x1d5fd6,end:_0x884bcb}=_0x168101['getFirstRange']();if(!_0x1d5fd6['isTouching'](_0x884bcb)||!_0x1d5fd6['nodeAfter'])return;const _0x14d645=_0x2f3973['model']['schema'],_0x4243f9=_0x1d5fd6['nodeAfter'];return _0x14d645['isBlock'](_0x4243f9)&&!_0x14d645['isLimit'](_0x4243f9)&&_0x14d645['checkChild'](_0x4243f9,'$text')?{'type':'insertion','content':Bt(_0x2b6629,'*Insert:*\x20%0',_0x34ab5d['getItemLabel'](_0x4243f9,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x59a8f2=this['editor'],_0x16890b=_0x59a8f2['locale'];_0x59a8f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x432b92=>{if('formatBlock'!=_0x432b92['type'])return;const {data:_0xce2c9}=_0x432b92;return _0xce2c9&&'paragraph'==_0xce2c9['commandName']?{'type':'format','content':Bt(_0x16890b,'*Change\x20to:*\x20%0',Bt(_0x16890b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0xdaca7a{afterInit(){const _0x5bd19a=this['editor'];_0x5bd19a['commands']['get']('replaceSource')&&_0x5bd19a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0xdaca7a{afterInit(){const _0x44339a=this['editor'];_0x44339a['plugins']['has']('RemoveFormatEditing')&&(_0x44339a['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x541c46=this['editor'];_0x541c46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55605b=>{if('formatBlock'!=_0x55605b['type']&&'formatInline'!=_0x55605b['type'])return;const {data:_0x403361}=_0x55605b;return _0x403361&&'removeFormat'==_0x403361['commandName']?{'type':'format','content':Bt(_0x541c46['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0xdaca7a{afterInit(){const _0x146b42=this['editor'];if(!_0x146b42['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x441c14=_0x146b42['plugins']['get']('TrackChangesEditing');_0x441c14['enableCommand']('goToPreviousRestrictedEditingException'),_0x441c14['enableCommand']('goToNextRestrictedEditingException');const _0x429e62=_0x146b42['plugins']['get']('RestrictedEditingModeEditing');_0x429e62['enableCommand']('trackChanges'),_0x429e62['enableCommand']('acceptSuggestion'),_0x429e62['enableCommand']('discardSuggestion'),_0x429e62['enableCommand']('acceptAllSuggestions'),_0x429e62['enableCommand']('discardAllSuggestions'),_0x429e62['enableCommand']('acceptSelectedSuggestions'),_0x429e62['enableCommand']('discardSelectedSuggestions');}},De=class extends _0xdaca7a{afterInit(){const _0x324717=this['editor'];if(!_0x324717['plugins']['has']('ShiftEnter'))return;const _0x4584f5=_0x324717['plugins']['get']('TrackChangesEditing');_0x4584f5['enableCommand']('shiftEnter'),_0x4584f5['descriptionFactory']['registerElementLabel']('softBreak',_0x3fa40b=>Bt(_0x324717['locale'],'ELEMENT_LINE_BREAK',_0x3fa40b));}};function Ue(_0x10f466,_0x50f96b,_0x563e51){const _0x115cd0=[];for(const _0x2e75ca of _0x50f96b['getItems']())_0x2e75ca['hasAttribute'](_0x10f466)&&_0x115cd0['push'](_0x563e51['createRangeOn'](_0x2e75ca));return _0x115cd0;}var Pe=class extends _0xdaca7a{afterInit(){const _0x1b392e=this['editor'],_0x5d0ddf=_0x1b392e['plugins']['get']('TrackChangesEditing');_0x1b392e['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5d0ddf['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x21a9e2=this['editor'],_0xced5a2=_0x21a9e2['model'],_0x3a2721=_0x21a9e2['locale'],_0x561432=_0x21a9e2['plugins']['get']('TrackChangesEditing'),_0x2b7a7b='restrictedEditingException',_0x2a6d05=_0x21a9e2['commands']['get'](_0x2b7a7b);_0x561432['enableCommand'](_0x2b7a7b,(_0x256b36,_0x5f288e={})=>{const _0x72aa7c=_0xced5a2['document']['selection'];if(_0x72aa7c['isCollapsed'])return void _0x256b36(_0x5f288e);const _0x25bdf3=void 0x0!==_0x5f288e['forceValue']?_0x5f288e['forceValue']:!_0x2a6d05['value'];_0xced5a2['change'](()=>{const _0x30a761=Array['from'](_0x72aa7c['getRanges']());for(const _0x317dc6 of _0x30a761){const _0x206504=_0x25bdf3?[_0x317dc6]:Ue(_0x2b7a7b,_0x317dc6,_0xced5a2);for(const _0x5c3123 of _0x206504)_0x561432['markInlineFormat'](_0x5c3123,{'commandName':_0x2b7a7b,'commandParams':[{'forceValue':_0x25bdf3}]});}});}),_0x561432['descriptionFactory']['registerDescriptionCallback'](_0x72685d=>{if('formatBlock'!=_0x72685d['type']&&'formatInline'!=_0x72685d['type'])return;const {data:_0x2fad71}=_0x72685d;return _0x2fad71&&_0x2fad71['commandName']==_0x2b7a7b?_0x2fad71['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x3a2721,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x3a2721,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x1a772f=this['editor'],_0x53f7c1=_0x1a772f['locale'],_0x4e037b=_0x1a772f['plugins']['get']('TrackChangesEditing'),_0x3bd980='restrictedEditingExceptionBlock',_0x30fd8b=this['editor']['commands']['get'](_0x3bd980);_0x4e037b['enableCommand'](_0x3bd980,(_0x43af1a,_0xb8a458={})=>{const _0x195ce5=this['editor']['model']['document']['selection'],_0x49c035=_0xb8a458&&void 0x0!==_0xb8a458['forceValue']?_0xb8a458['forceValue']:!_0x30fd8b['value'];let _0x45a530=[];if(_0x49c035){const _0x4c14cf=Array['from'](_0x195ce5['getSelectedBlocks']())['filter'](_0x58a69c=>function(_0xe0c74){return!!_0xe0c74['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x58a69c)||function(_0x4c0d50,_0xe31a1b){const _0x128c2a=_0xe31a1b['createContext'](_0x4c0d50['parent']);return!!_0xe31a1b['checkChild'](_0x128c2a,'restrictedEditingException')&&!!_0xe31a1b['checkChild'](_0x128c2a['push']('restrictedEditingException'),_0x4c0d50);}(_0x58a69c,this['editor']['model']['schema']));_0x45a530=Rt(_0x4c14cf,_0x1a772f['model']);}else{const _0x3feebd=Array['from'](_0x195ce5['getSelectedBlocks']())['map'](_0x4589e4=>function(_0x1117b5){let _0x46318d=_0x1117b5;for(;_0x46318d['parent'];){if('restrictedEditingException'==_0x46318d['parent']['name'])return _0x46318d;_0x46318d=_0x46318d['parent'];}return null;}(_0x4589e4))['filter'](_0x49d265=>!!_0x49d265);_0x45a530=Rt(_0x3feebd,_0x1a772f['model']);}_0x1a772f['model']['change'](()=>{for(const _0x50dd56 of _0x45a530)_0x4e037b['markBlockFormat'](_0x50dd56,{'commandName':_0x3bd980,'commandParams':[{'forceValue':_0x49c035}]});});}),_0x4e037b['descriptionFactory']['registerDescriptionCallback'](_0x3a20ae=>{const {data:_0x1cccf4}=_0x3a20ae;if(_0x1cccf4&&_0x1cccf4['commandName']==_0x3bd980)return _0x1cccf4['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x53f7c1,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x53f7c1,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0xdaca7a{afterInit(){const _0x34609f=this['editor'];_0x34609f['plugins']['has']('Style')&&_0x34609f['plugins']['has']('DataSchema')&&(_0x34609f['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x227a7a=this['editor'],_0x4d4ca5=_0x227a7a['locale'];_0x227a7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dad84=>{if('formatBlock'!=_0x2dad84['type']&&'formatInline'!=_0x2dad84['type'])return;const {data:_0x42a0ef}=_0x2dad84;return _0x42a0ef&&'style'===_0x42a0ef['commandName']?_0x42a0ef['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x4d4ca5,'*Set\x20format:*\x20%0',_0x42a0ef['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0x4d4ca5,'*Remove\x20format:*\x20%0',_0x42a0ef['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0xdaca7a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x7a1505){super(_0x7a1505),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x3e25a4=this['editor'],_0xbf3ca8=_0x3e25a4['model']['document']['selection'];if(!_0x3e25a4['plugins']['has']('TableEditing'))return;const _0x1146ae=_0x3e25a4['locale'],_0x395eb3=_0x3e25a4['plugins']['get']('TrackChangesEditing'),_0x47ef35=_0x3e25a4['plugins']['get']('TableUtils');_0x395eb3['descriptionFactory']['registerElementLabel']('table',_0xfacd4f=>Bt(_0x1146ae,'ELEMENT_TABLE',_0xfacd4f)),this['_setupColumnsRowsFixing'](),_0x395eb3['enableCommand']('insertTable'),_0x395eb3['enableCommand']('selectTableRow'),_0x395eb3['enableCommand']('selectTableColumn');for(const _0x121979 of['insertTableRowAbove','insertTableRowBelow']){const _0x28e334=_0x3e25a4['commands']['get'](_0x121979);_0x395eb3['enableCommand'](_0x121979,_0xd967f2=>{_0x3e25a4['model']['change'](_0x46b159=>{_0xd967f2();const _0x5e10dc='above'===_0x28e334['order'],_0x1c53e7=_0x47ef35['getSelectionAffectedTableCells'](_0xbf3ca8),_0x3172bf=_0x47ef35['getRowIndexes'](_0x1c53e7),_0x50de5f=_0x5e10dc?_0x3172bf['first']-0x1:_0x3172bf['last']+0x1,_0x4c0617=_0x1c53e7[0x0]['findAncestor']('table'),_0x57c139=_0x47ef35['createTableWalker'](_0x4c0617,{'startRow':_0x50de5f,'endRow':_0x50de5f}),_0x3480dc=Array['from'](_0x57c139)['map'](_0x17e9af=>_0x46b159['createRangeOn'](_0x17e9af['cell']));_0x395eb3['markMultiRangeInsertion'](_0x3480dc,'tableRow');});});}for(const _0x3586c4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3d2228=_0x3e25a4['commands']['get'](_0x3586c4);_0x395eb3['enableCommand'](_0x3586c4,_0x2e11f5=>{_0x3e25a4['model']['change'](_0x5dd3fb=>{_0x2e11f5();const _0x550a1b='left'===_0x3d2228['order'],_0x27d4e2=_0x47ef35['getSelectionAffectedTableCells'](_0xbf3ca8),_0x5dd430=_0x47ef35['getColumnIndexes'](_0x27d4e2),_0x155b83=_0x550a1b?_0x5dd430['first']-0x1:_0x5dd430['last']+0x1,_0x576e41=_0x27d4e2[0x0]['findAncestor']('table'),_0x52527d=_0x47ef35['createTableWalker'](_0x576e41,{'startRow':0x0,'column':_0x155b83,'includeAllSlots':!0x1}),_0x4274ef=Array['from'](_0x52527d)['map'](_0x431b92=>_0x5dd3fb['createRangeOn'](_0x431b92['cell']));_0x395eb3['markMultiRangeInsertion'](_0x4274ef,'tableColumn');});});}for(const _0x150d2f of['removeTableRow','removeTableColumn']){const _0x281ec2=_0x150d2f['substr'](0xb),_0x2a4e71=_0x281ec2['toLowerCase'](),_0xe53217=_0x2a4e71['substr'](0x0,0x3)+'span',_0x326e20='table'+_0x281ec2,_0x74e096='min'+_0x281ec2,_0x1d6b13='max'+_0x281ec2;_0x395eb3['enableCommand'](_0x150d2f,()=>{_0x3e25a4['model']['change'](_0x12390e=>{const _0x37a4f3=_0x47ef35['getSelectionAffectedTableCells'](_0xbf3ca8),_0x357693=_0x37a4f3[0x0]['findAncestor']('table');let _0xc6c5a9;if('removeTableRow'==_0x150d2f){const _0x58fb08=_0x47ef35['getRowIndexes'](_0x37a4f3);_0xc6c5a9={'startRow':_0x58fb08['first'],'endRow':_0x58fb08['last'],'includeAllSlots':!0x0};}else{const _0x20d098=_0x47ef35['getColumnIndexes'](_0x37a4f3);_0xc6c5a9={'startColumn':_0x20d098['first'],'endColumn':_0x20d098['last'],'includeAllSlots':!0x0};}const _0x581930=_0x47ef35['createTableWalker'](_0x357693,_0xc6c5a9),_0x49533d=Array['from'](_0x581930)['map'](({cell:_0x2c5c94})=>_0x2c5c94),_0x4e4313=He(_0x49533d['filter'](_0xc85830=>_0xc85830['hasAttribute'](_0xe53217))),_0x4d155b=He(_0x49533d['filter'](_0x149a84=>!_0x149a84['hasAttribute'](_0xe53217)))['map'](_0x2b7f04=>_0x12390e['createRangeOn'](_0x2b7f04)),_0x3bf5bf=_0x395eb3['markMultiRangeDeletion'](_0x4d155b,_0x326e20);if(_0x3bf5bf&&('tableRow'==_0x3bf5bf['subType']||'tableColumn'==_0x3bf5bf['subType'])){const _0x5efc6a=this['_getSuggestionCoords'](_0x3bf5bf);for(const _0x33fa62 of _0x4e4313){const _0x57cf00=_0x12390e['createRangeOn'](_0x33fa62),_0x3da2cf=_0x47ef35['getCellLocation'](_0x33fa62),_0x557a50=_0x33fa62['getAttribute'](_0xe53217)-0x1,_0x6a40b0=_0x5efc6a[_0x74e096],_0x50323c=_0x5efc6a[_0x1d6b13];_0x6a40b0<=_0x3da2cf[_0x2a4e71]&&_0x3da2cf[_0x2a4e71]+_0x557a50<=_0x50323c&&_0x3bf5bf['addRange'](_0x57cf00);}}});});}function _0x542940(_0x1083c9){const _0xbb6ab0=Array['from'](_0xbf3ca8['getRanges']())['map'](_0x1afb3c=>ct['fromRange'](_0x1afb3c));_0x3e25a4['model']['change'](_0x3eceef=>{const _0x261c63=_0x3eceef['batch'];_0x1083c9=_0x1083c9['filter'](_0x566fde=>'$graveyard'!=_0x566fde['root']['rootName']),_0x3eceef['setSelection'](_0x1083c9),_0x3e25a4['commands']['get']('removeTableRow')['refresh'](),_0x3e25a4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3e25a4['model']['enqueueChange'](()=>{_0x3e25a4['model']['enqueueChange'](_0x261c63,_0x1bf94e=>{const _0x1786a9=_0xbb6ab0['filter'](_0xebbe87=>'$graveyard'!=_0xebbe87['root']['rootName']);_0x1786a9['length']>0x0&&_0x1bf94e['setSelection'](_0x1786a9);for(const _0x142437 of _0xbb6ab0)_0x142437['detach']();});});});}function _0x915af2(_0xc76d7e){_0x3e25a4['model']['change'](_0x5b33ca=>{const _0x242a38=Array['from'](_0xbf3ca8['getRanges']())['map'](_0x19c810=>ct['fromRange'](_0x19c810)),_0x2ef8f6=[];for(const _0xe63502 of _0xc76d7e)for(const _0x195b23 of _0xe63502['getItems']({'shallow':!0x0}))_0x2ef8f6['push'](_0x195b23);for(const _0x30ca86 of _0x2ef8f6)'$graveyard'!=_0x30ca86['root']['rootName']&&(_0x5b33ca['setSelection'](_0x5b33ca['createPositionAt'](_0x30ca86,0x0)),_0x3e25a4['commands']['get']('removeTableColumn')['refresh'](),_0x3e25a4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x77dca7=_0x242a38['filter'](_0xecabd=>'$graveyard'!=_0xecabd['root']['rootName']);_0x77dca7['length']>0x0&&_0x5b33ca['setSelection'](_0x77dca7);for(const _0x1a0f2e of _0x242a38)_0x1a0f2e['detach']();});}function _0x1836c2(_0xa6fff4,_0x153866){return _0x153866['every'](_0x4b48c5=>_0xa6fff4['some'](_0x493fe0=>_0x493fe0['end']['isEqual'](_0x4b48c5['start'])||_0x4b48c5['end']['isEqual'](_0x493fe0['start'])));}function _0x2cb9df(_0x70de26,_0x5343de){return!_0x70de26['some'](_0x444645=>_0x5343de['some'](_0x300319=>_0x444645['isIntersecting'](_0x300319)))&&_0x70de26['some'](_0x1c7180=>_0x5343de['some'](_0x3e266b=>_0x1c7180['end']['isTouching'](_0x3e266b['start'])));}_0x395eb3['descriptionFactory']['registerDescriptionCallback'](_0x42870f=>{if('insertion'!=_0x42870f['type']&&'deletion'!=_0x42870f['type'])return;const _0x1c9002=_0x42870f['getContainedElement']();if(null!=_0x1c9002&&_0x1c9002['is']('element','table')){if('insertion'==_0x42870f['type']){const _0x512898=_0x42870f['getItems']()['filter'](_0x1e9a02=>_0x1e9a02['is']('$textProxy'))['map'](_0x576689=>_0x576689['data']);if(_0x512898['length'])return{'type':'insertion','content':Bt(_0x1146ae,'*Insert:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x512898['join']('\x20')+'\x22'))};}if('deletion'==_0x42870f['type']){const _0x275ef7=_0x42870f['getItems']()['filter'](_0x366978=>_0x366978['is']('$textProxy'))['map'](_0x33488f=>_0x33488f['data']);if(_0x275ef7['length'])return{'type':'deletion','content':Bt(_0x1146ae,'*Remove:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x275ef7['join']('\x20')+'\x22'))};}}}),_0x395eb3['descriptionFactory']['registerDescriptionCallback'](_0x377b97=>{if('tableRow'==_0x377b97['subType']){const _0x5d80b9=_0x377b97['getItems']()['filter'](_0x15136c=>_0x15136c['is']('$textProxy'))['map'](_0x59f783=>_0x59f783['data']),_0xe516f3=this['_getSuggestionCoords'](_0x377b97),_0x5369d9=_0xe516f3['maxRow']-_0xe516f3['minRow']+0x1;if('insertion'==_0x377b97['type'])return _0x5d80b9['length']?{'type':'insertion','content':Bt(_0x1146ae,'*Insert:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5369d9,'\x22'+_0x5d80b9['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1146ae,'*Insert:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_ROW',_0x5369d9))};if('deletion'==_0x377b97['type'])return _0x5d80b9['length']?{'type':'deletion','content':Bt(_0x1146ae,'*Remove:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5369d9,'\x22'+_0x5d80b9['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1146ae,'*Remove:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_ROW',_0x5369d9))};}if('tableColumn'==_0x377b97['subType']){const _0x36ed38=_0x377b97['getItems']()['filter'](_0x4d33be=>_0x4d33be['is']('$textProxy'))['map'](_0x1f7bf6=>_0x1f7bf6['data']),_0x158a02=this['_getSuggestionCoords'](_0x377b97),_0x30066e=_0x158a02['maxColumn']-_0x158a02['minColumn']+0x1;if('insertion'==_0x377b97['type'])return _0x36ed38['length']?{'type':'insertion','content':Bt(_0x1146ae,'*Insert:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30066e,'\x22'+_0x36ed38['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1146ae,'*Insert:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_COLUMN',_0x30066e))};if('deletion'==_0x377b97['type'])return _0x36ed38['length']?{'type':'deletion','content':Bt(_0x1146ae,'*Remove:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x30066e,'\x22'+_0x36ed38['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1146ae,'*Remove:*\x20%0',Bt(_0x1146ae,'ELEMENT_TABLE_COLUMN',_0x30066e))};}}),_0x395eb3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x542940),_0x395eb3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x542940),_0x395eb3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x915af2),_0x395eb3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x915af2),_0x395eb3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1836c2),_0x395eb3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1836c2),_0x395eb3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2cb9df),_0x395eb3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2cb9df);}_acceptFormatSuggestionCallbackFactory(){const _0x1ac299=this['editor'],_0x229b5a=_0x1ac299['model']['document']['selection'];return(_0x45a60e,_0x16449a)=>{_0x1ac299['model']['change'](_0x2cfe59=>{const {commandName:_0x21bbb8,commandParams:_0x5c79b9}=_0x16449a;let _0x49a8ac=_0x45a60e[0x0]['end']['nodeBefore'];_0x5c79b9&&_0x5c79b9[0x0]&&!0x1===_0x5c79b9[0x0]['forceValue']&&(_0x49a8ac=_0x45a60e[0x0]['start']['nodeAfter']);const _0x2d079d=_0x2cfe59['createRangeIn'](_0x49a8ac);if('$graveyard'==_0x2d079d['root']['rootName'])return;const _0x184206=Array['from'](_0x229b5a['getRanges']())['map'](_0x1445bf=>ct['fromRange'](_0x1445bf));_0x2cfe59['setSelection'](_0x2d079d),_0x1ac299['commands']['get'](_0x21bbb8)['refresh'](),_0x5c79b9['push']({'forceDefaultExecution':!0x0}),_0x1ac299['execute'](_0x21bbb8,..._0x5c79b9);const _0x2b4198=_0x184206['filter'](_0x3ee244=>'$graveyard'!=_0x3ee244['root']['rootName']);_0x2b4198['length']>0x0&&_0x2cfe59['setSelection'](_0x2b4198);for(const _0x4b9a18 of _0x184206)_0x4b9a18['detach']();});};}_getCoordsForCells(_0x5f7a67){const _0x4977ed=this['editor']['plugins']['get']('TableUtils');let _0x38b4a8=Number['MAX_SAFE_INTEGER'],_0x1ebf12=Number['MIN_SAFE_INTEGER'],_0x2b2df3=Number['MAX_SAFE_INTEGER'],_0x510e49=Number['MIN_SAFE_INTEGER'];for(const _0x45e640 of _0x5f7a67){if('$graveyard'==_0x45e640['root']['rootName'])continue;const {row:_0x18becd,column:_0x303c64}=_0x4977ed['getCellLocation'](_0x45e640),_0x31fdb2=_0x45e640['hasAttribute']('rowspan')?_0x45e640['getAttribute']('rowspan')-0x1:0x0,_0x134b4b=_0x45e640['hasAttribute']('colspan')?_0x45e640['getAttribute']('colspan')-0x1:0x0;_0x38b4a8=_0x18becd<_0x38b4a8?_0x18becd:_0x38b4a8,_0x1ebf12=_0x18becd+_0x31fdb2>_0x1ebf12?_0x18becd+_0x31fdb2:_0x1ebf12,_0x2b2df3=_0x303c64<_0x2b2df3?_0x303c64:_0x2b2df3,_0x510e49=_0x303c64+_0x134b4b>_0x510e49?_0x303c64+_0x134b4b:_0x510e49;}return{'minRow':_0x38b4a8,'maxRow':_0x1ebf12,'minColumn':_0x2b2df3,'maxColumn':_0x510e49};}_setupColumnsRowsFixing(){const _0x3d105d=this['editor'],_0x598e39=_0x3d105d['plugins']['get']('TrackChangesEditing'),_0x3a0d06=_0x3d105d['plugins']['get']('TableUtils');_0x3d105d['model']['document']['on']('change:data',()=>{const _0x277ee6=Array['from'](_0x3d105d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4799df,data:_0x156147}of _0x277ee6){const {group:_0x3b8e34,id:_0x7f33cd,subType:_0x5cd506}=it(_0x4799df);if('suggestion'!=_0x3b8e34)continue;if(null!=_0x156147['oldRange'])continue;const _0x429a96=_0x598e39['getSuggestion'](_0x7f33cd);this['_tablePostFixingSubtypes']['includes'](_0x5cd506)&&this['_tableSuggestions']['add'](_0x429a96);}},{'priority':'low'});const _0x4b50f6=(_0x4255bf,_0x3547d4)=>{let _0x26134b=!0x1;const _0x960945=_0x3547d4['createRangeOn'](_0x4255bf),_0x129d47=_0x4255bf['findAncestor']('table'),_0x1fa736=_0x3a0d06['getCellLocation'](_0x4255bf);for(const _0x31602f of this['_tableSuggestions']){const _0x1c419d=_0x31602f['subType'],_0x2a2f8d=_0x1c419d['startsWith']('tablePaste'),_0x18e18d=_0x1c419d['substr'](_0x2a2f8d?0xa:0x5),_0x20ece0=_0x18e18d['toLowerCase'](),_0x4c804b=_0x20ece0['substr'](0x0,0x3)+'span',_0x52261b='min'+_0x18e18d,_0x10c718='max'+_0x18e18d;if(!_0x31602f['isInContent'])continue;if(_0x129d47!=_0x31602f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x31602f['isIntersectingWithRange'](_0x960945))continue;const _0x44df96=_0x4255bf['hasAttribute'](_0x4c804b)?_0x4255bf['getAttribute'](_0x4c804b)-0x1:0x0,_0x5c0708=this['_getSuggestionCoords'](_0x31602f),_0x37224e=_0x5c0708[_0x52261b],_0x2c492c=_0x5c0708[_0x10c718];_0x37224e<=_0x1fa736[_0x20ece0]&&_0x1fa736[_0x20ece0]+_0x44df96<=_0x2c492c&&(_0x31602f['addRange'](_0x960945),_0x26134b=!0x0);}return _0x26134b;};_0x3d105d['model']['document']['registerPostFixer'](_0x354a8e=>{let _0x4c9c15=!0x1;for(const _0x34ae08 of _0x3d105d['model']['document']['differ']['getChanges']())if('insert'==_0x34ae08['type']){if('tableRow'==_0x34ae08['name']){for(const _0x2a6af4 of _0x34ae08['position']['nodeAfter']['getChildren']())_0x4c9c15=_0x4c9c15||_0x4b50f6(_0x2a6af4,_0x354a8e);}else'tableCell'==_0x34ae08['name']&&(_0x4c9c15=_0x4c9c15||_0x4b50f6(_0x34ae08['position']['nodeAfter'],_0x354a8e));}return _0x4c9c15;});}_getSuggestionCoords(_0x4ecc14){return this['_getCoordsForCells'](_0x4ecc14['getRanges']()['map'](_0x1894ae=>_0x1894ae['start']['nodeAfter']));}};function He(_0x587ebf){return Array['from'](new Set(_0x587ebf)['values']());}var $e=class extends _0xdaca7a{static get requires(){return[Ge];}afterInit(){const _0x75fd7=this['editor'],_0x275f38=_0x75fd7['model']['document']['selection'],_0x49579b=_0x75fd7['locale'];if(!_0x75fd7['plugins']['has']('TableEditing'))return;const _0x4fc668=_0x75fd7['plugins']['get']('TrackChangesEditing'),_0xeab0e6=_0x75fd7['plugins']['get']('TableUtils'),_0x161531=_0x75fd7['plugins']['get'](Ge);_0x161531['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4fc668['enableCommand']('mergeTableCells',()=>{const _0x34b6bd=_0xeab0e6['getSelectionAffectedTableCells'](_0x75fd7['model']['document']['selection']);_0x75fd7['model']['change'](()=>{_0x4fc668['markMultiRangeBlockFormat'](_0x34b6bd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x75fd7['commands']['get']('mergeTableCells')['on']('execute',(_0x864baf,_0x22b614)=>{_0x75fd7['commands']['get']('trackChanges')['value']&&(_0x22b614['length']>0x0&&_0x22b614[_0x22b614['length']-0x1]&&_0x22b614[_0x22b614['length']-0x1]['forceDefaultExecution']||_0x4fc668['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x864baf['stop']());},{'priority':'highest'});for(const _0x4a7654 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1c170a=_0x75fd7['commands']['get'](_0x4a7654);_0x4fc668['enableCommand'](_0x4a7654,()=>{const _0x27b471=_0x75fd7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x194c6b=>_0x194c6b['is']('element','tableCell')),_0x37593f=_0x1c170a['value'];_0x75fd7['model']['change'](()=>{_0x4fc668['markMultiRangeBlockFormat']([_0x27b471,_0x37593f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x11f171 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3796c1=_0x75fd7['commands']['get'](_0x11f171);_0x4fc668['enableCommand'](_0x11f171,()=>{const _0x3c5abe=_0xeab0e6['getSelectionAffectedTableCells'](_0x75fd7['model']['document']['selection']),_0x1e47c4=_0x3c5abe[0x0]['findAncestor']('table'),_0x44f4a7=new Set();for(const _0x37c676 of _0x3c5abe){const {column:_0x34b072,row:_0x336861}=_0xeab0e6['getCellLocation'](_0x37c676),_0x4a80a8='horizontally'==_0x3796c1['direction']?_0xeab0e6['createTableWalker'](_0x1e47c4,{'startRow':_0x336861,'endRow':_0x336861,'includeAllSlots':!0x0}):_0xeab0e6['createTableWalker'](_0x1e47c4,{'column':_0x34b072,'includeAllSlots':!0x0});for(const {cell:_0x1992d8}of _0x4a80a8)_0x44f4a7['add'](_0x1992d8);}_0x75fd7['model']['change'](()=>{_0x4fc668['markMultiRangeBlockFormat'](_0x3c5abe,{'commandName':_0x11f171,'commandParams':[]},Array['from'](_0x44f4a7),_0x11f171);});});}_0x4fc668['descriptionFactory']['registerDescriptionCallback'](_0x40d8cd=>{if('formatBlock'!=_0x40d8cd['type']&&'formatInline'!=_0x40d8cd['type'])return;const {data:_0x23392d}=_0x40d8cd;return _0x23392d&&'mergeTableCells'==_0x23392d['commandName']?{'type':'format','content':Bt(_0x49579b,'*Merge\x20cells*')}:void 0x0;}),_0x4fc668['descriptionFactory']['registerDescriptionCallback'](_0x50c765=>{if('formatBlock'!=_0x50c765['type']&&'formatInline'!=_0x50c765['type'])return;const {data:_0x482cf1}=_0x50c765;return _0x482cf1?'splitTableCellVertically'==_0x482cf1['commandName']?{'type':'format','content':Bt(_0x49579b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x482cf1['commandName']?{'type':'format','content':Bt(_0x49579b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x53e116=_0x161531['_acceptFormatSuggestionCallbackFactory']();for(const _0x47b755 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4fc668['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x47b755,'accept',_0x53e116);for(const _0x5b7b85 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4fc668['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b7b85,'accept',_0x2cdd58=>{_0x75fd7['model']['change'](_0x142853=>{const _0x485a5e=Array['from'](_0x2cdd58)['filter'](_0x42d621=>'$graveyard'!=_0x42d621['root']['rootName']&&!!_0x42d621['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x485a5e['length'])return;const _0x301136=Array['from'](_0x275f38['getRanges']())['map'](_0x1cdd9c=>ct['fromRange'](_0x1cdd9c));_0x142853['setSelection'](_0x485a5e),_0x75fd7['commands']['get'](_0x5b7b85)['refresh'](),_0x75fd7['execute'](_0x5b7b85,{'forceDefaultExecution':!0x0});const _0x551186=_0x301136['filter'](_0xdda4bf=>'$graveyard'!=_0xdda4bf['root']['rootName']);_0x551186['length']>0x0&&_0x142853['setSelection'](_0x551186);for(const _0x40f507 of _0x301136)_0x40f507['detach']();});});_0x4fc668['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5dbbd4=>{_0x75fd7['model']['change'](_0x58c44d=>{const _0x3b4251=Array['from'](_0x275f38['getRanges']())['map'](_0x40451a=>ct['fromRange'](_0x40451a));_0x58c44d['setSelection'](_0x5dbbd4),_0x75fd7['commands']['get']('mergeTableCells')['refresh'](),_0x75fd7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x269ff9=_0x3b4251['filter'](_0x1bb559=>'$graveyard'!=_0x1bb559['root']['rootName']);_0x269ff9['length']>0x0&&_0x58c44d['setSelection'](_0x269ff9);for(const _0x1756d2 of _0x3b4251)_0x1756d2['detach']();});});for(const _0x7953b6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4154ef=_0x75fd7['commands']['get'](_0x7953b6);_0x4154ef['on']('set:isEnabled',(_0xd79e3a,_0x3d738c,_0x43a5b9)=>{if(_0x43a5b9){const _0x22cd56=_0x75fd7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x69b816=>_0x69b816['is']('element','tableCell'));this['_areMergableCells'](_0x4154ef['value'],_0x22cd56)||(_0xd79e3a['return']=!0x1,_0xd79e3a['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x557dfc=this['editor']['commands']['get']('mergeTableCells'),_0x5b3877=this['editor']['plugins']['get']('TableUtils');if(!_0x557dfc['isEnabled'])return!0x1;const _0x39c673=_0x5b3877['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x23d8ec of _0x39c673)for(const _0xd1c651 of _0x39c673)if(_0x23d8ec!=_0xd1c651&&!this['_areMergableCells'](_0x23d8ec,_0xd1c651))return!0x1;return!0x0;}['_areMergableCells'](_0x383afb,_0x26fcbf){const _0x346ea8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x300313=this['editor']['model']['createRangeOn'](_0x383afb),_0x284dbe=this['editor']['model']['createRangeOn'](_0x26fcbf),_0x8625e7=new Set(),_0x31d513=new Set();for(const _0x19ec4e of _0x346ea8['getSuggestions']())if(('insertion'==_0x19ec4e['type']||'deletion'==_0x19ec4e['type']||'mergeTableCells'==_0x19ec4e['subType'])&&_0x19ec4e['isInContent']){for(const _0x480707 of _0x19ec4e['getRanges']())_0x480707['containsRange'](_0x300313,!0x0)&&_0x8625e7['add'](_0x19ec4e['type']+':'+_0x19ec4e['author']['id']),_0x480707['containsRange'](_0x284dbe,!0x0)&&_0x31d513['add'](_0x19ec4e['type']+':'+_0x19ec4e['author']['id']);}if(_0x8625e7['size']!=_0x31d513['size'])return!0x1;for(const _0x42180f of _0x8625e7)if(!_0x31d513['has'](_0x42180f))return!0x1;return!0x0;}},We=class extends _0xdaca7a{static get requires(){return[Ge];}afterInit(){const _0x59d21e=this['editor'];if(!_0x59d21e['plugins']['has']('TableEditing'))return;const _0x37ed57=_0x59d21e['locale'],_0x41f744=_0x59d21e['plugins']['get']('TrackChangesEditing');_0x41f744['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x41f744['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x41f744['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x37ed57,'FORMAT_HEADER_ROW')),_0x41f744['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x37ed57,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x4172fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7a7c9b=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x4172fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x7a7c9b),_0x4172fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x7a7c9b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x88338e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3187db=this['editor']['plugins']['get']('TableUtils');function _0x7d24bf({showActiveMarker:_0x31feb4=!0x0,setDataAttribute:_0x364338=!0x0}={}){return(_0x49c869,_0x4d9f0e,_0x132842)=>{const {type:_0x575de6,id:_0xf6fbb4}=it(_0x4d9f0e['markerName']);if(!_0x88338e['hasSuggestion'](_0xf6fbb4))return;const _0x4dd36d=_0x88338e['getSuggestion'](_0xf6fbb4),_0x3c7f9a=_0x4dd36d['data'];if('formatBlock'!=_0x4dd36d['type']||!_0x3c7f9a||'setTableColumnHeader'!=_0x3c7f9a['commandName'])return;if(_0x4d9f0e['item'])return void _0x49c869['stop']();if(!_0x132842['consumable']['consume'](_0x4d9f0e['markerRange'],_0x49c869['name']))return;const _0x1dfc3b=_0x4d9f0e['markerRange']['start']['nodeAfter'],_0x54cb63=_0x4d9f0e['markerRange']['end']['nodeBefore'],_0x5b2585=_0x1dfc3b['parent']['parent'],{column:_0x1c1556}=_0x3187db['getCellLocation'](_0x1dfc3b),{column:_0x5bd3da}=_0x3187db['getCellLocation'](_0x54cb63);for(let _0x17d2c8=_0x1c1556;_0x17d2c8<=_0x5bd3da;_0x17d2c8++){const _0x1b4254=_0x3187db['createTableWalker'](_0x5b2585,{'column':_0x17d2c8,'includeAllSlots':!0x1});for(const _0x12c0ff of _0x1b4254){const _0x29bb3f=_0x12c0ff['cell'],_0x40809c=_0x132842['mapper']['toViewElement'](_0x29bb3f);_0x132842['writer']['addClass']('ck-suggestion-marker-'+_0x575de6,_0x40809c),_0x364338&&_0x132842['writer']['setAttribute']('data-suggestion',_0xf6fbb4,_0x40809c),_0x132842['mapper']['bindElementToMarker'](_0x40809c,_0x4d9f0e['markerName']),_0x31feb4&&(_0x88338e['activeMarkers']['includes'](_0x4d9f0e['markerName'])?_0x132842['writer']['addClass']('ck-suggestion-marker--active',_0x40809c):_0x132842['writer']['removeClass']('ck-suggestion-marker--active',_0x40809c));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x7d24bf(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x34c04e,_0x540168,_0x2853da)=>{_0x2853da['options']['showSuggestionHighlights']&&_0x7d24bf({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x34c04e,_0x540168,_0x2853da);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46a539,_0x2ee6e8,_0x5700a5)=>{const {type:_0x5e1c0a,id:_0x578d0e}=it(_0x2ee6e8['markerName']);if(!_0x88338e['hasSuggestion'](_0x578d0e))return;const _0x50c84d=_0x88338e['getSuggestion'](_0x578d0e),_0x390cbb=_0x50c84d['data'];if('formatBlock'!=_0x50c84d['type']||!_0x390cbb||'setTableColumnHeader'!=_0x390cbb['commandName'])return;const _0x172348=_0x5700a5['mapper']['markerNameToElements'](_0x2ee6e8['markerName']);if(_0x172348){for(const _0xe352cc of _0x172348)_0x5700a5['writer']['removeClass']('ck-suggestion-marker-'+_0x5e1c0a,_0xe352cc),_0x5700a5['writer']['removeClass']('ck-suggestion-marker--active',_0xe352cc),_0x5700a5['writer']['removeAttribute']('data-suggestion',_0xe352cc),_0x5700a5['mapper']['unbindElementFromMarkerName'](_0xe352cc,_0x2ee6e8['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x16e086=this['editor'],_0x2c074a=_0x16e086['locale'];function _0x494e55(_0x444de2){return{'type':'format','content':Bt(_0x2c074a,'*Format:*\x20%0',_0x444de2)};}_0x16e086['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15032a=>{if('formatBlock'!=_0x15032a['type'])return;const {data:_0x4af182}=_0x15032a;return _0x4af182?'setTableRowHeader'==_0x4af182['commandName']?_0x4af182['commandParams'][0x0]['forceValue']?_0x494e55(Bt(_0x2c074a,'FORMAT_HEADER_ROW')):_0x494e55(Bt(_0x2c074a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x4af182['commandName']?_0x4af182['commandParams'][0x0]['forceValue']?_0x494e55(Bt(_0x2c074a,'FORMAT_HEADER_COLUMN')):_0x494e55(Bt(_0x2c074a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0xdaca7a{static get requires(){return[Ge];}afterInit(){const _0x30ac17=this['editor'];if(!_0x30ac17['plugins']['has']('TableEditing')||!_0x30ac17['config']['get']('table.enableFooters'))return;const _0x27b65c=_0x30ac17['locale'],_0x233023=_0x30ac17['plugins']['get']('TrackChangesEditing');_0x233023['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x233023['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x27b65c,'FORMAT_FOOTER_ROW'));}},ze=class extends _0xdaca7a{afterInit(){const _0xe8501d=this['editor'],_0x56ab03=_0xe8501d['locale'],_0x17f024=_0xe8501d['plugins']['get']('TrackChangesEditing');function _0x2be45b(_0x4bb871){return{'type':'format','content':''+Bt(_0x56ab03,'*Set\x20table\x20type:*\x20%0',_0x4bb871)};}_0xe8501d['plugins']['has']('TableLayout')&&(_0x17f024['enableCommand']('insertTableLayout'),_0x17f024['enableDefaultAttributesIntegration']('tableType'),_0x17f024['descriptionFactory']['registerElementLabel'](_0x544867=>_0x544867['is']('element','table')&&'layout'===_0x544867['getAttribute']('tableType'),_0x22edc9=>Bt(_0x56ab03,'ELEMENT_LAYOUT_TABLE',_0x22edc9)),_0x17f024['descriptionFactory']['registerDescriptionCallback'](_0x3ac1aa=>{const {data:_0x51bd30}=_0x3ac1aa;if(_0x51bd30&&'tableType'==_0x51bd30['key'])switch(_0x51bd30['newValue']){case'layout':return _0x2be45b(Bt(_0x56ab03,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2be45b(Bt(_0x56ab03,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](je['map'](_0x4e498f=>[_0x4e498f,null]));var Xe=class extends _0xdaca7a{static get requires(){return[Ge];}afterInit(){const _0x5ddb5a=this['editor'];if(!_0x5ddb5a['plugins']['has']('TableClipboard'))return;const _0x3f40d3=_0x5ddb5a['plugins']['get']('TrackChangesEditing'),_0x22516a=_0x5ddb5a['plugins']['get']('TableUtils'),_0xa45cfa=_0x5ddb5a['plugins']['get'](Ge),_0x261f58=_0x5ddb5a['plugins']['get']('TableClipboard'),_0x4c9082=_0x5ddb5a['plugins']['get']('TableSelection'),_0x292d90=_0x5ddb5a['plugins']['get'](Et);_0xa45cfa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5ddb5a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5ddb5a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ab9ed=null,_0x4a12bd=!0x1;_0x292d90['on']('contentInsertion',(_0xc5ae38,_0x3cc326)=>{_0x4a12bd='paste'===_0x3cc326['method'];}),_0x5ddb5a['model']['on']('insertContent',(_0x285732,_0x2e92a1)=>{if(!_0x4a12bd&&null===_0x4c9082['getSelectedTableCells']())return;const [_0x4196c4,_0x3ee5b6]=_0x2e92a1,_0x5784d3=_0x2e92a1[_0x2e92a1['length']-0x1];_0x5784d3&&_0x5784d3['forceDefaultExecution']||_0x3f40d3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2ff286,_0x3d9d7d,_0x44727e,_0x64f78a,_0x153335){if(_0x3d9d7d&&!_0x3d9d7d['is']('documentSelection'))return!0x1;const _0x12e196=_0x153335['getTableIfOnlyTableInContent'](_0x2ff286,_0x44727e);if(!_0x12e196||!Ye(_0x12e196,void 0x0,_0x64f78a))return!0x1;const _0x2fd500=_0x64f78a['getSelectionAffectedTableCells'](_0x44727e['document']['selection']);if(!_0x2fd500['length'])return!0x1;const _0x5ccaa2=_0x2fd500[0x0]['findAncestor']('table'),_0x22ec81=_0x64f78a['getRowIndexes'](_0x2fd500),_0x5c13ae=_0x64f78a['getColumnIndexes'](_0x2fd500),_0x395342={'startRow':_0x22ec81['first'],'endRow':_0x22ec81['last'],'startColumn':_0x5c13ae['first'],'endColumn':_0x5c13ae['last']};return 0x1==_0x2fd500['length']&&(_0x395342['endRow']+=_0x64f78a['getRows'](_0x12e196)-0x1,_0x395342['endColumn']+=_0x64f78a['getColumns'](_0x12e196)-0x1),Ye(_0x5ccaa2,_0x395342,_0x64f78a);}(_0x4196c4,_0x3ee5b6,_0x5ddb5a['model'],_0x22516a,_0x261f58)&&(_0x285732['stop'](),_0x3ab9ed={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5ddb5a['model']['change'](()=>{_0x5ddb5a['model']['insertContent'](_0x2e92a1[0x0],_0x2e92a1[0x1],_0x2e92a1[0x2],{'forceDefaultExecution':!0x0});const _0x8146cd=_0x575a49(),{rowInsertionRanges:_0x5a387a,columnInsertionRanges:_0x9a9f12,insertionRanges:_0x12a2a8,deletionRanges:_0x4d2faa,cells:_0x1ea69b}=_0x3ab9ed;_0x5a387a['length']&&_0x3f40d3['markMultiRangeInsertion'](_0x5a387a,'tablePasteRow',{'tablePasteChainId':_0x8146cd}),_0x9a9f12['length']&&_0x3f40d3['markMultiRangeInsertion'](_0x9a9f12,'tablePasteColumn',{'tablePasteChainId':_0x8146cd}),_0x12a2a8['length']&&(_0x3f40d3['markMultiRangeInsertion'](_0x12a2a8,'tablePaste',{'tablePasteChainId':_0x8146cd,'skipNestingCheck':!0x0}),_0x12a2a8['forEach'](_0x4faf70=>_0x4faf70['detach']?.())),_0x4d2faa['length']&&(_0x3f40d3['markMultiRangeDeletion'](_0x4d2faa,'tablePaste',{'tablePasteChainId':_0x8146cd,'skipNestingCheck':!0x0}),_0x4d2faa['forEach'](_0xdcb335=>_0xdcb335['detach']?.()));const _0x5306b8=_0x3f40d3['markMultiRangeBlockFormat'](_0x1ea69b['map'](({element:_0x38bca9})=>_0x38bca9),{'formatGroupId':_0x575a49()},[],'tablePasteCell',{'tablePasteChainId':_0x8146cd});if(_0x5306b8){const _0x41fd98=_0x5306b8['getMarkers'](),_0x49ffa0=[];for(const {element:_0x5ca524,attributes:_0x2f1260}of _0x1ea69b){if(!_0x2f1260)continue;const _0x427949=_0x5ddb5a['model']['createRangeOn'](_0x5ca524),_0x18f194=_0x41fd98['find'](_0x15a830=>_0x15a830['getRange']()['isEqual'](_0x427949));_0x18f194&&_0x49ffa0['push']([_0x18f194['name'],_0x2f1260]);}_0x49ffa0['length']&&_0x5306b8['setAttribute']('markerAttributes',Object['fromEntries'](_0x49ffa0));}_0x3ab9ed=null;}));},{'priority':_0xba5ef9['high']+0xa}),_0x292d90['on']('contentInsertion',()=>{_0x4a12bd=!0x1;},{'priority':'lowest'}),_0x5ddb5a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x53f8c3,_0x38a99b)=>{const [_0x4d02f9,_0x2713b7,,_0x30bfd6]=_0x38a99b;if(!_0x3ab9ed)return;_0x53f8c3['stop']();const _0x46b722=_0x4d02f9['cell'],_0x1772c5=_0x2713b7,_0x218687=qe(_0x46b722),_0x31a7f9=qe(_0x1772c5);_0x53f8c3['return']=_0x46b722;let _0x2b5619=null,_0x59d3c5=null;if(_0x31a7f9||_0x218687){if(_0x218687&&!_0x31a7f9){_0x30bfd6['remove'](_0x46b722['getChild'](0x0));for(const _0x49514a of Array['from'](_0x1772c5['getChildren']()))_0x30bfd6['insert'](_0x49514a,_0x46b722,'end');const _0xe47847=_0x3ab9ed['rowInsertionIndexes']['includes'](_0x4d02f9['row']),_0x5a9a2f=_0x3ab9ed['columnInsertionIndexes']['includes'](_0x4d02f9['column']);_0xe47847||_0x5a9a2f||(_0x2b5619=ct['fromRange'](_0x30bfd6['createRangeIn'](_0x46b722)));}else _0x31a7f9&&!_0x218687&&(_0x59d3c5=_0x30bfd6['createRangeIn'](_0x46b722));}else{const _0x2ce38a=_0x30bfd6['createElement']('tableCellSuggestion'),_0x1fc62e=_0x30bfd6['createElement']('tableCellSuggestion');_0x30bfd6['wrap'](_0x30bfd6['createRangeIn'](_0x46b722),_0x1fc62e),_0x30bfd6['insert'](_0x2ce38a,_0x46b722,0x0);for(const _0x47137a of Array['from'](_0x1772c5['getChildren']()))_0x30bfd6['insert'](_0x47137a,_0x2ce38a,'end');_0x2b5619=ct['fromRange'](_0x30bfd6['createRangeOn'](_0x2ce38a)),_0x59d3c5=ct['fromRange'](_0x30bfd6['createRangeOn'](_0x1fc62e));}const _0x3cca94=Array['from'](_0x1772c5['getAttributes']())['filter'](([_0x18b032])=>je['includes'](_0x18b032));_0x3ab9ed['cells']['push']({'element':_0x46b722,'attributes':_0x3cca94['length']?Object['fromEntries'](_0x3cca94):null}),_0x2b5619&&_0x3ab9ed['insertionRanges']['push'](_0x2b5619),_0x59d3c5&&_0x3ab9ed['deletionRanges']['push'](_0x59d3c5);},{'priority':'high'}),_0x22516a['on']('insertColumns',(_0x48476e,_0x493d76)=>{const [_0x4a6233,_0x3510c6={}]=_0x493d76;if(!_0x3ab9ed)return;const _0x463d6f=_0x3510c6['at']||0x0,_0x3d5b5f=_0x3510c6['columns']||0x1;_0x3ab9ed['columnInsertionIndexes']=new Array(_0x3d5b5f)['fill'](_0x463d6f)['map']((_0x3f41bd,_0x3d9ffb)=>_0x3f41bd+_0x3d9ffb);for(const {cell:_0x53537f}of _0x22516a['createTableWalker'](_0x4a6233,{'startColumn':_0x463d6f,'endColumn':_0x463d6f+_0x3d5b5f-0x1}))_0x3ab9ed['columnInsertionRanges']['push'](_0x5ddb5a['model']['createRangeOn'](_0x53537f));},{'priority':'low'}),_0x22516a['on']('insertRows',(_0x6d21fe,_0x594ffb)=>{const [_0x11d752,_0x4a4db6={}]=_0x594ffb;if(!_0x3ab9ed)return;const _0xdb3dc=_0x4a4db6['at']||0x0,_0x3a968c=_0x4a4db6['rows']||0x1;_0x3ab9ed['rowInsertionIndexes']=new Array(_0x3a968c)['fill'](_0xdb3dc)['map']((_0x21461d,_0x541ec6)=>_0x21461d+_0x541ec6);for(const {cell:_0x893735}of _0x22516a['createTableWalker'](_0x11d752,{'startRow':_0xdb3dc,'endRow':_0xdb3dc+_0x3a968c-0x1}))_0x3ab9ed['rowInsertionRanges']['push'](_0x5ddb5a['model']['createRangeOn'](_0x893735));},{'priority':'low'}),_0x3f40d3['descriptionFactory']['registerDescriptionCallback'](_0x567860=>{if(_0x567860['subType']&&_0x567860['subType']['startsWith']('tablePaste'))return _0x567860['previous']?{}:{'type':'insertion','content':Bt(_0x5ddb5a['locale'],'*Replace\x20table\x20cells*')};});const _0x33e053=()=>!0x1;for(const _0x4d816f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f40d3['_suggestionFactory']['registerCustomCallback']('insertion',_0x4d816f,'join',_0x33e053),_0x3f40d3['_suggestionFactory']['registerCustomCallback']('deletion',_0x4d816f,'join',_0x33e053),_0x3f40d3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4d816f,'join',_0x33e053);_0x3f40d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x33e053),_0x3f40d3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x407816,_0x1495f8,_0x35756b)=>{const _0x53099c=_0x407816['map'](_0x477928=>_0x477928['getContainedElement']())['filter'](_0x144895=>_0x144895),_0x1d3d63=new Map(_0x53099c['map'](_0x268bf4=>[_0x268bf4,null]));if(_0x3ab9ed){for(const {element:_0xcd03c6,attributes:_0x4982c9}of _0x3ab9ed['cells'])_0x4982c9&&_0x1d3d63['set'](_0xcd03c6,_0x4982c9);}else{if(_0x35756b&&_0x35756b['markerAttributes'])for(const [_0x11bf94,_0x3520c3]of Object['entries'](_0x35756b['markerAttributes'])){const _0x2fd9d5=_0x5ddb5a['model']['markers']['get'](_0x11bf94),_0x471c25=_0x2fd9d5?_0x2fd9d5['getRange']()['getContainedElement']():null;_0x471c25&&_0x1d3d63['set'](_0x471c25,_0x3520c3);}}_0x5ddb5a['model']['change'](_0x3332c1=>{for(const [_0x2140c,_0x1d3d3e]of _0x1d3d63)_0x3332c1['setAttributes']({...Ke,..._0x1d3d3e},_0x2140c);});});const _0x13f3e4=(_0x5a713b,_0x4b8bde)=>{_0x3f40d3['_suggestionFactory']['registerCustomCallback'](_0x5a713b,'tablePaste',_0x4b8bde,(_0x5b315c,_0xa5ba81,_0x3651e6)=>{_0x5ddb5a['model']['change'](_0x2978a8=>{const _0x3e92ce=[];for(const _0x4986b5 of _0x5b315c){const _0x31c7f0=_0x4986b5['start']['nodeAfter'];_0x31c7f0['is']('element','tableCellSuggestion')&&_0x3e92ce['push'](_0x31c7f0);}_0x3f40d3['_suggestionFactory']['getSuggestionCallback'](_0x5a713b,null,_0x4b8bde)(_0x5b315c,_0xa5ba81,_0x3651e6);for(const _0x2d923a of _0x3e92ce)'$graveyard'!=_0x2d923a['root']['rootName']&&_0x2978a8['unwrap'](_0x2d923a);});});};_0x13f3e4('insertion','accept'),_0x13f3e4('insertion','discard'),_0x13f3e4('deletion','accept'),_0x13f3e4('deletion','discard'),_0x3f40d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x10f0ae=>{const _0x861bda=_0x10f0ae['map'](_0x1776ad=>_0x1776ad['getContainedElement']()),_0x4eea92=_0x861bda[0x0]['findAncestor']('table'),{minRow:_0x56c981,maxRow:_0x5dd150}=_0xa45cfa['_getCoordsForCells'](_0x861bda);_0x22516a['removeRows'](_0x4eea92,{'at':_0x56c981,'rows':_0x5dd150-_0x56c981+0x1});}),_0x3f40d3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1f0e4f=>{const _0x22ece1=_0x1f0e4f['map'](_0x5d328f=>_0x5d328f['getContainedElement']()),_0x1878a3=_0x22ece1[0x0]['findAncestor']('table'),{minColumn:_0x581014,maxColumn:_0x18d2aa}=_0xa45cfa['_getCoordsForCells'](_0x22ece1);_0x22516a['removeColumns'](_0x1878a3,{'at':_0x581014,'columns':_0x18d2aa-_0x581014+0x1});});const _0x2b61d6=(_0x6f7baa,_0x5d33ed)=>{if(!_0x5d33ed['subType']||!_0x5d33ed['subType']['startsWith']('tablePaste'))return;const _0x39f954=_0x5d33ed['attributes']['tablePasteChainId'],_0x2e2c66=_0x3f40d3['getSuggestions']()['filter'](_0x4a249f=>_0x4a249f['isInContent']&&_0x4a249f['attributes']&&_0x4a249f['attributes']['tablePasteChainId']==_0x39f954);_0x2e2c66['length']&&_0x5d33ed['getAllAdjacentSuggestions']()['length']!=_0x2e2c66['length']&&_0x2e2c66['reduce']((_0x5d890f,_0x114c12)=>(_0x5d890f['next']=_0x114c12,_0x114c12['previous']=_0x5d890f,_0x114c12));};function _0x1ef025(_0x3e8b49,_0x5efca8=!0x0){const {id:_0x3524fa,authorId:_0x216550}=it(_0x3e8b49['markerName']),_0x1e898c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2f1dfc=_0x3f40d3['activeMarkers']['includes'](_0x3e8b49['markerName']);return _0x2f1dfc&&_0x1e898c['push']('ck-suggestion-marker--active'),{'classes':_0x1e898c,'attributes':{'data-suggestion':_0x3524fa,'data-author-id':_0x216550},'priority':_0x2f1dfc&&_0x5efca8?0xbc2:0xbb8};}_0x3f40d3['on']('suggestionLoaded',_0x2b61d6,{'priority':'high'}),_0x3f40d3['on']('suggestionUnloaded',_0x2b61d6,{'priority':'high'}),_0x5ddb5a['model']['document']['registerPostFixer'](()=>{let _0x377b7f=!0x1;const _0x35fa1d=Array['from'](_0x5ddb5a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cb126,data:_0x18b05f}of _0x35fa1d){const {group:_0x889456,type:_0x56ec54,id:_0x5bc7d6}=it(_0x5cb126);if('suggestion'!=_0x889456||'deletion'!=_0x56ec54||_0x18b05f['oldRange'])continue;if(!_0x3f40d3['hasSuggestion'](_0x5bc7d6))continue;const _0xb10366=_0x3f40d3['getSuggestion'](_0x5bc7d6)['getRanges'](),_0x152ddf=_0x5ddb5a['plugins']['get']('Users')['me'];for(const _0x292829 of _0x3f40d3['getSuggestions']())if(_0x292829['isInContent']&&_0x292829['author']==_0x152ddf&&'formatBlock'==_0x292829['type']&&'tablePasteCell'==_0x292829['subType']&&_0x292829['getRanges']()['every'](_0x98aee2=>_0xb10366['some'](_0x4a10f6=>_0x4a10f6['containsRange'](_0x98aee2,!0x0)))){for(const _0x27b8d7 of _0x292829['getAllAdjacentSuggestions']())_0x27b8d7['isInContent']&&(_0x27b8d7['discard'](),_0x377b7f=!0x0);}}return _0x377b7f;}),_0x5ddb5a['model']['document']['registerPostFixer'](_0x17c18a=>{const _0x2b2753=_0x5ddb5a['commands']['get']('redo');if(!_0x2b2753||!_0x2b2753['_createdBatches']['has'](_0x17c18a['batch']))return!0x1;let _0x4f9856=!0x1;const _0x154d72=_0x5ddb5a['plugins']['get']('Users')['me'],_0x47f5f2=_0x5ddb5a['model']['document']['differ']['getChanges'](),_0x3b500f=Array['from'](_0x5ddb5a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x64a2f9,data:_0x59eddd})=>{const {group:_0x276396,subType:_0x33bf26,authorId:_0x4255ae}=it(_0x64a2f9);return'suggestion'==_0x276396&&'tablePaste'==_0x33bf26&&_0x4255ae==_0x154d72['id']&&!_0x59eddd['oldRange'];});for(const _0x326085 of _0x47f5f2){if('insert'!=_0x326085['type']||'tableCellSuggestion'!=_0x326085['name']||0x1!=_0x326085['length'])continue;const _0x4fa458=_0x17c18a['createRange'](_0x326085['position'],_0x326085['position']['getShiftedBy'](0x1));if(!_0x3b500f['find'](({data:_0x5718ce})=>_0x5718ce['newRange']['isEqual'](_0x4fa458))){for(const {name:_0x13347f,data:_0x1d23b6}of _0x3b500f)if(_0x4fa458['containsRange'](_0x1d23b6['newRange'])){_0x17c18a['updateMarker'](_0x13347f,{'range':_0x4fa458}),_0x4f9856=!0x0;break;}}}return _0x4f9856;}),_0x5ddb5a['model']['document']['registerPostFixer'](_0x361805=>{let _0x2f70e4=!0x1;const _0x458634=_0x5ddb5a['plugins']['get']('Users')['me'],_0x51aecc=_0x3f40d3['getSuggestions']()['filter'](_0x33fb8b=>_0x33fb8b['isInContent']&&_0x33fb8b['author']==_0x458634),_0x42d22e=new Set(),_0xfa9f1c=new Set();for(const _0x17be07 of _0x51aecc)if('tablePaste'==_0x17be07['subType'])for(const _0x44c8ea of _0x17be07['getMarkers']()){const _0x44eaaa=_0x44c8ea['getRange']()['getContainedElement']();if(_0x44eaaa){if(_0x44eaaa['is']('element','tableCellSuggestion')&&qe(_0x44eaaa)){_0x17be07['removeMarker'](_0x44c8ea['name']),_0x42d22e['add'](_0x44eaaa),_0x2f70e4=!0x0;const _0xcebf65=_0x44eaaa['nextSibling'],_0x17aeff=_0x44eaaa['previousSibling'],_0x506c6a=_0xcebf65&&_0xcebf65['is']('element','tableCellSuggestion'),_0x329cbd=_0x17aeff&&_0x17aeff['is']('element','tableCellSuggestion');_0x506c6a&&!_0x42d22e['has'](_0xcebf65)&&_0xfa9f1c['add'](_0xcebf65),_0x329cbd&&!_0x42d22e['has'](_0x17aeff)&&_0xfa9f1c['add'](_0x17aeff);}else _0x44eaaa['is']('element','paragraph')&&_0x44eaaa['isEmpty']&&(_0x17be07['removeMarker'](_0x44c8ea['name']),_0x2f70e4=!0x0);}}else{if('tablePasteCell'==_0x17be07['subType']){if(!_0x17be07['attributes']||!_0x17be07['attributes']['tablePasteChainId'])continue;const _0x4fd84f=_0x17be07['attributes']['markerAttributes'];if(_0x4fd84f&&Object['keys'](_0x4fd84f)['length'])continue;const _0x13d6b8=_0x17be07['attributes']['tablePasteChainId'];let _0x5decef=!0x0,_0x5f1f9d=!0x0;for(const _0xbc0258 of _0x51aecc)if(_0xbc0258['subType']&&_0xbc0258['subType']['startsWith']('tablePaste')){if(!_0xbc0258['attributes']['tablePasteChainId']){_0x5f1f9d=!0x1;break;}if(_0xbc0258['id']!=_0x17be07['id']&&_0xbc0258['attributes']['tablePasteChainId']==_0x13d6b8){_0x5decef=!0x1;break;}}_0x5f1f9d&&_0x5decef&&(_0x17be07['removeMarkers'](),_0x2f70e4=!0x0);}}for(const _0x3b4ed4 of _0x42d22e)_0x361805['remove'](_0x3b4ed4);for(const _0x10785c of _0xfa9f1c)_0x361805['unwrap'](_0x10785c);return _0x2f70e4;}),_0x5ddb5a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46fccb=>_0x1ef025(_0x46fccb),'converterPriority':'high'}),_0x5ddb5a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4f2063,_0xeaa7fe)=>_0xeaa7fe['options']['showSuggestionHighlights']?_0x1ef025(_0x4f2063,!0x1):null,'converterPriority':'high'});const _0x12001d=_0x5ddb5a['editing']['view'];this['listenTo'](_0x12001d['document'],'clipboardOutput',(_0x224169,_0x3d8435)=>{const _0x2de9b2=[];for(const _0x13bba7 of _0x12001d['createRangeIn'](_0x3d8435['content'])['getItems']())_0x13bba7['is']('element','suggestion-td')&&_0x2de9b2['push'](_0x13bba7);_0x12001d['change'](_0x633346=>{for(const _0x4ebef8 of _0x2de9b2)_0x633346['move'](_0x633346['createRangeIn'](_0x4ebef8),_0x633346['createPositionBefore'](_0x4ebef8)),_0x633346['remove'](_0x4ebef8);});});}};function qe(_0x4908a4){if(_0x4908a4['isEmpty'])return!0x0;const _0x29f180=_0x4908a4['getChild'](0x0);return _0x29f180['is']('element','paragraph')&&_0x29f180['isEmpty'];}function Ye(_0x107544,_0x637671={},_0x42c633){for(const {isAnchor:_0x2e8d06,cellHeight:_0x538ce5,cellWidth:_0x1bbaac}of _0x42c633['createTableWalker'](_0x107544,{'includeAllSlots':!0x0,..._0x637671}))if(!_0x2e8d06||0x1!=_0x538ce5||0x1!=_0x1bbaac)return!0x1;return!0x0;}var Qe=class extends _0xdaca7a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x31c472=this['editor']['plugins']['get']('TrackChangesEditing');_0x31c472['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x31c472['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x31c472['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x31c472['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x15ba51=_0x31c472['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x31c472['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x25fd5d,_0x145335)=>{_0x15ba51(_0x25fd5d,_0x145335),this['_restoreCellWidths'](_0x25fd5d[0x0]['start']['nodeAfter'],_0x145335['commandParams'][0x0]['cellWidths']);}),_0x31c472['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xf67b88,_0x4ae137){const _0x7eac0a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f47aa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x28665b=_0x4ae137['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4f183b=_0x4f47aa['getColumnGroupElement'](_0x28665b);let _0x30190b=_0x4f183b?_0x4f47aa['getTableColumnsWidths'](_0x4f183b):null,_0x3f2b5d=_0x28665b['getAttribute']('tableWidth')||null;const _0x3b7f9b=_0x4ae137['tableWidth']||_0x3f2b5d,_0x291119=_0x4ae137['columnWidths']||_0x30190b;let _0x58b659=this['_getCellWidths'](_0x28665b);const _0x2cb429=this['_foldResizeTableSuggestion'](_0x28665b);_0x2cb429&&(_0x3f2b5d=_0x2cb429['tableWidth'],_0x30190b=_0x2cb429['columnWidths'],_0x58b659=_0x2cb429['cellWidths']||_0x58b659),_0xf67b88({'table':_0x28665b,'tableWidth':_0x3b7f9b,'columnWidths':_0x291119}),_0x7eac0a['markBlockFormat'](_0x28665b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3f2b5d,'columnWidths':_0x30190b,'cellWidths':_0x58b659}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x422ba6,_0x53c5f3={}){if(void 0x0===_0x53c5f3['value']||''===_0x53c5f3['value'])return void _0x422ba6(_0x53c5f3);const _0x193b92=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5183ca=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x332a95=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x53c5f3['batch']||(_0x53c5f3['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x53c5f3['batch'],()=>{const _0x1b21ef=_0x5183ca['getColumnGroupElement'](_0x332a95);let _0x155dd3=_0x1b21ef?_0x5183ca['getTableColumnsWidths'](_0x1b21ef):null,_0x33b684=_0x332a95['getAttribute']('tableWidth')||null,_0x1068b5=this['_getCellWidths'](_0x332a95);const _0x36a008=this['_foldResizeTableSuggestion'](_0x332a95,!0x0);_0x36a008&&(_0x33b684=_0x36a008['tableWidth'],_0x155dd3=_0x36a008['columnWidths'],_0x1068b5=_0x36a008['cellWidths']||_0x1068b5),_0x422ba6(_0x53c5f3),_0x193b92['markBlockFormat'](_0x332a95,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x33b684,'columnWidths':_0x155dd3,'cellWidths':_0x1068b5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x240362,_0x3471a5=!0x1){const _0x21312f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38c2f4=this['editor']['plugins']['get']('Users')['me'];for(const _0x2de8d of _0x21312f['getSuggestions']({'skipNotAttached':!0x0})){const _0x11afeb=_0x2de8d['getContainedElement']();if('resizeTable'===_0x2de8d['subType']&&_0x11afeb===_0x240362){_0x2de8d['author']!==_0x38c2f4&&(_0x3471a5?_0x2de8d['removeMarkers']():_0x2de8d['discard']());const _0x556842=_0x2de8d['data']['commandParams'];return{'tableWidth':_0x556842[0x0]['tableWidth'],'columnWidths':_0x556842[0x0]['columnWidths'],'cellWidths':_0x556842[0x0]['cellWidths']};}}return null;}_getCellWidths(_0xc1350b){const _0xc22717=[];for(const _0x21d44e of _0xc1350b['getChildren']())if(_0x21d44e['is']('element','tableRow')){for(const _0x5a0624 of _0x21d44e['getChildren']())_0xc22717['push'](_0x5a0624['getAttribute']('tableCellWidth')||null);}return _0xc22717;}_restoreCellWidths(_0x289bdc,_0x4a8589){_0x4a8589&&this['editor']['model']['change'](_0x59c725=>{let _0x505045=0x0;for(const _0x395b8c of _0x289bdc['getChildren']())if(_0x395b8c['is']('element','tableRow'))for(const _0x16cdef of _0x395b8c['getChildren']()){const _0xe2db26=_0x4a8589[_0x505045++];_0xe2db26&&_0x59c725['setAttribute']('tableCellWidth',_0xe2db26,_0x16cdef);}});}handleSuggestionDescription(_0x5e7511){if('formatBlock'!=_0x5e7511['type']&&'formatInline'!=_0x5e7511['type'])return;const {data:_0x24a768}=_0x5e7511;return _0x24a768&&'resizeTable'===_0x24a768['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0xdaca7a{afterInit(){const _0x44111e=this['editor'];_0x44111e['plugins']['has']('Template')&&_0x44111e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0xdaca7a{afterInit(){const _0xdb9149=this['editor'];if(!_0xdb9149['commands']['get']('insertTableOfContents'))return;_0xdb9149['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x473caa=_0xdb9149['plugins']['get']('TrackChangesEditing'),_0x49c34a=_0xdb9149['locale'];_0x473caa['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2da492=>Bt(_0x49c34a,'ELEMENT_TABLE_OF_CONTENTS',_0x2da492));}},tn=class extends _0xdaca7a{afterInit(){const _0x3bc4fe=this['editor'];_0x3bc4fe['plugins']['has']('Title')&&(_0x3bc4fe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0x3bc4fe['locale'],'ELEMENT_TITLE')),_0x3bc4fe['model']['document']['registerPostFixer'](_0x4cf02b=>{let _0x34df69=!0x1;const _0x4b8141=Array['from'](_0x3bc4fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47c79a,data:_0x391002}of _0x4b8141){const {group:_0x564462}=it(_0x47c79a);if('suggestion'!==_0x564462||!_0x391002['newRange'])continue;const _0x398f8b=_0x391002['newRange'],_0x17128f=_0x398f8b['end']['nodeBefore'];if(!_0x17128f||!_0x17128f['is']('element','title-content'))continue;if(!_0x398f8b['start']['isTouching'](_0x398f8b['end']))continue;const _0x51575e=_0x3bc4fe['model']['schema']['getNearestSelectionRange'](_0x398f8b['end'],'forward');if(_0x51575e&&_0x51575e['isCollapsed']){const _0x506abc=_0x4cf02b['createRange'](_0x398f8b['start'],_0x51575e['start']);_0x506abc['isEqual'](_0x398f8b)||(_0x4cf02b['updateMarker'](_0x47c79a,{'range':_0x506abc}),_0x34df69=!0x0);}_0x34df69||(_0x4cf02b['removeMarker'](_0x47c79a),_0x34df69=!0x0);}return _0x34df69;}));}},en=class extends _0xdaca7a{afterInit(){const _0xceebae=this['editor'],_0x2b9c13=_0xceebae['plugins']['get']('TrackChangesEditing');_0xceebae['plugins']['has']('Uploadcare')&&(_0x2b9c13['enableCommand']('uploadcare'),_0xceebae['plugins']['has']('UploadcareImageEdit')&&(_0x2b9c13['enableCommand']('uploadcareImageEdit'),_0x2b9c13['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2b9c13['descriptionFactory']['registerDescriptionCallback'](_0x183fad=>{if('attribute'!=_0x183fad['type'])return;const {data:_0x290e41}=_0x183fad;return _0x290e41&&'uploadcareImageId'==_0x290e41['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0xdaca7a{afterInit(){const _0x3b86af=this['editor'],_0x2d6cf1=_0x3b86af['plugins']['get']('TrackChangesEditing');_0x3b86af['plugins']['has']('UndoEditing')&&(_0x2d6cf1['enableCommand']('undo'),_0x2d6cf1['enableCommand']('redo'));}},sn=class extends _0xdaca7a{static get requires(){return[Ge];}afterInit(){const _0x44dbc4=this['editor'];_0x44dbc4['plugins']['has']('TableCaptionEditing')&&_0x44dbc4['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0xdaca7a{tableProperties;tableCellProperties;constructor(_0x49fb9f){super(_0x49fb9f),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 _0x3eb7c4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x288827 of this['tableProperties'])_0x3eb7c4['enableCommand'](_0x288827,(_0x3a13ef,_0xd2c197)=>{const _0x2697fb=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x288827,[_0x2697fb],this['tableProperties'],'tableProperties',_0x3a13ef,_0xd2c197);});_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3eb7c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1c8cea,_0x457e52)=>this['handleDiscardAction'](this['tableProperties'],_0x1c8cea,_0x457e52)),_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x138f6b of this['tableCellProperties'])this['editor']['commands']['get'](_0x138f6b)&&_0x3eb7c4['enableCommand'](_0x138f6b,(_0x31079f,_0x5cf9a3)=>{const _0x2239e5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x138f6b,_0x2239e5,this['tableCellProperties'],'tableCellProperties',_0x31079f,_0x5cf9a3);});_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3eb7c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5e4fff,_0x32175d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5e4fff,_0x32175d)),_0x3eb7c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x3eb7c4['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x3eb7c4['descriptionFactory']['registerDescriptionCallback'](_0x3858c4=>this['handleSuggestionDescription'](_0x3858c4)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x20058c,_0x38b7e9,_0x43ac79,_0x580852,_0x5b3dbd,_0x5a6bfe){const _0x4f5566=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5a6bfe['batch'],()=>{for(const _0x1a1e14 of _0x38b7e9)if(this['_getSuggestion'](_0x1a1e14,_0x580852))_0x5b3dbd(_0x5a6bfe);else{const _0x3dfdea={};for(const _0x358ea2 of _0x43ac79){const _0x1911b5=_0x1a1e14['getAttribute'](_0x358ea2);void 0x0!==_0x1911b5&&(_0x3dfdea[_0x358ea2]=_0x1911b5);}const _0x4b28ed=this['_getResizedColumnWidths'](_0x1a1e14);_0x4b28ed&&(_0x3dfdea['columnWidths']=_0x4b28ed),_0x5b3dbd(_0x5a6bfe),_0x4f5566['markBlockFormat'](_0x1a1e14,{'commandParams':[_0x3dfdea]},[],_0x580852);}});}handleDiscardAction(_0x2e0d6b,_0x2a100e,_0x7e64e0){const _0x5237ae=_0x2a100e[0x0]['start']['nodeAfter'],_0x401f56=_0x7e64e0['commandParams'][0x0];this['editor']['model']['change'](_0x5a91d0=>{for(const _0x1d6846 of _0x2e0d6b)void 0x0!==_0x401f56[_0x1d6846]?_0x5a91d0['setAttribute'](_0x1d6846,_0x401f56[_0x1d6846],_0x5237ae):_0x5a91d0['removeAttribute'](_0x1d6846,_0x5237ae);if(_0x401f56['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x55a47b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16a248=_0x55a47b['getColumnGroupElement'](_0x5237ae);if(_0x16a248){const _0xec8c96=_0x55a47b['getTableColumnsWidths'](_0x16a248),_0x3ba8d9=_0x5237ae['getAttribute']('tableWidth');if(('string'==typeof _0x3ba8d9&&_0x3ba8d9['trim']()['endsWith']('px'))!==_0xec8c96['some'](_0x30c1b3=>'string'==typeof _0x30c1b3&&_0x30c1b3['endsWith']('px'))){const _0x1fdbd0=_0x55a47b['getTableColumnElements'](_0x16a248);_0x401f56['columnWidths']['forEach']((_0x272358,_0x45a73b)=>{_0x1fdbd0[_0x45a73b]&&_0x5a91d0['setAttribute']('columnWidth',_0x272358,_0x1fdbd0[_0x45a73b]);});}}}});}_getResizedColumnWidths(_0x3c130a){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x3c130a['is']('element','table'))return;const _0x5295fa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x377871=_0x5295fa['getColumnGroupElement'](_0x3c130a);return _0x377871?_0x5295fa['getTableColumnsWidths'](_0x377871):void 0x0;}handleSuggestionDescription(_0x2b9bdb){if(_0x2b9bdb['data'])switch(_0x2b9bdb['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x130edc,_0x44df7d){const _0x526f62=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xa6ea97 of _0x526f62['getSuggestions']({'skipNotAttached':!0x0})){const _0x5ccfb3=_0xa6ea97['getContainedElement']();if(_0xa6ea97['subType']===_0x44df7d&&_0x5ccfb3===_0x130edc)return _0xa6ea97;}return null;}_registerTablePropertiesAttributes(){const _0x153ffa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23c499=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x57af3d of _0x23c499){const _0x20eceb=_0x57af3d['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x153ffa['descriptionFactory']['registerAttributeLabel'](_0x57af3d,Bt(this['editor']['locale'],'FORMAT_'+_0x20eceb));}}},on=class extends _0xdaca7a{afterInit(){const _0x2d55bf=this['editor'];if(!_0x2d55bf['plugins']['has']('LineHeight'))return;const _0x1c951e=_0x2d55bf['plugins']['get']('TrackChangesEditing'),_0x377e23=_0x2d55bf['locale'];_0x1c951e['enableDefaultAttributesIntegration']('lineHeight'),_0x1c951e['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x377e23,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0x4b7f4e){return'marker'==_0x4b7f4e['type']&&_0x4b7f4e['name']['startsWith']('$markedRemove');}function ln(_0x2180e1){return _0x2180e1?[_0x2180e1]:[];}var un=class extends _0xdaca7a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x150919,_0xf71396,_0x3496aa,_0x39f60d,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e211f){super(_0x1e211f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3ae0f9,_0x5edf30,_0x50f195,_0x465e3e)=>{this['_model']['change'](()=>{for(const _0x3626fe of[..._0x465e3e,..._0x50f195])this['_model']['markers']['has'](_0x3626fe)&&_0x1e211f['editing']['reconvertMarker'](_0x3626fe);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1e211f['plugins']['get'](_0x150919),this['_suggestionsConversion']=_0x1e211f['plugins']['get'](_0xf71396),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x1e211f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e211f['config']['get']('trackChanges.trackFormatChanges'),_0x1e211f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e211f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0x1e211f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0xbaa794=this['editor'];_0xbaa794['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c588d,{writer:_0x84194e})=>{let _0xcf1b3d='suggestion:'+_0x5c588d['getAttribute']('suggestion-type')+':'+_0x5c588d['getAttribute']('id');return _0x5c588d['getAttribute']('marker-count')&&(_0xcf1b3d+=':'+_0x5c588d['getAttribute']('marker-count')),_0x84194e['createElement']('$marker',{'data-name':_0xcf1b3d});}}),_0xbaa794['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xbaa794['model']['document']['registerPostFixer'](_0x4c201f=>{let _0x441b64=!0x1;const _0x54da50=Array['from'](_0xbaa794['model']['document']['differ']['getChangedMarkers']()),_0x3ded99=new Set();for(const {name:_0x122b67,data:_0x39c207}of _0x54da50){const {group:_0x41c139,type:_0x31ee3e,subType:_0x378b56,id:_0x3ba052}=it(_0x122b67);if('suggestion'!==_0x41c139)continue;const _0x30e7aa=_0x378b56?'suggestion:'+_0x31ee3e+':'+_0x378b56+':'+_0x3ba052:'suggestion:'+_0x31ee3e+':'+_0x3ba052,_0x3a758c=_0xbaa794['model']['markers']['getMarkersGroup'](_0x30e7aa),_0x3abd8b=_0xbaa794['model']['markers']['get'](_0x122b67),_0x21c6c7=this['_suggestions']['get'](_0x3ba052);if(null!=_0x39c207['newRange']){'formatInline'==_0x31ee3e&&(_0x441b64=_0x441b64||fn(_0x39c207['newRange'],_0x122b67,_0x4c201f,_0xbaa794['model']['schema']));const _0x4f4bfb='attribute'==_0x31ee3e&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x378b56)),_0x1b6518='attribute'==_0x31ee3e&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x378b56));if(_0x39c207['newRange']['isCollapsed']||'$graveyard'==_0x39c207['newRange']['root']['rootName']||'formatBlock'==_0x31ee3e&&!En(_0x39c207['newRange'])||_0x4f4bfb&&!En(_0x39c207['newRange'])||_0x1b6518&&Tn(_0x39c207['newRange'])||'deletion'==_0x31ee3e&&Tn(_0x39c207['newRange'])||_0x3abd8b&&_n(_0x3abd8b,_0x3a758c))_0x4c201f['removeMarker'](_0x122b67),_0x441b64=!0x0;else{if(!_0x21c6c7||!_0x21c6c7['isInContent'])continue;if(_0x39c207['newRange']&&_0x39c207['oldRange']&&_0x39c207['newRange']['isEqual'](_0x39c207['oldRange']))continue;_0x3ded99['add'](_0x21c6c7);}}}return _0x3ded99['size']>0x0&&(_0x441b64=!!this['_joinWithAdjacentSuggestions'](_0x3ded99)||_0x441b64),_0x441b64;}),_0xbaa794['model']['document']['registerPostFixer'](_0x48f1c6=>{let _0x5b9314=!0x1;for(const _0x27ef8c of _0xbaa794['model']['document']['differ']['getChanges']())if('insert'==_0x27ef8c['type'])for(const _0x46b914 of this['_suggestions']['values']()){if(_0x46b914['isMultiRange']||!_0x46b914['isInContent'])continue;const _0x24ed7f='formatBlock'==_0x46b914['type'],_0x37a078=this['_getAttributeKey'](_0x46b914),_0x493909=_0x37a078&&this['_suggestionsConversion']['isBlockAttribute'](_0x37a078);if(!_0x24ed7f&&!_0x493909)continue;const _0x26efed=_0x46b914['getFirstRange']();if(_0x26efed['start']['parent']!=_0x26efed['end']['parent']&&!_0x26efed['end']['isAtEnd']){const _0x460c73=_0xbaa794['model']['createPositionAt'](_0x26efed['start']['nodeAfter'],'end'),_0x55f506=_0xbaa794['model']['createRange'](_0x26efed['start'],_0x460c73);_0x48f1c6['updateMarker'](_0x46b914['getFirstMarker'](),{'range':_0x55f506}),_0x5b9314=!0x0;}}return _0x5b9314;}),_0xbaa794['model']['document']['registerPostFixer'](_0x4d5439=>this['_processAttributeChanges'](_0x4d5439)),_0xbaa794['model']['document']['registerPostFixer'](_0x1dacad=>!_0x1dacad['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1dacad)),_0xbaa794['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xbaa794['model']['document']['on']('change:data',(_0x821756,_0x54cf83)=>{if(!_0x54cf83['isLocal']||_0x54cf83['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2022f0=_0xbaa794['model']['document']['differ']['getChanges']();if(0x0==_0x2022f0['length'])return;const _0x32b512=[],_0xefd819=_0x2022f0['filter'](_0x14f471=>'attribute'==_0x14f471['type']),_0x3c3dfe=_0x2022f0['filter'](_0x137a87=>'insert'==_0x137a87['type']&&'$text'!=_0x137a87['name']);for(const _0x3d4143 of _0xefd819)this['_suggestionsConversion']['isRegisteredAttribute'](_0x3d4143['attributeKey'])&&_0x32b512['push']({'key':_0x3d4143['attributeKey'],'newValue':_0x3d4143['attributeNewValue'],'oldValue':_0x3d4143['attributeOldValue'],'range':pn(_0x3d4143['range'],_0xbaa794['model'])});for(const _0x524ca1 of _0x3c3dfe){if('rename'!=_0x524ca1['action']&&'refresh'!=_0x524ca1['action'])continue;const _0x31511e=Ln(_0x524ca1['position']['nodeAfter'],_0xbaa794['model']),_0x27b653=_0x524ca1['before'];'rename'==_0x524ca1['action']&&_0x32b512['push']({'key':an,'newValue':_0x524ca1['name'],'oldValue':_0x27b653['name'],'range':_0x31511e});for(const [_0x2c6c26,_0x4f1064]of _0x27b653['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2c6c26))continue;const _0x29ae65=_0x524ca1['attributes']['get'](_0x2c6c26);_0x4f1064!==_0x29ae65&&_0x32b512['push']({'key':_0x2c6c26,'newValue':_0x29ae65,'oldValue':_0x4f1064,'range':_0x31511e});}for(const [_0x4e1911,_0x3cc827]of _0x524ca1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4e1911)&&(_0x27b653['attributes']['has'](_0x4e1911)||_0x32b512['push']({'key':_0x4e1911,'newValue':_0x3cc827,'oldValue':null,'range':_0x31511e}));}0x0!=_0x32b512['length']&&_0xbaa794['model']['enqueueChange'](_0x54cf83,_0x284294=>{const _0x424b3e=_0x575a49();for(const {range:_0x33be2b,key:_0x3a06cd,oldValue:_0x463a21,newValue:_0x116c71}of _0x32b512)this['markAttributeChange'](_0x33be2b,_0x3a06cd,_0x463a21,_0x116c71,{'groupId':_0x424b3e});this['_reduceExistingSuggestions'](_0x284294,_0x32b512);});},{'priority':'lowest'}),_0xbaa794['model']['markers']['on']('update:suggestion',(_0x2f83bd,_0x4a06b8,_0x5c219f)=>{if(null==_0x5c219f){const {id:_0x5a2557}=it(_0x4a06b8['name']),_0xc63024=this['_suggestions']['get'](_0x5a2557);_0xc63024&&_0xc63024['addMarkerName'](_0x4a06b8['name']);}}),_0xbaa794['model']['document']['on']('change:data',()=>{const _0x5b5dcd=Array['from'](_0xbaa794['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a8753=>'suggestion'===it(_0x2a8753['name'])['group']);if(0x0===_0x5b5dcd['length'])return;_0x5b5dcd['sort']((_0x59d44b,_0x8bfb35)=>{const _0x368673=_0x59d44b['data']['oldRange'],_0x28a0c2=_0x8bfb35['data']['oldRange'];return null===_0x368673&&null===_0x28a0c2?0x0:null===_0x368673&&null!==_0x28a0c2?-0x1:null!==_0x368673&&null===_0x28a0c2?0x1:_0x368673['start']['isBefore'](_0x28a0c2['start'])?-0x1:0x1;});const _0x1d1a4b=new Set(),_0x5203c4=new Set();for(const {name:_0x1860d0,data:_0x3f1f0c}of _0x5b5dcd){const {id:_0x5db041}=it(_0x1860d0);if(null===_0x3f1f0c['oldRange']){const _0x2a23f6=this['_handleNewSuggestionMarker'](_0x1860d0);_0x5203c4['add'](_0x2a23f6);}else{const _0x3875db=this['_suggestions']['get'](_0x5db041);null!==_0x3f1f0c['newRange']||_0x3875db['isInContent']?(_0x1d1a4b['add'](_0x3875db['head']),_0x5203c4['add'](_0x3875db)):this['_removeSuggestion'](_0x3875db);}}_0x5203c4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5203c4);for(const _0x535c7c of _0x1d1a4b)this['fire']('suggestionChanged',_0x535c7c);}),_0xbaa794['model']['on']('applyOperation',(_0x295c94,_0x1aa974)=>{const _0x423b6c=_0x1aa974[0x0];if(!this['_suggestions']['size'])return;if(!_0x423b6c['isDocumentOperation'])return;if(_0x423b6c['batch']['isUndo']||!_0x423b6c['batch']['isLocal'])return;let _0x34e789,_0x16269a;switch(_0x423b6c['type']){case'insert':_0x34e789=_0xbaa794['model']['createPositionAt'](_0x423b6c['position']),_0x16269a=_0x34e789['getShiftedBy'](_0x423b6c['howMany']);break;case'split':_0x34e789=_0xbaa794['model']['createPositionAt'](_0x423b6c['splitPosition']),_0x16269a=_0xbaa794['model']['createPositionAt'](_0x423b6c['moveTargetPosition']);break;case'move':_0x34e789=_0xbaa794['model']['createPositionAt'](_0x423b6c['targetPosition']),_0x16269a=_0x34e789['getShiftedBy'](_0x423b6c['howMany']);break;default:return;}const _0xc732b7=_0xbaa794['model']['createRange'](_0x34e789,_0x16269a);_0xbaa794['model']['change'](()=>{for(const {suggestion:_0x1e8b07,meta:_0x429036}of this['_findSuggestions'](_0xc732b7)){if(_0x1e8b07['isMultiRange'])continue;if('formatInline'==_0x1e8b07['type'])continue;const _0xf52e2c=this['_getAttributeKey'](_0x1e8b07);if(_0xf52e2c&&this['_suggestionsConversion']['isBlockAttribute'](_0xf52e2c)&&'split'!=_0x423b6c['type'])continue;const _0x236fc6=_0x1e8b07['data']&&_0x1e8b07['data']['multipleBlocks'];('formatBlock'!=_0x1e8b07['type']||'split'==_0x423b6c['type']&&!_0x236fc6)&&(_0x429036['containsRangeInObject']||'insertion'==_0x1e8b07['type']&&_0x429036['isOwn']||_0x1e8b07['getFirstRange']()['containsRange'](_0xc732b7)&&this['_breakSuggestionMarker'](_0x1e8b07,_0x34e789,_0x16269a));}});},{'priority':'lowest'}),_0xbaa794['model']['on']('deleteContent',(_0x33c21f,_0x52c27b)=>{const _0x45861c=_0x52c27b[0x0],_0x13ae29=_0x52c27b[0x1];if(_0x13ae29&&_0x13ae29['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x45861c['isCollapsed'])return;const _0x1d6cf5=_0xbaa794['model']['schema'],{start:_0x52c3b0,end:_0x38dc8d}=_0x45861c['getFirstRange'](),_0x43f097=_0x52c3b0['nodeAfter']&&_0x1d6cf5['isLimit'](_0x52c3b0['nodeAfter'])?null:_0x1d6cf5['getNearestSelectionRange'](_0x52c3b0,'forward'),_0x162aa5=_0x38dc8d['nodeBefore']&&_0x1d6cf5['isLimit'](_0x38dc8d['nodeBefore'])?null:_0x1d6cf5['getNearestSelectionRange'](_0x38dc8d,'backward'),_0x2e199e=_0xbaa794['model']['createRange'](_0x43f097?_0x43f097['start']:_0x52c3b0,_0x162aa5?_0x162aa5['end']:_0x38dc8d);_0xbaa794['model']['change'](_0x6b0ebc=>{this['markDeletion'](_0x2e199e);const _0x471561=_0xbaa794['model']['schema']['getNearestSelectionRange'](_0x2e199e['start']);_0x45861c['is']('documentSelection')?_0x6b0ebc['setSelection'](_0x471561):_0x45861c['setTo'](_0x471561);}),_0x33c21f['stop']();},{'priority':_0xba5ef9['normal']+0xa}),_0xbaa794['model']['on']('insertContent',(_0x27e05b,_0x404b1d)=>{const _0x54f376=_0x404b1d[_0x404b1d['length']-0x1];_0x54f376&&_0x54f376['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xbaa794['model']['change'](()=>{let _0x107c45=_0xbaa794['model']['insertContent'](_0x404b1d[0x0],_0x404b1d[0x1],_0x404b1d[0x2],{'forceDefaultExecution':!0x0});if(!_0x107c45)return;_0x27e05b['return']=_0x107c45['clone']();const _0x12ed88=_0x107c45['end']['nodeBefore'],_0x64a3df=_0xbaa794['model']['schema'];_0x12ed88&&_0x64a3df['isBlock'](_0x12ed88)&&!_0x64a3df['isObject'](_0x12ed88)&&(_0x107c45=_0xbaa794['model']['createRange'](_0x107c45['start'],_0xbaa794['model']['createPositionAt'](_0x12ed88,'end'))),this['markInsertion'](_0x107c45);}),_0x27e05b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xbe45f4=new It(_0xbaa794,this['_suggestions']);_0xbaa794['commands']['add']('acceptSuggestion',_0xbe45f4),this['enableCommand']('acceptSuggestion');const _0x5de216=new At(_0xbaa794,this['_suggestions']);_0xbaa794['commands']['add']('discardSuggestion',_0x5de216),this['enableCommand']('discardSuggestion'),_0xbaa794['commands']['add']('acceptAllSuggestions',new St(_0xbaa794,_0xbe45f4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xbaa794['commands']['add']('discardAllSuggestions',new St(_0xbaa794,_0x5de216,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xbaa794['commands']['add']('acceptSelectedSuggestions',new Mt(_0xbaa794,_0xbe45f4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xbaa794['commands']['add']('discardSelectedSuggestions',new Mt(_0xbaa794,_0x5de216,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xdf49cb=_0xbaa794['plugins']['get'](_0x150919);this['listenTo'](_0xdf49cb,'addComment',(_0x51e995,{threadId:_0x7aee34})=>{const _0x8808be=this['_suggestions']['get'](_0x7aee34);_0x8808be&&_0x8808be['commentThread']&&0x1===_0x8808be['commentThread']['length']&&this['_updateSuggestionData'](_0x7aee34,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xdf49cb,'removeComment',(_0x5c8906,{threadId:_0x236b05})=>{const _0x5e5f72=this['_suggestions']['get'](_0x236b05);_0x5e5f72&&_0x5e5f72['commentThread']&&!_0x5e5f72['commentThread']['length']&&this['_updateSuggestionData'](_0x236b05,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x2aa840){const _0x575b56='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0xd3c0f7=0x797b8,_0x435198={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x273f4f(_0x309024){const _0x1406f1=new window['Promise'](_0xe38711=>{_0x309024['once']('ready',_0xe38711);}),_0x1c6177=window['Date']['now'](),_0x179c07=_0x309024['config']['get']('licenseKey');async function _0x25eb28(){let _0x3dc68f,_0x2741c8=null,_0x131376=null;try{return'GPL'==_0x179c07?'NotAllowed':(_0x3dc68f=_0x538b7c(),_0x3dc68f?(_0x3dc68f['usageEndpoint']&&(_0x131376=_0x154664(_0x3dc68f['usageEndpoint'],_0x3dc68f['jti'])),await _0x18eb3f()?_0x3cbfd5()?_0x52e9ae()?'Expired':_0x3b39ac()?('evaluation'==_0x3dc68f['licenseType']&&(_0x2741c8=_0x49d665('EvaluationLimit')),await _0x28ff3b()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x52e9ae(){const _0x4e0322=['evaluation','trial']['includes'](_0x3dc68f['licenseType'])?_0x1c6177/0x3e8:0xe10*_0xd3c0f7;return _0x3dc68f['exp']<_0x4e0322;}function _0x3cbfd5(){const _0x709973=_0x3dc68f['features'];if(!_0x709973)return!0x1;if(_0x709973['includes']('*'))return!0x0;if(_0x709973['includes']('TC'))return!0x0;if(_0x709973['includes']('RTC')){if(_0x479457())return!0x0;if(_0x12a70b()||_0x1e9658())return!0x0;}return!0x1;}function _0x3b39ac(){const _0x4bfcc2=_0x3dc68f['licensedHosts'];if(!_0x4bfcc2||0x0==_0x4bfcc2['length'])return!0x0;const {hostname:_0xc37814}=new URL(window['location']['href']);if(_0x4bfcc2['includes'](_0xc37814))return!0x0;const _0x408742=_0xc37814['split']('.');return _0x4bfcc2['filter'](_0x14e76c=>_0x14e76c['includes']('*'))['map'](_0x28fa3b=>_0x28fa3b['split']('.'))['filter'](_0x2954ab=>_0x2954ab['length']<=_0x408742['length'])['map'](_0x67e64f=>Array(_0x408742['length']-_0x67e64f['length'])['fill']('*'===_0x67e64f[0x0]?'*':'')['concat'](_0x67e64f))['some'](_0x1ee773=>_0x408742['every']((_0x21a047,_0x20b379)=>_0x1ee773[_0x20b379]===_0x21a047||'*'===_0x1ee773[_0x20b379]));}function _0x28ff3b(){return _0x2741c8&&_0x131376?new window['Promise']((_0x18ef6d,_0x279476)=>{_0x2741c8['then'](_0x18ef6d,_0x279476),_0x131376['then'](_0x4763cf=>{'Valid'!=_0x4763cf&&_0x18ef6d(_0x4763cf);},_0x279476);}):_0x2741c8||_0x131376||'Valid';}}function _0x154664(_0x4c0844,_0x4b1d9c){return new window['Promise'](_0x179d47=>{if(_0x3c2a25())return _0x179d47('Valid');_0x114bc6(),_0x309024['decorate']('_sendUsageRequest');let _0x280099=!0x1;const _0x40bc5d=_0x575a49();function _0x4388f6(_0x1a6284){return!!_0x1a6284&&('object'==typeof _0x1a6284||'function'==typeof _0x1a6284)&&'function'==typeof _0x1a6284['then']&&'function'==typeof _0x1a6284['catch'];}function _0x261353(_0xc23469){_0x64514d(_0xc23469)['then'](_0x384dce=>_0x384dce&&'ok'==_0x384dce['status']?_0x29e5c0(_0x335565(_0x40bc5d+_0x4b1d9c))!=_0x384dce['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0xbdcf5=>(_0x35ebe1(),_0xbdcf5),()=>{const _0x47cce6=_0x37a057();return null==_0x47cce6?(_0x35ebe1(),'Valid'):_0x1c6177-_0x47cce6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x179d47)['catch'](()=>{_0x179d47('UsageLimit');});const _0x85b1ee=0x36ee80;function _0x35ebe1(){const _0x15e03c='llct-'+_0x29e5c0(_0x335565(_0x4c0844)),_0x1d2f01=_0x2116c9(_0x29e5c0(window['Math']['ceil'](_0x1c6177/_0x85b1ee)));window['localStorage']['setItem'](_0x15e03c,_0x1d2f01);}function _0x37a057(){const _0x4b8187='llct-'+_0x29e5c0(_0x335565(_0x4c0844)),_0x3f9d3b=window['localStorage']['getItem'](_0x4b8187);return _0x3f9d3b?window['parseInt'](_0x2116c9(_0x3f9d3b),0x10)*_0x85b1ee:null;}function _0x64514d(_0x467abe){return new window['Promise']((_0x3d54c1,_0x1bbee8)=>{_0x467abe['then'](_0x3d54c1,_0x1bbee8),window['setTimeout'](_0x1bbee8,0x1d4c0);});}}_0x309024['on']('_sendUsageRequest',(_0x529b18,_0x5d39a8)=>{if(_0x5d39a8[0x0]!=_0x4c0844)return _0x179d47('UsageLimit');_0x5d39a8[0x1]={..._0x5d39a8[0x1],'requestId':_0x40bc5d};},{'priority':'high'}),_0x309024['on']('_sendUsageRequest',_0x421dbc=>{_0x4388f6(_0x421dbc['return'])&&(_0x280099=!0x0,_0x261353(_0x421dbc['return']));},{'priority':'low'}),_0x1406f1['then'](()=>{_0x280099||_0x179d47('UsageLimit');});});function _0x3c2a25(){return'auto'==_0x309024['editing']['view']['_overlayModeHint'];}function _0x114bc6(){_0x309024['editing']['view']['_overlayModeHint']='auto';}}function _0x49d665(_0x5b1bfd){const _0x479416=[new window['Promise'](_0x2f7b03=>setTimeout(_0x2f7b03,0x93ecc)),_0x1406f1['then'](()=>new window['Promise'](_0x45b98b=>{let _0xac3a34=0x0;_0x309024['model']['on']('applyOperation',(_0x3ccae8,_0x5cf54)=>{_0x5cf54[0x0]['isDocumentOperation']&&_0xac3a34++,0x5e8==_0xac3a34&&(_0x45b98b(),_0x3ccae8['off']());});}))];return window['Promise']['race'](_0x479416)['then'](()=>_0x5b1bfd);}async function _0x319808(){await _0x1406f1,_0x309024['model']['change']=_0x591a7d,_0x309024['model']['enqueueChange']=_0x591a7d,_0x309024['enableReadOnlyMode']('model');}function _0x479457(){return _0x38606e('WebSocketGateway')&&'connected'==_0x3d0123('WebSocketGateway')['state'];}function _0x12a70b(){return _0x38606e('RevisionViewerIntegration');}function _0x1e9658(){return _0x38606e('TrackChangesDataGetter');}function _0x1193e4(_0x580f3e){const _0x57018d=_0x10723f();_0x309024[_0x57018d]='trackChangesLicenseKey'+_0x580f3e,'Valid'!=_0x580f3e&&_0x319808();}function _0x10723f(){const _0x2c66a7=window['String'](window['performance']['now']())['replace']('.','');let _0xf257ea='U';for(let _0x59f2d7=0x0;_0x59f2d7<_0x2c66a7['length'];_0x59f2d7+=0x2){let _0x2f2775=window['parseInt'](_0x2c66a7['substring'](_0x59f2d7,_0x59f2d7+0x2));_0x2f2775>=0x3e&&(_0x2f2775-=0x3e),_0xf257ea+=_0x575b56[_0x2f2775];}return _0xf257ea;}function _0x538b7c(){const _0x38d8d0=_0x179c07['split']('.');if(0x3!=_0x38d8d0['length'])return null;return _0x2a9f7c(_0x38d8d0[0x1]);function _0x2a9f7c(_0x5b4bb5){const _0x41be57=_0x426af2(_0x5b4bb5);return _0x41be57&&_0x4b5f07()?_0x41be57:null;function _0x4b5f07(){const _0x1890bf=_0x41be57['jti'],_0x335695=window['parseInt'](_0x1890bf['substring'](_0x1890bf['length']-0x8),0x10),_0xffd242={..._0x41be57,'jti':_0x1890bf['substring'](0x0,_0x1890bf['length']-0x8)};return delete _0xffd242['vc'],_0x335565(_0xffd242)==_0x335695;}}}async function _0x18eb3f(){let _0x2b4486=!0x0;try{const [_0x385810,_0x15e46b,_0x38a9b9]=_0x179c07['split']('.');return _0x346299(_0x385810),await _0x245604(_0x385810,_0x15e46b,_0x38a9b9),_0x2b4486;}catch{return!0x1;}function _0x346299(_0x4ed0af){const _0x595884=_0x426af2(_0x4ed0af);_0x595884&&'ES256'==_0x595884['alg']||(_0x2b4486=!0x1);}async function _0x245604(_0x1aee6a,_0x110f57,_0x5b005e){const _0x54b1c1=window['Uint8Array']['from'](_0x5ece33(_0x5b005e),_0x58dc89=>_0x58dc89['charCodeAt'](0x0)),_0x559379=new window['TextEncoder']()['encode'](_0x1aee6a+'.'+_0x110f57),_0x116933=window['crypto']['subtle'];if(!_0x116933)return;const _0x15c2f2=await _0x116933['importKey']('jwk',_0x435198,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x116933['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x15c2f2,_0x54b1c1,_0x559379)||(_0x2b4486=!0x1);}}function _0x426af2(_0x53a908){return _0x53a908['startsWith']('ey')?JSON['parse'](_0x5ece33(_0x53a908)):null;}function _0x5ece33(_0x24633e){return window['atob'](_0x24633e['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x335565(_0xf86aee){let _0x2e3bb6=0x1505;function _0x4d9c90(_0x50e19d){for(let _0x308f95=0x0;_0x308f95<_0x50e19d['length'];_0x308f95++){const _0x3bb7df=_0x50e19d['charCodeAt'](_0x308f95);_0x2e3bb6=(_0x2e3bb6<<0x5)+_0x2e3bb6+_0x3bb7df,_0x2e3bb6&=_0x2e3bb6;}}function _0x10a8ab(_0x730930){Array['isArray'](_0x730930)?_0x730930['forEach'](_0x10a8ab):_0x730930&&'object'==typeof _0x730930?Object['entries'](_0x730930)['sort']()['forEach'](([_0x3a5b96,_0x4f7ba8])=>{_0x4d9c90(_0x3a5b96),_0x10a8ab(_0x4f7ba8);}):_0x4d9c90(window['String'](_0x730930));}return _0x10a8ab(_0xf86aee),_0x2e3bb6>>>0x0;}function _0x29e5c0(_0x47d00e){return _0x47d00e['toString'](0x10)['padStart'](0x8,'0');}function _0x2116c9(_0x4d7c73){return _0x4d7c73['split']('')['reverse']()['join']('');}function _0x38606e(_0x26e827){return _0x309024['plugins']['has'](_0x26e827);}function _0x3d0123(_0x14e1d9){return _0x309024['plugins']['get'](_0x14e1d9);}function _0x591a7d(){}_0x1193e4(await _0x25eb28());}_0x273f4f(_0x2aa840['editor']);}(this);}set adapter(_0x1e5250){if(this['_adapter'])throw new _0x4d110d('track-changes-adapter-already-set',this);this['_adapter']=_0x1e5250;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x6a1f5d=!0x1,toJSON:_0x1cd171=!0x1}={}){const _0x3ef373=[];for(const _0x47796f of this['_suggestions']['values']())_0x6a1f5d&&!_0x47796f['isInContent']||_0x3ef373['push'](_0x47796f);return _0x1cd171?_0x3ef373['map'](_0x13bf9e=>_0x13bf9e['toJSON']()):_0x3ef373;}getSuggestion(_0x466c5a){const _0x1d0ac=this['_suggestions']['get'](_0x466c5a);if(!_0x1d0ac)throw new _0x4d110d('track-changes-suggestion-not-found',this);return _0x1d0ac;}hasSuggestion(_0x3d1ab5){return this['_suggestions']['has'](_0x3d1ab5);}addSuggestionData(_0xbdef3b){const {authorId:_0x24b61b,id:_0x4c0808,originalSuggestionId:_0x21712b,attributes:_0x164f3c}=_0xbdef3b,[_0x13b687,_0x4b4499]=_0xbdef3b['type']['split'](':'),_0x18d803=this['_suggestions']['get'](_0x4c0808)||this['_createSuggestion'](_0x13b687,_0x4b4499,_0x4c0808,_0x24b61b,_0x164f3c,_0x21712b);if(this['_addThreadToSuggestion'](_0x18d803),this['_checkSuggestionCorrectness'](_0x18d803,_0x13b687,_0x4b4499||null,_0x24b61b),_0x18d803['createdAt']=_0xbdef3b['createdAt'],_0x18d803['_isDataLoaded']=!0x0,_0x164f3c&&_0x164f3c['@external']){const _0xa179be=_0x164f3c['@external'],_0x5d9cb8=this['_getExternalAuthor'](_0xa179be['authorName']);_0x18d803['authoredAt']=_0xa179be['createdAt'],_0x18d803['author']=_0x5d9cb8;}else _0x18d803['authoredAt']=_0xbdef3b['createdAt'];switch(_0xbdef3b['data']&&(_0x18d803['data']=_0xbdef3b['data']),_0xbdef3b['attributes']&&(_0x18d803['attributes']=_0xbdef3b['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18d803['_saved']=!0x0),this['_suggestionState']['get'](_0x18d803)){case'notReady':this['_suggestionState']['set'](_0x18d803,'dataReady');break;case'markerReady':_0x18d803['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18d803])),this['_refreshSuggestionsChain'](new Set([_0x18d803])),this['_suggestionState']['set'](_0x18d803,'ready'),this['fire']('suggestionLoaded',_0x18d803)):this['_suggestionState']['set'](_0x18d803,'removed');}return _0x18d803;}acceptSuggestion(_0x36b523){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1dcd22 of _0x36b523['getAllAdjacentSuggestions']())_0x1dcd22['accept']();});});}discardSuggestion(_0xea5747){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2c71b1 of _0xea5747['getAllAdjacentSuggestions']())_0x2c71b1['discard']();});});}['enableCommand'](_0x25e12a,_0x2d5648){const _0x54e6e6=this['editor']['commands']['get'](_0x25e12a);if(!_0x54e6e6)throw new _0x4d110d('track-changes-command-not-found',this,{'commandName':_0x25e12a});if(this['_enabledCommands']['has'](_0x54e6e6))throw new _0x4d110d('track-changes-enable-command-twice',this,{'commandName':_0x25e12a});this['_enabledCommands']['add'](_0x54e6e6),_0x2d5648&&_0x54e6e6['on']('execute',(_0x5089e9,_0x442b73)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x442b73['length']>0x0&&_0x442b73[_0x442b73['length']-0x1]&&_0x442b73[_0x442b73['length']-0x1]['forceDefaultExecution']?_0x442b73['pop']():(_0x5089e9['return']=_0x2d5648((..._0x5ab4ad)=>_0x54e6e6['execute'](..._0x5ab4ad,{'forceDefaultExecution':!0x0}),..._0x442b73),_0x5089e9['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x1e737a){let _0x46274f,_0x155483;const _0x509e27=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46274f=_0x1e737a();}catch(_0xec795e){_0x155483=_0xec795e;}return _0x509e27||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x155483&&_0x4d110d['rethrowUnexpectedError'](_0x155483,this),_0x46274f;}markInsertion(_0x264cfa,_0xc56e61=null,_0x7c0f51={}){if(_0x264cfa['isCollapsed'])return null;const _0x148e99=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x7c0f51['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x281f98,meta:_0x26d0d6}of this['_findSuggestions'](_0x264cfa,'insertion'))if(_0x26d0d6['isOwn']){if(!_0x26d0d6['isNextTo']){if(_0x26d0d6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0x281f98,_0x7c0f51))continue;return _0x281f98;}if(bn(_0x281f98,_0x7c0f51))return _0x281f98;this['_breakSuggestionMarker'](_0x281f98,_0x264cfa['start'],_0x264cfa['end']);break;}if(_0xc56e61==_0x281f98['subType']&&bn(_0x281f98,_0x7c0f51)){const _0x58803e=_0x281f98['getFirstRange']();return _0x58803e['start']['isEqual'](_0x264cfa['end'])?this['_setSuggestionRange'](_0x281f98,this['_model']['createRange'](_0x264cfa['start'],_0x58803e['end'])):this['_setSuggestionRange'](_0x281f98,this['_model']['createRange'](_0x58803e['start'],_0x264cfa['end'])),_0x281f98;}}const _0x4498cf=_0x575a49(),_0x535c8a=_0x148e99['id'],_0x4a6ea8=_0xc56e61?'insertion:'+_0xc56e61:'insertion',_0x5ee02b=this['_setSuggestionData']({'id':_0x4498cf,'type':_0x4a6ea8,'createdAt':new Date(),'authorId':_0x535c8a,'attributes':_0x7c0f51});return this['_addSuggestionMarker'](_0x4a6ea8,_0x4498cf,_0x535c8a,_0x264cfa),_0x5ee02b;}markMultiRangeInsertion(_0x266382,_0x19d4ab='multi',_0x50cb85={}){const _0x431118=this['editor']['plugins']['get']('Users')['me'],_0x38b3ff=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x19d4ab,'join');this['_trackingSessionId']&&(_0x50cb85['trackingSessionId']=this['_trackingSessionId']);for(const _0x183293 of this['getSuggestions']())if(_0x183293['author']['id']==_0x431118['id']&&'insertion'==_0x183293['type']&&_0x183293['subType']==_0x19d4ab&&bn(_0x183293,_0x50cb85)&&(_0x38b3ff(_0x183293['getRanges'](),_0x266382)||_0x38b3ff(_0x266382,_0x183293['getRanges']()))){for(const _0x3b1e4c of _0x266382)_0x183293['addRange'](_0x3b1e4c);return _0x183293;}for(const {suggestion:_0x3e3ad8,meta:_0xa48382}of this['_findSuggestions'](_0x266382,'insertion')){if(!_0xa48382['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa48382['containsRangeInObject'])continue;if(!bn(_0x3e3ad8,_0x50cb85))continue;let _0x519991=!0x0;for(const _0x13d5da of _0x3e3ad8['getRanges']())for(const _0x504d56 of _0x266382)if(!_0x13d5da['containsRange'](_0x504d56)){_0x519991=!0x1;break;}if(_0x519991)return _0x3e3ad8;}const _0x292a08=_0x575a49(),_0x3cfa62=_0x431118['id'],_0x59ca2a='insertion:'+_0x19d4ab,_0x59ac9a=this['_setSuggestionData']({'id':_0x292a08,'type':_0x59ca2a,'createdAt':new Date(),'authorId':_0x3cfa62,'attributes':_0x50cb85});for(const _0x421d02 of _0x266382)this['_addSuggestionMarker'](_0x59ca2a,_0x292a08,_0x3cfa62,_0x421d02,wt['getMultiRangeId']());return _0x59ac9a;}markInlineFormat(_0x3ee9fa,_0x2f30a1,_0x53f61e=null,_0xbc7d27={}){if(_0x53f61e=_0x53f61e||mn(_0x2f30a1),_0x3ee9fa['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xbc7d27['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c5d01=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53f61e,'accept');return this['forceDefaultExecution'](()=>_0x1c5d01([_0x3ee9fa],_0x2f30a1,_0xbc7d27)),null;}const _0x6a4aa6=this['editor']['plugins']['get']('Users')['me'],_0x44432f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a897d,meta:_0xb274b2}of this['_findSuggestions'](_0x3ee9fa,'insertion'))_0xb274b2['isOwn']&&!_0xb274b2['isInsideObject']&&_0x44432f['push'](..._0x4a897d['getRanges']());}const _0x4acbf3=function(_0x5c58b5,_0x3c630b){const _0x496904=[];for(const _0x381b89 of _0x3c630b){const _0xefc138=_0x5c58b5['getIntersection'](_0x381b89);_0xefc138&&_0x496904['push'](_0xefc138);}return _0x496904;}(_0x3ee9fa,_0x44432f),_0xba97b=function(_0x15d673,_0x463dd6){const _0x8ac20d=[_0x15d673];for(const _0x497385 of _0x463dd6){let _0x30ffdf=0x0;for(;_0x30ffdf<_0x8ac20d['length'];){const _0x28170b=_0x8ac20d[_0x30ffdf]['getDifference'](_0x497385);_0x8ac20d['splice'](_0x30ffdf,0x1,..._0x28170b),_0x30ffdf+=_0x28170b['length'];}}return _0x8ac20d;}(_0x3ee9fa,_0x44432f);_0x4acbf3['length']&&this['_model']['change'](()=>{for(const _0x57106d of _0x4acbf3){const _0xc43e49=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x53f61e,'accept');this['forceDefaultExecution'](()=>_0xc43e49([_0x57106d],_0x2f30a1,_0xbc7d27));}});for(const _0x3353aa of _0xba97b){let _0x5889a9=null,_0x383478=_0x3353aa['start'],_0x5b301d=_0x3353aa['end'];for(const {suggestion:_0x4f4050,meta:_0x167ca8}of this['_findSuggestions'](_0x3353aa,'formatInline')){if(!_0x167ca8['isOwn'])continue;if(_0x4f4050['subType']!=_0x53f61e)continue;if(!bn(_0x4f4050,_0xbc7d27))continue;const _0x2c5431=_0x4f4050['getFirstRange']();if(_0x2c5431['containsRange'](_0x3353aa,!0x0))return null;_0x383478=_0x383478['isBefore'](_0x2c5431['start'])?_0x383478:_0x2c5431['start'],_0x5b301d=_0x5b301d['isAfter'](_0x2c5431['end'])?_0x5b301d:_0x2c5431['end'],_0x5889a9?_0x2c5431['start']['isBefore'](_0x5889a9['getFirstRange']()['start'])?(_0x5889a9['removeMarkers'](),_0x5889a9=_0x4f4050):_0x4f4050['removeMarkers']():_0x5889a9=_0x4f4050;}const _0x16ae52=this['_model']['createRange'](_0x383478,_0x5b301d);if(_0x5889a9)this['_setSuggestionRange'](_0x5889a9,_0x16ae52);else{const _0x50b293=_0x575a49(),_0x47a487=_0x6a4aa6['id'];this['_setSuggestionData']({'id':_0x50b293,'type':'formatInline:'+_0x53f61e,'data':_0x2f30a1,'createdAt':new Date(),'authorId':_0x47a487,'attributes':_0xbc7d27}),this['_addSuggestionMarker']('formatInline:'+_0x53f61e,_0x50b293,_0x47a487,_0x16ae52);}}return null;}markBlockFormat(_0x3170e4,_0x4c18c8,_0x1b2116=[],_0x28df30=null,_0x3b69e9={}){_0x4c18c8['formatGroupId']||(_0x4c18c8['formatGroupId']=_0x4c18c8['commandName']),_0x4c18c8['multipleBlocks']=_0x3170e4['is']('range'),_0x28df30=_0x28df30||mn(_0x4c18c8);const _0xc12e75=_0x1b2116['map'](_0x16200c=>Ln(_0x16200c,this['_model'])),_0xfb8ad8=_0x3170e4['is']('range')?_0x3170e4:Ln(_0x3170e4,this['_model']);if(this['_trackingSessionId']&&(_0x3b69e9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2789fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28df30,'accept');return this['forceDefaultExecution'](()=>_0x2789fa([_0xfb8ad8],_0x4c18c8,_0x3b69e9)),null;}_0xc12e75['push'](_0xfb8ad8);let _0x15707f=!0x0;for(const _0x46a7b2 of _0xc12e75)if(!this['_rangeIsInLocalUserInsertion'](_0x46a7b2)){_0x15707f=!0x1;break;}if(_0x15707f&&'always'!==this['_trackFormatChanges']){const _0x5de50d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28df30,'accept');return this['forceDefaultExecution'](()=>_0x5de50d([_0xfb8ad8],_0x4c18c8,_0x3b69e9)),null;}let _0x245df8=null,_0x5a289e=_0xfb8ad8['start'],_0x357b57=_0xfb8ad8['end'];for(const {suggestion:_0x717635,meta:_0x4d49de}of this['_findSuggestions'](_0xfb8ad8,'formatBlock')){if(!_0x4d49de['isOwn'])continue;if(_0x4d49de['isNextTo']||_0x4d49de['containsRangeInObject']||_0x4d49de['isInsideObject'])continue;if(_0x717635['data']['formatGroupId']!=_0x4c18c8['formatGroupId'])continue;if(!bn(_0x717635,_0x3b69e9))continue;const _0x11f519=_0x717635['getFirstRange']();if(_0x717635['subType']==_0x28df30){if(_0x11f519['containsRange'](_0xfb8ad8,!0x0))return null;_0x5a289e=_0x5a289e['isBefore'](_0x11f519['start'])?_0x5a289e:_0x11f519['start'],_0x357b57=_0x357b57['isAfter'](_0x11f519['end'])?_0x357b57:_0x11f519['end'],_0x245df8?_0x11f519['start']['isBefore'](_0x245df8['getFirstRange']()['start'])?(_0x245df8['removeMarkers'](),_0x245df8=_0x717635):_0x717635['removeMarkers']():_0x245df8=_0x717635;}else{const _0x356218=_0xfb8ad8['getIntersection'](_0x11f519);this['_cutOutSuggestionMarker'](_0x717635,_0x356218);}}const _0x4bb28c=this['editor']['plugins']['get']('Users')['me'],_0x3c5cd1=_0x575a49(),_0x2072b4=_0x4bb28c['id'];if(_0x245df8)return this['_setSuggestionRange'](_0x245df8,this['_model']['createRange'](_0x5a289e,_0x357b57)),_0x245df8;{const _0x4c8bd2=this['_setSuggestionData']({'id':_0x3c5cd1,'type':'formatBlock:'+_0x28df30,'data':_0x4c18c8,'createdAt':new Date(),'authorId':_0x2072b4,'attributes':_0x3b69e9});return this['_addSuggestionMarker']('formatBlock:'+_0x28df30,_0x3c5cd1,_0x2072b4,this['_model']['createRange'](_0x5a289e,_0x357b57)),_0x4c8bd2;}}markMultiRangeBlockFormat(_0x487309,_0x2b9669,_0x425ed3=[],_0x4d7f7f=null,_0x12fdaa={}){_0x2b9669['formatGroupId']||(_0x2b9669['formatGroupId']=_0x2b9669['commandName']);const _0x50b876=_0x487309[0x0];_0x2b9669['multipleBlocks']=_0x50b876['is']('range'),_0x4d7f7f=_0x4d7f7f||mn(_0x2b9669);const _0xb793d8=_0x425ed3['map'](_0x1dc904=>Ln(_0x1dc904,this['_model'])),_0x11ecbd=_0x50b876['is']('range')?_0x487309:_0x487309['map'](_0x2e2bb2=>Ln(_0x2e2bb2,this['_model']));if(this['_trackingSessionId']&&(_0x12fdaa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x301b86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d7f7f,'accept');return this['forceDefaultExecution'](()=>_0x301b86(_0x11ecbd,_0x2b9669,_0x12fdaa)),null;}_0xb793d8['push'](..._0x11ecbd);let _0x3e2024=!0x0;for(const _0x25ff15 of _0xb793d8)if(!this['_rangeIsInLocalUserInsertion'](_0x25ff15)){_0x3e2024=!0x1;break;}if(_0x3e2024&&'always'!==this['_trackFormatChanges']){const _0xb7aa5a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d7f7f,'accept');return this['forceDefaultExecution'](()=>_0xb7aa5a(_0x11ecbd,_0x2b9669,_0x12fdaa)),null;}const _0x4e7550=this['editor']['plugins']['get']('Users')['me'];for(const _0xd52b68 of this['getSuggestions']()){const _0x5a1845=_0xd52b68['data'];if(_0xd52b68['author']['id']!=_0x4e7550['id'])continue;if('formatBlock'!=_0xd52b68['type']||_0x5a1845['formatGroupId']!=_0x2b9669['formatGroupId'])continue;if(!bn(_0xd52b68,_0x12fdaa))continue;const _0x2dbf75=_0xd52b68['subType']==_0x4d7f7f;for(let _0x3b1f54=0x0;_0x3b1f54<_0x11ecbd['length'];_0x3b1f54++){const _0x2484aa=_0x11ecbd[_0x3b1f54];for(const _0x4f2b8f of _0xd52b68['getMarkers']()){const _0x526fda=_0x4f2b8f['getRange']();if(_0x2484aa['isEqual'](_0x526fda)){_0x2dbf75?(_0x11ecbd['splice'](_0x3b1f54,0x1),_0x3b1f54--):_0xd52b68['removeMarker'](_0x4f2b8f['name']);break;}}}}if(0x0==_0x11ecbd['length'])return null;const _0x4b2126=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4d7f7f,'join');for(const _0x524b13 of this['getSuggestions']()){const _0x1bf264=_0x524b13['data'];if(_0x524b13['author']['id']==_0x4e7550['id']&&('formatBlock'==_0x524b13['type']&&_0x1bf264['formatGroupId']==_0x2b9669['formatGroupId']&&_0x524b13['subType']==_0x4d7f7f&&bn(_0x524b13,_0x12fdaa)&&(_0x4b2126(_0x524b13['getRanges'](),_0x11ecbd)||_0x4b2126(_0x11ecbd,_0x524b13['getRanges']())))){for(const _0x5e6749 of _0x11ecbd)_0x524b13['addRange'](_0x5e6749);return _0x524b13;}}const _0x26bc2a=_0x575a49(),_0x35d9ab=_0x4e7550['id'],_0x3cb359='formatBlock:'+_0x4d7f7f,_0x10c4c7=this['_setSuggestionData']({'id':_0x26bc2a,'type':_0x3cb359,'data':_0x2b9669,'createdAt':new Date(),'authorId':_0x35d9ab,'attributes':_0x12fdaa});for(const _0x304172 of _0x11ecbd)this['_addSuggestionMarker'](_0x3cb359,_0x26bc2a,_0x35d9ab,_0x304172,wt['getMultiRangeId']());return _0x10c4c7;}markDeletion(_0x48a343,_0x31248b=null,_0x489ccd={}){if(_0x48a343['isCollapsed'])return null;const _0x433958=this['editor']['plugins']['get']('Users')['me'],_0x18cd7d=new ct(_0x48a343['start'],_0x48a343['end']);this['_trackingSessionId']&&(_0x489ccd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xffb363,meta:_0x38d1dc}of this['_findSuggestions'](_0x18cd7d,'insertion'))if(_0x38d1dc['isOwn']&&!_0x38d1dc['isNextTo']){if(_0xffb363['isMultiRange']){const _0x2068b7=_0xffb363['getRanges']()['filter'](_0x504879=>'$graveyard'!=_0x504879['root']['rootName']);if(_0x2068b7['every'](_0x5debd6=>_0x18cd7d['containsRange'](_0x5debd6,!0x0))&&_0xffb363['discard'](),_0x2068b7['some'](_0x15077f=>_0x15077f['containsRange'](_0x18cd7d,!0x0))){const _0x56655c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31248b,'accept');return this['forceDefaultExecution'](()=>_0x56655c([_0x18cd7d],null,_0x489ccd)),null;}}else{const _0x2f9d99=_0x18cd7d['getIntersection'](_0xffb363['getFirstRange']());null!==_0x2f9d99&&_0xffb363['_onDiscard']([_0x2f9d99],null,_0x489ccd);}}if(_0x18cd7d['detach'](),_0x18cd7d['isCollapsed']||'$graveyard'==_0x18cd7d['root']['rootName'])return null;let _0x1ba428=null,_0x10fd21=_0x18cd7d['start'],_0x56385b=_0x18cd7d['end'];const _0x3c8443=this['_findSuggestions'](_0x18cd7d,'deletion');for(const {suggestion:_0x2c9073,meta:_0x226064}of _0x3c8443){const _0x1fc1b1=this['_model']['createRange'](_0x10fd21,_0x56385b);if(_0x226064['isOwn']&&(this['_mergeNestedSuggestions']||!_0x226064['containsRangeInObject']&&!_0x226064['isInsideObject'])){if(_0x2c9073['isMultiRange']){if(!bn(_0x2c9073,_0x489ccd))continue;let _0x49fcc0=!0x0;for(const _0x5b5171 of _0x2c9073['getRanges']()){if(_0x5b5171['containsRange'](_0x1fc1b1,!0x0))return _0x2c9073;_0x1fc1b1['containsRange'](_0x5b5171)||(_0x49fcc0=!0x1);}_0x49fcc0&&_0x2c9073['discard']();}else{const _0x4e9dc3=_0x2c9073['getFirstRange']();if(_0x4e9dc3['containsRange'](_0x1fc1b1,!0x0))return _0x2c9073;if(!bn(_0x2c9073,_0x489ccd)){_0x1fc1b1['containsRange'](_0x4e9dc3)?_0x2c9073['removeMarkers']():_0x4e9dc3['containsPosition'](_0x10fd21)?_0x10fd21=_0x4e9dc3['end']:_0x4e9dc3['containsPosition'](_0x56385b)&&(_0x56385b=_0x4e9dc3['start']);continue;}_0x10fd21=_0x10fd21['isBefore'](_0x4e9dc3['start'])?_0x10fd21:_0x4e9dc3['start'],_0x56385b=_0x56385b['isAfter'](_0x4e9dc3['end'])?_0x56385b:_0x4e9dc3['end'],_0x489ccd=Object['assign']({},_0x2c9073['attributes']),_0x1ba428?_0x4e9dc3['start']['isBefore'](_0x1ba428['getFirstRange']()['start'])?(_0x1ba428['removeMarkers'](),_0x1ba428=_0x2c9073):_0x2c9073['removeMarkers']():_0x1ba428=_0x2c9073;}}}if(_0x1ba428)return this['_setSuggestionRange'](_0x1ba428,this['_model']['createRange'](_0x10fd21,_0x56385b)),_0x1ba428;{const _0x54c456=_0x575a49(),_0x27cbf3=this['_model']['createRange'](_0x10fd21,_0x56385b),_0x301aba=_0x433958['id'],_0x62b4c7=_0x31248b?'deletion:'+_0x31248b:'deletion',_0x38fbf5=this['_setSuggestionData']({'id':_0x54c456,'type':_0x62b4c7,'createdAt':new Date(),'authorId':_0x301aba,'attributes':_0x489ccd});return this['_addSuggestionMarker'](_0x62b4c7,_0x54c456,_0x301aba,_0x27cbf3),_0x38fbf5;}}markMultiRangeDeletion(_0x82fa1e,_0x350dbf='multi',_0x24891d={}){const _0x7a105=this['editor']['plugins']['get']('Users')['me'],_0x553a66=_0x82fa1e['map'](_0x5b6677=>new ct(_0x5b6677['start'],_0x5b6677['end'])),_0x18457a=new Set();this['_trackingSessionId']&&(_0x24891d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x381fb5,meta:_0x16a3bc}of this['_findSuggestions'](_0x553a66,'insertion'))_0x16a3bc['isOwn']&&!_0x16a3bc['isNextTo']&&_0x18457a['add'](_0x381fb5);for(const _0x5b7694 of _0x18457a)if(_0x5b7694['isMultiRange']){const _0x4ff07d=_0x5b7694['getRanges']();if(_0x5b7694['attributes']&&_0x5b7694['attributes']['skipNestingCheck']||_0x4ff07d['every'](_0x55d042=>_0x553a66['some'](_0x3cafe5=>_0x3cafe5['containsRange'](_0x55d042,!0x0)))&&_0x5b7694['discard'](),_0x553a66['every'](_0x4aadae=>_0x4ff07d['some'](_0x49c935=>_0x49c935['containsRange'](_0x4aadae,!0x0)))){const _0x832b48=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x350dbf,'accept');return this['forceDefaultExecution'](()=>_0x832b48(_0x82fa1e,null,_0x24891d)),null;}}else{const _0x3fe37a=_0x5b7694['getFirstRange']();if(_0x553a66['some'](_0x22b3ed=>_0x22b3ed['containsRange'](_0x3fe37a,!0x0))&&_0x5b7694['discard'](),_0x553a66['every'](_0x2f2bc1=>_0x3fe37a['containsRange'](_0x2f2bc1,!0x0))){const _0x19d2b5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x350dbf,'accept');return this['forceDefaultExecution'](()=>_0x19d2b5(_0x553a66,null,_0x24891d)),null;}}const _0x413523=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x350dbf,'join');let _0x425217=null;for(const _0x1317b0 of this['getSuggestions']())if(_0x1317b0['author']['id']==_0x7a105['id']&&_0x1317b0['isInContent']&&'deletion'==_0x1317b0['type']&&_0x1317b0['subType']==_0x350dbf&&bn(_0x1317b0,_0x24891d)&&(_0x413523(_0x1317b0['getRanges'](),_0x553a66)||_0x413523(_0x553a66,_0x1317b0['getRanges']()))){if(_0x425217){if(_0x1317b0['commentThread']&&_0x1317b0['commentThread']['length'])continue;for(const _0x3a06e2 of _0x1317b0['getRanges']())_0x425217['isIntersectingWithRange'](_0x3a06e2)||_0x425217['addRange'](_0x3a06e2);_0x1317b0['removeMarkers']();}else{_0x425217=_0x1317b0;for(const _0x395e20 of _0x553a66)_0x1317b0['isIntersectingWithRange'](_0x395e20)||_0x1317b0['addRange'](_0x395e20);}}if(_0x425217)return _0x425217;_0x18457a['clear']();for(const {suggestion:_0x1a143b,meta:_0x285e8e}of this['_findSuggestions'](_0x553a66,'deletion'))_0x285e8e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x285e8e['containsRangeInObject']&&!_0x285e8e['isInsideObject'])&&bn(_0x1a143b,_0x24891d)&&_0x18457a['add'](_0x1a143b);for(const _0x4f4ba2 of _0x18457a){const _0x34f6c3=_0x4f4ba2['getRanges']();if((!_0x24891d||!_0x24891d['skipNestingCheck'])&&_0x553a66['every'](_0xdef0b7=>_0x34f6c3['some'](_0x2d7e98=>_0x2d7e98['containsRange'](_0xdef0b7,!0x0))))return _0x4f4ba2;_0x4f4ba2['attributes']&&_0x4f4ba2['attributes']['skipNestingCheck']||_0x34f6c3['every'](_0x3d7186=>_0x553a66['some'](_0x260d7b=>_0x260d7b['containsRange'](_0x3d7186,!0x0)))&&_0x4f4ba2['discard']();}const _0x4c8c76=_0x575a49(),_0x51ddcc=_0x7a105['id'],_0x188fb6='deletion:'+_0x350dbf,_0x4c5fc8=this['_setSuggestionData']({'id':_0x4c8c76,'type':_0x188fb6,'createdAt':new Date(),'authorId':_0x51ddcc,'attributes':_0x24891d});for(const _0x4571a6 of _0x553a66)_0x4571a6['detach'](),_0x4571a6['isCollapsed']||'$graveyard'==_0x4571a6['root']['rootName']||this['_addSuggestionMarker'](_0x188fb6,_0x4c8c76,_0x51ddcc,_0x4571a6,wt['getMultiRangeId']());return _0x4c5fc8;}markAttributeChange(_0x1267fb,_0x24d1e1,_0x590dcf,_0x2f3d2a,_0xda2f69){if(_0x1267fb['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x26677c=this['editor']['plugins']['get']('Users')['me']['id'],_0x27e26d=Array['from'](this['_suggestions']['values']())['filter'](_0x2fcf18=>'attribute'==_0x2fcf18['type']&&_0x2fcf18['data']['key']==_0x24d1e1&&_0x2fcf18['isIntersectingWithRange'](_0x1267fb));if(this['_trackingSessionId']&&(_0xda2f69['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2c11a1=this['_findSuggestions'](_0x1267fb,'insertion')['filter'](({meta:_0x5ee0dd})=>_0x5ee0dd['isOwn']&&!_0x5ee0dd['isInsideObject']&&!_0x5ee0dd['isNextTo'])['map'](({suggestion:_0x172955})=>_0x172955);_0x27e26d['unshift'](..._0x2c11a1);}const _0x4be410=new Map([[_0x1267fb,_0x590dcf]]);for(const _0x3c5d87 of _0x27e26d){const _0x8bd890='attribute'==_0x3c5d87['type']?_0x3c5d87['data']['oldValue']:void 0x0,_0x4ffcba=_0x3c5d87['getFirstRange'](),_0x3336a0=Array['from'](_0x4be410['keys']())['find'](_0x3869d8=>_0x3869d8['isIntersecting'](_0x4ffcba));if(!_0x3336a0)continue;const _0x2264d1=_0x3336a0['getDifference'](_0x4ffcba);this['_suggestionsConversion']['isBlockAttribute'](_0x24d1e1)&&'insertion'==_0x3c5d87['type']&&0x0!=_0x2264d1['length']||(_0x4be410['delete'](_0x3336a0),_0x2264d1['forEach'](_0x14a8b6=>{_0x4be410['set'](_0x14a8b6,_0x590dcf);}),'insertion'!=_0x3c5d87['type']&&_0x8bd890!=_0x2f3d2a&&_0x4be410['set'](_0x3336a0['getIntersection'](_0x4ffcba),_0x8bd890));}const _0x2bb816=[];for(const [_0x221d01,_0x4a1fc4]of _0x4be410){const _0x1cc643=_0x575a49(),_0x5781be={'key':_0x24d1e1,'oldValue':_0x4a1fc4,'newValue':_0x2f3d2a};_0x24d1e1['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':_0x24d1e1});const _0x5f2e38=('attribute:'+_0x24d1e1+'|'+mn({'newValue':_0x2f3d2a}))['substring'](0x0,0x3c),_0x31bede=this['_setSuggestionData']({'id':_0x1cc643,'type':_0x5f2e38,'data':_0x5781be,'createdAt':new Date(),'authorId':_0x26677c,'attributes':_0xda2f69});_0x2bb816['push'](_0x31bede),this['_addSuggestionMarker'](_0x5f2e38,_0x1cc643,_0x26677c,_0x221d01);}return _0x2bb816;}enableDefaultAttributesIntegration(_0x4feb68){this['enableCommand'](_0x4feb68,(_0x5a9182,..._0x2f7485)=>{this['recordAttributeChanges'](()=>{_0x5a9182(..._0x2f7485);});});}startTrackingSession(_0x1632a8){return this['_trackingSessionId']=void 0x0!==_0x1632a8?_0x1632a8:_0x575a49(),this['_trackingSessionId'];}_getAttributeKey(_0x521ab8){return'attribute'==_0x521ab8['type']?kn(_0x521ab8['subType']):null;}_applyOperationsAsSuggestions(_0x2cef14){if(0x0==_0x2cef14['length'])return;const _0x4ec1e8=this['editor'],_0x483307=[],_0x118aef=_0x273cc2=>{const _0x1e7db6=_0x273cc2['_aiSource'];return _0x1e7db6?{'@ai':{'type':_0x1e7db6}}:{};},_0x301917=(_0x33b03d,_0x189d69,_0x75c90d,_0x45eddf)=>{const _0x36fba5=new Set(_0x45eddf['flatMap'](_0x276ff6=>_0x276ff6['getMarkerNames']()));let _0x524563=!0x1;for(let _0x593010=_0x189d69;_0x593010<_0x33b03d['operations']['length'];_0x593010++){const _0x15fced=_0x33b03d['operations'][_0x593010];if('marker'==_0x15fced['type']){if(!_0x36fba5['has'](_0x15fced['name']))continue;_0x524563=!0x0;}_0x15fced['_aiSource']=_0x75c90d;}return _0x524563;};_0x4ec1e8['model']['change'](_0x4757e5=>{for(let _0x1f5cdd=0x0;_0x1f5cdd<_0x2cef14['length'];_0x1f5cdd++){const _0x5f3458=_0x2cef14[_0x1f5cdd],_0x16515f=_0x5f3458['_aiSource'];if(_0x5f3458['baseVersion']=_0x4ec1e8['model']['document']['version'],_0x5f3458['isDocumentOperation']=!0x0,tt(_0x5f3458))continue;if(cn(_0x5f3458)){const _0x6cded8=_0x395e9e(_0x5f3458['newRange'],_0x4ec1e8['model']);_0x483307['unshift']({'range':ct['fromRange'](_0x6cded8),'operation':_0x5f3458});continue;}const _0x27a7fa=_0x4757e5['batch']['operations']['length']+0x1;let _0x1465b7=[];switch(_0x5f3458['type']){case'rename':{const _0xce0967=_0x5f3458['oldName'],_0x1ffbf1=_0x5f3458['newName'];if(_0xce0967==_0x1ffbf1)break;_0x4757e5['batch']['addOperation'](_0x5f3458),_0x4ec1e8['model']['applyOperation'](_0x5f3458);const _0x52624a='$elementName',_0x559710=_0x5f3458['position'],_0x59e599=_0x4ec1e8['model']['createRange'](_0x559710,_0x4ec1e8['model']['createPositionAt'](_0x559710['nodeAfter'],'end'));_0x1465b7=this['markAttributeChange'](_0x59e599,_0x52624a,_0xce0967,_0x1ffbf1,{..._0x118aef(_0x5f3458),'groupId':_0x575a49()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x38762f=_0x5f3458['oldValue'],_0x4ac212=_0x5f3458['newValue'];if(_0x38762f==_0x4ac212)break;_0x4757e5['batch']['addOperation'](_0x5f3458),_0x4ec1e8['model']['applyOperation'](_0x5f3458);const _0xe97459=_0x5f3458['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0xe97459))break;const _0x13f51c=_0x395e9e(_0x5f3458['range'],_0x4ec1e8['model']);_0x1465b7=this['markAttributeChange'](_0x13f51c,_0xe97459,_0x38762f,_0x4ac212,{..._0x118aef(_0x5f3458),'groupId':_0x575a49()});break;}case'insert':{if(_0x4757e5['batch']['addOperation'](_0x5f3458),_0x4ec1e8['model']['applyOperation'](_0x5f3458),_0x2cef14[_0x1f5cdd+0x1]&&'move'==_0x2cef14[_0x1f5cdd+0x1]['type'])break;const _0x496dba=_0x5f3458['position'],_0xa2533e=_0x5f3458['howMany'],_0x3d0e0f=_0x395e9e(_0x4ec1e8['model']['createRange'](_0x496dba,_0x496dba['getShiftedBy'](_0xa2533e)),_0x4ec1e8['model']);_0x1465b7=ln(this['markInsertion'](_0x3d0e0f,null,{..._0x118aef(_0x5f3458)}));break;}case'split':{_0x4757e5['batch']['addOperation'](_0x5f3458),_0x4ec1e8['model']['applyOperation'](_0x5f3458);const _0x24e903=_0x5f3458['splitPosition'],_0x36a39d=_0x5f3458['moveTargetPosition'],_0x30210e=_0x4ec1e8['model']['createRange'](_0x24e903,_0x36a39d);_0x1465b7=ln(this['markInsertion'](_0x30210e,null,{..._0x118aef(_0x5f3458)}));break;}case'move':case'remove':_0x4757e5['batch']['addOperation'](_0x5f3458),_0x4ec1e8['model']['applyOperation'](_0x5f3458);}_0x16515f&&_0x301917(_0x4757e5['batch'],_0x27a7fa,_0x16515f,_0x1465b7)&&delete _0x5f3458['_aiSource'];}for(const {range:_0x499515,operation:_0x450474}of _0x483307){const _0x5e24f4=_0x450474['_aiSource'],_0x18c644=_0x118aef(_0x450474),_0xc5b696=_0x4757e5['batch']['operations']['length'];_0x499515['detach']();const _0x288f18=this['markDeletion'](_0x499515,null,{..._0x18c644});_0x5e24f4&&_0x301917(_0x4757e5['batch'],_0xc5b696,_0x5e24f4,ln(_0x288f18));}});}_setSuggestionRange(_0x577ad7,_0x353e3f){const _0x2da4cf=_0x577ad7['getFirstMarker']();this['_model']['change'](_0xe45420=>{_0xe45420['updateMarker'](_0x2da4cf,{'range':_0x353e3f});});}_addThreadToSuggestion(_0x4d7933){const _0x1e4066=_0x4d7933['id'],_0x57b13b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1e4066)||this['_commentsRepository']['addCommentThread']({'channelId':_0x57b13b,'threadId':_0x1e4066,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x39e952=this['_commentsRepository']['getCommentThread'](_0x1e4066);_0x39e952['unbind']('isRemovable'),_0x39e952['isRemovable']=!0x1,_0x4d7933['commentThread']=_0x39e952;}_checkSuggestionCorrectness(_0x366ef3,_0x569b2b,_0x1addf4,_0xe9c001){if(_0x366ef3['type']!=_0x569b2b||_0x366ef3['subType']!=_0x1addf4||_0x366ef3['creator']['id']!=_0xe9c001)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4d110d('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x2bcac3,_0x11ebd0){const _0x28b0b1=_0x2bcac3['getFirstRange']();if(_0x11ebd0['isEqual'](_0x28b0b1))_0x2bcac3['removeMarkers']();else{if(_0x28b0b1['containsRange'](_0x11ebd0)){const _0x32003c=this['_model']['createPositionAt'](_0x11ebd0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bcac3,this['_model']['createRange'](_0x28b0b1['start'],_0x32003c));const _0x3fe664=_0x575a49(),_0x56f98b=_0x2bcac3['creator']['id'],_0x13863b=_0x2bcac3['type']+':'+_0x2bcac3['subType'];this['_setSuggestionData']({'id':_0x3fe664,'type':_0x13863b,'createdAt':new Date(),'authorId':_0x56f98b,'data':_0x2bcac3['data'],'attributes':_0x2bcac3['attributes']});const _0x3e650c=this['_model']['createPositionAt'](_0x11ebd0['end']['parent'],'after'),_0x57d460=this['_model']['createRange'](_0x3e650c,_0x28b0b1['end']);this['_addSuggestionMarker'](_0x13863b,_0x3fe664,_0x56f98b,_0x57d460);}else{if(_0x28b0b1['containsPosition'](_0x11ebd0['start'])){const _0x560736=this['_model']['createPositionAt'](_0x11ebd0['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2bcac3,this['_model']['createRange'](_0x28b0b1['start'],_0x560736));}else{const _0x395695=this['_model']['createPositionAt'](_0x11ebd0['end']['parent'],'after');this['_setSuggestionRange'](_0x2bcac3,this['_model']['createRange'](_0x395695,_0x28b0b1['end']));}}}}_rangeIsInLocalUserInsertion(_0x537f40){for(const {suggestion:_0xa0f206,meta:_0x33a5ed}of this['_findSuggestions'](_0x537f40,'insertion')){if(!_0x33a5ed['isOwn'])continue;const _0x53a3a5=_0xa0f206['getRanges']();for(const _0x3d5ef2 of _0x53a3a5)if(!_0x537f40['getDifference'](_0x3d5ef2)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x54341e){return this['editor']['plugins']['get']('Users')['getUser'](_0x54341e);}_getExternalAuthor(_0x480027){const _0x28cdb6=this['editor']['plugins']['get']('Users'),_0x691069=_0x192d09('external:'+_0x480027),_0x26e6be=_0x28cdb6['getUser'](_0x691069);return _0x26e6be||_0x28cdb6['addUser']({'id':_0x691069,'name':_0x480027});}_createSuggestion(_0x50f6a8,_0x159d98,_0x56e3c6,_0x594ca7,_0x35e11e,_0x4703af){const _0x3ef3b3=this['_getAuthorFromId'](_0x594ca7);if(!_0x3ef3b3)throw new _0x4d110d('track-changes-user-not-found',this,{'authorId':_0x594ca7,'suggestionId':_0x56e3c6});const _0x4f3463=this['_suggestionFactory']['buildSuggestion'](_0x50f6a8,_0x159d98,_0x56e3c6,_0x3ef3b3,_0x35e11e,_0x543d75=>{this['_updateSuggestionData'](_0x56e3c6,{'attributes':_0x543d75});const _0x2b6a74=this['getSuggestion'](_0x56e3c6);this['_joinWithAdjacentSuggestions'](new Set([_0x2b6a74])),this['_refreshSuggestionsChain'](new Set([_0x2b6a74]));},_0x4703af);return this['listenTo'](_0x4f3463,'accept',()=>{this['_updateSuggestionData'](_0x56e3c6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f3463,'discard',()=>{this['_updateSuggestionData'](_0x56e3c6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56e3c6,_0x4f3463),this['_suggestionState']['set'](_0x4f3463,'notReady'),_0x4f3463;}_breakSuggestionMarker(_0xc6f2f9,_0x52703e,_0x148df0){const _0x36a7c7=_0xc6f2f9['getFirstRange'](),_0x151def=_0x36a7c7['start'],_0x37645f=_0x36a7c7['end'];this['_setSuggestionRange'](_0xc6f2f9,this['_model']['createRange'](_0x151def,_0x52703e));const _0xfc8e84=_0x575a49(),_0x397df0=_0xc6f2f9['creator']['id'],_0x2e2f44=_0xc6f2f9['type']+(_0xc6f2f9['subType']?':'+_0xc6f2f9['subType']:'');this['_setSuggestionData']({'id':_0xfc8e84,'type':_0x2e2f44,'createdAt':new Date(),'authorId':_0x397df0,'originalSuggestionId':_0xc6f2f9['_originalSuggestionId']||_0xc6f2f9['id'],'attributes':_0xc6f2f9['attributes'],'data':_0xc6f2f9['data']});const _0x3922c2=this['_getAttributeKey'](_0xc6f2f9);('formatBlock'==_0xc6f2f9['type']||_0x3922c2&&this['_suggestionsConversion']['isBlockAttribute'](_0x3922c2))&&(_0x148df0=this['_model']['createPositionBefore'](_0x148df0['parent'])),this['_addSuggestionMarker'](_0x2e2f44,_0xfc8e84,_0x397df0,this['_model']['createRange'](_0x148df0,_0x37645f));}_findSuggestions(_0x31e30e,_0xb7c94=null){const _0x408782=[],_0x40a1b9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x31e30e)||(_0x31e30e=[_0x31e30e]);for(const _0x3b7e73 of this['getSuggestions']()){if(!_0x3b7e73['isInContent'])continue;if(_0xb7c94&&_0x3b7e73['type']!=_0xb7c94)continue;let _0x3004b7=!0x1;for(const _0x4e02f3 of _0x3b7e73['getRanges']()){for(const _0x156e8e of _0x31e30e){const _0x1f66e6=_0x156e8e['start']['isEqual'](_0x4e02f3['end'])||_0x156e8e['end']['isEqual'](_0x4e02f3['start']);if(_0x1f66e6||_0x156e8e['getIntersection'](_0x4e02f3)){const _0x614b6a=_0x156e8e['containsRange'](_0x4e02f3)&&hn(this['_model']['schema'],_0x4e02f3['start'],_0x156e8e),_0x29fa18=_0x4e02f3['containsRange'](_0x156e8e)&&hn(this['_model']['schema'],_0x156e8e['start'],_0x4e02f3);_0x408782['push']({'suggestion':_0x3b7e73,'meta':{'isOwn':_0x40a1b9==_0x3b7e73['author'],'isNextTo':_0x1f66e6,'isInsideObject':_0x614b6a,'containsRangeInObject':_0x29fa18}}),_0x3004b7=!0x0;break;}}if(_0x3004b7)break;}}return _0x408782;}_addSuggestionMarker(_0x33fdea,_0x229a0f,_0x1ea895,_0x6b4a4d,_0x163958){this['_model']['change'](_0x371497=>{let _0x297f16='suggestion:'+_0x33fdea+':'+_0x229a0f+':'+_0x1ea895;_0x163958&&(_0x297f16=_0x297f16+':'+_0x163958),_0x371497['addMarker'](_0x297f16,{'range':_0x6b4a4d,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x502a94){const _0xe82f2e=_0x502a94['previous'],_0x9a2656=_0x502a94['next'];_0x502a94['previous']=null,_0x502a94['next']=null,null!=_0xe82f2e&&_0xe82f2e['next']==_0x502a94&&(_0xe82f2e['next']=_0x9a2656),null!=_0x9a2656&&_0x9a2656['previous']==_0x502a94&&(_0x9a2656['previous']=_0xe82f2e),'ready'==this['_suggestionState']['get'](_0x502a94)&&(this['_suggestionState']['set'](_0x502a94,'removed'),this['fire']('suggestionUnloaded',_0x502a94,_0xe82f2e,_0x9a2656));}_setSuggestionData(_0x2a1e5c){const _0x497390=_0x2a1e5c['id'],_0x298f99=this['addSuggestionData'](_0x2a1e5c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a0973=this['editor']['plugins']['get']('PendingActions'),_0x4a3697=_0x298f99['hasComments'],_0x4a1f58=_0x298f99['subType']?_0x298f99['type']+':'+_0x298f99['subType']:_0x298f99['type'],_0x32c39c=this['editor']['locale'],_0x221476=_0x2a0973['add'](Bt(_0x32c39c,'PENDING_ACTION_SUGGESTION')),_0x51d727={'id':_0x497390,'type':_0x4a1f58,'hasComments':_0x4a3697,'data':_0x2a1e5c['data']||null,'originalSuggestionId':_0x2a1e5c['originalSuggestionId']||null,'attributes':_0x298f99['attributes']};this['_adapter']['addSuggestion'](_0x51d727)['then'](_0x1439fa=>{_0x298f99['_saved']=!0x0,_0x2a0973['remove'](_0x221476),_0x1439fa&&_0x1439fa['createdAt']&&(this['_suggestions']['get'](_0x497390)['createdAt']=_0x1439fa['createdAt']);})['catch'](_0x467943=>{throw _0x2cdc9d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x298f99['discard']();}),_0x298f99['stopListening'](),this['_suggestions']['delete'](_0x298f99['id']),this['_suggestionState']['delete'](_0x298f99),_0x467943;});}return _0x298f99;}_updateSuggestionData(_0x3e93f5,_0x25e098){const _0x362df3=this['editor']['plugins']['get']('PendingActions'),_0x296d4f=this['getSuggestion'](_0x3e93f5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x296d4f['_saved']){const _0x3c4e88=_0x362df3['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3e93f5,_0x25e098)['then'](()=>{_0x362df3['remove'](_0x3c4e88);});}else _0x296d4f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3e93f5,_0x25e098);});}}_getSuggestionData(_0x1741a1){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4d110d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1741a1);}_handleNewSuggestionMarker(_0x1602e7){const {id:_0x2e1e9e,type:_0x3a992f,subType:_0x3ee867,authorId:_0x56c166}=it(_0x1602e7),_0x75038f=this['_suggestions']['get'](_0x2e1e9e)||this['_createSuggestion'](_0x3a992f,_0x3ee867,_0x2e1e9e,_0x56c166,{});switch(this['_checkSuggestionCorrectness'](_0x75038f,_0x3a992f,_0x3ee867,_0x56c166),this['_suggestionState']['get'](_0x75038f)){case'notReady':this['_getSuggestionData'](_0x2e1e9e)['then'](_0x336e4b=>{let _0x103e82=Promise['resolve']();_0x336e4b['hasComments']&&(_0x103e82=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e1e9e})),_0x103e82['then'](()=>{this['addSuggestionData'](_0x336e4b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x75038f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e1e9e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x75038f,'ready'),this['fire']('suggestionLoaded',_0x75038f);break;case'ready':this['fire']('suggestionChanged',_0x75038f);}return _0x75038f['addMarkerName'](_0x1602e7),_0x75038f;}_refreshSuggestionsChain(_0x1911c9){const _0xc592f8=Array['from'](_0x1911c9),_0x48bf13=_0xc592f8['filter'](_0x4992a5=>'attribute'==_0x4992a5['type']);this['_refreshAttributeSuggestionsChain'](_0x48bf13);const _0x281ff9=_0xc592f8['filter'](_0x568dc2=>!_0x568dc2['isMultiRange']&&'attribute'!=_0x568dc2['type']),_0x14a63d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b9782=>!_0x1b9782['isMultiRange']&&'attribute'!=_0x1b9782['type']),_0x366847=_0x14a63d['filter'](_0xafaad3=>!_0x1911c9['has'](_0xafaad3)),_0x193de7=new Map(_0x14a63d['map'](_0x384c45=>[_0x384c45,this['_suggestionFactory']['getSuggestionCallback'](_0x384c45['type'],_0x384c45['subType'],'chain')])),_0x211442=new Map(_0x14a63d['map'](_0x415609=>[_0x415609,_0x415609['getFirstRange']()])),_0x4221ab=new Set(),_0xfc913e=new Set();for(let _0x2d2097=0x0;_0x2d2097<_0x281ff9['length'];_0x2d2097++)_0x2e0aa9(_0x281ff9[_0x2d2097],_0x281ff9,_0x2d2097+0x1);for(let _0x12ff80=0x0;_0x12ff80<_0x281ff9['length'];_0x12ff80++)_0x2e0aa9(_0x281ff9[_0x12ff80],_0x366847,0x0);const _0xd6a437=new Set();for(let _0x114977=0x0;_0x114977<_0x281ff9['length'];_0x114977++){const _0x263192=_0x281ff9[_0x114977];!_0xfc913e['has'](_0x263192)&&_0x263192['previous']&&(_0xd6a437['add'](_0x263192['previous']),_0x263192['previous']['next']===_0x263192&&(_0x263192['previous']['next']=null),_0x263192['previous']=null),!_0x4221ab['has'](_0x263192)&&_0x263192['next']&&(_0xd6a437['add'](_0x263192['next']),_0x263192['next']['previous']===_0x263192&&(_0x263192['next']['previous']=null),_0x263192['next']=null);}function _0x2e0aa9(_0x4e21f5,_0x468292,_0x15c644){for(let _0xf7f32c=_0x15c644;_0xf7f32c<_0x468292['length'];_0xf7f32c++){const _0x3bc95a=_0x42af88(_0x4e21f5,_0x468292[_0xf7f32c]);_0x3bc95a&&(_0x3bc95a[0x0]['next']=_0x3bc95a[0x1],_0x3bc95a[0x1]['previous']=_0x3bc95a[0x0],_0x4221ab['add'](_0x3bc95a[0x0]),_0xfc913e['add'](_0x3bc95a[0x1]));}}function _0x42af88(_0x3beafa,_0x53153d){if(_0x3beafa['author']['id']!==_0x53153d['author']['id'])return null;const _0x34826b=_0x193de7['get'](_0x3beafa)(_0x3beafa,_0x53153d,_0x211442['get'](_0x3beafa),_0x211442['get'](_0x53153d));return _0x34826b&&_0x193de7['get'](_0x53153d)(_0x3beafa,_0x53153d,_0x211442['get'](_0x3beafa),_0x211442['get'](_0x53153d))?_0x34826b[0x1]['commentThread']&&_0x34826b[0x1]['commentThread']['length']?null:_0x34826b:null;}_0xd6a437['size']&&this['_refreshSuggestionsChain'](_0xd6a437);}_refreshAttributeSuggestionsChain(_0x283331){if(0x0==_0x283331['length'])return;const _0x3c5f92=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b7cec=>'attribute'==_0x3b7cec['type']&&_0x3b7cec['_isDataLoaded']),_0x214180=[],_0x85910a=new Map();for(const _0xf1056a of _0x3c5f92){const _0x1f99d3=_0x192d09(_0xf1056a['attributes']);_0x85910a['has'](_0x1f99d3)||(_0x85910a['set'](_0x1f99d3,_0x214180['length']),_0x214180['push']([])),_0x214180[_0x85910a['get'](_0x1f99d3)]['push'](_0xf1056a);}!(function(){_0x214180['sort']((_0x496954,_0x282d49)=>{const _0x1ff466=_0x496954[0x0]['createdAt'],_0x23bc1a=_0x282d49[0x0]['createdAt'];return _0x1ff466==_0x23bc1a?_0x496954[0x0]['attributes']['groupId']<_0x282d49[0x0]['attributes']['groupId']?-0x1:0x1:_0x1ff466<_0x23bc1a?-0x1:0x1;});for(const _0x26de0a of _0x214180)_0x26de0a['sort']((_0x40de34,_0x1d7eb5)=>_0x40de34['id']<_0x1d7eb5['id']?-0x1:0x1);}());for(let _0x2db65c=0x0;_0x2db65c<_0x214180['length'];_0x2db65c++){if(0x0==_0x214180[_0x2db65c]['length'])continue;const _0x2a6845=[];for(let _0x18db62=_0x2db65c+0x1;_0x18db62<_0x214180['length'];_0x18db62++)0x0!=_0x214180[_0x18db62]['length']&&_0x5b4119(_0x214180[_0x2db65c],_0x214180[_0x18db62])&&_0x2a6845['push'](_0x18db62);for(const _0xa2c46f of _0x2a6845)_0x214180[_0x2db65c]=_0x214180[_0x2db65c]['concat'](_0x214180[_0xa2c46f]),_0x214180[_0xa2c46f]=[];}for(const _0x31c4cf of _0x214180)for(let _0x4cb21c=0x0;_0x4cb21c<_0x31c4cf['length'];_0x4cb21c++){const _0x21d4bc=_0x31c4cf[_0x4cb21c+0x1]||null;_0x31c4cf[_0x4cb21c]['next']!==_0x21d4bc&&(_0x31c4cf[_0x4cb21c]['next']=_0x21d4bc);}for(const _0x2f5984 of _0x214180)for(let _0x4a0f1b=0x0;_0x4a0f1b<_0x2f5984['length'];_0x4a0f1b++){const _0x440b0a=_0x2f5984[_0x4a0f1b-0x1]||null;_0x2f5984[_0x4a0f1b]['previous']!==_0x440b0a&&(_0x2f5984[_0x4a0f1b]['previous']=_0x440b0a);}function _0x5b4119(_0x513317,_0xd56ff4){if(_0x513317[0x0]['attributes']['groupId']!==_0xd56ff4[0x0]['attributes']['groupId']&&_0x513317[0x0]['author']!==_0xd56ff4[0x0]['author'])return!0x1;if(!function(_0x1186e2,_0x5974bf){return!_0x1186e2['hasComments']&&!_0x5974bf['hasComments']||(!_0x1186e2['hasComments']||!_0x5974bf['hasComments'])&&(!!(_0x1186e2['hasComments']&&_0x5974bf['createdAt']<_0x1186e2['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x5974bf['hasComments']&&_0x1186e2['createdAt']<_0x5974bf['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x513317[0x0],_0xd56ff4[0x0]))return!0x1;const _0xe87d1e=ht(_0x513317[0x0]['attributes'],['groupId','trackingSessionId']),_0x5c8a0b=ht(_0xd56ff4[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0xe87d1e,_0x5c8a0b)&&(_0x513317[0x0]['attributes']['groupId']==_0xd56ff4[0x0]['attributes']['groupId']||_0x513317[0x0]['attributes']['trackingSessionId']===_0xd56ff4[0x0]['attributes']['trackingSessionId']&&(!!_0x513317['every'](_0x127816=>_0xd56ff4['some'](_0x4718b8=>_0x127816['getFirstRange']()['isEqual'](_0x4718b8['getFirstRange']())))&&_0xd56ff4['every'](_0x1901cb=>_0x513317['some'](_0x465980=>_0x1901cb['getFirstRange']()['isEqual'](_0x465980['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x2a4b98){const _0x35a949=Array['from'](_0x2a4b98),_0xf4b8f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x16aae1=_0xf4b8f2['filter'](_0x2dbbd7=>!_0x2a4b98['has'](_0x2dbbd7)),_0x560b07=new Map(_0x35a949['map'](_0x1977e4=>[_0x1977e4,this['_suggestionFactory']['getSuggestionCallback'](_0x1977e4['type'],_0x1977e4['subType'],'join')])),_0x318665=new Map(_0xf4b8f2['map'](_0x3041a9=>[_0x3041a9,_0x3041a9['getRanges']()]));for(let _0x33a1d2=0x0;_0x33a1d2<_0x35a949['length'];_0x33a1d2++)if(_0x21d80f(this,_0x35a949[_0x33a1d2],_0x35a949,_0x33a1d2+0x1))return!0x0;for(let _0x2aafde=0x0;_0x2aafde<_0x35a949['length'];_0x2aafde++)if(_0x21d80f(this,_0x35a949[_0x2aafde],_0x16aae1,0x0))return!0x0;return!0x1;function _0x21d80f(_0x3b4428,_0x1ee3cd,_0x4e9326,_0x370fd2){for(let _0x25aaa4=_0x370fd2;_0x25aaa4<_0x4e9326['length'];_0x25aaa4++){const _0x479e8c=_0x4e9326[_0x25aaa4];if(_0x479e8c['type']!==_0x1ee3cd['type']||_0x479e8c['author']['id']!==_0x1ee3cd['author']['id']||_0x479e8c['subType']!==_0x1ee3cd['subType'])continue;if(!An(_0x1ee3cd,_0x479e8c))continue;if('attribute'==_0x1ee3cd['type']&&_0x1ee3cd['data']['oldValue']!=_0x479e8c['data']['oldValue'])continue;if('attribute'==_0x1ee3cd['type']&&_0x3b4428['_suggestionsConversion']['isBlockAttribute'](_0x1ee3cd['data']['key']))continue;if('formatBlock'==_0x1ee3cd['type']){const _0x338f99=_0x3b4428['editor']['model'],_0x5d940c=_0x1ee3cd['getContainedElement']();if(_0x5d940c&&(_0x338f99['schema']['isObject'](_0x5d940c)||_0x338f99['schema']['isLimit'](_0x5d940c)))continue;}const _0x459900=_0x560b07['get'](_0x1ee3cd),_0x213a2d=_0x318665['get'](_0x1ee3cd),_0x68242=_0x318665['get'](_0x479e8c),_0xd74a35=_0x1ee3cd['commentThread']&&_0x1ee3cd['commentThread']['length'],_0xa41680=_0x479e8c['commentThread']&&_0x479e8c['commentThread']['length'];if(!_0xd74a35&&_0x459900(_0x68242,_0x213a2d))return _0x3b4428['_joinSuggestions'](_0x479e8c,_0x1ee3cd),_0x318665['delete'](_0x1ee3cd),!0x0;if(!_0xa41680&&_0x459900(_0x213a2d,_0x68242))return _0x3b4428['_joinSuggestions'](_0x1ee3cd,_0x479e8c),_0x318665['delete'](_0x479e8c),!0x0;}return!0x1;}}_joinSuggestions(_0xad9fb9,_0x2cb862){if(_0xad9fb9['isMultiRange']){for(const _0x2cca3e of _0x2cb862['getRanges']())_0xad9fb9['addRange'](_0x2cca3e);}else{const _0x221217=_0x2cb862['getFirstRange']()['end'];this['_setSuggestionRange'](_0xad9fb9,this['_model']['createRange'](_0xad9fb9['getFirstRange']()['start'],_0x221217));}_0x2cb862['removeMarkers']();}_getMarkerAnnouncementText(_0x26e7f8,_0x4f713a,_0x8bc38c){const _0x1c11b8=_0x26e7f8['startsWith']('format')||_0x26e7f8['startsWith']('attribute')?'FORMATTING':_0x26e7f8['toUpperCase']();return Bt(this['editor']['locale'],_0x4f713a+'_'+_0x1c11b8+'_SUGGESTION_ANNOUNCEMENT',_0x8bc38c);}_initAriaMarkerChangeAnnouncements(){const _0xa2aab9=this['editor'];if(!_0xa2aab9['ui'])return;const {ariaLiveAnnouncer:_0x1c7b64}=_0xa2aab9['ui'];st(this['_model'],({left:_0x131825,entered:_0x514e69})=>{for(const _0x329517 of _0x131825){const {group:_0x557713,type:_0x570026}=it(_0x329517['name']);if('suggestion'===_0x557713){_0x1c7b64['announce'](this['_getMarkerAnnouncementText'](_0x570026,'LEAVE'));break;}}for(const _0x5b331e of _0x514e69){const {group:_0x2fca15,type:_0x52fc34}=it(_0x5b331e['name']);if('suggestion'===_0x2fca15){_0x1c7b64['announce'](this['_getMarkerAnnouncementText'](_0x52fc34,'ENTER',_0x2f473e(_0xbe07f8)));break;}}});}_processAttributeChanges(_0x427c21){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4679cd=this['editor'],_0x31f74e=_0x4679cd['model']['document']['differ']['getChanges']();if(0x0==_0x31f74e['length'])return!0x1;const _0x3b87a7=[],_0x6c5d10=_0x31f74e['filter'](_0x2cbd67=>'attribute'==_0x2cbd67['type']),_0x5dd6f0=_0x31f74e['filter'](_0x259f93=>'insert'==_0x259f93['type']&&'$text'!=_0x259f93['name']),_0x52841f=_0x31f74e['filter'](_0x237495=>'remove'==_0x237495['type']&&'$text'!=_0x237495['name']);for(const _0x1b78b8 of _0x6c5d10)_0x3b87a7['push']({'key':_0x1b78b8['attributeKey'],'newValue':_0x1b78b8['attributeNewValue'],'oldValue':_0x1b78b8['attributeOldValue'],'range':pn(_0x1b78b8['range'],_0x4679cd['model'])});for(const _0x5b9abc of _0x5dd6f0){const _0x5a46a7=_0x52841f['find'](_0x2a2fc2=>_0x2a2fc2['position']['isEqual'](_0x5b9abc['position']));_0x5a46a7&&_0x3b87a7['push']({'key':an,'newValue':_0x5b9abc['name'],'oldValue':_0x5a46a7['name'],'range':_0x4679cd['model']['createRangeOn'](_0x5b9abc['position']['nodeAfter'])});}return 0x0!=_0x3b87a7['length']&&this['_reduceExistingSuggestions'](_0x427c21,_0x3b87a7);}_processAttributeSuggestions(_0x16aea6){let _0x1b754e=!0x1;const _0x2c5f9e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x44b063=>_0x44b063['data']['newRange']&&_0x44b063['name']['startsWith']('suggestion:attribute:'));for(const _0x5d28b7 of _0x2c5f9e){const {subType:_0x1643e0,id:_0x45b5bf}=it(_0x5d28b7['name']),_0x229b0c=_0x1643e0['split']('|')[0x0];for(const _0x544711 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x544711['id']!=_0x45b5bf&&'attribute'==_0x544711['type']&&_0x544711['data']&&_0x544711['data']['key']==_0x229b0c&&_0x544711['getFirstRange']()['isIntersecting'](_0x5d28b7['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x544711,_0x5d28b7['data']['newRange'],_0x16aea6),_0x1b754e=!0x0);}return _0x1b754e;}recordAttributeChanges(_0x32efa4){this['_recordAttributeSuggestions']=!0x0,_0x32efa4();}_reduceExistingSuggestions(_0x450803,_0x5866c2){if(0x0==_0x5866c2['length'])return!0x1;let _0x140cc1=!0x1;for(const _0x1bec9a of _0x5866c2){const _0x213188=this['_findSuggestions'](_0x1bec9a['range'],'attribute')['filter'](_0x4941e4=>!_0x4941e4['meta']['isNextTo'])['map'](_0x337399=>_0x337399['suggestion']),_0x1a3873=_0x192d09({'newValue':_0x1bec9a['newValue']});_0x213188['filter'](_0x1d78ee=>{const [_0x241ca6,_0x4b3fb6]=_0x1d78ee['subType']['split']('|');return _0x241ca6==_0x1bec9a['key']&&_0x4b3fb6!=_0x1a3873;})['forEach'](_0x43583e=>{this['_reduceSuggestionAttributeRange'](_0x43583e,_0x1bec9a['range'],_0x450803),_0x140cc1=!0x0;});}return _0x140cc1;}_reduceSuggestionAttributeRange(_0x2c7591,_0x25d45b,_0x436733){const _0x29bd68=_0x2c7591['getFirstRange']()['getDifference'](_0x25d45b);0x0!==_0x29bd68['length']?0x1!==_0x29bd68['length']?this['_breakSuggestionMarker'](_0x2c7591,_0x25d45b['start'],_0x25d45b['end']):this['_setSuggestionRange'](_0x2c7591,_0x29bd68[0x0]):_0x436733['removeMarker'](_0x2c7591['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x25a8c9){this['_editor']=_0x25a8c9,this['_model']=_0x25a8c9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x379270,_0x3c858e,_0x1bb8ed,_0x52cae9,_0x555e5a,_0x9c146a,_0x55cd09){return new wt(this['_model'],{'type':_0x379270,'subType':_0x3c858e,'id':_0x1bb8ed,'originalSuggestionId':_0x55cd09,'author':_0x52cae9,'creator':_0x52cae9,'attributes':_0x555e5a,'onAttributesChange':_0x9c146a,'onAccept':(..._0x40414a)=>this['getSuggestionCallback'](_0x379270,_0x3c858e,'accept')(..._0x40414a),'onDiscard':(..._0x2d1e8e)=>this['getSuggestionCallback'](_0x379270,_0x3c858e,'discard')(..._0x2d1e8e)});}registerCustomCallback(_0x23dc70,_0x30fdbe,_0x3f3a0d,_0x36ff9a){const _0x5d3daa=_0x23dc70+':'+_0x30fdbe+':'+_0x3f3a0d;this['_customCallbacks']['set'](_0x5d3daa,_0x36ff9a);}getSuggestionCallback(_0xfee2c4,_0x153b4d,_0x16a88a){const _0x21a310=_0xfee2c4+':'+_0x153b4d+':'+_0x16a88a;return this['_customCallbacks']['get'](_0x21a310)||this['_defaultCallbacks']['get'](_0xfee2c4+':'+_0x16a88a);}_registerDefaultCallbacks(){const _0x49cab9=()=>!0x1,_0x803279=_0x277675=>{_0x277675['sort']((_0xdbb52c,_0x42c32b)=>_0xdbb52c['start']['isBefore'](_0x42c32b['start'])?0x1:-0x1),this['_model']['change'](_0x176638=>{for(const _0x285649 of _0x277675){let _0x17f1c2;_0x17f1c2=_0x285649['end']['isAtEnd']&&_0x285649['end']['parent']==_0x285649['start']['nodeAfter']?_0x176638['createSelection'](_0x285649['start']['nodeAfter'],'on'):_0x176638['createSelection'](_0x285649),this['_model']['deleteContent'](_0x17f1c2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x3cb9b8=(_0x4e4e65,_0x3f0605)=>{_0x3f0605&&this['_model']['change'](_0x248d6a=>{const {commandName:_0x256325,commandParams:_0xd61cfd=[]}=_0x3f0605,_0x362159=_0x4e4e65['map'](_0x3caf9c=>(gn(_0x3caf9c)&&(_0x3caf9c=this['_model']['createRange'](_0x3caf9c['end'])),_0x3caf9c))['filter'](_0x6f4fa6=>'$graveyard'!==_0x6f4fa6['root']['rootName']);if(_0x362159['length']<0x1)return;const _0x20e6aa=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28b5d1=>ct['fromRange'](_0x28b5d1));_0x248d6a['setSelection'](_0x362159);for(const _0x3fe273 of this['_editor']['commands']['commands']())_0x3fe273['refresh']();_0xd61cfd['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x256325,..._0xd61cfd);const _0x121fd8=_0x20e6aa['filter'](_0x81c93b=>'$graveyard'!=_0x81c93b['root']['rootName']);_0x121fd8['length']>0x0&&_0x248d6a['setSelection'](_0x121fd8);for(const _0x5411fc of _0x20e6aa)_0x5411fc['detach']();});},_0x197c39=(_0x197306,_0x13729f)=>0x1==_0x197306['length']&&0x1==_0x13729f['length']&&_0x197306[0x0]['end']['isEqual'](_0x13729f[0x0]['start']),_0x7542b1=(_0x1ea333,_0x604d42,_0x37d80c,_0x42ccc0)=>In(_0x1ea333,_0x604d42,_0x37d80c,_0x42ccc0)?[_0x1ea333,_0x604d42]:In(_0x604d42,_0x1ea333,_0x42ccc0,_0x37d80c)?[_0x604d42,_0x1ea333]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x49cab9),this['_defaultCallbacks']['set']('insertion:discard',_0x803279),this['_defaultCallbacks']['set']('insertion:join',_0x197c39),this['_defaultCallbacks']['set']('insertion:chain',_0x7542b1),this['_defaultCallbacks']['set']('deletion:accept',_0x803279),this['_defaultCallbacks']['set']('deletion:discard',_0x49cab9),this['_defaultCallbacks']['set']('deletion:join',_0x197c39),this['_defaultCallbacks']['set']('deletion:chain',_0x7542b1),this['_defaultCallbacks']['set']('formatInline:accept',_0x3cb9b8),this['_defaultCallbacks']['set']('formatInline:discard',_0x49cab9),this['_defaultCallbacks']['set']('formatInline:join',_0x197c39),this['_defaultCallbacks']['set']('formatInline:chain',_0x49cab9),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3cb9b8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x49cab9),this['_defaultCallbacks']['set']('formatBlock:join',_0x197c39),this['_defaultCallbacks']['set']('formatBlock:chain',_0x49cab9),this['_defaultCallbacks']['set']('attribute:accept',_0x49cab9),this['_defaultCallbacks']['set']('attribute:discard',(_0x21b458,_0x1ad816)=>{if(!_0x1ad816)return;const _0xe81380=this['_editor']['plugins']['get'](_0xf71396);this['_model']['change'](_0x18d913=>{if('$elementName'==_0x1ad816['key'])for(const _0x3ccc4e of _0x21b458){const _0x31c21c=_0x3ccc4e['start']['nodeAfter'],_0xe4d85c=_0x1ad816['oldValue'];_0x18d913['rename'](_0x31c21c,_0xe4d85c);}else{if(_0xe81380['isBlockAttribute'](_0x1ad816['key'])){for(const _0x4bfe0f of _0x21b458)void 0x0!==_0x1ad816['oldValue']?_0x18d913['setAttribute'](_0x1ad816['key'],_0x1ad816['oldValue'],_0x4bfe0f['start']['nodeAfter']):_0x18d913['removeAttribute'](_0x1ad816['key'],_0x4bfe0f['start']['nodeAfter']);}else{for(const _0x3ad691 of _0x21b458)_0x1ad816['oldValue']?_0x18d913['setAttribute'](_0x1ad816['key'],_0x1ad816['oldValue'],_0x3ad691):_0x18d913['removeAttribute'](_0x1ad816['key'],_0x3ad691);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x197c39);}};function hn(_0x564129,_0x47124d,_0x11c926){for(const _0x1b72d1 of _0x47124d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1b72d1['root']==_0x1b72d1)return!0x1;if(!_0x11c926['containsItem'](_0x1b72d1))return!0x1;if(_0x564129['isObject'](_0x1b72d1)||_0x564129['isLimit'](_0x1b72d1))return!0x0;}return!0x1;}function gn(_0x1370b0){return _0x1370b0['end']['parent']==_0x1370b0['start']['nodeAfter']&&_0x1370b0['end']['isAtStart'];}function fn(_0x1ce5bf,_0x20e750,_0x28571a,_0x5230e7){const _0x39c902=_0x4337a5=>!_0x4337a5['item']['is']('$textProxy')&&!_0x5230e7['isObject'](_0x4337a5['item']),_0x4e9394=_0x1ce5bf['start']['getLastMatchingPosition'](_0x39c902),_0x63132c=_0x1ce5bf['end']['getLastMatchingPosition'](_0x39c902,{'direction':'backward'});return(!_0x1ce5bf['start']['isEqual'](_0x4e9394)||!_0x1ce5bf['end']['isEqual'](_0x63132c))&&(_0x4e9394['isBefore'](_0x63132c)?_0x28571a['updateMarker'](_0x20e750,{'range':_0x28571a['createRange'](_0x4e9394,_0x63132c)}):_0x28571a['removeMarker'](_0x20e750),!0x0);}function mn(_0x28c4d1){return _0x192d09(_0x28c4d1);}function En(_0x36914d){const _0x540b8a=_0x36914d['start']['nodeAfter'];return _0x540b8a&&_0x540b8a['is']('element');}function Tn(_0x5ac0ca){return gn(_0x5ac0ca)||function(_0x32fdd8){return _0x32fdd8['start']['parent']==_0x32fdd8['end']['nodeBefore']&&_0x32fdd8['start']['isAtEnd'];}(_0x5ac0ca);}function _n(_0x273a7c,_0x2864ea){try{const _0x4422a0=_0x273a7c['getRange']();for(const _0x5c3e27 of _0x2864ea)if(_0x273a7c!==_0x5c3e27&&_0x4422a0&&_0x4422a0['isIntersecting'](_0x5c3e27['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x162252,_0x211cf9){return null==_0x162252['end']['nodeBefore']&&_0x162252['end']['parent']==_0x162252['start']['nodeAfter']?Ln(_0x162252['start']['nodeAfter'],_0x211cf9):_0x162252;}function Ln(_0xde30d8,_0x335f00){const _0x5000b6=_0x335f00['schema']['isObject'](_0xde30d8)||_0x335f00['schema']['isSelectable'](_0xde30d8);return _0x335f00['createRange'](_0x335f00['createPositionAt'](_0xde30d8,'before'),_0x5000b6?_0x335f00['createPositionAfter'](_0xde30d8):_0x335f00['createPositionAt'](_0xde30d8,'end'));}function In(_0x31f665,_0x3126c0,_0x5d7898,_0x5d1a62){return!!An(_0x31f665,_0x3126c0)&&_0x5d7898['end']['isEqual'](_0x5d1a62['start']);}function An(_0x4b2f4a,_0x2be0d2){if(!_0x4b2f4a['_isDataLoaded']||!_0x2be0d2['_isDataLoaded'])return!0x1;const _0x4c9844=new Set(Object['keys'](_0x4b2f4a['attributes'])),_0x1e7601=new Set(Object['keys'](_0x2be0d2['attributes']));if(_0x4c9844['delete']('groupId'),_0x1e7601['delete']('groupId'),0x0==_0x4c9844['size']&&0x0==_0x1e7601['size'])return!0x0;if(_0x4c9844['size']!=_0x1e7601['size'])return!0x1;const _0x2dfed7={..._0x4b2f4a['attributes']},_0x584e56={..._0x2be0d2['attributes']};return delete _0x2dfed7['groupId'],delete _0x584e56['groupId'],JSON['stringify'](_0x2dfed7)==JSON['stringify'](_0x584e56);}function bn(_0x595ca0,_0xce587b){const _0x1c9e4d=Cn(_0x595ca0['attributes']),_0x102b9f=Cn(_0xce587b);if(!_0x595ca0['_isDataLoaded'])return!0x1;if(!dt(_0x1c9e4d['@ai'],_0x102b9f['@ai']))return!0x1;for(const _0x588319 of Object['keys'](_0x102b9f))if(!dt(_0x1c9e4d[_0x588319],_0x102b9f[_0x588319]))return!0x1;return!0x0;}function Cn(_0x3adf73){const _0xa60579=Object['assign']({},_0x3adf73);return delete _0xa60579['skipNestingCheck'],delete _0xa60579['tablePasteChainId'],_0xa60579;}function kn(_0x9f280f){return _0x9f280f['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x1e31b6();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x34bfa8,_0x45c721,_0x44a429,_0x5880e7){super(),this['model']=_0x45c721,this['view']=_0x44a429,this['commentThreadController']=_0x5880e7,this['_editor']=_0x34bfa8,this['_acceptCommand']=_0x34bfa8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x34bfa8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2348af,_0x4cb590)=>_0x2348af||_0x4cb590),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x13261e=>_0x13261e&&this['_editor']['model']['canEditAt'](_0x45c721['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40dac4=>_0x40dac4&&this['_editor']['model']['canEditAt'](_0x45c721['getRanges']())),this['_pendingAction']=null,_0x44a429['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x44a429,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x44a429,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x44a429,'change:isDirty',()=>{_0x44a429['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 _0x369012=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x369012);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0x529f7f{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x23a595,_0x20dbce,_0x546964,_0x59c669){super(_0x23a595),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x17340b(_0x23a595,Bt(_0x23a595,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x20dbce['authoredAt']),this['bind']('authoredAt')['to'](_0x20dbce),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',_0x20dbce,'authoredAt',this,'descriptionParts',(_0x48378f,_0x61c54d,_0x3ef774)=>{const _0x81b10b=_0x3ef774['map'](_0x463f0b=>bt(_0x463f0b['content']))['join']('.\x20')+'.',_0x133dcd=_0x20dbce['aiSource']&&'author'===_0x59c669['showAISource']?_0x59c669['aiAuthor']['name']:_0x20dbce['author']['name'],_0x4e0431=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x48378f-0x1,_0x133dcd,_0x61c54d?_0x59c669['formatDateTime'](_0x61c54d):'',new DOMParser()['parseFromString'](_0x319c31(_0x81b10b),'text/html')['body']['textContent']]);return _0x20dbce['aiSource']&&'pill'===_0x59c669['showAISource']?_0x4e0431+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x4e0431;}),this['focusables']=new _0x137634(),this['focusTracker']=new _0x40271f(),this['keystrokes']=new _0x5517a6(),this['focusCycler']=new _0x413e2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4ae277=>_0x4ae277['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x20dbce,this['_localUser']=_0x546964,this['_config']=_0x59c669,_0x59c669['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x24204b}=this['_config'];this['commentsListView']=new _0x24204b(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',_0x5d49b1=>_0x5d49b1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x396ab2,_0x581b7f)=>_0x396ab2||!!_0x581b7f);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x473ac7}=this['_config'],_0x2bd8e6=new _0x473ac7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x24b6c0=_0x2bd8e6['commentInputView'];return _0x2bd8e6['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x24b6c0,'value',(_0x297e6f,_0x3a027f,_0x105ea5)=>!!_0x105ea5||_0x297e6f&&!_0x3a027f),_0x24b6c0['on']('submit',(_0x2cf05b,_0x55a5ba)=>{this['fire']('addComment',_0x55a5ba),_0x24b6c0['editor']['setData']('');}),_0x24b6c0['on']('cancel',()=>this['focus']()),_0x24b6c0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2bd8e6;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x2e994c,_0x328e6e,_0x63c0b,_0x34ee32){super(_0x2e994c,_0x328e6e,_0x63c0b,_0x34ee32),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4699ae=>_0x4699ae&&_0x4699ae[0x0]?_0x4699ae[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3e52b4,_0x311ff6)=>{let _0x1c4b1e='';for(const _0x20eb4e of _0x3e52b4)_0x1c4b1e+='<p>'+bt(_0x20eb4e['content'],_0x20eb4e['color'])+'</p>';return _0x311ff6?_0x1c4b1e:rt(_0x1c4b1e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x34ee32['SuggestionView'](_0x2e994c,_0x328e6e,{'formatDateTime':_0x34ee32['formatDateTime'],'showAISource':_0x34ee32['showAISource'],'aiAuthor':_0x34ee32['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',_0x154e59=>!!_0x154e59||Bt(_0x2e994c,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x3583d2=>!!_0x3583d2||Bt(_0x2e994c,'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 _0x45c194=this['bindTemplate'],_0x5c0415=[this['suggestionView']];return this['commentsListView']&&_0x5c0415['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5c0415['push'](this['commentThreadInputView']),_0x5c0415['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45c194['if']('isActive','ck-suggestion-wrapper--active'),_0x45c194['to']('type',_0x16321b=>'ck-suggestion-'+_0x16321b),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':_0x45c194['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5c0415};}['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));}},Mn=class extends _0x529f7f{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x1e641b,_0x414f9d,_0x34838a){super(_0x1e641b),this['_model']=_0x414f9d,this['_config']=_0x34838a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x414f9d),this['acceptButton']=this['_createButton'](Bt(_0x1e641b,'Accept\x20suggestion'),_0x23bba2,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x1e641b,'Discard\x20suggestion'),_0x54133c,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0xc9d8bb=!!_0x414f9d['aiSource']&&'author'===_0x34838a['showAISource'],_0x20fc6f=_0xc9d8bb?this['_createAIUser'](_0x34838a['aiAuthor']):_0x414f9d['author'],_0x559c3e=_0xc9d8bb&&!_0x34838a['aiAuthor']['avatar']?_0x34b5a1:void 0x0;this['userView']=new _0x54ce75(_0x1e641b,_0x20fc6f,this['getUserViewNotificationText'](),_0x559c3e),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x137634([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x40271f(),this['keystrokes']=new _0x5517a6(),this['focusCycler']=new _0x413e2c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x10200d=>_0x10200d['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x8548f5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x8548f5['innerHTML']=_0x319c31(this['description']),this['on']('change:description',(_0x1169dc,_0x3cebca,_0x208d16)=>{_0x8548f5['innerHTML']=_0x319c31(_0x208d16);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x3525c6=this['bindTemplate'],_0x19ae86=new _0x2e94b3();_0x19ae86['content']=_0x1d6c3a;const _0x5d46e0=[{'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']}},_0x19ae86,{'tag':'time','attributes':{'datetime':_0x3525c6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3525c6['to']('authoredAt',_0x4ed80b=>this['_config']['formatDateTime'](_0x4ed80b))}]}]},{'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']&&_0x5d46e0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1418fe=new _0xf6372(this['locale']);_0x1418fe['set']({'icon':_0x1c1c92,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x5d46e0['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1418fe]});}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':_0x5d46e0}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x410036){return new _0x43a3cd({'id':'ck-ai-author','name':_0x410036['name'],'avatar':_0x410036['avatar'],'color':new _0xd3ee25(0x0)});}_createButton(_0x5f1d4e,_0x5b9d90,_0x3d66a1,_0x5c6cc8,_0x1b5659){const _0x2cdb66=new _0x36bc7f(this['locale']);return _0x2cdb66['set']({'label':_0x5f1d4e,'icon':_0x5b9d90,'tooltip':!0x0,'tooltipPosition':_0x1b5659}),_0x2cdb66['extendTemplate']({'attributes':{'class':_0x3d66a1}}),_0x2cdb66['on']('execute',()=>{this['fire'](_0x5c6cc8,this['_model']['id']);}),_0x2cdb66;}_setupKeyboardNavigation(){const _0x282af7=this['element'];this['keystrokes']['listenTo'](_0x282af7);for(const _0x4daff7 of this['focusables'])this['focusTracker']['add'](_0x4daff7['element']),this['keystrokes']['listenTo'](_0x4daff7['element']);this['keystrokes']['set']('enter',(_0x110469,_0x1d3a61)=>{_0x282af7===_0x110469['target']&&(this['focusCycler']['focusFirst'](),_0x1d3a61());}),this['keystrokes']['set']('esc',(_0x7bc703,_0x488f4b)=>{_0x282af7!==_0x7bc703['target']&&(this['focus'](),_0x488f4b());});}},On=class extends _0xdaca7a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x3496aa,_0x150919,_0x315c04,_0x42ddf7];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c31bd){super(_0x2c31bd),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x22a221=this['editor']['config'];_0x22a221['define']('trackChanges.SuggestionThreadView',Sn),_0x22a221['define']('trackChanges.SuggestionView',Mn),_0x22a221['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x22a221['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x4dd1ff,_0x4b021f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x470b60,_0x5f40d9]of this['_handleControllerBuffer']){const _0x3c4f35=this['_suggestionToController']['has'](_0x470b60);_0x3c4f35||_0x5f40d9?_0x3c4f35&&_0x5f40d9&&this['_destroyController'](_0x470b60):this['_initializeController'](_0x470b60);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x42ddf7)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4dd1ff,_0x4b021f);}init(){const _0x5955cf=this['editor'],_0x182b98=_0x5955cf['plugins']['get'](un),_0x297f6c=_0x5955cf['plugins']['get'](_0x315c04),_0x57e182=_0x5955cf['plugins']['get'](_0x42ddf7),_0x11c152=_0x5955cf['plugins']['get'](_0x150919);this['_addUIComponentsToFactory'](),_0x57e182['addSourceCollector'](()=>{const _0x170285=[];for(const [_0x208381,_0x16da36]of Array['from'](this['_suggestionToController'])){const _0x59da93=_0x208381['getAllAdjacentSuggestions'](),_0x37379d=[];for(const _0x546df6 of _0x59da93){if(!_0x546df6['isInContent'])continue;if(_0x546df6['isMultiRange']){_0x37379d['push'](..._0x546df6['getRanges']());continue;}const _0x244d6a=_0x546df6['getFirstRange']();if(_0x37379d['length']>0x0){const _0x49d2b5=_0x37379d[0x0]['getJoined'](_0x244d6a);if(_0x49d2b5){_0x37379d[0x0]=_0x49d2b5;continue;}}_0x37379d['push'](_0x244d6a);}_0x170285['push']([_0x16da36['view'],_0x37379d]);}return _0x170285;}),this['listenTo'](_0x182b98,'suggestionLoaded',(_0xc571dd,_0x4087d3)=>{this['listenTo'](_0x4087d3,'change:previous',(_0x14380e,_0x3ff62e,_0x149943,_0x1e6097)=>{_0x4087d3['isInContent']&&(null==_0x149943?(this['_updateController'](_0x1e6097['head']),this['_handleSuggestionControllerDelayed'](_0x4087d3,!0x1)):(this['_updateController'](_0x149943['head']),null==_0x1e6097&&this['_handleSuggestionControllerDelayed'](_0x4087d3,!0x0)));}),null!==_0x4087d3['previous']?this['_updateController'](_0x4087d3['head']):this['_handleSuggestionControllerDelayed'](_0x4087d3,!0x1);}),this['listenTo'](_0x182b98,'suggestionUnloaded',(_0x1ffc0e,_0x449d75,_0x296046)=>{this['stopListening'](_0x449d75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x449d75),this['_suggestionToController']['has'](_0x449d75)&&this['_destroyController'](_0x449d75),_0x296046&&this['_updateController'](_0x296046['head']);}),this['listenTo'](_0x182b98,'suggestionChanged',(_0x216085,_0x1741c1)=>{this['_updateController'](_0x1741c1);}),this['listenTo'](_0x297f6c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x11c152,'addComment',(_0x557538,{threadId:_0xe9df9c,isFromAdapter:_0x5788f7})=>{if(_0x5788f7||!_0x182b98['hasSuggestion'](_0xe9df9c))return;const _0x132e66=_0x182b98['getSuggestion'](_0xe9df9c);this['_suggestionToController']['get'](_0x132e66)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x3e98b1=[this['editor']];for(const _0x4c2c36 of _0x3e98b1){let _0x1484f5;for(const _0x115521 in _0x4c2c36){const _0x45baef=_0x115521,_0x3994fd=_0x4c2c36[_0x45baef];if('trackChangesLicenseKeyValid'==_0x3994fd||'trackChangesLicenseKeyInvalid'==_0x3994fd||'trackChangesLicenseKeyExpired'==_0x3994fd||'trackChangesLicenseKeyDomainLimit'==_0x3994fd||'trackChangesLicenseKeyNotAllowed'==_0x3994fd||'trackChangesLicenseKeyEvaluationLimit'==_0x3994fd||'trackChangesLicenseKeyUsageLimit'==_0x3994fd){delete _0x4c2c36[_0x45baef],_0x1484f5=_0x3994fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1484f5&&_0x4c2c36['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1484f5&&_0x4c2c36['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1484f5&&_0x4c2c36['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1484f5&&_0x4c2c36['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1484f5&&_0x4c2c36['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1484f5&&_0x4c2c36['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x5b29df){const _0x162f83=this['_suggestionToController']['get'](_0x5b29df);return _0x162f83&&this['editor']['plugins']['get'](_0x315c04)['getByInnerView'](_0x162f83['view'])||null;}getSuggestionForAnnotation(_0x43b589){const _0x221e52=this['_viewToController']['get'](_0x43b589['innerView']);return _0x221e52?_0x221e52['model']:null;}_refreshActiveMarkers(){const _0x209fb5=this['editor']['plugins']['get'](_0x315c04),_0x83ee2b=this['editor']['plugins']['get'](un),_0x2e42d7=Array['from'](_0x209fb5['activeAnnotations'],_0x263bdd=>_0x263bdd['innerView'])['filter'](_0x474a5b=>this['_viewToController']['has'](_0x474a5b)),_0x21f471=[];for(const _0x3794b7 of _0x2e42d7){const _0x59feb8=this['_viewToController']['get'](_0x3794b7)['model']['getAllAdjacentSuggestions']();_0x21f471['push'](..._0x59feb8['reduce']((_0x2fe186,_0x40cd46)=>[..._0x2fe186,..._0x40cd46['getMarkerNames']()],[]));}_0x83ee2b['activeMarkers']=_0x21f471;}_addUIComponentsToFactory(){const _0xa4b335=this['editor'],_0x5a3967=_0xa4b335['locale'],_0x27319f=Bt(_0x5a3967,'Track\x20changes'),_0x3da43c=new _0x1b0b04([{'type':'switchbutton','model':new _0x423fec({'withText':!0x0,'isToggleable':!0x0,'label':_0x27319f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x423fec({'withText':!0x0,'label':Bt(_0x5a3967,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423fec({'withText':!0x0,'label':Bt(_0x5a3967,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423fec({'withText':!0x0,'label':Bt(_0x5a3967,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423fec({'withText':!0x0,'label':Bt(_0x5a3967,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xa4b335['plugins']['has']('TrackChangesPreview')&&_0x3da43c['addMany']([{'type':'separator'},{'type':'button','model':new _0x423fec({'withText':!0x0,'label':Bt(_0x5a3967,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x45c14b of _0x3da43c)if(wn(_0x45c14b)){const _0x27052c=_0xa4b335['commands']['get'](_0x45c14b['model']['commandName']);_0x45c14b['model']['bind']('isOn','isEnabled')['to'](_0x27052c,'value','isEnabled');}_0xa4b335['ui']['componentFactory']['add']('trackChanges',_0x215ad6=>this['_createToolbarButton'](_0x215ad6,_0x3da43c,_0x27319f)),_0xa4b335['ui']['componentFactory']['add']('menuBar:trackChanges',_0x30914e=>this['_createMenuBarMenu'](_0x30914e,_0x3da43c,_0x27319f));}_createToolbarButton(_0x58e9d2,_0x221dec,_0x2a4d63){const _0x47bbb3=_0x3baf14(_0x58e9d2,_0x5c094f),_0x55a7ae=this['editor']['commands']['get']('trackChanges');_0x47bbb3['buttonView']['set']({'tooltip':_0x2a4d63,'label':_0x2a4d63,'icon':_0x1d6c3a}),_0x47bbb3['buttonView']['bind']('isOn')['to'](_0x55a7ae,'value'),_0x47bbb3['buttonView']['on']('execute',()=>{_0x55a7ae['execute'](),this['editor']['editing']['view']['focus']();}),_0xca1535(_0x47bbb3,_0x221dec,{'role':'menu'});const _0x3a0aa4=[];for(const _0x20878f of _0x221dec)wn(_0x20878f)&&_0x3a0aa4['push'](this['editor']['commands']['get'](_0x20878f['model']['commandName']));const _0x54afd5=_0x47bbb3['buttonView'];return _0x54afd5['actionView']['unbind']('isEnabled'),_0x54afd5['arrowView']['unbind']('isEnabled'),_0x54afd5['actionView']['bind']('isEnabled')['to'](_0x55a7ae,'isEnabled'),_0x54afd5['arrowView']['bind']('isEnabled')['toMany'](_0x3a0aa4,'isEnabled',(..._0x4d53f3)=>_0x4d53f3['some'](_0x26dd7c=>_0x26dd7c)),_0x47bbb3['on']('execute',_0x4ebd18=>{this['editor']['execute'](_0x4ebd18['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47bbb3;}_createMenuBarMenu(_0x5c2656,_0x222f90,_0x5c47fd){const _0x14a9f9=new _0x519cea(_0x5c2656),_0x345f33=this['editor']['commands']['get']('trackChanges');_0x14a9f9['buttonView']['set']({'label':_0x5c47fd,'icon':_0x1d6c3a});const _0x294d1d=new _0x3125ed(_0x5c2656);for(const _0x5a8890 of _0x222f90){if('separator'==_0x5a8890['type']){_0x294d1d['items']['add'](new _0x4b2908(_0x5c2656));continue;}const _0x2cd32f=new _0x5d0842(_0x5c2656,_0x14a9f9),_0x41dbb6=new _0x52ec9b(_0x5c2656),_0x3e69f9=_0x5a8890['model'];_0x41dbb6['bind'](...Object['keys'](_0x3e69f9))['to'](_0x3e69f9),_0x41dbb6['delegate']('execute')['to'](_0x14a9f9),_0x41dbb6['on']('execute',()=>{this['editor']['execute'](_0x3e69f9['commandName']),this['editor']['editing']['view']['focus']();}),_0x2cd32f['children']['add'](_0x41dbb6),_0x294d1d['items']['add'](_0x2cd32f);}return _0x14a9f9['bind']('isEnabled')['to'](_0x345f33,'isEnabled'),_0x14a9f9['panelView']['children']['add'](_0x294d1d),_0x14a9f9;}_initializeController(_0x298150){const _0x34d9d4=this['editor'],_0x4bafe3=_0x34d9d4['config'],_0x245a7e=_0x34d9d4['plugins']['get'](_0x315c04),_0x5b28ce=_0x34d9d4['plugins']['get'](_0x150919),_0x1abd69=_0x34d9d4['plugins']['get'](_0x42ddf7),_0x6dc70=_0x34d9d4['plugins']['get'](_0x3496aa)['me'],_0x46ce52=_0x4bafe3['get']('trackChanges')['SuggestionThreadView'],_0xe238b6=_0x4bafe3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x569db7,CommentThreadInputView:_0x41e602}=_0x34d9d4['plugins']['get']('CommentsUI');let _0x1f738d,_0x1e9f89,_0x250501;this['_annotationViews']['has'](_0x298150['id'])?(_0x1e9f89=this['_annotationViews']['get'](_0x298150['id']),_0x1f738d=_0x1e9f89['mainView']):(_0x1f738d=new _0x46ce52(_0x34d9d4['locale'],_0x298150,_0x6dc70,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4bafe3['get']('comments.editorConfig'),'licenseKey':_0x4bafe3['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4bafe3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4bafe3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4bafe3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1c194e(_0x4bafe3['get']('locale'),_0x34d9d4['locale']),'CommentView':_0x4bafe3['get']('comments')['CommentView'],'CommentsListView':_0x569db7,'CommentThreadInputView':_0x41e602,'SuggestionView':_0xe238b6,'showAISource':_0x4bafe3['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4bafe3['get']('trackChanges.aiAuthor'),'name':_0x4bafe3['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x34d9d4['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x1f738d['suggestionView']['acceptButton']['on']('execute',()=>{_0x34d9d4['editing']['view']['focus']();}),_0x1f738d['suggestionView']['discardButton']['on']('execute',()=>{_0x34d9d4['editing']['view']['focus']();}),_0x1e9f89=_0x245a7e['createAnnotationView'](this['editor']['locale'],_0x1f738d),_0x1e9f89['bind']('isDirty')['to'](_0x1f738d,'isDirty'),_0x1e9f89['bind']('length')['to'](_0x1f738d),_0x1e9f89['bind']('type')['to'](_0x1f738d,'type',_0x1252d5=>'suggestion-'+_0x1252d5),_0x1f738d['on']('escape',()=>{_0x250501['fire']('escape');}),this['_annotationViews']['set'](_0x298150['id'],_0x1e9f89));const _0x4544d4=_0x5b28ce['createCommentThreadController'](_0x298150['commentThread'],_0x1f738d),_0x3967eb=new Nn(_0x34d9d4,_0x298150,_0x1f738d,_0x4544d4),_0x239384=_0x298150['getAllAdjacentSuggestions']()['filter'](_0x382310=>_0x382310['isInContent']);_0x1f738d['descriptionParts']=_0x34d9d4['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x239384),this['_suggestionToController']['set'](_0x298150,_0x3967eb),this['_viewToController']['set'](_0x1f738d,_0x3967eb);const _0x9f55f2=()=>{const _0x2abb56=[],_0x48234e=_0x298150['getAllAdjacentSuggestions']()['filter'](_0x2b37b8=>_0x2b37b8['isInContent']);for(const _0x5f129d of _0x48234e)_0x2abb56['push'](..._0x5f129d['getMarkers']());return _0x30747b(_0x34d9d4['editing'],_0x2abb56);};_0x250501=_0x245a7e['createAnnotation']({'view':_0x1e9f89,'target':_0x9f55f2,'type':()=>'suggestion-'+_0x3967eb['view']['type'],'isVisible':!!_0x9f55f2()}),_0x5b28ce['_bindAnnotationToEditors'](_0x1f738d,_0x250501),_0x245a7e['add'](_0x250501),_0x1abd69['registerAnnotation'](_0x250501);}_destroyController(_0x19e627){const _0x3167ca=this['editor']['plugins']['get'](_0x150919),_0x564470=this['editor']['plugins']['get'](_0x315c04),_0x65f300=this['_suggestionToController']['get'](_0x19e627),_0x17e523=_0x65f300['view'],_0x13186c=_0x564470['getByInnerView'](_0x17e523);_0x3167ca['_unbindEditors'](_0x17e523),_0x13186c&&_0x564470['remove'](_0x13186c),this['_suggestionToController']['delete'](_0x19e627),this['_viewToController']['delete'](_0x17e523),_0x65f300['destroy']();}_updateController(_0x3d7a1a){if(!_0x3d7a1a['isInContent']||!this['_suggestionToController']['has'](_0x3d7a1a))return;const _0x5093cd=this['editor']['plugins']['get'](un),_0x54115b=this['_suggestionToController']['get'](_0x3d7a1a),_0x506260=_0x3d7a1a['getAllAdjacentSuggestions']();_0x54115b['view']['descriptionParts']=_0x5093cd['descriptionFactory']['getDescriptions'](_0x506260);}destroy(){for(const _0x51cd3c of this['_suggestionToController']['keys']())this['_destroyController'](_0x51cd3c);for(const _0x370c9a of this['_annotationViews']['values']())_0x370c9a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x5db431){return'model'in _0x5db431;}var Bn=class extends _0xdaca7a{static get requires(){return[un,On,_0x4c3b8b];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3d6dca){this['editor']['plugins']['get'](un)['adapter']=_0x3d6dca;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x126122){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x126122);}getSuggestions({skipNotAttached:_0x22fc31=!0x1,toJSON:_0x4b251b=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x22fc31,'toJSON':_0x4b251b});}getSuggestion(_0x222bc5){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x222bc5);}};const Fn=['Pagination'];var vn=class extends _0xdaca7a{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3a2e4d=this['editor'];if(_0x3a2e4d['config']['define']('trackChangesData.editorCreator',_0x5f02f9=>{const _0x39fc13=_0x3a2e4d['model']['document']['getRootNames']()['reduce']((_0x5a89be,_0x2463ab)=>(_0x5a89be[_0x2463ab]='',_0x5a89be),{});return _0x3a2e4d['constructor']['create'](_0x39fc13,_0x5f02f9);}),'function'!=typeof _0x3a2e4d['config']['get']('trackChangesData')['editorCreator'])throw new _0x4d110d('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x3f178a){return Pn(this['editor'],!0x0,_0x3f178a);}getDataWithDiscardedSuggestions(_0x37ff79){return Pn(this['editor'],!0x1,_0x37ff79);}},Dn=class extends _0xdaca7a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c15c9){super(_0x3c15c9),this['result']='end',_0x3c15c9['editing']['view']['_overlayModeHint']='auto',_0x3c15c9['_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 Un(_0x43fc36){return void 0x0!==_0x43fc36['getRootsAttributes'];}async function Pn(_0xb5f07b,_0x1fe595,_0x1492b7){const _0x4d20e8=et(_0xb5f07b,Fn);if(_0x4d20e8['plugins']['push'](un,Dn),Un(_0xb5f07b)){_0x4d20e8['roots']=Object['create'](null);for(const _0x3a546c of _0xb5f07b['model']['document']['getRootNames']())_0x4d20e8['roots'][_0x3a546c]={'modelAttributes':_0xb5f07b['getRootAttributes'](_0x3a546c)};}const _0x266f50=document['createDocumentFragment'](),_0x5447e6=_0xb5f07b['config']['get']('trackChangesData')['editorCreator'],_0x201ce0=await _0x5447e6(_0x4d20e8,()=>function(_0x6b7e61){const _0x1b3daf=document['createElement']('div');return _0x6b7e61['appendChild'](_0x1b3daf),_0x1b3daf;}(_0x266f50));!function(_0x1c95f4,_0x405130){const _0x591623=_0x1c95f4['model']['document']['getRootNames']()['reduce']((_0x30417e,_0x2bb910)=>(_0x30417e[_0x2bb910]=_0x1c95f4['data']['get']({'rootName':_0x2bb910}),_0x30417e),{}),_0x17fbb5=_0x1c95f4['plugins']['get']('Users')['users']['map'](_0x393cca=>({'id':_0x393cca['id'],'name':_0x393cca['name']})),_0x2af32b=_0x1c95f4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e2be6=_0x1c95f4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1f8b3e=_0x405130['plugins']['get']('Users'),_0x224675=_0x405130['plugins']['get']('TrackChangesEditing'),_0x110ed7=_0x405130['plugins']['get']('CommentsRepository');for(const _0xfa9cb8 of _0x110ed7['getCommentThreads']())_0xfa9cb8['remove']();for(const _0x391485 of _0x17fbb5)_0x1f8b3e['getUser'](_0x391485['id'])||_0x1f8b3e['addUser'](_0x391485);_0x1f8b3e['me']||_0x1f8b3e['useAnonymousUser']();for(const _0x4b9e92 of _0x1e2be6)_0x110ed7['addCommentThread'](_0x4b9e92);for(const _0x47a60d of _0x2af32b)_0x224675['addSuggestionData'](_0x47a60d);_0x405130['data']['set'](_0x591623);}(_0xb5f07b,_0x201ce0),_0x201ce0['execute'](_0x1fe595?'acceptAllSuggestions':'discardAllSuggestions');const _0x2850b9=Un(_0x201ce0)?_0x201ce0['getFullData'](_0x1492b7):_0x201ce0['data']['get'](_0x1492b7);return await _0x201ce0['destroy'](),_0x2850b9;}var xn=class extends _0x529f7f{options;constructor(_0x1a598b,_0x50738b){super(_0x1a598b),this['options']=_0x50738b,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(_0x23cb38,_0x40a838){if(!this['element'])return;const _0x322e67=[];for(const [_0x55a0c9,_0x46b711]of _0x23cb38){const _0x4c06ba=document['createElement']('div');_0x4c06ba['setAttribute']('data-ck-root-name',_0x55a0c9),_0x4c06ba['className']=_0x46b711['classes']+'\x20ck-track-changes-preview__root-container',_0x4c06ba['innerHTML']=_0x319c31(_0x46b711['content']),_0x322e67['push'](_0x4c06ba);}_0x40a838(this['element'],_0x322e67),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x3259d6{constructor(_0x3bbc35){super(_0x3bbc35),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1ae18b=this['editor'],_0x47ee0b=_0x1ae18b['locale'],_0x2f40b9=_0x1ae18b['plugins']['get']('Dialog');let _0x47f0b6;const _0x4f10b6=function(_0x3fac0e){const _0x2fb259={};if('editables'in _0x3fac0e['ui']['view']){for(const [_0x2ce131,_0x81d26]of Object['entries'](_0x3fac0e['ui']['view']['editables']))_0x2fb259[_0x2ce131]=_0x81d26['element'];}else _0x2fb259[_0x3fac0e['model']['document']['getRootNames']()[0x0]]=_0x3fac0e['ui']['view']['editable']['element'];return _0x2fb259;}(_0x1ae18b),_0x1ac0a9=function(_0x5bf301){let _0x5cdc30=0x0;for(const _0x2dae7c of Object['values'](_0x5bf301))_0x5cdc30=Math['max'](_0x5cdc30,_0x2dae7c['getBoundingClientRect']()['width']);let _0x353aac=0x0;for(const _0x13e236 of Object['values'](_0x5bf301))_0x353aac+=_0x13e236['getBoundingClientRect']()['height'];const _0x3c581b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x5cdc30,'height':Math['min'](_0x353aac,_0x3c581b)};}(_0x4f10b6);_0x2f40b9['show']({'id':'finalContentPreview','title':Bt(_0x47ee0b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0x47ee0b,{'dialogRects':_0x1ac0a9}),'onHide':()=>{_0x47f0b6['destroy']();},'onShow':()=>{_0x1ae18b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x28fcc2=>{const _0x2f25ff=this['_standarizeRootsData'](_0x28fcc2,_0x1ae18b,_0x4f10b6);_0x2f40b9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f25ff,_0x1ae18b['config']['get']('trackChanges.preview.renderFunction'));}),_0x47f0b6=new _0x46809e(_0x47ee0b,[_0x2f40b9['view']]),_0x47f0b6['attachToDom'](_0x1ae18b['ui']['view']['body']['mountTarget']),_0x47f0b6['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1ae18b['once']('destroy',()=>{_0x47f0b6['destroy']();});const _0x27155d=_0x2f40b9['view']['headerView']['class'];_0x2f40b9['view']['headerView']['class']=_0x27155d?_0x27155d+'\x20ck-reset_all':'ck-reset_all',_0x2f40b9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2f40b9['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1be089=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3b19bf=_0x1be089['previewMode'],_0x4cf38e={};if('$labels'===_0x3b19bf){for(const _0x65c108 of _0x1be089['getMergeFieldsIds']())_0x4cf38e[_0x65c108]=_0x1be089['getLabel'](_0x65c108)||_0x65c108;}else{const _0x45275d='$defaultValues'===_0x3b19bf?_0x1be089['getDefaultValues']():_0x1be089['getDataSetValues'](_0x3b19bf,!0x0);for(const _0x1a0d9d of Object['entries'](_0x45275d)){const [_0x1d8980,_0x1d0899]=_0x1a0d9d;_0x4cf38e[_0x1d8980]=null!==_0x1d0899?_0x1d0899:_0x1be089['getLabel'](_0x1d8980)||_0x1d8980;}}return{'mergeFieldsData':_0x4cf38e};}_standarizeRootsData(_0x4857cb,_0x4e1414,_0x4de306){let _0x3571df;_0x3571df='string'==typeof _0x4857cb?{[_0x4e1414['model']['document']['getRootNames']()[0x0]]:_0x4857cb}:_0x4857cb;const _0x31b721=this['_fixMediaEmbeds'](_0x3571df,_0x4e1414);return function(_0x4ce9b8,_0x2ad8ad){const _0x3365b3=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x5618dc,_0x45dacc]of _0x4ce9b8)_0x45dacc['classes']=Array['from'](_0x2ad8ad[_0x5618dc]['classList'])['filter'](_0x20b275=>!_0x3365b3['has'](_0x20b275))['join']('\x20');return _0x4ce9b8;}(this['_sortRoots'](_0x4e1414)['reduce']((_0xa82c18,_0x4aa725)=>(_0xa82c18['push']([_0x4aa725,{'content':_0x31b721[_0x4aa725],'classes':''}]),_0xa82c18),[]),_0x4de306);}['_fixMediaEmbeds'](_0x523ab0,_0x77694b){if(!_0x77694b['plugins']['has']('MediaEmbedEditing'))return _0x523ab0;const _0x43efe4=_0x77694b['plugins']['get']('MediaEmbedEditing');for(const [_0x5060ab,_0x1718d9]of Object['entries'](_0x523ab0)){const _0x1bc472=document['createElement']('div');_0x1bc472['innerHTML']=_0x319c31(_0x1718d9),_0x1bc472['querySelectorAll']('figure.media')['forEach'](_0x1ca0d5=>{const _0x10268d=_0x1ca0d5['querySelector']('oembed');if(_0x10268d){const _0x25a8fd=_0x10268d['getAttribute']('url');if(_0x25a8fd){const _0x2b3089=_0x43efe4['registry']['getMediaViewElement'](new lt(_0x77694b['editing']['view']['document']),_0x25a8fd,{'elementName':'','renderForEditingView':!0x0}),_0x5a75cc=document['createElement']('div');_0x5a75cc['classList']['add']('ck-media__wrapper'),_0x2b3089['render'](_0x5a75cc,_0x77694b['editing']['view']['domConverter']),_0x10268d['replaceWith'](_0x5a75cc);}}}),_0x523ab0[_0x5060ab]=_0x1bc472['innerHTML'];}return _0x523ab0;}_sortRoots(_0x11556f){if(!function(_0x78a873){return void 0x0!==_0x78a873['getRootsAttributes'];}(_0x11556f))return _0x11556f['model']['document']['getRootNames']();const _0x3bb231=[],_0x6cc495=new Map();for(const _0x4fc711 of _0x11556f['model']['document']['getRootNames']()){const _0x52f38c=_0x11556f['editing']['view']['getDomRoot'](_0x4fc711)['getClientRects']()['item'](0x0);_0x3bb231['push'](_0x4fc711),_0x6cc495['set'](_0x4fc711,_0x52f38c);}return _0x3bb231['sort']((_0x51137c,_0x504082)=>{const _0x4f5147=_0x6cc495['get'](_0x51137c),_0x1a1a17=_0x6cc495['get'](_0x504082);return _0x4f5147['y']-_0x1a1a17['y']||_0x4f5147['x']-_0x1a1a17['x'];}),_0x3bb231;}},Hn=class extends _0xdaca7a{static get requires(){return[vn,_0x4d6a67];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec316){super(_0x4ec316),_0x4ec316['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x4ec316['config']['define']('trackChanges.preview.renderFunction',(_0x529c45,_0x49fecd)=>{for(const _0x35eef4 of _0x49fecd)_0x529c45['appendChild'](_0x35eef4);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};
|