@ckeditor/ckeditor5-track-changes 49.0.0-alpha.1 → 49.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/translations/af.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
|
-
_0xee488e();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x9734d1,_0x3ad9cb){super(),this['id']=_0x3ad9cb['id'],this['type']=_0x3ad9cb['type'],this['subType']=_0x3ad9cb['subType']||null,this['author']=_0x3ad9cb['author'],this['creator']=_0x3ad9cb['creator']||_0x3ad9cb['author'],this['data']=null,this['_originalSuggestionId']=_0x3ad9cb['originalSuggestionId']||null,this['_model']=_0x9734d1,this['_onAccept']=_0x3ad9cb['onAccept'],this['_onDiscard']=_0x3ad9cb['onDiscard'],this['_onAttributesChange']=_0x3ad9cb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3ad9cb['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 _0x563008=this;for(;_0x563008['previous'];)_0x563008=_0x563008['previous'];return _0x563008;}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'](_0x1f8731){this['_markerNames']['add'](_0x1f8731);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x4c4fa6=>this['_model']['markers']['get'](_0x4c4fa6))['filter'](_0x27b575=>_0x27b575);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5ef93d=>{for(const _0x415971 of this['getMarkers']())_0x5ef93d['removeMarker'](_0x415971);}),this['_markerNames']['clear']();}['removeMarker'](_0x52fe2f){this['_model']['change'](_0x70d328=>{_0x70d328['removeMarker'](_0x52fe2f);}),this['_markerNames']['delete'](_0x52fe2f);}['addRange'](_0x2aea61){const _0x271dd7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x271dd7),this['_model']['change'](_0x4e6b8e=>{_0x4e6b8e['addMarker'](_0x271dd7,{'range':_0x2aea61,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x4318f3){for(const _0x434c8f of this['getRanges']())if(_0x434c8f['isIntersecting'](_0x4318f3))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x1e03e7=>_0x1e03e7['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x52f8c8,_0x4d6d9f)=>[..._0x52f8c8,..._0x4d6d9f['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4d60cc=this['getRanges']();if(0x1!=_0x4d60cc['length'])return null;const _0x278f75=_0x4d60cc[0x0],_0x4a7940=_0x278f75['start']['nodeAfter'],_0x23210b=_0x278f75['end']['nodeBefore'];return _0x4a7940 instanceof rt?_0x4a7940!=_0x23210b?null:_0x4a7940: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 _0x2ea238=[];let _0x296eac=this['head'];for(;_0x296eac;)_0x2ea238['push'](_0x296eac),_0x296eac=_0x296eac['next'];return _0x2ea238;}setAttribute(_0x133730,_0x108e99){const _0x1fe047=lt(this['attributes']);ht(_0x1fe047,_0x133730,_0x108e99),ut(_0x1fe047,this['attributes'])||(this['attributes']=_0x1fe047,this['_onAttributesChange'](_0x1fe047));}removeAttribute(_0x457d6c){const _0x1ac61d=lt(this['attributes']);gt(_0x1ac61d,_0x457d6c),ut(_0x1ac61d,this['attributes'])||(this['attributes']=_0x1ac61d,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 _0x533d19()['substr'](0x1,0x5);}};function wt(_0x5064e9,_0x4b057d,_0x46408c){const _0x23e275=_0x5064e9['t'],t=_0x5064e9['t'];switch(_0x4b057d){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',_0x46408c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46408c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46408c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46408c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46408c);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',_0x46408c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46408c);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',_0x46408c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46408c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46408c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46408c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46408c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46408c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46408c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46408c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46408c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46408c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46408c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46408c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46408c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46408c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46408c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46408c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46408c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x46408c);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'},_0x46408c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x46408c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x46408c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46408c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46408c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46408c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46408c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46408c);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'},_0x46408c);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'},_0x46408c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46408c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46408c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46408c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46408c);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'},_0x46408c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46408c);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'},_0x46408c);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'},_0x46408c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46408c);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'},_0x46408c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46408c);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'},_0x46408c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46408c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x46408c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x46408c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x46408c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46408c);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'},_0x46408c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46408c);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 _0x23e275({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46408c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x23e275({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46408c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46408c);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'},_0x46408c);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'},_0x46408c);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'},_0x46408c);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 _0x4b057d;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x286d46,_0x41d906){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x286d46,this['_locale']=_0x41d906;}getDescriptions(_0x5d85fd){const _0x2f956e=[],_0x5e5e9d=new Set(),_0x4c0e14=new Set();for(let _0x4ee63d=0x0;_0x4ee63d<_0x5d85fd['length'];_0x4ee63d++){const _0xcec1e3=_0x5d85fd[_0x4ee63d];if(!_0xcec1e3['isInContent'])continue;const _0x40e1c2=this['_handleCustomCallbackDescription'](_0xcec1e3);if(_0x40e1c2){if(null!=_0xcec1e3['subType']){if(_0x5e5e9d['has'](_0xcec1e3['subType']))continue;_0x5e5e9d['add'](_0xcec1e3['subType']);}_0x2f956e['push'](_0x40e1c2);}else{if('attribute'==_0xcec1e3['type']){const _0x4e6d78=_0xcec1e3['data']['key'];if(_0x4c0e14['has'](_0x4e6d78))continue;_0x4c0e14['add'](_0xcec1e3['data']['key']),'$elementName'==_0x4e6d78?this['_handleRenameSuggestionDescription'](_0x2f956e,_0xcec1e3):this['_handleAttributeSuggestionDescription'](_0x2f956e,_0xcec1e3);continue;}'insertion'!=_0xcec1e3['type']&&'deletion'!=_0xcec1e3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2f956e,_0xcec1e3,_0x5d85fd[_0x4ee63d+0x1]);}}return this['_resolveDescriptionItems'](_0x2f956e);}registerDescriptionCallback(_0x5e8f85){this['_customCallbacks']['push'](_0x5e8f85);}registerElementLabel(_0x49a62a,_0x487df7,_0xc6821b=_0x4faa0f['normal']){'function'==typeof _0x49a62a?_0x541bd2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x49a62a,'label':_0x487df7,'priority':_0xc6821b}):this['_itemLabels']['set'](_0x49a62a,_0x487df7);}registerAttributeLabel(_0x5e7ebb,_0x51b77c){this['_attributeLabels']['set'](_0x5e7ebb,_0x51b77c);}getItemLabel(_0x325208,_0x5b828e=0x1){let _0x5b9327;for(const _0x119051 of this['_itemLabelsCallbacks'])if(_0x119051['matchingCallback'](_0x325208)){_0x5b9327=_0x119051['label'];break;}return _0x5b9327||(_0x5b9327=this['_itemLabels']['get'](_0x325208['name'])),_0x5b9327?_0x5b9327(_0x5b828e):0x1!==_0x5b828e?_0x5b828e+'\x20'+_0x325208['name']+'s':''+_0x325208['name'];}_addDescriptionItems(_0x3e0384,_0x7591bc){const _0x2376b5=_0x7591bc['getFirstRange']()['getWalker'](),_0x1954da='insertion'==_0x7591bc['type']?'add':'remove';for(const _0x2b64c0 of _0x2376b5){const _0x14f60d=_0x2b64c0['item'],_0x21ff92=_0x3e0384[_0x3e0384['length']-0x1];if(_0x14f60d['is']('$textProxy'))_0x21ff92&&_0x21ff92['type']['indexOf']('Container')>-0x1&&_0x3e0384['pop'](),_0x21ff92&&'text'==_0x21ff92['type']?_0x21ff92[_0x1954da]+=_0x14f60d['data']:_0x3e0384['push']({'type':'text','add':'add'==_0x1954da?_0x14f60d['data']:'','remove':'remove'==_0x1954da?_0x14f60d['data']:''});else{if(this['_schema']['isObject'](_0x14f60d)){const _0xe08a57=_0x14f60d;if(_0x21ff92&&_0x21ff92['type']['indexOf']('Container')>-0x1&&_0x3e0384['pop'](),'elementEnd'==_0x2b64c0['type'])continue;_0x21ff92&&_0x21ff92['type']==_0x1954da+'Object'&&_0x21ff92['element']['name']==_0xe08a57['name']?_0x21ff92['quantity']++:_0x3e0384['push']({'type':_0x1954da+'Object','element':_0xe08a57,'quantity':0x1}),_0x2376b5['skip'](_0x1404d0=>!('elementEnd'==_0x1404d0['type']&&_0x1404d0['item']==_0x14f60d));}else{if(this['_schema']['checkChild'](_0x14f60d,'$text')||_0x14f60d['is']('element','softBreak')){const _0x4b0ba3=_0x14f60d;if('add'==_0x1954da&&'elementStart'==_0x2b64c0['type']||'remove'==_0x1954da&&'elementEnd'==_0x2b64c0['type'])continue;if(_0x21ff92&&-0x1==_0x21ff92['type']['indexOf']('Container')){'text'==_0x21ff92['type']&&(_0x21ff92[_0x1954da]+='\x0a');continue;}let _0x1008a3;if(_0x1008a3='add'==_0x1954da?_0x4b0ba3['nextSibling']&&!this['_schema']['isObject'](_0x4b0ba3['nextSibling'])?_0x4b0ba3['nextSibling']:null:_0x4b0ba3['previousSibling']&&!this['_schema']['isObject'](_0x4b0ba3['previousSibling'])?_0x4b0ba3['previousSibling']:null,_0x4b0ba3['isEmpty']||_0x1008a3&&_0x1008a3['isEmpty']){const _0x473b7b=_0x1008a3&&_0x1008a3['isEmpty']?_0x1008a3:_0x4b0ba3;_0x21ff92&&_0x21ff92['type']==_0x1954da+'EmptyContainer'&&_0x21ff92['element']['name']==_0x473b7b['name']?_0x21ff92['quantity']++:_0x3e0384['push']({'type':_0x1954da+'EmptyContainer','element':_0x473b7b,'quantity':0x1});}else _0x3e0384['push']({'type':_0x1954da+'Container','element':_0x4b0ba3});}}}}}_resolveDescriptionItems(_0x38cb1a){const _0x58e570=this['_locale'],_0x28ee5c=[],_0x3b51c9=[],_0x281a18=[];for(const _0x79d6a2 of _0x38cb1a)switch(_0x79d6a2['type']){case'text':if(_0x79d6a2['add']=_0x79d6a2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x79d6a2['remove']=_0x79d6a2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x79d6a2['add']&&''!=_0x79d6a2['remove']){_0x28ee5c['push']({'type':'replace','content':wt(_0x58e570,'REPLACE_TEXT',['\x22'+_0x79d6a2['remove']+'\x22','\x22'+_0x79d6a2['add']+'\x22'])});continue;}if(null!=_0x79d6a2['add']['match'](/^ +$/)){_0x28ee5c['push']({'type':'insertion','content':wt(_0x58e570,'*Insert:*\x20%0',wt(_0x58e570,'ELEMENT_SPACE',_0x79d6a2['add']['length']))});continue;}if(null!=_0x79d6a2['remove']['match'](/^ +$/)){_0x28ee5c['push']({'type':'deletion','content':wt(_0x58e570,'*Remove:*\x20%0',wt(_0x58e570,'ELEMENT_SPACE',_0x79d6a2['remove']['length']))});continue;}if(''!=_0x79d6a2['add']){_0x28ee5c['push']({'type':'insertion','content':wt(_0x58e570,'*Insert:*\x20%0','\x22'+_0x79d6a2['add']+'\x22')});continue;}_0x28ee5c['push']({'type':'deletion','content':wt(_0x58e570,'*Remove:*\x20%0','\x22'+_0x79d6a2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28ee5c['push']({'type':'insertion','content':wt(_0x58e570,'*Insert:*\x20%0',this['getItemLabel'](_0x79d6a2['element'],_0x79d6a2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28ee5c['push']({'type':'deletion','content':wt(_0x58e570,'*Remove:*\x20%0',this['getItemLabel'](_0x79d6a2['element'],_0x79d6a2['quantity']))});continue;case'addContainer':_0x28ee5c['push']({'type':'insertion','content':wt(_0x58e570,'*Split:*\x20%0',this['getItemLabel'](_0x79d6a2['element'],_0x79d6a2['quantity']))});continue;case'removeContainer':_0x28ee5c['push']({'type':'deletion','content':wt(_0x58e570,'*Merge:*\x20%0',this['getItemLabel'](_0x79d6a2['element'],_0x79d6a2['quantity']))});continue;case'addFormat':_0x3b51c9['push'](_0x79d6a2['key']);continue;case'removeFormat':_0x281a18['push'](_0x79d6a2['key']);continue;default:_0x28ee5c['push'](_0x79d6a2);}if(_0x3b51c9['length']){const _0x57d162=_0x3b51c9['map'](_0x49b5fa=>this['_attributeLabels']['has'](_0x49b5fa)?this['_attributeLabels']['get'](_0x49b5fa):_0x49b5fa)['join'](',\x20');_0x28ee5c['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x57d162)});}if(_0x281a18['length']){const _0x4a7146=_0x281a18['map'](_0x38f747=>this['_attributeLabels']['has'](_0x38f747)?this['_attributeLabels']['get'](_0x38f747):_0x38f747)['join'](',\x20');_0x28ee5c['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x4a7146)});}return _0x28ee5c;}_handleCustomCallbackDescription(_0x4ab99a){for(const _0x55c666 of this['_customCallbacks']){const _0x2049e0=_0x55c666(_0x4ab99a);if(_0x2049e0&&'type'in _0x2049e0)return _0x2049e0;}}_handleAttributeSuggestionDescription(_0x57e57b,_0x33a27c){const _0xd4a9de=_0x33a27c['data'],_0x5b1f8f=void 0x0===_0xd4a9de['newValue']?'removeFormat':'addFormat';_0x57e57b['push']({'type':_0x5b1f8f,'key':_0xd4a9de['key']});}_handleRenameSuggestionDescription(_0x29b9f4,_0x485574){_0x29b9f4['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x485574['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x1fb750,_0x18e41a,_0x110041){if(this['_addDescriptionItems'](_0x1fb750,_0x18e41a),_0x110041&&_0x110041['getFirstRange']()&&!_0x18e41a['getFirstRange']()['end']['isEqual'](_0x110041['getFirstRange']()['start'])){const _0x498e1d=_0x1fb750[_0x1fb750['length']-0x1],_0x4ace36='insertion'==_0x18e41a['type']?'add':'remove';_0x498e1d&&'text'==_0x498e1d['type']&&(_0x498e1d[_0x4ace36]+='\x0a');}}},Ft=class extends _0x5ad79e{afterInit(){const _0x536fae=this['editor'],_0x1d0d88=_0x536fae['plugins']['get']('TrackChangesEditing');_0x536fae['commands']['get']('showAIAssistant')&&_0x1d0d88['enableCommand']('showAIAssistant');}},vt=class extends _0x5ad79e{afterInit(){const _0x3b84e7=this['editor'],_0xaa2eff=_0x3b84e7['plugins']['get']('TrackChangesEditing');_0x3b84e7['commands']['get']('toggleAi')&&_0xaa2eff['enableCommand']('toggleAi');}},Dt=class extends _0x5ad79e{afterInit(){const _0x44b40f=this['editor'],_0x47e5ae=_0x44b40f['plugins']['get']('TrackChangesEditing');_0x44b40f['commands']['get']('aiQuickAction')&&_0x47e5ae['enableCommand']('aiQuickAction');}},Ut=class extends _0x5ad79e{afterInit(){const _0x3ed903=this['editor'],_0x175ea6=_0x3ed903['locale'];if(!_0x3ed903['plugins']['has']('AlignmentEditing'))return;const _0x5b1e14=_0x3ed903['plugins']['get']('TrackChangesEditing');_0x5b1e14['enableDefaultAttributesIntegration']('alignment'),_0x5b1e14['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x175ea6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x33be83=this['editor'],_0x4decf=_0x33be83['locale'];_0x33be83['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cacf3=>{if('formatBlock'!=_0x1cacf3['type'])return;const {data:_0x49ed03}=_0x1cacf3;if(_0x49ed03&&'alignment'==_0x49ed03['commandName']){const _0x264cc9=_0x49ed03['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x4decf,'*Format:*\x20%0',function(_0x41d7aa){switch(_0x41d7aa){case'left':return wt(_0x4decf,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x4decf,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x4decf,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x4decf,'FORMAT_JUSTIFY_TEXT');}}(_0x264cc9))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x5ad79e{afterInit(){const _0x39ca7b=this['editor'],_0x2e9cf4=_0x39ca7b['plugins']['get']('TrackChangesEditing'),_0x34ffbf=_0x39ca7b['locale'];for(const _0x37e9ba of Pt){if(!_0x39ca7b['plugins']['has'](_0x37e9ba))continue;const _0x232f85=_0x37e9ba['slice'](0x0,-0x7)['toLowerCase'](),_0x173306='FORMAT_'+_0x232f85['toUpperCase']();_0x2e9cf4['enableDefaultAttributesIntegration'](_0x232f85),_0x2e9cf4['descriptionFactory']['registerAttributeLabel'](_0x232f85,wt(_0x34ffbf,_0x173306));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1a965e=this['editor'],_0x122003=_0x1a965e['locale'],_0x2bcc60=_0x1a965e['plugins']['get']('TrackChangesEditing');function _0x2e7eff(_0x4d3115,_0x6d2f8f){_0x2bcc60['descriptionFactory']['registerDescriptionCallback'](_0x42d55f=>{if('formatInline'!=_0x42d55f['type'])return;const {data:_0x10106b}=_0x42d55f;return _0x10106b&&_0x10106b['commandName']===_0x4d3115?_0x10106b['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x122003,'*Format:*\x20%0',_0x6d2f8f)}:{'type':'format','content':wt(_0x122003,'*Remove\x20format:*\x20%0',_0x6d2f8f)}:void 0x0;});}_0x2e7eff('bold',wt(_0x122003,'FORMAT_BOLD')),_0x2e7eff('italic',wt(_0x122003,'FORMAT_ITALIC')),_0x2e7eff('underline',wt(_0x122003,'FORMAT_UNDERLINE')),_0x2e7eff('code',wt(_0x122003,'FORMAT_CODE')),_0x2e7eff('strikethrough',wt(_0x122003,'FORMAT_STRIKETHROUGH')),_0x2e7eff('subscript',wt(_0x122003,'FORMAT_SUBSCRIPT')),_0x2e7eff('superscript',wt(_0x122003,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x5ad79e{afterInit(){const _0x3eb457=this['editor'],_0x6bf687=_0x3eb457['locale'];if(!_0x3eb457['plugins']['has']('BlockQuoteEditing'))return;const _0x4dc975=_0x3eb457['plugins']['get']('TrackChangesEditing'),_0x395b36=this['editor']['commands']['get']('blockQuote');_0x4dc975['enableCommand']('blockQuote',(_0x155b10,_0x27a420={})=>{const _0x4a3971=this['editor']['model']['document']['selection'],_0x29b0a9=_0x27a420&&void 0x0!==_0x27a420['forceValue']?_0x27a420['forceValue']:!_0x395b36['value'];let _0x1dbd53=[];if(_0x29b0a9){const _0x235bc7=Array['from'](_0x4a3971['getSelectedBlocks']())['filter'](_0x47f2b5=>Ht(_0x47f2b5)||function(_0x2ff007,_0x3b76f4){const _0xee5874=_0x3b76f4['createContext'](_0x2ff007['parent']);return!!_0x3b76f4['checkChild'](_0xee5874,'blockQuote')&&!!_0x3b76f4['checkChild'](_0xee5874['push']('blockQuote'),_0x2ff007);}(_0x47f2b5,this['editor']['model']['schema']));_0x1dbd53=kt(_0x235bc7,_0x3eb457['model']);}else{const _0x571834=Array['from'](_0x4a3971['getSelectedBlocks']())['filter'](_0x1f8422=>Ht(_0x1f8422));_0x1dbd53=kt(_0x571834,_0x3eb457['model']);}_0x3eb457['model']['change'](()=>{for(const _0x2f2b5d of _0x1dbd53)_0x4dc975['markBlockFormat'](_0x2f2b5d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29b0a9}]});});}),_0x4dc975['descriptionFactory']['registerDescriptionCallback'](_0x39da02=>{const {data:_0xc35ed3}=_0x39da02;if(_0xc35ed3&&'blockQuote'==_0xc35ed3['commandName']){const _0x27a58c=wt(_0x6bf687,'ELEMENT_BLOCK_QUOTE');return _0xc35ed3['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x6bf687,'*Set\x20format:*\x20%0',_0x27a58c)}:{'type':'format','content':wt(_0x6bf687,'*Remove\x20format:*\x20%0',_0x27a58c)};}});}};function Ht(_0x57218c){return'blockQuote'==_0x57218c['parent']['name'];}var $t=class extends _0x5ad79e{afterInit(){const _0x24bf5f=this['editor'],_0xa600a9=_0x24bf5f['locale'],_0x263fbe=_0x24bf5f['plugins']['get']('TrackChangesEditing');_0x24bf5f['plugins']['has']('BookmarkEditing')&&(_0x263fbe['enableCommand']('insertBookmark'),_0x263fbe['enableDefaultAttributesIntegration']('updateBookmark'),_0x263fbe['descriptionFactory']['registerDescriptionCallback'](_0x57d330=>{if('insertion'!=_0x57d330['type']&&'deletion'!=_0x57d330['type']&&'attribute'!=_0x57d330['type'])return;const _0x4e83df=_0x57d330['getContainedElement']();if(null==_0x4e83df)return;if(!_0x4e83df['is']('element','bookmark'))return;const _0x5cef6f=_0x4e83df['getAttribute']('bookmarkId');if('insertion'==_0x57d330['type'])return{'type':'insertion','content':wt(_0xa600a9,'*Insert:*\x20%0','\x22'+_0x5cef6f+'\x22\x20'+wt(_0xa600a9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x57d330['type'])return{'type':'deletion','content':wt(_0xa600a9,'*Remove:*\x20%0','\x22'+_0x5cef6f+'\x22\x20'+wt(_0xa600a9,'ELEMENT_BOOKMARK'))};const {data:_0x1cc291}=_0x57d330;return _0x1cc291&&'bookmarkId'==_0x1cc291['key']?{'type':'format','content':wt(_0xa600a9,'*Set\x20bookmark:*\x20%0','\x22'+_0x1cc291['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x5ad79e{afterInit(){const _0x4c381e=this['editor'];_0x4c381e['plugins']['has']('CaseChange')&&(_0x4c381e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4c381e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4c381e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x5ad79e{afterInit(){const _0x535d44=this['editor'];_0x535d44['commands']['get']('ckbox')&&_0x535d44['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x5ad79e{static get requires(){return[ft,mt];}constructor(_0x4f4abe){super(_0x4f4abe),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x17ec09=this['editor'],_0x145333=_0x17ec09['plugins']['get']('ClipboardMarkersUtils'),_0x12a9d2=_0x17ec09['plugins']['get'](mt);_0x145333['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x12a9d2['on']('outputTransformation',(_0x10aa44,_0x233ac7)=>{const _0x9dc290=this['_getSuggestionEntries'](_0x233ac7);for(const [_0x310d4b,_0x313470]of _0x233ac7['content']['markers']){const _0x56a5aa=at['_fromRangeInDocumentFragment'](_0x313470,_0x17ec09['model']);function _0x314ff0(){_0x56a5aa['detach'](),_0x233ac7['content']['markers']['delete'](_0x310d4b);}_0x56a5aa['on']('change:drop',_0x314ff0),(_0x310d4b['startsWith']('suggestion:')||_0x310d4b['startsWith']('comment:'))&&_0x56a5aa['on']('change:range',()=>{_0x56a5aa['isCollapsed']&&_0x314ff0();}),_0x233ac7['content']['markers']['set'](_0x310d4b,_0x56a5aa);}const _0x4a3fe1=_0x9dc290['filter'](_0x574744=>'deletion'===_0x574744['meta']['type'])['map'](_0x51beb7=>_0x51beb7['modelRange']);if(this['_shouldSkipDeletions'](_0x4a3fe1,_0x233ac7['content']))return[..._0x9dc290]['forEach'](_0x587735=>{_0x233ac7['content']['markers']['get'](_0x587735['markerName'])['detach'](),_0x233ac7['content']['markers']['delete'](_0x587735['markerName']);}),void this['_restoreRegularRanges'](_0x233ac7['content']['markers']);[..._0x9dc290]['forEach'](_0x3bff64=>{const _0x32daf8=_0x17ec09['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x3bff64['meta']['type'],_0x3bff64['meta']['subType'],'accept'),{markerName:_0xe98f7c,meta:_0x37ff11}=_0x3bff64;if(_0x233ac7['content']['markers']['has'](_0xe98f7c)){switch(_0x37ff11['type']){case'deletion':if('tableRow'===_0x37ff11['subType']||'tableColumn'===_0x37ff11['subType']){if(!_0x17ec09['plugins']['has']('TableUtils'))break;const _0x1900b5=_0x17ec09['plugins']['get']('TableUtils'),_0x21eab3=_0x1900b5['getSelectionAffectedTableCells'](_0x17ec09['model']['createSelection'](_0x233ac7['content']['markers']['get'](_0xe98f7c))),_0x54eb2b=_0x21eab3[0x0]['findAncestor']('table');if('tableRow'===_0x37ff11['subType']){const {first:_0x24cf07,last:_0x540ac4}=_0x1900b5['getRowIndexes'](_0x21eab3);_0x1900b5['removeRows'](_0x54eb2b,{'at':_0x24cf07,'rows':_0x540ac4-_0x24cf07+0x1});}else{const {first:_0x2a6699,last:_0x44cc60}=_0x1900b5['getColumnIndexes'](_0x21eab3);_0x1900b5['removeColumns'](_0x54eb2b,{'at':_0x2a6699,'columns':_0x44cc60-_0x2a6699+0x1});}break;}_0x32daf8([_0x233ac7['content']['markers']['get'](_0xe98f7c)]);}_0x233ac7['content']['markers']['has'](_0xe98f7c)&&(_0x233ac7['content']['markers']['get'](_0xe98f7c)['detach'](),_0x233ac7['content']['markers']['delete'](_0xe98f7c));}}),this['_restoreRegularRanges'](_0x233ac7['content']['markers']);});}_getSuggestionEntries(_0x593296){const _0x29f13d=_0x2b4edd=>'dragstart'===_0x593296['method']?_0x2b4edd['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x2b4edd;return Array['from'](_0x593296['content']['markers'])['map'](([_0x2951b0,_0x554d49])=>({'markerName':_0x2951b0,'modelRange':_0x554d49,'meta':nt(_0x29f13d(_0x2951b0))}))['filter'](({meta:_0x373de7})=>'suggestion'===_0x373de7['group']);}_shouldSkipDeletions(_0x1565c5,_0x2c1e80){if(!_0x1565c5['length'])return!0x1;let _0x2c3c45=[this['editor']['model']['createRangeIn'](_0x2c1e80)];for(const _0x5bf351 of _0x1565c5)_0x2c3c45=_0x2c3c45['flatMap'](_0x99aba6=>_0x99aba6['getDifference'](_0x5bf351));return!_0x2c3c45['some'](_0x2ba2ee=>this['editor']['model']['hasContent'](_0x2ba2ee,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x240be4){[..._0x240be4['keys']()]['forEach'](_0x5542df=>{const _0x5a055e=_0x240be4['get'](_0x5542df);_0x5a055e['detach'](),_0x240be4['set'](_0x5542df,_0x5a055e['toRange']());});}},jt=class extends _0x5ad79e{afterInit(){const _0x309de6=this['editor'];if(!_0x309de6['plugins']['has']('CodeBlock'))return;const _0x416f22=_0x309de6['plugins']['get']('TrackChangesEditing'),_0x3a6aa9=_0x309de6['locale'],_0x528870=_0x309de6['config']['get']('codeBlock')['languages'],_0x5c7434=_0x309de6['commands']['get']('codeBlock');_0x416f22['enableCommand']('indentCodeBlock'),_0x416f22['enableCommand']('outdentCodeBlock'),_0x416f22['enableCommand']('codeBlock',(_0x2582d7,_0x2b6537={})=>{const _0x532966=_0x309de6['model'],_0x267ad6=_0x309de6['model']['document']['selection'],_0x4fbcfc=_0x2b6537&&void 0x0!==_0x2b6537['forceValue']?_0x2b6537['forceValue']:!_0x5c7434['value'];let _0x7e9be3;_0x2b6537['language']||(_0x2b6537['language']=_0x528870[0x0]['language']),_0x7e9be3=_0x4fbcfc?Array['from'](_0x267ad6['getSelectedBlocks']())['filter'](_0x5b444c=>{return Kt(_0x5b444c)||(_0x5dfeaf=_0x5b444c,_0x1776ce=_0x532966['schema'],!_0x5dfeaf['is']('rootElement')&&!_0x1776ce['isLimit'](_0x5dfeaf)&&_0x1776ce['checkChild'](_0x5dfeaf['parent'],'codeBlock'));var _0x5dfeaf,_0x1776ce;}):Array['from'](_0x267ad6['getSelectedBlocks']())['filter'](_0x5677b5=>Kt(_0x5677b5));const _0x2954cc=kt(_0x7e9be3,_0x532966);_0x532966['change'](()=>{for(const _0xaa264 of _0x2954cc)_0x416f22['markBlockFormat'](_0xaa264,{'commandName':'codeBlock','commandParams':[{..._0x2b6537,'forceValue':_0x4fbcfc}],'formatGroupId':'blockName'});});}),(_0x416f22['descriptionFactory']['registerElementLabel']('codeBlock',_0x2fa13f=>wt(_0x3a6aa9,'ELEMENT_CODE_BLOCK',_0x2fa13f)),_0x416f22['descriptionFactory']['registerDescriptionCallback'](_0x37b252=>{if('formatBlock'!=_0x37b252['type'])return;const _0x244271=_0x3a6aa9['t'],{data:_0x33da4c}=_0x37b252;if(!_0x33da4c||'codeBlock'!=_0x33da4c['commandName'])return;const _0x179cfc=_0x33da4c['commandParams'][0x0]['language'],_0x2e0b27=_0x244271(_0x528870['find'](_0x35692e=>_0x35692e['language']===_0x179cfc)['label'])['toLowerCase']();return _0x33da4c['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3a6aa9,'*Set\x20format:*\x20%0',wt(_0x3a6aa9,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2e0b27+')')}:{'type':'format','content':wt(_0x3a6aa9,'*Remove\x20format:*\x20%0',wt(_0x3a6aa9,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x3cc231){return'codeBlock'==_0x3cc231['name'];}var Xt=class extends _0x5ad79e{afterInit(){const _0x42dcad=this['editor'];_0x42dcad['plugins']['has']('CommentsEditing')&&_0x42dcad['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x5ad79e{static get requires(){return[Et];}init(){const _0x323dbb=this['editor'],_0x40b442=_0x323dbb['plugins']['get']('TrackChangesEditing');_0x40b442['enableCommand']('delete');const _0x51f208=_0x323dbb['commands']['get']('deleteForward');_0x40b442['enableCommand']('deleteForward',(_0x35bda3,_0x5c7cea={})=>{const _0x49b3c6=_0x323dbb['model']['createSelection'](_0x323dbb['model']['document']['selection']);_0x49b3c6['isCollapsed']&&_0x323dbb['model']['modifySelection'](_0x49b3c6,{'direction':'forward','unit':_0x5c7cea['unit']});const _0x3ef64d=_0x49b3c6['getFirstRange'](),_0x42f6b0=at['fromRange'](_0x3ef64d);let _0x8ac733;_0x35bda3(_0x5c7cea),_0x8ac733='$graveyard'==_0x42f6b0['root']['rootName']?_0x323dbb['model']['createRange'](_0x3ef64d['start']):_0x323dbb['model']['createRange'](_0x42f6b0['start'],_0x42f6b0['end']),_0x42f6b0['detach'](),_0x323dbb['model']['enqueueChange'](_0x51f208['buffer']['batch'],_0x471524=>{_0x51f208['buffer']['lock'](),_0x471524['setSelection'](_0x471524['createRange'](_0x8ac733['end'])),_0x51f208['buffer']['unlock']();});});}},Yt=class extends _0x5ad79e{afterInit(){const _0x5a0d96=this['editor'];if(!_0x5a0d96['plugins']['has']('ListEditing'))return;const _0x3e3c57=_0x5a0d96['locale'],_0x16b94f=_0x5a0d96['plugins']['get']('TrackChangesEditing'),_0x230576=_0x5a0d96['plugins']['has']('TodoListEditing'),_0x4fec2a=!!_0x5a0d96['config']['get']('list.multiBlock');function _0x4e2658(_0x1652a0){return{'type':'format','content':''+wt(_0x3e3c57,'*Set\x20format:*\x20%0',_0x1652a0)};}function _0x37c889(_0x9c59e6){return{'type':'format','content':''+wt(_0x3e3c57,'*Remove\x20format:*\x20%0',_0x9c59e6)};}_0x16b94f['enableDefaultAttributesIntegration']('numberedList'),_0x16b94f['enableDefaultAttributesIntegration']('bulletedList'),_0x16b94f['enableDefaultAttributesIntegration']('customNumberedList'),_0x16b94f['enableDefaultAttributesIntegration']('customBulletedList'),_0x16b94f['enableDefaultAttributesIntegration']('indentList'),_0x16b94f['enableDefaultAttributesIntegration']('outdentList'),_0x16b94f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x16b94f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4fec2a&&(_0x16b94f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x16b94f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x230576&&(_0x16b94f['enableDefaultAttributesIntegration']('todoList'),_0x16b94f['enableDefaultAttributesIntegration']('checkTodoList'),_0x16b94f['descriptionFactory']['registerDescriptionCallback'](_0x393f85=>{const {data:_0x531933}=_0x393f85;if(_0x531933&&'todoListChecked'==_0x531933['key'])return{'type':'format','content':_0x531933['newValue']?wt(_0x3e3c57,'*Check\x20item*'):wt(_0x3e3c57,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31ad20=>{if(_0x31ad20['batch']['isUndo'])return!0x1;let _0x40a74c=!0x1;const _0x4eb61e=_0x16b94f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c0f1c=>'todoListChecked'===_0x16b94f['_getAttributeKey'](_0x4c0f1c));for(const _0x434c37 of _0x4eb61e)'todo'!=_0x434c37['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x16b94f['_findSuggestions'](_0x434c37['getFirstRange'](),'attribute')['find'](_0x3f8cdc=>'listType'===_0x16b94f['_getAttributeKey'](_0x3f8cdc['suggestion']))||(_0x31ad20['removeMarker'](_0x434c37['getFirstMarker']()),_0x40a74c=!0x0));return _0x40a74c;})),_0x16b94f['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x3e3c57,'FORMAT_INDENT'));const _0x24f11c={'type':'format','content':''};_0x16b94f['descriptionFactory']['registerDescriptionCallback'](_0x5d7890=>{const {data:_0x4c1d40}=_0x5d7890;if(!_0x4c1d40||'listType'!=_0x4c1d40['key'])return;let _0x4dd89e=_0x5d7890['head'];for(;_0x4dd89e;){if(_0x4dd89e['data']&&(('listStyle'==_0x4dd89e['data']['key']||'listMarkerStyle'==_0x4dd89e['data']['key'])&&(_0x4dd89e['data']['newValue']&&'default'!=_0x4dd89e['data']['newValue']||'default'!=_0x4dd89e['data']['oldValue']&&!_0x4c1d40['newValue'])||!_0x4fec2a&&'$elementName'==_0x4dd89e['data']['key']))return _0x24f11c;_0x4dd89e=_0x4dd89e['next'];}if(null==_0x4c1d40['newValue'])switch(_0x4c1d40['oldValue']){case'bulleted':return _0x37c889(wt(_0x3e3c57,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37c889(wt(_0x3e3c57,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37c889(wt(_0x3e3c57,'ELEMENT_TODO_LIST'));}switch(_0x4c1d40['newValue']){case'bulleted':return _0x4e2658(wt(_0x3e3c57,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e2658(wt(_0x3e3c57,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e2658(wt(_0x3e3c57,'ELEMENT_TODO_LIST'));}}),_0x16b94f['descriptionFactory']['registerDescriptionCallback'](_0x1b9219=>{const {data:_0xf8e9b7}=_0x1b9219;if(_0xf8e9b7&&'listIndent'==_0xf8e9b7['key'])return null==_0xf8e9b7['newValue']||null==_0xf8e9b7['oldValue']&&0x0==_0xf8e9b7['newValue']?_0x24f11c:void 0x0;}),_0x16b94f['descriptionFactory']['registerDescriptionCallback'](_0x3f9e14=>{if('attribute'!=_0x3f9e14['type'])return;const {data:_0x4f4130}=_0x3f9e14;if(!_0x4f4130||'listItemId'!=_0x4f4130['key'])return;const _0x37870f=Qt(_0x3f9e14);return'newValue'==_0x37870f?{'type':'format','content':wt(_0x3e3c57,'*Merge:*\x20list\x20item')}:'oldValue'==_0x37870f?{'type':'format','content':wt(_0x3e3c57,'*Split:*\x20list\x20item')}:_0x24f11c;}),_0x5a0d96['model']['document']['registerPostFixer'](_0x5163ec=>this['listItemIdFixer'](_0x5163ec)),_0x5a0d96['model']['document']['registerPostFixer'](_0xf60f8b=>this['noTrackChangesFixer'](_0xf60f8b)),_0x5a0d96['model']['document']['on']('change:data',(_0x528220,_0x49c5c8)=>{if(_0x49c5c8['isUndo']||!_0x49c5c8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x225bb8){if(_0x225bb8['batch']['isUndo']||!_0x225bb8['batch']['isLocal'])return!0x1;let _0x43e861=!0x1;const _0x18a88b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ea402=>_0x1ea402['data']&&'listItemId'==_0x1ea402['data']['key'])['filter'](_0x22b542=>_0x22b542['data']['newValue']&&_0x22b542['data']['oldValue']);for(const _0x2710b7 of _0x18a88b)Qt(_0x2710b7)||(_0x225bb8['removeMarker'](_0x2710b7['getFirstMarker']()),_0x43e861=!0x0);return _0x43e861;}['noTrackChangesFixer'](_0x67d89c){if(_0x67d89c['batch']['isUndo']||!_0x67d89c['batch']['isLocal'])return!0x1;const _0xdc98b=this['editor']['model']['document']['differ'],_0x2bfcec=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2bfcec['trackChangesCommand']['value'])return!0x1;let _0x259fd0=!0x1;const _0x161097=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3fcd0d=_0xdc98b['getChanges']()['filter'](_0x2ca253=>'attribute'==_0x2ca253['type'])['filter'](_0x67f093=>_0x161097['has'](_0x67f093['attributeKey']));if(0x0==_0x3fcd0d['length'])return _0x259fd0;const _0x2a0c34=new Set(_0xdc98b['getMarkersToAdd']()['filter'](_0x2d222d=>{if(!_0x2d222d['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x26d233=nt(_0x2d222d['name'])['subType']['split']('|')[0x0];return _0x161097['has'](_0x26d233);})['map'](_0x416d83=>nt(_0x416d83['name'])['id']));for(const _0x4f496e of _0x3fcd0d){const _0xe8e03d=_0x2bfcec['_findSuggestions'](_0x4f496e['range'],'attribute')['filter'](_0x2467b5=>{if(_0x2467b5['meta']['isNextTo'])return!0x1;if(_0x2a0c34['has'](_0x2467b5['suggestion']['id']))return!0x1;const _0xd7a877=_0x2bfcec['_getAttributeKey'](_0x2467b5['suggestion']);return _0x161097['has'](_0xd7a877);})['map'](_0x13df4b=>_0x13df4b['suggestion']);if(_0xe8e03d['length']){for(const _0x1cc18f of _0xe8e03d)_0x67d89c['removeMarker'](_0x1cc18f['getFirstMarker']());_0x259fd0=!0x0;}}return _0x259fd0;}['assureChains'](){const _0x38baa6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x704e74=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x188c1d;const _0x81bfe7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2f9762=>{if(_0x2f9762['data']['oldRange']||!_0x2f9762['data']['newRange'])return null;if(!_0x2f9762['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1d1384}=nt(_0x2f9762['name']);if(!_0x38baa6['hasSuggestion'](_0x1d1384))return null;const _0x3b00a6=_0x38baa6['getSuggestion'](_0x1d1384);return _0x704e74['includes'](_0x3b00a6['data']['key']);})['map'](_0x415dc0=>{const {id:_0x475cc9}=nt(_0x415dc0['name']),_0x515118=_0x38baa6['getSuggestion'](_0x475cc9);return _0x188c1d=_0x515118['attributes']['groupId'],_0x515118['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x81bfe7['size'])return;const _0x5f4b64=_0x38baa6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb29491=>'attribute'==_0xb29491['type']&&_0xb29491['data']&&_0x704e74['includes'](_0xb29491['data']['key'])&&_0xb29491['attributes']['groupId']!=_0x188c1d)['map'](_0x4a414e=>({'listItem':_0x4a414e['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4a414e['attributes']['groupId']})),_0x3d63cc=new Set();for(const {groupId:_0x26b1dc,listItem:_0xc89335}of _0x5f4b64)_0x81bfe7['has'](_0xc89335)&&_0x3d63cc['add'](_0x26b1dc);for(const _0x4ab496 of _0x38baa6['getSuggestions']())_0x3d63cc['has'](_0x4ab496['attributes']['groupId'])&&_0x4ab496['setAttribute']('groupId',_0x188c1d);}_supportLegacySuggestions(){const _0xcf4771=this['editor'],_0x25c8ba=_0xcf4771['locale'],_0x3b7333=_0xcf4771['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b7333['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x732d5c,_0x1388ff){const _0x99205e=[];for(let _0xa0c1e0 of _0x732d5c)_0xa0c1e0['start']['nodeAfter']===_0xa0c1e0['end']['parent']&&(_0xa0c1e0=_0xcf4771['model']['createRange'](_0xcf4771['model']['createPositionAt'](_0xa0c1e0['start']['nodeAfter'],0x0))),_0x99205e['push'](_0xa0c1e0);_0xcf4771['model']['change'](_0x131432=>{const _0xf7ef4f=_0xcf4771['model']['document']['selection'],_0x55ebf5=Array['from'](_0xf7ef4f['getRanges']())['map'](_0xc79548=>at['fromRange'](_0xc79548));_0x131432['setSelection'](_0x99205e),_0xcf4771['commands']['get'](_0x1388ff['commandName'])['refresh'](),_0x1388ff['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xcf4771['execute'](_0x1388ff['commandName'],..._0x1388ff['commandParams']),_0x131432['setSelection'](_0x55ebf5);for(const _0x351c0c of _0x55ebf5)_0x351c0c['detach']();});}),_0x3b7333['descriptionFactory']['registerElementLabel'](function(_0x5c6509){const _0xa1acd9=!_0xcf4771['model']['schema']['isObject'](_0x5c6509),_0x36458a=_0x5c6509['previousSibling'],_0x546ffc=_0x5c6509['nextSibling'],_0x37e15d=_0x5c6509['getAttribute']('listItemId'),_0x3b6e37=!_0x36458a||_0x36458a['getAttribute']('listItemId')!==_0x37e15d,_0x230c5a=!_0x546ffc||_0x546ffc['getAttribute']('listItemId')!==_0x37e15d;return _0xa1acd9&&Boolean(_0x37e15d)&&_0x3b6e37&&_0x230c5a;},_0x4020b2=>wt(_0x25c8ba,'ELEMENT_LIST_ITEM',_0x4020b2));}_registerLegacyDescription(){const _0x1f42ec=this['editor'],_0x5703ea=_0x1f42ec['locale'];function _0x5046fd(_0x13adf2){const _0x12d731=_0x1f42ec['commands']['get']('bulletedList')['value'],_0x394291=_0x1f42ec['commands']['get']('numberedList')['value'];return'numberedList'===_0x13adf2?_0x12d731:_0x394291;}_0x1f42ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5205b0){if('formatBlock'!=_0x5205b0['type'])return;const {data:_0x5290cd}=_0x5205b0;if(!_0x5290cd)return;let _0x34db3c,_0x4a2dcb,_0x5e7725,_0xc64c28;switch(_0x5290cd['commandName']){case'bulletedList':_0x5e7725=_0x5290cd['commandParams'][0x0]['forceValue'],_0xc64c28=_0x5046fd(_0x5290cd['commandName']),_0x34db3c=_0x5e7725?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc64c28&&_0x1f42ec['config']['get']('list.multiBlock')||(_0x34db3c='*Change\x20to:*\x20%0'),_0x4a2dcb={'type':'format','content':wt(_0x5703ea,_0x34db3c,wt(_0x5703ea,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e7725=_0x5290cd['commandParams'][0x0]['forceValue'],_0xc64c28=_0x5046fd(_0x5290cd['commandName']),_0x34db3c=_0x5e7725?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xc64c28&&_0x1f42ec['config']['get']('list.multiBlock')||(_0x34db3c='*Change\x20to:*\x20%0'),_0x4a2dcb={'type':'format','content':wt(_0x5703ea,_0x34db3c,wt(_0x5703ea,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x34db3c='*Indent:*\x20%0',_0x4a2dcb={'type':'format','content':wt(_0x5703ea,_0x34db3c,wt(_0x5703ea,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x34db3c=function(_0x3f4a6b){const _0x261974=_0x3f4a6b['getFirstRange']();let _0x5f989b=_0x261974['start']['nodeAfter'];for(;_0x5f989b&&_0x261974['containsItem'](_0x5f989b);){if(_0x5f989b['getAttribute']('listIndent')>0x0)return!0x1;_0x5f989b=_0x5f989b['nextSibling'];}return!0x0;}(_0x5205b0)?wt(_0x5703ea,'*Format:*\x20remove\x20from\x20%0',wt(_0x5703ea,function(_0x4fd747){return'ELEMENT_'+_0x4fd747['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5205b0))):wt(_0x5703ea,'*Outdent:*\x20%0',wt(_0x5703ea,'ELEMENT_LIST_ITEM')),_0x4a2dcb={'type':'format','content':_0x34db3c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5290cd['multipleBlocks']&&(_0x34db3c='*Merge:*\x20%0',_0x4a2dcb={'type':'deletion','content':wt(_0x5703ea,_0x34db3c,wt(_0x5703ea,'ELEMENT_LIST_ITEM'))});}return _0x4a2dcb;});}};function Qt(_0x31dfd3){let _0x5b70fb=_0x31dfd3['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b70fb;){const _0x3db7a1=_0x5b70fb['getAttribute']('listItemId');if(!_0x3db7a1)return!0x1;if(_0x3db7a1==_0x31dfd3['data']['newValue'])return'newValue';if(_0x3db7a1==_0x31dfd3['data']['oldValue'])return'oldValue';_0x5b70fb=_0x5b70fb['previousSibling'];}return!0x1;}var Zt=class extends _0x5ad79e{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x59a127=this['editor']['config']['get']('list.properties'),_0x4dc119=this['editor']['plugins']['get']('TrackChangesEditing');_0x59a127['styles']&&_0x4dc119['enableDefaultAttributesIntegration']('listStyle'),_0x59a127['reversed']&&_0x4dc119['enableDefaultAttributesIntegration']('listReversed'),_0x59a127['startIndex']&&_0x4dc119['enableDefaultAttributesIntegration']('listStart');const _0x1d30c9={'type':'format','content':''};_0x4dc119['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4b5396=this['editor']['locale'];_0x4dc119['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x4b5396,'FORMAT_LIST_REVERSED')),_0x4dc119['descriptionFactory']['registerDescriptionCallback'](_0x30446f=>{const {data:_0x2e6f75}=_0x30446f;if(_0x2e6f75&&'listReversed'==_0x2e6f75['key'])return null==_0x2e6f75['newValue']||0x0==_0x2e6f75['newValue']&&null==_0x2e6f75['oldValue']?_0x1d30c9:void 0x0;}),_0x4dc119['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x4b5396,'FORMAT_LIST_START')),_0x4dc119['descriptionFactory']['registerDescriptionCallback'](_0x1990dc=>{const {data:_0x40b627}=_0x1990dc;if(_0x40b627&&'listStart'==_0x40b627['key'])return null==_0x40b627['newValue']||0x1==_0x40b627['newValue']&&null==_0x40b627['oldValue']?_0x1d30c9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5ca7d7=>{if(_0x5ca7d7['batch']['isUndo'])return!0x1;let _0x23f2e4=!0x1;const _0x56ef47=_0x4dc119['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb59856=>{const _0x2c9d70=_0x4dc119['_getAttributeKey'](_0xb59856);return'listStart'==_0x2c9d70||'listReversed'==_0x2c9d70;});for(const _0x508ea5 of _0x56ef47){const _0x15c70a=_0x508ea5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x15c70a&&'customNumbered'!=_0x15c70a&&(_0x4dc119['_findSuggestions'](_0x508ea5['getFirstRange'](),'attribute')['find'](_0x2ec5b8=>'listType'==_0x4dc119['_getAttributeKey'](_0x2ec5b8['suggestion']))||(_0x5ca7d7['removeMarker'](_0x508ea5['getFirstMarker']()),_0x23f2e4=!0x0));}return _0x23f2e4;}),this['_registerLegacyDescription']();}handleDescriptions(_0x4c5ebb){const _0x5b118e=this['editor']['locale'],{data:_0x302122}=_0x4c5ebb,_0x2f77ba={'type':'format','content':''};if(!_0x302122||'listStyle'!=_0x302122['key'])return;if(!_0x302122['oldValue'])return'default'==_0x302122['newValue']?_0x2f77ba:{'type':'format','content':''+wt(_0x5b118e,'*Set\x20format:*\x20%0',wt(_0x5b118e,this['_getTranslationKeyForListStyle'](_0x302122['newValue'])))};if(!_0x302122['newValue']){if('default'==_0x302122['oldValue'])return _0x2f77ba;let _0x2e90aa=_0x4c5ebb['head'];for(;_0x2e90aa;){if(_0x2e90aa['data']&&'listType'==_0x2e90aa['data']['key']&&_0x2e90aa['data']['newValue'])return _0x2f77ba;_0x2e90aa=_0x2e90aa['next'];}return{'type':'format','content':''+wt(_0x5b118e,'*Remove\x20format:*\x20%0',wt(_0x5b118e,this['_getTranslationKeyForListStyle'](_0x302122['oldValue'])))};}if('default'!=_0x302122['newValue'])return{'type':'format','content':''+wt(_0x5b118e,'*Set\x20format:*\x20%0',wt(_0x5b118e,this['_getTranslationKeyForListStyle'](_0x302122['newValue'])))};let _0x489e88=_0x4c5ebb['head'];for(;_0x489e88;){if(_0x489e88['data']&&'listType'==_0x489e88['data']['key']&&_0x489e88['data']['newValue']&&_0x489e88['data']['oldValue'])return _0x2f77ba;_0x489e88=_0x489e88['next'];}return{'type':'format','content':wt(_0x5b118e,'*Set\x20format:*\x20%0',wt(_0x5b118e,'ELEMENT_'+_0x4c5ebb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x27050c=this['editor'],_0x1bcadd=_0x27050c['locale'];_0x27050c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b6b3b=>{if('formatBlock'!=_0x4b6b3b['type'])return;const {data:_0x28ae05}=_0x4b6b3b;if(!_0x28ae05)return;let _0x24c91f,_0x52a502;switch(_0x28ae05['commandName']){case'listStyle':_0x24c91f='*Change\x20to:*\x20%0',_0x52a502={'type':'format','content':wt(_0x1bcadd,_0x24c91f,wt(_0x1bcadd,this['_getTranslationKeyForListStyle'](_0x28ae05['commandParams'][0x0]['type'])))};break;case'listReversed':_0x24c91f=_0x28ae05['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x52a502={'type':'format','content':wt(_0x1bcadd,_0x24c91f)};break;case'listStart':_0x24c91f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x52a502={'type':'format','content':wt(_0x1bcadd,_0x24c91f,_0x28ae05['commandParams'][0x0]['startIndex'])};}return _0x52a502;});}_getTranslationKeyForListStyle(_0x3a1f8d){return'ELEMENT_'+(_0x2171af=_0x3a1f8d,Jt['includes'](_0x2171af)?'bulleted':te['includes'](_0x2171af)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3a1f8d['toUpperCase']()['replace'](/-/g,'_');var _0x2171af;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x5ad79e{afterInit(){const _0x3277f0=this['editor'];_0x3277f0['commands']['get']('emoji')&&_0x3277f0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x5ad79e{static get requires(){return[_t];}init(){const _0x49c8ab=this['editor'],_0xe5b341=_0x49c8ab['plugins']['get']('TrackChangesEditing'),_0x53e0ef=_0x49c8ab['commands']['get']('enter');_0xe5b341['enableCommand']('enter',()=>{_0x49c8ab['model']['change'](_0x5796ef=>{const _0x965d8f=_0x49c8ab['model']['document']['selection'],_0x29330f=_0x965d8f['getFirstPosition'](),_0x39649b=at['fromRange'](_0x965d8f['getFirstRange']());if(_0x53e0ef['enterBlock'](_0x5796ef)){const _0x55f4e7=_0x49c8ab['model']['createPositionAt'](_0x29330f['parent']['nextSibling'],0x0),_0x1f4254=_0x5796ef['createRange'](_0x29330f,_0x55f4e7);_0xe5b341['markInsertion'](_0x1f4254);}else _0x5796ef['setSelection'](_0x5796ef['createRange'](_0x39649b['end']));_0x39649b['detach'](),_0x53e0ef['fire']('afterExecute',{'writer':_0x5796ef});});});}},ie=class extends _0x5ad79e{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x55091f=this['editor']['plugins']['get']('TrackChangesEditing');_0x55091f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x55091f['enableCommand']('findNext'),_0x55091f['enableCommand']('findPrevious'),_0x55091f['enableCommand']('replace'),_0x55091f['enableCommand']('replaceAll');}['handleFindCommand'](_0xee3a7c,_0x304d09,_0x1c392c={}){const _0x24d78c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xee3a7c(_0x5b8561=>{let _0x36e7ad=('string'==typeof _0x304d09?_0x24d78c['findByTextCallback'](_0x304d09,_0x1c392c):_0x304d09)(_0x5b8561);Array['isArray'](_0x36e7ad)&&(_0x36e7ad={'results':_0x36e7ad,'searchText':'string'==typeof _0x304d09?_0x304d09:''});const _0x58c747=_0x36e7ad['results']['filter'](_0x7f8319=>!0x1===this['_isInDeletionRange'](_0x7f8319,_0x5b8561['item']));return{..._0x36e7ad,'results':_0x58c747};},_0x1c392c);}_isInDeletionRange(_0x103112,_0x1798d5){const _0x142547=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1798d5,_0x103112['start']),this['editor']['model']['createPositionAt'](_0x1798d5,_0x103112['end']));for(const _0xab87c8 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x142547['getIntersection'](_0xab87c8['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x5ad79e{afterInit(){const _0x3dcbd6=this['editor']['locale'],_0x4bd670=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x394964,commandName:_0xabbe3f}of se)this['editor']['plugins']['has'](_0x394964)&&_0x4bd670['enableDefaultAttributesIntegration'](_0xabbe3f);_0x4bd670['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x3dcbd6,'FORMAT_FONT_SIZE')),_0x4bd670['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x3dcbd6,'FORMAT_FONT_FAMILY')),_0x4bd670['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x3dcbd6,'FORMAT_FONT_COLOR')),_0x4bd670['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x3dcbd6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc23071=this['editor'],_0x51a208=_0xc23071['locale'];_0xc23071['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e07a9=>{const _0x34a74e=_0x51a208['t'];if('formatInline'!=_0x2e07a9['type'])return;const {data:_0x24d326}=_0x2e07a9;if(null!=_0x24d326){if('fontSize'==_0x24d326['commandName']){const _0x1a4883=_0x24d326['commandParams'][0x0]['value'];if(_0x1a4883){const _0xd2e4b1=_0x34a74e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x514f11=>_0x514f11['model']==_0x1a4883)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x51a208,'*Set\x20font\x20size:*\x20%0',_0xd2e4b1)};}return{'type':'format','content':wt(_0x51a208,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x24d326['commandName']){const _0x34d2ff=_0x24d326['commandParams'][0x0]['value'];return _0x34d2ff?{'type':'format','content':wt(_0x51a208,'*Set\x20font\x20family:*\x20%0',_0x34d2ff)}:{'type':'format','content':wt(_0x51a208,'*Reset\x20font\x20family*')};}if('fontColor'==_0x24d326['commandName']){const _0x232201=_0x24d326['commandParams'][0x0]['value'];if(_0x232201){const _0x20cf72=_0x24517f(this['editor']['config']['get']('fontColor.colors'))['find'](_0x57efce=>_0x57efce['model']==_0x232201);let _0x405399=_0x232201,_0x393036='';return _0x20cf72&&(_0x405399=_0x20cf72['label'],_0x393036=_0x3e5eef(_0x51a208,_0x405399)['toLowerCase']()),{'type':'format','content':wt(_0x51a208,'*Set\x20font\x20color:*\x20%0',_0x393036)['trim'](),'color':{'value':_0x232201,'title':_0x393036||_0x405399}};}return{'type':'format','content':wt(_0x51a208,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x24d326['commandName']){const _0x445859=_0x24d326['commandParams'][0x0]['value'];if(_0x445859){const _0x3db1d7=_0x24517f(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1d1437=>_0x1d1437['model']==_0x445859);let _0x1137cc=_0x445859,_0x3e9c22='';return _0x3db1d7&&(_0x1137cc=_0x3db1d7['label'],_0x3e9c22=_0x3e5eef(_0x51a208,_0x1137cc)['toLowerCase']()),{'type':'format','content':wt(_0x51a208,'*Set\x20font\x20background\x20color:*\x20%0',_0x3e9c22)['trim'](),'color':{'value':_0x445859,'title':_0x3e9c22||_0x1137cc}};}return{'type':'format','content':wt(_0x51a208,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x5ad79e{afterInit(){const {plugins:_0x16c683}=this['editor'];_0x16c683['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x16c683['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x206dfd,plugins:_0x49bb40,commands:_0x457eae}=this['editor'],_0x2f7b8c=_0x49bb40['get']('TrackChangesEditing');_0x457eae['get']('footnotesStyle')&&_0x2f7b8c['enableDefaultAttributesIntegration']('footnotesStyle'),_0x457eae['get']('footnotesStart')&&_0x2f7b8c['enableDefaultAttributesIntegration']('footnotesStart'),_0x2f7b8c['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x206dfd,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2f7b8c['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x206dfd,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x1169ad=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3f680e,commands:_0x1cc23f}=this['editor'];_0x1cc23f['get']('insertFootnote')&&_0x1169ad['enableCommand']('insertFootnote'),_0x1169ad['descriptionFactory']['registerElementLabel']('footnoteRef',_0x4840f5=>wt(_0x3f680e,'ELEMENT_FOOTNOTE_REF',_0x4840f5)),_0x1169ad['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x46e8e3=>wt(_0x3f680e,'ELEMENT_FOOTNOTE_DEFINITION',_0x46e8e3)),_0x1169ad['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x25aaf5=>wt(_0x3f680e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x25aaf5));}},ae=class extends _0x5ad79e{afterInit(){const _0x3ebd3b=this['editor'],_0x2caad0=_0x3ebd3b['plugins']['get']('TrackChangesEditing'),_0xdc2600=_0x3ebd3b['commands']['get']('copyFormat'),_0x386216=_0x3ebd3b['commands']['get']('pasteFormat');_0xdc2600&&_0x386216&&(_0x2caad0['enableDefaultAttributesIntegration']('pasteFormat'),_0x2caad0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x52dc27=this['editor'],_0x238801=_0x52dc27['locale'];_0x52dc27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c6299=>{if('formatBlock'!=_0x5c6299['type']&&'formatInline'!=_0x5c6299['type'])return;const {data:_0x16c875}=_0x5c6299;if(_0x16c875&&'pasteFormat'===_0x16c875['commandName']){const _0x3df3b1=[],_0x2c2ef6=_0x16c875['commandParams'][0x0];for(const [_0x5d12f0,_0x1143c8]of Object['entries'](_0x2c2ef6))_0x3df3b1['push'](ce(_0x52dc27,_0x5d12f0,_0x1143c8));return _0x3df3b1['length']?{'type':'format','content':wt(_0x238801,'*Set\x20format\x20to:*\x20%0',_0x3df3b1['join'](',\x20'))}:{'type':'format','content':wt(_0x238801,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x74c4a0,_0x15fe89,_0x3ff274){const _0x4875b6=_0x74c4a0['locale'],_0x5261fe=_0x4875b6['t'],_0x5e907e=_0x15fe89['split'](/(?=[A-Z])/)['join']('\x20'),_0x461b4e=_0x5261fe(_0x5e907e['charAt'](0x0)['toUpperCase']()+_0x5e907e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3ff274)return _0x461b4e;if('fontColor'===_0x15fe89||'fontBackgroundColor'===_0x15fe89){const _0x424d7e=_0x24517f(_0x74c4a0['config']['get']('fontColor.colors'))['find'](_0x1dfee5=>_0x1dfee5['model']==_0x3ff274);return _0x461b4e+'\x20('+(_0x424d7e?_0x3e5eef(_0x4875b6,_0x424d7e['label'])['toLowerCase']():_0x3ff274)+')';}if('fontSize'===_0x15fe89&&isNaN(parseFloat(_0x3ff274))){const _0x4d3e0c=_0x74c4a0['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x74c4a0['config']['get']('fontSize.options'))['find'](_0xedefae=>_0xedefae['model']==_0x3ff274);return _0x461b4e+'\x20('+(_0x4d3e0c?_0x5261fe(_0x4d3e0c['title'])['toLowerCase']():_0x3ff274)+')';}return _0x461b4e+'\x20('+_0x3ff274+')';}var le=class extends _0x5ad79e{afterInit(){const _0x5a86f3=this['editor'];if(!_0x5a86f3['plugins']['has']('GeneralHtmlSupport')||!_0x5a86f3['plugins']['has']('DataSchema'))return;const _0x1abc36=_0x5a86f3['plugins']['get']('TrackChangesEditing'),_0x5624c5=_0x5a86f3['plugins']['get']('GeneralHtmlSupport'),_0x5c2c54=_0x5a86f3['plugins']['get']('DataSchema'),_0x3a9602=_0x5a86f3['locale'],_0x1895a4=new Set(['htmlContent']);for(const _0x256b94 of _0x5c2c54['getDefinitionsForView'](/.*/,!0x1)){const _0x22cb14=_0x256b94['view'],_0x3a75f3=_0x5624c5['getGhsAttributeNameForElement'](_0x22cb14);_0x1895a4['add'](_0x3a75f3),!_0x256b94['isInline']||_0x256b94['isObject']||'appliesToBlock'in _0x256b94&&_0x256b94['appliesToBlock']||_0x1abc36['descriptionFactory']['registerAttributeLabel'](_0x3a75f3,_0x22cb14),_0x256b94['model']['startsWith']('html')&&_0x1abc36['descriptionFactory']['registerElementLabel'](_0x256b94['model'],_0x4976ad=>wt(_0x3a9602,'ELEMENT_HTML_TAG',[_0x4976ad,_0x22cb14]));}_0x1abc36['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x3a9602,'FORMAT_RAW_HTML_CONTENT')),_0x1abc36['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x3a9602,'FORMAT_HTML_LIST_ITEM')),_0x1abc36['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x3a9602,'FORMAT_HTML_BULLETED_LIST')),_0x1abc36['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x3a9602,'FORMAT_HTML_NUMBERED_LIST')),_0x1abc36['descriptionFactory']['registerDescriptionCallback'](_0x16ae5c=>{if('attribute'!==_0x16ae5c['type'])return;const _0x35bd05=_0x16ae5c['data'];if(!_0x35bd05||!_0x1895a4['has'](_0x35bd05['key']))return;if('htmlContent'===_0x35bd05['key'])return{'type':'format','content':wt(_0x3a9602,'*Change\x20%0\x20content*',wt(_0x3a9602,'ELEMENT_RAW_HTML'))};const {setItems:_0x3d4094,removeItems:_0x5a16d8}=function(_0x4acf25,_0x1dfa98,_0x150ab5){const _0x4e7ca2=[],_0x3c6e92=[],_0x5f118d=_0x4acf25['styles']??{},_0x37311f=_0x1dfa98['styles']??{};for(const _0x26f27d of new Set([...Object['keys'](_0x5f118d),...Object['keys'](_0x37311f)]))_0x5f118d[_0x26f27d]!==_0x37311f[_0x26f27d]&&(void 0x0===_0x37311f[_0x26f27d]?_0x3c6e92['push'](_0x26f27d):_0x4e7ca2['push'](_0x26f27d+'\x20('+_0x37311f[_0x26f27d]+')'));const _0xf72f81=wt(_0x150ab5,'FORMAT_HTML_CLASS'),_0x158040=new Set(_0x4acf25['classes']??[]),_0x5c7b8f=new Set(_0x1dfa98['classes']??[]),_0x1d2680=[..._0x5c7b8f]['some'](_0x2110cb=>!_0x158040['has'](_0x2110cb)),_0x5e92af=[..._0x158040]['some'](_0x23620a=>!_0x5c7b8f['has'](_0x23620a));_0x1d2680&&_0x4e7ca2['push'](_0xf72f81),_0x5e92af&&_0x3c6e92['push'](_0xf72f81);const _0x637c14=wt(_0x150ab5,'FORMAT_HTML_ATTRIBUTE'),_0x49b649=_0x4acf25['attributes']??{},_0x2d61e1=_0x1dfa98['attributes']??{};let _0x50877a=!0x1,_0x5652aa=!0x1;for(const _0x278265 of new Set([...Object['keys'](_0x49b649),...Object['keys'](_0x2d61e1)]))_0x49b649[_0x278265]!==_0x2d61e1[_0x278265]&&(void 0x0===_0x2d61e1[_0x278265]?_0x5652aa=!0x0:_0x50877a=!0x0);return _0x50877a&&_0x4e7ca2['push'](_0x637c14),_0x5652aa&&_0x3c6e92['push'](_0x637c14),{'setItems':_0x4e7ca2,'removeItems':_0x3c6e92};}(_0x35bd05['oldValue']??{},_0x35bd05['newValue']??{},_0x3a9602);if(!_0x3d4094['length']&&!_0x5a16d8['length'])return;const _0x4f434e=[];return _0x3d4094['length']&&_0x4f434e['push'](wt(_0x3a9602,'*Set\x20format:*\x20%0',_0x3d4094['join'](',\x20'))),_0x5a16d8['length']&&_0x4f434e['push'](wt(_0x3a9602,'*Remove\x20format:*\x20%0',_0x5a16d8['join'](',\x20'))),{'type':'format','content':_0x4f434e['join']('\x0a')};});}},ue=class extends _0x5ad79e{_headingOptions;afterInit(){const _0x55b532=this['editor'];if(!_0x55b532['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x55b532['config']['get']('heading.options');const _0x405fda=_0x55b532['locale'],_0x46e9a0=_0x55b532['plugins']['get']('TrackChangesEditing');_0x46e9a0['enableDefaultAttributesIntegration']('heading');for(const _0x180232 of this['_headingOptions'])'paragraph'!=_0x180232['model']&&_0x46e9a0['descriptionFactory']['registerElementLabel'](_0x180232['model'],_0x40edc7=>{const _0x4ae64c=this['_getHeadingLevel'](_0x180232['model']);return null!==_0x4ae64c?_0x4580c1(_0x40edc7,_0x4ae64c):_0x30f0e5(_0x40edc7,_0x180232['title']);});function _0x4580c1(_0x21c717,_0x2aedb5){return wt(_0x405fda,'ELEMENT_HEADING',[_0x21c717,_0x2aedb5]);}function _0x30f0e5(_0x267ee8,_0x35f5bd){return wt(_0x405fda,'ELEMENT_HEADING_CUSTOM',[_0x267ee8,_0x35f5bd]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x309561=this['editor'],_0x28b6e8=_0x309561['locale'];function _0x510edd(_0x7fa942,_0x4b9e1f){return wt(_0x28b6e8,'ELEMENT_HEADING_CUSTOM',[_0x7fa942,_0x4b9e1f]);}_0x309561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4717f8=>{if('formatBlock'!=_0x4717f8['type'])return;const {data:_0x5af827}=_0x4717f8;if(_0x5af827&&'heading'==_0x5af827['commandName']){const _0x39c567=_0x5af827['commandParams'][0x0]['value'],_0x48f37c=this['_getHeadingLevel'](_0x39c567);if(null!==_0x48f37c)return{'type':'format','content':wt(_0x28b6e8,'*Change\x20to:*\x20%0',(_0x55ac6f=0x1,_0xf96ece=_0x48f37c,wt(_0x28b6e8,'ELEMENT_HEADING',[_0x55ac6f,_0xf96ece])))};const _0x5f58e1=this['_headingOptions']['find'](_0x3bb6eb=>_0x3bb6eb['model']===_0x39c567)['title'];return{'type':'format','content':wt(_0x28b6e8,'*Change\x20to:*\x20%0',_0x510edd(0x1,_0x5f58e1))};}var _0x55ac6f,_0xf96ece;});}_getHeadingLevel(_0x9639f1){const _0x311e0f=_0x9639f1['match'](/^heading(\d+)/);if(_0x311e0f)return _0x311e0f[0x1];const _0x38636b=this['_headingOptions']?.['find'](_0x23f08a=>_0x23f08a['model']==_0x9639f1);if(_0x38636b&&_0x38636b['view']){const _0x2f62a4=_0x38636b['view'],_0x4bc0a3=(_0x2f62a4['name']??_0x2f62a4)['match'](/^h(\d+)/);if(_0x4bc0a3)return _0x4bc0a3[0x1];}return null;}},de=class extends _0x5ad79e{afterInit(){const _0x3cbf5e=this['editor'];if(!_0x3cbf5e['plugins']['has']('HighlightEditing'))return;const _0x3b3188=_0x3cbf5e['plugins']['get']('TrackChangesEditing'),_0x2e0187=_0x3cbf5e['locale'];_0x3b3188['enableDefaultAttributesIntegration']('highlight'),_0x3b3188['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x2e0187,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x258890=this['editor'],_0x41ce61=_0x258890['locale'];_0x258890['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383369=>{if('formatInline'!=_0x383369['type'])return;const {data:_0x1d2239}=_0x383369;if(_0x1d2239&&'highlight'==_0x1d2239['commandName']){const _0x5046b3=_0x41ce61['t'],_0x19c957=_0x1d2239['commandParams'][0x0]['value'];if(_0x19c957){const _0x258518=_0x258890['config']['get']('highlight.options')['find'](_0x1b4d54=>_0x1b4d54['model']==_0x19c957),_0x5234e7=_0x5046b3(_0x258518['title'])['toLowerCase']();return{'type':'format','content':wt(_0x41ce61,'*Set\x20highlight:*\x20%0',_0x5234e7),'color':{'value':_0x258518['color'],'title':_0x258518['title']}};}return{'type':'format','content':wt(_0x41ce61,'*Remove\x20highlight*',wt(_0x41ce61,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x5ad79e{afterInit(){const _0x3e8bac=this['editor'];if(!_0x3e8bac['plugins']['has']('HorizontalLineEditing'))return;_0x3e8bac['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1a157d=_0x3e8bac['plugins']['get']('TrackChangesEditing'),_0x2fa8ac=_0x3e8bac['locale'];_0x1a157d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4608bb=>wt(_0x2fa8ac,'ELEMENT_HORIZONTAL_LINE',_0x4608bb));}},ge=class extends _0x5ad79e{afterInit(){const _0x7ebcd6=this['editor'];if(!_0x7ebcd6['plugins']['has']('HtmlEmbed'))return;const _0x13e429=_0x7ebcd6['plugins']['get']('TrackChangesEditing'),_0x3b755f=_0x7ebcd6['locale'];_0x13e429['descriptionFactory']['registerElementLabel']('rawHtml',_0x3e92d2=>wt(_0x3b755f,'ELEMENT_HTML_EMBED',_0x3e92d2)),_0x13e429['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13e429['descriptionFactory']['registerDescriptionCallback'](_0x14984d=>{if('attribute'!=_0x14984d['type'])return;const {data:_0x2b8be5}=_0x14984d;if(_0x2b8be5&&'value'==_0x2b8be5['key']&&_0x14984d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x26a3ca=wt(_0x3b755f,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x3b755f,'*Change\x20%0\x20content*',_0x26a3ca)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x50e802=this['editor'],_0x2e0ea9=_0x50e802['locale'];_0x50e802['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d277c=>{if('formatBlock'!=_0x4d277c['type'])return;const {data:_0x1664fb}=_0x4d277c;if(_0x1664fb&&'htmlEmbed'==_0x1664fb['commandName']){const _0x513586=wt(_0x2e0ea9,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x2e0ea9,'*Change\x20%0\x20content*',_0x513586)};}});}},fe=class extends _0x5ad79e{afterInit(){const _0x16cd4d=this['editor'];if(!_0x16cd4d['plugins']['has']('ImageEditing'))return;const _0x8e7169=_0x16cd4d['plugins']['get']('TrackChangesEditing'),_0xb67cb4=_0x16cd4d['plugins']['get']('ImageUtils'),_0x1b2942=_0x16cd4d['locale'];_0x8e7169['enableCommand']('insertImage'),_0x8e7169['descriptionFactory']['registerElementLabel']('imageBlock',_0x57bc53=>wt(_0x1b2942,'ELEMENT_IMAGE',_0x57bc53)),_0x8e7169['descriptionFactory']['registerElementLabel']('imageInline',_0x307bc4=>wt(_0x1b2942,'ELEMENT_INLINE_IMAGE',_0x307bc4)),_0x8e7169['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x1b2942,'ELEMENT_CAPTION')),_0x16cd4d['plugins']['has']('ImageUploadEditing')&&_0x8e7169['enableCommand']('uploadImage'),_0x16cd4d['plugins']['has']('ImageBlockEditing')&&_0x16cd4d['plugins']['has']('ImageInlineEditing')&&(_0x8e7169['enableCommand']('imageTypeInline',(_0x43dc36,_0x6c2c80)=>{const _0x250f9c=_0xb67cb4['getClosestSelectedImageElement'](_0x16cd4d['model']['document']['selection']);_0x16cd4d['model']['change'](()=>{_0x8e7169['markBlockFormat'](_0x250f9c,{'commandName':'imageTypeInline','commandParams':[_0x6c2c80]},[],'convertBlockImageToInline');});}),_0x8e7169['enableCommand']('imageTypeBlock',(_0x156289,_0x3a5bc5)=>{_0x16cd4d['model']['change'](_0x2469ae=>{let _0x5d291d=_0xb67cb4['getClosestSelectedImageElement'](_0x16cd4d['model']['document']['selection']),_0x31b92e=_0x2469ae['createRangeOn'](_0x5d291d);const _0x3a72a6=ot['fromPosition'](_0x31b92e['start'],'toPrevious'),_0xc44850=ot['fromPosition'](_0x31b92e['end'],'toNext');_0x8e7169['forceDefaultExecution'](()=>_0x156289(_0x3a5bc5)),_0x5d291d=_0xb67cb4['getClosestSelectedImageElement'](_0x16cd4d['model']['document']['selection']),_0x31b92e=_0x2469ae['createRangeOn'](_0x5d291d);const _0x1f629e=_0x2469ae['createRange'](_0x3a72a6,_0xc44850);_0x3a72a6['detach'](),_0xc44850['detach'](),_0x8e7169['markBlockFormat'](_0x5d291d,{'commandName':'imageTypeInline','commandParams':[_0x3a5bc5]},[],'convertInlineImageToBlock'),_0x1f629e['start']['isBefore'](_0x31b92e['start'])&&_0x8e7169['markInsertion'](_0x2469ae['createRange'](_0x1f629e['start'],_0x31b92e['start']),'convertInlineImageToBlock'),_0x31b92e['end']['isBefore'](_0x1f629e['end'])&&_0x8e7169['markInsertion'](_0x2469ae['createRange'](_0x31b92e['end'],_0x1f629e['end']),'convertInlineImageToBlock');});}),_0x8e7169['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x8e7169['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x8e7169['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x8e7169['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x8e7169['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x8e7169['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x46a02e])=>{const _0x10deec=_0x8e7169['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x219fe0=_0x46a02e['start'],_0x1a14f7=_0x46a02e['end'];const _0x13f252=_0x16cd4d['model']['schema']['getNearestSelectionRange'](_0x219fe0,'backward'),_0x5a758=_0x16cd4d['model']['schema']['getNearestSelectionRange'](_0x1a14f7,'forward');_0x13f252['isCollapsed']&&(_0x219fe0=_0x13f252['start']),_0x5a758['isCollapsed']&&(_0x1a14f7=_0x5a758['end']),_0x10deec([_0x16cd4d['model']['createRange'](_0x219fe0,_0x1a14f7)]);}),_0x8e7169['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xadad63),_0x8e7169['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xadad63)),_0x16cd4d['plugins']['has']('ImageCaptionEditing')&&(_0x8e7169['enableCommand']('toggleImageCaption',(_0x33b313,_0x21794)=>{const _0x375e62=_0x16cd4d['plugins']['get']('ImageCaptionUtils');let _0x3ca710=_0xb67cb4['getClosestSelectedImageElement'](_0x16cd4d['model']['document']['selection']),_0x2a8342=_0x375e62['getCaptionFromImageModelElement'](_0x3ca710);_0x16cd4d['model']['change'](()=>{if(_0x2a8342)return void _0x8e7169['markDeletion'](_0x16cd4d['model']['createRangeOn'](_0x2a8342));const _0x137ba8=_0xb67cb4['isBlockImage'](_0x3ca710);_0x33b313(_0x21794),_0x3ca710=_0xb67cb4['getClosestSelectedImageElement'](_0x16cd4d['model']['document']['selection']),_0x2a8342=_0x375e62['getCaptionFromImageModelElement'](_0x3ca710),_0x8e7169['markInsertion'](_0x16cd4d['model']['createRangeOn'](_0x2a8342),_0x137ba8?null:'imageCaption');});}),_0x8e7169['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xadad63));const _0x457946=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31baaa(_0x31fb8e,_0x31fa1c){const _0x4087e1=_0x457946['findIndex'](({type:_0x44c389,subType:_0x2270c7})=>_0x31fb8e['type']==_0x44c389&&_0x31fb8e['subType']==_0x2270c7),_0x569870=_0x457946['findIndex'](({type:_0x292e1a,subType:_0x3424e3})=>_0x31fa1c['type']==_0x292e1a&&_0x31fa1c['subType']==_0x3424e3);if(_0x4087e1<0x0||_0x569870<0x0)return!0x1;const _0x56b68d=_0x31fb8e['getFirstRange'](),_0x582e54=_0x31fa1c['getFirstRange']();if((0x0==_0x4087e1||0x1==_0x4087e1)&&0x2==_0x569870&&_0x56b68d['isIntersecting'](_0x582e54))return!0x0;if(0x2==_0x4087e1&&0x3==_0x569870){const _0xfeab96=_0x8e7169['_findSuggestions'](_0x56b68d,'insertion')['filter'](({suggestion:_0x3daf94,meta:_0x4be2e3})=>_0x4be2e3['isOwn']&&'convertInlineImageToBlock'==_0x3daf94['subType']);if(_0xfeab96['length']>0x1&&_0x582e54['end']['isEqual'](_0x56b68d['start']))return!0x0;if(0x1==_0xfeab96['length']&&(_0x56b68d['start']['isEqual'](_0x582e54['end'])||_0x56b68d['end']['isEqual'](_0x582e54['start'])))return!0x0;}if(0x3==_0x4087e1&&0x3==_0x569870&&_0x56b68d['start']['isBefore'](_0x582e54['start'])){const _0x79f3cb=_0x56b68d['end']['nodeAfter'],_0xf1a999=_0x582e54['start']['nodeBefore'];return _0xb67cb4['isBlockImage'](_0x79f3cb)&&_0x79f3cb===_0xf1a999;}return!0x1;}function _0xadad63(_0x4858a4,_0x224c4a){return _0x31baaa(_0x4858a4,_0x224c4a)?[_0x4858a4,_0x224c4a]:_0x31baaa(_0x224c4a,_0x4858a4)?[_0x224c4a,_0x4858a4]:null;}_0x16cd4d['plugins']['has']('ImageResize')&&(_0x8e7169['enableDefaultAttributesIntegration']('resizeImage'),_0x8e7169['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x1b2942,'FORMAT_IMAGE_SIZE'))),_0x16cd4d['plugins']['has']('ImageTextAlternativeEditing')&&_0x8e7169['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x16cd4d['plugins']['has']('PictureEditing')&&_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0xb2de0=>{if('attribute'!=_0xb2de0['type'])return;const {data:_0x52d432}=_0xb2de0;return _0x52d432&&'sources'==_0x52d432['key']?{'type':'format','content':''}:void 0x0;}),_0x16cd4d['plugins']['has']('ImageSizeAttributes')&&_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0x170856=>{if('attribute'!=_0x170856['type'])return;const {data:_0xcd40b1}=_0x170856;return!_0xcd40b1||'width'!=_0xcd40b1['key']&&'height'!=_0xcd40b1['key']?void 0x0:{'type':'format','content':''};}),_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0x7f943c=>{if(_0x457946['find'](({type:_0x32f579,subType:_0x276f42})=>_0x7f943c['type']==_0x32f579&&_0x7f943c['subType']==_0x276f42))return _0x7f943c['previous']?{}:void 0x0;}),_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0x581399=>{if('insertion'==_0x581399['type']||'deletion'==_0x581399['type']){const _0x36e04c=_0x581399['getContainedElement']();if(_0x36e04c&&_0x36e04c['is']('element','caption'))return{'type':'insertion'==_0x581399['type']?'addObject':'removeObject','element':_0x36e04c,'quantity':0x1};}}),_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0x4cbcc3=>'formatBlock'==_0x4cbcc3['type']&&'convertInlineImageToBlock'==_0x4cbcc3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4cbcc3['type']&&'convertBlockImageToInline'==_0x4cbcc3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x8e7169['descriptionFactory']['registerDescriptionCallback'](_0x2d2b5c=>{if('attribute'!=_0x2d2b5c['type'])return;const {data:_0xb26707}=_0x2d2b5c;if(!_0xb26707||'alt'!=_0xb26707['key'])return;const _0x543723=_0xb26707['newValue'];return _0x543723?{'type':'format','content':wt(_0x1b2942,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x543723+'\x22')}:{'type':'format','content':wt(_0x1b2942,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5277f2=this['editor'],_0x998dba=_0x5277f2['locale'];_0x5277f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b239a=>{if('formatBlock'!=_0x4b239a['type']&&'formatInline'!=_0x4b239a['type'])return;const {data:_0x3df94c}=_0x4b239a;if(_0x3df94c){if('imageTextAlternative'==_0x3df94c['commandName']){const _0x520710=_0x3df94c['commandParams'][0x0]['newValue'];return _0x520710?{'type':'format','content':wt(_0x998dba,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x520710+'\x22')}:{'type':'format','content':wt(_0x998dba,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3df94c['commandName']){const _0x1b49f6=_0x3df94c['commandParams'][0x0]['width'];return _0x1b49f6?{'type':'format','content':wt(_0x998dba,'*Set\x20image\x20width:*\x20%0',_0x1b49f6)}:{'type':'format','content':wt(_0x998dba,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x5ad79e{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x45bdc4=this['editor']['locale'],_0x563832=this['editor']['plugins']['get']('TrackChangesEditing');_0x563832['enableDefaultAttributesIntegration']('replaceImageSource'),_0x563832['descriptionFactory']['registerDescriptionCallback'](_0x16869c=>{if('attribute'!=_0x16869c['type'])return;const {data:_0x529cfc}=_0x16869c;return _0x529cfc&&'src'==_0x529cfc['key']?_0x529cfc['newValue']&&_0x529cfc['oldValue']?{'type':'format','content':wt(_0x45bdc4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x28aa7e=this['editor']['plugins']['get']('TrackChangesEditing');_0x28aa7e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x28aa7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x28aa7e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x28aa7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5001df=this['editor'],_0x427578=_0x5001df['locale'];_0x5001df['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ce6dd=>{if('formatBlock'!=_0x4ce6dd['type']&&'formatInline'!=_0x4ce6dd['type'])return;const {data:_0x58da63}=_0x4ce6dd;return _0x58da63&&'replaceImageSource'==_0x58da63['commandName']?{'type':'format','content':wt(_0x427578,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x5ad79e{afterInit(){const _0x172958=this['editor'];if(!_0x172958['plugins']['has']('ImageStyleEditing'))return;const _0x1cf5d8=_0x172958['plugins']['get']('TrackChangesEditing'),_0x4a8732=_0x172958['plugins']['get']('ImageUtils'),_0xbc03ad={};_0x1cf5d8['enableCommand']('imageStyle',(_0x4c6c0b,_0x34eba7)=>{const _0x211347=_0x172958['plugins']['get']('Users')['me'],_0x1b3f55=_0x172958['commands']['get']('imageStyle');let _0x345270=_0x4a8732['getClosestSelectedImageElement'](_0x172958['model']['document']['selection']),_0x550576=_0x172958['model']['createRangeOn'](_0x345270),_0x376066=_0x1b3f55['value'];if(_0x376066==_0x34eba7['value'])return;if(_0x34eba7['value']&&_0x4a8732['isInlineImage'](_0x345270)&&!_0x1b3f55['isStyleEnabled'](_0x34eba7['value']))return;const _0x5d3ef7={'commandName':'imageStyle','commandParams':[_0x34eba7],'formatGroupId':_0x533d19()};_0x172958['model']['change'](()=>{if(_0x1cf5d8['getSuggestions']()['filter'](_0x1f5c91=>_0x1f5c91['isInContent']&&_0x211347==_0x1f5c91['author']&&('formatBlock'==_0x1f5c91['type']||'formatInline'==_0x1f5c91['type'])&&('imageStylePreApply'==_0x1f5c91['subType']||'imageStylePostApply'==_0x1f5c91['subType'])&&_0x1f5c91['getFirstRange']()['isEqual'](_0x550576))['forEach'](_0x2ce9ba=>_0x1cf5d8['discardSuggestion'](_0x2ce9ba['head'])),_0x345270=_0x4a8732['getClosestSelectedImageElement'](_0x172958['model']['document']['selection']),_0x550576=_0x172958['model']['createRangeOn'](_0x345270),_0x1b3f55['refresh'](),_0x172958['commands']['get']('imageTypeInline')['refresh'](),_0x172958['commands']['get']('imageTypeBlock')['refresh'](),_0x376066=_0x1b3f55['value'],_0x376066!=_0x34eba7['value'])return _0x4a8732['isInlineImage'](_0x345270)&&_0x1b3f55['shouldConvertImageType'](_0x34eba7['value'],_0x345270)?(_0x4c6c0b({..._0x34eba7,'setImageSizes':!0x1}),_0x345270=_0x4a8732['getClosestSelectedImageElement'](_0x172958['model']['document']['selection']),void _0x1cf5d8['markBlockFormat'](_0x345270,{..._0x5d3ef7,'commandReversedParams':[{'value':_0x376066||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4a8732['isBlockImage'](_0x345270)?_0x1cf5d8['markBlockFormat'](_0x345270,_0x5d3ef7,[],'imageStylePostApply'):_0x1cf5d8['markInlineFormat'](_0x550576,_0x5d3ef7,'imageStylePostApply'));});});for(const _0x2ddb6f of _0x172958['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xbc03ad[_0x2ddb6f['name']]=_0x2ddb6f['title']['toLowerCase']();_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5cd6da])=>{_0x4a8732['setImageNaturalSizeAttributes'](_0x5cd6da['getContainedElement']());}),_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5dd521,_0x3b171d)=>{_0x1cf5d8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5dd521,{'commandName':_0x3b171d['commandName'],'commandParams':_0x3b171d['commandReversedParams']});}),_0x1cf5d8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1fd27f,_0x6c5d44){return _0x4b7b0b(_0x1fd27f,_0x6c5d44)?[_0x1fd27f,_0x6c5d44]:_0x4b7b0b(_0x6c5d44,_0x1fd27f)?[_0x6c5d44,_0x1fd27f]:null;});const _0x568490=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4b7b0b(_0x4cf1c2,_0x3dd232){const _0x5f283f=_0x568490['findIndex'](({type:_0xb550b8,subType:_0x16d9bd})=>_0x4cf1c2['type']==_0xb550b8&&_0x4cf1c2['subType']==_0x16d9bd),_0x5e45f8=_0x568490['findIndex'](({type:_0x11b1d3,subType:_0x590e38})=>_0x3dd232['type']==_0x11b1d3&&_0x3dd232['subType']==_0x590e38);if(_0x5f283f<0x0||_0x5e45f8<0x0)return!0x1;const _0x1c3a29=_0x4cf1c2['getFirstRange'](),_0x4c5c20=_0x3dd232['getFirstRange']();if((0x0==_0x5f283f||0x1==_0x5f283f)&&0x2==_0x5e45f8&&_0x1c3a29['isIntersecting'](_0x4c5c20))return!0x0;if(0x2==_0x5f283f&&0x3==_0x5e45f8){const _0x2bafeb=_0x1cf5d8['_findSuggestions'](_0x1c3a29,'insertion')['filter'](({suggestion:_0x43384c,meta:_0xc2a9a3})=>_0xc2a9a3['isOwn']&&'convertInlineImageToBlock'==_0x43384c['subType']);if(_0x2bafeb['length']>0x1&&_0x4c5c20['end']['isEqual'](_0x1c3a29['start']))return!0x0;if(0x1==_0x2bafeb['length']&&(_0x1c3a29['start']['isEqual'](_0x4c5c20['end'])||_0x1c3a29['end']['isEqual'](_0x4c5c20['start'])))return!0x0;}if(0x3==_0x5f283f&&0x3==_0x5e45f8&&_0x1c3a29['start']['isBefore'](_0x4c5c20['start'])){const _0x539b08=_0x1c3a29['end']['nodeAfter'],_0x9169f2=_0x4c5c20['start']['nodeBefore'];return _0x4a8732['isBlockImage'](_0x539b08)&&_0x539b08===_0x9169f2;}return!0x1;}_0x172958['model']['document']['registerPostFixer'](()=>{let _0x14c3b1=!0x1;const _0x4a2ffe=Array['from'](_0x172958['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b75aa,data:_0x1c778d}of _0x4a2ffe){const {group:_0x116062,type:_0x4380bd,subType:_0x3d9d3c,id:_0x28f8dc}=nt(_0x1b75aa);if('suggestion'==_0x116062&&_0x1cf5d8['hasSuggestion'](_0x28f8dc)){if('formatBlock'==_0x4380bd&&('imageStylePreApply'==_0x3d9d3c||'imageStylePostApply'==_0x3d9d3c)){const _0x395863=_0x1cf5d8['getSuggestion'](_0x28f8dc);if(_0x1c778d['newRange']){const _0x35fc12=_0x395863['getFirstRange']()['getContainedElement']();if(_0x4a8732['isBlockImage'](_0x35fc12))continue;_0x1cf5d8['discardSuggestion'](_0x395863),_0x14c3b1=!0x0;}}if('insertion'==_0x4380bd&&'imageCaption'==_0x3d9d3c&&!_0x1c778d['newRange']){const _0x12c1e3=_0x1cf5d8['getSuggestion'](_0x28f8dc);_0x12c1e3['next']&&_0x12c1e3['next']['isInContent']&&(_0x1cf5d8['discardSuggestion'](_0x12c1e3['next']),_0x14c3b1=!0x0);}}}return _0x14c3b1;}),this['_registerLegacyDescription'](_0xbc03ad);}_registerLegacyDescription(_0x1befb4){const _0x1a8a00=this['editor'],_0x2b532e=_0x1a8a00['locale'];_0x1a8a00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48c993=>{if('formatBlock'!=_0x48c993['type']&&'formatInline'!=_0x48c993['type'])return;const {data:_0x5e0f43}=_0x48c993;if(!_0x5e0f43||'imageStyle'!=_0x5e0f43['commandName'])return;const _0x216852=_0x5e0f43['commandParams'][0x0]['value'];return _0x1cfc2f('side'===_0x216852?wt(_0x2b532e,'FORMAT_SIDE_IMAGE'):_0x1befb4[_0x216852]||_0x216852);function _0x1cfc2f(_0xc8cf44){return{'type':'format','content':wt(_0x2b532e,'*Format:*\x20%0',_0xc8cf44)};}});}},Te=class extends _0x5ad79e{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x424287){super(_0x424287),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x422b4c=this['editor'],_0x2ef2a9=_0x422b4c['commands']['get']('importWord'),_0x5144ea=_0x422b4c['commands']['get']('trackChanges');_0x2ef2a9&&(_0x2ef2a9['on']('execute',(_0x2fd68b,[,_0x4cbbc4])=>{this['_trackChangesValueDuringImport']=_0x5144ea['value'],_0x4cbbc4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2ef2a9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2ef2a9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5144ea['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x422b4c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x4f488f,_0x365a45){const {suggestions:_0x11c2bc}=_0x365a45,_0x214a92=this['editor']['commands']['get']('trackChanges'),_0xd8d120=_0x214a92['value'];this['_trackChangesValueDuringImport']!==_0xd8d120&&(_0x214a92['execute'](),this['_trackChangesExecuted']=!0x0),_0x11c2bc&&_0x11c2bc['forEach'](({id:_0x2ccf29,type:_0x598f55,author:_0x1abc07,created_at:_0x3d0a83})=>{const _0x23d760={'id':_0x2ccf29,'type':_0x598f55,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1abc07,'createdAt':_0x3d0a83?new Date(_0x3d0a83):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x23d760);});}},_e=class extends _0x5ad79e{afterInit(){const _0x254b65=this['editor'],_0x5abe14=_0x254b65['plugins']['get']('TrackChangesEditing');if(_0x254b65['plugins']['has']('IndentEditing')&&(_0x5abe14['enableCommand']('indent'),_0x5abe14['enableCommand']('outdent')),_0x254b65['plugins']['has']('IndentBlock')){for(const _0x3a3a69 of['indentBlock','outdentBlock'])_0x5abe14['enableDefaultAttributesIntegration'](_0x3a3a69);if(_0x254b65['plugins']['has']('ListEditing')){for(const _0x2ddec0 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5abe14['enableDefaultAttributesIntegration'](_0x2ddec0);}}const _0x1e1551=_0x254b65['locale'];_0x5abe14['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x1e1551,'FORMAT_INDENT')),_0x5abe14['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x1e1551,'FORMAT_INDENT')),_0x5abe14['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x1e1551,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x347a8f=this['editor'],_0x58eec3=_0x347a8f['locale'],_0x40e41f=_0x347a8f['plugins']['get']('TrackChangesEditing');_0x40e41f['descriptionFactory']['registerDescriptionCallback'](_0xcd96d=>{if('formatBlock'!=_0xcd96d['type'])return;const {data:_0x18f14c}=_0xcd96d;if(!_0x18f14c)return;if('indentBlock'!=_0x18f14c['commandName']&&'outdentBlock'!=_0x18f14c['commandName'])return;const _0x189d02=_0xcd96d['getItems']()[0x0],_0xab525=_0x40e41f['descriptionFactory']['getItemLabel'](_0x189d02);return'indentBlock'==_0x18f14c['commandName']?{'type':'format','content':wt(_0x58eec3,'*Indent:*\x20%0',_0xab525)}:'outdentBlock'==_0x18f14c['commandName']?{'type':'format','content':wt(_0x58eec3,'*Outdent:*\x20%0',_0xab525)}:void 0x0;});}},pe=class extends _0x5ad79e{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x5ad79e{afterInit(){const _0x297f49=this['editor'];if(!_0x297f49['plugins']['has']('LinkEditing'))return;const _0x25b320=_0x297f49['plugins']['get']('TrackChangesEditing'),_0x1fe4d3=_0x297f49['commands']['get']('link');_0x25b320['enableDefaultAttributesIntegration']('link'),_0x25b320['enableDefaultAttributesIntegration']('unlink');for(const _0x3ea9d7 of _0x1fe4d3['manualDecorators'])_0x25b320['descriptionFactory']['registerAttributeLabel'](_0x3ea9d7['id'],'link\x20('+_0x3ea9d7['label']['toLowerCase']()+')');_0x25b320['descriptionFactory']['registerDescriptionCallback'](_0x2bf2f7=>{if('attribute'!=_0x2bf2f7['type'])return;const {data:_0x1f48ef}=_0x2bf2f7;if(!_0x1f48ef||'linkHref'!=_0x1f48ef['key'])return;const _0x485912=_0x1f48ef['newValue'],_0xe8851d=_0x297f49['locale'];return{'type':'format','content':null==_0x485912?wt(_0xe8851d,'*Remove\x20link*'):wt(_0xe8851d,'*Set\x20link:*\x20%0','\x22'+_0x485912+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3066fc=this['editor'],_0xb6687f=_0x3066fc['locale'];_0x3066fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2949d7=>{if('formatInline'!=_0x2949d7['type'])return;const {data:_0x89149c}=_0x2949d7;if(_0x89149c){if('link'==_0x89149c['commandName']){const _0x2fe285=_0x89149c['commandParams'][0x0];return{'type':'format','content':wt(_0xb6687f,'*Set\x20link:*\x20%0','\x22'+_0x2fe285+'\x22')};}return'unlink'==_0x89149c['commandName']?{'type':'format','content':wt(_0xb6687f,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x5ad79e{afterInit(){const _0x4ed0ae=this['editor'],_0x1de773=_0x4ed0ae['locale'];if(!_0x4ed0ae['plugins']['has']('LegacyListEditing'))return;const _0x5d5eb0=_0x4ed0ae['plugins']['get']('TrackChangesEditing'),_0x403171=_0x4ed0ae['plugins']['has']('LegacyTodoListEditing');function _0x251417(_0x9a92a2){return()=>{const _0x2c0bca=_0x4ed0ae['model']['document']['selection'],_0x124f87=_0x4ed0ae['commands']['get'](_0x9a92a2);if(_0x124f87['value'])return void _0x4ed0ae['execute']('paragraph',{});const _0x359aa0=_0x9a92a2['slice'](0x0,-0x4),_0x523a58=function(_0x51977a,_0x5f251d,_0x1f13ca){let _0x43a5dd=Array['from'](_0x51977a)['filter'](_0x2f4348=>function(_0x1e033f,_0x491cba){return _0x491cba['checkChild'](_0x1e033f['parent'],'listItem')&&!_0x491cba['isObject'](_0x1e033f);}(_0x2f4348,_0x1f13ca));_0x43a5dd=_0x43a5dd['filter'](_0x4d0d73=>!_0x4d0d73['is']('element','listItem')||_0x4d0d73['getAttribute']('listType')!=_0x5f251d);const _0x35f559=new Set();for(const _0x53ff2f of _0x43a5dd)_0x53ff2f['is']('element','listItem')?_0x35f559['add'](Ae(_0x53ff2f)):_0x35f559['add'](_0x53ff2f);return Array['from'](_0x35f559);}(_0x2c0bca['getSelectedBlocks'](),_0x359aa0,_0x4ed0ae['model']['schema']);_0x4ed0ae['model']['change'](()=>{for(const _0x29890d of _0x523a58)_0x5d5eb0['markBlockFormat'](_0x29890d,{'commandName':_0x9a92a2,'commandParams':[{'forceValue':!_0x124f87['value']}],'formatGroupId':'blockName'},be(_0x29890d));});};}function _0x284de3(_0x19cb12){return()=>{const _0x3ff6c9=function(_0x1ef0eb){let _0x4c9a9d=Array['from'](_0x1ef0eb);const _0xcce6db=_0x4c9a9d['findIndex'](_0x42b0d6=>'listItem'!=_0x42b0d6['name']);return _0xcce6db>-0x1&&(_0x4c9a9d=_0x4c9a9d['slice'](0x0,_0xcce6db)),_0x4c9a9d;}(_0x4ed0ae['model']['document']['selection']['getSelectedBlocks']()),_0x28573c=_0x4ed0ae['model']['createRange'](_0x4ed0ae['model']['createPositionAt'](_0x3ff6c9[0x0],'before'),_0x4ed0ae['model']['createPositionAt'](_0x3ff6c9[_0x3ff6c9['length']-0x1],'end'));_0x4ed0ae['model']['change'](()=>{_0x5d5eb0['markBlockFormat'](_0x28573c,{'commandName':_0x19cb12,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5dd34a){const _0x5e12d5=new Set();for(const _0x14a139 of _0x5dd34a){let _0x5187af=_0x14a139['nextSibling'];for(;_0x5187af&&_0x5187af['getAttribute']('listIndent')>_0x14a139['getAttribute']('listIndent');)_0x5e12d5['add'](_0x5187af),_0x5187af=_0x5187af['nextSibling'];}return Array['from'](_0x5e12d5);}(_0x3ff6c9));});};}_0x5d5eb0['enableCommand']('numberedList',_0x251417('numberedList')),_0x5d5eb0['enableCommand']('bulletedList',_0x251417('bulletedList')),_0x403171&&_0x5d5eb0['enableCommand']('todoList',_0x251417('todoList')),_0x5d5eb0['enableCommand']('indentList',_0x284de3('indentList')),_0x5d5eb0['enableCommand']('outdentList',_0x284de3('outdentList')),_0x403171&&_0x5d5eb0['enableCommand']('checkTodoList',()=>{const _0x5ab53a=_0x4ed0ae['commands']['get']('checkTodoList'),_0x5020d6=Array['from'](_0x5ab53a['_selectedElements']);_0x5020d6['filter'](_0x3d8eee=>_0x3d8eee['getAttribute']('todoListChecked')!=_0x5ab53a['value']),_0x4ed0ae['model']['change'](()=>{for(const _0xaeea99 of _0x5020d6)_0x5d5eb0['markBlockFormat'](_0xaeea99,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5ab53a['value']}]});});}),_0x5d5eb0['descriptionFactory']['registerElementLabel']('listItem',_0x4f8a1f=>wt(_0x1de773,'ELEMENT_LIST_ITEM',_0x4f8a1f)),_0x5d5eb0['descriptionFactory']['registerDescriptionCallback'](_0x276f59=>{if('formatBlock'!=_0x276f59['type']&&'formatInline'!=_0x276f59['type'])return;const {data:_0x998015}=_0x276f59;if(_0x998015){if('numberedList'==_0x998015['commandName']||'bulletedList'==_0x998015['commandName']||'todoList'==_0x998015['commandName'])switch(_0x998015['commandName']['replace']('List','')){case'bulleted':return _0x2a9c6e(wt(_0x1de773,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a9c6e(wt(_0x1de773,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a9c6e(wt(_0x1de773,'ELEMENT_TODO_LIST'));}if('indentList'==_0x998015['commandName'])return{'type':'format','content':wt(_0x1de773,'*Indent:*\x20%0',wt(_0x1de773,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x998015['commandName'])return{'type':'format','content':wt(_0x1de773,'*Outdent:*\x20%0',wt(_0x1de773,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x998015['commandName'])return _0x998015['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x1de773,'*Check\x20item*')}:{'type':'format','content':wt(_0x1de773,'*Uncheck\x20item*')};}function _0x2a9c6e(_0x1256d9){return{'type':'format','content':wt(_0x1de773,'*Change\x20to:*\x20%0',_0x1256d9)};}});}};function Ae(_0x3a5625){const _0x4d8568=_0x3a5625['getAttribute']('listIndent');if(0x0==_0x4d8568)return _0x3a5625;let _0xb5d4d2=_0x3a5625;for(;_0x3a5625['previousSibling']&&_0x3a5625['previousSibling']['is']('element','listItem');){const _0x30231c=_0x3a5625['previousSibling']['getAttribute']('listIndent');if(_0x30231c==_0x4d8568)_0xb5d4d2=_0x3a5625['previousSibling'];else{if(_0x30231c<_0x4d8568)break;}_0x3a5625=_0x3a5625['previousSibling'];}return _0xb5d4d2;}function be(_0xc90230){const _0x21da73=[];if(_0xc90230['is']('element','listItem')&&_0xc90230['getAttribute']('listIndent')>0x0){let _0x25a743=_0xc90230['nextSibling'];for(;_0x25a743&&'listItem'==_0x25a743['name']&&_0x25a743['getAttribute']('listIndent')==_0xc90230['getAttribute']('listIndent');)_0x21da73['push'](_0x25a743),_0x25a743=_0x25a743['nextSibling'];}return _0x21da73;}var Ce=class extends _0x5ad79e{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x28d993=this['editor']['config']['get']('list.properties'),_0x98c231=this['editor']['plugins']['get']('TrackChangesEditing');_0x28d993['styles']&&_0x98c231['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x28d993['reversed']&&_0x98c231['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x28d993['startIndex']&&_0x98c231['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x98c231['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0xa432f9,_0x2a2ca4={}){const _0x3e225f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe4129=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3e225f['markMultiRangeBlockFormat'](_0xe4129,{'commandName':'listStyle','commandParams':[{'type':_0x2a2ca4['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x3d223a,_0x51b6f1={}){const _0x1feac6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f2a56=this['_getSuggestionBlocks'](_0x5121d6=>_0x5121d6['is']('element','listItem')&&'numbered'===_0x5121d6['getAttribute']('listType'));if(_0x2f2a56['length']<0x1)return;const _0x84c326=_0x2f2a56['map'](_0xc9ba4b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xc9ba4b,'before'),this['editor']['model']['createPositionAt'](_0xc9ba4b,0x0)));this['editor']['model']['change'](()=>{_0x1feac6['markMultiRangeBlockFormat'](_0x84c326,{'commandName':'listReversed','commandParams':[{'reversed':_0x51b6f1['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x3ea8b1,_0x245277={}){const _0x5d14ca=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42a3ff=this['_getSuggestionBlocks'](_0x4da5d1=>_0x4da5d1['is']('element','listItem')&&'numbered'===_0x4da5d1['getAttribute']('listType'));if(_0x42a3ff['length']<0x1)return;const _0xdcf56c=_0x42a3ff['map'](_0x533ea5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x533ea5,'before'),this['editor']['model']['createPositionAt'](_0x533ea5,0x0)));this['editor']['model']['change'](()=>{_0x5d14ca['markMultiRangeBlockFormat'](_0xdcf56c,{'commandName':'listStart','commandParams':[{'startIndex':_0x245277['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x4180da){if('formatBlock'!=_0x4180da['type']&&'formatInline'!=_0x4180da['type'])return;const _0x235134=this['editor']['locale'],{data:_0x1b5aa5}=_0x4180da;if(!_0x1b5aa5)return;let _0x4f942f,_0x303a78;switch(_0x1b5aa5['commandName']){case'listStyle':_0x4f942f='*Change\x20to:*\x20%0',_0x303a78={'type':'format','content':wt(_0x235134,_0x4f942f,wt(_0x235134,this['_getTranslationKeyForListStyle'](_0x1b5aa5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f942f=_0x1b5aa5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x303a78={'type':'format','content':wt(_0x235134,_0x4f942f)};break;case'listStart':_0x4f942f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x303a78={'type':'format','content':wt(_0x235134,_0x4f942f,_0x1b5aa5['commandParams'][0x0]['startIndex'])};}return _0x303a78;}_getSuggestionBlocksForListStyle(){const _0xdc3ee4=this['editor']['plugins']['get']('LegacyListUtils');let _0x11fd49=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11fd49[0x0]?.['is']('element','listItem')&&_0x11fd49['unshift'](..._0xdc3ee4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11fd49[_0x11fd49['length']-0x1]?.['is']('element','listItem')&&_0x11fd49['push'](..._0xdc3ee4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11fd49=[...new Set(_0x11fd49)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11fd49=_0x11fd49['filter'](_0x3ce309=>_0x3ce309['is']('element','listItem'))),_0x11fd49;}_getSuggestionBlocks(_0x248adc){const _0x464eb8=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a3996=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x248adc)['map'](_0x38e095=>{const _0x174bdf=this['editor']['model']['createPositionAt'](_0x38e095,0x0);return[..._0x464eb8['getSiblingNodes'](_0x174bdf,'backward'),..._0x464eb8['getSiblingNodes'](_0x174bdf,'forward')];})['flat']();return _0x5a3996=[...new Set(_0x5a3996)],_0x5a3996;}_getTranslationKeyForListStyle(_0x45f8e4){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x45f8e4)||'default')['toUpperCase']()+'_LIST_'+_0x45f8e4['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x5ad79e{afterInit(){const _0x5f557e=this['editor'];if(!_0x5f557e['plugins']['has']('MediaEmbedEditing'))return;const _0x2ef70e=_0x5f557e['plugins']['get']('TrackChangesEditing'),_0xc55baa=_0x5f557e['locale'];_0x2ef70e['enableCommand']('mediaEmbed'),_0x2ef70e['descriptionFactory']['registerElementLabel']('media',_0x76227e=>wt(_0xc55baa,'ELEMENT_MEDIA',_0x76227e)),_0x5f557e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x2ef70e['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x2ef70e['descriptionFactory']['registerDescriptionCallback'](_0x407c3a=>{if('attribute'!=_0x407c3a['type'])return;const {data:_0x302cac}=_0x407c3a;if(!_0x302cac||'resizedWidth'!=_0x302cac['key'])return;const _0x4e096e=_0x407c3a['getContainedElement']();if(!_0x4e096e||!_0x4e096e['is']('element','media'))return;const _0x3ab162=wt(_0xc55baa,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0xc55baa,'*Set\x20format:*\x20%0',_0x3ab162)};}));}},Re=class extends _0x5ad79e{afterInit(){const _0x623c41=this['editor'];if(!_0x623c41['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x350d50=_0x623c41['plugins']['get']('TrackChangesEditing'),_0x4af51a=_0x623c41['locale'],_0x3a9c4a=_0x623c41['plugins']['get']('MediaEmbedStyleEditing'),_0x3bba8d={};for(const _0x210d81 of _0x3a9c4a['normalizedStyles'])_0x3bba8d[_0x210d81['name']]=_0x210d81['title']['toLowerCase']();const _0x483d78=_0x3a9c4a['normalizedStyles']['find'](_0x4e9430=>_0x4e9430['isDefault'])?.['name'];_0x350d50['enableCommand']('mediaStyle',(_0x306626,_0x44edb9)=>{const _0x574d34=_0x623c41['plugins']['get']('Users')['me'],_0x425a24=_0x623c41['commands']['get']('mediaStyle'),_0x5e995d=function(_0x34d7b3){const _0x135afd=_0x34d7b3['model']['document']['selection']['getSelectedElement']();return _0x135afd&&_0x135afd['is']('element','media')?_0x135afd:null;}(_0x623c41);if(!_0x5e995d)return;const _0x1398b5=_0x623c41['model']['createRangeOn'](_0x5e995d);let _0x414bd2=_0x425a24['value'];if(_0x414bd2==_0x44edb9['value'])return;const _0x19a74a={'commandName':'mediaStyle','commandParams':[_0x44edb9],'formatGroupId':_0x533d19()};_0x623c41['model']['change'](()=>{_0x350d50['getSuggestions']()['filter'](_0x2d0be7=>_0x2d0be7['isInContent']&&_0x574d34==_0x2d0be7['author']&&'formatBlock'==_0x2d0be7['type']&&'mediaStylePostApply'==_0x2d0be7['subType']&&_0x2d0be7['getFirstRange']()['isEqual'](_0x1398b5))['forEach'](_0x5b1c6c=>_0x350d50['discardSuggestion'](_0x5b1c6c['head'])),_0x425a24['refresh'](),_0x414bd2=_0x425a24['value'],_0x414bd2!=_0x44edb9['value']&&_0x350d50['markBlockFormat'](_0x5e995d,{..._0x19a74a,'commandReversedParams':[{'value':'string'==typeof _0x414bd2?_0x414bd2:null}]},[],'mediaStylePostApply');});}),_0x350d50['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x350d50['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1ed5c0,_0xb11e40)=>{_0x350d50['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ed5c0,{'commandName':_0xb11e40['commandName'],'commandParams':_0xb11e40['commandReversedParams']});}),_0x350d50['descriptionFactory']['registerDescriptionCallback'](_0x47cd27=>{if('formatBlock'!=_0x47cd27['type'])return;const {data:_0x46556e}=_0x47cd27;if(!_0x46556e||'mediaStyle'!=_0x46556e['commandName'])return;const _0x387559=_0x46556e['commandParams'][0x0]['value']||_0x483d78;if(!_0x387559)return;const _0x266800=_0x3bba8d[_0x387559]||_0x387559;return{'type':'format','content':wt(_0x4af51a,'*Format:*\x20%0',_0x266800)};});}},Ne=class extends _0x5ad79e{afterInit(){const _0x38a6d8=this['editor'];_0x38a6d8['plugins']['has']('MentionEditing')&&_0x38a6d8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x5ad79e{afterInit(){const _0x42ee79=this['editor'];if(!_0x42ee79['plugins']['has']('MergeFieldsEditing'))return;const _0x542a80=_0x42ee79['plugins']['get']('TrackChangesEditing'),_0x279a0b=_0x42ee79['locale'];_0x542a80['enableCommand']('insertMergeField'),_0x542a80['enableCommand']('insertMergeFieldBlock'),_0x542a80['enableCommand']('insertMergeFieldImage'),_0x542a80['descriptionFactory']['registerElementLabel']('mergeField',_0x5b9c19=>wt(_0x279a0b,'ELEMENT_MERGE_FIELD',_0x5b9c19)),_0x542a80['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x585ad9=>wt(_0x279a0b,'ELEMENT_MERGE_FIELD',_0x585ad9)),_0x542a80['descriptionFactory']['registerDescriptionCallback'](_0x409fad=>{if('insertion'!=_0x409fad['type']&&'deletion'!=_0x409fad['type'])return;const _0x1f9c4c=_0x409fad['getContainedElement']();if(null==_0x1f9c4c)return;const _0x39732e=_0x42ee79['plugins']['get']('MergeFieldsEditing');let _0x218f2e;switch(_0x39732e['getMergeFieldType'](_0x1f9c4c)){case null:return;case'image':{const _0x41a6c1=_0x39732e['unwrapAffixes'](_0x1f9c4c['getAttribute']('src'));_0x218f2e=_0x39732e['getLabel'](_0x41a6c1)||_0x41a6c1;break;}default:{const _0x3b5a44=_0x1f9c4c['getAttribute']('id');_0x218f2e=_0x39732e['getLabel'](_0x3b5a44)||_0x3b5a44;break;}}return'insertion'==_0x409fad['type']?{'type':'insertion','content':wt(_0x279a0b,'*Insert:*\x20%0','\x22'+_0x218f2e+'\x22\x20'+wt(_0x279a0b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x279a0b,'*Remove:*\x20%0','\x22'+_0x218f2e+'\x22\x20'+wt(_0x279a0b,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x5ad79e{afterInit(){const _0x39159b=this['editor'],_0x42e52f=_0x39159b['plugins']['get']('TrackChangesEditing');_0x39159b['plugins']['has']('MultiLevelList')&&(_0x42e52f['enableDefaultAttributesIntegration']('multiLevelList'),_0x42e52f['descriptionFactory']['registerDescriptionCallback'](_0x5e432c=>this['handleDescriptions'](_0x5e432c)));}handleDescriptions(_0x54a754){const _0x66fbd0=this['editor']['locale'],{data:_0x276fc2}=_0x54a754,_0x3b7f04={'type':'format','content':''};if(_0x276fc2&&'listMarkerStyle'==_0x276fc2['key']){if(!_0x276fc2['oldValue'])return{'type':'format','content':wt(_0x66fbd0,'*Set\x20format:*\x20%0',wt(_0x66fbd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x276fc2['newValue']+')'};if(!_0x276fc2['newValue']){let _0x418680=_0x54a754['head'];for(;_0x418680;){if(_0x418680['data']&&'listType'==_0x418680['data']['key']&&_0x418680['data']['newValue'])return _0x3b7f04;_0x418680=_0x418680['next'];}return{'type':'format','content':wt(_0x66fbd0,'*Remove\x20format:*\x20%0',wt(_0x66fbd0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x276fc2['oldValue']+')'};}}}},Me=class extends _0x5ad79e{afterInit(){const _0x466468=this['editor'];if(!_0x466468['plugins']['has']('PageBreakEditing'))return;_0x466468['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xf2d217=_0x466468['plugins']['get']('TrackChangesEditing'),_0x2c08e0=_0x466468['locale'];_0xf2d217['descriptionFactory']['registerElementLabel']('pageBreak',_0x39250b=>wt(_0x2c08e0,'ELEMENT_PAGE_BREAK',_0x39250b));}},Oe=class extends _0x5ad79e{afterInit(){const _0x2c3908=this['editor'];if(!_0x2c3908['plugins']['has']('Paragraph'))return;const _0x580c57=_0x2c3908['locale'],_0x26fdad=_0x2c3908['plugins']['get']('TrackChangesEditing');_0x26fdad['descriptionFactory']['registerElementLabel']('paragraph',_0x53d6fe=>wt(_0x580c57,'ELEMENT_PARAGRAPH',_0x53d6fe)),_0x26fdad['enableDefaultAttributesIntegration']('paragraph'),_0x26fdad['enableCommand']('insertParagraph');const _0x56223d=_0x26fdad['descriptionFactory'];_0x56223d['registerDescriptionCallback'](_0x343728=>{if('insertion'!==_0x343728['type'])return;const {start:_0x59f590,end:_0x52cb25}=_0x343728['getFirstRange']();if(!_0x59f590['isTouching'](_0x52cb25)||!_0x59f590['nodeAfter'])return;const _0x5e9fc5=_0x2c3908['model']['schema'],_0x2fed7a=_0x59f590['nodeAfter'];return _0x5e9fc5['isBlock'](_0x2fed7a)&&!_0x5e9fc5['isLimit'](_0x2fed7a)&&_0x5e9fc5['checkChild'](_0x2fed7a,'$text')?{'type':'insertion','content':wt(_0x580c57,'*Insert:*\x20%0',_0x56223d['getItemLabel'](_0x2fed7a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5a4581=this['editor'],_0x5d18f8=_0x5a4581['locale'];_0x5a4581['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x435820=>{if('formatBlock'!=_0x435820['type'])return;const {data:_0x48a450}=_0x435820;return _0x48a450&&'paragraph'==_0x48a450['commandName']?{'type':'format','content':wt(_0x5d18f8,'*Change\x20to:*\x20%0',wt(_0x5d18f8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x5ad79e{afterInit(){const _0x5bba1e=this['editor'];_0x5bba1e['commands']['get']('replaceSource')&&_0x5bba1e['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x5ad79e{afterInit(){const _0x349aa2=this['editor'];_0x349aa2['plugins']['has']('RemoveFormatEditing')&&(_0x349aa2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x582307=this['editor'];_0x582307['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295307=>{if('formatBlock'!=_0x295307['type']&&'formatInline'!=_0x295307['type'])return;const {data:_0x13ec86}=_0x295307;return _0x13ec86&&'removeFormat'==_0x13ec86['commandName']?{'type':'format','content':wt(_0x582307['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x5ad79e{afterInit(){const _0x397a0c=this['editor'];if(!_0x397a0c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3540db=_0x397a0c['plugins']['get']('TrackChangesEditing');_0x3540db['enableCommand']('goToPreviousRestrictedEditingException'),_0x3540db['enableCommand']('goToNextRestrictedEditingException');const _0x49cd11=_0x397a0c['plugins']['get']('RestrictedEditingModeEditing');_0x49cd11['enableCommand']('trackChanges'),_0x49cd11['enableCommand']('acceptSuggestion'),_0x49cd11['enableCommand']('discardSuggestion'),_0x49cd11['enableCommand']('acceptAllSuggestions'),_0x49cd11['enableCommand']('discardAllSuggestions'),_0x49cd11['enableCommand']('acceptSelectedSuggestions'),_0x49cd11['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x5ad79e{afterInit(){const _0x33aa69=this['editor'];if(!_0x33aa69['plugins']['has']('ShiftEnter'))return;const _0x57d0fc=_0x33aa69['plugins']['get']('TrackChangesEditing');_0x57d0fc['enableCommand']('shiftEnter'),_0x57d0fc['descriptionFactory']['registerElementLabel']('softBreak',_0x13250a=>wt(_0x33aa69['locale'],'ELEMENT_LINE_BREAK',_0x13250a));}};function De(_0x5c17c9,_0xce1ef6,_0x2bf4c0){const _0x3aa6b7=[];for(const _0x36f372 of _0xce1ef6['getItems']())_0x36f372['hasAttribute'](_0x5c17c9)&&_0x3aa6b7['push'](_0x2bf4c0['createRangeOn'](_0x36f372));return _0x3aa6b7;}var Ue=class extends _0x5ad79e{afterInit(){const _0x225d30=this['editor'],_0x1c2ced=_0x225d30['plugins']['get']('TrackChangesEditing');_0x225d30['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1c2ced['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x3eee0d=this['editor'],_0x3d730d=_0x3eee0d['model'],_0x5cb515=_0x3eee0d['locale'],_0x4b63b2=_0x3eee0d['plugins']['get']('TrackChangesEditing'),_0x1d21a2='restrictedEditingException',_0xa63241=_0x3eee0d['commands']['get'](_0x1d21a2);_0x4b63b2['enableCommand'](_0x1d21a2,(_0x1c1797,_0x373b36={})=>{const _0x2748c0=_0x3d730d['document']['selection'];if(_0x2748c0['isCollapsed'])return void _0x1c1797(_0x373b36);const _0x109247=void 0x0!==_0x373b36['forceValue']?_0x373b36['forceValue']:!_0xa63241['value'];_0x3d730d['change'](()=>{const _0x3fd10d=Array['from'](_0x2748c0['getRanges']());for(const _0x26b8df of _0x3fd10d){const _0xd81a60=_0x109247?[_0x26b8df]:De(_0x1d21a2,_0x26b8df,_0x3d730d);for(const _0xf5d9f6 of _0xd81a60)_0x4b63b2['markInlineFormat'](_0xf5d9f6,{'commandName':_0x1d21a2,'commandParams':[{'forceValue':_0x109247}]});}});}),_0x4b63b2['descriptionFactory']['registerDescriptionCallback'](_0x3b2aa8=>{if('formatBlock'!=_0x3b2aa8['type']&&'formatInline'!=_0x3b2aa8['type'])return;const {data:_0x306c88}=_0x3b2aa8;return _0x306c88&&_0x306c88['commandName']==_0x1d21a2?_0x306c88['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x5cb515,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x5cb515,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x436470=this['editor'],_0x37a353=_0x436470['locale'],_0x151b14=_0x436470['plugins']['get']('TrackChangesEditing'),_0xc0c097='restrictedEditingExceptionBlock',_0x303dff=this['editor']['commands']['get'](_0xc0c097);_0x151b14['enableCommand'](_0xc0c097,(_0x1004e3,_0x489f75={})=>{const _0x401073=this['editor']['model']['document']['selection'],_0xb9b576=_0x489f75&&void 0x0!==_0x489f75['forceValue']?_0x489f75['forceValue']:!_0x303dff['value'];let _0x59602b=[];if(_0xb9b576){const _0x178997=Array['from'](_0x401073['getSelectedBlocks']())['filter'](_0x52dd32=>function(_0x5b8008){return!!_0x5b8008['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x52dd32)||function(_0x563633,_0x2cde61){const _0x3ddc10=_0x2cde61['createContext'](_0x563633['parent']);return!!_0x2cde61['checkChild'](_0x3ddc10,'restrictedEditingException')&&!!_0x2cde61['checkChild'](_0x3ddc10['push']('restrictedEditingException'),_0x563633);}(_0x52dd32,this['editor']['model']['schema']));_0x59602b=kt(_0x178997,_0x436470['model']);}else{const _0x266972=Array['from'](_0x401073['getSelectedBlocks']())['map'](_0xdb4897=>function(_0x572e92){let _0x2013af=_0x572e92;for(;_0x2013af['parent'];){if('restrictedEditingException'==_0x2013af['parent']['name'])return _0x2013af;_0x2013af=_0x2013af['parent'];}return null;}(_0xdb4897))['filter'](_0x5d3b81=>!!_0x5d3b81);_0x59602b=kt(_0x266972,_0x436470['model']);}_0x436470['model']['change'](()=>{for(const _0x53df88 of _0x59602b)_0x151b14['markBlockFormat'](_0x53df88,{'commandName':_0xc0c097,'commandParams':[{'forceValue':_0xb9b576}]});});}),_0x151b14['descriptionFactory']['registerDescriptionCallback'](_0x2612af=>{const {data:_0x163ecd}=_0x2612af;if(_0x163ecd&&_0x163ecd['commandName']==_0xc0c097)return _0x163ecd['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x37a353,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x37a353,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x5ad79e{afterInit(){const _0x32e882=this['editor'];_0x32e882['plugins']['has']('Style')&&_0x32e882['plugins']['has']('DataSchema')&&(_0x32e882['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4f5136=this['editor'],_0x56ba11=_0x4f5136['locale'];_0x4f5136['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d5007=>{if('formatBlock'!=_0x3d5007['type']&&'formatInline'!=_0x3d5007['type'])return;const {data:_0x520348}=_0x3d5007;return _0x520348&&'style'===_0x520348['commandName']?_0x520348['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x56ba11,'*Set\x20format:*\x20%0',_0x520348['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x56ba11,'*Remove\x20format:*\x20%0',_0x520348['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x5ad79e{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x34d2e8){super(_0x34d2e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x32d6b4=this['editor'],_0x1e6310=_0x32d6b4['model']['document']['selection'];if(!_0x32d6b4['plugins']['has']('TableEditing'))return;const _0x3ecad9=_0x32d6b4['locale'],_0x678cb2=_0x32d6b4['plugins']['get']('TrackChangesEditing'),_0x2edbe9=_0x32d6b4['plugins']['get']('TableUtils');_0x678cb2['descriptionFactory']['registerElementLabel']('table',_0x2cc364=>wt(_0x3ecad9,'ELEMENT_TABLE',_0x2cc364)),this['_setupColumnsRowsFixing'](),_0x678cb2['enableCommand']('insertTable'),_0x678cb2['enableCommand']('selectTableRow'),_0x678cb2['enableCommand']('selectTableColumn');for(const _0x38e959 of['insertTableRowAbove','insertTableRowBelow']){const _0x364e45=_0x32d6b4['commands']['get'](_0x38e959);_0x678cb2['enableCommand'](_0x38e959,_0x50e337=>{_0x32d6b4['model']['change'](_0x4ba805=>{_0x50e337();const _0xa26991='above'===_0x364e45['order'],_0x3e8314=_0x2edbe9['getSelectionAffectedTableCells'](_0x1e6310),_0x5db0af=_0x2edbe9['getRowIndexes'](_0x3e8314),_0x56e092=_0xa26991?_0x5db0af['first']-0x1:_0x5db0af['last']+0x1,_0x2acc8d=_0x3e8314[0x0]['findAncestor']('table'),_0x156fd2=_0x2edbe9['createTableWalker'](_0x2acc8d,{'startRow':_0x56e092,'endRow':_0x56e092}),_0x4ae084=Array['from'](_0x156fd2)['map'](_0x2c84fc=>_0x4ba805['createRangeOn'](_0x2c84fc['cell']));_0x678cb2['markMultiRangeInsertion'](_0x4ae084,'tableRow');});});}for(const _0x10e652 of['insertTableColumnLeft','insertTableColumnRight']){const _0x58b644=_0x32d6b4['commands']['get'](_0x10e652);_0x678cb2['enableCommand'](_0x10e652,_0x1da9e9=>{_0x32d6b4['model']['change'](_0x13b3be=>{_0x1da9e9();const _0x1a4d73='left'===_0x58b644['order'],_0x1feb88=_0x2edbe9['getSelectionAffectedTableCells'](_0x1e6310),_0x53c56a=_0x2edbe9['getColumnIndexes'](_0x1feb88),_0x4afe71=_0x1a4d73?_0x53c56a['first']-0x1:_0x53c56a['last']+0x1,_0x1c0885=_0x1feb88[0x0]['findAncestor']('table'),_0x552770=_0x2edbe9['createTableWalker'](_0x1c0885,{'startRow':0x0,'column':_0x4afe71,'includeAllSlots':!0x1}),_0x4cdf9e=Array['from'](_0x552770)['map'](_0x2555ae=>_0x13b3be['createRangeOn'](_0x2555ae['cell']));_0x678cb2['markMultiRangeInsertion'](_0x4cdf9e,'tableColumn');});});}for(const _0x3ee35f of['removeTableRow','removeTableColumn']){const _0x40289f=_0x3ee35f['substr'](0xb),_0x41dffd=_0x40289f['toLowerCase'](),_0x1b53b8=_0x41dffd['substr'](0x0,0x3)+'span',_0x5fff10='table'+_0x40289f,_0x18eadf='min'+_0x40289f,_0x1dea43='max'+_0x40289f;_0x678cb2['enableCommand'](_0x3ee35f,()=>{_0x32d6b4['model']['change'](_0x2e5610=>{const _0x145f7a=_0x2edbe9['getSelectionAffectedTableCells'](_0x1e6310),_0x1ba883=_0x145f7a[0x0]['findAncestor']('table');let _0x5a76b5;if('removeTableRow'==_0x3ee35f){const _0x2514e9=_0x2edbe9['getRowIndexes'](_0x145f7a);_0x5a76b5={'startRow':_0x2514e9['first'],'endRow':_0x2514e9['last'],'includeAllSlots':!0x0};}else{const _0x34805f=_0x2edbe9['getColumnIndexes'](_0x145f7a);_0x5a76b5={'startColumn':_0x34805f['first'],'endColumn':_0x34805f['last'],'includeAllSlots':!0x0};}const _0x30ada6=_0x2edbe9['createTableWalker'](_0x1ba883,_0x5a76b5),_0x780262=Array['from'](_0x30ada6)['map'](({cell:_0x1f0e5a})=>_0x1f0e5a),_0x1a1a93=Ge(_0x780262['filter'](_0xcd8334=>_0xcd8334['hasAttribute'](_0x1b53b8))),_0x55a87e=Ge(_0x780262['filter'](_0x2e4d04=>!_0x2e4d04['hasAttribute'](_0x1b53b8)))['map'](_0x12cf98=>_0x2e5610['createRangeOn'](_0x12cf98)),_0x5ea7cc=_0x678cb2['markMultiRangeDeletion'](_0x55a87e,_0x5fff10);if(_0x5ea7cc&&('tableRow'==_0x5ea7cc['subType']||'tableColumn'==_0x5ea7cc['subType'])){const _0xbd140=this['_getSuggestionCoords'](_0x5ea7cc);for(const _0x4561a4 of _0x1a1a93){const _0x41fde7=_0x2e5610['createRangeOn'](_0x4561a4),_0x2e810f=_0x2edbe9['getCellLocation'](_0x4561a4),_0x35e8b0=_0x4561a4['getAttribute'](_0x1b53b8)-0x1,_0x5dbe78=_0xbd140[_0x18eadf],_0x41f431=_0xbd140[_0x1dea43];_0x5dbe78<=_0x2e810f[_0x41dffd]&&_0x2e810f[_0x41dffd]+_0x35e8b0<=_0x41f431&&_0x5ea7cc['addRange'](_0x41fde7);}}});});}function _0x2fe974(_0x4d725d){const _0x47f6a0=Array['from'](_0x1e6310['getRanges']())['map'](_0x58a872=>at['fromRange'](_0x58a872));_0x32d6b4['model']['change'](_0x1eb57a=>{const _0x5b10cd=_0x1eb57a['batch'];_0x4d725d=_0x4d725d['filter'](_0x26927e=>'$graveyard'!=_0x26927e['root']['rootName']),_0x1eb57a['setSelection'](_0x4d725d),_0x32d6b4['commands']['get']('removeTableRow')['refresh'](),_0x32d6b4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x32d6b4['model']['enqueueChange'](()=>{_0x32d6b4['model']['enqueueChange'](_0x5b10cd,_0x55a0ee=>{const _0x5ed886=_0x47f6a0['filter'](_0x3ca7f3=>'$graveyard'!=_0x3ca7f3['root']['rootName']);_0x5ed886['length']>0x0&&_0x55a0ee['setSelection'](_0x5ed886);for(const _0x15a2e8 of _0x47f6a0)_0x15a2e8['detach']();});});});}function _0x43a70b(_0x107f78){_0x32d6b4['model']['change'](_0x5cad2c=>{const _0x37877d=Array['from'](_0x1e6310['getRanges']())['map'](_0x2a504a=>at['fromRange'](_0x2a504a)),_0x5f4b8b=[];for(const _0x343468 of _0x107f78)for(const _0x312499 of _0x343468['getItems']({'shallow':!0x0}))_0x5f4b8b['push'](_0x312499);for(const _0x2f910f of _0x5f4b8b)'$graveyard'!=_0x2f910f['root']['rootName']&&(_0x5cad2c['setSelection'](_0x5cad2c['createPositionAt'](_0x2f910f,0x0)),_0x32d6b4['commands']['get']('removeTableColumn')['refresh'](),_0x32d6b4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xfe3c5a=_0x37877d['filter'](_0x56e3c8=>'$graveyard'!=_0x56e3c8['root']['rootName']);_0xfe3c5a['length']>0x0&&_0x5cad2c['setSelection'](_0xfe3c5a);for(const _0x45f69f of _0x37877d)_0x45f69f['detach']();});}function _0x2b815a(_0x3a8829,_0x59fbbe){return _0x59fbbe['every'](_0x597d3b=>_0x3a8829['some'](_0x55c8ca=>_0x55c8ca['end']['isEqual'](_0x597d3b['start'])||_0x597d3b['end']['isEqual'](_0x55c8ca['start'])));}function _0x46bd44(_0x509231,_0x385a18){return!_0x509231['some'](_0x42620e=>_0x385a18['some'](_0x1e56e3=>_0x42620e['isIntersecting'](_0x1e56e3)))&&_0x509231['some'](_0x645167=>_0x385a18['some'](_0xfb3d9d=>_0x645167['end']['isTouching'](_0xfb3d9d['start'])));}_0x678cb2['descriptionFactory']['registerDescriptionCallback'](_0x1b00d0=>{if('insertion'!=_0x1b00d0['type']&&'deletion'!=_0x1b00d0['type'])return;const _0x3be25a=_0x1b00d0['getContainedElement']();if(null!=_0x3be25a&&_0x3be25a['is']('element','table')){if('insertion'==_0x1b00d0['type']){const _0x4c4b9f=_0x1b00d0['getItems']()['filter'](_0x82f93=>_0x82f93['is']('$textProxy'))['map'](_0xebd7b=>_0xebd7b['data']);if(_0x4c4b9f['length'])return{'type':'insertion','content':wt(_0x3ecad9,'*Insert:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c4b9f['join']('\x20')+'\x22'))};}if('deletion'==_0x1b00d0['type']){const _0x282428=_0x1b00d0['getItems']()['filter'](_0x3d0639=>_0x3d0639['is']('$textProxy'))['map'](_0x5eecd3=>_0x5eecd3['data']);if(_0x282428['length'])return{'type':'deletion','content':wt(_0x3ecad9,'*Remove:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x282428['join']('\x20')+'\x22'))};}}}),_0x678cb2['descriptionFactory']['registerDescriptionCallback'](_0x538e46=>{if('tableRow'==_0x538e46['subType']){const _0x5d3c38=_0x538e46['getItems']()['filter'](_0x1a85b2=>_0x1a85b2['is']('$textProxy'))['map'](_0x39a2f1=>_0x39a2f1['data']),_0x79911c=this['_getSuggestionCoords'](_0x538e46),_0xe17ded=_0x79911c['maxRow']-_0x79911c['minRow']+0x1;if('insertion'==_0x538e46['type'])return _0x5d3c38['length']?{'type':'insertion','content':wt(_0x3ecad9,'*Insert:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe17ded,'\x22'+_0x5d3c38['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x3ecad9,'*Insert:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_ROW',_0xe17ded))};if('deletion'==_0x538e46['type'])return _0x5d3c38['length']?{'type':'deletion','content':wt(_0x3ecad9,'*Remove:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe17ded,'\x22'+_0x5d3c38['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x3ecad9,'*Remove:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_ROW',_0xe17ded))};}if('tableColumn'==_0x538e46['subType']){const _0x2fb71e=_0x538e46['getItems']()['filter'](_0x1a49fc=>_0x1a49fc['is']('$textProxy'))['map'](_0x31783d=>_0x31783d['data']),_0xfec0ac=this['_getSuggestionCoords'](_0x538e46),_0x54dcd7=_0xfec0ac['maxColumn']-_0xfec0ac['minColumn']+0x1;if('insertion'==_0x538e46['type'])return _0x2fb71e['length']?{'type':'insertion','content':wt(_0x3ecad9,'*Insert:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54dcd7,'\x22'+_0x2fb71e['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x3ecad9,'*Insert:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_COLUMN',_0x54dcd7))};if('deletion'==_0x538e46['type'])return _0x2fb71e['length']?{'type':'deletion','content':wt(_0x3ecad9,'*Remove:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x54dcd7,'\x22'+_0x2fb71e['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x3ecad9,'*Remove:*\x20%0',wt(_0x3ecad9,'ELEMENT_TABLE_COLUMN',_0x54dcd7))};}}),_0x678cb2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2fe974),_0x678cb2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2fe974),_0x678cb2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x43a70b),_0x678cb2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x43a70b),_0x678cb2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2b815a),_0x678cb2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2b815a),_0x678cb2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x46bd44),_0x678cb2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x46bd44);}_acceptFormatSuggestionCallbackFactory(){const _0x16cabd=this['editor'],_0xfd8272=_0x16cabd['model']['document']['selection'];return(_0x2f29fe,_0x4fbd27)=>{_0x16cabd['model']['change'](_0x3d240f=>{const {commandName:_0x2b2a24,commandParams:_0x4aa2e0}=_0x4fbd27;let _0xbb5bb0=_0x2f29fe[0x0]['end']['nodeBefore'];_0x4aa2e0&&_0x4aa2e0[0x0]&&!0x1===_0x4aa2e0[0x0]['forceValue']&&(_0xbb5bb0=_0x2f29fe[0x0]['start']['nodeAfter']);const _0x25a80c=_0x3d240f['createRangeIn'](_0xbb5bb0);if('$graveyard'==_0x25a80c['root']['rootName'])return;const _0x2ef3da=Array['from'](_0xfd8272['getRanges']())['map'](_0x1f88f8=>at['fromRange'](_0x1f88f8));_0x3d240f['setSelection'](_0x25a80c),_0x16cabd['commands']['get'](_0x2b2a24)['refresh'](),_0x4aa2e0['push']({'forceDefaultExecution':!0x0}),_0x16cabd['execute'](_0x2b2a24,..._0x4aa2e0);const _0x3f7379=_0x2ef3da['filter'](_0x439d55=>'$graveyard'!=_0x439d55['root']['rootName']);_0x3f7379['length']>0x0&&_0x3d240f['setSelection'](_0x3f7379);for(const _0x444b07 of _0x2ef3da)_0x444b07['detach']();});};}_getCoordsForCells(_0x378628){const _0xb4e6c9=this['editor']['plugins']['get']('TableUtils');let _0x4744e6=Number['MAX_SAFE_INTEGER'],_0x37d83f=Number['MIN_SAFE_INTEGER'],_0x12ac10=Number['MAX_SAFE_INTEGER'],_0x4928a5=Number['MIN_SAFE_INTEGER'];for(const _0x5ea25b of _0x378628){if('$graveyard'==_0x5ea25b['root']['rootName'])continue;const {row:_0x264e82,column:_0x53a0dd}=_0xb4e6c9['getCellLocation'](_0x5ea25b),_0x516b20=_0x5ea25b['hasAttribute']('rowspan')?_0x5ea25b['getAttribute']('rowspan')-0x1:0x0,_0x368df6=_0x5ea25b['hasAttribute']('colspan')?_0x5ea25b['getAttribute']('colspan')-0x1:0x0;_0x4744e6=_0x264e82<_0x4744e6?_0x264e82:_0x4744e6,_0x37d83f=_0x264e82+_0x516b20>_0x37d83f?_0x264e82+_0x516b20:_0x37d83f,_0x12ac10=_0x53a0dd<_0x12ac10?_0x53a0dd:_0x12ac10,_0x4928a5=_0x53a0dd+_0x368df6>_0x4928a5?_0x53a0dd+_0x368df6:_0x4928a5;}return{'minRow':_0x4744e6,'maxRow':_0x37d83f,'minColumn':_0x12ac10,'maxColumn':_0x4928a5};}_setupColumnsRowsFixing(){const _0x592cbf=this['editor'],_0x21680e=_0x592cbf['plugins']['get']('TrackChangesEditing'),_0x34fa18=_0x592cbf['plugins']['get']('TableUtils');_0x592cbf['model']['document']['on']('change:data',()=>{const _0x5b4a7d=Array['from'](_0x592cbf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e7328,data:_0x30a178}of _0x5b4a7d){const {group:_0x26928f,id:_0x189d2e,subType:_0xde2343}=nt(_0x2e7328);if('suggestion'!=_0x26928f)continue;if(null!=_0x30a178['oldRange'])continue;const _0x235d10=_0x21680e['getSuggestion'](_0x189d2e);this['_tablePostFixingSubtypes']['includes'](_0xde2343)&&this['_tableSuggestions']['add'](_0x235d10);}},{'priority':'low'});const _0xc24197=(_0x35e09a,_0x2afab7)=>{let _0x1659d2=!0x1;const _0x543a33=_0x2afab7['createRangeOn'](_0x35e09a),_0xd6b128=_0x35e09a['findAncestor']('table'),_0xb1280=_0x34fa18['getCellLocation'](_0x35e09a);for(const _0x2a65aa of this['_tableSuggestions']){const _0xef05a4=_0x2a65aa['subType'],_0x225634=_0xef05a4['startsWith']('tablePaste'),_0x36f8b6=_0xef05a4['substr'](_0x225634?0xa:0x5),_0x90eb8c=_0x36f8b6['toLowerCase'](),_0x477b7a=_0x90eb8c['substr'](0x0,0x3)+'span',_0x403bf9='min'+_0x36f8b6,_0x38d646='max'+_0x36f8b6;if(!_0x2a65aa['isInContent'])continue;if(_0xd6b128!=_0x2a65aa['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2a65aa['isIntersectingWithRange'](_0x543a33))continue;const _0x12490a=_0x35e09a['hasAttribute'](_0x477b7a)?_0x35e09a['getAttribute'](_0x477b7a)-0x1:0x0,_0xb67d4e=this['_getSuggestionCoords'](_0x2a65aa),_0x5480c1=_0xb67d4e[_0x403bf9],_0x35f8ed=_0xb67d4e[_0x38d646];_0x5480c1<=_0xb1280[_0x90eb8c]&&_0xb1280[_0x90eb8c]+_0x12490a<=_0x35f8ed&&(_0x2a65aa['addRange'](_0x543a33),_0x1659d2=!0x0);}return _0x1659d2;};_0x592cbf['model']['document']['registerPostFixer'](_0x2e458b=>{let _0x2de301=!0x1;for(const _0x262c7a of _0x592cbf['model']['document']['differ']['getChanges']())if('insert'==_0x262c7a['type']){if('tableRow'==_0x262c7a['name']){for(const _0x917048 of _0x262c7a['position']['nodeAfter']['getChildren']())_0x2de301=_0x2de301||_0xc24197(_0x917048,_0x2e458b);}else'tableCell'==_0x262c7a['name']&&(_0x2de301=_0x2de301||_0xc24197(_0x262c7a['position']['nodeAfter'],_0x2e458b));}return _0x2de301;});}_getSuggestionCoords(_0x4fe38b){return this['_getCoordsForCells'](_0x4fe38b['getRanges']()['map'](_0x9d1574=>_0x9d1574['start']['nodeAfter']));}};function Ge(_0x24de51){return Array['from'](new Set(_0x24de51)['values']());}var He=class extends _0x5ad79e{static get requires(){return[xe];}afterInit(){const _0x2033c1=this['editor'],_0x3714b6=_0x2033c1['model']['document']['selection'],_0xeea9d9=_0x2033c1['locale'];if(!_0x2033c1['plugins']['has']('TableEditing'))return;const _0x5afd62=_0x2033c1['plugins']['get']('TrackChangesEditing'),_0x36df54=_0x2033c1['plugins']['get']('TableUtils'),_0x53051c=_0x2033c1['plugins']['get'](xe);_0x53051c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5afd62['enableCommand']('mergeTableCells',()=>{const _0x384c66=_0x36df54['getSelectionAffectedTableCells'](_0x2033c1['model']['document']['selection']);_0x2033c1['model']['change'](()=>{_0x5afd62['markMultiRangeBlockFormat'](_0x384c66,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2033c1['commands']['get']('mergeTableCells')['on']('execute',(_0x585a07,_0x3fe805)=>{_0x2033c1['commands']['get']('trackChanges')['value']&&(_0x3fe805['length']>0x0&&_0x3fe805[_0x3fe805['length']-0x1]&&_0x3fe805[_0x3fe805['length']-0x1]['forceDefaultExecution']||_0x5afd62['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x585a07['stop']());},{'priority':'highest'});for(const _0x3ec066 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x530c1d=_0x2033c1['commands']['get'](_0x3ec066);_0x5afd62['enableCommand'](_0x3ec066,()=>{const _0x3515f8=_0x2033c1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46a25f=>_0x46a25f['is']('element','tableCell')),_0xf8fc4e=_0x530c1d['value'];_0x2033c1['model']['change'](()=>{_0x5afd62['markMultiRangeBlockFormat']([_0x3515f8,_0xf8fc4e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x19ef84 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x452d89=_0x2033c1['commands']['get'](_0x19ef84);_0x5afd62['enableCommand'](_0x19ef84,()=>{const _0x59b169=_0x36df54['getSelectionAffectedTableCells'](_0x2033c1['model']['document']['selection']),_0x178ac3=_0x59b169[0x0]['findAncestor']('table'),_0x3c07fb=new Set();for(const _0x42257d of _0x59b169){const {column:_0x22c111,row:_0x453274}=_0x36df54['getCellLocation'](_0x42257d),_0x25536f='horizontally'==_0x452d89['direction']?_0x36df54['createTableWalker'](_0x178ac3,{'startRow':_0x453274,'endRow':_0x453274,'includeAllSlots':!0x0}):_0x36df54['createTableWalker'](_0x178ac3,{'column':_0x22c111,'includeAllSlots':!0x0});for(const {cell:_0x501525}of _0x25536f)_0x3c07fb['add'](_0x501525);}_0x2033c1['model']['change'](()=>{_0x5afd62['markMultiRangeBlockFormat'](_0x59b169,{'commandName':_0x19ef84,'commandParams':[]},Array['from'](_0x3c07fb),_0x19ef84);});});}_0x5afd62['descriptionFactory']['registerDescriptionCallback'](_0x4d34e2=>{if('formatBlock'!=_0x4d34e2['type']&&'formatInline'!=_0x4d34e2['type'])return;const {data:_0x13f784}=_0x4d34e2;return _0x13f784&&'mergeTableCells'==_0x13f784['commandName']?{'type':'format','content':wt(_0xeea9d9,'*Merge\x20cells*')}:void 0x0;}),_0x5afd62['descriptionFactory']['registerDescriptionCallback'](_0x19aeaa=>{if('formatBlock'!=_0x19aeaa['type']&&'formatInline'!=_0x19aeaa['type'])return;const {data:_0x22aa4e}=_0x19aeaa;return _0x22aa4e?'splitTableCellVertically'==_0x22aa4e['commandName']?{'type':'format','content':wt(_0xeea9d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x22aa4e['commandName']?{'type':'format','content':wt(_0xeea9d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x42d6a6=_0x53051c['_acceptFormatSuggestionCallbackFactory']();for(const _0x20873d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5afd62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x20873d,'accept',_0x42d6a6);for(const _0x1003d3 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5afd62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1003d3,'accept',_0x58a353=>{_0x2033c1['model']['change'](_0x4d9d26=>{const _0x1abdbf=Array['from'](_0x58a353)['filter'](_0x3aae5e=>'$graveyard'!=_0x3aae5e['root']['rootName']&&!!_0x3aae5e['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1abdbf['length'])return;const _0x1d61a8=Array['from'](_0x3714b6['getRanges']())['map'](_0x2d0a8f=>at['fromRange'](_0x2d0a8f));_0x4d9d26['setSelection'](_0x1abdbf),_0x2033c1['commands']['get'](_0x1003d3)['refresh'](),_0x2033c1['execute'](_0x1003d3,{'forceDefaultExecution':!0x0});const _0x5bb0f4=_0x1d61a8['filter'](_0x4e5e62=>'$graveyard'!=_0x4e5e62['root']['rootName']);_0x5bb0f4['length']>0x0&&_0x4d9d26['setSelection'](_0x5bb0f4);for(const _0x4d4b8f of _0x1d61a8)_0x4d4b8f['detach']();});});_0x5afd62['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x595d70=>{_0x2033c1['model']['change'](_0x4c9c56=>{const _0x5d65a8=Array['from'](_0x3714b6['getRanges']())['map'](_0x3280d8=>at['fromRange'](_0x3280d8));_0x4c9c56['setSelection'](_0x595d70),_0x2033c1['commands']['get']('mergeTableCells')['refresh'](),_0x2033c1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5d0eef=_0x5d65a8['filter'](_0x4af411=>'$graveyard'!=_0x4af411['root']['rootName']);_0x5d0eef['length']>0x0&&_0x4c9c56['setSelection'](_0x5d0eef);for(const _0x265689 of _0x5d65a8)_0x265689['detach']();});});for(const _0x3322c2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd56711=_0x2033c1['commands']['get'](_0x3322c2);_0xd56711['on']('set:isEnabled',(_0x6175a4,_0x4a4893,_0x26db32)=>{if(_0x26db32){const _0x193bb1=_0x2033c1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x271671=>_0x271671['is']('element','tableCell'));this['_areMergableCells'](_0xd56711['value'],_0x193bb1)||(_0x6175a4['return']=!0x1,_0x6175a4['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x5b36a2=this['editor']['commands']['get']('mergeTableCells'),_0x450895=this['editor']['plugins']['get']('TableUtils');if(!_0x5b36a2['isEnabled'])return!0x1;const _0x465683=_0x450895['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ae65 of _0x465683)for(const _0x211a4f of _0x465683)if(_0x30ae65!=_0x211a4f&&!this['_areMergableCells'](_0x30ae65,_0x211a4f))return!0x1;return!0x0;}['_areMergableCells'](_0x128183,_0x52bfbb){const _0x1d63ee=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19d138=this['editor']['model']['createRangeOn'](_0x128183),_0x21a4ab=this['editor']['model']['createRangeOn'](_0x52bfbb),_0x365592=new Set(),_0x287401=new Set();for(const _0x57bcb5 of _0x1d63ee['getSuggestions']())if(('insertion'==_0x57bcb5['type']||'deletion'==_0x57bcb5['type']||'mergeTableCells'==_0x57bcb5['subType'])&&_0x57bcb5['isInContent']){for(const _0x5dbbfd of _0x57bcb5['getRanges']())_0x5dbbfd['containsRange'](_0x19d138,!0x0)&&_0x365592['add'](_0x57bcb5['type']+':'+_0x57bcb5['author']['id']),_0x5dbbfd['containsRange'](_0x21a4ab,!0x0)&&_0x287401['add'](_0x57bcb5['type']+':'+_0x57bcb5['author']['id']);}if(_0x365592['size']!=_0x287401['size'])return!0x1;for(const _0x4de46f of _0x365592)if(!_0x287401['has'](_0x4de46f))return!0x1;return!0x0;}},$e=class extends _0x5ad79e{static get requires(){return[xe];}afterInit(){const _0x4604a1=this['editor'];if(!_0x4604a1['plugins']['has']('TableEditing'))return;const _0x468b44=_0x4604a1['locale'],_0x3a2624=_0x4604a1['plugins']['get']('TrackChangesEditing');_0x3a2624['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3a2624['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3a2624['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x468b44,'FORMAT_HEADER_ROW')),_0x3a2624['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x468b44,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x368257=this['editor']['plugins']['get']('TrackChangesEditing'),_0x76791d=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x368257['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x76791d),_0x368257['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x76791d),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x510e80=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b8b51=this['editor']['plugins']['get']('TableUtils');function _0x5391ef({showActiveMarker:_0x44cf51=!0x0,setDataAttribute:_0x46a130=!0x0}={}){return(_0x310ff2,_0x251b1e,_0x1cf6b1)=>{const {type:_0x279045,id:_0x3a2112}=nt(_0x251b1e['markerName']);if(!_0x510e80['hasSuggestion'](_0x3a2112))return;const _0x22fa49=_0x510e80['getSuggestion'](_0x3a2112),_0x109bce=_0x22fa49['data'];if('formatBlock'!=_0x22fa49['type']||!_0x109bce||'setTableColumnHeader'!=_0x109bce['commandName'])return;if(_0x251b1e['item'])return void _0x310ff2['stop']();if(!_0x1cf6b1['consumable']['consume'](_0x251b1e['markerRange'],_0x310ff2['name']))return;const _0x2b9701=_0x251b1e['markerRange']['start']['nodeAfter'],_0xe89908=_0x251b1e['markerRange']['end']['nodeBefore'],_0x472309=_0x2b9701['parent']['parent'],{column:_0x4c3da0}=_0x2b8b51['getCellLocation'](_0x2b9701),{column:_0x131b40}=_0x2b8b51['getCellLocation'](_0xe89908);for(let _0x50a7de=_0x4c3da0;_0x50a7de<=_0x131b40;_0x50a7de++){const _0x1caece=_0x2b8b51['createTableWalker'](_0x472309,{'column':_0x50a7de,'includeAllSlots':!0x1});for(const _0x421513 of _0x1caece){const _0x778eb9=_0x421513['cell'],_0x3a90dd=_0x1cf6b1['mapper']['toViewElement'](_0x778eb9);_0x1cf6b1['writer']['addClass']('ck-suggestion-marker-'+_0x279045,_0x3a90dd),_0x46a130&&_0x1cf6b1['writer']['setAttribute']('data-suggestion',_0x3a2112,_0x3a90dd),_0x1cf6b1['mapper']['bindElementToMarker'](_0x3a90dd,_0x251b1e['markerName']),_0x44cf51&&(_0x510e80['activeMarkers']['includes'](_0x251b1e['markerName'])?_0x1cf6b1['writer']['addClass']('ck-suggestion-marker--active',_0x3a90dd):_0x1cf6b1['writer']['removeClass']('ck-suggestion-marker--active',_0x3a90dd));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5391ef(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x313c11,_0xbf039b,_0x99495f)=>{_0x99495f['options']['showSuggestionHighlights']&&_0x5391ef({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x313c11,_0xbf039b,_0x99495f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x411938,_0x56f288,_0x5ada01)=>{const {type:_0x3dcd66,id:_0x366769}=nt(_0x56f288['markerName']);if(!_0x510e80['hasSuggestion'](_0x366769))return;const _0x22ee4a=_0x510e80['getSuggestion'](_0x366769),_0x2cb25b=_0x22ee4a['data'];if('formatBlock'!=_0x22ee4a['type']||!_0x2cb25b||'setTableColumnHeader'!=_0x2cb25b['commandName'])return;const _0x566c64=_0x5ada01['mapper']['markerNameToElements'](_0x56f288['markerName']);if(_0x566c64){for(const _0x8c027c of _0x566c64)_0x5ada01['writer']['removeClass']('ck-suggestion-marker-'+_0x3dcd66,_0x8c027c),_0x5ada01['writer']['removeClass']('ck-suggestion-marker--active',_0x8c027c),_0x5ada01['writer']['removeAttribute']('data-suggestion',_0x8c027c),_0x5ada01['mapper']['unbindElementFromMarkerName'](_0x8c027c,_0x56f288['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x555724=this['editor'],_0x2babc6=_0x555724['locale'];function _0x4f65e4(_0x5747bf){return{'type':'format','content':wt(_0x2babc6,'*Format:*\x20%0',_0x5747bf)};}_0x555724['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x594d6e=>{if('formatBlock'!=_0x594d6e['type'])return;const {data:_0x1d4775}=_0x594d6e;return _0x1d4775?'setTableRowHeader'==_0x1d4775['commandName']?_0x1d4775['commandParams'][0x0]['forceValue']?_0x4f65e4(wt(_0x2babc6,'FORMAT_HEADER_ROW')):_0x4f65e4(wt(_0x2babc6,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1d4775['commandName']?_0x1d4775['commandParams'][0x0]['forceValue']?_0x4f65e4(wt(_0x2babc6,'FORMAT_HEADER_COLUMN')):_0x4f65e4(wt(_0x2babc6,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x5ad79e{static get requires(){return[xe];}afterInit(){const _0x288177=this['editor'];if(!_0x288177['plugins']['has']('TableEditing')||!_0x288177['config']['get']('table.enableFooters'))return;const _0x47a36e=_0x288177['locale'],_0x32a8f7=_0x288177['plugins']['get']('TrackChangesEditing');_0x32a8f7['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x32a8f7['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x47a36e,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x5ad79e{afterInit(){const _0x252094=this['editor'],_0x53b263=_0x252094['locale'],_0x5dda68=_0x252094['plugins']['get']('TrackChangesEditing');function _0x1c9dd0(_0x53d3d2){return{'type':'format','content':''+wt(_0x53b263,'*Set\x20table\x20type:*\x20%0',_0x53d3d2)};}_0x252094['plugins']['has']('TableLayout')&&(_0x5dda68['enableCommand']('insertTableLayout'),_0x5dda68['enableDefaultAttributesIntegration']('tableType'),_0x5dda68['descriptionFactory']['registerElementLabel'](_0x44a42c=>_0x44a42c['is']('element','table')&&'layout'===_0x44a42c['getAttribute']('tableType'),_0x40a1e6=>wt(_0x53b263,'ELEMENT_LAYOUT_TABLE',_0x40a1e6)),_0x5dda68['descriptionFactory']['registerDescriptionCallback'](_0x288d65=>{const {data:_0x22ae6c}=_0x288d65;if(_0x22ae6c&&'tableType'==_0x22ae6c['key'])switch(_0x22ae6c['newValue']){case'layout':return _0x1c9dd0(wt(_0x53b263,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1c9dd0(wt(_0x53b263,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](ze['map'](_0x1ad245=>[_0x1ad245,null]));var Ke=class extends _0x5ad79e{static get requires(){return[xe];}afterInit(){const _0x2b9ed6=this['editor'];if(!_0x2b9ed6['plugins']['has']('TableClipboard'))return;const _0x155d1d=_0x2b9ed6['plugins']['get']('TrackChangesEditing'),_0x4b3a79=_0x2b9ed6['plugins']['get']('TableUtils'),_0x24d4b3=_0x2b9ed6['plugins']['get'](xe),_0x43659f=_0x2b9ed6['plugins']['get']('TableClipboard'),_0x484660=_0x2b9ed6['plugins']['get']('TableSelection'),_0x3680c9=_0x2b9ed6['plugins']['get'](mt);_0x24d4b3['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2b9ed6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2b9ed6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b0162=null,_0x289d1a=!0x1;_0x3680c9['on']('contentInsertion',(_0x10b582,_0x1c4afa)=>{_0x289d1a='paste'===_0x1c4afa['method'];}),_0x2b9ed6['model']['on']('insertContent',(_0x49d133,_0x149068)=>{if(!_0x289d1a&&null===_0x484660['getSelectedTableCells']())return;const [_0x318712,_0x5eefba]=_0x149068,_0xf2ab77=_0x149068[_0x149068['length']-0x1];_0xf2ab77&&_0xf2ab77['forceDefaultExecution']||_0x155d1d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4e4ce5,_0xde7470,_0x4ca3b7,_0xb20b6,_0x120cd2){if(_0xde7470&&!_0xde7470['is']('documentSelection'))return!0x1;const _0x488760=_0x120cd2['getTableIfOnlyTableInContent'](_0x4e4ce5,_0x4ca3b7);if(!_0x488760||!qe(_0x488760,void 0x0,_0xb20b6))return!0x1;const _0x586a22=_0xb20b6['getSelectionAffectedTableCells'](_0x4ca3b7['document']['selection']);if(!_0x586a22['length'])return!0x1;const _0x47eb9b=_0x586a22[0x0]['findAncestor']('table'),_0x3b4014=_0xb20b6['getRowIndexes'](_0x586a22),_0x31b21d=_0xb20b6['getColumnIndexes'](_0x586a22),_0x16fc07={'startRow':_0x3b4014['first'],'endRow':_0x3b4014['last'],'startColumn':_0x31b21d['first'],'endColumn':_0x31b21d['last']};return 0x1==_0x586a22['length']&&(_0x16fc07['endRow']+=_0xb20b6['getRows'](_0x488760)-0x1,_0x16fc07['endColumn']+=_0xb20b6['getColumns'](_0x488760)-0x1),qe(_0x47eb9b,_0x16fc07,_0xb20b6);}(_0x318712,_0x5eefba,_0x2b9ed6['model'],_0x4b3a79,_0x43659f)&&(_0x49d133['stop'](),_0x2b0162={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2b9ed6['model']['change'](()=>{_0x2b9ed6['model']['insertContent'](_0x149068[0x0],_0x149068[0x1],_0x149068[0x2],{'forceDefaultExecution':!0x0});const _0x6401ec=_0x533d19(),{rowInsertionRanges:_0x2ef171,columnInsertionRanges:_0x36c42f,insertionRanges:_0x4981ff,deletionRanges:_0x3b3cff,cells:_0x582cd4}=_0x2b0162;_0x2ef171['length']&&_0x155d1d['markMultiRangeInsertion'](_0x2ef171,'tablePasteRow',{'tablePasteChainId':_0x6401ec}),_0x36c42f['length']&&_0x155d1d['markMultiRangeInsertion'](_0x36c42f,'tablePasteColumn',{'tablePasteChainId':_0x6401ec}),_0x4981ff['length']&&(_0x155d1d['markMultiRangeInsertion'](_0x4981ff,'tablePaste',{'tablePasteChainId':_0x6401ec,'skipNestingCheck':!0x0}),_0x4981ff['forEach'](_0x13ab3b=>_0x13ab3b['detach']?.())),_0x3b3cff['length']&&(_0x155d1d['markMultiRangeDeletion'](_0x3b3cff,'tablePaste',{'tablePasteChainId':_0x6401ec,'skipNestingCheck':!0x0}),_0x3b3cff['forEach'](_0x1c9c3b=>_0x1c9c3b['detach']?.()));const _0x1eb8ec=_0x155d1d['markMultiRangeBlockFormat'](_0x582cd4['map'](({element:_0x5a1211})=>_0x5a1211),{'formatGroupId':_0x533d19()},[],'tablePasteCell',{'tablePasteChainId':_0x6401ec});if(_0x1eb8ec){const _0x13db42=_0x1eb8ec['getMarkers'](),_0x38ef25=[];for(const {element:_0x17ad2a,attributes:_0x2b29ab}of _0x582cd4){if(!_0x2b29ab)continue;const _0x24e180=_0x2b9ed6['model']['createRangeOn'](_0x17ad2a),_0x392297=_0x13db42['find'](_0x5854da=>_0x5854da['getRange']()['isEqual'](_0x24e180));_0x392297&&_0x38ef25['push']([_0x392297['name'],_0x2b29ab]);}_0x38ef25['length']&&_0x1eb8ec['setAttribute']('markerAttributes',Object['fromEntries'](_0x38ef25));}_0x2b0162=null;}));},{'priority':_0x4faa0f['high']+0xa}),_0x3680c9['on']('contentInsertion',()=>{_0x289d1a=!0x1;},{'priority':'lowest'}),_0x2b9ed6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2895b0,_0x50165f)=>{const [_0xdda90f,_0x373a59,,_0x586e20]=_0x50165f;if(!_0x2b0162)return;_0x2895b0['stop']();const _0x5ac8a3=_0xdda90f['cell'],_0x201e31=_0x373a59,_0x5dca3f=Xe(_0x5ac8a3),_0x570668=Xe(_0x201e31);_0x2895b0['return']=_0x5ac8a3;let _0x52ddff=null,_0x1f1b00=null;if(_0x570668||_0x5dca3f){if(_0x5dca3f&&!_0x570668){_0x586e20['remove'](_0x5ac8a3['getChild'](0x0));for(const _0x4f3254 of Array['from'](_0x201e31['getChildren']()))_0x586e20['insert'](_0x4f3254,_0x5ac8a3,'end');const _0x2fa71f=_0x2b0162['rowInsertionIndexes']['includes'](_0xdda90f['row']),_0x72b9cd=_0x2b0162['columnInsertionIndexes']['includes'](_0xdda90f['column']);_0x2fa71f||_0x72b9cd||(_0x52ddff=at['fromRange'](_0x586e20['createRangeIn'](_0x5ac8a3)));}else _0x570668&&!_0x5dca3f&&(_0x1f1b00=_0x586e20['createRangeIn'](_0x5ac8a3));}else{const _0xb99071=_0x586e20['createElement']('tableCellSuggestion'),_0x5dadfd=_0x586e20['createElement']('tableCellSuggestion');_0x586e20['wrap'](_0x586e20['createRangeIn'](_0x5ac8a3),_0x5dadfd),_0x586e20['insert'](_0xb99071,_0x5ac8a3,0x0);for(const _0x18daa9 of Array['from'](_0x201e31['getChildren']()))_0x586e20['insert'](_0x18daa9,_0xb99071,'end');_0x52ddff=at['fromRange'](_0x586e20['createRangeOn'](_0xb99071)),_0x1f1b00=at['fromRange'](_0x586e20['createRangeOn'](_0x5dadfd));}const _0x2619bf=Array['from'](_0x201e31['getAttributes']())['filter'](([_0x1e8eaa])=>ze['includes'](_0x1e8eaa));_0x2b0162['cells']['push']({'element':_0x5ac8a3,'attributes':_0x2619bf['length']?Object['fromEntries'](_0x2619bf):null}),_0x52ddff&&_0x2b0162['insertionRanges']['push'](_0x52ddff),_0x1f1b00&&_0x2b0162['deletionRanges']['push'](_0x1f1b00);},{'priority':'high'}),_0x4b3a79['on']('insertColumns',(_0x3bb8f7,_0x2798a5)=>{const [_0x4f1d96,_0x55e38e={}]=_0x2798a5;if(!_0x2b0162)return;const _0x40205f=_0x55e38e['at']||0x0,_0x227693=_0x55e38e['columns']||0x1;_0x2b0162['columnInsertionIndexes']=new Array(_0x227693)['fill'](_0x40205f)['map']((_0x35ebe8,_0x1765fd)=>_0x35ebe8+_0x1765fd);for(const {cell:_0x5c8a16}of _0x4b3a79['createTableWalker'](_0x4f1d96,{'startColumn':_0x40205f,'endColumn':_0x40205f+_0x227693-0x1}))_0x2b0162['columnInsertionRanges']['push'](_0x2b9ed6['model']['createRangeOn'](_0x5c8a16));},{'priority':'low'}),_0x4b3a79['on']('insertRows',(_0x1d4db5,_0x1b787c)=>{const [_0x54cb32,_0x21b182={}]=_0x1b787c;if(!_0x2b0162)return;const _0x588b85=_0x21b182['at']||0x0,_0x62a0ed=_0x21b182['rows']||0x1;_0x2b0162['rowInsertionIndexes']=new Array(_0x62a0ed)['fill'](_0x588b85)['map']((_0x19d9da,_0x5c7aaf)=>_0x19d9da+_0x5c7aaf);for(const {cell:_0x8625e0}of _0x4b3a79['createTableWalker'](_0x54cb32,{'startRow':_0x588b85,'endRow':_0x588b85+_0x62a0ed-0x1}))_0x2b0162['rowInsertionRanges']['push'](_0x2b9ed6['model']['createRangeOn'](_0x8625e0));},{'priority':'low'}),_0x155d1d['descriptionFactory']['registerDescriptionCallback'](_0x4b5d09=>{if(_0x4b5d09['subType']&&_0x4b5d09['subType']['startsWith']('tablePaste'))return _0x4b5d09['previous']?{}:{'type':'insertion','content':wt(_0x2b9ed6['locale'],'*Replace\x20table\x20cells*')};});const _0x49619e=()=>!0x1;for(const _0x30a062 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x155d1d['_suggestionFactory']['registerCustomCallback']('insertion',_0x30a062,'join',_0x49619e),_0x155d1d['_suggestionFactory']['registerCustomCallback']('deletion',_0x30a062,'join',_0x49619e),_0x155d1d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x30a062,'join',_0x49619e);_0x155d1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x49619e),_0x155d1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3c0713,_0x55c124,_0xcb671c)=>{const _0x37b9dd=_0x3c0713['map'](_0x698fdf=>_0x698fdf['getContainedElement']())['filter'](_0x440e22=>_0x440e22),_0x37065f=new Map(_0x37b9dd['map'](_0x58a951=>[_0x58a951,null]));if(_0x2b0162){for(const {element:_0x21bdfb,attributes:_0x255474}of _0x2b0162['cells'])_0x255474&&_0x37065f['set'](_0x21bdfb,_0x255474);}else{if(_0xcb671c&&_0xcb671c['markerAttributes'])for(const [_0xd153e0,_0x224160]of Object['entries'](_0xcb671c['markerAttributes'])){const _0x44b098=_0x2b9ed6['model']['markers']['get'](_0xd153e0),_0x3c2d03=_0x44b098?_0x44b098['getRange']()['getContainedElement']():null;_0x3c2d03&&_0x37065f['set'](_0x3c2d03,_0x224160);}}_0x2b9ed6['model']['change'](_0x507343=>{for(const [_0x1ae426,_0x118d9d]of _0x37065f)_0x507343['setAttributes']({...je,..._0x118d9d},_0x1ae426);});});const _0x4be51f=(_0x28feb0,_0x277c5e)=>{_0x155d1d['_suggestionFactory']['registerCustomCallback'](_0x28feb0,'tablePaste',_0x277c5e,(_0x361f99,_0x3e7631,_0xe70de4)=>{_0x2b9ed6['model']['change'](_0x22a228=>{const _0xb3be26=[];for(const _0x5356e6 of _0x361f99){const _0x4a65f6=_0x5356e6['start']['nodeAfter'];_0x4a65f6['is']('element','tableCellSuggestion')&&_0xb3be26['push'](_0x4a65f6);}_0x155d1d['_suggestionFactory']['getSuggestionCallback'](_0x28feb0,null,_0x277c5e)(_0x361f99,_0x3e7631,_0xe70de4);for(const _0xc41c46 of _0xb3be26)'$graveyard'!=_0xc41c46['root']['rootName']&&_0x22a228['unwrap'](_0xc41c46);});});};_0x4be51f('insertion','accept'),_0x4be51f('insertion','discard'),_0x4be51f('deletion','accept'),_0x4be51f('deletion','discard'),_0x155d1d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x43c05b=>{const _0x4e4a5d=_0x43c05b['map'](_0x306f41=>_0x306f41['getContainedElement']()),_0x165c24=_0x4e4a5d[0x0]['findAncestor']('table'),{minRow:_0x1cd386,maxRow:_0x388f5c}=_0x24d4b3['_getCoordsForCells'](_0x4e4a5d);_0x4b3a79['removeRows'](_0x165c24,{'at':_0x1cd386,'rows':_0x388f5c-_0x1cd386+0x1});}),_0x155d1d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9d1dd=>{const _0x8da3ac=_0x9d1dd['map'](_0x5447bb=>_0x5447bb['getContainedElement']()),_0x3ff50b=_0x8da3ac[0x0]['findAncestor']('table'),{minColumn:_0x1c364a,maxColumn:_0x423ad2}=_0x24d4b3['_getCoordsForCells'](_0x8da3ac);_0x4b3a79['removeColumns'](_0x3ff50b,{'at':_0x1c364a,'columns':_0x423ad2-_0x1c364a+0x1});});const _0x28788e=(_0x47ccd9,_0x46030d)=>{if(!_0x46030d['subType']||!_0x46030d['subType']['startsWith']('tablePaste'))return;const _0xd3ff33=_0x46030d['attributes']['tablePasteChainId'],_0xd76c1e=_0x155d1d['getSuggestions']()['filter'](_0x325c42=>_0x325c42['isInContent']&&_0x325c42['attributes']&&_0x325c42['attributes']['tablePasteChainId']==_0xd3ff33);_0xd76c1e['length']&&_0x46030d['getAllAdjacentSuggestions']()['length']!=_0xd76c1e['length']&&_0xd76c1e['reduce']((_0x357b79,_0x350bf9)=>(_0x357b79['next']=_0x350bf9,_0x350bf9['previous']=_0x357b79,_0x350bf9));};function _0x258c06(_0x200b3c,_0x2631c3=!0x0){const {id:_0x3bd12e,authorId:_0x4176a6}=nt(_0x200b3c['markerName']),_0x55be3c=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5f1727=_0x155d1d['activeMarkers']['includes'](_0x200b3c['markerName']);return _0x5f1727&&_0x55be3c['push']('ck-suggestion-marker--active'),{'classes':_0x55be3c,'attributes':{'data-suggestion':_0x3bd12e,'data-author-id':_0x4176a6},'priority':_0x5f1727&&_0x2631c3?0xbc2:0xbb8};}_0x155d1d['on']('suggestionLoaded',_0x28788e,{'priority':'high'}),_0x155d1d['on']('suggestionUnloaded',_0x28788e,{'priority':'high'}),_0x2b9ed6['model']['document']['registerPostFixer'](()=>{let _0x599953=!0x1;const _0x5708c6=Array['from'](_0x2b9ed6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18add8,data:_0xd53cfb}of _0x5708c6){const {group:_0x3d6da5,type:_0x3628b7,id:_0x53462b}=nt(_0x18add8);if('suggestion'!=_0x3d6da5||'deletion'!=_0x3628b7||_0xd53cfb['oldRange'])continue;if(!_0x155d1d['hasSuggestion'](_0x53462b))continue;const _0x24d42e=_0x155d1d['getSuggestion'](_0x53462b)['getRanges'](),_0x124d60=_0x2b9ed6['plugins']['get']('Users')['me'];for(const _0x4a6ae3 of _0x155d1d['getSuggestions']())if(_0x4a6ae3['isInContent']&&_0x4a6ae3['author']==_0x124d60&&'formatBlock'==_0x4a6ae3['type']&&'tablePasteCell'==_0x4a6ae3['subType']&&_0x4a6ae3['getRanges']()['every'](_0xed4b5b=>_0x24d42e['some'](_0x53a707=>_0x53a707['containsRange'](_0xed4b5b,!0x0)))){for(const _0x4ed5ad of _0x4a6ae3['getAllAdjacentSuggestions']())_0x4ed5ad['isInContent']&&(_0x4ed5ad['discard'](),_0x599953=!0x0);}}return _0x599953;}),_0x2b9ed6['model']['document']['registerPostFixer'](_0x3e1d47=>{const _0x39b443=_0x2b9ed6['commands']['get']('redo');if(!_0x39b443||!_0x39b443['_createdBatches']['has'](_0x3e1d47['batch']))return!0x1;let _0x274675=!0x1;const _0x279256=_0x2b9ed6['plugins']['get']('Users')['me'],_0x1c27cc=_0x2b9ed6['model']['document']['differ']['getChanges'](),_0x1c472e=Array['from'](_0x2b9ed6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x267ec2,data:_0x55bdcd})=>{const {group:_0x17d505,subType:_0x43b5e8,authorId:_0x16b928}=nt(_0x267ec2);return'suggestion'==_0x17d505&&'tablePaste'==_0x43b5e8&&_0x16b928==_0x279256['id']&&!_0x55bdcd['oldRange'];});for(const _0x3192f7 of _0x1c27cc){if('insert'!=_0x3192f7['type']||'tableCellSuggestion'!=_0x3192f7['name']||0x1!=_0x3192f7['length'])continue;const _0x3f9eaa=_0x3e1d47['createRange'](_0x3192f7['position'],_0x3192f7['position']['getShiftedBy'](0x1));if(!_0x1c472e['find'](({data:_0x1e790a})=>_0x1e790a['newRange']['isEqual'](_0x3f9eaa))){for(const {name:_0x3c7751,data:_0x568f53}of _0x1c472e)if(_0x3f9eaa['containsRange'](_0x568f53['newRange'])){_0x3e1d47['updateMarker'](_0x3c7751,{'range':_0x3f9eaa}),_0x274675=!0x0;break;}}}return _0x274675;}),_0x2b9ed6['model']['document']['registerPostFixer'](_0x87fcd1=>{let _0x46220e=!0x1;const _0x9aeb6=_0x2b9ed6['plugins']['get']('Users')['me'],_0x2ea281=_0x155d1d['getSuggestions']()['filter'](_0x534ee5=>_0x534ee5['isInContent']&&_0x534ee5['author']==_0x9aeb6),_0x1d9daf=new Set(),_0x58602e=new Set();for(const _0x35bca8 of _0x2ea281)if('tablePaste'==_0x35bca8['subType'])for(const _0x110481 of _0x35bca8['getMarkers']()){const _0x3295c8=_0x110481['getRange']()['getContainedElement']();if(_0x3295c8){if(_0x3295c8['is']('element','tableCellSuggestion')&&Xe(_0x3295c8)){_0x35bca8['removeMarker'](_0x110481['name']),_0x1d9daf['add'](_0x3295c8),_0x46220e=!0x0;const _0x8b3fd7=_0x3295c8['nextSibling'],_0x38cfd0=_0x3295c8['previousSibling'],_0x5c5d3c=_0x8b3fd7&&_0x8b3fd7['is']('element','tableCellSuggestion'),_0x7e54a3=_0x38cfd0&&_0x38cfd0['is']('element','tableCellSuggestion');_0x5c5d3c&&!_0x1d9daf['has'](_0x8b3fd7)&&_0x58602e['add'](_0x8b3fd7),_0x7e54a3&&!_0x1d9daf['has'](_0x38cfd0)&&_0x58602e['add'](_0x38cfd0);}else _0x3295c8['is']('element','paragraph')&&_0x3295c8['isEmpty']&&(_0x35bca8['removeMarker'](_0x110481['name']),_0x46220e=!0x0);}}else{if('tablePasteCell'==_0x35bca8['subType']){if(!_0x35bca8['attributes']||!_0x35bca8['attributes']['tablePasteChainId'])continue;const _0x50a149=_0x35bca8['attributes']['markerAttributes'];if(_0x50a149&&Object['keys'](_0x50a149)['length'])continue;const _0x164a1e=_0x35bca8['attributes']['tablePasteChainId'];let _0x3528ba=!0x0,_0x123bb7=!0x0;for(const _0x24a0e1 of _0x2ea281)if(_0x24a0e1['subType']&&_0x24a0e1['subType']['startsWith']('tablePaste')){if(!_0x24a0e1['attributes']['tablePasteChainId']){_0x123bb7=!0x1;break;}if(_0x24a0e1['id']!=_0x35bca8['id']&&_0x24a0e1['attributes']['tablePasteChainId']==_0x164a1e){_0x3528ba=!0x1;break;}}_0x123bb7&&_0x3528ba&&(_0x35bca8['removeMarkers'](),_0x46220e=!0x0);}}for(const _0x2b72ef of _0x1d9daf)_0x87fcd1['remove'](_0x2b72ef);for(const _0x2dace4 of _0x58602e)_0x87fcd1['unwrap'](_0x2dace4);return _0x46220e;}),_0x2b9ed6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4d38ca=>_0x258c06(_0x4d38ca),'converterPriority':'high'}),_0x2b9ed6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a3854,_0x492084)=>_0x492084['options']['showSuggestionHighlights']?_0x258c06(_0x1a3854,!0x1):null,'converterPriority':'high'});const _0x1b4332=_0x2b9ed6['editing']['view'];this['listenTo'](_0x1b4332['document'],'clipboardOutput',(_0x584e70,_0x26163c)=>{const _0x3b58ab=[];for(const _0x5af2eb of _0x1b4332['createRangeIn'](_0x26163c['content'])['getItems']())_0x5af2eb['is']('element','suggestion-td')&&_0x3b58ab['push'](_0x5af2eb);_0x1b4332['change'](_0x3dacf5=>{for(const _0x4c3236 of _0x3b58ab)_0x3dacf5['move'](_0x3dacf5['createRangeIn'](_0x4c3236),_0x3dacf5['createPositionBefore'](_0x4c3236)),_0x3dacf5['remove'](_0x4c3236);});});}};function Xe(_0x4882be){if(_0x4882be['isEmpty'])return!0x0;const _0x1d076c=_0x4882be['getChild'](0x0);return _0x1d076c['is']('element','paragraph')&&_0x1d076c['isEmpty'];}function qe(_0x50d6f7,_0xdb008d={},_0xf450f0){for(const {isAnchor:_0x1dc8c9,cellHeight:_0x5a46f7,cellWidth:_0x4664dd}of _0xf450f0['createTableWalker'](_0x50d6f7,{'includeAllSlots':!0x0,..._0xdb008d}))if(!_0x1dc8c9||0x1!=_0x5a46f7||0x1!=_0x4664dd)return!0x1;return!0x0;}var Ye=class extends _0x5ad79e{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1f818d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f818d['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x1f818d['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x1f818d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1f818d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x4da3d0=_0x1f818d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x1f818d['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x4f20a5,_0x87d146)=>{_0x4da3d0(_0x4f20a5,_0x87d146),this['_restoreCellWidths'](_0x4f20a5[0x0]['start']['nodeAfter'],_0x87d146['commandParams'][0x0]['cellWidths']);}),_0x1f818d['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x544bcd,_0x496dbd){const _0x10c412=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1912cd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x32a728=_0x496dbd['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x145ca8=_0x1912cd['getColumnGroupElement'](_0x32a728);let _0x235503=_0x145ca8?_0x1912cd['getTableColumnsWidths'](_0x145ca8):null,_0x340f84=_0x32a728['getAttribute']('tableWidth')||null;const _0x5bc9d9=_0x496dbd['tableWidth']||_0x340f84,_0x4aac66=_0x496dbd['columnWidths']||_0x235503;let _0x33c6a1=this['_getCellWidths'](_0x32a728);const _0xd86359=this['_foldResizeTableSuggestion'](_0x32a728);_0xd86359&&(_0x340f84=_0xd86359['tableWidth'],_0x235503=_0xd86359['columnWidths'],_0x33c6a1=_0xd86359['cellWidths']||_0x33c6a1),_0x544bcd({'table':_0x32a728,'tableWidth':_0x5bc9d9,'columnWidths':_0x4aac66}),_0x10c412['markBlockFormat'](_0x32a728,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x340f84,'columnWidths':_0x235503,'cellWidths':_0x33c6a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x4f568e,_0xa5c3da={}){if(void 0x0===_0xa5c3da['value']||''===_0xa5c3da['value'])return void _0x4f568e(_0xa5c3da);const _0x4ee6c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x414fc2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5f2329=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0xa5c3da['batch']||(_0xa5c3da['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0xa5c3da['batch'],()=>{const _0x4ec91a=_0x414fc2['getColumnGroupElement'](_0x5f2329);let _0x1361eb=_0x4ec91a?_0x414fc2['getTableColumnsWidths'](_0x4ec91a):null,_0x5d3a7a=_0x5f2329['getAttribute']('tableWidth')||null,_0x50797e=this['_getCellWidths'](_0x5f2329);const _0x4eac90=this['_foldResizeTableSuggestion'](_0x5f2329,!0x0);_0x4eac90&&(_0x5d3a7a=_0x4eac90['tableWidth'],_0x1361eb=_0x4eac90['columnWidths'],_0x50797e=_0x4eac90['cellWidths']||_0x50797e),_0x4f568e(_0xa5c3da),_0x4ee6c8['markBlockFormat'](_0x5f2329,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5d3a7a,'columnWidths':_0x1361eb,'cellWidths':_0x50797e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x52d0e3,_0x12bd16=!0x1){const _0x37e33a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x464666=this['editor']['plugins']['get']('Users')['me'];for(const _0x5cd2a6 of _0x37e33a['getSuggestions']({'skipNotAttached':!0x0})){const _0x44e184=_0x5cd2a6['getContainedElement']();if('resizeTable'===_0x5cd2a6['subType']&&_0x44e184===_0x52d0e3){_0x5cd2a6['author']!==_0x464666&&(_0x12bd16?_0x5cd2a6['removeMarkers']():_0x5cd2a6['discard']());const _0x492d17=_0x5cd2a6['data']['commandParams'];return{'tableWidth':_0x492d17[0x0]['tableWidth'],'columnWidths':_0x492d17[0x0]['columnWidths'],'cellWidths':_0x492d17[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x316f03){const _0x3f590a=[];for(const _0x18bde7 of _0x316f03['getChildren']())if(_0x18bde7['is']('element','tableRow')){for(const _0x5ef60f of _0x18bde7['getChildren']())_0x3f590a['push'](_0x5ef60f['getAttribute']('tableCellWidth')||null);}return _0x3f590a;}_restoreCellWidths(_0x31ca4f,_0x5448a8){_0x5448a8&&this['editor']['model']['change'](_0x2abd7e=>{let _0x509981=0x0;for(const _0x181235 of _0x31ca4f['getChildren']())if(_0x181235['is']('element','tableRow'))for(const _0x28a966 of _0x181235['getChildren']()){const _0x24da96=_0x5448a8[_0x509981++];_0x24da96&&_0x2abd7e['setAttribute']('tableCellWidth',_0x24da96,_0x28a966);}});}handleSuggestionDescription(_0x58cfbc){if('formatBlock'!=_0x58cfbc['type']&&'formatInline'!=_0x58cfbc['type'])return;const {data:_0x3a3d6e}=_0x58cfbc;return _0x3a3d6e&&'resizeTable'===_0x3a3d6e['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x5ad79e{afterInit(){const _0x6fe5e2=this['editor'];_0x6fe5e2['plugins']['has']('Template')&&_0x6fe5e2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x5ad79e{afterInit(){const _0x5175b7=this['editor'];if(!_0x5175b7['commands']['get']('insertTableOfContents'))return;_0x5175b7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x550337=_0x5175b7['plugins']['get']('TrackChangesEditing'),_0xf0ed2c=_0x5175b7['locale'];_0x550337['descriptionFactory']['registerElementLabel']('tableOfContents',_0x380c98=>wt(_0xf0ed2c,'ELEMENT_TABLE_OF_CONTENTS',_0x380c98));}},Je=class extends _0x5ad79e{afterInit(){const _0x375f8d=this['editor'];_0x375f8d['plugins']['has']('Title')&&(_0x375f8d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x375f8d['locale'],'ELEMENT_TITLE')),_0x375f8d['model']['document']['registerPostFixer'](_0x147ee8=>{let _0x504f4d=!0x1;const _0x170366=Array['from'](_0x375f8d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5224b4,data:_0x2536c8}of _0x170366){const {group:_0x250f33}=nt(_0x5224b4);if('suggestion'!==_0x250f33||!_0x2536c8['newRange'])continue;const _0x33a4ee=_0x2536c8['newRange'],_0x4b50dc=_0x33a4ee['end']['nodeBefore'];if(!_0x4b50dc||!_0x4b50dc['is']('element','title-content'))continue;if(!_0x33a4ee['start']['isTouching'](_0x33a4ee['end']))continue;const _0x22e749=_0x375f8d['model']['schema']['getNearestSelectionRange'](_0x33a4ee['end'],'forward');if(_0x22e749&&_0x22e749['isCollapsed']){const _0x447284=_0x147ee8['createRange'](_0x33a4ee['start'],_0x22e749['start']);_0x447284['isEqual'](_0x33a4ee)||(_0x147ee8['updateMarker'](_0x5224b4,{'range':_0x447284}),_0x504f4d=!0x0);}_0x504f4d||(_0x147ee8['removeMarker'](_0x5224b4),_0x504f4d=!0x0);}return _0x504f4d;}));}},tn=class extends _0x5ad79e{afterInit(){const _0x3fbf7b=this['editor'],_0x1a3504=_0x3fbf7b['plugins']['get']('TrackChangesEditing');_0x3fbf7b['plugins']['has']('Uploadcare')&&(_0x1a3504['enableCommand']('uploadcare'),_0x3fbf7b['plugins']['has']('UploadcareImageEdit')&&(_0x1a3504['enableCommand']('uploadcareImageEdit'),_0x1a3504['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1a3504['descriptionFactory']['registerDescriptionCallback'](_0x40fb41=>{if('attribute'!=_0x40fb41['type'])return;const {data:_0x3c6e8a}=_0x40fb41;return _0x3c6e8a&&'uploadcareImageId'==_0x3c6e8a['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x5ad79e{afterInit(){const _0x52f411=this['editor'],_0x595207=_0x52f411['plugins']['get']('TrackChangesEditing');_0x52f411['plugins']['has']('UndoEditing')&&(_0x595207['enableCommand']('undo'),_0x595207['enableCommand']('redo'));}},nn=class extends _0x5ad79e{static get requires(){return[xe];}afterInit(){const _0x21c36c=this['editor'];_0x21c36c['plugins']['has']('TableCaptionEditing')&&_0x21c36c['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x5ad79e{tableProperties;tableCellProperties;constructor(_0x44bb18){super(_0x44bb18),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 _0x5aeea5=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x351261 of this['tableProperties'])_0x5aeea5['enableCommand'](_0x351261,(_0x19afaa,_0x3957ce)=>{const _0x26dfab=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x351261,[_0x26dfab],this['tableProperties'],'tableProperties',_0x19afaa,_0x3957ce);});_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5aeea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x234958,_0x5c7cee)=>this['handleDiscardAction'](this['tableProperties'],_0x234958,_0x5c7cee)),_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x44d0ef of this['tableCellProperties'])this['editor']['commands']['get'](_0x44d0ef)&&_0x5aeea5['enableCommand'](_0x44d0ef,(_0x42ed70,_0x4f9905)=>{const _0x5b78ee=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x44d0ef,_0x5b78ee,this['tableCellProperties'],'tableCellProperties',_0x42ed70,_0x4f9905);});_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5aeea5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x21b5ff,_0x7ed9c9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x21b5ff,_0x7ed9c9)),_0x5aeea5['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5aeea5['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5aeea5['descriptionFactory']['registerDescriptionCallback'](_0x129bc5=>this['handleSuggestionDescription'](_0x129bc5)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2fa987,_0x12927d,_0x5a89a8,_0x3d22c5,_0x155b42,_0x3c689e){const _0x5a4c9a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3c689e['batch'],()=>{for(const _0x312686 of _0x12927d)if(this['_getSuggestion'](_0x312686,_0x3d22c5))_0x155b42(_0x3c689e);else{const _0x585e6e={};for(const _0x628264 of _0x5a89a8){const _0xa4d7e=_0x312686['getAttribute'](_0x628264);void 0x0!==_0xa4d7e&&(_0x585e6e[_0x628264]=_0xa4d7e);}const _0x3b7fd0=this['_getResizedColumnWidths'](_0x312686);_0x3b7fd0&&(_0x585e6e['columnWidths']=_0x3b7fd0),_0x155b42(_0x3c689e),_0x5a4c9a['markBlockFormat'](_0x312686,{'commandParams':[_0x585e6e]},[],_0x3d22c5);}});}handleDiscardAction(_0xe030c3,_0x39e20f,_0x26cb52){const _0x4d6b38=_0x39e20f[0x0]['start']['nodeAfter'],_0x2bfe17=_0x26cb52['commandParams'][0x0];this['editor']['model']['change'](_0x5d8516=>{for(const _0xc0f320 of _0xe030c3)void 0x0!==_0x2bfe17[_0xc0f320]?_0x5d8516['setAttribute'](_0xc0f320,_0x2bfe17[_0xc0f320],_0x4d6b38):_0x5d8516['removeAttribute'](_0xc0f320,_0x4d6b38);if(_0x2bfe17['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x374447=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x72400d=_0x374447['getColumnGroupElement'](_0x4d6b38);if(_0x72400d){const _0xf44212=_0x374447['getTableColumnsWidths'](_0x72400d),_0x223bb8=_0x4d6b38['getAttribute']('tableWidth');if(('string'==typeof _0x223bb8&&_0x223bb8['trim']()['endsWith']('px'))!==_0xf44212['some'](_0x569fa1=>'string'==typeof _0x569fa1&&_0x569fa1['endsWith']('px'))){const _0x730de5=_0x374447['getTableColumnElements'](_0x72400d);_0x2bfe17['columnWidths']['forEach']((_0xa17eed,_0x250d2b)=>{_0x730de5[_0x250d2b]&&_0x5d8516['setAttribute']('columnWidth',_0xa17eed,_0x730de5[_0x250d2b]);});}}}});}_getResizedColumnWidths(_0x5734b7){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x5734b7['is']('element','table'))return;const _0x5751f6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xddeaea=_0x5751f6['getColumnGroupElement'](_0x5734b7);return _0xddeaea?_0x5751f6['getTableColumnsWidths'](_0xddeaea):void 0x0;}handleSuggestionDescription(_0xec22dd){if(_0xec22dd['data'])switch(_0xec22dd['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x554b1d,_0x56053e){const _0x39b303=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x267cf4 of _0x39b303['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a5d2b=_0x267cf4['getContainedElement']();if(_0x267cf4['subType']===_0x56053e&&_0x2a5d2b===_0x554b1d)return _0x267cf4;}return null;}_registerTablePropertiesAttributes(){const _0x50f123=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39e671=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x241697 of _0x39e671){const _0x2fce66=_0x241697['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x50f123['descriptionFactory']['registerAttributeLabel'](_0x241697,wt(this['editor']['locale'],'FORMAT_'+_0x2fce66));}}},rn=class extends _0x5ad79e{afterInit(){const _0x1a3427=this['editor'];if(!_0x1a3427['plugins']['has']('LineHeight'))return;const _0xadc83e=_0x1a3427['plugins']['get']('TrackChangesEditing'),_0x322863=_0x1a3427['locale'];_0xadc83e['enableDefaultAttributesIntegration']('lineHeight'),_0xadc83e['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x322863,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0xe65a05){return'marker'==_0xe65a05['type']&&_0xe65a05['name']['startsWith']('$markedRemove');}function cn(_0x3fac96){return _0x3fac96?[_0x3fac96]:[];}var ln=class extends _0x5ad79e{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x1ffaf2,_0x380d3a,_0x23fe07,_0x25d1e8,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ae2b9){super(_0x4ae2b9),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1aaa36,_0x342bd2,_0x3bc980,_0x5a2969)=>{this['_model']['change'](()=>{for(const _0x107725 of[..._0x5a2969,..._0x3bc980])this['_model']['markers']['has'](_0x107725)&&_0x4ae2b9['editing']['reconvertMarker'](_0x107725);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4ae2b9['plugins']['get'](_0x1ffaf2),this['_suggestionsConversion']=_0x4ae2b9['plugins']['get'](_0x380d3a),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4ae2b9['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4ae2b9['config']['get']('trackChanges.trackFormatChanges'),_0x4ae2b9['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4ae2b9['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x4ae2b9,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3f2603=this['editor'];_0x3f2603['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c67be,{writer:_0x20e351})=>{let _0x117898='suggestion:'+_0x5c67be['getAttribute']('suggestion-type')+':'+_0x5c67be['getAttribute']('id');return _0x5c67be['getAttribute']('marker-count')&&(_0x117898+=':'+_0x5c67be['getAttribute']('marker-count')),_0x20e351['createElement']('$marker',{'data-name':_0x117898});}}),_0x3f2603['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3f2603['model']['document']['registerPostFixer'](_0x36a5a0=>{let _0x2bb311=!0x1;const _0x1c6c39=Array['from'](_0x3f2603['model']['document']['differ']['getChangedMarkers']()),_0xefb77=new Set();for(const {name:_0x26c89d,data:_0x4c1ce5}of _0x1c6c39){const {group:_0x526766,type:_0x2ebcd8,subType:_0x44f621,id:_0x1581e0}=nt(_0x26c89d);if('suggestion'!==_0x526766)continue;const _0x145081=_0x44f621?'suggestion:'+_0x2ebcd8+':'+_0x44f621+':'+_0x1581e0:'suggestion:'+_0x2ebcd8+':'+_0x1581e0,_0x321132=_0x3f2603['model']['markers']['getMarkersGroup'](_0x145081),_0x562455=_0x3f2603['model']['markers']['get'](_0x26c89d),_0x3adaca=this['_suggestions']['get'](_0x1581e0);if(null!=_0x4c1ce5['newRange']){'formatInline'==_0x2ebcd8&&(_0x2bb311=_0x2bb311||gn(_0x4c1ce5['newRange'],_0x26c89d,_0x36a5a0,_0x3f2603['model']['schema']));const _0x5ab0c6='attribute'==_0x2ebcd8&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x44f621)),_0x2a6404='attribute'==_0x2ebcd8&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x44f621));if(_0x4c1ce5['newRange']['isCollapsed']||'$graveyard'==_0x4c1ce5['newRange']['root']['rootName']||'formatBlock'==_0x2ebcd8&&!mn(_0x4c1ce5['newRange'])||_0x5ab0c6&&!mn(_0x4c1ce5['newRange'])||_0x2a6404&&En(_0x4c1ce5['newRange'])||'deletion'==_0x2ebcd8&&En(_0x4c1ce5['newRange'])||_0x562455&&Tn(_0x562455,_0x321132))_0x36a5a0['removeMarker'](_0x26c89d),_0x2bb311=!0x0;else{if(!_0x3adaca||!_0x3adaca['isInContent'])continue;if(_0x4c1ce5['newRange']&&_0x4c1ce5['oldRange']&&_0x4c1ce5['newRange']['isEqual'](_0x4c1ce5['oldRange']))continue;_0xefb77['add'](_0x3adaca);}}}return _0xefb77['size']>0x0&&(_0x2bb311=!!this['_joinWithAdjacentSuggestions'](_0xefb77)||_0x2bb311),_0x2bb311;}),_0x3f2603['model']['document']['registerPostFixer'](_0x4624f9=>{let _0x1d65a5=!0x1;for(const _0x4ef85d of _0x3f2603['model']['document']['differ']['getChanges']())if('insert'==_0x4ef85d['type'])for(const _0xb2eab8 of this['_suggestions']['values']()){if(_0xb2eab8['isMultiRange']||!_0xb2eab8['isInContent'])continue;const _0x4f2930='formatBlock'==_0xb2eab8['type'],_0x3198e8=this['_getAttributeKey'](_0xb2eab8),_0x51ef98=_0x3198e8&&this['_suggestionsConversion']['isBlockAttribute'](_0x3198e8);if(!_0x4f2930&&!_0x51ef98)continue;const _0x2ae177=_0xb2eab8['getFirstRange']();if(_0x2ae177['start']['parent']!=_0x2ae177['end']['parent']&&!_0x2ae177['end']['isAtEnd']){const _0x415b10=_0x3f2603['model']['createPositionAt'](_0x2ae177['start']['nodeAfter'],'end'),_0x5e72bb=_0x3f2603['model']['createRange'](_0x2ae177['start'],_0x415b10);_0x4624f9['updateMarker'](_0xb2eab8['getFirstMarker'](),{'range':_0x5e72bb}),_0x1d65a5=!0x0;}}return _0x1d65a5;}),_0x3f2603['model']['document']['registerPostFixer'](_0x254501=>this['_processAttributeChanges'](_0x254501)),_0x3f2603['model']['document']['registerPostFixer'](_0x55707e=>!_0x55707e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x55707e)),_0x3f2603['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3f2603['model']['document']['on']('change:data',(_0x313ab2,_0x7c5a44)=>{if(!_0x7c5a44['isLocal']||_0x7c5a44['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x55bd53=_0x3f2603['model']['document']['differ']['getChanges']();if(0x0==_0x55bd53['length'])return;const _0x5118df=[],_0x115f56=_0x55bd53['filter'](_0x4034f1=>'attribute'==_0x4034f1['type']),_0x14abc2=_0x55bd53['filter'](_0x32c00b=>'insert'==_0x32c00b['type']&&'$text'!=_0x32c00b['name']);for(const _0x597f53 of _0x115f56)this['_suggestionsConversion']['isRegisteredAttribute'](_0x597f53['attributeKey'])&&_0x5118df['push']({'key':_0x597f53['attributeKey'],'newValue':_0x597f53['attributeNewValue'],'oldValue':_0x597f53['attributeOldValue'],'range':_n(_0x597f53['range'],_0x3f2603['model'])});for(const _0x51d87d of _0x14abc2){if('rename'!=_0x51d87d['action']&&'refresh'!=_0x51d87d['action'])continue;const _0x4abedd=pn(_0x51d87d['position']['nodeAfter'],_0x3f2603['model']),_0x4a5ede=_0x51d87d['before'];'rename'==_0x51d87d['action']&&_0x5118df['push']({'key':on,'newValue':_0x51d87d['name'],'oldValue':_0x4a5ede['name'],'range':_0x4abedd});for(const [_0x4833b6,_0x5388e8]of _0x4a5ede['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4833b6))continue;const _0x4d4c5f=_0x51d87d['attributes']['get'](_0x4833b6);_0x5388e8!==_0x4d4c5f&&_0x5118df['push']({'key':_0x4833b6,'newValue':_0x4d4c5f,'oldValue':_0x5388e8,'range':_0x4abedd});}for(const [_0x1205f1,_0x1b5b0c]of _0x51d87d['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x1205f1)&&(_0x4a5ede['attributes']['has'](_0x1205f1)||_0x5118df['push']({'key':_0x1205f1,'newValue':_0x1b5b0c,'oldValue':null,'range':_0x4abedd}));}0x0!=_0x5118df['length']&&_0x3f2603['model']['enqueueChange'](_0x7c5a44,_0x4b2adb=>{const _0x5c5283=_0x533d19();for(const {range:_0x47476b,key:_0x317d34,oldValue:_0x35e9d7,newValue:_0x34aa76}of _0x5118df)this['markAttributeChange'](_0x47476b,_0x317d34,_0x35e9d7,_0x34aa76,{'groupId':_0x5c5283});this['_reduceExistingSuggestions'](_0x4b2adb,_0x5118df);});},{'priority':'lowest'}),_0x3f2603['model']['markers']['on']('update:suggestion',(_0x5429cd,_0x201836,_0x588f09)=>{if(null==_0x588f09){const {id:_0x154393}=nt(_0x201836['name']),_0x48dcd8=this['_suggestions']['get'](_0x154393);_0x48dcd8&&_0x48dcd8['addMarkerName'](_0x201836['name']);}}),_0x3f2603['model']['document']['on']('change:data',()=>{const _0x3b8ea2=Array['from'](_0x3f2603['model']['document']['differ']['getChangedMarkers']())['filter'](_0x480763=>'suggestion'===nt(_0x480763['name'])['group']);if(0x0===_0x3b8ea2['length'])return;_0x3b8ea2['sort']((_0x33df46,_0x397fe4)=>{const _0x294f46=_0x33df46['data']['oldRange'],_0x33b62d=_0x397fe4['data']['oldRange'];return null===_0x294f46&&null===_0x33b62d?0x0:null===_0x294f46&&null!==_0x33b62d?-0x1:null!==_0x294f46&&null===_0x33b62d?0x1:_0x294f46['start']['isBefore'](_0x33b62d['start'])?-0x1:0x1;});const _0x610e27=new Set(),_0x309117=new Set();for(const {name:_0x303e8a,data:_0x32b1fb}of _0x3b8ea2){const {id:_0x39c36a}=nt(_0x303e8a);if(null===_0x32b1fb['oldRange']){const _0x119fc8=this['_handleNewSuggestionMarker'](_0x303e8a);_0x309117['add'](_0x119fc8);}else{const _0x4b3e44=this['_suggestions']['get'](_0x39c36a);null!==_0x32b1fb['newRange']||_0x4b3e44['isInContent']?(_0x610e27['add'](_0x4b3e44['head']),_0x309117['add'](_0x4b3e44)):this['_removeSuggestion'](_0x4b3e44);}}_0x309117['size']>0x0&&this['_refreshSuggestionsChain'](_0x309117);for(const _0x13db7f of _0x610e27)this['fire']('suggestionChanged',_0x13db7f);}),_0x3f2603['model']['on']('applyOperation',(_0x30ecbf,_0x380e4e)=>{const _0x4af05e=_0x380e4e[0x0];if(!this['_suggestions']['size'])return;if(!_0x4af05e['isDocumentOperation'])return;if(_0x4af05e['batch']['isUndo']||!_0x4af05e['batch']['isLocal'])return;let _0x1599c6,_0x5d9afc;switch(_0x4af05e['type']){case'insert':_0x1599c6=_0x3f2603['model']['createPositionAt'](_0x4af05e['position']),_0x5d9afc=_0x1599c6['getShiftedBy'](_0x4af05e['howMany']);break;case'split':_0x1599c6=_0x3f2603['model']['createPositionAt'](_0x4af05e['splitPosition']),_0x5d9afc=_0x3f2603['model']['createPositionAt'](_0x4af05e['moveTargetPosition']);break;case'move':_0x1599c6=_0x3f2603['model']['createPositionAt'](_0x4af05e['targetPosition']),_0x5d9afc=_0x1599c6['getShiftedBy'](_0x4af05e['howMany']);break;default:return;}const _0x15cc53=_0x3f2603['model']['createRange'](_0x1599c6,_0x5d9afc);_0x3f2603['model']['change'](()=>{for(const {suggestion:_0x5844e8,meta:_0x52b7f4}of this['_findSuggestions'](_0x15cc53)){if(_0x5844e8['isMultiRange'])continue;if('formatInline'==_0x5844e8['type'])continue;const _0x25526a=this['_getAttributeKey'](_0x5844e8);if(_0x25526a&&this['_suggestionsConversion']['isBlockAttribute'](_0x25526a)&&'split'!=_0x4af05e['type'])continue;const _0x2683c8=_0x5844e8['data']&&_0x5844e8['data']['multipleBlocks'];('formatBlock'!=_0x5844e8['type']||'split'==_0x4af05e['type']&&!_0x2683c8)&&(_0x52b7f4['containsRangeInObject']||'insertion'==_0x5844e8['type']&&_0x52b7f4['isOwn']||_0x5844e8['getFirstRange']()['containsRange'](_0x15cc53)&&this['_breakSuggestionMarker'](_0x5844e8,_0x1599c6,_0x5d9afc));}});},{'priority':'lowest'}),_0x3f2603['model']['on']('deleteContent',(_0x2ee096,_0x11b5f0)=>{const _0x19d335=_0x11b5f0[0x0],_0x2f73ff=_0x11b5f0[0x1];if(_0x2f73ff&&_0x2f73ff['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x19d335['isCollapsed'])return;const _0x4cfebe=_0x3f2603['model']['schema'],{start:_0x448429,end:_0x540732}=_0x19d335['getFirstRange'](),_0x470a16=_0x448429['nodeAfter']&&_0x4cfebe['isLimit'](_0x448429['nodeAfter'])?null:_0x4cfebe['getNearestSelectionRange'](_0x448429,'forward'),_0x3b5619=_0x540732['nodeBefore']&&_0x4cfebe['isLimit'](_0x540732['nodeBefore'])?null:_0x4cfebe['getNearestSelectionRange'](_0x540732,'backward'),_0x5ed80b=_0x3f2603['model']['createRange'](_0x470a16?_0x470a16['start']:_0x448429,_0x3b5619?_0x3b5619['end']:_0x540732);_0x3f2603['model']['change'](_0x598a73=>{this['markDeletion'](_0x5ed80b);const _0x446662=_0x3f2603['model']['schema']['getNearestSelectionRange'](_0x5ed80b['start']);_0x19d335['is']('documentSelection')?_0x598a73['setSelection'](_0x446662):_0x19d335['setTo'](_0x446662);}),_0x2ee096['stop']();},{'priority':_0x4faa0f['normal']+0xa}),_0x3f2603['model']['on']('insertContent',(_0x4b8a3f,_0x2335b4)=>{const _0x428832=_0x2335b4[_0x2335b4['length']-0x1];_0x428832&&_0x428832['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3f2603['model']['change'](()=>{let _0x5315cd=_0x3f2603['model']['insertContent'](_0x2335b4[0x0],_0x2335b4[0x1],_0x2335b4[0x2],{'forceDefaultExecution':!0x0});if(!_0x5315cd)return;_0x4b8a3f['return']=_0x5315cd['clone']();const _0x336f55=_0x5315cd['end']['nodeBefore'],_0x13c5e4=_0x3f2603['model']['schema'];_0x336f55&&_0x13c5e4['isBlock'](_0x336f55)&&!_0x13c5e4['isObject'](_0x336f55)&&(_0x5315cd=_0x3f2603['model']['createRange'](_0x5315cd['start'],_0x3f2603['model']['createPositionAt'](_0x336f55,'end'))),this['markInsertion'](_0x5315cd);}),_0x4b8a3f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x41aaf5=new Lt(_0x3f2603,this['_suggestions']);_0x3f2603['commands']['add']('acceptSuggestion',_0x41aaf5),this['enableCommand']('acceptSuggestion');const _0x2a87e2=new It(_0x3f2603,this['_suggestions']);_0x3f2603['commands']['add']('discardSuggestion',_0x2a87e2),this['enableCommand']('discardSuggestion'),_0x3f2603['commands']['add']('acceptAllSuggestions',new yt(_0x3f2603,_0x41aaf5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3f2603['commands']['add']('discardAllSuggestions',new yt(_0x3f2603,_0x2a87e2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3f2603['commands']['add']('acceptSelectedSuggestions',new St(_0x3f2603,_0x41aaf5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3f2603['commands']['add']('discardSelectedSuggestions',new St(_0x3f2603,_0x2a87e2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ebf78=_0x3f2603['plugins']['get'](_0x1ffaf2);this['listenTo'](_0x1ebf78,'addComment',(_0x12799d,{threadId:_0x303977})=>{const _0x59c096=this['_suggestions']['get'](_0x303977);_0x59c096&&_0x59c096['commentThread']&&0x1===_0x59c096['commentThread']['length']&&this['_updateSuggestionData'](_0x303977,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ebf78,'removeComment',(_0x22c430,{threadId:_0x52a11f})=>{const _0x54f00b=this['_suggestions']['get'](_0x52a11f);_0x54f00b&&_0x54f00b['commentThread']&&!_0x54f00b['commentThread']['length']&&this['_updateSuggestionData'](_0x52a11f,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x9279e3){const _0x53e131='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x1a301c=0x79728,_0x48025c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x102a4a(_0x4764ae){const _0x4354d5=new window['Promise'](_0x13a8f7=>{_0x4764ae['once']('ready',_0x13a8f7);}),_0x2854a0=window['Date']['now'](),_0x4e3c68=_0x4764ae['config']['get']('licenseKey');async function _0x150033(){let _0x25448c,_0x1e16cb=null,_0xf60be1=null;try{return'GPL'==_0x4e3c68?'NotAllowed':(_0x25448c=_0x26a9e7(),_0x25448c?(_0x25448c['usageEndpoint']&&(_0xf60be1=_0x5b6a30(_0x25448c['usageEndpoint'],_0x25448c['jti'])),await _0x551412()?_0x43081b()?_0x5acc2c()?'Expired':_0x1e1ca4()?('evaluation'==_0x25448c['licenseType']&&(_0x1e16cb=_0x51da2d('EvaluationLimit')),await _0x55c05a()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5acc2c(){const _0x2b3618=['evaluation','trial']['includes'](_0x25448c['licenseType'])?_0x2854a0/0x3e8:0xe10*_0x1a301c;return _0x25448c['exp']<_0x2b3618;}function _0x43081b(){const _0x13921e=_0x25448c['features'];if(!_0x13921e)return!0x1;if(_0x13921e['includes']('*'))return!0x0;if(_0x13921e['includes']('TC'))return!0x0;if(_0x13921e['includes']('RTC')){if(_0x466626())return!0x0;if(_0x179c18()||_0xbf103f())return!0x0;}return!0x1;}function _0x1e1ca4(){const _0x3e4fcf=_0x25448c['licensedHosts'];if(!_0x3e4fcf||0x0==_0x3e4fcf['length'])return!0x0;const {hostname:_0x40d7d7}=new URL(window['location']['href']);if(_0x3e4fcf['includes'](_0x40d7d7))return!0x0;const _0x1357d6=_0x40d7d7['split']('.');return _0x3e4fcf['filter'](_0x3baf3a=>_0x3baf3a['includes']('*'))['map'](_0x156f35=>_0x156f35['split']('.'))['filter'](_0x150842=>_0x150842['length']<=_0x1357d6['length'])['map'](_0x6bc6f=>Array(_0x1357d6['length']-_0x6bc6f['length'])['fill']('*'===_0x6bc6f[0x0]?'*':'')['concat'](_0x6bc6f))['some'](_0x1048ad=>_0x1357d6['every']((_0x3f7289,_0x31e530)=>_0x1048ad[_0x31e530]===_0x3f7289||'*'===_0x1048ad[_0x31e530]));}function _0x55c05a(){return _0x1e16cb&&_0xf60be1?new window['Promise']((_0x1a94aa,_0x3fb338)=>{_0x1e16cb['then'](_0x1a94aa,_0x3fb338),_0xf60be1['then'](_0x454b3b=>{'Valid'!=_0x454b3b&&_0x1a94aa(_0x454b3b);},_0x3fb338);}):_0x1e16cb||_0xf60be1||'Valid';}}function _0x5b6a30(_0x3605ee,_0x522d44){return new window['Promise'](_0x260a8a=>{if(_0xcc46eb())return _0x260a8a('Valid');_0x228803(),_0x4764ae['decorate']('_sendUsageRequest');let _0x409fd1=!0x1;const _0x113469=_0x533d19();function _0x3a8004(_0x15311f){return!!_0x15311f&&('object'==typeof _0x15311f||'function'==typeof _0x15311f)&&'function'==typeof _0x15311f['then']&&'function'==typeof _0x15311f['catch'];}function _0x467ee3(_0x57e02e){_0x48c143(_0x57e02e)['then'](_0x16799f=>_0x16799f&&'ok'==_0x16799f['status']?_0x3cb4f1(_0x529eb7(_0x113469+_0x522d44))!=_0x16799f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x15798b=>(_0x4c0c60(),_0x15798b),()=>{const _0x5caeb6=_0x5a980a();return null==_0x5caeb6?(_0x4c0c60(),'Valid'):_0x2854a0-_0x5caeb6>0x240c8400?'UsageLimit':'Valid';})['then'](_0x260a8a)['catch'](()=>{_0x260a8a('UsageLimit');});const _0x4cb9f3=0x36ee80;function _0x4c0c60(){const _0x51b1d1='llct-'+_0x3cb4f1(_0x529eb7(_0x3605ee)),_0x5a6b95=_0xa055fe(_0x3cb4f1(window['Math']['ceil'](_0x2854a0/_0x4cb9f3)));window['localStorage']['setItem'](_0x51b1d1,_0x5a6b95);}function _0x5a980a(){const _0x191baf='llct-'+_0x3cb4f1(_0x529eb7(_0x3605ee)),_0x30ddfb=window['localStorage']['getItem'](_0x191baf);return _0x30ddfb?window['parseInt'](_0xa055fe(_0x30ddfb),0x10)*_0x4cb9f3:null;}function _0x48c143(_0x44e0ef){return new window['Promise']((_0x42e4c8,_0x2b2e4a)=>{_0x44e0ef['then'](_0x42e4c8,_0x2b2e4a),window['setTimeout'](_0x2b2e4a,0x1d4c0);});}}_0x4764ae['on']('_sendUsageRequest',(_0x6b2c3a,_0x3db2ba)=>{if(_0x3db2ba[0x0]!=_0x3605ee)return _0x260a8a('UsageLimit');_0x3db2ba[0x1]={..._0x3db2ba[0x1],'requestId':_0x113469};},{'priority':'high'}),_0x4764ae['on']('_sendUsageRequest',_0x2544e4=>{_0x3a8004(_0x2544e4['return'])&&(_0x409fd1=!0x0,_0x467ee3(_0x2544e4['return']));},{'priority':'low'}),_0x4354d5['then'](()=>{_0x409fd1||_0x260a8a('UsageLimit');});});function _0xcc46eb(){return'auto'==_0x4764ae['editing']['view']['_overlayModeHint'];}function _0x228803(){_0x4764ae['editing']['view']['_overlayModeHint']='auto';}}function _0x51da2d(_0x18fe80){const _0x8bde9b=[new window['Promise'](_0x9840bc=>setTimeout(_0x9840bc,0x93ecc)),_0x4354d5['then'](()=>new window['Promise'](_0xe561bf=>{let _0x30eee6=0x0;_0x4764ae['model']['on']('applyOperation',(_0x3ea64c,_0x1fd3b5)=>{_0x1fd3b5[0x0]['isDocumentOperation']&&_0x30eee6++,0x5e8==_0x30eee6&&(_0xe561bf(),_0x3ea64c['off']());});}))];return window['Promise']['race'](_0x8bde9b)['then'](()=>_0x18fe80);}async function _0x3be581(){await _0x4354d5,_0x4764ae['model']['change']=_0x1cbec6,_0x4764ae['model']['enqueueChange']=_0x1cbec6,_0x4764ae['enableReadOnlyMode']('model');}function _0x466626(){return _0x417b0c('WebSocketGateway')&&'connected'==_0x26f0b8('WebSocketGateway')['state'];}function _0x179c18(){return _0x417b0c('RevisionViewerIntegration');}function _0xbf103f(){return _0x417b0c('TrackChangesDataGetter');}function _0x38af32(_0x3bd9ec){const _0x453fc7=_0x10f249();_0x4764ae[_0x453fc7]='trackChangesLicenseKey'+_0x3bd9ec,'Valid'!=_0x3bd9ec&&_0x3be581();}function _0x10f249(){const _0x23302c=window['String'](window['performance']['now']())['replace']('.','');let _0x142bb5='U';for(let _0x350a55=0x0;_0x350a55<_0x23302c['length'];_0x350a55+=0x2){let _0x141266=window['parseInt'](_0x23302c['substring'](_0x350a55,_0x350a55+0x2));_0x141266>=0x3e&&(_0x141266-=0x3e),_0x142bb5+=_0x53e131[_0x141266];}return _0x142bb5;}function _0x26a9e7(){const _0x5a1c02=_0x4e3c68['split']('.');if(0x3!=_0x5a1c02['length'])return null;return _0x477644(_0x5a1c02[0x1]);function _0x477644(_0x515c9b){const _0x7ccbf6=_0x1abb4f(_0x515c9b);return _0x7ccbf6&&_0x3cc5cc()?_0x7ccbf6:null;function _0x3cc5cc(){const _0x363e6e=_0x7ccbf6['jti'],_0xe081d0=window['parseInt'](_0x363e6e['substring'](_0x363e6e['length']-0x8),0x10),_0x202dc6={..._0x7ccbf6,'jti':_0x363e6e['substring'](0x0,_0x363e6e['length']-0x8)};return delete _0x202dc6['vc'],_0x529eb7(_0x202dc6)==_0xe081d0;}}}async function _0x551412(){let _0x232bb3=!0x0;try{const [_0x53c337,_0x2c7d58,_0x2cc038]=_0x4e3c68['split']('.');return _0xb4f8ba(_0x53c337),await _0x3178fd(_0x53c337,_0x2c7d58,_0x2cc038),_0x232bb3;}catch{return!0x1;}function _0xb4f8ba(_0x55d783){const _0x4b7ced=_0x1abb4f(_0x55d783);_0x4b7ced&&'ES256'==_0x4b7ced['alg']||(_0x232bb3=!0x1);}async function _0x3178fd(_0x4eef50,_0x1bbe62,_0x1052f2){const _0x4ed59b=window['Uint8Array']['from'](_0x4af8b1(_0x1052f2),_0x2ea3e7=>_0x2ea3e7['charCodeAt'](0x0)),_0x4d5eac=new window['TextEncoder']()['encode'](_0x4eef50+'.'+_0x1bbe62),_0x2f59c7=window['crypto']['subtle'];if(!_0x2f59c7)return;const _0x5f21b1=await _0x2f59c7['importKey']('jwk',_0x48025c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2f59c7['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5f21b1,_0x4ed59b,_0x4d5eac)||(_0x232bb3=!0x1);}}function _0x1abb4f(_0x47f9a0){return _0x47f9a0['startsWith']('ey')?JSON['parse'](_0x4af8b1(_0x47f9a0)):null;}function _0x4af8b1(_0x2efe05){return window['atob'](_0x2efe05['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x529eb7(_0x19d407){let _0x2a6e0f=0x1505;function _0x36de9e(_0x477850){for(let _0x21822c=0x0;_0x21822c<_0x477850['length'];_0x21822c++){const _0x210bc2=_0x477850['charCodeAt'](_0x21822c);_0x2a6e0f=(_0x2a6e0f<<0x5)+_0x2a6e0f+_0x210bc2,_0x2a6e0f&=_0x2a6e0f;}}function _0x2260a5(_0x3e5f5f){Array['isArray'](_0x3e5f5f)?_0x3e5f5f['forEach'](_0x2260a5):_0x3e5f5f&&'object'==typeof _0x3e5f5f?Object['entries'](_0x3e5f5f)['sort']()['forEach'](([_0x46a599,_0x2fb0c7])=>{_0x36de9e(_0x46a599),_0x2260a5(_0x2fb0c7);}):_0x36de9e(window['String'](_0x3e5f5f));}return _0x2260a5(_0x19d407),_0x2a6e0f>>>0x0;}function _0x3cb4f1(_0x106ef7){return _0x106ef7['toString'](0x10)['padStart'](0x8,'0');}function _0xa055fe(_0x496f94){return _0x496f94['split']('')['reverse']()['join']('');}function _0x417b0c(_0x58b8ea){return _0x4764ae['plugins']['has'](_0x58b8ea);}function _0x26f0b8(_0x344348){return _0x4764ae['plugins']['get'](_0x344348);}function _0x1cbec6(){}_0x38af32(await _0x150033());}_0x102a4a(_0x9279e3['editor']);}(this);}set adapter(_0x4c4f52){if(this['_adapter'])throw new _0x2045ee('track-changes-adapter-already-set',this);this['_adapter']=_0x4c4f52;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x19089c=!0x1,toJSON:_0xa42d9a=!0x1}={}){const _0x52a054=[];for(const _0x5c3e0f of this['_suggestions']['values']())_0x19089c&&!_0x5c3e0f['isInContent']||_0x52a054['push'](_0x5c3e0f);return _0xa42d9a?_0x52a054['map'](_0x3a83ff=>_0x3a83ff['toJSON']()):_0x52a054;}getSuggestion(_0x10b2b0){const _0x5dd769=this['_suggestions']['get'](_0x10b2b0);if(!_0x5dd769)throw new _0x2045ee('track-changes-suggestion-not-found',this);return _0x5dd769;}hasSuggestion(_0x1650af){return this['_suggestions']['has'](_0x1650af);}addSuggestionData(_0x38ac39){const {authorId:_0x33c046,id:_0x6393bc,originalSuggestionId:_0x579364,attributes:_0x3e70b7}=_0x38ac39,[_0x37d468,_0x30e527]=_0x38ac39['type']['split'](':'),_0x1d8cec=this['_suggestions']['get'](_0x6393bc)||this['_createSuggestion'](_0x37d468,_0x30e527,_0x6393bc,_0x33c046,_0x3e70b7,_0x579364);if(this['_addThreadToSuggestion'](_0x1d8cec),this['_checkSuggestionCorrectness'](_0x1d8cec,_0x37d468,_0x30e527||null,_0x33c046),_0x1d8cec['createdAt']=_0x38ac39['createdAt'],_0x1d8cec['_isDataLoaded']=!0x0,_0x3e70b7&&_0x3e70b7['@external']){const _0x2f148a=_0x3e70b7['@external'],_0x360c2f=this['_getExternalAuthor'](_0x2f148a['authorName']);_0x1d8cec['authoredAt']=_0x2f148a['createdAt'],_0x1d8cec['author']=_0x360c2f;}else _0x1d8cec['authoredAt']=_0x38ac39['createdAt'];switch(_0x38ac39['data']&&(_0x1d8cec['data']=_0x38ac39['data']),_0x38ac39['attributes']&&(_0x1d8cec['attributes']=_0x38ac39['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d8cec['_saved']=!0x0),this['_suggestionState']['get'](_0x1d8cec)){case'notReady':this['_suggestionState']['set'](_0x1d8cec,'dataReady');break;case'markerReady':_0x1d8cec['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d8cec])),this['_refreshSuggestionsChain'](new Set([_0x1d8cec])),this['_suggestionState']['set'](_0x1d8cec,'ready'),this['fire']('suggestionLoaded',_0x1d8cec)):this['_suggestionState']['set'](_0x1d8cec,'removed');}return _0x1d8cec;}acceptSuggestion(_0x4d53e6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x284cb6 of _0x4d53e6['getAllAdjacentSuggestions']())_0x284cb6['accept']();});});}discardSuggestion(_0xf07984){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3cfa5d of _0xf07984['getAllAdjacentSuggestions']())_0x3cfa5d['discard']();});});}['enableCommand'](_0x279180,_0x2b779a){const _0x47a20a=this['editor']['commands']['get'](_0x279180);if(!_0x47a20a)throw new _0x2045ee('track-changes-command-not-found',this,{'commandName':_0x279180});if(this['_enabledCommands']['has'](_0x47a20a))throw new _0x2045ee('track-changes-enable-command-twice',this,{'commandName':_0x279180});this['_enabledCommands']['add'](_0x47a20a),_0x2b779a&&_0x47a20a['on']('execute',(_0x119ef0,_0xee2527)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xee2527['length']>0x0&&_0xee2527[_0xee2527['length']-0x1]&&_0xee2527[_0xee2527['length']-0x1]['forceDefaultExecution']?_0xee2527['pop']():(_0x119ef0['return']=_0x2b779a((..._0x592cab)=>_0x47a20a['execute'](..._0x592cab,{'forceDefaultExecution':!0x0}),..._0xee2527),_0x119ef0['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x25026b){let _0x176c4c,_0x9cd65a;const _0x22cf45=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x176c4c=_0x25026b();}catch(_0xe5652b){_0x9cd65a=_0xe5652b;}return _0x22cf45||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9cd65a&&_0x2045ee['rethrowUnexpectedError'](_0x9cd65a,this),_0x176c4c;}markInsertion(_0x32c589,_0x438f14=null,_0x1ba52f={}){if(_0x32c589['isCollapsed'])return null;const _0x442f9c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1ba52f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x535456,meta:_0x318f67}of this['_findSuggestions'](_0x32c589,'insertion'))if(_0x318f67['isOwn']){if(!_0x318f67['isNextTo']){if(_0x318f67['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x535456,_0x1ba52f))continue;return _0x535456;}if(An(_0x535456,_0x1ba52f))return _0x535456;this['_breakSuggestionMarker'](_0x535456,_0x32c589['start'],_0x32c589['end']);break;}if(_0x438f14==_0x535456['subType']&&An(_0x535456,_0x1ba52f)){const _0x3e1b7b=_0x535456['getFirstRange']();return _0x3e1b7b['start']['isEqual'](_0x32c589['end'])?this['_setSuggestionRange'](_0x535456,this['_model']['createRange'](_0x32c589['start'],_0x3e1b7b['end'])):this['_setSuggestionRange'](_0x535456,this['_model']['createRange'](_0x3e1b7b['start'],_0x32c589['end'])),_0x535456;}}const _0x16ef0b=_0x533d19(),_0x241762=_0x442f9c['id'],_0x450744=_0x438f14?'insertion:'+_0x438f14:'insertion',_0xbe908d=this['_setSuggestionData']({'id':_0x16ef0b,'type':_0x450744,'createdAt':new Date(),'authorId':_0x241762,'attributes':_0x1ba52f});return this['_addSuggestionMarker'](_0x450744,_0x16ef0b,_0x241762,_0x32c589),_0xbe908d;}markMultiRangeInsertion(_0x245d1f,_0x3c483e='multi',_0x55801b={}){const _0x2a104f=this['editor']['plugins']['get']('Users')['me'],_0x4de9d6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3c483e,'join');this['_trackingSessionId']&&(_0x55801b['trackingSessionId']=this['_trackingSessionId']);for(const _0x2709db of this['getSuggestions']())if(_0x2709db['author']['id']==_0x2a104f['id']&&'insertion'==_0x2709db['type']&&_0x2709db['subType']==_0x3c483e&&An(_0x2709db,_0x55801b)&&(_0x4de9d6(_0x2709db['getRanges'](),_0x245d1f)||_0x4de9d6(_0x245d1f,_0x2709db['getRanges']()))){for(const _0x4b17fb of _0x245d1f)_0x2709db['addRange'](_0x4b17fb);return _0x2709db;}for(const {suggestion:_0x223e54,meta:_0x2bd817}of this['_findSuggestions'](_0x245d1f,'insertion')){if(!_0x2bd817['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2bd817['containsRangeInObject'])continue;if(!An(_0x223e54,_0x55801b))continue;let _0x2c079a=!0x0;for(const _0x458d45 of _0x223e54['getRanges']())for(const _0x6231b2 of _0x245d1f)if(!_0x458d45['containsRange'](_0x6231b2)){_0x2c079a=!0x1;break;}if(_0x2c079a)return _0x223e54;}const _0x14f247=_0x533d19(),_0x572066=_0x2a104f['id'],_0x5f37dd='insertion:'+_0x3c483e,_0x55135f=this['_setSuggestionData']({'id':_0x14f247,'type':_0x5f37dd,'createdAt':new Date(),'authorId':_0x572066,'attributes':_0x55801b});for(const _0xd7c96f of _0x245d1f)this['_addSuggestionMarker'](_0x5f37dd,_0x14f247,_0x572066,_0xd7c96f,Ot['getMultiRangeId']());return _0x55135f;}markInlineFormat(_0x5cb052,_0x2d8441,_0xc460ae=null,_0x598dd6={}){if(_0xc460ae=_0xc460ae||fn(_0x2d8441),_0x5cb052['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x598dd6['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x320c9a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc460ae,'accept');return this['forceDefaultExecution'](()=>_0x320c9a([_0x5cb052],_0x2d8441,_0x598dd6)),null;}const _0x40f453=this['editor']['plugins']['get']('Users')['me'],_0x490112=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x579674,meta:_0xe36d06}of this['_findSuggestions'](_0x5cb052,'insertion'))_0xe36d06['isOwn']&&!_0xe36d06['isInsideObject']&&_0x490112['push'](..._0x579674['getRanges']());}const _0xce0fb8=function(_0x162be3,_0x420676){const _0x5351ed=[];for(const _0x4d69a2 of _0x420676){const _0x562967=_0x162be3['getIntersection'](_0x4d69a2);_0x562967&&_0x5351ed['push'](_0x562967);}return _0x5351ed;}(_0x5cb052,_0x490112),_0x45bccf=function(_0x4541e6,_0x481882){const _0x58e2ce=[_0x4541e6];for(const _0x35a020 of _0x481882){let _0x50f59d=0x0;for(;_0x50f59d<_0x58e2ce['length'];){const _0x22ab17=_0x58e2ce[_0x50f59d]['getDifference'](_0x35a020);_0x58e2ce['splice'](_0x50f59d,0x1,..._0x22ab17),_0x50f59d+=_0x22ab17['length'];}}return _0x58e2ce;}(_0x5cb052,_0x490112);_0xce0fb8['length']&&this['_model']['change'](()=>{for(const _0x14d1a4 of _0xce0fb8){const _0x3abab0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc460ae,'accept');this['forceDefaultExecution'](()=>_0x3abab0([_0x14d1a4],_0x2d8441,_0x598dd6));}});for(const _0x156559 of _0x45bccf){let _0x396bf8=null,_0x142193=_0x156559['start'],_0x42b573=_0x156559['end'];for(const {suggestion:_0x3534a3,meta:_0x369f3e}of this['_findSuggestions'](_0x156559,'formatInline')){if(!_0x369f3e['isOwn'])continue;if(_0x3534a3['subType']!=_0xc460ae)continue;if(!An(_0x3534a3,_0x598dd6))continue;const _0x2e866a=_0x3534a3['getFirstRange']();if(_0x2e866a['containsRange'](_0x156559,!0x0))return null;_0x142193=_0x142193['isBefore'](_0x2e866a['start'])?_0x142193:_0x2e866a['start'],_0x42b573=_0x42b573['isAfter'](_0x2e866a['end'])?_0x42b573:_0x2e866a['end'],_0x396bf8?_0x2e866a['start']['isBefore'](_0x396bf8['getFirstRange']()['start'])?(_0x396bf8['removeMarkers'](),_0x396bf8=_0x3534a3):_0x3534a3['removeMarkers']():_0x396bf8=_0x3534a3;}const _0x3ac563=this['_model']['createRange'](_0x142193,_0x42b573);if(_0x396bf8)this['_setSuggestionRange'](_0x396bf8,_0x3ac563);else{const _0x74c9be=_0x533d19(),_0x4ca5df=_0x40f453['id'];this['_setSuggestionData']({'id':_0x74c9be,'type':'formatInline:'+_0xc460ae,'data':_0x2d8441,'createdAt':new Date(),'authorId':_0x4ca5df,'attributes':_0x598dd6}),this['_addSuggestionMarker']('formatInline:'+_0xc460ae,_0x74c9be,_0x4ca5df,_0x3ac563);}}return null;}markBlockFormat(_0x5bff9f,_0x28e585,_0xa86ea5=[],_0x550c08=null,_0xd957f9={}){_0x28e585['formatGroupId']||(_0x28e585['formatGroupId']=_0x28e585['commandName']),_0x28e585['multipleBlocks']=_0x5bff9f['is']('range'),_0x550c08=_0x550c08||fn(_0x28e585);const _0xe80999=_0xa86ea5['map'](_0x30794b=>pn(_0x30794b,this['_model'])),_0x5214af=_0x5bff9f['is']('range')?_0x5bff9f:pn(_0x5bff9f,this['_model']);if(this['_trackingSessionId']&&(_0xd957f9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x43b62d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x550c08,'accept');return this['forceDefaultExecution'](()=>_0x43b62d([_0x5214af],_0x28e585,_0xd957f9)),null;}_0xe80999['push'](_0x5214af);let _0xfb17c5=!0x0;for(const _0x534c1e of _0xe80999)if(!this['_rangeIsInLocalUserInsertion'](_0x534c1e)){_0xfb17c5=!0x1;break;}if(_0xfb17c5&&'always'!==this['_trackFormatChanges']){const _0x5641cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x550c08,'accept');return this['forceDefaultExecution'](()=>_0x5641cf([_0x5214af],_0x28e585,_0xd957f9)),null;}let _0x23dc12=null,_0x31451d=_0x5214af['start'],_0x254ac7=_0x5214af['end'];for(const {suggestion:_0x3635f2,meta:_0x46b579}of this['_findSuggestions'](_0x5214af,'formatBlock')){if(!_0x46b579['isOwn'])continue;if(_0x46b579['isNextTo']||_0x46b579['containsRangeInObject']||_0x46b579['isInsideObject'])continue;if(_0x3635f2['data']['formatGroupId']!=_0x28e585['formatGroupId'])continue;if(!An(_0x3635f2,_0xd957f9))continue;const _0x3c7e68=_0x3635f2['getFirstRange']();if(_0x3635f2['subType']==_0x550c08){if(_0x3c7e68['containsRange'](_0x5214af,!0x0))return null;_0x31451d=_0x31451d['isBefore'](_0x3c7e68['start'])?_0x31451d:_0x3c7e68['start'],_0x254ac7=_0x254ac7['isAfter'](_0x3c7e68['end'])?_0x254ac7:_0x3c7e68['end'],_0x23dc12?_0x3c7e68['start']['isBefore'](_0x23dc12['getFirstRange']()['start'])?(_0x23dc12['removeMarkers'](),_0x23dc12=_0x3635f2):_0x3635f2['removeMarkers']():_0x23dc12=_0x3635f2;}else{const _0x175693=_0x5214af['getIntersection'](_0x3c7e68);this['_cutOutSuggestionMarker'](_0x3635f2,_0x175693);}}const _0x51d37b=this['editor']['plugins']['get']('Users')['me'],_0x4bb39d=_0x533d19(),_0x1fba83=_0x51d37b['id'];if(_0x23dc12)return this['_setSuggestionRange'](_0x23dc12,this['_model']['createRange'](_0x31451d,_0x254ac7)),_0x23dc12;{const _0x5da107=this['_setSuggestionData']({'id':_0x4bb39d,'type':'formatBlock:'+_0x550c08,'data':_0x28e585,'createdAt':new Date(),'authorId':_0x1fba83,'attributes':_0xd957f9});return this['_addSuggestionMarker']('formatBlock:'+_0x550c08,_0x4bb39d,_0x1fba83,this['_model']['createRange'](_0x31451d,_0x254ac7)),_0x5da107;}}markMultiRangeBlockFormat(_0x1a9caf,_0x638473,_0x5d6904=[],_0x4f52ab=null,_0x36bea1={}){_0x638473['formatGroupId']||(_0x638473['formatGroupId']=_0x638473['commandName']);const _0x485a14=_0x1a9caf[0x0];_0x638473['multipleBlocks']=_0x485a14['is']('range'),_0x4f52ab=_0x4f52ab||fn(_0x638473);const _0x382a9=_0x5d6904['map'](_0x23f6dd=>pn(_0x23f6dd,this['_model'])),_0x547016=_0x485a14['is']('range')?_0x1a9caf:_0x1a9caf['map'](_0xbe4f21=>pn(_0xbe4f21,this['_model']));if(this['_trackingSessionId']&&(_0x36bea1['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ff304=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f52ab,'accept');return this['forceDefaultExecution'](()=>_0x1ff304(_0x547016,_0x638473,_0x36bea1)),null;}_0x382a9['push'](..._0x547016);let _0x341095=!0x0;for(const _0x45374b of _0x382a9)if(!this['_rangeIsInLocalUserInsertion'](_0x45374b)){_0x341095=!0x1;break;}if(_0x341095&&'always'!==this['_trackFormatChanges']){const _0xeb8696=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f52ab,'accept');return this['forceDefaultExecution'](()=>_0xeb8696(_0x547016,_0x638473,_0x36bea1)),null;}const _0xc14f32=this['editor']['plugins']['get']('Users')['me'];for(const _0x2f60f2 of this['getSuggestions']()){const _0x103886=_0x2f60f2['data'];if(_0x2f60f2['author']['id']!=_0xc14f32['id'])continue;if('formatBlock'!=_0x2f60f2['type']||_0x103886['formatGroupId']!=_0x638473['formatGroupId'])continue;if(!An(_0x2f60f2,_0x36bea1))continue;const _0x2254c5=_0x2f60f2['subType']==_0x4f52ab;for(let _0x4934d9=0x0;_0x4934d9<_0x547016['length'];_0x4934d9++){const _0x138fa6=_0x547016[_0x4934d9];for(const _0xfcffc2 of _0x2f60f2['getMarkers']()){const _0x78e234=_0xfcffc2['getRange']();if(_0x138fa6['isEqual'](_0x78e234)){_0x2254c5?(_0x547016['splice'](_0x4934d9,0x1),_0x4934d9--):_0x2f60f2['removeMarker'](_0xfcffc2['name']);break;}}}}if(0x0==_0x547016['length'])return null;const _0x375cdc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4f52ab,'join');for(const _0x264a3f of this['getSuggestions']()){const _0x2c1afa=_0x264a3f['data'];if(_0x264a3f['author']['id']==_0xc14f32['id']&&('formatBlock'==_0x264a3f['type']&&_0x2c1afa['formatGroupId']==_0x638473['formatGroupId']&&_0x264a3f['subType']==_0x4f52ab&&An(_0x264a3f,_0x36bea1)&&(_0x375cdc(_0x264a3f['getRanges'](),_0x547016)||_0x375cdc(_0x547016,_0x264a3f['getRanges']())))){for(const _0x3e9f41 of _0x547016)_0x264a3f['addRange'](_0x3e9f41);return _0x264a3f;}}const _0x51167f=_0x533d19(),_0x13468c=_0xc14f32['id'],_0x498deb='formatBlock:'+_0x4f52ab,_0x450e66=this['_setSuggestionData']({'id':_0x51167f,'type':_0x498deb,'data':_0x638473,'createdAt':new Date(),'authorId':_0x13468c,'attributes':_0x36bea1});for(const _0x2695db of _0x547016)this['_addSuggestionMarker'](_0x498deb,_0x51167f,_0x13468c,_0x2695db,Ot['getMultiRangeId']());return _0x450e66;}markDeletion(_0x4be4d9,_0x1a5721=null,_0x93f470={}){if(_0x4be4d9['isCollapsed'])return null;const _0x4b7b8e=this['editor']['plugins']['get']('Users')['me'],_0x1e5b05=new at(_0x4be4d9['start'],_0x4be4d9['end']);this['_trackingSessionId']&&(_0x93f470['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1a1cf2,meta:_0x9ecaa1}of this['_findSuggestions'](_0x1e5b05,'insertion'))if(_0x9ecaa1['isOwn']&&!_0x9ecaa1['isNextTo']){if(_0x1a1cf2['isMultiRange']){const _0x47ee97=_0x1a1cf2['getRanges']()['filter'](_0x19a52d=>'$graveyard'!=_0x19a52d['root']['rootName']);if(_0x47ee97['every'](_0x4f13b6=>_0x1e5b05['containsRange'](_0x4f13b6,!0x0))&&_0x1a1cf2['discard'](),_0x47ee97['some'](_0x281c8e=>_0x281c8e['containsRange'](_0x1e5b05,!0x0))){const _0x22b612=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a5721,'accept');return this['forceDefaultExecution'](()=>_0x22b612([_0x1e5b05],null,_0x93f470)),null;}}else{const _0x1ac16b=_0x1e5b05['getIntersection'](_0x1a1cf2['getFirstRange']());null!==_0x1ac16b&&_0x1a1cf2['_onDiscard']([_0x1ac16b],null,_0x93f470);}}if(_0x1e5b05['detach'](),_0x1e5b05['isCollapsed']||'$graveyard'==_0x1e5b05['root']['rootName'])return null;let _0xc532a7=null,_0x2fc505=_0x1e5b05['start'],_0x540f45=_0x1e5b05['end'];const _0x55b124=this['_findSuggestions'](_0x1e5b05,'deletion');for(const {suggestion:_0x8603c0,meta:_0x882ec8}of _0x55b124){const _0x5c0d85=this['_model']['createRange'](_0x2fc505,_0x540f45);if(_0x882ec8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x882ec8['containsRangeInObject']&&!_0x882ec8['isInsideObject'])){if(_0x8603c0['isMultiRange']){if(!An(_0x8603c0,_0x93f470))continue;let _0x27a83a=!0x0;for(const _0x3cdf82 of _0x8603c0['getRanges']()){if(_0x3cdf82['containsRange'](_0x5c0d85,!0x0))return _0x8603c0;_0x5c0d85['containsRange'](_0x3cdf82)||(_0x27a83a=!0x1);}_0x27a83a&&_0x8603c0['discard']();}else{const _0x44abc9=_0x8603c0['getFirstRange']();if(_0x44abc9['containsRange'](_0x5c0d85,!0x0))return _0x8603c0;if(!An(_0x8603c0,_0x93f470)){_0x5c0d85['containsRange'](_0x44abc9)?_0x8603c0['removeMarkers']():_0x44abc9['containsPosition'](_0x2fc505)?_0x2fc505=_0x44abc9['end']:_0x44abc9['containsPosition'](_0x540f45)&&(_0x540f45=_0x44abc9['start']);continue;}_0x2fc505=_0x2fc505['isBefore'](_0x44abc9['start'])?_0x2fc505:_0x44abc9['start'],_0x540f45=_0x540f45['isAfter'](_0x44abc9['end'])?_0x540f45:_0x44abc9['end'],_0x93f470=Object['assign']({},_0x8603c0['attributes']),_0xc532a7?_0x44abc9['start']['isBefore'](_0xc532a7['getFirstRange']()['start'])?(_0xc532a7['removeMarkers'](),_0xc532a7=_0x8603c0):_0x8603c0['removeMarkers']():_0xc532a7=_0x8603c0;}}}if(_0xc532a7)return this['_setSuggestionRange'](_0xc532a7,this['_model']['createRange'](_0x2fc505,_0x540f45)),_0xc532a7;{const _0x17ed27=_0x533d19(),_0x3ea924=this['_model']['createRange'](_0x2fc505,_0x540f45),_0x4f8238=_0x4b7b8e['id'],_0x15f0ba=_0x1a5721?'deletion:'+_0x1a5721:'deletion',_0x2d5f9b=this['_setSuggestionData']({'id':_0x17ed27,'type':_0x15f0ba,'createdAt':new Date(),'authorId':_0x4f8238,'attributes':_0x93f470});return this['_addSuggestionMarker'](_0x15f0ba,_0x17ed27,_0x4f8238,_0x3ea924),_0x2d5f9b;}}markMultiRangeDeletion(_0x17cd1f,_0x5dc7d4='multi',_0x1ad8ae={}){const _0x62894f=this['editor']['plugins']['get']('Users')['me'],_0x12a97b=_0x17cd1f['map'](_0x7eaedf=>new at(_0x7eaedf['start'],_0x7eaedf['end'])),_0x57714f=new Set();this['_trackingSessionId']&&(_0x1ad8ae['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x580289,meta:_0x16f574}of this['_findSuggestions'](_0x12a97b,'insertion'))_0x16f574['isOwn']&&!_0x16f574['isNextTo']&&_0x57714f['add'](_0x580289);for(const _0x5e51ca of _0x57714f)if(_0x5e51ca['isMultiRange']){const _0xb1bb95=_0x5e51ca['getRanges']();if(_0x5e51ca['attributes']&&_0x5e51ca['attributes']['skipNestingCheck']||_0xb1bb95['every'](_0xd85d18=>_0x12a97b['some'](_0x11b8ca=>_0x11b8ca['containsRange'](_0xd85d18,!0x0)))&&_0x5e51ca['discard'](),_0x12a97b['every'](_0x3ba01a=>_0xb1bb95['some'](_0x169561=>_0x169561['containsRange'](_0x3ba01a,!0x0)))){const _0x54bbf9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc7d4,'accept');return this['forceDefaultExecution'](()=>_0x54bbf9(_0x17cd1f,null,_0x1ad8ae)),null;}}else{const _0x59a39b=_0x5e51ca['getFirstRange']();if(_0x12a97b['some'](_0x8ca3b8=>_0x8ca3b8['containsRange'](_0x59a39b,!0x0))&&_0x5e51ca['discard'](),_0x12a97b['every'](_0x24f32e=>_0x59a39b['containsRange'](_0x24f32e,!0x0))){const _0x480aff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc7d4,'accept');return this['forceDefaultExecution'](()=>_0x480aff(_0x12a97b,null,_0x1ad8ae)),null;}}const _0x4c7e91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5dc7d4,'join');let _0x15dd4b=null;for(const _0x4cdbb7 of this['getSuggestions']())if(_0x4cdbb7['author']['id']==_0x62894f['id']&&_0x4cdbb7['isInContent']&&'deletion'==_0x4cdbb7['type']&&_0x4cdbb7['subType']==_0x5dc7d4&&An(_0x4cdbb7,_0x1ad8ae)&&(_0x4c7e91(_0x4cdbb7['getRanges'](),_0x12a97b)||_0x4c7e91(_0x12a97b,_0x4cdbb7['getRanges']()))){if(_0x15dd4b){if(_0x4cdbb7['commentThread']&&_0x4cdbb7['commentThread']['length'])continue;for(const _0x63b6c4 of _0x4cdbb7['getRanges']())_0x15dd4b['isIntersectingWithRange'](_0x63b6c4)||_0x15dd4b['addRange'](_0x63b6c4);_0x4cdbb7['removeMarkers']();}else{_0x15dd4b=_0x4cdbb7;for(const _0x40306a of _0x12a97b)_0x4cdbb7['isIntersectingWithRange'](_0x40306a)||_0x4cdbb7['addRange'](_0x40306a);}}if(_0x15dd4b)return _0x15dd4b;_0x57714f['clear']();for(const {suggestion:_0x2fbfd6,meta:_0x32cdcb}of this['_findSuggestions'](_0x12a97b,'deletion'))_0x32cdcb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x32cdcb['containsRangeInObject']&&!_0x32cdcb['isInsideObject'])&&An(_0x2fbfd6,_0x1ad8ae)&&_0x57714f['add'](_0x2fbfd6);for(const _0xa56518 of _0x57714f){const _0x3b941e=_0xa56518['getRanges']();if((!_0x1ad8ae||!_0x1ad8ae['skipNestingCheck'])&&_0x12a97b['every'](_0x401c9e=>_0x3b941e['some'](_0xf7feb3=>_0xf7feb3['containsRange'](_0x401c9e,!0x0))))return _0xa56518;_0xa56518['attributes']&&_0xa56518['attributes']['skipNestingCheck']||_0x3b941e['every'](_0xa3ea26=>_0x12a97b['some'](_0xe5b89f=>_0xe5b89f['containsRange'](_0xa3ea26,!0x0)))&&_0xa56518['discard']();}const _0x3e2af5=_0x533d19(),_0x47e5d8=_0x62894f['id'],_0x508bff='deletion:'+_0x5dc7d4,_0x23e0ca=this['_setSuggestionData']({'id':_0x3e2af5,'type':_0x508bff,'createdAt':new Date(),'authorId':_0x47e5d8,'attributes':_0x1ad8ae});for(const _0x3241f8 of _0x12a97b)_0x3241f8['detach'](),_0x3241f8['isCollapsed']||'$graveyard'==_0x3241f8['root']['rootName']||this['_addSuggestionMarker'](_0x508bff,_0x3e2af5,_0x47e5d8,_0x3241f8,Ot['getMultiRangeId']());return _0x23e0ca;}markAttributeChange(_0x3c6b27,_0x20cb88,_0x299ded,_0x59a92f,_0x2cb051){if(_0x3c6b27['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xbe880b=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ae8ed=Array['from'](this['_suggestions']['values']())['filter'](_0x50a955=>'attribute'==_0x50a955['type']&&_0x50a955['data']['key']==_0x20cb88&&_0x50a955['isIntersectingWithRange'](_0x3c6b27));if(this['_trackingSessionId']&&(_0x2cb051['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2b2279=this['_findSuggestions'](_0x3c6b27,'insertion')['filter'](({meta:_0x342b5d})=>_0x342b5d['isOwn']&&!_0x342b5d['isInsideObject']&&!_0x342b5d['isNextTo'])['map'](({suggestion:_0x1c9409})=>_0x1c9409);_0x5ae8ed['unshift'](..._0x2b2279);}const _0x45b895=new Map([[_0x3c6b27,_0x299ded]]);for(const _0x5016f4 of _0x5ae8ed){const _0x5aecdf='attribute'==_0x5016f4['type']?_0x5016f4['data']['oldValue']:void 0x0,_0x34998d=_0x5016f4['getFirstRange'](),_0x33d4f8=Array['from'](_0x45b895['keys']())['find'](_0x55663b=>_0x55663b['isIntersecting'](_0x34998d));if(!_0x33d4f8)continue;const _0x2f9c91=_0x33d4f8['getDifference'](_0x34998d);this['_suggestionsConversion']['isBlockAttribute'](_0x20cb88)&&'insertion'==_0x5016f4['type']&&0x0!=_0x2f9c91['length']||(_0x45b895['delete'](_0x33d4f8),_0x2f9c91['forEach'](_0x2d2764=>{_0x45b895['set'](_0x2d2764,_0x299ded);}),'insertion'!=_0x5016f4['type']&&_0x5aecdf!=_0x59a92f&&_0x45b895['set'](_0x33d4f8['getIntersection'](_0x34998d),_0x5aecdf));}const _0x19af83=[];for(const [_0x8d26f4,_0xbd0150]of _0x45b895){const _0x155924=_0x533d19(),_0x538fb5={'key':_0x20cb88,'oldValue':_0xbd0150,'newValue':_0x59a92f};_0x20cb88['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':_0x20cb88});const _0x54dbf4=('attribute:'+_0x20cb88+'|'+fn({'newValue':_0x59a92f}))['substring'](0x0,0x3c),_0x3effb1=this['_setSuggestionData']({'id':_0x155924,'type':_0x54dbf4,'data':_0x538fb5,'createdAt':new Date(),'authorId':_0xbe880b,'attributes':_0x2cb051});_0x19af83['push'](_0x3effb1),this['_addSuggestionMarker'](_0x54dbf4,_0x155924,_0xbe880b,_0x8d26f4);}return _0x19af83;}enableDefaultAttributesIntegration(_0x55e2e8){this['enableCommand'](_0x55e2e8,(_0x520608,..._0x5c6d75)=>{this['recordAttributeChanges'](()=>{_0x520608(..._0x5c6d75);});});}startTrackingSession(_0x4a2065){return this['_trackingSessionId']=void 0x0!==_0x4a2065?_0x4a2065:_0x533d19(),this['_trackingSessionId'];}_getAttributeKey(_0x203a26){return'attribute'==_0x203a26['type']?Cn(_0x203a26['subType']):null;}_applyOperationsAsSuggestions(_0x1e5fc7){if(0x0==_0x1e5fc7['length'])return;const _0x54eae2=this['editor'],_0x50cdf3=[],_0x46a40b=_0x596c88=>{const _0x19e0f2=_0x596c88['_aiSource'];return _0x19e0f2?{'@ai':{'type':_0x19e0f2}}:{};},_0x359460=(_0x32df9e,_0x5700d3,_0x35de43,_0x55b3ad)=>{const _0x2576ec=new Set(_0x55b3ad['flatMap'](_0x26f692=>_0x26f692['getMarkerNames']()));let _0x39557=!0x1;for(let _0x1d572e=_0x5700d3;_0x1d572e<_0x32df9e['operations']['length'];_0x1d572e++){const _0x3d6ede=_0x32df9e['operations'][_0x1d572e];if('marker'==_0x3d6ede['type']){if(!_0x2576ec['has'](_0x3d6ede['name']))continue;_0x39557=!0x0;}_0x3d6ede['_aiSource']=_0x35de43;}return _0x39557;};_0x54eae2['model']['change'](_0x2f963a=>{for(let _0x3fecc0=0x0;_0x3fecc0<_0x1e5fc7['length'];_0x3fecc0++){const _0x259e01=_0x1e5fc7[_0x3fecc0],_0x2ee5dc=_0x259e01['_aiSource'];if(_0x259e01['baseVersion']=_0x54eae2['model']['document']['version'],_0x259e01['isDocumentOperation']=!0x0,_0x527118(_0x259e01))continue;if(an(_0x259e01)){const _0x4359bc=_0x1b5e21(_0x259e01['newRange'],_0x54eae2['model']);_0x50cdf3['unshift']({'range':at['fromRange'](_0x4359bc),'operation':_0x259e01});continue;}const _0x1ebb35=_0x2f963a['batch']['operations']['length']+0x1;let _0x3ab392=[];switch(_0x259e01['type']){case'rename':{const _0x523f76=_0x259e01['oldName'],_0x5c281d=_0x259e01['newName'];if(_0x523f76==_0x5c281d)break;_0x2f963a['batch']['addOperation'](_0x259e01),_0x54eae2['model']['applyOperation'](_0x259e01);const _0x597605='$elementName',_0x220929=_0x259e01['position'],_0x160e52=_0x54eae2['model']['createRange'](_0x220929,_0x54eae2['model']['createPositionAt'](_0x220929['nodeAfter'],'end'));_0x3ab392=this['markAttributeChange'](_0x160e52,_0x597605,_0x523f76,_0x5c281d,{..._0x46a40b(_0x259e01),'groupId':_0x533d19()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x566913=_0x259e01['oldValue'],_0x4b7734=_0x259e01['newValue'];if(_0x566913==_0x4b7734)break;_0x2f963a['batch']['addOperation'](_0x259e01),_0x54eae2['model']['applyOperation'](_0x259e01);const _0x2aeeff=_0x259e01['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2aeeff))break;const _0x19d98b=_0x1b5e21(_0x259e01['range'],_0x54eae2['model']);_0x3ab392=this['markAttributeChange'](_0x19d98b,_0x2aeeff,_0x566913,_0x4b7734,{..._0x46a40b(_0x259e01),'groupId':_0x533d19()});break;}case'insert':{if(_0x2f963a['batch']['addOperation'](_0x259e01),_0x54eae2['model']['applyOperation'](_0x259e01),_0x1e5fc7[_0x3fecc0+0x1]&&'move'==_0x1e5fc7[_0x3fecc0+0x1]['type'])break;const _0x3f2ff6=_0x259e01['position'],_0x5930c4=_0x259e01['howMany'],_0x1d6295=_0x1b5e21(_0x54eae2['model']['createRange'](_0x3f2ff6,_0x3f2ff6['getShiftedBy'](_0x5930c4)),_0x54eae2['model']);_0x3ab392=cn(this['markInsertion'](_0x1d6295,null,{..._0x46a40b(_0x259e01)}));break;}case'split':{_0x2f963a['batch']['addOperation'](_0x259e01),_0x54eae2['model']['applyOperation'](_0x259e01);const _0x11aa4e=_0x259e01['splitPosition'],_0x21343e=_0x259e01['moveTargetPosition'],_0x406730=_0x54eae2['model']['createRange'](_0x11aa4e,_0x21343e);_0x3ab392=cn(this['markInsertion'](_0x406730,null,{..._0x46a40b(_0x259e01)}));break;}case'move':case'remove':_0x2f963a['batch']['addOperation'](_0x259e01),_0x54eae2['model']['applyOperation'](_0x259e01);}_0x2ee5dc&&_0x359460(_0x2f963a['batch'],_0x1ebb35,_0x2ee5dc,_0x3ab392)&&delete _0x259e01['_aiSource'];}for(const {range:_0x5ac9c4,operation:_0x2a3f4b}of _0x50cdf3){const _0x37c716=_0x2a3f4b['_aiSource'],_0x11614b=_0x46a40b(_0x2a3f4b),_0x5a6024=_0x2f963a['batch']['operations']['length'];_0x5ac9c4['detach']();const _0x571b4b=this['markDeletion'](_0x5ac9c4,null,{..._0x11614b});_0x37c716&&_0x359460(_0x2f963a['batch'],_0x5a6024,_0x37c716,cn(_0x571b4b));}});}_setSuggestionRange(_0xb59926,_0x3b7af1){const _0x58e224=_0xb59926['getFirstMarker']();this['_model']['change'](_0x129c8a=>{_0x129c8a['updateMarker'](_0x58e224,{'range':_0x3b7af1});});}_addThreadToSuggestion(_0x1dacf5){const _0x476902=_0x1dacf5['id'],_0x353702=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x476902)||this['_commentsRepository']['addCommentThread']({'channelId':_0x353702,'threadId':_0x476902,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c96ff=this['_commentsRepository']['getCommentThread'](_0x476902);_0x4c96ff['unbind']('isRemovable'),_0x4c96ff['isRemovable']=!0x1,_0x1dacf5['commentThread']=_0x4c96ff;}_checkSuggestionCorrectness(_0x58b9ce,_0x161b9b,_0x30db9e,_0x188734){if(_0x58b9ce['type']!=_0x161b9b||_0x58b9ce['subType']!=_0x30db9e||_0x58b9ce['creator']['id']!=_0x188734)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2045ee('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x11149d,_0x44ea3b){const _0x45570c=_0x11149d['getFirstRange']();if(_0x44ea3b['isEqual'](_0x45570c))_0x11149d['removeMarkers']();else{if(_0x45570c['containsRange'](_0x44ea3b)){const _0xd575f7=this['_model']['createPositionAt'](_0x44ea3b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11149d,this['_model']['createRange'](_0x45570c['start'],_0xd575f7));const _0x3ddefd=_0x533d19(),_0x5e6aa7=_0x11149d['creator']['id'],_0x5baea1=_0x11149d['type']+':'+_0x11149d['subType'];this['_setSuggestionData']({'id':_0x3ddefd,'type':_0x5baea1,'createdAt':new Date(),'authorId':_0x5e6aa7,'data':_0x11149d['data'],'attributes':_0x11149d['attributes']});const _0x381966=this['_model']['createPositionAt'](_0x44ea3b['end']['parent'],'after'),_0x1447f3=this['_model']['createRange'](_0x381966,_0x45570c['end']);this['_addSuggestionMarker'](_0x5baea1,_0x3ddefd,_0x5e6aa7,_0x1447f3);}else{if(_0x45570c['containsPosition'](_0x44ea3b['start'])){const _0x3f26cc=this['_model']['createPositionAt'](_0x44ea3b['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11149d,this['_model']['createRange'](_0x45570c['start'],_0x3f26cc));}else{const _0x2ccb4b=this['_model']['createPositionAt'](_0x44ea3b['end']['parent'],'after');this['_setSuggestionRange'](_0x11149d,this['_model']['createRange'](_0x2ccb4b,_0x45570c['end']));}}}}_rangeIsInLocalUserInsertion(_0x292636){for(const {suggestion:_0x35f51c,meta:_0x90e9a4}of this['_findSuggestions'](_0x292636,'insertion')){if(!_0x90e9a4['isOwn'])continue;const _0x517e5f=_0x35f51c['getRanges']();for(const _0x2aaae9 of _0x517e5f)if(!_0x292636['getDifference'](_0x2aaae9)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x21c685){return this['editor']['plugins']['get']('Users')['getUser'](_0x21c685);}_getExternalAuthor(_0xa96f18){const _0x413e8d=this['editor']['plugins']['get']('Users'),_0x1d767b=_0x2acf8c('external:'+_0xa96f18),_0x34f8cf=_0x413e8d['getUser'](_0x1d767b);return _0x34f8cf||_0x413e8d['addUser']({'id':_0x1d767b,'name':_0xa96f18});}_createSuggestion(_0x324ba4,_0x1b4087,_0x56086b,_0x7bcb50,_0x2397d0,_0x1d65ae){const _0x155ec0=this['_getAuthorFromId'](_0x7bcb50);if(!_0x155ec0)throw new _0x2045ee('track-changes-user-not-found',this,{'authorId':_0x7bcb50,'suggestionId':_0x56086b});const _0xb6263e=this['_suggestionFactory']['buildSuggestion'](_0x324ba4,_0x1b4087,_0x56086b,_0x155ec0,_0x2397d0,_0xee6b0a=>{this['_updateSuggestionData'](_0x56086b,{'attributes':_0xee6b0a});const _0x255e1d=this['getSuggestion'](_0x56086b);this['_joinWithAdjacentSuggestions'](new Set([_0x255e1d])),this['_refreshSuggestionsChain'](new Set([_0x255e1d]));},_0x1d65ae);return this['listenTo'](_0xb6263e,'accept',()=>{this['_updateSuggestionData'](_0x56086b,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xb6263e,'discard',()=>{this['_updateSuggestionData'](_0x56086b,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56086b,_0xb6263e),this['_suggestionState']['set'](_0xb6263e,'notReady'),_0xb6263e;}_breakSuggestionMarker(_0x787b85,_0x29ee6d,_0x9482ef){const _0x34be55=_0x787b85['getFirstRange'](),_0xfeb0d4=_0x34be55['start'],_0x291564=_0x34be55['end'];this['_setSuggestionRange'](_0x787b85,this['_model']['createRange'](_0xfeb0d4,_0x29ee6d));const _0x1f8ac6=_0x533d19(),_0x5017c6=_0x787b85['creator']['id'],_0x525cfa=_0x787b85['type']+(_0x787b85['subType']?':'+_0x787b85['subType']:'');this['_setSuggestionData']({'id':_0x1f8ac6,'type':_0x525cfa,'createdAt':new Date(),'authorId':_0x5017c6,'originalSuggestionId':_0x787b85['_originalSuggestionId']||_0x787b85['id'],'attributes':_0x787b85['attributes'],'data':_0x787b85['data']});const _0x192564=this['_getAttributeKey'](_0x787b85);('formatBlock'==_0x787b85['type']||_0x192564&&this['_suggestionsConversion']['isBlockAttribute'](_0x192564))&&(_0x9482ef=this['_model']['createPositionBefore'](_0x9482ef['parent'])),this['_addSuggestionMarker'](_0x525cfa,_0x1f8ac6,_0x5017c6,this['_model']['createRange'](_0x9482ef,_0x291564));}_findSuggestions(_0x3a3f80,_0x46ba85=null){const _0x15f976=[],_0x122309=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3a3f80)||(_0x3a3f80=[_0x3a3f80]);for(const _0x5c5694 of this['getSuggestions']()){if(!_0x5c5694['isInContent'])continue;if(_0x46ba85&&_0x5c5694['type']!=_0x46ba85)continue;let _0x3b2289=!0x1;for(const _0x292230 of _0x5c5694['getRanges']()){for(const _0x11f154 of _0x3a3f80){const _0xaf8df9=_0x11f154['start']['isEqual'](_0x292230['end'])||_0x11f154['end']['isEqual'](_0x292230['start']);if(_0xaf8df9||_0x11f154['getIntersection'](_0x292230)){const _0x19ebd8=_0x11f154['containsRange'](_0x292230)&&dn(this['_model']['schema'],_0x292230['start'],_0x11f154),_0x5b6423=_0x292230['containsRange'](_0x11f154)&&dn(this['_model']['schema'],_0x11f154['start'],_0x292230);_0x15f976['push']({'suggestion':_0x5c5694,'meta':{'isOwn':_0x122309==_0x5c5694['author'],'isNextTo':_0xaf8df9,'isInsideObject':_0x19ebd8,'containsRangeInObject':_0x5b6423}}),_0x3b2289=!0x0;break;}}if(_0x3b2289)break;}}return _0x15f976;}_addSuggestionMarker(_0x476895,_0x3c1512,_0x2664a6,_0x40525b,_0x4364a8){this['_model']['change'](_0x51e4bc=>{let _0x33ff3e='suggestion:'+_0x476895+':'+_0x3c1512+':'+_0x2664a6;_0x4364a8&&(_0x33ff3e=_0x33ff3e+':'+_0x4364a8),_0x51e4bc['addMarker'](_0x33ff3e,{'range':_0x40525b,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x24579a){const _0x5cd9c1=_0x24579a['previous'],_0x4bb12b=_0x24579a['next'];_0x24579a['previous']=null,_0x24579a['next']=null,null!=_0x5cd9c1&&_0x5cd9c1['next']==_0x24579a&&(_0x5cd9c1['next']=_0x4bb12b),null!=_0x4bb12b&&_0x4bb12b['previous']==_0x24579a&&(_0x4bb12b['previous']=_0x5cd9c1),'ready'==this['_suggestionState']['get'](_0x24579a)&&(this['_suggestionState']['set'](_0x24579a,'removed'),this['fire']('suggestionUnloaded',_0x24579a,_0x5cd9c1,_0x4bb12b));}_setSuggestionData(_0x2ed096){const _0x31cd60=_0x2ed096['id'],_0x520e1d=this['addSuggestionData'](_0x2ed096);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x45827c=this['editor']['plugins']['get']('PendingActions'),_0x5ca571=_0x520e1d['hasComments'],_0x23c1b9=_0x520e1d['subType']?_0x520e1d['type']+':'+_0x520e1d['subType']:_0x520e1d['type'],_0x5397b2=this['editor']['locale'],_0x58ab80=_0x45827c['add'](wt(_0x5397b2,'PENDING_ACTION_SUGGESTION')),_0x57935e={'id':_0x31cd60,'type':_0x23c1b9,'hasComments':_0x5ca571,'data':_0x2ed096['data']||null,'originalSuggestionId':_0x2ed096['originalSuggestionId']||null,'attributes':_0x520e1d['attributes']};this['_adapter']['addSuggestion'](_0x57935e)['then'](_0x1fcc35=>{_0x520e1d['_saved']=!0x0,_0x45827c['remove'](_0x58ab80),_0x1fcc35&&_0x1fcc35['createdAt']&&(this['_suggestions']['get'](_0x31cd60)['createdAt']=_0x1fcc35['createdAt']);})['catch'](_0x162701=>{throw _0x2e4624('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x520e1d['discard']();}),_0x520e1d['stopListening'](),this['_suggestions']['delete'](_0x520e1d['id']),this['_suggestionState']['delete'](_0x520e1d),_0x162701;});}return _0x520e1d;}_updateSuggestionData(_0xe9a6c7,_0x525f9e){const _0x3de00f=this['editor']['plugins']['get']('PendingActions'),_0x2e7e59=this['getSuggestion'](_0xe9a6c7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2e7e59['_saved']){const _0x378751=_0x3de00f['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xe9a6c7,_0x525f9e)['then'](()=>{_0x3de00f['remove'](_0x378751);});}else _0x2e7e59['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xe9a6c7,_0x525f9e);});}}_getSuggestionData(_0xb93abf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2045ee('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xb93abf);}_handleNewSuggestionMarker(_0x3c7942){const {id:_0x40ec04,type:_0x540f4e,subType:_0x1eda6e,authorId:_0x237bfb}=nt(_0x3c7942),_0x1ffe44=this['_suggestions']['get'](_0x40ec04)||this['_createSuggestion'](_0x540f4e,_0x1eda6e,_0x40ec04,_0x237bfb,{});switch(this['_checkSuggestionCorrectness'](_0x1ffe44,_0x540f4e,_0x1eda6e,_0x237bfb),this['_suggestionState']['get'](_0x1ffe44)){case'notReady':this['_getSuggestionData'](_0x40ec04)['then'](_0x3aa574=>{let _0x143f63=Promise['resolve']();_0x3aa574['hasComments']&&(_0x143f63=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x40ec04})),_0x143f63['then'](()=>{this['addSuggestionData'](_0x3aa574)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ffe44,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x40ec04,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ffe44,'ready'),this['fire']('suggestionLoaded',_0x1ffe44);break;case'ready':this['fire']('suggestionChanged',_0x1ffe44);}return _0x1ffe44['addMarkerName'](_0x3c7942),_0x1ffe44;}_refreshSuggestionsChain(_0x35e466){const _0x2f0e5e=Array['from'](_0x35e466),_0x9370ad=_0x2f0e5e['filter'](_0x3478c4=>'attribute'==_0x3478c4['type']);this['_refreshAttributeSuggestionsChain'](_0x9370ad);const _0x58ee27=_0x2f0e5e['filter'](_0x260947=>!_0x260947['isMultiRange']&&'attribute'!=_0x260947['type']),_0x2c07dc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x377eb8=>!_0x377eb8['isMultiRange']&&'attribute'!=_0x377eb8['type']),_0x412e5e=_0x2c07dc['filter'](_0x102f34=>!_0x35e466['has'](_0x102f34)),_0xa79ec4=new Map(_0x2c07dc['map'](_0x347d39=>[_0x347d39,this['_suggestionFactory']['getSuggestionCallback'](_0x347d39['type'],_0x347d39['subType'],'chain')])),_0x4cb913=new Map(_0x2c07dc['map'](_0x371ce9=>[_0x371ce9,_0x371ce9['getFirstRange']()])),_0x575dd3=new Set(),_0x569fd9=new Set();for(let _0x1e76db=0x0;_0x1e76db<_0x58ee27['length'];_0x1e76db++)_0x48415c(_0x58ee27[_0x1e76db],_0x58ee27,_0x1e76db+0x1);for(let _0x571e48=0x0;_0x571e48<_0x58ee27['length'];_0x571e48++)_0x48415c(_0x58ee27[_0x571e48],_0x412e5e,0x0);const _0x3e7978=new Set();for(let _0x580e46=0x0;_0x580e46<_0x58ee27['length'];_0x580e46++){const _0x2df7e0=_0x58ee27[_0x580e46];!_0x569fd9['has'](_0x2df7e0)&&_0x2df7e0['previous']&&(_0x3e7978['add'](_0x2df7e0['previous']),_0x2df7e0['previous']['next']===_0x2df7e0&&(_0x2df7e0['previous']['next']=null),_0x2df7e0['previous']=null),!_0x575dd3['has'](_0x2df7e0)&&_0x2df7e0['next']&&(_0x3e7978['add'](_0x2df7e0['next']),_0x2df7e0['next']['previous']===_0x2df7e0&&(_0x2df7e0['next']['previous']=null),_0x2df7e0['next']=null);}function _0x48415c(_0x27b738,_0x42ef64,_0x349fa0){for(let _0x5d11d5=_0x349fa0;_0x5d11d5<_0x42ef64['length'];_0x5d11d5++){const _0x4c408d=_0x15327b(_0x27b738,_0x42ef64[_0x5d11d5]);_0x4c408d&&(_0x4c408d[0x0]['next']=_0x4c408d[0x1],_0x4c408d[0x1]['previous']=_0x4c408d[0x0],_0x575dd3['add'](_0x4c408d[0x0]),_0x569fd9['add'](_0x4c408d[0x1]));}}function _0x15327b(_0xf61839,_0x2c0082){if(_0xf61839['author']['id']!==_0x2c0082['author']['id'])return null;const _0xcf08fa=_0xa79ec4['get'](_0xf61839)(_0xf61839,_0x2c0082,_0x4cb913['get'](_0xf61839),_0x4cb913['get'](_0x2c0082));return _0xcf08fa&&_0xa79ec4['get'](_0x2c0082)(_0xf61839,_0x2c0082,_0x4cb913['get'](_0xf61839),_0x4cb913['get'](_0x2c0082))?_0xcf08fa[0x1]['commentThread']&&_0xcf08fa[0x1]['commentThread']['length']?null:_0xcf08fa:null;}_0x3e7978['size']&&this['_refreshSuggestionsChain'](_0x3e7978);}_refreshAttributeSuggestionsChain(_0x4fdf8a){if(0x0==_0x4fdf8a['length'])return;const _0x597dd3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x187225=>'attribute'==_0x187225['type']&&_0x187225['_isDataLoaded']),_0x56f83d=[],_0x4eed65=new Map();for(const _0x446411 of _0x597dd3){const _0x27448b=_0x2acf8c(_0x446411['attributes']);_0x4eed65['has'](_0x27448b)||(_0x4eed65['set'](_0x27448b,_0x56f83d['length']),_0x56f83d['push']([])),_0x56f83d[_0x4eed65['get'](_0x27448b)]['push'](_0x446411);}!(function(){_0x56f83d['sort']((_0x550a78,_0x33e164)=>{const _0x3662a8=_0x550a78[0x0]['createdAt'],_0x2ccc60=_0x33e164[0x0]['createdAt'];return _0x3662a8==_0x2ccc60?_0x550a78[0x0]['attributes']['groupId']<_0x33e164[0x0]['attributes']['groupId']?-0x1:0x1:_0x3662a8<_0x2ccc60?-0x1:0x1;});for(const _0x1730df of _0x56f83d)_0x1730df['sort']((_0x4625ae,_0x5a5dca)=>_0x4625ae['id']<_0x5a5dca['id']?-0x1:0x1);}());for(let _0x14ce3f=0x0;_0x14ce3f<_0x56f83d['length'];_0x14ce3f++){if(0x0==_0x56f83d[_0x14ce3f]['length'])continue;const _0x2d64f6=[];for(let _0x1a8b85=_0x14ce3f+0x1;_0x1a8b85<_0x56f83d['length'];_0x1a8b85++)0x0!=_0x56f83d[_0x1a8b85]['length']&&_0x589dd4(_0x56f83d[_0x14ce3f],_0x56f83d[_0x1a8b85])&&_0x2d64f6['push'](_0x1a8b85);for(const _0x320ca6 of _0x2d64f6)_0x56f83d[_0x14ce3f]=_0x56f83d[_0x14ce3f]['concat'](_0x56f83d[_0x320ca6]),_0x56f83d[_0x320ca6]=[];}for(const _0x1d0ee8 of _0x56f83d)for(let _0x38ee2a=0x0;_0x38ee2a<_0x1d0ee8['length'];_0x38ee2a++){const _0x2e15c4=_0x1d0ee8[_0x38ee2a+0x1]||null;_0x1d0ee8[_0x38ee2a]['next']!==_0x2e15c4&&(_0x1d0ee8[_0x38ee2a]['next']=_0x2e15c4);}for(const _0x1307c6 of _0x56f83d)for(let _0x56f28e=0x0;_0x56f28e<_0x1307c6['length'];_0x56f28e++){const _0x161054=_0x1307c6[_0x56f28e-0x1]||null;_0x1307c6[_0x56f28e]['previous']!==_0x161054&&(_0x1307c6[_0x56f28e]['previous']=_0x161054);}function _0x589dd4(_0x1f02e0,_0x1dddbb){if(_0x1f02e0[0x0]['attributes']['groupId']!==_0x1dddbb[0x0]['attributes']['groupId']&&_0x1f02e0[0x0]['author']!==_0x1dddbb[0x0]['author'])return!0x1;if(!function(_0x481b88,_0x4ae45b){return!_0x481b88['hasComments']&&!_0x4ae45b['hasComments']||(!_0x481b88['hasComments']||!_0x4ae45b['hasComments'])&&(!!(_0x481b88['hasComments']&&_0x4ae45b['createdAt']<_0x481b88['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x4ae45b['hasComments']&&_0x481b88['createdAt']<_0x4ae45b['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1f02e0[0x0],_0x1dddbb[0x0]))return!0x1;const _0x592c25=dt(_0x1f02e0[0x0]['attributes'],['groupId','trackingSessionId']),_0xa8c86f=dt(_0x1dddbb[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x592c25,_0xa8c86f)&&(_0x1f02e0[0x0]['attributes']['groupId']==_0x1dddbb[0x0]['attributes']['groupId']||_0x1f02e0[0x0]['attributes']['trackingSessionId']===_0x1dddbb[0x0]['attributes']['trackingSessionId']&&(!!_0x1f02e0['every'](_0x313d54=>_0x1dddbb['some'](_0x4346c9=>_0x313d54['getFirstRange']()['isEqual'](_0x4346c9['getFirstRange']())))&&_0x1dddbb['every'](_0x3f1334=>_0x1f02e0['some'](_0x9d135c=>_0x3f1334['getFirstRange']()['isEqual'](_0x9d135c['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xbb804){const _0x573b4a=Array['from'](_0xbb804),_0x37561a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2d0e19=_0x37561a['filter'](_0x271bea=>!_0xbb804['has'](_0x271bea)),_0x249f6b=new Map(_0x573b4a['map'](_0x320052=>[_0x320052,this['_suggestionFactory']['getSuggestionCallback'](_0x320052['type'],_0x320052['subType'],'join')])),_0xc070a1=new Map(_0x37561a['map'](_0x4aa557=>[_0x4aa557,_0x4aa557['getRanges']()]));for(let _0x27402f=0x0;_0x27402f<_0x573b4a['length'];_0x27402f++)if(_0x3b4f48(this,_0x573b4a[_0x27402f],_0x573b4a,_0x27402f+0x1))return!0x0;for(let _0x51f574=0x0;_0x51f574<_0x573b4a['length'];_0x51f574++)if(_0x3b4f48(this,_0x573b4a[_0x51f574],_0x2d0e19,0x0))return!0x0;return!0x1;function _0x3b4f48(_0x78e4c3,_0x1b2fb2,_0x541fb4,_0x45b904){for(let _0x1b85d8=_0x45b904;_0x1b85d8<_0x541fb4['length'];_0x1b85d8++){const _0x59cfbf=_0x541fb4[_0x1b85d8];if(_0x59cfbf['type']!==_0x1b2fb2['type']||_0x59cfbf['author']['id']!==_0x1b2fb2['author']['id']||_0x59cfbf['subType']!==_0x1b2fb2['subType'])continue;if(!In(_0x1b2fb2,_0x59cfbf))continue;if('attribute'==_0x1b2fb2['type']&&_0x1b2fb2['data']['oldValue']!=_0x59cfbf['data']['oldValue'])continue;if('attribute'==_0x1b2fb2['type']&&_0x78e4c3['_suggestionsConversion']['isBlockAttribute'](_0x1b2fb2['data']['key']))continue;if('formatBlock'==_0x1b2fb2['type']){const _0x53833d=_0x78e4c3['editor']['model'],_0x11cb12=_0x1b2fb2['getContainedElement']();if(_0x11cb12&&(_0x53833d['schema']['isObject'](_0x11cb12)||_0x53833d['schema']['isLimit'](_0x11cb12)))continue;}const _0x4bcde3=_0x249f6b['get'](_0x1b2fb2),_0x42a75e=_0xc070a1['get'](_0x1b2fb2),_0x444168=_0xc070a1['get'](_0x59cfbf),_0x8fb1d3=_0x1b2fb2['commentThread']&&_0x1b2fb2['commentThread']['length'],_0x35a1c2=_0x59cfbf['commentThread']&&_0x59cfbf['commentThread']['length'];if(!_0x8fb1d3&&_0x4bcde3(_0x444168,_0x42a75e))return _0x78e4c3['_joinSuggestions'](_0x59cfbf,_0x1b2fb2),_0xc070a1['delete'](_0x1b2fb2),!0x0;if(!_0x35a1c2&&_0x4bcde3(_0x42a75e,_0x444168))return _0x78e4c3['_joinSuggestions'](_0x1b2fb2,_0x59cfbf),_0xc070a1['delete'](_0x59cfbf),!0x0;}return!0x1;}}_joinSuggestions(_0x72c921,_0x477c92){if(_0x72c921['isMultiRange']){for(const _0x45a142 of _0x477c92['getRanges']())_0x72c921['addRange'](_0x45a142);}else{const _0x34de84=_0x477c92['getFirstRange']()['end'];this['_setSuggestionRange'](_0x72c921,this['_model']['createRange'](_0x72c921['getFirstRange']()['start'],_0x34de84));}_0x477c92['removeMarkers']();}_getMarkerAnnouncementText(_0x244db2,_0x69a277,_0x2e4327){const _0x1b3b82=_0x244db2['startsWith']('format')||_0x244db2['startsWith']('attribute')?'FORMATTING':_0x244db2['toUpperCase']();return wt(this['editor']['locale'],_0x69a277+'_'+_0x1b3b82+'_SUGGESTION_ANNOUNCEMENT',_0x2e4327);}_initAriaMarkerChangeAnnouncements(){const _0x420e4a=this['editor'];if(!_0x420e4a['ui'])return;const {ariaLiveAnnouncer:_0x353fa1}=_0x420e4a['ui'];it(this['_model'],({left:_0x1aa5d1,entered:_0x52a3ba})=>{for(const _0x37e639 of _0x1aa5d1){const {group:_0x464030,type:_0x210d27}=nt(_0x37e639['name']);if('suggestion'===_0x464030){_0x353fa1['announce'](this['_getMarkerAnnouncementText'](_0x210d27,'LEAVE'));break;}}for(const _0x5050eb of _0x52a3ba){const {group:_0x4302b2,type:_0x2b05bd}=nt(_0x5050eb['name']);if('suggestion'===_0x4302b2){_0x353fa1['announce'](this['_getMarkerAnnouncementText'](_0x2b05bd,'ENTER',_0x5cb505(_0x302c59)));break;}}});}_processAttributeChanges(_0x201489){if(this['_recordAttributeSuggestions'])return!0x1;const _0x81d0a=this['editor'],_0x1f1b08=_0x81d0a['model']['document']['differ']['getChanges']();if(0x0==_0x1f1b08['length'])return!0x1;const _0x2e35de=[],_0x45b137=_0x1f1b08['filter'](_0x2bfefb=>'attribute'==_0x2bfefb['type']),_0x425808=_0x1f1b08['filter'](_0x1c3ad9=>'insert'==_0x1c3ad9['type']&&'$text'!=_0x1c3ad9['name']),_0x3735a2=_0x1f1b08['filter'](_0x256f8f=>'remove'==_0x256f8f['type']&&'$text'!=_0x256f8f['name']);for(const _0x48812a of _0x45b137)_0x2e35de['push']({'key':_0x48812a['attributeKey'],'newValue':_0x48812a['attributeNewValue'],'oldValue':_0x48812a['attributeOldValue'],'range':_n(_0x48812a['range'],_0x81d0a['model'])});for(const _0x508b20 of _0x425808){const _0x232bd1=_0x3735a2['find'](_0x590172=>_0x590172['position']['isEqual'](_0x508b20['position']));_0x232bd1&&_0x2e35de['push']({'key':on,'newValue':_0x508b20['name'],'oldValue':_0x232bd1['name'],'range':_0x81d0a['model']['createRangeOn'](_0x508b20['position']['nodeAfter'])});}return 0x0!=_0x2e35de['length']&&this['_reduceExistingSuggestions'](_0x201489,_0x2e35de);}_processAttributeSuggestions(_0x1bfc44){let _0x5c0419=!0x1;const _0x3f29e1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x181429=>_0x181429['data']['newRange']&&_0x181429['name']['startsWith']('suggestion:attribute:'));for(const _0x1529f2 of _0x3f29e1){const {subType:_0xcbb354,id:_0x5f32c7}=nt(_0x1529f2['name']),_0x917310=_0xcbb354['split']('|')[0x0];for(const _0x265e9e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x265e9e['id']!=_0x5f32c7&&'attribute'==_0x265e9e['type']&&_0x265e9e['data']&&_0x265e9e['data']['key']==_0x917310&&_0x265e9e['getFirstRange']()['isIntersecting'](_0x1529f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x265e9e,_0x1529f2['data']['newRange'],_0x1bfc44),_0x5c0419=!0x0);}return _0x5c0419;}recordAttributeChanges(_0x2b7e67){this['_recordAttributeSuggestions']=!0x0,_0x2b7e67();}_reduceExistingSuggestions(_0x29baaa,_0x3dc2b6){if(0x0==_0x3dc2b6['length'])return!0x1;let _0x5d4514=!0x1;for(const _0x699682 of _0x3dc2b6){const _0x3c9519=this['_findSuggestions'](_0x699682['range'],'attribute')['filter'](_0x21bca1=>!_0x21bca1['meta']['isNextTo'])['map'](_0xdec476=>_0xdec476['suggestion']),_0x554f9f=_0x2acf8c({'newValue':_0x699682['newValue']});_0x3c9519['filter'](_0x44a6b2=>{const [_0x550bc9,_0x1f15e8]=_0x44a6b2['subType']['split']('|');return _0x550bc9==_0x699682['key']&&_0x1f15e8!=_0x554f9f;})['forEach'](_0x2024a9=>{this['_reduceSuggestionAttributeRange'](_0x2024a9,_0x699682['range'],_0x29baaa),_0x5d4514=!0x0;});}return _0x5d4514;}_reduceSuggestionAttributeRange(_0x259550,_0x32f613,_0x47da13){const _0x359f44=_0x259550['getFirstRange']()['getDifference'](_0x32f613);0x0!==_0x359f44['length']?0x1!==_0x359f44['length']?this['_breakSuggestionMarker'](_0x259550,_0x32f613['start'],_0x32f613['end']):this['_setSuggestionRange'](_0x259550,_0x359f44[0x0]):_0x47da13['removeMarker'](_0x259550['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4121dd){this['_editor']=_0x4121dd,this['_model']=_0x4121dd['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x2defb0,_0x4f8e6b,_0x408c9f,_0x50e45f,_0x3810f7,_0x3a39e2,_0x8053b2){return new Ot(this['_model'],{'type':_0x2defb0,'subType':_0x4f8e6b,'id':_0x408c9f,'originalSuggestionId':_0x8053b2,'author':_0x50e45f,'creator':_0x50e45f,'attributes':_0x3810f7,'onAttributesChange':_0x3a39e2,'onAccept':(..._0x9c4484)=>this['getSuggestionCallback'](_0x2defb0,_0x4f8e6b,'accept')(..._0x9c4484),'onDiscard':(..._0x4ba464)=>this['getSuggestionCallback'](_0x2defb0,_0x4f8e6b,'discard')(..._0x4ba464)});}registerCustomCallback(_0x6b5b16,_0x1be119,_0x14025c,_0x4420ec){const _0x1b94b7=_0x6b5b16+':'+_0x1be119+':'+_0x14025c;this['_customCallbacks']['set'](_0x1b94b7,_0x4420ec);}getSuggestionCallback(_0x3554f2,_0x2a5087,_0x51b061){const _0x383760=_0x3554f2+':'+_0x2a5087+':'+_0x51b061;return this['_customCallbacks']['get'](_0x383760)||this['_defaultCallbacks']['get'](_0x3554f2+':'+_0x51b061);}_registerDefaultCallbacks(){const _0x19918d=()=>!0x1,_0x4e8f42=_0x4107ee=>{_0x4107ee['sort']((_0x9787a,_0x1d48d7)=>_0x9787a['start']['isBefore'](_0x1d48d7['start'])?0x1:-0x1),this['_model']['change'](_0x269201=>{for(const _0x17a6c2 of _0x4107ee){let _0x323028;_0x323028=_0x17a6c2['end']['isAtEnd']&&_0x17a6c2['end']['parent']==_0x17a6c2['start']['nodeAfter']?_0x269201['createSelection'](_0x17a6c2['start']['nodeAfter'],'on'):_0x269201['createSelection'](_0x17a6c2),this['_model']['deleteContent'](_0x323028,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2eb774=(_0x1073d2,_0x283cd8)=>{_0x283cd8&&this['_model']['change'](_0xa1541d=>{const {commandName:_0x50a559,commandParams:_0x28f57c=[]}=_0x283cd8,_0x5a5717=_0x1073d2['map'](_0x5cf44e=>(hn(_0x5cf44e)&&(_0x5cf44e=this['_model']['createRange'](_0x5cf44e['end'])),_0x5cf44e))['filter'](_0x422680=>'$graveyard'!==_0x422680['root']['rootName']);if(_0x5a5717['length']<0x1)return;const _0x4170dc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x144700=>at['fromRange'](_0x144700));_0xa1541d['setSelection'](_0x5a5717);for(const _0x85c5fd of this['_editor']['commands']['commands']())_0x85c5fd['refresh']();_0x28f57c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50a559,..._0x28f57c);const _0x53a211=_0x4170dc['filter'](_0x6ef358=>'$graveyard'!=_0x6ef358['root']['rootName']);_0x53a211['length']>0x0&&_0xa1541d['setSelection'](_0x53a211);for(const _0x456eb3 of _0x4170dc)_0x456eb3['detach']();});},_0x59a354=(_0x50426c,_0x5aac5b)=>0x1==_0x50426c['length']&&0x1==_0x5aac5b['length']&&_0x50426c[0x0]['end']['isEqual'](_0x5aac5b[0x0]['start']),_0x36c5d4=(_0x58436b,_0xf80a15,_0x1cd816,_0x1c02e4)=>Ln(_0x58436b,_0xf80a15,_0x1cd816,_0x1c02e4)?[_0x58436b,_0xf80a15]:Ln(_0xf80a15,_0x58436b,_0x1c02e4,_0x1cd816)?[_0xf80a15,_0x58436b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19918d),this['_defaultCallbacks']['set']('insertion:discard',_0x4e8f42),this['_defaultCallbacks']['set']('insertion:join',_0x59a354),this['_defaultCallbacks']['set']('insertion:chain',_0x36c5d4),this['_defaultCallbacks']['set']('deletion:accept',_0x4e8f42),this['_defaultCallbacks']['set']('deletion:discard',_0x19918d),this['_defaultCallbacks']['set']('deletion:join',_0x59a354),this['_defaultCallbacks']['set']('deletion:chain',_0x36c5d4),this['_defaultCallbacks']['set']('formatInline:accept',_0x2eb774),this['_defaultCallbacks']['set']('formatInline:discard',_0x19918d),this['_defaultCallbacks']['set']('formatInline:join',_0x59a354),this['_defaultCallbacks']['set']('formatInline:chain',_0x19918d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2eb774),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19918d),this['_defaultCallbacks']['set']('formatBlock:join',_0x59a354),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19918d),this['_defaultCallbacks']['set']('attribute:accept',_0x19918d),this['_defaultCallbacks']['set']('attribute:discard',(_0x7329db,_0x3e1a83)=>{if(!_0x3e1a83)return;const _0x28abec=this['_editor']['plugins']['get'](_0x380d3a);this['_model']['change'](_0x784b72=>{if('$elementName'==_0x3e1a83['key'])for(const _0x2d0c5c of _0x7329db){const _0x261624=_0x2d0c5c['start']['nodeAfter'],_0x6fddaf=_0x3e1a83['oldValue'];_0x784b72['rename'](_0x261624,_0x6fddaf);}else{if(_0x28abec['isBlockAttribute'](_0x3e1a83['key'])){for(const _0x374d09 of _0x7329db)void 0x0!==_0x3e1a83['oldValue']?_0x784b72['setAttribute'](_0x3e1a83['key'],_0x3e1a83['oldValue'],_0x374d09['start']['nodeAfter']):_0x784b72['removeAttribute'](_0x3e1a83['key'],_0x374d09['start']['nodeAfter']);}else{for(const _0x451cc8 of _0x7329db)_0x3e1a83['oldValue']?_0x784b72['setAttribute'](_0x3e1a83['key'],_0x3e1a83['oldValue'],_0x451cc8):_0x784b72['removeAttribute'](_0x3e1a83['key'],_0x451cc8);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x59a354);}};function dn(_0x3159c2,_0x2a84a0,_0x530b78){for(const _0x46f5ed of _0x2a84a0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x46f5ed['root']==_0x46f5ed)return!0x1;if(!_0x530b78['containsItem'](_0x46f5ed))return!0x1;if(_0x3159c2['isObject'](_0x46f5ed)||_0x3159c2['isLimit'](_0x46f5ed))return!0x0;}return!0x1;}function hn(_0x2138eb){return _0x2138eb['end']['parent']==_0x2138eb['start']['nodeAfter']&&_0x2138eb['end']['isAtStart'];}function gn(_0x3ee28e,_0x6418a8,_0x561541,_0x40524e){const _0x57cd84=_0x4cbd78=>!_0x4cbd78['item']['is']('$textProxy')&&!_0x40524e['isObject'](_0x4cbd78['item']),_0x50d104=_0x3ee28e['start']['getLastMatchingPosition'](_0x57cd84),_0x2e56b6=_0x3ee28e['end']['getLastMatchingPosition'](_0x57cd84,{'direction':'backward'});return(!_0x3ee28e['start']['isEqual'](_0x50d104)||!_0x3ee28e['end']['isEqual'](_0x2e56b6))&&(_0x50d104['isBefore'](_0x2e56b6)?_0x561541['updateMarker'](_0x6418a8,{'range':_0x561541['createRange'](_0x50d104,_0x2e56b6)}):_0x561541['removeMarker'](_0x6418a8),!0x0);}function fn(_0x2fe64f){return _0x2acf8c(_0x2fe64f);}function mn(_0x4b40cf){const _0x5100de=_0x4b40cf['start']['nodeAfter'];return _0x5100de&&_0x5100de['is']('element');}function En(_0xd55882){return hn(_0xd55882)||function(_0x3394a7){return _0x3394a7['start']['parent']==_0x3394a7['end']['nodeBefore']&&_0x3394a7['start']['isAtEnd'];}(_0xd55882);}function Tn(_0x4146dd,_0xf7431e){try{const _0x3c9aa2=_0x4146dd['getRange']();for(const _0x27dd9d of _0xf7431e)if(_0x4146dd!==_0x27dd9d&&_0x3c9aa2&&_0x3c9aa2['isIntersecting'](_0x27dd9d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x118476,_0x343eb8){return null==_0x118476['end']['nodeBefore']&&_0x118476['end']['parent']==_0x118476['start']['nodeAfter']?pn(_0x118476['start']['nodeAfter'],_0x343eb8):_0x118476;}function pn(_0x73f32,_0x486f6b){const _0x4a3ff5=_0x486f6b['schema']['isObject'](_0x73f32)||_0x486f6b['schema']['isSelectable'](_0x73f32);return _0x486f6b['createRange'](_0x486f6b['createPositionAt'](_0x73f32,'before'),_0x4a3ff5?_0x486f6b['createPositionAfter'](_0x73f32):_0x486f6b['createPositionAt'](_0x73f32,'end'));}function Ln(_0x40dbda,_0xdb20f8,_0x4602b4,_0x59bcc6){return!!In(_0x40dbda,_0xdb20f8)&&_0x4602b4['end']['isEqual'](_0x59bcc6['start']);}function In(_0x40a10e,_0x106ee7){if(!_0x40a10e['_isDataLoaded']||!_0x106ee7['_isDataLoaded'])return!0x1;const _0x47451b=new Set(Object['keys'](_0x40a10e['attributes'])),_0x23806e=new Set(Object['keys'](_0x106ee7['attributes']));if(_0x47451b['delete']('groupId'),_0x23806e['delete']('groupId'),0x0==_0x47451b['size']&&0x0==_0x23806e['size'])return!0x0;if(_0x47451b['size']!=_0x23806e['size'])return!0x1;const _0x3378c8={..._0x40a10e['attributes']},_0x543416={..._0x106ee7['attributes']};return delete _0x3378c8['groupId'],delete _0x543416['groupId'],JSON['stringify'](_0x3378c8)==JSON['stringify'](_0x543416);}function An(_0x44e539,_0x1b8bfe){const _0x23119e=bn(_0x44e539['attributes']),_0x22f37e=bn(_0x1b8bfe);if(!_0x44e539['_isDataLoaded'])return!0x1;if(!ut(_0x23119e['@ai'],_0x22f37e['@ai']))return!0x1;for(const _0x2f3850 of Object['keys'](_0x22f37e))if(!ut(_0x23119e[_0x2f3850],_0x22f37e[_0x2f3850]))return!0x1;return!0x0;}function bn(_0xc1027e){const _0x33d0bc=Object['assign']({},_0xc1027e);return delete _0x33d0bc['skipNestingCheck'],delete _0x33d0bc['tablePasteChainId'],_0x33d0bc;}function Cn(_0x41c73b){return _0x41c73b['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0xee488e();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x20832a,_0x4db11b,_0x19f0f2,_0x3ed016){super(),this['model']=_0x4db11b,this['view']=_0x19f0f2,this['commentThreadController']=_0x3ed016,this['_editor']=_0x20832a,this['_acceptCommand']=_0x20832a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x20832a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3c2bc4,_0x3a6b34)=>_0x3c2bc4||_0x3a6b34),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xda739d=>_0xda739d&&this['_editor']['model']['canEditAt'](_0x4db11b['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x33b7b8=>_0x33b7b8&&this['_editor']['model']['canEditAt'](_0x4db11b['getRanges']())),this['_pendingAction']=null,_0x19f0f2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x19f0f2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x19f0f2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x19f0f2,'change:isDirty',()=>{_0x19f0f2['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 _0x15a162=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x15a162);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x499950{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x292c8b,_0x5ebcc0,_0x3ecf6c,_0x267dd2){super(_0x292c8b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x341bca(_0x292c8b,wt(_0x292c8b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5ebcc0['authoredAt']),this['bind']('authoredAt')['to'](_0x5ebcc0),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',_0x5ebcc0,'authoredAt',this,'descriptionParts',(_0x28322a,_0x159627,_0x4b8a3)=>{const _0x225833=_0x4b8a3['map'](_0x16e6d7=>At(_0x16e6d7['content']))['join']('.\x20')+'.',_0x28c7c0=_0x5ebcc0['aiSource']&&'author'===_0x267dd2['showAISource']?_0x267dd2['aiAuthor']['name']:_0x5ebcc0['author']['name'],_0x227354=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28322a-0x1,_0x28c7c0,_0x159627?_0x267dd2['formatDateTime'](_0x159627):'',new DOMParser()['parseFromString'](_0x309e7a(_0x225833),'text/html')['body']['textContent']]);return _0x5ebcc0['aiSource']&&'pill'===_0x267dd2['showAISource']?_0x227354+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x227354;}),this['focusables']=new _0x3181f9(),this['focusTracker']=new _0x3ebf15(),this['keystrokes']=new _0x5e5103(),this['focusCycler']=new _0x4d227a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5acc2a=>_0x5acc2a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5ebcc0,this['_localUser']=_0x3ecf6c,this['_config']=_0x267dd2,_0x267dd2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x13cc95}=this['_config'];this['commentsListView']=new _0x13cc95(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',_0x98a5e6=>_0x98a5e6+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1e3317,_0x15a92d)=>_0x1e3317||!!_0x15a92d);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x2e2d3f}=this['_config'],_0x225e3f=new _0x2e2d3f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x510207=_0x225e3f['commentInputView'];return _0x225e3f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x510207,'value',(_0x5dd165,_0x292e5a,_0x40c94e)=>!!_0x40c94e||_0x5dd165&&!_0x292e5a),_0x510207['on']('submit',(_0x478517,_0xc139f2)=>{this['fire']('addComment',_0xc139f2),_0x510207['editor']['setData']('');}),_0x510207['on']('cancel',()=>this['focus']()),_0x510207['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x225e3f;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x5a04de,_0x4d709b,_0x2c4e25,_0x4d78db){super(_0x5a04de,_0x4d709b,_0x2c4e25,_0x4d78db),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40314e=>_0x40314e&&_0x40314e[0x0]?_0x40314e[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xcb4fac,_0x5767f4)=>{let _0x359b7e='';for(const _0x370e23 of _0xcb4fac)_0x359b7e+='<p>'+At(_0x370e23['content'],_0x370e23['color'])+'</p>';return _0x5767f4?_0x359b7e:st(_0x359b7e,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d78db['SuggestionView'](_0x5a04de,_0x4d709b,{'formatDateTime':_0x4d78db['formatDateTime'],'showAISource':_0x4d78db['showAISource'],'aiAuthor':_0x4d78db['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',_0x3b8a52=>!!_0x3b8a52||wt(_0x5a04de,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x4a767d=>!!_0x4a767d||wt(_0x5a04de,'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 _0x2e83ae=this['bindTemplate'],_0x4c56cb=[this['suggestionView']];return this['commentsListView']&&_0x4c56cb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c56cb['push'](this['commentThreadInputView']),_0x4c56cb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e83ae['if']('isActive','ck-suggestion-wrapper--active'),_0x2e83ae['to']('type',_0x1ab5f8=>'ck-suggestion-'+_0x1ab5f8),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':_0x2e83ae['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c56cb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Sn=class extends _0x499950{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x335bac,_0x1bd7bf,_0xc3ed25){super(_0x335bac),this['_model']=_0x1bd7bf,this['_config']=_0xc3ed25,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1bd7bf),this['acceptButton']=this['_createButton'](wt(_0x335bac,'Accept\x20suggestion'),_0x444908,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x335bac,'Discard\x20suggestion'),_0x115f4d,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x4a7cf9=!!_0x1bd7bf['aiSource']&&'author'===_0xc3ed25['showAISource'],_0x942e47=_0x4a7cf9?this['_createAIUser'](_0xc3ed25['aiAuthor']):_0x1bd7bf['author'],_0x3db7d5=_0x4a7cf9&&!_0xc3ed25['aiAuthor']['avatar']?_0x3cdfda:void 0x0;this['userView']=new _0x3f6be0(_0x335bac,_0x942e47,this['getUserViewNotificationText'](),_0x3db7d5),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3181f9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3ebf15(),this['keystrokes']=new _0x5e5103(),this['focusCycler']=new _0x4d227a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1d7b43=>_0x1d7b43['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2942d9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2942d9['innerHTML']=_0x309e7a(this['description']),this['on']('change:description',(_0x14c76b,_0x583a65,_0x1eac82)=>{_0x2942d9['innerHTML']=_0x309e7a(_0x1eac82);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x59ae59=this['bindTemplate'],_0x5a1bab=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x59ae59['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x59ae59['to']('authoredAt',_0x463a7e=>this['_config']['formatDateTime'](_0x463a7e))}]}]},{'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']&&_0x5a1bab['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x556342=new _0x1bc2fa(this['locale']);_0x556342['set']({'icon':_0x32a54f,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x5a1bab['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x556342]});}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':_0x5a1bab}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x520fa2){return new _0x84f839({'id':'ck-ai-author','name':_0x520fa2['name'],'avatar':_0x520fa2['avatar'],'color':new _0x1e1f37(0x0)});}_createButton(_0x318947,_0x55e77d,_0x387582,_0x381644,_0xb1cb11){const _0x43ee5f=new _0x521ab1(this['locale']);return _0x43ee5f['set']({'label':_0x318947,'icon':_0x55e77d,'tooltip':!0x0,'tooltipPosition':_0xb1cb11}),_0x43ee5f['extendTemplate']({'attributes':{'class':_0x387582}}),_0x43ee5f['on']('execute',()=>{this['fire'](_0x381644,this['_model']['id']);}),_0x43ee5f;}_setupKeyboardNavigation(){const _0x4e02b0=this['element'];this['keystrokes']['listenTo'](_0x4e02b0);for(const _0x8f8e3e of this['focusables'])this['focusTracker']['add'](_0x8f8e3e['element']),this['keystrokes']['listenTo'](_0x8f8e3e['element']);this['keystrokes']['set']('enter',(_0x227c62,_0x127663)=>{_0x4e02b0===_0x227c62['target']&&(this['focusCycler']['focusFirst'](),_0x127663());}),this['keystrokes']['set']('esc',(_0x31e852,_0x257bf8)=>{_0x4e02b0!==_0x31e852['target']&&(this['focus'](),_0x257bf8());});}},Mn=class extends _0x5ad79e{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x23fe07,_0x1ffaf2,_0x23c8eb,_0x194c24];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x287b29){super(_0x287b29),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5a3c6c=this['editor']['config'];_0x5a3c6c['define']('trackChanges.SuggestionThreadView',yn),_0x5a3c6c['define']('trackChanges.SuggestionView',Sn),_0x5a3c6c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5a3c6c['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x210e92,_0xebf7cd){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d9c4d,_0x4a6bc7]of this['_handleControllerBuffer']){const _0x4e8923=this['_suggestionToController']['has'](_0x1d9c4d);_0x4e8923||_0x4a6bc7?_0x4e8923&&_0x4a6bc7&&this['_destroyController'](_0x1d9c4d):this['_initializeController'](_0x1d9c4d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x194c24)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x210e92,_0xebf7cd);}init(){const _0x403a12=this['editor'],_0xb36f89=_0x403a12['plugins']['get'](ln),_0x524f98=_0x403a12['plugins']['get'](_0x23c8eb),_0x4f71db=_0x403a12['plugins']['get'](_0x194c24),_0x14be27=_0x403a12['plugins']['get'](_0x1ffaf2);this['_addUIComponentsToFactory'](),_0x4f71db['addSourceCollector'](()=>{const _0xfe18f0=[];for(const [_0x2ab9cf,_0x589c91]of Array['from'](this['_suggestionToController'])){const _0x4df4f8=_0x2ab9cf['getAllAdjacentSuggestions'](),_0xd46497=[];for(const _0x11e58e of _0x4df4f8){if(!_0x11e58e['isInContent'])continue;if(_0x11e58e['isMultiRange']){_0xd46497['push'](..._0x11e58e['getRanges']());continue;}const _0x2c279c=_0x11e58e['getFirstRange']();if(_0xd46497['length']>0x0){const _0x3595d2=_0xd46497[0x0]['getJoined'](_0x2c279c);if(_0x3595d2){_0xd46497[0x0]=_0x3595d2;continue;}}_0xd46497['push'](_0x2c279c);}_0xfe18f0['push']([_0x589c91['view'],_0xd46497]);}return _0xfe18f0;}),this['listenTo'](_0xb36f89,'suggestionLoaded',(_0x47ebd7,_0x42d4c1)=>{this['listenTo'](_0x42d4c1,'change:previous',(_0xf7e39d,_0x4aa3cd,_0x5a6dfe,_0x4e1fa4)=>{_0x42d4c1['isInContent']&&(null==_0x5a6dfe?(this['_updateController'](_0x4e1fa4['head']),this['_handleSuggestionControllerDelayed'](_0x42d4c1,!0x1)):(this['_updateController'](_0x5a6dfe['head']),null==_0x4e1fa4&&this['_handleSuggestionControllerDelayed'](_0x42d4c1,!0x0)));}),null!==_0x42d4c1['previous']?this['_updateController'](_0x42d4c1['head']):this['_handleSuggestionControllerDelayed'](_0x42d4c1,!0x1);}),this['listenTo'](_0xb36f89,'suggestionUnloaded',(_0x266bac,_0x2fe10d,_0x5a30b5)=>{this['stopListening'](_0x2fe10d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2fe10d),this['_suggestionToController']['has'](_0x2fe10d)&&this['_destroyController'](_0x2fe10d),_0x5a30b5&&this['_updateController'](_0x5a30b5['head']);}),this['listenTo'](_0xb36f89,'suggestionChanged',(_0x5d79d5,_0x5a97db)=>{this['_updateController'](_0x5a97db);}),this['listenTo'](_0x524f98,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x14be27,'addComment',(_0xab27c3,{threadId:_0x1fdccf,isFromAdapter:_0x162998})=>{if(_0x162998||!_0xb36f89['hasSuggestion'](_0x1fdccf))return;const _0x25f6a8=_0xb36f89['getSuggestion'](_0x1fdccf);this['_suggestionToController']['get'](_0x25f6a8)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x51f76b=[this['editor']];for(const _0x3e4b52 of _0x51f76b){let _0x385562;for(const _0x394195 in _0x3e4b52){const _0x59aabc=_0x394195,_0x321280=_0x3e4b52[_0x59aabc];if('trackChangesLicenseKeyValid'==_0x321280||'trackChangesLicenseKeyInvalid'==_0x321280||'trackChangesLicenseKeyExpired'==_0x321280||'trackChangesLicenseKeyDomainLimit'==_0x321280||'trackChangesLicenseKeyNotAllowed'==_0x321280||'trackChangesLicenseKeyEvaluationLimit'==_0x321280||'trackChangesLicenseKeyUsageLimit'==_0x321280){delete _0x3e4b52[_0x59aabc],_0x385562=_0x321280,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x385562&&_0x3e4b52['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x385562&&_0x3e4b52['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x385562&&_0x3e4b52['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x385562&&_0x3e4b52['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x385562&&_0x3e4b52['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x385562&&_0x3e4b52['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x13d2e1){const _0xefa28e=this['_suggestionToController']['get'](_0x13d2e1);return _0xefa28e&&this['editor']['plugins']['get'](_0x23c8eb)['getByInnerView'](_0xefa28e['view'])||null;}getSuggestionForAnnotation(_0xa3aee4){const _0x211aa3=this['_viewToController']['get'](_0xa3aee4['innerView']);return _0x211aa3?_0x211aa3['model']:null;}_refreshActiveMarkers(){const _0x374e13=this['editor']['plugins']['get'](_0x23c8eb),_0x41273c=this['editor']['plugins']['get'](ln),_0xaadadf=Array['from'](_0x374e13['activeAnnotations'],_0x59906b=>_0x59906b['innerView'])['filter'](_0x471174=>this['_viewToController']['has'](_0x471174)),_0x33c609=[];for(const _0x19e876 of _0xaadadf){const _0x569f98=this['_viewToController']['get'](_0x19e876)['model']['getAllAdjacentSuggestions']();_0x33c609['push'](..._0x569f98['reduce']((_0x49b4e6,_0x447611)=>[..._0x49b4e6,..._0x447611['getMarkerNames']()],[]));}_0x41273c['activeMarkers']=_0x33c609;}_addUIComponentsToFactory(){const _0x74d144=this['editor'],_0x242948=_0x74d144['locale'],_0x57b587=wt(_0x242948,'Track\x20changes'),_0x5ca64e=new _0x4f0c2c([{'type':'switchbutton','model':new _0x3463ee({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b587,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3463ee({'withText':!0x0,'label':wt(_0x242948,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3463ee({'withText':!0x0,'label':wt(_0x242948,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3463ee({'withText':!0x0,'label':wt(_0x242948,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3463ee({'withText':!0x0,'label':wt(_0x242948,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x74d144['plugins']['has']('TrackChangesPreview')&&_0x5ca64e['addMany']([{'type':'separator'},{'type':'button','model':new _0x3463ee({'withText':!0x0,'label':wt(_0x242948,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x26e27e of _0x5ca64e)if(On(_0x26e27e)){const _0x19626a=_0x74d144['commands']['get'](_0x26e27e['model']['commandName']);_0x26e27e['model']['bind']('isOn','isEnabled')['to'](_0x19626a,'value','isEnabled');}_0x74d144['ui']['componentFactory']['add']('trackChanges',_0x438df1=>this['_createToolbarButton'](_0x438df1,_0x5ca64e,_0x57b587)),_0x74d144['ui']['componentFactory']['add']('menuBar:trackChanges',_0x27c685=>this['_createMenuBarMenu'](_0x27c685,_0x5ca64e,_0x57b587));}_createToolbarButton(_0x102264,_0x4829ca,_0x4aa083){const _0x53563d=_0x482d41(_0x102264,_0x69106d),_0x3ca695=this['editor']['commands']['get']('trackChanges');_0x53563d['buttonView']['set']({'tooltip':_0x4aa083,'label':_0x4aa083,'icon':_0x7f120a}),_0x53563d['buttonView']['bind']('isOn')['to'](_0x3ca695,'value'),_0x53563d['buttonView']['on']('execute',()=>{_0x3ca695['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ce7f9(_0x53563d,_0x4829ca,{'role':'menu'});const _0x2b2ca9=[];for(const _0x1e2727 of _0x4829ca)On(_0x1e2727)&&_0x2b2ca9['push'](this['editor']['commands']['get'](_0x1e2727['model']['commandName']));const _0x360a8b=_0x53563d['buttonView'];return _0x360a8b['actionView']['unbind']('isEnabled'),_0x360a8b['arrowView']['unbind']('isEnabled'),_0x360a8b['actionView']['bind']('isEnabled')['to'](_0x3ca695,'isEnabled'),_0x360a8b['arrowView']['bind']('isEnabled')['toMany'](_0x2b2ca9,'isEnabled',(..._0x40bc66)=>_0x40bc66['some'](_0x25b11a=>_0x25b11a)),_0x53563d['on']('execute',_0x1bd480=>{this['editor']['execute'](_0x1bd480['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x53563d;}_createMenuBarMenu(_0x3c213d,_0x1df261,_0x6ac69b){const _0x2be1c5=new _0xf1a96a(_0x3c213d),_0x34f4b7=this['editor']['commands']['get']('trackChanges');_0x2be1c5['buttonView']['set']({'label':_0x6ac69b,'icon':_0x7f120a});const _0x45f0dc=new _0x2b33ac(_0x3c213d);for(const _0x407823 of _0x1df261){if('separator'==_0x407823['type']){_0x45f0dc['items']['add'](new _0x143a15(_0x3c213d));continue;}const _0x54be84=new _0x5d34e6(_0x3c213d,_0x2be1c5),_0x33268e=new _0x57e270(_0x3c213d),_0x10f76c=_0x407823['model'];_0x33268e['bind'](...Object['keys'](_0x10f76c))['to'](_0x10f76c),_0x33268e['delegate']('execute')['to'](_0x2be1c5),_0x33268e['on']('execute',()=>{this['editor']['execute'](_0x10f76c['commandName']),this['editor']['editing']['view']['focus']();}),_0x54be84['children']['add'](_0x33268e),_0x45f0dc['items']['add'](_0x54be84);}return _0x2be1c5['bind']('isEnabled')['to'](_0x34f4b7,'isEnabled'),_0x2be1c5['panelView']['children']['add'](_0x45f0dc),_0x2be1c5;}_initializeController(_0x29684f){const _0x3e8901=this['editor'],_0x2cc677=_0x3e8901['config'],_0x5aaf98=_0x3e8901['plugins']['get'](_0x23c8eb),_0xea9612=_0x3e8901['plugins']['get'](_0x1ffaf2),_0x188ca7=_0x3e8901['plugins']['get'](_0x194c24),_0x58e027=_0x3e8901['plugins']['get'](_0x23fe07)['me'],_0x224a3a=_0x2cc677['get']('trackChanges')['SuggestionThreadView'],_0x83ecbe=_0x2cc677['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x125a19,CommentThreadInputView:_0x1165b5}=_0x3e8901['plugins']['get']('CommentsUI');let _0x3399b6,_0x16962d,_0x2674eb;this['_annotationViews']['has'](_0x29684f['id'])?(_0x16962d=this['_annotationViews']['get'](_0x29684f['id']),_0x3399b6=_0x16962d['mainView']):(_0x3399b6=new _0x224a3a(_0x3e8901['locale'],_0x29684f,_0x58e027,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2cc677['get']('comments.editorConfig'),'licenseKey':_0x2cc677['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2cc677['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2cc677['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2cc677['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x20c1b3(_0x2cc677['get']('locale'),_0x3e8901['locale']),'CommentView':_0x2cc677['get']('comments')['CommentView'],'CommentsListView':_0x125a19,'CommentThreadInputView':_0x1165b5,'SuggestionView':_0x83ecbe,'showAISource':_0x2cc677['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x2cc677['get']('trackChanges.aiAuthor'),'name':_0x2cc677['get']('trackChanges.aiAuthor')?.['name']||wt(_0x3e8901['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x3399b6['suggestionView']['acceptButton']['on']('execute',()=>{_0x3e8901['editing']['view']['focus']();}),_0x3399b6['suggestionView']['discardButton']['on']('execute',()=>{_0x3e8901['editing']['view']['focus']();}),_0x16962d=_0x5aaf98['createAnnotationView'](this['editor']['locale'],_0x3399b6),_0x16962d['bind']('isDirty')['to'](_0x3399b6,'isDirty'),_0x16962d['bind']('length')['to'](_0x3399b6),_0x16962d['bind']('type')['to'](_0x3399b6,'type',_0x474ab1=>'suggestion-'+_0x474ab1),_0x3399b6['on']('escape',()=>{_0x2674eb['fire']('escape');}),this['_annotationViews']['set'](_0x29684f['id'],_0x16962d));const _0xa5c0a6=_0xea9612['createCommentThreadController'](_0x29684f['commentThread'],_0x3399b6),_0x46a10b=new Rn(_0x3e8901,_0x29684f,_0x3399b6,_0xa5c0a6),_0x326150=_0x29684f['getAllAdjacentSuggestions']()['filter'](_0x47ee69=>_0x47ee69['isInContent']);_0x3399b6['descriptionParts']=_0x3e8901['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x326150),this['_suggestionToController']['set'](_0x29684f,_0x46a10b),this['_viewToController']['set'](_0x3399b6,_0x46a10b);const _0x3b1301=()=>{const _0x6fe22b=[],_0x233758=_0x29684f['getAllAdjacentSuggestions']()['filter'](_0x44efe1=>_0x44efe1['isInContent']);for(const _0xc3bd3c of _0x233758)_0x6fe22b['push'](..._0xc3bd3c['getMarkers']());return _0x3fc9fb(_0x3e8901['editing'],_0x6fe22b);};_0x2674eb=_0x5aaf98['createAnnotation']({'view':_0x16962d,'target':_0x3b1301,'type':()=>'suggestion-'+_0x46a10b['view']['type'],'isVisible':!!_0x3b1301()}),_0xea9612['_bindAnnotationToEditors'](_0x3399b6,_0x2674eb),_0x5aaf98['add'](_0x2674eb),_0x188ca7['registerAnnotation'](_0x2674eb);}_destroyController(_0x295fe1){const _0x5df16e=this['editor']['plugins']['get'](_0x1ffaf2),_0x32fbc6=this['editor']['plugins']['get'](_0x23c8eb),_0xec862c=this['_suggestionToController']['get'](_0x295fe1),_0x404976=_0xec862c['view'],_0x38cf0b=_0x32fbc6['getByInnerView'](_0x404976);_0x5df16e['_unbindEditors'](_0x404976),_0x38cf0b&&_0x32fbc6['remove'](_0x38cf0b),this['_suggestionToController']['delete'](_0x295fe1),this['_viewToController']['delete'](_0x404976),_0xec862c['destroy']();}_updateController(_0x4ebc2d){if(!_0x4ebc2d['isInContent']||!this['_suggestionToController']['has'](_0x4ebc2d))return;const _0x2d5148=this['editor']['plugins']['get'](ln),_0x2e8001=this['_suggestionToController']['get'](_0x4ebc2d),_0xb156e=_0x4ebc2d['getAllAdjacentSuggestions']();_0x2e8001['view']['descriptionParts']=_0x2d5148['descriptionFactory']['getDescriptions'](_0xb156e);}destroy(){for(const _0x27fb32 of this['_suggestionToController']['keys']())this['_destroyController'](_0x27fb32);for(const _0x4cb208 of this['_annotationViews']['values']())_0x4cb208['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x31e3ce){return'model'in _0x31e3ce;}var wn=class extends _0x5ad79e{static get requires(){return[ln,Mn,_0x18e0f1];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x117fc8){this['editor']['plugins']['get'](ln)['adapter']=_0x117fc8;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x594175){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x594175);}getSuggestions({skipNotAttached:_0x593519=!0x1,toJSON:_0x4cccbc=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x593519,'toJSON':_0x4cccbc});}getSuggestion(_0xaf7210){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0xaf7210);}};const Bn=['Pagination'];var Fn=class extends _0x5ad79e{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x3824bd=this['editor'];if(_0x3824bd['config']['define']('trackChangesData.editorCreator',_0x5afd7a=>{const _0x424baf=_0x3824bd['model']['document']['getRootNames']()['reduce']((_0x4ebe58,_0x416551)=>(_0x4ebe58[_0x416551]='',_0x4ebe58),{});return _0x3824bd['constructor']['create'](_0x424baf,_0x5afd7a);}),'function'!=typeof _0x3824bd['config']['get']('trackChangesData')['editorCreator'])throw new _0x2045ee('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x38ebe4){return Un(this['editor'],!0x0,_0x38ebe4);}getDataWithDiscardedSuggestions(_0x55201c){return Un(this['editor'],!0x1,_0x55201c);}},vn=class extends _0x5ad79e{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x49e9d3){super(_0x49e9d3),this['result']='end',_0x49e9d3['editing']['view']['_overlayModeHint']='auto',_0x49e9d3['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Dn(_0x12401b){return void 0x0!==_0x12401b['getRootsAttributes'];}async function Un(_0x3b2fc3,_0x3d9246,_0x26ffd8){const _0x19aad0=tt(_0x3b2fc3,Bn);if(_0x19aad0['plugins']['push'](ln,vn),Dn(_0x3b2fc3)){_0x19aad0['roots']=Object['create'](null);for(const _0x169894 of _0x3b2fc3['model']['document']['getRootNames']())_0x19aad0['roots'][_0x169894]={'modelAttributes':_0x3b2fc3['getRootAttributes'](_0x169894)};}const _0x12e718=document['createDocumentFragment'](),_0x3beaa4=_0x3b2fc3['config']['get']('trackChangesData')['editorCreator'],_0x444c79=await _0x3beaa4(_0x19aad0,()=>function(_0x71c719){const _0x17969c=document['createElement']('div');return _0x71c719['appendChild'](_0x17969c),_0x17969c;}(_0x12e718));!function(_0x223896,_0x2c396a){const _0x3460fe=_0x223896['model']['document']['getRootNames']()['reduce']((_0x240dfc,_0x42fd6f)=>(_0x240dfc[_0x42fd6f]=_0x223896['data']['get']({'rootName':_0x42fd6f}),_0x240dfc),{}),_0x57a11d=_0x223896['plugins']['get']('Users')['users']['map'](_0x3f39c9=>({'id':_0x3f39c9['id'],'name':_0x3f39c9['name']})),_0x1084ee=_0x223896['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ecca5=_0x223896['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2b51ed=_0x2c396a['plugins']['get']('Users'),_0x402619=_0x2c396a['plugins']['get']('TrackChangesEditing'),_0x481d20=_0x2c396a['plugins']['get']('CommentsRepository');for(const _0xc06335 of _0x481d20['getCommentThreads']())_0xc06335['remove']();for(const _0x2ad1f0 of _0x57a11d)_0x2b51ed['getUser'](_0x2ad1f0['id'])||_0x2b51ed['addUser'](_0x2ad1f0);_0x2b51ed['me']||_0x2b51ed['useAnonymousUser']();for(const _0x5564e3 of _0x2ecca5)_0x481d20['addCommentThread'](_0x5564e3);for(const _0x514d8f of _0x1084ee)_0x402619['addSuggestionData'](_0x514d8f);_0x2c396a['data']['set'](_0x3460fe);}(_0x3b2fc3,_0x444c79),_0x444c79['execute'](_0x3d9246?'acceptAllSuggestions':'discardAllSuggestions');const _0x1af90c=Dn(_0x444c79)?_0x444c79['getFullData'](_0x26ffd8):_0x444c79['data']['get'](_0x26ffd8);return await _0x444c79['destroy'](),_0x1af90c;}var Pn=class extends _0x499950{options;constructor(_0x4ff377,_0xd384ae){super(_0x4ff377),this['options']=_0xd384ae,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(_0x322d1f,_0x1c213c){if(!this['element'])return;const _0xeeba42=[];for(const [_0xc874c7,_0x58b655]of _0x322d1f){const _0x331ae9=document['createElement']('div');_0x331ae9['setAttribute']('data-ck-root-name',_0xc874c7),_0x331ae9['className']=_0x58b655['classes']+'\x20ck-track-changes-preview__root-container',_0x331ae9['innerHTML']=_0x309e7a(_0x58b655['content']),_0xeeba42['push'](_0x331ae9);}_0x1c213c(this['element'],_0xeeba42),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x3af00c{constructor(_0x2b3e25){super(_0x2b3e25),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x1a502d=this['editor'],_0x3e4525=_0x1a502d['locale'],_0x129905=_0x1a502d['plugins']['get']('Dialog');let _0x245be3;const _0x12aabd=function(_0x466ac8){const _0x585b86={};if('editables'in _0x466ac8['ui']['view']){for(const [_0xa49d9b,_0x1e7801]of Object['entries'](_0x466ac8['ui']['view']['editables']))_0x585b86[_0xa49d9b]=_0x1e7801['element'];}else _0x585b86[_0x466ac8['model']['document']['getRootNames']()[0x0]]=_0x466ac8['ui']['view']['editable']['element'];return _0x585b86;}(_0x1a502d),_0x167569=function(_0x9bb1d5){let _0x2cb4f4=0x0;for(const _0x388a39 of Object['values'](_0x9bb1d5))_0x2cb4f4=Math['max'](_0x2cb4f4,_0x388a39['getBoundingClientRect']()['width']);let _0x18e991=0x0;for(const _0x4cf3d3 of Object['values'](_0x9bb1d5))_0x18e991+=_0x4cf3d3['getBoundingClientRect']()['height'];const _0x85e5e8=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x2cb4f4,'height':Math['min'](_0x18e991,_0x85e5e8)};}(_0x12aabd);_0x129905['show']({'id':'finalContentPreview','title':wt(_0x3e4525,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x3e4525,{'dialogRects':_0x167569}),'onHide':()=>{_0x245be3['destroy']();},'onShow':()=>{_0x1a502d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x106bab=>{const _0x69a000=this['_standarizeRootsData'](_0x106bab,_0x1a502d,_0x12aabd);_0x129905['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x69a000,_0x1a502d['config']['get']('trackChanges.preview.renderFunction'));}),_0x245be3=new _0x37b649(_0x3e4525,[_0x129905['view']]),_0x245be3['attachToDom'](_0x1a502d['ui']['view']['body']['mountTarget']),_0x245be3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1a502d['once']('destroy',()=>{_0x245be3['destroy']();});const _0x21102b=_0x129905['view']['headerView']['class'];_0x129905['view']['headerView']['class']=_0x21102b?_0x21102b+'\x20ck-reset_all':'ck-reset_all',_0x129905['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x129905['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x283dc2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x24ae60=_0x283dc2['previewMode'],_0x40045b={};if('$labels'===_0x24ae60){for(const _0x3b9f3e of _0x283dc2['getMergeFieldsIds']())_0x40045b[_0x3b9f3e]=_0x283dc2['getLabel'](_0x3b9f3e)||_0x3b9f3e;}else{const _0x14f550='$defaultValues'===_0x24ae60?_0x283dc2['getDefaultValues']():_0x283dc2['getDataSetValues'](_0x24ae60,!0x0);for(const _0x5f0f76 of Object['entries'](_0x14f550)){const [_0x3034c1,_0x5ef3c5]=_0x5f0f76;_0x40045b[_0x3034c1]=null!==_0x5ef3c5?_0x5ef3c5:_0x283dc2['getLabel'](_0x3034c1)||_0x3034c1;}}return{'mergeFieldsData':_0x40045b};}_standarizeRootsData(_0x389419,_0x27a08b,_0x483db5){let _0x1f3b3f;_0x1f3b3f='string'==typeof _0x389419?{[_0x27a08b['model']['document']['getRootNames']()[0x0]]:_0x389419}:_0x389419;const _0x58bfa6=this['_fixMediaEmbeds'](_0x1f3b3f,_0x27a08b);return function(_0x7e5531,_0x2e3c78){for(const [_0x189700,_0x3033a4]of _0x7e5531)_0x3033a4['classes']=_0x2e3c78[_0x189700]['classList']['value']['replace']('ck-focused','');return _0x7e5531;}(this['_sortRoots'](_0x27a08b)['reduce']((_0xfd9076,_0x2b60be)=>(_0xfd9076['push']([_0x2b60be,{'content':_0x58bfa6[_0x2b60be],'classes':''}]),_0xfd9076),[]),_0x483db5);}['_fixMediaEmbeds'](_0x1ba120,_0x44a6da){if(!_0x44a6da['plugins']['has']('MediaEmbedEditing'))return _0x1ba120;const _0x21c443=_0x44a6da['plugins']['get']('MediaEmbedEditing');for(const [_0x2ce9e8,_0x2e7afe]of Object['entries'](_0x1ba120)){const _0x532e41=document['createElement']('div');_0x532e41['innerHTML']=_0x309e7a(_0x2e7afe),_0x532e41['querySelectorAll']('figure.media')['forEach'](_0x1a9c12=>{const _0xd36ff9=_0x1a9c12['querySelector']('oembed');if(_0xd36ff9){const _0x3def4a=_0xd36ff9['getAttribute']('url');if(_0x3def4a){const _0x4f46da=_0x21c443['registry']['getMediaViewElement'](new ct(_0x44a6da['editing']['view']['document']),_0x3def4a,{'elementName':'','renderForEditingView':!0x0}),_0x384fe2=document['createElement']('div');_0x384fe2['classList']['add']('ck-media__wrapper'),_0x4f46da['render'](_0x384fe2,_0x44a6da['editing']['view']['domConverter']),_0xd36ff9['replaceWith'](_0x384fe2);}}}),_0x1ba120[_0x2ce9e8]=_0x532e41['innerHTML'];}return _0x1ba120;}_sortRoots(_0x300a63){if(!function(_0x3ddc6c){return void 0x0!==_0x3ddc6c['getRootsAttributes'];}(_0x300a63))return _0x300a63['model']['document']['getRootNames']();const _0x404c58=[],_0x228586=new Map();for(const _0x347b6d of _0x300a63['model']['document']['getRootNames']()){const _0x17491c=_0x300a63['editing']['view']['getDomRoot'](_0x347b6d)['getClientRects']()['item'](0x0);_0x404c58['push'](_0x347b6d),_0x228586['set'](_0x347b6d,_0x17491c);}return _0x404c58['sort']((_0x3d9649,_0x232f7d)=>{const _0x40a2c9=_0x228586['get'](_0x3d9649),_0x42589f=_0x228586['get'](_0x232f7d);return _0x40a2c9['y']-_0x42589f['y']||_0x40a2c9['x']-_0x42589f['x'];}),_0x404c58;}},Gn=class extends _0x5ad79e{static get requires(){return[Fn,_0x3af845];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b371e){super(_0x1b371e),_0x1b371e['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x1b371e['config']['define']('trackChanges.preview.renderFunction',(_0x6fd68,_0x13f0ce)=>{for(const _0x24a0f8 of _0x13f0ce)_0x6fd68['appendChild'](_0x24a0f8);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x4a2133,PendingActions as _0x59068f,Plugin as _0x17c3d7}from'@ckeditor/ckeditor5-core';import{Annotations as _0x40bec5,Comments as _0xa8cd16,CommentsRepository as _0x3e91e1,EditorAnnotations as _0xdc7e83}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x1539e5,Collection as _0xdb857c,FocusTracker as _0x1bbeaa,KeystrokeHandler as _0x43236e,ObservableMixin as _0x57c80d,getEnvKeystrokeText as _0x3b1f36,insertToPriorityArray as _0x9e9dd3,logWarning as _0x5bb8f7,priorities as _0x165b6f,trustedHtml as _0x232c5d,uid as _0x5a260f}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x217487,IconCancel as _0x26c761,IconCheck as _0x535f1a,IconSparkle as _0x3e8ac0,IconTrackChanges as _0x17cf87}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1e4244,Dialog as _0x39c4a7,FocusCycler as _0x499549,ListSeparatorView as _0x1e2a38,MenuBarMenuListItemButtonView as _0x5b55d0,MenuBarMenuListItemView as _0x219c83,MenuBarMenuListView as _0x19fe0d,MenuBarMenuView as _0x2da019,SplitButtonView as _0x168f8e,UIModel as _0x13e951,View as _0x436391,ViewCollection as _0x32fe5b,_getLocalizedColorName as _0x3b5c48,addListToDropdown as _0x5a2abb,createDropdown as _0x29baa9,normalizeColorOptions as _0x1171c6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x2f34c3,CollaborationUserColor as _0x59c151,FOCUS_ANNOTATION_KEYSTROKE as _0x279983,LateFocusButtonView as _0x27d2f1,PillView as _0x3d0616,SuggestionsConversion as _0x3ffa0d,User as _0x3e3758,UserView as _0x2530c7,Users as _0x15dcb3,fixElementSuggestionRange as _0x46c3ae,getAllMarkersDomElementsSorted as _0x21c956,getDateTimeFormatter as _0x33ae88,hashObject as _0x13b349,isInvalidAttributeOperation as _0x1cfa67,sanitizeEditorConfig as tt,setupThreadKeyboardNavigation as et,splitSuggestionMarkerName as nt,surroundingMarkersDetector as it,trimHtml as st}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as rt,ModelLivePosition as ot,ModelLiveRange as at,ViewDowncastWriter as ct}from'@ckeditor/ckeditor5-engine';import{cloneDeep as lt,isEqual as ut,omit as dt,set as ht,unset as gt}from'es-toolkit/compat';import{ClipboardMarkersUtils as ft,ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';import{Delete as Et,Input as Tt}from'@ckeditor/ckeditor5-typing';import{Enter as _t}from'@ckeditor/ckeditor5-enter';var pt=class extends _0x4a2133{['_enabledCommands'];constructor(_0x1e7350,_0x595f28){super(_0x1e7350),this['_enabledCommands']=_0x595f28,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 _0x432180 of this['editor']['commands']['commands']())_0x432180['affectsData']&&!this['_enabledCommands']['has'](_0x432180)&&_0x432180['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x35c69d of this['editor']['commands']['commands']())_0x35c69d['affectsData']&&!this['_enabledCommands']['has'](_0x35c69d)&&_0x35c69d['clearForceDisabled']('TrackChangesCommand');}},Lt=class extends _0x4a2133{_suggestions;constructor(_0x5b36a0,_0x2306bf){super(_0x5b36a0),this['_suggestions']=_0x2306bf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x58974a){const _0x8c1a59=this['_suggestions']['get'](_0x58974a);if(!_0x8c1a59)throw new _0x1539e5('track-changes-accept-suggestion-not-found',this);const _0x3404dd=_0x8c1a59['getRanges']();this['editor']['model']['canEditAt'](_0x3404dd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x8c1a59);}},It=class extends _0x4a2133{_suggestions;constructor(_0x22f9cb,_0x2f75be){super(_0x22f9cb),this['_suggestions']=_0x2f75be,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x540abb){const _0x4b6ec4=this['_suggestions']['get'](_0x540abb);if(!_0x4b6ec4)throw new _0x1539e5('track-changes-discard-suggestion-not-found',this);const _0x4880f0=_0x4b6ec4['getRanges']();this['editor']['model']['canEditAt'](_0x4880f0)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4b6ec4);}};function At(_0x8aced8,_0x50408b){let _0x20971c='';return _0x20971c+=_0x8aced8['split']('*')['map']((_0x3ec81b,_0xf73343)=>_0xf73343%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+bt(_0x3ec81b)+'</span>':bt(_0x3ec81b))['join'](''),_0x50408b&&(_0x20971c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x50408b['value']+'\x22\x20title=\x22'+_0x50408b['title']+'\x22></span>'),_0x20971c;}function bt(_0x2c657c){const _0x5836ef=document['createElement']('span');return _0x5836ef['innerText']=_0x2c657c,_0x5836ef['innerHTML'];}function Ct(_0x49bc4f){return _0x49bc4f['sort']((_0x58874e,_0x56a214)=>'attribute'===_0x58874e['type']&&'attribute'!==_0x56a214['type']?-0x1:'attribute'!==_0x58874e['type']&&'attribute'===_0x56a214['type']?0x1:'deletion'==_0x58874e['type']&&'deletion'!=_0x56a214['type']?-0x1:'deletion'!=_0x58874e['type']&&'deletion'==_0x56a214['type']?0x1:0x0);}function kt(_0x379f6b,_0x1555e0){let _0x1e021a,_0x3dbadc=0x0;const _0x12b130=[],_0x3f51e6=_0x1555e0['schema'];for(;_0x3dbadc<_0x379f6b['length'];){const _0x2b279e=_0x379f6b[_0x3dbadc],_0x1e617d=_0x379f6b[_0x3dbadc+0x1];_0x1e021a||(_0x1e021a=_0x1555e0['createPositionBefore'](_0x2b279e)),Rt(_0x1555e0,_0x2b279e,_0x1e617d)||(_0x12b130['push'](_0x1555e0['createRange'](_0x1e021a,_0x3f51e6['isObject'](_0x2b279e)?_0x1555e0['createPositionAfter'](_0x2b279e):_0x1555e0['createPositionAt'](_0x2b279e,'end'))),_0x1e021a=null),_0x3dbadc++;}return _0x12b130;}function Rt(_0x1e45fe,_0x13d9ab,_0x5fc197){if(!_0x5fc197)return!0x1;const _0x42b746=_0x1e45fe['createPositionAfter'](_0x13d9ab),_0x5e2a12=_0x1e45fe['createPositionBefore'](_0x5fc197);return _0x42b746['isTouching'](_0x5e2a12);}function Nt(_0x3cff83,_0x989984,_0x2e05c6){for(;_0x2e05c6['length'];){const _0x11c646=_0x2e05c6['splice'](0x0,0x64);_0x3cff83['change'](()=>{for(const _0x261d98 of _0x11c646)_0x261d98['isInContent']&&_0x989984['execute'](_0x261d98['id']);});}}var yt=class extends _0x4a2133{['_command'];_suggestions;constructor(_0x1369c4,_0x247e5f,_0xfbab4){super(_0x1369c4),this['_command']=_0x247e5f,this['_suggestions']=_0xfbab4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x388115=Array['from'](this['_suggestions']['values']())['some'](_0x30d384=>_0x30d384['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x388115;}execute(){const _0xb5af7f=Ct(Array['from'](this['_suggestions']['values']()));for(const _0x513205 of _0xb5af7f){const _0x48e69d=_0x513205['getRanges']();if(!this['editor']['model']['canEditAt'](_0x48e69d))return;}Nt(this['editor']['model'],this['_command'],_0xb5af7f);}},St=class extends _0x4a2133{['_command'];_suggestions;_selectedSuggestions;constructor(_0x15290c,_0x2c4612,_0x510c74){super(_0x15290c),this['_command']=_0x2c4612,this['_suggestions']=_0x510c74,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x48d20b=this['editor']['model']['document']['selection'],_0x46dfc7=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2bd8a0,_0x58ab2e){const _0x5c2f42=Array['from'](_0x2bd8a0['getRanges']()),_0x440f6f=new Set();for(const _0x25387f of _0x58ab2e)if(_0x25387f['isInContent']){for(const _0x1b972e of _0x5c2f42)for(const _0x156c9a of _0x25387f['getRanges']())(_0x1b972e['isIntersecting'](_0x156c9a)||_0x2bd8a0['isCollapsed']&&!_0x25387f['isMultiRange']&&_0x25387f['next']&&_0x156c9a['end']['isTouching'](_0x1b972e['start']))&&_0x440f6f['add'](_0x25387f);}return _0x440f6f;}(_0x48d20b,_0x46dfc7),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x413845=Ct(Array['from'](this['_selectedSuggestions']));for(const _0x498919 of _0x413845){const _0x458ad9=_0x498919['getRanges']();if(!this['editor']['model']['canEditAt'](_0x458ad9))return;}Nt(this['editor']['model'],this['_command'],_0x413845);}};const Mt=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x57c80d();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x192893,_0x5f30a0){super(),this['id']=_0x5f30a0['id'],this['type']=_0x5f30a0['type'],this['subType']=_0x5f30a0['subType']||null,this['author']=_0x5f30a0['author'],this['creator']=_0x5f30a0['creator']||_0x5f30a0['author'],this['data']=null,this['_originalSuggestionId']=_0x5f30a0['originalSuggestionId']||null,this['_model']=_0x192893,this['_onAccept']=_0x5f30a0['onAccept'],this['_onDiscard']=_0x5f30a0['onDiscard'],this['_onAttributesChange']=_0x5f30a0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5f30a0['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0xfa3abf=this;for(;_0xfa3abf['previous'];)_0xfa3abf=_0xfa3abf['previous'];return _0xfa3abf;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1dc515){this['_markerNames']['add'](_0x1dc515);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x236ce6=>this['_model']['markers']['get'](_0x236ce6))['filter'](_0x84cb2a=>_0x84cb2a);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1a4062=>{for(const _0x4e2e95 of this['getMarkers']())_0x1a4062['removeMarker'](_0x4e2e95);}),this['_markerNames']['clear']();}['removeMarker'](_0x41784f){this['_model']['change'](_0x59b4d2=>{_0x59b4d2['removeMarker'](_0x41784f);}),this['_markerNames']['delete'](_0x41784f);}['addRange'](_0x309b63){const _0x5bf175='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x5bf175),this['_model']['change'](_0x2f6804=>{_0x2f6804['addMarker'](_0x5bf175,{'range':_0x309b63,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x4afad9){for(const _0x3451c3 of this['getRanges']())if(_0x3451c3['isIntersecting'](_0x4afad9))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x416a79=>_0x416a79['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x2b77c4,_0x402059)=>[..._0x2b77c4,..._0x402059['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x4872c4=this['getRanges']();if(0x1!=_0x4872c4['length'])return null;const _0x206754=_0x4872c4[0x0],_0x3225b0=_0x206754['start']['nodeAfter'],_0x158bad=_0x206754['end']['nodeBefore'];return _0x3225b0 instanceof rt?_0x3225b0!=_0x158bad?null:_0x3225b0:null;}accept(){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}getAllAdjacentSuggestions(){const _0x38c479=[];let _0x394f14=this['head'];for(;_0x394f14;)_0x38c479['push'](_0x394f14),_0x394f14=_0x394f14['next'];return _0x38c479;}setAttribute(_0x34c58e,_0x5c771d){const _0x22a7b6=lt(this['attributes']);ht(_0x22a7b6,_0x34c58e,_0x5c771d),ut(_0x22a7b6,this['attributes'])||(this['attributes']=_0x22a7b6,this['_onAttributesChange'](_0x22a7b6));}removeAttribute(_0x4fa8d2){const _0xcb64c5=lt(this['attributes']);gt(_0xcb64c5,_0x4fa8d2),ut(_0xcb64c5,this['attributes'])||(this['attributes']=_0xcb64c5,this['_onAttributesChange'](this['attributes']));}toJSON(){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static getMultiRangeId(){return _0x5a260f()['substr'](0x1,0x5);}};function wt(_0x5821e1,_0xb2b3e2,_0x54552a){const _0x2345da=_0x5821e1['t'],t=_0x5821e1['t'];switch(_0xb2b3e2){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x54552a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x54552a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x54552a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x54552a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x54552a);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x54552a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x54552a);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x54552a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x54552a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x54552a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x54552a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x54552a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x54552a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x54552a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x54552a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x54552a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x54552a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x54552a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x54552a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x54552a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x54552a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x54552a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x54552a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x54552a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x54552a);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x54552a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x54552a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x54552a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x54552a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x54552a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x54552a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x54552a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x54552a);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x54552a);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x54552a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x54552a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x54552a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x54552a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x54552a);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x54552a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x54552a);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x54552a);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x54552a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x54552a);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x54552a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x54552a);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x54552a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x54552a);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x54552a);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x54552a);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x54552a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x54552a);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x54552a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x54552a);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x2345da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x54552a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2345da({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x54552a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x54552a);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x54552a);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x54552a);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x54552a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});case'SUGGESTION_ACTIONS_DISABLED_TOOLTIP':return t({'string':'This\x20suggestion\x20can\x27t\x20be\x20resolved\x20right\x20now.','id':'SUGGESTION_ACTIONS_DISABLED_TOOLTIP'});default:return _0xb2b3e2;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x5a3c2d,_0x31003c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5a3c2d,this['_locale']=_0x31003c;}getDescriptions(_0xef7f06){const _0xcc3868=[],_0x26c841=new Set(),_0x279daf=new Set();for(let _0x3bd66e=0x0;_0x3bd66e<_0xef7f06['length'];_0x3bd66e++){const _0x2033d6=_0xef7f06[_0x3bd66e];if(!_0x2033d6['isInContent'])continue;const _0x268f05=this['_handleCustomCallbackDescription'](_0x2033d6);if(_0x268f05){if(null!=_0x2033d6['subType']){if(_0x26c841['has'](_0x2033d6['subType']))continue;_0x26c841['add'](_0x2033d6['subType']);}_0xcc3868['push'](_0x268f05);}else{if('attribute'==_0x2033d6['type']){const _0x2e805d=_0x2033d6['data']['key'];if(_0x279daf['has'](_0x2e805d))continue;_0x279daf['add'](_0x2033d6['data']['key']),'$elementName'==_0x2e805d?this['_handleRenameSuggestionDescription'](_0xcc3868,_0x2033d6):this['_handleAttributeSuggestionDescription'](_0xcc3868,_0x2033d6);continue;}'insertion'!=_0x2033d6['type']&&'deletion'!=_0x2033d6['type']||this['_handleInsertRemoveSuggestionDescription'](_0xcc3868,_0x2033d6,_0xef7f06[_0x3bd66e+0x1]);}}return this['_resolveDescriptionItems'](_0xcc3868);}registerDescriptionCallback(_0x27ea6a){this['_customCallbacks']['push'](_0x27ea6a);}registerElementLabel(_0x57a8b9,_0x47e0fd,_0x41c2d6=_0x165b6f['normal']){'function'==typeof _0x57a8b9?_0x9e9dd3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x57a8b9,'label':_0x47e0fd,'priority':_0x41c2d6}):this['_itemLabels']['set'](_0x57a8b9,_0x47e0fd);}registerAttributeLabel(_0xd969e1,_0x29f969){this['_attributeLabels']['set'](_0xd969e1,_0x29f969);}getItemLabel(_0x4d5677,_0x44904b=0x1){let _0x2d2470;for(const _0xfee941 of this['_itemLabelsCallbacks'])if(_0xfee941['matchingCallback'](_0x4d5677)){_0x2d2470=_0xfee941['label'];break;}return _0x2d2470||(_0x2d2470=this['_itemLabels']['get'](_0x4d5677['name'])),_0x2d2470?_0x2d2470(_0x44904b):0x1!==_0x44904b?_0x44904b+'\x20'+_0x4d5677['name']+'s':''+_0x4d5677['name'];}_addDescriptionItems(_0x53a891,_0x1fde65){const _0x38a07f=_0x1fde65['getFirstRange']()['getWalker'](),_0x1df290='insertion'==_0x1fde65['type']?'add':'remove';for(const _0x314952 of _0x38a07f){const _0x419672=_0x314952['item'],_0x4f23d7=_0x53a891[_0x53a891['length']-0x1];if(_0x419672['is']('$textProxy'))_0x4f23d7&&_0x4f23d7['type']['indexOf']('Container')>-0x1&&_0x53a891['pop'](),_0x4f23d7&&'text'==_0x4f23d7['type']?_0x4f23d7[_0x1df290]+=_0x419672['data']:_0x53a891['push']({'type':'text','add':'add'==_0x1df290?_0x419672['data']:'','remove':'remove'==_0x1df290?_0x419672['data']:''});else{if(this['_schema']['isObject'](_0x419672)){const _0x321d8d=_0x419672;if(_0x4f23d7&&_0x4f23d7['type']['indexOf']('Container')>-0x1&&_0x53a891['pop'](),'elementEnd'==_0x314952['type'])continue;_0x4f23d7&&_0x4f23d7['type']==_0x1df290+'Object'&&_0x4f23d7['element']['name']==_0x321d8d['name']?_0x4f23d7['quantity']++:_0x53a891['push']({'type':_0x1df290+'Object','element':_0x321d8d,'quantity':0x1}),_0x38a07f['skip'](_0x2c4e85=>!('elementEnd'==_0x2c4e85['type']&&_0x2c4e85['item']==_0x419672));}else{if(this['_schema']['checkChild'](_0x419672,'$text')||_0x419672['is']('element','softBreak')){const _0x5d6fff=_0x419672;if('add'==_0x1df290&&'elementStart'==_0x314952['type']||'remove'==_0x1df290&&'elementEnd'==_0x314952['type'])continue;if(_0x4f23d7&&-0x1==_0x4f23d7['type']['indexOf']('Container')){'text'==_0x4f23d7['type']&&(_0x4f23d7[_0x1df290]+='\x0a');continue;}let _0x86858c;if(_0x86858c='add'==_0x1df290?_0x5d6fff['nextSibling']&&!this['_schema']['isObject'](_0x5d6fff['nextSibling'])?_0x5d6fff['nextSibling']:null:_0x5d6fff['previousSibling']&&!this['_schema']['isObject'](_0x5d6fff['previousSibling'])?_0x5d6fff['previousSibling']:null,_0x5d6fff['isEmpty']||_0x86858c&&_0x86858c['isEmpty']){const _0x8fecb4=_0x86858c&&_0x86858c['isEmpty']?_0x86858c:_0x5d6fff;_0x4f23d7&&_0x4f23d7['type']==_0x1df290+'EmptyContainer'&&_0x4f23d7['element']['name']==_0x8fecb4['name']?_0x4f23d7['quantity']++:_0x53a891['push']({'type':_0x1df290+'EmptyContainer','element':_0x8fecb4,'quantity':0x1});}else _0x53a891['push']({'type':_0x1df290+'Container','element':_0x5d6fff});}}}}}_resolveDescriptionItems(_0x2b5f17){const _0x5013c5=this['_locale'],_0x10232e=[],_0x8f12f7=[],_0x50f695=[];for(const _0x22330e of _0x2b5f17)switch(_0x22330e['type']){case'text':if(_0x22330e['add']=_0x22330e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x22330e['remove']=_0x22330e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x22330e['add']&&''!=_0x22330e['remove']){_0x10232e['push']({'type':'replace','content':wt(_0x5013c5,'REPLACE_TEXT',['\x22'+_0x22330e['remove']+'\x22','\x22'+_0x22330e['add']+'\x22'])});continue;}if(null!=_0x22330e['add']['match'](/^ +$/)){_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0',wt(_0x5013c5,'ELEMENT_SPACE',_0x22330e['add']['length']))});continue;}if(null!=_0x22330e['remove']['match'](/^ +$/)){_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0',wt(_0x5013c5,'ELEMENT_SPACE',_0x22330e['remove']['length']))});continue;}if(''!=_0x22330e['add']){_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0','\x22'+_0x22330e['add']+'\x22')});continue;}_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0','\x22'+_0x22330e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Insert:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Remove:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'addContainer':_0x10232e['push']({'type':'insertion','content':wt(_0x5013c5,'*Split:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'removeContainer':_0x10232e['push']({'type':'deletion','content':wt(_0x5013c5,'*Merge:*\x20%0',this['getItemLabel'](_0x22330e['element'],_0x22330e['quantity']))});continue;case'addFormat':_0x8f12f7['push'](_0x22330e['key']);continue;case'removeFormat':_0x50f695['push'](_0x22330e['key']);continue;default:_0x10232e['push'](_0x22330e);}if(_0x8f12f7['length']){const _0x418aab=_0x8f12f7['map'](_0x45ab4c=>this['_attributeLabels']['has'](_0x45ab4c)?this['_attributeLabels']['get'](_0x45ab4c):_0x45ab4c)['join'](',\x20');_0x10232e['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x418aab)});}if(_0x50f695['length']){const _0xf00990=_0x50f695['map'](_0x326cd3=>this['_attributeLabels']['has'](_0x326cd3)?this['_attributeLabels']['get'](_0x326cd3):_0x326cd3)['join'](',\x20');_0x10232e['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0xf00990)});}return _0x10232e;}_handleCustomCallbackDescription(_0x48481f){for(const _0x48edbd of this['_customCallbacks']){const _0x13a3c0=_0x48edbd(_0x48481f);if(_0x13a3c0&&'type'in _0x13a3c0)return _0x13a3c0;}}_handleAttributeSuggestionDescription(_0x13f52e,_0x2c70a1){const _0x594aa2=_0x2c70a1['data'],_0x20106a=void 0x0===_0x594aa2['newValue']?'removeFormat':'addFormat';_0x13f52e['push']({'type':_0x20106a,'key':_0x594aa2['key']});}_handleRenameSuggestionDescription(_0x1c011d,_0x36ceca){_0x1c011d['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x36ceca['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x26bc83,_0x586e3d,_0x254c94){if(this['_addDescriptionItems'](_0x26bc83,_0x586e3d),_0x254c94&&_0x254c94['getFirstRange']()&&!_0x586e3d['getFirstRange']()['end']['isEqual'](_0x254c94['getFirstRange']()['start'])){const _0x5185b9=_0x26bc83[_0x26bc83['length']-0x1],_0x38b3b7='insertion'==_0x586e3d['type']?'add':'remove';_0x5185b9&&'text'==_0x5185b9['type']&&(_0x5185b9[_0x38b3b7]+='\x0a');}}},Ft=class extends _0x17c3d7{afterInit(){const _0x405a9a=this['editor'],_0x24eb8b=_0x405a9a['plugins']['get']('TrackChangesEditing');_0x405a9a['commands']['get']('showAIAssistant')&&_0x24eb8b['enableCommand']('showAIAssistant');}},vt=class extends _0x17c3d7{afterInit(){const _0x9ca40a=this['editor'],_0x14a983=_0x9ca40a['plugins']['get']('TrackChangesEditing');_0x9ca40a['commands']['get']('toggleAi')&&_0x14a983['enableCommand']('toggleAi');}},Dt=class extends _0x17c3d7{afterInit(){const _0x545a8a=this['editor'],_0x567632=_0x545a8a['plugins']['get']('TrackChangesEditing');_0x545a8a['commands']['get']('aiQuickAction')&&_0x567632['enableCommand']('aiQuickAction');}},Ut=class extends _0x17c3d7{afterInit(){const _0x590a19=this['editor'],_0x2e44ce=_0x590a19['locale'];if(!_0x590a19['plugins']['has']('AlignmentEditing'))return;const _0x47717a=_0x590a19['plugins']['get']('TrackChangesEditing');_0x47717a['enableDefaultAttributesIntegration']('alignment'),_0x47717a['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x2e44ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x30ee31=this['editor'],_0x4c2edd=_0x30ee31['locale'];_0x30ee31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x591325=>{if('formatBlock'!=_0x591325['type'])return;const {data:_0x3bd48b}=_0x591325;if(_0x3bd48b&&'alignment'==_0x3bd48b['commandName']){const _0x1eeeb9=_0x3bd48b['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x4c2edd,'*Format:*\x20%0',function(_0x509155){switch(_0x509155){case'left':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x4c2edd,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x4c2edd,'FORMAT_JUSTIFY_TEXT');}}(_0x1eeeb9))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x17c3d7{afterInit(){const _0x434f38=this['editor'],_0x16c103=_0x434f38['plugins']['get']('TrackChangesEditing'),_0x33047f=_0x434f38['locale'];for(const _0x127911 of Pt){if(!_0x434f38['plugins']['has'](_0x127911))continue;const _0xfee2bd=_0x127911['slice'](0x0,-0x7)['toLowerCase'](),_0x40414d='FORMAT_'+_0xfee2bd['toUpperCase']();_0x16c103['enableDefaultAttributesIntegration'](_0xfee2bd),_0x16c103['descriptionFactory']['registerAttributeLabel'](_0xfee2bd,wt(_0x33047f,_0x40414d));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4fa7d5=this['editor'],_0x5329d8=_0x4fa7d5['locale'],_0x1178af=_0x4fa7d5['plugins']['get']('TrackChangesEditing');function _0x1b1c37(_0x4499bc,_0x1e171e){_0x1178af['descriptionFactory']['registerDescriptionCallback'](_0x5e9f59=>{if('formatInline'!=_0x5e9f59['type'])return;const {data:_0xac0234}=_0x5e9f59;return _0xac0234&&_0xac0234['commandName']===_0x4499bc?_0xac0234['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x5329d8,'*Format:*\x20%0',_0x1e171e)}:{'type':'format','content':wt(_0x5329d8,'*Remove\x20format:*\x20%0',_0x1e171e)}:void 0x0;});}_0x1b1c37('bold',wt(_0x5329d8,'FORMAT_BOLD')),_0x1b1c37('italic',wt(_0x5329d8,'FORMAT_ITALIC')),_0x1b1c37('underline',wt(_0x5329d8,'FORMAT_UNDERLINE')),_0x1b1c37('code',wt(_0x5329d8,'FORMAT_CODE')),_0x1b1c37('strikethrough',wt(_0x5329d8,'FORMAT_STRIKETHROUGH')),_0x1b1c37('subscript',wt(_0x5329d8,'FORMAT_SUBSCRIPT')),_0x1b1c37('superscript',wt(_0x5329d8,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x17c3d7{afterInit(){const _0xf3f4ed=this['editor'],_0x2e4928=_0xf3f4ed['locale'];if(!_0xf3f4ed['plugins']['has']('BlockQuoteEditing'))return;const _0x34d967=_0xf3f4ed['plugins']['get']('TrackChangesEditing'),_0x1ea661=this['editor']['commands']['get']('blockQuote');_0x34d967['enableCommand']('blockQuote',(_0x28c0f8,_0x3b2386={})=>{const _0x2facbe=this['editor']['model']['document']['selection'],_0x479f37=_0x3b2386&&void 0x0!==_0x3b2386['forceValue']?_0x3b2386['forceValue']:!_0x1ea661['value'];let _0x360721=[];if(_0x479f37){const _0x53b858=Array['from'](_0x2facbe['getSelectedBlocks']())['filter'](_0x7fbd37=>Ht(_0x7fbd37)||function(_0x169710,_0x3f0d33){const _0x58206d=_0x3f0d33['createContext'](_0x169710['parent']);return!!_0x3f0d33['checkChild'](_0x58206d,'blockQuote')&&!!_0x3f0d33['checkChild'](_0x58206d['push']('blockQuote'),_0x169710);}(_0x7fbd37,this['editor']['model']['schema']));_0x360721=kt(_0x53b858,_0xf3f4ed['model']);}else{const _0xdf3d22=Array['from'](_0x2facbe['getSelectedBlocks']())['filter'](_0x3fe0aa=>Ht(_0x3fe0aa));_0x360721=kt(_0xdf3d22,_0xf3f4ed['model']);}_0xf3f4ed['model']['change'](()=>{for(const _0x489951 of _0x360721)_0x34d967['markBlockFormat'](_0x489951,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x479f37}]});});}),_0x34d967['descriptionFactory']['registerDescriptionCallback'](_0x29cf96=>{const {data:_0x4de34a}=_0x29cf96;if(_0x4de34a&&'blockQuote'==_0x4de34a['commandName']){const _0x5c9d83=wt(_0x2e4928,'ELEMENT_BLOCK_QUOTE');return _0x4de34a['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x2e4928,'*Set\x20format:*\x20%0',_0x5c9d83)}:{'type':'format','content':wt(_0x2e4928,'*Remove\x20format:*\x20%0',_0x5c9d83)};}});}};function Ht(_0x1c2bc1){return'blockQuote'==_0x1c2bc1['parent']['name'];}var $t=class extends _0x17c3d7{afterInit(){const _0x1ac041=this['editor'],_0xa81f2d=_0x1ac041['locale'],_0x264801=_0x1ac041['plugins']['get']('TrackChangesEditing');_0x1ac041['plugins']['has']('BookmarkEditing')&&(_0x264801['enableCommand']('insertBookmark'),_0x264801['enableDefaultAttributesIntegration']('updateBookmark'),_0x264801['descriptionFactory']['registerDescriptionCallback'](_0xe34eb4=>{if('insertion'!=_0xe34eb4['type']&&'deletion'!=_0xe34eb4['type']&&'attribute'!=_0xe34eb4['type'])return;const _0x428d04=_0xe34eb4['getContainedElement']();if(null==_0x428d04)return;if(!_0x428d04['is']('element','bookmark'))return;const _0x4d6380=_0x428d04['getAttribute']('bookmarkId');if('insertion'==_0xe34eb4['type'])return{'type':'insertion','content':wt(_0xa81f2d,'*Insert:*\x20%0','\x22'+_0x4d6380+'\x22\x20'+wt(_0xa81f2d,'ELEMENT_BOOKMARK'))};if('deletion'==_0xe34eb4['type'])return{'type':'deletion','content':wt(_0xa81f2d,'*Remove:*\x20%0','\x22'+_0x4d6380+'\x22\x20'+wt(_0xa81f2d,'ELEMENT_BOOKMARK'))};const {data:_0x27d5c2}=_0xe34eb4;return _0x27d5c2&&'bookmarkId'==_0x27d5c2['key']?{'type':'format','content':wt(_0xa81f2d,'*Set\x20bookmark:*\x20%0','\x22'+_0x27d5c2['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x17c3d7{afterInit(){const _0x3d86da=this['editor'];_0x3d86da['plugins']['has']('CaseChange')&&(_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3d86da['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x17c3d7{afterInit(){const _0xe9fff5=this['editor'];_0xe9fff5['commands']['get']('ckbox')&&_0xe9fff5['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x17c3d7{static get requires(){return[ft,mt];}constructor(_0x53fd89){super(_0x53fd89),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x1f5f15=this['editor'],_0xe791cf=_0x1f5f15['plugins']['get']('ClipboardMarkersUtils'),_0x3ca127=_0x1f5f15['plugins']['get'](mt);_0xe791cf['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x3ca127['on']('outputTransformation',(_0x5b01ec,_0xa05546)=>{const _0x3fd6e8=this['_getSuggestionEntries'](_0xa05546);for(const [_0x3cf24b,_0x5b0585]of _0xa05546['content']['markers']){const _0x31a323=at['_fromRangeInDocumentFragment'](_0x5b0585,_0x1f5f15['model']);function _0x4a659f(){_0x31a323['detach'](),_0xa05546['content']['markers']['delete'](_0x3cf24b);}_0x31a323['on']('change:drop',_0x4a659f),(_0x3cf24b['startsWith']('suggestion:')||_0x3cf24b['startsWith']('comment:'))&&_0x31a323['on']('change:range',()=>{_0x31a323['isCollapsed']&&_0x4a659f();}),_0xa05546['content']['markers']['set'](_0x3cf24b,_0x31a323);}const _0x22b1c8=_0x3fd6e8['filter'](_0x28d294=>'deletion'===_0x28d294['meta']['type'])['map'](_0x363c29=>_0x363c29['modelRange']);if(this['_shouldSkipDeletions'](_0x22b1c8,_0xa05546['content']))return[..._0x3fd6e8]['forEach'](_0x596d9a=>{_0xa05546['content']['markers']['get'](_0x596d9a['markerName'])['detach'](),_0xa05546['content']['markers']['delete'](_0x596d9a['markerName']);}),void this['_restoreRegularRanges'](_0xa05546['content']['markers']);[..._0x3fd6e8]['forEach'](_0x258c27=>{const _0x12a9fb=_0x1f5f15['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x258c27['meta']['type'],_0x258c27['meta']['subType'],'accept'),{markerName:_0x1d7b77,meta:_0x315a5d}=_0x258c27;if(_0xa05546['content']['markers']['has'](_0x1d7b77)){switch(_0x315a5d['type']){case'deletion':if('tableRow'===_0x315a5d['subType']||'tableColumn'===_0x315a5d['subType']){if(!_0x1f5f15['plugins']['has']('TableUtils'))break;const _0x37fd92=_0x1f5f15['plugins']['get']('TableUtils'),_0x2c0ec5=_0x37fd92['getSelectionAffectedTableCells'](_0x1f5f15['model']['createSelection'](_0xa05546['content']['markers']['get'](_0x1d7b77))),_0x38e68a=_0x2c0ec5[0x0]['findAncestor']('table');if('tableRow'===_0x315a5d['subType']){const {first:_0x42904a,last:_0x2af82d}=_0x37fd92['getRowIndexes'](_0x2c0ec5);_0x37fd92['removeRows'](_0x38e68a,{'at':_0x42904a,'rows':_0x2af82d-_0x42904a+0x1});}else{const {first:_0x1436ff,last:_0x1da713}=_0x37fd92['getColumnIndexes'](_0x2c0ec5);_0x37fd92['removeColumns'](_0x38e68a,{'at':_0x1436ff,'columns':_0x1da713-_0x1436ff+0x1});}break;}_0x12a9fb([_0xa05546['content']['markers']['get'](_0x1d7b77)]);}_0xa05546['content']['markers']['has'](_0x1d7b77)&&(_0xa05546['content']['markers']['get'](_0x1d7b77)['detach'](),_0xa05546['content']['markers']['delete'](_0x1d7b77));}}),this['_restoreRegularRanges'](_0xa05546['content']['markers']);});}_getSuggestionEntries(_0x28a78d){const _0x435389=_0x1ee834=>'dragstart'===_0x28a78d['method']?_0x1ee834['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x1ee834;return Array['from'](_0x28a78d['content']['markers'])['map'](([_0x197513,_0x1dd99b])=>({'markerName':_0x197513,'modelRange':_0x1dd99b,'meta':nt(_0x435389(_0x197513))}))['filter'](({meta:_0x29871c})=>'suggestion'===_0x29871c['group']);}_shouldSkipDeletions(_0x34ae4c,_0xec95f0){if(!_0x34ae4c['length'])return!0x1;let _0x5accd5=[this['editor']['model']['createRangeIn'](_0xec95f0)];for(const _0x1fd2e4 of _0x34ae4c)_0x5accd5=_0x5accd5['flatMap'](_0x35f507=>_0x35f507['getDifference'](_0x1fd2e4));return!_0x5accd5['some'](_0x181a05=>this['editor']['model']['hasContent'](_0x181a05,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x248d09){[..._0x248d09['keys']()]['forEach'](_0x2ad2fe=>{const _0x1a6c58=_0x248d09['get'](_0x2ad2fe);_0x1a6c58['detach'](),_0x248d09['set'](_0x2ad2fe,_0x1a6c58['toRange']());});}},jt=class extends _0x17c3d7{afterInit(){const _0x228f50=this['editor'];if(!_0x228f50['plugins']['has']('CodeBlock'))return;const _0x1f0854=_0x228f50['plugins']['get']('TrackChangesEditing'),_0x3ffeec=_0x228f50['locale'],_0x31a641=_0x228f50['config']['get']('codeBlock')['languages'],_0x23fe2e=_0x228f50['commands']['get']('codeBlock');_0x1f0854['enableCommand']('indentCodeBlock'),_0x1f0854['enableCommand']('outdentCodeBlock'),_0x1f0854['enableCommand']('codeBlock',(_0x206774,_0x28346d={})=>{const _0x85ed57=_0x228f50['model'],_0x9f0b5b=_0x228f50['model']['document']['selection'],_0x2b6a98=_0x28346d&&void 0x0!==_0x28346d['forceValue']?_0x28346d['forceValue']:!_0x23fe2e['value'];let _0xb1a051;_0x28346d['language']||(_0x28346d['language']=_0x31a641[0x0]['language']),_0xb1a051=_0x2b6a98?Array['from'](_0x9f0b5b['getSelectedBlocks']())['filter'](_0x12dcad=>{return Kt(_0x12dcad)||(_0x3e6511=_0x12dcad,_0x11f3e3=_0x85ed57['schema'],!_0x3e6511['is']('rootElement')&&!_0x11f3e3['isLimit'](_0x3e6511)&&_0x11f3e3['checkChild'](_0x3e6511['parent'],'codeBlock'));var _0x3e6511,_0x11f3e3;}):Array['from'](_0x9f0b5b['getSelectedBlocks']())['filter'](_0x4aeda4=>Kt(_0x4aeda4));const _0x4f71a3=kt(_0xb1a051,_0x85ed57);_0x85ed57['change'](()=>{for(const _0x3a255 of _0x4f71a3)_0x1f0854['markBlockFormat'](_0x3a255,{'commandName':'codeBlock','commandParams':[{..._0x28346d,'forceValue':_0x2b6a98}],'formatGroupId':'blockName'});});}),(_0x1f0854['descriptionFactory']['registerElementLabel']('codeBlock',_0x322ee2=>wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',_0x322ee2)),_0x1f0854['descriptionFactory']['registerDescriptionCallback'](_0x3ce469=>{if('formatBlock'!=_0x3ce469['type'])return;const _0x2766a8=_0x3ffeec['t'],{data:_0x57252a}=_0x3ce469;if(!_0x57252a||'codeBlock'!=_0x57252a['commandName'])return;const _0xf02128=_0x57252a['commandParams'][0x0]['language'],_0x52f6c6=_0x2766a8(_0x31a641['find'](_0x3222ae=>_0x3222ae['language']===_0xf02128)['label'])['toLowerCase']();return _0x57252a['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x3ffeec,'*Set\x20format:*\x20%0',wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52f6c6+')')}:{'type':'format','content':wt(_0x3ffeec,'*Remove\x20format:*\x20%0',wt(_0x3ffeec,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x5bbdab){return'codeBlock'==_0x5bbdab['name'];}var Xt=class extends _0x17c3d7{afterInit(){const _0x18ac36=this['editor'];_0x18ac36['plugins']['has']('CommentsEditing')&&_0x18ac36['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x17c3d7{static get requires(){return[Et];}init(){const _0x30e2ce=this['editor'],_0x4d738e=_0x30e2ce['plugins']['get']('TrackChangesEditing');_0x4d738e['enableCommand']('delete');const _0x35487e=_0x30e2ce['commands']['get']('deleteForward');_0x4d738e['enableCommand']('deleteForward',(_0x27e740,_0x1f477e={})=>{const _0x1ff0c6=_0x30e2ce['model']['createSelection'](_0x30e2ce['model']['document']['selection']);_0x1ff0c6['isCollapsed']&&_0x30e2ce['model']['modifySelection'](_0x1ff0c6,{'direction':'forward','unit':_0x1f477e['unit']});const _0x12c08e=_0x1ff0c6['getFirstRange'](),_0x273adf=at['fromRange'](_0x12c08e);let _0x3fc7de;_0x27e740(_0x1f477e),_0x3fc7de='$graveyard'==_0x273adf['root']['rootName']?_0x30e2ce['model']['createRange'](_0x12c08e['start']):_0x30e2ce['model']['createRange'](_0x273adf['start'],_0x273adf['end']),_0x273adf['detach'](),_0x30e2ce['model']['enqueueChange'](_0x35487e['buffer']['batch'],_0x1d5452=>{_0x35487e['buffer']['lock'](),_0x1d5452['setSelection'](_0x1d5452['createRange'](_0x3fc7de['end'])),_0x35487e['buffer']['unlock']();});});}},Yt=class extends _0x17c3d7{afterInit(){const _0x282e4a=this['editor'];if(!_0x282e4a['plugins']['has']('ListEditing'))return;const _0x27f019=_0x282e4a['locale'],_0x2722df=_0x282e4a['plugins']['get']('TrackChangesEditing'),_0x3bb930=_0x282e4a['plugins']['has']('TodoListEditing'),_0x6eb9f4=!!_0x282e4a['config']['get']('list.multiBlock');function _0x35b20d(_0x4405ad){return{'type':'format','content':''+wt(_0x27f019,'*Set\x20format:*\x20%0',_0x4405ad)};}function _0x4d1705(_0x126a5d){return{'type':'format','content':''+wt(_0x27f019,'*Remove\x20format:*\x20%0',_0x126a5d)};}_0x2722df['enableDefaultAttributesIntegration']('numberedList'),_0x2722df['enableDefaultAttributesIntegration']('bulletedList'),_0x2722df['enableDefaultAttributesIntegration']('customNumberedList'),_0x2722df['enableDefaultAttributesIntegration']('customBulletedList'),_0x2722df['enableDefaultAttributesIntegration']('indentList'),_0x2722df['enableDefaultAttributesIntegration']('outdentList'),_0x2722df['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2722df['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x6eb9f4&&(_0x2722df['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2722df['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3bb930&&(_0x2722df['enableDefaultAttributesIntegration']('todoList'),_0x2722df['enableDefaultAttributesIntegration']('checkTodoList'),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0xe871e3=>{const {data:_0x26f7c6}=_0xe871e3;if(_0x26f7c6&&'todoListChecked'==_0x26f7c6['key'])return{'type':'format','content':_0x26f7c6['newValue']?wt(_0x27f019,'*Check\x20item*'):wt(_0x27f019,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5726f3=>{if(_0x5726f3['batch']['isUndo'])return!0x1;let _0x147b6b=!0x1;const _0x4cc708=_0x2722df['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55099e=>'todoListChecked'===_0x2722df['_getAttributeKey'](_0x55099e));for(const _0x39435f of _0x4cc708)'todo'!=_0x39435f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2722df['_findSuggestions'](_0x39435f['getFirstRange'](),'attribute')['find'](_0x3da9d1=>'listType'===_0x2722df['_getAttributeKey'](_0x3da9d1['suggestion']))||(_0x5726f3['removeMarker'](_0x39435f['getFirstMarker']()),_0x147b6b=!0x0));return _0x147b6b;})),_0x2722df['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x27f019,'FORMAT_INDENT'));const _0x2762bd={'type':'format','content':''};_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0xf12f95=>{const {data:_0x59d3a3}=_0xf12f95;if(!_0x59d3a3||'listType'!=_0x59d3a3['key'])return;let _0x2c5c52=_0xf12f95['head'];for(;_0x2c5c52;){if(_0x2c5c52['data']&&(('listStyle'==_0x2c5c52['data']['key']||'listMarkerStyle'==_0x2c5c52['data']['key'])&&(_0x2c5c52['data']['newValue']&&'default'!=_0x2c5c52['data']['newValue']||'default'!=_0x2c5c52['data']['oldValue']&&!_0x59d3a3['newValue'])||!_0x6eb9f4&&'$elementName'==_0x2c5c52['data']['key']))return _0x2762bd;_0x2c5c52=_0x2c5c52['next'];}if(null==_0x59d3a3['newValue'])switch(_0x59d3a3['oldValue']){case'bulleted':return _0x4d1705(wt(_0x27f019,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4d1705(wt(_0x27f019,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4d1705(wt(_0x27f019,'ELEMENT_TODO_LIST'));}switch(_0x59d3a3['newValue']){case'bulleted':return _0x35b20d(wt(_0x27f019,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x35b20d(wt(_0x27f019,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x35b20d(wt(_0x27f019,'ELEMENT_TODO_LIST'));}}),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0x2ab78f=>{const {data:_0x16187e}=_0x2ab78f;if(_0x16187e&&'listIndent'==_0x16187e['key'])return null==_0x16187e['newValue']||null==_0x16187e['oldValue']&&0x0==_0x16187e['newValue']?_0x2762bd:void 0x0;}),_0x2722df['descriptionFactory']['registerDescriptionCallback'](_0x2de877=>{if('attribute'!=_0x2de877['type'])return;const {data:_0x157f51}=_0x2de877;if(!_0x157f51||'listItemId'!=_0x157f51['key'])return;const _0x569fa1=Qt(_0x2de877);return'newValue'==_0x569fa1?{'type':'format','content':wt(_0x27f019,'*Merge:*\x20list\x20item')}:'oldValue'==_0x569fa1?{'type':'format','content':wt(_0x27f019,'*Split:*\x20list\x20item')}:_0x2762bd;}),_0x282e4a['model']['document']['registerPostFixer'](_0x3c9384=>this['listItemIdFixer'](_0x3c9384)),_0x282e4a['model']['document']['registerPostFixer'](_0x301368=>this['noTrackChangesFixer'](_0x301368)),_0x282e4a['model']['document']['on']('change:data',(_0x1b648a,_0x148ce5)=>{if(_0x148ce5['isUndo']||!_0x148ce5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0xb9a336){if(_0xb9a336['batch']['isUndo']||!_0xb9a336['batch']['isLocal'])return!0x1;let _0x2c44d6=!0x1;const _0x1a17e9=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3cf1a2=>_0x3cf1a2['data']&&'listItemId'==_0x3cf1a2['data']['key'])['filter'](_0x1196ac=>_0x1196ac['data']['newValue']&&_0x1196ac['data']['oldValue']);for(const _0xc15c2e of _0x1a17e9)Qt(_0xc15c2e)||(_0xb9a336['removeMarker'](_0xc15c2e['getFirstMarker']()),_0x2c44d6=!0x0);return _0x2c44d6;}['noTrackChangesFixer'](_0x267295){if(_0x267295['batch']['isUndo']||!_0x267295['batch']['isLocal'])return!0x1;const _0x300ae1=this['editor']['model']['document']['differ'],_0x3a47a1=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3a47a1['trackChangesCommand']['value'])return!0x1;let _0xe6649b=!0x1;const _0x118f4c=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x442b98=_0x300ae1['getChanges']()['filter'](_0x3ecf3f=>'attribute'==_0x3ecf3f['type'])['filter'](_0x5042e2=>_0x118f4c['has'](_0x5042e2['attributeKey']));if(0x0==_0x442b98['length'])return _0xe6649b;const _0x363e8e=new Set(_0x300ae1['getMarkersToAdd']()['filter'](_0x29345a=>{if(!_0x29345a['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x201879=nt(_0x29345a['name'])['subType']['split']('|')[0x0];return _0x118f4c['has'](_0x201879);})['map'](_0x13680f=>nt(_0x13680f['name'])['id']));for(const _0x2f685a of _0x442b98){const _0x4e2be5=_0x3a47a1['_findSuggestions'](_0x2f685a['range'],'attribute')['filter'](_0x1da86e=>{if(_0x1da86e['meta']['isNextTo'])return!0x1;if(_0x363e8e['has'](_0x1da86e['suggestion']['id']))return!0x1;const _0x1f6202=_0x3a47a1['_getAttributeKey'](_0x1da86e['suggestion']);return _0x118f4c['has'](_0x1f6202);})['map'](_0x3595c6=>_0x3595c6['suggestion']);if(_0x4e2be5['length']){for(const _0x1cde89 of _0x4e2be5)_0x267295['removeMarker'](_0x1cde89['getFirstMarker']());_0xe6649b=!0x0;}}return _0xe6649b;}['assureChains'](){const _0x1cee2c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x176bae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1486dd;const _0x1fa105=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x525802=>{if(_0x525802['data']['oldRange']||!_0x525802['data']['newRange'])return null;if(!_0x525802['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x20971e}=nt(_0x525802['name']);if(!_0x1cee2c['hasSuggestion'](_0x20971e))return null;const _0x33f2e7=_0x1cee2c['getSuggestion'](_0x20971e);return _0x176bae['includes'](_0x33f2e7['data']['key']);})['map'](_0x363304=>{const {id:_0x4a95c5}=nt(_0x363304['name']),_0x721947=_0x1cee2c['getSuggestion'](_0x4a95c5);return _0x1486dd=_0x721947['attributes']['groupId'],_0x721947['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1fa105['size'])return;const _0x43025a=_0x1cee2c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x52643d=>'attribute'==_0x52643d['type']&&_0x52643d['data']&&_0x176bae['includes'](_0x52643d['data']['key'])&&_0x52643d['attributes']['groupId']!=_0x1486dd)['map'](_0x2e5148=>({'listItem':_0x2e5148['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2e5148['attributes']['groupId']})),_0x45d905=new Set();for(const {groupId:_0x465764,listItem:_0x2de9c3}of _0x43025a)_0x1fa105['has'](_0x2de9c3)&&_0x45d905['add'](_0x465764);for(const _0x571b67 of _0x1cee2c['getSuggestions']())_0x45d905['has'](_0x571b67['attributes']['groupId'])&&_0x571b67['setAttribute']('groupId',_0x1486dd);}_supportLegacySuggestions(){const _0x4a0142=this['editor'],_0x26bb09=_0x4a0142['locale'],_0x59f9ce=_0x4a0142['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x59f9ce['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x28c3e2,_0x1d8b5d){const _0x3a784c=[];for(let _0x47cb17 of _0x28c3e2)_0x47cb17['start']['nodeAfter']===_0x47cb17['end']['parent']&&(_0x47cb17=_0x4a0142['model']['createRange'](_0x4a0142['model']['createPositionAt'](_0x47cb17['start']['nodeAfter'],0x0))),_0x3a784c['push'](_0x47cb17);_0x4a0142['model']['change'](_0x5f53a7=>{const _0x190f86=_0x4a0142['model']['document']['selection'],_0x4dab9f=Array['from'](_0x190f86['getRanges']())['map'](_0x3e173c=>at['fromRange'](_0x3e173c));_0x5f53a7['setSelection'](_0x3a784c),_0x4a0142['commands']['get'](_0x1d8b5d['commandName'])['refresh'](),_0x1d8b5d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4a0142['execute'](_0x1d8b5d['commandName'],..._0x1d8b5d['commandParams']),_0x5f53a7['setSelection'](_0x4dab9f);for(const _0x393f3a of _0x4dab9f)_0x393f3a['detach']();});}),_0x59f9ce['descriptionFactory']['registerElementLabel'](function(_0x2cd940){const _0x2bfe55=!_0x4a0142['model']['schema']['isObject'](_0x2cd940),_0x43ff69=_0x2cd940['previousSibling'],_0x118fd1=_0x2cd940['nextSibling'],_0x3b8097=_0x2cd940['getAttribute']('listItemId'),_0x59122f=!_0x43ff69||_0x43ff69['getAttribute']('listItemId')!==_0x3b8097,_0x5ebdc2=!_0x118fd1||_0x118fd1['getAttribute']('listItemId')!==_0x3b8097;return _0x2bfe55&&Boolean(_0x3b8097)&&_0x59122f&&_0x5ebdc2;},_0x1d981b=>wt(_0x26bb09,'ELEMENT_LIST_ITEM',_0x1d981b));}_registerLegacyDescription(){const _0x3f99db=this['editor'],_0x4e681d=_0x3f99db['locale'];function _0x4d8ef7(_0x42e42c){const _0x2128e4=_0x3f99db['commands']['get']('bulletedList')['value'],_0x738add=_0x3f99db['commands']['get']('numberedList')['value'];return'numberedList'===_0x42e42c?_0x2128e4:_0x738add;}_0x3f99db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2e7f48){if('formatBlock'!=_0x2e7f48['type'])return;const {data:_0x235ab4}=_0x2e7f48;if(!_0x235ab4)return;let _0x212a73,_0x4ea723,_0x393982,_0xa2658a;switch(_0x235ab4['commandName']){case'bulletedList':_0x393982=_0x235ab4['commandParams'][0x0]['forceValue'],_0xa2658a=_0x4d8ef7(_0x235ab4['commandName']),_0x212a73=_0x393982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2658a&&_0x3f99db['config']['get']('list.multiBlock')||(_0x212a73='*Change\x20to:*\x20%0'),_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x393982=_0x235ab4['commandParams'][0x0]['forceValue'],_0xa2658a=_0x4d8ef7(_0x235ab4['commandName']),_0x212a73=_0x393982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xa2658a&&_0x3f99db['config']['get']('list.multiBlock')||(_0x212a73='*Change\x20to:*\x20%0'),_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x212a73='*Indent:*\x20%0',_0x4ea723={'type':'format','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x212a73=function(_0x57aea1){const _0x37edf2=_0x57aea1['getFirstRange']();let _0x4de00c=_0x37edf2['start']['nodeAfter'];for(;_0x4de00c&&_0x37edf2['containsItem'](_0x4de00c);){if(_0x4de00c['getAttribute']('listIndent')>0x0)return!0x1;_0x4de00c=_0x4de00c['nextSibling'];}return!0x0;}(_0x2e7f48)?wt(_0x4e681d,'*Format:*\x20remove\x20from\x20%0',wt(_0x4e681d,function(_0x50b879){return'ELEMENT_'+_0x50b879['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2e7f48))):wt(_0x4e681d,'*Outdent:*\x20%0',wt(_0x4e681d,'ELEMENT_LIST_ITEM')),_0x4ea723={'type':'format','content':_0x212a73};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x235ab4['multipleBlocks']&&(_0x212a73='*Merge:*\x20%0',_0x4ea723={'type':'deletion','content':wt(_0x4e681d,_0x212a73,wt(_0x4e681d,'ELEMENT_LIST_ITEM'))});}return _0x4ea723;});}};function Qt(_0x44454f){let _0x4b8006=_0x44454f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b8006;){const _0xba65d7=_0x4b8006['getAttribute']('listItemId');if(!_0xba65d7)return!0x1;if(_0xba65d7==_0x44454f['data']['newValue'])return'newValue';if(_0xba65d7==_0x44454f['data']['oldValue'])return'oldValue';_0x4b8006=_0x4b8006['previousSibling'];}return!0x1;}var Zt=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4565c0=this['editor']['config']['get']('list.properties'),_0x5627b9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4565c0['styles']&&_0x5627b9['enableDefaultAttributesIntegration']('listStyle'),_0x4565c0['reversed']&&_0x5627b9['enableDefaultAttributesIntegration']('listReversed'),_0x4565c0['startIndex']&&_0x5627b9['enableDefaultAttributesIntegration']('listStart');const _0x435fc4={'type':'format','content':''};_0x5627b9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b51e5=this['editor']['locale'];_0x5627b9['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x2b51e5,'FORMAT_LIST_REVERSED')),_0x5627b9['descriptionFactory']['registerDescriptionCallback'](_0x3a4739=>{const {data:_0x397409}=_0x3a4739;if(_0x397409&&'listReversed'==_0x397409['key'])return null==_0x397409['newValue']||0x0==_0x397409['newValue']&&null==_0x397409['oldValue']?_0x435fc4:void 0x0;}),_0x5627b9['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x2b51e5,'FORMAT_LIST_START')),_0x5627b9['descriptionFactory']['registerDescriptionCallback'](_0x10a7bd=>{const {data:_0x3582c8}=_0x10a7bd;if(_0x3582c8&&'listStart'==_0x3582c8['key'])return null==_0x3582c8['newValue']||0x1==_0x3582c8['newValue']&&null==_0x3582c8['oldValue']?_0x435fc4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4992b3=>{if(_0x4992b3['batch']['isUndo'])return!0x1;let _0x8c5486=!0x1;const _0x3537a6=_0x5627b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x406f2a=>{const _0x52fd1e=_0x5627b9['_getAttributeKey'](_0x406f2a);return'listStart'==_0x52fd1e||'listReversed'==_0x52fd1e;});for(const _0x2ee530 of _0x3537a6){const _0x97a56f=_0x2ee530['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x97a56f&&'customNumbered'!=_0x97a56f&&(_0x5627b9['_findSuggestions'](_0x2ee530['getFirstRange'](),'attribute')['find'](_0x3aebbf=>'listType'==_0x5627b9['_getAttributeKey'](_0x3aebbf['suggestion']))||(_0x4992b3['removeMarker'](_0x2ee530['getFirstMarker']()),_0x8c5486=!0x0));}return _0x8c5486;}),this['_registerLegacyDescription']();}handleDescriptions(_0x53f66d){const _0x4a6a34=this['editor']['locale'],{data:_0x520e7d}=_0x53f66d,_0x4adf15={'type':'format','content':''};if(!_0x520e7d||'listStyle'!=_0x520e7d['key'])return;if(!_0x520e7d['oldValue'])return'default'==_0x520e7d['newValue']?_0x4adf15:{'type':'format','content':''+wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['newValue'])))};if(!_0x520e7d['newValue']){if('default'==_0x520e7d['oldValue'])return _0x4adf15;let _0x407697=_0x53f66d['head'];for(;_0x407697;){if(_0x407697['data']&&'listType'==_0x407697['data']['key']&&_0x407697['data']['newValue'])return _0x4adf15;_0x407697=_0x407697['next'];}return{'type':'format','content':''+wt(_0x4a6a34,'*Remove\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['oldValue'])))};}if('default'!=_0x520e7d['newValue'])return{'type':'format','content':''+wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,this['_getTranslationKeyForListStyle'](_0x520e7d['newValue'])))};let _0x48d737=_0x53f66d['head'];for(;_0x48d737;){if(_0x48d737['data']&&'listType'==_0x48d737['data']['key']&&_0x48d737['data']['newValue']&&_0x48d737['data']['oldValue'])return _0x4adf15;_0x48d737=_0x48d737['next'];}return{'type':'format','content':wt(_0x4a6a34,'*Set\x20format:*\x20%0',wt(_0x4a6a34,'ELEMENT_'+_0x53f66d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x210e75=this['editor'],_0x1c731d=_0x210e75['locale'];_0x210e75['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e442b=>{if('formatBlock'!=_0x3e442b['type'])return;const {data:_0x8e917}=_0x3e442b;if(!_0x8e917)return;let _0x6adfa,_0x1ead01;switch(_0x8e917['commandName']){case'listStyle':_0x6adfa='*Change\x20to:*\x20%0',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa,wt(_0x1c731d,this['_getTranslationKeyForListStyle'](_0x8e917['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6adfa=_0x8e917['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa)};break;case'listStart':_0x6adfa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ead01={'type':'format','content':wt(_0x1c731d,_0x6adfa,_0x8e917['commandParams'][0x0]['startIndex'])};}return _0x1ead01;});}_getTranslationKeyForListStyle(_0x47057b){return'ELEMENT_'+(_0x3ab5d1=_0x47057b,Jt['includes'](_0x3ab5d1)?'bulleted':te['includes'](_0x3ab5d1)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x47057b['toUpperCase']()['replace'](/-/g,'_');var _0x3ab5d1;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x17c3d7{afterInit(){const _0x12b127=this['editor'];_0x12b127['commands']['get']('emoji')&&_0x12b127['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x17c3d7{static get requires(){return[_t];}init(){const _0x1c10ee=this['editor'],_0x1246b5=_0x1c10ee['plugins']['get']('TrackChangesEditing'),_0x472ccc=_0x1c10ee['commands']['get']('enter');_0x1246b5['enableCommand']('enter',()=>{_0x1c10ee['model']['change'](_0x2d0e5a=>{const _0x1dbdc9=_0x1c10ee['model']['document']['selection'],_0x8aeae1=_0x1dbdc9['getFirstPosition'](),_0xaff3ee=at['fromRange'](_0x1dbdc9['getFirstRange']());if(_0x472ccc['enterBlock'](_0x2d0e5a)){const _0x98c142=_0x1c10ee['model']['createPositionAt'](_0x8aeae1['parent']['nextSibling'],0x0),_0x17d405=_0x2d0e5a['createRange'](_0x8aeae1,_0x98c142);_0x1246b5['markInsertion'](_0x17d405);}else _0x2d0e5a['setSelection'](_0x2d0e5a['createRange'](_0xaff3ee['end']));_0xaff3ee['detach'](),_0x472ccc['fire']('afterExecute',{'writer':_0x2d0e5a});});});}},ie=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3b86da=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b86da['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3b86da['enableCommand']('findNext'),_0x3b86da['enableCommand']('findPrevious'),_0x3b86da['enableCommand']('replace'),_0x3b86da['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b0bc5,_0x20ad46,_0x5c5495={}){const _0x3a92f4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b0bc5(_0x6a1d33=>{let _0x223e55=('string'==typeof _0x20ad46?_0x3a92f4['findByTextCallback'](_0x20ad46,_0x5c5495):_0x20ad46)(_0x6a1d33);Array['isArray'](_0x223e55)&&(_0x223e55={'results':_0x223e55,'searchText':'string'==typeof _0x20ad46?_0x20ad46:''});const _0x4f320d=_0x223e55['results']['filter'](_0x123edf=>!0x1===this['_isInDeletionRange'](_0x123edf,_0x6a1d33['item']));return{..._0x223e55,'results':_0x4f320d};},_0x5c5495);}_isInDeletionRange(_0xa74dd7,_0x4a1f1){const _0x1fc37e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4a1f1,_0xa74dd7['start']),this['editor']['model']['createPositionAt'](_0x4a1f1,_0xa74dd7['end']));for(const _0x3dbe9a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1fc37e['getIntersection'](_0x3dbe9a['getRange']()))return!0x0;return!0x1;}};const se=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var re=class extends _0x17c3d7{afterInit(){const _0x293cf3=this['editor']['locale'],_0x1502ca=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xa6526,commandName:_0x4a5690}of se)this['editor']['plugins']['has'](_0xa6526)&&_0x1502ca['enableDefaultAttributesIntegration'](_0x4a5690);_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x293cf3,'FORMAT_FONT_SIZE')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x293cf3,'FORMAT_FONT_FAMILY')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x293cf3,'FORMAT_FONT_COLOR')),_0x1502ca['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x293cf3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x454872=this['editor'],_0x40ebec=_0x454872['locale'];_0x454872['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x522227=>{const _0x110946=_0x40ebec['t'];if('formatInline'!=_0x522227['type'])return;const {data:_0x16ea25}=_0x522227;if(null!=_0x16ea25){if('fontSize'==_0x16ea25['commandName']){const _0x594377=_0x16ea25['commandParams'][0x0]['value'];if(_0x594377){const _0x5bf734=_0x110946(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x768f1e=>_0x768f1e['model']==_0x594377)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20size:*\x20%0',_0x5bf734)};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x16ea25['commandName']){const _0x3d7dec=_0x16ea25['commandParams'][0x0]['value'];return _0x3d7dec?{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20family:*\x20%0',_0x3d7dec)}:{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x16ea25['commandName']){const _0x488e3b=_0x16ea25['commandParams'][0x0]['value'];if(_0x488e3b){const _0x2045f9=_0x1171c6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1c6a20=>_0x1c6a20['model']==_0x488e3b);let _0x17dcb8=_0x488e3b,_0x15cad2='';return _0x2045f9&&(_0x17dcb8=_0x2045f9['label'],_0x15cad2=_0x3b5c48(_0x40ebec,_0x17dcb8)['toLowerCase']()),{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20color:*\x20%0',_0x15cad2)['trim'](),'color':{'value':_0x488e3b,'title':_0x15cad2||_0x17dcb8}};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x16ea25['commandName']){const _0x2f6330=_0x16ea25['commandParams'][0x0]['value'];if(_0x2f6330){const _0x18ffd5=_0x1171c6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4660e3=>_0x4660e3['model']==_0x2f6330);let _0x17d806=_0x2f6330,_0x874e2f='';return _0x18ffd5&&(_0x17d806=_0x18ffd5['label'],_0x874e2f=_0x3b5c48(_0x40ebec,_0x17d806)['toLowerCase']()),{'type':'format','content':wt(_0x40ebec,'*Set\x20font\x20background\x20color:*\x20%0',_0x874e2f)['trim'](),'color':{'value':_0x2f6330,'title':_0x874e2f||_0x17d806}};}return{'type':'format','content':wt(_0x40ebec,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x17c3d7{afterInit(){const {plugins:_0x172821}=this['editor'];_0x172821['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x172821['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x19304e,plugins:_0x57c07e,commands:_0x1c39ee}=this['editor'],_0x3f85af=_0x57c07e['get']('TrackChangesEditing');_0x1c39ee['get']('footnotesStyle')&&_0x3f85af['enableDefaultAttributesIntegration']('footnotesStyle'),_0x1c39ee['get']('footnotesStart')&&_0x3f85af['enableDefaultAttributesIntegration']('footnotesStart'),_0x3f85af['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0x19304e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x3f85af['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0x19304e,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x33ce92=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x354043,commands:_0x52b982}=this['editor'];_0x52b982['get']('insertFootnote')&&_0x33ce92['enableCommand']('insertFootnote'),_0x33ce92['descriptionFactory']['registerElementLabel']('footnoteRef',_0x345f94=>wt(_0x354043,'ELEMENT_FOOTNOTE_REF',_0x345f94)),_0x33ce92['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4f6bd5=>wt(_0x354043,'ELEMENT_FOOTNOTE_DEFINITION',_0x4f6bd5)),_0x33ce92['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3cd9d4=>wt(_0x354043,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3cd9d4));}},ae=class extends _0x17c3d7{afterInit(){const _0x16911a=this['editor'],_0x5b15fb=_0x16911a['plugins']['get']('TrackChangesEditing'),_0x20fa45=_0x16911a['commands']['get']('copyFormat'),_0x32b9e9=_0x16911a['commands']['get']('pasteFormat');_0x20fa45&&_0x32b9e9&&(_0x5b15fb['enableDefaultAttributesIntegration']('pasteFormat'),_0x5b15fb['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x84e6cc=this['editor'],_0x2c74eb=_0x84e6cc['locale'];_0x84e6cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15edca=>{if('formatBlock'!=_0x15edca['type']&&'formatInline'!=_0x15edca['type'])return;const {data:_0x4aabd1}=_0x15edca;if(_0x4aabd1&&'pasteFormat'===_0x4aabd1['commandName']){const _0x61e23e=[],_0xc3051a=_0x4aabd1['commandParams'][0x0];for(const [_0x4e9de7,_0x5086fa]of Object['entries'](_0xc3051a))_0x61e23e['push'](ce(_0x84e6cc,_0x4e9de7,_0x5086fa));return _0x61e23e['length']?{'type':'format','content':wt(_0x2c74eb,'*Set\x20format\x20to:*\x20%0',_0x61e23e['join'](',\x20'))}:{'type':'format','content':wt(_0x2c74eb,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x3cd89a,_0x12c806,_0x145e35){const _0x58bbc2=_0x3cd89a['locale'],_0x276c8d=_0x58bbc2['t'],_0x16b87f=_0x12c806['split'](/(?=[A-Z])/)['join']('\x20'),_0x11e817=_0x276c8d(_0x16b87f['charAt'](0x0)['toUpperCase']()+_0x16b87f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x145e35)return _0x11e817;if('fontColor'===_0x12c806||'fontBackgroundColor'===_0x12c806){const _0x26047a=_0x1171c6(_0x3cd89a['config']['get']('fontColor.colors'))['find'](_0x1fd746=>_0x1fd746['model']==_0x145e35);return _0x11e817+'\x20('+(_0x26047a?_0x3b5c48(_0x58bbc2,_0x26047a['label'])['toLowerCase']():_0x145e35)+')';}if('fontSize'===_0x12c806&&isNaN(parseFloat(_0x145e35))){const _0x43a3a5=_0x3cd89a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cd89a['config']['get']('fontSize.options'))['find'](_0x275717=>_0x275717['model']==_0x145e35);return _0x11e817+'\x20('+(_0x43a3a5?_0x276c8d(_0x43a3a5['title'])['toLowerCase']():_0x145e35)+')';}return _0x11e817+'\x20('+_0x145e35+')';}var le=class extends _0x17c3d7{afterInit(){const _0x5359d2=this['editor'];if(!_0x5359d2['plugins']['has']('GeneralHtmlSupport')||!_0x5359d2['plugins']['has']('DataSchema'))return;const _0x29d1f1=_0x5359d2['plugins']['get']('TrackChangesEditing'),_0x316744=_0x5359d2['plugins']['get']('GeneralHtmlSupport'),_0x9a2b5=_0x5359d2['plugins']['get']('DataSchema'),_0x4590b7=_0x5359d2['locale'],_0x35ec3b=new Set(['htmlContent']);for(const _0x3a1cee of _0x9a2b5['getDefinitionsForView'](/.*/,!0x1)){const _0x290949=_0x3a1cee['view'],_0x56c4d9=_0x316744['getGhsAttributeNameForElement'](_0x290949);_0x35ec3b['add'](_0x56c4d9),!_0x3a1cee['isInline']||_0x3a1cee['isObject']||'appliesToBlock'in _0x3a1cee&&_0x3a1cee['appliesToBlock']||_0x29d1f1['descriptionFactory']['registerAttributeLabel'](_0x56c4d9,_0x290949),_0x3a1cee['model']['startsWith']('html')&&_0x29d1f1['descriptionFactory']['registerElementLabel'](_0x3a1cee['model'],_0x38d4db=>wt(_0x4590b7,'ELEMENT_HTML_TAG',[_0x38d4db,_0x290949]));}_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x4590b7,'FORMAT_RAW_HTML_CONTENT')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x4590b7,'FORMAT_HTML_LIST_ITEM')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x4590b7,'FORMAT_HTML_BULLETED_LIST')),_0x29d1f1['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x4590b7,'FORMAT_HTML_NUMBERED_LIST')),_0x29d1f1['descriptionFactory']['registerDescriptionCallback'](_0x95d87f=>{if('attribute'!==_0x95d87f['type'])return;const _0x4f89c8=_0x95d87f['data'];if(!_0x4f89c8||!_0x35ec3b['has'](_0x4f89c8['key']))return;if('htmlContent'===_0x4f89c8['key'])return{'type':'format','content':wt(_0x4590b7,'*Change\x20%0\x20content*',wt(_0x4590b7,'ELEMENT_RAW_HTML'))};const {setItems:_0x3a981d,removeItems:_0x17be8e}=function(_0x51a346,_0x376177,_0x3324b5){const _0x289306=[],_0x3c9833=[],_0x303c1d=_0x51a346['styles']??{},_0xc832af=_0x376177['styles']??{};for(const _0x8452a9 of new Set([...Object['keys'](_0x303c1d),...Object['keys'](_0xc832af)]))_0x303c1d[_0x8452a9]!==_0xc832af[_0x8452a9]&&(void 0x0===_0xc832af[_0x8452a9]?_0x3c9833['push'](_0x8452a9):_0x289306['push'](_0x8452a9+'\x20('+_0xc832af[_0x8452a9]+')'));const _0x5e2b07=wt(_0x3324b5,'FORMAT_HTML_CLASS'),_0x1b1ca0=new Set(_0x51a346['classes']??[]),_0x340e74=new Set(_0x376177['classes']??[]),_0x4cdebd=[..._0x340e74]['some'](_0xfa1936=>!_0x1b1ca0['has'](_0xfa1936)),_0x47815f=[..._0x1b1ca0]['some'](_0x3d3622=>!_0x340e74['has'](_0x3d3622));_0x4cdebd&&_0x289306['push'](_0x5e2b07),_0x47815f&&_0x3c9833['push'](_0x5e2b07);const _0x3b2343=wt(_0x3324b5,'FORMAT_HTML_ATTRIBUTE'),_0x122eb2=_0x51a346['attributes']??{},_0x207e76=_0x376177['attributes']??{};let _0x369ece=!0x1,_0x43b026=!0x1;for(const _0x407a5c of new Set([...Object['keys'](_0x122eb2),...Object['keys'](_0x207e76)]))_0x122eb2[_0x407a5c]!==_0x207e76[_0x407a5c]&&(void 0x0===_0x207e76[_0x407a5c]?_0x43b026=!0x0:_0x369ece=!0x0);return _0x369ece&&_0x289306['push'](_0x3b2343),_0x43b026&&_0x3c9833['push'](_0x3b2343),{'setItems':_0x289306,'removeItems':_0x3c9833};}(_0x4f89c8['oldValue']??{},_0x4f89c8['newValue']??{},_0x4590b7);if(!_0x3a981d['length']&&!_0x17be8e['length'])return;const _0x291a54=[];return _0x3a981d['length']&&_0x291a54['push'](wt(_0x4590b7,'*Set\x20format:*\x20%0',_0x3a981d['join'](',\x20'))),_0x17be8e['length']&&_0x291a54['push'](wt(_0x4590b7,'*Remove\x20format:*\x20%0',_0x17be8e['join'](',\x20'))),{'type':'format','content':_0x291a54['join']('\x0a')};});}},ue=class extends _0x17c3d7{_headingOptions;afterInit(){const _0x4dbd39=this['editor'];if(!_0x4dbd39['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4dbd39['config']['get']('heading.options');const _0x140f6c=_0x4dbd39['locale'],_0x41afa5=_0x4dbd39['plugins']['get']('TrackChangesEditing');_0x41afa5['enableDefaultAttributesIntegration']('heading');for(const _0x26af38 of this['_headingOptions'])'paragraph'!=_0x26af38['model']&&_0x41afa5['descriptionFactory']['registerElementLabel'](_0x26af38['model'],_0x4556fa=>{const _0x3f3f21=this['_getHeadingLevel'](_0x26af38['model']);return null!==_0x3f3f21?_0x1e60ec(_0x4556fa,_0x3f3f21):_0x546d0e(_0x4556fa,_0x26af38['title']);});function _0x1e60ec(_0x3a6367,_0x6f2da9){return wt(_0x140f6c,'ELEMENT_HEADING',[_0x3a6367,_0x6f2da9]);}function _0x546d0e(_0x18583d,_0x426abf){return wt(_0x140f6c,'ELEMENT_HEADING_CUSTOM',[_0x18583d,_0x426abf]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1c3313=this['editor'],_0x6615ad=_0x1c3313['locale'];function _0x5957b5(_0x3eccf6,_0x2db898){return wt(_0x6615ad,'ELEMENT_HEADING_CUSTOM',[_0x3eccf6,_0x2db898]);}_0x1c3313['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ed185=>{if('formatBlock'!=_0x2ed185['type'])return;const {data:_0x1f34d8}=_0x2ed185;if(_0x1f34d8&&'heading'==_0x1f34d8['commandName']){const _0x333878=_0x1f34d8['commandParams'][0x0]['value'],_0x1f364a=this['_getHeadingLevel'](_0x333878);if(null!==_0x1f364a)return{'type':'format','content':wt(_0x6615ad,'*Change\x20to:*\x20%0',(_0x491c0d=0x1,_0x55f355=_0x1f364a,wt(_0x6615ad,'ELEMENT_HEADING',[_0x491c0d,_0x55f355])))};const _0xcd69a=this['_headingOptions']['find'](_0x2f28d2=>_0x2f28d2['model']===_0x333878)['title'];return{'type':'format','content':wt(_0x6615ad,'*Change\x20to:*\x20%0',_0x5957b5(0x1,_0xcd69a))};}var _0x491c0d,_0x55f355;});}_getHeadingLevel(_0x334e74){const _0x1efce2=_0x334e74['match'](/^heading(\d+)/);if(_0x1efce2)return _0x1efce2[0x1];const _0x36689d=this['_headingOptions']?.['find'](_0x3b31db=>_0x3b31db['model']==_0x334e74);if(_0x36689d&&_0x36689d['view']){const _0x51b1fb=_0x36689d['view'],_0x51ce50=(_0x51b1fb['name']??_0x51b1fb)['match'](/^h(\d+)/);if(_0x51ce50)return _0x51ce50[0x1];}return null;}},de=class extends _0x17c3d7{afterInit(){const _0x2ad489=this['editor'];if(!_0x2ad489['plugins']['has']('HighlightEditing'))return;const _0x5d8d41=_0x2ad489['plugins']['get']('TrackChangesEditing'),_0x9d3691=_0x2ad489['locale'];_0x5d8d41['enableDefaultAttributesIntegration']('highlight'),_0x5d8d41['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x9d3691,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4bfd3e=this['editor'],_0x7db072=_0x4bfd3e['locale'];_0x4bfd3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2514e8=>{if('formatInline'!=_0x2514e8['type'])return;const {data:_0x240363}=_0x2514e8;if(_0x240363&&'highlight'==_0x240363['commandName']){const _0xbffe67=_0x7db072['t'],_0x125439=_0x240363['commandParams'][0x0]['value'];if(_0x125439){const _0x56a0d8=_0x4bfd3e['config']['get']('highlight.options')['find'](_0x1b6094=>_0x1b6094['model']==_0x125439),_0x14f608=_0xbffe67(_0x56a0d8['title'])['toLowerCase']();return{'type':'format','content':wt(_0x7db072,'*Set\x20highlight:*\x20%0',_0x14f608),'color':{'value':_0x56a0d8['color'],'title':_0x56a0d8['title']}};}return{'type':'format','content':wt(_0x7db072,'*Remove\x20highlight*',wt(_0x7db072,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x17c3d7{afterInit(){const _0x1337e4=this['editor'];if(!_0x1337e4['plugins']['has']('HorizontalLineEditing'))return;_0x1337e4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x50d20d=_0x1337e4['plugins']['get']('TrackChangesEditing'),_0x5c121=_0x1337e4['locale'];_0x50d20d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x27b85e=>wt(_0x5c121,'ELEMENT_HORIZONTAL_LINE',_0x27b85e));}},ge=class extends _0x17c3d7{afterInit(){const _0x53fdf7=this['editor'];if(!_0x53fdf7['plugins']['has']('HtmlEmbed'))return;const _0x204e34=_0x53fdf7['plugins']['get']('TrackChangesEditing'),_0x13914c=_0x53fdf7['locale'];_0x204e34['descriptionFactory']['registerElementLabel']('rawHtml',_0x2ada02=>wt(_0x13914c,'ELEMENT_HTML_EMBED',_0x2ada02)),_0x204e34['enableDefaultAttributesIntegration']('htmlEmbed'),_0x204e34['descriptionFactory']['registerDescriptionCallback'](_0x1ffeb4=>{if('attribute'!=_0x1ffeb4['type'])return;const {data:_0x14756c}=_0x1ffeb4;if(_0x14756c&&'value'==_0x14756c['key']&&_0x1ffeb4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2bd234=wt(_0x13914c,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x13914c,'*Change\x20%0\x20content*',_0x2bd234)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x14afa4=this['editor'],_0x4bf7da=_0x14afa4['locale'];_0x14afa4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac0bf=>{if('formatBlock'!=_0x4ac0bf['type'])return;const {data:_0x297efa}=_0x4ac0bf;if(_0x297efa&&'htmlEmbed'==_0x297efa['commandName']){const _0xe5b51a=wt(_0x4bf7da,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x4bf7da,'*Change\x20%0\x20content*',_0xe5b51a)};}});}},fe=class extends _0x17c3d7{afterInit(){const _0x1f9708=this['editor'];if(!_0x1f9708['plugins']['has']('ImageEditing'))return;const _0x4b281a=_0x1f9708['plugins']['get']('TrackChangesEditing'),_0x449744=_0x1f9708['plugins']['get']('ImageUtils'),_0x389fb1=_0x1f9708['locale'];_0x4b281a['enableCommand']('insertImage'),_0x4b281a['descriptionFactory']['registerElementLabel']('imageBlock',_0x564240=>wt(_0x389fb1,'ELEMENT_IMAGE',_0x564240)),_0x4b281a['descriptionFactory']['registerElementLabel']('imageInline',_0x4183c0=>wt(_0x389fb1,'ELEMENT_INLINE_IMAGE',_0x4183c0)),_0x4b281a['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0x389fb1,'ELEMENT_CAPTION')),_0x1f9708['plugins']['has']('ImageUploadEditing')&&_0x4b281a['enableCommand']('uploadImage'),_0x1f9708['plugins']['has']('ImageBlockEditing')&&_0x1f9708['plugins']['has']('ImageInlineEditing')&&(_0x4b281a['enableCommand']('imageTypeInline',(_0xf26041,_0x3e7d86)=>{const _0x17fe61=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']);_0x1f9708['model']['change'](()=>{_0x4b281a['markBlockFormat'](_0x17fe61,{'commandName':'imageTypeInline','commandParams':[_0x3e7d86]},[],'convertBlockImageToInline');});}),_0x4b281a['enableCommand']('imageTypeBlock',(_0x3fc176,_0x49785b)=>{_0x1f9708['model']['change'](_0x17244f=>{let _0x2e52ef=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0xa984d3=_0x17244f['createRangeOn'](_0x2e52ef);const _0x4c45c6=ot['fromPosition'](_0xa984d3['start'],'toPrevious'),_0x51ae24=ot['fromPosition'](_0xa984d3['end'],'toNext');_0x4b281a['forceDefaultExecution'](()=>_0x3fc176(_0x49785b)),_0x2e52ef=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0xa984d3=_0x17244f['createRangeOn'](_0x2e52ef);const _0x4f6536=_0x17244f['createRange'](_0x4c45c6,_0x51ae24);_0x4c45c6['detach'](),_0x51ae24['detach'](),_0x4b281a['markBlockFormat'](_0x2e52ef,{'commandName':'imageTypeInline','commandParams':[_0x49785b]},[],'convertInlineImageToBlock'),_0x4f6536['start']['isBefore'](_0xa984d3['start'])&&_0x4b281a['markInsertion'](_0x17244f['createRange'](_0x4f6536['start'],_0xa984d3['start']),'convertInlineImageToBlock'),_0xa984d3['end']['isBefore'](_0x4f6536['end'])&&_0x4b281a['markInsertion'](_0x17244f['createRange'](_0xa984d3['end'],_0x4f6536['end']),'convertInlineImageToBlock');});}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4b281a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x106463])=>{const _0x4d7aad=_0x4b281a['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x37b6e3=_0x106463['start'],_0x1f5b1e=_0x106463['end'];const _0x20ca19=_0x1f9708['model']['schema']['getNearestSelectionRange'](_0x37b6e3,'backward'),_0x2bc8c1=_0x1f9708['model']['schema']['getNearestSelectionRange'](_0x1f5b1e,'forward');_0x20ca19['isCollapsed']&&(_0x37b6e3=_0x20ca19['start']),_0x2bc8c1['isCollapsed']&&(_0x1f5b1e=_0x2bc8c1['end']),_0x4d7aad([_0x1f9708['model']['createRange'](_0x37b6e3,_0x1f5b1e)]);}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2a1e56),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2a1e56)),_0x1f9708['plugins']['has']('ImageCaptionEditing')&&(_0x4b281a['enableCommand']('toggleImageCaption',(_0x22af10,_0x30d1b9)=>{const _0x31ba30=_0x1f9708['plugins']['get']('ImageCaptionUtils');let _0x5e2129=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0x140511=_0x31ba30['getCaptionFromImageModelElement'](_0x5e2129);_0x1f9708['model']['change'](()=>{if(_0x140511)return void _0x4b281a['markDeletion'](_0x1f9708['model']['createRangeOn'](_0x140511));const _0x25f850=_0x449744['isBlockImage'](_0x5e2129);_0x22af10(_0x30d1b9),_0x5e2129=_0x449744['getClosestSelectedImageElement'](_0x1f9708['model']['document']['selection']),_0x140511=_0x31ba30['getCaptionFromImageModelElement'](_0x5e2129),_0x4b281a['markInsertion'](_0x1f9708['model']['createRangeOn'](_0x140511),_0x25f850?null:'imageCaption');});}),_0x4b281a['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2a1e56));const _0x3a933c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x38547d(_0x1f4de0,_0x3b1b76){const _0x4ede6b=_0x3a933c['findIndex'](({type:_0x138c28,subType:_0x378f6b})=>_0x1f4de0['type']==_0x138c28&&_0x1f4de0['subType']==_0x378f6b),_0x2946f3=_0x3a933c['findIndex'](({type:_0x39eaa7,subType:_0x14623d})=>_0x3b1b76['type']==_0x39eaa7&&_0x3b1b76['subType']==_0x14623d);if(_0x4ede6b<0x0||_0x2946f3<0x0)return!0x1;const _0x29e3d5=_0x1f4de0['getFirstRange'](),_0x1c70a5=_0x3b1b76['getFirstRange']();if((0x0==_0x4ede6b||0x1==_0x4ede6b)&&0x2==_0x2946f3&&_0x29e3d5['isIntersecting'](_0x1c70a5))return!0x0;if(0x2==_0x4ede6b&&0x3==_0x2946f3){const _0x4ca294=_0x4b281a['_findSuggestions'](_0x29e3d5,'insertion')['filter'](({suggestion:_0x487691,meta:_0x577cda})=>_0x577cda['isOwn']&&'convertInlineImageToBlock'==_0x487691['subType']);if(_0x4ca294['length']>0x1&&_0x1c70a5['end']['isEqual'](_0x29e3d5['start']))return!0x0;if(0x1==_0x4ca294['length']&&(_0x29e3d5['start']['isEqual'](_0x1c70a5['end'])||_0x29e3d5['end']['isEqual'](_0x1c70a5['start'])))return!0x0;}if(0x3==_0x4ede6b&&0x3==_0x2946f3&&_0x29e3d5['start']['isBefore'](_0x1c70a5['start'])){const _0x1e2f18=_0x29e3d5['end']['nodeAfter'],_0x177f72=_0x1c70a5['start']['nodeBefore'];return _0x449744['isBlockImage'](_0x1e2f18)&&_0x1e2f18===_0x177f72;}return!0x1;}function _0x2a1e56(_0x34df06,_0x40ce6e){return _0x38547d(_0x34df06,_0x40ce6e)?[_0x34df06,_0x40ce6e]:_0x38547d(_0x40ce6e,_0x34df06)?[_0x40ce6e,_0x34df06]:null;}_0x1f9708['plugins']['has']('ImageResize')&&(_0x4b281a['enableDefaultAttributesIntegration']('resizeImage'),_0x4b281a['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0x389fb1,'FORMAT_IMAGE_SIZE'))),_0x1f9708['plugins']['has']('ImageTextAlternativeEditing')&&_0x4b281a['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1f9708['plugins']['has']('PictureEditing')&&_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0xba0b04=>{if('attribute'!=_0xba0b04['type'])return;const {data:_0x2de0b2}=_0xba0b04;return _0x2de0b2&&'sources'==_0x2de0b2['key']?{'type':'format','content':''}:void 0x0;}),_0x1f9708['plugins']['has']('ImageSizeAttributes')&&_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x2a6d6f=>{if('attribute'!=_0x2a6d6f['type'])return;const {data:_0x15ee45}=_0x2a6d6f;return!_0x15ee45||'width'!=_0x15ee45['key']&&'height'!=_0x15ee45['key']?void 0x0:{'type':'format','content':''};}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x15cee4=>{if(_0x3a933c['find'](({type:_0x27dd7f,subType:_0x3e37cd})=>_0x15cee4['type']==_0x27dd7f&&_0x15cee4['subType']==_0x3e37cd))return _0x15cee4['previous']?{}:void 0x0;}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x2716fb=>{if('insertion'==_0x2716fb['type']||'deletion'==_0x2716fb['type']){const _0xcaf6a4=_0x2716fb['getContainedElement']();if(_0xcaf6a4&&_0xcaf6a4['is']('element','caption'))return{'type':'insertion'==_0x2716fb['type']?'addObject':'removeObject','element':_0xcaf6a4,'quantity':0x1};}}),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x44cd90=>'formatBlock'==_0x44cd90['type']&&'convertInlineImageToBlock'==_0x44cd90['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44cd90['type']&&'convertBlockImageToInline'==_0x44cd90['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4b281a['descriptionFactory']['registerDescriptionCallback'](_0x3a01e8=>{if('attribute'!=_0x3a01e8['type'])return;const {data:_0x138126}=_0x3a01e8;if(!_0x138126||'alt'!=_0x138126['key'])return;const _0x48a552=_0x138126['newValue'];return _0x48a552?{'type':'format','content':wt(_0x389fb1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48a552+'\x22')}:{'type':'format','content':wt(_0x389fb1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x6de05f=this['editor'],_0x2a1d1e=_0x6de05f['locale'];_0x6de05f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4053c2=>{if('formatBlock'!=_0x4053c2['type']&&'formatInline'!=_0x4053c2['type'])return;const {data:_0x3f2600}=_0x4053c2;if(_0x3f2600){if('imageTextAlternative'==_0x3f2600['commandName']){const _0x1407a7=_0x3f2600['commandParams'][0x0]['newValue'];return _0x1407a7?{'type':'format','content':wt(_0x2a1d1e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1407a7+'\x22')}:{'type':'format','content':wt(_0x2a1d1e,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3f2600['commandName']){const _0x4b8e85=_0x3f2600['commandParams'][0x0]['width'];return _0x4b8e85?{'type':'format','content':wt(_0x2a1d1e,'*Set\x20image\x20width:*\x20%0',_0x4b8e85)}:{'type':'format','content':wt(_0x2a1d1e,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa9233=this['editor']['locale'],_0x60114d=this['editor']['plugins']['get']('TrackChangesEditing');_0x60114d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x60114d['descriptionFactory']['registerDescriptionCallback'](_0x13b7d9=>{if('attribute'!=_0x13b7d9['type'])return;const {data:_0x1c61ab}=_0x13b7d9;return _0x1c61ab&&'src'==_0x1c61ab['key']?_0x1c61ab['newValue']&&_0x1c61ab['oldValue']?{'type':'format','content':wt(_0xa9233,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x7fd9a3=this['editor']['plugins']['get']('TrackChangesEditing');_0x7fd9a3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x7fd9a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x7fd9a3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x7fd9a3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x53afd8=this['editor'],_0x58f4a0=_0x53afd8['locale'];_0x53afd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3da81d=>{if('formatBlock'!=_0x3da81d['type']&&'formatInline'!=_0x3da81d['type'])return;const {data:_0x4fd2df}=_0x3da81d;return _0x4fd2df&&'replaceImageSource'==_0x4fd2df['commandName']?{'type':'format','content':wt(_0x58f4a0,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x17c3d7{afterInit(){const _0x3fd3a0=this['editor'];if(!_0x3fd3a0['plugins']['has']('ImageStyleEditing'))return;const _0x3033f2=_0x3fd3a0['plugins']['get']('TrackChangesEditing'),_0x28a84d=_0x3fd3a0['plugins']['get']('ImageUtils'),_0x404079={};_0x3033f2['enableCommand']('imageStyle',(_0x4e8422,_0x58c402)=>{const _0xe0bfbe=_0x3fd3a0['plugins']['get']('Users')['me'],_0x532f86=_0x3fd3a0['commands']['get']('imageStyle');let _0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),_0xdcab31=_0x3fd3a0['model']['createRangeOn'](_0x1f2901),_0x12aa2d=_0x532f86['value'];if(_0x12aa2d==_0x58c402['value'])return;if(_0x58c402['value']&&_0x28a84d['isInlineImage'](_0x1f2901)&&!_0x532f86['isStyleEnabled'](_0x58c402['value']))return;const _0x33d5f6={'commandName':'imageStyle','commandParams':[_0x58c402],'formatGroupId':_0x5a260f()};_0x3fd3a0['model']['change'](()=>{if(_0x3033f2['getSuggestions']()['filter'](_0x42a576=>_0x42a576['isInContent']&&_0xe0bfbe==_0x42a576['author']&&('formatBlock'==_0x42a576['type']||'formatInline'==_0x42a576['type'])&&('imageStylePreApply'==_0x42a576['subType']||'imageStylePostApply'==_0x42a576['subType'])&&_0x42a576['getFirstRange']()['isEqual'](_0xdcab31))['forEach'](_0x57dfd5=>_0x3033f2['discardSuggestion'](_0x57dfd5['head'])),_0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),_0xdcab31=_0x3fd3a0['model']['createRangeOn'](_0x1f2901),_0x532f86['refresh'](),_0x3fd3a0['commands']['get']('imageTypeInline')['refresh'](),_0x3fd3a0['commands']['get']('imageTypeBlock')['refresh'](),_0x12aa2d=_0x532f86['value'],_0x12aa2d!=_0x58c402['value'])return _0x28a84d['isInlineImage'](_0x1f2901)&&_0x532f86['shouldConvertImageType'](_0x58c402['value'],_0x1f2901)?(_0x4e8422({..._0x58c402,'setImageSizes':!0x1}),_0x1f2901=_0x28a84d['getClosestSelectedImageElement'](_0x3fd3a0['model']['document']['selection']),void _0x3033f2['markBlockFormat'](_0x1f2901,{..._0x33d5f6,'commandReversedParams':[{'value':_0x12aa2d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28a84d['isBlockImage'](_0x1f2901)?_0x3033f2['markBlockFormat'](_0x1f2901,_0x33d5f6,[],'imageStylePostApply'):_0x3033f2['markInlineFormat'](_0xdcab31,_0x33d5f6,'imageStylePostApply'));});});for(const _0x16a75a of _0x3fd3a0['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x404079[_0x16a75a['name']]=_0x16a75a['title']['toLowerCase']();_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x435481])=>{_0x28a84d['setImageNaturalSizeAttributes'](_0x435481['getContainedElement']());}),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5dd76d,_0x57b1b6)=>{_0x3033f2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5dd76d,{'commandName':_0x57b1b6['commandName'],'commandParams':_0x57b1b6['commandReversedParams']});}),_0x3033f2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x48f287,_0x2ce4e7){return _0x1bdc90(_0x48f287,_0x2ce4e7)?[_0x48f287,_0x2ce4e7]:_0x1bdc90(_0x2ce4e7,_0x48f287)?[_0x2ce4e7,_0x48f287]:null;});const _0x3c2198=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1bdc90(_0x1a599f,_0x5c966f){const _0x1589e2=_0x3c2198['findIndex'](({type:_0x373b66,subType:_0x41d84b})=>_0x1a599f['type']==_0x373b66&&_0x1a599f['subType']==_0x41d84b),_0x377ccb=_0x3c2198['findIndex'](({type:_0x370eae,subType:_0x1e5ffe})=>_0x5c966f['type']==_0x370eae&&_0x5c966f['subType']==_0x1e5ffe);if(_0x1589e2<0x0||_0x377ccb<0x0)return!0x1;const _0xb7add9=_0x1a599f['getFirstRange'](),_0x1bd59c=_0x5c966f['getFirstRange']();if((0x0==_0x1589e2||0x1==_0x1589e2)&&0x2==_0x377ccb&&_0xb7add9['isIntersecting'](_0x1bd59c))return!0x0;if(0x2==_0x1589e2&&0x3==_0x377ccb){const _0x4de03=_0x3033f2['_findSuggestions'](_0xb7add9,'insertion')['filter'](({suggestion:_0x379521,meta:_0x10a944})=>_0x10a944['isOwn']&&'convertInlineImageToBlock'==_0x379521['subType']);if(_0x4de03['length']>0x1&&_0x1bd59c['end']['isEqual'](_0xb7add9['start']))return!0x0;if(0x1==_0x4de03['length']&&(_0xb7add9['start']['isEqual'](_0x1bd59c['end'])||_0xb7add9['end']['isEqual'](_0x1bd59c['start'])))return!0x0;}if(0x3==_0x1589e2&&0x3==_0x377ccb&&_0xb7add9['start']['isBefore'](_0x1bd59c['start'])){const _0x29b633=_0xb7add9['end']['nodeAfter'],_0x4e33fc=_0x1bd59c['start']['nodeBefore'];return _0x28a84d['isBlockImage'](_0x29b633)&&_0x29b633===_0x4e33fc;}return!0x1;}_0x3fd3a0['model']['document']['registerPostFixer'](()=>{let _0x3dd873=!0x1;const _0x5895ec=Array['from'](_0x3fd3a0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1806de,data:_0xb31fd7}of _0x5895ec){const {group:_0x25687a,type:_0x425167,subType:_0x3f75ad,id:_0x2e494d}=nt(_0x1806de);if('suggestion'==_0x25687a&&_0x3033f2['hasSuggestion'](_0x2e494d)){if('formatBlock'==_0x425167&&('imageStylePreApply'==_0x3f75ad||'imageStylePostApply'==_0x3f75ad)){const _0x2a2a45=_0x3033f2['getSuggestion'](_0x2e494d);if(_0xb31fd7['newRange']){const _0x4c2c66=_0x2a2a45['getFirstRange']()['getContainedElement']();if(_0x28a84d['isBlockImage'](_0x4c2c66))continue;_0x3033f2['discardSuggestion'](_0x2a2a45),_0x3dd873=!0x0;}}if('insertion'==_0x425167&&'imageCaption'==_0x3f75ad&&!_0xb31fd7['newRange']){const _0x362b2d=_0x3033f2['getSuggestion'](_0x2e494d);_0x362b2d['next']&&_0x362b2d['next']['isInContent']&&(_0x3033f2['discardSuggestion'](_0x362b2d['next']),_0x3dd873=!0x0);}}}return _0x3dd873;}),this['_registerLegacyDescription'](_0x404079);}_registerLegacyDescription(_0x3bf2ad){const _0x4d37a1=this['editor'],_0x9f91b3=_0x4d37a1['locale'];_0x4d37a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xae745f=>{if('formatBlock'!=_0xae745f['type']&&'formatInline'!=_0xae745f['type'])return;const {data:_0x10c7ab}=_0xae745f;if(!_0x10c7ab||'imageStyle'!=_0x10c7ab['commandName'])return;const _0x4a543a=_0x10c7ab['commandParams'][0x0]['value'];return _0x13889c('side'===_0x4a543a?wt(_0x9f91b3,'FORMAT_SIDE_IMAGE'):_0x3bf2ad[_0x4a543a]||_0x4a543a);function _0x13889c(_0x5ed711){return{'type':'format','content':wt(_0x9f91b3,'*Format:*\x20%0',_0x5ed711)};}});}},Te=class extends _0x17c3d7{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0xd1dee9){super(_0xd1dee9),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x344916=this['editor'],_0xebccb8=_0x344916['commands']['get']('importWord'),_0x5374b5=_0x344916['commands']['get']('trackChanges');_0xebccb8&&(_0xebccb8['on']('execute',(_0x429ca7,[,_0x372b00])=>{this['_trackChangesValueDuringImport']=_0x5374b5['value'],_0x372b00['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xebccb8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xebccb8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5374b5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x344916['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x25e259,_0x5c61bb){const {suggestions:_0xaa2694}=_0x5c61bb,_0x4029e8=this['editor']['commands']['get']('trackChanges'),_0x27b648=_0x4029e8['value'];this['_trackChangesValueDuringImport']!==_0x27b648&&(_0x4029e8['execute'](),this['_trackChangesExecuted']=!0x0),_0xaa2694&&_0xaa2694['forEach'](({id:_0x483143,type:_0x22489c,author:_0x128b40,created_at:_0x20fe0f})=>{const _0x2c0636={'id':_0x483143,'type':_0x22489c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x128b40,'createdAt':_0x20fe0f?new Date(_0x20fe0f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2c0636);});}},_e=class extends _0x17c3d7{afterInit(){const _0x54d57f=this['editor'],_0x3f8d0d=_0x54d57f['plugins']['get']('TrackChangesEditing');if(_0x54d57f['plugins']['has']('IndentEditing')&&(_0x3f8d0d['enableCommand']('indent'),_0x3f8d0d['enableCommand']('outdent')),_0x54d57f['plugins']['has']('IndentBlock')){for(const _0x2db49c of['indentBlock','outdentBlock'])_0x3f8d0d['enableDefaultAttributesIntegration'](_0x2db49c);if(_0x54d57f['plugins']['has']('ListEditing')){for(const _0x37beed of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3f8d0d['enableDefaultAttributesIntegration'](_0x37beed);}}const _0x31ccf2=_0x54d57f['locale'];_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x31ccf2,'FORMAT_INDENT')),_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x31ccf2,'FORMAT_INDENT')),_0x3f8d0d['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x31ccf2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4b619b=this['editor'],_0x5218c7=_0x4b619b['locale'],_0x22e952=_0x4b619b['plugins']['get']('TrackChangesEditing');_0x22e952['descriptionFactory']['registerDescriptionCallback'](_0x5cbb3e=>{if('formatBlock'!=_0x5cbb3e['type'])return;const {data:_0x763429}=_0x5cbb3e;if(!_0x763429)return;if('indentBlock'!=_0x763429['commandName']&&'outdentBlock'!=_0x763429['commandName'])return;const _0x29b71b=_0x5cbb3e['getItems']()[0x0],_0x3cf607=_0x22e952['descriptionFactory']['getItemLabel'](_0x29b71b);return'indentBlock'==_0x763429['commandName']?{'type':'format','content':wt(_0x5218c7,'*Indent:*\x20%0',_0x3cf607)}:'outdentBlock'==_0x763429['commandName']?{'type':'format','content':wt(_0x5218c7,'*Outdent:*\x20%0',_0x3cf607)}:void 0x0;});}},pe=class extends _0x17c3d7{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x17c3d7{afterInit(){const _0x5f217f=this['editor'];if(!_0x5f217f['plugins']['has']('LinkEditing'))return;const _0x2cf0e2=_0x5f217f['plugins']['get']('TrackChangesEditing'),_0x3b47ae=_0x5f217f['commands']['get']('link');_0x2cf0e2['enableDefaultAttributesIntegration']('link'),_0x2cf0e2['enableDefaultAttributesIntegration']('unlink');for(const _0x5dbb7c of _0x3b47ae['manualDecorators'])_0x2cf0e2['descriptionFactory']['registerAttributeLabel'](_0x5dbb7c['id'],'link\x20('+_0x5dbb7c['label']['toLowerCase']()+')');_0x2cf0e2['descriptionFactory']['registerDescriptionCallback'](_0x1db5b0=>{if('attribute'!=_0x1db5b0['type'])return;const {data:_0x5883dd}=_0x1db5b0;if(!_0x5883dd||'linkHref'!=_0x5883dd['key'])return;const _0x177161=_0x5883dd['newValue'],_0xe27353=_0x5f217f['locale'];return{'type':'format','content':null==_0x177161?wt(_0xe27353,'*Remove\x20link*'):wt(_0xe27353,'*Set\x20link:*\x20%0','\x22'+_0x177161+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x553499=this['editor'],_0x3d61fa=_0x553499['locale'];_0x553499['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fd12e=>{if('formatInline'!=_0x3fd12e['type'])return;const {data:_0x5a3bba}=_0x3fd12e;if(_0x5a3bba){if('link'==_0x5a3bba['commandName']){const _0x9a6016=_0x5a3bba['commandParams'][0x0];return{'type':'format','content':wt(_0x3d61fa,'*Set\x20link:*\x20%0','\x22'+_0x9a6016+'\x22')};}return'unlink'==_0x5a3bba['commandName']?{'type':'format','content':wt(_0x3d61fa,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x17c3d7{afterInit(){const _0xcb6fec=this['editor'],_0xff7801=_0xcb6fec['locale'];if(!_0xcb6fec['plugins']['has']('LegacyListEditing'))return;const _0x5c2b44=_0xcb6fec['plugins']['get']('TrackChangesEditing'),_0x30d878=_0xcb6fec['plugins']['has']('LegacyTodoListEditing');function _0x37524(_0x17acf7){return()=>{const _0x12c1ba=_0xcb6fec['model']['document']['selection'],_0x41efb4=_0xcb6fec['commands']['get'](_0x17acf7);if(_0x41efb4['value'])return void _0xcb6fec['execute']('paragraph',{});const _0x192c82=_0x17acf7['slice'](0x0,-0x4),_0x38e2be=function(_0x2dabed,_0x5870e4,_0x5429fc){let _0x35409d=Array['from'](_0x2dabed)['filter'](_0x1121ee=>function(_0xd01df4,_0x4aa532){return _0x4aa532['checkChild'](_0xd01df4['parent'],'listItem')&&!_0x4aa532['isObject'](_0xd01df4);}(_0x1121ee,_0x5429fc));_0x35409d=_0x35409d['filter'](_0x5b870b=>!_0x5b870b['is']('element','listItem')||_0x5b870b['getAttribute']('listType')!=_0x5870e4);const _0x234f6c=new Set();for(const _0xaa28e9 of _0x35409d)_0xaa28e9['is']('element','listItem')?_0x234f6c['add'](Ae(_0xaa28e9)):_0x234f6c['add'](_0xaa28e9);return Array['from'](_0x234f6c);}(_0x12c1ba['getSelectedBlocks'](),_0x192c82,_0xcb6fec['model']['schema']);_0xcb6fec['model']['change'](()=>{for(const _0x586902 of _0x38e2be)_0x5c2b44['markBlockFormat'](_0x586902,{'commandName':_0x17acf7,'commandParams':[{'forceValue':!_0x41efb4['value']}],'formatGroupId':'blockName'},be(_0x586902));});};}function _0x19c64e(_0xc8f496){return()=>{const _0x5cbc8b=function(_0x52c30c){let _0xb1abe4=Array['from'](_0x52c30c);const _0x1ec9bf=_0xb1abe4['findIndex'](_0x394a08=>'listItem'!=_0x394a08['name']);return _0x1ec9bf>-0x1&&(_0xb1abe4=_0xb1abe4['slice'](0x0,_0x1ec9bf)),_0xb1abe4;}(_0xcb6fec['model']['document']['selection']['getSelectedBlocks']()),_0x358e3d=_0xcb6fec['model']['createRange'](_0xcb6fec['model']['createPositionAt'](_0x5cbc8b[0x0],'before'),_0xcb6fec['model']['createPositionAt'](_0x5cbc8b[_0x5cbc8b['length']-0x1],'end'));_0xcb6fec['model']['change'](()=>{_0x5c2b44['markBlockFormat'](_0x358e3d,{'commandName':_0xc8f496,'commandParams':[],'formatGroupId':'listIndent'},function(_0x505443){const _0x533f57=new Set();for(const _0x438c01 of _0x505443){let _0x17aaf3=_0x438c01['nextSibling'];for(;_0x17aaf3&&_0x17aaf3['getAttribute']('listIndent')>_0x438c01['getAttribute']('listIndent');)_0x533f57['add'](_0x17aaf3),_0x17aaf3=_0x17aaf3['nextSibling'];}return Array['from'](_0x533f57);}(_0x5cbc8b));});};}_0x5c2b44['enableCommand']('numberedList',_0x37524('numberedList')),_0x5c2b44['enableCommand']('bulletedList',_0x37524('bulletedList')),_0x30d878&&_0x5c2b44['enableCommand']('todoList',_0x37524('todoList')),_0x5c2b44['enableCommand']('indentList',_0x19c64e('indentList')),_0x5c2b44['enableCommand']('outdentList',_0x19c64e('outdentList')),_0x30d878&&_0x5c2b44['enableCommand']('checkTodoList',()=>{const _0xbf814f=_0xcb6fec['commands']['get']('checkTodoList'),_0x45219c=Array['from'](_0xbf814f['_selectedElements']);_0x45219c['filter'](_0x125ee6=>_0x125ee6['getAttribute']('todoListChecked')!=_0xbf814f['value']),_0xcb6fec['model']['change'](()=>{for(const _0x5f07fe of _0x45219c)_0x5c2b44['markBlockFormat'](_0x5f07fe,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xbf814f['value']}]});});}),_0x5c2b44['descriptionFactory']['registerElementLabel']('listItem',_0x29d05d=>wt(_0xff7801,'ELEMENT_LIST_ITEM',_0x29d05d)),_0x5c2b44['descriptionFactory']['registerDescriptionCallback'](_0x2d2fbe=>{if('formatBlock'!=_0x2d2fbe['type']&&'formatInline'!=_0x2d2fbe['type'])return;const {data:_0x26ddf4}=_0x2d2fbe;if(_0x26ddf4){if('numberedList'==_0x26ddf4['commandName']||'bulletedList'==_0x26ddf4['commandName']||'todoList'==_0x26ddf4['commandName'])switch(_0x26ddf4['commandName']['replace']('List','')){case'bulleted':return _0x4c653c(wt(_0xff7801,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4c653c(wt(_0xff7801,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4c653c(wt(_0xff7801,'ELEMENT_TODO_LIST'));}if('indentList'==_0x26ddf4['commandName'])return{'type':'format','content':wt(_0xff7801,'*Indent:*\x20%0',wt(_0xff7801,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x26ddf4['commandName'])return{'type':'format','content':wt(_0xff7801,'*Outdent:*\x20%0',wt(_0xff7801,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x26ddf4['commandName'])return _0x26ddf4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xff7801,'*Check\x20item*')}:{'type':'format','content':wt(_0xff7801,'*Uncheck\x20item*')};}function _0x4c653c(_0x214cc9){return{'type':'format','content':wt(_0xff7801,'*Change\x20to:*\x20%0',_0x214cc9)};}});}};function Ae(_0x59476c){const _0x4219ea=_0x59476c['getAttribute']('listIndent');if(0x0==_0x4219ea)return _0x59476c;let _0x5be62d=_0x59476c;for(;_0x59476c['previousSibling']&&_0x59476c['previousSibling']['is']('element','listItem');){const _0x5890af=_0x59476c['previousSibling']['getAttribute']('listIndent');if(_0x5890af==_0x4219ea)_0x5be62d=_0x59476c['previousSibling'];else{if(_0x5890af<_0x4219ea)break;}_0x59476c=_0x59476c['previousSibling'];}return _0x5be62d;}function be(_0x441580){const _0x58818d=[];if(_0x441580['is']('element','listItem')&&_0x441580['getAttribute']('listIndent')>0x0){let _0x34dc47=_0x441580['nextSibling'];for(;_0x34dc47&&'listItem'==_0x34dc47['name']&&_0x34dc47['getAttribute']('listIndent')==_0x441580['getAttribute']('listIndent');)_0x58818d['push'](_0x34dc47),_0x34dc47=_0x34dc47['nextSibling'];}return _0x58818d;}var Ce=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x440ce9=this['editor']['config']['get']('list.properties'),_0x30d76a=this['editor']['plugins']['get']('TrackChangesEditing');_0x440ce9['styles']&&_0x30d76a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x440ce9['reversed']&&_0x30d76a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x440ce9['startIndex']&&_0x30d76a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x30d76a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x195219,_0x592300={}){const _0x45ef8d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f5297=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x45ef8d['markMultiRangeBlockFormat'](_0x5f5297,{'commandName':'listStyle','commandParams':[{'type':_0x592300['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x5a7ab6,_0x402d53={}){const _0x3d7021=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7abb05=this['_getSuggestionBlocks'](_0x1bf897=>_0x1bf897['is']('element','listItem')&&'numbered'===_0x1bf897['getAttribute']('listType'));if(_0x7abb05['length']<0x1)return;const _0x5cee8e=_0x7abb05['map'](_0x1919f5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1919f5,'before'),this['editor']['model']['createPositionAt'](_0x1919f5,0x0)));this['editor']['model']['change'](()=>{_0x3d7021['markMultiRangeBlockFormat'](_0x5cee8e,{'commandName':'listReversed','commandParams':[{'reversed':_0x402d53['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x4cf732,_0x58171a={}){const _0x47b784=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c3314=this['_getSuggestionBlocks'](_0x246ba8=>_0x246ba8['is']('element','listItem')&&'numbered'===_0x246ba8['getAttribute']('listType'));if(_0x2c3314['length']<0x1)return;const _0x408cdc=_0x2c3314['map'](_0x5920b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5920b8,'before'),this['editor']['model']['createPositionAt'](_0x5920b8,0x0)));this['editor']['model']['change'](()=>{_0x47b784['markMultiRangeBlockFormat'](_0x408cdc,{'commandName':'listStart','commandParams':[{'startIndex':_0x58171a['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x4a0f15){if('formatBlock'!=_0x4a0f15['type']&&'formatInline'!=_0x4a0f15['type'])return;const _0x1ddd31=this['editor']['locale'],{data:_0x37a1e7}=_0x4a0f15;if(!_0x37a1e7)return;let _0x34ff2d,_0x703a27;switch(_0x37a1e7['commandName']){case'listStyle':_0x34ff2d='*Change\x20to:*\x20%0',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d,wt(_0x1ddd31,this['_getTranslationKeyForListStyle'](_0x37a1e7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34ff2d=_0x37a1e7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d)};break;case'listStart':_0x34ff2d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x703a27={'type':'format','content':wt(_0x1ddd31,_0x34ff2d,_0x37a1e7['commandParams'][0x0]['startIndex'])};}return _0x703a27;}_getSuggestionBlocksForListStyle(){const _0xa8a3b6=this['editor']['plugins']['get']('LegacyListUtils');let _0x293285=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x293285[0x0]?.['is']('element','listItem')&&_0x293285['unshift'](..._0xa8a3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x293285[_0x293285['length']-0x1]?.['is']('element','listItem')&&_0x293285['push'](..._0xa8a3b6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x293285=[...new Set(_0x293285)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x293285=_0x293285['filter'](_0x151ad5=>_0x151ad5['is']('element','listItem'))),_0x293285;}_getSuggestionBlocks(_0x39c1a7){const _0x5a06d7=this['editor']['plugins']['get']('LegacyListUtils');let _0x4e55e7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x39c1a7)['map'](_0x20e026=>{const _0x14061a=this['editor']['model']['createPositionAt'](_0x20e026,0x0);return[..._0x5a06d7['getSiblingNodes'](_0x14061a,'backward'),..._0x5a06d7['getSiblingNodes'](_0x14061a,'forward')];})['flat']();return _0x4e55e7=[...new Set(_0x4e55e7)],_0x4e55e7;}_getTranslationKeyForListStyle(_0x18e694){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18e694)||'default')['toUpperCase']()+'_LIST_'+_0x18e694['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x17c3d7{afterInit(){const _0x5a1e45=this['editor'];if(!_0x5a1e45['plugins']['has']('MediaEmbedEditing'))return;const _0x1c8eff=_0x5a1e45['plugins']['get']('TrackChangesEditing'),_0x32fbce=_0x5a1e45['locale'];_0x1c8eff['enableCommand']('mediaEmbed'),_0x1c8eff['descriptionFactory']['registerElementLabel']('media',_0x54e4f5=>wt(_0x32fbce,'ELEMENT_MEDIA',_0x54e4f5)),_0x5a1e45['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1c8eff['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1c8eff['descriptionFactory']['registerDescriptionCallback'](_0x1b36ea=>{if('attribute'!=_0x1b36ea['type'])return;const {data:_0x3ac165}=_0x1b36ea;if(!_0x3ac165||'resizedWidth'!=_0x3ac165['key'])return;const _0x5d6ef5=_0x1b36ea['getContainedElement']();if(!_0x5d6ef5||!_0x5d6ef5['is']('element','media'))return;const _0xe0b27a=wt(_0x32fbce,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x32fbce,'*Set\x20format:*\x20%0',_0xe0b27a)};}));}},Re=class extends _0x17c3d7{afterInit(){const _0x164b45=this['editor'];if(!_0x164b45['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x282b67=_0x164b45['plugins']['get']('TrackChangesEditing'),_0x3b16aa=_0x164b45['locale'],_0x27f672=_0x164b45['plugins']['get']('MediaEmbedStyleEditing'),_0x406caa={};for(const _0x3e43d6 of _0x27f672['normalizedStyles'])_0x406caa[_0x3e43d6['name']]=_0x3e43d6['title']['toLowerCase']();const _0x52a0c0=_0x27f672['normalizedStyles']['find'](_0x158252=>_0x158252['isDefault'])?.['name'];_0x282b67['enableCommand']('mediaStyle',(_0x3917f7,_0x809fb6)=>{const _0x5d249f=_0x164b45['plugins']['get']('Users')['me'],_0xcb3b0f=_0x164b45['commands']['get']('mediaStyle'),_0x1eb957=function(_0x2038e0){const _0x12d897=_0x2038e0['model']['document']['selection']['getSelectedElement']();return _0x12d897&&_0x12d897['is']('element','media')?_0x12d897:null;}(_0x164b45);if(!_0x1eb957)return;const _0x6dc35f=_0x164b45['model']['createRangeOn'](_0x1eb957);let _0x1197da=_0xcb3b0f['value'];if(_0x1197da==_0x809fb6['value'])return;const _0x3e1607={'commandName':'mediaStyle','commandParams':[_0x809fb6],'formatGroupId':_0x5a260f()};_0x164b45['model']['change'](()=>{_0x282b67['getSuggestions']()['filter'](_0x2fb47c=>_0x2fb47c['isInContent']&&_0x5d249f==_0x2fb47c['author']&&'formatBlock'==_0x2fb47c['type']&&'mediaStylePostApply'==_0x2fb47c['subType']&&_0x2fb47c['getFirstRange']()['isEqual'](_0x6dc35f))['forEach'](_0x31aec8=>_0x282b67['discardSuggestion'](_0x31aec8['head'])),_0xcb3b0f['refresh'](),_0x1197da=_0xcb3b0f['value'],_0x1197da!=_0x809fb6['value']&&_0x282b67['markBlockFormat'](_0x1eb957,{..._0x3e1607,'commandReversedParams':[{'value':'string'==typeof _0x1197da?_0x1197da:null}]},[],'mediaStylePostApply');});}),_0x282b67['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x282b67['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x2ba345,_0x290134)=>{_0x282b67['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2ba345,{'commandName':_0x290134['commandName'],'commandParams':_0x290134['commandReversedParams']});}),_0x282b67['descriptionFactory']['registerDescriptionCallback'](_0x59ef6f=>{if('formatBlock'!=_0x59ef6f['type'])return;const {data:_0x5b4cc9}=_0x59ef6f;if(!_0x5b4cc9||'mediaStyle'!=_0x5b4cc9['commandName'])return;const _0x402ccb=_0x5b4cc9['commandParams'][0x0]['value']||_0x52a0c0;if(!_0x402ccb)return;const _0x2c615c=_0x406caa[_0x402ccb]||_0x402ccb;return{'type':'format','content':wt(_0x3b16aa,'*Format:*\x20%0',_0x2c615c)};});}},Ne=class extends _0x17c3d7{afterInit(){const _0x42ba70=this['editor'];_0x42ba70['plugins']['has']('MentionEditing')&&_0x42ba70['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x17c3d7{afterInit(){const _0x3bd535=this['editor'];if(!_0x3bd535['plugins']['has']('MergeFieldsEditing'))return;const _0x40815b=_0x3bd535['plugins']['get']('TrackChangesEditing'),_0x5684fd=_0x3bd535['locale'];_0x40815b['enableCommand']('insertMergeField'),_0x40815b['enableCommand']('insertMergeFieldBlock'),_0x40815b['enableCommand']('insertMergeFieldImage'),_0x40815b['descriptionFactory']['registerElementLabel']('mergeField',_0x53a72d=>wt(_0x5684fd,'ELEMENT_MERGE_FIELD',_0x53a72d)),_0x40815b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x556010=>wt(_0x5684fd,'ELEMENT_MERGE_FIELD',_0x556010)),_0x40815b['descriptionFactory']['registerDescriptionCallback'](_0xbaa39=>{if('insertion'!=_0xbaa39['type']&&'deletion'!=_0xbaa39['type'])return;const _0x2a0d04=_0xbaa39['getContainedElement']();if(null==_0x2a0d04)return;const _0x35ba2b=_0x3bd535['plugins']['get']('MergeFieldsEditing');let _0x3b1a17;switch(_0x35ba2b['getMergeFieldType'](_0x2a0d04)){case null:return;case'image':{const _0x35ceca=_0x35ba2b['unwrapAffixes'](_0x2a0d04['getAttribute']('src'));_0x3b1a17=_0x35ba2b['getLabel'](_0x35ceca)||_0x35ceca;break;}default:{const _0x1f118d=_0x2a0d04['getAttribute']('id');_0x3b1a17=_0x35ba2b['getLabel'](_0x1f118d)||_0x1f118d;break;}}return'insertion'==_0xbaa39['type']?{'type':'insertion','content':wt(_0x5684fd,'*Insert:*\x20%0','\x22'+_0x3b1a17+'\x22\x20'+wt(_0x5684fd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x5684fd,'*Remove:*\x20%0','\x22'+_0x3b1a17+'\x22\x20'+wt(_0x5684fd,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x17c3d7{afterInit(){const _0x3f786a=this['editor'],_0x4a93c8=_0x3f786a['plugins']['get']('TrackChangesEditing');_0x3f786a['plugins']['has']('MultiLevelList')&&(_0x4a93c8['enableDefaultAttributesIntegration']('multiLevelList'),_0x4a93c8['descriptionFactory']['registerDescriptionCallback'](_0x21017d=>this['handleDescriptions'](_0x21017d)));}handleDescriptions(_0x4632c1){const _0x5f1f5e=this['editor']['locale'],{data:_0x441b15}=_0x4632c1,_0x49dcc6={'type':'format','content':''};if(_0x441b15&&'listMarkerStyle'==_0x441b15['key']){if(!_0x441b15['oldValue'])return{'type':'format','content':wt(_0x5f1f5e,'*Set\x20format:*\x20%0',wt(_0x5f1f5e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441b15['newValue']+')'};if(!_0x441b15['newValue']){let _0x1740b7=_0x4632c1['head'];for(;_0x1740b7;){if(_0x1740b7['data']&&'listType'==_0x1740b7['data']['key']&&_0x1740b7['data']['newValue'])return _0x49dcc6;_0x1740b7=_0x1740b7['next'];}return{'type':'format','content':wt(_0x5f1f5e,'*Remove\x20format:*\x20%0',wt(_0x5f1f5e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x441b15['oldValue']+')'};}}}},Me=class extends _0x17c3d7{afterInit(){const _0x3cfb80=this['editor'];if(!_0x3cfb80['plugins']['has']('PageBreakEditing'))return;_0x3cfb80['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x114af2=_0x3cfb80['plugins']['get']('TrackChangesEditing'),_0x3197d3=_0x3cfb80['locale'];_0x114af2['descriptionFactory']['registerElementLabel']('pageBreak',_0x252917=>wt(_0x3197d3,'ELEMENT_PAGE_BREAK',_0x252917));}},Oe=class extends _0x17c3d7{afterInit(){const _0xea4979=this['editor'];if(!_0xea4979['plugins']['has']('Paragraph'))return;const _0x7c558b=_0xea4979['locale'],_0x2397ec=_0xea4979['plugins']['get']('TrackChangesEditing');_0x2397ec['descriptionFactory']['registerElementLabel']('paragraph',_0x2d5fde=>wt(_0x7c558b,'ELEMENT_PARAGRAPH',_0x2d5fde)),_0x2397ec['enableDefaultAttributesIntegration']('paragraph'),_0x2397ec['enableCommand']('insertParagraph');const _0xab9539=_0x2397ec['descriptionFactory'];_0xab9539['registerDescriptionCallback'](_0x2b0374=>{if('insertion'!==_0x2b0374['type'])return;const {start:_0x1c2d25,end:_0xecb11}=_0x2b0374['getFirstRange']();if(!_0x1c2d25['isTouching'](_0xecb11)||!_0x1c2d25['nodeAfter'])return;const _0x3c4b21=_0xea4979['model']['schema'],_0x24335f=_0x1c2d25['nodeAfter'];return _0x3c4b21['isBlock'](_0x24335f)&&!_0x3c4b21['isLimit'](_0x24335f)&&_0x3c4b21['checkChild'](_0x24335f,'$text')?{'type':'insertion','content':wt(_0x7c558b,'*Insert:*\x20%0',_0xab9539['getItemLabel'](_0x24335f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xf1221f=this['editor'],_0x273fb0=_0xf1221f['locale'];_0xf1221f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35048d=>{if('formatBlock'!=_0x35048d['type'])return;const {data:_0x2ec20c}=_0x35048d;return _0x2ec20c&&'paragraph'==_0x2ec20c['commandName']?{'type':'format','content':wt(_0x273fb0,'*Change\x20to:*\x20%0',wt(_0x273fb0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x17c3d7{afterInit(){const _0x259718=this['editor'];_0x259718['commands']['get']('replaceSource')&&_0x259718['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x17c3d7{afterInit(){const _0x3d4cf0=this['editor'];_0x3d4cf0['plugins']['has']('RemoveFormatEditing')&&(_0x3d4cf0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x31b570=this['editor'];_0x31b570['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8cbfe9=>{if('formatBlock'!=_0x8cbfe9['type']&&'formatInline'!=_0x8cbfe9['type'])return;const {data:_0x3a2e67}=_0x8cbfe9;return _0x3a2e67&&'removeFormat'==_0x3a2e67['commandName']?{'type':'format','content':wt(_0x31b570['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x17c3d7{afterInit(){const _0x82768e=this['editor'];if(!_0x82768e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b49ca=_0x82768e['plugins']['get']('TrackChangesEditing');_0x2b49ca['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b49ca['enableCommand']('goToNextRestrictedEditingException');const _0x293a65=_0x82768e['plugins']['get']('RestrictedEditingModeEditing');_0x293a65['enableCommand']('trackChanges'),_0x293a65['enableCommand']('acceptSuggestion'),_0x293a65['enableCommand']('discardSuggestion'),_0x293a65['enableCommand']('acceptAllSuggestions'),_0x293a65['enableCommand']('discardAllSuggestions'),_0x293a65['enableCommand']('acceptSelectedSuggestions'),_0x293a65['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x17c3d7{afterInit(){const _0x2e2350=this['editor'];if(!_0x2e2350['plugins']['has']('ShiftEnter'))return;const _0x513071=_0x2e2350['plugins']['get']('TrackChangesEditing');_0x513071['enableCommand']('shiftEnter'),_0x513071['descriptionFactory']['registerElementLabel']('softBreak',_0xdc6371=>wt(_0x2e2350['locale'],'ELEMENT_LINE_BREAK',_0xdc6371));}};function De(_0x1cda4e,_0x9fad06,_0x59faba){const _0x4d7db2=[];for(const _0x2671a5 of _0x9fad06['getItems']())_0x2671a5['hasAttribute'](_0x1cda4e)&&_0x4d7db2['push'](_0x59faba['createRangeOn'](_0x2671a5));return _0x4d7db2;}var Ue=class extends _0x17c3d7{afterInit(){const _0x37fdfe=this['editor'],_0x510be0=_0x37fdfe['plugins']['get']('TrackChangesEditing');_0x37fdfe['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x510be0['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x28ffed=this['editor'],_0x284553=_0x28ffed['model'],_0x353f90=_0x28ffed['locale'],_0x3d9f7d=_0x28ffed['plugins']['get']('TrackChangesEditing'),_0x4d2d02='restrictedEditingException',_0x4b7dee=_0x28ffed['commands']['get'](_0x4d2d02);_0x3d9f7d['enableCommand'](_0x4d2d02,(_0x2447b3,_0x48b3d2={})=>{const _0x6ce60e=_0x284553['document']['selection'];if(_0x6ce60e['isCollapsed'])return void _0x2447b3(_0x48b3d2);const _0x179767=void 0x0!==_0x48b3d2['forceValue']?_0x48b3d2['forceValue']:!_0x4b7dee['value'];_0x284553['change'](()=>{const _0x311226=Array['from'](_0x6ce60e['getRanges']());for(const _0x294316 of _0x311226){const _0x5987d8=_0x179767?[_0x294316]:De(_0x4d2d02,_0x294316,_0x284553);for(const _0x5c0421 of _0x5987d8)_0x3d9f7d['markInlineFormat'](_0x5c0421,{'commandName':_0x4d2d02,'commandParams':[{'forceValue':_0x179767}]});}});}),_0x3d9f7d['descriptionFactory']['registerDescriptionCallback'](_0x1d5b0b=>{if('formatBlock'!=_0x1d5b0b['type']&&'formatInline'!=_0x1d5b0b['type'])return;const {data:_0x54e959}=_0x1d5b0b;return _0x54e959&&_0x54e959['commandName']==_0x4d2d02?_0x54e959['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x353f90,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x353f90,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x4fdf1d=this['editor'],_0x2ee2dc=_0x4fdf1d['locale'],_0x53ae94=_0x4fdf1d['plugins']['get']('TrackChangesEditing'),_0x3bfe2a='restrictedEditingExceptionBlock',_0x40c2ba=this['editor']['commands']['get'](_0x3bfe2a);_0x53ae94['enableCommand'](_0x3bfe2a,(_0x3314d4,_0x40d92f={})=>{const _0x5a84d9=this['editor']['model']['document']['selection'],_0x398916=_0x40d92f&&void 0x0!==_0x40d92f['forceValue']?_0x40d92f['forceValue']:!_0x40c2ba['value'];let _0x5154e9=[];if(_0x398916){const _0x29925e=Array['from'](_0x5a84d9['getSelectedBlocks']())['filter'](_0x54a9bd=>function(_0x15b993){return!!_0x15b993['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x54a9bd)||function(_0x5b73c8,_0x3ff98c){const _0x390486=_0x3ff98c['createContext'](_0x5b73c8['parent']);return!!_0x3ff98c['checkChild'](_0x390486,'restrictedEditingException')&&!!_0x3ff98c['checkChild'](_0x390486['push']('restrictedEditingException'),_0x5b73c8);}(_0x54a9bd,this['editor']['model']['schema']));_0x5154e9=kt(_0x29925e,_0x4fdf1d['model']);}else{const _0x284e56=Array['from'](_0x5a84d9['getSelectedBlocks']())['map'](_0x16a2dd=>function(_0x59dbb7){let _0x53f611=_0x59dbb7;for(;_0x53f611['parent'];){if('restrictedEditingException'==_0x53f611['parent']['name'])return _0x53f611;_0x53f611=_0x53f611['parent'];}return null;}(_0x16a2dd))['filter'](_0x1e388f=>!!_0x1e388f);_0x5154e9=kt(_0x284e56,_0x4fdf1d['model']);}_0x4fdf1d['model']['change'](()=>{for(const _0x528fae of _0x5154e9)_0x53ae94['markBlockFormat'](_0x528fae,{'commandName':_0x3bfe2a,'commandParams':[{'forceValue':_0x398916}]});});}),_0x53ae94['descriptionFactory']['registerDescriptionCallback'](_0x287b06=>{const {data:_0x31611e}=_0x287b06;if(_0x31611e&&_0x31611e['commandName']==_0x3bfe2a)return _0x31611e['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x2ee2dc,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x2ee2dc,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x17c3d7{afterInit(){const _0x80085c=this['editor'];_0x80085c['plugins']['has']('Style')&&_0x80085c['plugins']['has']('DataSchema')&&(_0x80085c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x2a4730=this['editor'],_0x11634c=_0x2a4730['locale'];_0x2a4730['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54a88f=>{if('formatBlock'!=_0x54a88f['type']&&'formatInline'!=_0x54a88f['type'])return;const {data:_0x1b8fb4}=_0x54a88f;return _0x1b8fb4&&'style'===_0x1b8fb4['commandName']?_0x1b8fb4['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x11634c,'*Set\x20format:*\x20%0',_0x1b8fb4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x11634c,'*Remove\x20format:*\x20%0',_0x1b8fb4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x17c3d7{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x33c2cc){super(_0x33c2cc),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x57a8f7=this['editor'],_0xc2f940=_0x57a8f7['model']['document']['selection'];if(!_0x57a8f7['plugins']['has']('TableEditing'))return;const _0x19d2d4=_0x57a8f7['locale'],_0x5a5904=_0x57a8f7['plugins']['get']('TrackChangesEditing'),_0x4caaeb=_0x57a8f7['plugins']['get']('TableUtils');_0x5a5904['descriptionFactory']['registerElementLabel']('table',_0x3d72d6=>wt(_0x19d2d4,'ELEMENT_TABLE',_0x3d72d6)),this['_setupColumnsRowsFixing'](),_0x5a5904['enableCommand']('insertTable'),_0x5a5904['enableCommand']('selectTableRow'),_0x5a5904['enableCommand']('selectTableColumn');for(const _0x2f48a4 of['insertTableRowAbove','insertTableRowBelow']){const _0x233542=_0x57a8f7['commands']['get'](_0x2f48a4);_0x5a5904['enableCommand'](_0x2f48a4,_0x46d3ee=>{_0x57a8f7['model']['change'](_0x4d3f7d=>{_0x46d3ee();const _0x26df8d='above'===_0x233542['order'],_0x411abf=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x4d903b=_0x4caaeb['getRowIndexes'](_0x411abf),_0x2eca04=_0x26df8d?_0x4d903b['first']-0x1:_0x4d903b['last']+0x1,_0x43b60e=_0x411abf[0x0]['findAncestor']('table'),_0x2a8a14=_0x4caaeb['createTableWalker'](_0x43b60e,{'startRow':_0x2eca04,'endRow':_0x2eca04}),_0x4cf798=Array['from'](_0x2a8a14)['map'](_0x58a9bb=>_0x4d3f7d['createRangeOn'](_0x58a9bb['cell']));_0x5a5904['markMultiRangeInsertion'](_0x4cf798,'tableRow');});});}for(const _0x32d66 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b1c30=_0x57a8f7['commands']['get'](_0x32d66);_0x5a5904['enableCommand'](_0x32d66,_0x8de617=>{_0x57a8f7['model']['change'](_0x1786b8=>{_0x8de617();const _0x9d8cab='left'===_0x5b1c30['order'],_0x264010=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x80a92e=_0x4caaeb['getColumnIndexes'](_0x264010),_0x304e13=_0x9d8cab?_0x80a92e['first']-0x1:_0x80a92e['last']+0x1,_0x3dc3f2=_0x264010[0x0]['findAncestor']('table'),_0x56324c=_0x4caaeb['createTableWalker'](_0x3dc3f2,{'startRow':0x0,'column':_0x304e13,'includeAllSlots':!0x1}),_0x472f8c=Array['from'](_0x56324c)['map'](_0x3acac0=>_0x1786b8['createRangeOn'](_0x3acac0['cell']));_0x5a5904['markMultiRangeInsertion'](_0x472f8c,'tableColumn');});});}for(const _0x5ce58a of['removeTableRow','removeTableColumn']){const _0x24e726=_0x5ce58a['substr'](0xb),_0x13d440=_0x24e726['toLowerCase'](),_0x428bae=_0x13d440['substr'](0x0,0x3)+'span',_0x513374='table'+_0x24e726,_0x6493d6='min'+_0x24e726,_0x430246='max'+_0x24e726;_0x5a5904['enableCommand'](_0x5ce58a,()=>{_0x57a8f7['model']['change'](_0x3350b4=>{const _0x12e742=_0x4caaeb['getSelectionAffectedTableCells'](_0xc2f940),_0x3d6dcc=_0x12e742[0x0]['findAncestor']('table');let _0x3a7f8e;if('removeTableRow'==_0x5ce58a){const _0x14e3f9=_0x4caaeb['getRowIndexes'](_0x12e742);_0x3a7f8e={'startRow':_0x14e3f9['first'],'endRow':_0x14e3f9['last'],'includeAllSlots':!0x0};}else{const _0x1a1802=_0x4caaeb['getColumnIndexes'](_0x12e742);_0x3a7f8e={'startColumn':_0x1a1802['first'],'endColumn':_0x1a1802['last'],'includeAllSlots':!0x0};}const _0x31ab12=_0x4caaeb['createTableWalker'](_0x3d6dcc,_0x3a7f8e),_0x2c401a=Array['from'](_0x31ab12)['map'](({cell:_0x582b7a})=>_0x582b7a),_0x29953e=Ge(_0x2c401a['filter'](_0x2832cb=>_0x2832cb['hasAttribute'](_0x428bae))),_0x116241=Ge(_0x2c401a['filter'](_0xbf8ac2=>!_0xbf8ac2['hasAttribute'](_0x428bae)))['map'](_0x4835a2=>_0x3350b4['createRangeOn'](_0x4835a2)),_0x57ad2d=_0x5a5904['markMultiRangeDeletion'](_0x116241,_0x513374);if(_0x57ad2d&&('tableRow'==_0x57ad2d['subType']||'tableColumn'==_0x57ad2d['subType'])){const _0x183adb=this['_getSuggestionCoords'](_0x57ad2d);for(const _0x490e92 of _0x29953e){const _0x57762c=_0x3350b4['createRangeOn'](_0x490e92),_0x301af4=_0x4caaeb['getCellLocation'](_0x490e92),_0x43b996=_0x490e92['getAttribute'](_0x428bae)-0x1,_0x207bcf=_0x183adb[_0x6493d6],_0xe84c32=_0x183adb[_0x430246];_0x207bcf<=_0x301af4[_0x13d440]&&_0x301af4[_0x13d440]+_0x43b996<=_0xe84c32&&_0x57ad2d['addRange'](_0x57762c);}}});});}function _0x824e9f(_0x4f1db5){const _0x206991=Array['from'](_0xc2f940['getRanges']())['map'](_0x1785ca=>at['fromRange'](_0x1785ca));_0x57a8f7['model']['change'](_0x529923=>{const _0xf98084=_0x529923['batch'];_0x4f1db5=_0x4f1db5['filter'](_0x469032=>'$graveyard'!=_0x469032['root']['rootName']),_0x529923['setSelection'](_0x4f1db5),_0x57a8f7['commands']['get']('removeTableRow')['refresh'](),_0x57a8f7['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x57a8f7['model']['enqueueChange'](()=>{_0x57a8f7['model']['enqueueChange'](_0xf98084,_0x34a99d=>{const _0x361c1e=_0x206991['filter'](_0x132938=>'$graveyard'!=_0x132938['root']['rootName']);_0x361c1e['length']>0x0&&_0x34a99d['setSelection'](_0x361c1e);for(const _0x92576d of _0x206991)_0x92576d['detach']();});});});}function _0xe54ef8(_0x1412e2){_0x57a8f7['model']['change'](_0x391f43=>{const _0x1ce0de=Array['from'](_0xc2f940['getRanges']())['map'](_0x47cc5c=>at['fromRange'](_0x47cc5c)),_0x684a89=[];for(const _0x2c6099 of _0x1412e2)for(const _0x2de060 of _0x2c6099['getItems']({'shallow':!0x0}))_0x684a89['push'](_0x2de060);for(const _0x349bd4 of _0x684a89)'$graveyard'!=_0x349bd4['root']['rootName']&&(_0x391f43['setSelection'](_0x391f43['createPositionAt'](_0x349bd4,0x0)),_0x57a8f7['commands']['get']('removeTableColumn')['refresh'](),_0x57a8f7['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1b562d=_0x1ce0de['filter'](_0x1dbc45=>'$graveyard'!=_0x1dbc45['root']['rootName']);_0x1b562d['length']>0x0&&_0x391f43['setSelection'](_0x1b562d);for(const _0x1d81db of _0x1ce0de)_0x1d81db['detach']();});}function _0x3bc3d4(_0x2bc509,_0x27ce6e){return _0x27ce6e['every'](_0x17e6cd=>_0x2bc509['some'](_0x162ed0=>_0x162ed0['end']['isEqual'](_0x17e6cd['start'])||_0x17e6cd['end']['isEqual'](_0x162ed0['start'])));}function _0x3e6444(_0x5d5a00,_0x3ab0b9){return!_0x5d5a00['some'](_0x32dc1c=>_0x3ab0b9['some'](_0x1d7d3f=>_0x32dc1c['isIntersecting'](_0x1d7d3f)))&&_0x5d5a00['some'](_0x39bd83=>_0x3ab0b9['some'](_0x1f56e2=>_0x39bd83['end']['isTouching'](_0x1f56e2['start'])));}_0x5a5904['descriptionFactory']['registerDescriptionCallback'](_0x173b0a=>{if('insertion'!=_0x173b0a['type']&&'deletion'!=_0x173b0a['type'])return;const _0x1281c9=_0x173b0a['getContainedElement']();if(null!=_0x1281c9&&_0x1281c9['is']('element','table')){if('insertion'==_0x173b0a['type']){const _0x9abacc=_0x173b0a['getItems']()['filter'](_0x1cfc26=>_0x1cfc26['is']('$textProxy'))['map'](_0x184944=>_0x184944['data']);if(_0x9abacc['length'])return{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9abacc['join']('\x20')+'\x22'))};}if('deletion'==_0x173b0a['type']){const _0x5137ff=_0x173b0a['getItems']()['filter'](_0x77a056=>_0x77a056['is']('$textProxy'))['map'](_0x1190ee=>_0x1190ee['data']);if(_0x5137ff['length'])return{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5137ff['join']('\x20')+'\x22'))};}}}),_0x5a5904['descriptionFactory']['registerDescriptionCallback'](_0x2afe30=>{if('tableRow'==_0x2afe30['subType']){const _0x567e30=_0x2afe30['getItems']()['filter'](_0x5df0cf=>_0x5df0cf['is']('$textProxy'))['map'](_0x535aac=>_0x535aac['data']),_0x2e6cff=this['_getSuggestionCoords'](_0x2afe30),_0x2b8493=_0x2e6cff['maxRow']-_0x2e6cff['minRow']+0x1;if('insertion'==_0x2afe30['type'])return _0x567e30['length']?{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8493,'\x22'+_0x567e30['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW',_0x2b8493))};if('deletion'==_0x2afe30['type'])return _0x567e30['length']?{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2b8493,'\x22'+_0x567e30['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_ROW',_0x2b8493))};}if('tableColumn'==_0x2afe30['subType']){const _0x5e9920=_0x2afe30['getItems']()['filter'](_0x2fbda9=>_0x2fbda9['is']('$textProxy'))['map'](_0x150a55=>_0x150a55['data']),_0x458e54=this['_getSuggestionCoords'](_0x2afe30),_0x38482c=_0x458e54['maxColumn']-_0x458e54['minColumn']+0x1;if('insertion'==_0x2afe30['type'])return _0x5e9920['length']?{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x38482c,'\x22'+_0x5e9920['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x19d2d4,'*Insert:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN',_0x38482c))};if('deletion'==_0x2afe30['type'])return _0x5e9920['length']?{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x38482c,'\x22'+_0x5e9920['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x19d2d4,'*Remove:*\x20%0',wt(_0x19d2d4,'ELEMENT_TABLE_COLUMN',_0x38482c))};}}),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x824e9f),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x824e9f),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe54ef8),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe54ef8),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3bc3d4),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3bc3d4),_0x5a5904['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3e6444),_0x5a5904['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3e6444);}_acceptFormatSuggestionCallbackFactory(){const _0x565714=this['editor'],_0x2906ef=_0x565714['model']['document']['selection'];return(_0x175294,_0x202cb8)=>{_0x565714['model']['change'](_0x32d13d=>{const {commandName:_0x1754de,commandParams:_0x2d8089}=_0x202cb8;let _0x145806=_0x175294[0x0]['end']['nodeBefore'];_0x2d8089&&_0x2d8089[0x0]&&!0x1===_0x2d8089[0x0]['forceValue']&&(_0x145806=_0x175294[0x0]['start']['nodeAfter']);const _0x39b950=_0x32d13d['createRangeIn'](_0x145806);if('$graveyard'==_0x39b950['root']['rootName'])return;const _0x5aa435=Array['from'](_0x2906ef['getRanges']())['map'](_0x4d79ef=>at['fromRange'](_0x4d79ef));_0x32d13d['setSelection'](_0x39b950),_0x565714['commands']['get'](_0x1754de)['refresh'](),_0x2d8089['push']({'forceDefaultExecution':!0x0}),_0x565714['execute'](_0x1754de,..._0x2d8089);const _0x54d7f5=_0x5aa435['filter'](_0x5b9731=>'$graveyard'!=_0x5b9731['root']['rootName']);_0x54d7f5['length']>0x0&&_0x32d13d['setSelection'](_0x54d7f5);for(const _0xa2c537 of _0x5aa435)_0xa2c537['detach']();});};}_getCoordsForCells(_0x5a07ce){const _0x456e57=this['editor']['plugins']['get']('TableUtils');let _0x403aa5=Number['MAX_SAFE_INTEGER'],_0x3a582b=Number['MIN_SAFE_INTEGER'],_0x2f2cd3=Number['MAX_SAFE_INTEGER'],_0x39882b=Number['MIN_SAFE_INTEGER'];for(const _0x822133 of _0x5a07ce){if('$graveyard'==_0x822133['root']['rootName'])continue;const {row:_0x25ed59,column:_0x352543}=_0x456e57['getCellLocation'](_0x822133),_0x1d124b=_0x822133['hasAttribute']('rowspan')?_0x822133['getAttribute']('rowspan')-0x1:0x0,_0x3ef29b=_0x822133['hasAttribute']('colspan')?_0x822133['getAttribute']('colspan')-0x1:0x0;_0x403aa5=_0x25ed59<_0x403aa5?_0x25ed59:_0x403aa5,_0x3a582b=_0x25ed59+_0x1d124b>_0x3a582b?_0x25ed59+_0x1d124b:_0x3a582b,_0x2f2cd3=_0x352543<_0x2f2cd3?_0x352543:_0x2f2cd3,_0x39882b=_0x352543+_0x3ef29b>_0x39882b?_0x352543+_0x3ef29b:_0x39882b;}return{'minRow':_0x403aa5,'maxRow':_0x3a582b,'minColumn':_0x2f2cd3,'maxColumn':_0x39882b};}_setupColumnsRowsFixing(){const _0x130ecb=this['editor'],_0x189f55=_0x130ecb['plugins']['get']('TrackChangesEditing'),_0x199e84=_0x130ecb['plugins']['get']('TableUtils');_0x130ecb['model']['document']['on']('change:data',()=>{const _0x54a166=Array['from'](_0x130ecb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f68da,data:_0x9830e6}of _0x54a166){const {group:_0x35162e,id:_0x154e5a,subType:_0x2ab162}=nt(_0x3f68da);if('suggestion'!=_0x35162e)continue;if(null!=_0x9830e6['oldRange'])continue;const _0x31ba28=_0x189f55['getSuggestion'](_0x154e5a);this['_tablePostFixingSubtypes']['includes'](_0x2ab162)&&this['_tableSuggestions']['add'](_0x31ba28);}},{'priority':'low'});const _0x266d6f=(_0x1f3054,_0x3eadb4)=>{let _0x54937c=!0x1;const _0x251c9a=_0x3eadb4['createRangeOn'](_0x1f3054),_0x4b8b86=_0x1f3054['findAncestor']('table'),_0x537253=_0x199e84['getCellLocation'](_0x1f3054);for(const _0x2ebefb of this['_tableSuggestions']){const _0x3ddeaf=_0x2ebefb['subType'],_0x51e1ac=_0x3ddeaf['startsWith']('tablePaste'),_0x101d38=_0x3ddeaf['substr'](_0x51e1ac?0xa:0x5),_0x3637d2=_0x101d38['toLowerCase'](),_0x559468=_0x3637d2['substr'](0x0,0x3)+'span',_0x4ff537='min'+_0x101d38,_0x64bde6='max'+_0x101d38;if(!_0x2ebefb['isInContent'])continue;if(_0x4b8b86!=_0x2ebefb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ebefb['isIntersectingWithRange'](_0x251c9a))continue;const _0x183f54=_0x1f3054['hasAttribute'](_0x559468)?_0x1f3054['getAttribute'](_0x559468)-0x1:0x0,_0x930f36=this['_getSuggestionCoords'](_0x2ebefb),_0x2cb803=_0x930f36[_0x4ff537],_0x3fd63f=_0x930f36[_0x64bde6];_0x2cb803<=_0x537253[_0x3637d2]&&_0x537253[_0x3637d2]+_0x183f54<=_0x3fd63f&&(_0x2ebefb['addRange'](_0x251c9a),_0x54937c=!0x0);}return _0x54937c;};_0x130ecb['model']['document']['registerPostFixer'](_0x4224f0=>{let _0x335015=!0x1;for(const _0x104fac of _0x130ecb['model']['document']['differ']['getChanges']())if('insert'==_0x104fac['type']){if('tableRow'==_0x104fac['name']){for(const _0x10b473 of _0x104fac['position']['nodeAfter']['getChildren']())_0x335015=_0x335015||_0x266d6f(_0x10b473,_0x4224f0);}else'tableCell'==_0x104fac['name']&&(_0x335015=_0x335015||_0x266d6f(_0x104fac['position']['nodeAfter'],_0x4224f0));}return _0x335015;});}_getSuggestionCoords(_0x28179e){return this['_getCoordsForCells'](_0x28179e['getRanges']()['map'](_0x303d03=>_0x303d03['start']['nodeAfter']));}};function Ge(_0x31b395){return Array['from'](new Set(_0x31b395)['values']());}var He=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x516cc7=this['editor'],_0x3bb480=_0x516cc7['model']['document']['selection'],_0x3b1abd=_0x516cc7['locale'];if(!_0x516cc7['plugins']['has']('TableEditing'))return;const _0x4342a2=_0x516cc7['plugins']['get']('TrackChangesEditing'),_0x3a69c0=_0x516cc7['plugins']['get']('TableUtils'),_0x5cd377=_0x516cc7['plugins']['get'](xe);_0x5cd377['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4342a2['enableCommand']('mergeTableCells',()=>{const _0xbf0020=_0x3a69c0['getSelectionAffectedTableCells'](_0x516cc7['model']['document']['selection']);_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat'](_0xbf0020,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x516cc7['commands']['get']('mergeTableCells')['on']('execute',(_0x4ad4ac,_0x573c33)=>{_0x516cc7['commands']['get']('trackChanges')['value']&&(_0x573c33['length']>0x0&&_0x573c33[_0x573c33['length']-0x1]&&_0x573c33[_0x573c33['length']-0x1]['forceDefaultExecution']||_0x4342a2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4ad4ac['stop']());},{'priority':'highest'});for(const _0x4116f3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4e6285=_0x516cc7['commands']['get'](_0x4116f3);_0x4342a2['enableCommand'](_0x4116f3,()=>{const _0x3daaf4=_0x516cc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5267ad=>_0x5267ad['is']('element','tableCell')),_0x2a6c25=_0x4e6285['value'];_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat']([_0x3daaf4,_0x2a6c25],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2e4486 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3fbf3f=_0x516cc7['commands']['get'](_0x2e4486);_0x4342a2['enableCommand'](_0x2e4486,()=>{const _0x5a8883=_0x3a69c0['getSelectionAffectedTableCells'](_0x516cc7['model']['document']['selection']),_0x4814d1=_0x5a8883[0x0]['findAncestor']('table'),_0x44cb97=new Set();for(const _0x592e81 of _0x5a8883){const {column:_0x3c68eb,row:_0x4a3885}=_0x3a69c0['getCellLocation'](_0x592e81),_0x1b656b='horizontally'==_0x3fbf3f['direction']?_0x3a69c0['createTableWalker'](_0x4814d1,{'startRow':_0x4a3885,'endRow':_0x4a3885,'includeAllSlots':!0x0}):_0x3a69c0['createTableWalker'](_0x4814d1,{'column':_0x3c68eb,'includeAllSlots':!0x0});for(const {cell:_0x1270cb}of _0x1b656b)_0x44cb97['add'](_0x1270cb);}_0x516cc7['model']['change'](()=>{_0x4342a2['markMultiRangeBlockFormat'](_0x5a8883,{'commandName':_0x2e4486,'commandParams':[]},Array['from'](_0x44cb97),_0x2e4486);});});}_0x4342a2['descriptionFactory']['registerDescriptionCallback'](_0x1eabce=>{if('formatBlock'!=_0x1eabce['type']&&'formatInline'!=_0x1eabce['type'])return;const {data:_0x26501e}=_0x1eabce;return _0x26501e&&'mergeTableCells'==_0x26501e['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Merge\x20cells*')}:void 0x0;}),_0x4342a2['descriptionFactory']['registerDescriptionCallback'](_0x174464=>{if('formatBlock'!=_0x174464['type']&&'formatInline'!=_0x174464['type'])return;const {data:_0x273100}=_0x174464;return _0x273100?'splitTableCellVertically'==_0x273100['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x273100['commandName']?{'type':'format','content':wt(_0x3b1abd,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x364a50=_0x5cd377['_acceptFormatSuggestionCallbackFactory']();for(const _0x335e73 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x335e73,'accept',_0x364a50);for(const _0x1ea638 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ea638,'accept',_0x58fee2=>{_0x516cc7['model']['change'](_0x416c2e=>{const _0x44e8c6=Array['from'](_0x58fee2)['filter'](_0x3b8ee2=>'$graveyard'!=_0x3b8ee2['root']['rootName']&&!!_0x3b8ee2['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x44e8c6['length'])return;const _0x51381e=Array['from'](_0x3bb480['getRanges']())['map'](_0x3e4565=>at['fromRange'](_0x3e4565));_0x416c2e['setSelection'](_0x44e8c6),_0x516cc7['commands']['get'](_0x1ea638)['refresh'](),_0x516cc7['execute'](_0x1ea638,{'forceDefaultExecution':!0x0});const _0x565bd4=_0x51381e['filter'](_0x315b67=>'$graveyard'!=_0x315b67['root']['rootName']);_0x565bd4['length']>0x0&&_0x416c2e['setSelection'](_0x565bd4);for(const _0x4dce2d of _0x51381e)_0x4dce2d['detach']();});});_0x4342a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x330b31=>{_0x516cc7['model']['change'](_0x1243c9=>{const _0x3654d0=Array['from'](_0x3bb480['getRanges']())['map'](_0x1e4d0d=>at['fromRange'](_0x1e4d0d));_0x1243c9['setSelection'](_0x330b31),_0x516cc7['commands']['get']('mergeTableCells')['refresh'](),_0x516cc7['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29f4a1=_0x3654d0['filter'](_0x5b9d91=>'$graveyard'!=_0x5b9d91['root']['rootName']);_0x29f4a1['length']>0x0&&_0x1243c9['setSelection'](_0x29f4a1);for(const _0x270f35 of _0x3654d0)_0x270f35['detach']();});});for(const _0x194189 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3277e8=_0x516cc7['commands']['get'](_0x194189);_0x3277e8['on']('set:isEnabled',(_0x48ed55,_0x5642fa,_0x497af9)=>{if(_0x497af9){const _0x13befc=_0x516cc7['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x491663=>_0x491663['is']('element','tableCell'));this['_areMergableCells'](_0x3277e8['value'],_0x13befc)||(_0x48ed55['return']=!0x1,_0x48ed55['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x53b163=this['editor']['commands']['get']('mergeTableCells'),_0x55b5f2=this['editor']['plugins']['get']('TableUtils');if(!_0x53b163['isEnabled'])return!0x1;const _0x496baa=_0x55b5f2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30ce22 of _0x496baa)for(const _0x45e13a of _0x496baa)if(_0x30ce22!=_0x45e13a&&!this['_areMergableCells'](_0x30ce22,_0x45e13a))return!0x1;return!0x0;}['_areMergableCells'](_0x434864,_0x39eb75){const _0x5c1c3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7146f1=this['editor']['model']['createRangeOn'](_0x434864),_0x172a3b=this['editor']['model']['createRangeOn'](_0x39eb75),_0x133275=new Set(),_0x3fc1fd=new Set();for(const _0x360030 of _0x5c1c3a['getSuggestions']())if(('insertion'==_0x360030['type']||'deletion'==_0x360030['type']||'mergeTableCells'==_0x360030['subType'])&&_0x360030['isInContent']){for(const _0x22d286 of _0x360030['getRanges']())_0x22d286['containsRange'](_0x7146f1,!0x0)&&_0x133275['add'](_0x360030['type']+':'+_0x360030['author']['id']),_0x22d286['containsRange'](_0x172a3b,!0x0)&&_0x3fc1fd['add'](_0x360030['type']+':'+_0x360030['author']['id']);}if(_0x133275['size']!=_0x3fc1fd['size'])return!0x1;for(const _0x730e74 of _0x133275)if(!_0x3fc1fd['has'](_0x730e74))return!0x1;return!0x0;}},$e=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x35cf23=this['editor'];if(!_0x35cf23['plugins']['has']('TableEditing'))return;const _0x13650a=_0x35cf23['locale'],_0x4a09d6=_0x35cf23['plugins']['get']('TrackChangesEditing');_0x4a09d6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4a09d6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4a09d6['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x13650a,'FORMAT_HEADER_ROW')),_0x4a09d6['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x13650a,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x82ece1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf79089=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0x82ece1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xf79089),_0x82ece1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xf79089),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x5913d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23eacc=this['editor']['plugins']['get']('TableUtils');function _0x3fe33e({showActiveMarker:_0x12d242=!0x0,setDataAttribute:_0x156371=!0x0}={}){return(_0x13fe09,_0x1c6620,_0x4ccdbb)=>{const {type:_0x46c430,id:_0x1a2069}=nt(_0x1c6620['markerName']);if(!_0x5913d0['hasSuggestion'](_0x1a2069))return;const _0x136f9e=_0x5913d0['getSuggestion'](_0x1a2069),_0x4dec05=_0x136f9e['data'];if('formatBlock'!=_0x136f9e['type']||!_0x4dec05||'setTableColumnHeader'!=_0x4dec05['commandName'])return;if(_0x1c6620['item'])return void _0x13fe09['stop']();if(!_0x4ccdbb['consumable']['consume'](_0x1c6620['markerRange'],_0x13fe09['name']))return;const _0x202df2=_0x1c6620['markerRange']['start']['nodeAfter'],_0x1f4173=_0x1c6620['markerRange']['end']['nodeBefore'],_0x39b1be=_0x202df2['parent']['parent'],{column:_0x57ecce}=_0x23eacc['getCellLocation'](_0x202df2),{column:_0x52fa98}=_0x23eacc['getCellLocation'](_0x1f4173);for(let _0x165c80=_0x57ecce;_0x165c80<=_0x52fa98;_0x165c80++){const _0x59b6ac=_0x23eacc['createTableWalker'](_0x39b1be,{'column':_0x165c80,'includeAllSlots':!0x1});for(const _0x3cac1d of _0x59b6ac){const _0x2d7b8f=_0x3cac1d['cell'],_0x13acee=_0x4ccdbb['mapper']['toViewElement'](_0x2d7b8f);_0x4ccdbb['writer']['addClass']('ck-suggestion-marker-'+_0x46c430,_0x13acee),_0x156371&&_0x4ccdbb['writer']['setAttribute']('data-suggestion',_0x1a2069,_0x13acee),_0x4ccdbb['mapper']['bindElementToMarker'](_0x13acee,_0x1c6620['markerName']),_0x12d242&&(_0x5913d0['activeMarkers']['includes'](_0x1c6620['markerName'])?_0x4ccdbb['writer']['addClass']('ck-suggestion-marker--active',_0x13acee):_0x4ccdbb['writer']['removeClass']('ck-suggestion-marker--active',_0x13acee));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3fe33e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2375af,_0x436035,_0x13a6d6)=>{_0x13a6d6['options']['showSuggestionHighlights']&&_0x3fe33e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2375af,_0x436035,_0x13a6d6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45bd6d,_0x49cf41,_0x298496)=>{const {type:_0x2953fe,id:_0x2e0b7d}=nt(_0x49cf41['markerName']);if(!_0x5913d0['hasSuggestion'](_0x2e0b7d))return;const _0x2bfddf=_0x5913d0['getSuggestion'](_0x2e0b7d),_0xa41271=_0x2bfddf['data'];if('formatBlock'!=_0x2bfddf['type']||!_0xa41271||'setTableColumnHeader'!=_0xa41271['commandName'])return;const _0x53cb93=_0x298496['mapper']['markerNameToElements'](_0x49cf41['markerName']);if(_0x53cb93){for(const _0x5ea501 of _0x53cb93)_0x298496['writer']['removeClass']('ck-suggestion-marker-'+_0x2953fe,_0x5ea501),_0x298496['writer']['removeClass']('ck-suggestion-marker--active',_0x5ea501),_0x298496['writer']['removeAttribute']('data-suggestion',_0x5ea501),_0x298496['mapper']['unbindElementFromMarkerName'](_0x5ea501,_0x49cf41['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x2d1c59=this['editor'],_0x13efc5=_0x2d1c59['locale'];function _0x117169(_0x3be2cb){return{'type':'format','content':wt(_0x13efc5,'*Format:*\x20%0',_0x3be2cb)};}_0x2d1c59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3a2054=>{if('formatBlock'!=_0x3a2054['type'])return;const {data:_0x13644b}=_0x3a2054;return _0x13644b?'setTableRowHeader'==_0x13644b['commandName']?_0x13644b['commandParams'][0x0]['forceValue']?_0x117169(wt(_0x13efc5,'FORMAT_HEADER_ROW')):_0x117169(wt(_0x13efc5,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x13644b['commandName']?_0x13644b['commandParams'][0x0]['forceValue']?_0x117169(wt(_0x13efc5,'FORMAT_HEADER_COLUMN')):_0x117169(wt(_0x13efc5,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x44e98c=this['editor'];if(!_0x44e98c['plugins']['has']('TableEditing')||!_0x44e98c['config']['get']('table.enableFooters'))return;const _0x47a2ec=_0x44e98c['locale'],_0x108fe5=_0x44e98c['plugins']['get']('TrackChangesEditing');_0x108fe5['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x108fe5['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x47a2ec,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x17c3d7{afterInit(){const _0x1d85d6=this['editor'],_0xe026d7=_0x1d85d6['locale'],_0x4051b4=_0x1d85d6['plugins']['get']('TrackChangesEditing');function _0x5a442b(_0x10c084){return{'type':'format','content':''+wt(_0xe026d7,'*Set\x20table\x20type:*\x20%0',_0x10c084)};}_0x1d85d6['plugins']['has']('TableLayout')&&(_0x4051b4['enableCommand']('insertTableLayout'),_0x4051b4['enableDefaultAttributesIntegration']('tableType'),_0x4051b4['descriptionFactory']['registerElementLabel'](_0x166a9d=>_0x166a9d['is']('element','table')&&'layout'===_0x166a9d['getAttribute']('tableType'),_0x5df2ac=>wt(_0xe026d7,'ELEMENT_LAYOUT_TABLE',_0x5df2ac)),_0x4051b4['descriptionFactory']['registerDescriptionCallback'](_0x5c2376=>{const {data:_0x1bff8e}=_0x5c2376;if(_0x1bff8e&&'tableType'==_0x1bff8e['key'])switch(_0x1bff8e['newValue']){case'layout':return _0x5a442b(wt(_0xe026d7,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5a442b(wt(_0xe026d7,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](ze['map'](_0x5523bd=>[_0x5523bd,null]));var Ke=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x1c9309=this['editor'];if(!_0x1c9309['plugins']['has']('TableClipboard'))return;const _0x5c9071=_0x1c9309['plugins']['get']('TrackChangesEditing'),_0x28d8fc=_0x1c9309['plugins']['get']('TableUtils'),_0x1f51a7=_0x1c9309['plugins']['get'](xe),_0x15b075=_0x1c9309['plugins']['get']('TableClipboard'),_0x11a777=_0x1c9309['plugins']['get']('TableSelection'),_0x28d54f=_0x1c9309['plugins']['get'](mt);_0x1f51a7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1c9309['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1c9309['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x48f238=null,_0x4167d=!0x1;_0x28d54f['on']('contentInsertion',(_0x494b25,_0x29b0c4)=>{_0x4167d='paste'===_0x29b0c4['method'];}),_0x1c9309['model']['on']('insertContent',(_0x38184,_0x4dd54e)=>{if(!_0x4167d&&null===_0x11a777['getSelectedTableCells']())return;const [_0x242bc2,_0x253b98]=_0x4dd54e,_0x18b818=_0x4dd54e[_0x4dd54e['length']-0x1];_0x18b818&&_0x18b818['forceDefaultExecution']||_0x5c9071['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4b2744,_0x14c949,_0x159c1d,_0x55d91c,_0x1498db){if(_0x14c949&&!_0x14c949['is']('documentSelection'))return!0x1;const _0x44a2aa=_0x1498db['getTableIfOnlyTableInContent'](_0x4b2744,_0x159c1d);if(!_0x44a2aa||!qe(_0x44a2aa,void 0x0,_0x55d91c))return!0x1;const _0x22d6bb=_0x55d91c['getSelectionAffectedTableCells'](_0x159c1d['document']['selection']);if(!_0x22d6bb['length'])return!0x1;const _0x35ff43=_0x22d6bb[0x0]['findAncestor']('table'),_0x2e3d66=_0x55d91c['getRowIndexes'](_0x22d6bb),_0x4eeb65=_0x55d91c['getColumnIndexes'](_0x22d6bb),_0x998fb6={'startRow':_0x2e3d66['first'],'endRow':_0x2e3d66['last'],'startColumn':_0x4eeb65['first'],'endColumn':_0x4eeb65['last']};return 0x1==_0x22d6bb['length']&&(_0x998fb6['endRow']+=_0x55d91c['getRows'](_0x44a2aa)-0x1,_0x998fb6['endColumn']+=_0x55d91c['getColumns'](_0x44a2aa)-0x1),qe(_0x35ff43,_0x998fb6,_0x55d91c);}(_0x242bc2,_0x253b98,_0x1c9309['model'],_0x28d8fc,_0x15b075)&&(_0x38184['stop'](),_0x48f238={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1c9309['model']['change'](()=>{_0x1c9309['model']['insertContent'](_0x4dd54e[0x0],_0x4dd54e[0x1],_0x4dd54e[0x2],{'forceDefaultExecution':!0x0});const _0x5e3e6e=_0x5a260f(),{rowInsertionRanges:_0x47b984,columnInsertionRanges:_0x2538b3,insertionRanges:_0x296ce6,deletionRanges:_0x546ff0,cells:_0x516d39}=_0x48f238;_0x47b984['length']&&_0x5c9071['markMultiRangeInsertion'](_0x47b984,'tablePasteRow',{'tablePasteChainId':_0x5e3e6e}),_0x2538b3['length']&&_0x5c9071['markMultiRangeInsertion'](_0x2538b3,'tablePasteColumn',{'tablePasteChainId':_0x5e3e6e}),_0x296ce6['length']&&(_0x5c9071['markMultiRangeInsertion'](_0x296ce6,'tablePaste',{'tablePasteChainId':_0x5e3e6e,'skipNestingCheck':!0x0}),_0x296ce6['forEach'](_0x5ebec8=>_0x5ebec8['detach']?.())),_0x546ff0['length']&&(_0x5c9071['markMultiRangeDeletion'](_0x546ff0,'tablePaste',{'tablePasteChainId':_0x5e3e6e,'skipNestingCheck':!0x0}),_0x546ff0['forEach'](_0x25908e=>_0x25908e['detach']?.()));const _0x101ccd=_0x5c9071['markMultiRangeBlockFormat'](_0x516d39['map'](({element:_0x1af407})=>_0x1af407),{'formatGroupId':_0x5a260f()},[],'tablePasteCell',{'tablePasteChainId':_0x5e3e6e});if(_0x101ccd){const _0x375eef=_0x101ccd['getMarkers'](),_0x26e4df=[];for(const {element:_0x4528f8,attributes:_0x2cb663}of _0x516d39){if(!_0x2cb663)continue;const _0x2f3da6=_0x1c9309['model']['createRangeOn'](_0x4528f8),_0x445c71=_0x375eef['find'](_0x746365=>_0x746365['getRange']()['isEqual'](_0x2f3da6));_0x445c71&&_0x26e4df['push']([_0x445c71['name'],_0x2cb663]);}_0x26e4df['length']&&_0x101ccd['setAttribute']('markerAttributes',Object['fromEntries'](_0x26e4df));}_0x48f238=null;}));},{'priority':_0x165b6f['high']+0xa}),_0x28d54f['on']('contentInsertion',()=>{_0x4167d=!0x1;},{'priority':'lowest'}),_0x1c9309['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f94e5,_0x29616f)=>{const [_0x103e9f,_0x31954d,,_0x487a09]=_0x29616f;if(!_0x48f238)return;_0x4f94e5['stop']();const _0x22fa5b=_0x103e9f['cell'],_0x194749=_0x31954d,_0x38aee3=Xe(_0x22fa5b),_0x57e5f5=Xe(_0x194749);_0x4f94e5['return']=_0x22fa5b;let _0x34635e=null,_0x4ddff6=null;if(_0x57e5f5||_0x38aee3){if(_0x38aee3&&!_0x57e5f5){_0x487a09['remove'](_0x22fa5b['getChild'](0x0));for(const _0x1beafd of Array['from'](_0x194749['getChildren']()))_0x487a09['insert'](_0x1beafd,_0x22fa5b,'end');const _0x34edbd=_0x48f238['rowInsertionIndexes']['includes'](_0x103e9f['row']),_0x421ef9=_0x48f238['columnInsertionIndexes']['includes'](_0x103e9f['column']);_0x34edbd||_0x421ef9||(_0x34635e=at['fromRange'](_0x487a09['createRangeIn'](_0x22fa5b)));}else _0x57e5f5&&!_0x38aee3&&(_0x4ddff6=_0x487a09['createRangeIn'](_0x22fa5b));}else{const _0x427ed2=_0x487a09['createElement']('tableCellSuggestion'),_0x2ec704=_0x487a09['createElement']('tableCellSuggestion');_0x487a09['wrap'](_0x487a09['createRangeIn'](_0x22fa5b),_0x2ec704),_0x487a09['insert'](_0x427ed2,_0x22fa5b,0x0);for(const _0x2cb173 of Array['from'](_0x194749['getChildren']()))_0x487a09['insert'](_0x2cb173,_0x427ed2,'end');_0x34635e=at['fromRange'](_0x487a09['createRangeOn'](_0x427ed2)),_0x4ddff6=at['fromRange'](_0x487a09['createRangeOn'](_0x2ec704));}const _0x523b13=Array['from'](_0x194749['getAttributes']())['filter'](([_0x33d2a9])=>ze['includes'](_0x33d2a9));_0x48f238['cells']['push']({'element':_0x22fa5b,'attributes':_0x523b13['length']?Object['fromEntries'](_0x523b13):null}),_0x34635e&&_0x48f238['insertionRanges']['push'](_0x34635e),_0x4ddff6&&_0x48f238['deletionRanges']['push'](_0x4ddff6);},{'priority':'high'}),_0x28d8fc['on']('insertColumns',(_0x38a2f3,_0x3f44df)=>{const [_0x1b0ebc,_0x294759={}]=_0x3f44df;if(!_0x48f238)return;const _0x3c6638=_0x294759['at']||0x0,_0x2da28a=_0x294759['columns']||0x1;_0x48f238['columnInsertionIndexes']=new Array(_0x2da28a)['fill'](_0x3c6638)['map']((_0x41e57d,_0x3fbb2c)=>_0x41e57d+_0x3fbb2c);for(const {cell:_0x240879}of _0x28d8fc['createTableWalker'](_0x1b0ebc,{'startColumn':_0x3c6638,'endColumn':_0x3c6638+_0x2da28a-0x1}))_0x48f238['columnInsertionRanges']['push'](_0x1c9309['model']['createRangeOn'](_0x240879));},{'priority':'low'}),_0x28d8fc['on']('insertRows',(_0x4c5e09,_0x27974d)=>{const [_0x4c8c73,_0x4afab3={}]=_0x27974d;if(!_0x48f238)return;const _0xed15d4=_0x4afab3['at']||0x0,_0x214ea6=_0x4afab3['rows']||0x1;_0x48f238['rowInsertionIndexes']=new Array(_0x214ea6)['fill'](_0xed15d4)['map']((_0x42750a,_0x5e220a)=>_0x42750a+_0x5e220a);for(const {cell:_0x5c75fd}of _0x28d8fc['createTableWalker'](_0x4c8c73,{'startRow':_0xed15d4,'endRow':_0xed15d4+_0x214ea6-0x1}))_0x48f238['rowInsertionRanges']['push'](_0x1c9309['model']['createRangeOn'](_0x5c75fd));},{'priority':'low'}),_0x5c9071['descriptionFactory']['registerDescriptionCallback'](_0x59ed95=>{if(_0x59ed95['subType']&&_0x59ed95['subType']['startsWith']('tablePaste'))return _0x59ed95['previous']?{}:{'type':'insertion','content':wt(_0x1c9309['locale'],'*Replace\x20table\x20cells*')};});const _0x14f6bc=()=>!0x1;for(const _0x2eaee8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eaee8,'join',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eaee8,'join',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eaee8,'join',_0x14f6bc);_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14f6bc),_0x5c9071['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x238ee1,_0x46c124,_0x144c4e)=>{const _0x44d46b=_0x238ee1['map'](_0x202a26=>_0x202a26['getContainedElement']())['filter'](_0x1625c3=>_0x1625c3),_0x384bb9=new Map(_0x44d46b['map'](_0x113c63=>[_0x113c63,null]));if(_0x48f238){for(const {element:_0x2820f4,attributes:_0x42e988}of _0x48f238['cells'])_0x42e988&&_0x384bb9['set'](_0x2820f4,_0x42e988);}else{if(_0x144c4e&&_0x144c4e['markerAttributes'])for(const [_0x1445ac,_0xe89613]of Object['entries'](_0x144c4e['markerAttributes'])){const _0x45aed0=_0x1c9309['model']['markers']['get'](_0x1445ac),_0x3f3c60=_0x45aed0?_0x45aed0['getRange']()['getContainedElement']():null;_0x3f3c60&&_0x384bb9['set'](_0x3f3c60,_0xe89613);}}_0x1c9309['model']['change'](_0x157b5f=>{for(const [_0x3e2e20,_0x23e573]of _0x384bb9)_0x157b5f['setAttributes']({...je,..._0x23e573},_0x3e2e20);});});const _0x43468f=(_0x1f3dcc,_0x562a49)=>{_0x5c9071['_suggestionFactory']['registerCustomCallback'](_0x1f3dcc,'tablePaste',_0x562a49,(_0x591331,_0x463ab3,_0x398085)=>{_0x1c9309['model']['change'](_0x52c8b4=>{const _0x43e47f=[];for(const _0x589d87 of _0x591331){const _0xb39ee6=_0x589d87['start']['nodeAfter'];_0xb39ee6['is']('element','tableCellSuggestion')&&_0x43e47f['push'](_0xb39ee6);}_0x5c9071['_suggestionFactory']['getSuggestionCallback'](_0x1f3dcc,null,_0x562a49)(_0x591331,_0x463ab3,_0x398085);for(const _0x19892b of _0x43e47f)'$graveyard'!=_0x19892b['root']['rootName']&&_0x52c8b4['unwrap'](_0x19892b);});});};_0x43468f('insertion','accept'),_0x43468f('insertion','discard'),_0x43468f('deletion','accept'),_0x43468f('deletion','discard'),_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xca6e33=>{const _0x31da4e=_0xca6e33['map'](_0x28d94d=>_0x28d94d['getContainedElement']()),_0x46205b=_0x31da4e[0x0]['findAncestor']('table'),{minRow:_0x4b6d2c,maxRow:_0x216deb}=_0x1f51a7['_getCoordsForCells'](_0x31da4e);_0x28d8fc['removeRows'](_0x46205b,{'at':_0x4b6d2c,'rows':_0x216deb-_0x4b6d2c+0x1});}),_0x5c9071['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3ac518=>{const _0x408747=_0x3ac518['map'](_0x5dd6c8=>_0x5dd6c8['getContainedElement']()),_0x327c4b=_0x408747[0x0]['findAncestor']('table'),{minColumn:_0x5745ce,maxColumn:_0x3428c6}=_0x1f51a7['_getCoordsForCells'](_0x408747);_0x28d8fc['removeColumns'](_0x327c4b,{'at':_0x5745ce,'columns':_0x3428c6-_0x5745ce+0x1});});const _0x2a8b1d=(_0xce90bd,_0xb1ccc6)=>{if(!_0xb1ccc6['subType']||!_0xb1ccc6['subType']['startsWith']('tablePaste'))return;const _0x33f7ab=_0xb1ccc6['attributes']['tablePasteChainId'],_0x283039=_0x5c9071['getSuggestions']()['filter'](_0x20939e=>_0x20939e['isInContent']&&_0x20939e['attributes']&&_0x20939e['attributes']['tablePasteChainId']==_0x33f7ab);_0x283039['length']&&_0xb1ccc6['getAllAdjacentSuggestions']()['length']!=_0x283039['length']&&_0x283039['reduce']((_0x3f6a6d,_0x272a6f)=>(_0x3f6a6d['next']=_0x272a6f,_0x272a6f['previous']=_0x3f6a6d,_0x272a6f));};function _0x29f875(_0x1271e0,_0x83df4f=!0x0){const {id:_0xd32cdf,authorId:_0x34d6cd}=nt(_0x1271e0['markerName']),_0x2ce92a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa265c1=_0x5c9071['activeMarkers']['includes'](_0x1271e0['markerName']);return _0xa265c1&&_0x2ce92a['push']('ck-suggestion-marker--active'),{'classes':_0x2ce92a,'attributes':{'data-suggestion':_0xd32cdf,'data-author-id':_0x34d6cd},'priority':_0xa265c1&&_0x83df4f?0xbc2:0xbb8};}_0x5c9071['on']('suggestionLoaded',_0x2a8b1d,{'priority':'high'}),_0x5c9071['on']('suggestionUnloaded',_0x2a8b1d,{'priority':'high'}),_0x1c9309['model']['document']['registerPostFixer'](()=>{let _0x13a27e=!0x1;const _0x130704=Array['from'](_0x1c9309['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x23518e,data:_0x3e3804}of _0x130704){const {group:_0x33462a,type:_0x2bb476,id:_0x8abad6}=nt(_0x23518e);if('suggestion'!=_0x33462a||'deletion'!=_0x2bb476||_0x3e3804['oldRange'])continue;if(!_0x5c9071['hasSuggestion'](_0x8abad6))continue;const _0x180bd5=_0x5c9071['getSuggestion'](_0x8abad6)['getRanges'](),_0x4feec3=_0x1c9309['plugins']['get']('Users')['me'];for(const _0xda9b27 of _0x5c9071['getSuggestions']())if(_0xda9b27['isInContent']&&_0xda9b27['author']==_0x4feec3&&'formatBlock'==_0xda9b27['type']&&'tablePasteCell'==_0xda9b27['subType']&&_0xda9b27['getRanges']()['every'](_0x343106=>_0x180bd5['some'](_0x1301e6=>_0x1301e6['containsRange'](_0x343106,!0x0)))){for(const _0x4103bf of _0xda9b27['getAllAdjacentSuggestions']())_0x4103bf['isInContent']&&(_0x4103bf['discard'](),_0x13a27e=!0x0);}}return _0x13a27e;}),_0x1c9309['model']['document']['registerPostFixer'](_0x51b894=>{const _0x292693=_0x1c9309['commands']['get']('redo');if(!_0x292693||!_0x292693['_createdBatches']['has'](_0x51b894['batch']))return!0x1;let _0x3cc3a1=!0x1;const _0x148bb9=_0x1c9309['plugins']['get']('Users')['me'],_0x1268e3=_0x1c9309['model']['document']['differ']['getChanges'](),_0x46b95a=Array['from'](_0x1c9309['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x409286,data:_0x432db5})=>{const {group:_0x3b348a,subType:_0x236d2d,authorId:_0x3e6aeb}=nt(_0x409286);return'suggestion'==_0x3b348a&&'tablePaste'==_0x236d2d&&_0x3e6aeb==_0x148bb9['id']&&!_0x432db5['oldRange'];});for(const _0x5db296 of _0x1268e3){if('insert'!=_0x5db296['type']||'tableCellSuggestion'!=_0x5db296['name']||0x1!=_0x5db296['length'])continue;const _0x341938=_0x51b894['createRange'](_0x5db296['position'],_0x5db296['position']['getShiftedBy'](0x1));if(!_0x46b95a['find'](({data:_0x290c42})=>_0x290c42['newRange']['isEqual'](_0x341938))){for(const {name:_0x248820,data:_0x166372}of _0x46b95a)if(_0x341938['containsRange'](_0x166372['newRange'])){_0x51b894['updateMarker'](_0x248820,{'range':_0x341938}),_0x3cc3a1=!0x0;break;}}}return _0x3cc3a1;}),_0x1c9309['model']['document']['registerPostFixer'](_0x237e6b=>{let _0x16896a=!0x1;const _0x144389=_0x1c9309['plugins']['get']('Users')['me'],_0xdbdebe=_0x5c9071['getSuggestions']()['filter'](_0x83fac1=>_0x83fac1['isInContent']&&_0x83fac1['author']==_0x144389),_0x582383=new Set(),_0x446cbb=new Set();for(const _0x534289 of _0xdbdebe)if('tablePaste'==_0x534289['subType'])for(const _0x50057c of _0x534289['getMarkers']()){const _0x232bb9=_0x50057c['getRange']()['getContainedElement']();if(_0x232bb9){if(_0x232bb9['is']('element','tableCellSuggestion')&&Xe(_0x232bb9)){_0x534289['removeMarker'](_0x50057c['name']),_0x582383['add'](_0x232bb9),_0x16896a=!0x0;const _0x22e470=_0x232bb9['nextSibling'],_0x4e8b4c=_0x232bb9['previousSibling'],_0x30e857=_0x22e470&&_0x22e470['is']('element','tableCellSuggestion'),_0x20fc21=_0x4e8b4c&&_0x4e8b4c['is']('element','tableCellSuggestion');_0x30e857&&!_0x582383['has'](_0x22e470)&&_0x446cbb['add'](_0x22e470),_0x20fc21&&!_0x582383['has'](_0x4e8b4c)&&_0x446cbb['add'](_0x4e8b4c);}else _0x232bb9['is']('element','paragraph')&&_0x232bb9['isEmpty']&&(_0x534289['removeMarker'](_0x50057c['name']),_0x16896a=!0x0);}}else{if('tablePasteCell'==_0x534289['subType']){if(!_0x534289['attributes']||!_0x534289['attributes']['tablePasteChainId'])continue;const _0x104602=_0x534289['attributes']['markerAttributes'];if(_0x104602&&Object['keys'](_0x104602)['length'])continue;const _0x5780bb=_0x534289['attributes']['tablePasteChainId'];let _0xa57459=!0x0,_0xe8abf6=!0x0;for(const _0x1472bf of _0xdbdebe)if(_0x1472bf['subType']&&_0x1472bf['subType']['startsWith']('tablePaste')){if(!_0x1472bf['attributes']['tablePasteChainId']){_0xe8abf6=!0x1;break;}if(_0x1472bf['id']!=_0x534289['id']&&_0x1472bf['attributes']['tablePasteChainId']==_0x5780bb){_0xa57459=!0x1;break;}}_0xe8abf6&&_0xa57459&&(_0x534289['removeMarkers'](),_0x16896a=!0x0);}}for(const _0xf9805c of _0x582383)_0x237e6b['remove'](_0xf9805c);for(const _0x450401 of _0x446cbb)_0x237e6b['unwrap'](_0x450401);return _0x16896a;}),_0x1c9309['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x6e507d=>_0x29f875(_0x6e507d),'converterPriority':'high'}),_0x1c9309['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6a459,_0x1c3298)=>_0x1c3298['options']['showSuggestionHighlights']?_0x29f875(_0x6a459,!0x1):null,'converterPriority':'high'});const _0x52272a=_0x1c9309['editing']['view'];this['listenTo'](_0x52272a['document'],'clipboardOutput',(_0x2dbaab,_0x232201)=>{const _0x3ea357=[];for(const _0x4bd8a4 of _0x52272a['createRangeIn'](_0x232201['content'])['getItems']())_0x4bd8a4['is']('element','suggestion-td')&&_0x3ea357['push'](_0x4bd8a4);_0x52272a['change'](_0x28791d=>{for(const _0x2e78c8 of _0x3ea357)_0x28791d['move'](_0x28791d['createRangeIn'](_0x2e78c8),_0x28791d['createPositionBefore'](_0x2e78c8)),_0x28791d['remove'](_0x2e78c8);});});}};function Xe(_0x4fab69){if(_0x4fab69['isEmpty'])return!0x0;const _0x230193=_0x4fab69['getChild'](0x0);return _0x230193['is']('element','paragraph')&&_0x230193['isEmpty'];}function qe(_0x1de553,_0x40d1b9={},_0x1c2c17){for(const {isAnchor:_0x409305,cellHeight:_0x17cb13,cellWidth:_0xb9a842}of _0x1c2c17['createTableWalker'](_0x1de553,{'includeAllSlots':!0x0,..._0x40d1b9}))if(!_0x409305||0x1!=_0x17cb13||0x1!=_0xb9a842)return!0x1;return!0x0;}var Ye=class extends _0x17c3d7{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5a7ff7=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a7ff7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x5a7ff7['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x5a7ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5a7ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x5b7faf=_0x5a7ff7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x5a7ff7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3b2f07,_0x373e46)=>{_0x5b7faf(_0x3b2f07,_0x373e46),this['_restoreCellWidths'](_0x3b2f07[0x0]['start']['nodeAfter'],_0x373e46['commandParams'][0x0]['cellWidths']);}),_0x5a7ff7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x14b5f0,_0x460a0e){const _0x4a2d54=this['editor']['plugins']['get']('TrackChangesEditing'),_0x51510b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x337c92=_0x460a0e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c46aa=_0x51510b['getColumnGroupElement'](_0x337c92);let _0x2088a7=_0x5c46aa?_0x51510b['getTableColumnsWidths'](_0x5c46aa):null,_0x132850=_0x337c92['getAttribute']('tableWidth')||null;const _0xcaa205=_0x460a0e['tableWidth']||_0x132850,_0x54f6d4=_0x460a0e['columnWidths']||_0x2088a7;let _0xf3888e=this['_getCellWidths'](_0x337c92);const _0x2fa544=this['_foldResizeTableSuggestion'](_0x337c92);_0x2fa544&&(_0x132850=_0x2fa544['tableWidth'],_0x2088a7=_0x2fa544['columnWidths'],_0xf3888e=_0x2fa544['cellWidths']||_0xf3888e),_0x14b5f0({'table':_0x337c92,'tableWidth':_0xcaa205,'columnWidths':_0x54f6d4}),_0x4a2d54['markBlockFormat'](_0x337c92,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x132850,'columnWidths':_0x2088a7,'cellWidths':_0xf3888e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x542b96,_0x51e3fb={}){if(void 0x0===_0x51e3fb['value']||''===_0x51e3fb['value'])return void _0x542b96(_0x51e3fb);const _0x3172c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x300106=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf66814=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x51e3fb['batch']||(_0x51e3fb['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x51e3fb['batch'],()=>{const _0x460be8=_0x300106['getColumnGroupElement'](_0xf66814);let _0x1b1562=_0x460be8?_0x300106['getTableColumnsWidths'](_0x460be8):null,_0x1b27e0=_0xf66814['getAttribute']('tableWidth')||null,_0x532c15=this['_getCellWidths'](_0xf66814);const _0x5f0046=this['_foldResizeTableSuggestion'](_0xf66814,!0x0);_0x5f0046&&(_0x1b27e0=_0x5f0046['tableWidth'],_0x1b1562=_0x5f0046['columnWidths'],_0x532c15=_0x5f0046['cellWidths']||_0x532c15),_0x542b96(_0x51e3fb),_0x3172c9['markBlockFormat'](_0xf66814,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b27e0,'columnWidths':_0x1b1562,'cellWidths':_0x532c15}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x12fa34,_0x5cdb5e=!0x1){const _0x33694b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x506cad=this['editor']['plugins']['get']('Users')['me'];for(const _0x3b9727 of _0x33694b['getSuggestions']({'skipNotAttached':!0x0})){const _0x226403=_0x3b9727['getContainedElement']();if('resizeTable'===_0x3b9727['subType']&&_0x226403===_0x12fa34){_0x3b9727['author']!==_0x506cad&&(_0x5cdb5e?_0x3b9727['removeMarkers']():_0x3b9727['discard']());const _0x465fc5=_0x3b9727['data']['commandParams'];return{'tableWidth':_0x465fc5[0x0]['tableWidth'],'columnWidths':_0x465fc5[0x0]['columnWidths'],'cellWidths':_0x465fc5[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x5f44ae){const _0x2b647c=[];for(const _0x4897ff of _0x5f44ae['getChildren']())if(_0x4897ff['is']('element','tableRow')){for(const _0x394bcc of _0x4897ff['getChildren']())_0x2b647c['push'](_0x394bcc['getAttribute']('tableCellWidth')||null);}return _0x2b647c;}_restoreCellWidths(_0x481ac6,_0x349469){_0x349469&&this['editor']['model']['change'](_0x5a6458=>{let _0x3c5853=0x0;for(const _0x206fd4 of _0x481ac6['getChildren']())if(_0x206fd4['is']('element','tableRow'))for(const _0x7efc87 of _0x206fd4['getChildren']()){const _0x51b54c=_0x349469[_0x3c5853++];_0x51b54c&&_0x5a6458['setAttribute']('tableCellWidth',_0x51b54c,_0x7efc87);}});}handleSuggestionDescription(_0x1581c2){if('formatBlock'!=_0x1581c2['type']&&'formatInline'!=_0x1581c2['type'])return;const {data:_0x51e141}=_0x1581c2;return _0x51e141&&'resizeTable'===_0x51e141['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x17c3d7{afterInit(){const _0x98cf7e=this['editor'];_0x98cf7e['plugins']['has']('Template')&&_0x98cf7e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x17c3d7{afterInit(){const _0x211871=this['editor'];if(!_0x211871['commands']['get']('insertTableOfContents'))return;_0x211871['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f0281=_0x211871['plugins']['get']('TrackChangesEditing'),_0x1cd871=_0x211871['locale'];_0x3f0281['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2f4a38=>wt(_0x1cd871,'ELEMENT_TABLE_OF_CONTENTS',_0x2f4a38));}},Je=class extends _0x17c3d7{afterInit(){const _0x1f1035=this['editor'];_0x1f1035['plugins']['has']('Title')&&(_0x1f1035['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x1f1035['locale'],'ELEMENT_TITLE')),_0x1f1035['model']['document']['registerPostFixer'](_0x5599cf=>{let _0x387926=!0x1;const _0x1fd067=Array['from'](_0x1f1035['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f0f64,data:_0x180742}of _0x1fd067){const {group:_0x42fbab}=nt(_0x1f0f64);if('suggestion'!==_0x42fbab||!_0x180742['newRange'])continue;const _0x1ecdd9=_0x180742['newRange'],_0x4e3ac5=_0x1ecdd9['end']['nodeBefore'];if(!_0x4e3ac5||!_0x4e3ac5['is']('element','title-content'))continue;if(!_0x1ecdd9['start']['isTouching'](_0x1ecdd9['end']))continue;const _0x198b25=_0x1f1035['model']['schema']['getNearestSelectionRange'](_0x1ecdd9['end'],'forward');if(_0x198b25&&_0x198b25['isCollapsed']){const _0x2ab92a=_0x5599cf['createRange'](_0x1ecdd9['start'],_0x198b25['start']);_0x2ab92a['isEqual'](_0x1ecdd9)||(_0x5599cf['updateMarker'](_0x1f0f64,{'range':_0x2ab92a}),_0x387926=!0x0);}_0x387926||(_0x5599cf['removeMarker'](_0x1f0f64),_0x387926=!0x0);}return _0x387926;}));}},tn=class extends _0x17c3d7{afterInit(){const _0x287dc9=this['editor'],_0x31d4a5=_0x287dc9['plugins']['get']('TrackChangesEditing');_0x287dc9['plugins']['has']('Uploadcare')&&(_0x31d4a5['enableCommand']('uploadcare'),_0x287dc9['plugins']['has']('UploadcareImageEdit')&&(_0x31d4a5['enableCommand']('uploadcareImageEdit'),_0x31d4a5['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x31d4a5['descriptionFactory']['registerDescriptionCallback'](_0x14b033=>{if('attribute'!=_0x14b033['type'])return;const {data:_0x1e5f78}=_0x14b033;return _0x1e5f78&&'uploadcareImageId'==_0x1e5f78['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x17c3d7{afterInit(){const _0x594bd1=this['editor'],_0xbac56f=_0x594bd1['plugins']['get']('TrackChangesEditing');_0x594bd1['plugins']['has']('UndoEditing')&&(_0xbac56f['enableCommand']('undo'),_0xbac56f['enableCommand']('redo'));}},nn=class extends _0x17c3d7{static get requires(){return[xe];}afterInit(){const _0x3d3759=this['editor'];_0x3d3759['plugins']['has']('TableCaptionEditing')&&_0x3d3759['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x17c3d7{tableProperties;tableCellProperties;constructor(_0x215427){super(_0x215427),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x4515c1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4d9a21 of this['tableProperties'])_0x4515c1['enableCommand'](_0x4d9a21,(_0x3f622b,_0x5a8e87)=>{const _0x26e020=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4d9a21,[_0x26e020],this['tableProperties'],'tableProperties',_0x3f622b,_0x5a8e87);});_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4515c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1cc584,_0x49676e)=>this['handleDiscardAction'](this['tableProperties'],_0x1cc584,_0x49676e)),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x155a16 of this['tableCellProperties'])this['editor']['commands']['get'](_0x155a16)&&_0x4515c1['enableCommand'](_0x155a16,(_0x5c8c54,_0x5e99c4)=>{const _0x35070e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x155a16,_0x35070e,this['tableCellProperties'],'tableCellProperties',_0x5c8c54,_0x5e99c4);});_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4515c1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4963e0,_0x543033)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4963e0,_0x543033)),_0x4515c1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4515c1['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4515c1['descriptionFactory']['registerDescriptionCallback'](_0x4687dc=>this['handleSuggestionDescription'](_0x4687dc)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x452d71,_0x2dd2c8,_0x2e7b6b,_0x5ddbc9,_0xbc1037,_0x19ede8){const _0x23fe6d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x19ede8['batch'],()=>{for(const _0xeb01aa of _0x2dd2c8)if(this['_getSuggestion'](_0xeb01aa,_0x5ddbc9))_0xbc1037(_0x19ede8);else{const _0x27de60={};for(const _0x39e76c of _0x2e7b6b){const _0x418757=_0xeb01aa['getAttribute'](_0x39e76c);void 0x0!==_0x418757&&(_0x27de60[_0x39e76c]=_0x418757);}const _0x43490a=this['_getResizedColumnWidths'](_0xeb01aa);_0x43490a&&(_0x27de60['columnWidths']=_0x43490a),_0xbc1037(_0x19ede8),_0x23fe6d['markBlockFormat'](_0xeb01aa,{'commandParams':[_0x27de60]},[],_0x5ddbc9);}});}handleDiscardAction(_0x4da137,_0x220357,_0x76f625){const _0x3cf913=_0x220357[0x0]['start']['nodeAfter'],_0x47b444=_0x76f625['commandParams'][0x0];this['editor']['model']['change'](_0x5bb2c9=>{for(const _0x5aea7d of _0x4da137)void 0x0!==_0x47b444[_0x5aea7d]?_0x5bb2c9['setAttribute'](_0x5aea7d,_0x47b444[_0x5aea7d],_0x3cf913):_0x5bb2c9['removeAttribute'](_0x5aea7d,_0x3cf913);if(_0x47b444['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x553c9d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29c178=_0x553c9d['getColumnGroupElement'](_0x3cf913);if(_0x29c178){const _0x340fba=_0x553c9d['getTableColumnsWidths'](_0x29c178),_0x1b9697=_0x3cf913['getAttribute']('tableWidth');if(('string'==typeof _0x1b9697&&_0x1b9697['trim']()['endsWith']('px'))!==_0x340fba['some'](_0x1c5d77=>'string'==typeof _0x1c5d77&&_0x1c5d77['endsWith']('px'))){const _0x752ad3=_0x553c9d['getTableColumnElements'](_0x29c178);_0x47b444['columnWidths']['forEach']((_0x145a7f,_0x567dad)=>{_0x752ad3[_0x567dad]&&_0x5bb2c9['setAttribute']('columnWidth',_0x145a7f,_0x752ad3[_0x567dad]);});}}}});}_getResizedColumnWidths(_0x34f2d8){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x34f2d8['is']('element','table'))return;const _0x3e4676=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x30f02a=_0x3e4676['getColumnGroupElement'](_0x34f2d8);return _0x30f02a?_0x3e4676['getTableColumnsWidths'](_0x30f02a):void 0x0;}handleSuggestionDescription(_0x5f19a8){if(_0x5f19a8['data'])switch(_0x5f19a8['subType']){case'tableProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x164ce3,_0x3aec20){const _0x1b4657=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x375283 of _0x1b4657['getSuggestions']({'skipNotAttached':!0x0})){const _0x3d8383=_0x375283['getContainedElement']();if(_0x375283['subType']===_0x3aec20&&_0x3d8383===_0x164ce3)return _0x375283;}return null;}_registerTablePropertiesAttributes(){const _0x285f9b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x518175=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5b3840 of _0x518175){const _0x4a195e=_0x5b3840['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x285f9b['descriptionFactory']['registerAttributeLabel'](_0x5b3840,wt(this['editor']['locale'],'FORMAT_'+_0x4a195e));}}},rn=class extends _0x17c3d7{afterInit(){const _0x38aa06=this['editor'];if(!_0x38aa06['plugins']['has']('LineHeight'))return;const _0x573dfd=_0x38aa06['plugins']['get']('TrackChangesEditing'),_0x5ab7cc=_0x38aa06['locale'];_0x573dfd['enableDefaultAttributesIntegration']('lineHeight'),_0x573dfd['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x5ab7cc,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x15e7c0){return'marker'==_0x15e7c0['type']&&_0x15e7c0['name']['startsWith']('$markedRemove');}function cn(_0x32a2e1){return _0x32a2e1?[_0x32a2e1]:[];}var ln=class extends _0x17c3d7{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x3e91e1,_0x3ffa0d,_0x15dcb3,_0x59068f,Ft,vt,Dt,Ut,xt,Gt,$t,Vt,Wt,zt,jt,Xt,qt,ee,ne,ie,re,oe,ae,le,ue,de,he,ge,fe,Ee,me,Te,_e,pe,Ie,Ce,Se,Le,Yt,rn,Zt,ke,Re,Ne,ye,Me,Oe,we,Be,Fe,ve,Ue,Pe,xe,He,$e,We,Ve,nn,Ke,Ye,Ze,sn,Qe,Je,tn,en];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21667c){super(_0x21667c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x445d93,_0x2dbc93,_0x10547f,_0x10fbdb)=>{this['_model']['change'](()=>{for(const _0x439f4f of[..._0x10fbdb,..._0x10547f])this['_model']['markers']['has'](_0x439f4f)&&_0x21667c['editing']['reconvertMarker'](_0x439f4f);});}),this['descriptionFactory']=new Bt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new un(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x21667c['plugins']['get'](_0x3e91e1),this['_suggestionsConversion']=_0x21667c['plugins']['get'](_0x3ffa0d),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x21667c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21667c['config']['get']('trackChanges.trackFormatChanges'),_0x21667c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21667c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x21667c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x4ccf8b=this['editor'];_0x4ccf8b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1a4082,{writer:_0x226569})=>{let _0x583713='suggestion:'+_0x1a4082['getAttribute']('suggestion-type')+':'+_0x1a4082['getAttribute']('id');return _0x1a4082['getAttribute']('marker-count')&&(_0x583713+=':'+_0x1a4082['getAttribute']('marker-count')),_0x226569['createElement']('$marker',{'data-name':_0x583713});}}),_0x4ccf8b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x15ff65=>{let _0x911a49=!0x1;const _0x5b08d2=Array['from'](_0x4ccf8b['model']['document']['differ']['getChangedMarkers']()),_0x10690d=new Set();for(const {name:_0x5da167,data:_0x16f55f}of _0x5b08d2){const {group:_0x47c800,type:_0x5c0beb,subType:_0xe9801e,id:_0x65efe2}=nt(_0x5da167);if('suggestion'!==_0x47c800)continue;const _0x9add33=_0xe9801e?'suggestion:'+_0x5c0beb+':'+_0xe9801e+':'+_0x65efe2:'suggestion:'+_0x5c0beb+':'+_0x65efe2,_0x427f2a=_0x4ccf8b['model']['markers']['getMarkersGroup'](_0x9add33),_0x38b8d6=_0x4ccf8b['model']['markers']['get'](_0x5da167),_0x42c1fb=this['_suggestions']['get'](_0x65efe2);if(null!=_0x16f55f['newRange']){'formatInline'==_0x5c0beb&&(_0x911a49=_0x911a49||gn(_0x16f55f['newRange'],_0x5da167,_0x15ff65,_0x4ccf8b['model']['schema']));const _0x581302='attribute'==_0x5c0beb&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0xe9801e)),_0x372f5e='attribute'==_0x5c0beb&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0xe9801e));if(_0x16f55f['newRange']['isCollapsed']||'$graveyard'==_0x16f55f['newRange']['root']['rootName']||'formatBlock'==_0x5c0beb&&!mn(_0x16f55f['newRange'])||_0x581302&&!mn(_0x16f55f['newRange'])||_0x372f5e&&En(_0x16f55f['newRange'])||'deletion'==_0x5c0beb&&En(_0x16f55f['newRange'])||_0x38b8d6&&Tn(_0x38b8d6,_0x427f2a))_0x15ff65['removeMarker'](_0x5da167),_0x911a49=!0x0;else{if(!_0x42c1fb||!_0x42c1fb['isInContent'])continue;if(_0x16f55f['newRange']&&_0x16f55f['oldRange']&&_0x16f55f['newRange']['isEqual'](_0x16f55f['oldRange']))continue;_0x10690d['add'](_0x42c1fb);}}}return _0x10690d['size']>0x0&&(_0x911a49=!!this['_joinWithAdjacentSuggestions'](_0x10690d)||_0x911a49),_0x911a49;}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x14c11b=>{let _0x4ac29b=!0x1;for(const _0x2fa52d of _0x4ccf8b['model']['document']['differ']['getChanges']())if('insert'==_0x2fa52d['type'])for(const _0x34ed31 of this['_suggestions']['values']()){if(_0x34ed31['isMultiRange']||!_0x34ed31['isInContent'])continue;const _0x268dad='formatBlock'==_0x34ed31['type'],_0x3b60e3=this['_getAttributeKey'](_0x34ed31),_0x37ac64=_0x3b60e3&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b60e3);if(!_0x268dad&&!_0x37ac64)continue;const _0x495a10=_0x34ed31['getFirstRange']();if(_0x495a10['start']['parent']!=_0x495a10['end']['parent']&&!_0x495a10['end']['isAtEnd']){const _0x16fe52=_0x4ccf8b['model']['createPositionAt'](_0x495a10['start']['nodeAfter'],'end'),_0x838b95=_0x4ccf8b['model']['createRange'](_0x495a10['start'],_0x16fe52);_0x14c11b['updateMarker'](_0x34ed31['getFirstMarker'](),{'range':_0x838b95}),_0x4ac29b=!0x0;}}return _0x4ac29b;}),_0x4ccf8b['model']['document']['registerPostFixer'](_0x1bd68c=>this['_processAttributeChanges'](_0x1bd68c)),_0x4ccf8b['model']['document']['registerPostFixer'](_0x23c36d=>!_0x23c36d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23c36d)),_0x4ccf8b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ccf8b['model']['document']['on']('change:data',(_0x387c32,_0x40d588)=>{if(!_0x40d588['isLocal']||_0x40d588['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bc82b=_0x4ccf8b['model']['document']['differ']['getChanges']();if(0x0==_0x2bc82b['length'])return;const _0x474c20=[],_0x41288b=_0x2bc82b['filter'](_0x204f43=>'attribute'==_0x204f43['type']),_0x3523df=_0x2bc82b['filter'](_0x20cb58=>'insert'==_0x20cb58['type']&&'$text'!=_0x20cb58['name']);for(const _0xdfb84f of _0x41288b)this['_suggestionsConversion']['isRegisteredAttribute'](_0xdfb84f['attributeKey'])&&_0x474c20['push']({'key':_0xdfb84f['attributeKey'],'newValue':_0xdfb84f['attributeNewValue'],'oldValue':_0xdfb84f['attributeOldValue'],'range':_n(_0xdfb84f['range'],_0x4ccf8b['model'])});for(const _0x569ce3 of _0x3523df){if('rename'!=_0x569ce3['action']&&'refresh'!=_0x569ce3['action'])continue;const _0x26eaf4=pn(_0x569ce3['position']['nodeAfter'],_0x4ccf8b['model']),_0x19cdcc=_0x569ce3['before'];'rename'==_0x569ce3['action']&&_0x474c20['push']({'key':on,'newValue':_0x569ce3['name'],'oldValue':_0x19cdcc['name'],'range':_0x26eaf4});for(const [_0x12114f,_0xfe2a3d]of _0x19cdcc['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x12114f))continue;const _0x38fa5c=_0x569ce3['attributes']['get'](_0x12114f);_0xfe2a3d!==_0x38fa5c&&_0x474c20['push']({'key':_0x12114f,'newValue':_0x38fa5c,'oldValue':_0xfe2a3d,'range':_0x26eaf4});}for(const [_0x4a21d7,_0x15059d]of _0x569ce3['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x4a21d7)&&(_0x19cdcc['attributes']['has'](_0x4a21d7)||_0x474c20['push']({'key':_0x4a21d7,'newValue':_0x15059d,'oldValue':null,'range':_0x26eaf4}));}0x0!=_0x474c20['length']&&_0x4ccf8b['model']['enqueueChange'](_0x40d588,_0x10e503=>{const _0x2849ca=_0x5a260f();for(const {range:_0x3616bd,key:_0x170990,oldValue:_0x1fca2e,newValue:_0x1ac232}of _0x474c20)this['markAttributeChange'](_0x3616bd,_0x170990,_0x1fca2e,_0x1ac232,{'groupId':_0x2849ca});this['_reduceExistingSuggestions'](_0x10e503,_0x474c20);});},{'priority':'lowest'}),_0x4ccf8b['model']['markers']['on']('update:suggestion',(_0x596e39,_0x13b169,_0x5ba89e)=>{if(null==_0x5ba89e){const {id:_0x1a9000}=nt(_0x13b169['name']),_0x129087=this['_suggestions']['get'](_0x1a9000);_0x129087&&_0x129087['addMarkerName'](_0x13b169['name']);}}),_0x4ccf8b['model']['document']['on']('change:data',()=>{const _0x5e6ae5=Array['from'](_0x4ccf8b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1fb9d9=>'suggestion'===nt(_0x1fb9d9['name'])['group']);if(0x0===_0x5e6ae5['length'])return;_0x5e6ae5['sort']((_0x3648f7,_0x2245a1)=>{const _0x1ca190=_0x3648f7['data']['oldRange'],_0x4763f4=_0x2245a1['data']['oldRange'];return null===_0x1ca190&&null===_0x4763f4?0x0:null===_0x1ca190&&null!==_0x4763f4?-0x1:null!==_0x1ca190&&null===_0x4763f4?0x1:_0x1ca190['start']['isBefore'](_0x4763f4['start'])?-0x1:0x1;});const _0x3ce9d2=new Set(),_0x3e3e28=new Set();for(const {name:_0x111caf,data:_0x118940}of _0x5e6ae5){const {id:_0x4bab0e}=nt(_0x111caf);if(null===_0x118940['oldRange']){const _0x14387f=this['_handleNewSuggestionMarker'](_0x111caf);_0x3e3e28['add'](_0x14387f);}else{const _0x8988e5=this['_suggestions']['get'](_0x4bab0e);null!==_0x118940['newRange']||_0x8988e5['isInContent']?(_0x3ce9d2['add'](_0x8988e5['head']),_0x3e3e28['add'](_0x8988e5)):this['_removeSuggestion'](_0x8988e5);}}_0x3e3e28['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e3e28);for(const _0x45c9bf of _0x3ce9d2)this['fire']('suggestionChanged',_0x45c9bf);}),_0x4ccf8b['model']['on']('applyOperation',(_0x535dfd,_0x1be0c2)=>{const _0x11b266=_0x1be0c2[0x0];if(!this['_suggestions']['size'])return;if(!_0x11b266['isDocumentOperation'])return;if(_0x11b266['batch']['isUndo']||!_0x11b266['batch']['isLocal'])return;let _0x4db587,_0x522ca7;switch(_0x11b266['type']){case'insert':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['position']),_0x522ca7=_0x4db587['getShiftedBy'](_0x11b266['howMany']);break;case'split':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['splitPosition']),_0x522ca7=_0x4ccf8b['model']['createPositionAt'](_0x11b266['moveTargetPosition']);break;case'move':_0x4db587=_0x4ccf8b['model']['createPositionAt'](_0x11b266['targetPosition']),_0x522ca7=_0x4db587['getShiftedBy'](_0x11b266['howMany']);break;default:return;}const _0x49cb9c=_0x4ccf8b['model']['createRange'](_0x4db587,_0x522ca7);_0x4ccf8b['model']['change'](()=>{for(const {suggestion:_0x140a60,meta:_0x131eb0}of this['_findSuggestions'](_0x49cb9c)){if(_0x140a60['isMultiRange'])continue;if('formatInline'==_0x140a60['type'])continue;const _0x2676d9=this['_getAttributeKey'](_0x140a60);if(_0x2676d9&&this['_suggestionsConversion']['isBlockAttribute'](_0x2676d9)&&'split'!=_0x11b266['type'])continue;const _0x1a88ec=_0x140a60['data']&&_0x140a60['data']['multipleBlocks'];('formatBlock'!=_0x140a60['type']||'split'==_0x11b266['type']&&!_0x1a88ec)&&(_0x131eb0['containsRangeInObject']||'insertion'==_0x140a60['type']&&_0x131eb0['isOwn']||_0x140a60['getFirstRange']()['containsRange'](_0x49cb9c)&&this['_breakSuggestionMarker'](_0x140a60,_0x4db587,_0x522ca7));}});},{'priority':'lowest'}),_0x4ccf8b['model']['on']('deleteContent',(_0xc40894,_0x36590d)=>{const _0x10e2c4=_0x36590d[0x0],_0x5ebc32=_0x36590d[0x1];if(_0x5ebc32&&_0x5ebc32['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x10e2c4['isCollapsed'])return;const _0x43c897=_0x4ccf8b['model']['schema'],{start:_0x55f9bc,end:_0x21812d}=_0x10e2c4['getFirstRange'](),_0x2d153a=_0x55f9bc['nodeAfter']&&_0x43c897['isLimit'](_0x55f9bc['nodeAfter'])?null:_0x43c897['getNearestSelectionRange'](_0x55f9bc,'forward'),_0x44504e=_0x21812d['nodeBefore']&&_0x43c897['isLimit'](_0x21812d['nodeBefore'])?null:_0x43c897['getNearestSelectionRange'](_0x21812d,'backward'),_0x1bf7aa=_0x4ccf8b['model']['createRange'](_0x2d153a?_0x2d153a['start']:_0x55f9bc,_0x44504e?_0x44504e['end']:_0x21812d);_0x4ccf8b['model']['change'](_0x55bd0f=>{this['markDeletion'](_0x1bf7aa);const _0x30328d=_0x4ccf8b['model']['schema']['getNearestSelectionRange'](_0x1bf7aa['start']);_0x10e2c4['is']('documentSelection')?_0x55bd0f['setSelection'](_0x30328d):_0x10e2c4['setTo'](_0x30328d);}),_0xc40894['stop']();},{'priority':_0x165b6f['normal']+0xa}),_0x4ccf8b['model']['on']('insertContent',(_0x4614d8,_0x310702)=>{const _0x486cee=_0x310702[_0x310702['length']-0x1];_0x486cee&&_0x486cee['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ccf8b['model']['change'](()=>{let _0x15835f=_0x4ccf8b['model']['insertContent'](_0x310702[0x0],_0x310702[0x1],_0x310702[0x2],{'forceDefaultExecution':!0x0});if(!_0x15835f)return;_0x4614d8['return']=_0x15835f['clone']();const _0x1badc2=_0x15835f['end']['nodeBefore'],_0x2a246a=_0x4ccf8b['model']['schema'];_0x1badc2&&_0x2a246a['isBlock'](_0x1badc2)&&!_0x2a246a['isObject'](_0x1badc2)&&(_0x15835f=_0x4ccf8b['model']['createRange'](_0x15835f['start'],_0x4ccf8b['model']['createPositionAt'](_0x1badc2,'end'))),this['markInsertion'](_0x15835f);}),_0x4614d8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22ed8b=new Lt(_0x4ccf8b,this['_suggestions']);_0x4ccf8b['commands']['add']('acceptSuggestion',_0x22ed8b),this['enableCommand']('acceptSuggestion');const _0x312cea=new It(_0x4ccf8b,this['_suggestions']);_0x4ccf8b['commands']['add']('discardSuggestion',_0x312cea),this['enableCommand']('discardSuggestion'),_0x4ccf8b['commands']['add']('acceptAllSuggestions',new yt(_0x4ccf8b,_0x22ed8b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ccf8b['commands']['add']('discardAllSuggestions',new yt(_0x4ccf8b,_0x312cea,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ccf8b['commands']['add']('acceptSelectedSuggestions',new St(_0x4ccf8b,_0x22ed8b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ccf8b['commands']['add']('discardSelectedSuggestions',new St(_0x4ccf8b,_0x312cea,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4814f4=_0x4ccf8b['plugins']['get'](_0x3e91e1);this['listenTo'](_0x4814f4,'addComment',(_0x3c8213,{threadId:_0x261b9b})=>{const _0x527772=this['_suggestions']['get'](_0x261b9b);_0x527772&&_0x527772['commentThread']&&0x1===_0x527772['commentThread']['length']&&this['_updateSuggestionData'](_0x261b9b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4814f4,'removeComment',(_0x3ca0a0,{threadId:_0x418e5e})=>{const _0x4bc385=this['_suggestions']['get'](_0x418e5e);_0x4bc385&&_0x4bc385['commentThread']&&!_0x4bc385['commentThread']['length']&&this['_updateSuggestionData'](_0x418e5e,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0xffd222){const _0x1c4732='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x16b3bf=0x79740,_0x544dfb={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2febed(_0x5ac476){const _0x4ee5ab=new window['Promise'](_0x32cf1b=>{_0x5ac476['once']('ready',_0x32cf1b);}),_0x411878=window['Date']['now'](),_0x2f6ad2=_0x5ac476['config']['get']('licenseKey');async function _0xcea88(){let _0x38cdde,_0x201d3e=null,_0x158ac1=null;try{return'GPL'==_0x2f6ad2?'NotAllowed':(_0x38cdde=_0x83bd1d(),_0x38cdde?(_0x38cdde['usageEndpoint']&&(_0x158ac1=_0x1de2d4(_0x38cdde['usageEndpoint'],_0x38cdde['jti'])),await _0x483674()?_0x2ac448()?_0x375e1e()?'Expired':_0x30f195()?('evaluation'==_0x38cdde['licenseType']&&(_0x201d3e=_0x55bd1a('EvaluationLimit')),await _0x43cc6d()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x375e1e(){const _0x5cb985=['evaluation','trial']['includes'](_0x38cdde['licenseType'])?_0x411878/0x3e8:0xe10*_0x16b3bf;return _0x38cdde['exp']<_0x5cb985;}function _0x2ac448(){const _0x11ba90=_0x38cdde['features'];if(!_0x11ba90)return!0x1;if(_0x11ba90['includes']('*'))return!0x0;if(_0x11ba90['includes']('TC'))return!0x0;if(_0x11ba90['includes']('RTC')){if(_0xcb185c())return!0x0;if(_0x27ae21()||_0x247686())return!0x0;}return!0x1;}function _0x30f195(){const _0x131933=_0x38cdde['licensedHosts'];if(!_0x131933||0x0==_0x131933['length'])return!0x0;const {hostname:_0x1cc5c5}=new URL(window['location']['href']);if(_0x131933['includes'](_0x1cc5c5))return!0x0;const _0x32e1e4=_0x1cc5c5['split']('.');return _0x131933['filter'](_0x5d3557=>_0x5d3557['includes']('*'))['map'](_0x522734=>_0x522734['split']('.'))['filter'](_0xe0e254=>_0xe0e254['length']<=_0x32e1e4['length'])['map'](_0x128b21=>Array(_0x32e1e4['length']-_0x128b21['length'])['fill']('*'===_0x128b21[0x0]?'*':'')['concat'](_0x128b21))['some'](_0x9b000a=>_0x32e1e4['every']((_0x34265e,_0x1e1fae)=>_0x9b000a[_0x1e1fae]===_0x34265e||'*'===_0x9b000a[_0x1e1fae]));}function _0x43cc6d(){return _0x201d3e&&_0x158ac1?new window['Promise']((_0x44bc9b,_0x340e04)=>{_0x201d3e['then'](_0x44bc9b,_0x340e04),_0x158ac1['then'](_0x241f04=>{'Valid'!=_0x241f04&&_0x44bc9b(_0x241f04);},_0x340e04);}):_0x201d3e||_0x158ac1||'Valid';}}function _0x1de2d4(_0x506ade,_0x5b4835){return new window['Promise'](_0x1af3cc=>{if(_0x333cef())return _0x1af3cc('Valid');_0xddefba(),_0x5ac476['decorate']('_sendUsageRequest');let _0x2d5961=!0x1;const _0x2c6c38=_0x5a260f();function _0x538dc5(_0x3aa4b5){return!!_0x3aa4b5&&('object'==typeof _0x3aa4b5||'function'==typeof _0x3aa4b5)&&'function'==typeof _0x3aa4b5['then']&&'function'==typeof _0x3aa4b5['catch'];}function _0x3a64b2(_0x350785){_0xe12094(_0x350785)['then'](_0x9c1555=>_0x9c1555&&'ok'==_0x9c1555['status']?_0x36c250(_0x2cae4c(_0x2c6c38+_0x5b4835))!=_0x9c1555['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x1894bf=>(_0x3159d6(),_0x1894bf),()=>{const _0x59b148=_0x4fbfc7();return null==_0x59b148?(_0x3159d6(),'Valid'):_0x411878-_0x59b148>0x240c8400?'UsageLimit':'Valid';})['then'](_0x1af3cc)['catch'](()=>{_0x1af3cc('UsageLimit');});const _0x57083d=0x36ee80;function _0x3159d6(){const _0x26ba6a='llct-'+_0x36c250(_0x2cae4c(_0x506ade)),_0x44de44=_0x2c0654(_0x36c250(window['Math']['ceil'](_0x411878/_0x57083d)));window['localStorage']['setItem'](_0x26ba6a,_0x44de44);}function _0x4fbfc7(){const _0x34ff50='llct-'+_0x36c250(_0x2cae4c(_0x506ade)),_0x5c6980=window['localStorage']['getItem'](_0x34ff50);return _0x5c6980?window['parseInt'](_0x2c0654(_0x5c6980),0x10)*_0x57083d:null;}function _0xe12094(_0x53e749){return new window['Promise']((_0x417f92,_0x16c630)=>{_0x53e749['then'](_0x417f92,_0x16c630),window['setTimeout'](_0x16c630,0x1d4c0);});}}_0x5ac476['on']('_sendUsageRequest',(_0x9fc235,_0xf3acab)=>{if(_0xf3acab[0x0]!=_0x506ade)return _0x1af3cc('UsageLimit');_0xf3acab[0x1]={..._0xf3acab[0x1],'requestId':_0x2c6c38};},{'priority':'high'}),_0x5ac476['on']('_sendUsageRequest',_0xf9dcdc=>{_0x538dc5(_0xf9dcdc['return'])&&(_0x2d5961=!0x0,_0x3a64b2(_0xf9dcdc['return']));},{'priority':'low'}),_0x4ee5ab['then'](()=>{_0x2d5961||_0x1af3cc('UsageLimit');});});function _0x333cef(){return'auto'==_0x5ac476['editing']['view']['_overlayModeHint'];}function _0xddefba(){_0x5ac476['editing']['view']['_overlayModeHint']='auto';}}function _0x55bd1a(_0x3fc8b0){const _0x278ca5=[new window['Promise'](_0x307b3a=>setTimeout(_0x307b3a,0x93ecc)),_0x4ee5ab['then'](()=>new window['Promise'](_0x251471=>{let _0xe43bb4=0x0;_0x5ac476['model']['on']('applyOperation',(_0x8bb374,_0x2240c7)=>{_0x2240c7[0x0]['isDocumentOperation']&&_0xe43bb4++,0x5e8==_0xe43bb4&&(_0x251471(),_0x8bb374['off']());});}))];return window['Promise']['race'](_0x278ca5)['then'](()=>_0x3fc8b0);}async function _0x26996e(){await _0x4ee5ab,_0x5ac476['model']['change']=_0x21caba,_0x5ac476['model']['enqueueChange']=_0x21caba,_0x5ac476['enableReadOnlyMode']('model');}function _0xcb185c(){return _0x2aea46('WebSocketGateway')&&'connected'==_0x2811ab('WebSocketGateway')['state'];}function _0x27ae21(){return _0x2aea46('RevisionViewerIntegration');}function _0x247686(){return _0x2aea46('TrackChangesDataGetter');}function _0x5bba26(_0x39d9e8){const _0x631ea2=_0x56f87b();_0x5ac476[_0x631ea2]='trackChangesLicenseKey'+_0x39d9e8,'Valid'!=_0x39d9e8&&_0x26996e();}function _0x56f87b(){const _0x151d82=window['String'](window['performance']['now']())['replace']('.','');let _0x29917c='U';for(let _0x12542b=0x0;_0x12542b<_0x151d82['length'];_0x12542b+=0x2){let _0x2977c7=window['parseInt'](_0x151d82['substring'](_0x12542b,_0x12542b+0x2));_0x2977c7>=0x3e&&(_0x2977c7-=0x3e),_0x29917c+=_0x1c4732[_0x2977c7];}return _0x29917c;}function _0x83bd1d(){const _0x4d8292=_0x2f6ad2['split']('.');if(0x3!=_0x4d8292['length'])return null;return _0x20d494(_0x4d8292[0x1]);function _0x20d494(_0xa579dc){const _0x3aee33=_0x519184(_0xa579dc);return _0x3aee33&&_0x49ad4a()?_0x3aee33:null;function _0x49ad4a(){const _0x4f4b89=_0x3aee33['jti'],_0xc4ee5f=window['parseInt'](_0x4f4b89['substring'](_0x4f4b89['length']-0x8),0x10),_0xcc68a1={..._0x3aee33,'jti':_0x4f4b89['substring'](0x0,_0x4f4b89['length']-0x8)};return delete _0xcc68a1['vc'],_0x2cae4c(_0xcc68a1)==_0xc4ee5f;}}}async function _0x483674(){let _0x447dd8=!0x0;try{const [_0xd986ee,_0x5031ab,_0x239019]=_0x2f6ad2['split']('.');return _0x3cd392(_0xd986ee),await _0x65a499(_0xd986ee,_0x5031ab,_0x239019),_0x447dd8;}catch{return!0x1;}function _0x3cd392(_0x3a92f8){const _0x4410fb=_0x519184(_0x3a92f8);_0x4410fb&&'ES256'==_0x4410fb['alg']||(_0x447dd8=!0x1);}async function _0x65a499(_0x309c21,_0x37637c,_0x1ee5ce){const _0x420fa2=window['Uint8Array']['from'](_0x29204b(_0x1ee5ce),_0x4f9754=>_0x4f9754['charCodeAt'](0x0)),_0x3ab294=new window['TextEncoder']()['encode'](_0x309c21+'.'+_0x37637c),_0x1b114e=window['crypto']['subtle'];if(!_0x1b114e)return;const _0x9fadda=await _0x1b114e['importKey']('jwk',_0x544dfb,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1b114e['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x9fadda,_0x420fa2,_0x3ab294)||(_0x447dd8=!0x1);}}function _0x519184(_0x2e95a3){return _0x2e95a3['startsWith']('ey')?JSON['parse'](_0x29204b(_0x2e95a3)):null;}function _0x29204b(_0x20271b){return window['atob'](_0x20271b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x2cae4c(_0x1e3a8b){let _0x7d1b1f=0x1505;function _0x3921bb(_0x586a68){for(let _0x295626=0x0;_0x295626<_0x586a68['length'];_0x295626++){const _0x1c3f6c=_0x586a68['charCodeAt'](_0x295626);_0x7d1b1f=(_0x7d1b1f<<0x5)+_0x7d1b1f+_0x1c3f6c,_0x7d1b1f&=_0x7d1b1f;}}function _0x1805d1(_0x45f43c){Array['isArray'](_0x45f43c)?_0x45f43c['forEach'](_0x1805d1):_0x45f43c&&'object'==typeof _0x45f43c?Object['entries'](_0x45f43c)['sort']()['forEach'](([_0x5c658c,_0x1b0902])=>{_0x3921bb(_0x5c658c),_0x1805d1(_0x1b0902);}):_0x3921bb(window['String'](_0x45f43c));}return _0x1805d1(_0x1e3a8b),_0x7d1b1f>>>0x0;}function _0x36c250(_0xbcc545){return _0xbcc545['toString'](0x10)['padStart'](0x8,'0');}function _0x2c0654(_0x15d985){return _0x15d985['split']('')['reverse']()['join']('');}function _0x2aea46(_0xab849e){return _0x5ac476['plugins']['has'](_0xab849e);}function _0x2811ab(_0x96629c){return _0x5ac476['plugins']['get'](_0x96629c);}function _0x21caba(){}_0x5bba26(await _0xcea88());}_0x2febed(_0xffd222['editor']);}(this);}set adapter(_0x174552){if(this['_adapter'])throw new _0x1539e5('track-changes-adapter-already-set',this);this['_adapter']=_0x174552;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x2b8e9e=!0x1,toJSON:_0x2e6357=!0x1}={}){const _0x316dcc=[];for(const _0x509163 of this['_suggestions']['values']())_0x2b8e9e&&!_0x509163['isInContent']||_0x316dcc['push'](_0x509163);return _0x2e6357?_0x316dcc['map'](_0x3693d8=>_0x3693d8['toJSON']()):_0x316dcc;}getSuggestion(_0x583d14){const _0x36b4c6=this['_suggestions']['get'](_0x583d14);if(!_0x36b4c6)throw new _0x1539e5('track-changes-suggestion-not-found',this);return _0x36b4c6;}hasSuggestion(_0x1e5974){return this['_suggestions']['has'](_0x1e5974);}addSuggestionData(_0x558ca4){const {authorId:_0x4c3a36,id:_0x7561d1,originalSuggestionId:_0x473215,attributes:_0x3caf26}=_0x558ca4,[_0x39f8a9,_0x3655cf]=_0x558ca4['type']['split'](':'),_0x1f5941=this['_suggestions']['get'](_0x7561d1)||this['_createSuggestion'](_0x39f8a9,_0x3655cf,_0x7561d1,_0x4c3a36,_0x3caf26,_0x473215);if(this['_addThreadToSuggestion'](_0x1f5941),this['_checkSuggestionCorrectness'](_0x1f5941,_0x39f8a9,_0x3655cf||null,_0x4c3a36),_0x1f5941['createdAt']=_0x558ca4['createdAt'],_0x1f5941['_isDataLoaded']=!0x0,_0x3caf26&&_0x3caf26['@external']){const _0x2f6498=_0x3caf26['@external'],_0x1ae4d7=this['_getExternalAuthor'](_0x2f6498['authorName']);_0x1f5941['authoredAt']=_0x2f6498['createdAt'],_0x1f5941['author']=_0x1ae4d7;}else _0x1f5941['authoredAt']=_0x558ca4['createdAt'];switch(_0x558ca4['data']&&(_0x1f5941['data']=_0x558ca4['data']),_0x558ca4['attributes']&&(_0x1f5941['attributes']=_0x558ca4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1f5941['_saved']=!0x0),this['_suggestionState']['get'](_0x1f5941)){case'notReady':this['_suggestionState']['set'](_0x1f5941,'dataReady');break;case'markerReady':_0x1f5941['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1f5941])),this['_refreshSuggestionsChain'](new Set([_0x1f5941])),this['_suggestionState']['set'](_0x1f5941,'ready'),this['fire']('suggestionLoaded',_0x1f5941)):this['_suggestionState']['set'](_0x1f5941,'removed');}return _0x1f5941;}acceptSuggestion(_0x4af2d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5b8bc4 of _0x4af2d7['getAllAdjacentSuggestions']())_0x5b8bc4['accept']();});});}discardSuggestion(_0x946647){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf2861a of _0x946647['getAllAdjacentSuggestions']())_0xf2861a['discard']();});});}['enableCommand'](_0x163a3c,_0xf8bc5c){const _0x34a0b8=this['editor']['commands']['get'](_0x163a3c);if(!_0x34a0b8)throw new _0x1539e5('track-changes-command-not-found',this,{'commandName':_0x163a3c});if(this['_enabledCommands']['has'](_0x34a0b8))throw new _0x1539e5('track-changes-enable-command-twice',this,{'commandName':_0x163a3c});this['_enabledCommands']['add'](_0x34a0b8),_0xf8bc5c&&_0x34a0b8['on']('execute',(_0x2a35e4,_0x21df1a)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21df1a['length']>0x0&&_0x21df1a[_0x21df1a['length']-0x1]&&_0x21df1a[_0x21df1a['length']-0x1]['forceDefaultExecution']?_0x21df1a['pop']():(_0x2a35e4['return']=_0xf8bc5c((..._0x5cd984)=>_0x34a0b8['execute'](..._0x5cd984,{'forceDefaultExecution':!0x0}),..._0x21df1a),_0x2a35e4['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x162195){let _0x16fe84,_0x5daa60;const _0x5cf659=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x16fe84=_0x162195();}catch(_0x461ff1){_0x5daa60=_0x461ff1;}return _0x5cf659||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5daa60&&_0x1539e5['rethrowUnexpectedError'](_0x5daa60,this),_0x16fe84;}markInsertion(_0x3ed8dd,_0x368fdc=null,_0x1e6fa5={}){if(_0x3ed8dd['isCollapsed'])return null;const _0x3b86f2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x1e6fa5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5720c3,meta:_0x58325b}of this['_findSuggestions'](_0x3ed8dd,'insertion'))if(_0x58325b['isOwn']){if(!_0x58325b['isNextTo']){if(_0x58325b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x5720c3,_0x1e6fa5))continue;return _0x5720c3;}if(An(_0x5720c3,_0x1e6fa5))return _0x5720c3;this['_breakSuggestionMarker'](_0x5720c3,_0x3ed8dd['start'],_0x3ed8dd['end']);break;}if(_0x368fdc==_0x5720c3['subType']&&An(_0x5720c3,_0x1e6fa5)){const _0x20f815=_0x5720c3['getFirstRange']();return _0x20f815['start']['isEqual'](_0x3ed8dd['end'])?this['_setSuggestionRange'](_0x5720c3,this['_model']['createRange'](_0x3ed8dd['start'],_0x20f815['end'])):this['_setSuggestionRange'](_0x5720c3,this['_model']['createRange'](_0x20f815['start'],_0x3ed8dd['end'])),_0x5720c3;}}const _0x4f4ad5=_0x5a260f(),_0xb59bc1=_0x3b86f2['id'],_0x35b152=_0x368fdc?'insertion:'+_0x368fdc:'insertion',_0x58d4c1=this['_setSuggestionData']({'id':_0x4f4ad5,'type':_0x35b152,'createdAt':new Date(),'authorId':_0xb59bc1,'attributes':_0x1e6fa5});return this['_addSuggestionMarker'](_0x35b152,_0x4f4ad5,_0xb59bc1,_0x3ed8dd),_0x58d4c1;}markMultiRangeInsertion(_0x4d6f9c,_0x3640ec='multi',_0x59a874={}){const _0x4b3e62=this['editor']['plugins']['get']('Users')['me'],_0x47cc2a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3640ec,'join');this['_trackingSessionId']&&(_0x59a874['trackingSessionId']=this['_trackingSessionId']);for(const _0x46abe1 of this['getSuggestions']())if(_0x46abe1['author']['id']==_0x4b3e62['id']&&'insertion'==_0x46abe1['type']&&_0x46abe1['subType']==_0x3640ec&&An(_0x46abe1,_0x59a874)&&(_0x47cc2a(_0x46abe1['getRanges'](),_0x4d6f9c)||_0x47cc2a(_0x4d6f9c,_0x46abe1['getRanges']()))){for(const _0x4f03fc of _0x4d6f9c)_0x46abe1['addRange'](_0x4f03fc);return _0x46abe1;}for(const {suggestion:_0x4d0f8b,meta:_0xcd2557}of this['_findSuggestions'](_0x4d6f9c,'insertion')){if(!_0xcd2557['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xcd2557['containsRangeInObject'])continue;if(!An(_0x4d0f8b,_0x59a874))continue;let _0x33f5c5=!0x0;for(const _0x5f2ef0 of _0x4d0f8b['getRanges']())for(const _0x43a276 of _0x4d6f9c)if(!_0x5f2ef0['containsRange'](_0x43a276)){_0x33f5c5=!0x1;break;}if(_0x33f5c5)return _0x4d0f8b;}const _0x51f404=_0x5a260f(),_0x2963fc=_0x4b3e62['id'],_0x59fb71='insertion:'+_0x3640ec,_0x587cd8=this['_setSuggestionData']({'id':_0x51f404,'type':_0x59fb71,'createdAt':new Date(),'authorId':_0x2963fc,'attributes':_0x59a874});for(const _0x52ca53 of _0x4d6f9c)this['_addSuggestionMarker'](_0x59fb71,_0x51f404,_0x2963fc,_0x52ca53,Ot['getMultiRangeId']());return _0x587cd8;}markInlineFormat(_0x1282c4,_0xb520e0,_0x308285=null,_0x151dcf={}){if(_0x308285=_0x308285||fn(_0xb520e0),_0x1282c4['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x151dcf['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x250cdc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x308285,'accept');return this['forceDefaultExecution'](()=>_0x250cdc([_0x1282c4],_0xb520e0,_0x151dcf)),null;}const _0x4300ad=this['editor']['plugins']['get']('Users')['me'],_0x26a595=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xfdd428,meta:_0x353a8a}of this['_findSuggestions'](_0x1282c4,'insertion'))_0x353a8a['isOwn']&&!_0x353a8a['isInsideObject']&&_0x26a595['push'](..._0xfdd428['getRanges']());}const _0x4d9a03=function(_0x5a3db5,_0x3f5533){const _0x2681fe=[];for(const _0x7fcfed of _0x3f5533){const _0x14c33d=_0x5a3db5['getIntersection'](_0x7fcfed);_0x14c33d&&_0x2681fe['push'](_0x14c33d);}return _0x2681fe;}(_0x1282c4,_0x26a595),_0x252cbf=function(_0x4fcba2,_0x322b56){const _0x28019c=[_0x4fcba2];for(const _0x18e2cd of _0x322b56){let _0x3575b7=0x0;for(;_0x3575b7<_0x28019c['length'];){const _0xe0f92b=_0x28019c[_0x3575b7]['getDifference'](_0x18e2cd);_0x28019c['splice'](_0x3575b7,0x1,..._0xe0f92b),_0x3575b7+=_0xe0f92b['length'];}}return _0x28019c;}(_0x1282c4,_0x26a595);_0x4d9a03['length']&&this['_model']['change'](()=>{for(const _0xac844 of _0x4d9a03){const _0x506c03=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x308285,'accept');this['forceDefaultExecution'](()=>_0x506c03([_0xac844],_0xb520e0,_0x151dcf));}});for(const _0x5928f0 of _0x252cbf){let _0x4ba20c=null,_0x53589c=_0x5928f0['start'],_0x5d137f=_0x5928f0['end'];for(const {suggestion:_0x4d2cbe,meta:_0x4bbfc5}of this['_findSuggestions'](_0x5928f0,'formatInline')){if(!_0x4bbfc5['isOwn'])continue;if(_0x4d2cbe['subType']!=_0x308285)continue;if(!An(_0x4d2cbe,_0x151dcf))continue;const _0x4d97ce=_0x4d2cbe['getFirstRange']();if(_0x4d97ce['containsRange'](_0x5928f0,!0x0))return null;_0x53589c=_0x53589c['isBefore'](_0x4d97ce['start'])?_0x53589c:_0x4d97ce['start'],_0x5d137f=_0x5d137f['isAfter'](_0x4d97ce['end'])?_0x5d137f:_0x4d97ce['end'],_0x4ba20c?_0x4d97ce['start']['isBefore'](_0x4ba20c['getFirstRange']()['start'])?(_0x4ba20c['removeMarkers'](),_0x4ba20c=_0x4d2cbe):_0x4d2cbe['removeMarkers']():_0x4ba20c=_0x4d2cbe;}const _0x417891=this['_model']['createRange'](_0x53589c,_0x5d137f);if(_0x4ba20c)this['_setSuggestionRange'](_0x4ba20c,_0x417891);else{const _0x399f6b=_0x5a260f(),_0x5c3325=_0x4300ad['id'];this['_setSuggestionData']({'id':_0x399f6b,'type':'formatInline:'+_0x308285,'data':_0xb520e0,'createdAt':new Date(),'authorId':_0x5c3325,'attributes':_0x151dcf}),this['_addSuggestionMarker']('formatInline:'+_0x308285,_0x399f6b,_0x5c3325,_0x417891);}}return null;}markBlockFormat(_0x4abe65,_0x330103,_0x43fe7a=[],_0x33a483=null,_0xa82eba={}){_0x330103['formatGroupId']||(_0x330103['formatGroupId']=_0x330103['commandName']),_0x330103['multipleBlocks']=_0x4abe65['is']('range'),_0x33a483=_0x33a483||fn(_0x330103);const _0x3bbd65=_0x43fe7a['map'](_0x4a2b20=>pn(_0x4a2b20,this['_model'])),_0x16c9ed=_0x4abe65['is']('range')?_0x4abe65:pn(_0x4abe65,this['_model']);if(this['_trackingSessionId']&&(_0xa82eba['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3e3eaa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33a483,'accept');return this['forceDefaultExecution'](()=>_0x3e3eaa([_0x16c9ed],_0x330103,_0xa82eba)),null;}_0x3bbd65['push'](_0x16c9ed);let _0x10931a=!0x0;for(const _0x59c71a of _0x3bbd65)if(!this['_rangeIsInLocalUserInsertion'](_0x59c71a)){_0x10931a=!0x1;break;}if(_0x10931a&&'always'!==this['_trackFormatChanges']){const _0x7aeeaa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x33a483,'accept');return this['forceDefaultExecution'](()=>_0x7aeeaa([_0x16c9ed],_0x330103,_0xa82eba)),null;}let _0x20a1b4=null,_0x568b66=_0x16c9ed['start'],_0x5047c9=_0x16c9ed['end'];for(const {suggestion:_0x22649e,meta:_0x372ec0}of this['_findSuggestions'](_0x16c9ed,'formatBlock')){if(!_0x372ec0['isOwn'])continue;if(_0x372ec0['isNextTo']||_0x372ec0['containsRangeInObject']||_0x372ec0['isInsideObject'])continue;if(_0x22649e['data']['formatGroupId']!=_0x330103['formatGroupId'])continue;if(!An(_0x22649e,_0xa82eba))continue;const _0x261231=_0x22649e['getFirstRange']();if(_0x22649e['subType']==_0x33a483){if(_0x261231['containsRange'](_0x16c9ed,!0x0))return null;_0x568b66=_0x568b66['isBefore'](_0x261231['start'])?_0x568b66:_0x261231['start'],_0x5047c9=_0x5047c9['isAfter'](_0x261231['end'])?_0x5047c9:_0x261231['end'],_0x20a1b4?_0x261231['start']['isBefore'](_0x20a1b4['getFirstRange']()['start'])?(_0x20a1b4['removeMarkers'](),_0x20a1b4=_0x22649e):_0x22649e['removeMarkers']():_0x20a1b4=_0x22649e;}else{const _0x127caf=_0x16c9ed['getIntersection'](_0x261231);this['_cutOutSuggestionMarker'](_0x22649e,_0x127caf);}}const _0x140c43=this['editor']['plugins']['get']('Users')['me'],_0x5d5340=_0x5a260f(),_0x32f6b4=_0x140c43['id'];if(_0x20a1b4)return this['_setSuggestionRange'](_0x20a1b4,this['_model']['createRange'](_0x568b66,_0x5047c9)),_0x20a1b4;{const _0x4d95f2=this['_setSuggestionData']({'id':_0x5d5340,'type':'formatBlock:'+_0x33a483,'data':_0x330103,'createdAt':new Date(),'authorId':_0x32f6b4,'attributes':_0xa82eba});return this['_addSuggestionMarker']('formatBlock:'+_0x33a483,_0x5d5340,_0x32f6b4,this['_model']['createRange'](_0x568b66,_0x5047c9)),_0x4d95f2;}}markMultiRangeBlockFormat(_0x5201f8,_0x3cd3b3,_0x5382f4=[],_0x2df26e=null,_0x168a2f={}){_0x3cd3b3['formatGroupId']||(_0x3cd3b3['formatGroupId']=_0x3cd3b3['commandName']);const _0x452fd9=_0x5201f8[0x0];_0x3cd3b3['multipleBlocks']=_0x452fd9['is']('range'),_0x2df26e=_0x2df26e||fn(_0x3cd3b3);const _0x1103b1=_0x5382f4['map'](_0x16f0da=>pn(_0x16f0da,this['_model'])),_0x27dda1=_0x452fd9['is']('range')?_0x5201f8:_0x5201f8['map'](_0x301193=>pn(_0x301193,this['_model']));if(this['_trackingSessionId']&&(_0x168a2f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a0e9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'accept');return this['forceDefaultExecution'](()=>_0x5a0e9c(_0x27dda1,_0x3cd3b3,_0x168a2f)),null;}_0x1103b1['push'](..._0x27dda1);let _0x35fdf0=!0x0;for(const _0x393345 of _0x1103b1)if(!this['_rangeIsInLocalUserInsertion'](_0x393345)){_0x35fdf0=!0x1;break;}if(_0x35fdf0&&'always'!==this['_trackFormatChanges']){const _0x7f088d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'accept');return this['forceDefaultExecution'](()=>_0x7f088d(_0x27dda1,_0x3cd3b3,_0x168a2f)),null;}const _0x268c1f=this['editor']['plugins']['get']('Users')['me'];for(const _0x6dca48 of this['getSuggestions']()){const _0x69c304=_0x6dca48['data'];if(_0x6dca48['author']['id']!=_0x268c1f['id'])continue;if('formatBlock'!=_0x6dca48['type']||_0x69c304['formatGroupId']!=_0x3cd3b3['formatGroupId'])continue;if(!An(_0x6dca48,_0x168a2f))continue;const _0x3da648=_0x6dca48['subType']==_0x2df26e;for(let _0x21e1a5=0x0;_0x21e1a5<_0x27dda1['length'];_0x21e1a5++){const _0x2c2577=_0x27dda1[_0x21e1a5];for(const _0x86adf6 of _0x6dca48['getMarkers']()){const _0x1fcfb1=_0x86adf6['getRange']();if(_0x2c2577['isEqual'](_0x1fcfb1)){_0x3da648?(_0x27dda1['splice'](_0x21e1a5,0x1),_0x21e1a5--):_0x6dca48['removeMarker'](_0x86adf6['name']);break;}}}}if(0x0==_0x27dda1['length'])return null;const _0x1b77b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2df26e,'join');for(const _0x4e4061 of this['getSuggestions']()){const _0x2fba5f=_0x4e4061['data'];if(_0x4e4061['author']['id']==_0x268c1f['id']&&('formatBlock'==_0x4e4061['type']&&_0x2fba5f['formatGroupId']==_0x3cd3b3['formatGroupId']&&_0x4e4061['subType']==_0x2df26e&&An(_0x4e4061,_0x168a2f)&&(_0x1b77b9(_0x4e4061['getRanges'](),_0x27dda1)||_0x1b77b9(_0x27dda1,_0x4e4061['getRanges']())))){for(const _0x175528 of _0x27dda1)_0x4e4061['addRange'](_0x175528);return _0x4e4061;}}const _0x2f9f3d=_0x5a260f(),_0x1a0f10=_0x268c1f['id'],_0x272d98='formatBlock:'+_0x2df26e,_0x1d12c4=this['_setSuggestionData']({'id':_0x2f9f3d,'type':_0x272d98,'data':_0x3cd3b3,'createdAt':new Date(),'authorId':_0x1a0f10,'attributes':_0x168a2f});for(const _0x30f2c1 of _0x27dda1)this['_addSuggestionMarker'](_0x272d98,_0x2f9f3d,_0x1a0f10,_0x30f2c1,Ot['getMultiRangeId']());return _0x1d12c4;}markDeletion(_0x57a64,_0x274e96=null,_0x5ca35c={}){if(_0x57a64['isCollapsed'])return null;const _0x179cb2=this['editor']['plugins']['get']('Users')['me'],_0x4e287f=new at(_0x57a64['start'],_0x57a64['end']);this['_trackingSessionId']&&(_0x5ca35c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x200f47,meta:_0x304acf}of this['_findSuggestions'](_0x4e287f,'insertion'))if(_0x304acf['isOwn']&&!_0x304acf['isNextTo']){if(_0x200f47['isMultiRange']){const _0x309ebd=_0x200f47['getRanges']()['filter'](_0x3ca5e9=>'$graveyard'!=_0x3ca5e9['root']['rootName']);if(_0x309ebd['every'](_0x2a6080=>_0x4e287f['containsRange'](_0x2a6080,!0x0))&&_0x200f47['discard'](),_0x309ebd['some'](_0x235fb8=>_0x235fb8['containsRange'](_0x4e287f,!0x0))){const _0x1af10c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x274e96,'accept');return this['forceDefaultExecution'](()=>_0x1af10c([_0x4e287f],null,_0x5ca35c)),null;}}else{const _0x4c92c1=_0x4e287f['getIntersection'](_0x200f47['getFirstRange']());null!==_0x4c92c1&&_0x200f47['_onDiscard']([_0x4c92c1],null,_0x5ca35c);}}if(_0x4e287f['detach'](),_0x4e287f['isCollapsed']||'$graveyard'==_0x4e287f['root']['rootName'])return null;let _0x5af5fd=null,_0x5f3822=_0x4e287f['start'],_0x3a4880=_0x4e287f['end'];const _0x410bef=this['_findSuggestions'](_0x4e287f,'deletion');for(const {suggestion:_0x29586e,meta:_0xa8203f}of _0x410bef){const _0x38ba0e=this['_model']['createRange'](_0x5f3822,_0x3a4880);if(_0xa8203f['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa8203f['containsRangeInObject']&&!_0xa8203f['isInsideObject'])){if(_0x29586e['isMultiRange']){if(!An(_0x29586e,_0x5ca35c))continue;let _0x9d9544=!0x0;for(const _0x8cf178 of _0x29586e['getRanges']()){if(_0x8cf178['containsRange'](_0x38ba0e,!0x0))return _0x29586e;_0x38ba0e['containsRange'](_0x8cf178)||(_0x9d9544=!0x1);}_0x9d9544&&_0x29586e['discard']();}else{const _0x50ce40=_0x29586e['getFirstRange']();if(_0x50ce40['containsRange'](_0x38ba0e,!0x0))return _0x29586e;if(!An(_0x29586e,_0x5ca35c)){_0x38ba0e['containsRange'](_0x50ce40)?_0x29586e['removeMarkers']():_0x50ce40['containsPosition'](_0x5f3822)?_0x5f3822=_0x50ce40['end']:_0x50ce40['containsPosition'](_0x3a4880)&&(_0x3a4880=_0x50ce40['start']);continue;}_0x5f3822=_0x5f3822['isBefore'](_0x50ce40['start'])?_0x5f3822:_0x50ce40['start'],_0x3a4880=_0x3a4880['isAfter'](_0x50ce40['end'])?_0x3a4880:_0x50ce40['end'],_0x5ca35c=Object['assign']({},_0x29586e['attributes']),_0x5af5fd?_0x50ce40['start']['isBefore'](_0x5af5fd['getFirstRange']()['start'])?(_0x5af5fd['removeMarkers'](),_0x5af5fd=_0x29586e):_0x29586e['removeMarkers']():_0x5af5fd=_0x29586e;}}}if(_0x5af5fd)return this['_setSuggestionRange'](_0x5af5fd,this['_model']['createRange'](_0x5f3822,_0x3a4880)),_0x5af5fd;{const _0x5ecc91=_0x5a260f(),_0x22395c=this['_model']['createRange'](_0x5f3822,_0x3a4880),_0x225e30=_0x179cb2['id'],_0x156064=_0x274e96?'deletion:'+_0x274e96:'deletion',_0x1d15ef=this['_setSuggestionData']({'id':_0x5ecc91,'type':_0x156064,'createdAt':new Date(),'authorId':_0x225e30,'attributes':_0x5ca35c});return this['_addSuggestionMarker'](_0x156064,_0x5ecc91,_0x225e30,_0x22395c),_0x1d15ef;}}markMultiRangeDeletion(_0x3a787,_0x4dd026='multi',_0x3119e3={}){const _0x638074=this['editor']['plugins']['get']('Users')['me'],_0x5c5627=_0x3a787['map'](_0x175c76=>new at(_0x175c76['start'],_0x175c76['end'])),_0x5accf9=new Set();this['_trackingSessionId']&&(_0x3119e3['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x493779,meta:_0x3091ae}of this['_findSuggestions'](_0x5c5627,'insertion'))_0x3091ae['isOwn']&&!_0x3091ae['isNextTo']&&_0x5accf9['add'](_0x493779);for(const _0x4b7fee of _0x5accf9)if(_0x4b7fee['isMultiRange']){const _0x5a4f02=_0x4b7fee['getRanges']();if(_0x4b7fee['attributes']&&_0x4b7fee['attributes']['skipNestingCheck']||_0x5a4f02['every'](_0x4cdf86=>_0x5c5627['some'](_0x5864f5=>_0x5864f5['containsRange'](_0x4cdf86,!0x0)))&&_0x4b7fee['discard'](),_0x5c5627['every'](_0xf5f890=>_0x5a4f02['some'](_0x5b2bf8=>_0x5b2bf8['containsRange'](_0xf5f890,!0x0)))){const _0x5e8ddf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'accept');return this['forceDefaultExecution'](()=>_0x5e8ddf(_0x3a787,null,_0x3119e3)),null;}}else{const _0x2d6460=_0x4b7fee['getFirstRange']();if(_0x5c5627['some'](_0x3d509d=>_0x3d509d['containsRange'](_0x2d6460,!0x0))&&_0x4b7fee['discard'](),_0x5c5627['every'](_0x22d0be=>_0x2d6460['containsRange'](_0x22d0be,!0x0))){const _0x2e941c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'accept');return this['forceDefaultExecution'](()=>_0x2e941c(_0x5c5627,null,_0x3119e3)),null;}}const _0x19ee76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4dd026,'join');let _0x332d3f=null;for(const _0x23e00f of this['getSuggestions']())if(_0x23e00f['author']['id']==_0x638074['id']&&_0x23e00f['isInContent']&&'deletion'==_0x23e00f['type']&&_0x23e00f['subType']==_0x4dd026&&An(_0x23e00f,_0x3119e3)&&(_0x19ee76(_0x23e00f['getRanges'](),_0x5c5627)||_0x19ee76(_0x5c5627,_0x23e00f['getRanges']()))){if(_0x332d3f){if(_0x23e00f['commentThread']&&_0x23e00f['commentThread']['length'])continue;for(const _0x2748bb of _0x23e00f['getRanges']())_0x332d3f['isIntersectingWithRange'](_0x2748bb)||_0x332d3f['addRange'](_0x2748bb);_0x23e00f['removeMarkers']();}else{_0x332d3f=_0x23e00f;for(const _0x625241 of _0x5c5627)_0x23e00f['isIntersectingWithRange'](_0x625241)||_0x23e00f['addRange'](_0x625241);}}if(_0x332d3f)return _0x332d3f;_0x5accf9['clear']();for(const {suggestion:_0x429b43,meta:_0x2406b3}of this['_findSuggestions'](_0x5c5627,'deletion'))_0x2406b3['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2406b3['containsRangeInObject']&&!_0x2406b3['isInsideObject'])&&An(_0x429b43,_0x3119e3)&&_0x5accf9['add'](_0x429b43);for(const _0x3c6f78 of _0x5accf9){const _0x3ac193=_0x3c6f78['getRanges']();if((!_0x3119e3||!_0x3119e3['skipNestingCheck'])&&_0x5c5627['every'](_0x13492c=>_0x3ac193['some'](_0x2f7217=>_0x2f7217['containsRange'](_0x13492c,!0x0))))return _0x3c6f78;_0x3c6f78['attributes']&&_0x3c6f78['attributes']['skipNestingCheck']||_0x3ac193['every'](_0x523e6c=>_0x5c5627['some'](_0x1ba322=>_0x1ba322['containsRange'](_0x523e6c,!0x0)))&&_0x3c6f78['discard']();}const _0x556834=_0x5a260f(),_0x12cd95=_0x638074['id'],_0x58ad0d='deletion:'+_0x4dd026,_0x43a83d=this['_setSuggestionData']({'id':_0x556834,'type':_0x58ad0d,'createdAt':new Date(),'authorId':_0x12cd95,'attributes':_0x3119e3});for(const _0x1de627 of _0x5c5627)_0x1de627['detach'](),_0x1de627['isCollapsed']||'$graveyard'==_0x1de627['root']['rootName']||this['_addSuggestionMarker'](_0x58ad0d,_0x556834,_0x12cd95,_0x1de627,Ot['getMultiRangeId']());return _0x43a83d;}markAttributeChange(_0x452949,_0x3387a6,_0xe1120f,_0x15a9af,_0x2c3ad5){if(_0x452949['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a8e84=this['editor']['plugins']['get']('Users')['me']['id'],_0x236045=Array['from'](this['_suggestions']['values']())['filter'](_0x7e77ad=>'attribute'==_0x7e77ad['type']&&_0x7e77ad['data']['key']==_0x3387a6&&_0x7e77ad['isIntersectingWithRange'](_0x452949));if(this['_trackingSessionId']&&(_0x2c3ad5['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2f0669=this['_findSuggestions'](_0x452949,'insertion')['filter'](({meta:_0x2028f1})=>_0x2028f1['isOwn']&&!_0x2028f1['isInsideObject']&&!_0x2028f1['isNextTo'])['map'](({suggestion:_0x2d4cec})=>_0x2d4cec);_0x236045['unshift'](..._0x2f0669);}const _0x4abbe7=new Map([[_0x452949,_0xe1120f]]);for(const _0xc3c8ab of _0x236045){const _0x3ef33f='attribute'==_0xc3c8ab['type']?_0xc3c8ab['data']['oldValue']:void 0x0,_0xf13055=_0xc3c8ab['getFirstRange'](),_0x519c34=Array['from'](_0x4abbe7['keys']())['find'](_0x4e751c=>_0x4e751c['isIntersecting'](_0xf13055));if(!_0x519c34)continue;const _0x2500e1=_0x519c34['getDifference'](_0xf13055);this['_suggestionsConversion']['isBlockAttribute'](_0x3387a6)&&'insertion'==_0xc3c8ab['type']&&0x0!=_0x2500e1['length']||(_0x4abbe7['delete'](_0x519c34),_0x2500e1['forEach'](_0x290e25=>{_0x4abbe7['set'](_0x290e25,_0xe1120f);}),'insertion'!=_0xc3c8ab['type']&&_0x3ef33f!=_0x15a9af&&_0x4abbe7['set'](_0x519c34['getIntersection'](_0xf13055),_0x3ef33f));}const _0x5e2905=[];for(const [_0x4153f3,_0x3e32df]of _0x4abbe7){const _0x4ad204=_0x5a260f(),_0x3f8fd0={'key':_0x3387a6,'oldValue':_0x3e32df,'newValue':_0x15a9af};_0x3387a6['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x3387a6});const _0x6d196e=('attribute:'+_0x3387a6+'|'+fn({'newValue':_0x15a9af}))['substring'](0x0,0x3c),_0x533d27=this['_setSuggestionData']({'id':_0x4ad204,'type':_0x6d196e,'data':_0x3f8fd0,'createdAt':new Date(),'authorId':_0x2a8e84,'attributes':_0x2c3ad5});_0x5e2905['push'](_0x533d27),this['_addSuggestionMarker'](_0x6d196e,_0x4ad204,_0x2a8e84,_0x4153f3);}return _0x5e2905;}enableDefaultAttributesIntegration(_0x281481){this['enableCommand'](_0x281481,(_0x44a6cc,..._0x4bb262)=>{this['recordAttributeChanges'](()=>{_0x44a6cc(..._0x4bb262);});});}startTrackingSession(_0x3a9524){return this['_trackingSessionId']=void 0x0!==_0x3a9524?_0x3a9524:_0x5a260f(),this['_trackingSessionId'];}_getAttributeKey(_0x225266){return'attribute'==_0x225266['type']?Cn(_0x225266['subType']):null;}_applyOperationsAsSuggestions(_0x335b4c){if(0x0==_0x335b4c['length'])return;const _0x491ff7=this['editor'],_0x4f389a=[],_0x4b7f34=_0x5df615=>{const _0x29107e=_0x5df615['_aiSource'];return _0x29107e?{'@ai':{'type':_0x29107e}}:{};},_0x55717b=(_0x25cd3d,_0x500916,_0x5a135a,_0x308f1f)=>{const _0x2b6d48=new Set(_0x308f1f['flatMap'](_0x3f6dc2=>_0x3f6dc2['getMarkerNames']()));let _0x426395=!0x1;for(let _0x298538=_0x500916;_0x298538<_0x25cd3d['operations']['length'];_0x298538++){const _0x9f77f6=_0x25cd3d['operations'][_0x298538];if('marker'==_0x9f77f6['type']){if(!_0x2b6d48['has'](_0x9f77f6['name']))continue;_0x426395=!0x0;}_0x9f77f6['_aiSource']=_0x5a135a;}return _0x426395;};_0x491ff7['model']['change'](_0xecd664=>{for(let _0x58e60e=0x0;_0x58e60e<_0x335b4c['length'];_0x58e60e++){const _0x26749d=_0x335b4c[_0x58e60e],_0x264b20=_0x26749d['_aiSource'];if(_0x26749d['baseVersion']=_0x491ff7['model']['document']['version'],_0x26749d['isDocumentOperation']=!0x0,_0x1cfa67(_0x26749d))continue;if(an(_0x26749d)){const _0x42b330=_0x46c3ae(_0x26749d['newRange'],_0x491ff7['model']);_0x4f389a['unshift']({'range':at['fromRange'](_0x42b330),'operation':_0x26749d});continue;}const _0x4c76f9=_0xecd664['batch']['operations']['length']+0x1;let _0x3e73b4=[];switch(_0x26749d['type']){case'rename':{const _0x5c4b67=_0x26749d['oldName'],_0x465ab6=_0x26749d['newName'];if(_0x5c4b67==_0x465ab6)break;_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x5bc0a6='$elementName',_0x1f4e6c=_0x26749d['position'],_0x25641b=_0x491ff7['model']['createRange'](_0x1f4e6c,_0x491ff7['model']['createPositionAt'](_0x1f4e6c['nodeAfter'],'end'));_0x3e73b4=this['markAttributeChange'](_0x25641b,_0x5bc0a6,_0x5c4b67,_0x465ab6,{..._0x4b7f34(_0x26749d),'groupId':_0x5a260f()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x45b01a=_0x26749d['oldValue'],_0xc0be37=_0x26749d['newValue'];if(_0x45b01a==_0xc0be37)break;_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x1d2218=_0x26749d['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x1d2218))break;const _0x2cf794=_0x46c3ae(_0x26749d['range'],_0x491ff7['model']);_0x3e73b4=this['markAttributeChange'](_0x2cf794,_0x1d2218,_0x45b01a,_0xc0be37,{..._0x4b7f34(_0x26749d),'groupId':_0x5a260f()});break;}case'insert':{if(_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d),_0x335b4c[_0x58e60e+0x1]&&'move'==_0x335b4c[_0x58e60e+0x1]['type'])break;const _0x4513a8=_0x26749d['position'],_0x3b06d5=_0x26749d['howMany'],_0x493b73=_0x46c3ae(_0x491ff7['model']['createRange'](_0x4513a8,_0x4513a8['getShiftedBy'](_0x3b06d5)),_0x491ff7['model']);_0x3e73b4=cn(this['markInsertion'](_0x493b73,null,{..._0x4b7f34(_0x26749d)}));break;}case'split':{_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);const _0x527791=_0x26749d['splitPosition'],_0x4be97f=_0x26749d['moveTargetPosition'],_0x23613d=_0x491ff7['model']['createRange'](_0x527791,_0x4be97f);_0x3e73b4=cn(this['markInsertion'](_0x23613d,null,{..._0x4b7f34(_0x26749d)}));break;}case'move':case'remove':_0xecd664['batch']['addOperation'](_0x26749d),_0x491ff7['model']['applyOperation'](_0x26749d);}_0x264b20&&_0x55717b(_0xecd664['batch'],_0x4c76f9,_0x264b20,_0x3e73b4)&&delete _0x26749d['_aiSource'];}for(const {range:_0x23d3a2,operation:_0xd5210a}of _0x4f389a){const _0x5b44a4=_0xd5210a['_aiSource'],_0x16805b=_0x4b7f34(_0xd5210a),_0x39c53c=_0xecd664['batch']['operations']['length'];_0x23d3a2['detach']();const _0x238c2b=this['markDeletion'](_0x23d3a2,null,{..._0x16805b});_0x5b44a4&&_0x55717b(_0xecd664['batch'],_0x39c53c,_0x5b44a4,cn(_0x238c2b));}});}_setSuggestionRange(_0xc1e8ea,_0x96405c){const _0x4455f4=_0xc1e8ea['getFirstMarker']();this['_model']['change'](_0x3c6b4c=>{_0x3c6b4c['updateMarker'](_0x4455f4,{'range':_0x96405c});});}_addThreadToSuggestion(_0x1a4107){const _0x1be50f=_0x1a4107['id'],_0x488464=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1be50f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x488464,'threadId':_0x1be50f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x51b1fe=this['_commentsRepository']['getCommentThread'](_0x1be50f);_0x51b1fe['unbind']('isRemovable'),_0x51b1fe['isRemovable']=!0x1,_0x1a4107['commentThread']=_0x51b1fe;}_checkSuggestionCorrectness(_0x30fe50,_0x18bac3,_0x22ee8d,_0x5ea847){if(_0x30fe50['type']!=_0x18bac3||_0x30fe50['subType']!=_0x22ee8d||_0x30fe50['creator']['id']!=_0x5ea847)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1539e5('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x1ac609,_0x5ad3d5){const _0x2ebf3e=_0x1ac609['getFirstRange']();if(_0x5ad3d5['isEqual'](_0x2ebf3e))_0x1ac609['removeMarkers']();else{if(_0x2ebf3e['containsRange'](_0x5ad3d5)){const _0x2205e9=this['_model']['createPositionAt'](_0x5ad3d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0x2ebf3e['start'],_0x2205e9));const _0x208cb5=_0x5a260f(),_0x24d70d=_0x1ac609['creator']['id'],_0x397fb2=_0x1ac609['type']+':'+_0x1ac609['subType'];this['_setSuggestionData']({'id':_0x208cb5,'type':_0x397fb2,'createdAt':new Date(),'authorId':_0x24d70d,'data':_0x1ac609['data'],'attributes':_0x1ac609['attributes']});const _0x2711c5=this['_model']['createPositionAt'](_0x5ad3d5['end']['parent'],'after'),_0x2a2370=this['_model']['createRange'](_0x2711c5,_0x2ebf3e['end']);this['_addSuggestionMarker'](_0x397fb2,_0x208cb5,_0x24d70d,_0x2a2370);}else{if(_0x2ebf3e['containsPosition'](_0x5ad3d5['start'])){const _0x28a788=this['_model']['createPositionAt'](_0x5ad3d5['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0x2ebf3e['start'],_0x28a788));}else{const _0xcb9023=this['_model']['createPositionAt'](_0x5ad3d5['end']['parent'],'after');this['_setSuggestionRange'](_0x1ac609,this['_model']['createRange'](_0xcb9023,_0x2ebf3e['end']));}}}}_rangeIsInLocalUserInsertion(_0x3314e6){for(const {suggestion:_0xc16ca6,meta:_0x14f83b}of this['_findSuggestions'](_0x3314e6,'insertion')){if(!_0x14f83b['isOwn'])continue;const _0x163b20=_0xc16ca6['getRanges']();for(const _0x3f22d8 of _0x163b20)if(!_0x3314e6['getDifference'](_0x3f22d8)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x30ed03){return this['editor']['plugins']['get']('Users')['getUser'](_0x30ed03);}_getExternalAuthor(_0x4873e0){const _0x322031=this['editor']['plugins']['get']('Users'),_0x4bc6f7=_0x13b349('external:'+_0x4873e0),_0x4d6d93=_0x322031['getUser'](_0x4bc6f7);return _0x4d6d93||_0x322031['addUser']({'id':_0x4bc6f7,'name':_0x4873e0});}_createSuggestion(_0x2646cf,_0x31a1ec,_0x33cbce,_0x4520e3,_0x4dae6a,_0x320194){const _0x55c244=this['_getAuthorFromId'](_0x4520e3);if(!_0x55c244)throw new _0x1539e5('track-changes-user-not-found',this,{'authorId':_0x4520e3,'suggestionId':_0x33cbce});const _0x39ce24=this['_suggestionFactory']['buildSuggestion'](_0x2646cf,_0x31a1ec,_0x33cbce,_0x55c244,_0x4dae6a,_0x34af0a=>{this['_updateSuggestionData'](_0x33cbce,{'attributes':_0x34af0a});const _0x141aa2=this['getSuggestion'](_0x33cbce);this['_joinWithAdjacentSuggestions'](new Set([_0x141aa2])),this['_refreshSuggestionsChain'](new Set([_0x141aa2]));},_0x320194);return this['listenTo'](_0x39ce24,'accept',()=>{this['_updateSuggestionData'](_0x33cbce,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x39ce24,'discard',()=>{this['_updateSuggestionData'](_0x33cbce,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x33cbce,_0x39ce24),this['_suggestionState']['set'](_0x39ce24,'notReady'),_0x39ce24;}_breakSuggestionMarker(_0x5db046,_0x33a013,_0x398c13){const _0x3897e9=_0x5db046['getFirstRange'](),_0x466c80=_0x3897e9['start'],_0x375420=_0x3897e9['end'];this['_setSuggestionRange'](_0x5db046,this['_model']['createRange'](_0x466c80,_0x33a013));const _0x3dddb8=_0x5a260f(),_0x4c4378=_0x5db046['creator']['id'],_0x403d87=_0x5db046['type']+(_0x5db046['subType']?':'+_0x5db046['subType']:'');this['_setSuggestionData']({'id':_0x3dddb8,'type':_0x403d87,'createdAt':new Date(),'authorId':_0x4c4378,'originalSuggestionId':_0x5db046['_originalSuggestionId']||_0x5db046['id'],'attributes':_0x5db046['attributes'],'data':_0x5db046['data']});const _0x217791=this['_getAttributeKey'](_0x5db046);('formatBlock'==_0x5db046['type']||_0x217791&&this['_suggestionsConversion']['isBlockAttribute'](_0x217791))&&(_0x398c13=this['_model']['createPositionBefore'](_0x398c13['parent'])),this['_addSuggestionMarker'](_0x403d87,_0x3dddb8,_0x4c4378,this['_model']['createRange'](_0x398c13,_0x375420));}_findSuggestions(_0x528c55,_0x25d813=null){const _0x37a2ab=[],_0xade580=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x528c55)||(_0x528c55=[_0x528c55]);for(const _0x5ef378 of this['getSuggestions']()){if(!_0x5ef378['isInContent'])continue;if(_0x25d813&&_0x5ef378['type']!=_0x25d813)continue;let _0x5e135f=!0x1;for(const _0x279877 of _0x5ef378['getRanges']()){for(const _0x1ce8d7 of _0x528c55){const _0x58540b=_0x1ce8d7['start']['isEqual'](_0x279877['end'])||_0x1ce8d7['end']['isEqual'](_0x279877['start']);if(_0x58540b||_0x1ce8d7['getIntersection'](_0x279877)){const _0x4fcc2a=_0x1ce8d7['containsRange'](_0x279877)&&dn(this['_model']['schema'],_0x279877['start'],_0x1ce8d7),_0x333cba=_0x279877['containsRange'](_0x1ce8d7)&&dn(this['_model']['schema'],_0x1ce8d7['start'],_0x279877);_0x37a2ab['push']({'suggestion':_0x5ef378,'meta':{'isOwn':_0xade580==_0x5ef378['author'],'isNextTo':_0x58540b,'isInsideObject':_0x4fcc2a,'containsRangeInObject':_0x333cba}}),_0x5e135f=!0x0;break;}}if(_0x5e135f)break;}}return _0x37a2ab;}_addSuggestionMarker(_0x43484c,_0x391b10,_0x4e049c,_0x706813,_0x26a144){this['_model']['change'](_0x2e812f=>{let _0x6f9e01='suggestion:'+_0x43484c+':'+_0x391b10+':'+_0x4e049c;_0x26a144&&(_0x6f9e01=_0x6f9e01+':'+_0x26a144),_0x2e812f['addMarker'](_0x6f9e01,{'range':_0x706813,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x7b58c1){const _0x2ccf34=_0x7b58c1['previous'],_0xe7d2bc=_0x7b58c1['next'];_0x7b58c1['previous']=null,_0x7b58c1['next']=null,null!=_0x2ccf34&&_0x2ccf34['next']==_0x7b58c1&&(_0x2ccf34['next']=_0xe7d2bc),null!=_0xe7d2bc&&_0xe7d2bc['previous']==_0x7b58c1&&(_0xe7d2bc['previous']=_0x2ccf34),'ready'==this['_suggestionState']['get'](_0x7b58c1)&&(this['_suggestionState']['set'](_0x7b58c1,'removed'),this['fire']('suggestionUnloaded',_0x7b58c1,_0x2ccf34,_0xe7d2bc));}_setSuggestionData(_0x5938f1){const _0x57188a=_0x5938f1['id'],_0x33b60c=this['addSuggestionData'](_0x5938f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f3d2b=this['editor']['plugins']['get']('PendingActions'),_0x8e33c5=_0x33b60c['hasComments'],_0x332d66=_0x33b60c['subType']?_0x33b60c['type']+':'+_0x33b60c['subType']:_0x33b60c['type'],_0x85059a=this['editor']['locale'],_0x41cd64=_0x2f3d2b['add'](wt(_0x85059a,'PENDING_ACTION_SUGGESTION')),_0x361b31={'id':_0x57188a,'type':_0x332d66,'hasComments':_0x8e33c5,'data':_0x5938f1['data']||null,'originalSuggestionId':_0x5938f1['originalSuggestionId']||null,'attributes':_0x33b60c['attributes']};this['_adapter']['addSuggestion'](_0x361b31)['then'](_0x5e159d=>{_0x33b60c['_saved']=!0x0,_0x2f3d2b['remove'](_0x41cd64),_0x5e159d&&_0x5e159d['createdAt']&&(this['_suggestions']['get'](_0x57188a)['createdAt']=_0x5e159d['createdAt']);})['catch'](_0x483e21=>{throw _0x5bb8f7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33b60c['discard']();}),_0x33b60c['stopListening'](),this['_suggestions']['delete'](_0x33b60c['id']),this['_suggestionState']['delete'](_0x33b60c),_0x483e21;});}return _0x33b60c;}_updateSuggestionData(_0x4fe399,_0x229e3a){const _0x58585c=this['editor']['plugins']['get']('PendingActions'),_0x1858c7=this['getSuggestion'](_0x4fe399);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1858c7['_saved']){const _0x53fa72=_0x58585c['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4fe399,_0x229e3a)['then'](()=>{_0x58585c['remove'](_0x53fa72);});}else _0x1858c7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4fe399,_0x229e3a);});}}_getSuggestionData(_0x3d99ad){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1539e5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3d99ad);}_handleNewSuggestionMarker(_0x59c86d){const {id:_0x534811,type:_0x3b4fc0,subType:_0x395330,authorId:_0x559eb3}=nt(_0x59c86d),_0x593f27=this['_suggestions']['get'](_0x534811)||this['_createSuggestion'](_0x3b4fc0,_0x395330,_0x534811,_0x559eb3,{});switch(this['_checkSuggestionCorrectness'](_0x593f27,_0x3b4fc0,_0x395330,_0x559eb3),this['_suggestionState']['get'](_0x593f27)){case'notReady':this['_getSuggestionData'](_0x534811)['then'](_0x521ccb=>{let _0x1440e5=Promise['resolve']();_0x521ccb['hasComments']&&(_0x1440e5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x534811})),_0x1440e5['then'](()=>{this['addSuggestionData'](_0x521ccb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x593f27,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x534811,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x593f27,'ready'),this['fire']('suggestionLoaded',_0x593f27);break;case'ready':this['fire']('suggestionChanged',_0x593f27);}return _0x593f27['addMarkerName'](_0x59c86d),_0x593f27;}_refreshSuggestionsChain(_0x51de53){const _0xe519d7=Array['from'](_0x51de53),_0x4dfda3=_0xe519d7['filter'](_0x190b04=>'attribute'==_0x190b04['type']);this['_refreshAttributeSuggestionsChain'](_0x4dfda3);const _0x1e0a8d=_0xe519d7['filter'](_0x446ccc=>!_0x446ccc['isMultiRange']&&'attribute'!=_0x446ccc['type']),_0x222634=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4acf95=>!_0x4acf95['isMultiRange']&&'attribute'!=_0x4acf95['type']),_0x123907=_0x222634['filter'](_0x196b6a=>!_0x51de53['has'](_0x196b6a)),_0x3c9d07=new Map(_0x222634['map'](_0x56fa4c=>[_0x56fa4c,this['_suggestionFactory']['getSuggestionCallback'](_0x56fa4c['type'],_0x56fa4c['subType'],'chain')])),_0x471cae=new Map(_0x222634['map'](_0x343e83=>[_0x343e83,_0x343e83['getFirstRange']()])),_0x240a90=new Set(),_0x514d70=new Set();for(let _0x428ed1=0x0;_0x428ed1<_0x1e0a8d['length'];_0x428ed1++)_0x32e580(_0x1e0a8d[_0x428ed1],_0x1e0a8d,_0x428ed1+0x1);for(let _0x56ed53=0x0;_0x56ed53<_0x1e0a8d['length'];_0x56ed53++)_0x32e580(_0x1e0a8d[_0x56ed53],_0x123907,0x0);const _0x59a48f=new Set();for(let _0x28153a=0x0;_0x28153a<_0x1e0a8d['length'];_0x28153a++){const _0xb31da2=_0x1e0a8d[_0x28153a];!_0x514d70['has'](_0xb31da2)&&_0xb31da2['previous']&&(_0x59a48f['add'](_0xb31da2['previous']),_0xb31da2['previous']['next']===_0xb31da2&&(_0xb31da2['previous']['next']=null),_0xb31da2['previous']=null),!_0x240a90['has'](_0xb31da2)&&_0xb31da2['next']&&(_0x59a48f['add'](_0xb31da2['next']),_0xb31da2['next']['previous']===_0xb31da2&&(_0xb31da2['next']['previous']=null),_0xb31da2['next']=null);}function _0x32e580(_0x1dec3f,_0x4b38fb,_0x3c61bc){for(let _0x2ab9f4=_0x3c61bc;_0x2ab9f4<_0x4b38fb['length'];_0x2ab9f4++){const _0x3f576f=_0x1b2e95(_0x1dec3f,_0x4b38fb[_0x2ab9f4]);_0x3f576f&&(_0x3f576f[0x0]['next']=_0x3f576f[0x1],_0x3f576f[0x1]['previous']=_0x3f576f[0x0],_0x240a90['add'](_0x3f576f[0x0]),_0x514d70['add'](_0x3f576f[0x1]));}}function _0x1b2e95(_0x59962b,_0x5de271){if(_0x59962b['author']['id']!==_0x5de271['author']['id'])return null;const _0x1ffd3b=_0x3c9d07['get'](_0x59962b)(_0x59962b,_0x5de271,_0x471cae['get'](_0x59962b),_0x471cae['get'](_0x5de271));return _0x1ffd3b&&_0x3c9d07['get'](_0x5de271)(_0x59962b,_0x5de271,_0x471cae['get'](_0x59962b),_0x471cae['get'](_0x5de271))?_0x1ffd3b[0x1]['commentThread']&&_0x1ffd3b[0x1]['commentThread']['length']?null:_0x1ffd3b:null;}_0x59a48f['size']&&this['_refreshSuggestionsChain'](_0x59a48f);}_refreshAttributeSuggestionsChain(_0x5567ec){if(0x0==_0x5567ec['length'])return;const _0x46c357=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a5363=>'attribute'==_0x4a5363['type']&&_0x4a5363['_isDataLoaded']),_0x2b5391=[],_0x136df3=new Map();for(const _0x481266 of _0x46c357){const _0x24d525=_0x13b349(_0x481266['attributes']);_0x136df3['has'](_0x24d525)||(_0x136df3['set'](_0x24d525,_0x2b5391['length']),_0x2b5391['push']([])),_0x2b5391[_0x136df3['get'](_0x24d525)]['push'](_0x481266);}!(function(){_0x2b5391['sort']((_0xf94eaf,_0x526e96)=>{const _0x2499ec=_0xf94eaf[0x0]['createdAt'],_0x599174=_0x526e96[0x0]['createdAt'];return _0x2499ec==_0x599174?_0xf94eaf[0x0]['attributes']['groupId']<_0x526e96[0x0]['attributes']['groupId']?-0x1:0x1:_0x2499ec<_0x599174?-0x1:0x1;});for(const _0x147702 of _0x2b5391)_0x147702['sort']((_0x54af83,_0x4bc4f9)=>_0x54af83['id']<_0x4bc4f9['id']?-0x1:0x1);}());for(let _0x59e98e=0x0;_0x59e98e<_0x2b5391['length'];_0x59e98e++){if(0x0==_0x2b5391[_0x59e98e]['length'])continue;const _0x549479=[];for(let _0x210b61=_0x59e98e+0x1;_0x210b61<_0x2b5391['length'];_0x210b61++)0x0!=_0x2b5391[_0x210b61]['length']&&_0x46a27a(_0x2b5391[_0x59e98e],_0x2b5391[_0x210b61])&&_0x549479['push'](_0x210b61);for(const _0x51a348 of _0x549479)_0x2b5391[_0x59e98e]=_0x2b5391[_0x59e98e]['concat'](_0x2b5391[_0x51a348]),_0x2b5391[_0x51a348]=[];}for(const _0x32e93e of _0x2b5391)for(let _0x40171d=0x0;_0x40171d<_0x32e93e['length'];_0x40171d++){const _0x26dd7d=_0x32e93e[_0x40171d+0x1]||null;_0x32e93e[_0x40171d]['next']!==_0x26dd7d&&(_0x32e93e[_0x40171d]['next']=_0x26dd7d);}for(const _0x156259 of _0x2b5391)for(let _0x50c44a=0x0;_0x50c44a<_0x156259['length'];_0x50c44a++){const _0x39ef5a=_0x156259[_0x50c44a-0x1]||null;_0x156259[_0x50c44a]['previous']!==_0x39ef5a&&(_0x156259[_0x50c44a]['previous']=_0x39ef5a);}function _0x46a27a(_0x468f5a,_0x4e3243){if(_0x468f5a[0x0]['attributes']['groupId']!==_0x4e3243[0x0]['attributes']['groupId']&&_0x468f5a[0x0]['author']!==_0x4e3243[0x0]['author'])return!0x1;if(!function(_0x377588,_0x1c7209){return!_0x377588['hasComments']&&!_0x1c7209['hasComments']||(!_0x377588['hasComments']||!_0x1c7209['hasComments'])&&(!!(_0x377588['hasComments']&&_0x1c7209['createdAt']<_0x377588['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x1c7209['hasComments']&&_0x377588['createdAt']<_0x1c7209['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x468f5a[0x0],_0x4e3243[0x0]))return!0x1;const _0x31f8f5=dt(_0x468f5a[0x0]['attributes'],['groupId','trackingSessionId']),_0x371daa=dt(_0x4e3243[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x31f8f5,_0x371daa)&&(_0x468f5a[0x0]['attributes']['groupId']==_0x4e3243[0x0]['attributes']['groupId']||_0x468f5a[0x0]['attributes']['trackingSessionId']===_0x4e3243[0x0]['attributes']['trackingSessionId']&&(!!_0x468f5a['every'](_0xe9f500=>_0x4e3243['some'](_0x1cd412=>_0xe9f500['getFirstRange']()['isEqual'](_0x1cd412['getFirstRange']())))&&_0x4e3243['every'](_0x5497d4=>_0x468f5a['some'](_0x4ad96c=>_0x5497d4['getFirstRange']()['isEqual'](_0x4ad96c['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0x5e9641){const _0x371130=Array['from'](_0x5e9641),_0x29da5f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b8bff=_0x29da5f['filter'](_0x5907e5=>!_0x5e9641['has'](_0x5907e5)),_0x38ac2b=new Map(_0x371130['map'](_0x3ff5df=>[_0x3ff5df,this['_suggestionFactory']['getSuggestionCallback'](_0x3ff5df['type'],_0x3ff5df['subType'],'join')])),_0x3acd86=new Map(_0x29da5f['map'](_0x380cee=>[_0x380cee,_0x380cee['getRanges']()]));for(let _0x1962aa=0x0;_0x1962aa<_0x371130['length'];_0x1962aa++)if(_0x38feba(this,_0x371130[_0x1962aa],_0x371130,_0x1962aa+0x1))return!0x0;for(let _0x543333=0x0;_0x543333<_0x371130['length'];_0x543333++)if(_0x38feba(this,_0x371130[_0x543333],_0x4b8bff,0x0))return!0x0;return!0x1;function _0x38feba(_0x56da2a,_0x2ba3eb,_0x577b4d,_0x331fe2){for(let _0x297a4d=_0x331fe2;_0x297a4d<_0x577b4d['length'];_0x297a4d++){const _0x357594=_0x577b4d[_0x297a4d];if(_0x357594['type']!==_0x2ba3eb['type']||_0x357594['author']['id']!==_0x2ba3eb['author']['id']||_0x357594['subType']!==_0x2ba3eb['subType'])continue;if(!In(_0x2ba3eb,_0x357594))continue;if('attribute'==_0x2ba3eb['type']&&_0x2ba3eb['data']['oldValue']!=_0x357594['data']['oldValue'])continue;if('attribute'==_0x2ba3eb['type']&&_0x56da2a['_suggestionsConversion']['isBlockAttribute'](_0x2ba3eb['data']['key']))continue;if('formatBlock'==_0x2ba3eb['type']){const _0x8ec327=_0x56da2a['editor']['model'],_0x46ccc2=_0x2ba3eb['getContainedElement']();if(_0x46ccc2&&(_0x8ec327['schema']['isObject'](_0x46ccc2)||_0x8ec327['schema']['isLimit'](_0x46ccc2)))continue;}const _0x3d3593=_0x38ac2b['get'](_0x2ba3eb),_0x259239=_0x3acd86['get'](_0x2ba3eb),_0x388f10=_0x3acd86['get'](_0x357594),_0x17ec44=_0x2ba3eb['commentThread']&&_0x2ba3eb['commentThread']['length'],_0x6a870d=_0x357594['commentThread']&&_0x357594['commentThread']['length'];if(!_0x17ec44&&_0x3d3593(_0x388f10,_0x259239))return _0x56da2a['_joinSuggestions'](_0x357594,_0x2ba3eb),_0x3acd86['delete'](_0x2ba3eb),!0x0;if(!_0x6a870d&&_0x3d3593(_0x259239,_0x388f10))return _0x56da2a['_joinSuggestions'](_0x2ba3eb,_0x357594),_0x3acd86['delete'](_0x357594),!0x0;}return!0x1;}}_joinSuggestions(_0x5a6c2c,_0x5ed340){if(_0x5a6c2c['isMultiRange']){for(const _0x31263d of _0x5ed340['getRanges']())_0x5a6c2c['addRange'](_0x31263d);}else{const _0x3f83d5=_0x5ed340['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a6c2c,this['_model']['createRange'](_0x5a6c2c['getFirstRange']()['start'],_0x3f83d5));}_0x5ed340['removeMarkers']();}_getMarkerAnnouncementText(_0x40abb7,_0x3d2da5,_0x2e6468){const _0x2c3a45=_0x40abb7['startsWith']('format')||_0x40abb7['startsWith']('attribute')?'FORMATTING':_0x40abb7['toUpperCase']();return wt(this['editor']['locale'],_0x3d2da5+'_'+_0x2c3a45+'_SUGGESTION_ANNOUNCEMENT',_0x2e6468);}_initAriaMarkerChangeAnnouncements(){const _0x380886=this['editor'];if(!_0x380886['ui'])return;const {ariaLiveAnnouncer:_0x3ed90b}=_0x380886['ui'];it(this['_model'],({left:_0x4831f5,entered:_0x237fa6})=>{for(const _0x33204b of _0x4831f5){const {group:_0x59487d,type:_0x3f1466}=nt(_0x33204b['name']);if('suggestion'===_0x59487d){_0x3ed90b['announce'](this['_getMarkerAnnouncementText'](_0x3f1466,'LEAVE'));break;}}for(const _0x5e5c9a of _0x237fa6){const {group:_0x1660a4,type:_0x1bc788}=nt(_0x5e5c9a['name']);if('suggestion'===_0x1660a4){_0x3ed90b['announce'](this['_getMarkerAnnouncementText'](_0x1bc788,'ENTER',_0x3b1f36(_0x279983)));break;}}});}_processAttributeChanges(_0x2dae9f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x286e3d=this['editor'],_0x43e4bf=_0x286e3d['model']['document']['differ']['getChanges']();if(0x0==_0x43e4bf['length'])return!0x1;const _0x32aeb4=[],_0x13d94b=_0x43e4bf['filter'](_0x683faa=>'attribute'==_0x683faa['type']),_0x4c7f40=_0x43e4bf['filter'](_0x4fc5f1=>'insert'==_0x4fc5f1['type']&&'$text'!=_0x4fc5f1['name']),_0xe20adb=_0x43e4bf['filter'](_0x46509a=>'remove'==_0x46509a['type']&&'$text'!=_0x46509a['name']);for(const _0x548042 of _0x13d94b)_0x32aeb4['push']({'key':_0x548042['attributeKey'],'newValue':_0x548042['attributeNewValue'],'oldValue':_0x548042['attributeOldValue'],'range':_n(_0x548042['range'],_0x286e3d['model'])});for(const _0x336ad2 of _0x4c7f40){const _0x50aa51=_0xe20adb['find'](_0x2e583a=>_0x2e583a['position']['isEqual'](_0x336ad2['position']));_0x50aa51&&_0x32aeb4['push']({'key':on,'newValue':_0x336ad2['name'],'oldValue':_0x50aa51['name'],'range':_0x286e3d['model']['createRangeOn'](_0x336ad2['position']['nodeAfter'])});}return 0x0!=_0x32aeb4['length']&&this['_reduceExistingSuggestions'](_0x2dae9f,_0x32aeb4);}_processAttributeSuggestions(_0x488b70){let _0x19072e=!0x1;const _0x1895be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xa062cd=>_0xa062cd['data']['newRange']&&_0xa062cd['name']['startsWith']('suggestion:attribute:'));for(const _0x1af73f of _0x1895be){const {subType:_0x2ae94f,id:_0x28621e}=nt(_0x1af73f['name']),_0x332de8=_0x2ae94f['split']('|')[0x0];for(const _0x4b5d9a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4b5d9a['id']!=_0x28621e&&'attribute'==_0x4b5d9a['type']&&_0x4b5d9a['data']&&_0x4b5d9a['data']['key']==_0x332de8&&_0x4b5d9a['getFirstRange']()['isIntersecting'](_0x1af73f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4b5d9a,_0x1af73f['data']['newRange'],_0x488b70),_0x19072e=!0x0);}return _0x19072e;}recordAttributeChanges(_0x564482){this['_recordAttributeSuggestions']=!0x0,_0x564482();}_reduceExistingSuggestions(_0x1a8d84,_0x3d827f){if(0x0==_0x3d827f['length'])return!0x1;let _0xc0ee92=!0x1;for(const _0x3dee1d of _0x3d827f){const _0x4aad3b=this['_findSuggestions'](_0x3dee1d['range'],'attribute')['filter'](_0x326582=>!_0x326582['meta']['isNextTo'])['map'](_0x8b230f=>_0x8b230f['suggestion']),_0x2c0373=_0x13b349({'newValue':_0x3dee1d['newValue']});_0x4aad3b['filter'](_0x2eb1f1=>{const [_0x4f87ad,_0x234929]=_0x2eb1f1['subType']['split']('|');return _0x4f87ad==_0x3dee1d['key']&&_0x234929!=_0x2c0373;})['forEach'](_0x3a96d1=>{this['_reduceSuggestionAttributeRange'](_0x3a96d1,_0x3dee1d['range'],_0x1a8d84),_0xc0ee92=!0x0;});}return _0xc0ee92;}_reduceSuggestionAttributeRange(_0x4a9200,_0x11f37f,_0xd0c72e){const _0x4e84e4=_0x4a9200['getFirstRange']()['getDifference'](_0x11f37f);0x0!==_0x4e84e4['length']?0x1!==_0x4e84e4['length']?this['_breakSuggestionMarker'](_0x4a9200,_0x11f37f['start'],_0x11f37f['end']):this['_setSuggestionRange'](_0x4a9200,_0x4e84e4[0x0]):_0xd0c72e['removeMarker'](_0x4a9200['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x32c726){this['_editor']=_0x32c726,this['_model']=_0x32c726['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x4c7d47,_0x18515f,_0x45ec4c,_0x51079a,_0x43845d,_0x35e805,_0x12542d){return new Ot(this['_model'],{'type':_0x4c7d47,'subType':_0x18515f,'id':_0x45ec4c,'originalSuggestionId':_0x12542d,'author':_0x51079a,'creator':_0x51079a,'attributes':_0x43845d,'onAttributesChange':_0x35e805,'onAccept':(..._0xa96f27)=>this['getSuggestionCallback'](_0x4c7d47,_0x18515f,'accept')(..._0xa96f27),'onDiscard':(..._0x26e51e)=>this['getSuggestionCallback'](_0x4c7d47,_0x18515f,'discard')(..._0x26e51e)});}registerCustomCallback(_0x3612e0,_0x5b4aeb,_0x583b22,_0x3b8164){const _0x59de49=_0x3612e0+':'+_0x5b4aeb+':'+_0x583b22;this['_customCallbacks']['set'](_0x59de49,_0x3b8164);}getSuggestionCallback(_0x48447f,_0x1d3b15,_0x5de1df){const _0x50706f=_0x48447f+':'+_0x1d3b15+':'+_0x5de1df;return this['_customCallbacks']['get'](_0x50706f)||this['_defaultCallbacks']['get'](_0x48447f+':'+_0x5de1df);}_registerDefaultCallbacks(){const _0x16bd84=()=>!0x1,_0xb732aa=_0x16d48c=>{_0x16d48c['sort']((_0x4437ee,_0x51a1bb)=>_0x4437ee['start']['isBefore'](_0x51a1bb['start'])?0x1:-0x1),this['_model']['change'](_0xf3a94f=>{for(const _0x43c207 of _0x16d48c){let _0x28cfcc;_0x28cfcc=_0x43c207['end']['isAtEnd']&&_0x43c207['end']['parent']==_0x43c207['start']['nodeAfter']?_0xf3a94f['createSelection'](_0x43c207['start']['nodeAfter'],'on'):_0xf3a94f['createSelection'](_0x43c207),this['_model']['deleteContent'](_0x28cfcc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x734096=(_0x2b458b,_0x3bb8f4)=>{_0x3bb8f4&&this['_model']['change'](_0x4c94d2=>{const {commandName:_0xc1f7b5,commandParams:_0x39583a=[]}=_0x3bb8f4,_0x370ff6=_0x2b458b['map'](_0x4d51a3=>(hn(_0x4d51a3)&&(_0x4d51a3=this['_model']['createRange'](_0x4d51a3['end'])),_0x4d51a3))['filter'](_0x5929c9=>'$graveyard'!==_0x5929c9['root']['rootName']);if(_0x370ff6['length']<0x1)return;const _0xb71be7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x28671d=>at['fromRange'](_0x28671d));_0x4c94d2['setSelection'](_0x370ff6);for(const _0x6ccf50 of this['_editor']['commands']['commands']())_0x6ccf50['refresh']();_0x39583a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc1f7b5,..._0x39583a);const _0x1e0abf=_0xb71be7['filter'](_0x259a0a=>'$graveyard'!=_0x259a0a['root']['rootName']);_0x1e0abf['length']>0x0&&_0x4c94d2['setSelection'](_0x1e0abf);for(const _0x1fd60e of _0xb71be7)_0x1fd60e['detach']();});},_0x2eb0c2=(_0x397f02,_0x32dc96)=>0x1==_0x397f02['length']&&0x1==_0x32dc96['length']&&_0x397f02[0x0]['end']['isEqual'](_0x32dc96[0x0]['start']),_0x320529=(_0x20338b,_0x5742a5,_0x13001d,_0x9eb8e7)=>Ln(_0x20338b,_0x5742a5,_0x13001d,_0x9eb8e7)?[_0x20338b,_0x5742a5]:Ln(_0x5742a5,_0x20338b,_0x9eb8e7,_0x13001d)?[_0x5742a5,_0x20338b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x16bd84),this['_defaultCallbacks']['set']('insertion:discard',_0xb732aa),this['_defaultCallbacks']['set']('insertion:join',_0x2eb0c2),this['_defaultCallbacks']['set']('insertion:chain',_0x320529),this['_defaultCallbacks']['set']('deletion:accept',_0xb732aa),this['_defaultCallbacks']['set']('deletion:discard',_0x16bd84),this['_defaultCallbacks']['set']('deletion:join',_0x2eb0c2),this['_defaultCallbacks']['set']('deletion:chain',_0x320529),this['_defaultCallbacks']['set']('formatInline:accept',_0x734096),this['_defaultCallbacks']['set']('formatInline:discard',_0x16bd84),this['_defaultCallbacks']['set']('formatInline:join',_0x2eb0c2),this['_defaultCallbacks']['set']('formatInline:chain',_0x16bd84),this['_defaultCallbacks']['set']('formatBlock:accept',_0x734096),this['_defaultCallbacks']['set']('formatBlock:discard',_0x16bd84),this['_defaultCallbacks']['set']('formatBlock:join',_0x2eb0c2),this['_defaultCallbacks']['set']('formatBlock:chain',_0x16bd84),this['_defaultCallbacks']['set']('attribute:accept',_0x16bd84),this['_defaultCallbacks']['set']('attribute:discard',(_0x193d25,_0x261437)=>{if(!_0x261437)return;const _0x360ef7=this['_editor']['plugins']['get'](_0x3ffa0d);this['_model']['change'](_0x132531=>{if('$elementName'==_0x261437['key'])for(const _0x349fcf of _0x193d25){const _0x1d2b09=_0x349fcf['start']['nodeAfter'],_0x39d38c=_0x261437['oldValue'];_0x132531['rename'](_0x1d2b09,_0x39d38c);}else{if(_0x360ef7['isBlockAttribute'](_0x261437['key'])){for(const _0x4e37b9 of _0x193d25)void 0x0!==_0x261437['oldValue']?_0x132531['setAttribute'](_0x261437['key'],_0x261437['oldValue'],_0x4e37b9['start']['nodeAfter']):_0x132531['removeAttribute'](_0x261437['key'],_0x4e37b9['start']['nodeAfter']);}else{for(const _0x67eebd of _0x193d25)_0x261437['oldValue']?_0x132531['setAttribute'](_0x261437['key'],_0x261437['oldValue'],_0x67eebd):_0x132531['removeAttribute'](_0x261437['key'],_0x67eebd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2eb0c2);}};function dn(_0x174531,_0x2bf4eb,_0xe2c37f){for(const _0x276c47 of _0x2bf4eb['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x276c47['root']==_0x276c47)return!0x1;if(!_0xe2c37f['containsItem'](_0x276c47))return!0x1;if(_0x174531['isObject'](_0x276c47)||_0x174531['isLimit'](_0x276c47))return!0x0;}return!0x1;}function hn(_0x5bfa99){return _0x5bfa99['end']['parent']==_0x5bfa99['start']['nodeAfter']&&_0x5bfa99['end']['isAtStart'];}function gn(_0x23b5d2,_0x3d0b5e,_0x1bd8a1,_0x16a538){const _0x4a1e98=_0x6f9808=>!_0x6f9808['item']['is']('$textProxy')&&!_0x16a538['isObject'](_0x6f9808['item']),_0xfdcc66=_0x23b5d2['start']['getLastMatchingPosition'](_0x4a1e98),_0x49e37c=_0x23b5d2['end']['getLastMatchingPosition'](_0x4a1e98,{'direction':'backward'});return(!_0x23b5d2['start']['isEqual'](_0xfdcc66)||!_0x23b5d2['end']['isEqual'](_0x49e37c))&&(_0xfdcc66['isBefore'](_0x49e37c)?_0x1bd8a1['updateMarker'](_0x3d0b5e,{'range':_0x1bd8a1['createRange'](_0xfdcc66,_0x49e37c)}):_0x1bd8a1['removeMarker'](_0x3d0b5e),!0x0);}function fn(_0x3f56ef){return _0x13b349(_0x3f56ef);}function mn(_0x39f16f){const _0x25ce56=_0x39f16f['start']['nodeAfter'];return _0x25ce56&&_0x25ce56['is']('element');}function En(_0x2bc30d){return hn(_0x2bc30d)||function(_0x28bf6a){return _0x28bf6a['start']['parent']==_0x28bf6a['end']['nodeBefore']&&_0x28bf6a['start']['isAtEnd'];}(_0x2bc30d);}function Tn(_0x1a8b1a,_0x3722d8){try{const _0x165997=_0x1a8b1a['getRange']();for(const _0x29f15d of _0x3722d8)if(_0x1a8b1a!==_0x29f15d&&_0x165997&&_0x165997['isIntersecting'](_0x29f15d['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x40eee2,_0x48edb7){return null==_0x40eee2['end']['nodeBefore']&&_0x40eee2['end']['parent']==_0x40eee2['start']['nodeAfter']?pn(_0x40eee2['start']['nodeAfter'],_0x48edb7):_0x40eee2;}function pn(_0x305430,_0x565bad){const _0x48e716=_0x565bad['schema']['isObject'](_0x305430)||_0x565bad['schema']['isSelectable'](_0x305430);return _0x565bad['createRange'](_0x565bad['createPositionAt'](_0x305430,'before'),_0x48e716?_0x565bad['createPositionAfter'](_0x305430):_0x565bad['createPositionAt'](_0x305430,'end'));}function Ln(_0x158362,_0x4e0161,_0xf1ddee,_0x16b84f){return!!In(_0x158362,_0x4e0161)&&_0xf1ddee['end']['isEqual'](_0x16b84f['start']);}function In(_0x1bb003,_0x19ade8){if(!_0x1bb003['_isDataLoaded']||!_0x19ade8['_isDataLoaded'])return!0x1;const _0x4a7a0e=new Set(Object['keys'](_0x1bb003['attributes'])),_0x5a480a=new Set(Object['keys'](_0x19ade8['attributes']));if(_0x4a7a0e['delete']('groupId'),_0x5a480a['delete']('groupId'),0x0==_0x4a7a0e['size']&&0x0==_0x5a480a['size'])return!0x0;if(_0x4a7a0e['size']!=_0x5a480a['size'])return!0x1;const _0x5be551={..._0x1bb003['attributes']},_0x486280={..._0x19ade8['attributes']};return delete _0x5be551['groupId'],delete _0x486280['groupId'],JSON['stringify'](_0x5be551)==JSON['stringify'](_0x486280);}function An(_0x30a7d0,_0x593bc7){const _0x32429a=bn(_0x30a7d0['attributes']),_0x3a91f8=bn(_0x593bc7);if(!_0x30a7d0['_isDataLoaded'])return!0x1;if(!ut(_0x32429a['@ai'],_0x3a91f8['@ai']))return!0x1;for(const _0x188dc4 of Object['keys'](_0x3a91f8))if(!ut(_0x32429a[_0x188dc4],_0x3a91f8[_0x188dc4]))return!0x1;return!0x0;}function bn(_0x1f8f46){const _0x4664ca=Object['assign']({},_0x1f8f46);return delete _0x4664ca['skipNestingCheck'],delete _0x4664ca['tablePasteChainId'],_0x4664ca;}function Cn(_0x57f51a){return _0x57f51a['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x57c80d();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x2f45d0,_0x5b5084,_0xd681b1,_0x213949){super(),this['model']=_0x5b5084,this['view']=_0xd681b1,this['commentThreadController']=_0x213949,this['_editor']=_0x2f45d0,this['_acceptCommand']=_0x2f45d0['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2f45d0['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x105774,_0xa89c7a)=>_0x105774||_0xa89c7a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x10e897=>_0x10e897&&this['_editor']['model']['canEditAt'](_0x5b5084['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x206d3d=>_0x206d3d&&this['_editor']['model']['canEditAt'](_0x5b5084['getRanges']())),this['_pendingAction']=null,_0xd681b1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xd681b1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xd681b1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xd681b1,'change:isDirty',()=>{_0xd681b1['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}acceptSuggestion(){this['_acceptCommand']['execute'](this['model']['id']);}discardSuggestion(){this['_discardCommand']['execute'](this['model']['id']);}destroy(){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}_setPendingAction(){const _0x25b299=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x25b299);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x436391{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5df824,_0x5d2eec,_0x536b97,_0x4d1a5e){super(_0x5df824),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f34c3(_0x5df824,wt(_0x5df824,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d2eec['authoredAt']),this['bind']('authoredAt')['to'](_0x5d2eec),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5d2eec,'authoredAt',this,'descriptionParts',(_0x3a2ad4,_0x183c1e,_0x6c8077)=>{const _0x31ae28=_0x6c8077['map'](_0xa4a27c=>At(_0xa4a27c['content']))['join']('.\x20')+'.',_0x204901=_0x5d2eec['aiSource']&&'author'===_0x4d1a5e['showAISource']?_0x4d1a5e['aiAuthor']['name']:_0x5d2eec['author']['name'],_0x200365=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3a2ad4-0x1,_0x204901,_0x183c1e?_0x4d1a5e['formatDateTime'](_0x183c1e):'',new DOMParser()['parseFromString'](_0x232c5d(_0x31ae28),'text/html')['body']['textContent']]);return _0x5d2eec['aiSource']&&'pill'===_0x4d1a5e['showAISource']?_0x200365+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x200365;}),this['focusables']=new _0x32fe5b(),this['focusTracker']=new _0x1bbeaa(),this['keystrokes']=new _0x43236e(),this['focusCycler']=new _0x499549({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x18fe93=>_0x18fe93['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5d2eec,this['_localUser']=_0x536b97,this['_config']=_0x4d1a5e,_0x4d1a5e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),et(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3e9c8b}=this['_config'];this['commentsListView']=new _0x3e9c8b(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x1d05ec=>_0x1d05ec+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5617ee,_0x54dbda)=>_0x5617ee||!!_0x54dbda);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x144c55}=this['_config'],_0x3d7d99=new _0x144c55(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1a5d9a=_0x3d7d99['commentInputView'];return _0x3d7d99['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1a5d9a,'value',(_0x54a659,_0x426804,_0x38fd90)=>!!_0x38fd90||_0x54a659&&!_0x426804),_0x1a5d9a['on']('submit',(_0x5cc506,_0x1a6faa)=>{this['fire']('addComment',_0x1a6faa),_0x1a5d9a['editor']['setData']('');}),_0x1a5d9a['on']('cancel',()=>this['focus']()),_0x1a5d9a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3d7d99;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x46907d,_0x1815fe,_0x4772e5,_0x1139d3){super(_0x46907d,_0x1815fe,_0x4772e5,_0x1139d3),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x31ac36=>_0x31ac36&&_0x31ac36[0x0]?_0x31ac36[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x591fa0,_0x33ea17)=>{let _0x1483d9='';for(const _0x5c72a9 of _0x591fa0)_0x1483d9+='<p>'+At(_0x5c72a9['content'],_0x5c72a9['color'])+'</p>';return _0x33ea17?_0x1483d9:st(_0x1483d9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x1139d3['SuggestionView'](_0x46907d,_0x1815fe,{'formatDateTime':_0x1139d3['formatDateTime'],'showAISource':_0x1139d3['showAISource'],'aiAuthor':_0x1139d3['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['acceptButton']['bind']('tooltip')['to'](this,'canAccept',_0x469ca2=>!!_0x469ca2||wt(_0x46907d,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x305dbb=>!!_0x305dbb||wt(_0x46907d,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x1a7615=this['bindTemplate'],_0x59956b=[this['suggestionView']];return this['commentsListView']&&_0x59956b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x59956b['push'](this['commentThreadInputView']),_0x59956b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1a7615['if']('isActive','ck-suggestion-wrapper--active'),_0x1a7615['to']('type',_0xf37648=>'ck-suggestion-'+_0xf37648),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1a7615['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x59956b};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Sn=class extends _0x436391{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x41a6ef,_0x32180d,_0x36f89f){super(_0x41a6ef),this['_model']=_0x32180d,this['_config']=_0x36f89f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x32180d),this['acceptButton']=this['_createButton'](wt(_0x41a6ef,'Accept\x20suggestion'),_0x535f1a,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x41a6ef,'Discard\x20suggestion'),_0x26c761,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x31e67c=!!_0x32180d['aiSource']&&'author'===_0x36f89f['showAISource'],_0x18545d=_0x31e67c?this['_createAIUser'](_0x36f89f['aiAuthor']):_0x32180d['author'],_0x123ee6=_0x31e67c&&!_0x36f89f['aiAuthor']['avatar']?_0x217487:void 0x0;this['userView']=new _0x2530c7(_0x41a6ef,_0x18545d,this['getUserViewNotificationText'](),_0x123ee6),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32fe5b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bbeaa(),this['keystrokes']=new _0x43236e(),this['focusCycler']=new _0x499549({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xace067=>_0xace067['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xd2d834=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xd2d834['innerHTML']=_0x232c5d(this['description']),this['on']('change:description',(_0x443241,_0x3a245c,_0x256009)=>{_0xd2d834['innerHTML']=_0x232c5d(_0x256009);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x39880d=this['bindTemplate'],_0x34b226=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x39880d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x39880d['to']('authoredAt',_0x42b298=>this['_config']['formatDateTime'](_0x42b298))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x34b226['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x3bfc64=new _0x3d0616(this['locale']);_0x3bfc64['set']({'icon':_0x3e8ac0,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x34b226['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x3bfc64]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x34b226}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):wt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?wt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):wt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0xbe8527){return new _0x3e3758({'id':'ck-ai-author','name':_0xbe8527['name'],'avatar':_0xbe8527['avatar'],'color':new _0x59c151(0x0)});}_createButton(_0x54de41,_0x2c5182,_0x525b3b,_0xfa1205,_0x3aff9d){const _0x2b39a6=new _0x27d2f1(this['locale']);return _0x2b39a6['set']({'label':_0x54de41,'icon':_0x2c5182,'tooltip':!0x0,'tooltipPosition':_0x3aff9d}),_0x2b39a6['extendTemplate']({'attributes':{'class':_0x525b3b}}),_0x2b39a6['on']('execute',()=>{this['fire'](_0xfa1205,this['_model']['id']);}),_0x2b39a6;}_setupKeyboardNavigation(){const _0x1901da=this['element'];this['keystrokes']['listenTo'](_0x1901da);for(const _0x382ca2 of this['focusables'])this['focusTracker']['add'](_0x382ca2['element']),this['keystrokes']['listenTo'](_0x382ca2['element']);this['keystrokes']['set']('enter',(_0x12ad8d,_0x44df6f)=>{_0x1901da===_0x12ad8d['target']&&(this['focusCycler']['focusFirst'](),_0x44df6f());}),this['keystrokes']['set']('esc',(_0x25d478,_0x490cfb)=>{_0x1901da!==_0x25d478['target']&&(this['focus'](),_0x490cfb());});}},Mn=class extends _0x17c3d7{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x15dcb3,_0x3e91e1,_0x40bec5,_0xdc7e83];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a1938){super(_0x7a1938),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x37afb2=this['editor']['config'];_0x37afb2['define']('trackChanges.SuggestionThreadView',yn),_0x37afb2['define']('trackChanges.SuggestionView',Sn),_0x37afb2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x37afb2['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x551441,_0x4f011c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x420a2e,_0x39eee6]of this['_handleControllerBuffer']){const _0x16e68e=this['_suggestionToController']['has'](_0x420a2e);_0x16e68e||_0x39eee6?_0x16e68e&&_0x39eee6&&this['_destroyController'](_0x420a2e):this['_initializeController'](_0x420a2e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0xdc7e83)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x551441,_0x4f011c);}init(){const _0x3e03f6=this['editor'],_0x28f11f=_0x3e03f6['plugins']['get'](ln),_0xaada3f=_0x3e03f6['plugins']['get'](_0x40bec5),_0x2aca69=_0x3e03f6['plugins']['get'](_0xdc7e83),_0x423f34=_0x3e03f6['plugins']['get'](_0x3e91e1);this['_addUIComponentsToFactory'](),_0x2aca69['addSourceCollector'](()=>{const _0xc1e936=[];for(const [_0x4faade,_0x47c228]of Array['from'](this['_suggestionToController'])){const _0x4795cc=_0x4faade['getAllAdjacentSuggestions'](),_0x3dfa4b=[];for(const _0x35f36a of _0x4795cc){if(!_0x35f36a['isInContent'])continue;if(_0x35f36a['isMultiRange']){_0x3dfa4b['push'](..._0x35f36a['getRanges']());continue;}const _0x28616e=_0x35f36a['getFirstRange']();if(_0x3dfa4b['length']>0x0){const _0x177de5=_0x3dfa4b[0x0]['getJoined'](_0x28616e);if(_0x177de5){_0x3dfa4b[0x0]=_0x177de5;continue;}}_0x3dfa4b['push'](_0x28616e);}_0xc1e936['push']([_0x47c228['view'],_0x3dfa4b]);}return _0xc1e936;}),this['listenTo'](_0x28f11f,'suggestionLoaded',(_0xfc755c,_0x16d7d7)=>{this['listenTo'](_0x16d7d7,'change:previous',(_0x405ff9,_0x2c3d6f,_0x45e564,_0x483aa7)=>{_0x16d7d7['isInContent']&&(null==_0x45e564?(this['_updateController'](_0x483aa7['head']),this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x1)):(this['_updateController'](_0x45e564['head']),null==_0x483aa7&&this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x0)));}),null!==_0x16d7d7['previous']?this['_updateController'](_0x16d7d7['head']):this['_handleSuggestionControllerDelayed'](_0x16d7d7,!0x1);}),this['listenTo'](_0x28f11f,'suggestionUnloaded',(_0x19d043,_0x51b30a,_0x27c09f)=>{this['stopListening'](_0x51b30a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x51b30a),this['_suggestionToController']['has'](_0x51b30a)&&this['_destroyController'](_0x51b30a),_0x27c09f&&this['_updateController'](_0x27c09f['head']);}),this['listenTo'](_0x28f11f,'suggestionChanged',(_0x3805b7,_0x253648)=>{this['_updateController'](_0x253648);}),this['listenTo'](_0xaada3f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x423f34,'addComment',(_0x1ebbf7,{threadId:_0x4cf87c,isFromAdapter:_0x448e80})=>{if(_0x448e80||!_0x28f11f['hasSuggestion'](_0x4cf87c))return;const _0x19d153=_0x28f11f['getSuggestion'](_0x4cf87c);this['_suggestionToController']['get'](_0x19d153)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x383969=[this['editor']];for(const _0x51a696 of _0x383969){let _0x1302b6;for(const _0x517fa1 in _0x51a696){const _0x2de491=_0x517fa1,_0x472cd3=_0x51a696[_0x2de491];if('trackChangesLicenseKeyValid'==_0x472cd3||'trackChangesLicenseKeyInvalid'==_0x472cd3||'trackChangesLicenseKeyExpired'==_0x472cd3||'trackChangesLicenseKeyDomainLimit'==_0x472cd3||'trackChangesLicenseKeyNotAllowed'==_0x472cd3||'trackChangesLicenseKeyEvaluationLimit'==_0x472cd3||'trackChangesLicenseKeyUsageLimit'==_0x472cd3){delete _0x51a696[_0x2de491],_0x1302b6=_0x472cd3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1302b6&&_0x51a696['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1302b6&&_0x51a696['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1302b6&&_0x51a696['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1302b6&&_0x51a696['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x5603c4){const _0x1ad592=this['_suggestionToController']['get'](_0x5603c4);return _0x1ad592&&this['editor']['plugins']['get'](_0x40bec5)['getByInnerView'](_0x1ad592['view'])||null;}getSuggestionForAnnotation(_0x42c926){const _0x2ce6c5=this['_viewToController']['get'](_0x42c926['innerView']);return _0x2ce6c5?_0x2ce6c5['model']:null;}_refreshActiveMarkers(){const _0x114145=this['editor']['plugins']['get'](_0x40bec5),_0x3e4c7e=this['editor']['plugins']['get'](ln),_0x1e49ee=Array['from'](_0x114145['activeAnnotations'],_0x15c3a0=>_0x15c3a0['innerView'])['filter'](_0x2fa9f5=>this['_viewToController']['has'](_0x2fa9f5)),_0x1c15a4=[];for(const _0x45e848 of _0x1e49ee){const _0x3707ec=this['_viewToController']['get'](_0x45e848)['model']['getAllAdjacentSuggestions']();_0x1c15a4['push'](..._0x3707ec['reduce']((_0x30a898,_0x29d06f)=>[..._0x30a898,..._0x29d06f['getMarkerNames']()],[]));}_0x3e4c7e['activeMarkers']=_0x1c15a4;}_addUIComponentsToFactory(){const _0x473a2e=this['editor'],_0x3795bd=_0x473a2e['locale'],_0x52a26c=wt(_0x3795bd,'Track\x20changes'),_0x16aa59=new _0xdb857c([{'type':'switchbutton','model':new _0x13e951({'withText':!0x0,'isToggleable':!0x0,'label':_0x52a26c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x473a2e['plugins']['has']('TrackChangesPreview')&&_0x16aa59['addMany']([{'type':'separator'},{'type':'button','model':new _0x13e951({'withText':!0x0,'label':wt(_0x3795bd,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2af3d3 of _0x16aa59)if(On(_0x2af3d3)){const _0x20a925=_0x473a2e['commands']['get'](_0x2af3d3['model']['commandName']);_0x2af3d3['model']['bind']('isOn','isEnabled')['to'](_0x20a925,'value','isEnabled');}_0x473a2e['ui']['componentFactory']['add']('trackChanges',_0x41c8b2=>this['_createToolbarButton'](_0x41c8b2,_0x16aa59,_0x52a26c)),_0x473a2e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x30fd60=>this['_createMenuBarMenu'](_0x30fd60,_0x16aa59,_0x52a26c));}_createToolbarButton(_0x1bfae4,_0x249d66,_0x266d66){const _0x4229d5=_0x29baa9(_0x1bfae4,_0x168f8e),_0x33649e=this['editor']['commands']['get']('trackChanges');_0x4229d5['buttonView']['set']({'tooltip':_0x266d66,'label':_0x266d66,'icon':_0x17cf87}),_0x4229d5['buttonView']['bind']('isOn')['to'](_0x33649e,'value'),_0x4229d5['buttonView']['on']('execute',()=>{_0x33649e['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a2abb(_0x4229d5,_0x249d66,{'role':'menu'});const _0x306b1e=[];for(const _0x34c809 of _0x249d66)On(_0x34c809)&&_0x306b1e['push'](this['editor']['commands']['get'](_0x34c809['model']['commandName']));const _0x504217=_0x4229d5['buttonView'];return _0x504217['actionView']['unbind']('isEnabled'),_0x504217['arrowView']['unbind']('isEnabled'),_0x504217['actionView']['bind']('isEnabled')['to'](_0x33649e,'isEnabled'),_0x504217['arrowView']['bind']('isEnabled')['toMany'](_0x306b1e,'isEnabled',(..._0x40e5a3)=>_0x40e5a3['some'](_0x579f3e=>_0x579f3e)),_0x4229d5['on']('execute',_0x1fc1cb=>{this['editor']['execute'](_0x1fc1cb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4229d5;}_createMenuBarMenu(_0x3904ed,_0x465d3f,_0x7750aa){const _0x2c5462=new _0x2da019(_0x3904ed),_0x2ec251=this['editor']['commands']['get']('trackChanges');_0x2c5462['buttonView']['set']({'label':_0x7750aa,'icon':_0x17cf87});const _0xd7f3a7=new _0x19fe0d(_0x3904ed);for(const _0x46c342 of _0x465d3f){if('separator'==_0x46c342['type']){_0xd7f3a7['items']['add'](new _0x1e2a38(_0x3904ed));continue;}const _0x34c06a=new _0x219c83(_0x3904ed,_0x2c5462),_0x21d2b0=new _0x5b55d0(_0x3904ed),_0x515292=_0x46c342['model'];_0x21d2b0['bind'](...Object['keys'](_0x515292))['to'](_0x515292),_0x21d2b0['delegate']('execute')['to'](_0x2c5462),_0x21d2b0['on']('execute',()=>{this['editor']['execute'](_0x515292['commandName']),this['editor']['editing']['view']['focus']();}),_0x34c06a['children']['add'](_0x21d2b0),_0xd7f3a7['items']['add'](_0x34c06a);}return _0x2c5462['bind']('isEnabled')['to'](_0x2ec251,'isEnabled'),_0x2c5462['panelView']['children']['add'](_0xd7f3a7),_0x2c5462;}_initializeController(_0x3f7fdb){const _0x59cfbb=this['editor'],_0x4a0f9e=_0x59cfbb['config'],_0x15d880=_0x59cfbb['plugins']['get'](_0x40bec5),_0xdc5e57=_0x59cfbb['plugins']['get'](_0x3e91e1),_0x5007a9=_0x59cfbb['plugins']['get'](_0xdc7e83),_0x1f3f74=_0x59cfbb['plugins']['get'](_0x15dcb3)['me'],_0x435fe8=_0x4a0f9e['get']('trackChanges')['SuggestionThreadView'],_0x287f40=_0x4a0f9e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1b3a24,CommentThreadInputView:_0x37c15e}=_0x59cfbb['plugins']['get']('CommentsUI');let _0x298d4b,_0x12d3d6,_0x258ba8;this['_annotationViews']['has'](_0x3f7fdb['id'])?(_0x12d3d6=this['_annotationViews']['get'](_0x3f7fdb['id']),_0x298d4b=_0x12d3d6['mainView']):(_0x298d4b=new _0x435fe8(_0x59cfbb['locale'],_0x3f7fdb,_0x1f3f74,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4a0f9e['get']('comments.editorConfig'),'licenseKey':_0x4a0f9e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4a0f9e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4a0f9e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4a0f9e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x33ae88(_0x4a0f9e['get']('locale'),_0x59cfbb['locale']),'CommentView':_0x4a0f9e['get']('comments')['CommentView'],'CommentsListView':_0x1b3a24,'CommentThreadInputView':_0x37c15e,'SuggestionView':_0x287f40,'showAISource':_0x4a0f9e['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x4a0f9e['get']('trackChanges.aiAuthor'),'name':_0x4a0f9e['get']('trackChanges.aiAuthor')?.['name']||wt(_0x59cfbb['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x298d4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x59cfbb['editing']['view']['focus']();}),_0x298d4b['suggestionView']['discardButton']['on']('execute',()=>{_0x59cfbb['editing']['view']['focus']();}),_0x12d3d6=_0x15d880['createAnnotationView'](this['editor']['locale'],_0x298d4b),_0x12d3d6['bind']('isDirty')['to'](_0x298d4b,'isDirty'),_0x12d3d6['bind']('length')['to'](_0x298d4b),_0x12d3d6['bind']('type')['to'](_0x298d4b,'type',_0x2ffb7d=>'suggestion-'+_0x2ffb7d),_0x298d4b['on']('escape',()=>{_0x258ba8['fire']('escape');}),this['_annotationViews']['set'](_0x3f7fdb['id'],_0x12d3d6));const _0x332d45=_0xdc5e57['createCommentThreadController'](_0x3f7fdb['commentThread'],_0x298d4b),_0x4fcdb9=new Rn(_0x59cfbb,_0x3f7fdb,_0x298d4b,_0x332d45),_0x5e16ea=_0x3f7fdb['getAllAdjacentSuggestions']()['filter'](_0x3ddb79=>_0x3ddb79['isInContent']);_0x298d4b['descriptionParts']=_0x59cfbb['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0x5e16ea),this['_suggestionToController']['set'](_0x3f7fdb,_0x4fcdb9),this['_viewToController']['set'](_0x298d4b,_0x4fcdb9);const _0x2a92ed=()=>{const _0x3cb603=[],_0x27a53e=_0x3f7fdb['getAllAdjacentSuggestions']()['filter'](_0x231e7c=>_0x231e7c['isInContent']);for(const _0xd1ee4c of _0x27a53e)_0x3cb603['push'](..._0xd1ee4c['getMarkers']());return _0x21c956(_0x59cfbb['editing'],_0x3cb603);};_0x258ba8=_0x15d880['createAnnotation']({'view':_0x12d3d6,'target':_0x2a92ed,'type':()=>'suggestion-'+_0x4fcdb9['view']['type'],'isVisible':!!_0x2a92ed()}),_0xdc5e57['_bindAnnotationToEditors'](_0x298d4b,_0x258ba8),_0x15d880['add'](_0x258ba8),_0x5007a9['registerAnnotation'](_0x258ba8);}_destroyController(_0xdef6c2){const _0x4818d9=this['editor']['plugins']['get'](_0x3e91e1),_0x297ccd=this['editor']['plugins']['get'](_0x40bec5),_0x13b01f=this['_suggestionToController']['get'](_0xdef6c2),_0x21411=_0x13b01f['view'],_0x33e92b=_0x297ccd['getByInnerView'](_0x21411);_0x4818d9['_unbindEditors'](_0x21411),_0x33e92b&&_0x297ccd['remove'](_0x33e92b),this['_suggestionToController']['delete'](_0xdef6c2),this['_viewToController']['delete'](_0x21411),_0x13b01f['destroy']();}_updateController(_0x348f4c){if(!_0x348f4c['isInContent']||!this['_suggestionToController']['has'](_0x348f4c))return;const _0x16c583=this['editor']['plugins']['get'](ln),_0x4b2c30=this['_suggestionToController']['get'](_0x348f4c),_0x5876e9=_0x348f4c['getAllAdjacentSuggestions']();_0x4b2c30['view']['descriptionParts']=_0x16c583['descriptionFactory']['getDescriptions'](_0x5876e9);}destroy(){for(const _0x218bc7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x218bc7);for(const _0x344d31 of this['_annotationViews']['values']())_0x344d31['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0x308abc){return'model'in _0x308abc;}var wn=class extends _0x17c3d7{static get requires(){return[ln,Mn,_0xa8cd16];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3b3877){this['editor']['plugins']['get'](ln)['adapter']=_0x3b3877;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x4f60db){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x4f60db);}getSuggestions({skipNotAttached:_0x495dd0=!0x1,toJSON:_0x3e7c5f=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x495dd0,'toJSON':_0x3e7c5f});}getSuggestion(_0x54996){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x54996);}};const Bn=['Pagination'];var Fn=class extends _0x17c3d7{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x19ce10=this['editor'];if(_0x19ce10['config']['define']('trackChangesData.editorCreator',_0x992ae1=>{const _0x154dce=_0x19ce10['model']['document']['getRootNames']()['reduce']((_0x525bac,_0x7ecedc)=>(_0x525bac[_0x7ecedc]='',_0x525bac),{});return _0x19ce10['constructor']['create'](_0x154dce,_0x992ae1);}),'function'!=typeof _0x19ce10['config']['get']('trackChangesData')['editorCreator'])throw new _0x1539e5('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x3b91c5){return Un(this['editor'],!0x0,_0x3b91c5);}getDataWithDiscardedSuggestions(_0x19f2fe){return Un(this['editor'],!0x1,_0x19f2fe);}},vn=class extends _0x17c3d7{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ca8e8){super(_0x4ca8e8),this['result']='end',_0x4ca8e8['editing']['view']['_overlayModeHint']='auto',_0x4ca8e8['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Dn(_0x191e7b){return void 0x0!==_0x191e7b['getRootsAttributes'];}async function Un(_0x4f1455,_0x3e137a,_0x283b61){const _0x30fa2c=tt(_0x4f1455,Bn);if(_0x30fa2c['plugins']['push'](ln,vn),Dn(_0x4f1455)){_0x30fa2c['roots']=Object['create'](null);for(const _0x5c1bc4 of _0x4f1455['model']['document']['getRootNames']())_0x30fa2c['roots'][_0x5c1bc4]={'modelAttributes':_0x4f1455['getRootAttributes'](_0x5c1bc4)};}const _0x12337e=document['createDocumentFragment'](),_0x55c148=_0x4f1455['config']['get']('trackChangesData')['editorCreator'],_0xa6a610=await _0x55c148(_0x30fa2c,()=>function(_0x43dc6d){const _0x4af9d7=document['createElement']('div');return _0x43dc6d['appendChild'](_0x4af9d7),_0x4af9d7;}(_0x12337e));!function(_0x1d4a58,_0x3d30e7){const _0x42bf09=_0x1d4a58['model']['document']['getRootNames']()['reduce']((_0x51a926,_0x49d89c)=>(_0x51a926[_0x49d89c]=_0x1d4a58['data']['get']({'rootName':_0x49d89c}),_0x51a926),{}),_0x3ef437=_0x1d4a58['plugins']['get']('Users')['users']['map'](_0x1e6b7d=>({'id':_0x1e6b7d['id'],'name':_0x1e6b7d['name']})),_0x3de8be=_0x1d4a58['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xef6d33=_0x1d4a58['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e2dca=_0x3d30e7['plugins']['get']('Users'),_0xbc0b99=_0x3d30e7['plugins']['get']('TrackChangesEditing'),_0xc36965=_0x3d30e7['plugins']['get']('CommentsRepository');for(const _0x15f79d of _0xc36965['getCommentThreads']())_0x15f79d['remove']();for(const _0x41b24a of _0x3ef437)_0x2e2dca['getUser'](_0x41b24a['id'])||_0x2e2dca['addUser'](_0x41b24a);_0x2e2dca['me']||_0x2e2dca['useAnonymousUser']();for(const _0x4ca40c of _0xef6d33)_0xc36965['addCommentThread'](_0x4ca40c);for(const _0x4bc6b7 of _0x3de8be)_0xbc0b99['addSuggestionData'](_0x4bc6b7);_0x3d30e7['data']['set'](_0x42bf09);}(_0x4f1455,_0xa6a610),_0xa6a610['execute'](_0x3e137a?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f3d76=Dn(_0xa6a610)?_0xa6a610['getFullData'](_0x283b61):_0xa6a610['data']['get'](_0x283b61);return await _0xa6a610['destroy'](),_0x4f3d76;}var Pn=class extends _0x436391{options;constructor(_0x2f17ab,_0x3c8b9f){super(_0x2f17ab),this['options']=_0x3c8b9f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x446d51,_0x31ef26){if(!this['element'])return;const _0x25be99=[];for(const [_0x4b5c03,_0x1e00b1]of _0x446d51){const _0x38ff7f=document['createElement']('div');_0x38ff7f['setAttribute']('data-ck-root-name',_0x4b5c03),_0x38ff7f['className']=_0x1e00b1['classes']+'\x20ck-track-changes-preview__root-container',_0x38ff7f['innerHTML']=_0x232c5d(_0x1e00b1['content']),_0x25be99['push'](_0x38ff7f);}_0x31ef26(this['element'],_0x25be99),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x4a2133{constructor(_0x250834){super(_0x250834),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x299de2=this['editor'],_0x5b9790=_0x299de2['locale'],_0x2ee3a3=_0x299de2['plugins']['get']('Dialog');let _0xa5b768;const _0x8c7367=function(_0x30438d){const _0x125076={};if('editables'in _0x30438d['ui']['view']){for(const [_0x5b8859,_0x13a5a4]of Object['entries'](_0x30438d['ui']['view']['editables']))_0x125076[_0x5b8859]=_0x13a5a4['element'];}else _0x125076[_0x30438d['model']['document']['getRootNames']()[0x0]]=_0x30438d['ui']['view']['editable']['element'];return _0x125076;}(_0x299de2),_0x3fea58=function(_0x34d482){let _0x172283=0x0;for(const _0x4434ac of Object['values'](_0x34d482))_0x172283=Math['max'](_0x172283,_0x4434ac['getBoundingClientRect']()['width']);let _0x56a16f=0x0;for(const _0x984917 of Object['values'](_0x34d482))_0x56a16f+=_0x984917['getBoundingClientRect']()['height'];const _0x10109e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x172283,'height':Math['min'](_0x56a16f,_0x10109e)};}(_0x8c7367);_0x2ee3a3['show']({'id':'finalContentPreview','title':wt(_0x5b9790,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x5b9790,{'dialogRects':_0x3fea58}),'onHide':()=>{_0xa5b768['destroy']();},'onShow':()=>{_0x299de2['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x40766e=>{const _0x1b436d=this['_standarizeRootsData'](_0x40766e,_0x299de2,_0x8c7367);_0x2ee3a3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1b436d,_0x299de2['config']['get']('trackChanges.preview.renderFunction'));}),_0xa5b768=new _0x1e4244(_0x5b9790,[_0x2ee3a3['view']]),_0xa5b768['attachToDom'](_0x299de2['ui']['view']['body']['mountTarget']),_0xa5b768['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x299de2['once']('destroy',()=>{_0xa5b768['destroy']();});const _0x20535d=_0x2ee3a3['view']['headerView']['class'];_0x2ee3a3['view']['headerView']['class']=_0x20535d?_0x20535d+'\x20ck-reset_all':'ck-reset_all',_0x2ee3a3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2ee3a3['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bbf4d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3b4b9a=_0x5bbf4d['previewMode'],_0x187afa={};if('$labels'===_0x3b4b9a){for(const _0x1de7aa of _0x5bbf4d['getMergeFieldsIds']())_0x187afa[_0x1de7aa]=_0x5bbf4d['getLabel'](_0x1de7aa)||_0x1de7aa;}else{const _0x53bb17='$defaultValues'===_0x3b4b9a?_0x5bbf4d['getDefaultValues']():_0x5bbf4d['getDataSetValues'](_0x3b4b9a,!0x0);for(const _0x149df3 of Object['entries'](_0x53bb17)){const [_0x575a5c,_0x175c45]=_0x149df3;_0x187afa[_0x575a5c]=null!==_0x175c45?_0x175c45:_0x5bbf4d['getLabel'](_0x575a5c)||_0x575a5c;}}return{'mergeFieldsData':_0x187afa};}_standarizeRootsData(_0x99c9be,_0x358a60,_0x4ed840){let _0x2439fb;_0x2439fb='string'==typeof _0x99c9be?{[_0x358a60['model']['document']['getRootNames']()[0x0]]:_0x99c9be}:_0x99c9be;const _0x291395=this['_fixMediaEmbeds'](_0x2439fb,_0x358a60);return function(_0xbd4bcb,_0x4dea37){for(const [_0x4aba94,_0x5ee636]of _0xbd4bcb)_0x5ee636['classes']=_0x4dea37[_0x4aba94]['classList']['value']['replace']('ck-focused','');return _0xbd4bcb;}(this['_sortRoots'](_0x358a60)['reduce']((_0xc84b38,_0x1002a2)=>(_0xc84b38['push']([_0x1002a2,{'content':_0x291395[_0x1002a2],'classes':''}]),_0xc84b38),[]),_0x4ed840);}['_fixMediaEmbeds'](_0x5e0148,_0x350733){if(!_0x350733['plugins']['has']('MediaEmbedEditing'))return _0x5e0148;const _0x409e20=_0x350733['plugins']['get']('MediaEmbedEditing');for(const [_0x446023,_0x2d3ab0]of Object['entries'](_0x5e0148)){const _0x2368db=document['createElement']('div');_0x2368db['innerHTML']=_0x232c5d(_0x2d3ab0),_0x2368db['querySelectorAll']('figure.media')['forEach'](_0x4abbd1=>{const _0x266250=_0x4abbd1['querySelector']('oembed');if(_0x266250){const _0x4317a5=_0x266250['getAttribute']('url');if(_0x4317a5){const _0x5060bd=_0x409e20['registry']['getMediaViewElement'](new ct(_0x350733['editing']['view']['document']),_0x4317a5,{'elementName':'','renderForEditingView':!0x0}),_0x5ca56d=document['createElement']('div');_0x5ca56d['classList']['add']('ck-media__wrapper'),_0x5060bd['render'](_0x5ca56d,_0x350733['editing']['view']['domConverter']),_0x266250['replaceWith'](_0x5ca56d);}}}),_0x5e0148[_0x446023]=_0x2368db['innerHTML'];}return _0x5e0148;}_sortRoots(_0x5ab2e2){if(!function(_0x3fb462){return void 0x0!==_0x3fb462['getRootsAttributes'];}(_0x5ab2e2))return _0x5ab2e2['model']['document']['getRootNames']();const _0x1b10ea=[],_0x3c9bc9=new Map();for(const _0x4d4bff of _0x5ab2e2['model']['document']['getRootNames']()){const _0x4987d5=_0x5ab2e2['editing']['view']['getDomRoot'](_0x4d4bff)['getClientRects']()['item'](0x0);_0x1b10ea['push'](_0x4d4bff),_0x3c9bc9['set'](_0x4d4bff,_0x4987d5);}return _0x1b10ea['sort']((_0x7caee9,_0x12784e)=>{const _0x4b3dd4=_0x3c9bc9['get'](_0x7caee9),_0x4385b5=_0x3c9bc9['get'](_0x12784e);return _0x4b3dd4['y']-_0x4385b5['y']||_0x4b3dd4['x']-_0x4385b5['x'];}),_0x1b10ea;}},Gn=class extends _0x17c3d7{static get requires(){return[Fn,_0x39c4a7];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d2aa6){super(_0x2d2aa6),_0x2d2aa6['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x2d2aa6['config']['define']('trackChanges.preview.renderFunction',(_0x48ca15,_0x513185)=>{for(const _0x10c55d of _0x513185)_0x48ca15['appendChild'](_0x10c55d);});}};export{Lt as AcceptSuggestionCommand,Nn as BaseSuggestionThreadView,It as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,St as ExecuteOnSelectedSuggestionsCommand,xn as PreviewFinalContentCommand,Ot as Suggestion,Bt as SuggestionDescriptionFactory,yn as SuggestionThreadView,Sn as SuggestionView,wn as TrackChanges,pt as TrackChangesCommand,Fn as TrackChangesData,vn as TrackChangesDataGetter,ln as TrackChangesEditing,Gn as TrackChangesPreview,Mn as TrackChangesUI};
|