@ckeditor/ckeditor5-track-changes 49.0.0-alpha.0 → 49.0.0-alpha.10
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/dist/ui/view/suggestionview.d.ts +5 -0
- 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
|
-
_0x1c4d48();var Ot=class Suggestion extends Mt{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x4ec8a8,_0x1d9854){super(),this['id']=_0x1d9854['id'],this['type']=_0x1d9854['type'],this['subType']=_0x1d9854['subType']||null,this['author']=_0x1d9854['author'],this['creator']=_0x1d9854['creator']||_0x1d9854['author'],this['data']=null,this['_originalSuggestionId']=_0x1d9854['originalSuggestionId']||null,this['_model']=_0x4ec8a8,this['_onAccept']=_0x1d9854['onAccept'],this['_onDiscard']=_0x1d9854['onDiscard'],this['_onAttributesChange']=_0x1d9854['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1d9854['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 _0x2daaaa=this;for(;_0x2daaaa['previous'];)_0x2daaaa=_0x2daaaa['previous'];return _0x2daaaa;}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'](_0x1e920d){this['_markerNames']['add'](_0x1e920d);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x23c78b=>this['_model']['markers']['get'](_0x23c78b))['filter'](_0xd3e366=>_0xd3e366);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1078e0=>{for(const _0x49390b of this['getMarkers']())_0x1078e0['removeMarker'](_0x49390b);}),this['_markerNames']['clear']();}['removeMarker'](_0x52f916){this['_model']['change'](_0x473810=>{_0x473810['removeMarker'](_0x52f916);}),this['_markerNames']['delete'](_0x52f916);}['addRange'](_0x2b1e47){const _0x5313d3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x5313d3),this['_model']['change'](_0x1ef2ec=>{_0x1ef2ec['addMarker'](_0x5313d3,{'range':_0x2b1e47,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x2a686b){for(const _0x3be2be of this['getRanges']())if(_0x3be2be['isIntersecting'](_0x2a686b))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x8fb3ed=>_0x8fb3ed['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x440544,_0x3817ba)=>[..._0x440544,..._0x3817ba['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x199a30=this['getRanges']();if(0x1!=_0x199a30['length'])return null;const _0x36595b=_0x199a30[0x0],_0x49dc3f=_0x36595b['start']['nodeAfter'],_0x360572=_0x36595b['end']['nodeBefore'];return _0x49dc3f instanceof rt?_0x49dc3f!=_0x360572?null:_0x49dc3f: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 _0x2087e5=[];let _0x53b0ac=this['head'];for(;_0x53b0ac;)_0x2087e5['push'](_0x53b0ac),_0x53b0ac=_0x53b0ac['next'];return _0x2087e5;}setAttribute(_0x39ac81,_0x1d2081){const _0xe27d92=lt(this['attributes']);ht(_0xe27d92,_0x39ac81,_0x1d2081),ut(_0xe27d92,this['attributes'])||(this['attributes']=_0xe27d92,this['_onAttributesChange'](_0xe27d92));}removeAttribute(_0x3f29c7){const _0x24cfb8=lt(this['attributes']);gt(_0x24cfb8,_0x3f29c7),ut(_0x24cfb8,this['attributes'])||(this['attributes']=_0x24cfb8,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 _0xe40876()['substr'](0x1,0x5);}};function wt(_0x3292ea,_0x165f11,_0x2eee3b){const _0x2c986e=_0x3292ea['t'],t=_0x3292ea['t'];switch(_0x165f11){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',_0x2eee3b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2eee3b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2eee3b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2eee3b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2eee3b);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',_0x2eee3b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2eee3b);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',_0x2eee3b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2eee3b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2eee3b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2eee3b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2eee3b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2eee3b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2eee3b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2eee3b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2eee3b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2eee3b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2eee3b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2eee3b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2eee3b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2eee3b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2eee3b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2eee3b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2eee3b);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2eee3b);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2eee3b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2eee3b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2eee3b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2eee3b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2eee3b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2eee3b);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'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2eee3b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2eee3b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2eee3b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2eee3b);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'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2eee3b);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x2eee3b);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x2eee3b);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x2eee3b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2eee3b);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'},_0x2eee3b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2eee3b);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 _0x2c986e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2eee3b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2c986e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2eee3b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2eee3b);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'},_0x2eee3b);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'},_0x2eee3b);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'},_0x2eee3b);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 _0x165f11;}}var Bt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x465630,_0x4359c9){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x465630,this['_locale']=_0x4359c9;}getDescriptions(_0x59ba40){const _0x5afeac=[],_0xa4f7e2=new Set(),_0x2658ea=new Set();for(let _0x3234c8=0x0;_0x3234c8<_0x59ba40['length'];_0x3234c8++){const _0x40fd09=_0x59ba40[_0x3234c8];if(!_0x40fd09['isInContent'])continue;const _0x521edf=this['_handleCustomCallbackDescription'](_0x40fd09);if(_0x521edf){if(null!=_0x40fd09['subType']){if(_0xa4f7e2['has'](_0x40fd09['subType']))continue;_0xa4f7e2['add'](_0x40fd09['subType']);}_0x5afeac['push'](_0x521edf);}else{if('attribute'==_0x40fd09['type']){const _0x28b7c1=_0x40fd09['data']['key'];if(_0x2658ea['has'](_0x28b7c1))continue;_0x2658ea['add'](_0x40fd09['data']['key']),'$elementName'==_0x28b7c1?this['_handleRenameSuggestionDescription'](_0x5afeac,_0x40fd09):this['_handleAttributeSuggestionDescription'](_0x5afeac,_0x40fd09);continue;}'insertion'!=_0x40fd09['type']&&'deletion'!=_0x40fd09['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5afeac,_0x40fd09,_0x59ba40[_0x3234c8+0x1]);}}return this['_resolveDescriptionItems'](_0x5afeac);}registerDescriptionCallback(_0xa8c611){this['_customCallbacks']['push'](_0xa8c611);}registerElementLabel(_0x5f0c98,_0xf02f49,_0x1300e2=_0x12e91f['normal']){'function'==typeof _0x5f0c98?_0x57a1e1(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5f0c98,'label':_0xf02f49,'priority':_0x1300e2}):this['_itemLabels']['set'](_0x5f0c98,_0xf02f49);}registerAttributeLabel(_0x298e59,_0x5f2e3d){this['_attributeLabels']['set'](_0x298e59,_0x5f2e3d);}getItemLabel(_0x173eea,_0x45ba0b=0x1){let _0x444ab6;for(const _0x4eb6b3 of this['_itemLabelsCallbacks'])if(_0x4eb6b3['matchingCallback'](_0x173eea)){_0x444ab6=_0x4eb6b3['label'];break;}return _0x444ab6||(_0x444ab6=this['_itemLabels']['get'](_0x173eea['name'])),_0x444ab6?_0x444ab6(_0x45ba0b):0x1!==_0x45ba0b?_0x45ba0b+'\x20'+_0x173eea['name']+'s':''+_0x173eea['name'];}_addDescriptionItems(_0x2742a9,_0x555c68){const _0x1edf77=_0x555c68['getFirstRange']()['getWalker'](),_0x348ea4='insertion'==_0x555c68['type']?'add':'remove';for(const _0x5c6e00 of _0x1edf77){const _0x270b4c=_0x5c6e00['item'],_0x433548=_0x2742a9[_0x2742a9['length']-0x1];if(_0x270b4c['is']('$textProxy'))_0x433548&&_0x433548['type']['indexOf']('Container')>-0x1&&_0x2742a9['pop'](),_0x433548&&'text'==_0x433548['type']?_0x433548[_0x348ea4]+=_0x270b4c['data']:_0x2742a9['push']({'type':'text','add':'add'==_0x348ea4?_0x270b4c['data']:'','remove':'remove'==_0x348ea4?_0x270b4c['data']:''});else{if(this['_schema']['isObject'](_0x270b4c)){const _0x327df0=_0x270b4c;if(_0x433548&&_0x433548['type']['indexOf']('Container')>-0x1&&_0x2742a9['pop'](),'elementEnd'==_0x5c6e00['type'])continue;_0x433548&&_0x433548['type']==_0x348ea4+'Object'&&_0x433548['element']['name']==_0x327df0['name']?_0x433548['quantity']++:_0x2742a9['push']({'type':_0x348ea4+'Object','element':_0x327df0,'quantity':0x1}),_0x1edf77['skip'](_0x2d507f=>!('elementEnd'==_0x2d507f['type']&&_0x2d507f['item']==_0x270b4c));}else{if(this['_schema']['checkChild'](_0x270b4c,'$text')||_0x270b4c['is']('element','softBreak')){const _0x3039e2=_0x270b4c;if('add'==_0x348ea4&&'elementStart'==_0x5c6e00['type']||'remove'==_0x348ea4&&'elementEnd'==_0x5c6e00['type'])continue;if(_0x433548&&-0x1==_0x433548['type']['indexOf']('Container')){'text'==_0x433548['type']&&(_0x433548[_0x348ea4]+='\x0a');continue;}let _0x421465;if(_0x421465='add'==_0x348ea4?_0x3039e2['nextSibling']&&!this['_schema']['isObject'](_0x3039e2['nextSibling'])?_0x3039e2['nextSibling']:null:_0x3039e2['previousSibling']&&!this['_schema']['isObject'](_0x3039e2['previousSibling'])?_0x3039e2['previousSibling']:null,_0x3039e2['isEmpty']||_0x421465&&_0x421465['isEmpty']){const _0x4b1e57=_0x421465&&_0x421465['isEmpty']?_0x421465:_0x3039e2;_0x433548&&_0x433548['type']==_0x348ea4+'EmptyContainer'&&_0x433548['element']['name']==_0x4b1e57['name']?_0x433548['quantity']++:_0x2742a9['push']({'type':_0x348ea4+'EmptyContainer','element':_0x4b1e57,'quantity':0x1});}else _0x2742a9['push']({'type':_0x348ea4+'Container','element':_0x3039e2});}}}}}_resolveDescriptionItems(_0x191c63){const _0x5b5c03=this['_locale'],_0x535923=[],_0x1ec2f0=[],_0x3ca1a2=[];for(const _0x4bfc19 of _0x191c63)switch(_0x4bfc19['type']){case'text':if(_0x4bfc19['add']=_0x4bfc19['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4bfc19['remove']=_0x4bfc19['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4bfc19['add']&&''!=_0x4bfc19['remove']){_0x535923['push']({'type':'replace','content':wt(_0x5b5c03,'REPLACE_TEXT',['\x22'+_0x4bfc19['remove']+'\x22','\x22'+_0x4bfc19['add']+'\x22'])});continue;}if(null!=_0x4bfc19['add']['match'](/^ +$/)){_0x535923['push']({'type':'insertion','content':wt(_0x5b5c03,'*Insert:*\x20%0',wt(_0x5b5c03,'ELEMENT_SPACE',_0x4bfc19['add']['length']))});continue;}if(null!=_0x4bfc19['remove']['match'](/^ +$/)){_0x535923['push']({'type':'deletion','content':wt(_0x5b5c03,'*Remove:*\x20%0',wt(_0x5b5c03,'ELEMENT_SPACE',_0x4bfc19['remove']['length']))});continue;}if(''!=_0x4bfc19['add']){_0x535923['push']({'type':'insertion','content':wt(_0x5b5c03,'*Insert:*\x20%0','\x22'+_0x4bfc19['add']+'\x22')});continue;}_0x535923['push']({'type':'deletion','content':wt(_0x5b5c03,'*Remove:*\x20%0','\x22'+_0x4bfc19['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x535923['push']({'type':'insertion','content':wt(_0x5b5c03,'*Insert:*\x20%0',this['getItemLabel'](_0x4bfc19['element'],_0x4bfc19['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x535923['push']({'type':'deletion','content':wt(_0x5b5c03,'*Remove:*\x20%0',this['getItemLabel'](_0x4bfc19['element'],_0x4bfc19['quantity']))});continue;case'addContainer':_0x535923['push']({'type':'insertion','content':wt(_0x5b5c03,'*Split:*\x20%0',this['getItemLabel'](_0x4bfc19['element'],_0x4bfc19['quantity']))});continue;case'removeContainer':_0x535923['push']({'type':'deletion','content':wt(_0x5b5c03,'*Merge:*\x20%0',this['getItemLabel'](_0x4bfc19['element'],_0x4bfc19['quantity']))});continue;case'addFormat':_0x1ec2f0['push'](_0x4bfc19['key']);continue;case'removeFormat':_0x3ca1a2['push'](_0x4bfc19['key']);continue;default:_0x535923['push'](_0x4bfc19);}if(_0x1ec2f0['length']){const _0x319784=_0x1ec2f0['map'](_0x24ab0a=>this['_attributeLabels']['has'](_0x24ab0a)?this['_attributeLabels']['get'](_0x24ab0a):_0x24ab0a)['join'](',\x20');_0x535923['push']({'type':'format','content':wt(this['_locale'],'*Set\x20format:*\x20%0',_0x319784)});}if(_0x3ca1a2['length']){const _0x23ad0e=_0x3ca1a2['map'](_0x2ad6a5=>this['_attributeLabels']['has'](_0x2ad6a5)?this['_attributeLabels']['get'](_0x2ad6a5):_0x2ad6a5)['join'](',\x20');_0x535923['push']({'type':'format','content':wt(this['_locale'],'*Remove\x20format:*\x20%0',_0x23ad0e)});}return _0x535923;}_handleCustomCallbackDescription(_0x355693){for(const _0x1becec of this['_customCallbacks']){const _0x2fe407=_0x1becec(_0x355693);if(_0x2fe407&&'type'in _0x2fe407)return _0x2fe407;}}_handleAttributeSuggestionDescription(_0x4f858d,_0x5be5ee){const _0x1f5bb9=_0x5be5ee['data'],_0x3a225f=void 0x0===_0x1f5bb9['newValue']?'removeFormat':'addFormat';_0x4f858d['push']({'type':_0x3a225f,'key':_0x1f5bb9['key']});}_handleRenameSuggestionDescription(_0x17aec9,_0x4a9f9c){_0x17aec9['push']({'type':'format','content':wt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4a9f9c['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x1ae3c2,_0x225328,_0x4d64a0){if(this['_addDescriptionItems'](_0x1ae3c2,_0x225328),_0x4d64a0&&_0x4d64a0['getFirstRange']()&&!_0x225328['getFirstRange']()['end']['isEqual'](_0x4d64a0['getFirstRange']()['start'])){const _0x57ed5c=_0x1ae3c2[_0x1ae3c2['length']-0x1],_0xaa0aa9='insertion'==_0x225328['type']?'add':'remove';_0x57ed5c&&'text'==_0x57ed5c['type']&&(_0x57ed5c[_0xaa0aa9]+='\x0a');}}},Ft=class extends _0x4ac61c{afterInit(){const _0x502275=this['editor'],_0x54f9c5=_0x502275['plugins']['get']('TrackChangesEditing');_0x502275['commands']['get']('showAIAssistant')&&_0x54f9c5['enableCommand']('showAIAssistant');}},vt=class extends _0x4ac61c{afterInit(){const _0x291e88=this['editor'],_0x20ec5f=_0x291e88['plugins']['get']('TrackChangesEditing');_0x291e88['commands']['get']('toggleAi')&&_0x20ec5f['enableCommand']('toggleAi');}},Dt=class extends _0x4ac61c{afterInit(){const _0x593803=this['editor'],_0x114698=_0x593803['plugins']['get']('TrackChangesEditing');_0x593803['commands']['get']('aiQuickAction')&&_0x114698['enableCommand']('aiQuickAction');}},Ut=class extends _0x4ac61c{afterInit(){const _0x1a866a=this['editor'],_0x5f35c9=_0x1a866a['locale'];if(!_0x1a866a['plugins']['has']('AlignmentEditing'))return;const _0x1a5e08=_0x1a866a['plugins']['get']('TrackChangesEditing');_0x1a5e08['enableDefaultAttributesIntegration']('alignment'),_0x1a5e08['descriptionFactory']['registerAttributeLabel']('alignment',wt(_0x5f35c9,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1ab340=this['editor'],_0x330391=_0x1ab340['locale'];_0x1ab340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c8f1=>{if('formatBlock'!=_0x56c8f1['type'])return;const {data:_0x1ad7e5}=_0x56c8f1;if(_0x1ad7e5&&'alignment'==_0x1ad7e5['commandName']){const _0x5c1d7e=_0x1ad7e5['commandParams'][0x0]['value'];return{'type':'format','content':wt(_0x330391,'*Format:*\x20%0',function(_0x182fc9){switch(_0x182fc9){case'left':return wt(_0x330391,'FORMAT_ALIGN_TO_LEFT');case'right':return wt(_0x330391,'FORMAT_ALIGN_TO_RIGHT');case'center':return wt(_0x330391,'FORMAT_ALIGN_TO_CENTER');case'justify':return wt(_0x330391,'FORMAT_JUSTIFY_TEXT');}}(_0x5c1d7e))};}});}};const Pt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var xt=class extends _0x4ac61c{afterInit(){const _0x51f16b=this['editor'],_0x2a3d11=_0x51f16b['plugins']['get']('TrackChangesEditing'),_0x2cd409=_0x51f16b['locale'];for(const _0x1a09f2 of Pt){if(!_0x51f16b['plugins']['has'](_0x1a09f2))continue;const _0x521b13=_0x1a09f2['slice'](0x0,-0x7)['toLowerCase'](),_0xfb4cc0='FORMAT_'+_0x521b13['toUpperCase']();_0x2a3d11['enableDefaultAttributesIntegration'](_0x521b13),_0x2a3d11['descriptionFactory']['registerAttributeLabel'](_0x521b13,wt(_0x2cd409,_0xfb4cc0));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x2eb2e5=this['editor'],_0x40cea0=_0x2eb2e5['locale'],_0x2b781f=_0x2eb2e5['plugins']['get']('TrackChangesEditing');function _0x44c91c(_0x35a9a5,_0x542050){_0x2b781f['descriptionFactory']['registerDescriptionCallback'](_0x362a47=>{if('formatInline'!=_0x362a47['type'])return;const {data:_0x1ac715}=_0x362a47;return _0x1ac715&&_0x1ac715['commandName']===_0x35a9a5?_0x1ac715['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x40cea0,'*Format:*\x20%0',_0x542050)}:{'type':'format','content':wt(_0x40cea0,'*Remove\x20format:*\x20%0',_0x542050)}:void 0x0;});}_0x44c91c('bold',wt(_0x40cea0,'FORMAT_BOLD')),_0x44c91c('italic',wt(_0x40cea0,'FORMAT_ITALIC')),_0x44c91c('underline',wt(_0x40cea0,'FORMAT_UNDERLINE')),_0x44c91c('code',wt(_0x40cea0,'FORMAT_CODE')),_0x44c91c('strikethrough',wt(_0x40cea0,'FORMAT_STRIKETHROUGH')),_0x44c91c('subscript',wt(_0x40cea0,'FORMAT_SUBSCRIPT')),_0x44c91c('superscript',wt(_0x40cea0,'FORMAT_SUPERSCRIPT'));}},Gt=class extends _0x4ac61c{afterInit(){const _0x964db5=this['editor'],_0xa996e5=_0x964db5['locale'];if(!_0x964db5['plugins']['has']('BlockQuoteEditing'))return;const _0x26ba28=_0x964db5['plugins']['get']('TrackChangesEditing'),_0x33806e=this['editor']['commands']['get']('blockQuote');_0x26ba28['enableCommand']('blockQuote',(_0x32cf4b,_0x3d6c3e={})=>{const _0x360126=this['editor']['model']['document']['selection'],_0x9b38d5=_0x3d6c3e&&void 0x0!==_0x3d6c3e['forceValue']?_0x3d6c3e['forceValue']:!_0x33806e['value'];let _0x24d982=[];if(_0x9b38d5){const _0x12cb19=Array['from'](_0x360126['getSelectedBlocks']())['filter'](_0x447473=>Ht(_0x447473)||function(_0x5b6f2b,_0x19d03e){const _0x21c556=_0x19d03e['createContext'](_0x5b6f2b['parent']);return!!_0x19d03e['checkChild'](_0x21c556,'blockQuote')&&!!_0x19d03e['checkChild'](_0x21c556['push']('blockQuote'),_0x5b6f2b);}(_0x447473,this['editor']['model']['schema']));_0x24d982=kt(_0x12cb19,_0x964db5['model']);}else{const _0x31122e=Array['from'](_0x360126['getSelectedBlocks']())['filter'](_0x123bc9=>Ht(_0x123bc9));_0x24d982=kt(_0x31122e,_0x964db5['model']);}_0x964db5['model']['change'](()=>{for(const _0x575d4d of _0x24d982)_0x26ba28['markBlockFormat'](_0x575d4d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x9b38d5}]});});}),_0x26ba28['descriptionFactory']['registerDescriptionCallback'](_0x5c0bb8=>{const {data:_0xce88d8}=_0x5c0bb8;if(_0xce88d8&&'blockQuote'==_0xce88d8['commandName']){const _0x584ea2=wt(_0xa996e5,'ELEMENT_BLOCK_QUOTE');return _0xce88d8['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xa996e5,'*Set\x20format:*\x20%0',_0x584ea2)}:{'type':'format','content':wt(_0xa996e5,'*Remove\x20format:*\x20%0',_0x584ea2)};}});}};function Ht(_0x617fb6){return'blockQuote'==_0x617fb6['parent']['name'];}var $t=class extends _0x4ac61c{afterInit(){const _0x2aa444=this['editor'],_0x6e8bb6=_0x2aa444['locale'],_0x2c5614=_0x2aa444['plugins']['get']('TrackChangesEditing');_0x2aa444['plugins']['has']('BookmarkEditing')&&(_0x2c5614['enableCommand']('insertBookmark'),_0x2c5614['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c5614['descriptionFactory']['registerDescriptionCallback'](_0x388fcb=>{if('insertion'!=_0x388fcb['type']&&'deletion'!=_0x388fcb['type']&&'attribute'!=_0x388fcb['type'])return;const _0x375393=_0x388fcb['getContainedElement']();if(null==_0x375393)return;if(!_0x375393['is']('element','bookmark'))return;const _0x55a567=_0x375393['getAttribute']('bookmarkId');if('insertion'==_0x388fcb['type'])return{'type':'insertion','content':wt(_0x6e8bb6,'*Insert:*\x20%0','\x22'+_0x55a567+'\x22\x20'+wt(_0x6e8bb6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x388fcb['type'])return{'type':'deletion','content':wt(_0x6e8bb6,'*Remove:*\x20%0','\x22'+_0x55a567+'\x22\x20'+wt(_0x6e8bb6,'ELEMENT_BOOKMARK'))};const {data:_0x5e5d84}=_0x388fcb;return _0x5e5d84&&'bookmarkId'==_0x5e5d84['key']?{'type':'format','content':wt(_0x6e8bb6,'*Set\x20bookmark:*\x20%0','\x22'+_0x5e5d84['newValue']+'\x22')}:void 0x0;}));}},Wt=class extends _0x4ac61c{afterInit(){const _0x1cfab2=this['editor'];_0x1cfab2['plugins']['has']('CaseChange')&&(_0x1cfab2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1cfab2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1cfab2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Vt=class extends _0x4ac61c{afterInit(){const _0x4d5bca=this['editor'];_0x4d5bca['commands']['get']('ckbox')&&_0x4d5bca['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},zt=class extends _0x4ac61c{static get requires(){return[ft,mt];}constructor(_0x9ef65e){super(_0x9ef65e),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x3608ac=this['editor'],_0x381fad=_0x3608ac['plugins']['get']('ClipboardMarkersUtils'),_0x4bd9b3=_0x3608ac['plugins']['get'](mt);_0x381fad['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x4bd9b3['on']('outputTransformation',(_0x3ebbab,_0x113848)=>{const _0x21d85d=this['_getSuggestionEntries'](_0x113848);for(const [_0xab5088,_0x239e3e]of _0x113848['content']['markers']){const _0x2d0f86=at['_fromRangeInDocumentFragment'](_0x239e3e,_0x3608ac['model']);function _0x2f752d(){_0x2d0f86['detach'](),_0x113848['content']['markers']['delete'](_0xab5088);}_0x2d0f86['on']('change:drop',_0x2f752d),(_0xab5088['startsWith']('suggestion:')||_0xab5088['startsWith']('comment:'))&&_0x2d0f86['on']('change:range',()=>{_0x2d0f86['isCollapsed']&&_0x2f752d();}),_0x113848['content']['markers']['set'](_0xab5088,_0x2d0f86);}const _0x4b65a5=_0x21d85d['filter'](_0x804e2a=>'deletion'===_0x804e2a['meta']['type'])['map'](_0x55bfea=>_0x55bfea['modelRange']);if(this['_shouldSkipDeletions'](_0x4b65a5,_0x113848['content']))return[..._0x21d85d]['forEach'](_0x482e7c=>{_0x113848['content']['markers']['get'](_0x482e7c['markerName'])['detach'](),_0x113848['content']['markers']['delete'](_0x482e7c['markerName']);}),void this['_restoreRegularRanges'](_0x113848['content']['markers']);[..._0x21d85d]['forEach'](_0x365761=>{const _0xe82c75=_0x3608ac['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x365761['meta']['type'],_0x365761['meta']['subType'],'accept'),{markerName:_0x4e730f,meta:_0x4405ff}=_0x365761;if(_0x113848['content']['markers']['has'](_0x4e730f)){switch(_0x4405ff['type']){case'deletion':if('tableRow'===_0x4405ff['subType']||'tableColumn'===_0x4405ff['subType']){if(!_0x3608ac['plugins']['has']('TableUtils'))break;const _0x1162c9=_0x3608ac['plugins']['get']('TableUtils'),_0x45b05e=_0x1162c9['getSelectionAffectedTableCells'](_0x3608ac['model']['createSelection'](_0x113848['content']['markers']['get'](_0x4e730f))),_0x127100=_0x45b05e[0x0]['findAncestor']('table');if('tableRow'===_0x4405ff['subType']){const {first:_0x20563a,last:_0x2f9566}=_0x1162c9['getRowIndexes'](_0x45b05e);_0x1162c9['removeRows'](_0x127100,{'at':_0x20563a,'rows':_0x2f9566-_0x20563a+0x1});}else{const {first:_0x55bbfb,last:_0x52797a}=_0x1162c9['getColumnIndexes'](_0x45b05e);_0x1162c9['removeColumns'](_0x127100,{'at':_0x55bbfb,'columns':_0x52797a-_0x55bbfb+0x1});}break;}_0xe82c75([_0x113848['content']['markers']['get'](_0x4e730f)]);}_0x113848['content']['markers']['has'](_0x4e730f)&&(_0x113848['content']['markers']['get'](_0x4e730f)['detach'](),_0x113848['content']['markers']['delete'](_0x4e730f));}}),this['_restoreRegularRanges'](_0x113848['content']['markers']);});}_getSuggestionEntries(_0x273c59){const _0x108653=_0x51b10b=>'dragstart'===_0x273c59['method']?_0x51b10b['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x51b10b;return Array['from'](_0x273c59['content']['markers'])['map'](([_0xbb39cf,_0x3e9aff])=>({'markerName':_0xbb39cf,'modelRange':_0x3e9aff,'meta':nt(_0x108653(_0xbb39cf))}))['filter'](({meta:_0xc06ee3})=>'suggestion'===_0xc06ee3['group']);}_shouldSkipDeletions(_0x36f3dc,_0x1f31a3){if(!_0x36f3dc['length'])return!0x1;let _0x3227a4=[this['editor']['model']['createRangeIn'](_0x1f31a3)];for(const _0x4d9bcb of _0x36f3dc)_0x3227a4=_0x3227a4['flatMap'](_0x149a20=>_0x149a20['getDifference'](_0x4d9bcb));return!_0x3227a4['some'](_0x422634=>this['editor']['model']['hasContent'](_0x422634,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x18d135){[..._0x18d135['keys']()]['forEach'](_0x448adc=>{const _0x4cb51c=_0x18d135['get'](_0x448adc);_0x4cb51c['detach'](),_0x18d135['set'](_0x448adc,_0x4cb51c['toRange']());});}},jt=class extends _0x4ac61c{afterInit(){const _0x546c74=this['editor'];if(!_0x546c74['plugins']['has']('CodeBlock'))return;const _0x1f22f5=_0x546c74['plugins']['get']('TrackChangesEditing'),_0xc5f8d=_0x546c74['locale'],_0x25f057=_0x546c74['config']['get']('codeBlock')['languages'],_0x563ded=_0x546c74['commands']['get']('codeBlock');_0x1f22f5['enableCommand']('indentCodeBlock'),_0x1f22f5['enableCommand']('outdentCodeBlock'),_0x1f22f5['enableCommand']('codeBlock',(_0x3e66da,_0x5cbf05={})=>{const _0x2785a6=_0x546c74['model'],_0x63995=_0x546c74['model']['document']['selection'],_0x3bab87=_0x5cbf05&&void 0x0!==_0x5cbf05['forceValue']?_0x5cbf05['forceValue']:!_0x563ded['value'];let _0x44e30f;_0x5cbf05['language']||(_0x5cbf05['language']=_0x25f057[0x0]['language']),_0x44e30f=_0x3bab87?Array['from'](_0x63995['getSelectedBlocks']())['filter'](_0x35a67f=>{return Kt(_0x35a67f)||(_0x12616b=_0x35a67f,_0x235d42=_0x2785a6['schema'],!_0x12616b['is']('rootElement')&&!_0x235d42['isLimit'](_0x12616b)&&_0x235d42['checkChild'](_0x12616b['parent'],'codeBlock'));var _0x12616b,_0x235d42;}):Array['from'](_0x63995['getSelectedBlocks']())['filter'](_0x14617b=>Kt(_0x14617b));const _0x38f50e=kt(_0x44e30f,_0x2785a6);_0x2785a6['change'](()=>{for(const _0x454806 of _0x38f50e)_0x1f22f5['markBlockFormat'](_0x454806,{'commandName':'codeBlock','commandParams':[{..._0x5cbf05,'forceValue':_0x3bab87}],'formatGroupId':'blockName'});});}),(_0x1f22f5['descriptionFactory']['registerElementLabel']('codeBlock',_0x2521e8=>wt(_0xc5f8d,'ELEMENT_CODE_BLOCK',_0x2521e8)),_0x1f22f5['descriptionFactory']['registerDescriptionCallback'](_0x5664e6=>{if('formatBlock'!=_0x5664e6['type'])return;const _0x141d50=_0xc5f8d['t'],{data:_0x16a41c}=_0x5664e6;if(!_0x16a41c||'codeBlock'!=_0x16a41c['commandName'])return;const _0x50917c=_0x16a41c['commandParams'][0x0]['language'],_0x4223a6=_0x141d50(_0x25f057['find'](_0x186b14=>_0x186b14['language']===_0x50917c)['label'])['toLowerCase']();return _0x16a41c['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0xc5f8d,'*Set\x20format:*\x20%0',wt(_0xc5f8d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4223a6+')')}:{'type':'format','content':wt(_0xc5f8d,'*Remove\x20format:*\x20%0',wt(_0xc5f8d,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Kt(_0x5d869b){return'codeBlock'==_0x5d869b['name'];}var Xt=class extends _0x4ac61c{afterInit(){const _0x4a3322=this['editor'];_0x4a3322['plugins']['has']('CommentsEditing')&&_0x4a3322['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},qt=class extends _0x4ac61c{static get requires(){return[Et];}init(){const _0x23cf93=this['editor'],_0x40ce78=_0x23cf93['plugins']['get']('TrackChangesEditing');_0x40ce78['enableCommand']('delete');const _0x46246f=_0x23cf93['commands']['get']('deleteForward');_0x40ce78['enableCommand']('deleteForward',(_0x30ae8e,_0xed972e={})=>{const _0x262f41=_0x23cf93['model']['createSelection'](_0x23cf93['model']['document']['selection']);_0x262f41['isCollapsed']&&_0x23cf93['model']['modifySelection'](_0x262f41,{'direction':'forward','unit':_0xed972e['unit']});const _0x215a84=_0x262f41['getFirstRange'](),_0x5bf92a=at['fromRange'](_0x215a84);let _0x5d5646;_0x30ae8e(_0xed972e),_0x5d5646='$graveyard'==_0x5bf92a['root']['rootName']?_0x23cf93['model']['createRange'](_0x215a84['start']):_0x23cf93['model']['createRange'](_0x5bf92a['start'],_0x5bf92a['end']),_0x5bf92a['detach'](),_0x23cf93['model']['enqueueChange'](_0x46246f['buffer']['batch'],_0x1a9e44=>{_0x46246f['buffer']['lock'](),_0x1a9e44['setSelection'](_0x1a9e44['createRange'](_0x5d5646['end'])),_0x46246f['buffer']['unlock']();});});}},Yt=class extends _0x4ac61c{afterInit(){const _0x13bd9d=this['editor'];if(!_0x13bd9d['plugins']['has']('ListEditing'))return;const _0x19a122=_0x13bd9d['locale'],_0x391b8d=_0x13bd9d['plugins']['get']('TrackChangesEditing'),_0x40772d=_0x13bd9d['plugins']['has']('TodoListEditing'),_0x449b20=!!_0x13bd9d['config']['get']('list.multiBlock');function _0x1f5a47(_0x301aff){return{'type':'format','content':''+wt(_0x19a122,'*Set\x20format:*\x20%0',_0x301aff)};}function _0x52520b(_0x428c24){return{'type':'format','content':''+wt(_0x19a122,'*Remove\x20format:*\x20%0',_0x428c24)};}_0x391b8d['enableDefaultAttributesIntegration']('numberedList'),_0x391b8d['enableDefaultAttributesIntegration']('bulletedList'),_0x391b8d['enableDefaultAttributesIntegration']('customNumberedList'),_0x391b8d['enableDefaultAttributesIntegration']('customBulletedList'),_0x391b8d['enableDefaultAttributesIntegration']('indentList'),_0x391b8d['enableDefaultAttributesIntegration']('outdentList'),_0x391b8d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x391b8d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x449b20&&(_0x391b8d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x391b8d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x40772d&&(_0x391b8d['enableDefaultAttributesIntegration']('todoList'),_0x391b8d['enableDefaultAttributesIntegration']('checkTodoList'),_0x391b8d['descriptionFactory']['registerDescriptionCallback'](_0x215ce2=>{const {data:_0x5252f8}=_0x215ce2;if(_0x5252f8&&'todoListChecked'==_0x5252f8['key'])return{'type':'format','content':_0x5252f8['newValue']?wt(_0x19a122,'*Check\x20item*'):wt(_0x19a122,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x158eb6=>{if(_0x158eb6['batch']['isUndo'])return!0x1;let _0x2b4344=!0x1;const _0x5c822c=_0x391b8d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46b797=>'todoListChecked'===_0x391b8d['_getAttributeKey'](_0x46b797));for(const _0x4422a0 of _0x5c822c)'todo'!=_0x4422a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x391b8d['_findSuggestions'](_0x4422a0['getFirstRange'](),'attribute')['find'](_0x1aadf3=>'listType'===_0x391b8d['_getAttributeKey'](_0x1aadf3['suggestion']))||(_0x158eb6['removeMarker'](_0x4422a0['getFirstMarker']()),_0x2b4344=!0x0));return _0x2b4344;})),_0x391b8d['descriptionFactory']['registerAttributeLabel']('listIndent',wt(_0x19a122,'FORMAT_INDENT'));const _0x3683c5={'type':'format','content':''};_0x391b8d['descriptionFactory']['registerDescriptionCallback'](_0x3162ed=>{const {data:_0x37364e}=_0x3162ed;if(!_0x37364e||'listType'!=_0x37364e['key'])return;let _0x3be984=_0x3162ed['head'];for(;_0x3be984;){if(_0x3be984['data']&&(('listStyle'==_0x3be984['data']['key']||'listMarkerStyle'==_0x3be984['data']['key'])&&(_0x3be984['data']['newValue']&&'default'!=_0x3be984['data']['newValue']||'default'!=_0x3be984['data']['oldValue']&&!_0x37364e['newValue'])||!_0x449b20&&'$elementName'==_0x3be984['data']['key']))return _0x3683c5;_0x3be984=_0x3be984['next'];}if(null==_0x37364e['newValue'])switch(_0x37364e['oldValue']){case'bulleted':return _0x52520b(wt(_0x19a122,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52520b(wt(_0x19a122,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52520b(wt(_0x19a122,'ELEMENT_TODO_LIST'));}switch(_0x37364e['newValue']){case'bulleted':return _0x1f5a47(wt(_0x19a122,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f5a47(wt(_0x19a122,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f5a47(wt(_0x19a122,'ELEMENT_TODO_LIST'));}}),_0x391b8d['descriptionFactory']['registerDescriptionCallback'](_0x179f70=>{const {data:_0x395784}=_0x179f70;if(_0x395784&&'listIndent'==_0x395784['key'])return null==_0x395784['newValue']||null==_0x395784['oldValue']&&0x0==_0x395784['newValue']?_0x3683c5:void 0x0;}),_0x391b8d['descriptionFactory']['registerDescriptionCallback'](_0x177d64=>{if('attribute'!=_0x177d64['type'])return;const {data:_0x3414d8}=_0x177d64;if(!_0x3414d8||'listItemId'!=_0x3414d8['key'])return;const _0x5b7714=Qt(_0x177d64);return'newValue'==_0x5b7714?{'type':'format','content':wt(_0x19a122,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b7714?{'type':'format','content':wt(_0x19a122,'*Split:*\x20list\x20item')}:_0x3683c5;}),_0x13bd9d['model']['document']['registerPostFixer'](_0x3c9fc4=>this['listItemIdFixer'](_0x3c9fc4)),_0x13bd9d['model']['document']['registerPostFixer'](_0x423a3f=>this['noTrackChangesFixer'](_0x423a3f)),_0x13bd9d['model']['document']['on']('change:data',(_0x308951,_0x3042d8)=>{if(_0x3042d8['isUndo']||!_0x3042d8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x554335){if(_0x554335['batch']['isUndo']||!_0x554335['batch']['isLocal'])return!0x1;let _0x16e2b0=!0x1;const _0x58220b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd4cb55=>_0xd4cb55['data']&&'listItemId'==_0xd4cb55['data']['key'])['filter'](_0x2cca43=>_0x2cca43['data']['newValue']&&_0x2cca43['data']['oldValue']);for(const _0x5a8f77 of _0x58220b)Qt(_0x5a8f77)||(_0x554335['removeMarker'](_0x5a8f77['getFirstMarker']()),_0x16e2b0=!0x0);return _0x16e2b0;}['noTrackChangesFixer'](_0x42bf4e){if(_0x42bf4e['batch']['isUndo']||!_0x42bf4e['batch']['isLocal'])return!0x1;const _0x4364bc=this['editor']['model']['document']['differ'],_0x4fe149=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4fe149['trackChangesCommand']['value'])return!0x1;let _0x4f88ed=!0x1;const _0xd34ac=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x23cc42=_0x4364bc['getChanges']()['filter'](_0xd832d=>'attribute'==_0xd832d['type'])['filter'](_0x505430=>_0xd34ac['has'](_0x505430['attributeKey']));if(0x0==_0x23cc42['length'])return _0x4f88ed;const _0x2a56cc=new Set(_0x4364bc['getMarkersToAdd']()['filter'](_0x130fea=>{if(!_0x130fea['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x2bb3c5=nt(_0x130fea['name'])['subType']['split']('|')[0x0];return _0xd34ac['has'](_0x2bb3c5);})['map'](_0x5ce8cf=>nt(_0x5ce8cf['name'])['id']));for(const _0x37918f of _0x23cc42){const _0xc6274f=_0x4fe149['_findSuggestions'](_0x37918f['range'],'attribute')['filter'](_0x5c63de=>{if(_0x5c63de['meta']['isNextTo'])return!0x1;if(_0x2a56cc['has'](_0x5c63de['suggestion']['id']))return!0x1;const _0x1dace9=_0x4fe149['_getAttributeKey'](_0x5c63de['suggestion']);return _0xd34ac['has'](_0x1dace9);})['map'](_0xb6f6b2=>_0xb6f6b2['suggestion']);if(_0xc6274f['length']){for(const _0x4f8a7d of _0xc6274f)_0x42bf4e['removeMarker'](_0x4f8a7d['getFirstMarker']());_0x4f88ed=!0x0;}}return _0x4f88ed;}['assureChains'](){const _0x4378dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da8c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x3a15f0;const _0x4f21a7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x570452=>{if(_0x570452['data']['oldRange']||!_0x570452['data']['newRange'])return null;if(!_0x570452['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x12e16a}=nt(_0x570452['name']);if(!_0x4378dc['hasSuggestion'](_0x12e16a))return null;const _0x178f45=_0x4378dc['getSuggestion'](_0x12e16a);return _0x3da8c4['includes'](_0x178f45['data']['key']);})['map'](_0x202df5=>{const {id:_0x4a4048}=nt(_0x202df5['name']),_0x5de85e=_0x4378dc['getSuggestion'](_0x4a4048);return _0x3a15f0=_0x5de85e['attributes']['groupId'],_0x5de85e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4f21a7['size'])return;const _0x159370=_0x4378dc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x440254=>'attribute'==_0x440254['type']&&_0x440254['data']&&_0x3da8c4['includes'](_0x440254['data']['key'])&&_0x440254['attributes']['groupId']!=_0x3a15f0)['map'](_0x455402=>({'listItem':_0x455402['getFirstRange']()['start']['nodeAfter'],'groupId':_0x455402['attributes']['groupId']})),_0x1fcacb=new Set();for(const {groupId:_0x458f4a,listItem:_0x5b960f}of _0x159370)_0x4f21a7['has'](_0x5b960f)&&_0x1fcacb['add'](_0x458f4a);for(const _0x38a330 of _0x4378dc['getSuggestions']())_0x1fcacb['has'](_0x38a330['attributes']['groupId'])&&_0x38a330['setAttribute']('groupId',_0x3a15f0);}_supportLegacySuggestions(){const _0x4ee507=this['editor'],_0x3cf441=_0x4ee507['locale'],_0x5484fd=_0x4ee507['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5484fd['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x29b18f,_0xa8f3b4){const _0x3f6457=[];for(let _0x31620c of _0x29b18f)_0x31620c['start']['nodeAfter']===_0x31620c['end']['parent']&&(_0x31620c=_0x4ee507['model']['createRange'](_0x4ee507['model']['createPositionAt'](_0x31620c['start']['nodeAfter'],0x0))),_0x3f6457['push'](_0x31620c);_0x4ee507['model']['change'](_0x38c503=>{const _0x2adbb6=_0x4ee507['model']['document']['selection'],_0x50b1e9=Array['from'](_0x2adbb6['getRanges']())['map'](_0x2e7dd5=>at['fromRange'](_0x2e7dd5));_0x38c503['setSelection'](_0x3f6457),_0x4ee507['commands']['get'](_0xa8f3b4['commandName'])['refresh'](),_0xa8f3b4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ee507['execute'](_0xa8f3b4['commandName'],..._0xa8f3b4['commandParams']),_0x38c503['setSelection'](_0x50b1e9);for(const _0x3ca1f3 of _0x50b1e9)_0x3ca1f3['detach']();});}),_0x5484fd['descriptionFactory']['registerElementLabel'](function(_0x3024b9){const _0x4d4349=!_0x4ee507['model']['schema']['isObject'](_0x3024b9),_0x49daeb=_0x3024b9['previousSibling'],_0x4e7842=_0x3024b9['nextSibling'],_0xce37c1=_0x3024b9['getAttribute']('listItemId'),_0x38555e=!_0x49daeb||_0x49daeb['getAttribute']('listItemId')!==_0xce37c1,_0x479685=!_0x4e7842||_0x4e7842['getAttribute']('listItemId')!==_0xce37c1;return _0x4d4349&&Boolean(_0xce37c1)&&_0x38555e&&_0x479685;},_0x1bd3df=>wt(_0x3cf441,'ELEMENT_LIST_ITEM',_0x1bd3df));}_registerLegacyDescription(){const _0x25631c=this['editor'],_0x4021fc=_0x25631c['locale'];function _0x5b3b28(_0x157f67){const _0x4d03b1=_0x25631c['commands']['get']('bulletedList')['value'],_0x2be38a=_0x25631c['commands']['get']('numberedList')['value'];return'numberedList'===_0x157f67?_0x4d03b1:_0x2be38a;}_0x25631c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x571f5c){if('formatBlock'!=_0x571f5c['type'])return;const {data:_0x5e78a5}=_0x571f5c;if(!_0x5e78a5)return;let _0x550bca,_0x456a91,_0x42b097,_0x8d930d;switch(_0x5e78a5['commandName']){case'bulletedList':_0x42b097=_0x5e78a5['commandParams'][0x0]['forceValue'],_0x8d930d=_0x5b3b28(_0x5e78a5['commandName']),_0x550bca=_0x42b097?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8d930d&&_0x25631c['config']['get']('list.multiBlock')||(_0x550bca='*Change\x20to:*\x20%0'),_0x456a91={'type':'format','content':wt(_0x4021fc,_0x550bca,wt(_0x4021fc,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x42b097=_0x5e78a5['commandParams'][0x0]['forceValue'],_0x8d930d=_0x5b3b28(_0x5e78a5['commandName']),_0x550bca=_0x42b097?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x8d930d&&_0x25631c['config']['get']('list.multiBlock')||(_0x550bca='*Change\x20to:*\x20%0'),_0x456a91={'type':'format','content':wt(_0x4021fc,_0x550bca,wt(_0x4021fc,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x550bca='*Indent:*\x20%0',_0x456a91={'type':'format','content':wt(_0x4021fc,_0x550bca,wt(_0x4021fc,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x550bca=function(_0x29ad71){const _0x19654a=_0x29ad71['getFirstRange']();let _0x862dc=_0x19654a['start']['nodeAfter'];for(;_0x862dc&&_0x19654a['containsItem'](_0x862dc);){if(_0x862dc['getAttribute']('listIndent')>0x0)return!0x1;_0x862dc=_0x862dc['nextSibling'];}return!0x0;}(_0x571f5c)?wt(_0x4021fc,'*Format:*\x20remove\x20from\x20%0',wt(_0x4021fc,function(_0x100b4d){return'ELEMENT_'+_0x100b4d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x571f5c))):wt(_0x4021fc,'*Outdent:*\x20%0',wt(_0x4021fc,'ELEMENT_LIST_ITEM')),_0x456a91={'type':'format','content':_0x550bca};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5e78a5['multipleBlocks']&&(_0x550bca='*Merge:*\x20%0',_0x456a91={'type':'deletion','content':wt(_0x4021fc,_0x550bca,wt(_0x4021fc,'ELEMENT_LIST_ITEM'))});}return _0x456a91;});}};function Qt(_0x174761){let _0x38a8e2=_0x174761['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x38a8e2;){const _0x53d2a1=_0x38a8e2['getAttribute']('listItemId');if(!_0x53d2a1)return!0x1;if(_0x53d2a1==_0x174761['data']['newValue'])return'newValue';if(_0x53d2a1==_0x174761['data']['oldValue'])return'oldValue';_0x38a8e2=_0x38a8e2['previousSibling'];}return!0x1;}var Zt=class extends _0x4ac61c{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb8a8cc=this['editor']['config']['get']('list.properties'),_0x66ac17=this['editor']['plugins']['get']('TrackChangesEditing');_0xb8a8cc['styles']&&_0x66ac17['enableDefaultAttributesIntegration']('listStyle'),_0xb8a8cc['reversed']&&_0x66ac17['enableDefaultAttributesIntegration']('listReversed'),_0xb8a8cc['startIndex']&&_0x66ac17['enableDefaultAttributesIntegration']('listStart');const _0x8c1187={'type':'format','content':''};_0x66ac17['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1af276=this['editor']['locale'];_0x66ac17['descriptionFactory']['registerAttributeLabel']('listReversed',wt(_0x1af276,'FORMAT_LIST_REVERSED')),_0x66ac17['descriptionFactory']['registerDescriptionCallback'](_0x1abbe0=>{const {data:_0x39df75}=_0x1abbe0;if(_0x39df75&&'listReversed'==_0x39df75['key'])return null==_0x39df75['newValue']||0x0==_0x39df75['newValue']&&null==_0x39df75['oldValue']?_0x8c1187:void 0x0;}),_0x66ac17['descriptionFactory']['registerAttributeLabel']('listStart',wt(_0x1af276,'FORMAT_LIST_START')),_0x66ac17['descriptionFactory']['registerDescriptionCallback'](_0x12080f=>{const {data:_0x28ecec}=_0x12080f;if(_0x28ecec&&'listStart'==_0x28ecec['key'])return null==_0x28ecec['newValue']||0x1==_0x28ecec['newValue']&&null==_0x28ecec['oldValue']?_0x8c1187:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3d46ab=>{if(_0x3d46ab['batch']['isUndo'])return!0x1;let _0x5475c1=!0x1;const _0x47c61f=_0x66ac17['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x347edb=>{const _0x3cf0e7=_0x66ac17['_getAttributeKey'](_0x347edb);return'listStart'==_0x3cf0e7||'listReversed'==_0x3cf0e7;});for(const _0x28b0b3 of _0x47c61f){const _0x5f3ae0=_0x28b0b3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x5f3ae0&&'customNumbered'!=_0x5f3ae0&&(_0x66ac17['_findSuggestions'](_0x28b0b3['getFirstRange'](),'attribute')['find'](_0x12e7c9=>'listType'==_0x66ac17['_getAttributeKey'](_0x12e7c9['suggestion']))||(_0x3d46ab['removeMarker'](_0x28b0b3['getFirstMarker']()),_0x5475c1=!0x0));}return _0x5475c1;}),this['_registerLegacyDescription']();}handleDescriptions(_0x41f8e7){const _0x3ab4d5=this['editor']['locale'],{data:_0x359f22}=_0x41f8e7,_0xb59aee={'type':'format','content':''};if(!_0x359f22||'listStyle'!=_0x359f22['key'])return;if(!_0x359f22['oldValue'])return'default'==_0x359f22['newValue']?_0xb59aee:{'type':'format','content':''+wt(_0x3ab4d5,'*Set\x20format:*\x20%0',wt(_0x3ab4d5,this['_getTranslationKeyForListStyle'](_0x359f22['newValue'])))};if(!_0x359f22['newValue']){if('default'==_0x359f22['oldValue'])return _0xb59aee;let _0x1a0710=_0x41f8e7['head'];for(;_0x1a0710;){if(_0x1a0710['data']&&'listType'==_0x1a0710['data']['key']&&_0x1a0710['data']['newValue'])return _0xb59aee;_0x1a0710=_0x1a0710['next'];}return{'type':'format','content':''+wt(_0x3ab4d5,'*Remove\x20format:*\x20%0',wt(_0x3ab4d5,this['_getTranslationKeyForListStyle'](_0x359f22['oldValue'])))};}if('default'!=_0x359f22['newValue'])return{'type':'format','content':''+wt(_0x3ab4d5,'*Set\x20format:*\x20%0',wt(_0x3ab4d5,this['_getTranslationKeyForListStyle'](_0x359f22['newValue'])))};let _0x5ed298=_0x41f8e7['head'];for(;_0x5ed298;){if(_0x5ed298['data']&&'listType'==_0x5ed298['data']['key']&&_0x5ed298['data']['newValue']&&_0x5ed298['data']['oldValue'])return _0xb59aee;_0x5ed298=_0x5ed298['next'];}return{'type':'format','content':wt(_0x3ab4d5,'*Set\x20format:*\x20%0',wt(_0x3ab4d5,'ELEMENT_'+_0x41f8e7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x477cef=this['editor'],_0x494d5d=_0x477cef['locale'];_0x477cef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58fab3=>{if('formatBlock'!=_0x58fab3['type'])return;const {data:_0x24e802}=_0x58fab3;if(!_0x24e802)return;let _0xa2a446,_0x1def60;switch(_0x24e802['commandName']){case'listStyle':_0xa2a446='*Change\x20to:*\x20%0',_0x1def60={'type':'format','content':wt(_0x494d5d,_0xa2a446,wt(_0x494d5d,this['_getTranslationKeyForListStyle'](_0x24e802['commandParams'][0x0]['type'])))};break;case'listReversed':_0xa2a446=_0x24e802['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1def60={'type':'format','content':wt(_0x494d5d,_0xa2a446)};break;case'listStart':_0xa2a446='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1def60={'type':'format','content':wt(_0x494d5d,_0xa2a446,_0x24e802['commandParams'][0x0]['startIndex'])};}return _0x1def60;});}_getTranslationKeyForListStyle(_0x13c087){return'ELEMENT_'+(_0x35bb80=_0x13c087,Jt['includes'](_0x35bb80)?'bulleted':te['includes'](_0x35bb80)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x13c087['toUpperCase']()['replace'](/-/g,'_');var _0x35bb80;}};const Jt=['disc','circle','square'],te=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ee=class extends _0x4ac61c{afterInit(){const _0xe29c7d=this['editor'];_0xe29c7d['commands']['get']('emoji')&&_0xe29c7d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ne=class extends _0x4ac61c{static get requires(){return[_t];}init(){const _0x155eba=this['editor'],_0x4ae75a=_0x155eba['plugins']['get']('TrackChangesEditing'),_0x16c264=_0x155eba['commands']['get']('enter');_0x4ae75a['enableCommand']('enter',()=>{_0x155eba['model']['change'](_0x526ab2=>{const _0x106525=_0x155eba['model']['document']['selection'],_0x33ff19=_0x106525['getFirstPosition'](),_0x8098fb=at['fromRange'](_0x106525['getFirstRange']());if(_0x16c264['enterBlock'](_0x526ab2)){const _0x53a5f9=_0x155eba['model']['createPositionAt'](_0x33ff19['parent']['nextSibling'],0x0),_0x3dd965=_0x526ab2['createRange'](_0x33ff19,_0x53a5f9);_0x4ae75a['markInsertion'](_0x3dd965);}else _0x526ab2['setSelection'](_0x526ab2['createRange'](_0x8098fb['end']));_0x8098fb['detach'](),_0x16c264['fire']('afterExecute',{'writer':_0x526ab2});});});}},ie=class extends _0x4ac61c{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x60f846=this['editor']['plugins']['get']('TrackChangesEditing');_0x60f846['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x60f846['enableCommand']('findNext'),_0x60f846['enableCommand']('findPrevious'),_0x60f846['enableCommand']('replace'),_0x60f846['enableCommand']('replaceAll');}['handleFindCommand'](_0x838a22,_0x5edde9,_0x32a74d={}){const _0x170543=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x838a22(_0x123bcb=>{let _0x22e5f4=('string'==typeof _0x5edde9?_0x170543['findByTextCallback'](_0x5edde9,_0x32a74d):_0x5edde9)(_0x123bcb);Array['isArray'](_0x22e5f4)&&(_0x22e5f4={'results':_0x22e5f4,'searchText':'string'==typeof _0x5edde9?_0x5edde9:''});const _0x58aa2f=_0x22e5f4['results']['filter'](_0x5d9b4a=>!0x1===this['_isInDeletionRange'](_0x5d9b4a,_0x123bcb['item']));return{..._0x22e5f4,'results':_0x58aa2f};},_0x32a74d);}_isInDeletionRange(_0xf43f12,_0x50f175){const _0x3963e0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x50f175,_0xf43f12['start']),this['editor']['model']['createPositionAt'](_0x50f175,_0xf43f12['end']));for(const _0x3c61ec of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3963e0['getIntersection'](_0x3c61ec['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 _0x4ac61c{afterInit(){const _0x3a847d=this['editor']['locale'],_0x1b993a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x952af,commandName:_0x526e37}of se)this['editor']['plugins']['has'](_0x952af)&&_0x1b993a['enableDefaultAttributesIntegration'](_0x526e37);_0x1b993a['descriptionFactory']['registerAttributeLabel']('fontSize',wt(_0x3a847d,'FORMAT_FONT_SIZE')),_0x1b993a['descriptionFactory']['registerAttributeLabel']('fontFamily',wt(_0x3a847d,'FORMAT_FONT_FAMILY')),_0x1b993a['descriptionFactory']['registerAttributeLabel']('fontColor',wt(_0x3a847d,'FORMAT_FONT_COLOR')),_0x1b993a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',wt(_0x3a847d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x796b58=this['editor'],_0x2270ed=_0x796b58['locale'];_0x796b58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43e918=>{const _0xd0f465=_0x2270ed['t'];if('formatInline'!=_0x43e918['type'])return;const {data:_0x484991}=_0x43e918;if(null!=_0x484991){if('fontSize'==_0x484991['commandName']){const _0x366793=_0x484991['commandParams'][0x0]['value'];if(_0x366793){const _0xd5abb=_0xd0f465(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x28b856=>_0x28b856['model']==_0x366793)['title'])['toLowerCase']();return{'type':'format','content':wt(_0x2270ed,'*Set\x20font\x20size:*\x20%0',_0xd5abb)};}return{'type':'format','content':wt(_0x2270ed,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x484991['commandName']){const _0x32fe20=_0x484991['commandParams'][0x0]['value'];return _0x32fe20?{'type':'format','content':wt(_0x2270ed,'*Set\x20font\x20family:*\x20%0',_0x32fe20)}:{'type':'format','content':wt(_0x2270ed,'*Reset\x20font\x20family*')};}if('fontColor'==_0x484991['commandName']){const _0x5e4c1a=_0x484991['commandParams'][0x0]['value'];if(_0x5e4c1a){const _0x8ad0f4=_0x243bf1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a18ad=>_0x3a18ad['model']==_0x5e4c1a);let _0x1f119f=_0x5e4c1a,_0x1bb5d7='';return _0x8ad0f4&&(_0x1f119f=_0x8ad0f4['label'],_0x1bb5d7=_0x530919(_0x2270ed,_0x1f119f)['toLowerCase']()),{'type':'format','content':wt(_0x2270ed,'*Set\x20font\x20color:*\x20%0',_0x1bb5d7)['trim'](),'color':{'value':_0x5e4c1a,'title':_0x1bb5d7||_0x1f119f}};}return{'type':'format','content':wt(_0x2270ed,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x484991['commandName']){const _0x11a976=_0x484991['commandParams'][0x0]['value'];if(_0x11a976){const _0x57eb15=_0x243bf1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x263040=>_0x263040['model']==_0x11a976);let _0x38961d=_0x11a976,_0x2aead4='';return _0x57eb15&&(_0x38961d=_0x57eb15['label'],_0x2aead4=_0x530919(_0x2270ed,_0x38961d)['toLowerCase']()),{'type':'format','content':wt(_0x2270ed,'*Set\x20font\x20background\x20color:*\x20%0',_0x2aead4)['trim'](),'color':{'value':_0x11a976,'title':_0x2aead4||_0x38961d}};}return{'type':'format','content':wt(_0x2270ed,'*Reset\x20font\x20background\x20color*')};}}});}},oe=class extends _0x4ac61c{afterInit(){const {plugins:_0x536d26}=this['editor'];_0x536d26['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x536d26['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0xc7202f,plugins:_0x1ae9d5,commands:_0x796da9}=this['editor'],_0x41d36d=_0x1ae9d5['get']('TrackChangesEditing');_0x796da9['get']('footnotesStyle')&&_0x41d36d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x796da9['get']('footnotesStart')&&_0x41d36d['enableDefaultAttributesIntegration']('footnotesStart'),_0x41d36d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',wt(_0xc7202f,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x41d36d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',wt(_0xc7202f,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x226a57=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x114cdc,commands:_0x2bf33d}=this['editor'];_0x2bf33d['get']('insertFootnote')&&_0x226a57['enableCommand']('insertFootnote'),_0x226a57['descriptionFactory']['registerElementLabel']('footnoteRef',_0x588a2f=>wt(_0x114cdc,'ELEMENT_FOOTNOTE_REF',_0x588a2f)),_0x226a57['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x33405d=>wt(_0x114cdc,'ELEMENT_FOOTNOTE_DEFINITION',_0x33405d)),_0x226a57['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x18b0b5=>wt(_0x114cdc,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x18b0b5));}},ae=class extends _0x4ac61c{afterInit(){const _0x5bd968=this['editor'],_0x1ed44f=_0x5bd968['plugins']['get']('TrackChangesEditing'),_0x5cb1b6=_0x5bd968['commands']['get']('copyFormat'),_0x2f47ec=_0x5bd968['commands']['get']('pasteFormat');_0x5cb1b6&&_0x2f47ec&&(_0x1ed44f['enableDefaultAttributesIntegration']('pasteFormat'),_0x1ed44f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x334cb6=this['editor'],_0x368415=_0x334cb6['locale'];_0x334cb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535591=>{if('formatBlock'!=_0x535591['type']&&'formatInline'!=_0x535591['type'])return;const {data:_0x4334b3}=_0x535591;if(_0x4334b3&&'pasteFormat'===_0x4334b3['commandName']){const _0x5bd9e0=[],_0x29286a=_0x4334b3['commandParams'][0x0];for(const [_0x2dbea3,_0x2a8086]of Object['entries'](_0x29286a))_0x5bd9e0['push'](ce(_0x334cb6,_0x2dbea3,_0x2a8086));return _0x5bd9e0['length']?{'type':'format','content':wt(_0x368415,'*Set\x20format\x20to:*\x20%0',_0x5bd9e0['join'](',\x20'))}:{'type':'format','content':wt(_0x368415,'*Remove\x20all\x20formatting*')};}});}};function ce(_0x3d4845,_0x49e6a5,_0x144618){const _0x431339=_0x3d4845['locale'],_0x2ffc42=_0x431339['t'],_0x23c9b2=_0x49e6a5['split'](/(?=[A-Z])/)['join']('\x20'),_0x2b5447=_0x2ffc42(_0x23c9b2['charAt'](0x0)['toUpperCase']()+_0x23c9b2['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x144618)return _0x2b5447;if('fontColor'===_0x49e6a5||'fontBackgroundColor'===_0x49e6a5){const _0x55f5f2=_0x243bf1(_0x3d4845['config']['get']('fontColor.colors'))['find'](_0x19698f=>_0x19698f['model']==_0x144618);return _0x2b5447+'\x20('+(_0x55f5f2?_0x530919(_0x431339,_0x55f5f2['label'])['toLowerCase']():_0x144618)+')';}if('fontSize'===_0x49e6a5&&isNaN(parseFloat(_0x144618))){const _0x1c5686=_0x3d4845['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3d4845['config']['get']('fontSize.options'))['find'](_0x19f2cd=>_0x19f2cd['model']==_0x144618);return _0x2b5447+'\x20('+(_0x1c5686?_0x2ffc42(_0x1c5686['title'])['toLowerCase']():_0x144618)+')';}return _0x2b5447+'\x20('+_0x144618+')';}var le=class extends _0x4ac61c{afterInit(){const _0x20ef4d=this['editor'];if(!_0x20ef4d['plugins']['has']('GeneralHtmlSupport')||!_0x20ef4d['plugins']['has']('DataSchema'))return;const _0x37a74b=_0x20ef4d['plugins']['get']('TrackChangesEditing'),_0x1a54d6=_0x20ef4d['plugins']['get']('GeneralHtmlSupport'),_0x114cfc=_0x20ef4d['plugins']['get']('DataSchema'),_0x59b58f=_0x20ef4d['locale'],_0x4cc978=new Set(['htmlContent']);for(const _0xe8ca4 of _0x114cfc['getDefinitionsForView'](/.*/,!0x1)){const _0x181547=_0xe8ca4['view'],_0x3acb35=_0x1a54d6['getGhsAttributeNameForElement'](_0x181547);_0x4cc978['add'](_0x3acb35),!_0xe8ca4['isInline']||_0xe8ca4['isObject']||'appliesToBlock'in _0xe8ca4&&_0xe8ca4['appliesToBlock']||_0x37a74b['descriptionFactory']['registerAttributeLabel'](_0x3acb35,_0x181547),_0xe8ca4['model']['startsWith']('html')&&_0x37a74b['descriptionFactory']['registerElementLabel'](_0xe8ca4['model'],_0x2376b8=>wt(_0x59b58f,'ELEMENT_HTML_TAG',[_0x2376b8,_0x181547]));}_0x37a74b['descriptionFactory']['registerAttributeLabel']('htmlContent',wt(_0x59b58f,'FORMAT_RAW_HTML_CONTENT')),_0x37a74b['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',wt(_0x59b58f,'FORMAT_HTML_LIST_ITEM')),_0x37a74b['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',wt(_0x59b58f,'FORMAT_HTML_BULLETED_LIST')),_0x37a74b['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',wt(_0x59b58f,'FORMAT_HTML_NUMBERED_LIST')),_0x37a74b['descriptionFactory']['registerDescriptionCallback'](_0x3a4924=>{if('attribute'!==_0x3a4924['type'])return;const _0x907be9=_0x3a4924['data'];if(!_0x907be9||!_0x4cc978['has'](_0x907be9['key']))return;if('htmlContent'===_0x907be9['key'])return{'type':'format','content':wt(_0x59b58f,'*Change\x20%0\x20content*',wt(_0x59b58f,'ELEMENT_RAW_HTML'))};const {setItems:_0x3da989,removeItems:_0x250c6f}=function(_0x381ecf,_0xf6d809,_0x5c5216){const _0x459df1=[],_0xfe1413=[],_0x226b69=_0x381ecf['styles']??{},_0x1071da=_0xf6d809['styles']??{};for(const _0xb4ae98 of new Set([...Object['keys'](_0x226b69),...Object['keys'](_0x1071da)]))_0x226b69[_0xb4ae98]!==_0x1071da[_0xb4ae98]&&(void 0x0===_0x1071da[_0xb4ae98]?_0xfe1413['push'](_0xb4ae98):_0x459df1['push'](_0xb4ae98+'\x20('+_0x1071da[_0xb4ae98]+')'));const _0x4bf0dc=wt(_0x5c5216,'FORMAT_HTML_CLASS'),_0x2dd8bd=new Set(_0x381ecf['classes']??[]),_0x3970c7=new Set(_0xf6d809['classes']??[]),_0x207215=[..._0x3970c7]['some'](_0x3fd9eb=>!_0x2dd8bd['has'](_0x3fd9eb)),_0x1184eb=[..._0x2dd8bd]['some'](_0x472793=>!_0x3970c7['has'](_0x472793));_0x207215&&_0x459df1['push'](_0x4bf0dc),_0x1184eb&&_0xfe1413['push'](_0x4bf0dc);const _0x1d8ec7=wt(_0x5c5216,'FORMAT_HTML_ATTRIBUTE'),_0x466d4f=_0x381ecf['attributes']??{},_0xef0442=_0xf6d809['attributes']??{};let _0x582e97=!0x1,_0x46e1ed=!0x1;for(const _0xcf68ce of new Set([...Object['keys'](_0x466d4f),...Object['keys'](_0xef0442)]))_0x466d4f[_0xcf68ce]!==_0xef0442[_0xcf68ce]&&(void 0x0===_0xef0442[_0xcf68ce]?_0x46e1ed=!0x0:_0x582e97=!0x0);return _0x582e97&&_0x459df1['push'](_0x1d8ec7),_0x46e1ed&&_0xfe1413['push'](_0x1d8ec7),{'setItems':_0x459df1,'removeItems':_0xfe1413};}(_0x907be9['oldValue']??{},_0x907be9['newValue']??{},_0x59b58f);if(!_0x3da989['length']&&!_0x250c6f['length'])return;const _0x64c9f=[];return _0x3da989['length']&&_0x64c9f['push'](wt(_0x59b58f,'*Set\x20format:*\x20%0',_0x3da989['join'](',\x20'))),_0x250c6f['length']&&_0x64c9f['push'](wt(_0x59b58f,'*Remove\x20format:*\x20%0',_0x250c6f['join'](',\x20'))),{'type':'format','content':_0x64c9f['join']('\x0a')};});}},ue=class extends _0x4ac61c{_headingOptions;afterInit(){const _0x19aa99=this['editor'];if(!_0x19aa99['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x19aa99['config']['get']('heading.options');const _0x495541=_0x19aa99['locale'],_0x58dbf6=_0x19aa99['plugins']['get']('TrackChangesEditing');_0x58dbf6['enableDefaultAttributesIntegration']('heading');for(const _0x382eea of this['_headingOptions'])'paragraph'!=_0x382eea['model']&&_0x58dbf6['descriptionFactory']['registerElementLabel'](_0x382eea['model'],_0x2a50d3=>{const _0xae8abb=this['_getHeadingLevel'](_0x382eea['model']);return null!==_0xae8abb?_0x4541db(_0x2a50d3,_0xae8abb):_0x510cd2(_0x2a50d3,_0x382eea['title']);});function _0x4541db(_0x336d85,_0x402fad){return wt(_0x495541,'ELEMENT_HEADING',[_0x336d85,_0x402fad]);}function _0x510cd2(_0x501ef7,_0x45d210){return wt(_0x495541,'ELEMENT_HEADING_CUSTOM',[_0x501ef7,_0x45d210]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x23987e=this['editor'],_0x12ee1a=_0x23987e['locale'];function _0x8c8af8(_0x25a693,_0x4965b9){return wt(_0x12ee1a,'ELEMENT_HEADING_CUSTOM',[_0x25a693,_0x4965b9]);}_0x23987e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x231503=>{if('formatBlock'!=_0x231503['type'])return;const {data:_0x21e673}=_0x231503;if(_0x21e673&&'heading'==_0x21e673['commandName']){const _0x387a1c=_0x21e673['commandParams'][0x0]['value'],_0x4728c9=this['_getHeadingLevel'](_0x387a1c);if(null!==_0x4728c9)return{'type':'format','content':wt(_0x12ee1a,'*Change\x20to:*\x20%0',(_0x1cc77c=0x1,_0x2ec6b9=_0x4728c9,wt(_0x12ee1a,'ELEMENT_HEADING',[_0x1cc77c,_0x2ec6b9])))};const _0x55d1cd=this['_headingOptions']['find'](_0x319d80=>_0x319d80['model']===_0x387a1c)['title'];return{'type':'format','content':wt(_0x12ee1a,'*Change\x20to:*\x20%0',_0x8c8af8(0x1,_0x55d1cd))};}var _0x1cc77c,_0x2ec6b9;});}_getHeadingLevel(_0x5bef36){const _0x413dc6=_0x5bef36['match'](/^heading(\d+)/);if(_0x413dc6)return _0x413dc6[0x1];const _0x4a1e31=this['_headingOptions']?.['find'](_0x1ab099=>_0x1ab099['model']==_0x5bef36);if(_0x4a1e31&&_0x4a1e31['view']){const _0x515080=_0x4a1e31['view'],_0x50406a=(_0x515080['name']??_0x515080)['match'](/^h(\d+)/);if(_0x50406a)return _0x50406a[0x1];}return null;}},de=class extends _0x4ac61c{afterInit(){const _0x2d5263=this['editor'];if(!_0x2d5263['plugins']['has']('HighlightEditing'))return;const _0x50e78d=_0x2d5263['plugins']['get']('TrackChangesEditing'),_0x43fe1f=_0x2d5263['locale'];_0x50e78d['enableDefaultAttributesIntegration']('highlight'),_0x50e78d['descriptionFactory']['registerAttributeLabel']('highlight',wt(_0x43fe1f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5e84fa=this['editor'],_0x2657b2=_0x5e84fa['locale'];_0x5e84fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xce8de7=>{if('formatInline'!=_0xce8de7['type'])return;const {data:_0x683abc}=_0xce8de7;if(_0x683abc&&'highlight'==_0x683abc['commandName']){const _0xb4c39e=_0x2657b2['t'],_0x3a87c8=_0x683abc['commandParams'][0x0]['value'];if(_0x3a87c8){const _0x5452c3=_0x5e84fa['config']['get']('highlight.options')['find'](_0x27ee8e=>_0x27ee8e['model']==_0x3a87c8),_0x3f4ae7=_0xb4c39e(_0x5452c3['title'])['toLowerCase']();return{'type':'format','content':wt(_0x2657b2,'*Set\x20highlight:*\x20%0',_0x3f4ae7),'color':{'value':_0x5452c3['color'],'title':_0x5452c3['title']}};}return{'type':'format','content':wt(_0x2657b2,'*Remove\x20highlight*',wt(_0x2657b2,'FORMAT_HIGHLIGHT'))};}});}},he=class extends _0x4ac61c{afterInit(){const _0x5d2546=this['editor'];if(!_0x5d2546['plugins']['has']('HorizontalLineEditing'))return;_0x5d2546['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x419619=_0x5d2546['plugins']['get']('TrackChangesEditing'),_0x2b70fb=_0x5d2546['locale'];_0x419619['descriptionFactory']['registerElementLabel']('horizontalLine',_0x34127a=>wt(_0x2b70fb,'ELEMENT_HORIZONTAL_LINE',_0x34127a));}},ge=class extends _0x4ac61c{afterInit(){const _0x34ff79=this['editor'];if(!_0x34ff79['plugins']['has']('HtmlEmbed'))return;const _0x399299=_0x34ff79['plugins']['get']('TrackChangesEditing'),_0x4dd7e4=_0x34ff79['locale'];_0x399299['descriptionFactory']['registerElementLabel']('rawHtml',_0x530a2c=>wt(_0x4dd7e4,'ELEMENT_HTML_EMBED',_0x530a2c)),_0x399299['enableDefaultAttributesIntegration']('htmlEmbed'),_0x399299['descriptionFactory']['registerDescriptionCallback'](_0x43c71b=>{if('attribute'!=_0x43c71b['type'])return;const {data:_0x2ff5c6}=_0x43c71b;if(_0x2ff5c6&&'value'==_0x2ff5c6['key']&&_0x43c71b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2e7972=wt(_0x4dd7e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x4dd7e4,'*Change\x20%0\x20content*',_0x2e7972)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4be634=this['editor'],_0x16835a=_0x4be634['locale'];_0x4be634['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x462089=>{if('formatBlock'!=_0x462089['type'])return;const {data:_0x4e1902}=_0x462089;if(_0x4e1902&&'htmlEmbed'==_0x4e1902['commandName']){const _0x4750b6=wt(_0x16835a,'ELEMENT_HTML_EMBED');return{'type':'format','content':wt(_0x16835a,'*Change\x20%0\x20content*',_0x4750b6)};}});}},fe=class extends _0x4ac61c{afterInit(){const _0x45c8fc=this['editor'];if(!_0x45c8fc['plugins']['has']('ImageEditing'))return;const _0x29dc21=_0x45c8fc['plugins']['get']('TrackChangesEditing'),_0x36c4f5=_0x45c8fc['plugins']['get']('ImageUtils'),_0xe2c0e=_0x45c8fc['locale'];_0x29dc21['enableCommand']('insertImage'),_0x29dc21['descriptionFactory']['registerElementLabel']('imageBlock',_0x4eed5f=>wt(_0xe2c0e,'ELEMENT_IMAGE',_0x4eed5f)),_0x29dc21['descriptionFactory']['registerElementLabel']('imageInline',_0x2c08c0=>wt(_0xe2c0e,'ELEMENT_INLINE_IMAGE',_0x2c08c0)),_0x29dc21['descriptionFactory']['registerElementLabel']('caption',()=>wt(_0xe2c0e,'ELEMENT_CAPTION')),_0x45c8fc['plugins']['has']('ImageUploadEditing')&&_0x29dc21['enableCommand']('uploadImage'),_0x45c8fc['plugins']['has']('ImageBlockEditing')&&_0x45c8fc['plugins']['has']('ImageInlineEditing')&&(_0x29dc21['enableCommand']('imageTypeInline',(_0x487376,_0x142cfd)=>{const _0x18b72e=_0x36c4f5['getClosestSelectedImageElement'](_0x45c8fc['model']['document']['selection']);_0x45c8fc['model']['change'](()=>{_0x29dc21['markBlockFormat'](_0x18b72e,{'commandName':'imageTypeInline','commandParams':[_0x142cfd]},[],'convertBlockImageToInline');});}),_0x29dc21['enableCommand']('imageTypeBlock',(_0x34bccf,_0x4d78b5)=>{_0x45c8fc['model']['change'](_0x2bc89f=>{let _0x3f3ba0=_0x36c4f5['getClosestSelectedImageElement'](_0x45c8fc['model']['document']['selection']),_0x42301a=_0x2bc89f['createRangeOn'](_0x3f3ba0);const _0x4f21a5=ot['fromPosition'](_0x42301a['start'],'toPrevious'),_0x4e7c56=ot['fromPosition'](_0x42301a['end'],'toNext');_0x29dc21['forceDefaultExecution'](()=>_0x34bccf(_0x4d78b5)),_0x3f3ba0=_0x36c4f5['getClosestSelectedImageElement'](_0x45c8fc['model']['document']['selection']),_0x42301a=_0x2bc89f['createRangeOn'](_0x3f3ba0);const _0x3fc633=_0x2bc89f['createRange'](_0x4f21a5,_0x4e7c56);_0x4f21a5['detach'](),_0x4e7c56['detach'](),_0x29dc21['markBlockFormat'](_0x3f3ba0,{'commandName':'imageTypeInline','commandParams':[_0x4d78b5]},[],'convertInlineImageToBlock'),_0x3fc633['start']['isBefore'](_0x42301a['start'])&&_0x29dc21['markInsertion'](_0x2bc89f['createRange'](_0x3fc633['start'],_0x42301a['start']),'convertInlineImageToBlock'),_0x42301a['end']['isBefore'](_0x3fc633['end'])&&_0x29dc21['markInsertion'](_0x2bc89f['createRange'](_0x42301a['end'],_0x3fc633['end']),'convertInlineImageToBlock');});}),_0x29dc21['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x29dc21['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x29dc21['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x29dc21['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x29dc21['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x29dc21['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4bcf99])=>{const _0x2e74b5=_0x29dc21['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5e8098=_0x4bcf99['start'],_0x1e0776=_0x4bcf99['end'];const _0x43cfde=_0x45c8fc['model']['schema']['getNearestSelectionRange'](_0x5e8098,'backward'),_0x4acc49=_0x45c8fc['model']['schema']['getNearestSelectionRange'](_0x1e0776,'forward');_0x43cfde['isCollapsed']&&(_0x5e8098=_0x43cfde['start']),_0x4acc49['isCollapsed']&&(_0x1e0776=_0x4acc49['end']),_0x2e74b5([_0x45c8fc['model']['createRange'](_0x5e8098,_0x1e0776)]);}),_0x29dc21['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x37161c),_0x29dc21['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x37161c)),_0x45c8fc['plugins']['has']('ImageCaptionEditing')&&(_0x29dc21['enableCommand']('toggleImageCaption',(_0x1a2424,_0x301462)=>{const _0x211842=_0x45c8fc['plugins']['get']('ImageCaptionUtils');let _0x12c3b=_0x36c4f5['getClosestSelectedImageElement'](_0x45c8fc['model']['document']['selection']),_0x34a91a=_0x211842['getCaptionFromImageModelElement'](_0x12c3b);_0x45c8fc['model']['change'](()=>{if(_0x34a91a)return void _0x29dc21['markDeletion'](_0x45c8fc['model']['createRangeOn'](_0x34a91a));const _0x145673=_0x36c4f5['isBlockImage'](_0x12c3b);_0x1a2424(_0x301462),_0x12c3b=_0x36c4f5['getClosestSelectedImageElement'](_0x45c8fc['model']['document']['selection']),_0x34a91a=_0x211842['getCaptionFromImageModelElement'](_0x12c3b),_0x29dc21['markInsertion'](_0x45c8fc['model']['createRangeOn'](_0x34a91a),_0x145673?null:'imageCaption');});}),_0x29dc21['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x37161c));const _0x46ed16=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x826873(_0x266eb7,_0x44ae3f){const _0xa5b6bd=_0x46ed16['findIndex'](({type:_0x216996,subType:_0x2a47ec})=>_0x266eb7['type']==_0x216996&&_0x266eb7['subType']==_0x2a47ec),_0x121423=_0x46ed16['findIndex'](({type:_0x277f5c,subType:_0x153697})=>_0x44ae3f['type']==_0x277f5c&&_0x44ae3f['subType']==_0x153697);if(_0xa5b6bd<0x0||_0x121423<0x0)return!0x1;const _0x231f39=_0x266eb7['getFirstRange'](),_0x234ab7=_0x44ae3f['getFirstRange']();if((0x0==_0xa5b6bd||0x1==_0xa5b6bd)&&0x2==_0x121423&&_0x231f39['isIntersecting'](_0x234ab7))return!0x0;if(0x2==_0xa5b6bd&&0x3==_0x121423){const _0x226131=_0x29dc21['_findSuggestions'](_0x231f39,'insertion')['filter'](({suggestion:_0x64dcc9,meta:_0xbdcc71})=>_0xbdcc71['isOwn']&&'convertInlineImageToBlock'==_0x64dcc9['subType']);if(_0x226131['length']>0x1&&_0x234ab7['end']['isEqual'](_0x231f39['start']))return!0x0;if(0x1==_0x226131['length']&&(_0x231f39['start']['isEqual'](_0x234ab7['end'])||_0x231f39['end']['isEqual'](_0x234ab7['start'])))return!0x0;}if(0x3==_0xa5b6bd&&0x3==_0x121423&&_0x231f39['start']['isBefore'](_0x234ab7['start'])){const _0x316ec1=_0x231f39['end']['nodeAfter'],_0x41e1bd=_0x234ab7['start']['nodeBefore'];return _0x36c4f5['isBlockImage'](_0x316ec1)&&_0x316ec1===_0x41e1bd;}return!0x1;}function _0x37161c(_0x2ca71d,_0x12aa79){return _0x826873(_0x2ca71d,_0x12aa79)?[_0x2ca71d,_0x12aa79]:_0x826873(_0x12aa79,_0x2ca71d)?[_0x12aa79,_0x2ca71d]:null;}_0x45c8fc['plugins']['has']('ImageResize')&&(_0x29dc21['enableDefaultAttributesIntegration']('resizeImage'),_0x29dc21['descriptionFactory']['registerAttributeLabel']('resizedWidth',wt(_0xe2c0e,'FORMAT_IMAGE_SIZE'))),_0x45c8fc['plugins']['has']('ImageTextAlternativeEditing')&&_0x29dc21['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x45c8fc['plugins']['has']('PictureEditing')&&_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0x1d8d0e=>{if('attribute'!=_0x1d8d0e['type'])return;const {data:_0x106af6}=_0x1d8d0e;return _0x106af6&&'sources'==_0x106af6['key']?{'type':'format','content':''}:void 0x0;}),_0x45c8fc['plugins']['has']('ImageSizeAttributes')&&_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0x3bc463=>{if('attribute'!=_0x3bc463['type'])return;const {data:_0x4fd197}=_0x3bc463;return!_0x4fd197||'width'!=_0x4fd197['key']&&'height'!=_0x4fd197['key']?void 0x0:{'type':'format','content':''};}),_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0xed2817=>{if(_0x46ed16['find'](({type:_0x1a081c,subType:_0x3d0f25})=>_0xed2817['type']==_0x1a081c&&_0xed2817['subType']==_0x3d0f25))return _0xed2817['previous']?{}:void 0x0;}),_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0x4d161e=>{if('insertion'==_0x4d161e['type']||'deletion'==_0x4d161e['type']){const _0x489553=_0x4d161e['getContainedElement']();if(_0x489553&&_0x489553['is']('element','caption'))return{'type':'insertion'==_0x4d161e['type']?'addObject':'removeObject','element':_0x489553,'quantity':0x1};}}),_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0x42c4d9=>'formatBlock'==_0x42c4d9['type']&&'convertInlineImageToBlock'==_0x42c4d9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x42c4d9['type']&&'convertBlockImageToInline'==_0x42c4d9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x29dc21['descriptionFactory']['registerDescriptionCallback'](_0x4018c4=>{if('attribute'!=_0x4018c4['type'])return;const {data:_0x230d0c}=_0x4018c4;if(!_0x230d0c||'alt'!=_0x230d0c['key'])return;const _0x40faab=_0x230d0c['newValue'];return _0x40faab?{'type':'format','content':wt(_0xe2c0e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x40faab+'\x22')}:{'type':'format','content':wt(_0xe2c0e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x50369d=this['editor'],_0x214576=_0x50369d['locale'];_0x50369d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14a769=>{if('formatBlock'!=_0x14a769['type']&&'formatInline'!=_0x14a769['type'])return;const {data:_0x21cf0a}=_0x14a769;if(_0x21cf0a){if('imageTextAlternative'==_0x21cf0a['commandName']){const _0xddf04a=_0x21cf0a['commandParams'][0x0]['newValue'];return _0xddf04a?{'type':'format','content':wt(_0x214576,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xddf04a+'\x22')}:{'type':'format','content':wt(_0x214576,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21cf0a['commandName']){const _0x38b0dd=_0x21cf0a['commandParams'][0x0]['width'];return _0x38b0dd?{'type':'format','content':wt(_0x214576,'*Set\x20image\x20width:*\x20%0',_0x38b0dd)}:{'type':'format','content':wt(_0x214576,'*Reset\x20image\x20width*')};}}});}},me=class extends _0x4ac61c{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x7c74e4=this['editor']['locale'],_0x9c5c0c=this['editor']['plugins']['get']('TrackChangesEditing');_0x9c5c0c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x9c5c0c['descriptionFactory']['registerDescriptionCallback'](_0x2ffff3=>{if('attribute'!=_0x2ffff3['type'])return;const {data:_0x23a751}=_0x2ffff3;return _0x23a751&&'src'==_0x23a751['key']?_0x23a751['newValue']&&_0x23a751['oldValue']?{'type':'format','content':wt(_0x7c74e4,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x177889=this['editor']['plugins']['get']('TrackChangesEditing');_0x177889['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x177889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x177889['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x177889['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x17e848=this['editor'],_0x118f30=_0x17e848['locale'];_0x17e848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ca4ef=>{if('formatBlock'!=_0x5ca4ef['type']&&'formatInline'!=_0x5ca4ef['type'])return;const {data:_0x521ad9}=_0x5ca4ef;return _0x521ad9&&'replaceImageSource'==_0x521ad9['commandName']?{'type':'format','content':wt(_0x118f30,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Ee=class extends _0x4ac61c{afterInit(){const _0x1be071=this['editor'];if(!_0x1be071['plugins']['has']('ImageStyleEditing'))return;const _0x4fdaff=_0x1be071['plugins']['get']('TrackChangesEditing'),_0x46efb3=_0x1be071['plugins']['get']('ImageUtils'),_0x3f5f58={};_0x4fdaff['enableCommand']('imageStyle',(_0x550475,_0x3f7685)=>{const _0x443177=_0x1be071['plugins']['get']('Users')['me'],_0x273538=_0x1be071['commands']['get']('imageStyle');let _0x436235=_0x46efb3['getClosestSelectedImageElement'](_0x1be071['model']['document']['selection']),_0x586aba=_0x1be071['model']['createRangeOn'](_0x436235),_0x53fff3=_0x273538['value'];if(_0x53fff3==_0x3f7685['value'])return;if(_0x3f7685['value']&&_0x46efb3['isInlineImage'](_0x436235)&&!_0x273538['isStyleEnabled'](_0x3f7685['value']))return;const _0x5e05f2={'commandName':'imageStyle','commandParams':[_0x3f7685],'formatGroupId':_0xe40876()};_0x1be071['model']['change'](()=>{if(_0x4fdaff['getSuggestions']()['filter'](_0x2859d4=>_0x2859d4['isInContent']&&_0x443177==_0x2859d4['author']&&('formatBlock'==_0x2859d4['type']||'formatInline'==_0x2859d4['type'])&&('imageStylePreApply'==_0x2859d4['subType']||'imageStylePostApply'==_0x2859d4['subType'])&&_0x2859d4['getFirstRange']()['isEqual'](_0x586aba))['forEach'](_0x3e321e=>_0x4fdaff['discardSuggestion'](_0x3e321e['head'])),_0x436235=_0x46efb3['getClosestSelectedImageElement'](_0x1be071['model']['document']['selection']),_0x586aba=_0x1be071['model']['createRangeOn'](_0x436235),_0x273538['refresh'](),_0x1be071['commands']['get']('imageTypeInline')['refresh'](),_0x1be071['commands']['get']('imageTypeBlock')['refresh'](),_0x53fff3=_0x273538['value'],_0x53fff3!=_0x3f7685['value'])return _0x46efb3['isInlineImage'](_0x436235)&&_0x273538['shouldConvertImageType'](_0x3f7685['value'],_0x436235)?(_0x550475({..._0x3f7685,'setImageSizes':!0x1}),_0x436235=_0x46efb3['getClosestSelectedImageElement'](_0x1be071['model']['document']['selection']),void _0x4fdaff['markBlockFormat'](_0x436235,{..._0x5e05f2,'commandReversedParams':[{'value':_0x53fff3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46efb3['isBlockImage'](_0x436235)?_0x4fdaff['markBlockFormat'](_0x436235,_0x5e05f2,[],'imageStylePostApply'):_0x4fdaff['markInlineFormat'](_0x586aba,_0x5e05f2,'imageStylePostApply'));});});for(const _0x4bf097 of _0x1be071['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3f5f58[_0x4bf097['name']]=_0x4bf097['title']['toLowerCase']();_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ef2e6])=>{_0x46efb3['setImageNaturalSizeAttributes'](_0x4ef2e6['getContainedElement']());}),_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x396eab,_0x27d83f)=>{_0x4fdaff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x396eab,{'commandName':_0x27d83f['commandName'],'commandParams':_0x27d83f['commandReversedParams']});}),_0x4fdaff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3cbec0,_0x2cf442){return _0x20e4f7(_0x3cbec0,_0x2cf442)?[_0x3cbec0,_0x2cf442]:_0x20e4f7(_0x2cf442,_0x3cbec0)?[_0x2cf442,_0x3cbec0]:null;});const _0x25bd57=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20e4f7(_0x3e5612,_0x3ee1c0){const _0x30e200=_0x25bd57['findIndex'](({type:_0x2c330d,subType:_0x31933d})=>_0x3e5612['type']==_0x2c330d&&_0x3e5612['subType']==_0x31933d),_0x4bc2e5=_0x25bd57['findIndex'](({type:_0x2e7327,subType:_0x2bb358})=>_0x3ee1c0['type']==_0x2e7327&&_0x3ee1c0['subType']==_0x2bb358);if(_0x30e200<0x0||_0x4bc2e5<0x0)return!0x1;const _0x200832=_0x3e5612['getFirstRange'](),_0x276617=_0x3ee1c0['getFirstRange']();if((0x0==_0x30e200||0x1==_0x30e200)&&0x2==_0x4bc2e5&&_0x200832['isIntersecting'](_0x276617))return!0x0;if(0x2==_0x30e200&&0x3==_0x4bc2e5){const _0x22c56c=_0x4fdaff['_findSuggestions'](_0x200832,'insertion')['filter'](({suggestion:_0x3c673d,meta:_0x1b2ed6})=>_0x1b2ed6['isOwn']&&'convertInlineImageToBlock'==_0x3c673d['subType']);if(_0x22c56c['length']>0x1&&_0x276617['end']['isEqual'](_0x200832['start']))return!0x0;if(0x1==_0x22c56c['length']&&(_0x200832['start']['isEqual'](_0x276617['end'])||_0x200832['end']['isEqual'](_0x276617['start'])))return!0x0;}if(0x3==_0x30e200&&0x3==_0x4bc2e5&&_0x200832['start']['isBefore'](_0x276617['start'])){const _0x40e400=_0x200832['end']['nodeAfter'],_0x12015d=_0x276617['start']['nodeBefore'];return _0x46efb3['isBlockImage'](_0x40e400)&&_0x40e400===_0x12015d;}return!0x1;}_0x1be071['model']['document']['registerPostFixer'](()=>{let _0x176e5e=!0x1;const _0x990ca1=Array['from'](_0x1be071['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c9c70,data:_0x22f31d}of _0x990ca1){const {group:_0x1e95bd,type:_0x82f071,subType:_0x2a4868,id:_0x2e9c9d}=nt(_0x1c9c70);if('suggestion'==_0x1e95bd&&_0x4fdaff['hasSuggestion'](_0x2e9c9d)){if('formatBlock'==_0x82f071&&('imageStylePreApply'==_0x2a4868||'imageStylePostApply'==_0x2a4868)){const _0x57aa3a=_0x4fdaff['getSuggestion'](_0x2e9c9d);if(_0x22f31d['newRange']){const _0x3dfdca=_0x57aa3a['getFirstRange']()['getContainedElement']();if(_0x46efb3['isBlockImage'](_0x3dfdca))continue;_0x4fdaff['discardSuggestion'](_0x57aa3a),_0x176e5e=!0x0;}}if('insertion'==_0x82f071&&'imageCaption'==_0x2a4868&&!_0x22f31d['newRange']){const _0x368a29=_0x4fdaff['getSuggestion'](_0x2e9c9d);_0x368a29['next']&&_0x368a29['next']['isInContent']&&(_0x4fdaff['discardSuggestion'](_0x368a29['next']),_0x176e5e=!0x0);}}}return _0x176e5e;}),this['_registerLegacyDescription'](_0x3f5f58);}_registerLegacyDescription(_0xbc0c03){const _0x207e31=this['editor'],_0x4a65d2=_0x207e31['locale'];_0x207e31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf803=>{if('formatBlock'!=_0x2cf803['type']&&'formatInline'!=_0x2cf803['type'])return;const {data:_0x19393b}=_0x2cf803;if(!_0x19393b||'imageStyle'!=_0x19393b['commandName'])return;const _0x3a47d6=_0x19393b['commandParams'][0x0]['value'];return _0x22d548('side'===_0x3a47d6?wt(_0x4a65d2,'FORMAT_SIDE_IMAGE'):_0xbc0c03[_0x3a47d6]||_0x3a47d6);function _0x22d548(_0x2d2dc1){return{'type':'format','content':wt(_0x4a65d2,'*Format:*\x20%0',_0x2d2dc1)};}});}},Te=class extends _0x4ac61c{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x2e8703){super(_0x2e8703),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x1d3b1f=this['editor'],_0x493345=_0x1d3b1f['commands']['get']('importWord'),_0x5cff0c=_0x1d3b1f['commands']['get']('trackChanges');_0x493345&&(_0x493345['on']('execute',(_0x215fea,[,_0x3f2a55])=>{this['_trackChangesValueDuringImport']=_0x5cff0c['value'],_0x3f2a55['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x493345,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x493345,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5cff0c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1d3b1f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x31b708,_0x4d5a47){const {suggestions:_0x4fad06}=_0x4d5a47,_0x243435=this['editor']['commands']['get']('trackChanges'),_0x464f96=_0x243435['value'];this['_trackChangesValueDuringImport']!==_0x464f96&&(_0x243435['execute'](),this['_trackChangesExecuted']=!0x0),_0x4fad06&&_0x4fad06['forEach'](({id:_0x1c75eb,type:_0x53e8cc,author:_0x1252f,created_at:_0x5933b9})=>{const _0x15c996={'id':_0x1c75eb,'type':_0x53e8cc,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1252f,'createdAt':_0x5933b9?new Date(_0x5933b9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x15c996);});}},_e=class extends _0x4ac61c{afterInit(){const _0x32b2b8=this['editor'],_0x5630a6=_0x32b2b8['plugins']['get']('TrackChangesEditing');if(_0x32b2b8['plugins']['has']('IndentEditing')&&(_0x5630a6['enableCommand']('indent'),_0x5630a6['enableCommand']('outdent')),_0x32b2b8['plugins']['has']('IndentBlock')){for(const _0x584101 of['indentBlock','outdentBlock'])_0x5630a6['enableDefaultAttributesIntegration'](_0x584101);if(_0x32b2b8['plugins']['has']('ListEditing')){for(const _0x5953eb of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5630a6['enableDefaultAttributesIntegration'](_0x5953eb);}}const _0x3bd09e=_0x32b2b8['locale'];_0x5630a6['descriptionFactory']['registerAttributeLabel']('blockIndent',wt(_0x3bd09e,'FORMAT_INDENT')),_0x5630a6['descriptionFactory']['registerAttributeLabel']('blockIndentList',wt(_0x3bd09e,'FORMAT_INDENT')),_0x5630a6['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',wt(_0x3bd09e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x41d5bb=this['editor'],_0x2eac35=_0x41d5bb['locale'],_0x1f98eb=_0x41d5bb['plugins']['get']('TrackChangesEditing');_0x1f98eb['descriptionFactory']['registerDescriptionCallback'](_0x251111=>{if('formatBlock'!=_0x251111['type'])return;const {data:_0x451459}=_0x251111;if(!_0x451459)return;if('indentBlock'!=_0x451459['commandName']&&'outdentBlock'!=_0x451459['commandName'])return;const _0x195369=_0x251111['getItems']()[0x0],_0x537495=_0x1f98eb['descriptionFactory']['getItemLabel'](_0x195369);return'indentBlock'==_0x451459['commandName']?{'type':'format','content':wt(_0x2eac35,'*Indent:*\x20%0',_0x537495)}:'outdentBlock'==_0x451459['commandName']?{'type':'format','content':wt(_0x2eac35,'*Outdent:*\x20%0',_0x537495)}:void 0x0;});}},pe=class extends _0x4ac61c{static get requires(){return[Tt];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Le=class extends _0x4ac61c{afterInit(){const _0x15461d=this['editor'];if(!_0x15461d['plugins']['has']('LinkEditing'))return;const _0x45344c=_0x15461d['plugins']['get']('TrackChangesEditing'),_0x112750=_0x15461d['commands']['get']('link');_0x45344c['enableDefaultAttributesIntegration']('link'),_0x45344c['enableDefaultAttributesIntegration']('unlink');for(const _0x394969 of _0x112750['manualDecorators'])_0x45344c['descriptionFactory']['registerAttributeLabel'](_0x394969['id'],'link\x20('+_0x394969['label']['toLowerCase']()+')');_0x45344c['descriptionFactory']['registerDescriptionCallback'](_0x5cc72f=>{if('attribute'!=_0x5cc72f['type'])return;const {data:_0x28f98f}=_0x5cc72f;if(!_0x28f98f||'linkHref'!=_0x28f98f['key'])return;const _0x3d41d0=_0x28f98f['newValue'],_0x52e7b5=_0x15461d['locale'];return{'type':'format','content':null==_0x3d41d0?wt(_0x52e7b5,'*Remove\x20link*'):wt(_0x52e7b5,'*Set\x20link:*\x20%0','\x22'+_0x3d41d0+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x507d55=this['editor'],_0x2a2877=_0x507d55['locale'];_0x507d55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4181a3=>{if('formatInline'!=_0x4181a3['type'])return;const {data:_0x4db5d0}=_0x4181a3;if(_0x4db5d0){if('link'==_0x4db5d0['commandName']){const _0x414822=_0x4db5d0['commandParams'][0x0];return{'type':'format','content':wt(_0x2a2877,'*Set\x20link:*\x20%0','\x22'+_0x414822+'\x22')};}return'unlink'==_0x4db5d0['commandName']?{'type':'format','content':wt(_0x2a2877,'*Remove\x20link*')}:void 0x0;}});}},Ie=class extends _0x4ac61c{afterInit(){const _0x495255=this['editor'],_0x2f302e=_0x495255['locale'];if(!_0x495255['plugins']['has']('LegacyListEditing'))return;const _0x449251=_0x495255['plugins']['get']('TrackChangesEditing'),_0x2a861a=_0x495255['plugins']['has']('LegacyTodoListEditing');function _0x3bb3a4(_0x167d3d){return()=>{const _0x24ae1c=_0x495255['model']['document']['selection'],_0x3f5d1f=_0x495255['commands']['get'](_0x167d3d);if(_0x3f5d1f['value'])return void _0x495255['execute']('paragraph',{});const _0x20f85a=_0x167d3d['slice'](0x0,-0x4),_0xbb3e7c=function(_0x3f111f,_0x11d8b8,_0x222789){let _0x226f74=Array['from'](_0x3f111f)['filter'](_0x3e426e=>function(_0x578dec,_0x338956){return _0x338956['checkChild'](_0x578dec['parent'],'listItem')&&!_0x338956['isObject'](_0x578dec);}(_0x3e426e,_0x222789));_0x226f74=_0x226f74['filter'](_0x2f1e48=>!_0x2f1e48['is']('element','listItem')||_0x2f1e48['getAttribute']('listType')!=_0x11d8b8);const _0x5f457e=new Set();for(const _0x52037a of _0x226f74)_0x52037a['is']('element','listItem')?_0x5f457e['add'](Ae(_0x52037a)):_0x5f457e['add'](_0x52037a);return Array['from'](_0x5f457e);}(_0x24ae1c['getSelectedBlocks'](),_0x20f85a,_0x495255['model']['schema']);_0x495255['model']['change'](()=>{for(const _0x5e7cee of _0xbb3e7c)_0x449251['markBlockFormat'](_0x5e7cee,{'commandName':_0x167d3d,'commandParams':[{'forceValue':!_0x3f5d1f['value']}],'formatGroupId':'blockName'},be(_0x5e7cee));});};}function _0x232e0a(_0x565069){return()=>{const _0x2f584d=function(_0x4b44de){let _0x363e50=Array['from'](_0x4b44de);const _0x556bbf=_0x363e50['findIndex'](_0x20e9de=>'listItem'!=_0x20e9de['name']);return _0x556bbf>-0x1&&(_0x363e50=_0x363e50['slice'](0x0,_0x556bbf)),_0x363e50;}(_0x495255['model']['document']['selection']['getSelectedBlocks']()),_0x4b28a4=_0x495255['model']['createRange'](_0x495255['model']['createPositionAt'](_0x2f584d[0x0],'before'),_0x495255['model']['createPositionAt'](_0x2f584d[_0x2f584d['length']-0x1],'end'));_0x495255['model']['change'](()=>{_0x449251['markBlockFormat'](_0x4b28a4,{'commandName':_0x565069,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4a55aa){const _0x31cba1=new Set();for(const _0x2403ee of _0x4a55aa){let _0x3f8fe9=_0x2403ee['nextSibling'];for(;_0x3f8fe9&&_0x3f8fe9['getAttribute']('listIndent')>_0x2403ee['getAttribute']('listIndent');)_0x31cba1['add'](_0x3f8fe9),_0x3f8fe9=_0x3f8fe9['nextSibling'];}return Array['from'](_0x31cba1);}(_0x2f584d));});};}_0x449251['enableCommand']('numberedList',_0x3bb3a4('numberedList')),_0x449251['enableCommand']('bulletedList',_0x3bb3a4('bulletedList')),_0x2a861a&&_0x449251['enableCommand']('todoList',_0x3bb3a4('todoList')),_0x449251['enableCommand']('indentList',_0x232e0a('indentList')),_0x449251['enableCommand']('outdentList',_0x232e0a('outdentList')),_0x2a861a&&_0x449251['enableCommand']('checkTodoList',()=>{const _0x1ae6e2=_0x495255['commands']['get']('checkTodoList'),_0x9c2248=Array['from'](_0x1ae6e2['_selectedElements']);_0x9c2248['filter'](_0x488a65=>_0x488a65['getAttribute']('todoListChecked')!=_0x1ae6e2['value']),_0x495255['model']['change'](()=>{for(const _0x40cbbf of _0x9c2248)_0x449251['markBlockFormat'](_0x40cbbf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1ae6e2['value']}]});});}),_0x449251['descriptionFactory']['registerElementLabel']('listItem',_0x39007e=>wt(_0x2f302e,'ELEMENT_LIST_ITEM',_0x39007e)),_0x449251['descriptionFactory']['registerDescriptionCallback'](_0x536bf6=>{if('formatBlock'!=_0x536bf6['type']&&'formatInline'!=_0x536bf6['type'])return;const {data:_0x575a63}=_0x536bf6;if(_0x575a63){if('numberedList'==_0x575a63['commandName']||'bulletedList'==_0x575a63['commandName']||'todoList'==_0x575a63['commandName'])switch(_0x575a63['commandName']['replace']('List','')){case'bulleted':return _0x1685a2(wt(_0x2f302e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1685a2(wt(_0x2f302e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1685a2(wt(_0x2f302e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x575a63['commandName'])return{'type':'format','content':wt(_0x2f302e,'*Indent:*\x20%0',wt(_0x2f302e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x575a63['commandName'])return{'type':'format','content':wt(_0x2f302e,'*Outdent:*\x20%0',wt(_0x2f302e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x575a63['commandName'])return _0x575a63['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x2f302e,'*Check\x20item*')}:{'type':'format','content':wt(_0x2f302e,'*Uncheck\x20item*')};}function _0x1685a2(_0x2f7b0d){return{'type':'format','content':wt(_0x2f302e,'*Change\x20to:*\x20%0',_0x2f7b0d)};}});}};function Ae(_0x1459ab){const _0x22c768=_0x1459ab['getAttribute']('listIndent');if(0x0==_0x22c768)return _0x1459ab;let _0x1e17b1=_0x1459ab;for(;_0x1459ab['previousSibling']&&_0x1459ab['previousSibling']['is']('element','listItem');){const _0x2ef63e=_0x1459ab['previousSibling']['getAttribute']('listIndent');if(_0x2ef63e==_0x22c768)_0x1e17b1=_0x1459ab['previousSibling'];else{if(_0x2ef63e<_0x22c768)break;}_0x1459ab=_0x1459ab['previousSibling'];}return _0x1e17b1;}function be(_0x23d103){const _0x3d31c7=[];if(_0x23d103['is']('element','listItem')&&_0x23d103['getAttribute']('listIndent')>0x0){let _0x3e900d=_0x23d103['nextSibling'];for(;_0x3e900d&&'listItem'==_0x3e900d['name']&&_0x3e900d['getAttribute']('listIndent')==_0x23d103['getAttribute']('listIndent');)_0x3d31c7['push'](_0x3e900d),_0x3e900d=_0x3e900d['nextSibling'];}return _0x3d31c7;}var Ce=class extends _0x4ac61c{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36b343=this['editor']['config']['get']('list.properties'),_0x1cf7c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x36b343['styles']&&_0x1cf7c4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36b343['reversed']&&_0x1cf7c4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36b343['startIndex']&&_0x1cf7c4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1cf7c4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x44fa4f,_0x2cabe1={}){const _0x4c4a08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3986cb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c4a08['markMultiRangeBlockFormat'](_0x3986cb,{'commandName':'listStyle','commandParams':[{'type':_0x2cabe1['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x46e691,_0x338e43={}){const _0x4fbf5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28e220=this['_getSuggestionBlocks'](_0x16aefc=>_0x16aefc['is']('element','listItem')&&'numbered'===_0x16aefc['getAttribute']('listType'));if(_0x28e220['length']<0x1)return;const _0xe69782=_0x28e220['map'](_0xb13c82=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb13c82,'before'),this['editor']['model']['createPositionAt'](_0xb13c82,0x0)));this['editor']['model']['change'](()=>{_0x4fbf5c['markMultiRangeBlockFormat'](_0xe69782,{'commandName':'listReversed','commandParams':[{'reversed':_0x338e43['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x4c1b43,_0x5464f9={}){const _0x36975c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15a1c1=this['_getSuggestionBlocks'](_0x3f8294=>_0x3f8294['is']('element','listItem')&&'numbered'===_0x3f8294['getAttribute']('listType'));if(_0x15a1c1['length']<0x1)return;const _0x32f31d=_0x15a1c1['map'](_0x21d488=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x21d488,'before'),this['editor']['model']['createPositionAt'](_0x21d488,0x0)));this['editor']['model']['change'](()=>{_0x36975c['markMultiRangeBlockFormat'](_0x32f31d,{'commandName':'listStart','commandParams':[{'startIndex':_0x5464f9['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x1dedea){if('formatBlock'!=_0x1dedea['type']&&'formatInline'!=_0x1dedea['type'])return;const _0x36e2e4=this['editor']['locale'],{data:_0x501c6a}=_0x1dedea;if(!_0x501c6a)return;let _0x1dd374,_0x460e8a;switch(_0x501c6a['commandName']){case'listStyle':_0x1dd374='*Change\x20to:*\x20%0',_0x460e8a={'type':'format','content':wt(_0x36e2e4,_0x1dd374,wt(_0x36e2e4,this['_getTranslationKeyForListStyle'](_0x501c6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1dd374=_0x501c6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x460e8a={'type':'format','content':wt(_0x36e2e4,_0x1dd374)};break;case'listStart':_0x1dd374='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x460e8a={'type':'format','content':wt(_0x36e2e4,_0x1dd374,_0x501c6a['commandParams'][0x0]['startIndex'])};}return _0x460e8a;}_getSuggestionBlocksForListStyle(){const _0x3ba1cb=this['editor']['plugins']['get']('LegacyListUtils');let _0xb2f991=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xb2f991[0x0]?.['is']('element','listItem')&&_0xb2f991['unshift'](..._0x3ba1cb['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xb2f991[_0xb2f991['length']-0x1]?.['is']('element','listItem')&&_0xb2f991['push'](..._0x3ba1cb['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xb2f991=[...new Set(_0xb2f991)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xb2f991=_0xb2f991['filter'](_0x5e7938=>_0x5e7938['is']('element','listItem'))),_0xb2f991;}_getSuggestionBlocks(_0x3d05ef){const _0x1768cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x29ead1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3d05ef)['map'](_0x4b8e03=>{const _0x259a6e=this['editor']['model']['createPositionAt'](_0x4b8e03,0x0);return[..._0x1768cf['getSiblingNodes'](_0x259a6e,'backward'),..._0x1768cf['getSiblingNodes'](_0x259a6e,'forward')];})['flat']();return _0x29ead1=[...new Set(_0x29ead1)],_0x29ead1;}_getTranslationKeyForListStyle(_0x28d4b8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x28d4b8)||'default')['toUpperCase']()+'_LIST_'+_0x28d4b8['toUpperCase']()['replace'](/-/g,'_');}},ke=class extends _0x4ac61c{afterInit(){const _0x3531d8=this['editor'];if(!_0x3531d8['plugins']['has']('MediaEmbedEditing'))return;const _0x14f77d=_0x3531d8['plugins']['get']('TrackChangesEditing'),_0x1c4e22=_0x3531d8['locale'];_0x14f77d['enableCommand']('mediaEmbed'),_0x14f77d['descriptionFactory']['registerElementLabel']('media',_0x16673c=>wt(_0x1c4e22,'ELEMENT_MEDIA',_0x16673c)),_0x3531d8['plugins']['has']('MediaEmbedResizeEditing')&&(_0x14f77d['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x14f77d['descriptionFactory']['registerDescriptionCallback'](_0x17d95b=>{if('attribute'!=_0x17d95b['type'])return;const {data:_0x26c444}=_0x17d95b;if(!_0x26c444||'resizedWidth'!=_0x26c444['key'])return;const _0x15f99a=_0x17d95b['getContainedElement']();if(!_0x15f99a||!_0x15f99a['is']('element','media'))return;const _0x2797f5=wt(_0x1c4e22,'FORMAT_MEDIA_SIZE');return{'type':'format','content':wt(_0x1c4e22,'*Set\x20format:*\x20%0',_0x2797f5)};}));}},Re=class extends _0x4ac61c{afterInit(){const _0x522033=this['editor'];if(!_0x522033['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x39c4fa=_0x522033['plugins']['get']('TrackChangesEditing'),_0x1ec0be=_0x522033['locale'],_0x5d48f9=_0x522033['plugins']['get']('MediaEmbedStyleEditing'),_0x382f4={};for(const _0xd952e6 of _0x5d48f9['normalizedStyles'])_0x382f4[_0xd952e6['name']]=_0xd952e6['title']['toLowerCase']();const _0x2ab075=_0x5d48f9['normalizedStyles']['find'](_0xfec0d8=>_0xfec0d8['isDefault'])?.['name'];_0x39c4fa['enableCommand']('mediaStyle',(_0x21c247,_0x5e1667)=>{const _0xffe82d=_0x522033['plugins']['get']('Users')['me'],_0x205123=_0x522033['commands']['get']('mediaStyle'),_0x253101=function(_0x2b80fb){const _0x4aef4c=_0x2b80fb['model']['document']['selection']['getSelectedElement']();return _0x4aef4c&&_0x4aef4c['is']('element','media')?_0x4aef4c:null;}(_0x522033);if(!_0x253101)return;const _0x5bdceb=_0x522033['model']['createRangeOn'](_0x253101);let _0x34a427=_0x205123['value'];if(_0x34a427==_0x5e1667['value'])return;const _0x5db26a={'commandName':'mediaStyle','commandParams':[_0x5e1667],'formatGroupId':_0xe40876()};_0x522033['model']['change'](()=>{_0x39c4fa['getSuggestions']()['filter'](_0x464e9f=>_0x464e9f['isInContent']&&_0xffe82d==_0x464e9f['author']&&'formatBlock'==_0x464e9f['type']&&'mediaStylePostApply'==_0x464e9f['subType']&&_0x464e9f['getFirstRange']()['isEqual'](_0x5bdceb))['forEach'](_0x450266=>_0x39c4fa['discardSuggestion'](_0x450266['head'])),_0x205123['refresh'](),_0x34a427=_0x205123['value'],_0x34a427!=_0x5e1667['value']&&_0x39c4fa['markBlockFormat'](_0x253101,{..._0x5db26a,'commandReversedParams':[{'value':'string'==typeof _0x34a427?_0x34a427:null}]},[],'mediaStylePostApply');});}),_0x39c4fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x39c4fa['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x22fb14,_0x52ba29)=>{_0x39c4fa['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x22fb14,{'commandName':_0x52ba29['commandName'],'commandParams':_0x52ba29['commandReversedParams']});}),_0x39c4fa['descriptionFactory']['registerDescriptionCallback'](_0xa44d0a=>{if('formatBlock'!=_0xa44d0a['type'])return;const {data:_0x4af669}=_0xa44d0a;if(!_0x4af669||'mediaStyle'!=_0x4af669['commandName'])return;const _0x3052ef=_0x4af669['commandParams'][0x0]['value']||_0x2ab075;if(!_0x3052ef)return;const _0x475eb8=_0x382f4[_0x3052ef]||_0x3052ef;return{'type':'format','content':wt(_0x1ec0be,'*Format:*\x20%0',_0x475eb8)};});}},Ne=class extends _0x4ac61c{afterInit(){const _0x45520c=this['editor'];_0x45520c['plugins']['has']('MentionEditing')&&_0x45520c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x4ac61c{afterInit(){const _0x2ed587=this['editor'];if(!_0x2ed587['plugins']['has']('MergeFieldsEditing'))return;const _0x3b747c=_0x2ed587['plugins']['get']('TrackChangesEditing'),_0x425bcd=_0x2ed587['locale'];_0x3b747c['enableCommand']('insertMergeField'),_0x3b747c['enableCommand']('insertMergeFieldBlock'),_0x3b747c['enableCommand']('insertMergeFieldImage'),_0x3b747c['descriptionFactory']['registerElementLabel']('mergeField',_0x224e8f=>wt(_0x425bcd,'ELEMENT_MERGE_FIELD',_0x224e8f)),_0x3b747c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x12fe1b=>wt(_0x425bcd,'ELEMENT_MERGE_FIELD',_0x12fe1b)),_0x3b747c['descriptionFactory']['registerDescriptionCallback'](_0x54f492=>{if('insertion'!=_0x54f492['type']&&'deletion'!=_0x54f492['type'])return;const _0x354f63=_0x54f492['getContainedElement']();if(null==_0x354f63)return;const _0x102962=_0x2ed587['plugins']['get']('MergeFieldsEditing');let _0x30bff2;switch(_0x102962['getMergeFieldType'](_0x354f63)){case null:return;case'image':{const _0x6b0d99=_0x102962['unwrapAffixes'](_0x354f63['getAttribute']('src'));_0x30bff2=_0x102962['getLabel'](_0x6b0d99)||_0x6b0d99;break;}default:{const _0x407ef6=_0x354f63['getAttribute']('id');_0x30bff2=_0x102962['getLabel'](_0x407ef6)||_0x407ef6;break;}}return'insertion'==_0x54f492['type']?{'type':'insertion','content':wt(_0x425bcd,'*Insert:*\x20%0','\x22'+_0x30bff2+'\x22\x20'+wt(_0x425bcd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':wt(_0x425bcd,'*Remove:*\x20%0','\x22'+_0x30bff2+'\x22\x20'+wt(_0x425bcd,'ELEMENT_MERGE_FIELD'))};});}},Se=class extends _0x4ac61c{afterInit(){const _0x49ec34=this['editor'],_0x44d4f6=_0x49ec34['plugins']['get']('TrackChangesEditing');_0x49ec34['plugins']['has']('MultiLevelList')&&(_0x44d4f6['enableDefaultAttributesIntegration']('multiLevelList'),_0x44d4f6['descriptionFactory']['registerDescriptionCallback'](_0x3b3587=>this['handleDescriptions'](_0x3b3587)));}handleDescriptions(_0x42034e){const _0xaa4ec4=this['editor']['locale'],{data:_0x2ac65e}=_0x42034e,_0x309dc4={'type':'format','content':''};if(_0x2ac65e&&'listMarkerStyle'==_0x2ac65e['key']){if(!_0x2ac65e['oldValue'])return{'type':'format','content':wt(_0xaa4ec4,'*Set\x20format:*\x20%0',wt(_0xaa4ec4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ac65e['newValue']+')'};if(!_0x2ac65e['newValue']){let _0x2932af=_0x42034e['head'];for(;_0x2932af;){if(_0x2932af['data']&&'listType'==_0x2932af['data']['key']&&_0x2932af['data']['newValue'])return _0x309dc4;_0x2932af=_0x2932af['next'];}return{'type':'format','content':wt(_0xaa4ec4,'*Remove\x20format:*\x20%0',wt(_0xaa4ec4,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ac65e['oldValue']+')'};}}}},Me=class extends _0x4ac61c{afterInit(){const _0x55484a=this['editor'];if(!_0x55484a['plugins']['has']('PageBreakEditing'))return;_0x55484a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x52d6b7=_0x55484a['plugins']['get']('TrackChangesEditing'),_0xf4bf78=_0x55484a['locale'];_0x52d6b7['descriptionFactory']['registerElementLabel']('pageBreak',_0x16ea84=>wt(_0xf4bf78,'ELEMENT_PAGE_BREAK',_0x16ea84));}},Oe=class extends _0x4ac61c{afterInit(){const _0x40e6a3=this['editor'];if(!_0x40e6a3['plugins']['has']('Paragraph'))return;const _0x43a6a6=_0x40e6a3['locale'],_0x2ecec9=_0x40e6a3['plugins']['get']('TrackChangesEditing');_0x2ecec9['descriptionFactory']['registerElementLabel']('paragraph',_0x4d70fa=>wt(_0x43a6a6,'ELEMENT_PARAGRAPH',_0x4d70fa)),_0x2ecec9['enableDefaultAttributesIntegration']('paragraph'),_0x2ecec9['enableCommand']('insertParagraph');const _0x337a55=_0x2ecec9['descriptionFactory'];_0x337a55['registerDescriptionCallback'](_0x1efd48=>{if('insertion'!==_0x1efd48['type'])return;const {start:_0x4fd65e,end:_0x4a5bc3}=_0x1efd48['getFirstRange']();if(!_0x4fd65e['isTouching'](_0x4a5bc3)||!_0x4fd65e['nodeAfter'])return;const _0x2427ee=_0x40e6a3['model']['schema'],_0x57ef74=_0x4fd65e['nodeAfter'];return _0x2427ee['isBlock'](_0x57ef74)&&!_0x2427ee['isLimit'](_0x57ef74)&&_0x2427ee['checkChild'](_0x57ef74,'$text')?{'type':'insertion','content':wt(_0x43a6a6,'*Insert:*\x20%0',_0x337a55['getItemLabel'](_0x57ef74,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1003e3=this['editor'],_0x28a4b2=_0x1003e3['locale'];_0x1003e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565528=>{if('formatBlock'!=_0x565528['type'])return;const {data:_0x9ea04}=_0x565528;return _0x9ea04&&'paragraph'==_0x9ea04['commandName']?{'type':'format','content':wt(_0x28a4b2,'*Change\x20to:*\x20%0',wt(_0x28a4b2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},we=class extends _0x4ac61c{afterInit(){const _0x124e9b=this['editor'];_0x124e9b['commands']['get']('replaceSource')&&_0x124e9b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Be=class extends _0x4ac61c{afterInit(){const _0x2debaf=this['editor'];_0x2debaf['plugins']['has']('RemoveFormatEditing')&&(_0x2debaf['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x363e05=this['editor'];_0x363e05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x98270f=>{if('formatBlock'!=_0x98270f['type']&&'formatInline'!=_0x98270f['type'])return;const {data:_0x5cd250}=_0x98270f;return _0x5cd250&&'removeFormat'==_0x5cd250['commandName']?{'type':'format','content':wt(_0x363e05['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x4ac61c{afterInit(){const _0x1c3ad6=this['editor'];if(!_0x1c3ad6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43c6f5=_0x1c3ad6['plugins']['get']('TrackChangesEditing');_0x43c6f5['enableCommand']('goToPreviousRestrictedEditingException'),_0x43c6f5['enableCommand']('goToNextRestrictedEditingException');const _0x343541=_0x1c3ad6['plugins']['get']('RestrictedEditingModeEditing');_0x343541['enableCommand']('trackChanges'),_0x343541['enableCommand']('acceptSuggestion'),_0x343541['enableCommand']('discardSuggestion'),_0x343541['enableCommand']('acceptAllSuggestions'),_0x343541['enableCommand']('discardAllSuggestions'),_0x343541['enableCommand']('acceptSelectedSuggestions'),_0x343541['enableCommand']('discardSelectedSuggestions');}},ve=class extends _0x4ac61c{afterInit(){const _0x100fcc=this['editor'];if(!_0x100fcc['plugins']['has']('ShiftEnter'))return;const _0x291b75=_0x100fcc['plugins']['get']('TrackChangesEditing');_0x291b75['enableCommand']('shiftEnter'),_0x291b75['descriptionFactory']['registerElementLabel']('softBreak',_0x566f0b=>wt(_0x100fcc['locale'],'ELEMENT_LINE_BREAK',_0x566f0b));}};function De(_0x4f96dd,_0x473eec,_0x3a0a47){const _0x45ab8c=[];for(const _0x58f63b of _0x473eec['getItems']())_0x58f63b['hasAttribute'](_0x4f96dd)&&_0x45ab8c['push'](_0x3a0a47['createRangeOn'](_0x58f63b));return _0x45ab8c;}var Ue=class extends _0x4ac61c{afterInit(){const _0xce2eef=this['editor'],_0x5297e6=_0xce2eef['plugins']['get']('TrackChangesEditing');_0xce2eef['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x5297e6['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x5ddf8d=this['editor'],_0x1ec049=_0x5ddf8d['model'],_0x189c0c=_0x5ddf8d['locale'],_0x10b676=_0x5ddf8d['plugins']['get']('TrackChangesEditing'),_0x559094='restrictedEditingException',_0x530d9f=_0x5ddf8d['commands']['get'](_0x559094);_0x10b676['enableCommand'](_0x559094,(_0x16f449,_0x406958={})=>{const _0xcad9a7=_0x1ec049['document']['selection'];if(_0xcad9a7['isCollapsed'])return void _0x16f449(_0x406958);const _0x1e1dd0=void 0x0!==_0x406958['forceValue']?_0x406958['forceValue']:!_0x530d9f['value'];_0x1ec049['change'](()=>{const _0x1382b2=Array['from'](_0xcad9a7['getRanges']());for(const _0x263d42 of _0x1382b2){const _0x3eb34d=_0x1e1dd0?[_0x263d42]:De(_0x559094,_0x263d42,_0x1ec049);for(const _0x38e9f7 of _0x3eb34d)_0x10b676['markInlineFormat'](_0x38e9f7,{'commandName':_0x559094,'commandParams':[{'forceValue':_0x1e1dd0}]});}});}),_0x10b676['descriptionFactory']['registerDescriptionCallback'](_0x4a3059=>{if('formatBlock'!=_0x4a3059['type']&&'formatInline'!=_0x4a3059['type'])return;const {data:_0x156955}=_0x4a3059;return _0x156955&&_0x156955['commandName']==_0x559094?_0x156955['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x189c0c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x189c0c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x538e71=this['editor'],_0x24e34c=_0x538e71['locale'],_0x4a7d53=_0x538e71['plugins']['get']('TrackChangesEditing'),_0x2f8da0='restrictedEditingExceptionBlock',_0x508491=this['editor']['commands']['get'](_0x2f8da0);_0x4a7d53['enableCommand'](_0x2f8da0,(_0x42d3e7,_0x3f9082={})=>{const _0x37e89a=this['editor']['model']['document']['selection'],_0x5c4e7f=_0x3f9082&&void 0x0!==_0x3f9082['forceValue']?_0x3f9082['forceValue']:!_0x508491['value'];let _0x59012e=[];if(_0x5c4e7f){const _0xb9b6f4=Array['from'](_0x37e89a['getSelectedBlocks']())['filter'](_0x507fb2=>function(_0x5133d0){return!!_0x5133d0['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x507fb2)||function(_0x136b7d,_0x9b2535){const _0x2afa1f=_0x9b2535['createContext'](_0x136b7d['parent']);return!!_0x9b2535['checkChild'](_0x2afa1f,'restrictedEditingException')&&!!_0x9b2535['checkChild'](_0x2afa1f['push']('restrictedEditingException'),_0x136b7d);}(_0x507fb2,this['editor']['model']['schema']));_0x59012e=kt(_0xb9b6f4,_0x538e71['model']);}else{const _0xb1e8e7=Array['from'](_0x37e89a['getSelectedBlocks']())['map'](_0x36047e=>function(_0x466f54){let _0x3f7458=_0x466f54;for(;_0x3f7458['parent'];){if('restrictedEditingException'==_0x3f7458['parent']['name'])return _0x3f7458;_0x3f7458=_0x3f7458['parent'];}return null;}(_0x36047e))['filter'](_0x3008e1=>!!_0x3008e1);_0x59012e=kt(_0xb1e8e7,_0x538e71['model']);}_0x538e71['model']['change'](()=>{for(const _0x552be1 of _0x59012e)_0x4a7d53['markBlockFormat'](_0x552be1,{'commandName':_0x2f8da0,'commandParams':[{'forceValue':_0x5c4e7f}]});});}),_0x4a7d53['descriptionFactory']['registerDescriptionCallback'](_0xaaa2ca=>{const {data:_0x255390}=_0xaaa2ca;if(_0x255390&&_0x255390['commandName']==_0x2f8da0)return _0x255390['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x24e34c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':wt(_0x24e34c,'FORMAT_RESTRICTED_DISABLED')};});}},Pe=class extends _0x4ac61c{afterInit(){const _0x346331=this['editor'];_0x346331['plugins']['has']('Style')&&_0x346331['plugins']['has']('DataSchema')&&(_0x346331['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x102698=this['editor'],_0x569eac=_0x102698['locale'];_0x102698['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e81d9=>{if('formatBlock'!=_0x4e81d9['type']&&'formatInline'!=_0x4e81d9['type'])return;const {data:_0x35cfb1}=_0x4e81d9;return _0x35cfb1&&'style'===_0x35cfb1['commandName']?_0x35cfb1['commandParams'][0x0]['forceValue']?{'type':'format','content':wt(_0x569eac,'*Set\x20format:*\x20%0',_0x35cfb1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':wt(_0x569eac,'*Remove\x20format:*\x20%0',_0x35cfb1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},xe=class extends _0x4ac61c{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x3b35e7){super(_0x3b35e7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x42c6ae=this['editor'],_0x4a69f9=_0x42c6ae['model']['document']['selection'];if(!_0x42c6ae['plugins']['has']('TableEditing'))return;const _0x47d3f4=_0x42c6ae['locale'],_0x325a41=_0x42c6ae['plugins']['get']('TrackChangesEditing'),_0x400c46=_0x42c6ae['plugins']['get']('TableUtils');_0x325a41['descriptionFactory']['registerElementLabel']('table',_0x58f15e=>wt(_0x47d3f4,'ELEMENT_TABLE',_0x58f15e)),this['_setupColumnsRowsFixing'](),_0x325a41['enableCommand']('insertTable'),_0x325a41['enableCommand']('selectTableRow'),_0x325a41['enableCommand']('selectTableColumn');for(const _0x4c4a20 of['insertTableRowAbove','insertTableRowBelow']){const _0x1ca45e=_0x42c6ae['commands']['get'](_0x4c4a20);_0x325a41['enableCommand'](_0x4c4a20,_0x425406=>{_0x42c6ae['model']['change'](_0x42e4f3=>{_0x425406();const _0x348fa1='above'===_0x1ca45e['order'],_0x2a713d=_0x400c46['getSelectionAffectedTableCells'](_0x4a69f9),_0x5a28b9=_0x400c46['getRowIndexes'](_0x2a713d),_0x2fbe5d=_0x348fa1?_0x5a28b9['first']-0x1:_0x5a28b9['last']+0x1,_0xcf194f=_0x2a713d[0x0]['findAncestor']('table'),_0x34f37b=_0x400c46['createTableWalker'](_0xcf194f,{'startRow':_0x2fbe5d,'endRow':_0x2fbe5d}),_0x4ca4b6=Array['from'](_0x34f37b)['map'](_0x3a29ab=>_0x42e4f3['createRangeOn'](_0x3a29ab['cell']));_0x325a41['markMultiRangeInsertion'](_0x4ca4b6,'tableRow');});});}for(const _0x511b49 of['insertTableColumnLeft','insertTableColumnRight']){const _0xdaf1ad=_0x42c6ae['commands']['get'](_0x511b49);_0x325a41['enableCommand'](_0x511b49,_0x1012fb=>{_0x42c6ae['model']['change'](_0x553b11=>{_0x1012fb();const _0x165568='left'===_0xdaf1ad['order'],_0x27090a=_0x400c46['getSelectionAffectedTableCells'](_0x4a69f9),_0x188d58=_0x400c46['getColumnIndexes'](_0x27090a),_0x588bba=_0x165568?_0x188d58['first']-0x1:_0x188d58['last']+0x1,_0x436f51=_0x27090a[0x0]['findAncestor']('table'),_0x5e6ea1=_0x400c46['createTableWalker'](_0x436f51,{'startRow':0x0,'column':_0x588bba,'includeAllSlots':!0x1}),_0x3874bd=Array['from'](_0x5e6ea1)['map'](_0x14092a=>_0x553b11['createRangeOn'](_0x14092a['cell']));_0x325a41['markMultiRangeInsertion'](_0x3874bd,'tableColumn');});});}for(const _0x58f99b of['removeTableRow','removeTableColumn']){const _0x4e64d9=_0x58f99b['substr'](0xb),_0x30a8de=_0x4e64d9['toLowerCase'](),_0x36d9ee=_0x30a8de['substr'](0x0,0x3)+'span',_0x5d8f40='table'+_0x4e64d9,_0x618183='min'+_0x4e64d9,_0x419e9d='max'+_0x4e64d9;_0x325a41['enableCommand'](_0x58f99b,()=>{_0x42c6ae['model']['change'](_0x2b2f96=>{const _0x15951f=_0x400c46['getSelectionAffectedTableCells'](_0x4a69f9),_0x306cfc=_0x15951f[0x0]['findAncestor']('table');let _0x1af3da;if('removeTableRow'==_0x58f99b){const _0xde4535=_0x400c46['getRowIndexes'](_0x15951f);_0x1af3da={'startRow':_0xde4535['first'],'endRow':_0xde4535['last'],'includeAllSlots':!0x0};}else{const _0x4d1905=_0x400c46['getColumnIndexes'](_0x15951f);_0x1af3da={'startColumn':_0x4d1905['first'],'endColumn':_0x4d1905['last'],'includeAllSlots':!0x0};}const _0x39831d=_0x400c46['createTableWalker'](_0x306cfc,_0x1af3da),_0x3be7b6=Array['from'](_0x39831d)['map'](({cell:_0x1a7ac4})=>_0x1a7ac4),_0x3989db=Ge(_0x3be7b6['filter'](_0x14c806=>_0x14c806['hasAttribute'](_0x36d9ee))),_0x244985=Ge(_0x3be7b6['filter'](_0x1a6c2e=>!_0x1a6c2e['hasAttribute'](_0x36d9ee)))['map'](_0x1fd4f5=>_0x2b2f96['createRangeOn'](_0x1fd4f5)),_0x506244=_0x325a41['markMultiRangeDeletion'](_0x244985,_0x5d8f40);if(_0x506244&&('tableRow'==_0x506244['subType']||'tableColumn'==_0x506244['subType'])){const _0x216924=this['_getSuggestionCoords'](_0x506244);for(const _0x2c4fd5 of _0x3989db){const _0x4433e5=_0x2b2f96['createRangeOn'](_0x2c4fd5),_0x48f3fb=_0x400c46['getCellLocation'](_0x2c4fd5),_0x5d669a=_0x2c4fd5['getAttribute'](_0x36d9ee)-0x1,_0x10dcb3=_0x216924[_0x618183],_0x5941da=_0x216924[_0x419e9d];_0x10dcb3<=_0x48f3fb[_0x30a8de]&&_0x48f3fb[_0x30a8de]+_0x5d669a<=_0x5941da&&_0x506244['addRange'](_0x4433e5);}}});});}function _0x204a95(_0x38b565){const _0x1cba3a=Array['from'](_0x4a69f9['getRanges']())['map'](_0x5ba1cd=>at['fromRange'](_0x5ba1cd));_0x42c6ae['model']['change'](_0x80aaf6=>{const _0x464272=_0x80aaf6['batch'];_0x38b565=_0x38b565['filter'](_0xab153c=>'$graveyard'!=_0xab153c['root']['rootName']),_0x80aaf6['setSelection'](_0x38b565),_0x42c6ae['commands']['get']('removeTableRow')['refresh'](),_0x42c6ae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x42c6ae['model']['enqueueChange'](()=>{_0x42c6ae['model']['enqueueChange'](_0x464272,_0x3d4fa8=>{const _0x127281=_0x1cba3a['filter'](_0x5d1b72=>'$graveyard'!=_0x5d1b72['root']['rootName']);_0x127281['length']>0x0&&_0x3d4fa8['setSelection'](_0x127281);for(const _0x2443fc of _0x1cba3a)_0x2443fc['detach']();});});});}function _0x3d1498(_0x491401){_0x42c6ae['model']['change'](_0x52dfc0=>{const _0x430a76=Array['from'](_0x4a69f9['getRanges']())['map'](_0x4b9fe5=>at['fromRange'](_0x4b9fe5)),_0x4c0591=[];for(const _0x2bf9ed of _0x491401)for(const _0x1b9d93 of _0x2bf9ed['getItems']({'shallow':!0x0}))_0x4c0591['push'](_0x1b9d93);for(const _0x307257 of _0x4c0591)'$graveyard'!=_0x307257['root']['rootName']&&(_0x52dfc0['setSelection'](_0x52dfc0['createPositionAt'](_0x307257,0x0)),_0x42c6ae['commands']['get']('removeTableColumn')['refresh'](),_0x42c6ae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1dff3b=_0x430a76['filter'](_0x260878=>'$graveyard'!=_0x260878['root']['rootName']);_0x1dff3b['length']>0x0&&_0x52dfc0['setSelection'](_0x1dff3b);for(const _0x4910e7 of _0x430a76)_0x4910e7['detach']();});}function _0x3821d8(_0x1b2396,_0x76e830){return _0x76e830['every'](_0x3f7548=>_0x1b2396['some'](_0x37510f=>_0x37510f['end']['isEqual'](_0x3f7548['start'])||_0x3f7548['end']['isEqual'](_0x37510f['start'])));}function _0x4ac471(_0xd08b40,_0x5de4dd){return!_0xd08b40['some'](_0x281e7d=>_0x5de4dd['some'](_0x35f511=>_0x281e7d['isIntersecting'](_0x35f511)))&&_0xd08b40['some'](_0x459bea=>_0x5de4dd['some'](_0x281941=>_0x459bea['end']['isTouching'](_0x281941['start'])));}_0x325a41['descriptionFactory']['registerDescriptionCallback'](_0x2ea884=>{if('insertion'!=_0x2ea884['type']&&'deletion'!=_0x2ea884['type'])return;const _0xa73c12=_0x2ea884['getContainedElement']();if(null!=_0xa73c12&&_0xa73c12['is']('element','table')){if('insertion'==_0x2ea884['type']){const _0x4fb5c8=_0x2ea884['getItems']()['filter'](_0x234637=>_0x234637['is']('$textProxy'))['map'](_0xbc0cb5=>_0xbc0cb5['data']);if(_0x4fb5c8['length'])return{'type':'insertion','content':wt(_0x47d3f4,'*Insert:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fb5c8['join']('\x20')+'\x22'))};}if('deletion'==_0x2ea884['type']){const _0x5324d5=_0x2ea884['getItems']()['filter'](_0x8890c4=>_0x8890c4['is']('$textProxy'))['map'](_0x361746=>_0x361746['data']);if(_0x5324d5['length'])return{'type':'deletion','content':wt(_0x47d3f4,'*Remove:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5324d5['join']('\x20')+'\x22'))};}}}),_0x325a41['descriptionFactory']['registerDescriptionCallback'](_0x33825f=>{if('tableRow'==_0x33825f['subType']){const _0x1d7855=_0x33825f['getItems']()['filter'](_0x158dbe=>_0x158dbe['is']('$textProxy'))['map'](_0x3c6e58=>_0x3c6e58['data']),_0x33a1a2=this['_getSuggestionCoords'](_0x33825f),_0x2716fc=_0x33a1a2['maxRow']-_0x33a1a2['minRow']+0x1;if('insertion'==_0x33825f['type'])return _0x1d7855['length']?{'type':'insertion','content':wt(_0x47d3f4,'*Insert:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2716fc,'\x22'+_0x1d7855['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x47d3f4,'*Insert:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_ROW',_0x2716fc))};if('deletion'==_0x33825f['type'])return _0x1d7855['length']?{'type':'deletion','content':wt(_0x47d3f4,'*Remove:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2716fc,'\x22'+_0x1d7855['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x47d3f4,'*Remove:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_ROW',_0x2716fc))};}if('tableColumn'==_0x33825f['subType']){const _0x34e396=_0x33825f['getItems']()['filter'](_0x43fba6=>_0x43fba6['is']('$textProxy'))['map'](_0x2f98ee=>_0x2f98ee['data']),_0x3d8274=this['_getSuggestionCoords'](_0x33825f),_0x1c245b=_0x3d8274['maxColumn']-_0x3d8274['minColumn']+0x1;if('insertion'==_0x33825f['type'])return _0x34e396['length']?{'type':'insertion','content':wt(_0x47d3f4,'*Insert:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c245b,'\x22'+_0x34e396['join']('\x20')+'\x22']))}:{'type':'insertion','content':wt(_0x47d3f4,'*Insert:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_COLUMN',_0x1c245b))};if('deletion'==_0x33825f['type'])return _0x34e396['length']?{'type':'deletion','content':wt(_0x47d3f4,'*Remove:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c245b,'\x22'+_0x34e396['join']('\x20')+'\x22']))}:{'type':'deletion','content':wt(_0x47d3f4,'*Remove:*\x20%0',wt(_0x47d3f4,'ELEMENT_TABLE_COLUMN',_0x1c245b))};}}),_0x325a41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x204a95),_0x325a41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x204a95),_0x325a41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d1498),_0x325a41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d1498),_0x325a41['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3821d8),_0x325a41['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3821d8),_0x325a41['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4ac471),_0x325a41['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4ac471);}_acceptFormatSuggestionCallbackFactory(){const _0x517e7e=this['editor'],_0x34cc1e=_0x517e7e['model']['document']['selection'];return(_0x100f41,_0x1b72ba)=>{_0x517e7e['model']['change'](_0x50a35b=>{const {commandName:_0x3cb5fb,commandParams:_0x57a268}=_0x1b72ba;let _0x201e4f=_0x100f41[0x0]['end']['nodeBefore'];_0x57a268&&_0x57a268[0x0]&&!0x1===_0x57a268[0x0]['forceValue']&&(_0x201e4f=_0x100f41[0x0]['start']['nodeAfter']);const _0x539b3d=_0x50a35b['createRangeIn'](_0x201e4f);if('$graveyard'==_0x539b3d['root']['rootName'])return;const _0x562613=Array['from'](_0x34cc1e['getRanges']())['map'](_0x288d03=>at['fromRange'](_0x288d03));_0x50a35b['setSelection'](_0x539b3d),_0x517e7e['commands']['get'](_0x3cb5fb)['refresh'](),_0x57a268['push']({'forceDefaultExecution':!0x0}),_0x517e7e['execute'](_0x3cb5fb,..._0x57a268);const _0xe9ce26=_0x562613['filter'](_0x13b057=>'$graveyard'!=_0x13b057['root']['rootName']);_0xe9ce26['length']>0x0&&_0x50a35b['setSelection'](_0xe9ce26);for(const _0x3d6aee of _0x562613)_0x3d6aee['detach']();});};}_getCoordsForCells(_0x87961){const _0x4f8953=this['editor']['plugins']['get']('TableUtils');let _0x264df0=Number['MAX_SAFE_INTEGER'],_0x36566d=Number['MIN_SAFE_INTEGER'],_0xef0bb0=Number['MAX_SAFE_INTEGER'],_0x17abc6=Number['MIN_SAFE_INTEGER'];for(const _0x134d85 of _0x87961){if('$graveyard'==_0x134d85['root']['rootName'])continue;const {row:_0x466274,column:_0x4b4ad5}=_0x4f8953['getCellLocation'](_0x134d85),_0x39ec7d=_0x134d85['hasAttribute']('rowspan')?_0x134d85['getAttribute']('rowspan')-0x1:0x0,_0x5ded0e=_0x134d85['hasAttribute']('colspan')?_0x134d85['getAttribute']('colspan')-0x1:0x0;_0x264df0=_0x466274<_0x264df0?_0x466274:_0x264df0,_0x36566d=_0x466274+_0x39ec7d>_0x36566d?_0x466274+_0x39ec7d:_0x36566d,_0xef0bb0=_0x4b4ad5<_0xef0bb0?_0x4b4ad5:_0xef0bb0,_0x17abc6=_0x4b4ad5+_0x5ded0e>_0x17abc6?_0x4b4ad5+_0x5ded0e:_0x17abc6;}return{'minRow':_0x264df0,'maxRow':_0x36566d,'minColumn':_0xef0bb0,'maxColumn':_0x17abc6};}_setupColumnsRowsFixing(){const _0x23ecfa=this['editor'],_0x3e9f84=_0x23ecfa['plugins']['get']('TrackChangesEditing'),_0x55086a=_0x23ecfa['plugins']['get']('TableUtils');_0x23ecfa['model']['document']['on']('change:data',()=>{const _0x1ab455=Array['from'](_0x23ecfa['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x119bdf,data:_0x1f1849}of _0x1ab455){const {group:_0x3f62d2,id:_0x7204e0,subType:_0x4d2371}=nt(_0x119bdf);if('suggestion'!=_0x3f62d2)continue;if(null!=_0x1f1849['oldRange'])continue;const _0x47151f=_0x3e9f84['getSuggestion'](_0x7204e0);this['_tablePostFixingSubtypes']['includes'](_0x4d2371)&&this['_tableSuggestions']['add'](_0x47151f);}},{'priority':'low'});const _0x29f27c=(_0x43019b,_0x51fa2c)=>{let _0x1c5a8f=!0x1;const _0x15347d=_0x51fa2c['createRangeOn'](_0x43019b),_0xc98b79=_0x43019b['findAncestor']('table'),_0x17c5d5=_0x55086a['getCellLocation'](_0x43019b);for(const _0xf14fd2 of this['_tableSuggestions']){const _0x25ff89=_0xf14fd2['subType'],_0x103aac=_0x25ff89['startsWith']('tablePaste'),_0x3e3878=_0x25ff89['substr'](_0x103aac?0xa:0x5),_0xd37a16=_0x3e3878['toLowerCase'](),_0x12e5ed=_0xd37a16['substr'](0x0,0x3)+'span',_0x31cfea='min'+_0x3e3878,_0x5bfa86='max'+_0x3e3878;if(!_0xf14fd2['isInContent'])continue;if(_0xc98b79!=_0xf14fd2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf14fd2['isIntersectingWithRange'](_0x15347d))continue;const _0x417b7d=_0x43019b['hasAttribute'](_0x12e5ed)?_0x43019b['getAttribute'](_0x12e5ed)-0x1:0x0,_0x2d9bf8=this['_getSuggestionCoords'](_0xf14fd2),_0x1694e6=_0x2d9bf8[_0x31cfea],_0xf4189f=_0x2d9bf8[_0x5bfa86];_0x1694e6<=_0x17c5d5[_0xd37a16]&&_0x17c5d5[_0xd37a16]+_0x417b7d<=_0xf4189f&&(_0xf14fd2['addRange'](_0x15347d),_0x1c5a8f=!0x0);}return _0x1c5a8f;};_0x23ecfa['model']['document']['registerPostFixer'](_0x39acae=>{let _0x43c800=!0x1;for(const _0x52a10d of _0x23ecfa['model']['document']['differ']['getChanges']())if('insert'==_0x52a10d['type']){if('tableRow'==_0x52a10d['name']){for(const _0x5d6d3f of _0x52a10d['position']['nodeAfter']['getChildren']())_0x43c800=_0x43c800||_0x29f27c(_0x5d6d3f,_0x39acae);}else'tableCell'==_0x52a10d['name']&&(_0x43c800=_0x43c800||_0x29f27c(_0x52a10d['position']['nodeAfter'],_0x39acae));}return _0x43c800;});}_getSuggestionCoords(_0x34c3eb){return this['_getCoordsForCells'](_0x34c3eb['getRanges']()['map'](_0x5d721f=>_0x5d721f['start']['nodeAfter']));}};function Ge(_0x5d9412){return Array['from'](new Set(_0x5d9412)['values']());}var He=class extends _0x4ac61c{static get requires(){return[xe];}afterInit(){const _0x4814de=this['editor'],_0x38032a=_0x4814de['model']['document']['selection'],_0x8e9db=_0x4814de['locale'];if(!_0x4814de['plugins']['has']('TableEditing'))return;const _0x56f83d=_0x4814de['plugins']['get']('TrackChangesEditing'),_0x2b6285=_0x4814de['plugins']['get']('TableUtils'),_0x551941=_0x4814de['plugins']['get'](xe);_0x551941['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x56f83d['enableCommand']('mergeTableCells',()=>{const _0x1243ea=_0x2b6285['getSelectionAffectedTableCells'](_0x4814de['model']['document']['selection']);_0x4814de['model']['change'](()=>{_0x56f83d['markMultiRangeBlockFormat'](_0x1243ea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4814de['commands']['get']('mergeTableCells')['on']('execute',(_0x19b552,_0x104153)=>{_0x4814de['commands']['get']('trackChanges')['value']&&(_0x104153['length']>0x0&&_0x104153[_0x104153['length']-0x1]&&_0x104153[_0x104153['length']-0x1]['forceDefaultExecution']||_0x56f83d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x19b552['stop']());},{'priority':'highest'});for(const _0x5c1986 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2c53c0=_0x4814de['commands']['get'](_0x5c1986);_0x56f83d['enableCommand'](_0x5c1986,()=>{const _0x348e50=_0x4814de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4867c3=>_0x4867c3['is']('element','tableCell')),_0x32db81=_0x2c53c0['value'];_0x4814de['model']['change'](()=>{_0x56f83d['markMultiRangeBlockFormat']([_0x348e50,_0x32db81],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x327530 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x482732=_0x4814de['commands']['get'](_0x327530);_0x56f83d['enableCommand'](_0x327530,()=>{const _0x4df5c0=_0x2b6285['getSelectionAffectedTableCells'](_0x4814de['model']['document']['selection']),_0x5813c9=_0x4df5c0[0x0]['findAncestor']('table'),_0x1d177c=new Set();for(const _0x2c4295 of _0x4df5c0){const {column:_0x3bba3e,row:_0x4b35a0}=_0x2b6285['getCellLocation'](_0x2c4295),_0xfa5758='horizontally'==_0x482732['direction']?_0x2b6285['createTableWalker'](_0x5813c9,{'startRow':_0x4b35a0,'endRow':_0x4b35a0,'includeAllSlots':!0x0}):_0x2b6285['createTableWalker'](_0x5813c9,{'column':_0x3bba3e,'includeAllSlots':!0x0});for(const {cell:_0x53965f}of _0xfa5758)_0x1d177c['add'](_0x53965f);}_0x4814de['model']['change'](()=>{_0x56f83d['markMultiRangeBlockFormat'](_0x4df5c0,{'commandName':_0x327530,'commandParams':[]},Array['from'](_0x1d177c),_0x327530);});});}_0x56f83d['descriptionFactory']['registerDescriptionCallback'](_0x3cc0fa=>{if('formatBlock'!=_0x3cc0fa['type']&&'formatInline'!=_0x3cc0fa['type'])return;const {data:_0x7551f7}=_0x3cc0fa;return _0x7551f7&&'mergeTableCells'==_0x7551f7['commandName']?{'type':'format','content':wt(_0x8e9db,'*Merge\x20cells*')}:void 0x0;}),_0x56f83d['descriptionFactory']['registerDescriptionCallback'](_0x2072f6=>{if('formatBlock'!=_0x2072f6['type']&&'formatInline'!=_0x2072f6['type'])return;const {data:_0x38e093}=_0x2072f6;return _0x38e093?'splitTableCellVertically'==_0x38e093['commandName']?{'type':'format','content':wt(_0x8e9db,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x38e093['commandName']?{'type':'format','content':wt(_0x8e9db,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x537c1d=_0x551941['_acceptFormatSuggestionCallbackFactory']();for(const _0x22d60a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x56f83d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22d60a,'accept',_0x537c1d);for(const _0x392f0e of['splitTableCellVertically','splitTableCellHorizontally'])_0x56f83d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x392f0e,'accept',_0x4c792f=>{_0x4814de['model']['change'](_0x591759=>{const _0x5a6e6e=Array['from'](_0x4c792f)['filter'](_0x3df166=>'$graveyard'!=_0x3df166['root']['rootName']&&!!_0x3df166['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x5a6e6e['length'])return;const _0x323122=Array['from'](_0x38032a['getRanges']())['map'](_0x9a36ab=>at['fromRange'](_0x9a36ab));_0x591759['setSelection'](_0x5a6e6e),_0x4814de['commands']['get'](_0x392f0e)['refresh'](),_0x4814de['execute'](_0x392f0e,{'forceDefaultExecution':!0x0});const _0x399fa5=_0x323122['filter'](_0x38b830=>'$graveyard'!=_0x38b830['root']['rootName']);_0x399fa5['length']>0x0&&_0x591759['setSelection'](_0x399fa5);for(const _0x211535 of _0x323122)_0x211535['detach']();});});_0x56f83d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x509bd6=>{_0x4814de['model']['change'](_0x14c22e=>{const _0x2adfe7=Array['from'](_0x38032a['getRanges']())['map'](_0x38db70=>at['fromRange'](_0x38db70));_0x14c22e['setSelection'](_0x509bd6),_0x4814de['commands']['get']('mergeTableCells')['refresh'](),_0x4814de['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x873557=_0x2adfe7['filter'](_0x125162=>'$graveyard'!=_0x125162['root']['rootName']);_0x873557['length']>0x0&&_0x14c22e['setSelection'](_0x873557);for(const _0x1a945d of _0x2adfe7)_0x1a945d['detach']();});});for(const _0x1e8ae7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3da1dd=_0x4814de['commands']['get'](_0x1e8ae7);_0x3da1dd['on']('set:isEnabled',(_0x54a604,_0xd57621,_0x1929f1)=>{if(_0x1929f1){const _0x38d27c=_0x4814de['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd7c49b=>_0xd7c49b['is']('element','tableCell'));this['_areMergableCells'](_0x3da1dd['value'],_0x38d27c)||(_0x54a604['return']=!0x1,_0x54a604['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x19cfe6=this['editor']['commands']['get']('mergeTableCells'),_0x4af030=this['editor']['plugins']['get']('TableUtils');if(!_0x19cfe6['isEnabled'])return!0x1;const _0x37aa3f=_0x4af030['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2837be of _0x37aa3f)for(const _0x53da1e of _0x37aa3f)if(_0x2837be!=_0x53da1e&&!this['_areMergableCells'](_0x2837be,_0x53da1e))return!0x1;return!0x0;}['_areMergableCells'](_0x240fd4,_0x531830){const _0x164790=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37c58c=this['editor']['model']['createRangeOn'](_0x240fd4),_0x2a3ffa=this['editor']['model']['createRangeOn'](_0x531830),_0x2b86cb=new Set(),_0xe78477=new Set();for(const _0x446a2b of _0x164790['getSuggestions']())if(('insertion'==_0x446a2b['type']||'deletion'==_0x446a2b['type']||'mergeTableCells'==_0x446a2b['subType'])&&_0x446a2b['isInContent']){for(const _0xb432eb of _0x446a2b['getRanges']())_0xb432eb['containsRange'](_0x37c58c,!0x0)&&_0x2b86cb['add'](_0x446a2b['type']+':'+_0x446a2b['author']['id']),_0xb432eb['containsRange'](_0x2a3ffa,!0x0)&&_0xe78477['add'](_0x446a2b['type']+':'+_0x446a2b['author']['id']);}if(_0x2b86cb['size']!=_0xe78477['size'])return!0x1;for(const _0x129703 of _0x2b86cb)if(!_0xe78477['has'](_0x129703))return!0x1;return!0x0;}},$e=class extends _0x4ac61c{static get requires(){return[xe];}afterInit(){const _0x42dfab=this['editor'];if(!_0x42dfab['plugins']['has']('TableEditing'))return;const _0x473789=_0x42dfab['locale'],_0x50d9db=_0x42dfab['plugins']['get']('TrackChangesEditing');_0x50d9db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x50d9db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x50d9db['descriptionFactory']['registerAttributeLabel']('headingRows',wt(_0x473789,'FORMAT_HEADER_ROW')),_0x50d9db['descriptionFactory']['registerAttributeLabel']('headingColumns',wt(_0x473789,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0xaea29a=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe1a90a=this['editor']['plugins']['get'](xe)['_acceptFormatSuggestionCallbackFactory']();_0xaea29a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xe1a90a),_0xaea29a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xe1a90a),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x11d0ec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ac96a=this['editor']['plugins']['get']('TableUtils');function _0x186ceb({showActiveMarker:_0x58e159=!0x0,setDataAttribute:_0x15b2a9=!0x0}={}){return(_0x410af5,_0x42b74d,_0x5b6c15)=>{const {type:_0x10222a,id:_0x19196a}=nt(_0x42b74d['markerName']);if(!_0x11d0ec['hasSuggestion'](_0x19196a))return;const _0x59bad3=_0x11d0ec['getSuggestion'](_0x19196a),_0x5a6871=_0x59bad3['data'];if('formatBlock'!=_0x59bad3['type']||!_0x5a6871||'setTableColumnHeader'!=_0x5a6871['commandName'])return;if(_0x42b74d['item'])return void _0x410af5['stop']();if(!_0x5b6c15['consumable']['consume'](_0x42b74d['markerRange'],_0x410af5['name']))return;const _0x413eb3=_0x42b74d['markerRange']['start']['nodeAfter'],_0x5a73c5=_0x42b74d['markerRange']['end']['nodeBefore'],_0x3c9983=_0x413eb3['parent']['parent'],{column:_0xb90021}=_0x4ac96a['getCellLocation'](_0x413eb3),{column:_0x4bd3d6}=_0x4ac96a['getCellLocation'](_0x5a73c5);for(let _0x57b3da=_0xb90021;_0x57b3da<=_0x4bd3d6;_0x57b3da++){const _0x1313dc=_0x4ac96a['createTableWalker'](_0x3c9983,{'column':_0x57b3da,'includeAllSlots':!0x1});for(const _0x373dfe of _0x1313dc){const _0x4fb161=_0x373dfe['cell'],_0x4eb2d9=_0x5b6c15['mapper']['toViewElement'](_0x4fb161);_0x5b6c15['writer']['addClass']('ck-suggestion-marker-'+_0x10222a,_0x4eb2d9),_0x15b2a9&&_0x5b6c15['writer']['setAttribute']('data-suggestion',_0x19196a,_0x4eb2d9),_0x5b6c15['mapper']['bindElementToMarker'](_0x4eb2d9,_0x42b74d['markerName']),_0x58e159&&(_0x11d0ec['activeMarkers']['includes'](_0x42b74d['markerName'])?_0x5b6c15['writer']['addClass']('ck-suggestion-marker--active',_0x4eb2d9):_0x5b6c15['writer']['removeClass']('ck-suggestion-marker--active',_0x4eb2d9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x186ceb(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x569183,_0x328450,_0x1d7764)=>{_0x1d7764['options']['showSuggestionHighlights']&&_0x186ceb({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x569183,_0x328450,_0x1d7764);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x32e38e,_0x885256,_0x31649c)=>{const {type:_0x15dfa5,id:_0x54609c}=nt(_0x885256['markerName']);if(!_0x11d0ec['hasSuggestion'](_0x54609c))return;const _0x2cb970=_0x11d0ec['getSuggestion'](_0x54609c),_0x32a497=_0x2cb970['data'];if('formatBlock'!=_0x2cb970['type']||!_0x32a497||'setTableColumnHeader'!=_0x32a497['commandName'])return;const _0x2e9d1d=_0x31649c['mapper']['markerNameToElements'](_0x885256['markerName']);if(_0x2e9d1d){for(const _0x553d5e of _0x2e9d1d)_0x31649c['writer']['removeClass']('ck-suggestion-marker-'+_0x15dfa5,_0x553d5e),_0x31649c['writer']['removeClass']('ck-suggestion-marker--active',_0x553d5e),_0x31649c['writer']['removeAttribute']('data-suggestion',_0x553d5e),_0x31649c['mapper']['unbindElementFromMarkerName'](_0x553d5e,_0x885256['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x9cf06d=this['editor'],_0x54171a=_0x9cf06d['locale'];function _0x21d789(_0x329954){return{'type':'format','content':wt(_0x54171a,'*Format:*\x20%0',_0x329954)};}_0x9cf06d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9ef98a=>{if('formatBlock'!=_0x9ef98a['type'])return;const {data:_0x1ffb9b}=_0x9ef98a;return _0x1ffb9b?'setTableRowHeader'==_0x1ffb9b['commandName']?_0x1ffb9b['commandParams'][0x0]['forceValue']?_0x21d789(wt(_0x54171a,'FORMAT_HEADER_ROW')):_0x21d789(wt(_0x54171a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x1ffb9b['commandName']?_0x1ffb9b['commandParams'][0x0]['forceValue']?_0x21d789(wt(_0x54171a,'FORMAT_HEADER_COLUMN')):_0x21d789(wt(_0x54171a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},We=class extends _0x4ac61c{static get requires(){return[xe];}afterInit(){const _0x3679a7=this['editor'];if(!_0x3679a7['plugins']['has']('TableEditing')||!_0x3679a7['config']['get']('table.enableFooters'))return;const _0x433328=_0x3679a7['locale'],_0x490e21=_0x3679a7['plugins']['get']('TrackChangesEditing');_0x490e21['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x490e21['descriptionFactory']['registerAttributeLabel']('footerRows',wt(_0x433328,'FORMAT_FOOTER_ROW'));}},Ve=class extends _0x4ac61c{afterInit(){const _0x204f91=this['editor'],_0x1d5e10=_0x204f91['locale'],_0x3f44d3=_0x204f91['plugins']['get']('TrackChangesEditing');function _0x4537a2(_0x1e93a6){return{'type':'format','content':''+wt(_0x1d5e10,'*Set\x20table\x20type:*\x20%0',_0x1e93a6)};}_0x204f91['plugins']['has']('TableLayout')&&(_0x3f44d3['enableCommand']('insertTableLayout'),_0x3f44d3['enableDefaultAttributesIntegration']('tableType'),_0x3f44d3['descriptionFactory']['registerElementLabel'](_0x147e67=>_0x147e67['is']('element','table')&&'layout'===_0x147e67['getAttribute']('tableType'),_0x5b3b87=>wt(_0x1d5e10,'ELEMENT_LAYOUT_TABLE',_0x5b3b87)),_0x3f44d3['descriptionFactory']['registerDescriptionCallback'](_0x2065a6=>{const {data:_0x5f3f3c}=_0x2065a6;if(_0x5f3f3c&&'tableType'==_0x5f3f3c['key'])switch(_0x5f3f3c['newValue']){case'layout':return _0x4537a2(wt(_0x1d5e10,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4537a2(wt(_0x1d5e10,'ELEMENT_CONTENT_TABLE'));}}));}};const ze=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](ze['map'](_0x284d6d=>[_0x284d6d,null]));var Ke=class extends _0x4ac61c{static get requires(){return[xe];}afterInit(){const _0x155756=this['editor'];if(!_0x155756['plugins']['has']('TableClipboard'))return;const _0x36dabc=_0x155756['plugins']['get']('TrackChangesEditing'),_0x5eed2c=_0x155756['plugins']['get']('TableUtils'),_0x38f1ad=_0x155756['plugins']['get'](xe),_0xbf8fd4=_0x155756['plugins']['get']('TableClipboard'),_0x43c66f=_0x155756['plugins']['get']('TableSelection'),_0x55aa49=_0x155756['plugins']['get'](mt);_0x38f1ad['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x155756['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x155756['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xd3d0a5=null,_0xe0e2d6=!0x1;_0x55aa49['on']('contentInsertion',(_0x5650b2,_0x4dc05f)=>{_0xe0e2d6='paste'===_0x4dc05f['method'];}),_0x155756['model']['on']('insertContent',(_0x3cc31c,_0x1b12d7)=>{if(!_0xe0e2d6&&null===_0x43c66f['getSelectedTableCells']())return;const [_0x2c6c84,_0x1c96eb]=_0x1b12d7,_0x258fe6=_0x1b12d7[_0x1b12d7['length']-0x1];_0x258fe6&&_0x258fe6['forceDefaultExecution']||_0x36dabc['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x297601,_0x4f7009,_0x599caf,_0x2cd645,_0x52226e){if(_0x4f7009&&!_0x4f7009['is']('documentSelection'))return!0x1;const _0x5e9314=_0x52226e['getTableIfOnlyTableInContent'](_0x297601,_0x599caf);if(!_0x5e9314||!qe(_0x5e9314,void 0x0,_0x2cd645))return!0x1;const _0x19e166=_0x2cd645['getSelectionAffectedTableCells'](_0x599caf['document']['selection']);if(!_0x19e166['length'])return!0x1;const _0x58d0b6=_0x19e166[0x0]['findAncestor']('table'),_0x14d2cf=_0x2cd645['getRowIndexes'](_0x19e166),_0x3299c5=_0x2cd645['getColumnIndexes'](_0x19e166),_0x1835e5={'startRow':_0x14d2cf['first'],'endRow':_0x14d2cf['last'],'startColumn':_0x3299c5['first'],'endColumn':_0x3299c5['last']};return 0x1==_0x19e166['length']&&(_0x1835e5['endRow']+=_0x2cd645['getRows'](_0x5e9314)-0x1,_0x1835e5['endColumn']+=_0x2cd645['getColumns'](_0x5e9314)-0x1),qe(_0x58d0b6,_0x1835e5,_0x2cd645);}(_0x2c6c84,_0x1c96eb,_0x155756['model'],_0x5eed2c,_0xbf8fd4)&&(_0x3cc31c['stop'](),_0xd3d0a5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x155756['model']['change'](()=>{_0x155756['model']['insertContent'](_0x1b12d7[0x0],_0x1b12d7[0x1],_0x1b12d7[0x2],{'forceDefaultExecution':!0x0});const _0xd04e5a=_0xe40876(),{rowInsertionRanges:_0x4ca39c,columnInsertionRanges:_0x39843c,insertionRanges:_0x32932c,deletionRanges:_0x22a894,cells:_0x760934}=_0xd3d0a5;_0x4ca39c['length']&&_0x36dabc['markMultiRangeInsertion'](_0x4ca39c,'tablePasteRow',{'tablePasteChainId':_0xd04e5a}),_0x39843c['length']&&_0x36dabc['markMultiRangeInsertion'](_0x39843c,'tablePasteColumn',{'tablePasteChainId':_0xd04e5a}),_0x32932c['length']&&(_0x36dabc['markMultiRangeInsertion'](_0x32932c,'tablePaste',{'tablePasteChainId':_0xd04e5a,'skipNestingCheck':!0x0}),_0x32932c['forEach'](_0x52f504=>_0x52f504['detach']?.())),_0x22a894['length']&&(_0x36dabc['markMultiRangeDeletion'](_0x22a894,'tablePaste',{'tablePasteChainId':_0xd04e5a,'skipNestingCheck':!0x0}),_0x22a894['forEach'](_0x5571e0=>_0x5571e0['detach']?.()));const _0x5816b5=_0x36dabc['markMultiRangeBlockFormat'](_0x760934['map'](({element:_0x4103c8})=>_0x4103c8),{'formatGroupId':_0xe40876()},[],'tablePasteCell',{'tablePasteChainId':_0xd04e5a});if(_0x5816b5){const _0x194b39=_0x5816b5['getMarkers'](),_0x4d0b3c=[];for(const {element:_0x211fc2,attributes:_0x5ba558}of _0x760934){if(!_0x5ba558)continue;const _0x29438e=_0x155756['model']['createRangeOn'](_0x211fc2),_0x55b0eb=_0x194b39['find'](_0x4a57e5=>_0x4a57e5['getRange']()['isEqual'](_0x29438e));_0x55b0eb&&_0x4d0b3c['push']([_0x55b0eb['name'],_0x5ba558]);}_0x4d0b3c['length']&&_0x5816b5['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d0b3c));}_0xd3d0a5=null;}));},{'priority':_0x12e91f['high']+0xa}),_0x55aa49['on']('contentInsertion',()=>{_0xe0e2d6=!0x1;},{'priority':'lowest'}),_0x155756['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3f84ef,_0x6f2871)=>{const [_0x31365f,_0x4ae6dc,,_0x38b0f1]=_0x6f2871;if(!_0xd3d0a5)return;_0x3f84ef['stop']();const _0x39f614=_0x31365f['cell'],_0x544c37=_0x4ae6dc,_0x100767=Xe(_0x39f614),_0xccd5ca=Xe(_0x544c37);_0x3f84ef['return']=_0x39f614;let _0x595df1=null,_0x584bdd=null;if(_0xccd5ca||_0x100767){if(_0x100767&&!_0xccd5ca){_0x38b0f1['remove'](_0x39f614['getChild'](0x0));for(const _0x384211 of Array['from'](_0x544c37['getChildren']()))_0x38b0f1['insert'](_0x384211,_0x39f614,'end');const _0x329ef9=_0xd3d0a5['rowInsertionIndexes']['includes'](_0x31365f['row']),_0x394ab8=_0xd3d0a5['columnInsertionIndexes']['includes'](_0x31365f['column']);_0x329ef9||_0x394ab8||(_0x595df1=at['fromRange'](_0x38b0f1['createRangeIn'](_0x39f614)));}else _0xccd5ca&&!_0x100767&&(_0x584bdd=_0x38b0f1['createRangeIn'](_0x39f614));}else{const _0x2ccc1f=_0x38b0f1['createElement']('tableCellSuggestion'),_0x49dd68=_0x38b0f1['createElement']('tableCellSuggestion');_0x38b0f1['wrap'](_0x38b0f1['createRangeIn'](_0x39f614),_0x49dd68),_0x38b0f1['insert'](_0x2ccc1f,_0x39f614,0x0);for(const _0x5cc432 of Array['from'](_0x544c37['getChildren']()))_0x38b0f1['insert'](_0x5cc432,_0x2ccc1f,'end');_0x595df1=at['fromRange'](_0x38b0f1['createRangeOn'](_0x2ccc1f)),_0x584bdd=at['fromRange'](_0x38b0f1['createRangeOn'](_0x49dd68));}const _0x560270=Array['from'](_0x544c37['getAttributes']())['filter'](([_0x4ce612])=>ze['includes'](_0x4ce612));_0xd3d0a5['cells']['push']({'element':_0x39f614,'attributes':_0x560270['length']?Object['fromEntries'](_0x560270):null}),_0x595df1&&_0xd3d0a5['insertionRanges']['push'](_0x595df1),_0x584bdd&&_0xd3d0a5['deletionRanges']['push'](_0x584bdd);},{'priority':'high'}),_0x5eed2c['on']('insertColumns',(_0x455ffb,_0x519c85)=>{const [_0x3630b8,_0x310edc={}]=_0x519c85;if(!_0xd3d0a5)return;const _0x34075a=_0x310edc['at']||0x0,_0x736ab7=_0x310edc['columns']||0x1;_0xd3d0a5['columnInsertionIndexes']=new Array(_0x736ab7)['fill'](_0x34075a)['map']((_0x56df50,_0x2ac6a0)=>_0x56df50+_0x2ac6a0);for(const {cell:_0x29b229}of _0x5eed2c['createTableWalker'](_0x3630b8,{'startColumn':_0x34075a,'endColumn':_0x34075a+_0x736ab7-0x1}))_0xd3d0a5['columnInsertionRanges']['push'](_0x155756['model']['createRangeOn'](_0x29b229));},{'priority':'low'}),_0x5eed2c['on']('insertRows',(_0x1551db,_0x291841)=>{const [_0x44b2e7,_0x45100b={}]=_0x291841;if(!_0xd3d0a5)return;const _0xdf3914=_0x45100b['at']||0x0,_0x2b040d=_0x45100b['rows']||0x1;_0xd3d0a5['rowInsertionIndexes']=new Array(_0x2b040d)['fill'](_0xdf3914)['map']((_0x5bf34f,_0x39fc08)=>_0x5bf34f+_0x39fc08);for(const {cell:_0x43c727}of _0x5eed2c['createTableWalker'](_0x44b2e7,{'startRow':_0xdf3914,'endRow':_0xdf3914+_0x2b040d-0x1}))_0xd3d0a5['rowInsertionRanges']['push'](_0x155756['model']['createRangeOn'](_0x43c727));},{'priority':'low'}),_0x36dabc['descriptionFactory']['registerDescriptionCallback'](_0x5eea8a=>{if(_0x5eea8a['subType']&&_0x5eea8a['subType']['startsWith']('tablePaste'))return _0x5eea8a['previous']?{}:{'type':'insertion','content':wt(_0x155756['locale'],'*Replace\x20table\x20cells*')};});const _0x5644d9=()=>!0x1;for(const _0x1b1924 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x36dabc['_suggestionFactory']['registerCustomCallback']('insertion',_0x1b1924,'join',_0x5644d9),_0x36dabc['_suggestionFactory']['registerCustomCallback']('deletion',_0x1b1924,'join',_0x5644d9),_0x36dabc['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b1924,'join',_0x5644d9);_0x36dabc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5644d9),_0x36dabc['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3c4c9c,_0x3fe09c,_0x374652)=>{const _0x296c6a=_0x3c4c9c['map'](_0x553892=>_0x553892['getContainedElement']())['filter'](_0x421877=>_0x421877),_0x53c6ae=new Map(_0x296c6a['map'](_0xcd8363=>[_0xcd8363,null]));if(_0xd3d0a5){for(const {element:_0x341726,attributes:_0x20ac59}of _0xd3d0a5['cells'])_0x20ac59&&_0x53c6ae['set'](_0x341726,_0x20ac59);}else{if(_0x374652&&_0x374652['markerAttributes'])for(const [_0x328607,_0x1a0f0f]of Object['entries'](_0x374652['markerAttributes'])){const _0x4fabd2=_0x155756['model']['markers']['get'](_0x328607),_0x3bdc8d=_0x4fabd2?_0x4fabd2['getRange']()['getContainedElement']():null;_0x3bdc8d&&_0x53c6ae['set'](_0x3bdc8d,_0x1a0f0f);}}_0x155756['model']['change'](_0x1e2186=>{for(const [_0x776d01,_0x1f75cb]of _0x53c6ae)_0x1e2186['setAttributes']({...je,..._0x1f75cb},_0x776d01);});});const _0x94f0b3=(_0x37d85b,_0x5b42f7)=>{_0x36dabc['_suggestionFactory']['registerCustomCallback'](_0x37d85b,'tablePaste',_0x5b42f7,(_0x542854,_0x59e295,_0xd3dff7)=>{_0x155756['model']['change'](_0x25fedf=>{const _0x154322=[];for(const _0x378042 of _0x542854){const _0xc54543=_0x378042['start']['nodeAfter'];_0xc54543['is']('element','tableCellSuggestion')&&_0x154322['push'](_0xc54543);}_0x36dabc['_suggestionFactory']['getSuggestionCallback'](_0x37d85b,null,_0x5b42f7)(_0x542854,_0x59e295,_0xd3dff7);for(const _0x58e386 of _0x154322)'$graveyard'!=_0x58e386['root']['rootName']&&_0x25fedf['unwrap'](_0x58e386);});});};_0x94f0b3('insertion','accept'),_0x94f0b3('insertion','discard'),_0x94f0b3('deletion','accept'),_0x94f0b3('deletion','discard'),_0x36dabc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29fc13=>{const _0x267713=_0x29fc13['map'](_0x4f95c9=>_0x4f95c9['getContainedElement']()),_0x9de0ab=_0x267713[0x0]['findAncestor']('table'),{minRow:_0x4c700a,maxRow:_0x259b17}=_0x38f1ad['_getCoordsForCells'](_0x267713);_0x5eed2c['removeRows'](_0x9de0ab,{'at':_0x4c700a,'rows':_0x259b17-_0x4c700a+0x1});}),_0x36dabc['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1ed44a=>{const _0x317070=_0x1ed44a['map'](_0x7693ef=>_0x7693ef['getContainedElement']()),_0x3e4c42=_0x317070[0x0]['findAncestor']('table'),{minColumn:_0x4323d7,maxColumn:_0x4dc6d0}=_0x38f1ad['_getCoordsForCells'](_0x317070);_0x5eed2c['removeColumns'](_0x3e4c42,{'at':_0x4323d7,'columns':_0x4dc6d0-_0x4323d7+0x1});});const _0x401abb=(_0x458469,_0x480a9d)=>{if(!_0x480a9d['subType']||!_0x480a9d['subType']['startsWith']('tablePaste'))return;const _0x3a8e64=_0x480a9d['attributes']['tablePasteChainId'],_0x4bd37e=_0x36dabc['getSuggestions']()['filter'](_0x592201=>_0x592201['isInContent']&&_0x592201['attributes']&&_0x592201['attributes']['tablePasteChainId']==_0x3a8e64);_0x4bd37e['length']&&_0x480a9d['getAllAdjacentSuggestions']()['length']!=_0x4bd37e['length']&&_0x4bd37e['reduce']((_0x1d07f6,_0x14ab50)=>(_0x1d07f6['next']=_0x14ab50,_0x14ab50['previous']=_0x1d07f6,_0x14ab50));};function _0x342682(_0x2b2cbf,_0x323b99=!0x0){const {id:_0x5aaf25,authorId:_0x49634d}=nt(_0x2b2cbf['markerName']),_0x5b4e64=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x30f6f5=_0x36dabc['activeMarkers']['includes'](_0x2b2cbf['markerName']);return _0x30f6f5&&_0x5b4e64['push']('ck-suggestion-marker--active'),{'classes':_0x5b4e64,'attributes':{'data-suggestion':_0x5aaf25,'data-author-id':_0x49634d},'priority':_0x30f6f5&&_0x323b99?0xbc2:0xbb8};}_0x36dabc['on']('suggestionLoaded',_0x401abb,{'priority':'high'}),_0x36dabc['on']('suggestionUnloaded',_0x401abb,{'priority':'high'}),_0x155756['model']['document']['registerPostFixer'](()=>{let _0x58c912=!0x1;const _0x85ae26=Array['from'](_0x155756['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5852e1,data:_0x3cff2c}of _0x85ae26){const {group:_0x15a11f,type:_0x1a883a,id:_0x24800b}=nt(_0x5852e1);if('suggestion'!=_0x15a11f||'deletion'!=_0x1a883a||_0x3cff2c['oldRange'])continue;if(!_0x36dabc['hasSuggestion'](_0x24800b))continue;const _0xf41d43=_0x36dabc['getSuggestion'](_0x24800b)['getRanges'](),_0x29f5b6=_0x155756['plugins']['get']('Users')['me'];for(const _0x389a68 of _0x36dabc['getSuggestions']())if(_0x389a68['isInContent']&&_0x389a68['author']==_0x29f5b6&&'formatBlock'==_0x389a68['type']&&'tablePasteCell'==_0x389a68['subType']&&_0x389a68['getRanges']()['every'](_0x4cc492=>_0xf41d43['some'](_0x298a93=>_0x298a93['containsRange'](_0x4cc492,!0x0)))){for(const _0x3d776d of _0x389a68['getAllAdjacentSuggestions']())_0x3d776d['isInContent']&&(_0x3d776d['discard'](),_0x58c912=!0x0);}}return _0x58c912;}),_0x155756['model']['document']['registerPostFixer'](_0x584bb9=>{const _0x4f7b05=_0x155756['commands']['get']('redo');if(!_0x4f7b05||!_0x4f7b05['_createdBatches']['has'](_0x584bb9['batch']))return!0x1;let _0x273c62=!0x1;const _0x49f87c=_0x155756['plugins']['get']('Users')['me'],_0x129968=_0x155756['model']['document']['differ']['getChanges'](),_0x19cd56=Array['from'](_0x155756['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x30eb6e,data:_0xbaebda})=>{const {group:_0x29532a,subType:_0x259d61,authorId:_0x3d095e}=nt(_0x30eb6e);return'suggestion'==_0x29532a&&'tablePaste'==_0x259d61&&_0x3d095e==_0x49f87c['id']&&!_0xbaebda['oldRange'];});for(const _0x2d7a13 of _0x129968){if('insert'!=_0x2d7a13['type']||'tableCellSuggestion'!=_0x2d7a13['name']||0x1!=_0x2d7a13['length'])continue;const _0x4a3f6e=_0x584bb9['createRange'](_0x2d7a13['position'],_0x2d7a13['position']['getShiftedBy'](0x1));if(!_0x19cd56['find'](({data:_0x4b3ef2})=>_0x4b3ef2['newRange']['isEqual'](_0x4a3f6e))){for(const {name:_0x37b386,data:_0x4990b0}of _0x19cd56)if(_0x4a3f6e['containsRange'](_0x4990b0['newRange'])){_0x584bb9['updateMarker'](_0x37b386,{'range':_0x4a3f6e}),_0x273c62=!0x0;break;}}}return _0x273c62;}),_0x155756['model']['document']['registerPostFixer'](_0xa81e41=>{let _0xd39141=!0x1;const _0xb5b2fa=_0x155756['plugins']['get']('Users')['me'],_0xdfdbb2=_0x36dabc['getSuggestions']()['filter'](_0x4420b3=>_0x4420b3['isInContent']&&_0x4420b3['author']==_0xb5b2fa),_0x5e23fa=new Set(),_0x4c109f=new Set();for(const _0x4bb1b9 of _0xdfdbb2)if('tablePaste'==_0x4bb1b9['subType'])for(const _0x18b658 of _0x4bb1b9['getMarkers']()){const _0x6eae09=_0x18b658['getRange']()['getContainedElement']();if(_0x6eae09){if(_0x6eae09['is']('element','tableCellSuggestion')&&Xe(_0x6eae09)){_0x4bb1b9['removeMarker'](_0x18b658['name']),_0x5e23fa['add'](_0x6eae09),_0xd39141=!0x0;const _0x1fba6e=_0x6eae09['nextSibling'],_0x2f4ea4=_0x6eae09['previousSibling'],_0x39df0e=_0x1fba6e&&_0x1fba6e['is']('element','tableCellSuggestion'),_0x47aa2c=_0x2f4ea4&&_0x2f4ea4['is']('element','tableCellSuggestion');_0x39df0e&&!_0x5e23fa['has'](_0x1fba6e)&&_0x4c109f['add'](_0x1fba6e),_0x47aa2c&&!_0x5e23fa['has'](_0x2f4ea4)&&_0x4c109f['add'](_0x2f4ea4);}else _0x6eae09['is']('element','paragraph')&&_0x6eae09['isEmpty']&&(_0x4bb1b9['removeMarker'](_0x18b658['name']),_0xd39141=!0x0);}}else{if('tablePasteCell'==_0x4bb1b9['subType']){if(!_0x4bb1b9['attributes']||!_0x4bb1b9['attributes']['tablePasteChainId'])continue;const _0x54c324=_0x4bb1b9['attributes']['markerAttributes'];if(_0x54c324&&Object['keys'](_0x54c324)['length'])continue;const _0x2ca8d1=_0x4bb1b9['attributes']['tablePasteChainId'];let _0x449058=!0x0,_0x5aa0d0=!0x0;for(const _0x42edd1 of _0xdfdbb2)if(_0x42edd1['subType']&&_0x42edd1['subType']['startsWith']('tablePaste')){if(!_0x42edd1['attributes']['tablePasteChainId']){_0x5aa0d0=!0x1;break;}if(_0x42edd1['id']!=_0x4bb1b9['id']&&_0x42edd1['attributes']['tablePasteChainId']==_0x2ca8d1){_0x449058=!0x1;break;}}_0x5aa0d0&&_0x449058&&(_0x4bb1b9['removeMarkers'](),_0xd39141=!0x0);}}for(const _0x3183ac of _0x5e23fa)_0xa81e41['remove'](_0x3183ac);for(const _0x258acf of _0x4c109f)_0xa81e41['unwrap'](_0x258acf);return _0xd39141;}),_0x155756['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3743d8=>_0x342682(_0x3743d8),'converterPriority':'high'}),_0x155756['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x500a05,_0x51a06b)=>_0x51a06b['options']['showSuggestionHighlights']?_0x342682(_0x500a05,!0x1):null,'converterPriority':'high'});const _0x517599=_0x155756['editing']['view'];this['listenTo'](_0x517599['document'],'clipboardOutput',(_0x1e93b7,_0x214b06)=>{const _0x3e07b5=[];for(const _0x44d644 of _0x517599['createRangeIn'](_0x214b06['content'])['getItems']())_0x44d644['is']('element','suggestion-td')&&_0x3e07b5['push'](_0x44d644);_0x517599['change'](_0x23bd00=>{for(const _0x10e5fe of _0x3e07b5)_0x23bd00['move'](_0x23bd00['createRangeIn'](_0x10e5fe),_0x23bd00['createPositionBefore'](_0x10e5fe)),_0x23bd00['remove'](_0x10e5fe);});});}};function Xe(_0x23acf9){if(_0x23acf9['isEmpty'])return!0x0;const _0x1ebfcc=_0x23acf9['getChild'](0x0);return _0x1ebfcc['is']('element','paragraph')&&_0x1ebfcc['isEmpty'];}function qe(_0x23aa8f,_0x21de13={},_0x5173e9){for(const {isAnchor:_0x2a8c73,cellHeight:_0x6bcddf,cellWidth:_0x18c50c}of _0x5173e9['createTableWalker'](_0x23aa8f,{'includeAllSlots':!0x0,..._0x21de13}))if(!_0x2a8c73||0x1!=_0x6bcddf||0x1!=_0x18c50c)return!0x1;return!0x0;}var Ye=class extends _0x4ac61c{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5e59b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e59b5['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x5e59b5['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x5e59b5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5e59b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0x30346b=_0x5e59b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x5e59b5['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x51ee50,_0x57c0f4)=>{_0x30346b(_0x51ee50,_0x57c0f4),this['_restoreCellWidths'](_0x51ee50[0x0]['start']['nodeAfter'],_0x57c0f4['commandParams'][0x0]['cellWidths']);}),_0x5e59b5['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x5bf269,_0x863e52){const _0x4df711=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a4934=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x406d0c=_0x863e52['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4f05ef=_0x3a4934['getColumnGroupElement'](_0x406d0c);let _0x582b14=_0x4f05ef?_0x3a4934['getTableColumnsWidths'](_0x4f05ef):null,_0x2242f9=_0x406d0c['getAttribute']('tableWidth')||null;const _0x57efa1=_0x863e52['tableWidth']||_0x2242f9,_0x2c24d7=_0x863e52['columnWidths']||_0x582b14;let _0x3accaf=this['_getCellWidths'](_0x406d0c);const _0x34bad6=this['_foldResizeTableSuggestion'](_0x406d0c);_0x34bad6&&(_0x2242f9=_0x34bad6['tableWidth'],_0x582b14=_0x34bad6['columnWidths'],_0x3accaf=_0x34bad6['cellWidths']||_0x3accaf),_0x5bf269({'table':_0x406d0c,'tableWidth':_0x57efa1,'columnWidths':_0x2c24d7}),_0x4df711['markBlockFormat'](_0x406d0c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2242f9,'columnWidths':_0x582b14,'cellWidths':_0x3accaf}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5d2d5c,_0x1135eb={}){if(void 0x0===_0x1135eb['value']||''===_0x1135eb['value'])return void _0x5d2d5c(_0x1135eb);const _0x3b2d9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2059fa=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1ed594=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x1135eb['batch']||(_0x1135eb['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x1135eb['batch'],()=>{const _0x5082f5=_0x2059fa['getColumnGroupElement'](_0x1ed594);let _0x237db7=_0x5082f5?_0x2059fa['getTableColumnsWidths'](_0x5082f5):null,_0x4b798e=_0x1ed594['getAttribute']('tableWidth')||null,_0x612def=this['_getCellWidths'](_0x1ed594);const _0x5c55df=this['_foldResizeTableSuggestion'](_0x1ed594,!0x0);_0x5c55df&&(_0x4b798e=_0x5c55df['tableWidth'],_0x237db7=_0x5c55df['columnWidths'],_0x612def=_0x5c55df['cellWidths']||_0x612def),_0x5d2d5c(_0x1135eb),_0x3b2d9d['markBlockFormat'](_0x1ed594,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b798e,'columnWidths':_0x237db7,'cellWidths':_0x612def}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x2278eb,_0x3e26ef=!0x1){const _0x3b930c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255164=this['editor']['plugins']['get']('Users')['me'];for(const _0x4cb1e1 of _0x3b930c['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a760f=_0x4cb1e1['getContainedElement']();if('resizeTable'===_0x4cb1e1['subType']&&_0x4a760f===_0x2278eb){_0x4cb1e1['author']!==_0x255164&&(_0x3e26ef?_0x4cb1e1['removeMarkers']():_0x4cb1e1['discard']());const _0x101165=_0x4cb1e1['data']['commandParams'];return{'tableWidth':_0x101165[0x0]['tableWidth'],'columnWidths':_0x101165[0x0]['columnWidths'],'cellWidths':_0x101165[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x1c0169){const _0x1abb94=[];for(const _0x366e16 of _0x1c0169['getChildren']())if(_0x366e16['is']('element','tableRow')){for(const _0x5d3e4c of _0x366e16['getChildren']())_0x1abb94['push'](_0x5d3e4c['getAttribute']('tableCellWidth')||null);}return _0x1abb94;}_restoreCellWidths(_0x3a085c,_0x4d3b6e){_0x4d3b6e&&this['editor']['model']['change'](_0x32a2e8=>{let _0x165732=0x0;for(const _0x3f30cd of _0x3a085c['getChildren']())if(_0x3f30cd['is']('element','tableRow'))for(const _0x313f1c of _0x3f30cd['getChildren']()){const _0x937843=_0x4d3b6e[_0x165732++];_0x937843&&_0x32a2e8['setAttribute']('tableCellWidth',_0x937843,_0x313f1c);}});}handleSuggestionDescription(_0x5b268c){if('formatBlock'!=_0x5b268c['type']&&'formatInline'!=_0x5b268c['type'])return;const {data:_0x58fa97}=_0x5b268c;return _0x58fa97&&'resizeTable'===_0x58fa97['formatGroupId']?{'type':'format','content':wt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Qe=class extends _0x4ac61c{afterInit(){const _0x42e92e=this['editor'];_0x42e92e['plugins']['has']('Template')&&_0x42e92e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Ze=class extends _0x4ac61c{afterInit(){const _0x53909a=this['editor'];if(!_0x53909a['commands']['get']('insertTableOfContents'))return;_0x53909a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x472010=_0x53909a['plugins']['get']('TrackChangesEditing'),_0xabc5ec=_0x53909a['locale'];_0x472010['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1285ed=>wt(_0xabc5ec,'ELEMENT_TABLE_OF_CONTENTS',_0x1285ed));}},Je=class extends _0x4ac61c{afterInit(){const _0x3f56bf=this['editor'];_0x3f56bf['plugins']['has']('Title')&&(_0x3f56bf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>wt(_0x3f56bf['locale'],'ELEMENT_TITLE')),_0x3f56bf['model']['document']['registerPostFixer'](_0x405d2c=>{let _0x4c49f1=!0x1;const _0x4a8881=Array['from'](_0x3f56bf['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45a8e6,data:_0x529239}of _0x4a8881){const {group:_0x4346ff}=nt(_0x45a8e6);if('suggestion'!==_0x4346ff||!_0x529239['newRange'])continue;const _0x44eb48=_0x529239['newRange'],_0x3dec91=_0x44eb48['end']['nodeBefore'];if(!_0x3dec91||!_0x3dec91['is']('element','title-content'))continue;if(!_0x44eb48['start']['isTouching'](_0x44eb48['end']))continue;const _0x17dfb8=_0x3f56bf['model']['schema']['getNearestSelectionRange'](_0x44eb48['end'],'forward');if(_0x17dfb8&&_0x17dfb8['isCollapsed']){const _0x35d78c=_0x405d2c['createRange'](_0x44eb48['start'],_0x17dfb8['start']);_0x35d78c['isEqual'](_0x44eb48)||(_0x405d2c['updateMarker'](_0x45a8e6,{'range':_0x35d78c}),_0x4c49f1=!0x0);}_0x4c49f1||(_0x405d2c['removeMarker'](_0x45a8e6),_0x4c49f1=!0x0);}return _0x4c49f1;}));}},tn=class extends _0x4ac61c{afterInit(){const _0x15ea2b=this['editor'],_0x376f29=_0x15ea2b['plugins']['get']('TrackChangesEditing');_0x15ea2b['plugins']['has']('Uploadcare')&&(_0x376f29['enableCommand']('uploadcare'),_0x15ea2b['plugins']['has']('UploadcareImageEdit')&&(_0x376f29['enableCommand']('uploadcareImageEdit'),_0x376f29['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x376f29['descriptionFactory']['registerDescriptionCallback'](_0x3a515b=>{if('attribute'!=_0x3a515b['type'])return;const {data:_0x1cc4b0}=_0x3a515b;return _0x1cc4b0&&'uploadcareImageId'==_0x1cc4b0['key']?{'type':'format','content':''}:void 0x0;})));}},en=class extends _0x4ac61c{afterInit(){const _0x3da1de=this['editor'],_0x20f4b0=_0x3da1de['plugins']['get']('TrackChangesEditing');_0x3da1de['plugins']['has']('UndoEditing')&&(_0x20f4b0['enableCommand']('undo'),_0x20f4b0['enableCommand']('redo'));}},nn=class extends _0x4ac61c{static get requires(){return[xe];}afterInit(){const _0x389fd3=this['editor'];_0x389fd3['plugins']['has']('TableCaptionEditing')&&_0x389fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},sn=class extends _0x4ac61c{tableProperties;tableCellProperties;constructor(_0x3a2421){super(_0x3a2421),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 _0x15d3a6=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5d1850 of this['tableProperties'])_0x15d3a6['enableCommand'](_0x5d1850,(_0x3c8b2c,_0x2b454a)=>{const _0x362644=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5d1850,[_0x362644],this['tableProperties'],'tableProperties',_0x3c8b2c,_0x2b454a);});_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x15d3a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2c702a,_0x506ea2)=>this['handleDiscardAction'](this['tableProperties'],_0x2c702a,_0x506ea2)),_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x7a6655 of this['tableCellProperties'])this['editor']['commands']['get'](_0x7a6655)&&_0x15d3a6['enableCommand'](_0x7a6655,(_0x18abac,_0x2f0a57)=>{const _0x50edee=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x7a6655,_0x50edee,this['tableCellProperties'],'tableCellProperties',_0x18abac,_0x2f0a57);});_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x15d3a6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33977e,_0x1c9b1c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33977e,_0x1c9b1c)),_0x15d3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x15d3a6['descriptionFactory']['registerAttributeLabel']('tableCellType',wt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x15d3a6['descriptionFactory']['registerDescriptionCallback'](_0x36b58c=>this['handleSuggestionDescription'](_0x36b58c)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x24745e,_0x3b99ca,_0x686c0c,_0x1da09e,_0x3de85a,_0x574328){const _0x116aa4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x574328['batch'],()=>{for(const _0x450d10 of _0x3b99ca)if(this['_getSuggestion'](_0x450d10,_0x1da09e))_0x3de85a(_0x574328);else{const _0xc08cf={};for(const _0x525287 of _0x686c0c){const _0x5dde86=_0x450d10['getAttribute'](_0x525287);void 0x0!==_0x5dde86&&(_0xc08cf[_0x525287]=_0x5dde86);}const _0x4838ba=this['_getResizedColumnWidths'](_0x450d10);_0x4838ba&&(_0xc08cf['columnWidths']=_0x4838ba),_0x3de85a(_0x574328),_0x116aa4['markBlockFormat'](_0x450d10,{'commandParams':[_0xc08cf]},[],_0x1da09e);}});}handleDiscardAction(_0x37fe3a,_0x456aca,_0x241534){const _0x302322=_0x456aca[0x0]['start']['nodeAfter'],_0x4a2495=_0x241534['commandParams'][0x0];this['editor']['model']['change'](_0x4e3efa=>{for(const _0x12ef63 of _0x37fe3a)void 0x0!==_0x4a2495[_0x12ef63]?_0x4e3efa['setAttribute'](_0x12ef63,_0x4a2495[_0x12ef63],_0x302322):_0x4e3efa['removeAttribute'](_0x12ef63,_0x302322);if(_0x4a2495['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x35a525=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3a756b=_0x35a525['getColumnGroupElement'](_0x302322);if(_0x3a756b){const _0x4048b7=_0x35a525['getTableColumnsWidths'](_0x3a756b),_0x28d02d=_0x302322['getAttribute']('tableWidth');if(('string'==typeof _0x28d02d&&_0x28d02d['trim']()['endsWith']('px'))!==_0x4048b7['some'](_0x3d89c7=>'string'==typeof _0x3d89c7&&_0x3d89c7['endsWith']('px'))){const _0x427fef=_0x35a525['getTableColumnElements'](_0x3a756b);_0x4a2495['columnWidths']['forEach']((_0x563066,_0x2a85c5)=>{_0x427fef[_0x2a85c5]&&_0x4e3efa['setAttribute']('columnWidth',_0x563066,_0x427fef[_0x2a85c5]);});}}}});}_getResizedColumnWidths(_0x5489f4){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x5489f4['is']('element','table'))return;const _0x525897=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xf411f8=_0x525897['getColumnGroupElement'](_0x5489f4);return _0xf411f8?_0x525897['getTableColumnsWidths'](_0xf411f8):void 0x0;}handleSuggestionDescription(_0x1b9bf9){if(_0x1b9bf9['data'])switch(_0x1b9bf9['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(_0x14b7da,_0x44b61f){const _0x3c07be=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x119809 of _0x3c07be['getSuggestions']({'skipNotAttached':!0x0})){const _0x531877=_0x119809['getContainedElement']();if(_0x119809['subType']===_0x44b61f&&_0x531877===_0x14b7da)return _0x119809;}return null;}_registerTablePropertiesAttributes(){const _0x587c94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ee69c=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x2620ca of _0x1ee69c){const _0x410b9c=_0x2620ca['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x587c94['descriptionFactory']['registerAttributeLabel'](_0x2620ca,wt(this['editor']['locale'],'FORMAT_'+_0x410b9c));}}},rn=class extends _0x4ac61c{afterInit(){const _0x44adc1=this['editor'];if(!_0x44adc1['plugins']['has']('LineHeight'))return;const _0xf41874=_0x44adc1['plugins']['get']('TrackChangesEditing'),_0x46f16c=_0x44adc1['locale'];_0xf41874['enableDefaultAttributesIntegration']('lineHeight'),_0xf41874['descriptionFactory']['registerAttributeLabel']('lineHeight',wt(_0x46f16c,'FORMAT_LINE_HEIGHT'));}};const on='$elementName';function an(_0x2f870a){return'marker'==_0x2f870a['type']&&_0x2f870a['name']['startsWith']('$markedRemove');}function cn(_0x52f39){return _0x52f39?[_0x52f39]:[];}var ln=class extends _0x4ac61c{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x363b9c,_0x3d0838,_0x19a74f,_0x3c3b44,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(_0x273201){super(_0x273201),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4a16ed,_0x561df4,_0x3cf711,_0x2b7a4a)=>{this['_model']['change'](()=>{for(const _0x1d6b83 of[..._0x2b7a4a,..._0x3cf711])this['_model']['markers']['has'](_0x1d6b83)&&_0x273201['editing']['reconvertMarker'](_0x1d6b83);});}),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']=_0x273201['plugins']['get'](_0x363b9c),this['_suggestionsConversion']=_0x273201['plugins']['get'](_0x3d0838),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x273201['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x273201['config']['get']('trackChanges.trackFormatChanges'),_0x273201['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x273201['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new pt(_0x273201,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3e63cf=this['editor'];_0x3e63cf['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x12d2e1,{writer:_0xf195c5})=>{let _0x23cb03='suggestion:'+_0x12d2e1['getAttribute']('suggestion-type')+':'+_0x12d2e1['getAttribute']('id');return _0x12d2e1['getAttribute']('marker-count')&&(_0x23cb03+=':'+_0x12d2e1['getAttribute']('marker-count')),_0xf195c5['createElement']('$marker',{'data-name':_0x23cb03});}}),_0x3e63cf['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e63cf['model']['document']['registerPostFixer'](_0x30ae47=>{let _0x2bd4a2=!0x1;const _0xddedaf=Array['from'](_0x3e63cf['model']['document']['differ']['getChangedMarkers']()),_0x7b0269=new Set();for(const {name:_0x205593,data:_0x1a195f}of _0xddedaf){const {group:_0x3bf7ed,type:_0x1181d4,subType:_0x565f8e,id:_0x5b99ae}=nt(_0x205593);if('suggestion'!==_0x3bf7ed)continue;const _0x2fbfda=_0x565f8e?'suggestion:'+_0x1181d4+':'+_0x565f8e+':'+_0x5b99ae:'suggestion:'+_0x1181d4+':'+_0x5b99ae,_0xe5264d=_0x3e63cf['model']['markers']['getMarkersGroup'](_0x2fbfda),_0x305f39=_0x3e63cf['model']['markers']['get'](_0x205593),_0x15e509=this['_suggestions']['get'](_0x5b99ae);if(null!=_0x1a195f['newRange']){'formatInline'==_0x1181d4&&(_0x2bd4a2=_0x2bd4a2||gn(_0x1a195f['newRange'],_0x205593,_0x30ae47,_0x3e63cf['model']['schema']));const _0x18fd02='attribute'==_0x1181d4&&this['_suggestionsConversion']['isBlockAttribute'](Cn(_0x565f8e)),_0x2ace4f='attribute'==_0x1181d4&&this['_suggestionsConversion']['isInlineAttribute'](Cn(_0x565f8e));if(_0x1a195f['newRange']['isCollapsed']||'$graveyard'==_0x1a195f['newRange']['root']['rootName']||'formatBlock'==_0x1181d4&&!mn(_0x1a195f['newRange'])||_0x18fd02&&!mn(_0x1a195f['newRange'])||_0x2ace4f&&En(_0x1a195f['newRange'])||'deletion'==_0x1181d4&&En(_0x1a195f['newRange'])||_0x305f39&&Tn(_0x305f39,_0xe5264d))_0x30ae47['removeMarker'](_0x205593),_0x2bd4a2=!0x0;else{if(!_0x15e509||!_0x15e509['isInContent'])continue;if(_0x1a195f['newRange']&&_0x1a195f['oldRange']&&_0x1a195f['newRange']['isEqual'](_0x1a195f['oldRange']))continue;_0x7b0269['add'](_0x15e509);}}}return _0x7b0269['size']>0x0&&(_0x2bd4a2=!!this['_joinWithAdjacentSuggestions'](_0x7b0269)||_0x2bd4a2),_0x2bd4a2;}),_0x3e63cf['model']['document']['registerPostFixer'](_0x3360f2=>{let _0x19e8b1=!0x1;for(const _0x111917 of _0x3e63cf['model']['document']['differ']['getChanges']())if('insert'==_0x111917['type'])for(const _0x452188 of this['_suggestions']['values']()){if(_0x452188['isMultiRange']||!_0x452188['isInContent'])continue;const _0x3d2792='formatBlock'==_0x452188['type'],_0x4dfe77=this['_getAttributeKey'](_0x452188),_0x3d8f05=_0x4dfe77&&this['_suggestionsConversion']['isBlockAttribute'](_0x4dfe77);if(!_0x3d2792&&!_0x3d8f05)continue;const _0x181dbf=_0x452188['getFirstRange']();if(_0x181dbf['start']['parent']!=_0x181dbf['end']['parent']&&!_0x181dbf['end']['isAtEnd']){const _0x1d134f=_0x3e63cf['model']['createPositionAt'](_0x181dbf['start']['nodeAfter'],'end'),_0x1527c8=_0x3e63cf['model']['createRange'](_0x181dbf['start'],_0x1d134f);_0x3360f2['updateMarker'](_0x452188['getFirstMarker'](),{'range':_0x1527c8}),_0x19e8b1=!0x0;}}return _0x19e8b1;}),_0x3e63cf['model']['document']['registerPostFixer'](_0x26cd95=>this['_processAttributeChanges'](_0x26cd95)),_0x3e63cf['model']['document']['registerPostFixer'](_0x39a493=>!_0x39a493['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x39a493)),_0x3e63cf['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e63cf['model']['document']['on']('change:data',(_0x3109ef,_0x33cbe5)=>{if(!_0x33cbe5['isLocal']||_0x33cbe5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3d5ade=_0x3e63cf['model']['document']['differ']['getChanges']();if(0x0==_0x3d5ade['length'])return;const _0x343a8b=[],_0x19a1c5=_0x3d5ade['filter'](_0x22f66d=>'attribute'==_0x22f66d['type']),_0xb73097=_0x3d5ade['filter'](_0x2679df=>'insert'==_0x2679df['type']&&'$text'!=_0x2679df['name']);for(const _0x5346c7 of _0x19a1c5)this['_suggestionsConversion']['isRegisteredAttribute'](_0x5346c7['attributeKey'])&&_0x343a8b['push']({'key':_0x5346c7['attributeKey'],'newValue':_0x5346c7['attributeNewValue'],'oldValue':_0x5346c7['attributeOldValue'],'range':_n(_0x5346c7['range'],_0x3e63cf['model'])});for(const _0x59b835 of _0xb73097){if('rename'!=_0x59b835['action']&&'refresh'!=_0x59b835['action'])continue;const _0x590ec8=pn(_0x59b835['position']['nodeAfter'],_0x3e63cf['model']),_0x121505=_0x59b835['before'];'rename'==_0x59b835['action']&&_0x343a8b['push']({'key':on,'newValue':_0x59b835['name'],'oldValue':_0x121505['name'],'range':_0x590ec8});for(const [_0x3478a7,_0x2b6d43]of _0x121505['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3478a7))continue;const _0x231068=_0x59b835['attributes']['get'](_0x3478a7);_0x2b6d43!==_0x231068&&_0x343a8b['push']({'key':_0x3478a7,'newValue':_0x231068,'oldValue':_0x2b6d43,'range':_0x590ec8});}for(const [_0x21dbfc,_0x10b0b4]of _0x59b835['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x21dbfc)&&(_0x121505['attributes']['has'](_0x21dbfc)||_0x343a8b['push']({'key':_0x21dbfc,'newValue':_0x10b0b4,'oldValue':null,'range':_0x590ec8}));}0x0!=_0x343a8b['length']&&_0x3e63cf['model']['enqueueChange'](_0x33cbe5,_0x58525c=>{const _0x1d4cbc=_0xe40876();for(const {range:_0x63056b,key:_0x4a1fe3,oldValue:_0x154473,newValue:_0xaeae6e}of _0x343a8b)this['markAttributeChange'](_0x63056b,_0x4a1fe3,_0x154473,_0xaeae6e,{'groupId':_0x1d4cbc});this['_reduceExistingSuggestions'](_0x58525c,_0x343a8b);});},{'priority':'lowest'}),_0x3e63cf['model']['markers']['on']('update:suggestion',(_0x565c3f,_0x3733d6,_0xdccee2)=>{if(null==_0xdccee2){const {id:_0x4d28c8}=nt(_0x3733d6['name']),_0x24c1df=this['_suggestions']['get'](_0x4d28c8);_0x24c1df&&_0x24c1df['addMarkerName'](_0x3733d6['name']);}}),_0x3e63cf['model']['document']['on']('change:data',()=>{const _0x4ba4e2=Array['from'](_0x3e63cf['model']['document']['differ']['getChangedMarkers']())['filter'](_0x33d79b=>'suggestion'===nt(_0x33d79b['name'])['group']);if(0x0===_0x4ba4e2['length'])return;_0x4ba4e2['sort']((_0x4eed28,_0x2f7d20)=>{const _0x2eca90=_0x4eed28['data']['oldRange'],_0x1aa5e3=_0x2f7d20['data']['oldRange'];return null===_0x2eca90&&null===_0x1aa5e3?0x0:null===_0x2eca90&&null!==_0x1aa5e3?-0x1:null!==_0x2eca90&&null===_0x1aa5e3?0x1:_0x2eca90['start']['isBefore'](_0x1aa5e3['start'])?-0x1:0x1;});const _0x1e23c6=new Set(),_0x97c63e=new Set();for(const {name:_0x1179d3,data:_0x401c50}of _0x4ba4e2){const {id:_0x3593e8}=nt(_0x1179d3);if(null===_0x401c50['oldRange']){const _0x20c50c=this['_handleNewSuggestionMarker'](_0x1179d3);_0x97c63e['add'](_0x20c50c);}else{const _0x3fb331=this['_suggestions']['get'](_0x3593e8);null!==_0x401c50['newRange']||_0x3fb331['isInContent']?(_0x1e23c6['add'](_0x3fb331['head']),_0x97c63e['add'](_0x3fb331)):this['_removeSuggestion'](_0x3fb331);}}_0x97c63e['size']>0x0&&this['_refreshSuggestionsChain'](_0x97c63e);for(const _0x1627e2 of _0x1e23c6)this['fire']('suggestionChanged',_0x1627e2);}),_0x3e63cf['model']['on']('applyOperation',(_0x53591a,_0x366f21)=>{const _0x388374=_0x366f21[0x0];if(!this['_suggestions']['size'])return;if(!_0x388374['isDocumentOperation'])return;if(_0x388374['batch']['isUndo']||!_0x388374['batch']['isLocal'])return;let _0x41364e,_0x13d116;switch(_0x388374['type']){case'insert':_0x41364e=_0x3e63cf['model']['createPositionAt'](_0x388374['position']),_0x13d116=_0x41364e['getShiftedBy'](_0x388374['howMany']);break;case'split':_0x41364e=_0x3e63cf['model']['createPositionAt'](_0x388374['splitPosition']),_0x13d116=_0x3e63cf['model']['createPositionAt'](_0x388374['moveTargetPosition']);break;case'move':_0x41364e=_0x3e63cf['model']['createPositionAt'](_0x388374['targetPosition']),_0x13d116=_0x41364e['getShiftedBy'](_0x388374['howMany']);break;default:return;}const _0x2a71fc=_0x3e63cf['model']['createRange'](_0x41364e,_0x13d116);_0x3e63cf['model']['change'](()=>{for(const {suggestion:_0x2f3f8a,meta:_0x44aba8}of this['_findSuggestions'](_0x2a71fc)){if(_0x2f3f8a['isMultiRange'])continue;if('formatInline'==_0x2f3f8a['type'])continue;const _0x59c703=this['_getAttributeKey'](_0x2f3f8a);if(_0x59c703&&this['_suggestionsConversion']['isBlockAttribute'](_0x59c703)&&'split'!=_0x388374['type'])continue;const _0x389ea1=_0x2f3f8a['data']&&_0x2f3f8a['data']['multipleBlocks'];('formatBlock'!=_0x2f3f8a['type']||'split'==_0x388374['type']&&!_0x389ea1)&&(_0x44aba8['containsRangeInObject']||'insertion'==_0x2f3f8a['type']&&_0x44aba8['isOwn']||_0x2f3f8a['getFirstRange']()['containsRange'](_0x2a71fc)&&this['_breakSuggestionMarker'](_0x2f3f8a,_0x41364e,_0x13d116));}});},{'priority':'lowest'}),_0x3e63cf['model']['on']('deleteContent',(_0x273001,_0x249350)=>{const _0x288b1a=_0x249350[0x0],_0x67cefe=_0x249350[0x1];if(_0x67cefe&&_0x67cefe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x288b1a['isCollapsed'])return;const _0xea365f=_0x3e63cf['model']['schema'],{start:_0x5bbbe8,end:_0x56a89a}=_0x288b1a['getFirstRange'](),_0x3ad3f8=_0x5bbbe8['nodeAfter']&&_0xea365f['isLimit'](_0x5bbbe8['nodeAfter'])?null:_0xea365f['getNearestSelectionRange'](_0x5bbbe8,'forward'),_0x4f04a6=_0x56a89a['nodeBefore']&&_0xea365f['isLimit'](_0x56a89a['nodeBefore'])?null:_0xea365f['getNearestSelectionRange'](_0x56a89a,'backward'),_0xea7b16=_0x3e63cf['model']['createRange'](_0x3ad3f8?_0x3ad3f8['start']:_0x5bbbe8,_0x4f04a6?_0x4f04a6['end']:_0x56a89a);_0x3e63cf['model']['change'](_0x35aeb6=>{this['markDeletion'](_0xea7b16);const _0x20f780=_0x3e63cf['model']['schema']['getNearestSelectionRange'](_0xea7b16['start']);_0x288b1a['is']('documentSelection')?_0x35aeb6['setSelection'](_0x20f780):_0x288b1a['setTo'](_0x20f780);}),_0x273001['stop']();},{'priority':_0x12e91f['normal']+0xa}),_0x3e63cf['model']['on']('insertContent',(_0xc28acc,_0x3ec24f)=>{const _0x59f8e5=_0x3ec24f[_0x3ec24f['length']-0x1];_0x59f8e5&&_0x59f8e5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e63cf['model']['change'](()=>{let _0x5df95e=_0x3e63cf['model']['insertContent'](_0x3ec24f[0x0],_0x3ec24f[0x1],_0x3ec24f[0x2],{'forceDefaultExecution':!0x0});if(!_0x5df95e)return;_0xc28acc['return']=_0x5df95e['clone']();const _0x290184=_0x5df95e['end']['nodeBefore'],_0x1533f7=_0x3e63cf['model']['schema'];_0x290184&&_0x1533f7['isBlock'](_0x290184)&&!_0x1533f7['isObject'](_0x290184)&&(_0x5df95e=_0x3e63cf['model']['createRange'](_0x5df95e['start'],_0x3e63cf['model']['createPositionAt'](_0x290184,'end'))),this['markInsertion'](_0x5df95e);}),_0xc28acc['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x856c95=new Lt(_0x3e63cf,this['_suggestions']);_0x3e63cf['commands']['add']('acceptSuggestion',_0x856c95),this['enableCommand']('acceptSuggestion');const _0x56b2e8=new It(_0x3e63cf,this['_suggestions']);_0x3e63cf['commands']['add']('discardSuggestion',_0x56b2e8),this['enableCommand']('discardSuggestion'),_0x3e63cf['commands']['add']('acceptAllSuggestions',new yt(_0x3e63cf,_0x856c95,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e63cf['commands']['add']('discardAllSuggestions',new yt(_0x3e63cf,_0x56b2e8,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e63cf['commands']['add']('acceptSelectedSuggestions',new St(_0x3e63cf,_0x856c95,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e63cf['commands']['add']('discardSelectedSuggestions',new St(_0x3e63cf,_0x56b2e8,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x52627a=_0x3e63cf['plugins']['get'](_0x363b9c);this['listenTo'](_0x52627a,'addComment',(_0x2497d7,{threadId:_0x1e00b2})=>{const _0x84d7f7=this['_suggestions']['get'](_0x1e00b2);_0x84d7f7&&_0x84d7f7['commentThread']&&0x1===_0x84d7f7['commentThread']['length']&&this['_updateSuggestionData'](_0x1e00b2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x52627a,'removeComment',(_0x227e13,{threadId:_0x281674})=>{const _0x49dea4=this['_suggestions']['get'](_0x281674);_0x49dea4&&_0x49dea4['commentThread']&&!_0x49dea4['commentThread']['length']&&this['_updateSuggestionData'](_0x281674,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x137f96){const _0x17418f='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x37782d=0x79710,_0x84b302={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x488b68(_0x3d60da){const _0x19cfc8=new window['Promise'](_0x5dcd24=>{_0x3d60da['once']('ready',_0x5dcd24);}),_0x468377=window['Date']['now'](),_0x4a5a7c=_0x3d60da['config']['get']('licenseKey');async function _0x5c9f4f(){let _0x4e02b1,_0x386ee5=null,_0x1b51f6=null;try{return'GPL'==_0x4a5a7c?'NotAllowed':(_0x4e02b1=_0x4b4efc(),_0x4e02b1?(_0x4e02b1['usageEndpoint']&&(_0x1b51f6=_0xf50ab8(_0x4e02b1['usageEndpoint'],_0x4e02b1['jti'])),await _0x5c9550()?_0xcee403()?_0x489f70()?'Expired':_0x1c596a()?('evaluation'==_0x4e02b1['licenseType']&&(_0x386ee5=_0x194053('EvaluationLimit')),await _0x3cab26()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x489f70(){const _0x164368=['evaluation','trial']['includes'](_0x4e02b1['licenseType'])?_0x468377/0x3e8:0xe10*_0x37782d;return _0x4e02b1['exp']<_0x164368;}function _0xcee403(){const _0xd1e3c6=_0x4e02b1['features'];if(!_0xd1e3c6)return!0x1;if(_0xd1e3c6['includes']('*'))return!0x0;if(_0xd1e3c6['includes']('TC'))return!0x0;if(_0xd1e3c6['includes']('RTC')){if(_0x47f1bc())return!0x0;if(_0x575fdf()||_0x55235a())return!0x0;}return!0x1;}function _0x1c596a(){const _0x3aa0d6=_0x4e02b1['licensedHosts'];if(!_0x3aa0d6||0x0==_0x3aa0d6['length'])return!0x0;const {hostname:_0xee57a5}=new URL(window['location']['href']);if(_0x3aa0d6['includes'](_0xee57a5))return!0x0;const _0x901173=_0xee57a5['split']('.');return _0x3aa0d6['filter'](_0x40568a=>_0x40568a['includes']('*'))['map'](_0x2c68b8=>_0x2c68b8['split']('.'))['filter'](_0x14c1b6=>_0x14c1b6['length']<=_0x901173['length'])['map'](_0x2fd3c2=>Array(_0x901173['length']-_0x2fd3c2['length'])['fill']('*'===_0x2fd3c2[0x0]?'*':'')['concat'](_0x2fd3c2))['some'](_0x98fafa=>_0x901173['every']((_0x1edc45,_0x3b0b86)=>_0x98fafa[_0x3b0b86]===_0x1edc45||'*'===_0x98fafa[_0x3b0b86]));}function _0x3cab26(){return _0x386ee5&&_0x1b51f6?new window['Promise']((_0x3fab3b,_0xea065)=>{_0x386ee5['then'](_0x3fab3b,_0xea065),_0x1b51f6['then'](_0xf71a4a=>{'Valid'!=_0xf71a4a&&_0x3fab3b(_0xf71a4a);},_0xea065);}):_0x386ee5||_0x1b51f6||'Valid';}}function _0xf50ab8(_0x24e975,_0x4a405b){return new window['Promise'](_0x656c4=>{if(_0x1cb552())return _0x656c4('Valid');_0x5313d7(),_0x3d60da['decorate']('_sendUsageRequest');let _0x481d84=!0x1;const _0x253109=_0xe40876();function _0x6ed55f(_0x3638bc){return!!_0x3638bc&&('object'==typeof _0x3638bc||'function'==typeof _0x3638bc)&&'function'==typeof _0x3638bc['then']&&'function'==typeof _0x3638bc['catch'];}function _0x143b61(_0x2f9626){_0x284e78(_0x2f9626)['then'](_0x1d65e4=>_0x1d65e4&&'ok'==_0x1d65e4['status']?_0x209bf7(_0x35a665(_0x253109+_0x4a405b))!=_0x1d65e4['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2a700a=>(_0x494259(),_0x2a700a),()=>{const _0x2b831f=_0x16ed9e();return null==_0x2b831f?(_0x494259(),'Valid'):_0x468377-_0x2b831f>0x240c8400?'UsageLimit':'Valid';})['then'](_0x656c4)['catch'](()=>{_0x656c4('UsageLimit');});const _0x338988=0x36ee80;function _0x494259(){const _0x2c4352='llct-'+_0x209bf7(_0x35a665(_0x24e975)),_0x45c1fd=_0x4f9480(_0x209bf7(window['Math']['ceil'](_0x468377/_0x338988)));window['localStorage']['setItem'](_0x2c4352,_0x45c1fd);}function _0x16ed9e(){const _0x3a4a3b='llct-'+_0x209bf7(_0x35a665(_0x24e975)),_0x33d082=window['localStorage']['getItem'](_0x3a4a3b);return _0x33d082?window['parseInt'](_0x4f9480(_0x33d082),0x10)*_0x338988:null;}function _0x284e78(_0x3d1966){return new window['Promise']((_0x22086d,_0x502f93)=>{_0x3d1966['then'](_0x22086d,_0x502f93),window['setTimeout'](_0x502f93,0x1d4c0);});}}_0x3d60da['on']('_sendUsageRequest',(_0x584397,_0x1a4a55)=>{if(_0x1a4a55[0x0]!=_0x24e975)return _0x656c4('UsageLimit');_0x1a4a55[0x1]={..._0x1a4a55[0x1],'requestId':_0x253109};},{'priority':'high'}),_0x3d60da['on']('_sendUsageRequest',_0x35ed77=>{_0x6ed55f(_0x35ed77['return'])&&(_0x481d84=!0x0,_0x143b61(_0x35ed77['return']));},{'priority':'low'}),_0x19cfc8['then'](()=>{_0x481d84||_0x656c4('UsageLimit');});});function _0x1cb552(){return'auto'==_0x3d60da['editing']['view']['_overlayModeHint'];}function _0x5313d7(){_0x3d60da['editing']['view']['_overlayModeHint']='auto';}}function _0x194053(_0x185f38){const _0x2c8843=[new window['Promise'](_0x53a0af=>setTimeout(_0x53a0af,0x93ecc)),_0x19cfc8['then'](()=>new window['Promise'](_0x4c73b6=>{let _0x506059=0x0;_0x3d60da['model']['on']('applyOperation',(_0x33eccf,_0x21a12b)=>{_0x21a12b[0x0]['isDocumentOperation']&&_0x506059++,0x5e8==_0x506059&&(_0x4c73b6(),_0x33eccf['off']());});}))];return window['Promise']['race'](_0x2c8843)['then'](()=>_0x185f38);}async function _0x555ee5(){await _0x19cfc8,_0x3d60da['model']['change']=_0x22b84d,_0x3d60da['model']['enqueueChange']=_0x22b84d,_0x3d60da['enableReadOnlyMode']('model');}function _0x47f1bc(){return _0x680c36('WebSocketGateway')&&'connected'==_0x127e91('WebSocketGateway')['state'];}function _0x575fdf(){return _0x680c36('RevisionViewerIntegration');}function _0x55235a(){return _0x680c36('TrackChangesDataGetter');}function _0x5734a0(_0x2a283f){const _0x13e0de=_0x5c38d0();_0x3d60da[_0x13e0de]='trackChangesLicenseKey'+_0x2a283f,'Valid'!=_0x2a283f&&_0x555ee5();}function _0x5c38d0(){const _0x272008=window['String'](window['performance']['now']())['replace']('.','');let _0x5c1797='U';for(let _0x1c6bc2=0x0;_0x1c6bc2<_0x272008['length'];_0x1c6bc2+=0x2){let _0x36aa03=window['parseInt'](_0x272008['substring'](_0x1c6bc2,_0x1c6bc2+0x2));_0x36aa03>=0x3e&&(_0x36aa03-=0x3e),_0x5c1797+=_0x17418f[_0x36aa03];}return _0x5c1797;}function _0x4b4efc(){const _0x10a8d5=_0x4a5a7c['split']('.');if(0x3!=_0x10a8d5['length'])return null;return _0x328bea(_0x10a8d5[0x1]);function _0x328bea(_0xfbe3ed){const _0x2e94f3=_0xadc040(_0xfbe3ed);return _0x2e94f3&&_0x4d880c()?_0x2e94f3:null;function _0x4d880c(){const _0x585776=_0x2e94f3['jti'],_0x2ff095=window['parseInt'](_0x585776['substring'](_0x585776['length']-0x8),0x10),_0x24c489={..._0x2e94f3,'jti':_0x585776['substring'](0x0,_0x585776['length']-0x8)};return delete _0x24c489['vc'],_0x35a665(_0x24c489)==_0x2ff095;}}}async function _0x5c9550(){let _0x12bb32=!0x0;try{const [_0x265040,_0x4221ad,_0x517dbe]=_0x4a5a7c['split']('.');return _0x5987b8(_0x265040),await _0x49c05e(_0x265040,_0x4221ad,_0x517dbe),_0x12bb32;}catch{return!0x1;}function _0x5987b8(_0x29d721){const _0x430127=_0xadc040(_0x29d721);_0x430127&&'ES256'==_0x430127['alg']||(_0x12bb32=!0x1);}async function _0x49c05e(_0x29310b,_0x2c8714,_0x29a0d4){const _0x50730f=window['Uint8Array']['from'](_0x3e201f(_0x29a0d4),_0x13e814=>_0x13e814['charCodeAt'](0x0)),_0x1f4cf3=new window['TextEncoder']()['encode'](_0x29310b+'.'+_0x2c8714),_0x4555bd=window['crypto']['subtle'];if(!_0x4555bd)return;const _0x2e69af=await _0x4555bd['importKey']('jwk',_0x84b302,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4555bd['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x2e69af,_0x50730f,_0x1f4cf3)||(_0x12bb32=!0x1);}}function _0xadc040(_0x1598d7){return _0x1598d7['startsWith']('ey')?JSON['parse'](_0x3e201f(_0x1598d7)):null;}function _0x3e201f(_0xf39c13){return window['atob'](_0xf39c13['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x35a665(_0x23b843){let _0x138740=0x1505;function _0x5a5f32(_0x558c1d){for(let _0x55d9dc=0x0;_0x55d9dc<_0x558c1d['length'];_0x55d9dc++){const _0x59da57=_0x558c1d['charCodeAt'](_0x55d9dc);_0x138740=(_0x138740<<0x5)+_0x138740+_0x59da57,_0x138740&=_0x138740;}}function _0x5319bb(_0x387a2a){Array['isArray'](_0x387a2a)?_0x387a2a['forEach'](_0x5319bb):_0x387a2a&&'object'==typeof _0x387a2a?Object['entries'](_0x387a2a)['sort']()['forEach'](([_0x5bf0ba,_0xd5c097])=>{_0x5a5f32(_0x5bf0ba),_0x5319bb(_0xd5c097);}):_0x5a5f32(window['String'](_0x387a2a));}return _0x5319bb(_0x23b843),_0x138740>>>0x0;}function _0x209bf7(_0x348286){return _0x348286['toString'](0x10)['padStart'](0x8,'0');}function _0x4f9480(_0xc1827c){return _0xc1827c['split']('')['reverse']()['join']('');}function _0x680c36(_0x89f9a3){return _0x3d60da['plugins']['has'](_0x89f9a3);}function _0x127e91(_0x307ca0){return _0x3d60da['plugins']['get'](_0x307ca0);}function _0x22b84d(){}_0x5734a0(await _0x5c9f4f());}_0x488b68(_0x137f96['editor']);}(this);}set adapter(_0x5cc3c9){if(this['_adapter'])throw new _0x6534dd('track-changes-adapter-already-set',this);this['_adapter']=_0x5cc3c9;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x45b192=!0x1,toJSON:_0x32eaec=!0x1}={}){const _0x255a9a=[];for(const _0x20b0b5 of this['_suggestions']['values']())_0x45b192&&!_0x20b0b5['isInContent']||_0x255a9a['push'](_0x20b0b5);return _0x32eaec?_0x255a9a['map'](_0x4fc2b5=>_0x4fc2b5['toJSON']()):_0x255a9a;}getSuggestion(_0xe7fd5a){const _0x4b8359=this['_suggestions']['get'](_0xe7fd5a);if(!_0x4b8359)throw new _0x6534dd('track-changes-suggestion-not-found',this);return _0x4b8359;}hasSuggestion(_0x52f5d4){return this['_suggestions']['has'](_0x52f5d4);}addSuggestionData(_0x20188f){const {authorId:_0x25d20c,id:_0x2cd383,originalSuggestionId:_0x4fede8,attributes:_0xa0cb30}=_0x20188f,[_0xd6464e,_0x96ea27]=_0x20188f['type']['split'](':'),_0x1d5e60=this['_suggestions']['get'](_0x2cd383)||this['_createSuggestion'](_0xd6464e,_0x96ea27,_0x2cd383,_0x25d20c,_0xa0cb30,_0x4fede8);if(this['_addThreadToSuggestion'](_0x1d5e60),this['_checkSuggestionCorrectness'](_0x1d5e60,_0xd6464e,_0x96ea27||null,_0x25d20c),_0x1d5e60['createdAt']=_0x20188f['createdAt'],_0x1d5e60['_isDataLoaded']=!0x0,_0xa0cb30&&_0xa0cb30['@external']){const _0x5975ef=_0xa0cb30['@external'],_0x25473f=this['_getExternalAuthor'](_0x5975ef['authorName']);_0x1d5e60['authoredAt']=_0x5975ef['createdAt'],_0x1d5e60['author']=_0x25473f;}else _0x1d5e60['authoredAt']=_0x20188f['createdAt'];switch(_0x20188f['data']&&(_0x1d5e60['data']=_0x20188f['data']),_0x20188f['attributes']&&(_0x1d5e60['attributes']=_0x20188f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1d5e60['_saved']=!0x0),this['_suggestionState']['get'](_0x1d5e60)){case'notReady':this['_suggestionState']['set'](_0x1d5e60,'dataReady');break;case'markerReady':_0x1d5e60['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1d5e60])),this['_refreshSuggestionsChain'](new Set([_0x1d5e60])),this['_suggestionState']['set'](_0x1d5e60,'ready'),this['fire']('suggestionLoaded',_0x1d5e60)):this['_suggestionState']['set'](_0x1d5e60,'removed');}return _0x1d5e60;}acceptSuggestion(_0x59cf76){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x35a61e of _0x59cf76['getAllAdjacentSuggestions']())_0x35a61e['accept']();});});}discardSuggestion(_0x26ca35){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x12f331 of _0x26ca35['getAllAdjacentSuggestions']())_0x12f331['discard']();});});}['enableCommand'](_0x31dcc9,_0x511088){const _0x508d43=this['editor']['commands']['get'](_0x31dcc9);if(!_0x508d43)throw new _0x6534dd('track-changes-command-not-found',this,{'commandName':_0x31dcc9});if(this['_enabledCommands']['has'](_0x508d43))throw new _0x6534dd('track-changes-enable-command-twice',this,{'commandName':_0x31dcc9});this['_enabledCommands']['add'](_0x508d43),_0x511088&&_0x508d43['on']('execute',(_0x46993a,_0x44dd4d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x44dd4d['length']>0x0&&_0x44dd4d[_0x44dd4d['length']-0x1]&&_0x44dd4d[_0x44dd4d['length']-0x1]['forceDefaultExecution']?_0x44dd4d['pop']():(_0x46993a['return']=_0x511088((..._0x319dfb)=>_0x508d43['execute'](..._0x319dfb,{'forceDefaultExecution':!0x0}),..._0x44dd4d),_0x46993a['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x575970){let _0x442305,_0x71c047;const _0x2ec877=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x442305=_0x575970();}catch(_0x159c4f){_0x71c047=_0x159c4f;}return _0x2ec877||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x71c047&&_0x6534dd['rethrowUnexpectedError'](_0x71c047,this),_0x442305;}markInsertion(_0x59bf4f,_0x11180c=null,_0x13ff85={}){if(_0x59bf4f['isCollapsed'])return null;const _0x507ca=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x13ff85['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2cf81f,meta:_0x62fd79}of this['_findSuggestions'](_0x59bf4f,'insertion'))if(_0x62fd79['isOwn']){if(!_0x62fd79['isNextTo']){if(_0x62fd79['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!An(_0x2cf81f,_0x13ff85))continue;return _0x2cf81f;}if(An(_0x2cf81f,_0x13ff85))return _0x2cf81f;this['_breakSuggestionMarker'](_0x2cf81f,_0x59bf4f['start'],_0x59bf4f['end']);break;}if(_0x11180c==_0x2cf81f['subType']&&An(_0x2cf81f,_0x13ff85)){const _0x9d7f7d=_0x2cf81f['getFirstRange']();return _0x9d7f7d['start']['isEqual'](_0x59bf4f['end'])?this['_setSuggestionRange'](_0x2cf81f,this['_model']['createRange'](_0x59bf4f['start'],_0x9d7f7d['end'])):this['_setSuggestionRange'](_0x2cf81f,this['_model']['createRange'](_0x9d7f7d['start'],_0x59bf4f['end'])),_0x2cf81f;}}const _0x15e474=_0xe40876(),_0x263000=_0x507ca['id'],_0x1900e9=_0x11180c?'insertion:'+_0x11180c:'insertion',_0x2bae71=this['_setSuggestionData']({'id':_0x15e474,'type':_0x1900e9,'createdAt':new Date(),'authorId':_0x263000,'attributes':_0x13ff85});return this['_addSuggestionMarker'](_0x1900e9,_0x15e474,_0x263000,_0x59bf4f),_0x2bae71;}markMultiRangeInsertion(_0x46b913,_0x4ea0c9='multi',_0x3e37d6={}){const _0xb13f20=this['editor']['plugins']['get']('Users')['me'],_0x1f91cc=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4ea0c9,'join');this['_trackingSessionId']&&(_0x3e37d6['trackingSessionId']=this['_trackingSessionId']);for(const _0x24273e of this['getSuggestions']())if(_0x24273e['author']['id']==_0xb13f20['id']&&'insertion'==_0x24273e['type']&&_0x24273e['subType']==_0x4ea0c9&&An(_0x24273e,_0x3e37d6)&&(_0x1f91cc(_0x24273e['getRanges'](),_0x46b913)||_0x1f91cc(_0x46b913,_0x24273e['getRanges']()))){for(const _0x39d8f4 of _0x46b913)_0x24273e['addRange'](_0x39d8f4);return _0x24273e;}for(const {suggestion:_0x473468,meta:_0x1074fa}of this['_findSuggestions'](_0x46b913,'insertion')){if(!_0x1074fa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1074fa['containsRangeInObject'])continue;if(!An(_0x473468,_0x3e37d6))continue;let _0x474295=!0x0;for(const _0xe1c3c7 of _0x473468['getRanges']())for(const _0x669a12 of _0x46b913)if(!_0xe1c3c7['containsRange'](_0x669a12)){_0x474295=!0x1;break;}if(_0x474295)return _0x473468;}const _0x48891b=_0xe40876(),_0x3e4feb=_0xb13f20['id'],_0x48407e='insertion:'+_0x4ea0c9,_0x44db5e=this['_setSuggestionData']({'id':_0x48891b,'type':_0x48407e,'createdAt':new Date(),'authorId':_0x3e4feb,'attributes':_0x3e37d6});for(const _0x3d8a0c of _0x46b913)this['_addSuggestionMarker'](_0x48407e,_0x48891b,_0x3e4feb,_0x3d8a0c,Ot['getMultiRangeId']());return _0x44db5e;}markInlineFormat(_0x1612bc,_0x3cc500,_0x9b4b65=null,_0x2ca9f8={}){if(_0x9b4b65=_0x9b4b65||fn(_0x3cc500),_0x1612bc['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x2ca9f8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3b3d7e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9b4b65,'accept');return this['forceDefaultExecution'](()=>_0x3b3d7e([_0x1612bc],_0x3cc500,_0x2ca9f8)),null;}const _0x1151f0=this['editor']['plugins']['get']('Users')['me'],_0x4788b9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xcd0c16,meta:_0x44bbfd}of this['_findSuggestions'](_0x1612bc,'insertion'))_0x44bbfd['isOwn']&&!_0x44bbfd['isInsideObject']&&_0x4788b9['push'](..._0xcd0c16['getRanges']());}const _0x2eff0f=function(_0x46df43,_0x5addb9){const _0x3b0cef=[];for(const _0x1b0bf6 of _0x5addb9){const _0x4ea906=_0x46df43['getIntersection'](_0x1b0bf6);_0x4ea906&&_0x3b0cef['push'](_0x4ea906);}return _0x3b0cef;}(_0x1612bc,_0x4788b9),_0x33db1d=function(_0x606c3d,_0x1181a7){const _0x1cc500=[_0x606c3d];for(const _0x347381 of _0x1181a7){let _0x1c8bc1=0x0;for(;_0x1c8bc1<_0x1cc500['length'];){const _0x2acee8=_0x1cc500[_0x1c8bc1]['getDifference'](_0x347381);_0x1cc500['splice'](_0x1c8bc1,0x1,..._0x2acee8),_0x1c8bc1+=_0x2acee8['length'];}}return _0x1cc500;}(_0x1612bc,_0x4788b9);_0x2eff0f['length']&&this['_model']['change'](()=>{for(const _0x521d40 of _0x2eff0f){const _0x578004=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x9b4b65,'accept');this['forceDefaultExecution'](()=>_0x578004([_0x521d40],_0x3cc500,_0x2ca9f8));}});for(const _0x416979 of _0x33db1d){let _0x39705b=null,_0x15a494=_0x416979['start'],_0x26410a=_0x416979['end'];for(const {suggestion:_0x1c5c35,meta:_0x460890}of this['_findSuggestions'](_0x416979,'formatInline')){if(!_0x460890['isOwn'])continue;if(_0x1c5c35['subType']!=_0x9b4b65)continue;if(!An(_0x1c5c35,_0x2ca9f8))continue;const _0x2ca4b2=_0x1c5c35['getFirstRange']();if(_0x2ca4b2['containsRange'](_0x416979,!0x0))return null;_0x15a494=_0x15a494['isBefore'](_0x2ca4b2['start'])?_0x15a494:_0x2ca4b2['start'],_0x26410a=_0x26410a['isAfter'](_0x2ca4b2['end'])?_0x26410a:_0x2ca4b2['end'],_0x39705b?_0x2ca4b2['start']['isBefore'](_0x39705b['getFirstRange']()['start'])?(_0x39705b['removeMarkers'](),_0x39705b=_0x1c5c35):_0x1c5c35['removeMarkers']():_0x39705b=_0x1c5c35;}const _0x240c79=this['_model']['createRange'](_0x15a494,_0x26410a);if(_0x39705b)this['_setSuggestionRange'](_0x39705b,_0x240c79);else{const _0x54ea0b=_0xe40876(),_0x554060=_0x1151f0['id'];this['_setSuggestionData']({'id':_0x54ea0b,'type':'formatInline:'+_0x9b4b65,'data':_0x3cc500,'createdAt':new Date(),'authorId':_0x554060,'attributes':_0x2ca9f8}),this['_addSuggestionMarker']('formatInline:'+_0x9b4b65,_0x54ea0b,_0x554060,_0x240c79);}}return null;}markBlockFormat(_0x4c723f,_0x315e61,_0x52bf5c=[],_0x1aaeac=null,_0x305b20={}){_0x315e61['formatGroupId']||(_0x315e61['formatGroupId']=_0x315e61['commandName']),_0x315e61['multipleBlocks']=_0x4c723f['is']('range'),_0x1aaeac=_0x1aaeac||fn(_0x315e61);const _0x374682=_0x52bf5c['map'](_0x5e9803=>pn(_0x5e9803,this['_model'])),_0x112223=_0x4c723f['is']('range')?_0x4c723f:pn(_0x4c723f,this['_model']);if(this['_trackingSessionId']&&(_0x305b20['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xd48c92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aaeac,'accept');return this['forceDefaultExecution'](()=>_0xd48c92([_0x112223],_0x315e61,_0x305b20)),null;}_0x374682['push'](_0x112223);let _0x6a5c92=!0x0;for(const _0x2ae344 of _0x374682)if(!this['_rangeIsInLocalUserInsertion'](_0x2ae344)){_0x6a5c92=!0x1;break;}if(_0x6a5c92&&'always'!==this['_trackFormatChanges']){const _0x549234=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aaeac,'accept');return this['forceDefaultExecution'](()=>_0x549234([_0x112223],_0x315e61,_0x305b20)),null;}let _0x55a6a5=null,_0x1d8edc=_0x112223['start'],_0x24e306=_0x112223['end'];for(const {suggestion:_0x6d4c2b,meta:_0x483ef8}of this['_findSuggestions'](_0x112223,'formatBlock')){if(!_0x483ef8['isOwn'])continue;if(_0x483ef8['isNextTo']||_0x483ef8['containsRangeInObject']||_0x483ef8['isInsideObject'])continue;if(_0x6d4c2b['data']['formatGroupId']!=_0x315e61['formatGroupId'])continue;if(!An(_0x6d4c2b,_0x305b20))continue;const _0x21d3fb=_0x6d4c2b['getFirstRange']();if(_0x6d4c2b['subType']==_0x1aaeac){if(_0x21d3fb['containsRange'](_0x112223,!0x0))return null;_0x1d8edc=_0x1d8edc['isBefore'](_0x21d3fb['start'])?_0x1d8edc:_0x21d3fb['start'],_0x24e306=_0x24e306['isAfter'](_0x21d3fb['end'])?_0x24e306:_0x21d3fb['end'],_0x55a6a5?_0x21d3fb['start']['isBefore'](_0x55a6a5['getFirstRange']()['start'])?(_0x55a6a5['removeMarkers'](),_0x55a6a5=_0x6d4c2b):_0x6d4c2b['removeMarkers']():_0x55a6a5=_0x6d4c2b;}else{const _0x18de12=_0x112223['getIntersection'](_0x21d3fb);this['_cutOutSuggestionMarker'](_0x6d4c2b,_0x18de12);}}const _0x108f96=this['editor']['plugins']['get']('Users')['me'],_0x18d9da=_0xe40876(),_0x262a03=_0x108f96['id'];if(_0x55a6a5)return this['_setSuggestionRange'](_0x55a6a5,this['_model']['createRange'](_0x1d8edc,_0x24e306)),_0x55a6a5;{const _0x297312=this['_setSuggestionData']({'id':_0x18d9da,'type':'formatBlock:'+_0x1aaeac,'data':_0x315e61,'createdAt':new Date(),'authorId':_0x262a03,'attributes':_0x305b20});return this['_addSuggestionMarker']('formatBlock:'+_0x1aaeac,_0x18d9da,_0x262a03,this['_model']['createRange'](_0x1d8edc,_0x24e306)),_0x297312;}}markMultiRangeBlockFormat(_0x119346,_0x27c8fb,_0x2f7c16=[],_0x48f617=null,_0xca10f0={}){_0x27c8fb['formatGroupId']||(_0x27c8fb['formatGroupId']=_0x27c8fb['commandName']);const _0x5cdcbf=_0x119346[0x0];_0x27c8fb['multipleBlocks']=_0x5cdcbf['is']('range'),_0x48f617=_0x48f617||fn(_0x27c8fb);const _0x5b7f97=_0x2f7c16['map'](_0x205580=>pn(_0x205580,this['_model'])),_0x3cb066=_0x5cdcbf['is']('range')?_0x119346:_0x119346['map'](_0x138efd=>pn(_0x138efd,this['_model']));if(this['_trackingSessionId']&&(_0xca10f0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2dfe83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f617,'accept');return this['forceDefaultExecution'](()=>_0x2dfe83(_0x3cb066,_0x27c8fb,_0xca10f0)),null;}_0x5b7f97['push'](..._0x3cb066);let _0x466fad=!0x0;for(const _0x417d2d of _0x5b7f97)if(!this['_rangeIsInLocalUserInsertion'](_0x417d2d)){_0x466fad=!0x1;break;}if(_0x466fad&&'always'!==this['_trackFormatChanges']){const _0x2abfc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f617,'accept');return this['forceDefaultExecution'](()=>_0x2abfc9(_0x3cb066,_0x27c8fb,_0xca10f0)),null;}const _0x333684=this['editor']['plugins']['get']('Users')['me'];for(const _0x215d9b of this['getSuggestions']()){const _0x49bef7=_0x215d9b['data'];if(_0x215d9b['author']['id']!=_0x333684['id'])continue;if('formatBlock'!=_0x215d9b['type']||_0x49bef7['formatGroupId']!=_0x27c8fb['formatGroupId'])continue;if(!An(_0x215d9b,_0xca10f0))continue;const _0x27f850=_0x215d9b['subType']==_0x48f617;for(let _0x1ac5ae=0x0;_0x1ac5ae<_0x3cb066['length'];_0x1ac5ae++){const _0x4fb879=_0x3cb066[_0x1ac5ae];for(const _0x52b36e of _0x215d9b['getMarkers']()){const _0xc35278=_0x52b36e['getRange']();if(_0x4fb879['isEqual'](_0xc35278)){_0x27f850?(_0x3cb066['splice'](_0x1ac5ae,0x1),_0x1ac5ae--):_0x215d9b['removeMarker'](_0x52b36e['name']);break;}}}}if(0x0==_0x3cb066['length'])return null;const _0x2d66d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48f617,'join');for(const _0x3e9501 of this['getSuggestions']()){const _0x3b2d26=_0x3e9501['data'];if(_0x3e9501['author']['id']==_0x333684['id']&&('formatBlock'==_0x3e9501['type']&&_0x3b2d26['formatGroupId']==_0x27c8fb['formatGroupId']&&_0x3e9501['subType']==_0x48f617&&An(_0x3e9501,_0xca10f0)&&(_0x2d66d4(_0x3e9501['getRanges'](),_0x3cb066)||_0x2d66d4(_0x3cb066,_0x3e9501['getRanges']())))){for(const _0x41bc89 of _0x3cb066)_0x3e9501['addRange'](_0x41bc89);return _0x3e9501;}}const _0x13d8e2=_0xe40876(),_0x3eeb5a=_0x333684['id'],_0xbff8a0='formatBlock:'+_0x48f617,_0xcc8c70=this['_setSuggestionData']({'id':_0x13d8e2,'type':_0xbff8a0,'data':_0x27c8fb,'createdAt':new Date(),'authorId':_0x3eeb5a,'attributes':_0xca10f0});for(const _0x158e5b of _0x3cb066)this['_addSuggestionMarker'](_0xbff8a0,_0x13d8e2,_0x3eeb5a,_0x158e5b,Ot['getMultiRangeId']());return _0xcc8c70;}markDeletion(_0x1eaf06,_0x5e8cf1=null,_0x324910={}){if(_0x1eaf06['isCollapsed'])return null;const _0x1dcbcb=this['editor']['plugins']['get']('Users')['me'],_0x577940=new at(_0x1eaf06['start'],_0x1eaf06['end']);this['_trackingSessionId']&&(_0x324910['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x184870,meta:_0x2482f2}of this['_findSuggestions'](_0x577940,'insertion'))if(_0x2482f2['isOwn']&&!_0x2482f2['isNextTo']){if(_0x184870['isMultiRange']){const _0x5c6909=_0x184870['getRanges']()['filter'](_0x435819=>'$graveyard'!=_0x435819['root']['rootName']);if(_0x5c6909['every'](_0x1cd21b=>_0x577940['containsRange'](_0x1cd21b,!0x0))&&_0x184870['discard'](),_0x5c6909['some'](_0x3cd200=>_0x3cd200['containsRange'](_0x577940,!0x0))){const _0x221375=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5e8cf1,'accept');return this['forceDefaultExecution'](()=>_0x221375([_0x577940],null,_0x324910)),null;}}else{const _0x1bc8f8=_0x577940['getIntersection'](_0x184870['getFirstRange']());null!==_0x1bc8f8&&_0x184870['_onDiscard']([_0x1bc8f8],null,_0x324910);}}if(_0x577940['detach'](),_0x577940['isCollapsed']||'$graveyard'==_0x577940['root']['rootName'])return null;let _0x5a7bc9=null,_0x3ca106=_0x577940['start'],_0x1f3b9a=_0x577940['end'];const _0x5c871a=this['_findSuggestions'](_0x577940,'deletion');for(const {suggestion:_0x17b615,meta:_0x1072b8}of _0x5c871a){const _0x1f9ae8=this['_model']['createRange'](_0x3ca106,_0x1f3b9a);if(_0x1072b8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1072b8['containsRangeInObject']&&!_0x1072b8['isInsideObject'])){if(_0x17b615['isMultiRange']){if(!An(_0x17b615,_0x324910))continue;let _0x4eaa5d=!0x0;for(const _0x3d1703 of _0x17b615['getRanges']()){if(_0x3d1703['containsRange'](_0x1f9ae8,!0x0))return _0x17b615;_0x1f9ae8['containsRange'](_0x3d1703)||(_0x4eaa5d=!0x1);}_0x4eaa5d&&_0x17b615['discard']();}else{const _0x491819=_0x17b615['getFirstRange']();if(_0x491819['containsRange'](_0x1f9ae8,!0x0))return _0x17b615;if(!An(_0x17b615,_0x324910)){_0x1f9ae8['containsRange'](_0x491819)?_0x17b615['removeMarkers']():_0x491819['containsPosition'](_0x3ca106)?_0x3ca106=_0x491819['end']:_0x491819['containsPosition'](_0x1f3b9a)&&(_0x1f3b9a=_0x491819['start']);continue;}_0x3ca106=_0x3ca106['isBefore'](_0x491819['start'])?_0x3ca106:_0x491819['start'],_0x1f3b9a=_0x1f3b9a['isAfter'](_0x491819['end'])?_0x1f3b9a:_0x491819['end'],_0x324910=Object['assign']({},_0x17b615['attributes']),_0x5a7bc9?_0x491819['start']['isBefore'](_0x5a7bc9['getFirstRange']()['start'])?(_0x5a7bc9['removeMarkers'](),_0x5a7bc9=_0x17b615):_0x17b615['removeMarkers']():_0x5a7bc9=_0x17b615;}}}if(_0x5a7bc9)return this['_setSuggestionRange'](_0x5a7bc9,this['_model']['createRange'](_0x3ca106,_0x1f3b9a)),_0x5a7bc9;{const _0x350870=_0xe40876(),_0x625a09=this['_model']['createRange'](_0x3ca106,_0x1f3b9a),_0x1e7d33=_0x1dcbcb['id'],_0x8f2385=_0x5e8cf1?'deletion:'+_0x5e8cf1:'deletion',_0x98dcdc=this['_setSuggestionData']({'id':_0x350870,'type':_0x8f2385,'createdAt':new Date(),'authorId':_0x1e7d33,'attributes':_0x324910});return this['_addSuggestionMarker'](_0x8f2385,_0x350870,_0x1e7d33,_0x625a09),_0x98dcdc;}}markMultiRangeDeletion(_0x44e8db,_0x462e12='multi',_0x5a9cdd={}){const _0x425d5f=this['editor']['plugins']['get']('Users')['me'],_0x1f7c2f=_0x44e8db['map'](_0x4fe3b1=>new at(_0x4fe3b1['start'],_0x4fe3b1['end'])),_0x354393=new Set();this['_trackingSessionId']&&(_0x5a9cdd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1ed83a,meta:_0x4dda97}of this['_findSuggestions'](_0x1f7c2f,'insertion'))_0x4dda97['isOwn']&&!_0x4dda97['isNextTo']&&_0x354393['add'](_0x1ed83a);for(const _0x58a25e of _0x354393)if(_0x58a25e['isMultiRange']){const _0x581a2a=_0x58a25e['getRanges']();if(_0x58a25e['attributes']&&_0x58a25e['attributes']['skipNestingCheck']||_0x581a2a['every'](_0x3abfd7=>_0x1f7c2f['some'](_0x54922d=>_0x54922d['containsRange'](_0x3abfd7,!0x0)))&&_0x58a25e['discard'](),_0x1f7c2f['every'](_0x35ee4e=>_0x581a2a['some'](_0x5dd146=>_0x5dd146['containsRange'](_0x35ee4e,!0x0)))){const _0x4272db=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x462e12,'accept');return this['forceDefaultExecution'](()=>_0x4272db(_0x44e8db,null,_0x5a9cdd)),null;}}else{const _0x3316dd=_0x58a25e['getFirstRange']();if(_0x1f7c2f['some'](_0xca66f=>_0xca66f['containsRange'](_0x3316dd,!0x0))&&_0x58a25e['discard'](),_0x1f7c2f['every'](_0x21a4ca=>_0x3316dd['containsRange'](_0x21a4ca,!0x0))){const _0x5c8996=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x462e12,'accept');return this['forceDefaultExecution'](()=>_0x5c8996(_0x1f7c2f,null,_0x5a9cdd)),null;}}const _0x25dfa1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x462e12,'join');let _0x24138e=null;for(const _0x52dad8 of this['getSuggestions']())if(_0x52dad8['author']['id']==_0x425d5f['id']&&_0x52dad8['isInContent']&&'deletion'==_0x52dad8['type']&&_0x52dad8['subType']==_0x462e12&&An(_0x52dad8,_0x5a9cdd)&&(_0x25dfa1(_0x52dad8['getRanges'](),_0x1f7c2f)||_0x25dfa1(_0x1f7c2f,_0x52dad8['getRanges']()))){if(_0x24138e){if(_0x52dad8['commentThread']&&_0x52dad8['commentThread']['length'])continue;for(const _0x235346 of _0x52dad8['getRanges']())_0x24138e['isIntersectingWithRange'](_0x235346)||_0x24138e['addRange'](_0x235346);_0x52dad8['removeMarkers']();}else{_0x24138e=_0x52dad8;for(const _0x49c4da of _0x1f7c2f)_0x52dad8['isIntersectingWithRange'](_0x49c4da)||_0x52dad8['addRange'](_0x49c4da);}}if(_0x24138e)return _0x24138e;_0x354393['clear']();for(const {suggestion:_0x5cd2c0,meta:_0x5f424d}of this['_findSuggestions'](_0x1f7c2f,'deletion'))_0x5f424d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5f424d['containsRangeInObject']&&!_0x5f424d['isInsideObject'])&&An(_0x5cd2c0,_0x5a9cdd)&&_0x354393['add'](_0x5cd2c0);for(const _0x1a0efa of _0x354393){const _0x4e04e6=_0x1a0efa['getRanges']();if((!_0x5a9cdd||!_0x5a9cdd['skipNestingCheck'])&&_0x1f7c2f['every'](_0x506705=>_0x4e04e6['some'](_0x810859=>_0x810859['containsRange'](_0x506705,!0x0))))return _0x1a0efa;_0x1a0efa['attributes']&&_0x1a0efa['attributes']['skipNestingCheck']||_0x4e04e6['every'](_0x56c860=>_0x1f7c2f['some'](_0xdfb647=>_0xdfb647['containsRange'](_0x56c860,!0x0)))&&_0x1a0efa['discard']();}const _0x305d53=_0xe40876(),_0x50901e=_0x425d5f['id'],_0x1093b2='deletion:'+_0x462e12,_0x47b419=this['_setSuggestionData']({'id':_0x305d53,'type':_0x1093b2,'createdAt':new Date(),'authorId':_0x50901e,'attributes':_0x5a9cdd});for(const _0x71ba6e of _0x1f7c2f)_0x71ba6e['detach'](),_0x71ba6e['isCollapsed']||'$graveyard'==_0x71ba6e['root']['rootName']||this['_addSuggestionMarker'](_0x1093b2,_0x305d53,_0x50901e,_0x71ba6e,Ot['getMultiRangeId']());return _0x47b419;}markAttributeChange(_0x28d2c5,_0x5b7889,_0x8bd93d,_0x1340ec,_0x527033){if(_0x28d2c5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x599cab=this['editor']['plugins']['get']('Users')['me']['id'],_0x512d7d=Array['from'](this['_suggestions']['values']())['filter'](_0x54cfc9=>'attribute'==_0x54cfc9['type']&&_0x54cfc9['data']['key']==_0x5b7889&&_0x54cfc9['isIntersectingWithRange'](_0x28d2c5));if(this['_trackingSessionId']&&(_0x527033['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x244455=this['_findSuggestions'](_0x28d2c5,'insertion')['filter'](({meta:_0x4989d5})=>_0x4989d5['isOwn']&&!_0x4989d5['isInsideObject']&&!_0x4989d5['isNextTo'])['map'](({suggestion:_0x34e06d})=>_0x34e06d);_0x512d7d['unshift'](..._0x244455);}const _0x3a4c08=new Map([[_0x28d2c5,_0x8bd93d]]);for(const _0x18cfc7 of _0x512d7d){const _0x25a0e0='attribute'==_0x18cfc7['type']?_0x18cfc7['data']['oldValue']:void 0x0,_0x1f9f60=_0x18cfc7['getFirstRange'](),_0x4fbe7c=Array['from'](_0x3a4c08['keys']())['find'](_0x34fe96=>_0x34fe96['isIntersecting'](_0x1f9f60));if(!_0x4fbe7c)continue;const _0x22d402=_0x4fbe7c['getDifference'](_0x1f9f60);this['_suggestionsConversion']['isBlockAttribute'](_0x5b7889)&&'insertion'==_0x18cfc7['type']&&0x0!=_0x22d402['length']||(_0x3a4c08['delete'](_0x4fbe7c),_0x22d402['forEach'](_0x5658cd=>{_0x3a4c08['set'](_0x5658cd,_0x8bd93d);}),'insertion'!=_0x18cfc7['type']&&_0x25a0e0!=_0x1340ec&&_0x3a4c08['set'](_0x4fbe7c['getIntersection'](_0x1f9f60),_0x25a0e0));}const _0x3cb062=[];for(const [_0x52d137,_0x2dbcba]of _0x3a4c08){const _0x521080=_0xe40876(),_0x38b212={'key':_0x5b7889,'oldValue':_0x2dbcba,'newValue':_0x1340ec};_0x5b7889['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':_0x5b7889});const _0x49db51=('attribute:'+_0x5b7889+'|'+fn({'newValue':_0x1340ec}))['substring'](0x0,0x3c),_0x2b69f9=this['_setSuggestionData']({'id':_0x521080,'type':_0x49db51,'data':_0x38b212,'createdAt':new Date(),'authorId':_0x599cab,'attributes':_0x527033});_0x3cb062['push'](_0x2b69f9),this['_addSuggestionMarker'](_0x49db51,_0x521080,_0x599cab,_0x52d137);}return _0x3cb062;}enableDefaultAttributesIntegration(_0x414c65){this['enableCommand'](_0x414c65,(_0x519174,..._0x401a2a)=>{this['recordAttributeChanges'](()=>{_0x519174(..._0x401a2a);});});}startTrackingSession(_0x324a3e){return this['_trackingSessionId']=void 0x0!==_0x324a3e?_0x324a3e:_0xe40876(),this['_trackingSessionId'];}_getAttributeKey(_0x2f9214){return'attribute'==_0x2f9214['type']?Cn(_0x2f9214['subType']):null;}_applyOperationsAsSuggestions(_0x2135c4){if(0x0==_0x2135c4['length'])return;const _0x24ec61=this['editor'],_0x830c74=[],_0x51e9ca=_0x183a1d=>{const _0x3b4392=_0x183a1d['_aiSource'];return _0x3b4392?{'@ai':{'type':_0x3b4392}}:{};},_0xdf41e0=(_0x36c131,_0x5d279e,_0x594cc6,_0x1a03af)=>{const _0x12dff7=new Set(_0x1a03af['flatMap'](_0xc39f9e=>_0xc39f9e['getMarkerNames']()));let _0x2df181=!0x1;for(let _0x18748a=_0x5d279e;_0x18748a<_0x36c131['operations']['length'];_0x18748a++){const _0x4af06d=_0x36c131['operations'][_0x18748a];if('marker'==_0x4af06d['type']){if(!_0x12dff7['has'](_0x4af06d['name']))continue;_0x2df181=!0x0;}_0x4af06d['_aiSource']=_0x594cc6;}return _0x2df181;};_0x24ec61['model']['change'](_0x5d1588=>{for(let _0x2c3e10=0x0;_0x2c3e10<_0x2135c4['length'];_0x2c3e10++){const _0x580e33=_0x2135c4[_0x2c3e10],_0x16ef22=_0x580e33['_aiSource'];if(_0x580e33['baseVersion']=_0x24ec61['model']['document']['version'],_0x580e33['isDocumentOperation']=!0x0,_0x50628c(_0x580e33))continue;if(an(_0x580e33)){const _0x3f028b=_0x2f41a9(_0x580e33['newRange'],_0x24ec61['model']);_0x830c74['unshift']({'range':at['fromRange'](_0x3f028b),'operation':_0x580e33});continue;}const _0xbae360=_0x5d1588['batch']['operations']['length']+0x1;let _0x61207a=[];switch(_0x580e33['type']){case'rename':{const _0x405166=_0x580e33['oldName'],_0x52c821=_0x580e33['newName'];if(_0x405166==_0x52c821)break;_0x5d1588['batch']['addOperation'](_0x580e33),_0x24ec61['model']['applyOperation'](_0x580e33);const _0x3c3e6e='$elementName',_0x2942c7=_0x580e33['position'],_0x2e8f98=_0x24ec61['model']['createRange'](_0x2942c7,_0x24ec61['model']['createPositionAt'](_0x2942c7['nodeAfter'],'end'));_0x61207a=this['markAttributeChange'](_0x2e8f98,_0x3c3e6e,_0x405166,_0x52c821,{..._0x51e9ca(_0x580e33),'groupId':_0xe40876()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x1f8cf7=_0x580e33['oldValue'],_0x54cb7e=_0x580e33['newValue'];if(_0x1f8cf7==_0x54cb7e)break;_0x5d1588['batch']['addOperation'](_0x580e33),_0x24ec61['model']['applyOperation'](_0x580e33);const _0x3e1f7d=_0x580e33['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3e1f7d))break;const _0x1d04d7=_0x2f41a9(_0x580e33['range'],_0x24ec61['model']);_0x61207a=this['markAttributeChange'](_0x1d04d7,_0x3e1f7d,_0x1f8cf7,_0x54cb7e,{..._0x51e9ca(_0x580e33),'groupId':_0xe40876()});break;}case'insert':{if(_0x5d1588['batch']['addOperation'](_0x580e33),_0x24ec61['model']['applyOperation'](_0x580e33),_0x2135c4[_0x2c3e10+0x1]&&'move'==_0x2135c4[_0x2c3e10+0x1]['type'])break;const _0x234650=_0x580e33['position'],_0x3aa2e8=_0x580e33['howMany'],_0x58dd95=_0x2f41a9(_0x24ec61['model']['createRange'](_0x234650,_0x234650['getShiftedBy'](_0x3aa2e8)),_0x24ec61['model']);_0x61207a=cn(this['markInsertion'](_0x58dd95,null,{..._0x51e9ca(_0x580e33)}));break;}case'split':{_0x5d1588['batch']['addOperation'](_0x580e33),_0x24ec61['model']['applyOperation'](_0x580e33);const _0x24ff11=_0x580e33['splitPosition'],_0x42e621=_0x580e33['moveTargetPosition'],_0x137811=_0x24ec61['model']['createRange'](_0x24ff11,_0x42e621);_0x61207a=cn(this['markInsertion'](_0x137811,null,{..._0x51e9ca(_0x580e33)}));break;}case'move':case'remove':_0x5d1588['batch']['addOperation'](_0x580e33),_0x24ec61['model']['applyOperation'](_0x580e33);}_0x16ef22&&_0xdf41e0(_0x5d1588['batch'],_0xbae360,_0x16ef22,_0x61207a)&&delete _0x580e33['_aiSource'];}for(const {range:_0x325fd6,operation:_0xe8b0ef}of _0x830c74){const _0x3940fb=_0xe8b0ef['_aiSource'],_0x1d57c0=_0x51e9ca(_0xe8b0ef),_0x46eb1e=_0x5d1588['batch']['operations']['length'];_0x325fd6['detach']();const _0x5c9d67=this['markDeletion'](_0x325fd6,null,{..._0x1d57c0});_0x3940fb&&_0xdf41e0(_0x5d1588['batch'],_0x46eb1e,_0x3940fb,cn(_0x5c9d67));}});}_setSuggestionRange(_0x17b025,_0x3f9e18){const _0x4e42e5=_0x17b025['getFirstMarker']();this['_model']['change'](_0x2b3a12=>{_0x2b3a12['updateMarker'](_0x4e42e5,{'range':_0x3f9e18});});}_addThreadToSuggestion(_0x48c538){const _0x2c12ae=_0x48c538['id'],_0x5c4a8e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2c12ae)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c4a8e,'threadId':_0x2c12ae,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1ea265=this['_commentsRepository']['getCommentThread'](_0x2c12ae);_0x1ea265['unbind']('isRemovable'),_0x1ea265['isRemovable']=!0x1,_0x48c538['commentThread']=_0x1ea265;}_checkSuggestionCorrectness(_0x116f5e,_0x338103,_0x3b3f2f,_0x4abd6c){if(_0x116f5e['type']!=_0x338103||_0x116f5e['subType']!=_0x3b3f2f||_0x116f5e['creator']['id']!=_0x4abd6c)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x6534dd('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x481a86,_0x1e88a2){const _0x4b3d80=_0x481a86['getFirstRange']();if(_0x1e88a2['isEqual'](_0x4b3d80))_0x481a86['removeMarkers']();else{if(_0x4b3d80['containsRange'](_0x1e88a2)){const _0x2493d8=this['_model']['createPositionAt'](_0x1e88a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x481a86,this['_model']['createRange'](_0x4b3d80['start'],_0x2493d8));const _0x51a896=_0xe40876(),_0x3766ea=_0x481a86['creator']['id'],_0x383ec8=_0x481a86['type']+':'+_0x481a86['subType'];this['_setSuggestionData']({'id':_0x51a896,'type':_0x383ec8,'createdAt':new Date(),'authorId':_0x3766ea,'data':_0x481a86['data'],'attributes':_0x481a86['attributes']});const _0x1d7769=this['_model']['createPositionAt'](_0x1e88a2['end']['parent'],'after'),_0x55dcae=this['_model']['createRange'](_0x1d7769,_0x4b3d80['end']);this['_addSuggestionMarker'](_0x383ec8,_0x51a896,_0x3766ea,_0x55dcae);}else{if(_0x4b3d80['containsPosition'](_0x1e88a2['start'])){const _0x11d5ac=this['_model']['createPositionAt'](_0x1e88a2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x481a86,this['_model']['createRange'](_0x4b3d80['start'],_0x11d5ac));}else{const _0x2b9b0b=this['_model']['createPositionAt'](_0x1e88a2['end']['parent'],'after');this['_setSuggestionRange'](_0x481a86,this['_model']['createRange'](_0x2b9b0b,_0x4b3d80['end']));}}}}_rangeIsInLocalUserInsertion(_0x1fdb53){for(const {suggestion:_0x2b7c0a,meta:_0xdfba74}of this['_findSuggestions'](_0x1fdb53,'insertion')){if(!_0xdfba74['isOwn'])continue;const _0x38dfbf=_0x2b7c0a['getRanges']();for(const _0x270374 of _0x38dfbf)if(!_0x1fdb53['getDifference'](_0x270374)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x160c1f){return this['editor']['plugins']['get']('Users')['getUser'](_0x160c1f);}_getExternalAuthor(_0x5e3afe){const _0x49a8dd=this['editor']['plugins']['get']('Users'),_0x5b7df7=_0x49e7d7('external:'+_0x5e3afe),_0xda24f=_0x49a8dd['getUser'](_0x5b7df7);return _0xda24f||_0x49a8dd['addUser']({'id':_0x5b7df7,'name':_0x5e3afe});}_createSuggestion(_0x5862d0,_0x2454b9,_0x2a8057,_0x20843d,_0x3436ec,_0x307174){const _0x4d4ae4=this['_getAuthorFromId'](_0x20843d);if(!_0x4d4ae4)throw new _0x6534dd('track-changes-user-not-found',this,{'authorId':_0x20843d,'suggestionId':_0x2a8057});const _0x3f58f7=this['_suggestionFactory']['buildSuggestion'](_0x5862d0,_0x2454b9,_0x2a8057,_0x4d4ae4,_0x3436ec,_0xc29062=>{this['_updateSuggestionData'](_0x2a8057,{'attributes':_0xc29062});const _0x381206=this['getSuggestion'](_0x2a8057);this['_joinWithAdjacentSuggestions'](new Set([_0x381206])),this['_refreshSuggestionsChain'](new Set([_0x381206]));},_0x307174);return this['listenTo'](_0x3f58f7,'accept',()=>{this['_updateSuggestionData'](_0x2a8057,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3f58f7,'discard',()=>{this['_updateSuggestionData'](_0x2a8057,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a8057,_0x3f58f7),this['_suggestionState']['set'](_0x3f58f7,'notReady'),_0x3f58f7;}_breakSuggestionMarker(_0x22dc04,_0x526a87,_0x17645a){const _0x3f5832=_0x22dc04['getFirstRange'](),_0x494c02=_0x3f5832['start'],_0x1e6e7b=_0x3f5832['end'];this['_setSuggestionRange'](_0x22dc04,this['_model']['createRange'](_0x494c02,_0x526a87));const _0x1f76a8=_0xe40876(),_0x309cda=_0x22dc04['creator']['id'],_0x572b49=_0x22dc04['type']+(_0x22dc04['subType']?':'+_0x22dc04['subType']:'');this['_setSuggestionData']({'id':_0x1f76a8,'type':_0x572b49,'createdAt':new Date(),'authorId':_0x309cda,'originalSuggestionId':_0x22dc04['_originalSuggestionId']||_0x22dc04['id'],'attributes':_0x22dc04['attributes'],'data':_0x22dc04['data']});const _0xc4236a=this['_getAttributeKey'](_0x22dc04);('formatBlock'==_0x22dc04['type']||_0xc4236a&&this['_suggestionsConversion']['isBlockAttribute'](_0xc4236a))&&(_0x17645a=this['_model']['createPositionBefore'](_0x17645a['parent'])),this['_addSuggestionMarker'](_0x572b49,_0x1f76a8,_0x309cda,this['_model']['createRange'](_0x17645a,_0x1e6e7b));}_findSuggestions(_0x3bfd80,_0x5ef914=null){const _0x319ca7=[],_0x5f02e2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3bfd80)||(_0x3bfd80=[_0x3bfd80]);for(const _0x5e22c9 of this['getSuggestions']()){if(!_0x5e22c9['isInContent'])continue;if(_0x5ef914&&_0x5e22c9['type']!=_0x5ef914)continue;let _0x280424=!0x1;for(const _0x2845ee of _0x5e22c9['getRanges']()){for(const _0x412cca of _0x3bfd80){const _0x12b39f=_0x412cca['start']['isEqual'](_0x2845ee['end'])||_0x412cca['end']['isEqual'](_0x2845ee['start']);if(_0x12b39f||_0x412cca['getIntersection'](_0x2845ee)){const _0x1b9beb=_0x412cca['containsRange'](_0x2845ee)&&dn(this['_model']['schema'],_0x2845ee['start'],_0x412cca),_0x59315e=_0x2845ee['containsRange'](_0x412cca)&&dn(this['_model']['schema'],_0x412cca['start'],_0x2845ee);_0x319ca7['push']({'suggestion':_0x5e22c9,'meta':{'isOwn':_0x5f02e2==_0x5e22c9['author'],'isNextTo':_0x12b39f,'isInsideObject':_0x1b9beb,'containsRangeInObject':_0x59315e}}),_0x280424=!0x0;break;}}if(_0x280424)break;}}return _0x319ca7;}_addSuggestionMarker(_0x1783a1,_0x4449bc,_0x28a263,_0x2cac7a,_0x2576aa){this['_model']['change'](_0x3e0499=>{let _0x4f3430='suggestion:'+_0x1783a1+':'+_0x4449bc+':'+_0x28a263;_0x2576aa&&(_0x4f3430=_0x4f3430+':'+_0x2576aa),_0x3e0499['addMarker'](_0x4f3430,{'range':_0x2cac7a,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x532ee3){const _0x242aae=_0x532ee3['previous'],_0x1dc499=_0x532ee3['next'];_0x532ee3['previous']=null,_0x532ee3['next']=null,null!=_0x242aae&&_0x242aae['next']==_0x532ee3&&(_0x242aae['next']=_0x1dc499),null!=_0x1dc499&&_0x1dc499['previous']==_0x532ee3&&(_0x1dc499['previous']=_0x242aae),'ready'==this['_suggestionState']['get'](_0x532ee3)&&(this['_suggestionState']['set'](_0x532ee3,'removed'),this['fire']('suggestionUnloaded',_0x532ee3,_0x242aae,_0x1dc499));}_setSuggestionData(_0x41e82c){const _0x12101b=_0x41e82c['id'],_0x2a4497=this['addSuggestionData'](_0x41e82c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x437c76=this['editor']['plugins']['get']('PendingActions'),_0x127504=_0x2a4497['hasComments'],_0xd72b5d=_0x2a4497['subType']?_0x2a4497['type']+':'+_0x2a4497['subType']:_0x2a4497['type'],_0x1bb946=this['editor']['locale'],_0x54a266=_0x437c76['add'](wt(_0x1bb946,'PENDING_ACTION_SUGGESTION')),_0x1be74c={'id':_0x12101b,'type':_0xd72b5d,'hasComments':_0x127504,'data':_0x41e82c['data']||null,'originalSuggestionId':_0x41e82c['originalSuggestionId']||null,'attributes':_0x2a4497['attributes']};this['_adapter']['addSuggestion'](_0x1be74c)['then'](_0x3db0d7=>{_0x2a4497['_saved']=!0x0,_0x437c76['remove'](_0x54a266),_0x3db0d7&&_0x3db0d7['createdAt']&&(this['_suggestions']['get'](_0x12101b)['createdAt']=_0x3db0d7['createdAt']);})['catch'](_0x2815bc=>{throw _0x2b3ebd('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2a4497['discard']();}),_0x2a4497['stopListening'](),this['_suggestions']['delete'](_0x2a4497['id']),this['_suggestionState']['delete'](_0x2a4497),_0x2815bc;});}return _0x2a4497;}_updateSuggestionData(_0x3640bd,_0x400db3){const _0x128810=this['editor']['plugins']['get']('PendingActions'),_0x288952=this['getSuggestion'](_0x3640bd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x288952['_saved']){const _0x4f31c7=_0x128810['add'](wt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3640bd,_0x400db3)['then'](()=>{_0x128810['remove'](_0x4f31c7);});}else _0x288952['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3640bd,_0x400db3);});}}_getSuggestionData(_0x3bb396){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x6534dd('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3bb396);}_handleNewSuggestionMarker(_0x4cd6dd){const {id:_0xc455e0,type:_0x267703,subType:_0x55655b,authorId:_0x5a7ada}=nt(_0x4cd6dd),_0x16a844=this['_suggestions']['get'](_0xc455e0)||this['_createSuggestion'](_0x267703,_0x55655b,_0xc455e0,_0x5a7ada,{});switch(this['_checkSuggestionCorrectness'](_0x16a844,_0x267703,_0x55655b,_0x5a7ada),this['_suggestionState']['get'](_0x16a844)){case'notReady':this['_getSuggestionData'](_0xc455e0)['then'](_0x22e128=>{let _0x503175=Promise['resolve']();_0x22e128['hasComments']&&(_0x503175=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc455e0})),_0x503175['then'](()=>{this['addSuggestionData'](_0x22e128)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16a844,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc455e0,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16a844,'ready'),this['fire']('suggestionLoaded',_0x16a844);break;case'ready':this['fire']('suggestionChanged',_0x16a844);}return _0x16a844['addMarkerName'](_0x4cd6dd),_0x16a844;}_refreshSuggestionsChain(_0x205adc){const _0x7bf594=Array['from'](_0x205adc),_0x5450b0=_0x7bf594['filter'](_0xc48144=>'attribute'==_0xc48144['type']);this['_refreshAttributeSuggestionsChain'](_0x5450b0);const _0xeed6ec=_0x7bf594['filter'](_0x180ead=>!_0x180ead['isMultiRange']&&'attribute'!=_0x180ead['type']),_0x2d2014=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cb163=>!_0x1cb163['isMultiRange']&&'attribute'!=_0x1cb163['type']),_0x20bf9c=_0x2d2014['filter'](_0x27c0d6=>!_0x205adc['has'](_0x27c0d6)),_0xe72601=new Map(_0x2d2014['map'](_0x35cad8=>[_0x35cad8,this['_suggestionFactory']['getSuggestionCallback'](_0x35cad8['type'],_0x35cad8['subType'],'chain')])),_0xca4930=new Map(_0x2d2014['map'](_0x6ea3cd=>[_0x6ea3cd,_0x6ea3cd['getFirstRange']()])),_0x205e50=new Set(),_0x1f2552=new Set();for(let _0xebc600=0x0;_0xebc600<_0xeed6ec['length'];_0xebc600++)_0x103fa6(_0xeed6ec[_0xebc600],_0xeed6ec,_0xebc600+0x1);for(let _0x4f80e6=0x0;_0x4f80e6<_0xeed6ec['length'];_0x4f80e6++)_0x103fa6(_0xeed6ec[_0x4f80e6],_0x20bf9c,0x0);const _0x4b6a92=new Set();for(let _0x5e42ad=0x0;_0x5e42ad<_0xeed6ec['length'];_0x5e42ad++){const _0x474ada=_0xeed6ec[_0x5e42ad];!_0x1f2552['has'](_0x474ada)&&_0x474ada['previous']&&(_0x4b6a92['add'](_0x474ada['previous']),_0x474ada['previous']['next']===_0x474ada&&(_0x474ada['previous']['next']=null),_0x474ada['previous']=null),!_0x205e50['has'](_0x474ada)&&_0x474ada['next']&&(_0x4b6a92['add'](_0x474ada['next']),_0x474ada['next']['previous']===_0x474ada&&(_0x474ada['next']['previous']=null),_0x474ada['next']=null);}function _0x103fa6(_0x123f4f,_0x5e84c3,_0xe46950){for(let _0x46d714=_0xe46950;_0x46d714<_0x5e84c3['length'];_0x46d714++){const _0x422639=_0x4c21f0(_0x123f4f,_0x5e84c3[_0x46d714]);_0x422639&&(_0x422639[0x0]['next']=_0x422639[0x1],_0x422639[0x1]['previous']=_0x422639[0x0],_0x205e50['add'](_0x422639[0x0]),_0x1f2552['add'](_0x422639[0x1]));}}function _0x4c21f0(_0x9b53cf,_0x3af293){if(_0x9b53cf['author']['id']!==_0x3af293['author']['id'])return null;const _0x5393c1=_0xe72601['get'](_0x9b53cf)(_0x9b53cf,_0x3af293,_0xca4930['get'](_0x9b53cf),_0xca4930['get'](_0x3af293));return _0x5393c1&&_0xe72601['get'](_0x3af293)(_0x9b53cf,_0x3af293,_0xca4930['get'](_0x9b53cf),_0xca4930['get'](_0x3af293))?_0x5393c1[0x1]['commentThread']&&_0x5393c1[0x1]['commentThread']['length']?null:_0x5393c1:null;}_0x4b6a92['size']&&this['_refreshSuggestionsChain'](_0x4b6a92);}_refreshAttributeSuggestionsChain(_0x125653){if(0x0==_0x125653['length'])return;const _0x475638=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55062e=>'attribute'==_0x55062e['type']&&_0x55062e['_isDataLoaded']),_0x2437a4=[],_0x2c566c=new Map();for(const _0x387178 of _0x475638){const _0xcaadc6=_0x49e7d7(_0x387178['attributes']);_0x2c566c['has'](_0xcaadc6)||(_0x2c566c['set'](_0xcaadc6,_0x2437a4['length']),_0x2437a4['push']([])),_0x2437a4[_0x2c566c['get'](_0xcaadc6)]['push'](_0x387178);}!(function(){_0x2437a4['sort']((_0x4d1029,_0x3e50fc)=>{const _0x4f9f56=_0x4d1029[0x0]['createdAt'],_0x57b958=_0x3e50fc[0x0]['createdAt'];return _0x4f9f56==_0x57b958?_0x4d1029[0x0]['attributes']['groupId']<_0x3e50fc[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f9f56<_0x57b958?-0x1:0x1;});for(const _0x2dccd8 of _0x2437a4)_0x2dccd8['sort']((_0x2085c3,_0x31a875)=>_0x2085c3['id']<_0x31a875['id']?-0x1:0x1);}());for(let _0x596c81=0x0;_0x596c81<_0x2437a4['length'];_0x596c81++){if(0x0==_0x2437a4[_0x596c81]['length'])continue;const _0xfea9c0=[];for(let _0x174d15=_0x596c81+0x1;_0x174d15<_0x2437a4['length'];_0x174d15++)0x0!=_0x2437a4[_0x174d15]['length']&&_0x4bb99c(_0x2437a4[_0x596c81],_0x2437a4[_0x174d15])&&_0xfea9c0['push'](_0x174d15);for(const _0x59683a of _0xfea9c0)_0x2437a4[_0x596c81]=_0x2437a4[_0x596c81]['concat'](_0x2437a4[_0x59683a]),_0x2437a4[_0x59683a]=[];}for(const _0xfbe6b6 of _0x2437a4)for(let _0x148872=0x0;_0x148872<_0xfbe6b6['length'];_0x148872++){const _0x47d16=_0xfbe6b6[_0x148872+0x1]||null;_0xfbe6b6[_0x148872]['next']!==_0x47d16&&(_0xfbe6b6[_0x148872]['next']=_0x47d16);}for(const _0x5d50d5 of _0x2437a4)for(let _0xf6703a=0x0;_0xf6703a<_0x5d50d5['length'];_0xf6703a++){const _0x381dbe=_0x5d50d5[_0xf6703a-0x1]||null;_0x5d50d5[_0xf6703a]['previous']!==_0x381dbe&&(_0x5d50d5[_0xf6703a]['previous']=_0x381dbe);}function _0x4bb99c(_0x1492fb,_0x36c93f){if(_0x1492fb[0x0]['attributes']['groupId']!==_0x36c93f[0x0]['attributes']['groupId']&&_0x1492fb[0x0]['author']!==_0x36c93f[0x0]['author'])return!0x1;if(!function(_0x56773f,_0x52cb74){return!_0x56773f['hasComments']&&!_0x52cb74['hasComments']||(!_0x56773f['hasComments']||!_0x52cb74['hasComments'])&&(!!(_0x56773f['hasComments']&&_0x52cb74['createdAt']<_0x56773f['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x52cb74['hasComments']&&_0x56773f['createdAt']<_0x52cb74['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x1492fb[0x0],_0x36c93f[0x0]))return!0x1;const _0x573164=dt(_0x1492fb[0x0]['attributes'],['groupId','trackingSessionId']),_0x351550=dt(_0x36c93f[0x0]['attributes'],['groupId','trackingSessionId']);return!!ut(_0x573164,_0x351550)&&(_0x1492fb[0x0]['attributes']['groupId']==_0x36c93f[0x0]['attributes']['groupId']||_0x1492fb[0x0]['attributes']['trackingSessionId']===_0x36c93f[0x0]['attributes']['trackingSessionId']&&(!!_0x1492fb['every'](_0x3f8959=>_0x36c93f['some'](_0x479b94=>_0x3f8959['getFirstRange']()['isEqual'](_0x479b94['getFirstRange']())))&&_0x36c93f['every'](_0x30221e=>_0x1492fb['some'](_0x23f889=>_0x30221e['getFirstRange']()['isEqual'](_0x23f889['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xf2872c){const _0x8892cb=Array['from'](_0xf2872c),_0x2bad7f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4dfcff=_0x2bad7f['filter'](_0x27eff1=>!_0xf2872c['has'](_0x27eff1)),_0x241c9d=new Map(_0x8892cb['map'](_0x11922b=>[_0x11922b,this['_suggestionFactory']['getSuggestionCallback'](_0x11922b['type'],_0x11922b['subType'],'join')])),_0x43cda8=new Map(_0x2bad7f['map'](_0x4ef734=>[_0x4ef734,_0x4ef734['getRanges']()]));for(let _0x3e3717=0x0;_0x3e3717<_0x8892cb['length'];_0x3e3717++)if(_0x41c6b4(this,_0x8892cb[_0x3e3717],_0x8892cb,_0x3e3717+0x1))return!0x0;for(let _0x3fc989=0x0;_0x3fc989<_0x8892cb['length'];_0x3fc989++)if(_0x41c6b4(this,_0x8892cb[_0x3fc989],_0x4dfcff,0x0))return!0x0;return!0x1;function _0x41c6b4(_0xfd7bb5,_0x348a30,_0x3da24a,_0x1a5cb4){for(let _0x3d6c96=_0x1a5cb4;_0x3d6c96<_0x3da24a['length'];_0x3d6c96++){const _0x1b8b13=_0x3da24a[_0x3d6c96];if(_0x1b8b13['type']!==_0x348a30['type']||_0x1b8b13['author']['id']!==_0x348a30['author']['id']||_0x1b8b13['subType']!==_0x348a30['subType'])continue;if(!In(_0x348a30,_0x1b8b13))continue;if('attribute'==_0x348a30['type']&&_0x348a30['data']['oldValue']!=_0x1b8b13['data']['oldValue'])continue;if('attribute'==_0x348a30['type']&&_0xfd7bb5['_suggestionsConversion']['isBlockAttribute'](_0x348a30['data']['key']))continue;if('formatBlock'==_0x348a30['type']){const _0x5c6ca1=_0xfd7bb5['editor']['model'],_0x1b2001=_0x348a30['getContainedElement']();if(_0x1b2001&&(_0x5c6ca1['schema']['isObject'](_0x1b2001)||_0x5c6ca1['schema']['isLimit'](_0x1b2001)))continue;}const _0x15b862=_0x241c9d['get'](_0x348a30),_0x1ed819=_0x43cda8['get'](_0x348a30),_0x5e2ab8=_0x43cda8['get'](_0x1b8b13),_0x1dbdb2=_0x348a30['commentThread']&&_0x348a30['commentThread']['length'],_0x38002b=_0x1b8b13['commentThread']&&_0x1b8b13['commentThread']['length'];if(!_0x1dbdb2&&_0x15b862(_0x5e2ab8,_0x1ed819))return _0xfd7bb5['_joinSuggestions'](_0x1b8b13,_0x348a30),_0x43cda8['delete'](_0x348a30),!0x0;if(!_0x38002b&&_0x15b862(_0x1ed819,_0x5e2ab8))return _0xfd7bb5['_joinSuggestions'](_0x348a30,_0x1b8b13),_0x43cda8['delete'](_0x1b8b13),!0x0;}return!0x1;}}_joinSuggestions(_0x532ca6,_0x214f35){if(_0x532ca6['isMultiRange']){for(const _0x721a91 of _0x214f35['getRanges']())_0x532ca6['addRange'](_0x721a91);}else{const _0x274fce=_0x214f35['getFirstRange']()['end'];this['_setSuggestionRange'](_0x532ca6,this['_model']['createRange'](_0x532ca6['getFirstRange']()['start'],_0x274fce));}_0x214f35['removeMarkers']();}_getMarkerAnnouncementText(_0x52fcbd,_0x37009c,_0x371c77){const _0x5f196f=_0x52fcbd['startsWith']('format')||_0x52fcbd['startsWith']('attribute')?'FORMATTING':_0x52fcbd['toUpperCase']();return wt(this['editor']['locale'],_0x37009c+'_'+_0x5f196f+'_SUGGESTION_ANNOUNCEMENT',_0x371c77);}_initAriaMarkerChangeAnnouncements(){const _0x140c22=this['editor'];if(!_0x140c22['ui'])return;const {ariaLiveAnnouncer:_0x2feb92}=_0x140c22['ui'];it(this['_model'],({left:_0x3f3d31,entered:_0x56e7de})=>{for(const _0x24a0da of _0x3f3d31){const {group:_0x301b5c,type:_0x38f88a}=nt(_0x24a0da['name']);if('suggestion'===_0x301b5c){_0x2feb92['announce'](this['_getMarkerAnnouncementText'](_0x38f88a,'LEAVE'));break;}}for(const _0x12c361 of _0x56e7de){const {group:_0x3fc6e4,type:_0x5c063e}=nt(_0x12c361['name']);if('suggestion'===_0x3fc6e4){_0x2feb92['announce'](this['_getMarkerAnnouncementText'](_0x5c063e,'ENTER',_0x4feabf(_0x771252)));break;}}});}_processAttributeChanges(_0x193fd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3b4f21=this['editor'],_0x1105c9=_0x3b4f21['model']['document']['differ']['getChanges']();if(0x0==_0x1105c9['length'])return!0x1;const _0x1d2b42=[],_0x3ac7f5=_0x1105c9['filter'](_0x26c423=>'attribute'==_0x26c423['type']),_0x38a9b4=_0x1105c9['filter'](_0x5a0c66=>'insert'==_0x5a0c66['type']&&'$text'!=_0x5a0c66['name']),_0x2c2830=_0x1105c9['filter'](_0xc4d347=>'remove'==_0xc4d347['type']&&'$text'!=_0xc4d347['name']);for(const _0xa4103c of _0x3ac7f5)_0x1d2b42['push']({'key':_0xa4103c['attributeKey'],'newValue':_0xa4103c['attributeNewValue'],'oldValue':_0xa4103c['attributeOldValue'],'range':_n(_0xa4103c['range'],_0x3b4f21['model'])});for(const _0x3224c5 of _0x38a9b4){const _0x1d331e=_0x2c2830['find'](_0x5bf8cd=>_0x5bf8cd['position']['isEqual'](_0x3224c5['position']));_0x1d331e&&_0x1d2b42['push']({'key':on,'newValue':_0x3224c5['name'],'oldValue':_0x1d331e['name'],'range':_0x3b4f21['model']['createRangeOn'](_0x3224c5['position']['nodeAfter'])});}return 0x0!=_0x1d2b42['length']&&this['_reduceExistingSuggestions'](_0x193fd,_0x1d2b42);}_processAttributeSuggestions(_0x168b2c){let _0x44688d=!0x1;const _0x2cc120=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x92e1=>_0x92e1['data']['newRange']&&_0x92e1['name']['startsWith']('suggestion:attribute:'));for(const _0x103bed of _0x2cc120){const {subType:_0x504aff,id:_0x24f838}=nt(_0x103bed['name']),_0x5522f0=_0x504aff['split']('|')[0x0];for(const _0x1684e0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1684e0['id']!=_0x24f838&&'attribute'==_0x1684e0['type']&&_0x1684e0['data']&&_0x1684e0['data']['key']==_0x5522f0&&_0x1684e0['getFirstRange']()['isIntersecting'](_0x103bed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1684e0,_0x103bed['data']['newRange'],_0x168b2c),_0x44688d=!0x0);}return _0x44688d;}recordAttributeChanges(_0x4fb915){this['_recordAttributeSuggestions']=!0x0,_0x4fb915();}_reduceExistingSuggestions(_0x49e1e4,_0x8415ee){if(0x0==_0x8415ee['length'])return!0x1;let _0xe93194=!0x1;for(const _0x20aa04 of _0x8415ee){const _0x43992f=this['_findSuggestions'](_0x20aa04['range'],'attribute')['filter'](_0x3e708e=>!_0x3e708e['meta']['isNextTo'])['map'](_0x1d92a1=>_0x1d92a1['suggestion']),_0x1d244c=_0x49e7d7({'newValue':_0x20aa04['newValue']});_0x43992f['filter'](_0x2a3051=>{const [_0x63c99f,_0x64fd84]=_0x2a3051['subType']['split']('|');return _0x63c99f==_0x20aa04['key']&&_0x64fd84!=_0x1d244c;})['forEach'](_0x3139ac=>{this['_reduceSuggestionAttributeRange'](_0x3139ac,_0x20aa04['range'],_0x49e1e4),_0xe93194=!0x0;});}return _0xe93194;}_reduceSuggestionAttributeRange(_0x29c301,_0x3c0d26,_0x4cd727){const _0x48f5b8=_0x29c301['getFirstRange']()['getDifference'](_0x3c0d26);0x0!==_0x48f5b8['length']?0x1!==_0x48f5b8['length']?this['_breakSuggestionMarker'](_0x29c301,_0x3c0d26['start'],_0x3c0d26['end']):this['_setSuggestionRange'](_0x29c301,_0x48f5b8[0x0]):_0x4cd727['removeMarker'](_0x29c301['getFirstMarker']());}},un=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x945bbc){this['_editor']=_0x945bbc,this['_model']=_0x945bbc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x2977d6,_0x287def,_0x5497e8,_0x2ff211,_0x1a1c1d,_0x8bd752,_0x100387){return new Ot(this['_model'],{'type':_0x2977d6,'subType':_0x287def,'id':_0x5497e8,'originalSuggestionId':_0x100387,'author':_0x2ff211,'creator':_0x2ff211,'attributes':_0x1a1c1d,'onAttributesChange':_0x8bd752,'onAccept':(..._0x478d2e)=>this['getSuggestionCallback'](_0x2977d6,_0x287def,'accept')(..._0x478d2e),'onDiscard':(..._0x13330a)=>this['getSuggestionCallback'](_0x2977d6,_0x287def,'discard')(..._0x13330a)});}registerCustomCallback(_0x2d69bf,_0xdc3b41,_0x4aa7f7,_0x4db882){const _0x4f2319=_0x2d69bf+':'+_0xdc3b41+':'+_0x4aa7f7;this['_customCallbacks']['set'](_0x4f2319,_0x4db882);}getSuggestionCallback(_0x25ceb6,_0x275bac,_0x33b42c){const _0x44d0bd=_0x25ceb6+':'+_0x275bac+':'+_0x33b42c;return this['_customCallbacks']['get'](_0x44d0bd)||this['_defaultCallbacks']['get'](_0x25ceb6+':'+_0x33b42c);}_registerDefaultCallbacks(){const _0x168f9a=()=>!0x1,_0x1695bb=_0x555f4a=>{_0x555f4a['sort']((_0x2a2c5d,_0x5ecf0e)=>_0x2a2c5d['start']['isBefore'](_0x5ecf0e['start'])?0x1:-0x1),this['_model']['change'](_0x69713d=>{for(const _0x4261ed of _0x555f4a){let _0x3603db;_0x3603db=_0x4261ed['end']['isAtEnd']&&_0x4261ed['end']['parent']==_0x4261ed['start']['nodeAfter']?_0x69713d['createSelection'](_0x4261ed['start']['nodeAfter'],'on'):_0x69713d['createSelection'](_0x4261ed),this['_model']['deleteContent'](_0x3603db,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x470f04=(_0x44a61d,_0x5b886a)=>{_0x5b886a&&this['_model']['change'](_0x19234a=>{const {commandName:_0x5ece3d,commandParams:_0xb1bb34=[]}=_0x5b886a,_0x279c46=_0x44a61d['map'](_0x10ac4f=>(hn(_0x10ac4f)&&(_0x10ac4f=this['_model']['createRange'](_0x10ac4f['end'])),_0x10ac4f))['filter'](_0x5e0168=>'$graveyard'!==_0x5e0168['root']['rootName']);if(_0x279c46['length']<0x1)return;const _0x27bfb4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4ca8f5=>at['fromRange'](_0x4ca8f5));_0x19234a['setSelection'](_0x279c46);for(const _0x2e6232 of this['_editor']['commands']['commands']())_0x2e6232['refresh']();_0xb1bb34['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5ece3d,..._0xb1bb34);const _0x5e555a=_0x27bfb4['filter'](_0x437b72=>'$graveyard'!=_0x437b72['root']['rootName']);_0x5e555a['length']>0x0&&_0x19234a['setSelection'](_0x5e555a);for(const _0x2c4a10 of _0x27bfb4)_0x2c4a10['detach']();});},_0x170801=(_0x223e90,_0x35e413)=>0x1==_0x223e90['length']&&0x1==_0x35e413['length']&&_0x223e90[0x0]['end']['isEqual'](_0x35e413[0x0]['start']),_0x2d874e=(_0x3faa71,_0x3fc5fc,_0x4c2b66,_0x1bd35a)=>Ln(_0x3faa71,_0x3fc5fc,_0x4c2b66,_0x1bd35a)?[_0x3faa71,_0x3fc5fc]:Ln(_0x3fc5fc,_0x3faa71,_0x1bd35a,_0x4c2b66)?[_0x3fc5fc,_0x3faa71]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x168f9a),this['_defaultCallbacks']['set']('insertion:discard',_0x1695bb),this['_defaultCallbacks']['set']('insertion:join',_0x170801),this['_defaultCallbacks']['set']('insertion:chain',_0x2d874e),this['_defaultCallbacks']['set']('deletion:accept',_0x1695bb),this['_defaultCallbacks']['set']('deletion:discard',_0x168f9a),this['_defaultCallbacks']['set']('deletion:join',_0x170801),this['_defaultCallbacks']['set']('deletion:chain',_0x2d874e),this['_defaultCallbacks']['set']('formatInline:accept',_0x470f04),this['_defaultCallbacks']['set']('formatInline:discard',_0x168f9a),this['_defaultCallbacks']['set']('formatInline:join',_0x170801),this['_defaultCallbacks']['set']('formatInline:chain',_0x168f9a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x470f04),this['_defaultCallbacks']['set']('formatBlock:discard',_0x168f9a),this['_defaultCallbacks']['set']('formatBlock:join',_0x170801),this['_defaultCallbacks']['set']('formatBlock:chain',_0x168f9a),this['_defaultCallbacks']['set']('attribute:accept',_0x168f9a),this['_defaultCallbacks']['set']('attribute:discard',(_0x565279,_0x188afd)=>{if(!_0x188afd)return;const _0x5e3f01=this['_editor']['plugins']['get'](_0x3d0838);this['_model']['change'](_0x3ced46=>{if('$elementName'==_0x188afd['key'])for(const _0x1c7ae8 of _0x565279){const _0x45a516=_0x1c7ae8['start']['nodeAfter'],_0x44a81f=_0x188afd['oldValue'];_0x3ced46['rename'](_0x45a516,_0x44a81f);}else{if(_0x5e3f01['isBlockAttribute'](_0x188afd['key'])){for(const _0x463f66 of _0x565279)void 0x0!==_0x188afd['oldValue']?_0x3ced46['setAttribute'](_0x188afd['key'],_0x188afd['oldValue'],_0x463f66['start']['nodeAfter']):_0x3ced46['removeAttribute'](_0x188afd['key'],_0x463f66['start']['nodeAfter']);}else{for(const _0x15bccd of _0x565279)_0x188afd['oldValue']?_0x3ced46['setAttribute'](_0x188afd['key'],_0x188afd['oldValue'],_0x15bccd):_0x3ced46['removeAttribute'](_0x188afd['key'],_0x15bccd);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x170801);}};function dn(_0x59d744,_0x4c3575,_0x3fbba7){for(const _0x3d3c2b of _0x4c3575['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d3c2b['root']==_0x3d3c2b)return!0x1;if(!_0x3fbba7['containsItem'](_0x3d3c2b))return!0x1;if(_0x59d744['isObject'](_0x3d3c2b)||_0x59d744['isLimit'](_0x3d3c2b))return!0x0;}return!0x1;}function hn(_0x20f47e){return _0x20f47e['end']['parent']==_0x20f47e['start']['nodeAfter']&&_0x20f47e['end']['isAtStart'];}function gn(_0x512fc9,_0x425ba3,_0x1f0b53,_0x2e7625){const _0x56f60d=_0x3718c2=>!_0x3718c2['item']['is']('$textProxy')&&!_0x2e7625['isObject'](_0x3718c2['item']),_0x369a77=_0x512fc9['start']['getLastMatchingPosition'](_0x56f60d),_0x38964d=_0x512fc9['end']['getLastMatchingPosition'](_0x56f60d,{'direction':'backward'});return(!_0x512fc9['start']['isEqual'](_0x369a77)||!_0x512fc9['end']['isEqual'](_0x38964d))&&(_0x369a77['isBefore'](_0x38964d)?_0x1f0b53['updateMarker'](_0x425ba3,{'range':_0x1f0b53['createRange'](_0x369a77,_0x38964d)}):_0x1f0b53['removeMarker'](_0x425ba3),!0x0);}function fn(_0x980955){return _0x49e7d7(_0x980955);}function mn(_0x5c4091){const _0x2f7879=_0x5c4091['start']['nodeAfter'];return _0x2f7879&&_0x2f7879['is']('element');}function En(_0x287794){return hn(_0x287794)||function(_0x32be90){return _0x32be90['start']['parent']==_0x32be90['end']['nodeBefore']&&_0x32be90['start']['isAtEnd'];}(_0x287794);}function Tn(_0x172f01,_0x49cb9d){try{const _0x488039=_0x172f01['getRange']();for(const _0x9cc08f of _0x49cb9d)if(_0x172f01!==_0x9cc08f&&_0x488039&&_0x488039['isIntersecting'](_0x9cc08f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function _n(_0x255fb7,_0x3c741d){return null==_0x255fb7['end']['nodeBefore']&&_0x255fb7['end']['parent']==_0x255fb7['start']['nodeAfter']?pn(_0x255fb7['start']['nodeAfter'],_0x3c741d):_0x255fb7;}function pn(_0x2d9be7,_0x2535e3){const _0x1beb79=_0x2535e3['schema']['isObject'](_0x2d9be7)||_0x2535e3['schema']['isSelectable'](_0x2d9be7);return _0x2535e3['createRange'](_0x2535e3['createPositionAt'](_0x2d9be7,'before'),_0x1beb79?_0x2535e3['createPositionAfter'](_0x2d9be7):_0x2535e3['createPositionAt'](_0x2d9be7,'end'));}function Ln(_0x3fd030,_0x258504,_0x44f548,_0x1e967f){return!!In(_0x3fd030,_0x258504)&&_0x44f548['end']['isEqual'](_0x1e967f['start']);}function In(_0x2eebe4,_0x26169b){if(!_0x2eebe4['_isDataLoaded']||!_0x26169b['_isDataLoaded'])return!0x1;const _0x9afdfd=new Set(Object['keys'](_0x2eebe4['attributes'])),_0x230c20=new Set(Object['keys'](_0x26169b['attributes']));if(_0x9afdfd['delete']('groupId'),_0x230c20['delete']('groupId'),0x0==_0x9afdfd['size']&&0x0==_0x230c20['size'])return!0x0;if(_0x9afdfd['size']!=_0x230c20['size'])return!0x1;const _0x554028={..._0x2eebe4['attributes']},_0xe9ffe3={..._0x26169b['attributes']};return delete _0x554028['groupId'],delete _0xe9ffe3['groupId'],JSON['stringify'](_0x554028)==JSON['stringify'](_0xe9ffe3);}function An(_0x4228af,_0x502218){const _0x3955de=bn(_0x4228af['attributes']),_0x11fc80=bn(_0x502218);if(!_0x4228af['_isDataLoaded'])return!0x1;if(!ut(_0x3955de['@ai'],_0x11fc80['@ai']))return!0x1;for(const _0x2de7e8 of Object['keys'](_0x11fc80))if(!ut(_0x3955de[_0x2de7e8],_0x11fc80[_0x2de7e8]))return!0x1;return!0x0;}function bn(_0x77dc8c){const _0x25d0e0=Object['assign']({},_0x77dc8c);return delete _0x25d0e0['skipNestingCheck'],delete _0x25d0e0['tablePasteChainId'],_0x25d0e0;}function Cn(_0x426214){return _0x426214['split']('|')[0x0];}const kn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1c4d48();var Rn=class extends kn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x54c99d,_0x401907,_0x2487cd,_0x2cdd80){super(),this['model']=_0x401907,this['view']=_0x2487cd,this['commentThreadController']=_0x2cdd80,this['_editor']=_0x54c99d,this['_acceptCommand']=_0x54c99d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54c99d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x314813,_0x25d823)=>_0x314813||_0x25d823),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x12e3a1=>_0x12e3a1&&this['_editor']['model']['canEditAt'](_0x401907['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3fa39a=>_0x3fa39a&&this['_editor']['model']['canEditAt'](_0x401907['getRanges']())),this['_pendingAction']=null,_0x2487cd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2487cd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2487cd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2487cd,'change:isDirty',()=>{_0x2487cd['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 _0x531b91=wt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x531b91);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Nn=class extends _0x506e07{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2043c4,_0x527827,_0x4ccbd5,_0x10d8d4){super(_0x2043c4),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xd0f5c9(_0x2043c4,wt(_0x2043c4,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x527827['authoredAt']),this['bind']('authoredAt')['to'](_0x527827),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',_0x527827,'authoredAt',this,'descriptionParts',(_0x398edc,_0x236c6,_0x3fd730)=>{const _0x52e0d5=_0x3fd730['map'](_0x177e23=>At(_0x177e23['content']))['join']('.\x20')+'.',_0x1e0a80=_0x527827['aiSource']&&'author'===_0x10d8d4['showAISource']?_0x10d8d4['aiAuthor']['name']:_0x527827['author']['name'],_0x572fc2=wt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x398edc-0x1,_0x1e0a80,_0x236c6?_0x10d8d4['formatDateTime'](_0x236c6):'',new DOMParser()['parseFromString'](_0x33f74d(_0x52e0d5),'text/html')['body']['textContent']]);return _0x527827['aiSource']&&'pill'===_0x10d8d4['showAISource']?_0x572fc2+'\x20'+wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x572fc2;}),this['focusables']=new _0x3714b8(),this['focusTracker']=new _0x93fd4c(),this['keystrokes']=new _0x18a2e2(),this['focusCycler']=new _0x5b7e4f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2cf504=>_0x2cf504['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x527827,this['_localUser']=_0x4ccbd5,this['_config']=_0x10d8d4,_0x10d8d4['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:_0x20e6eb}=this['_config'];this['commentsListView']=new _0x20e6eb(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',_0x361499=>_0x361499+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3e0ae5,_0x3f85aa)=>_0x3e0ae5||!!_0x3f85aa);}_createCommentThreadInputView(){const {CommentThreadInputView:_0xffeefd}=this['_config'],_0x49f0dc=new _0xffeefd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5509cf=_0x49f0dc['commentInputView'];return _0x49f0dc['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5509cf,'value',(_0x76505e,_0x41c812,_0x3668de)=>!!_0x3668de||_0x76505e&&!_0x41c812),_0x5509cf['on']('submit',(_0x164298,_0x54acf4)=>{this['fire']('addComment',_0x54acf4),_0x5509cf['editor']['setData']('');}),_0x5509cf['on']('cancel',()=>this['focus']()),_0x5509cf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x49f0dc;}},yn=class extends Nn{suggestionView;_descriptionElement;constructor(_0x167d61,_0x502602,_0x5a0b06,_0xe7349b){super(_0x167d61,_0x502602,_0x5a0b06,_0xe7349b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5a9b94=>_0x5a9b94&&_0x5a9b94[0x0]?_0x5a9b94[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2aa6ba,_0x3819fc)=>{let _0x506537='';for(const _0x348275 of _0x2aa6ba)_0x506537+='<p>'+At(_0x348275['content'],_0x348275['color'])+'</p>';return _0x3819fc?_0x506537:st(_0x506537,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xe7349b['SuggestionView'](_0x167d61,_0x502602,{'formatDateTime':_0xe7349b['formatDateTime'],'showAISource':_0xe7349b['showAISource'],'aiAuthor':_0xe7349b['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',_0x1cf1af=>!!_0x1cf1af||wt(_0x167d61,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x2293d3=>!!_0x2293d3||wt(_0x167d61,'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 _0x3b825c=this['bindTemplate'],_0x2ca72e=[this['suggestionView']];return this['commentsListView']&&_0x2ca72e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2ca72e['push'](this['commentThreadInputView']),_0x2ca72e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3b825c['if']('isActive','ck-suggestion-wrapper--active'),_0x3b825c['to']('type',_0x499590=>'ck-suggestion-'+_0x499590),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':_0x3b825c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2ca72e};}['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 _0x506e07{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x36b892,_0x532c59,_0x10cd55){super(_0x36b892),this['_model']=_0x532c59,this['_config']=_0x10cd55,this['set']('description',''),this['bind']('authoredAt')['to'](_0x532c59),this['acceptButton']=this['_createButton'](wt(_0x36b892,'Accept\x20suggestion'),_0x510740,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](wt(_0x36b892,'Discard\x20suggestion'),_0x356fc1,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x3e1a9c=!!_0x532c59['aiSource']&&'author'===_0x10cd55['showAISource'],_0x5bb66c=_0x3e1a9c?this['_createAIUser'](_0x10cd55['aiAuthor']):_0x532c59['author'],_0x308925=_0x3e1a9c&&!_0x10cd55['aiAuthor']['avatar']?_0x195418:void 0x0;this['userView']=new _0x5804c0(_0x36b892,_0x5bb66c,this['getUserViewNotificationText'](),_0x308925),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3714b8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x93fd4c(),this['keystrokes']=new _0x18a2e2(),this['focusCycler']=new _0x5b7e4f({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3e7c38=>_0x3e7c38['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x33423b=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x33423b['innerHTML']=_0x33f74d(this['description']),this['on']('change:description',(_0x545d2d,_0x603813,_0x364675)=>{_0x33423b['innerHTML']=_0x33f74d(_0x364675);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x2481ec=this['bindTemplate'],_0x4470d6=[{'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':_0x2481ec['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2481ec['to']('authoredAt',_0x38320a=>this['_config']['formatDateTime'](_0x38320a))}]}]},{'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']&&_0x4470d6['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x4e9613=new _0x37808a(this['locale']);_0x4e9613['set']({'icon':_0x4b894a,'label':wt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':wt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x4470d6['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x4e9613]});}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':_0x4470d6}]};}['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(_0x31df19){return new _0x562872({'id':'ck-ai-author','name':_0x31df19['name'],'avatar':_0x31df19['avatar'],'color':new _0x1162bb(0x0)});}_createButton(_0x2780f1,_0x45e5fe,_0x5333c6,_0x434b8a,_0xb161a4){const _0x1c1633=new _0x38a385(this['locale']);return _0x1c1633['set']({'label':_0x2780f1,'icon':_0x45e5fe,'tooltip':!0x0,'tooltipPosition':_0xb161a4}),_0x1c1633['extendTemplate']({'attributes':{'class':_0x5333c6}}),_0x1c1633['on']('execute',()=>{this['fire'](_0x434b8a,this['_model']['id']);}),_0x1c1633;}_setupKeyboardNavigation(){const _0x1abf43=this['element'];this['keystrokes']['listenTo'](_0x1abf43);for(const _0x327dfd of this['focusables'])this['focusTracker']['add'](_0x327dfd['element']),this['keystrokes']['listenTo'](_0x327dfd['element']);this['keystrokes']['set']('enter',(_0x5237ed,_0x413e61)=>{_0x1abf43===_0x5237ed['target']&&(this['focusCycler']['focusFirst'](),_0x413e61());}),this['keystrokes']['set']('esc',(_0x2b9b77,_0x70563f)=>{_0x1abf43!==_0x2b9b77['target']&&(this['focus'](),_0x70563f());});}},Mn=class extends _0x4ac61c{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[ln,_0x19a74f,_0x363b9c,_0x570c31,_0x5ba2c8];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44223d){super(_0x44223d),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x546afa=this['editor']['config'];_0x546afa['define']('trackChanges.SuggestionThreadView',yn),_0x546afa['define']('trackChanges.SuggestionView',Sn),_0x546afa['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x546afa['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x291f3d,_0x45ca2d){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2e2f0e,_0x2b6738]of this['_handleControllerBuffer']){const _0xa23ca4=this['_suggestionToController']['has'](_0x2e2f0e);_0xa23ca4||_0x2b6738?_0xa23ca4&&_0x2b6738&&this['_destroyController'](_0x2e2f0e):this['_initializeController'](_0x2e2f0e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x5ba2c8)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x291f3d,_0x45ca2d);}init(){const _0x106ea4=this['editor'],_0x5ea687=_0x106ea4['plugins']['get'](ln),_0x3e011a=_0x106ea4['plugins']['get'](_0x570c31),_0x163c3e=_0x106ea4['plugins']['get'](_0x5ba2c8),_0x49f731=_0x106ea4['plugins']['get'](_0x363b9c);this['_addUIComponentsToFactory'](),_0x163c3e['addSourceCollector'](()=>{const _0x4f49e3=[];for(const [_0x2f297f,_0x5ed3e5]of Array['from'](this['_suggestionToController'])){const _0x2b9d9b=_0x2f297f['getAllAdjacentSuggestions'](),_0x27af78=[];for(const _0x1fe959 of _0x2b9d9b){if(!_0x1fe959['isInContent'])continue;if(_0x1fe959['isMultiRange']){_0x27af78['push'](..._0x1fe959['getRanges']());continue;}const _0x44653f=_0x1fe959['getFirstRange']();if(_0x27af78['length']>0x0){const _0x4fd2aa=_0x27af78[0x0]['getJoined'](_0x44653f);if(_0x4fd2aa){_0x27af78[0x0]=_0x4fd2aa;continue;}}_0x27af78['push'](_0x44653f);}_0x4f49e3['push']([_0x5ed3e5['view'],_0x27af78]);}return _0x4f49e3;}),this['listenTo'](_0x5ea687,'suggestionLoaded',(_0x1d91a7,_0x1d9364)=>{this['listenTo'](_0x1d9364,'change:previous',(_0x3ce5b1,_0x153ad9,_0x787f60,_0xb67018)=>{_0x1d9364['isInContent']&&(null==_0x787f60?(this['_updateController'](_0xb67018['head']),this['_handleSuggestionControllerDelayed'](_0x1d9364,!0x1)):(this['_updateController'](_0x787f60['head']),null==_0xb67018&&this['_handleSuggestionControllerDelayed'](_0x1d9364,!0x0)));}),null!==_0x1d9364['previous']?this['_updateController'](_0x1d9364['head']):this['_handleSuggestionControllerDelayed'](_0x1d9364,!0x1);}),this['listenTo'](_0x5ea687,'suggestionUnloaded',(_0x3242e9,_0x1774c5,_0x55d6d1)=>{this['stopListening'](_0x1774c5,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1774c5),this['_suggestionToController']['has'](_0x1774c5)&&this['_destroyController'](_0x1774c5),_0x55d6d1&&this['_updateController'](_0x55d6d1['head']);}),this['listenTo'](_0x5ea687,'suggestionChanged',(_0x466c2f,_0x2ac5ef)=>{this['_updateController'](_0x2ac5ef);}),this['listenTo'](_0x3e011a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x49f731,'addComment',(_0x18cade,{threadId:_0x580fce,isFromAdapter:_0x1ea073})=>{if(_0x1ea073||!_0x5ea687['hasSuggestion'](_0x580fce))return;const _0x16b568=_0x5ea687['getSuggestion'](_0x580fce);this['_suggestionToController']['get'](_0x16b568)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x15b111=[this['editor']];for(const _0xaccc03 of _0x15b111){let _0x27fbd3;for(const _0x3aaec2 in _0xaccc03){const _0x26b5a6=_0x3aaec2,_0x19ed2c=_0xaccc03[_0x26b5a6];if('trackChangesLicenseKeyValid'==_0x19ed2c||'trackChangesLicenseKeyInvalid'==_0x19ed2c||'trackChangesLicenseKeyExpired'==_0x19ed2c||'trackChangesLicenseKeyDomainLimit'==_0x19ed2c||'trackChangesLicenseKeyNotAllowed'==_0x19ed2c||'trackChangesLicenseKeyEvaluationLimit'==_0x19ed2c||'trackChangesLicenseKeyUsageLimit'==_0x19ed2c){delete _0xaccc03[_0x26b5a6],_0x27fbd3=_0x19ed2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x27fbd3&&_0xaccc03['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x27fbd3&&_0xaccc03['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x27fbd3&&_0xaccc03['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x27fbd3&&_0xaccc03['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x27fbd3&&_0xaccc03['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x27fbd3&&_0xaccc03['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x305a1e){const _0x10668c=this['_suggestionToController']['get'](_0x305a1e);return _0x10668c&&this['editor']['plugins']['get'](_0x570c31)['getByInnerView'](_0x10668c['view'])||null;}getSuggestionForAnnotation(_0x39a6d2){const _0x1f07b7=this['_viewToController']['get'](_0x39a6d2['innerView']);return _0x1f07b7?_0x1f07b7['model']:null;}_refreshActiveMarkers(){const _0x3c4bda=this['editor']['plugins']['get'](_0x570c31),_0x497c16=this['editor']['plugins']['get'](ln),_0x10e039=Array['from'](_0x3c4bda['activeAnnotations'],_0x4242e2=>_0x4242e2['innerView'])['filter'](_0x186b1b=>this['_viewToController']['has'](_0x186b1b)),_0x210beb=[];for(const _0x7f0d89 of _0x10e039){const _0x34adee=this['_viewToController']['get'](_0x7f0d89)['model']['getAllAdjacentSuggestions']();_0x210beb['push'](..._0x34adee['reduce']((_0x5d45a3,_0x21fb97)=>[..._0x5d45a3,..._0x21fb97['getMarkerNames']()],[]));}_0x497c16['activeMarkers']=_0x210beb;}_addUIComponentsToFactory(){const _0x131943=this['editor'],_0x85bdbb=_0x131943['locale'],_0x57e9d0=wt(_0x85bdbb,'Track\x20changes'),_0x8eb6d0=new _0x308308([{'type':'switchbutton','model':new _0x237e5f({'withText':!0x0,'isToggleable':!0x0,'label':_0x57e9d0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x237e5f({'withText':!0x0,'label':wt(_0x85bdbb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x237e5f({'withText':!0x0,'label':wt(_0x85bdbb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x237e5f({'withText':!0x0,'label':wt(_0x85bdbb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x237e5f({'withText':!0x0,'label':wt(_0x85bdbb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x131943['plugins']['has']('TrackChangesPreview')&&_0x8eb6d0['addMany']([{'type':'separator'},{'type':'button','model':new _0x237e5f({'withText':!0x0,'label':wt(_0x85bdbb,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x38787d of _0x8eb6d0)if(On(_0x38787d)){const _0x312c93=_0x131943['commands']['get'](_0x38787d['model']['commandName']);_0x38787d['model']['bind']('isOn','isEnabled')['to'](_0x312c93,'value','isEnabled');}_0x131943['ui']['componentFactory']['add']('trackChanges',_0x3d2de3=>this['_createToolbarButton'](_0x3d2de3,_0x8eb6d0,_0x57e9d0)),_0x131943['ui']['componentFactory']['add']('menuBar:trackChanges',_0x22c7ac=>this['_createMenuBarMenu'](_0x22c7ac,_0x8eb6d0,_0x57e9d0));}_createToolbarButton(_0xf97d1a,_0x10beb6,_0x16b7f6){const _0x260867=_0x1d51ba(_0xf97d1a,_0x420672),_0x23782d=this['editor']['commands']['get']('trackChanges');_0x260867['buttonView']['set']({'tooltip':_0x16b7f6,'label':_0x16b7f6,'icon':_0xf6f2c9}),_0x260867['buttonView']['bind']('isOn')['to'](_0x23782d,'value'),_0x260867['buttonView']['on']('execute',()=>{_0x23782d['execute'](),this['editor']['editing']['view']['focus']();}),_0xcef76c(_0x260867,_0x10beb6,{'role':'menu'});const _0xc1a4a4=[];for(const _0x538d65 of _0x10beb6)On(_0x538d65)&&_0xc1a4a4['push'](this['editor']['commands']['get'](_0x538d65['model']['commandName']));const _0x5bf8d7=_0x260867['buttonView'];return _0x5bf8d7['actionView']['unbind']('isEnabled'),_0x5bf8d7['arrowView']['unbind']('isEnabled'),_0x5bf8d7['actionView']['bind']('isEnabled')['to'](_0x23782d,'isEnabled'),_0x5bf8d7['arrowView']['bind']('isEnabled')['toMany'](_0xc1a4a4,'isEnabled',(..._0x1b0f02)=>_0x1b0f02['some'](_0x31380a=>_0x31380a)),_0x260867['on']('execute',_0x2dfb39=>{this['editor']['execute'](_0x2dfb39['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x260867;}_createMenuBarMenu(_0x5d34b1,_0x10a1b1,_0x2e45ac){const _0x574bad=new _0x14ecbb(_0x5d34b1),_0x238849=this['editor']['commands']['get']('trackChanges');_0x574bad['buttonView']['set']({'label':_0x2e45ac,'icon':_0xf6f2c9});const _0x462edf=new _0x51e315(_0x5d34b1);for(const _0x4276a0 of _0x10a1b1){if('separator'==_0x4276a0['type']){_0x462edf['items']['add'](new _0x4b4d79(_0x5d34b1));continue;}const _0x54a7c7=new _0x321be7(_0x5d34b1,_0x574bad),_0x384472=new _0x554c9f(_0x5d34b1),_0x527bb9=_0x4276a0['model'];_0x384472['bind'](...Object['keys'](_0x527bb9))['to'](_0x527bb9),_0x384472['delegate']('execute')['to'](_0x574bad),_0x384472['on']('execute',()=>{this['editor']['execute'](_0x527bb9['commandName']),this['editor']['editing']['view']['focus']();}),_0x54a7c7['children']['add'](_0x384472),_0x462edf['items']['add'](_0x54a7c7);}return _0x574bad['bind']('isEnabled')['to'](_0x238849,'isEnabled'),_0x574bad['panelView']['children']['add'](_0x462edf),_0x574bad;}_initializeController(_0x4055d2){const _0xc69518=this['editor'],_0x36ab24=_0xc69518['config'],_0x43d484=_0xc69518['plugins']['get'](_0x570c31),_0x4a89c2=_0xc69518['plugins']['get'](_0x363b9c),_0x50ad5d=_0xc69518['plugins']['get'](_0x5ba2c8),_0x17eb2b=_0xc69518['plugins']['get'](_0x19a74f)['me'],_0xb5efda=_0x36ab24['get']('trackChanges')['SuggestionThreadView'],_0x273fe9=_0x36ab24['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x27b00e,CommentThreadInputView:_0x352f85}=_0xc69518['plugins']['get']('CommentsUI');let _0x217f4a,_0x3db776,_0x45706a;this['_annotationViews']['has'](_0x4055d2['id'])?(_0x3db776=this['_annotationViews']['get'](_0x4055d2['id']),_0x217f4a=_0x3db776['mainView']):(_0x217f4a=new _0xb5efda(_0xc69518['locale'],_0x4055d2,_0x17eb2b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x36ab24['get']('comments.editorConfig'),'licenseKey':_0x36ab24['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x36ab24['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x36ab24['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x36ab24['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5b602d(_0x36ab24['get']('locale'),_0xc69518['locale']),'CommentView':_0x36ab24['get']('comments')['CommentView'],'CommentsListView':_0x27b00e,'CommentThreadInputView':_0x352f85,'SuggestionView':_0x273fe9,'showAISource':_0x36ab24['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x36ab24['get']('trackChanges.aiAuthor'),'name':_0x36ab24['get']('trackChanges.aiAuthor')?.['name']||wt(_0xc69518['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x217f4a['suggestionView']['acceptButton']['on']('execute',()=>{_0xc69518['editing']['view']['focus']();}),_0x217f4a['suggestionView']['discardButton']['on']('execute',()=>{_0xc69518['editing']['view']['focus']();}),_0x3db776=_0x43d484['createAnnotationView'](this['editor']['locale'],_0x217f4a),_0x3db776['bind']('isDirty')['to'](_0x217f4a,'isDirty'),_0x3db776['bind']('length')['to'](_0x217f4a),_0x3db776['bind']('type')['to'](_0x217f4a,'type',_0x44f8b6=>'suggestion-'+_0x44f8b6),_0x217f4a['on']('escape',()=>{_0x45706a['fire']('escape');}),this['_annotationViews']['set'](_0x4055d2['id'],_0x3db776));const _0x4972da=_0x4a89c2['createCommentThreadController'](_0x4055d2['commentThread'],_0x217f4a),_0xda6425=new Rn(_0xc69518,_0x4055d2,_0x217f4a,_0x4972da),_0xae76e0=_0x4055d2['getAllAdjacentSuggestions']()['filter'](_0x5cac8f=>_0x5cac8f['isInContent']);_0x217f4a['descriptionParts']=_0xc69518['plugins']['get'](ln)['descriptionFactory']['getDescriptions'](_0xae76e0),this['_suggestionToController']['set'](_0x4055d2,_0xda6425),this['_viewToController']['set'](_0x217f4a,_0xda6425);const _0x3666bf=()=>{const _0x1b1502=[],_0x5148ae=_0x4055d2['getAllAdjacentSuggestions']()['filter'](_0x191ee1=>_0x191ee1['isInContent']);for(const _0xd04673 of _0x5148ae)_0x1b1502['push'](..._0xd04673['getMarkers']());return _0x1adaf4(_0xc69518['editing'],_0x1b1502);};_0x45706a=_0x43d484['createAnnotation']({'view':_0x3db776,'target':_0x3666bf,'type':()=>'suggestion-'+_0xda6425['view']['type'],'isVisible':!!_0x3666bf()}),_0x4a89c2['_bindAnnotationToEditors'](_0x217f4a,_0x45706a),_0x43d484['add'](_0x45706a),_0x50ad5d['registerAnnotation'](_0x45706a);}_destroyController(_0x4d3028){const _0x1cd851=this['editor']['plugins']['get'](_0x363b9c),_0x4f7c00=this['editor']['plugins']['get'](_0x570c31),_0xdac113=this['_suggestionToController']['get'](_0x4d3028),_0x119045=_0xdac113['view'],_0x49e7b8=_0x4f7c00['getByInnerView'](_0x119045);_0x1cd851['_unbindEditors'](_0x119045),_0x49e7b8&&_0x4f7c00['remove'](_0x49e7b8),this['_suggestionToController']['delete'](_0x4d3028),this['_viewToController']['delete'](_0x119045),_0xdac113['destroy']();}_updateController(_0x386d78){if(!_0x386d78['isInContent']||!this['_suggestionToController']['has'](_0x386d78))return;const _0x11de06=this['editor']['plugins']['get'](ln),_0x889255=this['_suggestionToController']['get'](_0x386d78),_0x5d152d=_0x386d78['getAllAdjacentSuggestions']();_0x889255['view']['descriptionParts']=_0x11de06['descriptionFactory']['getDescriptions'](_0x5d152d);}destroy(){for(const _0x24da2e of this['_suggestionToController']['keys']())this['_destroyController'](_0x24da2e);for(const _0x1be770 of this['_annotationViews']['values']())_0x1be770['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function On(_0xc84ff8){return'model'in _0xc84ff8;}var wn=class extends _0x4ac61c{static get requires(){return[ln,Mn,_0x48ea38];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0xa712d8){this['editor']['plugins']['get'](ln)['adapter']=_0xa712d8;}get adapter(){return this['editor']['plugins']['get'](ln)['adapter'];}addSuggestion(_0x23ab07){return this['editor']['plugins']['get'](ln)['addSuggestionData'](_0x23ab07);}getSuggestions({skipNotAttached:_0x3666d5=!0x1,toJSON:_0x5ab9ac=!0x1}={}){return this['editor']['plugins']['get'](ln)['getSuggestions']({'skipNotAttached':_0x3666d5,'toJSON':_0x5ab9ac});}getSuggestion(_0x27adad){return this['editor']['plugins']['get'](ln)['getSuggestion'](_0x27adad);}};const Bn=['Pagination'];var Fn=class extends _0x4ac61c{static get requires(){return[ln];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x605fcb=this['editor'];if(_0x605fcb['config']['define']('trackChangesData.editorCreator',_0x2ad2cd=>{const _0x37b2c5=_0x605fcb['model']['document']['getRootNames']()['reduce']((_0x1312cf,_0x45ead2)=>(_0x1312cf[_0x45ead2]='',_0x1312cf),{});return _0x605fcb['constructor']['create'](_0x37b2c5,_0x2ad2cd);}),'function'!=typeof _0x605fcb['config']['get']('trackChangesData')['editorCreator'])throw new _0x6534dd('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x44c389){return Un(this['editor'],!0x0,_0x44c389);}getDataWithDiscardedSuggestions(_0x436dd1){return Un(this['editor'],!0x1,_0x436dd1);}},vn=class extends _0x4ac61c{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c4f17){super(_0x3c4f17),this['result']='end',_0x3c4f17['editing']['view']['_overlayModeHint']='auto',_0x3c4f17['_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(_0x56f479){return void 0x0!==_0x56f479['getRootsAttributes'];}async function Un(_0x3b4b08,_0x141591,_0x496f8b){const _0x77efa6=tt(_0x3b4b08,Bn);if(_0x77efa6['plugins']['push'](ln,vn),Dn(_0x3b4b08)){_0x77efa6['roots']=Object['create'](null);for(const _0x2fb40c of _0x3b4b08['model']['document']['getRootNames']())_0x77efa6['roots'][_0x2fb40c]={'modelAttributes':_0x3b4b08['getRootAttributes'](_0x2fb40c)};}const _0x39218d=document['createDocumentFragment'](),_0x2ac0ed=_0x3b4b08['config']['get']('trackChangesData')['editorCreator'],_0x217000=await _0x2ac0ed(_0x77efa6,()=>function(_0x5830c6){const _0x3ed9df=document['createElement']('div');return _0x5830c6['appendChild'](_0x3ed9df),_0x3ed9df;}(_0x39218d));!function(_0x3f3c1c,_0x3e971b){const _0x27b41a=_0x3f3c1c['model']['document']['getRootNames']()['reduce']((_0x13ad8e,_0x520d34)=>(_0x13ad8e[_0x520d34]=_0x3f3c1c['data']['get']({'rootName':_0x520d34}),_0x13ad8e),{}),_0x30c220=_0x3f3c1c['plugins']['get']('Users')['users']['map'](_0x5bdf76=>({'id':_0x5bdf76['id'],'name':_0x5bdf76['name']})),_0x4d38ac=_0x3f3c1c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x46294e=_0x3f3c1c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4d4edb=_0x3e971b['plugins']['get']('Users'),_0x140737=_0x3e971b['plugins']['get']('TrackChangesEditing'),_0x10de92=_0x3e971b['plugins']['get']('CommentsRepository');for(const _0x1a1382 of _0x10de92['getCommentThreads']())_0x1a1382['remove']();for(const _0x356094 of _0x30c220)_0x4d4edb['getUser'](_0x356094['id'])||_0x4d4edb['addUser'](_0x356094);_0x4d4edb['me']||_0x4d4edb['useAnonymousUser']();for(const _0x4381bb of _0x46294e)_0x10de92['addCommentThread'](_0x4381bb);for(const _0x5541ed of _0x4d38ac)_0x140737['addSuggestionData'](_0x5541ed);_0x3e971b['data']['set'](_0x27b41a);}(_0x3b4b08,_0x217000),_0x217000['execute'](_0x141591?'acceptAllSuggestions':'discardAllSuggestions');const _0x3339e4=Dn(_0x217000)?_0x217000['getFullData'](_0x496f8b):_0x217000['data']['get'](_0x496f8b);return await _0x217000['destroy'](),_0x3339e4;}var Pn=class extends _0x506e07{options;constructor(_0x59eecf,_0x24f9b1){super(_0x59eecf),this['options']=_0x24f9b1,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(_0x3f7049,_0x24da59){if(!this['element'])return;const _0x1ad9da=[];for(const [_0x5906a4,_0x1e27ba]of _0x3f7049){const _0x23f3eb=document['createElement']('div');_0x23f3eb['setAttribute']('data-ck-root-name',_0x5906a4),_0x23f3eb['className']=_0x1e27ba['classes']+'\x20ck-track-changes-preview__root-container',_0x23f3eb['innerHTML']=_0x33f74d(_0x1e27ba['content']),_0x1ad9da['push'](_0x23f3eb);}_0x24da59(this['element'],_0x1ad9da),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},xn=class extends _0x3e22c8{constructor(_0x3ab3fa){super(_0x3ab3fa),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x3184a1=this['editor'],_0x3204b2=_0x3184a1['locale'],_0x497ffa=_0x3184a1['plugins']['get']('Dialog');let _0x3e1a55;const _0x56317e=function(_0x2ff13b){const _0x5a3a9e={};if('editables'in _0x2ff13b['ui']['view']){for(const [_0x5007ed,_0x156c93]of Object['entries'](_0x2ff13b['ui']['view']['editables']))_0x5a3a9e[_0x5007ed]=_0x156c93['element'];}else _0x5a3a9e[_0x2ff13b['model']['document']['getRootNames']()[0x0]]=_0x2ff13b['ui']['view']['editable']['element'];return _0x5a3a9e;}(_0x3184a1),_0x2cdb95=function(_0x45bee9){let _0x4b2fde=0x0;for(const _0x5f2bf2 of Object['values'](_0x45bee9))_0x4b2fde=Math['max'](_0x4b2fde,_0x5f2bf2['getBoundingClientRect']()['width']);let _0x1b9dfc=0x0;for(const _0x13c833 of Object['values'](_0x45bee9))_0x1b9dfc+=_0x13c833['getBoundingClientRect']()['height'];const _0x377cea=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x4b2fde,'height':Math['min'](_0x1b9dfc,_0x377cea)};}(_0x56317e);_0x497ffa['show']({'id':'finalContentPreview','title':wt(_0x3204b2,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Pn(_0x3204b2,{'dialogRects':_0x2cdb95}),'onHide':()=>{_0x3e1a55['destroy']();},'onShow':()=>{_0x3184a1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3ccbc9=>{const _0x321be2=this['_standarizeRootsData'](_0x3ccbc9,_0x3184a1,_0x56317e);_0x497ffa['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x321be2,_0x3184a1['config']['get']('trackChanges.preview.renderFunction'));}),_0x3e1a55=new _0x22e377(_0x3204b2,[_0x497ffa['view']]),_0x3e1a55['attachToDom'](_0x3184a1['ui']['view']['body']['mountTarget']),_0x3e1a55['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3184a1['once']('destroy',()=>{_0x3e1a55['destroy']();});const _0x40c38b=_0x497ffa['view']['headerView']['class'];_0x497ffa['view']['headerView']['class']=_0x40c38b?_0x40c38b+'\x20ck-reset_all':'ck-reset_all',_0x497ffa['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x497ffa['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x480152=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x715ac3=_0x480152['previewMode'],_0x424ecc={};if('$labels'===_0x715ac3){for(const _0x338ae4 of _0x480152['getMergeFieldsIds']())_0x424ecc[_0x338ae4]=_0x480152['getLabel'](_0x338ae4)||_0x338ae4;}else{const _0x507f69='$defaultValues'===_0x715ac3?_0x480152['getDefaultValues']():_0x480152['getDataSetValues'](_0x715ac3,!0x0);for(const _0x312235 of Object['entries'](_0x507f69)){const [_0x322f06,_0x12e7f6]=_0x312235;_0x424ecc[_0x322f06]=null!==_0x12e7f6?_0x12e7f6:_0x480152['getLabel'](_0x322f06)||_0x322f06;}}return{'mergeFieldsData':_0x424ecc};}_standarizeRootsData(_0x44e214,_0x28b8c9,_0x5b77fd){let _0xf8a7d5;_0xf8a7d5='string'==typeof _0x44e214?{[_0x28b8c9['model']['document']['getRootNames']()[0x0]]:_0x44e214}:_0x44e214;const _0x3541f5=this['_fixMediaEmbeds'](_0xf8a7d5,_0x28b8c9);return function(_0x39d287,_0x414fad){for(const [_0x9d28f9,_0x3b3987]of _0x39d287)_0x3b3987['classes']=_0x414fad[_0x9d28f9]['classList']['value']['replace']('ck-focused','');return _0x39d287;}(this['_sortRoots'](_0x28b8c9)['reduce']((_0x58fc18,_0x43fa1b)=>(_0x58fc18['push']([_0x43fa1b,{'content':_0x3541f5[_0x43fa1b],'classes':''}]),_0x58fc18),[]),_0x5b77fd);}['_fixMediaEmbeds'](_0x519fee,_0x32f5e9){if(!_0x32f5e9['plugins']['has']('MediaEmbedEditing'))return _0x519fee;const _0x59ef05=_0x32f5e9['plugins']['get']('MediaEmbedEditing');for(const [_0x574290,_0x5e0383]of Object['entries'](_0x519fee)){const _0x28b913=document['createElement']('div');_0x28b913['innerHTML']=_0x33f74d(_0x5e0383),_0x28b913['querySelectorAll']('figure.media')['forEach'](_0x4523e1=>{const _0xfadcbe=_0x4523e1['querySelector']('oembed');if(_0xfadcbe){const _0x19fbdc=_0xfadcbe['getAttribute']('url');if(_0x19fbdc){const _0x4d9007=_0x59ef05['registry']['getMediaViewElement'](new ct(_0x32f5e9['editing']['view']['document']),_0x19fbdc,{'elementName':'','renderForEditingView':!0x0}),_0x25294c=document['createElement']('div');_0x25294c['classList']['add']('ck-media__wrapper'),_0x4d9007['render'](_0x25294c,_0x32f5e9['editing']['view']['domConverter']),_0xfadcbe['replaceWith'](_0x25294c);}}}),_0x519fee[_0x574290]=_0x28b913['innerHTML'];}return _0x519fee;}_sortRoots(_0x525210){if(!function(_0x48c84b){return void 0x0!==_0x48c84b['getRootsAttributes'];}(_0x525210))return _0x525210['model']['document']['getRootNames']();const _0x5c1ffb=[],_0x163ab3=new Map();for(const _0x1cd88d of _0x525210['model']['document']['getRootNames']()){const _0x86b63e=_0x525210['editing']['view']['getDomRoot'](_0x1cd88d)['getClientRects']()['item'](0x0);_0x5c1ffb['push'](_0x1cd88d),_0x163ab3['set'](_0x1cd88d,_0x86b63e);}return _0x5c1ffb['sort']((_0x2fa50a,_0x503e63)=>{const _0x5d333b=_0x163ab3['get'](_0x2fa50a),_0x31961c=_0x163ab3['get'](_0x503e63);return _0x5d333b['y']-_0x31961c['y']||_0x5d333b['x']-_0x31961c['x'];}),_0x5c1ffb;}},Gn=class extends _0x4ac61c{static get requires(){return[Fn,_0xdaad97];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x129e22){super(_0x129e22),_0x129e22['commands']['add']('previewFinalContent',new xn(this['editor'])),_0x129e22['config']['define']('trackChanges.preview.renderFunction',(_0x4be96d,_0x13be23)=>{for(const _0x402e83 of _0x13be23)_0x4be96d['appendChild'](_0x402e83);});}};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 _0x137f1b,PendingActions as _0x15aff3,Plugin as _0xf0b898}from'@ckeditor/ckeditor5-core';import{Annotations as _0x43d964,Comments as _0x3f3d36,CommentsRepository as _0x1d69dd,EditorAnnotations as _0x280652}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x53b517,Collection as _0x3968f8,FocusTracker as _0x4a0fc0,KeystrokeHandler as _0xf61f0d,ObservableMixin as _0x3ee82e,getEnvKeystrokeText as _0x1ab253,insertToPriorityArray as _0xb8e795,logWarning as _0x15e49f,priorities as _0x487ef8,trustedHtml as _0x362c85,uid as _0xc08621}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x4f0a95,IconCancel as _0x496249,IconCheck as _0x462308,IconSparkle as _0x502305,IconTrackChanges as _0x1a5a99}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x54c5f7,Dialog as _0x449084,FocusCycler as _0x3a6372,IconView as _0x5de5f9,ListSeparatorView as _0x28794d,MenuBarMenuListItemButtonView as _0x1ee833,MenuBarMenuListItemView as _0x32dbbf,MenuBarMenuListView as _0x378699,MenuBarMenuView as _0x29a1f3,SplitButtonView as _0x438c75,UIModel as _0x227918,View as _0x31b427,ViewCollection as _0x39df58,_getLocalizedColorName as _0x3088c8,addListToDropdown as _0x46f027,createDropdown as _0x179874,normalizeColorOptions as _0x8e2d9e}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x1adbb8,CollaborationUserColor as _0x2fb5b8,FOCUS_ANNOTATION_KEYSTROKE as _0x2654de,LateFocusButtonView as _0x5bb055,PillView as _0x1da1de,SuggestionsConversion as _0x80da0c,User as _0x9913b9,UserView as _0x27b4e2,Users as _0x445bdf,fixElementSuggestionRange as _0x2002be,getAllMarkersDomElementsSorted as _0x43b5ca,getDateTimeFormatter as _0x9d87d0,hashObject as _0x324b07,isInvalidAttributeOperation as tt,sanitizeEditorConfig as et,setupThreadKeyboardNavigation as nt,splitSuggestionMarkerName as it,surroundingMarkersDetector as st,trimHtml as rt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as ot,ModelLivePosition as at,ModelLiveRange as ct,ViewDowncastWriter as lt}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ut,isEqual as dt,omit as ht,set as gt,unset as ft}from'es-toolkit/compat';import{ClipboardMarkersUtils as mt,ClipboardPipeline as Et}from'@ckeditor/ckeditor5-clipboard';import{Delete as Tt,Input as _t}from'@ckeditor/ckeditor5-typing';import{Enter as pt}from'@ckeditor/ckeditor5-enter';var Lt=class extends _0x137f1b{['_enabledCommands'];constructor(_0x5ccf23,_0xa3c35d){super(_0x5ccf23),this['_enabledCommands']=_0xa3c35d,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 _0x22d452 of this['editor']['commands']['commands']())_0x22d452['affectsData']&&!this['_enabledCommands']['has'](_0x22d452)&&_0x22d452['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x49132a of this['editor']['commands']['commands']())_0x49132a['affectsData']&&!this['_enabledCommands']['has'](_0x49132a)&&_0x49132a['clearForceDisabled']('TrackChangesCommand');}},It=class extends _0x137f1b{_suggestions;constructor(_0x47ff71,_0x3c208e){super(_0x47ff71),this['_suggestions']=_0x3c208e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1ce7bf){const _0x6fbf79=this['_suggestions']['get'](_0x1ce7bf);if(!_0x6fbf79)throw new _0x53b517('track-changes-accept-suggestion-not-found',this);const _0x1b185e=_0x6fbf79['getRanges']();this['editor']['model']['canEditAt'](_0x1b185e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x6fbf79);}},At=class extends _0x137f1b{_suggestions;constructor(_0x58ddac,_0x13aeaa){super(_0x58ddac),this['_suggestions']=_0x13aeaa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x408ef0){const _0x3d4bc0=this['_suggestions']['get'](_0x408ef0);if(!_0x3d4bc0)throw new _0x53b517('track-changes-discard-suggestion-not-found',this);const _0x375ffb=_0x3d4bc0['getRanges']();this['editor']['model']['canEditAt'](_0x375ffb)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3d4bc0);}};function bt(_0xfa92db,_0x38dadb){let _0x3892fb='';return _0x3892fb+=_0xfa92db['split']('*')['map']((_0x2e4e97,_0x327166)=>_0x327166%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Ct(_0x2e4e97)+'</span>':Ct(_0x2e4e97))['join'](''),_0x38dadb&&(_0x3892fb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x38dadb['value']+'\x22\x20title=\x22'+_0x38dadb['title']+'\x22></span>'),_0x3892fb;}function Ct(_0x179099){const _0x233dc3=document['createElement']('span');return _0x233dc3['innerText']=_0x179099,_0x233dc3['innerHTML'];}function kt(_0x16ee7c){return _0x16ee7c['sort']((_0x4f9cad,_0x192baa)=>'attribute'===_0x4f9cad['type']&&'attribute'!==_0x192baa['type']?-0x1:'attribute'!==_0x4f9cad['type']&&'attribute'===_0x192baa['type']?0x1:'deletion'==_0x4f9cad['type']&&'deletion'!=_0x192baa['type']?-0x1:'deletion'!=_0x4f9cad['type']&&'deletion'==_0x192baa['type']?0x1:0x0);}function Rt(_0x426ab9,_0x3a52bb){let _0x3d1e3c,_0x151069=0x0;const _0x5a65ec=[],_0x17ff4d=_0x3a52bb['schema'];for(;_0x151069<_0x426ab9['length'];){const _0x5b423d=_0x426ab9[_0x151069],_0x244624=_0x426ab9[_0x151069+0x1];_0x3d1e3c||(_0x3d1e3c=_0x3a52bb['createPositionBefore'](_0x5b423d)),Nt(_0x3a52bb,_0x5b423d,_0x244624)||(_0x5a65ec['push'](_0x3a52bb['createRange'](_0x3d1e3c,_0x17ff4d['isObject'](_0x5b423d)?_0x3a52bb['createPositionAfter'](_0x5b423d):_0x3a52bb['createPositionAt'](_0x5b423d,'end'))),_0x3d1e3c=null),_0x151069++;}return _0x5a65ec;}function Nt(_0x282b39,_0x57b063,_0x538dd2){if(!_0x538dd2)return!0x1;const _0x2df451=_0x282b39['createPositionAfter'](_0x57b063),_0x3903f2=_0x282b39['createPositionBefore'](_0x538dd2);return _0x2df451['isTouching'](_0x3903f2);}function yt(_0x37e7fd,_0x193747,_0x487063){for(;_0x487063['length'];){const _0x5c61b=_0x487063['splice'](0x0,0x64);_0x37e7fd['change'](()=>{for(const _0x8d23b3 of _0x5c61b)_0x8d23b3['isInContent']&&_0x193747['execute'](_0x8d23b3['id']);});}}var St=class extends _0x137f1b{['_command'];_suggestions;constructor(_0x1f0513,_0x59485f,_0x3724a2){super(_0x1f0513),this['_command']=_0x59485f,this['_suggestions']=_0x3724a2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3871af=Array['from'](this['_suggestions']['values']())['some'](_0x25b599=>_0x25b599['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3871af;}execute(){const _0x1b25e0=kt(Array['from'](this['_suggestions']['values']()));for(const _0x324d3e of _0x1b25e0){const _0x3cd917=_0x324d3e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3cd917))return;}yt(this['editor']['model'],this['_command'],_0x1b25e0);}},Mt=class extends _0x137f1b{['_command'];_suggestions;_selectedSuggestions;constructor(_0x5ba1f3,_0x297188,_0x3b3b32){super(_0x5ba1f3),this['_command']=_0x297188,this['_suggestions']=_0x3b3b32,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x19ffc2=this['editor']['model']['document']['selection'],_0x2cf120=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x4f8066,_0x48cce1){const _0x12340b=Array['from'](_0x4f8066['getRanges']()),_0x4db079=new Set();for(const _0x10142f of _0x48cce1)if(_0x10142f['isInContent']){for(const _0x48d13d of _0x12340b)for(const _0x5f51ef of _0x10142f['getRanges']())(_0x48d13d['isIntersecting'](_0x5f51ef)||_0x4f8066['isCollapsed']&&!_0x10142f['isMultiRange']&&_0x10142f['next']&&_0x5f51ef['end']['isTouching'](_0x48d13d['start']))&&_0x4db079['add'](_0x10142f);}return _0x4db079;}(_0x19ffc2,_0x2cf120),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x7aa586=kt(Array['from'](this['_selectedSuggestions']));for(const _0x55f0e7 of _0x7aa586){const _0x47b3f6=_0x55f0e7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47b3f6))return;}yt(this['editor']['model'],this['_command'],_0x7aa586);}};const Ot=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3ee82e();var wt=class Suggestion extends Ot{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0xda8b80,_0x128c54){super(),this['id']=_0x128c54['id'],this['type']=_0x128c54['type'],this['subType']=_0x128c54['subType']||null,this['author']=_0x128c54['author'],this['creator']=_0x128c54['creator']||_0x128c54['author'],this['data']=null,this['_originalSuggestionId']=_0x128c54['originalSuggestionId']||null,this['_model']=_0xda8b80,this['_onAccept']=_0x128c54['onAccept'],this['_onDiscard']=_0x128c54['onDiscard'],this['_onAttributesChange']=_0x128c54['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x128c54['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 _0xfe8c1c=this;for(;_0xfe8c1c['previous'];)_0xfe8c1c=_0xfe8c1c['previous'];return _0xfe8c1c;}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'](_0x4f0892){this['_markerNames']['add'](_0x4f0892);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x2b9ec1=>this['_model']['markers']['get'](_0x2b9ec1))['filter'](_0x61118d=>_0x61118d);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x333a5c=>{for(const _0x18dcc9 of this['getMarkers']())_0x333a5c['removeMarker'](_0x18dcc9);}),this['_markerNames']['clear']();}['removeMarker'](_0x3ed465){this['_model']['change'](_0x496c5b=>{_0x496c5b['removeMarker'](_0x3ed465);}),this['_markerNames']['delete'](_0x3ed465);}['addRange'](_0x2b5c14){const _0x45ee0d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x45ee0d),this['_model']['change'](_0x54e246=>{_0x54e246['addMarker'](_0x45ee0d,{'range':_0x2b5c14,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0xb6b764){for(const _0x771e12 of this['getRanges']())if(_0x771e12['isIntersecting'](_0xb6b764))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x541de9=>_0x541de9['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x191309,_0xa4157e)=>[..._0x191309,..._0xa4157e['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0x20bddb=this['getRanges']();if(0x1!=_0x20bddb['length'])return null;const _0x42015c=_0x20bddb[0x0],_0x50f690=_0x42015c['start']['nodeAfter'],_0x1e633e=_0x42015c['end']['nodeBefore'];return _0x50f690 instanceof ot?_0x50f690!=_0x1e633e?null:_0x50f690: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 _0x24bf20=[];let _0x1b2ea1=this['head'];for(;_0x1b2ea1;)_0x24bf20['push'](_0x1b2ea1),_0x1b2ea1=_0x1b2ea1['next'];return _0x24bf20;}setAttribute(_0x347887,_0x325ab8){const _0xfd2ad6=ut(this['attributes']);gt(_0xfd2ad6,_0x347887,_0x325ab8),dt(_0xfd2ad6,this['attributes'])||(this['attributes']=_0xfd2ad6,this['_onAttributesChange'](_0xfd2ad6));}removeAttribute(_0x41a6d5){const _0x3f7df5=ut(this['attributes']);ft(_0x3f7df5,_0x41a6d5),dt(_0x3f7df5,this['attributes'])||(this['attributes']=_0x3f7df5,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 _0xc08621()['substr'](0x1,0x5);}};function Bt(_0x40fc1d,_0x2bdc71,_0x4c290c){const _0x2ca346=_0x40fc1d['t'],t=_0x40fc1d['t'];switch(_0x2bdc71){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',_0x4c290c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c290c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c290c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c290c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c290c);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',_0x4c290c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c290c);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',_0x4c290c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c290c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c290c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c290c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c290c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c290c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4c290c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c290c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c290c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c290c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c290c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c290c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c290c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c290c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c290c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c290c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c290c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4c290c);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'},_0x4c290c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4c290c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4c290c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c290c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c290c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c290c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c290c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c290c);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'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c290c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c290c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c290c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c290c);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'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c290c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4c290c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4c290c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4c290c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c290c);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'},_0x4c290c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4c290c);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 _0x2ca346({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4c290c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2ca346({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4c290c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c290c);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'},_0x4c290c);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'},_0x4c290c);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'},_0x4c290c);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 _0x2bdc71;}}var Ft=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x540388,_0xeae454){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x540388,this['_locale']=_0xeae454;}getDescriptions(_0x4297e9){const _0x10b988=[],_0x403158=new Set(),_0x4c3d3f=new Set();for(let _0x29dce1=0x0;_0x29dce1<_0x4297e9['length'];_0x29dce1++){const _0x1f2bb1=_0x4297e9[_0x29dce1];if(!_0x1f2bb1['isInContent'])continue;const _0x4e2700=this['_handleCustomCallbackDescription'](_0x1f2bb1);if(_0x4e2700){if(null!=_0x1f2bb1['subType']){if(_0x403158['has'](_0x1f2bb1['subType']))continue;_0x403158['add'](_0x1f2bb1['subType']);}_0x10b988['push'](_0x4e2700);}else{if('attribute'==_0x1f2bb1['type']){const _0x1e2ff5=_0x1f2bb1['data']['key'];if(_0x4c3d3f['has'](_0x1e2ff5))continue;_0x4c3d3f['add'](_0x1f2bb1['data']['key']),'$elementName'==_0x1e2ff5?this['_handleRenameSuggestionDescription'](_0x10b988,_0x1f2bb1):this['_handleAttributeSuggestionDescription'](_0x10b988,_0x1f2bb1);continue;}'insertion'!=_0x1f2bb1['type']&&'deletion'!=_0x1f2bb1['type']||this['_handleInsertRemoveSuggestionDescription'](_0x10b988,_0x1f2bb1,_0x4297e9[_0x29dce1+0x1]);}}return this['_resolveDescriptionItems'](_0x10b988);}registerDescriptionCallback(_0x4d67b5){this['_customCallbacks']['push'](_0x4d67b5);}registerElementLabel(_0x6b0f0c,_0x5a433d,_0x3059e0=_0x487ef8['normal']){'function'==typeof _0x6b0f0c?_0xb8e795(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6b0f0c,'label':_0x5a433d,'priority':_0x3059e0}):this['_itemLabels']['set'](_0x6b0f0c,_0x5a433d);}registerAttributeLabel(_0x4a8484,_0x467dc6){this['_attributeLabels']['set'](_0x4a8484,_0x467dc6);}getItemLabel(_0x999500,_0x5f460f=0x1){let _0x10ff31;for(const _0x25aed8 of this['_itemLabelsCallbacks'])if(_0x25aed8['matchingCallback'](_0x999500)){_0x10ff31=_0x25aed8['label'];break;}return _0x10ff31||(_0x10ff31=this['_itemLabels']['get'](_0x999500['name'])),_0x10ff31?_0x10ff31(_0x5f460f):0x1!==_0x5f460f?_0x5f460f+'\x20'+_0x999500['name']+'s':''+_0x999500['name'];}_addDescriptionItems(_0x2ad83f,_0x9d34c){const _0x345f8b=_0x9d34c['getFirstRange']()['getWalker'](),_0x2398ff='insertion'==_0x9d34c['type']?'add':'remove';for(const _0x2a8963 of _0x345f8b){const _0x103359=_0x2a8963['item'],_0x4ee4a6=_0x2ad83f[_0x2ad83f['length']-0x1];if(_0x103359['is']('$textProxy'))_0x4ee4a6&&_0x4ee4a6['type']['indexOf']('Container')>-0x1&&_0x2ad83f['pop'](),_0x4ee4a6&&'text'==_0x4ee4a6['type']?_0x4ee4a6[_0x2398ff]+=_0x103359['data']:_0x2ad83f['push']({'type':'text','add':'add'==_0x2398ff?_0x103359['data']:'','remove':'remove'==_0x2398ff?_0x103359['data']:''});else{if(this['_schema']['isObject'](_0x103359)){const _0x49c4d3=_0x103359;if(_0x4ee4a6&&_0x4ee4a6['type']['indexOf']('Container')>-0x1&&_0x2ad83f['pop'](),'elementEnd'==_0x2a8963['type'])continue;_0x4ee4a6&&_0x4ee4a6['type']==_0x2398ff+'Object'&&_0x4ee4a6['element']['name']==_0x49c4d3['name']?_0x4ee4a6['quantity']++:_0x2ad83f['push']({'type':_0x2398ff+'Object','element':_0x49c4d3,'quantity':0x1}),_0x345f8b['skip'](_0x5a7ddd=>!('elementEnd'==_0x5a7ddd['type']&&_0x5a7ddd['item']==_0x103359));}else{if(this['_schema']['checkChild'](_0x103359,'$text')||_0x103359['is']('element','softBreak')){const _0x800fb3=_0x103359;if('add'==_0x2398ff&&'elementStart'==_0x2a8963['type']||'remove'==_0x2398ff&&'elementEnd'==_0x2a8963['type'])continue;if(_0x4ee4a6&&-0x1==_0x4ee4a6['type']['indexOf']('Container')){'text'==_0x4ee4a6['type']&&(_0x4ee4a6[_0x2398ff]+='\x0a');continue;}let _0x2d3a95;if(_0x2d3a95='add'==_0x2398ff?_0x800fb3['nextSibling']&&!this['_schema']['isObject'](_0x800fb3['nextSibling'])?_0x800fb3['nextSibling']:null:_0x800fb3['previousSibling']&&!this['_schema']['isObject'](_0x800fb3['previousSibling'])?_0x800fb3['previousSibling']:null,_0x800fb3['isEmpty']||_0x2d3a95&&_0x2d3a95['isEmpty']){const _0x5d1a5e=_0x2d3a95&&_0x2d3a95['isEmpty']?_0x2d3a95:_0x800fb3;_0x4ee4a6&&_0x4ee4a6['type']==_0x2398ff+'EmptyContainer'&&_0x4ee4a6['element']['name']==_0x5d1a5e['name']?_0x4ee4a6['quantity']++:_0x2ad83f['push']({'type':_0x2398ff+'EmptyContainer','element':_0x5d1a5e,'quantity':0x1});}else _0x2ad83f['push']({'type':_0x2398ff+'Container','element':_0x800fb3});}}}}}_resolveDescriptionItems(_0xc42a8d){const _0x76adf8=this['_locale'],_0x4466e2=[],_0x529137=[],_0x193aaa=[];for(const _0x2856c8 of _0xc42a8d)switch(_0x2856c8['type']){case'text':if(_0x2856c8['add']=_0x2856c8['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2856c8['remove']=_0x2856c8['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2856c8['add']&&''!=_0x2856c8['remove']){_0x4466e2['push']({'type':'replace','content':Bt(_0x76adf8,'REPLACE_TEXT',['\x22'+_0x2856c8['remove']+'\x22','\x22'+_0x2856c8['add']+'\x22'])});continue;}if(null!=_0x2856c8['add']['match'](/^ +$/)){_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0',Bt(_0x76adf8,'ELEMENT_SPACE',_0x2856c8['add']['length']))});continue;}if(null!=_0x2856c8['remove']['match'](/^ +$/)){_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0',Bt(_0x76adf8,'ELEMENT_SPACE',_0x2856c8['remove']['length']))});continue;}if(''!=_0x2856c8['add']){_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0','\x22'+_0x2856c8['add']+'\x22')});continue;}_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0','\x22'+_0x2856c8['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Insert:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Remove:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'addContainer':_0x4466e2['push']({'type':'insertion','content':Bt(_0x76adf8,'*Split:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'removeContainer':_0x4466e2['push']({'type':'deletion','content':Bt(_0x76adf8,'*Merge:*\x20%0',this['getItemLabel'](_0x2856c8['element'],_0x2856c8['quantity']))});continue;case'addFormat':_0x529137['push'](_0x2856c8['key']);continue;case'removeFormat':_0x193aaa['push'](_0x2856c8['key']);continue;default:_0x4466e2['push'](_0x2856c8);}if(_0x529137['length']){const _0x386cd9=_0x529137['map'](_0x3726b6=>this['_attributeLabels']['has'](_0x3726b6)?this['_attributeLabels']['get'](_0x3726b6):_0x3726b6)['join'](',\x20');_0x4466e2['push']({'type':'format','content':Bt(this['_locale'],'*Set\x20format:*\x20%0',_0x386cd9)});}if(_0x193aaa['length']){const _0x2ecea4=_0x193aaa['map'](_0x1b26de=>this['_attributeLabels']['has'](_0x1b26de)?this['_attributeLabels']['get'](_0x1b26de):_0x1b26de)['join'](',\x20');_0x4466e2['push']({'type':'format','content':Bt(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ecea4)});}return _0x4466e2;}_handleCustomCallbackDescription(_0x164259){for(const _0x3bb2eb of this['_customCallbacks']){const _0x194bea=_0x3bb2eb(_0x164259);if(_0x194bea&&'type'in _0x194bea)return _0x194bea;}}_handleAttributeSuggestionDescription(_0x19eabc,_0x22b9b6){const _0x30b753=_0x22b9b6['data'],_0x1cb0e1=void 0x0===_0x30b753['newValue']?'removeFormat':'addFormat';_0x19eabc['push']({'type':_0x1cb0e1,'key':_0x30b753['key']});}_handleRenameSuggestionDescription(_0x42c168,_0xc600f7){_0x42c168['push']({'type':'format','content':Bt(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc600f7['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x2a4301,_0x47008e,_0x384a83){if(this['_addDescriptionItems'](_0x2a4301,_0x47008e),_0x384a83&&_0x384a83['getFirstRange']()&&!_0x47008e['getFirstRange']()['end']['isEqual'](_0x384a83['getFirstRange']()['start'])){const _0x397b2a=_0x2a4301[_0x2a4301['length']-0x1],_0x22bdca='insertion'==_0x47008e['type']?'add':'remove';_0x397b2a&&'text'==_0x397b2a['type']&&(_0x397b2a[_0x22bdca]+='\x0a');}}},vt=class extends _0xf0b898{afterInit(){const _0x3bf173=this['editor'],_0x3a5aa5=_0x3bf173['plugins']['get']('TrackChangesEditing');_0x3bf173['commands']['get']('showAIAssistant')&&_0x3a5aa5['enableCommand']('showAIAssistant');}},Dt=class extends _0xf0b898{afterInit(){const _0x3b0f83=this['editor'],_0x30ea97=_0x3b0f83['plugins']['get']('TrackChangesEditing');_0x3b0f83['commands']['get']('toggleAi')&&_0x30ea97['enableCommand']('toggleAi');}},Ut=class extends _0xf0b898{afterInit(){const _0x454c03=this['editor'],_0x4d2067=_0x454c03['plugins']['get']('TrackChangesEditing');_0x454c03['commands']['get']('aiQuickAction')&&_0x4d2067['enableCommand']('aiQuickAction');}},Pt=class extends _0xf0b898{afterInit(){const _0x5e7e76=this['editor'],_0x34c4ce=_0x5e7e76['locale'];if(!_0x5e7e76['plugins']['has']('AlignmentEditing'))return;const _0x1738f3=_0x5e7e76['plugins']['get']('TrackChangesEditing');_0x1738f3['enableDefaultAttributesIntegration']('alignment'),_0x1738f3['descriptionFactory']['registerAttributeLabel']('alignment',Bt(_0x34c4ce,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x11d126=this['editor'],_0x375405=_0x11d126['locale'];_0x11d126['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe04d7f=>{if('formatBlock'!=_0xe04d7f['type'])return;const {data:_0x96e7eb}=_0xe04d7f;if(_0x96e7eb&&'alignment'==_0x96e7eb['commandName']){const _0x5b73a8=_0x96e7eb['commandParams'][0x0]['value'];return{'type':'format','content':Bt(_0x375405,'*Format:*\x20%0',function(_0x3b62e7){switch(_0x3b62e7){case'left':return Bt(_0x375405,'FORMAT_ALIGN_TO_LEFT');case'right':return Bt(_0x375405,'FORMAT_ALIGN_TO_RIGHT');case'center':return Bt(_0x375405,'FORMAT_ALIGN_TO_CENTER');case'justify':return Bt(_0x375405,'FORMAT_JUSTIFY_TEXT');}}(_0x5b73a8))};}});}};const xt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Gt=class extends _0xf0b898{afterInit(){const _0x7523f2=this['editor'],_0x521dd1=_0x7523f2['plugins']['get']('TrackChangesEditing'),_0x3923aa=_0x7523f2['locale'];for(const _0x55204b of xt){if(!_0x7523f2['plugins']['has'](_0x55204b))continue;const _0x57cc2a=_0x55204b['slice'](0x0,-0x7)['toLowerCase'](),_0x5d00ae='FORMAT_'+_0x57cc2a['toUpperCase']();_0x521dd1['enableDefaultAttributesIntegration'](_0x57cc2a),_0x521dd1['descriptionFactory']['registerAttributeLabel'](_0x57cc2a,Bt(_0x3923aa,_0x5d00ae));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5a72f1=this['editor'],_0x27c6a9=_0x5a72f1['locale'],_0x239bc5=_0x5a72f1['plugins']['get']('TrackChangesEditing');function _0x38665b(_0x16d6ea,_0x2d9692){_0x239bc5['descriptionFactory']['registerDescriptionCallback'](_0xaefdcb=>{if('formatInline'!=_0xaefdcb['type'])return;const {data:_0xc5077a}=_0xaefdcb;return _0xc5077a&&_0xc5077a['commandName']===_0x16d6ea?_0xc5077a['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x27c6a9,'*Format:*\x20%0',_0x2d9692)}:{'type':'format','content':Bt(_0x27c6a9,'*Remove\x20format:*\x20%0',_0x2d9692)}:void 0x0;});}_0x38665b('bold',Bt(_0x27c6a9,'FORMAT_BOLD')),_0x38665b('italic',Bt(_0x27c6a9,'FORMAT_ITALIC')),_0x38665b('underline',Bt(_0x27c6a9,'FORMAT_UNDERLINE')),_0x38665b('code',Bt(_0x27c6a9,'FORMAT_CODE')),_0x38665b('strikethrough',Bt(_0x27c6a9,'FORMAT_STRIKETHROUGH')),_0x38665b('subscript',Bt(_0x27c6a9,'FORMAT_SUBSCRIPT')),_0x38665b('superscript',Bt(_0x27c6a9,'FORMAT_SUPERSCRIPT'));}},Ht=class extends _0xf0b898{afterInit(){const _0xdefa98=this['editor'],_0x4575b7=_0xdefa98['locale'];if(!_0xdefa98['plugins']['has']('BlockQuoteEditing'))return;const _0x5f3cd2=_0xdefa98['plugins']['get']('TrackChangesEditing'),_0xa669ac=this['editor']['commands']['get']('blockQuote');_0x5f3cd2['enableCommand']('blockQuote',(_0x392fb1,_0x318661={})=>{const _0x12a178=this['editor']['model']['document']['selection'],_0x543409=_0x318661&&void 0x0!==_0x318661['forceValue']?_0x318661['forceValue']:!_0xa669ac['value'];let _0x54be83=[];if(_0x543409){const _0x158a9a=Array['from'](_0x12a178['getSelectedBlocks']())['filter'](_0x438e39=>$t(_0x438e39)||function(_0x45a0de,_0x1e0993){const _0x1905aa=_0x1e0993['createContext'](_0x45a0de['parent']);return!!_0x1e0993['checkChild'](_0x1905aa,'blockQuote')&&!!_0x1e0993['checkChild'](_0x1905aa['push']('blockQuote'),_0x45a0de);}(_0x438e39,this['editor']['model']['schema']));_0x54be83=Rt(_0x158a9a,_0xdefa98['model']);}else{const _0x21344f=Array['from'](_0x12a178['getSelectedBlocks']())['filter'](_0x152dc=>$t(_0x152dc));_0x54be83=Rt(_0x21344f,_0xdefa98['model']);}_0xdefa98['model']['change'](()=>{for(const _0x510823 of _0x54be83)_0x5f3cd2['markBlockFormat'](_0x510823,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x543409}]});});}),_0x5f3cd2['descriptionFactory']['registerDescriptionCallback'](_0x942224=>{const {data:_0x37450d}=_0x942224;if(_0x37450d&&'blockQuote'==_0x37450d['commandName']){const _0x152b77=Bt(_0x4575b7,'ELEMENT_BLOCK_QUOTE');return _0x37450d['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x4575b7,'*Set\x20format:*\x20%0',_0x152b77)}:{'type':'format','content':Bt(_0x4575b7,'*Remove\x20format:*\x20%0',_0x152b77)};}});}};function $t(_0x447167){return'blockQuote'==_0x447167['parent']['name'];}var Wt=class extends _0xf0b898{afterInit(){const _0xce978b=this['editor'],_0x2a9350=_0xce978b['locale'],_0x5d3253=_0xce978b['plugins']['get']('TrackChangesEditing');_0xce978b['plugins']['has']('BookmarkEditing')&&(_0x5d3253['enableCommand']('insertBookmark'),_0x5d3253['enableDefaultAttributesIntegration']('updateBookmark'),_0x5d3253['descriptionFactory']['registerDescriptionCallback'](_0x5afc32=>{if('insertion'!=_0x5afc32['type']&&'deletion'!=_0x5afc32['type']&&'attribute'!=_0x5afc32['type'])return;const _0x4e2ee4=_0x5afc32['getContainedElement']();if(null==_0x4e2ee4)return;if(!_0x4e2ee4['is']('element','bookmark'))return;const _0x45a4cf=_0x4e2ee4['getAttribute']('bookmarkId');if('insertion'==_0x5afc32['type'])return{'type':'insertion','content':Bt(_0x2a9350,'*Insert:*\x20%0','\x22'+_0x45a4cf+'\x22\x20'+Bt(_0x2a9350,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5afc32['type'])return{'type':'deletion','content':Bt(_0x2a9350,'*Remove:*\x20%0','\x22'+_0x45a4cf+'\x22\x20'+Bt(_0x2a9350,'ELEMENT_BOOKMARK'))};const {data:_0x129b8b}=_0x5afc32;return _0x129b8b&&'bookmarkId'==_0x129b8b['key']?{'type':'format','content':Bt(_0x2a9350,'*Set\x20bookmark:*\x20%0','\x22'+_0x129b8b['newValue']+'\x22')}:void 0x0;}));}},Vt=class extends _0xf0b898{afterInit(){const _0x4353d1=this['editor'];_0x4353d1['plugins']['has']('CaseChange')&&(_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4353d1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},zt=class extends _0xf0b898{afterInit(){const _0xbe7447=this['editor'];_0xbe7447['commands']['get']('ckbox')&&_0xbe7447['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},jt=class extends _0xf0b898{static get requires(){return[mt,Et];}constructor(_0x237d0d){super(_0x237d0d),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x3de455=this['editor'],_0x30e514=_0x3de455['plugins']['get']('ClipboardMarkersUtils'),_0x196eae=_0x3de455['plugins']['get'](Et);_0x30e514['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x196eae['on']('outputTransformation',(_0xdd3c0,_0x4a7e4a)=>{const _0x59c439=this['_getSuggestionEntries'](_0x4a7e4a);for(const [_0x581ac3,_0x773478]of _0x4a7e4a['content']['markers']){const _0x354adc=ct['_fromRangeInDocumentFragment'](_0x773478,_0x3de455['model']);function _0x120668(){_0x354adc['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x581ac3);}_0x354adc['on']('change:drop',_0x120668),(_0x581ac3['startsWith']('suggestion:')||_0x581ac3['startsWith']('comment:'))&&_0x354adc['on']('change:range',()=>{_0x354adc['isCollapsed']&&_0x120668();}),_0x4a7e4a['content']['markers']['set'](_0x581ac3,_0x354adc);}const _0x506ceb=_0x59c439['filter'](_0x8710ea=>'deletion'===_0x8710ea['meta']['type'])['map'](_0x48a56b=>_0x48a56b['modelRange']);if(this['_shouldSkipDeletions'](_0x506ceb,_0x4a7e4a['content']))return[..._0x59c439]['forEach'](_0x54ec81=>{_0x4a7e4a['content']['markers']['get'](_0x54ec81['markerName'])['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x54ec81['markerName']);}),void this['_restoreRegularRanges'](_0x4a7e4a['content']['markers']);[..._0x59c439]['forEach'](_0x45e3cd=>{const _0x3d25be=_0x3de455['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x45e3cd['meta']['type'],_0x45e3cd['meta']['subType'],'accept'),{markerName:_0x145dd1,meta:_0x2bf931}=_0x45e3cd;if(_0x4a7e4a['content']['markers']['has'](_0x145dd1)){switch(_0x2bf931['type']){case'deletion':if('tableRow'===_0x2bf931['subType']||'tableColumn'===_0x2bf931['subType']){if(!_0x3de455['plugins']['has']('TableUtils'))break;const _0x1c1823=_0x3de455['plugins']['get']('TableUtils'),_0x1beda1=_0x1c1823['getSelectionAffectedTableCells'](_0x3de455['model']['createSelection'](_0x4a7e4a['content']['markers']['get'](_0x145dd1))),_0x46b2a3=_0x1beda1[0x0]['findAncestor']('table');if('tableRow'===_0x2bf931['subType']){const {first:_0x1de027,last:_0x1920b8}=_0x1c1823['getRowIndexes'](_0x1beda1);_0x1c1823['removeRows'](_0x46b2a3,{'at':_0x1de027,'rows':_0x1920b8-_0x1de027+0x1});}else{const {first:_0x51f040,last:_0x54e6c4}=_0x1c1823['getColumnIndexes'](_0x1beda1);_0x1c1823['removeColumns'](_0x46b2a3,{'at':_0x51f040,'columns':_0x54e6c4-_0x51f040+0x1});}break;}_0x3d25be([_0x4a7e4a['content']['markers']['get'](_0x145dd1)]);}_0x4a7e4a['content']['markers']['has'](_0x145dd1)&&(_0x4a7e4a['content']['markers']['get'](_0x145dd1)['detach'](),_0x4a7e4a['content']['markers']['delete'](_0x145dd1));}}),this['_restoreRegularRanges'](_0x4a7e4a['content']['markers']);});}_getSuggestionEntries(_0x17a163){const _0x4e9659=_0x19fa80=>'dragstart'===_0x17a163['method']?_0x19fa80['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x19fa80;return Array['from'](_0x17a163['content']['markers'])['map'](([_0xb2454b,_0x4b7779])=>({'markerName':_0xb2454b,'modelRange':_0x4b7779,'meta':it(_0x4e9659(_0xb2454b))}))['filter'](({meta:_0x3d0512})=>'suggestion'===_0x3d0512['group']);}_shouldSkipDeletions(_0x54fbfa,_0x16b164){if(!_0x54fbfa['length'])return!0x1;let _0x40a5fb=[this['editor']['model']['createRangeIn'](_0x16b164)];for(const _0x4dac70 of _0x54fbfa)_0x40a5fb=_0x40a5fb['flatMap'](_0x522d6d=>_0x522d6d['getDifference'](_0x4dac70));return!_0x40a5fb['some'](_0x1da25e=>this['editor']['model']['hasContent'](_0x1da25e,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x14e745){[..._0x14e745['keys']()]['forEach'](_0x3d67b7=>{const _0x124994=_0x14e745['get'](_0x3d67b7);_0x124994['detach'](),_0x14e745['set'](_0x3d67b7,_0x124994['toRange']());});}},Kt=class extends _0xf0b898{afterInit(){const _0x1351ea=this['editor'];if(!_0x1351ea['plugins']['has']('CodeBlock'))return;const _0x89e0c9=_0x1351ea['plugins']['get']('TrackChangesEditing'),_0x803216=_0x1351ea['locale'],_0x48fa43=_0x1351ea['config']['get']('codeBlock')['languages'],_0x48be84=_0x1351ea['commands']['get']('codeBlock');_0x89e0c9['enableCommand']('indentCodeBlock'),_0x89e0c9['enableCommand']('outdentCodeBlock'),_0x89e0c9['enableCommand']('codeBlock',(_0x452ba6,_0x23188b={})=>{const _0x55789f=_0x1351ea['model'],_0x53bc33=_0x1351ea['model']['document']['selection'],_0x2611f9=_0x23188b&&void 0x0!==_0x23188b['forceValue']?_0x23188b['forceValue']:!_0x48be84['value'];let _0x27f6b1;_0x23188b['language']||(_0x23188b['language']=_0x48fa43[0x0]['language']),_0x27f6b1=_0x2611f9?Array['from'](_0x53bc33['getSelectedBlocks']())['filter'](_0xa56020=>{return Xt(_0xa56020)||(_0x288713=_0xa56020,_0x5e7bd0=_0x55789f['schema'],!_0x288713['is']('rootElement')&&!_0x5e7bd0['isLimit'](_0x288713)&&_0x5e7bd0['checkChild'](_0x288713['parent'],'codeBlock'));var _0x288713,_0x5e7bd0;}):Array['from'](_0x53bc33['getSelectedBlocks']())['filter'](_0x213ee7=>Xt(_0x213ee7));const _0x5917c8=Rt(_0x27f6b1,_0x55789f);_0x55789f['change'](()=>{for(const _0x472424 of _0x5917c8)_0x89e0c9['markBlockFormat'](_0x472424,{'commandName':'codeBlock','commandParams':[{..._0x23188b,'forceValue':_0x2611f9}],'formatGroupId':'blockName'});});}),(_0x89e0c9['descriptionFactory']['registerElementLabel']('codeBlock',_0x55c80f=>Bt(_0x803216,'ELEMENT_CODE_BLOCK',_0x55c80f)),_0x89e0c9['descriptionFactory']['registerDescriptionCallback'](_0xb5c844=>{if('formatBlock'!=_0xb5c844['type'])return;const _0x37512c=_0x803216['t'],{data:_0x2e5bae}=_0xb5c844;if(!_0x2e5bae||'codeBlock'!=_0x2e5bae['commandName'])return;const _0x927243=_0x2e5bae['commandParams'][0x0]['language'],_0x544a60=_0x37512c(_0x48fa43['find'](_0x4332cc=>_0x4332cc['language']===_0x927243)['label'])['toLowerCase']();return _0x2e5bae['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x803216,'*Set\x20format:*\x20%0',Bt(_0x803216,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x544a60+')')}:{'type':'format','content':Bt(_0x803216,'*Remove\x20format:*\x20%0',Bt(_0x803216,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Xt(_0x26072b){return'codeBlock'==_0x26072b['name'];}var qt=class extends _0xf0b898{afterInit(){const _0x3ab2ce=this['editor'];_0x3ab2ce['plugins']['has']('CommentsEditing')&&_0x3ab2ce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Yt=class extends _0xf0b898{static get requires(){return[Tt];}init(){const _0x223d6d=this['editor'],_0x280af0=_0x223d6d['plugins']['get']('TrackChangesEditing');_0x280af0['enableCommand']('delete');const _0x2987f3=_0x223d6d['commands']['get']('deleteForward');_0x280af0['enableCommand']('deleteForward',(_0x5a56f3,_0x531c5c={})=>{const _0x5b31ea=_0x223d6d['model']['createSelection'](_0x223d6d['model']['document']['selection']);_0x5b31ea['isCollapsed']&&_0x223d6d['model']['modifySelection'](_0x5b31ea,{'direction':'forward','unit':_0x531c5c['unit']});const _0x11fb52=_0x5b31ea['getFirstRange'](),_0x178052=ct['fromRange'](_0x11fb52);let _0x5c3d8e;_0x5a56f3(_0x531c5c),_0x5c3d8e='$graveyard'==_0x178052['root']['rootName']?_0x223d6d['model']['createRange'](_0x11fb52['start']):_0x223d6d['model']['createRange'](_0x178052['start'],_0x178052['end']),_0x178052['detach'](),_0x223d6d['model']['enqueueChange'](_0x2987f3['buffer']['batch'],_0x435978=>{_0x2987f3['buffer']['lock'](),_0x435978['setSelection'](_0x435978['createRange'](_0x5c3d8e['end'])),_0x2987f3['buffer']['unlock']();});});}},Qt=class extends _0xf0b898{afterInit(){const _0x4e4221=this['editor'];if(!_0x4e4221['plugins']['has']('ListEditing'))return;const _0x38e7e0=_0x4e4221['locale'],_0x15ecb3=_0x4e4221['plugins']['get']('TrackChangesEditing'),_0x4ff7a5=_0x4e4221['plugins']['has']('TodoListEditing'),_0x3d50f3=!!_0x4e4221['config']['get']('list.multiBlock');function _0x25075f(_0x15af82){return{'type':'format','content':''+Bt(_0x38e7e0,'*Set\x20format:*\x20%0',_0x15af82)};}function _0x4cd1c1(_0x5eb5ab){return{'type':'format','content':''+Bt(_0x38e7e0,'*Remove\x20format:*\x20%0',_0x5eb5ab)};}_0x15ecb3['enableDefaultAttributesIntegration']('numberedList'),_0x15ecb3['enableDefaultAttributesIntegration']('bulletedList'),_0x15ecb3['enableDefaultAttributesIntegration']('customNumberedList'),_0x15ecb3['enableDefaultAttributesIntegration']('customBulletedList'),_0x15ecb3['enableDefaultAttributesIntegration']('indentList'),_0x15ecb3['enableDefaultAttributesIntegration']('outdentList'),_0x15ecb3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x15ecb3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d50f3&&(_0x15ecb3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x15ecb3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4ff7a5&&(_0x15ecb3['enableDefaultAttributesIntegration']('todoList'),_0x15ecb3['enableDefaultAttributesIntegration']('checkTodoList'),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x132d71=>{const {data:_0x26cabe}=_0x132d71;if(_0x26cabe&&'todoListChecked'==_0x26cabe['key'])return{'type':'format','content':_0x26cabe['newValue']?Bt(_0x38e7e0,'*Check\x20item*'):Bt(_0x38e7e0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c362e=>{if(_0x1c362e['batch']['isUndo'])return!0x1;let _0x220c08=!0x1;const _0x2ddf7f=_0x15ecb3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b6c66=>'todoListChecked'===_0x15ecb3['_getAttributeKey'](_0x2b6c66));for(const _0x459a45 of _0x2ddf7f)'todo'!=_0x459a45['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x15ecb3['_findSuggestions'](_0x459a45['getFirstRange'](),'attribute')['find'](_0x5ae5a4=>'listType'===_0x15ecb3['_getAttributeKey'](_0x5ae5a4['suggestion']))||(_0x1c362e['removeMarker'](_0x459a45['getFirstMarker']()),_0x220c08=!0x0));return _0x220c08;})),_0x15ecb3['descriptionFactory']['registerAttributeLabel']('listIndent',Bt(_0x38e7e0,'FORMAT_INDENT'));const _0x44f8af={'type':'format','content':''};_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x3e0566=>{const {data:_0x425049}=_0x3e0566;if(!_0x425049||'listType'!=_0x425049['key'])return;let _0x376b89=_0x3e0566['head'];for(;_0x376b89;){if(_0x376b89['data']&&(('listStyle'==_0x376b89['data']['key']||'listMarkerStyle'==_0x376b89['data']['key'])&&(_0x376b89['data']['newValue']&&'default'!=_0x376b89['data']['newValue']||'default'!=_0x376b89['data']['oldValue']&&!_0x425049['newValue'])||!_0x3d50f3&&'$elementName'==_0x376b89['data']['key']))return _0x44f8af;_0x376b89=_0x376b89['next'];}if(null==_0x425049['newValue'])switch(_0x425049['oldValue']){case'bulleted':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4cd1c1(Bt(_0x38e7e0,'ELEMENT_TODO_LIST'));}switch(_0x425049['newValue']){case'bulleted':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x25075f(Bt(_0x38e7e0,'ELEMENT_TODO_LIST'));}}),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x5ca5af=>{const {data:_0x4de542}=_0x5ca5af;if(_0x4de542&&'listIndent'==_0x4de542['key'])return null==_0x4de542['newValue']||null==_0x4de542['oldValue']&&0x0==_0x4de542['newValue']?_0x44f8af:void 0x0;}),_0x15ecb3['descriptionFactory']['registerDescriptionCallback'](_0x28204a=>{if('attribute'!=_0x28204a['type'])return;const {data:_0x40c5e2}=_0x28204a;if(!_0x40c5e2||'listItemId'!=_0x40c5e2['key'])return;const _0x3659d5=Zt(_0x28204a);return'newValue'==_0x3659d5?{'type':'format','content':Bt(_0x38e7e0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3659d5?{'type':'format','content':Bt(_0x38e7e0,'*Split:*\x20list\x20item')}:_0x44f8af;}),_0x4e4221['model']['document']['registerPostFixer'](_0x1c27c2=>this['listItemIdFixer'](_0x1c27c2)),_0x4e4221['model']['document']['registerPostFixer'](_0x5b304c=>this['noTrackChangesFixer'](_0x5b304c)),_0x4e4221['model']['document']['on']('change:data',(_0x564556,_0x4ac303)=>{if(_0x4ac303['isUndo']||!_0x4ac303['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x483e59){if(_0x483e59['batch']['isUndo']||!_0x483e59['batch']['isLocal'])return!0x1;let _0x3fe831=!0x1;const _0x21d20b=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee72c=>_0x2ee72c['data']&&'listItemId'==_0x2ee72c['data']['key'])['filter'](_0x1f0b7c=>_0x1f0b7c['data']['newValue']&&_0x1f0b7c['data']['oldValue']);for(const _0x47e0f5 of _0x21d20b)Zt(_0x47e0f5)||(_0x483e59['removeMarker'](_0x47e0f5['getFirstMarker']()),_0x3fe831=!0x0);return _0x3fe831;}['noTrackChangesFixer'](_0x172bdc){if(_0x172bdc['batch']['isUndo']||!_0x172bdc['batch']['isLocal'])return!0x1;const _0x36a00f=this['editor']['model']['document']['differ'],_0x408278=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x408278['trackChangesCommand']['value'])return!0x1;let _0x4d8447=!0x1;const _0x6a82db=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x3d858a=_0x36a00f['getChanges']()['filter'](_0x512cc4=>'attribute'==_0x512cc4['type'])['filter'](_0x261c4d=>_0x6a82db['has'](_0x261c4d['attributeKey']));if(0x0==_0x3d858a['length'])return _0x4d8447;const _0x4e05d7=new Set(_0x36a00f['getMarkersToAdd']()['filter'](_0x34cd6d=>{if(!_0x34cd6d['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x387ec2=it(_0x34cd6d['name'])['subType']['split']('|')[0x0];return _0x6a82db['has'](_0x387ec2);})['map'](_0x3cb31c=>it(_0x3cb31c['name'])['id']));for(const _0x3815b2 of _0x3d858a){const _0x1b0c38=_0x408278['_findSuggestions'](_0x3815b2['range'],'attribute')['filter'](_0x528834=>{if(_0x528834['meta']['isNextTo'])return!0x1;if(_0x4e05d7['has'](_0x528834['suggestion']['id']))return!0x1;const _0x553cea=_0x408278['_getAttributeKey'](_0x528834['suggestion']);return _0x6a82db['has'](_0x553cea);})['map'](_0x30ff6d=>_0x30ff6d['suggestion']);if(_0x1b0c38['length']){for(const _0x5045a8 of _0x1b0c38)_0x172bdc['removeMarker'](_0x5045a8['getFirstMarker']());_0x4d8447=!0x0;}}return _0x4d8447;}['assureChains'](){const _0x39a6f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16e478=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x1e2b80;const _0x5b4a6e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36231b=>{if(_0x36231b['data']['oldRange']||!_0x36231b['data']['newRange'])return null;if(!_0x36231b['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3b1370}=it(_0x36231b['name']);if(!_0x39a6f3['hasSuggestion'](_0x3b1370))return null;const _0x4f0e3d=_0x39a6f3['getSuggestion'](_0x3b1370);return _0x16e478['includes'](_0x4f0e3d['data']['key']);})['map'](_0x34af06=>{const {id:_0x413f52}=it(_0x34af06['name']),_0x265eb8=_0x39a6f3['getSuggestion'](_0x413f52);return _0x1e2b80=_0x265eb8['attributes']['groupId'],_0x265eb8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5b4a6e['size'])return;const _0x4a715a=_0x39a6f3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xba86fa=>'attribute'==_0xba86fa['type']&&_0xba86fa['data']&&_0x16e478['includes'](_0xba86fa['data']['key'])&&_0xba86fa['attributes']['groupId']!=_0x1e2b80)['map'](_0x2f505a=>({'listItem':_0x2f505a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2f505a['attributes']['groupId']})),_0x39f9e9=new Set();for(const {groupId:_0x39efa4,listItem:_0x1a2367}of _0x4a715a)_0x5b4a6e['has'](_0x1a2367)&&_0x39f9e9['add'](_0x39efa4);for(const _0x13ca95 of _0x39a6f3['getSuggestions']())_0x39f9e9['has'](_0x13ca95['attributes']['groupId'])&&_0x13ca95['setAttribute']('groupId',_0x1e2b80);}_supportLegacySuggestions(){const _0x11004e=this['editor'],_0x34a6c4=_0x11004e['locale'],_0x4bc0ab=_0x11004e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4bc0ab['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2ca516,_0x496e4a){const _0x1c6bb2=[];for(let _0x51c28c of _0x2ca516)_0x51c28c['start']['nodeAfter']===_0x51c28c['end']['parent']&&(_0x51c28c=_0x11004e['model']['createRange'](_0x11004e['model']['createPositionAt'](_0x51c28c['start']['nodeAfter'],0x0))),_0x1c6bb2['push'](_0x51c28c);_0x11004e['model']['change'](_0x2d08af=>{const _0x353f96=_0x11004e['model']['document']['selection'],_0x5450a6=Array['from'](_0x353f96['getRanges']())['map'](_0x33b6f7=>ct['fromRange'](_0x33b6f7));_0x2d08af['setSelection'](_0x1c6bb2),_0x11004e['commands']['get'](_0x496e4a['commandName'])['refresh'](),_0x496e4a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x11004e['execute'](_0x496e4a['commandName'],..._0x496e4a['commandParams']),_0x2d08af['setSelection'](_0x5450a6);for(const _0x59508c of _0x5450a6)_0x59508c['detach']();});}),_0x4bc0ab['descriptionFactory']['registerElementLabel'](function(_0x24f4ef){const _0x5702a6=!_0x11004e['model']['schema']['isObject'](_0x24f4ef),_0x4e15d4=_0x24f4ef['previousSibling'],_0x40fdb3=_0x24f4ef['nextSibling'],_0x843165=_0x24f4ef['getAttribute']('listItemId'),_0x2ad603=!_0x4e15d4||_0x4e15d4['getAttribute']('listItemId')!==_0x843165,_0x5114a5=!_0x40fdb3||_0x40fdb3['getAttribute']('listItemId')!==_0x843165;return _0x5702a6&&Boolean(_0x843165)&&_0x2ad603&&_0x5114a5;},_0x3a2380=>Bt(_0x34a6c4,'ELEMENT_LIST_ITEM',_0x3a2380));}_registerLegacyDescription(){const _0x155496=this['editor'],_0x24c41d=_0x155496['locale'];function _0x103456(_0x1db10a){const _0xbad425=_0x155496['commands']['get']('bulletedList')['value'],_0x3437f2=_0x155496['commands']['get']('numberedList')['value'];return'numberedList'===_0x1db10a?_0xbad425:_0x3437f2;}_0x155496['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1df2de){if('formatBlock'!=_0x1df2de['type'])return;const {data:_0xfb9a83}=_0x1df2de;if(!_0xfb9a83)return;let _0x4882d1,_0x546c50,_0x2f46b2,_0x241176;switch(_0xfb9a83['commandName']){case'bulletedList':_0x2f46b2=_0xfb9a83['commandParams'][0x0]['forceValue'],_0x241176=_0x103456(_0xfb9a83['commandName']),_0x4882d1=_0x2f46b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x241176&&_0x155496['config']['get']('list.multiBlock')||(_0x4882d1='*Change\x20to:*\x20%0'),_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2f46b2=_0xfb9a83['commandParams'][0x0]['forceValue'],_0x241176=_0x103456(_0xfb9a83['commandName']),_0x4882d1=_0x2f46b2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x241176&&_0x155496['config']['get']('list.multiBlock')||(_0x4882d1='*Change\x20to:*\x20%0'),_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4882d1='*Indent:*\x20%0',_0x546c50={'type':'format','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4882d1=function(_0x1a83dd){const _0x555c2a=_0x1a83dd['getFirstRange']();let _0x1103c0=_0x555c2a['start']['nodeAfter'];for(;_0x1103c0&&_0x555c2a['containsItem'](_0x1103c0);){if(_0x1103c0['getAttribute']('listIndent')>0x0)return!0x1;_0x1103c0=_0x1103c0['nextSibling'];}return!0x0;}(_0x1df2de)?Bt(_0x24c41d,'*Format:*\x20remove\x20from\x20%0',Bt(_0x24c41d,function(_0x1d05b7){return'ELEMENT_'+_0x1d05b7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1df2de))):Bt(_0x24c41d,'*Outdent:*\x20%0',Bt(_0x24c41d,'ELEMENT_LIST_ITEM')),_0x546c50={'type':'format','content':_0x4882d1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfb9a83['multipleBlocks']&&(_0x4882d1='*Merge:*\x20%0',_0x546c50={'type':'deletion','content':Bt(_0x24c41d,_0x4882d1,Bt(_0x24c41d,'ELEMENT_LIST_ITEM'))});}return _0x546c50;});}};function Zt(_0x4ba16e){let _0x43e4f9=_0x4ba16e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x43e4f9;){const _0x2e15b7=_0x43e4f9['getAttribute']('listItemId');if(!_0x2e15b7)return!0x1;if(_0x2e15b7==_0x4ba16e['data']['newValue'])return'newValue';if(_0x2e15b7==_0x4ba16e['data']['oldValue'])return'oldValue';_0x43e4f9=_0x43e4f9['previousSibling'];}return!0x1;}var Jt=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3c5bee=this['editor']['config']['get']('list.properties'),_0x52fc8a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c5bee['styles']&&_0x52fc8a['enableDefaultAttributesIntegration']('listStyle'),_0x3c5bee['reversed']&&_0x52fc8a['enableDefaultAttributesIntegration']('listReversed'),_0x3c5bee['startIndex']&&_0x52fc8a['enableDefaultAttributesIntegration']('listStart');const _0xb1b2ae={'type':'format','content':''};_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ea022=this['editor']['locale'];_0x52fc8a['descriptionFactory']['registerAttributeLabel']('listReversed',Bt(_0x3ea022,'FORMAT_LIST_REVERSED')),_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](_0x3e86ba=>{const {data:_0x40767a}=_0x3e86ba;if(_0x40767a&&'listReversed'==_0x40767a['key'])return null==_0x40767a['newValue']||0x0==_0x40767a['newValue']&&null==_0x40767a['oldValue']?_0xb1b2ae:void 0x0;}),_0x52fc8a['descriptionFactory']['registerAttributeLabel']('listStart',Bt(_0x3ea022,'FORMAT_LIST_START')),_0x52fc8a['descriptionFactory']['registerDescriptionCallback'](_0x2e9ada=>{const {data:_0x1f0ff0}=_0x2e9ada;if(_0x1f0ff0&&'listStart'==_0x1f0ff0['key'])return null==_0x1f0ff0['newValue']||0x1==_0x1f0ff0['newValue']&&null==_0x1f0ff0['oldValue']?_0xb1b2ae:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x338309=>{if(_0x338309['batch']['isUndo'])return!0x1;let _0x35a086=!0x1;const _0x4ea96f=_0x52fc8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x288d79=>{const _0x39fa74=_0x52fc8a['_getAttributeKey'](_0x288d79);return'listStart'==_0x39fa74||'listReversed'==_0x39fa74;});for(const _0x4c10fe of _0x4ea96f){const _0x3ddd3c=_0x4c10fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x3ddd3c&&'customNumbered'!=_0x3ddd3c&&(_0x52fc8a['_findSuggestions'](_0x4c10fe['getFirstRange'](),'attribute')['find'](_0x14d564=>'listType'==_0x52fc8a['_getAttributeKey'](_0x14d564['suggestion']))||(_0x338309['removeMarker'](_0x4c10fe['getFirstMarker']()),_0x35a086=!0x0));}return _0x35a086;}),this['_registerLegacyDescription']();}handleDescriptions(_0x253b27){const _0x1aa892=this['editor']['locale'],{data:_0x1ea276}=_0x253b27,_0x6a803f={'type':'format','content':''};if(!_0x1ea276||'listStyle'!=_0x1ea276['key'])return;if(!_0x1ea276['oldValue'])return'default'==_0x1ea276['newValue']?_0x6a803f:{'type':'format','content':''+Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['newValue'])))};if(!_0x1ea276['newValue']){if('default'==_0x1ea276['oldValue'])return _0x6a803f;let _0x19bf8d=_0x253b27['head'];for(;_0x19bf8d;){if(_0x19bf8d['data']&&'listType'==_0x19bf8d['data']['key']&&_0x19bf8d['data']['newValue'])return _0x6a803f;_0x19bf8d=_0x19bf8d['next'];}return{'type':'format','content':''+Bt(_0x1aa892,'*Remove\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['oldValue'])))};}if('default'!=_0x1ea276['newValue'])return{'type':'format','content':''+Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,this['_getTranslationKeyForListStyle'](_0x1ea276['newValue'])))};let _0x1e205d=_0x253b27['head'];for(;_0x1e205d;){if(_0x1e205d['data']&&'listType'==_0x1e205d['data']['key']&&_0x1e205d['data']['newValue']&&_0x1e205d['data']['oldValue'])return _0x6a803f;_0x1e205d=_0x1e205d['next'];}return{'type':'format','content':Bt(_0x1aa892,'*Set\x20format:*\x20%0',Bt(_0x1aa892,'ELEMENT_'+_0x253b27['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x69568c=this['editor'],_0x579752=_0x69568c['locale'];_0x69568c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4adc93=>{if('formatBlock'!=_0x4adc93['type'])return;const {data:_0x82ddcd}=_0x4adc93;if(!_0x82ddcd)return;let _0x18eee8,_0x21fc49;switch(_0x82ddcd['commandName']){case'listStyle':_0x18eee8='*Change\x20to:*\x20%0',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8,Bt(_0x579752,this['_getTranslationKeyForListStyle'](_0x82ddcd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x18eee8=_0x82ddcd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8)};break;case'listStart':_0x18eee8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21fc49={'type':'format','content':Bt(_0x579752,_0x18eee8,_0x82ddcd['commandParams'][0x0]['startIndex'])};}return _0x21fc49;});}_getTranslationKeyForListStyle(_0x311607){return'ELEMENT_'+(_0x33b8a9=_0x311607,te['includes'](_0x33b8a9)?'bulleted':ee['includes'](_0x33b8a9)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x311607['toUpperCase']()['replace'](/-/g,'_');var _0x33b8a9;}};const te=['disc','circle','square'],ee=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var ne=class extends _0xf0b898{afterInit(){const _0x1f7202=this['editor'];_0x1f7202['commands']['get']('emoji')&&_0x1f7202['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ie=class extends _0xf0b898{static get requires(){return[pt];}init(){const _0x12b0f=this['editor'],_0x3b3874=_0x12b0f['plugins']['get']('TrackChangesEditing'),_0x14b47e=_0x12b0f['commands']['get']('enter');_0x3b3874['enableCommand']('enter',()=>{_0x12b0f['model']['change'](_0x8a029a=>{const _0x5575c3=_0x12b0f['model']['document']['selection'],_0x514db3=_0x5575c3['getFirstPosition'](),_0x778586=ct['fromRange'](_0x5575c3['getFirstRange']());if(_0x14b47e['enterBlock'](_0x8a029a)){const _0x230bef=_0x12b0f['model']['createPositionAt'](_0x514db3['parent']['nextSibling'],0x0),_0xedea7d=_0x8a029a['createRange'](_0x514db3,_0x230bef);_0x3b3874['markInsertion'](_0xedea7d);}else _0x8a029a['setSelection'](_0x8a029a['createRange'](_0x778586['end']));_0x778586['detach'](),_0x14b47e['fire']('afterExecute',{'writer':_0x8a029a});});});}},se=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3abdfe=this['editor']['plugins']['get']('TrackChangesEditing');_0x3abdfe['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3abdfe['enableCommand']('findNext'),_0x3abdfe['enableCommand']('findPrevious'),_0x3abdfe['enableCommand']('replace'),_0x3abdfe['enableCommand']('replaceAll');}['handleFindCommand'](_0x424826,_0x548aa2,_0x31edfc={}){const _0xee57be=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x424826(_0x2dca61=>{let _0x39fc2b=('string'==typeof _0x548aa2?_0xee57be['findByTextCallback'](_0x548aa2,_0x31edfc):_0x548aa2)(_0x2dca61);Array['isArray'](_0x39fc2b)&&(_0x39fc2b={'results':_0x39fc2b,'searchText':'string'==typeof _0x548aa2?_0x548aa2:''});const _0x161726=_0x39fc2b['results']['filter'](_0x47f095=>!0x1===this['_isInDeletionRange'](_0x47f095,_0x2dca61['item']));return{..._0x39fc2b,'results':_0x161726};},_0x31edfc);}_isInDeletionRange(_0x42944f,_0x5d9a5c){const _0x57e05d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d9a5c,_0x42944f['start']),this['editor']['model']['createPositionAt'](_0x5d9a5c,_0x42944f['end']));for(const _0x11eb62 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57e05d['getIntersection'](_0x11eb62['getRange']()))return!0x0;return!0x1;}};const re=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var oe=class extends _0xf0b898{afterInit(){const _0x46fdbd=this['editor']['locale'],_0x547421=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x504ea7,commandName:_0x5009b4}of re)this['editor']['plugins']['has'](_0x504ea7)&&_0x547421['enableDefaultAttributesIntegration'](_0x5009b4);_0x547421['descriptionFactory']['registerAttributeLabel']('fontSize',Bt(_0x46fdbd,'FORMAT_FONT_SIZE')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontFamily',Bt(_0x46fdbd,'FORMAT_FONT_FAMILY')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontColor',Bt(_0x46fdbd,'FORMAT_FONT_COLOR')),_0x547421['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Bt(_0x46fdbd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x24ba9b=this['editor'],_0x5536ee=_0x24ba9b['locale'];_0x24ba9b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x199f7f=>{const _0x584d47=_0x5536ee['t'];if('formatInline'!=_0x199f7f['type'])return;const {data:_0x354931}=_0x199f7f;if(null!=_0x354931){if('fontSize'==_0x354931['commandName']){const _0x1dc26d=_0x354931['commandParams'][0x0]['value'];if(_0x1dc26d){const _0x569f73=_0x584d47(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x42400f=>_0x42400f['model']==_0x1dc26d)['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20size:*\x20%0',_0x569f73)};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x354931['commandName']){const _0x2df8b0=_0x354931['commandParams'][0x0]['value'];return _0x2df8b0?{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20family:*\x20%0',_0x2df8b0)}:{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20family*')};}if('fontColor'==_0x354931['commandName']){const _0xccc7b3=_0x354931['commandParams'][0x0]['value'];if(_0xccc7b3){const _0x503d2b=_0x8e2d9e(this['editor']['config']['get']('fontColor.colors'))['find'](_0x516ade=>_0x516ade['model']==_0xccc7b3);let _0x38807b=_0xccc7b3,_0x806438='';return _0x503d2b&&(_0x38807b=_0x503d2b['label'],_0x806438=_0x3088c8(_0x5536ee,_0x38807b)['toLowerCase']()),{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20color:*\x20%0',_0x806438)['trim'](),'color':{'value':_0xccc7b3,'title':_0x806438||_0x38807b}};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x354931['commandName']){const _0x10634a=_0x354931['commandParams'][0x0]['value'];if(_0x10634a){const _0xa61f21=_0x8e2d9e(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xd34860=>_0xd34860['model']==_0x10634a);let _0x4f9cd3=_0x10634a,_0x350282='';return _0xa61f21&&(_0x4f9cd3=_0xa61f21['label'],_0x350282=_0x3088c8(_0x5536ee,_0x4f9cd3)['toLowerCase']()),{'type':'format','content':Bt(_0x5536ee,'*Set\x20font\x20background\x20color:*\x20%0',_0x350282)['trim'](),'color':{'value':_0x10634a,'title':_0x350282||_0x4f9cd3}};}return{'type':'format','content':Bt(_0x5536ee,'*Reset\x20font\x20background\x20color*')};}}});}},ae=class extends _0xf0b898{afterInit(){const {plugins:_0xecd2e4}=this['editor'];_0xecd2e4['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0xecd2e4['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x1198ab,plugins:_0x99fa43,commands:_0x586fe7}=this['editor'],_0x45d1f1=_0x99fa43['get']('TrackChangesEditing');_0x586fe7['get']('footnotesStyle')&&_0x45d1f1['enableDefaultAttributesIntegration']('footnotesStyle'),_0x586fe7['get']('footnotesStart')&&_0x45d1f1['enableDefaultAttributesIntegration']('footnotesStart'),_0x45d1f1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Bt(_0x1198ab,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x45d1f1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Bt(_0x1198ab,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x459815=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x186fb7,commands:_0x73c7e1}=this['editor'];_0x73c7e1['get']('insertFootnote')&&_0x459815['enableCommand']('insertFootnote'),_0x459815['descriptionFactory']['registerElementLabel']('footnoteRef',_0x334f41=>Bt(_0x186fb7,'ELEMENT_FOOTNOTE_REF',_0x334f41)),_0x459815['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x324573=>Bt(_0x186fb7,'ELEMENT_FOOTNOTE_DEFINITION',_0x324573)),_0x459815['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x47f8f8=>Bt(_0x186fb7,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x47f8f8));}},ce=class extends _0xf0b898{afterInit(){const _0x5cb36e=this['editor'],_0xe86eac=_0x5cb36e['plugins']['get']('TrackChangesEditing'),_0x48484b=_0x5cb36e['commands']['get']('copyFormat'),_0x2d2c6e=_0x5cb36e['commands']['get']('pasteFormat');_0x48484b&&_0x2d2c6e&&(_0xe86eac['enableDefaultAttributesIntegration']('pasteFormat'),_0xe86eac['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x5b7248=this['editor'],_0x4a4907=_0x5b7248['locale'];_0x5b7248['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e2c4a=>{if('formatBlock'!=_0x9e2c4a['type']&&'formatInline'!=_0x9e2c4a['type'])return;const {data:_0x55f24f}=_0x9e2c4a;if(_0x55f24f&&'pasteFormat'===_0x55f24f['commandName']){const _0xcc1c02=[],_0x391c30=_0x55f24f['commandParams'][0x0];for(const [_0x7132c5,_0x518a24]of Object['entries'](_0x391c30))_0xcc1c02['push'](le(_0x5b7248,_0x7132c5,_0x518a24));return _0xcc1c02['length']?{'type':'format','content':Bt(_0x4a4907,'*Set\x20format\x20to:*\x20%0',_0xcc1c02['join'](',\x20'))}:{'type':'format','content':Bt(_0x4a4907,'*Remove\x20all\x20formatting*')};}});}};function le(_0x537f33,_0x5cef59,_0x547cef){const _0x44ee88=_0x537f33['locale'],_0x2d5f45=_0x44ee88['t'],_0x179a8=_0x5cef59['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c9d48=_0x2d5f45(_0x179a8['charAt'](0x0)['toUpperCase']()+_0x179a8['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x547cef)return _0x3c9d48;if('fontColor'===_0x5cef59||'fontBackgroundColor'===_0x5cef59){const _0x10789d=_0x8e2d9e(_0x537f33['config']['get']('fontColor.colors'))['find'](_0x4d3275=>_0x4d3275['model']==_0x547cef);return _0x3c9d48+'\x20('+(_0x10789d?_0x3088c8(_0x44ee88,_0x10789d['label'])['toLowerCase']():_0x547cef)+')';}if('fontSize'===_0x5cef59&&isNaN(parseFloat(_0x547cef))){const _0x12a900=_0x537f33['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x537f33['config']['get']('fontSize.options'))['find'](_0xd6a009=>_0xd6a009['model']==_0x547cef);return _0x3c9d48+'\x20('+(_0x12a900?_0x2d5f45(_0x12a900['title'])['toLowerCase']():_0x547cef)+')';}return _0x3c9d48+'\x20('+_0x547cef+')';}var ue=class extends _0xf0b898{afterInit(){const _0x4110cf=this['editor'];if(!_0x4110cf['plugins']['has']('GeneralHtmlSupport')||!_0x4110cf['plugins']['has']('DataSchema'))return;const _0x3fd129=_0x4110cf['plugins']['get']('TrackChangesEditing'),_0x455a38=_0x4110cf['plugins']['get']('GeneralHtmlSupport'),_0x5f0e04=_0x4110cf['plugins']['get']('DataSchema'),_0x345533=_0x4110cf['locale'],_0x5470f2=new Set(['htmlContent']);for(const _0x16c142 of _0x5f0e04['getDefinitionsForView'](/.*/,!0x1)){const _0x2bb4b3=_0x16c142['view'],_0x577cd6=_0x455a38['getGhsAttributeNameForElement'](_0x2bb4b3);_0x5470f2['add'](_0x577cd6),!_0x16c142['isInline']||_0x16c142['isObject']||'appliesToBlock'in _0x16c142&&_0x16c142['appliesToBlock']||_0x3fd129['descriptionFactory']['registerAttributeLabel'](_0x577cd6,_0x2bb4b3),_0x16c142['model']['startsWith']('html')&&_0x3fd129['descriptionFactory']['registerElementLabel'](_0x16c142['model'],_0x19fad3=>Bt(_0x345533,'ELEMENT_HTML_TAG',[_0x19fad3,_0x2bb4b3]));}_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlContent',Bt(_0x345533,'FORMAT_RAW_HTML_CONTENT')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Bt(_0x345533,'FORMAT_HTML_LIST_ITEM')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Bt(_0x345533,'FORMAT_HTML_BULLETED_LIST')),_0x3fd129['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Bt(_0x345533,'FORMAT_HTML_NUMBERED_LIST')),_0x3fd129['descriptionFactory']['registerDescriptionCallback'](_0x5154e2=>{if('attribute'!==_0x5154e2['type'])return;const _0x167726=_0x5154e2['data'];if(!_0x167726||!_0x5470f2['has'](_0x167726['key']))return;if('htmlContent'===_0x167726['key'])return{'type':'format','content':Bt(_0x345533,'*Change\x20%0\x20content*',Bt(_0x345533,'ELEMENT_RAW_HTML'))};const {setItems:_0x4c7d71,removeItems:_0x97d88f}=function(_0xb2789e,_0x3526b2,_0x1547e1){const _0x462375=[],_0x383490=[],_0x4b4909=_0xb2789e['styles']??{},_0x16e694=_0x3526b2['styles']??{};for(const _0x20889e of new Set([...Object['keys'](_0x4b4909),...Object['keys'](_0x16e694)]))_0x4b4909[_0x20889e]!==_0x16e694[_0x20889e]&&(void 0x0===_0x16e694[_0x20889e]?_0x383490['push'](_0x20889e):_0x462375['push'](_0x20889e+'\x20('+_0x16e694[_0x20889e]+')'));const _0x40dfb0=Bt(_0x1547e1,'FORMAT_HTML_CLASS'),_0x4e53a2=new Set(_0xb2789e['classes']??[]),_0x5e92e4=new Set(_0x3526b2['classes']??[]),_0x18c6b3=[..._0x5e92e4]['some'](_0x9b8db8=>!_0x4e53a2['has'](_0x9b8db8)),_0x38f575=[..._0x4e53a2]['some'](_0x4c0ef5=>!_0x5e92e4['has'](_0x4c0ef5));_0x18c6b3&&_0x462375['push'](_0x40dfb0),_0x38f575&&_0x383490['push'](_0x40dfb0);const _0x38eab7=Bt(_0x1547e1,'FORMAT_HTML_ATTRIBUTE'),_0xef9f09=_0xb2789e['attributes']??{},_0x41c1e9=_0x3526b2['attributes']??{};let _0x4f6989=!0x1,_0x1c3d49=!0x1;for(const _0x4d6305 of new Set([...Object['keys'](_0xef9f09),...Object['keys'](_0x41c1e9)]))_0xef9f09[_0x4d6305]!==_0x41c1e9[_0x4d6305]&&(void 0x0===_0x41c1e9[_0x4d6305]?_0x1c3d49=!0x0:_0x4f6989=!0x0);return _0x4f6989&&_0x462375['push'](_0x38eab7),_0x1c3d49&&_0x383490['push'](_0x38eab7),{'setItems':_0x462375,'removeItems':_0x383490};}(_0x167726['oldValue']??{},_0x167726['newValue']??{},_0x345533);if(!_0x4c7d71['length']&&!_0x97d88f['length'])return;const _0x56adc0=[];return _0x4c7d71['length']&&_0x56adc0['push'](Bt(_0x345533,'*Set\x20format:*\x20%0',_0x4c7d71['join'](',\x20'))),_0x97d88f['length']&&_0x56adc0['push'](Bt(_0x345533,'*Remove\x20format:*\x20%0',_0x97d88f['join'](',\x20'))),{'type':'format','content':_0x56adc0['join']('\x0a')};});}},de=class extends _0xf0b898{_headingOptions;afterInit(){const _0x553481=this['editor'];if(!_0x553481['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x553481['config']['get']('heading.options');const _0x1d7c7e=_0x553481['locale'],_0x184d09=_0x553481['plugins']['get']('TrackChangesEditing');_0x184d09['enableDefaultAttributesIntegration']('heading');for(const _0x2d6379 of this['_headingOptions'])'paragraph'!=_0x2d6379['model']&&_0x184d09['descriptionFactory']['registerElementLabel'](_0x2d6379['model'],_0x1b6306=>{const _0x1e1739=this['_getHeadingLevel'](_0x2d6379['model']);return null!==_0x1e1739?_0x380777(_0x1b6306,_0x1e1739):_0xa92919(_0x1b6306,_0x2d6379['title']);});function _0x380777(_0x5c0ee5,_0x219822){return Bt(_0x1d7c7e,'ELEMENT_HEADING',[_0x5c0ee5,_0x219822]);}function _0xa92919(_0x6cd543,_0x1bd584){return Bt(_0x1d7c7e,'ELEMENT_HEADING_CUSTOM',[_0x6cd543,_0x1bd584]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1b79eb=this['editor'],_0x248cbc=_0x1b79eb['locale'];function _0x492a3e(_0x398dfb,_0x592fbd){return Bt(_0x248cbc,'ELEMENT_HEADING_CUSTOM',[_0x398dfb,_0x592fbd]);}_0x1b79eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3adc28=>{if('formatBlock'!=_0x3adc28['type'])return;const {data:_0x3e3f4c}=_0x3adc28;if(_0x3e3f4c&&'heading'==_0x3e3f4c['commandName']){const _0x2fc837=_0x3e3f4c['commandParams'][0x0]['value'],_0x17279e=this['_getHeadingLevel'](_0x2fc837);if(null!==_0x17279e)return{'type':'format','content':Bt(_0x248cbc,'*Change\x20to:*\x20%0',(_0x1a42b1=0x1,_0x286e18=_0x17279e,Bt(_0x248cbc,'ELEMENT_HEADING',[_0x1a42b1,_0x286e18])))};const _0x4cdbc2=this['_headingOptions']['find'](_0x24c874=>_0x24c874['model']===_0x2fc837)['title'];return{'type':'format','content':Bt(_0x248cbc,'*Change\x20to:*\x20%0',_0x492a3e(0x1,_0x4cdbc2))};}var _0x1a42b1,_0x286e18;});}_getHeadingLevel(_0x4f1fd4){const _0x2b80d9=_0x4f1fd4['match'](/^heading(\d+)/);if(_0x2b80d9)return _0x2b80d9[0x1];const _0x2c07a7=this['_headingOptions']?.['find'](_0x2cc0ca=>_0x2cc0ca['model']==_0x4f1fd4);if(_0x2c07a7&&_0x2c07a7['view']){const _0x5b6fe1=_0x2c07a7['view'],_0x10b54f=(_0x5b6fe1['name']??_0x5b6fe1)['match'](/^h(\d+)/);if(_0x10b54f)return _0x10b54f[0x1];}return null;}},he=class extends _0xf0b898{afterInit(){const _0x46d961=this['editor'];if(!_0x46d961['plugins']['has']('HighlightEditing'))return;const _0x2168d9=_0x46d961['plugins']['get']('TrackChangesEditing'),_0x31717a=_0x46d961['locale'];_0x2168d9['enableDefaultAttributesIntegration']('highlight'),_0x2168d9['descriptionFactory']['registerAttributeLabel']('highlight',Bt(_0x31717a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4c81de=this['editor'],_0x5c830d=_0x4c81de['locale'];_0x4c81de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fab2f=>{if('formatInline'!=_0x3fab2f['type'])return;const {data:_0x45d62d}=_0x3fab2f;if(_0x45d62d&&'highlight'==_0x45d62d['commandName']){const _0x360619=_0x5c830d['t'],_0x5a7df9=_0x45d62d['commandParams'][0x0]['value'];if(_0x5a7df9){const _0x44b2b8=_0x4c81de['config']['get']('highlight.options')['find'](_0x39bc3c=>_0x39bc3c['model']==_0x5a7df9),_0x4e9da2=_0x360619(_0x44b2b8['title'])['toLowerCase']();return{'type':'format','content':Bt(_0x5c830d,'*Set\x20highlight:*\x20%0',_0x4e9da2),'color':{'value':_0x44b2b8['color'],'title':_0x44b2b8['title']}};}return{'type':'format','content':Bt(_0x5c830d,'*Remove\x20highlight*',Bt(_0x5c830d,'FORMAT_HIGHLIGHT'))};}});}},ge=class extends _0xf0b898{afterInit(){const _0x40d3b8=this['editor'];if(!_0x40d3b8['plugins']['has']('HorizontalLineEditing'))return;_0x40d3b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x30c299=_0x40d3b8['plugins']['get']('TrackChangesEditing'),_0xc89daa=_0x40d3b8['locale'];_0x30c299['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e0f6c=>Bt(_0xc89daa,'ELEMENT_HORIZONTAL_LINE',_0x1e0f6c));}},fe=class extends _0xf0b898{afterInit(){const _0x2e9671=this['editor'];if(!_0x2e9671['plugins']['has']('HtmlEmbed'))return;const _0xa337c7=_0x2e9671['plugins']['get']('TrackChangesEditing'),_0x1cad9f=_0x2e9671['locale'];_0xa337c7['descriptionFactory']['registerElementLabel']('rawHtml',_0x1ac1df=>Bt(_0x1cad9f,'ELEMENT_HTML_EMBED',_0x1ac1df)),_0xa337c7['enableDefaultAttributesIntegration']('htmlEmbed'),_0xa337c7['descriptionFactory']['registerDescriptionCallback'](_0x32a721=>{if('attribute'!=_0x32a721['type'])return;const {data:_0x35c19f}=_0x32a721;if(_0x35c19f&&'value'==_0x35c19f['key']&&_0x32a721['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x567c88=Bt(_0x1cad9f,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x1cad9f,'*Change\x20%0\x20content*',_0x567c88)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5afcf6=this['editor'],_0x2f2c19=_0x5afcf6['locale'];_0x5afcf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20556f=>{if('formatBlock'!=_0x20556f['type'])return;const {data:_0xfb2951}=_0x20556f;if(_0xfb2951&&'htmlEmbed'==_0xfb2951['commandName']){const _0x4098e9=Bt(_0x2f2c19,'ELEMENT_HTML_EMBED');return{'type':'format','content':Bt(_0x2f2c19,'*Change\x20%0\x20content*',_0x4098e9)};}});}},me=class extends _0xf0b898{afterInit(){const _0x4c9282=this['editor'];if(!_0x4c9282['plugins']['has']('ImageEditing'))return;const _0x4949b4=_0x4c9282['plugins']['get']('TrackChangesEditing'),_0x2e085d=_0x4c9282['plugins']['get']('ImageUtils'),_0x350a4c=_0x4c9282['locale'];_0x4949b4['enableCommand']('insertImage'),_0x4949b4['descriptionFactory']['registerElementLabel']('imageBlock',_0x30de89=>Bt(_0x350a4c,'ELEMENT_IMAGE',_0x30de89)),_0x4949b4['descriptionFactory']['registerElementLabel']('imageInline',_0x28e43d=>Bt(_0x350a4c,'ELEMENT_INLINE_IMAGE',_0x28e43d)),_0x4949b4['descriptionFactory']['registerElementLabel']('caption',()=>Bt(_0x350a4c,'ELEMENT_CAPTION')),_0x4c9282['plugins']['has']('ImageUploadEditing')&&_0x4949b4['enableCommand']('uploadImage'),_0x4c9282['plugins']['has']('ImageBlockEditing')&&_0x4c9282['plugins']['has']('ImageInlineEditing')&&(_0x4949b4['enableCommand']('imageTypeInline',(_0x143872,_0x15d67c)=>{const _0x2e2573=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']);_0x4c9282['model']['change'](()=>{_0x4949b4['markBlockFormat'](_0x2e2573,{'commandName':'imageTypeInline','commandParams':[_0x15d67c]},[],'convertBlockImageToInline');});}),_0x4949b4['enableCommand']('imageTypeBlock',(_0x4b4054,_0x2778b0)=>{_0x4c9282['model']['change'](_0x27c50a=>{let _0x3c3065=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0x57bffc=_0x27c50a['createRangeOn'](_0x3c3065);const _0x2bf252=at['fromPosition'](_0x57bffc['start'],'toPrevious'),_0x55a9a2=at['fromPosition'](_0x57bffc['end'],'toNext');_0x4949b4['forceDefaultExecution'](()=>_0x4b4054(_0x2778b0)),_0x3c3065=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0x57bffc=_0x27c50a['createRangeOn'](_0x3c3065);const _0x24b1c9=_0x27c50a['createRange'](_0x2bf252,_0x55a9a2);_0x2bf252['detach'](),_0x55a9a2['detach'](),_0x4949b4['markBlockFormat'](_0x3c3065,{'commandName':'imageTypeInline','commandParams':[_0x2778b0]},[],'convertInlineImageToBlock'),_0x24b1c9['start']['isBefore'](_0x57bffc['start'])&&_0x4949b4['markInsertion'](_0x27c50a['createRange'](_0x24b1c9['start'],_0x57bffc['start']),'convertInlineImageToBlock'),_0x57bffc['end']['isBefore'](_0x24b1c9['end'])&&_0x4949b4['markInsertion'](_0x27c50a['createRange'](_0x57bffc['end'],_0x24b1c9['end']),'convertInlineImageToBlock');});}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4949b4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x10f3f0])=>{const _0xf6410e=_0x4949b4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1290b4=_0x10f3f0['start'],_0x54c1b4=_0x10f3f0['end'];const _0xcada16=_0x4c9282['model']['schema']['getNearestSelectionRange'](_0x1290b4,'backward'),_0xecf81d=_0x4c9282['model']['schema']['getNearestSelectionRange'](_0x54c1b4,'forward');_0xcada16['isCollapsed']&&(_0x1290b4=_0xcada16['start']),_0xecf81d['isCollapsed']&&(_0x54c1b4=_0xecf81d['end']),_0xf6410e([_0x4c9282['model']['createRange'](_0x1290b4,_0x54c1b4)]);}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1bf107),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1bf107)),_0x4c9282['plugins']['has']('ImageCaptionEditing')&&(_0x4949b4['enableCommand']('toggleImageCaption',(_0x33cabc,_0x540671)=>{const _0x1c7c80=_0x4c9282['plugins']['get']('ImageCaptionUtils');let _0x36e97a=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0xc6310c=_0x1c7c80['getCaptionFromImageModelElement'](_0x36e97a);_0x4c9282['model']['change'](()=>{if(_0xc6310c)return void _0x4949b4['markDeletion'](_0x4c9282['model']['createRangeOn'](_0xc6310c));const _0x597e76=_0x2e085d['isBlockImage'](_0x36e97a);_0x33cabc(_0x540671),_0x36e97a=_0x2e085d['getClosestSelectedImageElement'](_0x4c9282['model']['document']['selection']),_0xc6310c=_0x1c7c80['getCaptionFromImageModelElement'](_0x36e97a),_0x4949b4['markInsertion'](_0x4c9282['model']['createRangeOn'](_0xc6310c),_0x597e76?null:'imageCaption');});}),_0x4949b4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1bf107));const _0x2d65d0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x16761a(_0x3690e5,_0x3fe6c9){const _0x341ebc=_0x2d65d0['findIndex'](({type:_0x4aa686,subType:_0x22d15e})=>_0x3690e5['type']==_0x4aa686&&_0x3690e5['subType']==_0x22d15e),_0x43a81c=_0x2d65d0['findIndex'](({type:_0x30ca58,subType:_0xc3ee1})=>_0x3fe6c9['type']==_0x30ca58&&_0x3fe6c9['subType']==_0xc3ee1);if(_0x341ebc<0x0||_0x43a81c<0x0)return!0x1;const _0x15394c=_0x3690e5['getFirstRange'](),_0x8097b4=_0x3fe6c9['getFirstRange']();if((0x0==_0x341ebc||0x1==_0x341ebc)&&0x2==_0x43a81c&&_0x15394c['isIntersecting'](_0x8097b4))return!0x0;if(0x2==_0x341ebc&&0x3==_0x43a81c){const _0x3b3c08=_0x4949b4['_findSuggestions'](_0x15394c,'insertion')['filter'](({suggestion:_0x53299d,meta:_0x448930})=>_0x448930['isOwn']&&'convertInlineImageToBlock'==_0x53299d['subType']);if(_0x3b3c08['length']>0x1&&_0x8097b4['end']['isEqual'](_0x15394c['start']))return!0x0;if(0x1==_0x3b3c08['length']&&(_0x15394c['start']['isEqual'](_0x8097b4['end'])||_0x15394c['end']['isEqual'](_0x8097b4['start'])))return!0x0;}if(0x3==_0x341ebc&&0x3==_0x43a81c&&_0x15394c['start']['isBefore'](_0x8097b4['start'])){const _0xb6a036=_0x15394c['end']['nodeAfter'],_0x1774e7=_0x8097b4['start']['nodeBefore'];return _0x2e085d['isBlockImage'](_0xb6a036)&&_0xb6a036===_0x1774e7;}return!0x1;}function _0x1bf107(_0x1b6b21,_0xadc17a){return _0x16761a(_0x1b6b21,_0xadc17a)?[_0x1b6b21,_0xadc17a]:_0x16761a(_0xadc17a,_0x1b6b21)?[_0xadc17a,_0x1b6b21]:null;}_0x4c9282['plugins']['has']('ImageResize')&&(_0x4949b4['enableDefaultAttributesIntegration']('resizeImage'),_0x4949b4['descriptionFactory']['registerAttributeLabel']('resizedWidth',Bt(_0x350a4c,'FORMAT_IMAGE_SIZE'))),_0x4c9282['plugins']['has']('ImageTextAlternativeEditing')&&_0x4949b4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4c9282['plugins']['has']('PictureEditing')&&_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x471d7c=>{if('attribute'!=_0x471d7c['type'])return;const {data:_0x4b5c33}=_0x471d7c;return _0x4b5c33&&'sources'==_0x4b5c33['key']?{'type':'format','content':''}:void 0x0;}),_0x4c9282['plugins']['has']('ImageSizeAttributes')&&_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x3805eb=>{if('attribute'!=_0x3805eb['type'])return;const {data:_0x5758f6}=_0x3805eb;return!_0x5758f6||'width'!=_0x5758f6['key']&&'height'!=_0x5758f6['key']?void 0x0:{'type':'format','content':''};}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x13c192=>{if(_0x2d65d0['find'](({type:_0x1414e0,subType:_0xadd956})=>_0x13c192['type']==_0x1414e0&&_0x13c192['subType']==_0xadd956))return _0x13c192['previous']?{}:void 0x0;}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x18e222=>{if('insertion'==_0x18e222['type']||'deletion'==_0x18e222['type']){const _0x16c799=_0x18e222['getContainedElement']();if(_0x16c799&&_0x16c799['is']('element','caption'))return{'type':'insertion'==_0x18e222['type']?'addObject':'removeObject','element':_0x16c799,'quantity':0x1};}}),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x273ada=>'formatBlock'==_0x273ada['type']&&'convertInlineImageToBlock'==_0x273ada['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x273ada['type']&&'convertBlockImageToInline'==_0x273ada['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4949b4['descriptionFactory']['registerDescriptionCallback'](_0x5e1ea0=>{if('attribute'!=_0x5e1ea0['type'])return;const {data:_0x43daac}=_0x5e1ea0;if(!_0x43daac||'alt'!=_0x43daac['key'])return;const _0x1d391a=_0x43daac['newValue'];return _0x1d391a?{'type':'format','content':Bt(_0x350a4c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d391a+'\x22')}:{'type':'format','content':Bt(_0x350a4c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x186d28=this['editor'],_0x554f31=_0x186d28['locale'];_0x186d28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105bb3=>{if('formatBlock'!=_0x105bb3['type']&&'formatInline'!=_0x105bb3['type'])return;const {data:_0x12191f}=_0x105bb3;if(_0x12191f){if('imageTextAlternative'==_0x12191f['commandName']){const _0x597f93=_0x12191f['commandParams'][0x0]['newValue'];return _0x597f93?{'type':'format','content':Bt(_0x554f31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x597f93+'\x22')}:{'type':'format','content':Bt(_0x554f31,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x12191f['commandName']){const _0x37627c=_0x12191f['commandParams'][0x0]['width'];return _0x37627c?{'type':'format','content':Bt(_0x554f31,'*Set\x20image\x20width:*\x20%0',_0x37627c)}:{'type':'format','content':Bt(_0x554f31,'*Reset\x20image\x20width*')};}}});}},Ee=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x44f789=this['editor']['locale'],_0x3eab4b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3eab4b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3eab4b['descriptionFactory']['registerDescriptionCallback'](_0x1bfc12=>{if('attribute'!=_0x1bfc12['type'])return;const {data:_0xa11279}=_0x1bfc12;return _0xa11279&&'src'==_0xa11279['key']?_0xa11279['newValue']&&_0xa11279['oldValue']?{'type':'format','content':Bt(_0x44f789,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x141f98=this['editor']['plugins']['get']('TrackChangesEditing');_0x141f98['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x141f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x141f98['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x141f98['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x3e1435=this['editor'],_0xbf1792=_0x3e1435['locale'];_0x3e1435['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e7d48=>{if('formatBlock'!=_0x2e7d48['type']&&'formatInline'!=_0x2e7d48['type'])return;const {data:_0x1041c6}=_0x2e7d48;return _0x1041c6&&'replaceImageSource'==_0x1041c6['commandName']?{'type':'format','content':Bt(_0xbf1792,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},Te=class extends _0xf0b898{afterInit(){const _0x26ec35=this['editor'];if(!_0x26ec35['plugins']['has']('ImageStyleEditing'))return;const _0x211bcf=_0x26ec35['plugins']['get']('TrackChangesEditing'),_0x29fc7d=_0x26ec35['plugins']['get']('ImageUtils'),_0x5d84a2={};_0x211bcf['enableCommand']('imageStyle',(_0x5ca958,_0x2eeff0)=>{const _0x8ab0fd=_0x26ec35['plugins']['get']('Users')['me'],_0x428a41=_0x26ec35['commands']['get']('imageStyle');let _0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),_0x2cf3ef=_0x26ec35['model']['createRangeOn'](_0x1a8782),_0x13eae3=_0x428a41['value'];if(_0x13eae3==_0x2eeff0['value'])return;if(_0x2eeff0['value']&&_0x29fc7d['isInlineImage'](_0x1a8782)&&!_0x428a41['isStyleEnabled'](_0x2eeff0['value']))return;const _0x2467fd={'commandName':'imageStyle','commandParams':[_0x2eeff0],'formatGroupId':_0xc08621()};_0x26ec35['model']['change'](()=>{if(_0x211bcf['getSuggestions']()['filter'](_0x2d51d4=>_0x2d51d4['isInContent']&&_0x8ab0fd==_0x2d51d4['author']&&('formatBlock'==_0x2d51d4['type']||'formatInline'==_0x2d51d4['type'])&&('imageStylePreApply'==_0x2d51d4['subType']||'imageStylePostApply'==_0x2d51d4['subType'])&&_0x2d51d4['getFirstRange']()['isEqual'](_0x2cf3ef))['forEach'](_0xc72ae8=>_0x211bcf['discardSuggestion'](_0xc72ae8['head'])),_0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),_0x2cf3ef=_0x26ec35['model']['createRangeOn'](_0x1a8782),_0x428a41['refresh'](),_0x26ec35['commands']['get']('imageTypeInline')['refresh'](),_0x26ec35['commands']['get']('imageTypeBlock')['refresh'](),_0x13eae3=_0x428a41['value'],_0x13eae3!=_0x2eeff0['value'])return _0x29fc7d['isInlineImage'](_0x1a8782)&&_0x428a41['shouldConvertImageType'](_0x2eeff0['value'],_0x1a8782)?(_0x5ca958({..._0x2eeff0,'setImageSizes':!0x1}),_0x1a8782=_0x29fc7d['getClosestSelectedImageElement'](_0x26ec35['model']['document']['selection']),void _0x211bcf['markBlockFormat'](_0x1a8782,{..._0x2467fd,'commandReversedParams':[{'value':_0x13eae3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x29fc7d['isBlockImage'](_0x1a8782)?_0x211bcf['markBlockFormat'](_0x1a8782,_0x2467fd,[],'imageStylePostApply'):_0x211bcf['markInlineFormat'](_0x2cf3ef,_0x2467fd,'imageStylePostApply'));});});for(const _0x2d6d1a of _0x26ec35['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5d84a2[_0x2d6d1a['name']]=_0x2d6d1a['title']['toLowerCase']();_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x40ad2c])=>{_0x29fc7d['setImageNaturalSizeAttributes'](_0x40ad2c['getContainedElement']());}),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x400650,_0x450fa2)=>{_0x211bcf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x400650,{'commandName':_0x450fa2['commandName'],'commandParams':_0x450fa2['commandReversedParams']});}),_0x211bcf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x835467,_0x7763f9){return _0x4ff4d6(_0x835467,_0x7763f9)?[_0x835467,_0x7763f9]:_0x4ff4d6(_0x7763f9,_0x835467)?[_0x7763f9,_0x835467]:null;});const _0x2bf12c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ff4d6(_0x39dc40,_0x10bd1a){const _0x3eb5bd=_0x2bf12c['findIndex'](({type:_0x1263a4,subType:_0x570be9})=>_0x39dc40['type']==_0x1263a4&&_0x39dc40['subType']==_0x570be9),_0x5f5528=_0x2bf12c['findIndex'](({type:_0x2c8763,subType:_0xe48033})=>_0x10bd1a['type']==_0x2c8763&&_0x10bd1a['subType']==_0xe48033);if(_0x3eb5bd<0x0||_0x5f5528<0x0)return!0x1;const _0xec629b=_0x39dc40['getFirstRange'](),_0xc47456=_0x10bd1a['getFirstRange']();if((0x0==_0x3eb5bd||0x1==_0x3eb5bd)&&0x2==_0x5f5528&&_0xec629b['isIntersecting'](_0xc47456))return!0x0;if(0x2==_0x3eb5bd&&0x3==_0x5f5528){const _0xface98=_0x211bcf['_findSuggestions'](_0xec629b,'insertion')['filter'](({suggestion:_0x52bfd3,meta:_0x4f3603})=>_0x4f3603['isOwn']&&'convertInlineImageToBlock'==_0x52bfd3['subType']);if(_0xface98['length']>0x1&&_0xc47456['end']['isEqual'](_0xec629b['start']))return!0x0;if(0x1==_0xface98['length']&&(_0xec629b['start']['isEqual'](_0xc47456['end'])||_0xec629b['end']['isEqual'](_0xc47456['start'])))return!0x0;}if(0x3==_0x3eb5bd&&0x3==_0x5f5528&&_0xec629b['start']['isBefore'](_0xc47456['start'])){const _0x2c7d64=_0xec629b['end']['nodeAfter'],_0x45f7e4=_0xc47456['start']['nodeBefore'];return _0x29fc7d['isBlockImage'](_0x2c7d64)&&_0x2c7d64===_0x45f7e4;}return!0x1;}_0x26ec35['model']['document']['registerPostFixer'](()=>{let _0x2d1041=!0x1;const _0x5eda11=Array['from'](_0x26ec35['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x532ede,data:_0x12306a}of _0x5eda11){const {group:_0x525244,type:_0x3abc7c,subType:_0x3c9139,id:_0x27a7d7}=it(_0x532ede);if('suggestion'==_0x525244&&_0x211bcf['hasSuggestion'](_0x27a7d7)){if('formatBlock'==_0x3abc7c&&('imageStylePreApply'==_0x3c9139||'imageStylePostApply'==_0x3c9139)){const _0x4e58af=_0x211bcf['getSuggestion'](_0x27a7d7);if(_0x12306a['newRange']){const _0x1dd8a1=_0x4e58af['getFirstRange']()['getContainedElement']();if(_0x29fc7d['isBlockImage'](_0x1dd8a1))continue;_0x211bcf['discardSuggestion'](_0x4e58af),_0x2d1041=!0x0;}}if('insertion'==_0x3abc7c&&'imageCaption'==_0x3c9139&&!_0x12306a['newRange']){const _0x253157=_0x211bcf['getSuggestion'](_0x27a7d7);_0x253157['next']&&_0x253157['next']['isInContent']&&(_0x211bcf['discardSuggestion'](_0x253157['next']),_0x2d1041=!0x0);}}}return _0x2d1041;}),this['_registerLegacyDescription'](_0x5d84a2);}_registerLegacyDescription(_0x4bd9b1){const _0x9b586d=this['editor'],_0x47f6fb=_0x9b586d['locale'];_0x9b586d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9e31e4=>{if('formatBlock'!=_0x9e31e4['type']&&'formatInline'!=_0x9e31e4['type'])return;const {data:_0xa846f}=_0x9e31e4;if(!_0xa846f||'imageStyle'!=_0xa846f['commandName'])return;const _0x35ad7f=_0xa846f['commandParams'][0x0]['value'];return _0x3db9de('side'===_0x35ad7f?Bt(_0x47f6fb,'FORMAT_SIDE_IMAGE'):_0x4bd9b1[_0x35ad7f]||_0x35ad7f);function _0x3db9de(_0xe97f54){return{'type':'format','content':Bt(_0x47f6fb,'*Format:*\x20%0',_0xe97f54)};}});}},_e=class extends _0xf0b898{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x5b7fe1){super(_0x5b7fe1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x5e5d3d=this['editor'],_0x3ed8b5=_0x5e5d3d['commands']['get']('importWord'),_0xda2fbf=_0x5e5d3d['commands']['get']('trackChanges');_0x3ed8b5&&(_0x3ed8b5['on']('execute',(_0x1bffea,[,_0x3fa49d])=>{this['_trackChangesValueDuringImport']=_0xda2fbf['value'],_0x3fa49d['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3ed8b5,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3ed8b5,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xda2fbf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e5d3d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x209030,_0x1894f5){const {suggestions:_0x5bf0c4}=_0x1894f5,_0x3f503a=this['editor']['commands']['get']('trackChanges'),_0x59cd15=_0x3f503a['value'];this['_trackChangesValueDuringImport']!==_0x59cd15&&(_0x3f503a['execute'](),this['_trackChangesExecuted']=!0x0),_0x5bf0c4&&_0x5bf0c4['forEach'](({id:_0x50b5ae,type:_0x562c7c,author:_0x4d9dca,created_at:_0xcf9ee2})=>{const _0x2ac07f={'id':_0x50b5ae,'type':_0x562c7c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4d9dca,'createdAt':_0xcf9ee2?new Date(_0xcf9ee2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ac07f);});}},pe=class extends _0xf0b898{afterInit(){const _0x44f57b=this['editor'],_0x4a35e7=_0x44f57b['plugins']['get']('TrackChangesEditing');if(_0x44f57b['plugins']['has']('IndentEditing')&&(_0x4a35e7['enableCommand']('indent'),_0x4a35e7['enableCommand']('outdent')),_0x44f57b['plugins']['has']('IndentBlock')){for(const _0x36e8e2 of['indentBlock','outdentBlock'])_0x4a35e7['enableDefaultAttributesIntegration'](_0x36e8e2);if(_0x44f57b['plugins']['has']('ListEditing')){for(const _0x5a2729 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x4a35e7['enableDefaultAttributesIntegration'](_0x5a2729);}}const _0x37b7c4=_0x44f57b['locale'];_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndent',Bt(_0x37b7c4,'FORMAT_INDENT')),_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndentList',Bt(_0x37b7c4,'FORMAT_INDENT')),_0x4a35e7['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Bt(_0x37b7c4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xcc31e3=this['editor'],_0x2588be=_0xcc31e3['locale'],_0x1b8a3d=_0xcc31e3['plugins']['get']('TrackChangesEditing');_0x1b8a3d['descriptionFactory']['registerDescriptionCallback'](_0x581e6a=>{if('formatBlock'!=_0x581e6a['type'])return;const {data:_0xe9a42d}=_0x581e6a;if(!_0xe9a42d)return;if('indentBlock'!=_0xe9a42d['commandName']&&'outdentBlock'!=_0xe9a42d['commandName'])return;const _0x77fd0b=_0x581e6a['getItems']()[0x0],_0x50e2ca=_0x1b8a3d['descriptionFactory']['getItemLabel'](_0x77fd0b);return'indentBlock'==_0xe9a42d['commandName']?{'type':'format','content':Bt(_0x2588be,'*Indent:*\x20%0',_0x50e2ca)}:'outdentBlock'==_0xe9a42d['commandName']?{'type':'format','content':Bt(_0x2588be,'*Outdent:*\x20%0',_0x50e2ca)}:void 0x0;});}},Le=class extends _0xf0b898{static get requires(){return[_t];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ie=class extends _0xf0b898{afterInit(){const _0x2fa833=this['editor'];if(!_0x2fa833['plugins']['has']('LinkEditing'))return;const _0x5d70af=_0x2fa833['plugins']['get']('TrackChangesEditing'),_0x31bfa6=_0x2fa833['commands']['get']('link');_0x5d70af['enableDefaultAttributesIntegration']('link'),_0x5d70af['enableDefaultAttributesIntegration']('unlink');for(const _0x45a306 of _0x31bfa6['manualDecorators'])_0x5d70af['descriptionFactory']['registerAttributeLabel'](_0x45a306['id'],'link\x20('+_0x45a306['label']['toLowerCase']()+')');_0x5d70af['descriptionFactory']['registerDescriptionCallback'](_0xa2aaef=>{if('attribute'!=_0xa2aaef['type'])return;const {data:_0x2fd72d}=_0xa2aaef;if(!_0x2fd72d||'linkHref'!=_0x2fd72d['key'])return;const _0x4b484c=_0x2fd72d['newValue'],_0x40fa76=_0x2fa833['locale'];return{'type':'format','content':null==_0x4b484c?Bt(_0x40fa76,'*Remove\x20link*'):Bt(_0x40fa76,'*Set\x20link:*\x20%0','\x22'+_0x4b484c+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x52c491=this['editor'],_0x6e6458=_0x52c491['locale'];_0x52c491['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe9f867=>{if('formatInline'!=_0xe9f867['type'])return;const {data:_0x321817}=_0xe9f867;if(_0x321817){if('link'==_0x321817['commandName']){const _0x109699=_0x321817['commandParams'][0x0];return{'type':'format','content':Bt(_0x6e6458,'*Set\x20link:*\x20%0','\x22'+_0x109699+'\x22')};}return'unlink'==_0x321817['commandName']?{'type':'format','content':Bt(_0x6e6458,'*Remove\x20link*')}:void 0x0;}});}},Ae=class extends _0xf0b898{afterInit(){const _0x3d3208=this['editor'],_0x27bb87=_0x3d3208['locale'];if(!_0x3d3208['plugins']['has']('LegacyListEditing'))return;const _0x1d72b5=_0x3d3208['plugins']['get']('TrackChangesEditing'),_0xedae8f=_0x3d3208['plugins']['has']('LegacyTodoListEditing');function _0x5ad0ee(_0x22daa7){return()=>{const _0x4be32e=_0x3d3208['model']['document']['selection'],_0x4821f5=_0x3d3208['commands']['get'](_0x22daa7);if(_0x4821f5['value'])return void _0x3d3208['execute']('paragraph',{});const _0x15e414=_0x22daa7['slice'](0x0,-0x4),_0x57a518=function(_0x5152b1,_0x24f8a4,_0x45dc25){let _0x3495f3=Array['from'](_0x5152b1)['filter'](_0x119ff2=>function(_0x45653c,_0x33d7a1){return _0x33d7a1['checkChild'](_0x45653c['parent'],'listItem')&&!_0x33d7a1['isObject'](_0x45653c);}(_0x119ff2,_0x45dc25));_0x3495f3=_0x3495f3['filter'](_0x5ec01b=>!_0x5ec01b['is']('element','listItem')||_0x5ec01b['getAttribute']('listType')!=_0x24f8a4);const _0x33f662=new Set();for(const _0x504617 of _0x3495f3)_0x504617['is']('element','listItem')?_0x33f662['add'](be(_0x504617)):_0x33f662['add'](_0x504617);return Array['from'](_0x33f662);}(_0x4be32e['getSelectedBlocks'](),_0x15e414,_0x3d3208['model']['schema']);_0x3d3208['model']['change'](()=>{for(const _0x40e350 of _0x57a518)_0x1d72b5['markBlockFormat'](_0x40e350,{'commandName':_0x22daa7,'commandParams':[{'forceValue':!_0x4821f5['value']}],'formatGroupId':'blockName'},Ce(_0x40e350));});};}function _0x8882e(_0x270e04){return()=>{const _0x1f2aa9=function(_0x568f7c){let _0x33b118=Array['from'](_0x568f7c);const _0x19bfe4=_0x33b118['findIndex'](_0x49ea1a=>'listItem'!=_0x49ea1a['name']);return _0x19bfe4>-0x1&&(_0x33b118=_0x33b118['slice'](0x0,_0x19bfe4)),_0x33b118;}(_0x3d3208['model']['document']['selection']['getSelectedBlocks']()),_0x4e4411=_0x3d3208['model']['createRange'](_0x3d3208['model']['createPositionAt'](_0x1f2aa9[0x0],'before'),_0x3d3208['model']['createPositionAt'](_0x1f2aa9[_0x1f2aa9['length']-0x1],'end'));_0x3d3208['model']['change'](()=>{_0x1d72b5['markBlockFormat'](_0x4e4411,{'commandName':_0x270e04,'commandParams':[],'formatGroupId':'listIndent'},function(_0x43a096){const _0x2b6fbe=new Set();for(const _0x1c2a0d of _0x43a096){let _0x4b2709=_0x1c2a0d['nextSibling'];for(;_0x4b2709&&_0x4b2709['getAttribute']('listIndent')>_0x1c2a0d['getAttribute']('listIndent');)_0x2b6fbe['add'](_0x4b2709),_0x4b2709=_0x4b2709['nextSibling'];}return Array['from'](_0x2b6fbe);}(_0x1f2aa9));});};}_0x1d72b5['enableCommand']('numberedList',_0x5ad0ee('numberedList')),_0x1d72b5['enableCommand']('bulletedList',_0x5ad0ee('bulletedList')),_0xedae8f&&_0x1d72b5['enableCommand']('todoList',_0x5ad0ee('todoList')),_0x1d72b5['enableCommand']('indentList',_0x8882e('indentList')),_0x1d72b5['enableCommand']('outdentList',_0x8882e('outdentList')),_0xedae8f&&_0x1d72b5['enableCommand']('checkTodoList',()=>{const _0x2c038b=_0x3d3208['commands']['get']('checkTodoList'),_0x3f1ea2=Array['from'](_0x2c038b['_selectedElements']);_0x3f1ea2['filter'](_0x1ca711=>_0x1ca711['getAttribute']('todoListChecked')!=_0x2c038b['value']),_0x3d3208['model']['change'](()=>{for(const _0x4147d1 of _0x3f1ea2)_0x1d72b5['markBlockFormat'](_0x4147d1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2c038b['value']}]});});}),_0x1d72b5['descriptionFactory']['registerElementLabel']('listItem',_0x529d9e=>Bt(_0x27bb87,'ELEMENT_LIST_ITEM',_0x529d9e)),_0x1d72b5['descriptionFactory']['registerDescriptionCallback'](_0x33408d=>{if('formatBlock'!=_0x33408d['type']&&'formatInline'!=_0x33408d['type'])return;const {data:_0x4605ca}=_0x33408d;if(_0x4605ca){if('numberedList'==_0x4605ca['commandName']||'bulletedList'==_0x4605ca['commandName']||'todoList'==_0x4605ca['commandName'])switch(_0x4605ca['commandName']['replace']('List','')){case'bulleted':return _0xbff285(Bt(_0x27bb87,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xbff285(Bt(_0x27bb87,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xbff285(Bt(_0x27bb87,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4605ca['commandName'])return{'type':'format','content':Bt(_0x27bb87,'*Indent:*\x20%0',Bt(_0x27bb87,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4605ca['commandName'])return{'type':'format','content':Bt(_0x27bb87,'*Outdent:*\x20%0',Bt(_0x27bb87,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4605ca['commandName'])return _0x4605ca['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x27bb87,'*Check\x20item*')}:{'type':'format','content':Bt(_0x27bb87,'*Uncheck\x20item*')};}function _0xbff285(_0x5b8461){return{'type':'format','content':Bt(_0x27bb87,'*Change\x20to:*\x20%0',_0x5b8461)};}});}};function be(_0x20e3fe){const _0xc24b48=_0x20e3fe['getAttribute']('listIndent');if(0x0==_0xc24b48)return _0x20e3fe;let _0x52ec6e=_0x20e3fe;for(;_0x20e3fe['previousSibling']&&_0x20e3fe['previousSibling']['is']('element','listItem');){const _0x3fd6ed=_0x20e3fe['previousSibling']['getAttribute']('listIndent');if(_0x3fd6ed==_0xc24b48)_0x52ec6e=_0x20e3fe['previousSibling'];else{if(_0x3fd6ed<_0xc24b48)break;}_0x20e3fe=_0x20e3fe['previousSibling'];}return _0x52ec6e;}function Ce(_0x144a6b){const _0x520582=[];if(_0x144a6b['is']('element','listItem')&&_0x144a6b['getAttribute']('listIndent')>0x0){let _0x57bd09=_0x144a6b['nextSibling'];for(;_0x57bd09&&'listItem'==_0x57bd09['name']&&_0x57bd09['getAttribute']('listIndent')==_0x144a6b['getAttribute']('listIndent');)_0x520582['push'](_0x57bd09),_0x57bd09=_0x57bd09['nextSibling'];}return _0x520582;}var ke=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x45ca1c=this['editor']['config']['get']('list.properties'),_0x54904=this['editor']['plugins']['get']('TrackChangesEditing');_0x45ca1c['styles']&&_0x54904['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x45ca1c['reversed']&&_0x54904['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x45ca1c['startIndex']&&_0x54904['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x54904['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x7b9e6a,_0x226fd1={}){const _0x187f04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1457e0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x187f04['markMultiRangeBlockFormat'](_0x1457e0,{'commandName':'listStyle','commandParams':[{'type':_0x226fd1['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x57b72b,_0x3e1dcb={}){const _0x49335a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18bf83=this['_getSuggestionBlocks'](_0x3a230f=>_0x3a230f['is']('element','listItem')&&'numbered'===_0x3a230f['getAttribute']('listType'));if(_0x18bf83['length']<0x1)return;const _0x1abf93=_0x18bf83['map'](_0x5d8447=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d8447,'before'),this['editor']['model']['createPositionAt'](_0x5d8447,0x0)));this['editor']['model']['change'](()=>{_0x49335a['markMultiRangeBlockFormat'](_0x1abf93,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e1dcb['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x110539,_0x31087e={}){const _0x5591bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47a08f=this['_getSuggestionBlocks'](_0x454283=>_0x454283['is']('element','listItem')&&'numbered'===_0x454283['getAttribute']('listType'));if(_0x47a08f['length']<0x1)return;const _0x349855=_0x47a08f['map'](_0x52b078=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52b078,'before'),this['editor']['model']['createPositionAt'](_0x52b078,0x0)));this['editor']['model']['change'](()=>{_0x5591bb['markMultiRangeBlockFormat'](_0x349855,{'commandName':'listStart','commandParams':[{'startIndex':_0x31087e['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x297b03){if('formatBlock'!=_0x297b03['type']&&'formatInline'!=_0x297b03['type'])return;const _0x3b3a57=this['editor']['locale'],{data:_0x37f031}=_0x297b03;if(!_0x37f031)return;let _0x4ae2aa,_0x4718df;switch(_0x37f031['commandName']){case'listStyle':_0x4ae2aa='*Change\x20to:*\x20%0',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa,Bt(_0x3b3a57,this['_getTranslationKeyForListStyle'](_0x37f031['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ae2aa=_0x37f031['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa)};break;case'listStart':_0x4ae2aa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4718df={'type':'format','content':Bt(_0x3b3a57,_0x4ae2aa,_0x37f031['commandParams'][0x0]['startIndex'])};}return _0x4718df;}_getSuggestionBlocksForListStyle(){const _0x5e43aa=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ee0ce=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2ee0ce[0x0]?.['is']('element','listItem')&&_0x2ee0ce['unshift'](..._0x5e43aa['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2ee0ce[_0x2ee0ce['length']-0x1]?.['is']('element','listItem')&&_0x2ee0ce['push'](..._0x5e43aa['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2ee0ce=[...new Set(_0x2ee0ce)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2ee0ce=_0x2ee0ce['filter'](_0xfbcbb0=>_0xfbcbb0['is']('element','listItem'))),_0x2ee0ce;}_getSuggestionBlocks(_0x447548){const _0x202bf9=this['editor']['plugins']['get']('LegacyListUtils');let _0x403404=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x447548)['map'](_0x152116=>{const _0x385bfb=this['editor']['model']['createPositionAt'](_0x152116,0x0);return[..._0x202bf9['getSiblingNodes'](_0x385bfb,'backward'),..._0x202bf9['getSiblingNodes'](_0x385bfb,'forward')];})['flat']();return _0x403404=[...new Set(_0x403404)],_0x403404;}_getTranslationKeyForListStyle(_0x4e90f6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e90f6)||'default')['toUpperCase']()+'_LIST_'+_0x4e90f6['toUpperCase']()['replace'](/-/g,'_');}},Re=class extends _0xf0b898{afterInit(){const _0x1aac6a=this['editor'];if(!_0x1aac6a['plugins']['has']('MediaEmbedEditing'))return;const _0x3c7a3a=_0x1aac6a['plugins']['get']('TrackChangesEditing'),_0x1aab17=_0x1aac6a['locale'];_0x3c7a3a['enableCommand']('mediaEmbed'),_0x3c7a3a['descriptionFactory']['registerElementLabel']('media',_0xd5ef3c=>Bt(_0x1aab17,'ELEMENT_MEDIA',_0xd5ef3c)),_0x1aac6a['plugins']['has']('MediaEmbedResizeEditing')&&(_0x3c7a3a['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x3c7a3a['descriptionFactory']['registerDescriptionCallback'](_0x7362e1=>{if('attribute'!=_0x7362e1['type'])return;const {data:_0x20c8d9}=_0x7362e1;if(!_0x20c8d9||'resizedWidth'!=_0x20c8d9['key'])return;const _0x26fdb9=_0x7362e1['getContainedElement']();if(!_0x26fdb9||!_0x26fdb9['is']('element','media'))return;const _0x2420b7=Bt(_0x1aab17,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Bt(_0x1aab17,'*Set\x20format:*\x20%0',_0x2420b7)};}));}},Ne=class extends _0xf0b898{afterInit(){const _0x3c5a30=this['editor'];if(!_0x3c5a30['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x2462a2=_0x3c5a30['plugins']['get']('TrackChangesEditing'),_0x2791b8=_0x3c5a30['locale'],_0x46fb2b=_0x3c5a30['plugins']['get']('MediaEmbedStyleEditing'),_0x3ff877={};for(const _0x324781 of _0x46fb2b['normalizedStyles'])_0x3ff877[_0x324781['name']]=_0x324781['title']['toLowerCase']();const _0x444024=_0x46fb2b['normalizedStyles']['find'](_0x1e1d71=>_0x1e1d71['isDefault'])?.['name'];_0x2462a2['enableCommand']('mediaStyle',(_0x2eebcd,_0x1c9e5b)=>{const _0x39b2d6=_0x3c5a30['plugins']['get']('Users')['me'],_0x362157=_0x3c5a30['commands']['get']('mediaStyle'),_0x1adeb6=function(_0x464feb){const _0x1156d9=_0x464feb['model']['document']['selection']['getSelectedElement']();return _0x1156d9&&_0x1156d9['is']('element','media')?_0x1156d9:null;}(_0x3c5a30);if(!_0x1adeb6)return;const _0x2448fc=_0x3c5a30['model']['createRangeOn'](_0x1adeb6);let _0x4c94d1=_0x362157['value'];if(_0x4c94d1==_0x1c9e5b['value'])return;const _0x54fe6c={'commandName':'mediaStyle','commandParams':[_0x1c9e5b],'formatGroupId':_0xc08621()};_0x3c5a30['model']['change'](()=>{_0x2462a2['getSuggestions']()['filter'](_0xf8240a=>_0xf8240a['isInContent']&&_0x39b2d6==_0xf8240a['author']&&'formatBlock'==_0xf8240a['type']&&'mediaStylePostApply'==_0xf8240a['subType']&&_0xf8240a['getFirstRange']()['isEqual'](_0x2448fc))['forEach'](_0x915e84=>_0x2462a2['discardSuggestion'](_0x915e84['head'])),_0x362157['refresh'](),_0x4c94d1=_0x362157['value'],_0x4c94d1!=_0x1c9e5b['value']&&_0x2462a2['markBlockFormat'](_0x1adeb6,{..._0x54fe6c,'commandReversedParams':[{'value':'string'==typeof _0x4c94d1?_0x4c94d1:null}]},[],'mediaStylePostApply');});}),_0x2462a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x2462a2['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x2126fd,_0x17686f)=>{_0x2462a2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2126fd,{'commandName':_0x17686f['commandName'],'commandParams':_0x17686f['commandReversedParams']});}),_0x2462a2['descriptionFactory']['registerDescriptionCallback'](_0x765d8b=>{if('formatBlock'!=_0x765d8b['type'])return;const {data:_0x8a610}=_0x765d8b;if(!_0x8a610||'mediaStyle'!=_0x8a610['commandName'])return;const _0x76f3a8=_0x8a610['commandParams'][0x0]['value']||_0x444024;if(!_0x76f3a8)return;const _0x5b419a=_0x3ff877[_0x76f3a8]||_0x76f3a8;return{'type':'format','content':Bt(_0x2791b8,'*Format:*\x20%0',_0x5b419a)};});}},ye=class extends _0xf0b898{afterInit(){const _0x3d0b09=this['editor'];_0x3d0b09['plugins']['has']('MentionEditing')&&_0x3d0b09['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},Se=class extends _0xf0b898{afterInit(){const _0x47aa21=this['editor'];if(!_0x47aa21['plugins']['has']('MergeFieldsEditing'))return;const _0x54b900=_0x47aa21['plugins']['get']('TrackChangesEditing'),_0xa781c8=_0x47aa21['locale'];_0x54b900['enableCommand']('insertMergeField'),_0x54b900['enableCommand']('insertMergeFieldBlock'),_0x54b900['enableCommand']('insertMergeFieldImage'),_0x54b900['descriptionFactory']['registerElementLabel']('mergeField',_0x7ef9a4=>Bt(_0xa781c8,'ELEMENT_MERGE_FIELD',_0x7ef9a4)),_0x54b900['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x237e01=>Bt(_0xa781c8,'ELEMENT_MERGE_FIELD',_0x237e01)),_0x54b900['descriptionFactory']['registerDescriptionCallback'](_0xdcb3bf=>{if('insertion'!=_0xdcb3bf['type']&&'deletion'!=_0xdcb3bf['type'])return;const _0x2d1a65=_0xdcb3bf['getContainedElement']();if(null==_0x2d1a65)return;const _0x15dd9d=_0x47aa21['plugins']['get']('MergeFieldsEditing');let _0x917901;switch(_0x15dd9d['getMergeFieldType'](_0x2d1a65)){case null:return;case'image':{const _0x2c290a=_0x15dd9d['unwrapAffixes'](_0x2d1a65['getAttribute']('src'));_0x917901=_0x15dd9d['getLabel'](_0x2c290a)||_0x2c290a;break;}default:{const _0x225ec5=_0x2d1a65['getAttribute']('id');_0x917901=_0x15dd9d['getLabel'](_0x225ec5)||_0x225ec5;break;}}return'insertion'==_0xdcb3bf['type']?{'type':'insertion','content':Bt(_0xa781c8,'*Insert:*\x20%0','\x22'+_0x917901+'\x22\x20'+Bt(_0xa781c8,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Bt(_0xa781c8,'*Remove:*\x20%0','\x22'+_0x917901+'\x22\x20'+Bt(_0xa781c8,'ELEMENT_MERGE_FIELD'))};});}},Me=class extends _0xf0b898{afterInit(){const _0x1cc553=this['editor'],_0x331110=_0x1cc553['plugins']['get']('TrackChangesEditing');_0x1cc553['plugins']['has']('MultiLevelList')&&(_0x331110['enableDefaultAttributesIntegration']('multiLevelList'),_0x331110['descriptionFactory']['registerDescriptionCallback'](_0x578e8f=>this['handleDescriptions'](_0x578e8f)));}handleDescriptions(_0x3eb78c){const _0x7ceefd=this['editor']['locale'],{data:_0x29550f}=_0x3eb78c,_0x1c05a0={'type':'format','content':''};if(_0x29550f&&'listMarkerStyle'==_0x29550f['key']){if(!_0x29550f['oldValue'])return{'type':'format','content':Bt(_0x7ceefd,'*Set\x20format:*\x20%0',Bt(_0x7ceefd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29550f['newValue']+')'};if(!_0x29550f['newValue']){let _0x2a1804=_0x3eb78c['head'];for(;_0x2a1804;){if(_0x2a1804['data']&&'listType'==_0x2a1804['data']['key']&&_0x2a1804['data']['newValue'])return _0x1c05a0;_0x2a1804=_0x2a1804['next'];}return{'type':'format','content':Bt(_0x7ceefd,'*Remove\x20format:*\x20%0',Bt(_0x7ceefd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x29550f['oldValue']+')'};}}}},Oe=class extends _0xf0b898{afterInit(){const _0xb98837=this['editor'];if(!_0xb98837['plugins']['has']('PageBreakEditing'))return;_0xb98837['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f0d2f=_0xb98837['plugins']['get']('TrackChangesEditing'),_0x361602=_0xb98837['locale'];_0x3f0d2f['descriptionFactory']['registerElementLabel']('pageBreak',_0x2c1f0a=>Bt(_0x361602,'ELEMENT_PAGE_BREAK',_0x2c1f0a));}},we=class extends _0xf0b898{afterInit(){const _0x515bd7=this['editor'];if(!_0x515bd7['plugins']['has']('Paragraph'))return;const _0x188873=_0x515bd7['locale'],_0x561684=_0x515bd7['plugins']['get']('TrackChangesEditing');_0x561684['descriptionFactory']['registerElementLabel']('paragraph',_0x240437=>Bt(_0x188873,'ELEMENT_PARAGRAPH',_0x240437)),_0x561684['enableDefaultAttributesIntegration']('paragraph'),_0x561684['enableCommand']('insertParagraph');const _0x11a051=_0x561684['descriptionFactory'];_0x11a051['registerDescriptionCallback'](_0x417189=>{if('insertion'!==_0x417189['type'])return;const {start:_0xa9283e,end:_0x15759a}=_0x417189['getFirstRange']();if(!_0xa9283e['isTouching'](_0x15759a)||!_0xa9283e['nodeAfter'])return;const _0x59c39c=_0x515bd7['model']['schema'],_0x4691f6=_0xa9283e['nodeAfter'];return _0x59c39c['isBlock'](_0x4691f6)&&!_0x59c39c['isLimit'](_0x4691f6)&&_0x59c39c['checkChild'](_0x4691f6,'$text')?{'type':'insertion','content':Bt(_0x188873,'*Insert:*\x20%0',_0x11a051['getItemLabel'](_0x4691f6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0xc5be2e=this['editor'],_0x52dfa8=_0xc5be2e['locale'];_0xc5be2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa1da31=>{if('formatBlock'!=_0xa1da31['type'])return;const {data:_0x5d273a}=_0xa1da31;return _0x5d273a&&'paragraph'==_0x5d273a['commandName']?{'type':'format','content':Bt(_0x52dfa8,'*Change\x20to:*\x20%0',Bt(_0x52dfa8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Be=class extends _0xf0b898{afterInit(){const _0x5d6d73=this['editor'];_0x5d6d73['commands']['get']('replaceSource')&&_0x5d6d73['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Fe=class extends _0xf0b898{afterInit(){const _0x3964c8=this['editor'];_0x3964c8['plugins']['has']('RemoveFormatEditing')&&(_0x3964c8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x37d2b6=this['editor'];_0x37d2b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda70d3=>{if('formatBlock'!=_0xda70d3['type']&&'formatInline'!=_0xda70d3['type'])return;const {data:_0x47aaea}=_0xda70d3;return _0x47aaea&&'removeFormat'==_0x47aaea['commandName']?{'type':'format','content':Bt(_0x37d2b6['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},ve=class extends _0xf0b898{afterInit(){const _0x2dd892=this['editor'];if(!_0x2dd892['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2b5815=_0x2dd892['plugins']['get']('TrackChangesEditing');_0x2b5815['enableCommand']('goToPreviousRestrictedEditingException'),_0x2b5815['enableCommand']('goToNextRestrictedEditingException');const _0x1d3906=_0x2dd892['plugins']['get']('RestrictedEditingModeEditing');_0x1d3906['enableCommand']('trackChanges'),_0x1d3906['enableCommand']('acceptSuggestion'),_0x1d3906['enableCommand']('discardSuggestion'),_0x1d3906['enableCommand']('acceptAllSuggestions'),_0x1d3906['enableCommand']('discardAllSuggestions'),_0x1d3906['enableCommand']('acceptSelectedSuggestions'),_0x1d3906['enableCommand']('discardSelectedSuggestions');}},De=class extends _0xf0b898{afterInit(){const _0x4db59f=this['editor'];if(!_0x4db59f['plugins']['has']('ShiftEnter'))return;const _0x34217b=_0x4db59f['plugins']['get']('TrackChangesEditing');_0x34217b['enableCommand']('shiftEnter'),_0x34217b['descriptionFactory']['registerElementLabel']('softBreak',_0x46198f=>Bt(_0x4db59f['locale'],'ELEMENT_LINE_BREAK',_0x46198f));}};function Ue(_0x447bb5,_0xf51c6a,_0x5ab3a2){const _0x306588=[];for(const _0x265197 of _0xf51c6a['getItems']())_0x265197['hasAttribute'](_0x447bb5)&&_0x306588['push'](_0x5ab3a2['createRangeOn'](_0x265197));return _0x306588;}var Pe=class extends _0xf0b898{afterInit(){const _0xe55aa6=this['editor'],_0x8c6716=_0xe55aa6['plugins']['get']('TrackChangesEditing');_0xe55aa6['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x8c6716['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0x32f1fe=this['editor'],_0x2f5a68=_0x32f1fe['model'],_0x7862e2=_0x32f1fe['locale'],_0x2f752e=_0x32f1fe['plugins']['get']('TrackChangesEditing'),_0x547790='restrictedEditingException',_0x5add3b=_0x32f1fe['commands']['get'](_0x547790);_0x2f752e['enableCommand'](_0x547790,(_0x2fd246,_0x370985={})=>{const _0x54cc71=_0x2f5a68['document']['selection'];if(_0x54cc71['isCollapsed'])return void _0x2fd246(_0x370985);const _0xb04fe5=void 0x0!==_0x370985['forceValue']?_0x370985['forceValue']:!_0x5add3b['value'];_0x2f5a68['change'](()=>{const _0x4edd11=Array['from'](_0x54cc71['getRanges']());for(const _0x20ce86 of _0x4edd11){const _0x2e46de=_0xb04fe5?[_0x20ce86]:Ue(_0x547790,_0x20ce86,_0x2f5a68);for(const _0x16eb7d of _0x2e46de)_0x2f752e['markInlineFormat'](_0x16eb7d,{'commandName':_0x547790,'commandParams':[{'forceValue':_0xb04fe5}]});}});}),_0x2f752e['descriptionFactory']['registerDescriptionCallback'](_0x5cdf74=>{if('formatBlock'!=_0x5cdf74['type']&&'formatInline'!=_0x5cdf74['type'])return;const {data:_0x34e2a3}=_0x5cdf74;return _0x34e2a3&&_0x34e2a3['commandName']==_0x547790?_0x34e2a3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x7862e2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x7862e2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x3ae39d=this['editor'],_0x171e42=_0x3ae39d['locale'],_0x2c8030=_0x3ae39d['plugins']['get']('TrackChangesEditing'),_0x4e79b1='restrictedEditingExceptionBlock',_0x1da2f3=this['editor']['commands']['get'](_0x4e79b1);_0x2c8030['enableCommand'](_0x4e79b1,(_0x33c543,_0x1cd4d2={})=>{const _0x44bb78=this['editor']['model']['document']['selection'],_0x156f14=_0x1cd4d2&&void 0x0!==_0x1cd4d2['forceValue']?_0x1cd4d2['forceValue']:!_0x1da2f3['value'];let _0x2c8de0=[];if(_0x156f14){const _0x28e18f=Array['from'](_0x44bb78['getSelectedBlocks']())['filter'](_0x2db1e8=>function(_0x4b9927){return!!_0x4b9927['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x2db1e8)||function(_0x581ad1,_0x2b8193){const _0x4ee61e=_0x2b8193['createContext'](_0x581ad1['parent']);return!!_0x2b8193['checkChild'](_0x4ee61e,'restrictedEditingException')&&!!_0x2b8193['checkChild'](_0x4ee61e['push']('restrictedEditingException'),_0x581ad1);}(_0x2db1e8,this['editor']['model']['schema']));_0x2c8de0=Rt(_0x28e18f,_0x3ae39d['model']);}else{const _0x4102ee=Array['from'](_0x44bb78['getSelectedBlocks']())['map'](_0x251d9b=>function(_0x22722a){let _0x471334=_0x22722a;for(;_0x471334['parent'];){if('restrictedEditingException'==_0x471334['parent']['name'])return _0x471334;_0x471334=_0x471334['parent'];}return null;}(_0x251d9b))['filter'](_0x2bc3fe=>!!_0x2bc3fe);_0x2c8de0=Rt(_0x4102ee,_0x3ae39d['model']);}_0x3ae39d['model']['change'](()=>{for(const _0x171be3 of _0x2c8de0)_0x2c8030['markBlockFormat'](_0x171be3,{'commandName':_0x4e79b1,'commandParams':[{'forceValue':_0x156f14}]});});}),_0x2c8030['descriptionFactory']['registerDescriptionCallback'](_0x35cb37=>{const {data:_0x2be25f}=_0x35cb37;if(_0x2be25f&&_0x2be25f['commandName']==_0x4e79b1)return _0x2be25f['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x171e42,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Bt(_0x171e42,'FORMAT_RESTRICTED_DISABLED')};});}},xe=class extends _0xf0b898{afterInit(){const _0x507da5=this['editor'];_0x507da5['plugins']['has']('Style')&&_0x507da5['plugins']['has']('DataSchema')&&(_0x507da5['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x742e6f=this['editor'],_0x1fad96=_0x742e6f['locale'];_0x742e6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b8f37=>{if('formatBlock'!=_0x2b8f37['type']&&'formatInline'!=_0x2b8f37['type'])return;const {data:_0x1450d3}=_0x2b8f37;return _0x1450d3&&'style'===_0x1450d3['commandName']?_0x1450d3['commandParams'][0x0]['forceValue']?{'type':'format','content':Bt(_0x1fad96,'*Set\x20format:*\x20%0',_0x1450d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Bt(_0x1fad96,'*Remove\x20format:*\x20%0',_0x1450d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Ge=class extends _0xf0b898{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x18b71f){super(_0x18b71f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x46f111=this['editor'],_0xa70671=_0x46f111['model']['document']['selection'];if(!_0x46f111['plugins']['has']('TableEditing'))return;const _0x1075bd=_0x46f111['locale'],_0x472043=_0x46f111['plugins']['get']('TrackChangesEditing'),_0x49378f=_0x46f111['plugins']['get']('TableUtils');_0x472043['descriptionFactory']['registerElementLabel']('table',_0x2a33c5=>Bt(_0x1075bd,'ELEMENT_TABLE',_0x2a33c5)),this['_setupColumnsRowsFixing'](),_0x472043['enableCommand']('insertTable'),_0x472043['enableCommand']('selectTableRow'),_0x472043['enableCommand']('selectTableColumn');for(const _0x4087f3 of['insertTableRowAbove','insertTableRowBelow']){const _0x4d5b13=_0x46f111['commands']['get'](_0x4087f3);_0x472043['enableCommand'](_0x4087f3,_0x1fd3bf=>{_0x46f111['model']['change'](_0x2d9fa9=>{_0x1fd3bf();const _0x49ffc4='above'===_0x4d5b13['order'],_0x23d1d7=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x4ef2b1=_0x49378f['getRowIndexes'](_0x23d1d7),_0x5756f7=_0x49ffc4?_0x4ef2b1['first']-0x1:_0x4ef2b1['last']+0x1,_0x26c79b=_0x23d1d7[0x0]['findAncestor']('table'),_0x2abf08=_0x49378f['createTableWalker'](_0x26c79b,{'startRow':_0x5756f7,'endRow':_0x5756f7}),_0x26ddd5=Array['from'](_0x2abf08)['map'](_0x194425=>_0x2d9fa9['createRangeOn'](_0x194425['cell']));_0x472043['markMultiRangeInsertion'](_0x26ddd5,'tableRow');});});}for(const _0x1b312b of['insertTableColumnLeft','insertTableColumnRight']){const _0x20f5ec=_0x46f111['commands']['get'](_0x1b312b);_0x472043['enableCommand'](_0x1b312b,_0x1a15e0=>{_0x46f111['model']['change'](_0x1ad61e=>{_0x1a15e0();const _0x1ad381='left'===_0x20f5ec['order'],_0x5bd2a6=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x2c2a95=_0x49378f['getColumnIndexes'](_0x5bd2a6),_0x25a348=_0x1ad381?_0x2c2a95['first']-0x1:_0x2c2a95['last']+0x1,_0x3db550=_0x5bd2a6[0x0]['findAncestor']('table'),_0xb501fd=_0x49378f['createTableWalker'](_0x3db550,{'startRow':0x0,'column':_0x25a348,'includeAllSlots':!0x1}),_0x493f37=Array['from'](_0xb501fd)['map'](_0x3e6505=>_0x1ad61e['createRangeOn'](_0x3e6505['cell']));_0x472043['markMultiRangeInsertion'](_0x493f37,'tableColumn');});});}for(const _0x287f72 of['removeTableRow','removeTableColumn']){const _0x39301d=_0x287f72['substr'](0xb),_0x4a3311=_0x39301d['toLowerCase'](),_0xa015d3=_0x4a3311['substr'](0x0,0x3)+'span',_0x41076d='table'+_0x39301d,_0x3256c9='min'+_0x39301d,_0x4cdd34='max'+_0x39301d;_0x472043['enableCommand'](_0x287f72,()=>{_0x46f111['model']['change'](_0x29b74b=>{const _0x110f36=_0x49378f['getSelectionAffectedTableCells'](_0xa70671),_0x277ace=_0x110f36[0x0]['findAncestor']('table');let _0x5299df;if('removeTableRow'==_0x287f72){const _0x35b98c=_0x49378f['getRowIndexes'](_0x110f36);_0x5299df={'startRow':_0x35b98c['first'],'endRow':_0x35b98c['last'],'includeAllSlots':!0x0};}else{const _0x1e166e=_0x49378f['getColumnIndexes'](_0x110f36);_0x5299df={'startColumn':_0x1e166e['first'],'endColumn':_0x1e166e['last'],'includeAllSlots':!0x0};}const _0x24bb86=_0x49378f['createTableWalker'](_0x277ace,_0x5299df),_0x89dac7=Array['from'](_0x24bb86)['map'](({cell:_0x3fdb85})=>_0x3fdb85),_0x5d62e3=He(_0x89dac7['filter'](_0x901705=>_0x901705['hasAttribute'](_0xa015d3))),_0x2c4f78=He(_0x89dac7['filter'](_0x57445d=>!_0x57445d['hasAttribute'](_0xa015d3)))['map'](_0x5e6390=>_0x29b74b['createRangeOn'](_0x5e6390)),_0x2445c0=_0x472043['markMultiRangeDeletion'](_0x2c4f78,_0x41076d);if(_0x2445c0&&('tableRow'==_0x2445c0['subType']||'tableColumn'==_0x2445c0['subType'])){const _0xf18af4=this['_getSuggestionCoords'](_0x2445c0);for(const _0x122982 of _0x5d62e3){const _0x1b4b25=_0x29b74b['createRangeOn'](_0x122982),_0x24b4d9=_0x49378f['getCellLocation'](_0x122982),_0x36867b=_0x122982['getAttribute'](_0xa015d3)-0x1,_0x262558=_0xf18af4[_0x3256c9],_0x3877dc=_0xf18af4[_0x4cdd34];_0x262558<=_0x24b4d9[_0x4a3311]&&_0x24b4d9[_0x4a3311]+_0x36867b<=_0x3877dc&&_0x2445c0['addRange'](_0x1b4b25);}}});});}function _0x46b35e(_0x296d70){const _0x5c318f=Array['from'](_0xa70671['getRanges']())['map'](_0xe8d842=>ct['fromRange'](_0xe8d842));_0x46f111['model']['change'](_0x503462=>{const _0x1ecdb7=_0x503462['batch'];_0x296d70=_0x296d70['filter'](_0x6dac1f=>'$graveyard'!=_0x6dac1f['root']['rootName']),_0x503462['setSelection'](_0x296d70),_0x46f111['commands']['get']('removeTableRow')['refresh'](),_0x46f111['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x46f111['model']['enqueueChange'](()=>{_0x46f111['model']['enqueueChange'](_0x1ecdb7,_0x45e0d0=>{const _0x4fba94=_0x5c318f['filter'](_0x39a454=>'$graveyard'!=_0x39a454['root']['rootName']);_0x4fba94['length']>0x0&&_0x45e0d0['setSelection'](_0x4fba94);for(const _0x4b95a5 of _0x5c318f)_0x4b95a5['detach']();});});});}function _0x2633ed(_0x97678c){_0x46f111['model']['change'](_0x290c78=>{const _0x471f96=Array['from'](_0xa70671['getRanges']())['map'](_0x2afc13=>ct['fromRange'](_0x2afc13)),_0x51f944=[];for(const _0x2ee619 of _0x97678c)for(const _0x14ceb4 of _0x2ee619['getItems']({'shallow':!0x0}))_0x51f944['push'](_0x14ceb4);for(const _0x1365ff of _0x51f944)'$graveyard'!=_0x1365ff['root']['rootName']&&(_0x290c78['setSelection'](_0x290c78['createPositionAt'](_0x1365ff,0x0)),_0x46f111['commands']['get']('removeTableColumn')['refresh'](),_0x46f111['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f93c1=_0x471f96['filter'](_0x3c99d7=>'$graveyard'!=_0x3c99d7['root']['rootName']);_0x2f93c1['length']>0x0&&_0x290c78['setSelection'](_0x2f93c1);for(const _0x5154ac of _0x471f96)_0x5154ac['detach']();});}function _0x114dc5(_0x326b10,_0x3e98f3){return _0x3e98f3['every'](_0x56013d=>_0x326b10['some'](_0x246983=>_0x246983['end']['isEqual'](_0x56013d['start'])||_0x56013d['end']['isEqual'](_0x246983['start'])));}function _0x6e4c78(_0x35c423,_0x1f6f71){return!_0x35c423['some'](_0x5e2c87=>_0x1f6f71['some'](_0x3fc92e=>_0x5e2c87['isIntersecting'](_0x3fc92e)))&&_0x35c423['some'](_0x5b2324=>_0x1f6f71['some'](_0x50acd9=>_0x5b2324['end']['isTouching'](_0x50acd9['start'])));}_0x472043['descriptionFactory']['registerDescriptionCallback'](_0x190a3b=>{if('insertion'!=_0x190a3b['type']&&'deletion'!=_0x190a3b['type'])return;const _0x277d60=_0x190a3b['getContainedElement']();if(null!=_0x277d60&&_0x277d60['is']('element','table')){if('insertion'==_0x190a3b['type']){const _0x517dd8=_0x190a3b['getItems']()['filter'](_0x14d919=>_0x14d919['is']('$textProxy'))['map'](_0x35f92f=>_0x35f92f['data']);if(_0x517dd8['length'])return{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x517dd8['join']('\x20')+'\x22'))};}if('deletion'==_0x190a3b['type']){const _0xdcc97b=_0x190a3b['getItems']()['filter'](_0x36b113=>_0x36b113['is']('$textProxy'))['map'](_0x21ea27=>_0x21ea27['data']);if(_0xdcc97b['length'])return{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdcc97b['join']('\x20')+'\x22'))};}}}),_0x472043['descriptionFactory']['registerDescriptionCallback'](_0x3a75d1=>{if('tableRow'==_0x3a75d1['subType']){const _0x17ef6f=_0x3a75d1['getItems']()['filter'](_0x19fba3=>_0x19fba3['is']('$textProxy'))['map'](_0x27ff87=>_0x27ff87['data']),_0x4130c4=this['_getSuggestionCoords'](_0x3a75d1),_0x396828=_0x4130c4['maxRow']-_0x4130c4['minRow']+0x1;if('insertion'==_0x3a75d1['type'])return _0x17ef6f['length']?{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396828,'\x22'+_0x17ef6f['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW',_0x396828))};if('deletion'==_0x3a75d1['type'])return _0x17ef6f['length']?{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x396828,'\x22'+_0x17ef6f['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_ROW',_0x396828))};}if('tableColumn'==_0x3a75d1['subType']){const _0x56cced=_0x3a75d1['getItems']()['filter'](_0x571276=>_0x571276['is']('$textProxy'))['map'](_0x33d2d7=>_0x33d2d7['data']),_0x27aaa6=this['_getSuggestionCoords'](_0x3a75d1),_0x2c64b2=_0x27aaa6['maxColumn']-_0x27aaa6['minColumn']+0x1;if('insertion'==_0x3a75d1['type'])return _0x56cced['length']?{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c64b2,'\x22'+_0x56cced['join']('\x20')+'\x22']))}:{'type':'insertion','content':Bt(_0x1075bd,'*Insert:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN',_0x2c64b2))};if('deletion'==_0x3a75d1['type'])return _0x56cced['length']?{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2c64b2,'\x22'+_0x56cced['join']('\x20')+'\x22']))}:{'type':'deletion','content':Bt(_0x1075bd,'*Remove:*\x20%0',Bt(_0x1075bd,'ELEMENT_TABLE_COLUMN',_0x2c64b2))};}}),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x46b35e),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x46b35e),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2633ed),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2633ed),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x114dc5),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x114dc5),_0x472043['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x6e4c78),_0x472043['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x6e4c78);}_acceptFormatSuggestionCallbackFactory(){const _0x6d55ff=this['editor'],_0x337d52=_0x6d55ff['model']['document']['selection'];return(_0x5de8fd,_0x4e7a9d)=>{_0x6d55ff['model']['change'](_0x105a40=>{const {commandName:_0x3f1b66,commandParams:_0x14e7b4}=_0x4e7a9d;let _0x12a43e=_0x5de8fd[0x0]['end']['nodeBefore'];_0x14e7b4&&_0x14e7b4[0x0]&&!0x1===_0x14e7b4[0x0]['forceValue']&&(_0x12a43e=_0x5de8fd[0x0]['start']['nodeAfter']);const _0x1ff3c8=_0x105a40['createRangeIn'](_0x12a43e);if('$graveyard'==_0x1ff3c8['root']['rootName'])return;const _0x32c98f=Array['from'](_0x337d52['getRanges']())['map'](_0x104c21=>ct['fromRange'](_0x104c21));_0x105a40['setSelection'](_0x1ff3c8),_0x6d55ff['commands']['get'](_0x3f1b66)['refresh'](),_0x14e7b4['push']({'forceDefaultExecution':!0x0}),_0x6d55ff['execute'](_0x3f1b66,..._0x14e7b4);const _0x316edc=_0x32c98f['filter'](_0x230d9f=>'$graveyard'!=_0x230d9f['root']['rootName']);_0x316edc['length']>0x0&&_0x105a40['setSelection'](_0x316edc);for(const _0x2d674c of _0x32c98f)_0x2d674c['detach']();});};}_getCoordsForCells(_0xb31f9d){const _0x1c2955=this['editor']['plugins']['get']('TableUtils');let _0x4764fa=Number['MAX_SAFE_INTEGER'],_0xedd40b=Number['MIN_SAFE_INTEGER'],_0xae5acb=Number['MAX_SAFE_INTEGER'],_0x17a403=Number['MIN_SAFE_INTEGER'];for(const _0x6d382e of _0xb31f9d){if('$graveyard'==_0x6d382e['root']['rootName'])continue;const {row:_0x4269d1,column:_0x102e74}=_0x1c2955['getCellLocation'](_0x6d382e),_0x59bf69=_0x6d382e['hasAttribute']('rowspan')?_0x6d382e['getAttribute']('rowspan')-0x1:0x0,_0x50c495=_0x6d382e['hasAttribute']('colspan')?_0x6d382e['getAttribute']('colspan')-0x1:0x0;_0x4764fa=_0x4269d1<_0x4764fa?_0x4269d1:_0x4764fa,_0xedd40b=_0x4269d1+_0x59bf69>_0xedd40b?_0x4269d1+_0x59bf69:_0xedd40b,_0xae5acb=_0x102e74<_0xae5acb?_0x102e74:_0xae5acb,_0x17a403=_0x102e74+_0x50c495>_0x17a403?_0x102e74+_0x50c495:_0x17a403;}return{'minRow':_0x4764fa,'maxRow':_0xedd40b,'minColumn':_0xae5acb,'maxColumn':_0x17a403};}_setupColumnsRowsFixing(){const _0x34dff4=this['editor'],_0x450998=_0x34dff4['plugins']['get']('TrackChangesEditing'),_0x211b12=_0x34dff4['plugins']['get']('TableUtils');_0x34dff4['model']['document']['on']('change:data',()=>{const _0x32266c=Array['from'](_0x34dff4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21ee4f,data:_0x22ae19}of _0x32266c){const {group:_0x506a49,id:_0x30ac25,subType:_0x5f0bec}=it(_0x21ee4f);if('suggestion'!=_0x506a49)continue;if(null!=_0x22ae19['oldRange'])continue;const _0x4dd010=_0x450998['getSuggestion'](_0x30ac25);this['_tablePostFixingSubtypes']['includes'](_0x5f0bec)&&this['_tableSuggestions']['add'](_0x4dd010);}},{'priority':'low'});const _0x3aa097=(_0x45704f,_0x5451df)=>{let _0x4969af=!0x1;const _0x34ac0f=_0x5451df['createRangeOn'](_0x45704f),_0x3e5feb=_0x45704f['findAncestor']('table'),_0x19fe41=_0x211b12['getCellLocation'](_0x45704f);for(const _0x7f2fbf of this['_tableSuggestions']){const _0x4f5966=_0x7f2fbf['subType'],_0x32ce5c=_0x4f5966['startsWith']('tablePaste'),_0x5135e4=_0x4f5966['substr'](_0x32ce5c?0xa:0x5),_0x1dd2cd=_0x5135e4['toLowerCase'](),_0x3b5285=_0x1dd2cd['substr'](0x0,0x3)+'span',_0x50207c='min'+_0x5135e4,_0x304427='max'+_0x5135e4;if(!_0x7f2fbf['isInContent'])continue;if(_0x3e5feb!=_0x7f2fbf['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7f2fbf['isIntersectingWithRange'](_0x34ac0f))continue;const _0x5e67cc=_0x45704f['hasAttribute'](_0x3b5285)?_0x45704f['getAttribute'](_0x3b5285)-0x1:0x0,_0x4e7d3f=this['_getSuggestionCoords'](_0x7f2fbf),_0x116de7=_0x4e7d3f[_0x50207c],_0x3d3ae1=_0x4e7d3f[_0x304427];_0x116de7<=_0x19fe41[_0x1dd2cd]&&_0x19fe41[_0x1dd2cd]+_0x5e67cc<=_0x3d3ae1&&(_0x7f2fbf['addRange'](_0x34ac0f),_0x4969af=!0x0);}return _0x4969af;};_0x34dff4['model']['document']['registerPostFixer'](_0x961c63=>{let _0x2ea385=!0x1;for(const _0x235bed of _0x34dff4['model']['document']['differ']['getChanges']())if('insert'==_0x235bed['type']){if('tableRow'==_0x235bed['name']){for(const _0x58c7e4 of _0x235bed['position']['nodeAfter']['getChildren']())_0x2ea385=_0x2ea385||_0x3aa097(_0x58c7e4,_0x961c63);}else'tableCell'==_0x235bed['name']&&(_0x2ea385=_0x2ea385||_0x3aa097(_0x235bed['position']['nodeAfter'],_0x961c63));}return _0x2ea385;});}_getSuggestionCoords(_0x5737f8){return this['_getCoordsForCells'](_0x5737f8['getRanges']()['map'](_0x253c3c=>_0x253c3c['start']['nodeAfter']));}};function He(_0x37def2){return Array['from'](new Set(_0x37def2)['values']());}var $e=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x4e2494=this['editor'],_0x1f0430=_0x4e2494['model']['document']['selection'],_0x2fd2d9=_0x4e2494['locale'];if(!_0x4e2494['plugins']['has']('TableEditing'))return;const _0x5e5b10=_0x4e2494['plugins']['get']('TrackChangesEditing'),_0x1df5c1=_0x4e2494['plugins']['get']('TableUtils'),_0x39d149=_0x4e2494['plugins']['get'](Ge);_0x39d149['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5e5b10['enableCommand']('mergeTableCells',()=>{const _0x2f9454=_0x1df5c1['getSelectionAffectedTableCells'](_0x4e2494['model']['document']['selection']);_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat'](_0x2f9454,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4e2494['commands']['get']('mergeTableCells')['on']('execute',(_0x4288f8,_0x55ddd0)=>{_0x4e2494['commands']['get']('trackChanges')['value']&&(_0x55ddd0['length']>0x0&&_0x55ddd0[_0x55ddd0['length']-0x1]&&_0x55ddd0[_0x55ddd0['length']-0x1]['forceDefaultExecution']||_0x5e5b10['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4288f8['stop']());},{'priority':'highest'});for(const _0x40dfe3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x17df92=_0x4e2494['commands']['get'](_0x40dfe3);_0x5e5b10['enableCommand'](_0x40dfe3,()=>{const _0x1dc864=_0x4e2494['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x46527b=>_0x46527b['is']('element','tableCell')),_0x5dd481=_0x17df92['value'];_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat']([_0x1dc864,_0x5dd481],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x26ee7d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x382666=_0x4e2494['commands']['get'](_0x26ee7d);_0x5e5b10['enableCommand'](_0x26ee7d,()=>{const _0x2906ce=_0x1df5c1['getSelectionAffectedTableCells'](_0x4e2494['model']['document']['selection']),_0x4ea884=_0x2906ce[0x0]['findAncestor']('table'),_0x2645c0=new Set();for(const _0x33253e of _0x2906ce){const {column:_0x4f1f3d,row:_0x2e785}=_0x1df5c1['getCellLocation'](_0x33253e),_0x33c59a='horizontally'==_0x382666['direction']?_0x1df5c1['createTableWalker'](_0x4ea884,{'startRow':_0x2e785,'endRow':_0x2e785,'includeAllSlots':!0x0}):_0x1df5c1['createTableWalker'](_0x4ea884,{'column':_0x4f1f3d,'includeAllSlots':!0x0});for(const {cell:_0x88bd85}of _0x33c59a)_0x2645c0['add'](_0x88bd85);}_0x4e2494['model']['change'](()=>{_0x5e5b10['markMultiRangeBlockFormat'](_0x2906ce,{'commandName':_0x26ee7d,'commandParams':[]},Array['from'](_0x2645c0),_0x26ee7d);});});}_0x5e5b10['descriptionFactory']['registerDescriptionCallback'](_0x578505=>{if('formatBlock'!=_0x578505['type']&&'formatInline'!=_0x578505['type'])return;const {data:_0x112dff}=_0x578505;return _0x112dff&&'mergeTableCells'==_0x112dff['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Merge\x20cells*')}:void 0x0;}),_0x5e5b10['descriptionFactory']['registerDescriptionCallback'](_0x15f214=>{if('formatBlock'!=_0x15f214['type']&&'formatInline'!=_0x15f214['type'])return;const {data:_0x19b144}=_0x15f214;return _0x19b144?'splitTableCellVertically'==_0x19b144['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x19b144['commandName']?{'type':'format','content':Bt(_0x2fd2d9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2327c8=_0x39d149['_acceptFormatSuggestionCallbackFactory']();for(const _0xa0504c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa0504c,'accept',_0x2327c8);for(const _0x365c1d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x365c1d,'accept',_0x363803=>{_0x4e2494['model']['change'](_0x512793=>{const _0x5a328a=Array['from'](_0x363803)['filter'](_0x34fa09=>'$graveyard'!=_0x34fa09['root']['rootName']&&!!_0x34fa09['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x5a328a['length'])return;const _0x3e2d61=Array['from'](_0x1f0430['getRanges']())['map'](_0x463325=>ct['fromRange'](_0x463325));_0x512793['setSelection'](_0x5a328a),_0x4e2494['commands']['get'](_0x365c1d)['refresh'](),_0x4e2494['execute'](_0x365c1d,{'forceDefaultExecution':!0x0});const _0x2c0bcd=_0x3e2d61['filter'](_0x3dded6=>'$graveyard'!=_0x3dded6['root']['rootName']);_0x2c0bcd['length']>0x0&&_0x512793['setSelection'](_0x2c0bcd);for(const _0x309f86 of _0x3e2d61)_0x309f86['detach']();});});_0x5e5b10['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x49c4aa=>{_0x4e2494['model']['change'](_0x44ab94=>{const _0x394ba7=Array['from'](_0x1f0430['getRanges']())['map'](_0x317792=>ct['fromRange'](_0x317792));_0x44ab94['setSelection'](_0x49c4aa),_0x4e2494['commands']['get']('mergeTableCells')['refresh'](),_0x4e2494['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xb991=_0x394ba7['filter'](_0x2779c7=>'$graveyard'!=_0x2779c7['root']['rootName']);_0xb991['length']>0x0&&_0x44ab94['setSelection'](_0xb991);for(const _0x7bc2e7 of _0x394ba7)_0x7bc2e7['detach']();});});for(const _0x592d52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xfeea60=_0x4e2494['commands']['get'](_0x592d52);_0xfeea60['on']('set:isEnabled',(_0x3fbd54,_0x30da98,_0x55654e)=>{if(_0x55654e){const _0x18e2a5=_0x4e2494['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1159c3=>_0x1159c3['is']('element','tableCell'));this['_areMergableCells'](_0xfeea60['value'],_0x18e2a5)||(_0x3fbd54['return']=!0x1,_0x3fbd54['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x2880fc=this['editor']['commands']['get']('mergeTableCells'),_0x4b656b=this['editor']['plugins']['get']('TableUtils');if(!_0x2880fc['isEnabled'])return!0x1;const _0x3a5a73=_0x4b656b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4afc7a of _0x3a5a73)for(const _0x5d877b of _0x3a5a73)if(_0x4afc7a!=_0x5d877b&&!this['_areMergableCells'](_0x4afc7a,_0x5d877b))return!0x1;return!0x0;}['_areMergableCells'](_0x1fcfd5,_0x5ec65c){const _0x3a8499=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52797a=this['editor']['model']['createRangeOn'](_0x1fcfd5),_0x1d66be=this['editor']['model']['createRangeOn'](_0x5ec65c),_0x1cc5ee=new Set(),_0x49156b=new Set();for(const _0xe1337e of _0x3a8499['getSuggestions']())if(('insertion'==_0xe1337e['type']||'deletion'==_0xe1337e['type']||'mergeTableCells'==_0xe1337e['subType'])&&_0xe1337e['isInContent']){for(const _0x47ec8b of _0xe1337e['getRanges']())_0x47ec8b['containsRange'](_0x52797a,!0x0)&&_0x1cc5ee['add'](_0xe1337e['type']+':'+_0xe1337e['author']['id']),_0x47ec8b['containsRange'](_0x1d66be,!0x0)&&_0x49156b['add'](_0xe1337e['type']+':'+_0xe1337e['author']['id']);}if(_0x1cc5ee['size']!=_0x49156b['size'])return!0x1;for(const _0xb92c7b of _0x1cc5ee)if(!_0x49156b['has'](_0xb92c7b))return!0x1;return!0x0;}},We=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x1e1b20=this['editor'];if(!_0x1e1b20['plugins']['has']('TableEditing'))return;const _0x46d93b=_0x1e1b20['locale'],_0x282e5e=_0x1e1b20['plugins']['get']('TrackChangesEditing');_0x282e5e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x282e5e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x282e5e['descriptionFactory']['registerAttributeLabel']('headingRows',Bt(_0x46d93b,'FORMAT_HEADER_ROW')),_0x282e5e['descriptionFactory']['registerAttributeLabel']('headingColumns',Bt(_0x46d93b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x2591f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc87863=this['editor']['plugins']['get'](Ge)['_acceptFormatSuggestionCallbackFactory']();_0x2591f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xc87863),_0x2591f0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xc87863),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x34c993=this['editor']['plugins']['get']('TrackChangesEditing'),_0x204f60=this['editor']['plugins']['get']('TableUtils');function _0x34f698({showActiveMarker:_0x323ab6=!0x0,setDataAttribute:_0x757f65=!0x0}={}){return(_0x536337,_0x27356b,_0x475c4f)=>{const {type:_0x56b958,id:_0x8012af}=it(_0x27356b['markerName']);if(!_0x34c993['hasSuggestion'](_0x8012af))return;const _0x2baa1d=_0x34c993['getSuggestion'](_0x8012af),_0x4b77d3=_0x2baa1d['data'];if('formatBlock'!=_0x2baa1d['type']||!_0x4b77d3||'setTableColumnHeader'!=_0x4b77d3['commandName'])return;if(_0x27356b['item'])return void _0x536337['stop']();if(!_0x475c4f['consumable']['consume'](_0x27356b['markerRange'],_0x536337['name']))return;const _0x3510f4=_0x27356b['markerRange']['start']['nodeAfter'],_0x7541c9=_0x27356b['markerRange']['end']['nodeBefore'],_0xf51a67=_0x3510f4['parent']['parent'],{column:_0x164217}=_0x204f60['getCellLocation'](_0x3510f4),{column:_0x2b00e6}=_0x204f60['getCellLocation'](_0x7541c9);for(let _0x519cd2=_0x164217;_0x519cd2<=_0x2b00e6;_0x519cd2++){const _0x2de2c6=_0x204f60['createTableWalker'](_0xf51a67,{'column':_0x519cd2,'includeAllSlots':!0x1});for(const _0x1e4d77 of _0x2de2c6){const _0x4667d6=_0x1e4d77['cell'],_0xc89d58=_0x475c4f['mapper']['toViewElement'](_0x4667d6);_0x475c4f['writer']['addClass']('ck-suggestion-marker-'+_0x56b958,_0xc89d58),_0x757f65&&_0x475c4f['writer']['setAttribute']('data-suggestion',_0x8012af,_0xc89d58),_0x475c4f['mapper']['bindElementToMarker'](_0xc89d58,_0x27356b['markerName']),_0x323ab6&&(_0x34c993['activeMarkers']['includes'](_0x27356b['markerName'])?_0x475c4f['writer']['addClass']('ck-suggestion-marker--active',_0xc89d58):_0x475c4f['writer']['removeClass']('ck-suggestion-marker--active',_0xc89d58));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x34f698(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10f8ef,_0x3b331b,_0x40568c)=>{_0x40568c['options']['showSuggestionHighlights']&&_0x34f698({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x10f8ef,_0x3b331b,_0x40568c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x3bab49,_0xbcdd18,_0x29ff49)=>{const {type:_0x515083,id:_0x4af638}=it(_0xbcdd18['markerName']);if(!_0x34c993['hasSuggestion'](_0x4af638))return;const _0x574e4c=_0x34c993['getSuggestion'](_0x4af638),_0x57b266=_0x574e4c['data'];if('formatBlock'!=_0x574e4c['type']||!_0x57b266||'setTableColumnHeader'!=_0x57b266['commandName'])return;const _0x1a1e21=_0x29ff49['mapper']['markerNameToElements'](_0xbcdd18['markerName']);if(_0x1a1e21){for(const _0x55c744 of _0x1a1e21)_0x29ff49['writer']['removeClass']('ck-suggestion-marker-'+_0x515083,_0x55c744),_0x29ff49['writer']['removeClass']('ck-suggestion-marker--active',_0x55c744),_0x29ff49['writer']['removeAttribute']('data-suggestion',_0x55c744),_0x29ff49['mapper']['unbindElementFromMarkerName'](_0x55c744,_0xbcdd18['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0xd6c0a3=this['editor'],_0x279ccd=_0xd6c0a3['locale'];function _0x4ef1ea(_0x4e0a4e){return{'type':'format','content':Bt(_0x279ccd,'*Format:*\x20%0',_0x4e0a4e)};}_0xd6c0a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189fed=>{if('formatBlock'!=_0x189fed['type'])return;const {data:_0x7df33f}=_0x189fed;return _0x7df33f?'setTableRowHeader'==_0x7df33f['commandName']?_0x7df33f['commandParams'][0x0]['forceValue']?_0x4ef1ea(Bt(_0x279ccd,'FORMAT_HEADER_ROW')):_0x4ef1ea(Bt(_0x279ccd,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x7df33f['commandName']?_0x7df33f['commandParams'][0x0]['forceValue']?_0x4ef1ea(Bt(_0x279ccd,'FORMAT_HEADER_COLUMN')):_0x4ef1ea(Bt(_0x279ccd,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},Ve=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x56f1ea=this['editor'];if(!_0x56f1ea['plugins']['has']('TableEditing')||!_0x56f1ea['config']['get']('table.enableFooters'))return;const _0x7594f9=_0x56f1ea['locale'],_0x2cfaf2=_0x56f1ea['plugins']['get']('TrackChangesEditing');_0x2cfaf2['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x2cfaf2['descriptionFactory']['registerAttributeLabel']('footerRows',Bt(_0x7594f9,'FORMAT_FOOTER_ROW'));}},ze=class extends _0xf0b898{afterInit(){const _0x49f8c8=this['editor'],_0x1ac45f=_0x49f8c8['locale'],_0x13a992=_0x49f8c8['plugins']['get']('TrackChangesEditing');function _0x4255e3(_0x551f1f){return{'type':'format','content':''+Bt(_0x1ac45f,'*Set\x20table\x20type:*\x20%0',_0x551f1f)};}_0x49f8c8['plugins']['has']('TableLayout')&&(_0x13a992['enableCommand']('insertTableLayout'),_0x13a992['enableDefaultAttributesIntegration']('tableType'),_0x13a992['descriptionFactory']['registerElementLabel'](_0x4c10a3=>_0x4c10a3['is']('element','table')&&'layout'===_0x4c10a3['getAttribute']('tableType'),_0x49db5f=>Bt(_0x1ac45f,'ELEMENT_LAYOUT_TABLE',_0x49db5f)),_0x13a992['descriptionFactory']['registerDescriptionCallback'](_0x65125=>{const {data:_0x2bb4e7}=_0x65125;if(_0x2bb4e7&&'tableType'==_0x2bb4e7['key'])switch(_0x2bb4e7['newValue']){case'layout':return _0x4255e3(Bt(_0x1ac45f,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4255e3(Bt(_0x1ac45f,'ELEMENT_CONTENT_TABLE'));}}));}};const je=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ke=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](je['map'](_0x4a95f3=>[_0x4a95f3,null]));var Xe=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x392838=this['editor'];if(!_0x392838['plugins']['has']('TableClipboard'))return;const _0x197cae=_0x392838['plugins']['get']('TrackChangesEditing'),_0xa0dab3=_0x392838['plugins']['get']('TableUtils'),_0x416095=_0x392838['plugins']['get'](Ge),_0x450f1e=_0x392838['plugins']['get']('TableClipboard'),_0x3bdb2f=_0x392838['plugins']['get']('TableSelection'),_0x1eaa47=_0x392838['plugins']['get'](Et);_0x416095['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x392838['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x392838['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x44b7a8=null,_0x246f3c=!0x1;_0x1eaa47['on']('contentInsertion',(_0x5eff0d,_0x297b60)=>{_0x246f3c='paste'===_0x297b60['method'];}),_0x392838['model']['on']('insertContent',(_0x4fab8d,_0x2071c7)=>{if(!_0x246f3c&&null===_0x3bdb2f['getSelectedTableCells']())return;const [_0x47b922,_0x557b6c]=_0x2071c7,_0x508bdc=_0x2071c7[_0x2071c7['length']-0x1];_0x508bdc&&_0x508bdc['forceDefaultExecution']||_0x197cae['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2d766f,_0x251624,_0x429bc3,_0xfe3b73,_0x1a9e10){if(_0x251624&&!_0x251624['is']('documentSelection'))return!0x1;const _0x61f126=_0x1a9e10['getTableIfOnlyTableInContent'](_0x2d766f,_0x429bc3);if(!_0x61f126||!Ye(_0x61f126,void 0x0,_0xfe3b73))return!0x1;const _0x18f385=_0xfe3b73['getSelectionAffectedTableCells'](_0x429bc3['document']['selection']);if(!_0x18f385['length'])return!0x1;const _0x96cc8c=_0x18f385[0x0]['findAncestor']('table'),_0x347749=_0xfe3b73['getRowIndexes'](_0x18f385),_0xff43fb=_0xfe3b73['getColumnIndexes'](_0x18f385),_0x43090c={'startRow':_0x347749['first'],'endRow':_0x347749['last'],'startColumn':_0xff43fb['first'],'endColumn':_0xff43fb['last']};return 0x1==_0x18f385['length']&&(_0x43090c['endRow']+=_0xfe3b73['getRows'](_0x61f126)-0x1,_0x43090c['endColumn']+=_0xfe3b73['getColumns'](_0x61f126)-0x1),Ye(_0x96cc8c,_0x43090c,_0xfe3b73);}(_0x47b922,_0x557b6c,_0x392838['model'],_0xa0dab3,_0x450f1e)&&(_0x4fab8d['stop'](),_0x44b7a8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x392838['model']['change'](()=>{_0x392838['model']['insertContent'](_0x2071c7[0x0],_0x2071c7[0x1],_0x2071c7[0x2],{'forceDefaultExecution':!0x0});const _0x2b3406=_0xc08621(),{rowInsertionRanges:_0x16d1f5,columnInsertionRanges:_0x43dd13,insertionRanges:_0x5be27f,deletionRanges:_0x5762b4,cells:_0x199777}=_0x44b7a8;_0x16d1f5['length']&&_0x197cae['markMultiRangeInsertion'](_0x16d1f5,'tablePasteRow',{'tablePasteChainId':_0x2b3406}),_0x43dd13['length']&&_0x197cae['markMultiRangeInsertion'](_0x43dd13,'tablePasteColumn',{'tablePasteChainId':_0x2b3406}),_0x5be27f['length']&&(_0x197cae['markMultiRangeInsertion'](_0x5be27f,'tablePaste',{'tablePasteChainId':_0x2b3406,'skipNestingCheck':!0x0}),_0x5be27f['forEach'](_0xcfd8bb=>_0xcfd8bb['detach']?.())),_0x5762b4['length']&&(_0x197cae['markMultiRangeDeletion'](_0x5762b4,'tablePaste',{'tablePasteChainId':_0x2b3406,'skipNestingCheck':!0x0}),_0x5762b4['forEach'](_0x42e7b0=>_0x42e7b0['detach']?.()));const _0x2a21da=_0x197cae['markMultiRangeBlockFormat'](_0x199777['map'](({element:_0x5499ce})=>_0x5499ce),{'formatGroupId':_0xc08621()},[],'tablePasteCell',{'tablePasteChainId':_0x2b3406});if(_0x2a21da){const _0x18d245=_0x2a21da['getMarkers'](),_0x2289f2=[];for(const {element:_0x57fd3f,attributes:_0x1dd65e}of _0x199777){if(!_0x1dd65e)continue;const _0x201180=_0x392838['model']['createRangeOn'](_0x57fd3f),_0x57e9c4=_0x18d245['find'](_0x137474=>_0x137474['getRange']()['isEqual'](_0x201180));_0x57e9c4&&_0x2289f2['push']([_0x57e9c4['name'],_0x1dd65e]);}_0x2289f2['length']&&_0x2a21da['setAttribute']('markerAttributes',Object['fromEntries'](_0x2289f2));}_0x44b7a8=null;}));},{'priority':_0x487ef8['high']+0xa}),_0x1eaa47['on']('contentInsertion',()=>{_0x246f3c=!0x1;},{'priority':'lowest'}),_0x392838['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x20a2bb,_0x19a620)=>{const [_0x9009b3,_0x3ee0ba,,_0x280a0f]=_0x19a620;if(!_0x44b7a8)return;_0x20a2bb['stop']();const _0x44db29=_0x9009b3['cell'],_0x373458=_0x3ee0ba,_0x4a1453=qe(_0x44db29),_0x274537=qe(_0x373458);_0x20a2bb['return']=_0x44db29;let _0x38a588=null,_0x3a7d6d=null;if(_0x274537||_0x4a1453){if(_0x4a1453&&!_0x274537){_0x280a0f['remove'](_0x44db29['getChild'](0x0));for(const _0x3bbdd3 of Array['from'](_0x373458['getChildren']()))_0x280a0f['insert'](_0x3bbdd3,_0x44db29,'end');const _0x443ebc=_0x44b7a8['rowInsertionIndexes']['includes'](_0x9009b3['row']),_0x26c389=_0x44b7a8['columnInsertionIndexes']['includes'](_0x9009b3['column']);_0x443ebc||_0x26c389||(_0x38a588=ct['fromRange'](_0x280a0f['createRangeIn'](_0x44db29)));}else _0x274537&&!_0x4a1453&&(_0x3a7d6d=_0x280a0f['createRangeIn'](_0x44db29));}else{const _0x1573c3=_0x280a0f['createElement']('tableCellSuggestion'),_0x200f31=_0x280a0f['createElement']('tableCellSuggestion');_0x280a0f['wrap'](_0x280a0f['createRangeIn'](_0x44db29),_0x200f31),_0x280a0f['insert'](_0x1573c3,_0x44db29,0x0);for(const _0xb45dad of Array['from'](_0x373458['getChildren']()))_0x280a0f['insert'](_0xb45dad,_0x1573c3,'end');_0x38a588=ct['fromRange'](_0x280a0f['createRangeOn'](_0x1573c3)),_0x3a7d6d=ct['fromRange'](_0x280a0f['createRangeOn'](_0x200f31));}const _0x1f0707=Array['from'](_0x373458['getAttributes']())['filter'](([_0x5c8df7])=>je['includes'](_0x5c8df7));_0x44b7a8['cells']['push']({'element':_0x44db29,'attributes':_0x1f0707['length']?Object['fromEntries'](_0x1f0707):null}),_0x38a588&&_0x44b7a8['insertionRanges']['push'](_0x38a588),_0x3a7d6d&&_0x44b7a8['deletionRanges']['push'](_0x3a7d6d);},{'priority':'high'}),_0xa0dab3['on']('insertColumns',(_0x254d9a,_0x5b549d)=>{const [_0x3a92d3,_0x68ba31={}]=_0x5b549d;if(!_0x44b7a8)return;const _0x28beeb=_0x68ba31['at']||0x0,_0x295d7d=_0x68ba31['columns']||0x1;_0x44b7a8['columnInsertionIndexes']=new Array(_0x295d7d)['fill'](_0x28beeb)['map']((_0x207077,_0x5b4845)=>_0x207077+_0x5b4845);for(const {cell:_0x2f5bc6}of _0xa0dab3['createTableWalker'](_0x3a92d3,{'startColumn':_0x28beeb,'endColumn':_0x28beeb+_0x295d7d-0x1}))_0x44b7a8['columnInsertionRanges']['push'](_0x392838['model']['createRangeOn'](_0x2f5bc6));},{'priority':'low'}),_0xa0dab3['on']('insertRows',(_0x267f35,_0x519b2d)=>{const [_0x3d9b6e,_0x181dc3={}]=_0x519b2d;if(!_0x44b7a8)return;const _0x59c9d4=_0x181dc3['at']||0x0,_0x46aa73=_0x181dc3['rows']||0x1;_0x44b7a8['rowInsertionIndexes']=new Array(_0x46aa73)['fill'](_0x59c9d4)['map']((_0x124e0e,_0x1e4cfc)=>_0x124e0e+_0x1e4cfc);for(const {cell:_0x253252}of _0xa0dab3['createTableWalker'](_0x3d9b6e,{'startRow':_0x59c9d4,'endRow':_0x59c9d4+_0x46aa73-0x1}))_0x44b7a8['rowInsertionRanges']['push'](_0x392838['model']['createRangeOn'](_0x253252));},{'priority':'low'}),_0x197cae['descriptionFactory']['registerDescriptionCallback'](_0x54fdd3=>{if(_0x54fdd3['subType']&&_0x54fdd3['subType']['startsWith']('tablePaste'))return _0x54fdd3['previous']?{}:{'type':'insertion','content':Bt(_0x392838['locale'],'*Replace\x20table\x20cells*')};});const _0x366943=()=>!0x1;for(const _0x191048 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion',_0x191048,'join',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('deletion',_0x191048,'join',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x191048,'join',_0x366943);_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x366943),_0x197cae['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1deae4,_0x3f79da,_0x442abf)=>{const _0x234fc8=_0x1deae4['map'](_0x365792=>_0x365792['getContainedElement']())['filter'](_0xbee0f9=>_0xbee0f9),_0x39f829=new Map(_0x234fc8['map'](_0x2ff9a5=>[_0x2ff9a5,null]));if(_0x44b7a8){for(const {element:_0x52ba56,attributes:_0x4dd0f4}of _0x44b7a8['cells'])_0x4dd0f4&&_0x39f829['set'](_0x52ba56,_0x4dd0f4);}else{if(_0x442abf&&_0x442abf['markerAttributes'])for(const [_0x207383,_0x596143]of Object['entries'](_0x442abf['markerAttributes'])){const _0x4f264c=_0x392838['model']['markers']['get'](_0x207383),_0x1cefea=_0x4f264c?_0x4f264c['getRange']()['getContainedElement']():null;_0x1cefea&&_0x39f829['set'](_0x1cefea,_0x596143);}}_0x392838['model']['change'](_0x37455c=>{for(const [_0x258114,_0x18e6bd]of _0x39f829)_0x37455c['setAttributes']({...Ke,..._0x18e6bd},_0x258114);});});const _0x1b3dcb=(_0x2a1c1a,_0xc2c772)=>{_0x197cae['_suggestionFactory']['registerCustomCallback'](_0x2a1c1a,'tablePaste',_0xc2c772,(_0x3a760b,_0x511027,_0x35f63d)=>{_0x392838['model']['change'](_0x840f09=>{const _0x24b006=[];for(const _0x2737e0 of _0x3a760b){const _0x2b7cd3=_0x2737e0['start']['nodeAfter'];_0x2b7cd3['is']('element','tableCellSuggestion')&&_0x24b006['push'](_0x2b7cd3);}_0x197cae['_suggestionFactory']['getSuggestionCallback'](_0x2a1c1a,null,_0xc2c772)(_0x3a760b,_0x511027,_0x35f63d);for(const _0x4062b1 of _0x24b006)'$graveyard'!=_0x4062b1['root']['rootName']&&_0x840f09['unwrap'](_0x4062b1);});});};_0x1b3dcb('insertion','accept'),_0x1b3dcb('insertion','discard'),_0x1b3dcb('deletion','accept'),_0x1b3dcb('deletion','discard'),_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x360b25=>{const _0x295146=_0x360b25['map'](_0x49f81d=>_0x49f81d['getContainedElement']()),_0x45d04e=_0x295146[0x0]['findAncestor']('table'),{minRow:_0x5dc229,maxRow:_0x27e2a5}=_0x416095['_getCoordsForCells'](_0x295146);_0xa0dab3['removeRows'](_0x45d04e,{'at':_0x5dc229,'rows':_0x27e2a5-_0x5dc229+0x1});}),_0x197cae['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xc46c30=>{const _0x2db3b7=_0xc46c30['map'](_0x54404f=>_0x54404f['getContainedElement']()),_0x55dba6=_0x2db3b7[0x0]['findAncestor']('table'),{minColumn:_0x54a84b,maxColumn:_0x90d980}=_0x416095['_getCoordsForCells'](_0x2db3b7);_0xa0dab3['removeColumns'](_0x55dba6,{'at':_0x54a84b,'columns':_0x90d980-_0x54a84b+0x1});});const _0x4a0f2f=(_0x46cfd0,_0x5440c2)=>{if(!_0x5440c2['subType']||!_0x5440c2['subType']['startsWith']('tablePaste'))return;const _0x3b700e=_0x5440c2['attributes']['tablePasteChainId'],_0x4c325e=_0x197cae['getSuggestions']()['filter'](_0x50093b=>_0x50093b['isInContent']&&_0x50093b['attributes']&&_0x50093b['attributes']['tablePasteChainId']==_0x3b700e);_0x4c325e['length']&&_0x5440c2['getAllAdjacentSuggestions']()['length']!=_0x4c325e['length']&&_0x4c325e['reduce']((_0x52d224,_0x237cfb)=>(_0x52d224['next']=_0x237cfb,_0x237cfb['previous']=_0x52d224,_0x237cfb));};function _0x49aba0(_0x5ee068,_0x106ad7=!0x0){const {id:_0x4e103b,authorId:_0x380126}=it(_0x5ee068['markerName']),_0x52b8d7=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x51a75b=_0x197cae['activeMarkers']['includes'](_0x5ee068['markerName']);return _0x51a75b&&_0x52b8d7['push']('ck-suggestion-marker--active'),{'classes':_0x52b8d7,'attributes':{'data-suggestion':_0x4e103b,'data-author-id':_0x380126},'priority':_0x51a75b&&_0x106ad7?0xbc2:0xbb8};}_0x197cae['on']('suggestionLoaded',_0x4a0f2f,{'priority':'high'}),_0x197cae['on']('suggestionUnloaded',_0x4a0f2f,{'priority':'high'}),_0x392838['model']['document']['registerPostFixer'](()=>{let _0x161ffd=!0x1;const _0x9e4dc2=Array['from'](_0x392838['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269df2,data:_0x4e2396}of _0x9e4dc2){const {group:_0x67a202,type:_0xa87d84,id:_0x4a0b4e}=it(_0x269df2);if('suggestion'!=_0x67a202||'deletion'!=_0xa87d84||_0x4e2396['oldRange'])continue;if(!_0x197cae['hasSuggestion'](_0x4a0b4e))continue;const _0x2aa696=_0x197cae['getSuggestion'](_0x4a0b4e)['getRanges'](),_0x56cd35=_0x392838['plugins']['get']('Users')['me'];for(const _0x5ea239 of _0x197cae['getSuggestions']())if(_0x5ea239['isInContent']&&_0x5ea239['author']==_0x56cd35&&'formatBlock'==_0x5ea239['type']&&'tablePasteCell'==_0x5ea239['subType']&&_0x5ea239['getRanges']()['every'](_0x48c82f=>_0x2aa696['some'](_0x5de5f4=>_0x5de5f4['containsRange'](_0x48c82f,!0x0)))){for(const _0x488fad of _0x5ea239['getAllAdjacentSuggestions']())_0x488fad['isInContent']&&(_0x488fad['discard'](),_0x161ffd=!0x0);}}return _0x161ffd;}),_0x392838['model']['document']['registerPostFixer'](_0x68b31b=>{const _0x16e010=_0x392838['commands']['get']('redo');if(!_0x16e010||!_0x16e010['_createdBatches']['has'](_0x68b31b['batch']))return!0x1;let _0x56681d=!0x1;const _0x5748c6=_0x392838['plugins']['get']('Users')['me'],_0x5be662=_0x392838['model']['document']['differ']['getChanges'](),_0x45b0b0=Array['from'](_0x392838['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21643f,data:_0x54ca3c})=>{const {group:_0x15e2ca,subType:_0x667c8c,authorId:_0x31aa4d}=it(_0x21643f);return'suggestion'==_0x15e2ca&&'tablePaste'==_0x667c8c&&_0x31aa4d==_0x5748c6['id']&&!_0x54ca3c['oldRange'];});for(const _0x27b050 of _0x5be662){if('insert'!=_0x27b050['type']||'tableCellSuggestion'!=_0x27b050['name']||0x1!=_0x27b050['length'])continue;const _0x284fd3=_0x68b31b['createRange'](_0x27b050['position'],_0x27b050['position']['getShiftedBy'](0x1));if(!_0x45b0b0['find'](({data:_0x24ed1e})=>_0x24ed1e['newRange']['isEqual'](_0x284fd3))){for(const {name:_0x2d0f04,data:_0x24f53b}of _0x45b0b0)if(_0x284fd3['containsRange'](_0x24f53b['newRange'])){_0x68b31b['updateMarker'](_0x2d0f04,{'range':_0x284fd3}),_0x56681d=!0x0;break;}}}return _0x56681d;}),_0x392838['model']['document']['registerPostFixer'](_0x501d4b=>{let _0x1b6bac=!0x1;const _0xa2986c=_0x392838['plugins']['get']('Users')['me'],_0x3e925a=_0x197cae['getSuggestions']()['filter'](_0x271450=>_0x271450['isInContent']&&_0x271450['author']==_0xa2986c),_0x5b45e5=new Set(),_0x510f3a=new Set();for(const _0x4379b0 of _0x3e925a)if('tablePaste'==_0x4379b0['subType'])for(const _0x446fb8 of _0x4379b0['getMarkers']()){const _0x572c21=_0x446fb8['getRange']()['getContainedElement']();if(_0x572c21){if(_0x572c21['is']('element','tableCellSuggestion')&&qe(_0x572c21)){_0x4379b0['removeMarker'](_0x446fb8['name']),_0x5b45e5['add'](_0x572c21),_0x1b6bac=!0x0;const _0x4e5f40=_0x572c21['nextSibling'],_0x459850=_0x572c21['previousSibling'],_0x296b51=_0x4e5f40&&_0x4e5f40['is']('element','tableCellSuggestion'),_0xf466a2=_0x459850&&_0x459850['is']('element','tableCellSuggestion');_0x296b51&&!_0x5b45e5['has'](_0x4e5f40)&&_0x510f3a['add'](_0x4e5f40),_0xf466a2&&!_0x5b45e5['has'](_0x459850)&&_0x510f3a['add'](_0x459850);}else _0x572c21['is']('element','paragraph')&&_0x572c21['isEmpty']&&(_0x4379b0['removeMarker'](_0x446fb8['name']),_0x1b6bac=!0x0);}}else{if('tablePasteCell'==_0x4379b0['subType']){if(!_0x4379b0['attributes']||!_0x4379b0['attributes']['tablePasteChainId'])continue;const _0xb44360=_0x4379b0['attributes']['markerAttributes'];if(_0xb44360&&Object['keys'](_0xb44360)['length'])continue;const _0x47e724=_0x4379b0['attributes']['tablePasteChainId'];let _0x5be15b=!0x0,_0x10c3d7=!0x0;for(const _0x2ddc88 of _0x3e925a)if(_0x2ddc88['subType']&&_0x2ddc88['subType']['startsWith']('tablePaste')){if(!_0x2ddc88['attributes']['tablePasteChainId']){_0x10c3d7=!0x1;break;}if(_0x2ddc88['id']!=_0x4379b0['id']&&_0x2ddc88['attributes']['tablePasteChainId']==_0x47e724){_0x5be15b=!0x1;break;}}_0x10c3d7&&_0x5be15b&&(_0x4379b0['removeMarkers'](),_0x1b6bac=!0x0);}}for(const _0x416fef of _0x5b45e5)_0x501d4b['remove'](_0x416fef);for(const _0x32ce2f of _0x510f3a)_0x501d4b['unwrap'](_0x32ce2f);return _0x1b6bac;}),_0x392838['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x196fc1=>_0x49aba0(_0x196fc1),'converterPriority':'high'}),_0x392838['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55cb85,_0x1c1d42)=>_0x1c1d42['options']['showSuggestionHighlights']?_0x49aba0(_0x55cb85,!0x1):null,'converterPriority':'high'});const _0x535e72=_0x392838['editing']['view'];this['listenTo'](_0x535e72['document'],'clipboardOutput',(_0x5acc18,_0x21ddab)=>{const _0x48ebc5=[];for(const _0x8e9f89 of _0x535e72['createRangeIn'](_0x21ddab['content'])['getItems']())_0x8e9f89['is']('element','suggestion-td')&&_0x48ebc5['push'](_0x8e9f89);_0x535e72['change'](_0x188ec0=>{for(const _0x2ad3fd of _0x48ebc5)_0x188ec0['move'](_0x188ec0['createRangeIn'](_0x2ad3fd),_0x188ec0['createPositionBefore'](_0x2ad3fd)),_0x188ec0['remove'](_0x2ad3fd);});});}};function qe(_0x178065){if(_0x178065['isEmpty'])return!0x0;const _0x2c0798=_0x178065['getChild'](0x0);return _0x2c0798['is']('element','paragraph')&&_0x2c0798['isEmpty'];}function Ye(_0x77077a,_0x53248a={},_0x3fa12b){for(const {isAnchor:_0x517988,cellHeight:_0x2d9067,cellWidth:_0x1dcc09}of _0x3fa12b['createTableWalker'](_0x77077a,{'includeAllSlots':!0x0,..._0x53248a}))if(!_0x517988||0x1!=_0x2d9067||0x1!=_0x1dcc09)return!0x1;return!0x0;}var Qe=class extends _0xf0b898{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x30f9c2=this['editor']['plugins']['get']('TrackChangesEditing');_0x30f9c2['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x30f9c2['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x30f9c2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x30f9c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xa1121a=_0x30f9c2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x30f9c2['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x3c23b6,_0x83ebc1)=>{_0xa1121a(_0x3c23b6,_0x83ebc1),this['_restoreCellWidths'](_0x3c23b6[0x0]['start']['nodeAfter'],_0x83ebc1['commandParams'][0x0]['cellWidths']);}),_0x30f9c2['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0x3363b2,_0x220e94){const _0x283d2d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xec29a6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4ee6af=_0x220e94['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2c2185=_0xec29a6['getColumnGroupElement'](_0x4ee6af);let _0x52edca=_0x2c2185?_0xec29a6['getTableColumnsWidths'](_0x2c2185):null,_0x575e98=_0x4ee6af['getAttribute']('tableWidth')||null;const _0x814cbc=_0x220e94['tableWidth']||_0x575e98,_0x3f2028=_0x220e94['columnWidths']||_0x52edca;let _0x3beee4=this['_getCellWidths'](_0x4ee6af);const _0x552439=this['_foldResizeTableSuggestion'](_0x4ee6af);_0x552439&&(_0x575e98=_0x552439['tableWidth'],_0x52edca=_0x552439['columnWidths'],_0x3beee4=_0x552439['cellWidths']||_0x3beee4),_0x3363b2({'table':_0x4ee6af,'tableWidth':_0x814cbc,'columnWidths':_0x3f2028}),_0x283d2d['markBlockFormat'](_0x4ee6af,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x575e98,'columnWidths':_0x52edca,'cellWidths':_0x3beee4}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x5aa949,_0x2d153f={}){if(void 0x0===_0x2d153f['value']||''===_0x2d153f['value'])return void _0x5aa949(_0x2d153f);const _0x19ad17=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3aa2b7=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x452995=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x2d153f['batch']||(_0x2d153f['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x2d153f['batch'],()=>{const _0x36e010=_0x3aa2b7['getColumnGroupElement'](_0x452995);let _0x51888e=_0x36e010?_0x3aa2b7['getTableColumnsWidths'](_0x36e010):null,_0x41d3c3=_0x452995['getAttribute']('tableWidth')||null,_0x27f74f=this['_getCellWidths'](_0x452995);const _0x571a75=this['_foldResizeTableSuggestion'](_0x452995,!0x0);_0x571a75&&(_0x41d3c3=_0x571a75['tableWidth'],_0x51888e=_0x571a75['columnWidths'],_0x27f74f=_0x571a75['cellWidths']||_0x27f74f),_0x5aa949(_0x2d153f),_0x19ad17['markBlockFormat'](_0x452995,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41d3c3,'columnWidths':_0x51888e,'cellWidths':_0x27f74f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x14994c,_0x10c79d=!0x1){const _0xcc4372=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a192f=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e28f4 of _0xcc4372['getSuggestions']({'skipNotAttached':!0x0})){const _0x4991fd=_0x3e28f4['getContainedElement']();if('resizeTable'===_0x3e28f4['subType']&&_0x4991fd===_0x14994c){_0x3e28f4['author']!==_0x5a192f&&(_0x10c79d?_0x3e28f4['removeMarkers']():_0x3e28f4['discard']());const _0x5f1f8c=_0x3e28f4['data']['commandParams'];return{'tableWidth':_0x5f1f8c[0x0]['tableWidth'],'columnWidths':_0x5f1f8c[0x0]['columnWidths'],'cellWidths':_0x5f1f8c[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x9e3ee0){const _0x2183e0=[];for(const _0xe37a1f of _0x9e3ee0['getChildren']())if(_0xe37a1f['is']('element','tableRow')){for(const _0x34ffe5 of _0xe37a1f['getChildren']())_0x2183e0['push'](_0x34ffe5['getAttribute']('tableCellWidth')||null);}return _0x2183e0;}_restoreCellWidths(_0xd1635e,_0x324385){_0x324385&&this['editor']['model']['change'](_0x396726=>{let _0x480379=0x0;for(const _0x8c2f2a of _0xd1635e['getChildren']())if(_0x8c2f2a['is']('element','tableRow'))for(const _0x297010 of _0x8c2f2a['getChildren']()){const _0x48ec1d=_0x324385[_0x480379++];_0x48ec1d&&_0x396726['setAttribute']('tableCellWidth',_0x48ec1d,_0x297010);}});}handleSuggestionDescription(_0x355a6b){if('formatBlock'!=_0x355a6b['type']&&'formatInline'!=_0x355a6b['type'])return;const {data:_0x4b5d30}=_0x355a6b;return _0x4b5d30&&'resizeTable'===_0x4b5d30['formatGroupId']?{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ze=class extends _0xf0b898{afterInit(){const _0x3577ad=this['editor'];_0x3577ad['plugins']['has']('Template')&&_0x3577ad['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Je=class extends _0xf0b898{afterInit(){const _0x45fbae=this['editor'];if(!_0x45fbae['commands']['get']('insertTableOfContents'))return;_0x45fbae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x78433b=_0x45fbae['plugins']['get']('TrackChangesEditing'),_0x2bf99b=_0x45fbae['locale'];_0x78433b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3e1543=>Bt(_0x2bf99b,'ELEMENT_TABLE_OF_CONTENTS',_0x3e1543));}},tn=class extends _0xf0b898{afterInit(){const _0x181255=this['editor'];_0x181255['plugins']['has']('Title')&&(_0x181255['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Bt(_0x181255['locale'],'ELEMENT_TITLE')),_0x181255['model']['document']['registerPostFixer'](_0xc909e6=>{let _0x8edeab=!0x1;const _0x516dc2=Array['from'](_0x181255['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d4403,data:_0x14540f}of _0x516dc2){const {group:_0x43233a}=it(_0x2d4403);if('suggestion'!==_0x43233a||!_0x14540f['newRange'])continue;const _0x228732=_0x14540f['newRange'],_0x58637b=_0x228732['end']['nodeBefore'];if(!_0x58637b||!_0x58637b['is']('element','title-content'))continue;if(!_0x228732['start']['isTouching'](_0x228732['end']))continue;const _0x4eef00=_0x181255['model']['schema']['getNearestSelectionRange'](_0x228732['end'],'forward');if(_0x4eef00&&_0x4eef00['isCollapsed']){const _0x2b026a=_0xc909e6['createRange'](_0x228732['start'],_0x4eef00['start']);_0x2b026a['isEqual'](_0x228732)||(_0xc909e6['updateMarker'](_0x2d4403,{'range':_0x2b026a}),_0x8edeab=!0x0);}_0x8edeab||(_0xc909e6['removeMarker'](_0x2d4403),_0x8edeab=!0x0);}return _0x8edeab;}));}},en=class extends _0xf0b898{afterInit(){const _0xb2c84d=this['editor'],_0x696d70=_0xb2c84d['plugins']['get']('TrackChangesEditing');_0xb2c84d['plugins']['has']('Uploadcare')&&(_0x696d70['enableCommand']('uploadcare'),_0xb2c84d['plugins']['has']('UploadcareImageEdit')&&(_0x696d70['enableCommand']('uploadcareImageEdit'),_0x696d70['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x696d70['descriptionFactory']['registerDescriptionCallback'](_0x5def40=>{if('attribute'!=_0x5def40['type'])return;const {data:_0x4db9bf}=_0x5def40;return _0x4db9bf&&'uploadcareImageId'==_0x4db9bf['key']?{'type':'format','content':''}:void 0x0;})));}},nn=class extends _0xf0b898{afterInit(){const _0x5a91d7=this['editor'],_0x1cdfc8=_0x5a91d7['plugins']['get']('TrackChangesEditing');_0x5a91d7['plugins']['has']('UndoEditing')&&(_0x1cdfc8['enableCommand']('undo'),_0x1cdfc8['enableCommand']('redo'));}},sn=class extends _0xf0b898{static get requires(){return[Ge];}afterInit(){const _0x3de279=this['editor'];_0x3de279['plugins']['has']('TableCaptionEditing')&&_0x3de279['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},rn=class extends _0xf0b898{tableProperties;tableCellProperties;constructor(_0x42f76c){super(_0x42f76c),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 _0x2d649b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x459162 of this['tableProperties'])_0x2d649b['enableCommand'](_0x459162,(_0x2e45cf,_0x5074c9)=>{const _0x5da9af=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x459162,[_0x5da9af],this['tableProperties'],'tableProperties',_0x2e45cf,_0x5074c9);});_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2d649b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x360e86,_0x2a4e04)=>this['handleDiscardAction'](this['tableProperties'],_0x360e86,_0x2a4e04)),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3f32f3 of this['tableCellProperties'])this['editor']['commands']['get'](_0x3f32f3)&&_0x2d649b['enableCommand'](_0x3f32f3,(_0x1b3ead,_0x59c807)=>{const _0x3fb0d4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3f32f3,_0x3fb0d4,this['tableCellProperties'],'tableCellProperties',_0x1b3ead,_0x59c807);});_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2d649b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x9ac5ce,_0x266d74)=>this['handleDiscardAction'](this['tableCellProperties'],_0x9ac5ce,_0x266d74)),_0x2d649b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x2d649b['descriptionFactory']['registerAttributeLabel']('tableCellType',Bt(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x2d649b['descriptionFactory']['registerDescriptionCallback'](_0x6d6753=>this['handleSuggestionDescription'](_0x6d6753)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x259499,_0x57387f,_0x343305,_0x8615ee,_0x39e567,_0x528158){const _0x55de9f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x528158['batch'],()=>{for(const _0x5a49a2 of _0x57387f)if(this['_getSuggestion'](_0x5a49a2,_0x8615ee))_0x39e567(_0x528158);else{const _0x2b18f5={};for(const _0x285460 of _0x343305){const _0x3f072=_0x5a49a2['getAttribute'](_0x285460);void 0x0!==_0x3f072&&(_0x2b18f5[_0x285460]=_0x3f072);}const _0x3c3d6d=this['_getResizedColumnWidths'](_0x5a49a2);_0x3c3d6d&&(_0x2b18f5['columnWidths']=_0x3c3d6d),_0x39e567(_0x528158),_0x55de9f['markBlockFormat'](_0x5a49a2,{'commandParams':[_0x2b18f5]},[],_0x8615ee);}});}handleDiscardAction(_0x25e518,_0x5041af,_0x5be88a){const _0x57ac72=_0x5041af[0x0]['start']['nodeAfter'],_0x292304=_0x5be88a['commandParams'][0x0];this['editor']['model']['change'](_0x3896b3=>{for(const _0x38c9b4 of _0x25e518)void 0x0!==_0x292304[_0x38c9b4]?_0x3896b3['setAttribute'](_0x38c9b4,_0x292304[_0x38c9b4],_0x57ac72):_0x3896b3['removeAttribute'](_0x38c9b4,_0x57ac72);if(_0x292304['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0x123378=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19e4d2=_0x123378['getColumnGroupElement'](_0x57ac72);if(_0x19e4d2){const _0x4be236=_0x123378['getTableColumnsWidths'](_0x19e4d2),_0x27d85b=_0x57ac72['getAttribute']('tableWidth');if(('string'==typeof _0x27d85b&&_0x27d85b['trim']()['endsWith']('px'))!==_0x4be236['some'](_0x1cfa84=>'string'==typeof _0x1cfa84&&_0x1cfa84['endsWith']('px'))){const _0x112651=_0x123378['getTableColumnElements'](_0x19e4d2);_0x292304['columnWidths']['forEach']((_0x801617,_0x54b739)=>{_0x112651[_0x54b739]&&_0x3896b3['setAttribute']('columnWidth',_0x801617,_0x112651[_0x54b739]);});}}}});}_getResizedColumnWidths(_0x34691f){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x34691f['is']('element','table'))return;const _0x3ec5bb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b3d44=_0x3ec5bb['getColumnGroupElement'](_0x34691f);return _0x2b3d44?_0x3ec5bb['getTableColumnsWidths'](_0x2b3d44):void 0x0;}handleSuggestionDescription(_0x4d89b5){if(_0x4d89b5['data'])switch(_0x4d89b5['subType']){case'tableProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Bt(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0xfa3583,_0x11949c){const _0x22d0c8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x16b866 of _0x22d0c8['getSuggestions']({'skipNotAttached':!0x0})){const _0x350151=_0x16b866['getContainedElement']();if(_0x16b866['subType']===_0x11949c&&_0x350151===_0xfa3583)return _0x16b866;}return null;}_registerTablePropertiesAttributes(){const _0x5184c6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x210d48=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1a6273 of _0x210d48){const _0x2bb401=_0x1a6273['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x5184c6['descriptionFactory']['registerAttributeLabel'](_0x1a6273,Bt(this['editor']['locale'],'FORMAT_'+_0x2bb401));}}},on=class extends _0xf0b898{afterInit(){const _0x4719b3=this['editor'];if(!_0x4719b3['plugins']['has']('LineHeight'))return;const _0x3e6ba3=_0x4719b3['plugins']['get']('TrackChangesEditing'),_0x3c2af7=_0x4719b3['locale'];_0x3e6ba3['enableDefaultAttributesIntegration']('lineHeight'),_0x3e6ba3['descriptionFactory']['registerAttributeLabel']('lineHeight',Bt(_0x3c2af7,'FORMAT_LINE_HEIGHT'));}};const an='$elementName';function cn(_0xdda2b6){return'marker'==_0xdda2b6['type']&&_0xdda2b6['name']['startsWith']('$markedRemove');}function ln(_0x38395c){return _0x38395c?[_0x38395c]:[];}var un=class extends _0xf0b898{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x1d69dd,_0x80da0c,_0x445bdf,_0x15aff3,vt,Dt,Ut,Pt,Gt,Ht,Wt,zt,Vt,jt,Kt,qt,Yt,ne,ie,se,oe,ae,ce,ue,de,he,ge,fe,me,Te,Ee,_e,pe,Le,Ae,ke,Me,Ie,Qt,on,Jt,Re,Ne,ye,Se,Oe,we,Be,Fe,ve,De,Pe,xe,Ge,$e,We,Ve,ze,sn,Xe,Qe,Je,rn,Ze,tn,en,nn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12da25){super(_0x12da25),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xd86d99,_0x375863,_0x358c33,_0x4d4b52)=>{this['_model']['change'](()=>{for(const _0x5e75a2 of[..._0x4d4b52,..._0x358c33])this['_model']['markers']['has'](_0x5e75a2)&&_0x12da25['editing']['reconvertMarker'](_0x5e75a2);});}),this['descriptionFactory']=new Ft(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new dn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x12da25['plugins']['get'](_0x1d69dd),this['_suggestionsConversion']=_0x12da25['plugins']['get'](_0x80da0c),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x12da25['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x12da25['config']['get']('trackChanges.trackFormatChanges'),_0x12da25['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x12da25['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Lt(_0x12da25,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x3ac992=this['editor'];_0x3ac992['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e45ba,{writer:_0x2972ff})=>{let _0x453a94='suggestion:'+_0x2e45ba['getAttribute']('suggestion-type')+':'+_0x2e45ba['getAttribute']('id');return _0x2e45ba['getAttribute']('marker-count')&&(_0x453a94+=':'+_0x2e45ba['getAttribute']('marker-count')),_0x2972ff['createElement']('$marker',{'data-name':_0x453a94});}}),_0x3ac992['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3ac992['model']['document']['registerPostFixer'](_0x177a25=>{let _0x2c660c=!0x1;const _0x7eb315=Array['from'](_0x3ac992['model']['document']['differ']['getChangedMarkers']()),_0x436f0e=new Set();for(const {name:_0x5d5588,data:_0x46915c}of _0x7eb315){const {group:_0x5abeda,type:_0x3fb2d5,subType:_0x310235,id:_0x19ca49}=it(_0x5d5588);if('suggestion'!==_0x5abeda)continue;const _0x219cb1=_0x310235?'suggestion:'+_0x3fb2d5+':'+_0x310235+':'+_0x19ca49:'suggestion:'+_0x3fb2d5+':'+_0x19ca49,_0x3990d5=_0x3ac992['model']['markers']['getMarkersGroup'](_0x219cb1),_0x433d8d=_0x3ac992['model']['markers']['get'](_0x5d5588),_0x439443=this['_suggestions']['get'](_0x19ca49);if(null!=_0x46915c['newRange']){'formatInline'==_0x3fb2d5&&(_0x2c660c=_0x2c660c||fn(_0x46915c['newRange'],_0x5d5588,_0x177a25,_0x3ac992['model']['schema']));const _0x1bea2f='attribute'==_0x3fb2d5&&this['_suggestionsConversion']['isBlockAttribute'](kn(_0x310235)),_0x343957='attribute'==_0x3fb2d5&&this['_suggestionsConversion']['isInlineAttribute'](kn(_0x310235));if(_0x46915c['newRange']['isCollapsed']||'$graveyard'==_0x46915c['newRange']['root']['rootName']||'formatBlock'==_0x3fb2d5&&!En(_0x46915c['newRange'])||_0x1bea2f&&!En(_0x46915c['newRange'])||_0x343957&&Tn(_0x46915c['newRange'])||'deletion'==_0x3fb2d5&&Tn(_0x46915c['newRange'])||_0x433d8d&&_n(_0x433d8d,_0x3990d5))_0x177a25['removeMarker'](_0x5d5588),_0x2c660c=!0x0;else{if(!_0x439443||!_0x439443['isInContent'])continue;if(_0x46915c['newRange']&&_0x46915c['oldRange']&&_0x46915c['newRange']['isEqual'](_0x46915c['oldRange']))continue;_0x436f0e['add'](_0x439443);}}}return _0x436f0e['size']>0x0&&(_0x2c660c=!!this['_joinWithAdjacentSuggestions'](_0x436f0e)||_0x2c660c),_0x2c660c;}),_0x3ac992['model']['document']['registerPostFixer'](_0x2fdb1a=>{let _0x5eb557=!0x1;for(const _0x2cd62c of _0x3ac992['model']['document']['differ']['getChanges']())if('insert'==_0x2cd62c['type'])for(const _0x3d32bc of this['_suggestions']['values']()){if(_0x3d32bc['isMultiRange']||!_0x3d32bc['isInContent'])continue;const _0x4456d9='formatBlock'==_0x3d32bc['type'],_0x51e6c0=this['_getAttributeKey'](_0x3d32bc),_0xa84d5a=_0x51e6c0&&this['_suggestionsConversion']['isBlockAttribute'](_0x51e6c0);if(!_0x4456d9&&!_0xa84d5a)continue;const _0x3af049=_0x3d32bc['getFirstRange']();if(_0x3af049['start']['parent']!=_0x3af049['end']['parent']&&!_0x3af049['end']['isAtEnd']){const _0x2615b4=_0x3ac992['model']['createPositionAt'](_0x3af049['start']['nodeAfter'],'end'),_0x26cf01=_0x3ac992['model']['createRange'](_0x3af049['start'],_0x2615b4);_0x2fdb1a['updateMarker'](_0x3d32bc['getFirstMarker'](),{'range':_0x26cf01}),_0x5eb557=!0x0;}}return _0x5eb557;}),_0x3ac992['model']['document']['registerPostFixer'](_0x374884=>this['_processAttributeChanges'](_0x374884)),_0x3ac992['model']['document']['registerPostFixer'](_0x534ea7=>!_0x534ea7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x534ea7)),_0x3ac992['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3ac992['model']['document']['on']('change:data',(_0x391231,_0x4c904f)=>{if(!_0x4c904f['isLocal']||_0x4c904f['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x480d96=_0x3ac992['model']['document']['differ']['getChanges']();if(0x0==_0x480d96['length'])return;const _0x576593=[],_0xd4806d=_0x480d96['filter'](_0x2501cf=>'attribute'==_0x2501cf['type']),_0x43ff9c=_0x480d96['filter'](_0x8ca07a=>'insert'==_0x8ca07a['type']&&'$text'!=_0x8ca07a['name']);for(const _0x4312c9 of _0xd4806d)this['_suggestionsConversion']['isRegisteredAttribute'](_0x4312c9['attributeKey'])&&_0x576593['push']({'key':_0x4312c9['attributeKey'],'newValue':_0x4312c9['attributeNewValue'],'oldValue':_0x4312c9['attributeOldValue'],'range':pn(_0x4312c9['range'],_0x3ac992['model'])});for(const _0x4f4a23 of _0x43ff9c){if('rename'!=_0x4f4a23['action']&&'refresh'!=_0x4f4a23['action'])continue;const _0xd4ebb8=Ln(_0x4f4a23['position']['nodeAfter'],_0x3ac992['model']),_0x5099f7=_0x4f4a23['before'];'rename'==_0x4f4a23['action']&&_0x576593['push']({'key':an,'newValue':_0x4f4a23['name'],'oldValue':_0x5099f7['name'],'range':_0xd4ebb8});for(const [_0x2544cc,_0x2640d4]of _0x5099f7['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2544cc))continue;const _0x20f168=_0x4f4a23['attributes']['get'](_0x2544cc);_0x2640d4!==_0x20f168&&_0x576593['push']({'key':_0x2544cc,'newValue':_0x20f168,'oldValue':_0x2640d4,'range':_0xd4ebb8});}for(const [_0x3b4c67,_0x4f3a6d]of _0x4f4a23['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x3b4c67)&&(_0x5099f7['attributes']['has'](_0x3b4c67)||_0x576593['push']({'key':_0x3b4c67,'newValue':_0x4f3a6d,'oldValue':null,'range':_0xd4ebb8}));}0x0!=_0x576593['length']&&_0x3ac992['model']['enqueueChange'](_0x4c904f,_0x6544e=>{const _0x4241ff=_0xc08621();for(const {range:_0x2c172f,key:_0x496af0,oldValue:_0x57779f,newValue:_0x35693b}of _0x576593)this['markAttributeChange'](_0x2c172f,_0x496af0,_0x57779f,_0x35693b,{'groupId':_0x4241ff});this['_reduceExistingSuggestions'](_0x6544e,_0x576593);});},{'priority':'lowest'}),_0x3ac992['model']['markers']['on']('update:suggestion',(_0x3de187,_0x151c31,_0x26e63e)=>{if(null==_0x26e63e){const {id:_0x6d1bd3}=it(_0x151c31['name']),_0x3ff2d3=this['_suggestions']['get'](_0x6d1bd3);_0x3ff2d3&&_0x3ff2d3['addMarkerName'](_0x151c31['name']);}}),_0x3ac992['model']['document']['on']('change:data',()=>{const _0x3ab83b=Array['from'](_0x3ac992['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd9a859=>'suggestion'===it(_0xd9a859['name'])['group']);if(0x0===_0x3ab83b['length'])return;_0x3ab83b['sort']((_0x559cf1,_0x40961d)=>{const _0x453a9c=_0x559cf1['data']['oldRange'],_0x31b875=_0x40961d['data']['oldRange'];return null===_0x453a9c&&null===_0x31b875?0x0:null===_0x453a9c&&null!==_0x31b875?-0x1:null!==_0x453a9c&&null===_0x31b875?0x1:_0x453a9c['start']['isBefore'](_0x31b875['start'])?-0x1:0x1;});const _0x22df2d=new Set(),_0x5dfaed=new Set();for(const {name:_0x4b6ef5,data:_0x12d497}of _0x3ab83b){const {id:_0x5bd9fc}=it(_0x4b6ef5);if(null===_0x12d497['oldRange']){const _0x2b2c61=this['_handleNewSuggestionMarker'](_0x4b6ef5);_0x5dfaed['add'](_0x2b2c61);}else{const _0x33bafc=this['_suggestions']['get'](_0x5bd9fc);null!==_0x12d497['newRange']||_0x33bafc['isInContent']?(_0x22df2d['add'](_0x33bafc['head']),_0x5dfaed['add'](_0x33bafc)):this['_removeSuggestion'](_0x33bafc);}}_0x5dfaed['size']>0x0&&this['_refreshSuggestionsChain'](_0x5dfaed);for(const _0x1ca525 of _0x22df2d)this['fire']('suggestionChanged',_0x1ca525);}),_0x3ac992['model']['on']('applyOperation',(_0x5cd493,_0x652cde)=>{const _0x280944=_0x652cde[0x0];if(!this['_suggestions']['size'])return;if(!_0x280944['isDocumentOperation'])return;if(_0x280944['batch']['isUndo']||!_0x280944['batch']['isLocal'])return;let _0x545465,_0x156b01;switch(_0x280944['type']){case'insert':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['position']),_0x156b01=_0x545465['getShiftedBy'](_0x280944['howMany']);break;case'split':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['splitPosition']),_0x156b01=_0x3ac992['model']['createPositionAt'](_0x280944['moveTargetPosition']);break;case'move':_0x545465=_0x3ac992['model']['createPositionAt'](_0x280944['targetPosition']),_0x156b01=_0x545465['getShiftedBy'](_0x280944['howMany']);break;default:return;}const _0x42c9df=_0x3ac992['model']['createRange'](_0x545465,_0x156b01);_0x3ac992['model']['change'](()=>{for(const {suggestion:_0x2fe150,meta:_0x3f64f6}of this['_findSuggestions'](_0x42c9df)){if(_0x2fe150['isMultiRange'])continue;if('formatInline'==_0x2fe150['type'])continue;const _0x870e89=this['_getAttributeKey'](_0x2fe150);if(_0x870e89&&this['_suggestionsConversion']['isBlockAttribute'](_0x870e89)&&'split'!=_0x280944['type'])continue;const _0x5b75a6=_0x2fe150['data']&&_0x2fe150['data']['multipleBlocks'];('formatBlock'!=_0x2fe150['type']||'split'==_0x280944['type']&&!_0x5b75a6)&&(_0x3f64f6['containsRangeInObject']||'insertion'==_0x2fe150['type']&&_0x3f64f6['isOwn']||_0x2fe150['getFirstRange']()['containsRange'](_0x42c9df)&&this['_breakSuggestionMarker'](_0x2fe150,_0x545465,_0x156b01));}});},{'priority':'lowest'}),_0x3ac992['model']['on']('deleteContent',(_0x3ed79b,_0x594a42)=>{const _0x17603c=_0x594a42[0x0],_0x4c4b5b=_0x594a42[0x1];if(_0x4c4b5b&&_0x4c4b5b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x17603c['isCollapsed'])return;const _0x2e277e=_0x3ac992['model']['schema'],{start:_0x12da4a,end:_0x5b04e1}=_0x17603c['getFirstRange'](),_0x1df89a=_0x12da4a['nodeAfter']&&_0x2e277e['isLimit'](_0x12da4a['nodeAfter'])?null:_0x2e277e['getNearestSelectionRange'](_0x12da4a,'forward'),_0x553600=_0x5b04e1['nodeBefore']&&_0x2e277e['isLimit'](_0x5b04e1['nodeBefore'])?null:_0x2e277e['getNearestSelectionRange'](_0x5b04e1,'backward'),_0x1ed9e6=_0x3ac992['model']['createRange'](_0x1df89a?_0x1df89a['start']:_0x12da4a,_0x553600?_0x553600['end']:_0x5b04e1);_0x3ac992['model']['change'](_0x192d5d=>{this['markDeletion'](_0x1ed9e6);const _0x409c3e=_0x3ac992['model']['schema']['getNearestSelectionRange'](_0x1ed9e6['start']);_0x17603c['is']('documentSelection')?_0x192d5d['setSelection'](_0x409c3e):_0x17603c['setTo'](_0x409c3e);}),_0x3ed79b['stop']();},{'priority':_0x487ef8['normal']+0xa}),_0x3ac992['model']['on']('insertContent',(_0x514a35,_0x43c1dd)=>{const _0x39ad52=_0x43c1dd[_0x43c1dd['length']-0x1];_0x39ad52&&_0x39ad52['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3ac992['model']['change'](()=>{let _0x1dbdc5=_0x3ac992['model']['insertContent'](_0x43c1dd[0x0],_0x43c1dd[0x1],_0x43c1dd[0x2],{'forceDefaultExecution':!0x0});if(!_0x1dbdc5)return;_0x514a35['return']=_0x1dbdc5['clone']();const _0x1f3aea=_0x1dbdc5['end']['nodeBefore'],_0x303117=_0x3ac992['model']['schema'];_0x1f3aea&&_0x303117['isBlock'](_0x1f3aea)&&!_0x303117['isObject'](_0x1f3aea)&&(_0x1dbdc5=_0x3ac992['model']['createRange'](_0x1dbdc5['start'],_0x3ac992['model']['createPositionAt'](_0x1f3aea,'end'))),this['markInsertion'](_0x1dbdc5);}),_0x514a35['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x276078=new It(_0x3ac992,this['_suggestions']);_0x3ac992['commands']['add']('acceptSuggestion',_0x276078),this['enableCommand']('acceptSuggestion');const _0x2df286=new At(_0x3ac992,this['_suggestions']);_0x3ac992['commands']['add']('discardSuggestion',_0x2df286),this['enableCommand']('discardSuggestion'),_0x3ac992['commands']['add']('acceptAllSuggestions',new St(_0x3ac992,_0x276078,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3ac992['commands']['add']('discardAllSuggestions',new St(_0x3ac992,_0x2df286,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3ac992['commands']['add']('acceptSelectedSuggestions',new Mt(_0x3ac992,_0x276078,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3ac992['commands']['add']('discardSelectedSuggestions',new Mt(_0x3ac992,_0x2df286,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x456ee8=_0x3ac992['plugins']['get'](_0x1d69dd);this['listenTo'](_0x456ee8,'addComment',(_0x442721,{threadId:_0x2be437})=>{const _0xd2ed0=this['_suggestions']['get'](_0x2be437);_0xd2ed0&&_0xd2ed0['commentThread']&&0x1===_0xd2ed0['commentThread']['length']&&this['_updateSuggestionData'](_0x2be437,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x456ee8,'removeComment',(_0x4a1291,{threadId:_0x4a6339})=>{const _0x28f512=this['_suggestions']['get'](_0x4a6339);_0x28f512&&_0x28f512['commentThread']&&!_0x28f512['commentThread']['length']&&this['_updateSuggestionData'](_0x4a6339,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x1712dc){const _0x46e1d8='7UHP2XzrDLEMsJRtqgZk6S8yf5Tn0pWl4YvIGbcF1xAeCi9wVQKho3mNdauOjB',_0x4f1dd2=0x797b8,_0x38265f={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'};async function _0x2f5478(_0x75709b){const _0x5b885f=new window['Promise'](_0x23871c=>{_0x75709b['once']('ready',_0x23871c);}),_0x4f7bc9=window['Date']['now'](),_0x1dc2c0=_0x75709b['config']['get']('licenseKey');async function _0x1e1530(){let _0x483785,_0x5e617f=null,_0x4ac7a5=null;try{return'GPL'==_0x1dc2c0?'NotAllowed':(_0x483785=_0x18cf84(),_0x483785?(_0x483785['usageEndpoint']&&(_0x4ac7a5=_0x2769c4(_0x483785['usageEndpoint'],_0x483785['jti'])),await _0x17be3()?_0x44dabb()?_0x5a38ef()?'Expired':_0x337e35()?('evaluation'==_0x483785['licenseType']&&(_0x5e617f=_0xb7a9f9('EvaluationLimit')),await _0x1117d7()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x5a38ef(){const _0x4f4235=['evaluation','trial']['includes'](_0x483785['licenseType'])?_0x4f7bc9/0x3e8:0xe10*_0x4f1dd2;return _0x483785['exp']<_0x4f4235;}function _0x44dabb(){const _0x34878c=_0x483785['features'];if(!_0x34878c)return!0x1;if(_0x34878c['includes']('*'))return!0x0;if(_0x34878c['includes']('TC'))return!0x0;if(_0x34878c['includes']('RTC')){if(_0x33f8d3())return!0x0;if(_0x750bfe()||_0x28190e())return!0x0;}return!0x1;}function _0x337e35(){const _0x74bca2=_0x483785['licensedHosts'];if(!_0x74bca2||0x0==_0x74bca2['length'])return!0x0;const {hostname:_0x3bc659}=new URL(window['location']['href']);if(_0x74bca2['includes'](_0x3bc659))return!0x0;const _0x33a1cf=_0x3bc659['split']('.');return _0x74bca2['filter'](_0x243974=>_0x243974['includes']('*'))['map'](_0x2e65b6=>_0x2e65b6['split']('.'))['filter'](_0x503138=>_0x503138['length']<=_0x33a1cf['length'])['map'](_0x4b25e0=>Array(_0x33a1cf['length']-_0x4b25e0['length'])['fill']('*'===_0x4b25e0[0x0]?'*':'')['concat'](_0x4b25e0))['some'](_0x1cf09c=>_0x33a1cf['every']((_0x4fef65,_0x4eee23)=>_0x1cf09c[_0x4eee23]===_0x4fef65||'*'===_0x1cf09c[_0x4eee23]));}function _0x1117d7(){return _0x5e617f&&_0x4ac7a5?new window['Promise']((_0x55e604,_0x2f5edc)=>{_0x5e617f['then'](_0x55e604,_0x2f5edc),_0x4ac7a5['then'](_0x19b1b3=>{'Valid'!=_0x19b1b3&&_0x55e604(_0x19b1b3);},_0x2f5edc);}):_0x5e617f||_0x4ac7a5||'Valid';}}function _0x2769c4(_0x5a61eb,_0x6a93ba){return new window['Promise'](_0x11f1db=>{if(_0x5370d1())return _0x11f1db('Valid');_0x158e75(),_0x75709b['decorate']('_sendUsageRequest');let _0x4f8464=!0x1;const _0x3e039b=_0xc08621();function _0x5f5004(_0x321a9e){return!!_0x321a9e&&('object'==typeof _0x321a9e||'function'==typeof _0x321a9e)&&'function'==typeof _0x321a9e['then']&&'function'==typeof _0x321a9e['catch'];}function _0x1080e5(_0x302997){_0x106551(_0x302997)['then'](_0x21dc2f=>_0x21dc2f&&'ok'==_0x21dc2f['status']?_0x587406(_0x551946(_0x3e039b+_0x6a93ba))!=_0x21dc2f['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x18e666=>(_0x1f6af2(),_0x18e666),()=>{const _0x2c6fd5=_0x52442c();return null==_0x2c6fd5?(_0x1f6af2(),'Valid'):_0x4f7bc9-_0x2c6fd5>0x240c8400?'UsageLimit':'Valid';})['then'](_0x11f1db)['catch'](()=>{_0x11f1db('UsageLimit');});const _0x3b91e2=0x36ee80;function _0x1f6af2(){const _0x15efc9='llct-'+_0x587406(_0x551946(_0x5a61eb)),_0x63ff69=_0x14f55e(_0x587406(window['Math']['ceil'](_0x4f7bc9/_0x3b91e2)));window['localStorage']['setItem'](_0x15efc9,_0x63ff69);}function _0x52442c(){const _0x49517b='llct-'+_0x587406(_0x551946(_0x5a61eb)),_0x16c3ac=window['localStorage']['getItem'](_0x49517b);return _0x16c3ac?window['parseInt'](_0x14f55e(_0x16c3ac),0x10)*_0x3b91e2:null;}function _0x106551(_0x4e26ea){return new window['Promise']((_0x5d39c9,_0x27172f)=>{_0x4e26ea['then'](_0x5d39c9,_0x27172f),window['setTimeout'](_0x27172f,0x1d4c0);});}}_0x75709b['on']('_sendUsageRequest',(_0x3985be,_0x306b7c)=>{if(_0x306b7c[0x0]!=_0x5a61eb)return _0x11f1db('UsageLimit');_0x306b7c[0x1]={..._0x306b7c[0x1],'requestId':_0x3e039b};},{'priority':'high'}),_0x75709b['on']('_sendUsageRequest',_0x2ee18a=>{_0x5f5004(_0x2ee18a['return'])&&(_0x4f8464=!0x0,_0x1080e5(_0x2ee18a['return']));},{'priority':'low'}),_0x5b885f['then'](()=>{_0x4f8464||_0x11f1db('UsageLimit');});});function _0x5370d1(){return'auto'==_0x75709b['editing']['view']['_overlayModeHint'];}function _0x158e75(){_0x75709b['editing']['view']['_overlayModeHint']='auto';}}function _0xb7a9f9(_0x2c73ab){const _0x312253=[new window['Promise'](_0x5d227c=>setTimeout(_0x5d227c,0x93ecc)),_0x5b885f['then'](()=>new window['Promise'](_0x42694c=>{let _0x24283f=0x0;_0x75709b['model']['on']('applyOperation',(_0xa59f16,_0x5552da)=>{_0x5552da[0x0]['isDocumentOperation']&&_0x24283f++,0x5e8==_0x24283f&&(_0x42694c(),_0xa59f16['off']());});}))];return window['Promise']['race'](_0x312253)['then'](()=>_0x2c73ab);}async function _0x4f92dc(){await _0x5b885f,_0x75709b['model']['change']=_0x4be11d,_0x75709b['model']['enqueueChange']=_0x4be11d,_0x75709b['enableReadOnlyMode']('model');}function _0x33f8d3(){return _0x13d9ca('WebSocketGateway')&&'connected'==_0x581696('WebSocketGateway')['state'];}function _0x750bfe(){return _0x13d9ca('RevisionViewerIntegration');}function _0x28190e(){return _0x13d9ca('TrackChangesDataGetter');}function _0x4eccef(_0x38864d){const _0x5992be=_0x557040();_0x75709b[_0x5992be]='trackChangesLicenseKey'+_0x38864d,'Valid'!=_0x38864d&&_0x4f92dc();}function _0x557040(){const _0x5801a6=window['String'](window['performance']['now']())['replace']('.','');let _0x3e85f7='U';for(let _0x236acd=0x0;_0x236acd<_0x5801a6['length'];_0x236acd+=0x2){let _0x593b8e=window['parseInt'](_0x5801a6['substring'](_0x236acd,_0x236acd+0x2));_0x593b8e>=0x3e&&(_0x593b8e-=0x3e),_0x3e85f7+=_0x46e1d8[_0x593b8e];}return _0x3e85f7;}function _0x18cf84(){const _0x39cd3d=_0x1dc2c0['split']('.');if(0x3!=_0x39cd3d['length'])return null;return _0x4f35cd(_0x39cd3d[0x1]);function _0x4f35cd(_0x1b791f){const _0x1b28a9=_0x3347fb(_0x1b791f);return _0x1b28a9&&_0xd34d7d()?_0x1b28a9:null;function _0xd34d7d(){const _0x53efd1=_0x1b28a9['jti'],_0x2bec5f=window['parseInt'](_0x53efd1['substring'](_0x53efd1['length']-0x8),0x10),_0x1f19f8={..._0x1b28a9,'jti':_0x53efd1['substring'](0x0,_0x53efd1['length']-0x8)};return delete _0x1f19f8['vc'],_0x551946(_0x1f19f8)==_0x2bec5f;}}}async function _0x17be3(){let _0x11cbfe=!0x0;try{const [_0x5517bb,_0x3b17f4,_0x2892b0]=_0x1dc2c0['split']('.');return _0x53107a(_0x5517bb),await _0x4375e6(_0x5517bb,_0x3b17f4,_0x2892b0),_0x11cbfe;}catch{return!0x1;}function _0x53107a(_0x2b0cae){const _0x108574=_0x3347fb(_0x2b0cae);_0x108574&&'ES256'==_0x108574['alg']||(_0x11cbfe=!0x1);}async function _0x4375e6(_0x440da1,_0x3c317e,_0x4819b4){const _0x50f856=window['Uint8Array']['from'](_0x2a9cda(_0x4819b4),_0x5baddf=>_0x5baddf['charCodeAt'](0x0)),_0x542937=new window['TextEncoder']()['encode'](_0x440da1+'.'+_0x3c317e),_0x5f4dd9=window['crypto']['subtle'];if(!_0x5f4dd9)return;const _0x27ad24=await _0x5f4dd9['importKey']('jwk',_0x38265f,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x5f4dd9['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x27ad24,_0x50f856,_0x542937)||(_0x11cbfe=!0x1);}}function _0x3347fb(_0x10398a){return _0x10398a['startsWith']('ey')?JSON['parse'](_0x2a9cda(_0x10398a)):null;}function _0x2a9cda(_0x9c6efa){return window['atob'](_0x9c6efa['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x551946(_0x3635cb){let _0x46c3e8=0x1505;function _0x4cd428(_0x2a83d9){for(let _0x186087=0x0;_0x186087<_0x2a83d9['length'];_0x186087++){const _0x4c8254=_0x2a83d9['charCodeAt'](_0x186087);_0x46c3e8=(_0x46c3e8<<0x5)+_0x46c3e8+_0x4c8254,_0x46c3e8&=_0x46c3e8;}}function _0x272d47(_0x196b77){Array['isArray'](_0x196b77)?_0x196b77['forEach'](_0x272d47):_0x196b77&&'object'==typeof _0x196b77?Object['entries'](_0x196b77)['sort']()['forEach'](([_0x30117a,_0x59fbd3])=>{_0x4cd428(_0x30117a),_0x272d47(_0x59fbd3);}):_0x4cd428(window['String'](_0x196b77));}return _0x272d47(_0x3635cb),_0x46c3e8>>>0x0;}function _0x587406(_0x1dbdee){return _0x1dbdee['toString'](0x10)['padStart'](0x8,'0');}function _0x14f55e(_0x199121){return _0x199121['split']('')['reverse']()['join']('');}function _0x13d9ca(_0xeabdfe){return _0x75709b['plugins']['has'](_0xeabdfe);}function _0x581696(_0x150654){return _0x75709b['plugins']['get'](_0x150654);}function _0x4be11d(){}_0x4eccef(await _0x1e1530());}_0x2f5478(_0x1712dc['editor']);}(this);}set adapter(_0x5b464a){if(this['_adapter'])throw new _0x53b517('track-changes-adapter-already-set',this);this['_adapter']=_0x5b464a;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x3806a7=!0x1,toJSON:_0x52e8e6=!0x1}={}){const _0x2db1dc=[];for(const _0x3495b7 of this['_suggestions']['values']())_0x3806a7&&!_0x3495b7['isInContent']||_0x2db1dc['push'](_0x3495b7);return _0x52e8e6?_0x2db1dc['map'](_0x194fc0=>_0x194fc0['toJSON']()):_0x2db1dc;}getSuggestion(_0x39b3ac){const _0x305d5e=this['_suggestions']['get'](_0x39b3ac);if(!_0x305d5e)throw new _0x53b517('track-changes-suggestion-not-found',this);return _0x305d5e;}hasSuggestion(_0x4d9ee1){return this['_suggestions']['has'](_0x4d9ee1);}addSuggestionData(_0x558e88){const {authorId:_0x2513f8,id:_0x27cc5d,originalSuggestionId:_0x50893d,attributes:_0x5850b7}=_0x558e88,[_0x2daa68,_0x15b486]=_0x558e88['type']['split'](':'),_0x388ae3=this['_suggestions']['get'](_0x27cc5d)||this['_createSuggestion'](_0x2daa68,_0x15b486,_0x27cc5d,_0x2513f8,_0x5850b7,_0x50893d);if(this['_addThreadToSuggestion'](_0x388ae3),this['_checkSuggestionCorrectness'](_0x388ae3,_0x2daa68,_0x15b486||null,_0x2513f8),_0x388ae3['createdAt']=_0x558e88['createdAt'],_0x388ae3['_isDataLoaded']=!0x0,_0x5850b7&&_0x5850b7['@external']){const _0x20acd8=_0x5850b7['@external'],_0x31dc02=this['_getExternalAuthor'](_0x20acd8['authorName']);_0x388ae3['authoredAt']=_0x20acd8['createdAt'],_0x388ae3['author']=_0x31dc02;}else _0x388ae3['authoredAt']=_0x558e88['createdAt'];switch(_0x558e88['data']&&(_0x388ae3['data']=_0x558e88['data']),_0x558e88['attributes']&&(_0x388ae3['attributes']=_0x558e88['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x388ae3['_saved']=!0x0),this['_suggestionState']['get'](_0x388ae3)){case'notReady':this['_suggestionState']['set'](_0x388ae3,'dataReady');break;case'markerReady':_0x388ae3['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x388ae3])),this['_refreshSuggestionsChain'](new Set([_0x388ae3])),this['_suggestionState']['set'](_0x388ae3,'ready'),this['fire']('suggestionLoaded',_0x388ae3)):this['_suggestionState']['set'](_0x388ae3,'removed');}return _0x388ae3;}acceptSuggestion(_0x37d6fb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5dc5d5 of _0x37d6fb['getAllAdjacentSuggestions']())_0x5dc5d5['accept']();});});}discardSuggestion(_0x4918ee){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c16b0 of _0x4918ee['getAllAdjacentSuggestions']())_0x3c16b0['discard']();});});}['enableCommand'](_0x6bf0e,_0x264c74){const _0x39137d=this['editor']['commands']['get'](_0x6bf0e);if(!_0x39137d)throw new _0x53b517('track-changes-command-not-found',this,{'commandName':_0x6bf0e});if(this['_enabledCommands']['has'](_0x39137d))throw new _0x53b517('track-changes-enable-command-twice',this,{'commandName':_0x6bf0e});this['_enabledCommands']['add'](_0x39137d),_0x264c74&&_0x39137d['on']('execute',(_0x1d3d61,_0x369011)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x369011['length']>0x0&&_0x369011[_0x369011['length']-0x1]&&_0x369011[_0x369011['length']-0x1]['forceDefaultExecution']?_0x369011['pop']():(_0x1d3d61['return']=_0x264c74((..._0x1b2ff6)=>_0x39137d['execute'](..._0x1b2ff6,{'forceDefaultExecution':!0x0}),..._0x369011),_0x1d3d61['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x474ca3){let _0x29e6fa,_0x3fc7f3;const _0x3b6280=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x29e6fa=_0x474ca3();}catch(_0x449446){_0x3fc7f3=_0x449446;}return _0x3b6280||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3fc7f3&&_0x53b517['rethrowUnexpectedError'](_0x3fc7f3,this),_0x29e6fa;}markInsertion(_0x56dab9,_0x35cd8e=null,_0x4bf38b={}){if(_0x56dab9['isCollapsed'])return null;const _0x5e424a=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4bf38b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xcb5966,meta:_0x51431d}of this['_findSuggestions'](_0x56dab9,'insertion'))if(_0x51431d['isOwn']){if(!_0x51431d['isNextTo']){if(_0x51431d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!bn(_0xcb5966,_0x4bf38b))continue;return _0xcb5966;}if(bn(_0xcb5966,_0x4bf38b))return _0xcb5966;this['_breakSuggestionMarker'](_0xcb5966,_0x56dab9['start'],_0x56dab9['end']);break;}if(_0x35cd8e==_0xcb5966['subType']&&bn(_0xcb5966,_0x4bf38b)){const _0x308c08=_0xcb5966['getFirstRange']();return _0x308c08['start']['isEqual'](_0x56dab9['end'])?this['_setSuggestionRange'](_0xcb5966,this['_model']['createRange'](_0x56dab9['start'],_0x308c08['end'])):this['_setSuggestionRange'](_0xcb5966,this['_model']['createRange'](_0x308c08['start'],_0x56dab9['end'])),_0xcb5966;}}const _0x786f13=_0xc08621(),_0x4125b6=_0x5e424a['id'],_0x4bca29=_0x35cd8e?'insertion:'+_0x35cd8e:'insertion',_0x1a7549=this['_setSuggestionData']({'id':_0x786f13,'type':_0x4bca29,'createdAt':new Date(),'authorId':_0x4125b6,'attributes':_0x4bf38b});return this['_addSuggestionMarker'](_0x4bca29,_0x786f13,_0x4125b6,_0x56dab9),_0x1a7549;}markMultiRangeInsertion(_0x1808b1,_0x5da04e='multi',_0x4c8758={}){const _0x3c81c5=this['editor']['plugins']['get']('Users')['me'],_0x87a199=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5da04e,'join');this['_trackingSessionId']&&(_0x4c8758['trackingSessionId']=this['_trackingSessionId']);for(const _0x2fab5a of this['getSuggestions']())if(_0x2fab5a['author']['id']==_0x3c81c5['id']&&'insertion'==_0x2fab5a['type']&&_0x2fab5a['subType']==_0x5da04e&&bn(_0x2fab5a,_0x4c8758)&&(_0x87a199(_0x2fab5a['getRanges'](),_0x1808b1)||_0x87a199(_0x1808b1,_0x2fab5a['getRanges']()))){for(const _0x50fd0e of _0x1808b1)_0x2fab5a['addRange'](_0x50fd0e);return _0x2fab5a;}for(const {suggestion:_0x563ca7,meta:_0x2e7972}of this['_findSuggestions'](_0x1808b1,'insertion')){if(!_0x2e7972['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2e7972['containsRangeInObject'])continue;if(!bn(_0x563ca7,_0x4c8758))continue;let _0x361b3d=!0x0;for(const _0xc1074e of _0x563ca7['getRanges']())for(const _0x24bb2e of _0x1808b1)if(!_0xc1074e['containsRange'](_0x24bb2e)){_0x361b3d=!0x1;break;}if(_0x361b3d)return _0x563ca7;}const _0x54dd00=_0xc08621(),_0x58e830=_0x3c81c5['id'],_0x41d91b='insertion:'+_0x5da04e,_0x3a2a47=this['_setSuggestionData']({'id':_0x54dd00,'type':_0x41d91b,'createdAt':new Date(),'authorId':_0x58e830,'attributes':_0x4c8758});for(const _0x187e9e of _0x1808b1)this['_addSuggestionMarker'](_0x41d91b,_0x54dd00,_0x58e830,_0x187e9e,wt['getMultiRangeId']());return _0x3a2a47;}markInlineFormat(_0x2c7280,_0x5ef176,_0x34acf7=null,_0x43e7a2={}){if(_0x34acf7=_0x34acf7||mn(_0x5ef176),_0x2c7280['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x43e7a2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x559871=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34acf7,'accept');return this['forceDefaultExecution'](()=>_0x559871([_0x2c7280],_0x5ef176,_0x43e7a2)),null;}const _0x9af482=this['editor']['plugins']['get']('Users')['me'],_0x37788e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x467d7a,meta:_0x5786eb}of this['_findSuggestions'](_0x2c7280,'insertion'))_0x5786eb['isOwn']&&!_0x5786eb['isInsideObject']&&_0x37788e['push'](..._0x467d7a['getRanges']());}const _0x4edfa8=function(_0x5215ac,_0x4032e9){const _0x590b7b=[];for(const _0x5956fb of _0x4032e9){const _0xf77b0=_0x5215ac['getIntersection'](_0x5956fb);_0xf77b0&&_0x590b7b['push'](_0xf77b0);}return _0x590b7b;}(_0x2c7280,_0x37788e),_0x5d96bf=function(_0x10be11,_0x2af5de){const _0x4e5d07=[_0x10be11];for(const _0x285472 of _0x2af5de){let _0x58a927=0x0;for(;_0x58a927<_0x4e5d07['length'];){const _0xec12ed=_0x4e5d07[_0x58a927]['getDifference'](_0x285472);_0x4e5d07['splice'](_0x58a927,0x1,..._0xec12ed),_0x58a927+=_0xec12ed['length'];}}return _0x4e5d07;}(_0x2c7280,_0x37788e);_0x4edfa8['length']&&this['_model']['change'](()=>{for(const _0x1da1fe of _0x4edfa8){const _0x1b16b0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x34acf7,'accept');this['forceDefaultExecution'](()=>_0x1b16b0([_0x1da1fe],_0x5ef176,_0x43e7a2));}});for(const _0x393784 of _0x5d96bf){let _0x4e6fae=null,_0x28b888=_0x393784['start'],_0x2222f4=_0x393784['end'];for(const {suggestion:_0x199df0,meta:_0x576da8}of this['_findSuggestions'](_0x393784,'formatInline')){if(!_0x576da8['isOwn'])continue;if(_0x199df0['subType']!=_0x34acf7)continue;if(!bn(_0x199df0,_0x43e7a2))continue;const _0x410c87=_0x199df0['getFirstRange']();if(_0x410c87['containsRange'](_0x393784,!0x0))return null;_0x28b888=_0x28b888['isBefore'](_0x410c87['start'])?_0x28b888:_0x410c87['start'],_0x2222f4=_0x2222f4['isAfter'](_0x410c87['end'])?_0x2222f4:_0x410c87['end'],_0x4e6fae?_0x410c87['start']['isBefore'](_0x4e6fae['getFirstRange']()['start'])?(_0x4e6fae['removeMarkers'](),_0x4e6fae=_0x199df0):_0x199df0['removeMarkers']():_0x4e6fae=_0x199df0;}const _0x5570ea=this['_model']['createRange'](_0x28b888,_0x2222f4);if(_0x4e6fae)this['_setSuggestionRange'](_0x4e6fae,_0x5570ea);else{const _0x586088=_0xc08621(),_0x38f944=_0x9af482['id'];this['_setSuggestionData']({'id':_0x586088,'type':'formatInline:'+_0x34acf7,'data':_0x5ef176,'createdAt':new Date(),'authorId':_0x38f944,'attributes':_0x43e7a2}),this['_addSuggestionMarker']('formatInline:'+_0x34acf7,_0x586088,_0x38f944,_0x5570ea);}}return null;}markBlockFormat(_0xeabd56,_0x5c0502,_0x1bbb1e=[],_0x31f022=null,_0x2dff5c={}){_0x5c0502['formatGroupId']||(_0x5c0502['formatGroupId']=_0x5c0502['commandName']),_0x5c0502['multipleBlocks']=_0xeabd56['is']('range'),_0x31f022=_0x31f022||mn(_0x5c0502);const _0x15e7a9=_0x1bbb1e['map'](_0x2253b7=>Ln(_0x2253b7,this['_model'])),_0x6524ab=_0xeabd56['is']('range')?_0xeabd56:Ln(_0xeabd56,this['_model']);if(this['_trackingSessionId']&&(_0x2dff5c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x37e38f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31f022,'accept');return this['forceDefaultExecution'](()=>_0x37e38f([_0x6524ab],_0x5c0502,_0x2dff5c)),null;}_0x15e7a9['push'](_0x6524ab);let _0xcd668=!0x0;for(const _0x98a6a6 of _0x15e7a9)if(!this['_rangeIsInLocalUserInsertion'](_0x98a6a6)){_0xcd668=!0x1;break;}if(_0xcd668&&'always'!==this['_trackFormatChanges']){const _0xf883cc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31f022,'accept');return this['forceDefaultExecution'](()=>_0xf883cc([_0x6524ab],_0x5c0502,_0x2dff5c)),null;}let _0x1e3635=null,_0x338452=_0x6524ab['start'],_0x6175b4=_0x6524ab['end'];for(const {suggestion:_0x56f634,meta:_0x3e4973}of this['_findSuggestions'](_0x6524ab,'formatBlock')){if(!_0x3e4973['isOwn'])continue;if(_0x3e4973['isNextTo']||_0x3e4973['containsRangeInObject']||_0x3e4973['isInsideObject'])continue;if(_0x56f634['data']['formatGroupId']!=_0x5c0502['formatGroupId'])continue;if(!bn(_0x56f634,_0x2dff5c))continue;const _0x211299=_0x56f634['getFirstRange']();if(_0x56f634['subType']==_0x31f022){if(_0x211299['containsRange'](_0x6524ab,!0x0))return null;_0x338452=_0x338452['isBefore'](_0x211299['start'])?_0x338452:_0x211299['start'],_0x6175b4=_0x6175b4['isAfter'](_0x211299['end'])?_0x6175b4:_0x211299['end'],_0x1e3635?_0x211299['start']['isBefore'](_0x1e3635['getFirstRange']()['start'])?(_0x1e3635['removeMarkers'](),_0x1e3635=_0x56f634):_0x56f634['removeMarkers']():_0x1e3635=_0x56f634;}else{const _0x4708ac=_0x6524ab['getIntersection'](_0x211299);this['_cutOutSuggestionMarker'](_0x56f634,_0x4708ac);}}const _0x7ab452=this['editor']['plugins']['get']('Users')['me'],_0x387ce9=_0xc08621(),_0x30c5b0=_0x7ab452['id'];if(_0x1e3635)return this['_setSuggestionRange'](_0x1e3635,this['_model']['createRange'](_0x338452,_0x6175b4)),_0x1e3635;{const _0x34f8d6=this['_setSuggestionData']({'id':_0x387ce9,'type':'formatBlock:'+_0x31f022,'data':_0x5c0502,'createdAt':new Date(),'authorId':_0x30c5b0,'attributes':_0x2dff5c});return this['_addSuggestionMarker']('formatBlock:'+_0x31f022,_0x387ce9,_0x30c5b0,this['_model']['createRange'](_0x338452,_0x6175b4)),_0x34f8d6;}}markMultiRangeBlockFormat(_0x1dd688,_0x272d66,_0x22d211=[],_0x5a38ba=null,_0x5f2dc7={}){_0x272d66['formatGroupId']||(_0x272d66['formatGroupId']=_0x272d66['commandName']);const _0x2bcecf=_0x1dd688[0x0];_0x272d66['multipleBlocks']=_0x2bcecf['is']('range'),_0x5a38ba=_0x5a38ba||mn(_0x272d66);const _0x13d356=_0x22d211['map'](_0x37f7b0=>Ln(_0x37f7b0,this['_model'])),_0x2f7202=_0x2bcecf['is']('range')?_0x1dd688:_0x1dd688['map'](_0x44b964=>Ln(_0x44b964,this['_model']));if(this['_trackingSessionId']&&(_0x5f2dc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2310da=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'accept');return this['forceDefaultExecution'](()=>_0x2310da(_0x2f7202,_0x272d66,_0x5f2dc7)),null;}_0x13d356['push'](..._0x2f7202);let _0x185aef=!0x0;for(const _0x3174b4 of _0x13d356)if(!this['_rangeIsInLocalUserInsertion'](_0x3174b4)){_0x185aef=!0x1;break;}if(_0x185aef&&'always'!==this['_trackFormatChanges']){const _0x1d14bf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'accept');return this['forceDefaultExecution'](()=>_0x1d14bf(_0x2f7202,_0x272d66,_0x5f2dc7)),null;}const _0x3fd6c7=this['editor']['plugins']['get']('Users')['me'];for(const _0xcf7e89 of this['getSuggestions']()){const _0x531100=_0xcf7e89['data'];if(_0xcf7e89['author']['id']!=_0x3fd6c7['id'])continue;if('formatBlock'!=_0xcf7e89['type']||_0x531100['formatGroupId']!=_0x272d66['formatGroupId'])continue;if(!bn(_0xcf7e89,_0x5f2dc7))continue;const _0xec9acc=_0xcf7e89['subType']==_0x5a38ba;for(let _0xfdfd17=0x0;_0xfdfd17<_0x2f7202['length'];_0xfdfd17++){const _0x52378f=_0x2f7202[_0xfdfd17];for(const _0x209d26 of _0xcf7e89['getMarkers']()){const _0x66e9dd=_0x209d26['getRange']();if(_0x52378f['isEqual'](_0x66e9dd)){_0xec9acc?(_0x2f7202['splice'](_0xfdfd17,0x1),_0xfdfd17--):_0xcf7e89['removeMarker'](_0x209d26['name']);break;}}}}if(0x0==_0x2f7202['length'])return null;const _0x1fa084=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5a38ba,'join');for(const _0x4df4b8 of this['getSuggestions']()){const _0x53b323=_0x4df4b8['data'];if(_0x4df4b8['author']['id']==_0x3fd6c7['id']&&('formatBlock'==_0x4df4b8['type']&&_0x53b323['formatGroupId']==_0x272d66['formatGroupId']&&_0x4df4b8['subType']==_0x5a38ba&&bn(_0x4df4b8,_0x5f2dc7)&&(_0x1fa084(_0x4df4b8['getRanges'](),_0x2f7202)||_0x1fa084(_0x2f7202,_0x4df4b8['getRanges']())))){for(const _0x406273 of _0x2f7202)_0x4df4b8['addRange'](_0x406273);return _0x4df4b8;}}const _0x4ed9d9=_0xc08621(),_0x2f54ac=_0x3fd6c7['id'],_0x11a317='formatBlock:'+_0x5a38ba,_0x5d45dd=this['_setSuggestionData']({'id':_0x4ed9d9,'type':_0x11a317,'data':_0x272d66,'createdAt':new Date(),'authorId':_0x2f54ac,'attributes':_0x5f2dc7});for(const _0x3a145c of _0x2f7202)this['_addSuggestionMarker'](_0x11a317,_0x4ed9d9,_0x2f54ac,_0x3a145c,wt['getMultiRangeId']());return _0x5d45dd;}markDeletion(_0x121985,_0x261026=null,_0x5372c0={}){if(_0x121985['isCollapsed'])return null;const _0x1a54ad=this['editor']['plugins']['get']('Users')['me'],_0x4d7603=new ct(_0x121985['start'],_0x121985['end']);this['_trackingSessionId']&&(_0x5372c0['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x587289,meta:_0xdc041c}of this['_findSuggestions'](_0x4d7603,'insertion'))if(_0xdc041c['isOwn']&&!_0xdc041c['isNextTo']){if(_0x587289['isMultiRange']){const _0x4fb8d7=_0x587289['getRanges']()['filter'](_0x39d9bf=>'$graveyard'!=_0x39d9bf['root']['rootName']);if(_0x4fb8d7['every'](_0x1c8962=>_0x4d7603['containsRange'](_0x1c8962,!0x0))&&_0x587289['discard'](),_0x4fb8d7['some'](_0x28d0f2=>_0x28d0f2['containsRange'](_0x4d7603,!0x0))){const _0x415051=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x261026,'accept');return this['forceDefaultExecution'](()=>_0x415051([_0x4d7603],null,_0x5372c0)),null;}}else{const _0xa35aaa=_0x4d7603['getIntersection'](_0x587289['getFirstRange']());null!==_0xa35aaa&&_0x587289['_onDiscard']([_0xa35aaa],null,_0x5372c0);}}if(_0x4d7603['detach'](),_0x4d7603['isCollapsed']||'$graveyard'==_0x4d7603['root']['rootName'])return null;let _0x383815=null,_0x3d61e5=_0x4d7603['start'],_0x562857=_0x4d7603['end'];const _0x349753=this['_findSuggestions'](_0x4d7603,'deletion');for(const {suggestion:_0x3b0f49,meta:_0x4a6bd7}of _0x349753){const _0xb4a671=this['_model']['createRange'](_0x3d61e5,_0x562857);if(_0x4a6bd7['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a6bd7['containsRangeInObject']&&!_0x4a6bd7['isInsideObject'])){if(_0x3b0f49['isMultiRange']){if(!bn(_0x3b0f49,_0x5372c0))continue;let _0x3c41e7=!0x0;for(const _0x49c2ea of _0x3b0f49['getRanges']()){if(_0x49c2ea['containsRange'](_0xb4a671,!0x0))return _0x3b0f49;_0xb4a671['containsRange'](_0x49c2ea)||(_0x3c41e7=!0x1);}_0x3c41e7&&_0x3b0f49['discard']();}else{const _0x33183b=_0x3b0f49['getFirstRange']();if(_0x33183b['containsRange'](_0xb4a671,!0x0))return _0x3b0f49;if(!bn(_0x3b0f49,_0x5372c0)){_0xb4a671['containsRange'](_0x33183b)?_0x3b0f49['removeMarkers']():_0x33183b['containsPosition'](_0x3d61e5)?_0x3d61e5=_0x33183b['end']:_0x33183b['containsPosition'](_0x562857)&&(_0x562857=_0x33183b['start']);continue;}_0x3d61e5=_0x3d61e5['isBefore'](_0x33183b['start'])?_0x3d61e5:_0x33183b['start'],_0x562857=_0x562857['isAfter'](_0x33183b['end'])?_0x562857:_0x33183b['end'],_0x5372c0=Object['assign']({},_0x3b0f49['attributes']),_0x383815?_0x33183b['start']['isBefore'](_0x383815['getFirstRange']()['start'])?(_0x383815['removeMarkers'](),_0x383815=_0x3b0f49):_0x3b0f49['removeMarkers']():_0x383815=_0x3b0f49;}}}if(_0x383815)return this['_setSuggestionRange'](_0x383815,this['_model']['createRange'](_0x3d61e5,_0x562857)),_0x383815;{const _0x4e119b=_0xc08621(),_0x4e6ee9=this['_model']['createRange'](_0x3d61e5,_0x562857),_0x20a371=_0x1a54ad['id'],_0x4ac37a=_0x261026?'deletion:'+_0x261026:'deletion',_0x3a0472=this['_setSuggestionData']({'id':_0x4e119b,'type':_0x4ac37a,'createdAt':new Date(),'authorId':_0x20a371,'attributes':_0x5372c0});return this['_addSuggestionMarker'](_0x4ac37a,_0x4e119b,_0x20a371,_0x4e6ee9),_0x3a0472;}}markMultiRangeDeletion(_0x372af3,_0x451975='multi',_0x1ddc1c={}){const _0x4f8945=this['editor']['plugins']['get']('Users')['me'],_0x575fe7=_0x372af3['map'](_0x2c7764=>new ct(_0x2c7764['start'],_0x2c7764['end'])),_0x37f612=new Set();this['_trackingSessionId']&&(_0x1ddc1c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f6a4a,meta:_0x1a87f0}of this['_findSuggestions'](_0x575fe7,'insertion'))_0x1a87f0['isOwn']&&!_0x1a87f0['isNextTo']&&_0x37f612['add'](_0x4f6a4a);for(const _0x5e853e of _0x37f612)if(_0x5e853e['isMultiRange']){const _0x29c8c5=_0x5e853e['getRanges']();if(_0x5e853e['attributes']&&_0x5e853e['attributes']['skipNestingCheck']||_0x29c8c5['every'](_0x4e2769=>_0x575fe7['some'](_0x14e383=>_0x14e383['containsRange'](_0x4e2769,!0x0)))&&_0x5e853e['discard'](),_0x575fe7['every'](_0x4c9be7=>_0x29c8c5['some'](_0x5252cb=>_0x5252cb['containsRange'](_0x4c9be7,!0x0)))){const _0x516559=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'accept');return this['forceDefaultExecution'](()=>_0x516559(_0x372af3,null,_0x1ddc1c)),null;}}else{const _0xa795c3=_0x5e853e['getFirstRange']();if(_0x575fe7['some'](_0x23f571=>_0x23f571['containsRange'](_0xa795c3,!0x0))&&_0x5e853e['discard'](),_0x575fe7['every'](_0x5c56ba=>_0xa795c3['containsRange'](_0x5c56ba,!0x0))){const _0x1ef4c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'accept');return this['forceDefaultExecution'](()=>_0x1ef4c0(_0x575fe7,null,_0x1ddc1c)),null;}}const _0x36f7fa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x451975,'join');let _0x56b801=null;for(const _0x3057db of this['getSuggestions']())if(_0x3057db['author']['id']==_0x4f8945['id']&&_0x3057db['isInContent']&&'deletion'==_0x3057db['type']&&_0x3057db['subType']==_0x451975&&bn(_0x3057db,_0x1ddc1c)&&(_0x36f7fa(_0x3057db['getRanges'](),_0x575fe7)||_0x36f7fa(_0x575fe7,_0x3057db['getRanges']()))){if(_0x56b801){if(_0x3057db['commentThread']&&_0x3057db['commentThread']['length'])continue;for(const _0x31b53e of _0x3057db['getRanges']())_0x56b801['isIntersectingWithRange'](_0x31b53e)||_0x56b801['addRange'](_0x31b53e);_0x3057db['removeMarkers']();}else{_0x56b801=_0x3057db;for(const _0x2d04fd of _0x575fe7)_0x3057db['isIntersectingWithRange'](_0x2d04fd)||_0x3057db['addRange'](_0x2d04fd);}}if(_0x56b801)return _0x56b801;_0x37f612['clear']();for(const {suggestion:_0x4b1df4,meta:_0xc1859c}of this['_findSuggestions'](_0x575fe7,'deletion'))_0xc1859c['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc1859c['containsRangeInObject']&&!_0xc1859c['isInsideObject'])&&bn(_0x4b1df4,_0x1ddc1c)&&_0x37f612['add'](_0x4b1df4);for(const _0x465ca5 of _0x37f612){const _0x12dd55=_0x465ca5['getRanges']();if((!_0x1ddc1c||!_0x1ddc1c['skipNestingCheck'])&&_0x575fe7['every'](_0x599558=>_0x12dd55['some'](_0x2d1670=>_0x2d1670['containsRange'](_0x599558,!0x0))))return _0x465ca5;_0x465ca5['attributes']&&_0x465ca5['attributes']['skipNestingCheck']||_0x12dd55['every'](_0x5bfa28=>_0x575fe7['some'](_0x2a61f9=>_0x2a61f9['containsRange'](_0x5bfa28,!0x0)))&&_0x465ca5['discard']();}const _0x135d9f=_0xc08621(),_0x2bd4fb=_0x4f8945['id'],_0x41477d='deletion:'+_0x451975,_0x5e1a0b=this['_setSuggestionData']({'id':_0x135d9f,'type':_0x41477d,'createdAt':new Date(),'authorId':_0x2bd4fb,'attributes':_0x1ddc1c});for(const _0xce26cc of _0x575fe7)_0xce26cc['detach'](),_0xce26cc['isCollapsed']||'$graveyard'==_0xce26cc['root']['rootName']||this['_addSuggestionMarker'](_0x41477d,_0x135d9f,_0x2bd4fb,_0xce26cc,wt['getMultiRangeId']());return _0x5e1a0b;}markAttributeChange(_0x565269,_0x23da82,_0x53b20e,_0x475415,_0x2aae3e){if(_0x565269['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f3196=this['editor']['plugins']['get']('Users')['me']['id'],_0x18ff54=Array['from'](this['_suggestions']['values']())['filter'](_0x333262=>'attribute'==_0x333262['type']&&_0x333262['data']['key']==_0x23da82&&_0x333262['isIntersectingWithRange'](_0x565269));if(this['_trackingSessionId']&&(_0x2aae3e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x3d857d=this['_findSuggestions'](_0x565269,'insertion')['filter'](({meta:_0x29b681})=>_0x29b681['isOwn']&&!_0x29b681['isInsideObject']&&!_0x29b681['isNextTo'])['map'](({suggestion:_0x42eeac})=>_0x42eeac);_0x18ff54['unshift'](..._0x3d857d);}const _0x362f7e=new Map([[_0x565269,_0x53b20e]]);for(const _0x2d39c7 of _0x18ff54){const _0x4c7494='attribute'==_0x2d39c7['type']?_0x2d39c7['data']['oldValue']:void 0x0,_0x356191=_0x2d39c7['getFirstRange'](),_0x490399=Array['from'](_0x362f7e['keys']())['find'](_0x250035=>_0x250035['isIntersecting'](_0x356191));if(!_0x490399)continue;const _0x511a06=_0x490399['getDifference'](_0x356191);this['_suggestionsConversion']['isBlockAttribute'](_0x23da82)&&'insertion'==_0x2d39c7['type']&&0x0!=_0x511a06['length']||(_0x362f7e['delete'](_0x490399),_0x511a06['forEach'](_0x316476=>{_0x362f7e['set'](_0x316476,_0x53b20e);}),'insertion'!=_0x2d39c7['type']&&_0x4c7494!=_0x475415&&_0x362f7e['set'](_0x490399['getIntersection'](_0x356191),_0x4c7494));}const _0x101f31=[];for(const [_0x3158c7,_0x17b8ed]of _0x362f7e){const _0x268d07=_0xc08621(),_0x53644c={'key':_0x23da82,'oldValue':_0x17b8ed,'newValue':_0x475415};_0x23da82['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':_0x23da82});const _0x51d2e1=('attribute:'+_0x23da82+'|'+mn({'newValue':_0x475415}))['substring'](0x0,0x3c),_0x5a3f4a=this['_setSuggestionData']({'id':_0x268d07,'type':_0x51d2e1,'data':_0x53644c,'createdAt':new Date(),'authorId':_0x2f3196,'attributes':_0x2aae3e});_0x101f31['push'](_0x5a3f4a),this['_addSuggestionMarker'](_0x51d2e1,_0x268d07,_0x2f3196,_0x3158c7);}return _0x101f31;}enableDefaultAttributesIntegration(_0x4fc136){this['enableCommand'](_0x4fc136,(_0x57a88a,..._0x3ab9a0)=>{this['recordAttributeChanges'](()=>{_0x57a88a(..._0x3ab9a0);});});}startTrackingSession(_0x109ade){return this['_trackingSessionId']=void 0x0!==_0x109ade?_0x109ade:_0xc08621(),this['_trackingSessionId'];}_getAttributeKey(_0x599862){return'attribute'==_0x599862['type']?kn(_0x599862['subType']):null;}_applyOperationsAsSuggestions(_0x319abc){if(0x0==_0x319abc['length'])return;const _0x30317e=this['editor'],_0x7b9150=[],_0x520df7=_0x326e64=>{const _0x1a0d25=_0x326e64['_aiSource'];return _0x1a0d25?{'@ai':{'type':_0x1a0d25}}:{};},_0x25be07=(_0x35e609,_0x3de121,_0x5308a0,_0x42f317)=>{const _0x48e19e=new Set(_0x42f317['flatMap'](_0x51ef59=>_0x51ef59['getMarkerNames']()));let _0x5f45b2=!0x1;for(let _0x408f70=_0x3de121;_0x408f70<_0x35e609['operations']['length'];_0x408f70++){const _0x1584e6=_0x35e609['operations'][_0x408f70];if('marker'==_0x1584e6['type']){if(!_0x48e19e['has'](_0x1584e6['name']))continue;_0x5f45b2=!0x0;}_0x1584e6['_aiSource']=_0x5308a0;}return _0x5f45b2;};_0x30317e['model']['change'](_0x522391=>{for(let _0x4eab2c=0x0;_0x4eab2c<_0x319abc['length'];_0x4eab2c++){const _0x5c9103=_0x319abc[_0x4eab2c],_0x433ab1=_0x5c9103['_aiSource'];if(_0x5c9103['baseVersion']=_0x30317e['model']['document']['version'],_0x5c9103['isDocumentOperation']=!0x0,tt(_0x5c9103))continue;if(cn(_0x5c9103)){const _0x1bdbb9=_0x2002be(_0x5c9103['newRange'],_0x30317e['model']);_0x7b9150['unshift']({'range':ct['fromRange'](_0x1bdbb9),'operation':_0x5c9103});continue;}const _0x4f0f0c=_0x522391['batch']['operations']['length']+0x1;let _0x52eadc=[];switch(_0x5c9103['type']){case'rename':{const _0x208bbc=_0x5c9103['oldName'],_0x3522dd=_0x5c9103['newName'];if(_0x208bbc==_0x3522dd)break;_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x3c5512='$elementName',_0x467f2d=_0x5c9103['position'],_0x9c8082=_0x30317e['model']['createRange'](_0x467f2d,_0x30317e['model']['createPositionAt'](_0x467f2d['nodeAfter'],'end'));_0x52eadc=this['markAttributeChange'](_0x9c8082,_0x3c5512,_0x208bbc,_0x3522dd,{..._0x520df7(_0x5c9103),'groupId':_0xc08621()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x360e4a=_0x5c9103['oldValue'],_0x2cea24=_0x5c9103['newValue'];if(_0x360e4a==_0x2cea24)break;_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x34d9a5=_0x5c9103['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x34d9a5))break;const _0x49e17b=_0x2002be(_0x5c9103['range'],_0x30317e['model']);_0x52eadc=this['markAttributeChange'](_0x49e17b,_0x34d9a5,_0x360e4a,_0x2cea24,{..._0x520df7(_0x5c9103),'groupId':_0xc08621()});break;}case'insert':{if(_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103),_0x319abc[_0x4eab2c+0x1]&&'move'==_0x319abc[_0x4eab2c+0x1]['type'])break;const _0x6e126f=_0x5c9103['position'],_0x13878f=_0x5c9103['howMany'],_0x32512e=_0x2002be(_0x30317e['model']['createRange'](_0x6e126f,_0x6e126f['getShiftedBy'](_0x13878f)),_0x30317e['model']);_0x52eadc=ln(this['markInsertion'](_0x32512e,null,{..._0x520df7(_0x5c9103)}));break;}case'split':{_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);const _0x4636d2=_0x5c9103['splitPosition'],_0x26f5a1=_0x5c9103['moveTargetPosition'],_0x54b01c=_0x30317e['model']['createRange'](_0x4636d2,_0x26f5a1);_0x52eadc=ln(this['markInsertion'](_0x54b01c,null,{..._0x520df7(_0x5c9103)}));break;}case'move':case'remove':_0x522391['batch']['addOperation'](_0x5c9103),_0x30317e['model']['applyOperation'](_0x5c9103);}_0x433ab1&&_0x25be07(_0x522391['batch'],_0x4f0f0c,_0x433ab1,_0x52eadc)&&delete _0x5c9103['_aiSource'];}for(const {range:_0x6a760f,operation:_0x25fd39}of _0x7b9150){const _0x373bb9=_0x25fd39['_aiSource'],_0x1fa406=_0x520df7(_0x25fd39),_0x555338=_0x522391['batch']['operations']['length'];_0x6a760f['detach']();const _0xedc1ff=this['markDeletion'](_0x6a760f,null,{..._0x1fa406});_0x373bb9&&_0x25be07(_0x522391['batch'],_0x555338,_0x373bb9,ln(_0xedc1ff));}});}_setSuggestionRange(_0x5484e3,_0x1af82d){const _0x2fb61e=_0x5484e3['getFirstMarker']();this['_model']['change'](_0x46c1d0=>{_0x46c1d0['updateMarker'](_0x2fb61e,{'range':_0x1af82d});});}_addThreadToSuggestion(_0x452525){const _0x2d23db=_0x452525['id'],_0x32359b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d23db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x32359b,'threadId':_0x2d23db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x947fbd=this['_commentsRepository']['getCommentThread'](_0x2d23db);_0x947fbd['unbind']('isRemovable'),_0x947fbd['isRemovable']=!0x1,_0x452525['commentThread']=_0x947fbd;}_checkSuggestionCorrectness(_0x3da075,_0x3b8043,_0x290630,_0x39a5db){if(_0x3da075['type']!=_0x3b8043||_0x3da075['subType']!=_0x290630||_0x3da075['creator']['id']!=_0x39a5db)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x53b517('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x16fbc4,_0x42d0df){const _0x791f86=_0x16fbc4['getFirstRange']();if(_0x42d0df['isEqual'](_0x791f86))_0x16fbc4['removeMarkers']();else{if(_0x791f86['containsRange'](_0x42d0df)){const _0x15d620=this['_model']['createPositionAt'](_0x42d0df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x791f86['start'],_0x15d620));const _0xa04d=_0xc08621(),_0x32297d=_0x16fbc4['creator']['id'],_0x50590c=_0x16fbc4['type']+':'+_0x16fbc4['subType'];this['_setSuggestionData']({'id':_0xa04d,'type':_0x50590c,'createdAt':new Date(),'authorId':_0x32297d,'data':_0x16fbc4['data'],'attributes':_0x16fbc4['attributes']});const _0x56bd74=this['_model']['createPositionAt'](_0x42d0df['end']['parent'],'after'),_0xe7878d=this['_model']['createRange'](_0x56bd74,_0x791f86['end']);this['_addSuggestionMarker'](_0x50590c,_0xa04d,_0x32297d,_0xe7878d);}else{if(_0x791f86['containsPosition'](_0x42d0df['start'])){const _0x354b02=this['_model']['createPositionAt'](_0x42d0df['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x791f86['start'],_0x354b02));}else{const _0x328c8e=this['_model']['createPositionAt'](_0x42d0df['end']['parent'],'after');this['_setSuggestionRange'](_0x16fbc4,this['_model']['createRange'](_0x328c8e,_0x791f86['end']));}}}}_rangeIsInLocalUserInsertion(_0x4699bf){for(const {suggestion:_0x29b6b0,meta:_0x41b02b}of this['_findSuggestions'](_0x4699bf,'insertion')){if(!_0x41b02b['isOwn'])continue;const _0x2b29c6=_0x29b6b0['getRanges']();for(const _0x2d741e of _0x2b29c6)if(!_0x4699bf['getDifference'](_0x2d741e)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x109206){return this['editor']['plugins']['get']('Users')['getUser'](_0x109206);}_getExternalAuthor(_0x5839a1){const _0x1de3fd=this['editor']['plugins']['get']('Users'),_0x398b26=_0x324b07('external:'+_0x5839a1),_0x3f7926=_0x1de3fd['getUser'](_0x398b26);return _0x3f7926||_0x1de3fd['addUser']({'id':_0x398b26,'name':_0x5839a1});}_createSuggestion(_0x39d9aa,_0x960f61,_0x11c90a,_0x1374e0,_0x24e704,_0xd2fa94){const _0x544416=this['_getAuthorFromId'](_0x1374e0);if(!_0x544416)throw new _0x53b517('track-changes-user-not-found',this,{'authorId':_0x1374e0,'suggestionId':_0x11c90a});const _0x1d029c=this['_suggestionFactory']['buildSuggestion'](_0x39d9aa,_0x960f61,_0x11c90a,_0x544416,_0x24e704,_0x3de70d=>{this['_updateSuggestionData'](_0x11c90a,{'attributes':_0x3de70d});const _0x172a14=this['getSuggestion'](_0x11c90a);this['_joinWithAdjacentSuggestions'](new Set([_0x172a14])),this['_refreshSuggestionsChain'](new Set([_0x172a14]));},_0xd2fa94);return this['listenTo'](_0x1d029c,'accept',()=>{this['_updateSuggestionData'](_0x11c90a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1d029c,'discard',()=>{this['_updateSuggestionData'](_0x11c90a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x11c90a,_0x1d029c),this['_suggestionState']['set'](_0x1d029c,'notReady'),_0x1d029c;}_breakSuggestionMarker(_0x3cb470,_0x5c4eb0,_0x9c39a){const _0x4fef10=_0x3cb470['getFirstRange'](),_0x1832d8=_0x4fef10['start'],_0x3539e1=_0x4fef10['end'];this['_setSuggestionRange'](_0x3cb470,this['_model']['createRange'](_0x1832d8,_0x5c4eb0));const _0x299535=_0xc08621(),_0x396830=_0x3cb470['creator']['id'],_0x259094=_0x3cb470['type']+(_0x3cb470['subType']?':'+_0x3cb470['subType']:'');this['_setSuggestionData']({'id':_0x299535,'type':_0x259094,'createdAt':new Date(),'authorId':_0x396830,'originalSuggestionId':_0x3cb470['_originalSuggestionId']||_0x3cb470['id'],'attributes':_0x3cb470['attributes'],'data':_0x3cb470['data']});const _0x2c6fd3=this['_getAttributeKey'](_0x3cb470);('formatBlock'==_0x3cb470['type']||_0x2c6fd3&&this['_suggestionsConversion']['isBlockAttribute'](_0x2c6fd3))&&(_0x9c39a=this['_model']['createPositionBefore'](_0x9c39a['parent'])),this['_addSuggestionMarker'](_0x259094,_0x299535,_0x396830,this['_model']['createRange'](_0x9c39a,_0x3539e1));}_findSuggestions(_0x17e1b6,_0x33dccf=null){const _0x1c0dcd=[],_0x151411=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17e1b6)||(_0x17e1b6=[_0x17e1b6]);for(const _0x5b9d17 of this['getSuggestions']()){if(!_0x5b9d17['isInContent'])continue;if(_0x33dccf&&_0x5b9d17['type']!=_0x33dccf)continue;let _0x2c17be=!0x1;for(const _0x3ff334 of _0x5b9d17['getRanges']()){for(const _0x29b7a7 of _0x17e1b6){const _0xc2c2e0=_0x29b7a7['start']['isEqual'](_0x3ff334['end'])||_0x29b7a7['end']['isEqual'](_0x3ff334['start']);if(_0xc2c2e0||_0x29b7a7['getIntersection'](_0x3ff334)){const _0x43cee7=_0x29b7a7['containsRange'](_0x3ff334)&&hn(this['_model']['schema'],_0x3ff334['start'],_0x29b7a7),_0x1c9d2e=_0x3ff334['containsRange'](_0x29b7a7)&&hn(this['_model']['schema'],_0x29b7a7['start'],_0x3ff334);_0x1c0dcd['push']({'suggestion':_0x5b9d17,'meta':{'isOwn':_0x151411==_0x5b9d17['author'],'isNextTo':_0xc2c2e0,'isInsideObject':_0x43cee7,'containsRangeInObject':_0x1c9d2e}}),_0x2c17be=!0x0;break;}}if(_0x2c17be)break;}}return _0x1c0dcd;}_addSuggestionMarker(_0x277a38,_0x592caf,_0x346903,_0x45cff2,_0x3c765d){this['_model']['change'](_0x201e2f=>{let _0x4bd4ce='suggestion:'+_0x277a38+':'+_0x592caf+':'+_0x346903;_0x3c765d&&(_0x4bd4ce=_0x4bd4ce+':'+_0x3c765d),_0x201e2f['addMarker'](_0x4bd4ce,{'range':_0x45cff2,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x147ecb){const _0x2ffd2a=_0x147ecb['previous'],_0x3e1e4d=_0x147ecb['next'];_0x147ecb['previous']=null,_0x147ecb['next']=null,null!=_0x2ffd2a&&_0x2ffd2a['next']==_0x147ecb&&(_0x2ffd2a['next']=_0x3e1e4d),null!=_0x3e1e4d&&_0x3e1e4d['previous']==_0x147ecb&&(_0x3e1e4d['previous']=_0x2ffd2a),'ready'==this['_suggestionState']['get'](_0x147ecb)&&(this['_suggestionState']['set'](_0x147ecb,'removed'),this['fire']('suggestionUnloaded',_0x147ecb,_0x2ffd2a,_0x3e1e4d));}_setSuggestionData(_0x694d78){const _0x1ed4b4=_0x694d78['id'],_0x6fedcc=this['addSuggestionData'](_0x694d78);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4630fc=this['editor']['plugins']['get']('PendingActions'),_0x165a09=_0x6fedcc['hasComments'],_0x5f40dd=_0x6fedcc['subType']?_0x6fedcc['type']+':'+_0x6fedcc['subType']:_0x6fedcc['type'],_0x5c8edf=this['editor']['locale'],_0x5b4fda=_0x4630fc['add'](Bt(_0x5c8edf,'PENDING_ACTION_SUGGESTION')),_0x4f1f40={'id':_0x1ed4b4,'type':_0x5f40dd,'hasComments':_0x165a09,'data':_0x694d78['data']||null,'originalSuggestionId':_0x694d78['originalSuggestionId']||null,'attributes':_0x6fedcc['attributes']};this['_adapter']['addSuggestion'](_0x4f1f40)['then'](_0x21ddce=>{_0x6fedcc['_saved']=!0x0,_0x4630fc['remove'](_0x5b4fda),_0x21ddce&&_0x21ddce['createdAt']&&(this['_suggestions']['get'](_0x1ed4b4)['createdAt']=_0x21ddce['createdAt']);})['catch'](_0xa5d232=>{throw _0x15e49f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x6fedcc['discard']();}),_0x6fedcc['stopListening'](),this['_suggestions']['delete'](_0x6fedcc['id']),this['_suggestionState']['delete'](_0x6fedcc),_0xa5d232;});}return _0x6fedcc;}_updateSuggestionData(_0x3a7151,_0x20d7c1){const _0x5e5fa0=this['editor']['plugins']['get']('PendingActions'),_0x407b10=this['getSuggestion'](_0x3a7151);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x407b10['_saved']){const _0x5dfa3f=_0x5e5fa0['add'](Bt(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3a7151,_0x20d7c1)['then'](()=>{_0x5e5fa0['remove'](_0x5dfa3f);});}else _0x407b10['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3a7151,_0x20d7c1);});}}_getSuggestionData(_0x3947ce){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x53b517('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3947ce);}_handleNewSuggestionMarker(_0x24d592){const {id:_0x21e632,type:_0x2c9801,subType:_0x354c22,authorId:_0x46b88f}=it(_0x24d592),_0x141ca5=this['_suggestions']['get'](_0x21e632)||this['_createSuggestion'](_0x2c9801,_0x354c22,_0x21e632,_0x46b88f,{});switch(this['_checkSuggestionCorrectness'](_0x141ca5,_0x2c9801,_0x354c22,_0x46b88f),this['_suggestionState']['get'](_0x141ca5)){case'notReady':this['_getSuggestionData'](_0x21e632)['then'](_0x32c941=>{let _0x1adef9=Promise['resolve']();_0x32c941['hasComments']&&(_0x1adef9=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21e632})),_0x1adef9['then'](()=>{this['addSuggestionData'](_0x32c941)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x141ca5,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21e632,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x141ca5,'ready'),this['fire']('suggestionLoaded',_0x141ca5);break;case'ready':this['fire']('suggestionChanged',_0x141ca5);}return _0x141ca5['addMarkerName'](_0x24d592),_0x141ca5;}_refreshSuggestionsChain(_0x4620f7){const _0x2297e9=Array['from'](_0x4620f7),_0x4dec2f=_0x2297e9['filter'](_0x3417fc=>'attribute'==_0x3417fc['type']);this['_refreshAttributeSuggestionsChain'](_0x4dec2f);const _0x3e3c57=_0x2297e9['filter'](_0x14bf6e=>!_0x14bf6e['isMultiRange']&&'attribute'!=_0x14bf6e['type']),_0xdc717e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x29b4ce=>!_0x29b4ce['isMultiRange']&&'attribute'!=_0x29b4ce['type']),_0x43925f=_0xdc717e['filter'](_0x5ec648=>!_0x4620f7['has'](_0x5ec648)),_0x1ee907=new Map(_0xdc717e['map'](_0x47fe4a=>[_0x47fe4a,this['_suggestionFactory']['getSuggestionCallback'](_0x47fe4a['type'],_0x47fe4a['subType'],'chain')])),_0x5724a1=new Map(_0xdc717e['map'](_0x10ad84=>[_0x10ad84,_0x10ad84['getFirstRange']()])),_0x39a22f=new Set(),_0x4fb6b5=new Set();for(let _0x5819a9=0x0;_0x5819a9<_0x3e3c57['length'];_0x5819a9++)_0x18f710(_0x3e3c57[_0x5819a9],_0x3e3c57,_0x5819a9+0x1);for(let _0x59bcaf=0x0;_0x59bcaf<_0x3e3c57['length'];_0x59bcaf++)_0x18f710(_0x3e3c57[_0x59bcaf],_0x43925f,0x0);const _0x173905=new Set();for(let _0x212499=0x0;_0x212499<_0x3e3c57['length'];_0x212499++){const _0x378fc1=_0x3e3c57[_0x212499];!_0x4fb6b5['has'](_0x378fc1)&&_0x378fc1['previous']&&(_0x173905['add'](_0x378fc1['previous']),_0x378fc1['previous']['next']===_0x378fc1&&(_0x378fc1['previous']['next']=null),_0x378fc1['previous']=null),!_0x39a22f['has'](_0x378fc1)&&_0x378fc1['next']&&(_0x173905['add'](_0x378fc1['next']),_0x378fc1['next']['previous']===_0x378fc1&&(_0x378fc1['next']['previous']=null),_0x378fc1['next']=null);}function _0x18f710(_0x157c54,_0x4ca5fa,_0x1480f7){for(let _0x420611=_0x1480f7;_0x420611<_0x4ca5fa['length'];_0x420611++){const _0xb02c60=_0x390c5e(_0x157c54,_0x4ca5fa[_0x420611]);_0xb02c60&&(_0xb02c60[0x0]['next']=_0xb02c60[0x1],_0xb02c60[0x1]['previous']=_0xb02c60[0x0],_0x39a22f['add'](_0xb02c60[0x0]),_0x4fb6b5['add'](_0xb02c60[0x1]));}}function _0x390c5e(_0x57f141,_0x2ad917){if(_0x57f141['author']['id']!==_0x2ad917['author']['id'])return null;const _0x3d7f2e=_0x1ee907['get'](_0x57f141)(_0x57f141,_0x2ad917,_0x5724a1['get'](_0x57f141),_0x5724a1['get'](_0x2ad917));return _0x3d7f2e&&_0x1ee907['get'](_0x2ad917)(_0x57f141,_0x2ad917,_0x5724a1['get'](_0x57f141),_0x5724a1['get'](_0x2ad917))?_0x3d7f2e[0x1]['commentThread']&&_0x3d7f2e[0x1]['commentThread']['length']?null:_0x3d7f2e:null;}_0x173905['size']&&this['_refreshSuggestionsChain'](_0x173905);}_refreshAttributeSuggestionsChain(_0x46ae1d){if(0x0==_0x46ae1d['length'])return;const _0x1af923=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa294c6=>'attribute'==_0xa294c6['type']&&_0xa294c6['_isDataLoaded']),_0x22b7ea=[],_0x4515ce=new Map();for(const _0x36a7b0 of _0x1af923){const _0x5554c7=_0x324b07(_0x36a7b0['attributes']);_0x4515ce['has'](_0x5554c7)||(_0x4515ce['set'](_0x5554c7,_0x22b7ea['length']),_0x22b7ea['push']([])),_0x22b7ea[_0x4515ce['get'](_0x5554c7)]['push'](_0x36a7b0);}!(function(){_0x22b7ea['sort']((_0x2c6589,_0x5c825f)=>{const _0x237f88=_0x2c6589[0x0]['createdAt'],_0x3ae0b9=_0x5c825f[0x0]['createdAt'];return _0x237f88==_0x3ae0b9?_0x2c6589[0x0]['attributes']['groupId']<_0x5c825f[0x0]['attributes']['groupId']?-0x1:0x1:_0x237f88<_0x3ae0b9?-0x1:0x1;});for(const _0x359704 of _0x22b7ea)_0x359704['sort']((_0x26b9c6,_0x1b1f8a)=>_0x26b9c6['id']<_0x1b1f8a['id']?-0x1:0x1);}());for(let _0x82034f=0x0;_0x82034f<_0x22b7ea['length'];_0x82034f++){if(0x0==_0x22b7ea[_0x82034f]['length'])continue;const _0x31d4d7=[];for(let _0x1b0a13=_0x82034f+0x1;_0x1b0a13<_0x22b7ea['length'];_0x1b0a13++)0x0!=_0x22b7ea[_0x1b0a13]['length']&&_0x2dc11c(_0x22b7ea[_0x82034f],_0x22b7ea[_0x1b0a13])&&_0x31d4d7['push'](_0x1b0a13);for(const _0x3707b1 of _0x31d4d7)_0x22b7ea[_0x82034f]=_0x22b7ea[_0x82034f]['concat'](_0x22b7ea[_0x3707b1]),_0x22b7ea[_0x3707b1]=[];}for(const _0x2ca6df of _0x22b7ea)for(let _0x232a5e=0x0;_0x232a5e<_0x2ca6df['length'];_0x232a5e++){const _0x523cd3=_0x2ca6df[_0x232a5e+0x1]||null;_0x2ca6df[_0x232a5e]['next']!==_0x523cd3&&(_0x2ca6df[_0x232a5e]['next']=_0x523cd3);}for(const _0x578ee3 of _0x22b7ea)for(let _0x3fd25f=0x0;_0x3fd25f<_0x578ee3['length'];_0x3fd25f++){const _0x4fa104=_0x578ee3[_0x3fd25f-0x1]||null;_0x578ee3[_0x3fd25f]['previous']!==_0x4fa104&&(_0x578ee3[_0x3fd25f]['previous']=_0x4fa104);}function _0x2dc11c(_0x26d021,_0x1cf7b6){if(_0x26d021[0x0]['attributes']['groupId']!==_0x1cf7b6[0x0]['attributes']['groupId']&&_0x26d021[0x0]['author']!==_0x1cf7b6[0x0]['author'])return!0x1;if(!function(_0x5c95ea,_0x2b08e4){return!_0x5c95ea['hasComments']&&!_0x2b08e4['hasComments']||(!_0x5c95ea['hasComments']||!_0x2b08e4['hasComments'])&&(!!(_0x5c95ea['hasComments']&&_0x2b08e4['createdAt']<_0x5c95ea['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x2b08e4['hasComments']&&_0x5c95ea['createdAt']<_0x2b08e4['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x26d021[0x0],_0x1cf7b6[0x0]))return!0x1;const _0x1a69dd=ht(_0x26d021[0x0]['attributes'],['groupId','trackingSessionId']),_0x1d84ec=ht(_0x1cf7b6[0x0]['attributes'],['groupId','trackingSessionId']);return!!dt(_0x1a69dd,_0x1d84ec)&&(_0x26d021[0x0]['attributes']['groupId']==_0x1cf7b6[0x0]['attributes']['groupId']||_0x26d021[0x0]['attributes']['trackingSessionId']===_0x1cf7b6[0x0]['attributes']['trackingSessionId']&&(!!_0x26d021['every'](_0x40c43b=>_0x1cf7b6['some'](_0x1e40e0=>_0x40c43b['getFirstRange']()['isEqual'](_0x1e40e0['getFirstRange']())))&&_0x1cf7b6['every'](_0xcc482d=>_0x26d021['some'](_0x57bcd8=>_0xcc482d['getFirstRange']()['isEqual'](_0x57bcd8['getFirstRange']())))));}}_joinWithAdjacentSuggestions(_0xdadd1c){const _0x4791dd=Array['from'](_0xdadd1c),_0x3dd27d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x9be98c=_0x3dd27d['filter'](_0x58e014=>!_0xdadd1c['has'](_0x58e014)),_0x192d3a=new Map(_0x4791dd['map'](_0x1ca03e=>[_0x1ca03e,this['_suggestionFactory']['getSuggestionCallback'](_0x1ca03e['type'],_0x1ca03e['subType'],'join')])),_0x1ba322=new Map(_0x3dd27d['map'](_0xa18c23=>[_0xa18c23,_0xa18c23['getRanges']()]));for(let _0x7c385d=0x0;_0x7c385d<_0x4791dd['length'];_0x7c385d++)if(_0x199a03(this,_0x4791dd[_0x7c385d],_0x4791dd,_0x7c385d+0x1))return!0x0;for(let _0x25cf6f=0x0;_0x25cf6f<_0x4791dd['length'];_0x25cf6f++)if(_0x199a03(this,_0x4791dd[_0x25cf6f],_0x9be98c,0x0))return!0x0;return!0x1;function _0x199a03(_0x5c629f,_0x3b000f,_0x9f23d8,_0x118cdc){for(let _0x3d502e=_0x118cdc;_0x3d502e<_0x9f23d8['length'];_0x3d502e++){const _0x1edc8e=_0x9f23d8[_0x3d502e];if(_0x1edc8e['type']!==_0x3b000f['type']||_0x1edc8e['author']['id']!==_0x3b000f['author']['id']||_0x1edc8e['subType']!==_0x3b000f['subType'])continue;if(!An(_0x3b000f,_0x1edc8e))continue;if('attribute'==_0x3b000f['type']&&_0x3b000f['data']['oldValue']!=_0x1edc8e['data']['oldValue'])continue;if('attribute'==_0x3b000f['type']&&_0x5c629f['_suggestionsConversion']['isBlockAttribute'](_0x3b000f['data']['key']))continue;if('formatBlock'==_0x3b000f['type']){const _0x1872c0=_0x5c629f['editor']['model'],_0x2f2fc6=_0x3b000f['getContainedElement']();if(_0x2f2fc6&&(_0x1872c0['schema']['isObject'](_0x2f2fc6)||_0x1872c0['schema']['isLimit'](_0x2f2fc6)))continue;}const _0x124473=_0x192d3a['get'](_0x3b000f),_0x59d609=_0x1ba322['get'](_0x3b000f),_0x22598d=_0x1ba322['get'](_0x1edc8e),_0x528e85=_0x3b000f['commentThread']&&_0x3b000f['commentThread']['length'],_0x58675e=_0x1edc8e['commentThread']&&_0x1edc8e['commentThread']['length'];if(!_0x528e85&&_0x124473(_0x22598d,_0x59d609))return _0x5c629f['_joinSuggestions'](_0x1edc8e,_0x3b000f),_0x1ba322['delete'](_0x3b000f),!0x0;if(!_0x58675e&&_0x124473(_0x59d609,_0x22598d))return _0x5c629f['_joinSuggestions'](_0x3b000f,_0x1edc8e),_0x1ba322['delete'](_0x1edc8e),!0x0;}return!0x1;}}_joinSuggestions(_0x29a41a,_0x350546){if(_0x29a41a['isMultiRange']){for(const _0x2c0d1a of _0x350546['getRanges']())_0x29a41a['addRange'](_0x2c0d1a);}else{const _0x27e3ed=_0x350546['getFirstRange']()['end'];this['_setSuggestionRange'](_0x29a41a,this['_model']['createRange'](_0x29a41a['getFirstRange']()['start'],_0x27e3ed));}_0x350546['removeMarkers']();}_getMarkerAnnouncementText(_0x5214a6,_0x5983a9,_0x25bdb0){const _0x3c3e76=_0x5214a6['startsWith']('format')||_0x5214a6['startsWith']('attribute')?'FORMATTING':_0x5214a6['toUpperCase']();return Bt(this['editor']['locale'],_0x5983a9+'_'+_0x3c3e76+'_SUGGESTION_ANNOUNCEMENT',_0x25bdb0);}_initAriaMarkerChangeAnnouncements(){const _0x30cd87=this['editor'];if(!_0x30cd87['ui'])return;const {ariaLiveAnnouncer:_0x866aae}=_0x30cd87['ui'];st(this['_model'],({left:_0x8d6e6,entered:_0x430dd8})=>{for(const _0x85eacd of _0x8d6e6){const {group:_0x56d9c7,type:_0x1bc607}=it(_0x85eacd['name']);if('suggestion'===_0x56d9c7){_0x866aae['announce'](this['_getMarkerAnnouncementText'](_0x1bc607,'LEAVE'));break;}}for(const _0x2a66cd of _0x430dd8){const {group:_0x4b81f9,type:_0x1785b8}=it(_0x2a66cd['name']);if('suggestion'===_0x4b81f9){_0x866aae['announce'](this['_getMarkerAnnouncementText'](_0x1785b8,'ENTER',_0x1ab253(_0x2654de)));break;}}});}_processAttributeChanges(_0x3df07d){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5674a0=this['editor'],_0x5efec5=_0x5674a0['model']['document']['differ']['getChanges']();if(0x0==_0x5efec5['length'])return!0x1;const _0xf210e3=[],_0x24a3a2=_0x5efec5['filter'](_0x453d62=>'attribute'==_0x453d62['type']),_0x327343=_0x5efec5['filter'](_0x144d3c=>'insert'==_0x144d3c['type']&&'$text'!=_0x144d3c['name']),_0x19a6bf=_0x5efec5['filter'](_0x12c73f=>'remove'==_0x12c73f['type']&&'$text'!=_0x12c73f['name']);for(const _0x3419a1 of _0x24a3a2)_0xf210e3['push']({'key':_0x3419a1['attributeKey'],'newValue':_0x3419a1['attributeNewValue'],'oldValue':_0x3419a1['attributeOldValue'],'range':pn(_0x3419a1['range'],_0x5674a0['model'])});for(const _0x4305fa of _0x327343){const _0x305992=_0x19a6bf['find'](_0x218a76=>_0x218a76['position']['isEqual'](_0x4305fa['position']));_0x305992&&_0xf210e3['push']({'key':an,'newValue':_0x4305fa['name'],'oldValue':_0x305992['name'],'range':_0x5674a0['model']['createRangeOn'](_0x4305fa['position']['nodeAfter'])});}return 0x0!=_0xf210e3['length']&&this['_reduceExistingSuggestions'](_0x3df07d,_0xf210e3);}_processAttributeSuggestions(_0x142388){let _0x477e66=!0x1;const _0x13679c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f1f23=>_0x1f1f23['data']['newRange']&&_0x1f1f23['name']['startsWith']('suggestion:attribute:'));for(const _0x1c2dc5 of _0x13679c){const {subType:_0x2833c8,id:_0x1390af}=it(_0x1c2dc5['name']),_0x2601a3=_0x2833c8['split']('|')[0x0];for(const _0xbfda99 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xbfda99['id']!=_0x1390af&&'attribute'==_0xbfda99['type']&&_0xbfda99['data']&&_0xbfda99['data']['key']==_0x2601a3&&_0xbfda99['getFirstRange']()['isIntersecting'](_0x1c2dc5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xbfda99,_0x1c2dc5['data']['newRange'],_0x142388),_0x477e66=!0x0);}return _0x477e66;}recordAttributeChanges(_0x27af5f){this['_recordAttributeSuggestions']=!0x0,_0x27af5f();}_reduceExistingSuggestions(_0x2003cb,_0x17f420){if(0x0==_0x17f420['length'])return!0x1;let _0x49789a=!0x1;for(const _0x22609e of _0x17f420){const _0x8d4b63=this['_findSuggestions'](_0x22609e['range'],'attribute')['filter'](_0x50dbed=>!_0x50dbed['meta']['isNextTo'])['map'](_0xcf1011=>_0xcf1011['suggestion']),_0xa8be44=_0x324b07({'newValue':_0x22609e['newValue']});_0x8d4b63['filter'](_0x50d46e=>{const [_0x38fa8c,_0x2c060e]=_0x50d46e['subType']['split']('|');return _0x38fa8c==_0x22609e['key']&&_0x2c060e!=_0xa8be44;})['forEach'](_0x42e6e8=>{this['_reduceSuggestionAttributeRange'](_0x42e6e8,_0x22609e['range'],_0x2003cb),_0x49789a=!0x0;});}return _0x49789a;}_reduceSuggestionAttributeRange(_0x32454a,_0x4e9d3a,_0x76f69d){const _0x976b81=_0x32454a['getFirstRange']()['getDifference'](_0x4e9d3a);0x0!==_0x976b81['length']?0x1!==_0x976b81['length']?this['_breakSuggestionMarker'](_0x32454a,_0x4e9d3a['start'],_0x4e9d3a['end']):this['_setSuggestionRange'](_0x32454a,_0x976b81[0x0]):_0x76f69d['removeMarker'](_0x32454a['getFirstMarker']());}},dn=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x1d5615){this['_editor']=_0x1d5615,this['_model']=_0x1d5615['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x185f27,_0x463e87,_0x10015f,_0x3a6735,_0x2f2a87,_0x166d4c,_0x50cc99){return new wt(this['_model'],{'type':_0x185f27,'subType':_0x463e87,'id':_0x10015f,'originalSuggestionId':_0x50cc99,'author':_0x3a6735,'creator':_0x3a6735,'attributes':_0x2f2a87,'onAttributesChange':_0x166d4c,'onAccept':(..._0x5f4e8f)=>this['getSuggestionCallback'](_0x185f27,_0x463e87,'accept')(..._0x5f4e8f),'onDiscard':(..._0x5f1024)=>this['getSuggestionCallback'](_0x185f27,_0x463e87,'discard')(..._0x5f1024)});}registerCustomCallback(_0x39d0ec,_0x577fd7,_0x458c3a,_0x3ea4bf){const _0x301839=_0x39d0ec+':'+_0x577fd7+':'+_0x458c3a;this['_customCallbacks']['set'](_0x301839,_0x3ea4bf);}getSuggestionCallback(_0x27d822,_0x185b08,_0x1e2d15){const _0xe6df4=_0x27d822+':'+_0x185b08+':'+_0x1e2d15;return this['_customCallbacks']['get'](_0xe6df4)||this['_defaultCallbacks']['get'](_0x27d822+':'+_0x1e2d15);}_registerDefaultCallbacks(){const _0x23bd47=()=>!0x1,_0x1835d2=_0x4785a8=>{_0x4785a8['sort']((_0x3a4472,_0x57ba09)=>_0x3a4472['start']['isBefore'](_0x57ba09['start'])?0x1:-0x1),this['_model']['change'](_0x5c1c41=>{for(const _0x45e5ae of _0x4785a8){let _0x484722;_0x484722=_0x45e5ae['end']['isAtEnd']&&_0x45e5ae['end']['parent']==_0x45e5ae['start']['nodeAfter']?_0x5c1c41['createSelection'](_0x45e5ae['start']['nodeAfter'],'on'):_0x5c1c41['createSelection'](_0x45e5ae),this['_model']['deleteContent'](_0x484722,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x29e17f=(_0x52b289,_0x103995)=>{_0x103995&&this['_model']['change'](_0x3485f0=>{const {commandName:_0x3e8a30,commandParams:_0x2d3161=[]}=_0x103995,_0x4a7298=_0x52b289['map'](_0xd7cb7c=>(gn(_0xd7cb7c)&&(_0xd7cb7c=this['_model']['createRange'](_0xd7cb7c['end'])),_0xd7cb7c))['filter'](_0x55fc73=>'$graveyard'!==_0x55fc73['root']['rootName']);if(_0x4a7298['length']<0x1)return;const _0x40306f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x26890e=>ct['fromRange'](_0x26890e));_0x3485f0['setSelection'](_0x4a7298);for(const _0x41ba9b of this['_editor']['commands']['commands']())_0x41ba9b['refresh']();_0x2d3161['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3e8a30,..._0x2d3161);const _0xb8bd23=_0x40306f['filter'](_0x559ddf=>'$graveyard'!=_0x559ddf['root']['rootName']);_0xb8bd23['length']>0x0&&_0x3485f0['setSelection'](_0xb8bd23);for(const _0x30012c of _0x40306f)_0x30012c['detach']();});},_0x230c1d=(_0x2c1526,_0x209f1a)=>0x1==_0x2c1526['length']&&0x1==_0x209f1a['length']&&_0x2c1526[0x0]['end']['isEqual'](_0x209f1a[0x0]['start']),_0xf56de2=(_0x47cebc,_0x1d322d,_0x5683e0,_0x13581e)=>In(_0x47cebc,_0x1d322d,_0x5683e0,_0x13581e)?[_0x47cebc,_0x1d322d]:In(_0x1d322d,_0x47cebc,_0x13581e,_0x5683e0)?[_0x1d322d,_0x47cebc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x23bd47),this['_defaultCallbacks']['set']('insertion:discard',_0x1835d2),this['_defaultCallbacks']['set']('insertion:join',_0x230c1d),this['_defaultCallbacks']['set']('insertion:chain',_0xf56de2),this['_defaultCallbacks']['set']('deletion:accept',_0x1835d2),this['_defaultCallbacks']['set']('deletion:discard',_0x23bd47),this['_defaultCallbacks']['set']('deletion:join',_0x230c1d),this['_defaultCallbacks']['set']('deletion:chain',_0xf56de2),this['_defaultCallbacks']['set']('formatInline:accept',_0x29e17f),this['_defaultCallbacks']['set']('formatInline:discard',_0x23bd47),this['_defaultCallbacks']['set']('formatInline:join',_0x230c1d),this['_defaultCallbacks']['set']('formatInline:chain',_0x23bd47),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29e17f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x23bd47),this['_defaultCallbacks']['set']('formatBlock:join',_0x230c1d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x23bd47),this['_defaultCallbacks']['set']('attribute:accept',_0x23bd47),this['_defaultCallbacks']['set']('attribute:discard',(_0x49df58,_0x591f18)=>{if(!_0x591f18)return;const _0x4dbea9=this['_editor']['plugins']['get'](_0x80da0c);this['_model']['change'](_0x46380d=>{if('$elementName'==_0x591f18['key'])for(const _0x16f4f3 of _0x49df58){const _0x217f3a=_0x16f4f3['start']['nodeAfter'],_0x589ac1=_0x591f18['oldValue'];_0x46380d['rename'](_0x217f3a,_0x589ac1);}else{if(_0x4dbea9['isBlockAttribute'](_0x591f18['key'])){for(const _0x3b9d27 of _0x49df58)void 0x0!==_0x591f18['oldValue']?_0x46380d['setAttribute'](_0x591f18['key'],_0x591f18['oldValue'],_0x3b9d27['start']['nodeAfter']):_0x46380d['removeAttribute'](_0x591f18['key'],_0x3b9d27['start']['nodeAfter']);}else{for(const _0x4fcac0 of _0x49df58)_0x591f18['oldValue']?_0x46380d['setAttribute'](_0x591f18['key'],_0x591f18['oldValue'],_0x4fcac0):_0x46380d['removeAttribute'](_0x591f18['key'],_0x4fcac0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x230c1d);}};function hn(_0x254582,_0xa52171,_0x32ddfb){for(const _0x250c38 of _0xa52171['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x250c38['root']==_0x250c38)return!0x1;if(!_0x32ddfb['containsItem'](_0x250c38))return!0x1;if(_0x254582['isObject'](_0x250c38)||_0x254582['isLimit'](_0x250c38))return!0x0;}return!0x1;}function gn(_0x219372){return _0x219372['end']['parent']==_0x219372['start']['nodeAfter']&&_0x219372['end']['isAtStart'];}function fn(_0x42cef1,_0x1bdd2a,_0x2f5e54,_0x56f1d4){const _0x48133e=_0x3b4f15=>!_0x3b4f15['item']['is']('$textProxy')&&!_0x56f1d4['isObject'](_0x3b4f15['item']),_0x4d7412=_0x42cef1['start']['getLastMatchingPosition'](_0x48133e),_0x36c748=_0x42cef1['end']['getLastMatchingPosition'](_0x48133e,{'direction':'backward'});return(!_0x42cef1['start']['isEqual'](_0x4d7412)||!_0x42cef1['end']['isEqual'](_0x36c748))&&(_0x4d7412['isBefore'](_0x36c748)?_0x2f5e54['updateMarker'](_0x1bdd2a,{'range':_0x2f5e54['createRange'](_0x4d7412,_0x36c748)}):_0x2f5e54['removeMarker'](_0x1bdd2a),!0x0);}function mn(_0x565036){return _0x324b07(_0x565036);}function En(_0x2bd18a){const _0x105c83=_0x2bd18a['start']['nodeAfter'];return _0x105c83&&_0x105c83['is']('element');}function Tn(_0x25b498){return gn(_0x25b498)||function(_0x3bbf98){return _0x3bbf98['start']['parent']==_0x3bbf98['end']['nodeBefore']&&_0x3bbf98['start']['isAtEnd'];}(_0x25b498);}function _n(_0x28f5df,_0x169f3e){try{const _0x50ba42=_0x28f5df['getRange']();for(const _0x2ef87f of _0x169f3e)if(_0x28f5df!==_0x2ef87f&&_0x50ba42&&_0x50ba42['isIntersecting'](_0x2ef87f['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function pn(_0x3b7b02,_0x56d92a){return null==_0x3b7b02['end']['nodeBefore']&&_0x3b7b02['end']['parent']==_0x3b7b02['start']['nodeAfter']?Ln(_0x3b7b02['start']['nodeAfter'],_0x56d92a):_0x3b7b02;}function Ln(_0x435f73,_0x49dcd5){const _0x327d70=_0x49dcd5['schema']['isObject'](_0x435f73)||_0x49dcd5['schema']['isSelectable'](_0x435f73);return _0x49dcd5['createRange'](_0x49dcd5['createPositionAt'](_0x435f73,'before'),_0x327d70?_0x49dcd5['createPositionAfter'](_0x435f73):_0x49dcd5['createPositionAt'](_0x435f73,'end'));}function In(_0x26961d,_0x28db0e,_0x5370dc,_0x1f4a5c){return!!An(_0x26961d,_0x28db0e)&&_0x5370dc['end']['isEqual'](_0x1f4a5c['start']);}function An(_0x463386,_0x461cee){if(!_0x463386['_isDataLoaded']||!_0x461cee['_isDataLoaded'])return!0x1;const _0x1b2003=new Set(Object['keys'](_0x463386['attributes'])),_0x1598b6=new Set(Object['keys'](_0x461cee['attributes']));if(_0x1b2003['delete']('groupId'),_0x1598b6['delete']('groupId'),0x0==_0x1b2003['size']&&0x0==_0x1598b6['size'])return!0x0;if(_0x1b2003['size']!=_0x1598b6['size'])return!0x1;const _0x43c94c={..._0x463386['attributes']},_0x2852d7={..._0x461cee['attributes']};return delete _0x43c94c['groupId'],delete _0x2852d7['groupId'],JSON['stringify'](_0x43c94c)==JSON['stringify'](_0x2852d7);}function bn(_0x101aaa,_0x44575d){const _0x4ba2bf=Cn(_0x101aaa['attributes']),_0x3182dd=Cn(_0x44575d);if(!_0x101aaa['_isDataLoaded'])return!0x1;if(!dt(_0x4ba2bf['@ai'],_0x3182dd['@ai']))return!0x1;for(const _0x37dbe8 of Object['keys'](_0x3182dd))if(!dt(_0x4ba2bf[_0x37dbe8],_0x3182dd[_0x37dbe8]))return!0x1;return!0x0;}function Cn(_0x472452){const _0x2de505=Object['assign']({},_0x472452);return delete _0x2de505['skipNestingCheck'],delete _0x2de505['tablePasteChainId'],_0x2de505;}function kn(_0x3f0fec){return _0x3f0fec['split']('|')[0x0];}const Rn=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3ee82e();var Nn=class extends Rn{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x560554,_0x1103c2,_0x5399ce,_0x5c0f56){super(),this['model']=_0x1103c2,this['view']=_0x5399ce,this['commentThreadController']=_0x5c0f56,this['_editor']=_0x560554,this['_acceptCommand']=_0x560554['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x560554['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x20e7ce,_0x5ebbba)=>_0x20e7ce||_0x5ebbba),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4e30a5=>_0x4e30a5&&this['_editor']['model']['canEditAt'](_0x1103c2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4cd1f2=>_0x4cd1f2&&this['_editor']['model']['canEditAt'](_0x1103c2['getRanges']())),this['_pendingAction']=null,_0x5399ce['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5399ce,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5399ce,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5399ce,'change:isDirty',()=>{_0x5399ce['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 _0x16eec9=Bt(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16eec9);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},yn=class extends _0x31b427{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x6708d0,_0x347f66,_0x4d2b67,_0xb6af89){super(_0x6708d0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1adbb8(_0x6708d0,Bt(_0x6708d0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x347f66['authoredAt']),this['bind']('authoredAt')['to'](_0x347f66),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',_0x347f66,'authoredAt',this,'descriptionParts',(_0x55d04c,_0x496de4,_0x154601)=>{const _0x1fd959=_0x154601['map'](_0x3aee78=>bt(_0x3aee78['content']))['join']('.\x20')+'.',_0x4d3e05=_0x347f66['aiSource']&&'author'===_0xb6af89['showAISource']?_0xb6af89['aiAuthor']['name']:_0x347f66['author']['name'],_0x56d4d6=Bt(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x55d04c-0x1,_0x4d3e05,_0x496de4?_0xb6af89['formatDateTime'](_0x496de4):'',new DOMParser()['parseFromString'](_0x362c85(_0x1fd959),'text/html')['body']['textContent']]);return _0x347f66['aiSource']&&'pill'===_0xb6af89['showAISource']?_0x56d4d6+'\x20'+Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x56d4d6;}),this['focusables']=new _0x39df58(),this['focusTracker']=new _0x4a0fc0(),this['keystrokes']=new _0xf61f0d(),this['focusCycler']=new _0x3a6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2beecb=>_0x2beecb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x347f66,this['_localUser']=_0x4d2b67,this['_config']=_0xb6af89,_0xb6af89['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),nt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x3efd2c}=this['_config'];this['commentsListView']=new _0x3efd2c(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',_0x2f7509=>_0x2f7509+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d1d43,_0x4de9a8)=>_0x5d1d43||!!_0x4de9a8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x136b37}=this['_config'],_0x431d8c=new _0x136b37(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x47b0e3=_0x431d8c['commentInputView'];return _0x431d8c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x47b0e3,'value',(_0x2c457d,_0x4fae81,_0x50baf8)=>!!_0x50baf8||_0x2c457d&&!_0x4fae81),_0x47b0e3['on']('submit',(_0x11d675,_0x12d488)=>{this['fire']('addComment',_0x12d488),_0x47b0e3['editor']['setData']('');}),_0x47b0e3['on']('cancel',()=>this['focus']()),_0x47b0e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x431d8c;}},Sn=class extends yn{suggestionView;_descriptionElement;constructor(_0x2009ea,_0x196a1f,_0x202cec,_0x3e0616){super(_0x2009ea,_0x196a1f,_0x202cec,_0x3e0616),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xb5812c=>_0xb5812c&&_0xb5812c[0x0]?_0xb5812c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x534119,_0x4c583d)=>{let _0x4bfa4a='';for(const _0x46e072 of _0x534119)_0x4bfa4a+='<p>'+bt(_0x46e072['content'],_0x46e072['color'])+'</p>';return _0x4c583d?_0x4bfa4a:rt(_0x4bfa4a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e0616['SuggestionView'](_0x2009ea,_0x196a1f,{'formatDateTime':_0x3e0616['formatDateTime'],'showAISource':_0x3e0616['showAISource'],'aiAuthor':_0x3e0616['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',_0x470baa=>!!_0x470baa||Bt(_0x2009ea,'SUGGESTION_ACTIONS_DISABLED_TOOLTIP')),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['suggestionView']['discardButton']['bind']('tooltip')['to'](this,'canDiscard',_0x30d814=>!!_0x30d814||Bt(_0x2009ea,'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 _0x164cdd=this['bindTemplate'],_0xb5a2d1=[this['suggestionView']];return this['commentsListView']&&_0xb5a2d1['push'](this['commentsListView']),this['commentThreadInputView']&&_0xb5a2d1['push'](this['commentThreadInputView']),_0xb5a2d1['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x164cdd['if']('isActive','ck-suggestion-wrapper--active'),_0x164cdd['to']('type',_0x51868d=>'ck-suggestion-'+_0x51868d),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':_0x164cdd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xb5a2d1};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Mn=class extends _0x31b427{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x2022e8,_0x1137f2,_0x20078e){super(_0x2022e8),this['_model']=_0x1137f2,this['_config']=_0x20078e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1137f2),this['acceptButton']=this['_createButton'](Bt(_0x2022e8,'Accept\x20suggestion'),_0x462308,'ck-suggestion--accept\x20ck-button_small','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Bt(_0x2022e8,'Discard\x20suggestion'),_0x496249,'ck-suggestion--discard\x20ck-button_small','discardSuggestion','sw');const _0x3a4fba=!!_0x1137f2['aiSource']&&'author'===_0x20078e['showAISource'],_0x5a1dc1=_0x3a4fba?this['_createAIUser'](_0x20078e['aiAuthor']):_0x1137f2['author'],_0x16e3d1=_0x3a4fba&&!_0x20078e['aiAuthor']['avatar']?_0x4f0a95:void 0x0;this['userView']=new _0x27b4e2(_0x2022e8,_0x5a1dc1,this['getUserViewNotificationText'](),_0x16e3d1),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x39df58([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4a0fc0(),this['keystrokes']=new _0xf61f0d(),this['focusCycler']=new _0x3a6372({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5b0f76=>_0x5b0f76['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x19037c=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x19037c['innerHTML']=_0x362c85(this['description']),this['on']('change:description',(_0x2e492b,_0x5850fc,_0x2a5ecb)=>{_0x19037c['innerHTML']=_0x362c85(_0x2a5ecb);}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x15d09f=this['bindTemplate'],_0xedcd6a=new _0x5de5f9();_0xedcd6a['content']=_0x1a5a99;const _0x2c5236=[{'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']}},_0xedcd6a,{'tag':'time','attributes':{'datetime':_0x15d09f['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x15d09f['to']('authoredAt',_0x2c51b1=>this['_config']['formatDateTime'](_0x2c51b1))}]}]},{'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']&&_0x2c5236['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x463ac8=new _0x1da1de(this['locale']);_0x463ac8['set']({'icon':_0x502305,'label':Bt(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Bt(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'size':'small','class':'ck-pill_ai'}),_0x2c5236['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x463ac8]});}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':_0x2c5236}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Bt(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Bt(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Bt(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x1a67b8){return new _0x9913b9({'id':'ck-ai-author','name':_0x1a67b8['name'],'avatar':_0x1a67b8['avatar'],'color':new _0x2fb5b8(0x0)});}_createButton(_0x250b5a,_0x5072a7,_0x49b9f7,_0x297fbf,_0x2937b8){const _0xe2d45b=new _0x5bb055(this['locale']);return _0xe2d45b['set']({'label':_0x250b5a,'icon':_0x5072a7,'tooltip':!0x0,'tooltipPosition':_0x2937b8}),_0xe2d45b['extendTemplate']({'attributes':{'class':_0x49b9f7}}),_0xe2d45b['on']('execute',()=>{this['fire'](_0x297fbf,this['_model']['id']);}),_0xe2d45b;}_setupKeyboardNavigation(){const _0x5ef66f=this['element'];this['keystrokes']['listenTo'](_0x5ef66f);for(const _0x33548d of this['focusables'])this['focusTracker']['add'](_0x33548d['element']),this['keystrokes']['listenTo'](_0x33548d['element']);this['keystrokes']['set']('enter',(_0xe0764f,_0x2c4177)=>{_0x5ef66f===_0xe0764f['target']&&(this['focusCycler']['focusFirst'](),_0x2c4177());}),this['keystrokes']['set']('esc',(_0x3e7fcc,_0x27d6c8)=>{_0x5ef66f!==_0x3e7fcc['target']&&(this['focus'](),_0x27d6c8());});}},On=class extends _0xf0b898{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[un,_0x445bdf,_0x1d69dd,_0x43d964,_0x280652];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x194f3b){super(_0x194f3b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x533075=this['editor']['config'];_0x533075['define']('trackChanges.SuggestionThreadView',Sn),_0x533075['define']('trackChanges.SuggestionView',Mn),_0x533075['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x533075['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x4d745d,_0x4cbd48){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x43aeaa,_0x90957b]of this['_handleControllerBuffer']){const _0x55fb2e=this['_suggestionToController']['has'](_0x43aeaa);_0x55fb2e||_0x90957b?_0x55fb2e&&_0x90957b&&this['_destroyController'](_0x43aeaa):this['_initializeController'](_0x43aeaa);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x280652)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4d745d,_0x4cbd48);}init(){const _0x647016=this['editor'],_0x24f19c=_0x647016['plugins']['get'](un),_0x4d2dd2=_0x647016['plugins']['get'](_0x43d964),_0x51332b=_0x647016['plugins']['get'](_0x280652),_0x59a312=_0x647016['plugins']['get'](_0x1d69dd);this['_addUIComponentsToFactory'](),_0x51332b['addSourceCollector'](()=>{const _0x2eccc0=[];for(const [_0xe79334,_0x49a108]of Array['from'](this['_suggestionToController'])){const _0x432de2=_0xe79334['getAllAdjacentSuggestions'](),_0x2fd549=[];for(const _0x31b94b of _0x432de2){if(!_0x31b94b['isInContent'])continue;if(_0x31b94b['isMultiRange']){_0x2fd549['push'](..._0x31b94b['getRanges']());continue;}const _0x4e083c=_0x31b94b['getFirstRange']();if(_0x2fd549['length']>0x0){const _0x2011e6=_0x2fd549[0x0]['getJoined'](_0x4e083c);if(_0x2011e6){_0x2fd549[0x0]=_0x2011e6;continue;}}_0x2fd549['push'](_0x4e083c);}_0x2eccc0['push']([_0x49a108['view'],_0x2fd549]);}return _0x2eccc0;}),this['listenTo'](_0x24f19c,'suggestionLoaded',(_0x3878a1,_0x4b1aa8)=>{this['listenTo'](_0x4b1aa8,'change:previous',(_0x5e6220,_0x3ee3d6,_0x8e4311,_0xff9dfa)=>{_0x4b1aa8['isInContent']&&(null==_0x8e4311?(this['_updateController'](_0xff9dfa['head']),this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x1)):(this['_updateController'](_0x8e4311['head']),null==_0xff9dfa&&this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x0)));}),null!==_0x4b1aa8['previous']?this['_updateController'](_0x4b1aa8['head']):this['_handleSuggestionControllerDelayed'](_0x4b1aa8,!0x1);}),this['listenTo'](_0x24f19c,'suggestionUnloaded',(_0xb8b9ba,_0x24657b,_0x1a72dd)=>{this['stopListening'](_0x24657b,'change:previous'),this['_handleControllerBuffer']['delete'](_0x24657b),this['_suggestionToController']['has'](_0x24657b)&&this['_destroyController'](_0x24657b),_0x1a72dd&&this['_updateController'](_0x1a72dd['head']);}),this['listenTo'](_0x24f19c,'suggestionChanged',(_0x239418,_0x11d577)=>{this['_updateController'](_0x11d577);}),this['listenTo'](_0x4d2dd2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x59a312,'addComment',(_0x5598bd,{threadId:_0x4499cf,isFromAdapter:_0x1510d2})=>{if(_0x1510d2||!_0x24f19c['hasSuggestion'](_0x4499cf))return;const _0x496478=_0x24f19c['getSuggestion'](_0x4499cf);this['_suggestionToController']['get'](_0x496478)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey'),this['_licenseKeyCheckInterval']=setInterval(()=>{const _0x52c9a8=[this['editor']];for(const _0x1fdb13 of _0x52c9a8){let _0x22c5ef;for(const _0x2059e3 in _0x1fdb13){const _0x32abd7=_0x2059e3,_0x286975=_0x1fdb13[_0x32abd7];if('trackChangesLicenseKeyValid'==_0x286975||'trackChangesLicenseKeyInvalid'==_0x286975||'trackChangesLicenseKeyExpired'==_0x286975||'trackChangesLicenseKeyDomainLimit'==_0x286975||'trackChangesLicenseKeyNotAllowed'==_0x286975||'trackChangesLicenseKeyEvaluationLimit'==_0x286975||'trackChangesLicenseKeyUsageLimit'==_0x286975){delete _0x1fdb13[_0x32abd7],_0x22c5ef=_0x286975,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x22c5ef&&_0x1fdb13['_showLicenseError']('usageLimit');}},0x3e8);}getAnnotationForSuggestion(_0x34a253){const _0x539eff=this['_suggestionToController']['get'](_0x34a253);return _0x539eff&&this['editor']['plugins']['get'](_0x43d964)['getByInnerView'](_0x539eff['view'])||null;}getSuggestionForAnnotation(_0x3d78d6){const _0xa2fe61=this['_viewToController']['get'](_0x3d78d6['innerView']);return _0xa2fe61?_0xa2fe61['model']:null;}_refreshActiveMarkers(){const _0x2a2c4f=this['editor']['plugins']['get'](_0x43d964),_0x4d05c2=this['editor']['plugins']['get'](un),_0x4e8f68=Array['from'](_0x2a2c4f['activeAnnotations'],_0x4ebc3e=>_0x4ebc3e['innerView'])['filter'](_0x1fd03f=>this['_viewToController']['has'](_0x1fd03f)),_0xc88477=[];for(const _0x2a754d of _0x4e8f68){const _0x330f0c=this['_viewToController']['get'](_0x2a754d)['model']['getAllAdjacentSuggestions']();_0xc88477['push'](..._0x330f0c['reduce']((_0x16ea6e,_0x1aadab)=>[..._0x16ea6e,..._0x1aadab['getMarkerNames']()],[]));}_0x4d05c2['activeMarkers']=_0xc88477;}_addUIComponentsToFactory(){const _0x256e1e=this['editor'],_0x79e8f1=_0x256e1e['locale'],_0x63709c=Bt(_0x79e8f1,'Track\x20changes'),_0x2d406b=new _0x3968f8([{'type':'switchbutton','model':new _0x227918({'withText':!0x0,'isToggleable':!0x0,'label':_0x63709c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x256e1e['plugins']['has']('TrackChangesPreview')&&_0x2d406b['addMany']([{'type':'separator'},{'type':'button','model':new _0x227918({'withText':!0x0,'label':Bt(_0x79e8f1,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1cf503 of _0x2d406b)if(wn(_0x1cf503)){const _0x5129c1=_0x256e1e['commands']['get'](_0x1cf503['model']['commandName']);_0x1cf503['model']['bind']('isOn','isEnabled')['to'](_0x5129c1,'value','isEnabled');}_0x256e1e['ui']['componentFactory']['add']('trackChanges',_0x2d82f8=>this['_createToolbarButton'](_0x2d82f8,_0x2d406b,_0x63709c)),_0x256e1e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2bda70=>this['_createMenuBarMenu'](_0x2bda70,_0x2d406b,_0x63709c));}_createToolbarButton(_0x1880df,_0x2b67b2,_0xaf72e3){const _0x2ff792=_0x179874(_0x1880df,_0x438c75),_0x3f672d=this['editor']['commands']['get']('trackChanges');_0x2ff792['buttonView']['set']({'tooltip':_0xaf72e3,'label':_0xaf72e3,'icon':_0x1a5a99}),_0x2ff792['buttonView']['bind']('isOn')['to'](_0x3f672d,'value'),_0x2ff792['buttonView']['on']('execute',()=>{_0x3f672d['execute'](),this['editor']['editing']['view']['focus']();}),_0x46f027(_0x2ff792,_0x2b67b2,{'role':'menu'});const _0x3f13bc=[];for(const _0x3f3ddf of _0x2b67b2)wn(_0x3f3ddf)&&_0x3f13bc['push'](this['editor']['commands']['get'](_0x3f3ddf['model']['commandName']));const _0x3ac19f=_0x2ff792['buttonView'];return _0x3ac19f['actionView']['unbind']('isEnabled'),_0x3ac19f['arrowView']['unbind']('isEnabled'),_0x3ac19f['actionView']['bind']('isEnabled')['to'](_0x3f672d,'isEnabled'),_0x3ac19f['arrowView']['bind']('isEnabled')['toMany'](_0x3f13bc,'isEnabled',(..._0x271ff1)=>_0x271ff1['some'](_0x985769=>_0x985769)),_0x2ff792['on']('execute',_0x4c6caa=>{this['editor']['execute'](_0x4c6caa['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ff792;}_createMenuBarMenu(_0x1d3122,_0x1b1345,_0x2beae7){const _0x1d49f4=new _0x29a1f3(_0x1d3122),_0x5ae74e=this['editor']['commands']['get']('trackChanges');_0x1d49f4['buttonView']['set']({'label':_0x2beae7,'icon':_0x1a5a99});const _0x5f2740=new _0x378699(_0x1d3122);for(const _0x9bd558 of _0x1b1345){if('separator'==_0x9bd558['type']){_0x5f2740['items']['add'](new _0x28794d(_0x1d3122));continue;}const _0x3987b7=new _0x32dbbf(_0x1d3122,_0x1d49f4),_0x240dba=new _0x1ee833(_0x1d3122),_0x115e76=_0x9bd558['model'];_0x240dba['bind'](...Object['keys'](_0x115e76))['to'](_0x115e76),_0x240dba['delegate']('execute')['to'](_0x1d49f4),_0x240dba['on']('execute',()=>{this['editor']['execute'](_0x115e76['commandName']),this['editor']['editing']['view']['focus']();}),_0x3987b7['children']['add'](_0x240dba),_0x5f2740['items']['add'](_0x3987b7);}return _0x1d49f4['bind']('isEnabled')['to'](_0x5ae74e,'isEnabled'),_0x1d49f4['panelView']['children']['add'](_0x5f2740),_0x1d49f4;}_initializeController(_0x2e5a02){const _0x1e378d=this['editor'],_0x52bae4=_0x1e378d['config'],_0x248894=_0x1e378d['plugins']['get'](_0x43d964),_0x234af9=_0x1e378d['plugins']['get'](_0x1d69dd),_0x551905=_0x1e378d['plugins']['get'](_0x280652),_0x493fde=_0x1e378d['plugins']['get'](_0x445bdf)['me'],_0x3ed789=_0x52bae4['get']('trackChanges')['SuggestionThreadView'],_0x409248=_0x52bae4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2726f6,CommentThreadInputView:_0x59a4ae}=_0x1e378d['plugins']['get']('CommentsUI');let _0x30bf8c,_0x313b84,_0x3865ba;this['_annotationViews']['has'](_0x2e5a02['id'])?(_0x313b84=this['_annotationViews']['get'](_0x2e5a02['id']),_0x30bf8c=_0x313b84['mainView']):(_0x30bf8c=new _0x3ed789(_0x1e378d['locale'],_0x2e5a02,_0x493fde,{'disableComments':this['_disableComments'],'editorConfig':{..._0x52bae4['get']('comments.editorConfig'),'licenseKey':_0x52bae4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x52bae4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x52bae4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x52bae4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x9d87d0(_0x52bae4['get']('locale'),_0x1e378d['locale']),'CommentView':_0x52bae4['get']('comments')['CommentView'],'CommentsListView':_0x2726f6,'CommentThreadInputView':_0x59a4ae,'SuggestionView':_0x409248,'showAISource':_0x52bae4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x52bae4['get']('trackChanges.aiAuthor'),'name':_0x52bae4['get']('trackChanges.aiAuthor')?.['name']||Bt(_0x1e378d['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x30bf8c['suggestionView']['acceptButton']['on']('execute',()=>{_0x1e378d['editing']['view']['focus']();}),_0x30bf8c['suggestionView']['discardButton']['on']('execute',()=>{_0x1e378d['editing']['view']['focus']();}),_0x313b84=_0x248894['createAnnotationView'](this['editor']['locale'],_0x30bf8c),_0x313b84['bind']('isDirty')['to'](_0x30bf8c,'isDirty'),_0x313b84['bind']('length')['to'](_0x30bf8c),_0x313b84['bind']('type')['to'](_0x30bf8c,'type',_0x12a167=>'suggestion-'+_0x12a167),_0x30bf8c['on']('escape',()=>{_0x3865ba['fire']('escape');}),this['_annotationViews']['set'](_0x2e5a02['id'],_0x313b84));const _0x5dfe44=_0x234af9['createCommentThreadController'](_0x2e5a02['commentThread'],_0x30bf8c),_0x4e2573=new Nn(_0x1e378d,_0x2e5a02,_0x30bf8c,_0x5dfe44),_0x5e1174=_0x2e5a02['getAllAdjacentSuggestions']()['filter'](_0x52172e=>_0x52172e['isInContent']);_0x30bf8c['descriptionParts']=_0x1e378d['plugins']['get'](un)['descriptionFactory']['getDescriptions'](_0x5e1174),this['_suggestionToController']['set'](_0x2e5a02,_0x4e2573),this['_viewToController']['set'](_0x30bf8c,_0x4e2573);const _0x29a6d5=()=>{const _0x3cf501=[],_0x4a333a=_0x2e5a02['getAllAdjacentSuggestions']()['filter'](_0x1751f8=>_0x1751f8['isInContent']);for(const _0xf338c8 of _0x4a333a)_0x3cf501['push'](..._0xf338c8['getMarkers']());return _0x43b5ca(_0x1e378d['editing'],_0x3cf501);};_0x3865ba=_0x248894['createAnnotation']({'view':_0x313b84,'target':_0x29a6d5,'type':()=>'suggestion-'+_0x4e2573['view']['type'],'isVisible':!!_0x29a6d5()}),_0x234af9['_bindAnnotationToEditors'](_0x30bf8c,_0x3865ba),_0x248894['add'](_0x3865ba),_0x551905['registerAnnotation'](_0x3865ba);}_destroyController(_0x34a336){const _0x55d7a7=this['editor']['plugins']['get'](_0x1d69dd),_0x9f9372=this['editor']['plugins']['get'](_0x43d964),_0x1d8557=this['_suggestionToController']['get'](_0x34a336),_0x444361=_0x1d8557['view'],_0x58fc6c=_0x9f9372['getByInnerView'](_0x444361);_0x55d7a7['_unbindEditors'](_0x444361),_0x58fc6c&&_0x9f9372['remove'](_0x58fc6c),this['_suggestionToController']['delete'](_0x34a336),this['_viewToController']['delete'](_0x444361),_0x1d8557['destroy']();}_updateController(_0x34076f){if(!_0x34076f['isInContent']||!this['_suggestionToController']['has'](_0x34076f))return;const _0x588d9e=this['editor']['plugins']['get'](un),_0x567d7f=this['_suggestionToController']['get'](_0x34076f),_0x11d3ca=_0x34076f['getAllAdjacentSuggestions']();_0x567d7f['view']['descriptionParts']=_0x588d9e['descriptionFactory']['getDescriptions'](_0x11d3ca);}destroy(){for(const _0x21c54b of this['_suggestionToController']['keys']())this['_destroyController'](_0x21c54b);for(const _0xd6fb76 of this['_annotationViews']['values']())_0xd6fb76['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function wn(_0x172fdd){return'model'in _0x172fdd;}var Bn=class extends _0xf0b898{static get requires(){return[un,On,_0x3f3d36];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0xc980f8){this['editor']['plugins']['get'](un)['adapter']=_0xc980f8;}get adapter(){return this['editor']['plugins']['get'](un)['adapter'];}addSuggestion(_0x18b5bd){return this['editor']['plugins']['get'](un)['addSuggestionData'](_0x18b5bd);}getSuggestions({skipNotAttached:_0x2d9cb6=!0x1,toJSON:_0x500279=!0x1}={}){return this['editor']['plugins']['get'](un)['getSuggestions']({'skipNotAttached':_0x2d9cb6,'toJSON':_0x500279});}getSuggestion(_0x3783f3){return this['editor']['plugins']['get'](un)['getSuggestion'](_0x3783f3);}};const Fn=['Pagination'];var vn=class extends _0xf0b898{static get requires(){return[un];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x41fd81=this['editor'];if(_0x41fd81['config']['define']('trackChangesData.editorCreator',_0x15ccf4=>{const _0x7a0ae2=_0x41fd81['model']['document']['getRootNames']()['reduce']((_0x539819,_0x1d42d3)=>(_0x539819[_0x1d42d3]='',_0x539819),{});return _0x41fd81['constructor']['create'](_0x7a0ae2,_0x15ccf4);}),'function'!=typeof _0x41fd81['config']['get']('trackChangesData')['editorCreator'])throw new _0x53b517('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x1d9cf7){return Pn(this['editor'],!0x0,_0x1d9cf7);}getDataWithDiscardedSuggestions(_0x44c097){return Pn(this['editor'],!0x1,_0x44c097);}},Dn=class extends _0xf0b898{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xc96e3d){super(_0xc96e3d),this['result']='end',_0xc96e3d['editing']['view']['_overlayModeHint']='auto',_0xc96e3d['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Un(_0xb6c526){return void 0x0!==_0xb6c526['getRootsAttributes'];}async function Pn(_0x1132b8,_0x4b681a,_0x241544){const _0x1a822e=et(_0x1132b8,Fn);if(_0x1a822e['plugins']['push'](un,Dn),Un(_0x1132b8)){_0x1a822e['roots']=Object['create'](null);for(const _0x5b18e7 of _0x1132b8['model']['document']['getRootNames']())_0x1a822e['roots'][_0x5b18e7]={'modelAttributes':_0x1132b8['getRootAttributes'](_0x5b18e7)};}const _0x4ee783=document['createDocumentFragment'](),_0x1aa14e=_0x1132b8['config']['get']('trackChangesData')['editorCreator'],_0x2671c4=await _0x1aa14e(_0x1a822e,()=>function(_0x27dd10){const _0x1b5aa6=document['createElement']('div');return _0x27dd10['appendChild'](_0x1b5aa6),_0x1b5aa6;}(_0x4ee783));!function(_0x13d13c,_0x5a32e0){const _0x44669f=_0x13d13c['model']['document']['getRootNames']()['reduce']((_0x39d2fe,_0x13bca1)=>(_0x39d2fe[_0x13bca1]=_0x13d13c['data']['get']({'rootName':_0x13bca1}),_0x39d2fe),{}),_0x4aa502=_0x13d13c['plugins']['get']('Users')['users']['map'](_0x1cfbbb=>({'id':_0x1cfbbb['id'],'name':_0x1cfbbb['name']})),_0x5281d3=_0x13d13c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x135854=_0x13d13c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53b8bd=_0x5a32e0['plugins']['get']('Users'),_0x41cf5b=_0x5a32e0['plugins']['get']('TrackChangesEditing'),_0x4b179c=_0x5a32e0['plugins']['get']('CommentsRepository');for(const _0x215ee5 of _0x4b179c['getCommentThreads']())_0x215ee5['remove']();for(const _0x13b606 of _0x4aa502)_0x53b8bd['getUser'](_0x13b606['id'])||_0x53b8bd['addUser'](_0x13b606);_0x53b8bd['me']||_0x53b8bd['useAnonymousUser']();for(const _0x3728c2 of _0x135854)_0x4b179c['addCommentThread'](_0x3728c2);for(const _0x499f33 of _0x5281d3)_0x41cf5b['addSuggestionData'](_0x499f33);_0x5a32e0['data']['set'](_0x44669f);}(_0x1132b8,_0x2671c4),_0x2671c4['execute'](_0x4b681a?'acceptAllSuggestions':'discardAllSuggestions');const _0x3658e0=Un(_0x2671c4)?_0x2671c4['getFullData'](_0x241544):_0x2671c4['data']['get'](_0x241544);return await _0x2671c4['destroy'](),_0x3658e0;}var xn=class extends _0x31b427{options;constructor(_0x2b4420,_0x4b51ec){super(_0x2b4420),this['options']=_0x4b51ec,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(_0x1143fc,_0x4c0272){if(!this['element'])return;const _0xdab05b=[];for(const [_0xdefb09,_0x589bfb]of _0x1143fc){const _0x3674e5=document['createElement']('div');_0x3674e5['setAttribute']('data-ck-root-name',_0xdefb09),_0x3674e5['className']=_0x589bfb['classes']+'\x20ck-track-changes-preview__root-container',_0x3674e5['innerHTML']=_0x362c85(_0x589bfb['content']),_0xdab05b['push'](_0x3674e5);}_0x4c0272(this['element'],_0xdab05b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Gn=class extends _0x137f1b{constructor(_0x289f97){super(_0x289f97),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x31be79=this['editor'],_0x386f20=_0x31be79['locale'],_0xaa1db7=_0x31be79['plugins']['get']('Dialog');let _0x73c390;const _0x2d4cee=function(_0x5967b8){const _0x1cb9ba={};if('editables'in _0x5967b8['ui']['view']){for(const [_0x5a0770,_0x4c3bf2]of Object['entries'](_0x5967b8['ui']['view']['editables']))_0x1cb9ba[_0x5a0770]=_0x4c3bf2['element'];}else _0x1cb9ba[_0x5967b8['model']['document']['getRootNames']()[0x0]]=_0x5967b8['ui']['view']['editable']['element'];return _0x1cb9ba;}(_0x31be79),_0x55edf7=function(_0x2de985){let _0x137a5c=0x0;for(const _0x488d12 of Object['values'](_0x2de985))_0x137a5c=Math['max'](_0x137a5c,_0x488d12['getBoundingClientRect']()['width']);let _0x23ee11=0x0;for(const _0x1ccb0e of Object['values'](_0x2de985))_0x23ee11+=_0x1ccb0e['getBoundingClientRect']()['height'];const _0x2ca925=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x137a5c,'height':Math['min'](_0x23ee11,_0x2ca925)};}(_0x2d4cee);_0xaa1db7['show']({'id':'finalContentPreview','title':Bt(_0x386f20,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new xn(_0x386f20,{'dialogRects':_0x55edf7}),'onHide':()=>{_0x73c390['destroy']();},'onShow':()=>{_0x31be79['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x417f24=>{const _0xf244eb=this['_standarizeRootsData'](_0x417f24,_0x31be79,_0x2d4cee);_0xaa1db7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xf244eb,_0x31be79['config']['get']('trackChanges.preview.renderFunction'));}),_0x73c390=new _0x54c5f7(_0x386f20,[_0xaa1db7['view']]),_0x73c390['attachToDom'](_0x31be79['ui']['view']['body']['mountTarget']),_0x73c390['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x31be79['once']('destroy',()=>{_0x73c390['destroy']();});const _0x10c1f3=_0xaa1db7['view']['headerView']['class'];_0xaa1db7['view']['headerView']['class']=_0x10c1f3?_0x10c1f3+'\x20ck-reset_all':'ck-reset_all',_0xaa1db7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xaa1db7['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x444e15=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2d710f=_0x444e15['previewMode'],_0x4462c2={};if('$labels'===_0x2d710f){for(const _0x7e01aa of _0x444e15['getMergeFieldsIds']())_0x4462c2[_0x7e01aa]=_0x444e15['getLabel'](_0x7e01aa)||_0x7e01aa;}else{const _0x159c75='$defaultValues'===_0x2d710f?_0x444e15['getDefaultValues']():_0x444e15['getDataSetValues'](_0x2d710f,!0x0);for(const _0x4fcbbd of Object['entries'](_0x159c75)){const [_0x35e48e,_0x425ae4]=_0x4fcbbd;_0x4462c2[_0x35e48e]=null!==_0x425ae4?_0x425ae4:_0x444e15['getLabel'](_0x35e48e)||_0x35e48e;}}return{'mergeFieldsData':_0x4462c2};}_standarizeRootsData(_0x248aad,_0x57d3a2,_0x4f8015){let _0x4e3cc9;_0x4e3cc9='string'==typeof _0x248aad?{[_0x57d3a2['model']['document']['getRootNames']()[0x0]]:_0x248aad}:_0x248aad;const _0x44b8cd=this['_fixMediaEmbeds'](_0x4e3cc9,_0x57d3a2);return function(_0x386d1e,_0x102ded){const _0x462d1d=new Set(['ck-focused','ck-editor__editable_root']);for(const [_0x3bb22e,_0x4f707e]of _0x386d1e)_0x4f707e['classes']=Array['from'](_0x102ded[_0x3bb22e]['classList'])['filter'](_0x4e8df6=>!_0x462d1d['has'](_0x4e8df6))['join']('\x20');return _0x386d1e;}(this['_sortRoots'](_0x57d3a2)['reduce']((_0x293411,_0x82e049)=>(_0x293411['push']([_0x82e049,{'content':_0x44b8cd[_0x82e049],'classes':''}]),_0x293411),[]),_0x4f8015);}['_fixMediaEmbeds'](_0x3bffe8,_0xc16d5f){if(!_0xc16d5f['plugins']['has']('MediaEmbedEditing'))return _0x3bffe8;const _0x5c76a5=_0xc16d5f['plugins']['get']('MediaEmbedEditing');for(const [_0x17a344,_0x4637a4]of Object['entries'](_0x3bffe8)){const _0x54231d=document['createElement']('div');_0x54231d['innerHTML']=_0x362c85(_0x4637a4),_0x54231d['querySelectorAll']('figure.media')['forEach'](_0x4d84c5=>{const _0x410cc4=_0x4d84c5['querySelector']('oembed');if(_0x410cc4){const _0x598ac1=_0x410cc4['getAttribute']('url');if(_0x598ac1){const _0x28ab78=_0x5c76a5['registry']['getMediaViewElement'](new lt(_0xc16d5f['editing']['view']['document']),_0x598ac1,{'elementName':'','renderForEditingView':!0x0}),_0x5dda48=document['createElement']('div');_0x5dda48['classList']['add']('ck-media__wrapper'),_0x28ab78['render'](_0x5dda48,_0xc16d5f['editing']['view']['domConverter']),_0x410cc4['replaceWith'](_0x5dda48);}}}),_0x3bffe8[_0x17a344]=_0x54231d['innerHTML'];}return _0x3bffe8;}_sortRoots(_0x29ded2){if(!function(_0x56463c){return void 0x0!==_0x56463c['getRootsAttributes'];}(_0x29ded2))return _0x29ded2['model']['document']['getRootNames']();const _0x59b2e2=[],_0x46a8fd=new Map();for(const _0x1b7a28 of _0x29ded2['model']['document']['getRootNames']()){const _0x502c35=_0x29ded2['editing']['view']['getDomRoot'](_0x1b7a28)['getClientRects']()['item'](0x0);_0x59b2e2['push'](_0x1b7a28),_0x46a8fd['set'](_0x1b7a28,_0x502c35);}return _0x59b2e2['sort']((_0x4a31cc,_0x4fc61e)=>{const _0x3bc84f=_0x46a8fd['get'](_0x4a31cc),_0x5c640c=_0x46a8fd['get'](_0x4fc61e);return _0x3bc84f['y']-_0x5c640c['y']||_0x3bc84f['x']-_0x5c640c['x'];}),_0x59b2e2;}},Hn=class extends _0xf0b898{static get requires(){return[vn,_0x449084];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x497b0e){super(_0x497b0e),_0x497b0e['commands']['add']('previewFinalContent',new Gn(this['editor'])),_0x497b0e['config']['define']('trackChanges.preview.renderFunction',(_0x428799,_0x3195d8)=>{for(const _0x4fcb6 of _0x3195d8)_0x428799['appendChild'](_0x4fcb6);});}};export{It as AcceptSuggestionCommand,yn as BaseSuggestionThreadView,At as DiscardSuggestionCommand,St as ExecuteOnAllSuggestionsCommand,Mt as ExecuteOnSelectedSuggestionsCommand,Gn as PreviewFinalContentCommand,wt as Suggestion,Ft as SuggestionDescriptionFactory,Sn as SuggestionThreadView,Mn as SuggestionView,Bn as TrackChanges,Lt as TrackChangesCommand,vn as TrackChangesData,Dn as TrackChangesDataGetter,un as TrackChangesEditing,Hn as TrackChangesPreview,On as TrackChangesUI};
|