@ckeditor/ckeditor5-track-changes 48.3.1-alpha.1 → 48.4.0-alpha.0
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-editor.css +9 -8
- package/dist/index.css +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/integrations/clipboard.d.ts +30 -0
- package/dist/integrations/tablecolumnresize.d.ts +5 -1
- package/dist/trackchangesconfig.d.ts +20 -6
- package/dist/trackchangesediting.d.ts +2 -1
- package/dist/trackchangespreview.d.ts +0 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +25 -25
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x25c6c1();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3263e0,_0x37ba83){super(),this['id']=_0x37ba83['id'],this['type']=_0x37ba83['type'],this['subType']=_0x37ba83['subType']||null,this['author']=_0x37ba83['author'],this['creator']=_0x37ba83['creator']||_0x37ba83['author'],this['data']=null,this['_originalSuggestionId']=_0x37ba83['originalSuggestionId']||null,this['_model']=_0x3263e0,this['_onAccept']=_0x37ba83['onAccept'],this['_onDiscard']=_0x37ba83['onDiscard'],this['_onAttributesChange']=_0x37ba83['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x37ba83['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 _0x391e7f=this;for(;_0x391e7f['previous'];)_0x391e7f=_0x391e7f['previous'];return _0x391e7f;}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'](_0x26de89){this['_markerNames']['add'](_0x26de89);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x20002c=>this['_model']['markers']['get'](_0x20002c))['filter'](_0x430e70=>_0x430e70);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x151d22=>{for(const _0x41b873 of this['getMarkers']())_0x151d22['removeMarker'](_0x41b873);}),this['_markerNames']['clear']();}['removeMarker'](_0x6088f){this['_model']['change'](_0x41c036=>{_0x41c036['removeMarker'](_0x6088f);}),this['_markerNames']['delete'](_0x6088f);}['addRange'](_0x26c2c5){const _0x597a6e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x597a6e),this['_model']['change'](_0x14f6c7=>{_0x14f6c7['addMarker'](_0x597a6e,{'range':_0x26c2c5,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1668c9){for(const _0x2c5d63 of this['getRanges']())if(_0x2c5d63['isIntersecting'](_0x1668c9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x46e9ed=>_0x46e9ed['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4e39ce,_0x3f91ee)=>[..._0x4e39ce,..._0x3f91ee['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e331d=this['getRanges']();if(0x1!=_0x2e331d['length'])return null;const _0x5a4b13=_0x2e331d[0x0],_0x189bdf=_0x5a4b13['start']['nodeAfter'],_0x491746=_0x5a4b13['end']['nodeBefore'];return _0x189bdf instanceof it?_0x189bdf!=_0x491746?null:_0x189bdf: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 _0x68134c=[];let _0x44252a=this['head'];for(;_0x44252a;)_0x68134c['push'](_0x44252a),_0x44252a=_0x44252a['next'];return _0x68134c;}['setAttribute'](_0x4cf527,_0x1be266){const _0x1e5492=at(this['attributes']);ut(_0x1e5492,_0x4cf527,_0x1be266),ct(_0x1e5492,this['attributes'])||(this['attributes']=_0x1e5492,this['_onAttributesChange'](_0x1e5492));}['removeAttribute'](_0x4cc0f5){const _0x4ed5cc=at(this['attributes']);dt(_0x4ed5cc,_0x4cc0f5),ct(_0x4ed5cc,this['attributes'])||(this['attributes']=_0x4ed5cc,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 _0x1f4b16()['substr'](0x1,0x5);}};function St(_0x184a48,_0x424de3,_0x3da3ea){const _0x404ca4=_0x184a48['t'],t=_0x184a48['t'];switch(_0x424de3){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',_0x3da3ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3da3ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3da3ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3da3ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3da3ea);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',_0x3da3ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3da3ea);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',_0x3da3ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3da3ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3da3ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3da3ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3da3ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3da3ea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3da3ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3da3ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3da3ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3da3ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3da3ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3da3ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3da3ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3da3ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3da3ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3da3ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3da3ea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3da3ea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3da3ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3da3ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3da3ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3da3ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3da3ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3da3ea);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'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3da3ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3da3ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3da3ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3da3ea);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'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3da3ea);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3da3ea);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3da3ea);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3da3ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3da3ea);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'},_0x3da3ea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3da3ea);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 _0x404ca4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3da3ea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x404ca4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3da3ea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3da3ea);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'},_0x3da3ea);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'},_0x3da3ea);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'},_0x3da3ea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x424de3;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x598300,_0x1a6bd6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x598300,this['_locale']=_0x1a6bd6;}['getDescriptions'](_0x2f420b){const _0x2477d3=[],_0x4a13c8=new Set(),_0x33d080=new Set();for(let _0x5f118f=0x0;_0x5f118f<_0x2f420b['length'];_0x5f118f++){const _0x2200a5=_0x2f420b[_0x5f118f];if(!_0x2200a5['isInContent'])continue;const _0x325c48=this['_handleCustomCallbackDescription'](_0x2200a5);if(_0x325c48){if(null!=_0x2200a5['subType']){if(_0x4a13c8['has'](_0x2200a5['subType']))continue;_0x4a13c8['add'](_0x2200a5['subType']);}_0x2477d3['push'](_0x325c48);}else{if('attribute'==_0x2200a5['type']){const _0x2ef840=_0x2200a5['data']['key'];if(_0x33d080['has'](_0x2ef840))continue;_0x33d080['add'](_0x2200a5['data']['key']),'$elementName'==_0x2ef840?this['_handleRenameSuggestionDescription'](_0x2477d3,_0x2200a5):this['_handleAttributeSuggestionDescription'](_0x2477d3,_0x2200a5);continue;}'insertion'!=_0x2200a5['type']&&'deletion'!=_0x2200a5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2477d3,_0x2200a5,_0x2f420b[_0x5f118f+0x1]);}}return this['_resolveDescriptionItems'](_0x2477d3);}['registerDescriptionCallback'](_0x3e153b){this['_customCallbacks']['push'](_0x3e153b);}['registerElementLabel'](_0x6157b2,_0xa36e03,_0x5dfcdd=_0x1cf13d['normal']){'function'==typeof _0x6157b2?_0xd637d7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x6157b2,'label':_0xa36e03,'priority':_0x5dfcdd}):this['_itemLabels']['set'](_0x6157b2,_0xa36e03);}['registerAttributeLabel'](_0x3b0cba,_0x45722f){this['_attributeLabels']['set'](_0x3b0cba,_0x45722f);}['getItemLabel'](_0x20a0d1,_0x49d796=0x1){let _0x284f30;for(const _0x2a7834 of this['_itemLabelsCallbacks'])if(_0x2a7834['matchingCallback'](_0x20a0d1)){_0x284f30=_0x2a7834['label'];break;}return _0x284f30||(_0x284f30=this['_itemLabels']['get'](_0x20a0d1['name'])),_0x284f30?_0x284f30(_0x49d796):0x1!==_0x49d796?_0x49d796+'\x20'+_0x20a0d1['name']+'s':''+_0x20a0d1['name'];}['_addDescriptionItems'](_0x896f02,_0x487ab2){const _0x46f774=_0x487ab2['getFirstRange']()['getWalker'](),_0x3ee7b7='insertion'==_0x487ab2['type']?'add':'remove';for(const _0x39c37f of _0x46f774){const _0x375bdc=_0x39c37f['item'],_0x5d2ce5=_0x896f02[_0x896f02['length']-0x1];if(_0x375bdc['is']('$textProxy'))_0x5d2ce5&&_0x5d2ce5['type']['indexOf']('Container')>-0x1&&_0x896f02['pop'](),_0x5d2ce5&&'text'==_0x5d2ce5['type']?_0x5d2ce5[_0x3ee7b7]+=_0x375bdc['data']:_0x896f02['push']({'type':'text','add':'add'==_0x3ee7b7?_0x375bdc['data']:'','remove':'remove'==_0x3ee7b7?_0x375bdc['data']:''});else{if(this['_schema']['isObject'](_0x375bdc)){const _0x4bb4a1=_0x375bdc;if(_0x5d2ce5&&_0x5d2ce5['type']['indexOf']('Container')>-0x1&&_0x896f02['pop'](),'elementEnd'==_0x39c37f['type'])continue;_0x5d2ce5&&_0x5d2ce5['type']==_0x3ee7b7+'Object'&&_0x5d2ce5['element']['name']==_0x4bb4a1['name']?_0x5d2ce5['quantity']++:_0x896f02['push']({'type':_0x3ee7b7+'Object','element':_0x4bb4a1,'quantity':0x1}),_0x46f774['skip'](_0x2ffdd4=>!('elementEnd'==_0x2ffdd4['type']&&_0x2ffdd4['item']==_0x375bdc));}else{if(this['_schema']['checkChild'](_0x375bdc,'$text')||_0x375bdc['is']('element','softBreak')){const _0x32e0fa=_0x375bdc;if('add'==_0x3ee7b7&&'elementStart'==_0x39c37f['type']||'remove'==_0x3ee7b7&&'elementEnd'==_0x39c37f['type'])continue;if(_0x5d2ce5&&-0x1==_0x5d2ce5['type']['indexOf']('Container')){'text'==_0x5d2ce5['type']&&(_0x5d2ce5[_0x3ee7b7]+='\x0a');continue;}let _0x26e2c0;if(_0x26e2c0='add'==_0x3ee7b7?_0x32e0fa['nextSibling']&&!this['_schema']['isObject'](_0x32e0fa['nextSibling'])?_0x32e0fa['nextSibling']:null:_0x32e0fa['previousSibling']&&!this['_schema']['isObject'](_0x32e0fa['previousSibling'])?_0x32e0fa['previousSibling']:null,_0x32e0fa['isEmpty']||_0x26e2c0&&_0x26e2c0['isEmpty']){const _0x1b4d7b=_0x26e2c0&&_0x26e2c0['isEmpty']?_0x26e2c0:_0x32e0fa;_0x5d2ce5&&_0x5d2ce5['type']==_0x3ee7b7+'EmptyContainer'&&_0x5d2ce5['element']['name']==_0x1b4d7b['name']?_0x5d2ce5['quantity']++:_0x896f02['push']({'type':_0x3ee7b7+'EmptyContainer','element':_0x1b4d7b,'quantity':0x1});}else _0x896f02['push']({'type':_0x3ee7b7+'Container','element':_0x32e0fa});}}}}}['_resolveDescriptionItems'](_0x3d6ed2){const _0x18a89b=this['_locale'],_0x4acb6d=[],_0x342ca1=[],_0x54c3a5=[];for(const _0x55b852 of _0x3d6ed2)switch(_0x55b852['type']){case'text':if(_0x55b852['add']=_0x55b852['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55b852['remove']=_0x55b852['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55b852['add']&&''!=_0x55b852['remove']){_0x4acb6d['push']({'type':'replace','content':St(_0x18a89b,'REPLACE_TEXT',['\x22'+_0x55b852['remove']+'\x22','\x22'+_0x55b852['add']+'\x22'])});continue;}if(null!=_0x55b852['add']['match'](/^ +$/)){_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0',St(_0x18a89b,'ELEMENT_SPACE',_0x55b852['add']['length']))});continue;}if(null!=_0x55b852['remove']['match'](/^ +$/)){_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0',St(_0x18a89b,'ELEMENT_SPACE',_0x55b852['remove']['length']))});continue;}if(''!=_0x55b852['add']){_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0','\x22'+_0x55b852['add']+'\x22')});continue;}_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0','\x22'+_0x55b852['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Insert:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Remove:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'addContainer':_0x4acb6d['push']({'type':'insertion','content':St(_0x18a89b,'*Split:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'removeContainer':_0x4acb6d['push']({'type':'deletion','content':St(_0x18a89b,'*Merge:*\x20%0',this['getItemLabel'](_0x55b852['element'],_0x55b852['quantity']))});continue;case'addFormat':_0x342ca1['push'](_0x55b852['key']);continue;case'removeFormat':_0x54c3a5['push'](_0x55b852['key']);continue;default:_0x4acb6d['push'](_0x55b852);}if(_0x342ca1['length']){const _0x1b3e29=_0x342ca1['map'](_0x10f55d=>this['_attributeLabels']['has'](_0x10f55d)?this['_attributeLabels']['get'](_0x10f55d):_0x10f55d)['join'](',\x20');_0x4acb6d['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x1b3e29)});}if(_0x54c3a5['length']){const _0x33bd7d=_0x54c3a5['map'](_0x1fdddb=>this['_attributeLabels']['has'](_0x1fdddb)?this['_attributeLabels']['get'](_0x1fdddb):_0x1fdddb)['join'](',\x20');_0x4acb6d['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x33bd7d)});}return _0x4acb6d;}['_handleCustomCallbackDescription'](_0x37cef3){for(const _0x24c310 of this['_customCallbacks']){const _0x40e615=_0x24c310(_0x37cef3);if(_0x40e615&&'type'in _0x40e615)return _0x40e615;}}['_handleAttributeSuggestionDescription'](_0x214993,_0x57d162){const _0x23890c=_0x57d162['data'],_0x6e4e51=void 0x0===_0x23890c['newValue']?'removeFormat':'addFormat';_0x214993['push']({'type':_0x6e4e51,'key':_0x23890c['key']});}['_handleRenameSuggestionDescription'](_0x406951,_0x263dc4){_0x406951['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x263dc4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x15048b,_0x361d30,_0x375e2f){if(this['_addDescriptionItems'](_0x15048b,_0x361d30),_0x375e2f&&_0x375e2f['getFirstRange']()&&!_0x361d30['getFirstRange']()['end']['isEqual'](_0x375e2f['getFirstRange']()['start'])){const _0x158063=_0x15048b[_0x15048b['length']-0x1],_0x170ad0='insertion'==_0x361d30['type']?'add':'remove';_0x158063&&'text'==_0x158063['type']&&(_0x158063[_0x170ad0]+='\x0a');}}},Ot=class extends _0x413c81{['afterInit'](){const _0x10b808=this['editor'],_0x46cb88=_0x10b808['plugins']['get']('TrackChangesEditing');_0x10b808['commands']['get']('showAIAssistant')&&_0x46cb88['enableCommand']('showAIAssistant');}},wt=class extends _0x413c81{['afterInit'](){const _0x113efe=this['editor'],_0x273e13=_0x113efe['plugins']['get']('TrackChangesEditing');_0x113efe['commands']['get']('toggleAi')&&_0x273e13['enableCommand']('toggleAi');}},Ft=class extends _0x413c81{['afterInit'](){const _0x275dab=this['editor'],_0x37b453=_0x275dab['plugins']['get']('TrackChangesEditing');_0x275dab['commands']['get']('aiQuickAction')&&_0x37b453['enableCommand']('aiQuickAction');}},Bt=class extends _0x413c81{['afterInit'](){const _0x16d5e2=this['editor'],_0x1f94c7=_0x16d5e2['locale'];if(!_0x16d5e2['plugins']['has']('AlignmentEditing'))return;const _0x250d57=_0x16d5e2['plugins']['get']('TrackChangesEditing');_0x250d57['enableDefaultAttributesIntegration']('alignment'),_0x250d57['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x1f94c7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fc334=this['editor'],_0x30913d=_0x4fc334['locale'];_0x4fc334['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x40a18b=>{if('formatBlock'!=_0x40a18b['type'])return;const {data:_0x2d150d}=_0x40a18b;if(_0x2d150d&&'alignment'==_0x2d150d['commandName']){const _0x2c8cfc=_0x2d150d['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x30913d,'*Format:*\x20%0',function(_0x2fa39e){switch(_0x2fa39e){case'left':return St(_0x30913d,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x30913d,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x30913d,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x30913d,'FORMAT_JUSTIFY_TEXT');}}(_0x2c8cfc))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x413c81{['afterInit'](){const _0x1bab32=this['editor'],_0x316f78=_0x1bab32['plugins']['get']('TrackChangesEditing'),_0x5ec9c5=_0x1bab32['locale'];for(const _0x1e0882 of vt){if(!_0x1bab32['plugins']['has'](_0x1e0882))continue;const _0x4096ed=_0x1e0882['slice'](0x0,-0x7)['toLowerCase'](),_0x1a8906='FORMAT_'+_0x4096ed['toUpperCase']();_0x316f78['enableDefaultAttributesIntegration'](_0x4096ed),_0x316f78['descriptionFactory']['registerAttributeLabel'](_0x4096ed,St(_0x5ec9c5,_0x1a8906));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e0673=this['editor'],_0x51fcd6=_0x1e0673['locale'],_0xf25bae=_0x1e0673['plugins']['get']('TrackChangesEditing');function _0x2615ca(_0x39e79b,_0x437edc){_0xf25bae['descriptionFactory']['registerDescriptionCallback'](_0x1dea26=>{if('formatInline'!=_0x1dea26['type'])return;const {data:_0x4c3ee2}=_0x1dea26;return _0x4c3ee2&&_0x4c3ee2['commandName']===_0x39e79b?_0x4c3ee2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x51fcd6,'*Format:*\x20%0',_0x437edc)}:{'type':'format','content':St(_0x51fcd6,'*Remove\x20format:*\x20%0',_0x437edc)}:void 0x0;});}_0x2615ca('bold',St(_0x51fcd6,'FORMAT_BOLD')),_0x2615ca('italic',St(_0x51fcd6,'FORMAT_ITALIC')),_0x2615ca('underline',St(_0x51fcd6,'FORMAT_UNDERLINE')),_0x2615ca('code',St(_0x51fcd6,'FORMAT_CODE')),_0x2615ca('strikethrough',St(_0x51fcd6,'FORMAT_STRIKETHROUGH')),_0x2615ca('subscript',St(_0x51fcd6,'FORMAT_SUBSCRIPT')),_0x2615ca('superscript',St(_0x51fcd6,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x413c81{['afterInit'](){const _0x3d4704=this['editor'],_0x169c63=_0x3d4704['locale'];if(!_0x3d4704['plugins']['has']('BlockQuoteEditing'))return;const _0x12f660=_0x3d4704['plugins']['get']('TrackChangesEditing'),_0x2766d6=this['editor']['commands']['get']('blockQuote');_0x12f660['enableCommand']('blockQuote',(_0x4b1d78,_0x5c655c={})=>{const _0xe2683b=this['editor']['model']['document']['selection'],_0x38ee8=_0x5c655c&&void 0x0!==_0x5c655c['forceValue']?_0x5c655c['forceValue']:!_0x2766d6['value'];let _0x3f11b9=[];_0x3f11b9=At(_0x38ee8?Array['from'](_0xe2683b['getSelectedBlocks']())['filter'](_0x2cd887=>Pt(_0x2cd887)||function(_0x4bedca,_0x5d5c5e){const _0x1314bf=_0x5d5c5e['createContext'](_0x4bedca['parent']);return!!_0x5d5c5e['checkChild'](_0x1314bf,'blockQuote')&&!!_0x5d5c5e['checkChild'](_0x1314bf['push']('blockQuote'),_0x4bedca);}(_0x2cd887,this['editor']['model']['schema'])):Array['from'](_0xe2683b['getSelectedBlocks']())['filter'](_0x24e899=>Pt(_0x24e899)),_0x3d4704['model']),_0x3d4704['model']['change'](()=>{for(const _0x4b97b4 of _0x3f11b9)_0x12f660['markBlockFormat'](_0x4b97b4,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x38ee8}]});});}),_0x12f660['descriptionFactory']['registerDescriptionCallback'](_0x5d2321=>{const {data:_0x7a0afc}=_0x5d2321;if(_0x7a0afc&&'blockQuote'==_0x7a0afc['commandName']){const _0x3c5ed1=St(_0x169c63,'ELEMENT_BLOCK_QUOTE');return _0x7a0afc['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x169c63,'*Set\x20format:*\x20%0',_0x3c5ed1)}:{'type':'format','content':St(_0x169c63,'*Remove\x20format:*\x20%0',_0x3c5ed1)};}});}};function Pt(_0x186e95){return'blockQuote'==_0x186e95['parent']['name'];}var xt=class extends _0x413c81{['afterInit'](){const _0x1ad216=this['editor'],_0x2f7c4a=_0x1ad216['locale'],_0x3d729a=_0x1ad216['plugins']['get']('TrackChangesEditing');_0x1ad216['plugins']['has']('BookmarkEditing')&&(_0x3d729a['enableCommand']('insertBookmark'),_0x3d729a['enableDefaultAttributesIntegration']('updateBookmark'),_0x3d729a['descriptionFactory']['registerDescriptionCallback'](_0x1c8591=>{if('insertion'!=_0x1c8591['type']&&'deletion'!=_0x1c8591['type']&&'attribute'!=_0x1c8591['type'])return;const _0x1e5889=_0x1c8591['getContainedElement']();if(null==_0x1e5889)return;if(!_0x1e5889['is']('element','bookmark'))return;const _0x27ad9f=_0x1e5889['getAttribute']('bookmarkId');if('insertion'==_0x1c8591['type'])return{'type':'insertion','content':St(_0x2f7c4a,'*Insert:*\x20%0','\x22'+_0x27ad9f+'\x22\x20'+St(_0x2f7c4a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1c8591['type'])return{'type':'deletion','content':St(_0x2f7c4a,'*Remove:*\x20%0','\x22'+_0x27ad9f+'\x22\x20'+St(_0x2f7c4a,'ELEMENT_BOOKMARK'))};const {data:_0x21fc32}=_0x1c8591;return _0x21fc32&&'bookmarkId'==_0x21fc32['key']?{'type':'format','content':St(_0x2f7c4a,'*Set\x20bookmark:*\x20%0','\x22'+_0x21fc32['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x413c81{['afterInit'](){const _0x5a540b=this['editor'];_0x5a540b['plugins']['has']('CaseChange')&&(_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5a540b['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x413c81{['afterInit'](){const _0x4b8659=this['editor'];_0x4b8659['commands']['get']('ckbox')&&_0x4b8659['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x413c81{['afterInit'](){const _0x452e1a=this['editor'];if(!_0x452e1a['plugins']['has']('CodeBlock'))return;const _0x4ed263=_0x452e1a['plugins']['get']('TrackChangesEditing'),_0xaa3ecc=_0x452e1a['locale'],_0x29aa0f=_0x452e1a['config']['get']('codeBlock')['languages'],_0x6fa2a4=_0x452e1a['commands']['get']('codeBlock');_0x4ed263['enableCommand']('indentCodeBlock'),_0x4ed263['enableCommand']('outdentCodeBlock'),_0x4ed263['enableCommand']('codeBlock',(_0x51fdc2,_0x3c76cc={})=>{const _0x221be7=_0x452e1a['model'],_0x1a3fc8=_0x452e1a['model']['document']['selection'],_0x56faf8=_0x3c76cc&&void 0x0!==_0x3c76cc['forceValue']?_0x3c76cc['forceValue']:!_0x6fa2a4['value'];let _0x2d725a;_0x3c76cc['language']||(_0x3c76cc['language']=_0x29aa0f[0x0]['language']),_0x2d725a=_0x56faf8?Array['from'](_0x1a3fc8['getSelectedBlocks']())['filter'](_0x4fb451=>{return Vt(_0x4fb451)||(_0x1ee256=_0x4fb451,_0x9634bd=_0x221be7['schema'],!_0x1ee256['is']('rootElement')&&!_0x9634bd['isLimit'](_0x1ee256)&&_0x9634bd['checkChild'](_0x1ee256['parent'],'codeBlock'));var _0x1ee256,_0x9634bd;}):Array['from'](_0x1a3fc8['getSelectedBlocks']())['filter'](_0x429a70=>Vt(_0x429a70));const _0xa345ad=At(_0x2d725a,_0x221be7);_0x221be7['change'](()=>{for(const _0x20714b of _0xa345ad)_0x4ed263['markBlockFormat'](_0x20714b,{'commandName':'codeBlock','commandParams':[{..._0x3c76cc,'forceValue':_0x56faf8}],'formatGroupId':'blockName'});});}),(_0x4ed263['descriptionFactory']['registerElementLabel']('codeBlock',_0x4ea1d7=>St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',_0x4ea1d7)),_0x4ed263['descriptionFactory']['registerDescriptionCallback'](_0x184121=>{if('formatBlock'!=_0x184121['type'])return;const _0x512c59=_0xaa3ecc['t'],{data:_0x43ceb4}=_0x184121;if(!_0x43ceb4||'codeBlock'!=_0x43ceb4['commandName'])return;const _0x484c66=_0x43ceb4['commandParams'][0x0]['language'],_0x164601=_0x512c59(_0x29aa0f['find'](_0x50cfd8=>_0x50cfd8['language']===_0x484c66)['label'])['toLowerCase']();return _0x43ceb4['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0xaa3ecc,'*Set\x20format:*\x20%0',St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x164601+')')}:{'type':'format','content':St(_0xaa3ecc,'*Remove\x20format:*\x20%0',St(_0xaa3ecc,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x6c2c5b){return'codeBlock'==_0x6c2c5b['name'];}var Wt=class extends _0x413c81{['afterInit'](){const _0x57b926=this['editor'];_0x57b926['plugins']['has']('CommentsEditing')&&_0x57b926['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x413c81{static get['requires'](){return[ht];}['init'](){const _0x597f5d=this['editor'],_0x198a8c=_0x597f5d['plugins']['get']('TrackChangesEditing');_0x198a8c['enableCommand']('delete');const _0x5174ae=_0x597f5d['commands']['get']('deleteForward');_0x198a8c['enableCommand']('deleteForward',(_0xd8bc0e,_0x2b0756={})=>{const _0xda19ce=_0x597f5d['model']['createSelection'](_0x597f5d['model']['document']['selection']);_0xda19ce['isCollapsed']&&_0x597f5d['model']['modifySelection'](_0xda19ce,{'direction':'forward','unit':_0x2b0756['unit']});const _0x4ef894=_0xda19ce['getFirstRange'](),_0xc2c024=rt['fromRange'](_0x4ef894);let _0x101028;_0xd8bc0e(_0x2b0756),_0x101028='$graveyard'==_0xc2c024['root']['rootName']?_0x597f5d['model']['createRange'](_0x4ef894['start']):_0x597f5d['model']['createRange'](_0xc2c024['start'],_0xc2c024['end']),_0xc2c024['detach'](),_0x597f5d['model']['enqueueChange'](_0x5174ae['buffer']['batch'],_0x509b3d=>{_0x5174ae['buffer']['lock'](),_0x509b3d['setSelection'](_0x509b3d['createRange'](_0x101028['end'])),_0x5174ae['buffer']['unlock']();});});}},Kt=class extends _0x413c81{['afterInit'](){const _0x354246=this['editor'];if(!_0x354246['plugins']['has']('ListEditing'))return;const _0x3b22f8=_0x354246['locale'],_0x128a63=_0x354246['plugins']['get']('TrackChangesEditing'),_0x361759=_0x354246['plugins']['has']('TodoListEditing'),_0x10014a=!!_0x354246['config']['get']('list.multiBlock');function _0x377431(_0x47f9f6){return{'type':'format','content':''+St(_0x3b22f8,'*Set\x20format:*\x20%0',_0x47f9f6)};}function _0x1fc211(_0x43ce02){return{'type':'format','content':''+St(_0x3b22f8,'*Remove\x20format:*\x20%0',_0x43ce02)};}_0x128a63['enableDefaultAttributesIntegration']('numberedList'),_0x128a63['enableDefaultAttributesIntegration']('bulletedList'),_0x128a63['enableDefaultAttributesIntegration']('customNumberedList'),_0x128a63['enableDefaultAttributesIntegration']('customBulletedList'),_0x128a63['enableDefaultAttributesIntegration']('indentList'),_0x128a63['enableDefaultAttributesIntegration']('outdentList'),_0x128a63['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x128a63['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x10014a&&(_0x128a63['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x128a63['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x361759&&(_0x128a63['enableDefaultAttributesIntegration']('todoList'),_0x128a63['enableDefaultAttributesIntegration']('checkTodoList'),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x428524=>{const {data:_0xab291}=_0x428524;if(_0xab291&&'todoListChecked'==_0xab291['key'])return{'type':'format','content':_0xab291['newValue']?St(_0x3b22f8,'*Check\x20item*'):St(_0x3b22f8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x98fd01=>{if(_0x98fd01['batch']['isUndo'])return!0x1;let _0x1fb72b=!0x1;const _0x5495c9=_0x128a63['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35ed53=>'todoListChecked'===_0x128a63['_getAttributeKey'](_0x35ed53));for(const _0x3b16c4 of _0x5495c9)'todo'!=_0x3b16c4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x128a63['_findSuggestions'](_0x3b16c4['getFirstRange'](),'attribute')['find'](_0x306042=>'listType'===_0x128a63['_getAttributeKey'](_0x306042['suggestion']))||(_0x98fd01['removeMarker'](_0x3b16c4['getFirstMarker']()),_0x1fb72b=!0x0));return _0x1fb72b;})),_0x128a63['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x3b22f8,'FORMAT_INDENT'));const _0x2b1400={'type':'format','content':''};_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x8b0d67=>{const {data:_0x38372e}=_0x8b0d67;if(!_0x38372e||'listType'!=_0x38372e['key'])return;let _0x541c6f=_0x8b0d67['head'];for(;_0x541c6f;){if(_0x541c6f['data']&&(('listStyle'==_0x541c6f['data']['key']||'listMarkerStyle'==_0x541c6f['data']['key'])&&(_0x541c6f['data']['newValue']&&'default'!=_0x541c6f['data']['newValue']||'default'!=_0x541c6f['data']['oldValue']&&!_0x38372e['newValue'])||!_0x10014a&&'$elementName'==_0x541c6f['data']['key']))return _0x2b1400;_0x541c6f=_0x541c6f['next'];}if(null==_0x38372e['newValue'])switch(_0x38372e['oldValue']){case'bulleted':return _0x1fc211(St(_0x3b22f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1fc211(St(_0x3b22f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1fc211(St(_0x3b22f8,'ELEMENT_TODO_LIST'));}switch(_0x38372e['newValue']){case'bulleted':return _0x377431(St(_0x3b22f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x377431(St(_0x3b22f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x377431(St(_0x3b22f8,'ELEMENT_TODO_LIST'));}}),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x29ec3f=>{const {data:_0x4cc3bc}=_0x29ec3f;if(_0x4cc3bc&&'listIndent'==_0x4cc3bc['key'])return null==_0x4cc3bc['newValue']||null==_0x4cc3bc['oldValue']&&0x0==_0x4cc3bc['newValue']?_0x2b1400:void 0x0;}),_0x128a63['descriptionFactory']['registerDescriptionCallback'](_0x34df05=>{if('attribute'!=_0x34df05['type'])return;const {data:_0x314674}=_0x34df05;if(!_0x314674||'listItemId'!=_0x314674['key'])return;const _0x359be7=zt(_0x34df05);return'newValue'==_0x359be7?{'type':'format','content':St(_0x3b22f8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x359be7?{'type':'format','content':St(_0x3b22f8,'*Split:*\x20list\x20item')}:_0x2b1400;}),_0x354246['model']['document']['registerPostFixer'](_0x225a7a=>this['listItemIdFixer'](_0x225a7a)),_0x354246['model']['document']['registerPostFixer'](_0x2c747e=>this['noTrackChangesFixer'](_0x2c747e)),_0x354246['model']['document']['on']('change:data',(_0x16774c,_0x2ccdad)=>{if(_0x2ccdad['isUndo']||!_0x2ccdad['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2d7239){if(_0x2d7239['batch']['isUndo']||!_0x2d7239['batch']['isLocal'])return!0x1;let _0x3ca716=!0x1;const _0x355a43=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd56ed0=>_0xd56ed0['data']&&'listItemId'==_0xd56ed0['data']['key'])['filter'](_0x453321=>_0x453321['data']['newValue']&&_0x453321['data']['oldValue']);for(const _0x1faaff of _0x355a43)zt(_0x1faaff)||(_0x2d7239['removeMarker'](_0x1faaff['getFirstMarker']()),_0x3ca716=!0x0);return _0x3ca716;}['noTrackChangesFixer'](_0xa245b0){if(_0xa245b0['batch']['isUndo']||!_0xa245b0['batch']['isLocal'])return!0x1;const _0x3368af=this['editor']['model']['document']['differ'],_0x8556e3=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x8556e3['trackChangesCommand']['value'])return!0x1;let _0x1464b4=!0x1;const _0x5669e4=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x5f0ea7=_0x3368af['getChanges']()['filter'](_0x1f158f=>'attribute'==_0x1f158f['type'])['filter'](_0x5bc7ad=>_0x5669e4['has'](_0x5bc7ad['attributeKey']));if(0x0==_0x5f0ea7['length'])return _0x1464b4;const _0x360ebb=new Set(_0x3368af['getMarkersToAdd']()['filter'](_0x10fb55=>{if(!_0x10fb55['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3142f7=tt(_0x10fb55['name'])['subType']['split']('|')[0x0];return _0x5669e4['has'](_0x3142f7);})['map'](_0x71813f=>tt(_0x71813f['name'])['id']));for(const _0x589c8c of _0x5f0ea7){const _0x30e95a=_0x8556e3['_findSuggestions'](_0x589c8c['range'],'attribute')['filter'](_0xeba929=>{if(_0xeba929['meta']['isNextTo'])return!0x1;if(_0x360ebb['has'](_0xeba929['suggestion']['id']))return!0x1;const _0x539e5e=_0x8556e3['_getAttributeKey'](_0xeba929['suggestion']);return _0x5669e4['has'](_0x539e5e);})['map'](_0x231f8f=>_0x231f8f['suggestion']);if(_0x30e95a['length']){for(const _0x1b17d9 of _0x30e95a)_0xa245b0['removeMarker'](_0x1b17d9['getFirstMarker']());_0x1464b4=!0x0;}}return _0x1464b4;}['assureChains'](){const _0x58aad9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230911=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x5e6b26;const _0x2e2f9e=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16f39e=>{if(_0x16f39e['data']['oldRange']||!_0x16f39e['data']['newRange'])return null;if(!_0x16f39e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xc94aaa}=tt(_0x16f39e['name']);if(!_0x58aad9['hasSuggestion'](_0xc94aaa))return null;const _0x1297f9=_0x58aad9['getSuggestion'](_0xc94aaa);return _0x230911['includes'](_0x1297f9['data']['key']);})['map'](_0x3af639=>{const {id:_0x222b27}=tt(_0x3af639['name']),_0x576e39=_0x58aad9['getSuggestion'](_0x222b27);return _0x5e6b26=_0x576e39['attributes']['groupId'],_0x576e39['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2e2f9e['size'])return;const _0x3a07a0=_0x58aad9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4812c0=>'attribute'==_0x4812c0['type']&&_0x4812c0['data']&&_0x230911['includes'](_0x4812c0['data']['key'])&&_0x4812c0['attributes']['groupId']!=_0x5e6b26)['map'](_0x20e7e1=>({'listItem':_0x20e7e1['getFirstRange']()['start']['nodeAfter'],'groupId':_0x20e7e1['attributes']['groupId']})),_0x20348a=new Set();for(const {groupId:_0x487011,listItem:_0x3e3732}of _0x3a07a0)_0x2e2f9e['has'](_0x3e3732)&&_0x20348a['add'](_0x487011);for(const _0x1e3908 of _0x58aad9['getSuggestions']())_0x20348a['has'](_0x1e3908['attributes']['groupId'])&&_0x1e3908['setAttribute']('groupId',_0x5e6b26);}['_supportLegacySuggestions'](){const _0x5bb85a=this['editor'],_0x533267=_0x5bb85a['locale'],_0x54aaf8=_0x5bb85a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54aaf8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5c1e14,_0x141d8c){const _0x13105c=[];for(let _0x51460a of _0x5c1e14)_0x51460a['start']['nodeAfter']===_0x51460a['end']['parent']&&(_0x51460a=_0x5bb85a['model']['createRange'](_0x5bb85a['model']['createPositionAt'](_0x51460a['start']['nodeAfter'],0x0))),_0x13105c['push'](_0x51460a);_0x5bb85a['model']['change'](_0x3c8883=>{const _0x45fb96=_0x5bb85a['model']['document']['selection'],_0xf0e8ae=Array['from'](_0x45fb96['getRanges']())['map'](_0x362cbc=>rt['fromRange'](_0x362cbc));_0x3c8883['setSelection'](_0x13105c),_0x5bb85a['commands']['get'](_0x141d8c['commandName'])['refresh'](),_0x141d8c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5bb85a['execute'](_0x141d8c['commandName'],..._0x141d8c['commandParams']),_0x3c8883['setSelection'](_0xf0e8ae);for(const _0x4f1c34 of _0xf0e8ae)_0x4f1c34['detach']();});}),_0x54aaf8['descriptionFactory']['registerElementLabel'](function(_0x30392f){const _0x5f1bb0=!_0x5bb85a['model']['schema']['isObject'](_0x30392f),_0x18c529=_0x30392f['previousSibling'],_0x494d46=_0x30392f['nextSibling'],_0x27e819=_0x30392f['getAttribute']('listItemId'),_0x497c29=!_0x18c529||_0x18c529['getAttribute']('listItemId')!==_0x27e819,_0x592f4d=!_0x494d46||_0x494d46['getAttribute']('listItemId')!==_0x27e819;return _0x5f1bb0&&Boolean(_0x27e819)&&_0x497c29&&_0x592f4d;},_0x51a5d2=>St(_0x533267,'ELEMENT_LIST_ITEM',_0x51a5d2));}['_registerLegacyDescription'](){const _0x18b57b=this['editor'],_0x5a20b2=_0x18b57b['locale'];function _0x589b19(_0x579147){const _0x5cc7aa=_0x18b57b['commands']['get']('bulletedList')['value'],_0x380d35=_0x18b57b['commands']['get']('numberedList')['value'];return'numberedList'===_0x579147?_0x5cc7aa:_0x380d35;}_0x18b57b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x8df2ae){if('formatBlock'!=_0x8df2ae['type'])return;const {data:_0x1c65d7}=_0x8df2ae;if(!_0x1c65d7)return;let _0x1b9d0a,_0x1ef115,_0x43b7ee,_0x136b8d;switch(_0x1c65d7['commandName']){case'bulletedList':_0x43b7ee=_0x1c65d7['commandParams'][0x0]['forceValue'],_0x136b8d=_0x589b19(_0x1c65d7['commandName']),_0x1b9d0a=_0x43b7ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136b8d&&_0x18b57b['config']['get']('list.multiBlock')||(_0x1b9d0a='*Change\x20to:*\x20%0'),_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x43b7ee=_0x1c65d7['commandParams'][0x0]['forceValue'],_0x136b8d=_0x589b19(_0x1c65d7['commandName']),_0x1b9d0a=_0x43b7ee?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x136b8d&&_0x18b57b['config']['get']('list.multiBlock')||(_0x1b9d0a='*Change\x20to:*\x20%0'),_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1b9d0a='*Indent:*\x20%0',_0x1ef115={'type':'format','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1b9d0a=function(_0x290a6b){const _0x52598b=_0x290a6b['getFirstRange']();let _0x32b9d7=_0x52598b['start']['nodeAfter'];for(;_0x32b9d7&&_0x52598b['containsItem'](_0x32b9d7);){if(_0x32b9d7['getAttribute']('listIndent')>0x0)return!0x1;_0x32b9d7=_0x32b9d7['nextSibling'];}return!0x0;}(_0x8df2ae)?St(_0x5a20b2,'*Format:*\x20remove\x20from\x20%0',St(_0x5a20b2,function(_0x120b81){return'ELEMENT_'+_0x120b81['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x8df2ae))):St(_0x5a20b2,'*Outdent:*\x20%0',St(_0x5a20b2,'ELEMENT_LIST_ITEM')),_0x1ef115={'type':'format','content':_0x1b9d0a};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1c65d7['multipleBlocks']&&(_0x1b9d0a='*Merge:*\x20%0',_0x1ef115={'type':'deletion','content':St(_0x5a20b2,_0x1b9d0a,St(_0x5a20b2,'ELEMENT_LIST_ITEM'))});}return _0x1ef115;});}};function zt(_0x2da1f7){let _0x11972a=_0x2da1f7['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x11972a;){const _0x5cd14a=_0x11972a['getAttribute']('listItemId');if(!_0x5cd14a)return!0x1;if(_0x5cd14a==_0x2da1f7['data']['newValue'])return'newValue';if(_0x5cd14a==_0x2da1f7['data']['oldValue'])return'oldValue';_0x11972a=_0x11972a['previousSibling'];}return!0x1;}var Xt=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x346b6d=this['editor']['config']['get']('list.properties'),_0x302aa0=this['editor']['plugins']['get']('TrackChangesEditing');_0x346b6d['styles']&&_0x302aa0['enableDefaultAttributesIntegration']('listStyle'),_0x346b6d['reversed']&&_0x302aa0['enableDefaultAttributesIntegration']('listReversed'),_0x346b6d['startIndex']&&_0x302aa0['enableDefaultAttributesIntegration']('listStart');const _0x5cd86c={'type':'format','content':''};_0x302aa0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x55274d=this['editor']['locale'];_0x302aa0['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x55274d,'FORMAT_LIST_REVERSED')),_0x302aa0['descriptionFactory']['registerDescriptionCallback'](_0x4a293a=>{const {data:_0x1046b1}=_0x4a293a;if(_0x1046b1&&'listReversed'==_0x1046b1['key'])return null==_0x1046b1['newValue']||0x0==_0x1046b1['newValue']&&null==_0x1046b1['oldValue']?_0x5cd86c:void 0x0;}),_0x302aa0['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x55274d,'FORMAT_LIST_START')),_0x302aa0['descriptionFactory']['registerDescriptionCallback'](_0x541da0=>{const {data:_0x5781fd}=_0x541da0;if(_0x5781fd&&'listStart'==_0x5781fd['key'])return null==_0x5781fd['newValue']||0x1==_0x5781fd['newValue']&&null==_0x5781fd['oldValue']?_0x5cd86c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x11705=>{if(_0x11705['batch']['isUndo'])return!0x1;let _0xd611ea=!0x1;const _0xa5adba=_0x302aa0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c763c=>{const _0x337ad4=_0x302aa0['_getAttributeKey'](_0x5c763c);return'listStart'==_0x337ad4||'listReversed'==_0x337ad4;});for(const _0x105f77 of _0xa5adba){const _0x31b21d=_0x105f77['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x31b21d&&'customNumbered'!=_0x31b21d&&(_0x302aa0['_findSuggestions'](_0x105f77['getFirstRange'](),'attribute')['find'](_0x23d28f=>'listType'==_0x302aa0['_getAttributeKey'](_0x23d28f['suggestion']))||(_0x11705['removeMarker'](_0x105f77['getFirstMarker']()),_0xd611ea=!0x0));}return _0xd611ea;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x23c779){const _0x5e2404=this['editor']['locale'],{data:_0x1ab041}=_0x23c779,_0x46063c={'type':'format','content':''};if(!_0x1ab041||'listStyle'!=_0x1ab041['key'])return;if(!_0x1ab041['oldValue'])return'default'==_0x1ab041['newValue']?_0x46063c:{'type':'format','content':''+St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['newValue'])))};if(!_0x1ab041['newValue']){if('default'==_0x1ab041['oldValue'])return _0x46063c;let _0x4e251f=_0x23c779['head'];for(;_0x4e251f;){if(_0x4e251f['data']&&'listType'==_0x4e251f['data']['key']&&_0x4e251f['data']['newValue'])return _0x46063c;_0x4e251f=_0x4e251f['next'];}return{'type':'format','content':''+St(_0x5e2404,'*Remove\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['oldValue'])))};}if('default'!=_0x1ab041['newValue'])return{'type':'format','content':''+St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,this['_getTranslationKeyForListStyle'](_0x1ab041['newValue'])))};let _0x5d2e51=_0x23c779['head'];for(;_0x5d2e51;){if(_0x5d2e51['data']&&'listType'==_0x5d2e51['data']['key']&&_0x5d2e51['data']['newValue']&&_0x5d2e51['data']['oldValue'])return _0x46063c;_0x5d2e51=_0x5d2e51['next'];}return{'type':'format','content':St(_0x5e2404,'*Set\x20format:*\x20%0',St(_0x5e2404,'ELEMENT_'+_0x23c779['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x348ef1=this['editor'],_0x4e1b41=_0x348ef1['locale'];_0x348ef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a3911=>{if('formatBlock'!=_0x1a3911['type'])return;const {data:_0x25b26b}=_0x1a3911;if(!_0x25b26b)return;let _0x1ec94d,_0x20ea69;switch(_0x25b26b['commandName']){case'listStyle':_0x1ec94d='*Change\x20to:*\x20%0',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d,St(_0x4e1b41,this['_getTranslationKeyForListStyle'](_0x25b26b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ec94d=_0x25b26b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d)};break;case'listStart':_0x1ec94d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x20ea69={'type':'format','content':St(_0x4e1b41,_0x1ec94d,_0x25b26b['commandParams'][0x0]['startIndex'])};}return _0x20ea69;});}['_getTranslationKeyForListStyle'](_0x148200){return'ELEMENT_'+(_0x295c89=_0x148200,qt['includes'](_0x295c89)?'bulleted':Yt['includes'](_0x295c89)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x148200['toUpperCase']()['replace'](/-/g,'_');var _0x295c89;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x413c81{['afterInit'](){const _0x3a41ac=this['editor'];_0x3a41ac['commands']['get']('emoji')&&_0x3a41ac['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x413c81{static get['requires'](){return[ft];}['init'](){const _0x367fef=this['editor'],_0x17bc4b=_0x367fef['plugins']['get']('TrackChangesEditing'),_0x243286=_0x367fef['commands']['get']('enter');_0x17bc4b['enableCommand']('enter',()=>{_0x367fef['model']['change'](_0x325abd=>{const _0x3c5ebb=_0x367fef['model']['document']['selection'],_0x562b3a=_0x3c5ebb['getFirstPosition'](),_0x3472e5=rt['fromRange'](_0x3c5ebb['getFirstRange']());if(_0x243286['enterBlock'](_0x325abd)){const _0x4b292f=_0x367fef['model']['createPositionAt'](_0x562b3a['parent']['nextSibling'],0x0),_0x213ea3=_0x325abd['createRange'](_0x562b3a,_0x4b292f);_0x17bc4b['markInsertion'](_0x213ea3);}else _0x325abd['setSelection'](_0x325abd['createRange'](_0x3472e5['end']));_0x3472e5['detach'](),_0x243286['fire']('afterExecute',{'writer':_0x325abd});});});}},Jt=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x339353=this['editor']['plugins']['get']('TrackChangesEditing');_0x339353['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x339353['enableCommand']('findNext'),_0x339353['enableCommand']('findPrevious'),_0x339353['enableCommand']('replace'),_0x339353['enableCommand']('replaceAll');}['handleFindCommand'](_0x2042d0,_0x4eb261,_0x3c7d00={}){const _0x2368bb=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2042d0(_0x418aea=>{let _0x4287f3=('string'==typeof _0x4eb261?_0x2368bb['findByTextCallback'](_0x4eb261,_0x3c7d00):_0x4eb261)(_0x418aea);Array['isArray'](_0x4287f3)&&(_0x4287f3={'results':_0x4287f3,'searchText':'string'==typeof _0x4eb261?_0x4eb261:''});const _0x2ab6d0=_0x4287f3['results']['filter'](_0x3ed5af=>!0x1===this['_isInDeletionRange'](_0x3ed5af,_0x418aea['item']));return{..._0x4287f3,'results':_0x2ab6d0};},_0x3c7d00);}['_isInDeletionRange'](_0x4bef30,_0x1169b9){const _0x7ad33c=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1169b9,_0x4bef30['start']),this['editor']['model']['createPositionAt'](_0x1169b9,_0x4bef30['end']));for(const _0x27aac6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x7ad33c['getIntersection'](_0x27aac6['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x413c81{['afterInit'](){const _0x49f886=this['editor']['locale'],_0x343115=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x253305,commandName:_0x58e328}of te)this['editor']['plugins']['has'](_0x253305)&&_0x343115['enableDefaultAttributesIntegration'](_0x58e328);_0x343115['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x49f886,'FORMAT_FONT_SIZE')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x49f886,'FORMAT_FONT_FAMILY')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x49f886,'FORMAT_FONT_COLOR')),_0x343115['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x49f886,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ca824=this['editor'],_0x3b2b1c=_0x4ca824['locale'];_0x4ca824['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38e341=>{const _0x1700d5=_0x3b2b1c['t'];if('formatInline'!=_0x38e341['type'])return;const {data:_0x5cd6f3}=_0x38e341;if(null!=_0x5cd6f3){if('fontSize'==_0x5cd6f3['commandName']){const _0x4f1680=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x4f1680){const _0x4a9027=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5ed2b5=>_0x5ed2b5['model']==_0x4f1680)['title'];return{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20size:*\x20%0',_0x1700d5(_0x4a9027)['toLowerCase']())};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5cd6f3['commandName']){const _0xb7b02e=_0x5cd6f3['commandParams'][0x0]['value'];return _0xb7b02e?{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20family:*\x20%0',_0xb7b02e)}:{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5cd6f3['commandName']){const _0x381675=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x381675){const _0x3bca89=_0x5a539b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x15271c=>_0x15271c['model']==_0x381675);let _0x442fd1=_0x381675,_0xb71d8f='';return _0x3bca89&&(_0x442fd1=_0x3bca89['label'],_0xb71d8f=_0x1700d5(_0x442fd1)['toLowerCase']()),{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20color:*\x20%0',_0xb71d8f)['trim'](),'color':{'value':_0x381675,'title':_0xb71d8f||_0x442fd1}};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5cd6f3['commandName']){const _0x4eb5dc=_0x5cd6f3['commandParams'][0x0]['value'];if(_0x4eb5dc){const _0x183f19=_0x5a539b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x42c5d6=>_0x42c5d6['model']==_0x4eb5dc);let _0x3b4c2e=_0x4eb5dc,_0x1d53ef='';return _0x183f19&&(_0x3b4c2e=_0x183f19['label'],_0x1d53ef=_0x1700d5(_0x3b4c2e)['toLowerCase']()),{'type':'format','content':St(_0x3b2b1c,'*Set\x20font\x20background\x20color:*\x20%0',_0x1d53ef)['trim'](),'color':{'value':_0x4eb5dc,'title':_0x1d53ef||_0x3b4c2e}};}return{'type':'format','content':St(_0x3b2b1c,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x413c81{['afterInit'](){const {plugins:_0x1ca38b}=this['editor'];_0x1ca38b['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x1ca38b['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x714997,plugins:_0x41fbc7,commands:_0xc8b3ce}=this['editor'],_0x2b02e1=_0x41fbc7['get']('TrackChangesEditing');_0xc8b3ce['get']('footnotesStyle')&&_0x2b02e1['enableDefaultAttributesIntegration']('footnotesStyle'),_0xc8b3ce['get']('footnotesStart')&&_0x2b02e1['enableDefaultAttributesIntegration']('footnotesStart'),_0x2b02e1['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0x714997,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2b02e1['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0x714997,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5220c3=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5a3813,commands:_0x2701b5}=this['editor'];_0x2701b5['get']('insertFootnote')&&_0x5220c3['enableCommand']('insertFootnote'),_0x5220c3['descriptionFactory']['registerElementLabel']('footnoteRef',_0x5f2f08=>St(_0x5a3813,'ELEMENT_FOOTNOTE_REF',_0x5f2f08)),_0x5220c3['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x47f513=>St(_0x5a3813,'ELEMENT_FOOTNOTE_DEFINITION',_0x47f513)),_0x5220c3['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1a5a8e=>St(_0x5a3813,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1a5a8e));}},ie=class extends _0x413c81{['afterInit'](){const _0x59c5ed=this['editor'],_0x31626e=_0x59c5ed['plugins']['get']('TrackChangesEditing'),_0x49bf8d=_0x59c5ed['commands']['get']('copyFormat'),_0x59ee7d=_0x59c5ed['commands']['get']('pasteFormat');_0x49bf8d&&_0x59ee7d&&(_0x31626e['enableDefaultAttributesIntegration']('pasteFormat'),_0x31626e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x22c38f=this['editor'],_0x575a14=_0x22c38f['locale'];_0x22c38f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1eb618=>{if('formatBlock'!=_0x1eb618['type']&&'formatInline'!=_0x1eb618['type'])return;const {data:_0x377386}=_0x1eb618;if(_0x377386&&'pasteFormat'===_0x377386['commandName']){const _0x5a9494=[],_0x1ecca8=_0x377386['commandParams'][0x0];for(const [_0x346f4a,_0x3bbc49]of Object['entries'](_0x1ecca8))_0x5a9494['push'](se(_0x22c38f,_0x346f4a,_0x3bbc49));return _0x5a9494['length']?{'type':'format','content':St(_0x575a14,'*Set\x20format\x20to:*\x20%0',_0x5a9494['join'](',\x20'))}:{'type':'format','content':St(_0x575a14,'*Remove\x20all\x20formatting*')};}});}};function se(_0x5e46b3,_0x545edb,_0x4f204a){const _0x47481a=_0x5e46b3['locale']['t'],_0x147bfd=_0x545edb['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b589c=_0x47481a(_0x147bfd['charAt'](0x0)['toUpperCase']()+_0x147bfd['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4f204a)return _0x5b589c;if('fontColor'===_0x545edb||'fontBackgroundColor'===_0x545edb){const _0x8a2109=_0x5a539b(_0x5e46b3['config']['get']('fontColor.colors'))['find'](_0x168a09=>_0x168a09['model']==_0x4f204a);return _0x5b589c+'\x20('+(_0x8a2109?_0x47481a(_0x8a2109['label'])['toLowerCase']():_0x4f204a)+')';}if('fontSize'===_0x545edb&&isNaN(parseFloat(_0x4f204a))){const _0x2ccdfb=_0x5e46b3['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e46b3['config']['get']('fontSize.options'))['find'](_0x1fe41c=>_0x1fe41c['model']==_0x4f204a);return _0x5b589c+'\x20('+(_0x2ccdfb?_0x47481a(_0x2ccdfb['title'])['toLowerCase']():_0x4f204a)+')';}return _0x5b589c+'\x20('+_0x4f204a+')';}var re=class extends _0x413c81{['afterInit'](){const _0x5cafc7=this['editor'];if(!_0x5cafc7['plugins']['has']('GeneralHtmlSupport')||!_0x5cafc7['plugins']['has']('DataSchema'))return;const _0x2dad91=_0x5cafc7['plugins']['get']('TrackChangesEditing'),_0x9f5db5=_0x5cafc7['plugins']['get']('GeneralHtmlSupport'),_0x51b5fe=_0x5cafc7['plugins']['get']('DataSchema'),_0x36f3d4=_0x5cafc7['locale'],_0x1615c8=new Set(['htmlContent']);for(const _0x16965c of _0x51b5fe['getDefinitionsForView'](/.*/,!0x1)){const _0x4a37aa=_0x16965c['view'],_0x30cd54=_0x9f5db5['getGhsAttributeNameForElement'](_0x4a37aa);_0x1615c8['add'](_0x30cd54),!_0x16965c['isInline']||_0x16965c['isObject']||'appliesToBlock'in _0x16965c&&_0x16965c['appliesToBlock']||_0x2dad91['descriptionFactory']['registerAttributeLabel'](_0x30cd54,_0x4a37aa),_0x16965c['model']['startsWith']('html')&&_0x2dad91['descriptionFactory']['registerElementLabel'](_0x16965c['model'],_0x1311a5=>St(_0x36f3d4,'ELEMENT_HTML_TAG',[_0x1311a5,_0x4a37aa]));}_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x36f3d4,'FORMAT_RAW_HTML_CONTENT')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x36f3d4,'FORMAT_HTML_LIST_ITEM')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x36f3d4,'FORMAT_HTML_BULLETED_LIST')),_0x2dad91['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x36f3d4,'FORMAT_HTML_NUMBERED_LIST')),_0x2dad91['descriptionFactory']['registerDescriptionCallback'](_0x4596a3=>{if('attribute'!==_0x4596a3['type'])return;const _0x48c7bc=_0x4596a3['data'];if(!_0x48c7bc||!_0x1615c8['has'](_0x48c7bc['key']))return;if('htmlContent'===_0x48c7bc['key'])return{'type':'format','content':St(_0x36f3d4,'*Change\x20%0\x20content*',St(_0x36f3d4,'ELEMENT_RAW_HTML'))};const {setItems:_0x15f8ee,removeItems:_0x56e675}=function(_0x281eff,_0xda271c,_0x406363){const _0x2aafd0=[],_0x53f16b=[],_0x1c3e8c=_0x281eff['styles']??{},_0x495fee=_0xda271c['styles']??{};for(const _0x132b66 of new Set([...Object['keys'](_0x1c3e8c),...Object['keys'](_0x495fee)]))_0x1c3e8c[_0x132b66]!==_0x495fee[_0x132b66]&&(void 0x0===_0x495fee[_0x132b66]?_0x53f16b['push'](_0x132b66):_0x2aafd0['push'](_0x132b66+'\x20('+_0x495fee[_0x132b66]+')'));const _0x5aedbb=St(_0x406363,'FORMAT_HTML_CLASS'),_0x29d5eb=new Set(_0x281eff['classes']??[]),_0x5b7a9f=new Set(_0xda271c['classes']??[]),_0x29eae3=[..._0x5b7a9f]['some'](_0x1aaac9=>!_0x29d5eb['has'](_0x1aaac9)),_0x1348f0=[..._0x29d5eb]['some'](_0x201772=>!_0x5b7a9f['has'](_0x201772));_0x29eae3&&_0x2aafd0['push'](_0x5aedbb),_0x1348f0&&_0x53f16b['push'](_0x5aedbb);const _0x1bae14=St(_0x406363,'FORMAT_HTML_ATTRIBUTE'),_0x5467ad=_0x281eff['attributes']??{},_0x3a5aca=_0xda271c['attributes']??{};let _0x19bda1=!0x1,_0x1bc2f3=!0x1;for(const _0x2520b4 of new Set([...Object['keys'](_0x5467ad),...Object['keys'](_0x3a5aca)]))_0x5467ad[_0x2520b4]!==_0x3a5aca[_0x2520b4]&&(void 0x0===_0x3a5aca[_0x2520b4]?_0x1bc2f3=!0x0:_0x19bda1=!0x0);return _0x19bda1&&_0x2aafd0['push'](_0x1bae14),_0x1bc2f3&&_0x53f16b['push'](_0x1bae14),{'setItems':_0x2aafd0,'removeItems':_0x53f16b};}(_0x48c7bc['oldValue']??{},_0x48c7bc['newValue']??{},_0x36f3d4);if(!_0x15f8ee['length']&&!_0x56e675['length'])return;const _0x89e7de=[];return _0x15f8ee['length']&&_0x89e7de['push'](St(_0x36f3d4,'*Set\x20format:*\x20%0',_0x15f8ee['join'](',\x20'))),_0x56e675['length']&&_0x89e7de['push'](St(_0x36f3d4,'*Remove\x20format:*\x20%0',_0x56e675['join'](',\x20'))),{'type':'format','content':_0x89e7de['join']('\x0a')};});}},oe=class extends _0x413c81{['_headingOptions'];['afterInit'](){const _0x5a3eac=this['editor'];if(!_0x5a3eac['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5a3eac['config']['get']('heading.options');const _0x26acb4=_0x5a3eac['locale'],_0x125fde=_0x5a3eac['plugins']['get']('TrackChangesEditing');_0x125fde['enableDefaultAttributesIntegration']('heading');for(const _0x5b34b8 of this['_headingOptions'])'paragraph'!=_0x5b34b8['model']&&_0x125fde['descriptionFactory']['registerElementLabel'](_0x5b34b8['model'],_0x368dc7=>{const _0x727550=this['_getHeadingLevel'](_0x5b34b8['model']);return null!==_0x727550?_0xe3d480(_0x368dc7,_0x727550):_0x153404(_0x368dc7,_0x5b34b8['title']);});function _0xe3d480(_0x6cb1fc,_0x76ac87){return St(_0x26acb4,'ELEMENT_HEADING',[_0x6cb1fc,_0x76ac87]);}function _0x153404(_0x17f9e1,_0x449dd7){return St(_0x26acb4,'ELEMENT_HEADING_CUSTOM',[_0x17f9e1,_0x449dd7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27ccb0=this['editor'],_0x51a31c=_0x27ccb0['locale'];function _0x43d651(_0x4121d9,_0x10c49c){return St(_0x51a31c,'ELEMENT_HEADING_CUSTOM',[_0x4121d9,_0x10c49c]);}_0x27ccb0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ec42d=>{if('formatBlock'!=_0x4ec42d['type'])return;const {data:_0x6163d6}=_0x4ec42d;if(_0x6163d6&&'heading'==_0x6163d6['commandName']){const _0x3a9c1e=_0x6163d6['commandParams'][0x0]['value'],_0x30aae2=this['_getHeadingLevel'](_0x3a9c1e);if(null!==_0x30aae2)return{'type':'format','content':St(_0x51a31c,'*Change\x20to:*\x20%0',(_0x4fcf33=0x1,_0x3af321=_0x30aae2,St(_0x51a31c,'ELEMENT_HEADING',[_0x4fcf33,_0x3af321])))};const _0x10d8a8=this['_headingOptions']['find'](_0xdb1ef3=>_0xdb1ef3['model']===_0x3a9c1e)['title'];return{'type':'format','content':St(_0x51a31c,'*Change\x20to:*\x20%0',_0x43d651(0x1,_0x10d8a8))};}var _0x4fcf33,_0x3af321;});}['_getHeadingLevel'](_0x38cbaa){const _0x1d31bd=_0x38cbaa['match'](/^heading(\d+)/);if(_0x1d31bd)return _0x1d31bd[0x1];const _0x3a525e=this['_headingOptions']?.['find'](_0x31477e=>_0x31477e['model']==_0x38cbaa);if(_0x3a525e&&_0x3a525e['view']){const _0x5d0530=_0x3a525e['view'],_0x28b24c=(_0x5d0530['name']??_0x5d0530)['match'](/^h(\d+)/);if(_0x28b24c)return _0x28b24c[0x1];}return null;}},ae=class extends _0x413c81{['afterInit'](){const _0x3d33b0=this['editor'];if(!_0x3d33b0['plugins']['has']('HighlightEditing'))return;const _0x42b649=_0x3d33b0['plugins']['get']('TrackChangesEditing'),_0x29d644=_0x3d33b0['locale'];_0x42b649['enableDefaultAttributesIntegration']('highlight'),_0x42b649['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x29d644,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c20c6=this['editor'],_0x1f30c7=_0x3c20c6['locale'];_0x3c20c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11d40e=>{if('formatInline'!=_0x11d40e['type'])return;const {data:_0x2d33a3}=_0x11d40e;if(_0x2d33a3&&'highlight'==_0x2d33a3['commandName']){const _0x7d3afc=_0x1f30c7['t'],_0x379051=_0x2d33a3['commandParams'][0x0]['value'];if(_0x379051){const _0x1d151e=_0x3c20c6['config']['get']('highlight.options')['find'](_0x20e9d4=>_0x20e9d4['model']==_0x379051);return{'type':'format','content':St(_0x1f30c7,'*Set\x20highlight:*\x20%0',_0x7d3afc(_0x1d151e['title'])['toLowerCase']()),'color':{'value':_0x1d151e['color'],'title':_0x1d151e['title']}};}return{'type':'format','content':St(_0x1f30c7,'*Remove\x20highlight*',St(_0x1f30c7,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x413c81{['afterInit'](){const _0x3ffb23=this['editor'];if(!_0x3ffb23['plugins']['has']('HorizontalLineEditing'))return;_0x3ffb23['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x48c24b=_0x3ffb23['plugins']['get']('TrackChangesEditing'),_0x449322=_0x3ffb23['locale'];_0x48c24b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x38d688=>St(_0x449322,'ELEMENT_HORIZONTAL_LINE',_0x38d688));}},le=class extends _0x413c81{['afterInit'](){const _0xf2c222=this['editor'];if(!_0xf2c222['plugins']['has']('HtmlEmbed'))return;const _0x4f9de7=_0xf2c222['plugins']['get']('TrackChangesEditing'),_0x4818cf=_0xf2c222['locale'];_0x4f9de7['descriptionFactory']['registerElementLabel']('rawHtml',_0x421fa6=>St(_0x4818cf,'ELEMENT_HTML_EMBED',_0x421fa6)),_0x4f9de7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4f9de7['descriptionFactory']['registerDescriptionCallback'](_0x127371=>{if('attribute'!=_0x127371['type'])return;const {data:_0x95dcc1}=_0x127371;return _0x95dcc1&&'value'==_0x95dcc1['key']&&_0x127371['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x4818cf,'*Change\x20%0\x20content*',St(_0x4818cf,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c18e2=this['editor'],_0x29c896=_0x8c18e2['locale'];_0x8c18e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53091e=>{if('formatBlock'!=_0x53091e['type'])return;const {data:_0x17d367}=_0x53091e;return _0x17d367&&'htmlEmbed'==_0x17d367['commandName']?{'type':'format','content':St(_0x29c896,'*Change\x20%0\x20content*',St(_0x29c896,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x413c81{['afterInit'](){const _0x33b93b=this['editor'];if(!_0x33b93b['plugins']['has']('ImageEditing'))return;const _0x26a079=_0x33b93b['plugins']['get']('TrackChangesEditing'),_0x1b9e95=_0x33b93b['plugins']['get']('ImageUtils'),_0x3702f4=_0x33b93b['locale'];_0x26a079['enableCommand']('insertImage'),_0x26a079['descriptionFactory']['registerElementLabel']('imageBlock',_0x36733f=>St(_0x3702f4,'ELEMENT_IMAGE',_0x36733f)),_0x26a079['descriptionFactory']['registerElementLabel']('imageInline',_0x106c45=>St(_0x3702f4,'ELEMENT_INLINE_IMAGE',_0x106c45)),_0x26a079['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x3702f4,'ELEMENT_CAPTION')),_0x33b93b['plugins']['has']('ImageUploadEditing')&&_0x26a079['enableCommand']('uploadImage'),_0x33b93b['plugins']['has']('ImageBlockEditing')&&_0x33b93b['plugins']['has']('ImageInlineEditing')&&(_0x26a079['enableCommand']('imageTypeInline',(_0x183f9a,_0xc9bc9a)=>{const _0x3acc37=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']);_0x33b93b['model']['change'](()=>{_0x26a079['markBlockFormat'](_0x3acc37,{'commandName':'imageTypeInline','commandParams':[_0xc9bc9a]},[],'convertBlockImageToInline');});}),_0x26a079['enableCommand']('imageTypeBlock',(_0x21c13d,_0x10a433)=>{_0x33b93b['model']['change'](_0x1cd568=>{let _0x45dfbf=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x756247=_0x1cd568['createRangeOn'](_0x45dfbf);const _0x1e2d77=st['fromPosition'](_0x756247['start'],'toPrevious'),_0x29e9bd=st['fromPosition'](_0x756247['end'],'toNext');_0x26a079['forceDefaultExecution'](()=>_0x21c13d(_0x10a433)),_0x45dfbf=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x756247=_0x1cd568['createRangeOn'](_0x45dfbf);const _0x3c6262=_0x1cd568['createRange'](_0x1e2d77,_0x29e9bd);_0x1e2d77['detach'](),_0x29e9bd['detach'](),_0x26a079['markBlockFormat'](_0x45dfbf,{'commandName':'imageTypeInline','commandParams':[_0x10a433]},[],'convertInlineImageToBlock'),_0x3c6262['start']['isBefore'](_0x756247['start'])&&_0x26a079['markInsertion'](_0x1cd568['createRange'](_0x3c6262['start'],_0x756247['start']),'convertInlineImageToBlock'),_0x756247['end']['isBefore'](_0x3c6262['end'])&&_0x26a079['markInsertion'](_0x1cd568['createRange'](_0x756247['end'],_0x3c6262['end']),'convertInlineImageToBlock');});}),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x26a079['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5b39e6])=>{const _0x2afb0e=_0x26a079['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x134c24=_0x5b39e6['start'],_0x507205=_0x5b39e6['end'];const _0x4f6eaf=_0x33b93b['model']['schema']['getNearestSelectionRange'](_0x134c24,'backward'),_0xa8cfce=_0x33b93b['model']['schema']['getNearestSelectionRange'](_0x507205,'forward');_0x4f6eaf['isCollapsed']&&(_0x134c24=_0x4f6eaf['start']),_0xa8cfce['isCollapsed']&&(_0x507205=_0xa8cfce['end']),_0x2afb0e([_0x33b93b['model']['createRange'](_0x134c24,_0x507205)]);}),_0x26a079['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2bbd09),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2bbd09)),_0x33b93b['plugins']['has']('ImageCaptionEditing')&&(_0x26a079['enableCommand']('toggleImageCaption',(_0x176d65,_0x420f96)=>{const _0x23845c=_0x33b93b['plugins']['get']('ImageCaptionUtils');let _0xa97683=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x4af882=_0x23845c['getCaptionFromImageModelElement'](_0xa97683);_0x33b93b['model']['change'](()=>{if(_0x4af882)return void _0x26a079['markDeletion'](_0x33b93b['model']['createRangeOn'](_0x4af882));const _0x8b8a7b=_0x1b9e95['isBlockImage'](_0xa97683);_0x176d65(_0x420f96),_0xa97683=_0x1b9e95['getClosestSelectedImageElement'](_0x33b93b['model']['document']['selection']),_0x4af882=_0x23845c['getCaptionFromImageModelElement'](_0xa97683),_0x26a079['markInsertion'](_0x33b93b['model']['createRangeOn'](_0x4af882),_0x8b8a7b?null:'imageCaption');});}),_0x26a079['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2bbd09));const _0x381fca=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31abf1(_0x3f686b,_0x339970){const _0x66664d=_0x381fca['findIndex'](({type:_0x4f2b55,subType:_0x4ca0d1})=>_0x3f686b['type']==_0x4f2b55&&_0x3f686b['subType']==_0x4ca0d1),_0x607cda=_0x381fca['findIndex'](({type:_0x5913f3,subType:_0x3d3ce6})=>_0x339970['type']==_0x5913f3&&_0x339970['subType']==_0x3d3ce6);if(_0x66664d<0x0||_0x607cda<0x0)return!0x1;const _0xa8f637=_0x3f686b['getFirstRange'](),_0x204218=_0x339970['getFirstRange']();if((0x0==_0x66664d||0x1==_0x66664d)&&0x2==_0x607cda&&_0xa8f637['isIntersecting'](_0x204218))return!0x0;if(0x2==_0x66664d&&0x3==_0x607cda){const _0x4fae6d=_0x26a079['_findSuggestions'](_0xa8f637,'insertion')['filter'](({suggestion:_0x1a4e9b,meta:_0x10d554})=>_0x10d554['isOwn']&&'convertInlineImageToBlock'==_0x1a4e9b['subType']);if(_0x4fae6d['length']>0x1&&_0x204218['end']['isEqual'](_0xa8f637['start']))return!0x0;if(0x1==_0x4fae6d['length']&&(_0xa8f637['start']['isEqual'](_0x204218['end'])||_0xa8f637['end']['isEqual'](_0x204218['start'])))return!0x0;}if(0x3==_0x66664d&&0x3==_0x607cda&&_0xa8f637['start']['isBefore'](_0x204218['start'])){const _0x4b4b52=_0xa8f637['end']['nodeAfter'],_0x173cad=_0x204218['start']['nodeBefore'];return _0x1b9e95['isBlockImage'](_0x4b4b52)&&_0x4b4b52===_0x173cad;}return!0x1;}function _0x2bbd09(_0x11e53e,_0x45e240){return _0x31abf1(_0x11e53e,_0x45e240)?[_0x11e53e,_0x45e240]:_0x31abf1(_0x45e240,_0x11e53e)?[_0x45e240,_0x11e53e]:null;}_0x33b93b['plugins']['has']('ImageResize')&&(_0x26a079['enableDefaultAttributesIntegration']('resizeImage'),_0x26a079['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x3702f4,'FORMAT_IMAGE_SIZE'))),_0x33b93b['plugins']['has']('ImageTextAlternativeEditing')&&_0x26a079['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x33b93b['plugins']['has']('PictureEditing')&&_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x18ceb5=>{if('attribute'!=_0x18ceb5['type'])return;const {data:_0x49f465}=_0x18ceb5;return _0x49f465&&'sources'==_0x49f465['key']?{'type':'format','content':''}:void 0x0;}),_0x33b93b['plugins']['has']('ImageSizeAttributes')&&_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x11cac2=>{if('attribute'!=_0x11cac2['type'])return;const {data:_0x538636}=_0x11cac2;return!_0x538636||'width'!=_0x538636['key']&&'height'!=_0x538636['key']?void 0x0:{'type':'format','content':''};}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x53b900=>{if(_0x381fca['find'](({type:_0x873262,subType:_0xeec07f})=>_0x53b900['type']==_0x873262&&_0x53b900['subType']==_0xeec07f))return _0x53b900['previous']?{}:void 0x0;}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x13eda5=>{if('insertion'==_0x13eda5['type']||'deletion'==_0x13eda5['type']){const _0x47ed5a=_0x13eda5['getContainedElement']();if(_0x47ed5a&&_0x47ed5a['is']('element','caption'))return{'type':'insertion'==_0x13eda5['type']?'addObject':'removeObject','element':_0x47ed5a,'quantity':0x1};}}),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x29065c=>'formatBlock'==_0x29065c['type']&&'convertInlineImageToBlock'==_0x29065c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29065c['type']&&'convertBlockImageToInline'==_0x29065c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x26a079['descriptionFactory']['registerDescriptionCallback'](_0x311bdf=>{if('attribute'!=_0x311bdf['type'])return;const {data:_0x4284fb}=_0x311bdf;if(!_0x4284fb||'alt'!=_0x4284fb['key'])return;const _0x59281a=_0x4284fb['newValue'];return _0x59281a?{'type':'format','content':St(_0x3702f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59281a+'\x22')}:{'type':'format','content':St(_0x3702f4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11e5d5=this['editor'],_0x27199d=_0x11e5d5['locale'];_0x11e5d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x219035=>{if('formatBlock'!=_0x219035['type']&&'formatInline'!=_0x219035['type'])return;const {data:_0x1c78a0}=_0x219035;if(_0x1c78a0){if('imageTextAlternative'==_0x1c78a0['commandName']){const _0x34b445=_0x1c78a0['commandParams'][0x0]['newValue'];return _0x34b445?{'type':'format','content':St(_0x27199d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x34b445+'\x22')}:{'type':'format','content':St(_0x27199d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1c78a0['commandName']){const _0x4d8fa8=_0x1c78a0['commandParams'][0x0]['width'];return _0x4d8fa8?{'type':'format','content':St(_0x27199d,'*Set\x20image\x20width:*\x20%0',_0x4d8fa8)}:{'type':'format','content':St(_0x27199d,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x12d84f=this['editor']['locale'],_0x49bd42=this['editor']['plugins']['get']('TrackChangesEditing');_0x49bd42['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49bd42['descriptionFactory']['registerDescriptionCallback'](_0xc65172=>{if('attribute'!=_0xc65172['type'])return;const {data:_0x5766c3}=_0xc65172;return _0x5766c3&&'src'==_0x5766c3['key']?_0x5766c3['newValue']&&_0x5766c3['oldValue']?{'type':'format','content':St(_0x12d84f,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x148e80=this['editor']['plugins']['get']('TrackChangesEditing');_0x148e80['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x148e80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x148e80['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x148e80['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc2a22a=this['editor'],_0x15c892=_0xc2a22a['locale'];_0xc2a22a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x132243=>{if('formatBlock'!=_0x132243['type']&&'formatInline'!=_0x132243['type'])return;const {data:_0x85758f}=_0x132243;return _0x85758f&&'replaceImageSource'==_0x85758f['commandName']?{'type':'format','content':St(_0x15c892,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x413c81{['afterInit'](){const _0x353770=this['editor'];if(!_0x353770['plugins']['has']('ImageStyleEditing'))return;const _0x1d35d4=_0x353770['plugins']['get']('TrackChangesEditing'),_0x21fae3=_0x353770['plugins']['get']('ImageUtils'),_0xea914c={};_0x1d35d4['enableCommand']('imageStyle',(_0x250d2f,_0x34dec0)=>{const _0x2f1eb4=_0x353770['plugins']['get']('Users')['me'],_0x4ce49a=_0x353770['commands']['get']('imageStyle');let _0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),_0x2bd22a=_0x353770['model']['createRangeOn'](_0x4ccbc6),_0x35f29f=_0x4ce49a['value'];if(_0x35f29f==_0x34dec0['value'])return;if(_0x34dec0['value']&&_0x21fae3['isInlineImage'](_0x4ccbc6)&&!_0x4ce49a['isStyleEnabled'](_0x34dec0['value']))return;const _0x498320={'commandName':'imageStyle','commandParams':[_0x34dec0],'formatGroupId':_0x1f4b16()};_0x353770['model']['change'](()=>{if(_0x1d35d4['getSuggestions']()['filter'](_0x49ca25=>_0x49ca25['isInContent']&&_0x2f1eb4==_0x49ca25['author']&&('formatBlock'==_0x49ca25['type']||'formatInline'==_0x49ca25['type'])&&('imageStylePreApply'==_0x49ca25['subType']||'imageStylePostApply'==_0x49ca25['subType'])&&_0x49ca25['getFirstRange']()['isEqual'](_0x2bd22a))['forEach'](_0x5bd952=>_0x1d35d4['discardSuggestion'](_0x5bd952['head'])),_0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),_0x2bd22a=_0x353770['model']['createRangeOn'](_0x4ccbc6),_0x4ce49a['refresh'](),_0x353770['commands']['get']('imageTypeInline')['refresh'](),_0x353770['commands']['get']('imageTypeBlock')['refresh'](),_0x35f29f=_0x4ce49a['value'],_0x35f29f!=_0x34dec0['value'])return _0x21fae3['isInlineImage'](_0x4ccbc6)&&_0x4ce49a['shouldConvertImageType'](_0x34dec0['value'],_0x4ccbc6)?(_0x250d2f({..._0x34dec0,'setImageSizes':!0x1}),_0x4ccbc6=_0x21fae3['getClosestSelectedImageElement'](_0x353770['model']['document']['selection']),void _0x1d35d4['markBlockFormat'](_0x4ccbc6,{..._0x498320,'commandReversedParams':[{'value':_0x35f29f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x21fae3['isBlockImage'](_0x4ccbc6)?_0x1d35d4['markBlockFormat'](_0x4ccbc6,_0x498320,[],'imageStylePostApply'):_0x1d35d4['markInlineFormat'](_0x2bd22a,_0x498320,'imageStylePostApply'));});});for(const _0x36137a of _0x353770['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0xea914c[_0x36137a['name']]=_0x36137a['title']['toLowerCase']();_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x253b24])=>{_0x21fae3['setImageNaturalSizeAttributes'](_0x253b24['getContainedElement']());}),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d502d,_0x1fd716)=>{_0x1d35d4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d502d,{'commandName':_0x1fd716['commandName'],'commandParams':_0x1fd716['commandReversedParams']});}),_0x1d35d4['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4e5b9f,_0x27d943){return _0x58d7ed(_0x4e5b9f,_0x27d943)?[_0x4e5b9f,_0x27d943]:_0x58d7ed(_0x27d943,_0x4e5b9f)?[_0x27d943,_0x4e5b9f]:null;});const _0x18b22f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58d7ed(_0x55e69c,_0x23739e){const _0xc8a5fb=_0x18b22f['findIndex'](({type:_0x27bdef,subType:_0xaa4457})=>_0x55e69c['type']==_0x27bdef&&_0x55e69c['subType']==_0xaa4457),_0x105d0a=_0x18b22f['findIndex'](({type:_0x100c5a,subType:_0x3bdbe3})=>_0x23739e['type']==_0x100c5a&&_0x23739e['subType']==_0x3bdbe3);if(_0xc8a5fb<0x0||_0x105d0a<0x0)return!0x1;const _0x15e508=_0x55e69c['getFirstRange'](),_0x141d5d=_0x23739e['getFirstRange']();if((0x0==_0xc8a5fb||0x1==_0xc8a5fb)&&0x2==_0x105d0a&&_0x15e508['isIntersecting'](_0x141d5d))return!0x0;if(0x2==_0xc8a5fb&&0x3==_0x105d0a){const _0x9d4631=_0x1d35d4['_findSuggestions'](_0x15e508,'insertion')['filter'](({suggestion:_0x271cdc,meta:_0x32b68b})=>_0x32b68b['isOwn']&&'convertInlineImageToBlock'==_0x271cdc['subType']);if(_0x9d4631['length']>0x1&&_0x141d5d['end']['isEqual'](_0x15e508['start']))return!0x0;if(0x1==_0x9d4631['length']&&(_0x15e508['start']['isEqual'](_0x141d5d['end'])||_0x15e508['end']['isEqual'](_0x141d5d['start'])))return!0x0;}if(0x3==_0xc8a5fb&&0x3==_0x105d0a&&_0x15e508['start']['isBefore'](_0x141d5d['start'])){const _0x2b2fe2=_0x15e508['end']['nodeAfter'],_0x44c4de=_0x141d5d['start']['nodeBefore'];return _0x21fae3['isBlockImage'](_0x2b2fe2)&&_0x2b2fe2===_0x44c4de;}return!0x1;}_0x353770['model']['document']['registerPostFixer'](()=>{let _0xabd9ed=!0x1;const _0x50dc83=Array['from'](_0x353770['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x511d50,data:_0xbb6acd}of _0x50dc83){const {group:_0x2a248b,type:_0x983529,subType:_0x4fa53e,id:_0x5e6f12}=tt(_0x511d50);if('suggestion'==_0x2a248b&&_0x1d35d4['hasSuggestion'](_0x5e6f12)){if('formatBlock'==_0x983529&&('imageStylePreApply'==_0x4fa53e||'imageStylePostApply'==_0x4fa53e)){const _0x7e31eb=_0x1d35d4['getSuggestion'](_0x5e6f12);if(_0xbb6acd['newRange']){const _0x1e888c=_0x7e31eb['getFirstRange']()['getContainedElement']();if(_0x21fae3['isBlockImage'](_0x1e888c))continue;_0x1d35d4['discardSuggestion'](_0x7e31eb),_0xabd9ed=!0x0;}}if('insertion'==_0x983529&&'imageCaption'==_0x4fa53e&&!_0xbb6acd['newRange']){const _0x5b2cf6=_0x1d35d4['getSuggestion'](_0x5e6f12);_0x5b2cf6['next']&&_0x5b2cf6['next']['isInContent']&&(_0x1d35d4['discardSuggestion'](_0x5b2cf6['next']),_0xabd9ed=!0x0);}}}return _0xabd9ed;}),this['_registerLegacyDescription'](_0xea914c);}['_registerLegacyDescription'](_0x2f2327){const _0x277f28=this['editor'],_0x189836=_0x277f28['locale'];_0x277f28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125fdf=>{if('formatBlock'!=_0x125fdf['type']&&'formatInline'!=_0x125fdf['type'])return;const {data:_0x33a51d}=_0x125fdf;if(!_0x33a51d||'imageStyle'!=_0x33a51d['commandName'])return;const _0x2a0e01=_0x33a51d['commandParams'][0x0]['value'];return _0x19606f('side'===_0x2a0e01?St(_0x189836,'FORMAT_SIDE_IMAGE'):_0x2f2327[_0x2a0e01]||_0x2a0e01);function _0x19606f(_0x1d8fa5){return{'type':'format','content':St(_0x189836,'*Format:*\x20%0',_0x1d8fa5)};}});}},ge=class extends _0x413c81{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1a7cd7){super(_0x1a7cd7),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x35312f=this['editor'],_0x1ba82c=_0x35312f['commands']['get']('importWord'),_0x3fa759=_0x35312f['commands']['get']('trackChanges');_0x1ba82c&&(_0x1ba82c['on']('execute',(_0x5b135b,[,_0x388c30])=>{this['_trackChangesValueDuringImport']=_0x3fa759['value'],_0x388c30['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1ba82c,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1ba82c,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3fa759['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x35312f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1729af,_0x5f357c){const {suggestions:_0x1d7a94}=_0x5f357c,_0x3924a5=this['editor']['commands']['get']('trackChanges'),_0x2870c8=_0x3924a5['value'];this['_trackChangesValueDuringImport']!==_0x2870c8&&(_0x3924a5['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d7a94&&_0x1d7a94['forEach'](({id:_0x316029,type:_0x124a35,author:_0x3c4986,created_at:_0x3bc109})=>{const _0x4e22db={'id':_0x316029,'type':_0x124a35,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3c4986,'createdAt':_0x3bc109?new Date(_0x3bc109):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4e22db);});}},fe=class extends _0x413c81{['afterInit'](){const _0xe9633d=this['editor'],_0x38f5d7=_0xe9633d['plugins']['get']('TrackChangesEditing');if(_0xe9633d['plugins']['has']('IndentEditing')&&(_0x38f5d7['enableCommand']('indent'),_0x38f5d7['enableCommand']('outdent')),_0xe9633d['plugins']['has']('IndentBlock')){for(const _0x284aa6 of['indentBlock','outdentBlock'])_0x38f5d7['enableDefaultAttributesIntegration'](_0x284aa6);if(_0xe9633d['plugins']['has']('ListEditing')){for(const _0x1abeb5 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x38f5d7['enableDefaultAttributesIntegration'](_0x1abeb5);}}const _0x1ec4af=_0xe9633d['locale'];_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x1ec4af,'FORMAT_INDENT')),_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x1ec4af,'FORMAT_INDENT')),_0x38f5d7['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x1ec4af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51bca5=this['editor'],_0x57e568=_0x51bca5['locale'],_0x507b67=_0x51bca5['plugins']['get']('TrackChangesEditing');_0x507b67['descriptionFactory']['registerDescriptionCallback'](_0x23c3a2=>{if('formatBlock'!=_0x23c3a2['type'])return;const {data:_0x363528}=_0x23c3a2;if(!_0x363528)return;if('indentBlock'!=_0x363528['commandName']&&'outdentBlock'!=_0x363528['commandName'])return;const _0x4615d2=_0x23c3a2['getItems']()[0x0],_0x12f42f=_0x507b67['descriptionFactory']['getItemLabel'](_0x4615d2);return'indentBlock'==_0x363528['commandName']?{'type':'format','content':St(_0x57e568,'*Indent:*\x20%0',_0x12f42f)}:'outdentBlock'==_0x363528['commandName']?{'type':'format','content':St(_0x57e568,'*Outdent:*\x20%0',_0x12f42f)}:void 0x0;});}},me=class extends _0x413c81{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x413c81{['afterInit'](){const _0x598e67=this['editor'];if(!_0x598e67['plugins']['has']('LinkEditing'))return;const _0x27f507=_0x598e67['plugins']['get']('TrackChangesEditing'),_0x143637=_0x598e67['commands']['get']('link');_0x27f507['enableDefaultAttributesIntegration']('link'),_0x27f507['enableDefaultAttributesIntegration']('unlink');for(const _0x463af8 of _0x143637['manualDecorators'])_0x27f507['descriptionFactory']['registerAttributeLabel'](_0x463af8['id'],'link\x20('+_0x463af8['label']['toLowerCase']()+')');_0x27f507['descriptionFactory']['registerDescriptionCallback'](_0x5f08da=>{if('attribute'!=_0x5f08da['type'])return;const {data:_0x576b85}=_0x5f08da;if(!_0x576b85||'linkHref'!=_0x576b85['key'])return;const _0x3df2e5=_0x576b85['newValue'],_0x5bd235=_0x598e67['locale'];return{'type':'format','content':null==_0x3df2e5?St(_0x5bd235,'*Remove\x20link*'):St(_0x5bd235,'*Set\x20link:*\x20%0','\x22'+_0x3df2e5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17a336=this['editor'],_0x1028c7=_0x17a336['locale'];_0x17a336['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8b930d=>{if('formatInline'!=_0x8b930d['type'])return;const {data:_0xef8c3}=_0x8b930d;if(_0xef8c3){if('link'==_0xef8c3['commandName']){const _0x19aeba=_0xef8c3['commandParams'][0x0];return{'type':'format','content':St(_0x1028c7,'*Set\x20link:*\x20%0','\x22'+_0x19aeba+'\x22')};}return'unlink'==_0xef8c3['commandName']?{'type':'format','content':St(_0x1028c7,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x413c81{['afterInit'](){const _0x2b2dd1=this['editor'],_0x3222c0=_0x2b2dd1['locale'];if(!_0x2b2dd1['plugins']['has']('LegacyListEditing'))return;const _0x44cb84=_0x2b2dd1['plugins']['get']('TrackChangesEditing'),_0x12dada=_0x2b2dd1['plugins']['has']('LegacyTodoListEditing');function _0x272fce(_0x139f6c){return()=>{const _0x52de18=_0x2b2dd1['model']['document']['selection'],_0x590b56=_0x2b2dd1['commands']['get'](_0x139f6c);if(_0x590b56['value'])return void _0x2b2dd1['execute']('paragraph',{});const _0x4cdb46=_0x139f6c['slice'](0x0,-0x4),_0x23e6a5=function(_0x456622,_0x27a056,_0xdf07e){let _0x1bb165=Array['from'](_0x456622)['filter'](_0x48a850=>function(_0x548081,_0x5b6a5c){return _0x5b6a5c['checkChild'](_0x548081['parent'],'listItem')&&!_0x5b6a5c['isObject'](_0x548081);}(_0x48a850,_0xdf07e));_0x1bb165=_0x1bb165['filter'](_0x50a032=>!_0x50a032['is']('element','listItem')||_0x50a032['getAttribute']('listType')!=_0x27a056);const _0x39c32f=new Set();for(const _0x95504c of _0x1bb165)_0x95504c['is']('element','listItem')?_0x39c32f['add'](_e(_0x95504c)):_0x39c32f['add'](_0x95504c);return Array['from'](_0x39c32f);}(_0x52de18['getSelectedBlocks'](),_0x4cdb46,_0x2b2dd1['model']['schema']);_0x2b2dd1['model']['change'](()=>{for(const _0x43aa8a of _0x23e6a5)_0x44cb84['markBlockFormat'](_0x43aa8a,{'commandName':_0x139f6c,'commandParams':[{'forceValue':!_0x590b56['value']}],'formatGroupId':'blockName'},pe(_0x43aa8a));});};}function _0x12c73b(_0x39196b){return()=>{const _0x14b3e0=function(_0x386d09){let _0x263acd=Array['from'](_0x386d09);const _0x501989=_0x263acd['findIndex'](_0x32de2c=>'listItem'!=_0x32de2c['name']);return _0x501989>-0x1&&(_0x263acd=_0x263acd['slice'](0x0,_0x501989)),_0x263acd;}(_0x2b2dd1['model']['document']['selection']['getSelectedBlocks']()),_0x5586a5=_0x2b2dd1['model']['createRange'](_0x2b2dd1['model']['createPositionAt'](_0x14b3e0[0x0],'before'),_0x2b2dd1['model']['createPositionAt'](_0x14b3e0[_0x14b3e0['length']-0x1],'end'));_0x2b2dd1['model']['change'](()=>{_0x44cb84['markBlockFormat'](_0x5586a5,{'commandName':_0x39196b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x39d4f4){const _0x4f5e9e=new Set();for(const _0x55a407 of _0x39d4f4){let _0x2afe2b=_0x55a407['nextSibling'];for(;_0x2afe2b&&_0x2afe2b['getAttribute']('listIndent')>_0x55a407['getAttribute']('listIndent');)_0x4f5e9e['add'](_0x2afe2b),_0x2afe2b=_0x2afe2b['nextSibling'];}return Array['from'](_0x4f5e9e);}(_0x14b3e0));});};}_0x44cb84['enableCommand']('numberedList',_0x272fce('numberedList')),_0x44cb84['enableCommand']('bulletedList',_0x272fce('bulletedList')),_0x12dada&&_0x44cb84['enableCommand']('todoList',_0x272fce('todoList')),_0x44cb84['enableCommand']('indentList',_0x12c73b('indentList')),_0x44cb84['enableCommand']('outdentList',_0x12c73b('outdentList')),_0x12dada&&_0x44cb84['enableCommand']('checkTodoList',()=>{const _0x4c89e6=_0x2b2dd1['commands']['get']('checkTodoList'),_0x1ee01e=Array['from'](_0x4c89e6['_selectedElements']);_0x1ee01e['filter'](_0x4e2143=>_0x4e2143['getAttribute']('todoListChecked')!=_0x4c89e6['value']),_0x2b2dd1['model']['change'](()=>{for(const _0x337a8d of _0x1ee01e)_0x44cb84['markBlockFormat'](_0x337a8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4c89e6['value']}]});});}),_0x44cb84['descriptionFactory']['registerElementLabel']('listItem',_0x1e20f3=>St(_0x3222c0,'ELEMENT_LIST_ITEM',_0x1e20f3)),_0x44cb84['descriptionFactory']['registerDescriptionCallback'](_0x516459=>{if('formatBlock'!=_0x516459['type']&&'formatInline'!=_0x516459['type'])return;const {data:_0x4d7056}=_0x516459;if(_0x4d7056){if('numberedList'==_0x4d7056['commandName']||'bulletedList'==_0x4d7056['commandName']||'todoList'==_0x4d7056['commandName'])switch(_0x4d7056['commandName']['replace']('List','')){case'bulleted':return _0x387436(St(_0x3222c0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x387436(St(_0x3222c0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x387436(St(_0x3222c0,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4d7056['commandName'])return{'type':'format','content':St(_0x3222c0,'*Indent:*\x20%0',St(_0x3222c0,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4d7056['commandName'])return{'type':'format','content':St(_0x3222c0,'*Outdent:*\x20%0',St(_0x3222c0,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4d7056['commandName'])return _0x4d7056['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3222c0,'*Check\x20item*')}:{'type':'format','content':St(_0x3222c0,'*Uncheck\x20item*')};}function _0x387436(_0x1ea397){return{'type':'format','content':St(_0x3222c0,'*Change\x20to:*\x20%0',_0x1ea397)};}});}};function _e(_0x3de368){const _0x18f401=_0x3de368['getAttribute']('listIndent');if(0x0==_0x18f401)return _0x3de368;let _0x3b0d93=_0x3de368;for(;_0x3de368['previousSibling']&&_0x3de368['previousSibling']['is']('element','listItem');){const _0x547234=_0x3de368['previousSibling']['getAttribute']('listIndent');if(_0x547234==_0x18f401)_0x3b0d93=_0x3de368['previousSibling'];else{if(_0x547234<_0x18f401)break;}_0x3de368=_0x3de368['previousSibling'];}return _0x3b0d93;}function pe(_0x1103e7){const _0x520a2d=[];if(_0x1103e7['is']('element','listItem')&&_0x1103e7['getAttribute']('listIndent')>0x0){let _0x4bcc2f=_0x1103e7['nextSibling'];for(;_0x4bcc2f&&'listItem'==_0x4bcc2f['name']&&_0x4bcc2f['getAttribute']('listIndent')==_0x1103e7['getAttribute']('listIndent');)_0x520a2d['push'](_0x4bcc2f),_0x4bcc2f=_0x4bcc2f['nextSibling'];}return _0x520a2d;}var Le=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x12f032=this['editor']['config']['get']('list.properties'),_0x1fd417=this['editor']['plugins']['get']('TrackChangesEditing');_0x12f032['styles']&&_0x1fd417['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x12f032['reversed']&&_0x1fd417['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x12f032['startIndex']&&_0x1fd417['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fd417['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x28d696,_0x10e22e={}){const _0x265176=this['editor']['plugins']['get']('TrackChangesEditing'),_0x826417=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x265176['markMultiRangeBlockFormat'](_0x826417,{'commandName':'listStyle','commandParams':[{'type':_0x10e22e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1384dd,_0x19ea63={}){const _0x40dfae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55ba00=this['_getSuggestionBlocks'](_0x26b958=>_0x26b958['is']('element','listItem')&&'numbered'===_0x26b958['getAttribute']('listType'));if(_0x55ba00['length']<0x1)return;const _0x9eff38=_0x55ba00['map'](_0x29d2ad=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29d2ad,'before'),this['editor']['model']['createPositionAt'](_0x29d2ad,0x0)));this['editor']['model']['change'](()=>{_0x40dfae['markMultiRangeBlockFormat'](_0x9eff38,{'commandName':'listReversed','commandParams':[{'reversed':_0x19ea63['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc9f1c3,_0x5852b6={}){const _0x375991=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ab38=this['_getSuggestionBlocks'](_0x1d1455=>_0x1d1455['is']('element','listItem')&&'numbered'===_0x1d1455['getAttribute']('listType'));if(_0x31ab38['length']<0x1)return;const _0x53f0c2=_0x31ab38['map'](_0x4e3264=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e3264,'before'),this['editor']['model']['createPositionAt'](_0x4e3264,0x0)));this['editor']['model']['change'](()=>{_0x375991['markMultiRangeBlockFormat'](_0x53f0c2,{'commandName':'listStart','commandParams':[{'startIndex':_0x5852b6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4177dc){if('formatBlock'!=_0x4177dc['type']&&'formatInline'!=_0x4177dc['type'])return;const _0x1a0eed=this['editor']['locale'],{data:_0x1c8f17}=_0x4177dc;if(!_0x1c8f17)return;let _0x442fb6,_0x216759;switch(_0x1c8f17['commandName']){case'listStyle':_0x442fb6='*Change\x20to:*\x20%0',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6,St(_0x1a0eed,this['_getTranslationKeyForListStyle'](_0x1c8f17['commandParams'][0x0]['type'])))};break;case'listReversed':_0x442fb6=_0x1c8f17['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6)};break;case'listStart':_0x442fb6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x216759={'type':'format','content':St(_0x1a0eed,_0x442fb6,_0x1c8f17['commandParams'][0x0]['startIndex'])};}return _0x216759;}['_getSuggestionBlocksForListStyle'](){const _0x61be02=this['editor']['plugins']['get']('LegacyListUtils');let _0xd1a07e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd1a07e[0x0]?.['is']('element','listItem')&&_0xd1a07e['unshift'](..._0x61be02['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd1a07e[_0xd1a07e['length']-0x1]?.['is']('element','listItem')&&_0xd1a07e['push'](..._0x61be02['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd1a07e=[...new Set(_0xd1a07e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd1a07e=_0xd1a07e['filter'](_0x2c17f1=>_0x2c17f1['is']('element','listItem'))),_0xd1a07e;}['_getSuggestionBlocks'](_0x246a33){const _0x5350d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x3e5c20=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x246a33)['map'](_0x253199=>{const _0x1eaff2=this['editor']['model']['createPositionAt'](_0x253199,0x0);return[..._0x5350d3['getSiblingNodes'](_0x1eaff2,'backward'),..._0x5350d3['getSiblingNodes'](_0x1eaff2,'forward')];})['flat']();return _0x3e5c20=[...new Set(_0x3e5c20)],_0x3e5c20;}['_getTranslationKeyForListStyle'](_0x3f49bc){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3f49bc)||'default')['toUpperCase']()+'_LIST_'+_0x3f49bc['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x413c81{['afterInit'](){const _0x546f3e=this['editor'];if(!_0x546f3e['plugins']['has']('MediaEmbedEditing'))return;const _0x1dfdf5=_0x546f3e['plugins']['get']('TrackChangesEditing'),_0x497404=_0x546f3e['locale'];_0x1dfdf5['enableCommand']('mediaEmbed'),_0x1dfdf5['descriptionFactory']['registerElementLabel']('media',_0x3a4294=>St(_0x497404,'ELEMENT_MEDIA',_0x3a4294)),_0x546f3e['plugins']['has']('MediaEmbedResizeEditing')&&(_0x1dfdf5['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x1dfdf5['descriptionFactory']['registerDescriptionCallback'](_0x4863c3=>{if('attribute'!=_0x4863c3['type'])return;const {data:_0x105326}=_0x4863c3;if(!_0x105326||'resizedWidth'!=_0x105326['key'])return;const _0x2fc0ac=_0x4863c3['getContainedElement']();return _0x2fc0ac&&_0x2fc0ac['is']('element','media')?{'type':'format','content':St(_0x497404,'*Set\x20format:*\x20%0',St(_0x497404,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x413c81{['afterInit'](){const _0x3ef7bf=this['editor'];if(!_0x3ef7bf['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x25e368=_0x3ef7bf['plugins']['get']('TrackChangesEditing'),_0x35bc6b=_0x3ef7bf['locale'],_0x1a3c09=_0x3ef7bf['plugins']['get']('MediaEmbedStyleEditing'),_0x598c1e={};for(const _0x20c343 of _0x1a3c09['normalizedStyles'])_0x598c1e[_0x20c343['name']]=_0x20c343['title']['toLowerCase']();const _0x253f94=_0x1a3c09['normalizedStyles']['find'](_0x4bbec4=>_0x4bbec4['isDefault'])?.['name'];_0x25e368['enableCommand']('mediaStyle',(_0x3b2c17,_0x28c39f)=>{const _0x5c1644=_0x3ef7bf['plugins']['get']('Users')['me'],_0x152049=_0x3ef7bf['commands']['get']('mediaStyle'),_0x454f44=function(_0x43ac54){const _0x1d8e03=_0x43ac54['model']['document']['selection']['getSelectedElement']();return _0x1d8e03&&_0x1d8e03['is']('element','media')?_0x1d8e03:null;}(_0x3ef7bf);if(!_0x454f44)return;const _0x2b4d0b=_0x3ef7bf['model']['createRangeOn'](_0x454f44);let _0x46490a=_0x152049['value'];if(_0x46490a==_0x28c39f['value'])return;const _0x2c8d09={'commandName':'mediaStyle','commandParams':[_0x28c39f],'formatGroupId':_0x1f4b16()};_0x3ef7bf['model']['change'](()=>{_0x25e368['getSuggestions']()['filter'](_0x503a7d=>_0x503a7d['isInContent']&&_0x5c1644==_0x503a7d['author']&&'formatBlock'==_0x503a7d['type']&&'mediaStylePostApply'==_0x503a7d['subType']&&_0x503a7d['getFirstRange']()['isEqual'](_0x2b4d0b))['forEach'](_0x2888c2=>_0x25e368['discardSuggestion'](_0x2888c2['head'])),_0x152049['refresh'](),_0x46490a=_0x152049['value'],_0x46490a!=_0x28c39f['value']&&_0x25e368['markBlockFormat'](_0x454f44,{..._0x2c8d09,'commandReversedParams':[{'value':'string'==typeof _0x46490a?_0x46490a:null}]},[],'mediaStylePostApply');});}),_0x25e368['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x25e368['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5502ef,_0x3747ca)=>{_0x25e368['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5502ef,{'commandName':_0x3747ca['commandName'],'commandParams':_0x3747ca['commandReversedParams']});}),_0x25e368['descriptionFactory']['registerDescriptionCallback'](_0x2bfa7b=>{if('formatBlock'!=_0x2bfa7b['type'])return;const {data:_0x3d28de}=_0x2bfa7b;if(!_0x3d28de||'mediaStyle'!=_0x3d28de['commandName'])return;const _0x442803=_0x3d28de['commandParams'][0x0]['value']||_0x253f94;return _0x442803?{'type':'format','content':St(_0x35bc6b,'*Format:*\x20%0',_0x598c1e[_0x442803]||_0x442803)}:void 0x0;});}},be=class extends _0x413c81{['afterInit'](){const _0x4b7f2d=this['editor'];_0x4b7f2d['plugins']['has']('MentionEditing')&&_0x4b7f2d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x413c81{['afterInit'](){const _0x5bf3f3=this['editor'];if(!_0x5bf3f3['plugins']['has']('MergeFieldsEditing'))return;const _0x2ac101=_0x5bf3f3['plugins']['get']('TrackChangesEditing'),_0x20abdc=_0x5bf3f3['locale'];_0x2ac101['enableCommand']('insertMergeField'),_0x2ac101['enableCommand']('insertMergeFieldBlock'),_0x2ac101['enableCommand']('insertMergeFieldImage'),_0x2ac101['descriptionFactory']['registerElementLabel']('mergeField',_0x3e5689=>St(_0x20abdc,'ELEMENT_MERGE_FIELD',_0x3e5689)),_0x2ac101['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4e9265=>St(_0x20abdc,'ELEMENT_MERGE_FIELD',_0x4e9265)),_0x2ac101['descriptionFactory']['registerDescriptionCallback'](_0x444c98=>{if('insertion'!=_0x444c98['type']&&'deletion'!=_0x444c98['type'])return;const _0xd50614=_0x444c98['getContainedElement']();if(null==_0xd50614)return;const _0x1b75b9=_0x5bf3f3['plugins']['get']('MergeFieldsEditing');let _0x51d30d;switch(_0x1b75b9['getMergeFieldType'](_0xd50614)){case null:return;case'image':{const _0x4f95e6=_0x1b75b9['unwrapAffixes'](_0xd50614['getAttribute']('src'));_0x51d30d=_0x1b75b9['getLabel'](_0x4f95e6)||_0x4f95e6;break;}default:{const _0x2c0f0e=_0xd50614['getAttribute']('id');_0x51d30d=_0x1b75b9['getLabel'](_0x2c0f0e)||_0x2c0f0e;break;}}return'insertion'==_0x444c98['type']?{'type':'insertion','content':St(_0x20abdc,'*Insert:*\x20%0','\x22'+_0x51d30d+'\x22\x20'+St(_0x20abdc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x20abdc,'*Remove:*\x20%0','\x22'+_0x51d30d+'\x22\x20'+St(_0x20abdc,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x413c81{['afterInit'](){const _0x5bf1da=this['editor'],_0x3ed436=_0x5bf1da['plugins']['get']('TrackChangesEditing');_0x5bf1da['plugins']['has']('MultiLevelList')&&(_0x3ed436['enableDefaultAttributesIntegration']('multiLevelList'),_0x3ed436['descriptionFactory']['registerDescriptionCallback'](_0x7c66ef=>this['handleDescriptions'](_0x7c66ef)));}['handleDescriptions'](_0x494b22){const _0x3a3f49=this['editor']['locale'],{data:_0x5ef4b0}=_0x494b22,_0x4f9374={'type':'format','content':''};if(_0x5ef4b0&&'listMarkerStyle'==_0x5ef4b0['key']){if(!_0x5ef4b0['oldValue'])return{'type':'format','content':St(_0x3a3f49,'*Set\x20format:*\x20%0',St(_0x3a3f49,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ef4b0['newValue']+')'};if(!_0x5ef4b0['newValue']){let _0x413ea0=_0x494b22['head'];for(;_0x413ea0;){if(_0x413ea0['data']&&'listType'==_0x413ea0['data']['key']&&_0x413ea0['data']['newValue'])return _0x4f9374;_0x413ea0=_0x413ea0['next'];}return{'type':'format','content':St(_0x3a3f49,'*Remove\x20format:*\x20%0',St(_0x3a3f49,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5ef4b0['oldValue']+')'};}}}},Re=class extends _0x413c81{['afterInit'](){const _0x12bff9=this['editor'];if(!_0x12bff9['plugins']['has']('PageBreakEditing'))return;_0x12bff9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16b557=_0x12bff9['plugins']['get']('TrackChangesEditing'),_0x5ef099=_0x12bff9['locale'];_0x16b557['descriptionFactory']['registerElementLabel']('pageBreak',_0x298d09=>St(_0x5ef099,'ELEMENT_PAGE_BREAK',_0x298d09));}},Ne=class extends _0x413c81{['afterInit'](){const _0x597c73=this['editor'];if(!_0x597c73['plugins']['has']('Paragraph'))return;const _0xa77588=_0x597c73['locale'],_0x1825ff=_0x597c73['plugins']['get']('TrackChangesEditing');_0x1825ff['descriptionFactory']['registerElementLabel']('paragraph',_0x23b376=>St(_0xa77588,'ELEMENT_PARAGRAPH',_0x23b376)),_0x1825ff['enableDefaultAttributesIntegration']('paragraph'),_0x1825ff['enableCommand']('insertParagraph');const _0x48f395=_0x1825ff['descriptionFactory'];_0x48f395['registerDescriptionCallback'](_0x2cfb1d=>{if('insertion'!==_0x2cfb1d['type'])return;const {start:_0x4a2ac4,end:_0x2d12f1}=_0x2cfb1d['getFirstRange']();if(!_0x4a2ac4['isTouching'](_0x2d12f1)||!_0x4a2ac4['nodeAfter'])return;const _0x49dbf2=_0x597c73['model']['schema'],_0x4af7a6=_0x4a2ac4['nodeAfter'];return _0x49dbf2['isBlock'](_0x4af7a6)&&!_0x49dbf2['isLimit'](_0x4af7a6)&&_0x49dbf2['checkChild'](_0x4af7a6,'$text')?{'type':'insertion','content':St(_0xa77588,'*Insert:*\x20%0',_0x48f395['getItemLabel'](_0x4af7a6,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe9d0ae=this['editor'],_0x5eb341=_0xe9d0ae['locale'];_0xe9d0ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f59a0=>{if('formatBlock'!=_0x4f59a0['type'])return;const {data:_0x1b3308}=_0x4f59a0;return _0x1b3308&&'paragraph'==_0x1b3308['commandName']?{'type':'format','content':St(_0x5eb341,'*Change\x20to:*\x20%0',St(_0x5eb341,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x413c81{['afterInit'](){const _0x5ee951=this['editor'];_0x5ee951['commands']['get']('replaceSource')&&_0x5ee951['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x413c81{['afterInit'](){const _0x3c92a7=this['editor'];_0x3c92a7['plugins']['has']('RemoveFormatEditing')&&(_0x3c92a7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3acb6e=this['editor'];_0x3acb6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb43e=>{if('formatBlock'!=_0x2cb43e['type']&&'formatInline'!=_0x2cb43e['type'])return;const {data:_0x538a9b}=_0x2cb43e;return _0x538a9b&&'removeFormat'==_0x538a9b['commandName']?{'type':'format','content':St(_0x3acb6e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x413c81{['afterInit'](){const _0x28e400=this['editor'];if(!_0x28e400['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x106ec3=_0x28e400['plugins']['get']('TrackChangesEditing');_0x106ec3['enableCommand']('goToPreviousRestrictedEditingException'),_0x106ec3['enableCommand']('goToNextRestrictedEditingException');const _0x3cf012=_0x28e400['plugins']['get']('RestrictedEditingModeEditing');_0x3cf012['enableCommand']('trackChanges'),_0x3cf012['enableCommand']('acceptSuggestion'),_0x3cf012['enableCommand']('discardSuggestion'),_0x3cf012['enableCommand']('acceptAllSuggestions'),_0x3cf012['enableCommand']('discardAllSuggestions'),_0x3cf012['enableCommand']('acceptSelectedSuggestions'),_0x3cf012['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x413c81{['afterInit'](){const _0x8fe333=this['editor'];if(!_0x8fe333['plugins']['has']('ShiftEnter'))return;const _0x41aa7e=_0x8fe333['plugins']['get']('TrackChangesEditing');_0x41aa7e['enableCommand']('shiftEnter'),_0x41aa7e['descriptionFactory']['registerElementLabel']('softBreak',_0x3cafd5=>St(_0x8fe333['locale'],'ELEMENT_LINE_BREAK',_0x3cafd5));}};function we(_0x4e028b,_0x212d3f,_0x444438){const _0x19078f=[];for(const _0x3a6809 of _0x212d3f['getItems']())_0x3a6809['hasAttribute'](_0x4e028b)&&_0x19078f['push'](_0x444438['createRangeOn'](_0x3a6809));return _0x19078f;}var Fe=class extends _0x413c81{['afterInit'](){const _0x3a8f33=this['editor'],_0x18f8ea=_0x3a8f33['plugins']['get']('TrackChangesEditing');_0x3a8f33['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x18f8ea['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x24f499=this['editor'],_0x12fea5=_0x24f499['model'],_0x5742ba=_0x24f499['locale'],_0x4e9ab9=_0x24f499['plugins']['get']('TrackChangesEditing'),_0x117215='restrictedEditingException',_0x1560fa=_0x24f499['commands']['get'](_0x117215);_0x4e9ab9['enableCommand'](_0x117215,(_0x2353e5,_0x508620={})=>{const _0x15c91e=_0x12fea5['document']['selection'];if(_0x15c91e['isCollapsed'])return void _0x2353e5(_0x508620);const _0x4ea408=void 0x0!==_0x508620['forceValue']?_0x508620['forceValue']:!_0x1560fa['value'];_0x12fea5['change'](()=>{const _0x38de86=Array['from'](_0x15c91e['getRanges']());for(const _0x25fddc of _0x38de86){const _0x1ad570=_0x4ea408?[_0x25fddc]:we(_0x117215,_0x25fddc,_0x12fea5);for(const _0x472b29 of _0x1ad570)_0x4e9ab9['markInlineFormat'](_0x472b29,{'commandName':_0x117215,'commandParams':[{'forceValue':_0x4ea408}]});}});}),_0x4e9ab9['descriptionFactory']['registerDescriptionCallback'](_0x124cab=>{if('formatBlock'!=_0x124cab['type']&&'formatInline'!=_0x124cab['type'])return;const {data:_0x47ed2c}=_0x124cab;return _0x47ed2c&&_0x47ed2c['commandName']==_0x117215?_0x47ed2c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5742ba,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x5742ba,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x54f254=this['editor'],_0x49987d=_0x54f254['locale'],_0x18224f=_0x54f254['plugins']['get']('TrackChangesEditing'),_0x215f16='restrictedEditingExceptionBlock',_0x1489d8=this['editor']['commands']['get'](_0x215f16);_0x18224f['enableCommand'](_0x215f16,(_0x55c164,_0x12f0b8={})=>{const _0x54b639=this['editor']['model']['document']['selection'],_0x86d24f=_0x12f0b8&&void 0x0!==_0x12f0b8['forceValue']?_0x12f0b8['forceValue']:!_0x1489d8['value'];let _0x4147a6=[];_0x4147a6=At(_0x86d24f?Array['from'](_0x54b639['getSelectedBlocks']())['filter'](_0xf9c14d=>function(_0x53ffb1){return!!_0x53ffb1['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0xf9c14d)||function(_0x54c08b,_0x25c5ef){const _0x4aa08c=_0x25c5ef['createContext'](_0x54c08b['parent']);return!!_0x25c5ef['checkChild'](_0x4aa08c,'restrictedEditingException')&&!!_0x25c5ef['checkChild'](_0x4aa08c['push']('restrictedEditingException'),_0x54c08b);}(_0xf9c14d,this['editor']['model']['schema'])):Array['from'](_0x54b639['getSelectedBlocks']())['map'](_0x53bd82=>function(_0x201091){let _0x4274eb=_0x201091;for(;_0x4274eb['parent'];){if('restrictedEditingException'==_0x4274eb['parent']['name'])return _0x4274eb;_0x4274eb=_0x4274eb['parent'];}return null;}(_0x53bd82))['filter'](_0x110216=>!!_0x110216),_0x54f254['model']),_0x54f254['model']['change'](()=>{for(const _0x2f1ed1 of _0x4147a6)_0x18224f['markBlockFormat'](_0x2f1ed1,{'commandName':_0x215f16,'commandParams':[{'forceValue':_0x86d24f}]});});}),_0x18224f['descriptionFactory']['registerDescriptionCallback'](_0x4017c7=>{const {data:_0x54ae3c}=_0x4017c7;if(_0x54ae3c&&_0x54ae3c['commandName']==_0x215f16)return _0x54ae3c['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x49987d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x49987d,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x413c81{['afterInit'](){const _0x2cc058=this['editor'];_0x2cc058['plugins']['has']('Style')&&_0x2cc058['plugins']['has']('DataSchema')&&(_0x2cc058['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x18e6d0=this['editor'],_0x2737da=_0x18e6d0['locale'];_0x18e6d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d354f=>{if('formatBlock'!=_0x5d354f['type']&&'formatInline'!=_0x5d354f['type'])return;const {data:_0x2f47d}=_0x5d354f;return _0x2f47d&&'style'===_0x2f47d['commandName']?_0x2f47d['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x2737da,'*Set\x20format:*\x20%0',_0x2f47d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x2737da,'*Remove\x20format:*\x20%0',_0x2f47d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x413c81{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x725827){super(_0x725827),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x423772=this['editor'],_0x144150=_0x423772['model']['document']['selection'];if(!_0x423772['plugins']['has']('TableEditing'))return;const _0x34fa3b=_0x423772['locale'],_0x29d94d=_0x423772['plugins']['get']('TrackChangesEditing'),_0xa56099=_0x423772['plugins']['get']('TableUtils');_0x29d94d['descriptionFactory']['registerElementLabel']('table',_0x451207=>St(_0x34fa3b,'ELEMENT_TABLE',_0x451207)),this['_setupColumnsRowsFixing'](),_0x29d94d['enableCommand']('insertTable'),_0x29d94d['enableCommand']('selectTableRow'),_0x29d94d['enableCommand']('selectTableColumn');for(const _0x5bda70 of['insertTableRowAbove','insertTableRowBelow']){const _0x50ddba=_0x423772['commands']['get'](_0x5bda70);_0x29d94d['enableCommand'](_0x5bda70,_0x3480a5=>{_0x423772['model']['change'](_0x20763a=>{_0x3480a5();const _0x284527='above'===_0x50ddba['order'],_0x42567c=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x4b8943=_0xa56099['getRowIndexes'](_0x42567c),_0x23c75b=_0x284527?_0x4b8943['first']-0x1:_0x4b8943['last']+0x1,_0x1a96f9=_0x42567c[0x0]['findAncestor']('table'),_0x5cac25=_0xa56099['createTableWalker'](_0x1a96f9,{'startRow':_0x23c75b,'endRow':_0x23c75b}),_0x40bdbf=Array['from'](_0x5cac25)['map'](_0x1cba63=>_0x20763a['createRangeOn'](_0x1cba63['cell']));_0x29d94d['markMultiRangeInsertion'](_0x40bdbf,'tableRow');});});}for(const _0x4ddb12 of['insertTableColumnLeft','insertTableColumnRight']){const _0x586566=_0x423772['commands']['get'](_0x4ddb12);_0x29d94d['enableCommand'](_0x4ddb12,_0x209e2f=>{_0x423772['model']['change'](_0xbcffba=>{_0x209e2f();const _0x76ddfd='left'===_0x586566['order'],_0x28eda6=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x334ac8=_0xa56099['getColumnIndexes'](_0x28eda6),_0xeb94ee=_0x76ddfd?_0x334ac8['first']-0x1:_0x334ac8['last']+0x1,_0x315d04=_0x28eda6[0x0]['findAncestor']('table'),_0x44e61c=_0xa56099['createTableWalker'](_0x315d04,{'startRow':0x0,'column':_0xeb94ee,'includeAllSlots':!0x1}),_0x891dec=Array['from'](_0x44e61c)['map'](_0x41bc8c=>_0xbcffba['createRangeOn'](_0x41bc8c['cell']));_0x29d94d['markMultiRangeInsertion'](_0x891dec,'tableColumn');});});}for(const _0xac4366 of['removeTableRow','removeTableColumn']){const _0x3a2a5b=_0xac4366['substr'](0xb),_0x311b36=_0x3a2a5b['toLowerCase'](),_0x108977=_0x311b36['substr'](0x0,0x3)+'span',_0x169ad0='table'+_0x3a2a5b,_0x2d9f23='min'+_0x3a2a5b,_0x34eacb='max'+_0x3a2a5b;_0x29d94d['enableCommand'](_0xac4366,()=>{_0x423772['model']['change'](_0x58d90e=>{const _0x41d9dc=_0xa56099['getSelectionAffectedTableCells'](_0x144150),_0x554b53=_0x41d9dc[0x0]['findAncestor']('table');let _0x5d9777;if('removeTableRow'==_0xac4366){const _0x28c294=_0xa56099['getRowIndexes'](_0x41d9dc);_0x5d9777={'startRow':_0x28c294['first'],'endRow':_0x28c294['last'],'includeAllSlots':!0x0};}else{const _0x3cfcc6=_0xa56099['getColumnIndexes'](_0x41d9dc);_0x5d9777={'startColumn':_0x3cfcc6['first'],'endColumn':_0x3cfcc6['last'],'includeAllSlots':!0x0};}const _0x34c907=_0xa56099['createTableWalker'](_0x554b53,_0x5d9777),_0x287fd0=Array['from'](_0x34c907)['map'](({cell:_0xfc820f})=>_0xfc820f),_0x1f13e6=De(_0x287fd0['filter'](_0x3055fa=>_0x3055fa['hasAttribute'](_0x108977))),_0x375e67=De(_0x287fd0['filter'](_0x347866=>!_0x347866['hasAttribute'](_0x108977)))['map'](_0x21afc6=>_0x58d90e['createRangeOn'](_0x21afc6)),_0x49a30d=_0x29d94d['markMultiRangeDeletion'](_0x375e67,_0x169ad0);if(_0x49a30d&&('tableRow'==_0x49a30d['subType']||'tableColumn'==_0x49a30d['subType'])){const _0x1efe10=this['_getSuggestionCoords'](_0x49a30d);for(const _0x78ad28 of _0x1f13e6){const _0x3cc4cb=_0x58d90e['createRangeOn'](_0x78ad28),_0x25eb90=_0xa56099['getCellLocation'](_0x78ad28),_0x3e404f=_0x78ad28['getAttribute'](_0x108977)-0x1,_0x2cf0ee=_0x1efe10[_0x2d9f23],_0x1c3e33=_0x1efe10[_0x34eacb];_0x2cf0ee<=_0x25eb90[_0x311b36]&&_0x25eb90[_0x311b36]+_0x3e404f<=_0x1c3e33&&_0x49a30d['addRange'](_0x3cc4cb);}}});});}function _0x4fd756(_0x5c5690){const _0x541bdc=Array['from'](_0x144150['getRanges']())['map'](_0xbc0c7=>rt['fromRange'](_0xbc0c7));_0x423772['model']['change'](_0x23a070=>{const _0x529107=_0x23a070['batch'];_0x5c5690=_0x5c5690['filter'](_0x27a676=>'$graveyard'!=_0x27a676['root']['rootName']),_0x23a070['setSelection'](_0x5c5690),_0x423772['commands']['get']('removeTableRow')['refresh'](),_0x423772['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x423772['model']['enqueueChange'](()=>{_0x423772['model']['enqueueChange'](_0x529107,_0x365709=>{const _0x1cbbde=_0x541bdc['filter'](_0x19cf76=>'$graveyard'!=_0x19cf76['root']['rootName']);_0x1cbbde['length']>0x0&&_0x365709['setSelection'](_0x1cbbde);for(const _0x4ae0a6 of _0x541bdc)_0x4ae0a6['detach']();});});});}function _0x42514a(_0x4f452f){_0x423772['model']['change'](_0x1df737=>{const _0x2502c5=Array['from'](_0x144150['getRanges']())['map'](_0x36edab=>rt['fromRange'](_0x36edab)),_0x3c7fa0=[];for(const _0x33b9d2 of _0x4f452f)for(const _0x4aa982 of _0x33b9d2['getItems']({'shallow':!0x0}))_0x3c7fa0['push'](_0x4aa982);for(const _0x47a4a9 of _0x3c7fa0)'$graveyard'!=_0x47a4a9['root']['rootName']&&(_0x1df737['setSelection'](_0x1df737['createPositionAt'](_0x47a4a9,0x0)),_0x423772['commands']['get']('removeTableColumn')['refresh'](),_0x423772['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x10d46b=_0x2502c5['filter'](_0x552d12=>'$graveyard'!=_0x552d12['root']['rootName']);_0x10d46b['length']>0x0&&_0x1df737['setSelection'](_0x10d46b);for(const _0x154444 of _0x2502c5)_0x154444['detach']();});}function _0xfad464(_0x4c43ae,_0x103948){return _0x103948['every'](_0x56e8d7=>_0x4c43ae['some'](_0x1644aa=>_0x1644aa['end']['isEqual'](_0x56e8d7['start'])||_0x56e8d7['end']['isEqual'](_0x1644aa['start'])));}function _0x4fef0e(_0x2a26d1,_0x5de7e3){return!_0x2a26d1['some'](_0x3d1898=>_0x5de7e3['some'](_0x255be9=>_0x3d1898['isIntersecting'](_0x255be9)))&&_0x2a26d1['some'](_0x2db0cf=>_0x5de7e3['some'](_0x460c2f=>_0x2db0cf['end']['isTouching'](_0x460c2f['start'])));}_0x29d94d['descriptionFactory']['registerDescriptionCallback'](_0x24e0b9=>{if('insertion'!=_0x24e0b9['type']&&'deletion'!=_0x24e0b9['type'])return;const _0x5552fe=_0x24e0b9['getContainedElement']();if(null!=_0x5552fe&&_0x5552fe['is']('element','table')){if('insertion'==_0x24e0b9['type']){const _0x4b3f95=_0x24e0b9['getItems']()['filter'](_0x17cfa4=>_0x17cfa4['is']('$textProxy'))['map'](_0x2c3e86=>_0x2c3e86['data']);if(_0x4b3f95['length'])return{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4b3f95['join']('\x20')+'\x22'))};}if('deletion'==_0x24e0b9['type']){const _0x39a3ee=_0x24e0b9['getItems']()['filter'](_0x55803e=>_0x55803e['is']('$textProxy'))['map'](_0x13a11f=>_0x13a11f['data']);if(_0x39a3ee['length'])return{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39a3ee['join']('\x20')+'\x22'))};}}}),_0x29d94d['descriptionFactory']['registerDescriptionCallback'](_0xdbd181=>{if('tableRow'==_0xdbd181['subType']){const _0x302da1=_0xdbd181['getItems']()['filter'](_0x13e7e3=>_0x13e7e3['is']('$textProxy'))['map'](_0x615884=>_0x615884['data']),_0x585c59=this['_getSuggestionCoords'](_0xdbd181),_0x968119=_0x585c59['maxRow']-_0x585c59['minRow']+0x1;if('insertion'==_0xdbd181['type'])return _0x302da1['length']?{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x968119,'\x22'+_0x302da1['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW',_0x968119))};if('deletion'==_0xdbd181['type'])return _0x302da1['length']?{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x968119,'\x22'+_0x302da1['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_ROW',_0x968119))};}if('tableColumn'==_0xdbd181['subType']){const _0x2765a2=_0xdbd181['getItems']()['filter'](_0x244456=>_0x244456['is']('$textProxy'))['map'](_0x4ed2bb=>_0x4ed2bb['data']),_0x9d60e=this['_getSuggestionCoords'](_0xdbd181),_0x518695=_0x9d60e['maxColumn']-_0x9d60e['minColumn']+0x1;if('insertion'==_0xdbd181['type'])return _0x2765a2['length']?{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x518695,'\x22'+_0x2765a2['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0x34fa3b,'*Insert:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN',_0x518695))};if('deletion'==_0xdbd181['type'])return _0x2765a2['length']?{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x518695,'\x22'+_0x2765a2['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0x34fa3b,'*Remove:*\x20%0',St(_0x34fa3b,'ELEMENT_TABLE_COLUMN',_0x518695))};}}),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4fd756),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4fd756),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x42514a),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x42514a),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xfad464),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xfad464),_0x29d94d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4fef0e),_0x29d94d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4fef0e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4da65b=this['editor'],_0x478088=_0x4da65b['model']['document']['selection'];return(_0x118a45,_0x4ddd57)=>{_0x4da65b['model']['change'](_0xe04fba=>{const {commandName:_0x41024d,commandParams:_0x35585d}=_0x4ddd57;let _0x2d4ac6=_0x118a45[0x0]['end']['nodeBefore'];_0x35585d&&_0x35585d[0x0]&&!0x1===_0x35585d[0x0]['forceValue']&&(_0x2d4ac6=_0x118a45[0x0]['start']['nodeAfter']);const _0x215370=_0xe04fba['createRangeIn'](_0x2d4ac6);if('$graveyard'==_0x215370['root']['rootName'])return;const _0xfeb563=Array['from'](_0x478088['getRanges']())['map'](_0x5a2528=>rt['fromRange'](_0x5a2528));_0xe04fba['setSelection'](_0x215370),_0x4da65b['commands']['get'](_0x41024d)['refresh'](),_0x35585d['push']({'forceDefaultExecution':!0x0}),_0x4da65b['execute'](_0x41024d,..._0x35585d);const _0x682e8c=_0xfeb563['filter'](_0x4acbf8=>'$graveyard'!=_0x4acbf8['root']['rootName']);_0x682e8c['length']>0x0&&_0xe04fba['setSelection'](_0x682e8c);for(const _0x122860 of _0xfeb563)_0x122860['detach']();});};}['_getCoordsForCells'](_0x2f955f){const _0x38a18b=this['editor']['plugins']['get']('TableUtils');let _0x58cad6=Number['MAX_SAFE_INTEGER'],_0x5c69a8=Number['MIN_SAFE_INTEGER'],_0x43e691=Number['MAX_SAFE_INTEGER'],_0x4c7ec4=Number['MIN_SAFE_INTEGER'];for(const _0x1ba5ae of _0x2f955f){if('$graveyard'==_0x1ba5ae['root']['rootName'])continue;const {row:_0x4afec9,column:_0x3f0f55}=_0x38a18b['getCellLocation'](_0x1ba5ae),_0x407199=_0x1ba5ae['hasAttribute']('rowspan')?_0x1ba5ae['getAttribute']('rowspan')-0x1:0x0,_0x17c591=_0x1ba5ae['hasAttribute']('colspan')?_0x1ba5ae['getAttribute']('colspan')-0x1:0x0;_0x58cad6=_0x4afec9<_0x58cad6?_0x4afec9:_0x58cad6,_0x5c69a8=_0x4afec9+_0x407199>_0x5c69a8?_0x4afec9+_0x407199:_0x5c69a8,_0x43e691=_0x3f0f55<_0x43e691?_0x3f0f55:_0x43e691,_0x4c7ec4=_0x3f0f55+_0x17c591>_0x4c7ec4?_0x3f0f55+_0x17c591:_0x4c7ec4;}return{'minRow':_0x58cad6,'maxRow':_0x5c69a8,'minColumn':_0x43e691,'maxColumn':_0x4c7ec4};}['_setupColumnsRowsFixing'](){const _0x1de6ae=this['editor'],_0x41b9c9=_0x1de6ae['plugins']['get']('TrackChangesEditing'),_0x26628a=_0x1de6ae['plugins']['get']('TableUtils');_0x1de6ae['model']['document']['on']('change:data',()=>{const _0x27fdd1=Array['from'](_0x1de6ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x27e53f,data:_0x47ecdf}of _0x27fdd1){const {group:_0x5c86db,id:_0x1ef5d1,subType:_0x5432c}=tt(_0x27e53f);if('suggestion'!=_0x5c86db)continue;if(null!=_0x47ecdf['oldRange'])continue;const _0x5e8863=_0x41b9c9['getSuggestion'](_0x1ef5d1);this['_tablePostFixingSubtypes']['includes'](_0x5432c)&&this['_tableSuggestions']['add'](_0x5e8863);}},{'priority':'low'});const _0x5b12d7=(_0x13d50c,_0x13ea6b)=>{let _0x2bf0a5=!0x1;const _0x4449a5=_0x13ea6b['createRangeOn'](_0x13d50c),_0x1dcb24=_0x13d50c['findAncestor']('table'),_0x46939a=_0x26628a['getCellLocation'](_0x13d50c);for(const _0x50f746 of this['_tableSuggestions']){const _0x25a2ef=_0x50f746['subType'],_0x215e37=_0x25a2ef['startsWith']('tablePaste'),_0x353349=_0x25a2ef['substr'](_0x215e37?0xa:0x5),_0x1f064f=_0x353349['toLowerCase'](),_0x670a17=_0x1f064f['substr'](0x0,0x3)+'span',_0x34ed48='min'+_0x353349,_0x686b84='max'+_0x353349;if(!_0x50f746['isInContent'])continue;if(_0x1dcb24!=_0x50f746['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50f746['isIntersectingWithRange'](_0x4449a5))continue;const _0x4246f1=_0x13d50c['hasAttribute'](_0x670a17)?_0x13d50c['getAttribute'](_0x670a17)-0x1:0x0,_0x2ff5b8=this['_getSuggestionCoords'](_0x50f746),_0x21d9f5=_0x2ff5b8[_0x34ed48],_0x155e9c=_0x2ff5b8[_0x686b84];_0x21d9f5<=_0x46939a[_0x1f064f]&&_0x46939a[_0x1f064f]+_0x4246f1<=_0x155e9c&&(_0x50f746['addRange'](_0x4449a5),_0x2bf0a5=!0x0);}return _0x2bf0a5;};_0x1de6ae['model']['document']['registerPostFixer'](_0x180830=>{let _0x579b86=!0x1;for(const _0x46dc9b of _0x1de6ae['model']['document']['differ']['getChanges']())if('insert'==_0x46dc9b['type']){if('tableRow'==_0x46dc9b['name']){for(const _0x623221 of _0x46dc9b['position']['nodeAfter']['getChildren']())_0x579b86=_0x579b86||_0x5b12d7(_0x623221,_0x180830);}else'tableCell'==_0x46dc9b['name']&&(_0x579b86=_0x579b86||_0x5b12d7(_0x46dc9b['position']['nodeAfter'],_0x180830));}return _0x579b86;});}['_getSuggestionCoords'](_0xaa4bc2){return this['_getCoordsForCells'](_0xaa4bc2['getRanges']()['map'](_0x447536=>_0x447536['start']['nodeAfter']));}};function De(_0x38a95a){return Array['from'](new Set(_0x38a95a)['values']());}var Ue=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x284011=this['editor'],_0x5cd3ae=_0x284011['model']['document']['selection'],_0x5395a1=_0x284011['locale'];if(!_0x284011['plugins']['has']('TableEditing'))return;const _0x2a9220=_0x284011['plugins']['get']('TrackChangesEditing'),_0x4d57b8=_0x284011['plugins']['get']('TableUtils'),_0x11b355=_0x284011['plugins']['get'](ve);_0x11b355['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2a9220['enableCommand']('mergeTableCells',()=>{const _0x89784b=_0x4d57b8['getSelectionAffectedTableCells'](_0x284011['model']['document']['selection']);_0x284011['model']['change'](()=>{_0x2a9220['markMultiRangeBlockFormat'](_0x89784b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x284011['commands']['get']('mergeTableCells')['on']('execute',(_0x3de287,_0x491a87)=>{_0x284011['commands']['get']('trackChanges')['value']&&(_0x491a87['length']>0x0&&_0x491a87[_0x491a87['length']-0x1]&&_0x491a87[_0x491a87['length']-0x1]['forceDefaultExecution']||_0x2a9220['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3de287['stop']());},{'priority':'highest'});for(const _0x1229c1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x21d8c6=_0x284011['commands']['get'](_0x1229c1);_0x2a9220['enableCommand'](_0x1229c1,()=>{const _0x2a613d=_0x284011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x35b143=>_0x35b143['is']('element','tableCell')),_0x45a71d=_0x21d8c6['value'];_0x284011['model']['change'](()=>{_0x2a9220['markMultiRangeBlockFormat']([_0x2a613d,_0x45a71d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2150f5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58b295=_0x284011['commands']['get'](_0x2150f5);_0x2a9220['enableCommand'](_0x2150f5,()=>{const _0x55658f=_0x4d57b8['getSelectionAffectedTableCells'](_0x284011['model']['document']['selection'])[0x0],_0x10285f=_0x55658f['findAncestor']('table'),{column:_0x936ab5,row:_0x11422b}=_0x4d57b8['getCellLocation'](_0x55658f);let _0x1a41ed=[];if('horizontally'==_0x58b295['direction']){const _0x29f1cf=_0x4d57b8['createTableWalker'](_0x10285f,{'startRow':_0x11422b,'endRow':_0x11422b,'includeAllSlots':!0x0});_0x1a41ed=Array['from'](_0x29f1cf)['map'](_0x25c6e3=>_0x25c6e3['cell']);}else{const _0x489c0f=_0x4d57b8['createTableWalker'](_0x10285f,{'column':_0x936ab5,'includeAllSlots':!0x0});_0x1a41ed=Array['from'](_0x489c0f)['map'](_0x5dcc0c=>_0x5dcc0c['cell']);}_0x284011['model']['change'](_0x3c6e07=>{_0x2a9220['markBlockFormat'](_0x3c6e07['createRangeOn'](_0x55658f),{'commandName':_0x2150f5,'commandParams':[]},_0x1a41ed,_0x2150f5);});});}_0x2a9220['descriptionFactory']['registerDescriptionCallback'](_0x561a9c=>{if('formatBlock'!=_0x561a9c['type']&&'formatInline'!=_0x561a9c['type'])return;const {data:_0x410400}=_0x561a9c;return _0x410400&&'mergeTableCells'==_0x410400['commandName']?{'type':'format','content':St(_0x5395a1,'*Merge\x20cells*')}:void 0x0;}),_0x2a9220['descriptionFactory']['registerDescriptionCallback'](_0x34c434=>{if('formatBlock'!=_0x34c434['type']&&'formatInline'!=_0x34c434['type'])return;const {data:_0x27dbeb}=_0x34c434;return _0x27dbeb?'splitTableCellVertically'==_0x27dbeb['commandName']?{'type':'format','content':St(_0x5395a1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x27dbeb['commandName']?{'type':'format','content':St(_0x5395a1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4d0f77=_0x11b355['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a2932 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a2932,'accept',_0x4d0f77);for(const _0x10adae of['splitTableCellVertically','splitTableCellHorizontally'])_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x10adae,'accept',_0x4d0f77);_0x2a9220['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fc0b0=>{_0x284011['model']['change'](_0x42965c=>{const _0x2946d0=Array['from'](_0x5cd3ae['getRanges']())['map'](_0x31ecef=>rt['fromRange'](_0x31ecef));_0x42965c['setSelection'](_0x3fc0b0),_0x284011['commands']['get']('mergeTableCells')['refresh'](),_0x284011['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x269cd4=_0x2946d0['filter'](_0x56256e=>'$graveyard'!=_0x56256e['root']['rootName']);_0x269cd4['length']>0x0&&_0x42965c['setSelection'](_0x269cd4);for(const _0x227c60 of _0x2946d0)_0x227c60['detach']();});});for(const _0x5791b4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd04c8f=_0x284011['commands']['get'](_0x5791b4);_0xd04c8f['on']('set:isEnabled',(_0x7f063d,_0x8456ad,_0x2ee4f5)=>{if(_0x2ee4f5){const _0x3afff4=_0x284011['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4dd740=>_0x4dd740['is']('element','tableCell'));this['_areMergableCells'](_0xd04c8f['value'],_0x3afff4)||(_0x7f063d['return']=!0x1,_0x7f063d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x274861=this['editor']['commands']['get']('mergeTableCells'),_0x727d8b=this['editor']['plugins']['get']('TableUtils');if(!_0x274861['isEnabled'])return!0x1;const _0x5ec471=_0x727d8b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x54dc45 of _0x5ec471)for(const _0x2bb85f of _0x5ec471)if(_0x54dc45!=_0x2bb85f&&!this['_areMergableCells'](_0x54dc45,_0x2bb85f))return!0x1;return!0x0;}['_areMergableCells'](_0x54e473,_0x30212d){const _0x47a63b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7fede7=this['editor']['model']['createRangeOn'](_0x54e473),_0x143b01=this['editor']['model']['createRangeOn'](_0x30212d),_0x2ccdc3=new Set(),_0x11adff=new Set();for(const _0x3c8c62 of _0x47a63b['getSuggestions']())if(('insertion'==_0x3c8c62['type']||'deletion'==_0x3c8c62['type']||'mergeTableCells'==_0x3c8c62['subType'])&&_0x3c8c62['isInContent']){for(const _0x272f9d of _0x3c8c62['getRanges']())_0x272f9d['containsRange'](_0x7fede7,!0x0)&&_0x2ccdc3['add'](_0x3c8c62['type']+':'+_0x3c8c62['author']['id']),_0x272f9d['containsRange'](_0x143b01,!0x0)&&_0x11adff['add'](_0x3c8c62['type']+':'+_0x3c8c62['author']['id']);}if(_0x2ccdc3['size']!=_0x11adff['size'])return!0x1;for(const _0x3fea24 of _0x2ccdc3)if(!_0x11adff['has'](_0x3fea24))return!0x1;return!0x0;}},Pe=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x2f375d=this['editor'];if(!_0x2f375d['plugins']['has']('TableEditing'))return;const _0x5edce2=_0x2f375d['locale'],_0x28f6f6=_0x2f375d['plugins']['get']('TrackChangesEditing');_0x28f6f6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x28f6f6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x28f6f6['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x5edce2,'FORMAT_HEADER_ROW')),_0x28f6f6['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x5edce2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e220=this['editor']['plugins']['get']('TrackChangesEditing'),_0x580dfd=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x1e220['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x580dfd),_0x1e220['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x580dfd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5e5c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57c2e8=this['editor']['plugins']['get']('TableUtils');function _0x3c52f4({showActiveMarker:_0x228ba2=!0x0,setDataAttribute:_0x3bf056=!0x0}={}){return(_0x229f78,_0x576b01,_0xf96609)=>{const {type:_0xf4b2b,id:_0x55d831}=tt(_0x576b01['markerName']);if(!_0x5e5c90['hasSuggestion'](_0x55d831))return;const _0x3b5788=_0x5e5c90['getSuggestion'](_0x55d831),_0x305909=_0x3b5788['data'];if('formatBlock'!=_0x3b5788['type']||!_0x305909||'setTableColumnHeader'!=_0x305909['commandName'])return;if(_0x576b01['item'])return void _0x229f78['stop']();if(!_0xf96609['consumable']['consume'](_0x576b01['markerRange'],_0x229f78['name']))return;const _0x112a56=_0x576b01['markerRange']['start']['nodeAfter'],_0x2fcc12=_0x576b01['markerRange']['end']['nodeBefore'],_0x4310b0=_0x112a56['parent']['parent'],{column:_0xc65ccf}=_0x57c2e8['getCellLocation'](_0x112a56),{column:_0x29dab3}=_0x57c2e8['getCellLocation'](_0x2fcc12);for(let _0x414068=_0xc65ccf;_0x414068<=_0x29dab3;_0x414068++){const _0x5682=_0x57c2e8['createTableWalker'](_0x4310b0,{'column':_0x414068,'includeAllSlots':!0x1});for(const _0x4761d0 of _0x5682){const _0x54826f=_0x4761d0['cell'],_0x288164=_0xf96609['mapper']['toViewElement'](_0x54826f);_0xf96609['writer']['addClass']('ck-suggestion-marker-'+_0xf4b2b,_0x288164),_0x3bf056&&_0xf96609['writer']['setAttribute']('data-suggestion',_0x55d831,_0x288164),_0xf96609['mapper']['bindElementToMarker'](_0x288164,_0x576b01['markerName']),_0x228ba2&&(_0x5e5c90['activeMarkers']['includes'](_0x576b01['markerName'])?_0xf96609['writer']['addClass']('ck-suggestion-marker--active',_0x288164):_0xf96609['writer']['removeClass']('ck-suggestion-marker--active',_0x288164));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3c52f4(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x363c8e,_0x1c5a0a,_0x46d98a)=>{_0x46d98a['options']['showSuggestionHighlights']&&_0x3c52f4({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x363c8e,_0x1c5a0a,_0x46d98a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x120d59,_0x585b35,_0x5de609)=>{const {type:_0xe4ba1a,id:_0x6d379b}=tt(_0x585b35['markerName']);if(!_0x5e5c90['hasSuggestion'](_0x6d379b))return;const _0x42e1f1=_0x5e5c90['getSuggestion'](_0x6d379b),_0x1dd5aa=_0x42e1f1['data'];if('formatBlock'!=_0x42e1f1['type']||!_0x1dd5aa||'setTableColumnHeader'!=_0x1dd5aa['commandName'])return;const _0x387efd=_0x5de609['mapper']['markerNameToElements'](_0x585b35['markerName']);if(_0x387efd){for(const _0x4341bc of _0x387efd)_0x5de609['writer']['removeClass']('ck-suggestion-marker-'+_0xe4ba1a,_0x4341bc),_0x5de609['writer']['removeClass']('ck-suggestion-marker--active',_0x4341bc),_0x5de609['writer']['removeAttribute']('data-suggestion',_0x4341bc),_0x5de609['mapper']['unbindElementFromMarkerName'](_0x4341bc,_0x585b35['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x41af2b=this['editor'],_0x55c0ab=_0x41af2b['locale'];function _0x3c4ec5(_0x1672c7){return{'type':'format','content':St(_0x55c0ab,'*Format:*\x20%0',_0x1672c7)};}_0x41af2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5648bf=>{if('formatBlock'!=_0x5648bf['type'])return;const {data:_0x357881}=_0x5648bf;return _0x357881?'setTableRowHeader'==_0x357881['commandName']?_0x357881['commandParams'][0x0]['forceValue']?_0x3c4ec5(St(_0x55c0ab,'FORMAT_HEADER_ROW')):_0x3c4ec5(St(_0x55c0ab,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x357881['commandName']?_0x357881['commandParams'][0x0]['forceValue']?_0x3c4ec5(St(_0x55c0ab,'FORMAT_HEADER_COLUMN')):_0x3c4ec5(St(_0x55c0ab,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x559bcc=this['editor'];if(!_0x559bcc['plugins']['has']('TableEditing')||!_0x559bcc['config']['get']('table.enableFooters'))return;const _0x435365=_0x559bcc['locale'],_0x57d835=_0x559bcc['plugins']['get']('TrackChangesEditing');_0x57d835['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x57d835['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x435365,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x413c81{['afterInit'](){const _0x158390=this['editor'],_0x25d4b0=_0x158390['locale'],_0x4305bc=_0x158390['plugins']['get']('TrackChangesEditing');function _0x577e79(_0x232636){return{'type':'format','content':''+St(_0x25d4b0,'*Set\x20table\x20type:*\x20%0',_0x232636)};}_0x158390['plugins']['has']('TableLayout')&&(_0x4305bc['enableCommand']('insertTableLayout'),_0x4305bc['enableDefaultAttributesIntegration']('tableType'),_0x4305bc['descriptionFactory']['registerElementLabel'](_0x5c15e4=>_0x5c15e4['is']('element','table')&&'layout'===_0x5c15e4['getAttribute']('tableType'),_0x9d2d18=>St(_0x25d4b0,'ELEMENT_LAYOUT_TABLE',_0x9d2d18)),_0x4305bc['descriptionFactory']['registerDescriptionCallback'](_0x2714ff=>{const {data:_0x39a8a5}=_0x2714ff;if(_0x39a8a5&&'tableType'==_0x39a8a5['key'])switch(_0x39a8a5['newValue']){case'layout':return _0x577e79(St(_0x25d4b0,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x577e79(St(_0x25d4b0,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](He['map'](_0x4e9d5b=>[_0x4e9d5b,null]));var Ve=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x363960=this['editor'];if(!_0x363960['plugins']['has']('TableClipboard'))return;const _0x130339=_0x363960['plugins']['get']('TrackChangesEditing'),_0x35e9fb=_0x363960['plugins']['get']('TableUtils'),_0x4f67c6=_0x363960['plugins']['get'](ve),_0x3ad122=_0x363960['plugins']['get']('TableClipboard'),_0x33b2e1=_0x363960['plugins']['get']('TableSelection'),_0x36189d=_0x363960['plugins']['get'](mt);_0x4f67c6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x363960['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x363960['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2a65b0=null,_0x34fa78=!0x1;_0x36189d['on']('contentInsertion',(_0x4c19ec,_0x24c76b)=>{_0x34fa78='paste'===_0x24c76b['method'];}),_0x363960['model']['on']('insertContent',(_0x150acb,_0x481e0c)=>{if(!_0x34fa78&&null===_0x33b2e1['getSelectedTableCells']())return;const [_0x2fd02a,_0x20bf70]=_0x481e0c,_0x2e02d1=_0x481e0c[_0x481e0c['length']-0x1];_0x2e02d1&&_0x2e02d1['forceDefaultExecution']||_0x130339['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x721d86,_0x43522f,_0x3f457c,_0xf18ed6,_0x5c052b){if(_0x43522f&&!_0x43522f['is']('documentSelection'))return!0x1;const _0x2c0db7=_0x5c052b['getTableIfOnlyTableInContent'](_0x721d86,_0x3f457c);if(!_0x2c0db7||!je(_0x2c0db7,void 0x0,_0xf18ed6))return!0x1;const _0x5a7086=_0xf18ed6['getSelectionAffectedTableCells'](_0x3f457c['document']['selection']);if(!_0x5a7086['length'])return!0x1;const _0x102659=_0x5a7086[0x0]['findAncestor']('table'),_0x49e624=_0xf18ed6['getRowIndexes'](_0x5a7086),_0x4df3ed=_0xf18ed6['getColumnIndexes'](_0x5a7086),_0x4d5e24={'startRow':_0x49e624['first'],'endRow':_0x49e624['last'],'startColumn':_0x4df3ed['first'],'endColumn':_0x4df3ed['last']};return 0x1==_0x5a7086['length']&&(_0x4d5e24['endRow']+=_0xf18ed6['getRows'](_0x2c0db7)-0x1,_0x4d5e24['endColumn']+=_0xf18ed6['getColumns'](_0x2c0db7)-0x1),je(_0x102659,_0x4d5e24,_0xf18ed6);}(_0x2fd02a,_0x20bf70,_0x363960['model'],_0x35e9fb,_0x3ad122)&&(_0x150acb['stop'](),_0x2a65b0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x363960['model']['change'](()=>{_0x363960['model']['insertContent'](_0x481e0c[0x0],_0x481e0c[0x1],_0x481e0c[0x2],{'forceDefaultExecution':!0x0});const _0x2d5c60=_0x1f4b16(),{rowInsertionRanges:_0xfc790c,columnInsertionRanges:_0x53d54d,insertionRanges:_0x2e571d,deletionRanges:_0x4f744d,cells:_0x497184}=_0x2a65b0;_0xfc790c['length']&&_0x130339['markMultiRangeInsertion'](_0xfc790c,'tablePasteRow',{'tablePasteChainId':_0x2d5c60}),_0x53d54d['length']&&_0x130339['markMultiRangeInsertion'](_0x53d54d,'tablePasteColumn',{'tablePasteChainId':_0x2d5c60}),_0x2e571d['length']&&(_0x130339['markMultiRangeInsertion'](_0x2e571d,'tablePaste',{'tablePasteChainId':_0x2d5c60,'skipNestingCheck':!0x0}),_0x2e571d['forEach'](_0x544862=>_0x544862['detach']?.())),_0x4f744d['length']&&(_0x130339['markMultiRangeDeletion'](_0x4f744d,'tablePaste',{'tablePasteChainId':_0x2d5c60,'skipNestingCheck':!0x0}),_0x4f744d['forEach'](_0x14838e=>_0x14838e['detach']?.()));const _0x2ac35d=_0x130339['markMultiRangeBlockFormat'](_0x497184['map'](({element:_0x363c44})=>_0x363c44),{'formatGroupId':_0x1f4b16()},[],'tablePasteCell',{'tablePasteChainId':_0x2d5c60});if(_0x2ac35d){const _0x340015=_0x2ac35d['getMarkers'](),_0x3fa566=[];for(const {element:_0x2a1663,attributes:_0x434ea9}of _0x497184){if(!_0x434ea9)continue;const _0x33d71d=_0x363960['model']['createRangeOn'](_0x2a1663),_0x18fc27=_0x340015['find'](_0x1f3e50=>_0x1f3e50['getRange']()['isEqual'](_0x33d71d));_0x18fc27&&_0x3fa566['push']([_0x18fc27['name'],_0x434ea9]);}_0x3fa566['length']&&_0x2ac35d['setAttribute']('markerAttributes',Object['fromEntries'](_0x3fa566));}_0x2a65b0=null;}));},{'priority':_0x1cf13d['high']+0xa}),_0x36189d['on']('contentInsertion',()=>{_0x34fa78=!0x1;},{'priority':'lowest'}),_0x363960['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x38fc2a,_0x559b81)=>{const [_0x1f4d07,_0x49f562,,_0x80b6bb]=_0x559b81;if(!_0x2a65b0)return;_0x38fc2a['stop']();const _0x36b981=_0x1f4d07['cell'],_0x40fdcc=_0x49f562,_0x5864ad=We(_0x36b981),_0x198c2b=We(_0x40fdcc);_0x38fc2a['return']=_0x36b981;let _0x3fb66a=null,_0x28fb14=null;if(_0x198c2b||_0x5864ad){if(_0x5864ad&&!_0x198c2b){_0x80b6bb['remove'](_0x36b981['getChild'](0x0));for(const _0x4bfada of Array['from'](_0x40fdcc['getChildren']()))_0x80b6bb['insert'](_0x4bfada,_0x36b981,'end');const _0x54b69e=_0x2a65b0['rowInsertionIndexes']['includes'](_0x1f4d07['row']),_0x21b301=_0x2a65b0['columnInsertionIndexes']['includes'](_0x1f4d07['column']);_0x54b69e||_0x21b301||(_0x3fb66a=rt['fromRange'](_0x80b6bb['createRangeIn'](_0x36b981)));}else _0x198c2b&&!_0x5864ad&&(_0x28fb14=_0x80b6bb['createRangeIn'](_0x36b981));}else{const _0x1fadcc=_0x80b6bb['createElement']('tableCellSuggestion'),_0xe98ccd=_0x80b6bb['createElement']('tableCellSuggestion');_0x80b6bb['wrap'](_0x80b6bb['createRangeIn'](_0x36b981),_0xe98ccd),_0x80b6bb['insert'](_0x1fadcc,_0x36b981,0x0);for(const _0x8f210 of Array['from'](_0x40fdcc['getChildren']()))_0x80b6bb['insert'](_0x8f210,_0x1fadcc,'end');_0x3fb66a=rt['fromRange'](_0x80b6bb['createRangeOn'](_0x1fadcc)),_0x28fb14=rt['fromRange'](_0x80b6bb['createRangeOn'](_0xe98ccd));}const _0x19f138=Array['from'](_0x40fdcc['getAttributes']())['filter'](([_0xd1b2eb])=>He['includes'](_0xd1b2eb));_0x2a65b0['cells']['push']({'element':_0x36b981,'attributes':_0x19f138['length']?Object['fromEntries'](_0x19f138):null}),_0x3fb66a&&_0x2a65b0['insertionRanges']['push'](_0x3fb66a),_0x28fb14&&_0x2a65b0['deletionRanges']['push'](_0x28fb14);},{'priority':'high'}),_0x35e9fb['on']('insertColumns',(_0x270bf6,_0x12bd17)=>{const [_0x3605cf,_0x2355ea={}]=_0x12bd17;if(!_0x2a65b0)return;const _0x25a26e=_0x2355ea['at']||0x0,_0x4e08a2=_0x2355ea['columns']||0x1;_0x2a65b0['columnInsertionIndexes']=new Array(_0x4e08a2)['fill'](_0x25a26e)['map']((_0x20052f,_0x29567b)=>_0x20052f+_0x29567b);for(const {cell:_0x24e01a}of _0x35e9fb['createTableWalker'](_0x3605cf,{'startColumn':_0x25a26e,'endColumn':_0x25a26e+_0x4e08a2-0x1}))_0x2a65b0['columnInsertionRanges']['push'](_0x363960['model']['createRangeOn'](_0x24e01a));},{'priority':'low'}),_0x35e9fb['on']('insertRows',(_0x1d61ae,_0x2bdc8b)=>{const [_0x34fb83,_0x5d51ed={}]=_0x2bdc8b;if(!_0x2a65b0)return;const _0x41d660=_0x5d51ed['at']||0x0,_0x29fdc8=_0x5d51ed['rows']||0x1;_0x2a65b0['rowInsertionIndexes']=new Array(_0x29fdc8)['fill'](_0x41d660)['map']((_0x29ba74,_0x77a29c)=>_0x29ba74+_0x77a29c);for(const {cell:_0x308427}of _0x35e9fb['createTableWalker'](_0x34fb83,{'startRow':_0x41d660,'endRow':_0x41d660+_0x29fdc8-0x1}))_0x2a65b0['rowInsertionRanges']['push'](_0x363960['model']['createRangeOn'](_0x308427));},{'priority':'low'}),_0x130339['descriptionFactory']['registerDescriptionCallback'](_0x46feee=>{if(_0x46feee['subType']&&_0x46feee['subType']['startsWith']('tablePaste'))return _0x46feee['previous']?{}:{'type':'insertion','content':St(_0x363960['locale'],'*Replace\x20table\x20cells*')};});const _0x4ef5f4=()=>!0x1;for(const _0x536f40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x130339['_suggestionFactory']['registerCustomCallback']('insertion',_0x536f40,'join',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('deletion',_0x536f40,'join',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x536f40,'join',_0x4ef5f4);_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4ef5f4),_0x130339['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a299f,_0x5f1384,_0x405139)=>{const _0x3b9b12=_0x1a299f['map'](_0x183820=>_0x183820['getContainedElement']())['filter'](_0x157d95=>_0x157d95),_0xb2adbd=new Map(_0x3b9b12['map'](_0x34e58e=>[_0x34e58e,null]));if(_0x2a65b0){for(const {element:_0x1309af,attributes:_0x334256}of _0x2a65b0['cells'])_0x334256&&_0xb2adbd['set'](_0x1309af,_0x334256);}else{if(_0x405139&&_0x405139['markerAttributes'])for(const [_0x23af23,_0x1944f5]of Object['entries'](_0x405139['markerAttributes'])){const _0x1d11aa=_0x363960['model']['markers']['get'](_0x23af23),_0x15fa84=_0x1d11aa?_0x1d11aa['getRange']()['getContainedElement']():null;_0x15fa84&&_0xb2adbd['set'](_0x15fa84,_0x1944f5);}}_0x363960['model']['change'](_0xf40296=>{for(const [_0x1390f9,_0x4b3df1]of _0xb2adbd)_0xf40296['setAttributes']({...$e,..._0x4b3df1},_0x1390f9);});});const _0x2b8e4a=(_0x59c02b,_0x35ff9e)=>{_0x130339['_suggestionFactory']['registerCustomCallback'](_0x59c02b,'tablePaste',_0x35ff9e,(_0x5b78a0,_0x4573ca,_0x312995)=>{_0x363960['model']['change'](_0x168320=>{const _0x4b1692=[];for(const _0x48226b of _0x5b78a0){const _0x7d585c=_0x48226b['start']['nodeAfter'];_0x7d585c['is']('element','tableCellSuggestion')&&_0x4b1692['push'](_0x7d585c);}_0x130339['_suggestionFactory']['getSuggestionCallback'](_0x59c02b,null,_0x35ff9e)(_0x5b78a0,_0x4573ca,_0x312995);for(const _0x8e14b of _0x4b1692)'$graveyard'!=_0x8e14b['root']['rootName']&&_0x168320['unwrap'](_0x8e14b);});});};_0x2b8e4a('insertion','accept'),_0x2b8e4a('insertion','discard'),_0x2b8e4a('deletion','accept'),_0x2b8e4a('deletion','discard'),_0x130339['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1af73b=>{const _0xed4395=_0x1af73b['map'](_0x32af0d=>_0x32af0d['getContainedElement']()),_0x7292d7=_0xed4395[0x0]['findAncestor']('table'),{minRow:_0x66ddf5,maxRow:_0x24b102}=_0x4f67c6['_getCoordsForCells'](_0xed4395);_0x35e9fb['removeRows'](_0x7292d7,{'at':_0x66ddf5,'rows':_0x24b102-_0x66ddf5+0x1});}),_0x130339['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x49c116=>{const _0xaf75be=_0x49c116['map'](_0x5bfdc5=>_0x5bfdc5['getContainedElement']()),_0x5955e1=_0xaf75be[0x0]['findAncestor']('table'),{minColumn:_0x3205b1,maxColumn:_0x432ba8}=_0x4f67c6['_getCoordsForCells'](_0xaf75be);_0x35e9fb['removeColumns'](_0x5955e1,{'at':_0x3205b1,'columns':_0x432ba8-_0x3205b1+0x1});});const _0x3ca644=(_0x202f1a,_0x15b722)=>{if(!_0x15b722['subType']||!_0x15b722['subType']['startsWith']('tablePaste'))return;const _0x270ecf=_0x15b722['attributes']['tablePasteChainId'],_0x3281da=_0x130339['getSuggestions']()['filter'](_0x408fdd=>_0x408fdd['isInContent']&&_0x408fdd['attributes']&&_0x408fdd['attributes']['tablePasteChainId']==_0x270ecf);_0x3281da['length']&&_0x15b722['getAllAdjacentSuggestions']()['length']!=_0x3281da['length']&&_0x3281da['reduce']((_0xf050,_0x4b2134)=>(_0xf050['next']=_0x4b2134,_0x4b2134['previous']=_0xf050,_0x4b2134));};function _0x1c96e4(_0x349a56,_0x160414=!0x0){const {id:_0x3d45cb,authorId:_0x2a5dd7}=tt(_0x349a56['markerName']),_0x5a9e05=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21cc38=_0x130339['activeMarkers']['includes'](_0x349a56['markerName']);return _0x21cc38&&_0x5a9e05['push']('ck-suggestion-marker--active'),{'classes':_0x5a9e05,'attributes':{'data-suggestion':_0x3d45cb,'data-author-id':_0x2a5dd7},'priority':_0x21cc38&&_0x160414?0xbc2:0xbb8};}_0x130339['on']('suggestionLoaded',_0x3ca644,{'priority':'high'}),_0x130339['on']('suggestionUnloaded',_0x3ca644,{'priority':'high'}),_0x363960['model']['document']['registerPostFixer'](()=>{let _0x500376=!0x1;const _0x3a6507=Array['from'](_0x363960['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1908fc,data:_0x5cf297}of _0x3a6507){const {group:_0x155451,type:_0x37a687,id:_0x1abc53}=tt(_0x1908fc);if('suggestion'!=_0x155451||'deletion'!=_0x37a687||_0x5cf297['oldRange'])continue;if(!_0x130339['hasSuggestion'](_0x1abc53))continue;const _0x32d4c5=_0x130339['getSuggestion'](_0x1abc53)['getRanges'](),_0x413cce=_0x363960['plugins']['get']('Users')['me'];for(const _0x1ded87 of _0x130339['getSuggestions']())if(_0x1ded87['isInContent']&&_0x1ded87['author']==_0x413cce&&'formatBlock'==_0x1ded87['type']&&'tablePasteCell'==_0x1ded87['subType']&&_0x1ded87['getRanges']()['every'](_0x1dc394=>_0x32d4c5['some'](_0x299308=>_0x299308['containsRange'](_0x1dc394,!0x0)))){for(const _0xbf30d9 of _0x1ded87['getAllAdjacentSuggestions']())_0xbf30d9['isInContent']&&(_0xbf30d9['discard'](),_0x500376=!0x0);}}return _0x500376;}),_0x363960['model']['document']['registerPostFixer'](_0x369c7b=>{const _0x4465f4=_0x363960['commands']['get']('redo');if(!_0x4465f4||!_0x4465f4['_createdBatches']['has'](_0x369c7b['batch']))return!0x1;let _0x4b7c77=!0x1;const _0x55f479=_0x363960['plugins']['get']('Users')['me'],_0x1dfad9=_0x363960['model']['document']['differ']['getChanges'](),_0x3c826c=Array['from'](_0x363960['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25c22e,data:_0x1d8468})=>{const {group:_0x24480c,subType:_0x59c46c,authorId:_0x502a2c}=tt(_0x25c22e);return'suggestion'==_0x24480c&&'tablePaste'==_0x59c46c&&_0x502a2c==_0x55f479['id']&&!_0x1d8468['oldRange'];});for(const _0x1decaf of _0x1dfad9){if('insert'!=_0x1decaf['type']||'tableCellSuggestion'!=_0x1decaf['name']||0x1!=_0x1decaf['length'])continue;const _0x19e5df=_0x369c7b['createRange'](_0x1decaf['position'],_0x1decaf['position']['getShiftedBy'](0x1));if(!_0x3c826c['find'](({data:_0x5cbcef})=>_0x5cbcef['newRange']['isEqual'](_0x19e5df))){for(const {name:_0x324d1f,data:_0x22b4a9}of _0x3c826c)if(_0x19e5df['containsRange'](_0x22b4a9['newRange'])){_0x369c7b['updateMarker'](_0x324d1f,{'range':_0x19e5df}),_0x4b7c77=!0x0;break;}}}return _0x4b7c77;}),_0x363960['model']['document']['registerPostFixer'](_0x681111=>{let _0xc175d1=!0x1;const _0x189e04=_0x363960['plugins']['get']('Users')['me'],_0x3974a6=_0x130339['getSuggestions']()['filter'](_0xc7c77d=>_0xc7c77d['isInContent']&&_0xc7c77d['author']==_0x189e04),_0x4f98c7=new Set(),_0x4d8cec=new Set();for(const _0x2e1696 of _0x3974a6)if('tablePaste'==_0x2e1696['subType'])for(const _0x56a800 of _0x2e1696['getMarkers']()){const _0x5c5a5e=_0x56a800['getRange']()['getContainedElement']();if(_0x5c5a5e){if(_0x5c5a5e['is']('element','tableCellSuggestion')&&We(_0x5c5a5e)){_0x2e1696['removeMarker'](_0x56a800['name']),_0x4f98c7['add'](_0x5c5a5e),_0xc175d1=!0x0;const _0x60ef51=_0x5c5a5e['nextSibling'],_0x24e086=_0x5c5a5e['previousSibling'],_0x695a48=_0x60ef51&&_0x60ef51['is']('element','tableCellSuggestion'),_0x2fc9a5=_0x24e086&&_0x24e086['is']('element','tableCellSuggestion');_0x695a48&&!_0x4f98c7['has'](_0x60ef51)&&_0x4d8cec['add'](_0x60ef51),_0x2fc9a5&&!_0x4f98c7['has'](_0x24e086)&&_0x4d8cec['add'](_0x24e086);}else _0x5c5a5e['is']('element','paragraph')&&_0x5c5a5e['isEmpty']&&(_0x2e1696['removeMarker'](_0x56a800['name']),_0xc175d1=!0x0);}}else{if('tablePasteCell'==_0x2e1696['subType']){if(!_0x2e1696['attributes']||!_0x2e1696['attributes']['tablePasteChainId'])continue;const _0xa2a6a3=_0x2e1696['attributes']['markerAttributes'];if(_0xa2a6a3&&Object['keys'](_0xa2a6a3)['length'])continue;const _0x2fee82=_0x2e1696['attributes']['tablePasteChainId'];let _0x2b56c8=!0x0,_0x25fa1b=!0x0;for(const _0x287f00 of _0x3974a6)if(_0x287f00['subType']&&_0x287f00['subType']['startsWith']('tablePaste')){if(!_0x287f00['attributes']['tablePasteChainId']){_0x25fa1b=!0x1;break;}if(_0x287f00['id']!=_0x2e1696['id']&&_0x287f00['attributes']['tablePasteChainId']==_0x2fee82){_0x2b56c8=!0x1;break;}}_0x25fa1b&&_0x2b56c8&&(_0x2e1696['removeMarkers'](),_0xc175d1=!0x0);}}for(const _0x21576f of _0x4f98c7)_0x681111['remove'](_0x21576f);for(const _0x5556bc of _0x4d8cec)_0x681111['unwrap'](_0x5556bc);return _0xc175d1;}),_0x363960['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x35e2cf=>_0x1c96e4(_0x35e2cf),'converterPriority':'high'}),_0x363960['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5b4d88,_0x441dc6)=>_0x441dc6['options']['showSuggestionHighlights']?_0x1c96e4(_0x5b4d88,!0x1):null,'converterPriority':'high'});const _0xcd7ae2=_0x363960['editing']['view'];this['listenTo'](_0xcd7ae2['document'],'clipboardOutput',(_0x222c38,_0x1054bb)=>{const _0x2da859=[];for(const _0x27d3dd of _0xcd7ae2['createRangeIn'](_0x1054bb['content'])['getItems']())_0x27d3dd['is']('element','suggestion-td')&&_0x2da859['push'](_0x27d3dd);_0xcd7ae2['change'](_0x3fcd3f=>{for(const _0x2f77ca of _0x2da859)_0x3fcd3f['move'](_0x3fcd3f['createRangeIn'](_0x2f77ca),_0x3fcd3f['createPositionBefore'](_0x2f77ca)),_0x3fcd3f['remove'](_0x2f77ca);});});}};function We(_0x37c9bd){if(_0x37c9bd['isEmpty'])return!0x0;const _0x1e27da=_0x37c9bd['getChild'](0x0);return _0x1e27da['is']('element','paragraph')&&_0x1e27da['isEmpty'];}function je(_0x27a457,_0x4343ea={},_0x2f068d){for(const {isAnchor:_0x362b78,cellHeight:_0x5666ed,cellWidth:_0x2671ca}of _0x2f068d['createTableWalker'](_0x27a457,{'includeAllSlots':!0x0,..._0x4343ea}))if(!_0x362b78||0x1!=_0x5666ed||0x1!=_0x2671ca)return!0x1;return!0x0;}var Ke=class extends _0x413c81{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x11689f=this['editor']['plugins']['get']('TrackChangesEditing');_0x11689f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x11689f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x11689f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x11689f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x11689f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x11689f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xd6f428,_0x7d453d){const _0xcb2ddf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b7cf0=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5337ff=_0x7d453d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a51da=_0x1b7cf0['getColumnGroupElement'](_0x5337ff);let _0x32ec50=_0x3a51da?_0x1b7cf0['getTableColumnsWidths'](_0x3a51da):null,_0x377d7a=_0x5337ff['getAttribute']('tableWidth')||null;const _0x48ec3c=_0x7d453d['tableWidth']||_0x377d7a,_0x51f701=_0x7d453d['columnWidths']||_0x32ec50,_0x231747=this['editor']['plugins']['get']('Users')['me'];for(const _0x513042 of _0xcb2ddf['getSuggestions']()){const _0x4af1e7=_0x513042['getContainedElement']();if('resizeTable'===_0x513042['subType']&&_0x4af1e7===_0x5337ff){_0x513042['author']!==_0x231747&&_0x513042['discard']();const _0x595c60=_0x513042['data']['commandParams'];_0x377d7a=_0x595c60[0x0]['tableWidth'],_0x32ec50=_0x595c60[0x0]['columnWidths'];break;}}_0xd6f428({'table':_0x5337ff,'tableWidth':_0x48ec3c,'columnWidths':_0x51f701}),_0xcb2ddf['markBlockFormat'](_0x5337ff,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x377d7a,'columnWidths':_0x32ec50}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c1553){if('formatBlock'!=_0x4c1553['type']&&'formatInline'!=_0x4c1553['type'])return;const {data:_0x253b73}=_0x4c1553;return _0x253b73&&'resizeTable'===_0x253b73['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x413c81{['afterInit'](){const _0x2d102b=this['editor'];_0x2d102b['plugins']['has']('Template')&&_0x2d102b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x413c81{['afterInit'](){const _0x343de2=this['editor'];if(!_0x343de2['commands']['get']('insertTableOfContents'))return;_0x343de2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2cd0ee=_0x343de2['plugins']['get']('TrackChangesEditing'),_0x43d883=_0x343de2['locale'];_0x2cd0ee['descriptionFactory']['registerElementLabel']('tableOfContents',_0x49b658=>St(_0x43d883,'ELEMENT_TABLE_OF_CONTENTS',_0x49b658));}},qe=class extends _0x413c81{['afterInit'](){const _0x460240=this['editor'];_0x460240['plugins']['has']('Title')&&(_0x460240['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0x460240['locale'],'ELEMENT_TITLE')),_0x460240['model']['document']['registerPostFixer'](_0x2090a1=>{let _0x2ad7a5=!0x1;const _0x47a213=Array['from'](_0x460240['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41d92f,data:_0x809e65}of _0x47a213){const {group:_0x142b5a}=tt(_0x41d92f);if('suggestion'!==_0x142b5a||!_0x809e65['newRange'])continue;const _0x3fdb45=_0x809e65['newRange'],_0x301dfe=_0x3fdb45['end']['nodeBefore'];if(!_0x301dfe||!_0x301dfe['is']('element','title-content'))continue;if(!_0x3fdb45['start']['isTouching'](_0x3fdb45['end']))continue;const _0x51afc6=_0x460240['model']['schema']['getNearestSelectionRange'](_0x3fdb45['end'],'forward');if(_0x51afc6&&_0x51afc6['isCollapsed']){const _0x39eb05=_0x2090a1['createRange'](_0x3fdb45['start'],_0x51afc6['start']);_0x39eb05['isEqual'](_0x3fdb45)||(_0x2090a1['updateMarker'](_0x41d92f,{'range':_0x39eb05}),_0x2ad7a5=!0x0);}_0x2ad7a5||(_0x2090a1['removeMarker'](_0x41d92f),_0x2ad7a5=!0x0);}return _0x2ad7a5;}));}},Ye=class extends _0x413c81{['afterInit'](){const _0x4741a6=this['editor'],_0x4d4159=_0x4741a6['plugins']['get']('TrackChangesEditing');_0x4741a6['plugins']['has']('Uploadcare')&&(_0x4d4159['enableCommand']('uploadcare'),_0x4741a6['plugins']['has']('UploadcareImageEdit')&&(_0x4d4159['enableCommand']('uploadcareImageEdit'),_0x4d4159['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d4159['descriptionFactory']['registerDescriptionCallback'](_0x5b57e7=>{if('attribute'!=_0x5b57e7['type'])return;const {data:_0x123057}=_0x5b57e7;return _0x123057&&'uploadcareImageId'==_0x123057['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x413c81{['afterInit'](){const _0x15198d=this['editor'],_0xd1b84e=_0x15198d['plugins']['get']('TrackChangesEditing');_0x15198d['plugins']['has']('UndoEditing')&&(_0xd1b84e['enableCommand']('undo'),_0xd1b84e['enableCommand']('redo'));}},Ze=class extends _0x413c81{static get['requires'](){return[ve];}['afterInit'](){const _0x5041f9=this['editor'];_0x5041f9['plugins']['has']('TableCaptionEditing')&&_0x5041f9['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x413c81{['tableProperties'];['tableCellProperties'];constructor(_0x253792){super(_0x253792),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 _0x532779=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x318b03 of this['tableProperties'])_0x532779['enableCommand'](_0x318b03,(_0x1e1988,_0x1f2976)=>{const _0x4c3178=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x318b03,[_0x4c3178],this['tableProperties'],'tableProperties',_0x1e1988,_0x1f2976);});_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x532779['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x120e20,_0x787398)=>this['handleDiscardAction'](this['tableProperties'],_0x120e20,_0x787398)),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x110d04 of this['tableCellProperties'])this['editor']['commands']['get'](_0x110d04)&&_0x532779['enableCommand'](_0x110d04,(_0x13a366,_0x3c1aa0)=>{const _0x2597a9=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x110d04,_0x2597a9,this['tableCellProperties'],'tableCellProperties',_0x13a366,_0x3c1aa0);});_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x532779['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x557d26,_0x516e96)=>this['handleDiscardAction'](this['tableCellProperties'],_0x557d26,_0x516e96)),_0x532779['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x532779['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x532779['descriptionFactory']['registerDescriptionCallback'](_0x124e86=>this['handleSuggestionDescription'](_0x124e86)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x522de0,_0x14b955,_0x10313f,_0x43647c,_0x1653a6,_0x312498){const _0x7faaa4=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x312498['batch'],()=>{for(const _0x451fca of _0x14b955)if(this['_getSuggestion'](_0x451fca,_0x43647c))_0x1653a6(_0x312498);else{const _0x13051d={};for(const _0xbdb87e of _0x10313f){const _0xdf05a4=_0x451fca['getAttribute'](_0xbdb87e);void 0x0!==_0xdf05a4&&(_0x13051d[_0xbdb87e]=_0xdf05a4);}_0x1653a6(_0x312498),_0x7faaa4['markBlockFormat'](_0x451fca,{'commandParams':[_0x13051d]},[],_0x43647c);}});}['handleDiscardAction'](_0x14dc24,_0x5ed147,_0x5e576b){const _0x534b07=_0x5ed147[0x0]['start']['nodeAfter'],_0x2d8f9f=_0x5e576b['commandParams'][0x0];this['editor']['model']['change'](_0x58763b=>{for(const _0x15ec9b of _0x14dc24)void 0x0!==_0x2d8f9f[_0x15ec9b]?_0x58763b['setAttribute'](_0x15ec9b,_0x2d8f9f[_0x15ec9b],_0x534b07):_0x58763b['removeAttribute'](_0x15ec9b,_0x534b07);});}['handleSuggestionDescription'](_0x386d5b){if(_0x386d5b['data'])switch(_0x386d5b['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x412a43,_0x238a0e){const _0x413d0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x474ae9 of _0x413d0['getSuggestions']({'skipNotAttached':!0x0})){const _0x14cb1b=_0x474ae9['getContainedElement']();if(_0x474ae9['subType']===_0x238a0e&&_0x14cb1b===_0x412a43)return _0x474ae9;}return null;}['_registerTablePropertiesAttributes'](){const _0x568fac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e7a4b=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1b7e90 of _0x2e7a4b){const _0x1fc149=_0x1b7e90['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x568fac['descriptionFactory']['registerAttributeLabel'](_0x1b7e90,St(this['editor']['locale'],'FORMAT_'+_0x1fc149));}}},tn=class extends _0x413c81{['afterInit'](){const _0x2bbb2b=this['editor'];if(!_0x2bbb2b['plugins']['has']('LineHeight'))return;const _0x4bac6c=_0x2bbb2b['plugins']['get']('TrackChangesEditing'),_0x3b33ce=_0x2bbb2b['locale'];_0x4bac6c['enableDefaultAttributesIntegration']('lineHeight'),_0x4bac6c['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x3b33ce,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x413c81{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x15ba36,_0x28ef11,_0xbc2e11,_0x3ee483,_0x23df0a,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x123456){super(_0x123456),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x399dc1,_0xfaa4d3,_0x4f5743,_0x240dce)=>{this['_model']['change'](()=>{for(const _0x19f7e0 of[..._0x240dce,..._0x4f5743])this['_model']['markers']['has'](_0x19f7e0)&&_0x123456['editing']['reconvertMarker'](_0x19f7e0);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x123456['plugins']['get'](_0x15ba36),this['_suggestionsConversion']=_0x123456['plugins']['get'](_0x28ef11),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x123456['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x123456['config']['get']('trackChanges.trackFormatChanges'),_0x123456['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x123456['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x123456,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1b84f8=this['editor'];_0x1b84f8['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x6559f9,{writer:_0x1bc4eb})=>{let _0x379ea6='suggestion:'+_0x6559f9['getAttribute']('suggestion-type')+':'+_0x6559f9['getAttribute']('id');return _0x6559f9['getAttribute']('marker-count')&&(_0x379ea6+=':'+_0x6559f9['getAttribute']('marker-count')),_0x1bc4eb['createElement']('$marker',{'data-name':_0x379ea6});}}),_0x1b84f8['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b84f8['model']['document']['registerPostFixer'](_0x336535=>{let _0x2e70d1=!0x1;const _0x43658c=Array['from'](_0x1b84f8['model']['document']['differ']['getChangedMarkers']()),_0x3fc053=new Set();for(const {name:_0x54301b,data:_0x52e34f}of _0x43658c){const {group:_0xe4ab01,type:_0x1ae5da,subType:_0x33852e,id:_0x58798e}=tt(_0x54301b);if('suggestion'!==_0xe4ab01)continue;const _0xd3cb0a=_0x33852e?'suggestion:'+_0x1ae5da+':'+_0x33852e+':'+_0x58798e:'suggestion:'+_0x1ae5da+':'+_0x58798e,_0xd4a674=_0x1b84f8['model']['markers']['getMarkersGroup'](_0xd3cb0a),_0x4868f8=_0x1b84f8['model']['markers']['get'](_0x54301b),_0x321487=this['_suggestions']['get'](_0x58798e);if(null!=_0x52e34f['newRange']){'formatInline'==_0x1ae5da&&(_0x2e70d1=_0x2e70d1||an(_0x52e34f['newRange'],_0x54301b,_0x336535,_0x1b84f8['model']['schema']));const _0xfd1fd='attribute'==_0x1ae5da&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x33852e)),_0x3d2fe1='attribute'==_0x1ae5da&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x33852e));if(_0x52e34f['newRange']['isCollapsed']||'$graveyard'==_0x52e34f['newRange']['root']['rootName']||'formatBlock'==_0x1ae5da&&!ln(_0x52e34f['newRange'])||_0xfd1fd&&!ln(_0x52e34f['newRange'])||_0x3d2fe1&&un(_0x52e34f['newRange'])||'deletion'==_0x1ae5da&&un(_0x52e34f['newRange'])||_0x4868f8&&dn(_0x4868f8,_0xd4a674))_0x336535['removeMarker'](_0x54301b),_0x2e70d1=!0x0;else{if(!_0x321487||!_0x321487['isInContent'])continue;if(_0x52e34f['newRange']&&_0x52e34f['oldRange']&&_0x52e34f['newRange']['isEqual'](_0x52e34f['oldRange']))continue;_0x3fc053['add'](_0x321487);}}}return _0x3fc053['size']>0x0&&(_0x2e70d1=!!this['_joinWithAdjacentSuggestions'](_0x3fc053)||_0x2e70d1),_0x2e70d1;}),_0x1b84f8['model']['document']['registerPostFixer'](_0x23979f=>{let _0x4678c6=!0x1;for(const _0x2e0fb8 of _0x1b84f8['model']['document']['differ']['getChanges']())if('insert'==_0x2e0fb8['type'])for(const _0x121e5f of this['_suggestions']['values']()){if(_0x121e5f['isMultiRange']||!_0x121e5f['isInContent'])continue;const _0x1e4462='formatBlock'==_0x121e5f['type'],_0x1aff41=this['_getAttributeKey'](_0x121e5f),_0x368bb0=_0x1aff41&&this['_suggestionsConversion']['isBlockAttribute'](_0x1aff41);if(!_0x1e4462&&!_0x368bb0)continue;const _0x5b9bd9=_0x121e5f['getFirstRange']();if(_0x5b9bd9['start']['parent']!=_0x5b9bd9['end']['parent']&&!_0x5b9bd9['end']['isAtEnd']){const _0x2f4039=_0x1b84f8['model']['createPositionAt'](_0x5b9bd9['start']['nodeAfter'],'end'),_0x87c6b3=_0x1b84f8['model']['createRange'](_0x5b9bd9['start'],_0x2f4039);_0x23979f['updateMarker'](_0x121e5f['getFirstMarker'](),{'range':_0x87c6b3}),_0x4678c6=!0x0;}}return _0x4678c6;}),_0x1b84f8['model']['document']['registerPostFixer'](_0x16c969=>this['_processAttributeChanges'](_0x16c969)),_0x1b84f8['model']['document']['registerPostFixer'](_0x3b7597=>!_0x3b7597['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b7597)),_0x1b84f8['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b84f8['model']['document']['on']('change:data',(_0x24af8f,_0x14597c)=>{if(!_0x14597c['isLocal']||_0x14597c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3957fc=_0x1b84f8['model']['document']['differ']['getChanges']();if(0x0==_0x3957fc['length'])return;const _0x4bf9a6=[],_0x752b1e=_0x3957fc['filter'](_0x49dbb9=>'attribute'==_0x49dbb9['type']),_0x443823=_0x3957fc['filter'](_0x7c3e00=>'insert'==_0x7c3e00['type']&&'$text'!=_0x7c3e00['name']);for(const _0xf0e9d1 of _0x752b1e)this['_suggestionsConversion']['isRegisteredAttribute'](_0xf0e9d1['attributeKey'])&&_0x4bf9a6['push']({'key':_0xf0e9d1['attributeKey'],'newValue':_0xf0e9d1['attributeNewValue'],'oldValue':_0xf0e9d1['attributeOldValue'],'range':hn(_0xf0e9d1['range'],_0x1b84f8['model'])});for(const _0x431638 of _0x443823){if('rename'!=_0x431638['action']&&'refresh'!=_0x431638['action'])continue;const _0x1a42a4=gn(_0x431638['position']['nodeAfter'],_0x1b84f8['model']),_0x5dcccb=_0x431638['before'];'rename'==_0x431638['action']&&_0x4bf9a6['push']({'key':en,'newValue':_0x431638['name'],'oldValue':_0x5dcccb['name'],'range':_0x1a42a4});for(const [_0x3702d0,_0x575ecf]of _0x5dcccb['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3702d0))continue;const _0x4ae1a1=_0x431638['attributes']['get'](_0x3702d0);_0x575ecf!==_0x4ae1a1&&_0x4bf9a6['push']({'key':_0x3702d0,'newValue':_0x4ae1a1,'oldValue':_0x575ecf,'range':_0x1a42a4});}for(const [_0x23b1f1,_0x1d3ecd]of _0x431638['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x23b1f1)&&(_0x5dcccb['attributes']['has'](_0x23b1f1)||_0x4bf9a6['push']({'key':_0x23b1f1,'newValue':_0x1d3ecd,'oldValue':null,'range':_0x1a42a4}));}0x0!=_0x4bf9a6['length']&&_0x1b84f8['model']['enqueueChange'](_0x14597c,_0x2952a5=>{const _0x2ab681=_0x1f4b16();for(const {range:_0x42e73a,key:_0xd400d0,oldValue:_0x2c4878,newValue:_0x3fe320}of _0x4bf9a6)this['markAttributeChange'](_0x42e73a,_0xd400d0,_0x2c4878,_0x3fe320,{'groupId':_0x2ab681});this['_reduceExistingSuggestions'](_0x2952a5,_0x4bf9a6);});},{'priority':'lowest'}),_0x1b84f8['model']['markers']['on']('update:suggestion',(_0x4e58cc,_0x2f0f14,_0x45a81e)=>{if(null==_0x45a81e){const {id:_0x1b0c0a}=tt(_0x2f0f14['name']),_0x330001=this['_suggestions']['get'](_0x1b0c0a);_0x330001&&_0x330001['addMarkerName'](_0x2f0f14['name']);}}),_0x1b84f8['model']['document']['on']('change:data',()=>{const _0x69a6cd=Array['from'](_0x1b84f8['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2ade55=>'suggestion'===tt(_0x2ade55['name'])['group']);if(0x0===_0x69a6cd['length'])return;_0x69a6cd['sort']((_0x17ccfe,_0x260e80)=>{const _0x1b9103=_0x17ccfe['data']['oldRange'],_0x4dc6b4=_0x260e80['data']['oldRange'];return null===_0x1b9103&&null===_0x4dc6b4?0x0:null===_0x1b9103&&null!==_0x4dc6b4?-0x1:null!==_0x1b9103&&null===_0x4dc6b4?0x1:_0x1b9103['start']['isBefore'](_0x4dc6b4['start'])?-0x1:0x1;});const _0x169a8c=new Set(),_0x8602b2=new Set();for(const {name:_0x3959cb,data:_0x3f296f}of _0x69a6cd){const {id:_0x3533c1}=tt(_0x3959cb);if(null===_0x3f296f['oldRange']){const _0x51e373=this['_handleNewSuggestionMarker'](_0x3959cb);_0x8602b2['add'](_0x51e373);}else{const _0x557356=this['_suggestions']['get'](_0x3533c1);null!==_0x3f296f['newRange']||_0x557356['isInContent']?(_0x169a8c['add'](_0x557356['head']),_0x8602b2['add'](_0x557356)):this['_removeSuggestion'](_0x557356);}}_0x8602b2['size']>0x0&&this['_refreshSuggestionsChain'](_0x8602b2);for(const _0x1ad9b8 of _0x169a8c)this['fire']('suggestionChanged',_0x1ad9b8);}),_0x1b84f8['model']['on']('applyOperation',(_0x24dcdd,_0x5ed31a)=>{const _0x3a36f7=_0x5ed31a[0x0];if(!this['_suggestions']['size'])return;if(!_0x3a36f7['isDocumentOperation'])return;if(_0x3a36f7['batch']['isUndo']||!_0x3a36f7['batch']['isLocal'])return;let _0x78a68c,_0x18636f;switch(_0x3a36f7['type']){case'insert':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['position']),_0x18636f=_0x78a68c['getShiftedBy'](_0x3a36f7['howMany']);break;case'split':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['splitPosition']),_0x18636f=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['moveTargetPosition']);break;case'move':_0x78a68c=_0x1b84f8['model']['createPositionAt'](_0x3a36f7['targetPosition']),_0x18636f=_0x78a68c['getShiftedBy'](_0x3a36f7['howMany']);break;default:return;}const _0x2acd32=_0x1b84f8['model']['createRange'](_0x78a68c,_0x18636f);_0x1b84f8['model']['change'](()=>{for(const {suggestion:_0x12e9cb,meta:_0x2c24e1}of this['_findSuggestions'](_0x2acd32)){if(_0x12e9cb['isMultiRange'])continue;if('formatInline'==_0x12e9cb['type'])continue;const _0x4d3d4c=this['_getAttributeKey'](_0x12e9cb);if(_0x4d3d4c&&this['_suggestionsConversion']['isBlockAttribute'](_0x4d3d4c)&&'split'!=_0x3a36f7['type'])continue;const _0x2b1ea8=_0x12e9cb['data']&&_0x12e9cb['data']['multipleBlocks'];('formatBlock'!=_0x12e9cb['type']||'split'==_0x3a36f7['type']&&!_0x2b1ea8)&&(_0x2c24e1['containsRangeInObject']||'insertion'==_0x12e9cb['type']&&_0x2c24e1['isOwn']||_0x12e9cb['getFirstRange']()['containsRange'](_0x2acd32)&&this['_breakSuggestionMarker'](_0x12e9cb,_0x78a68c,_0x18636f));}});},{'priority':'lowest'}),_0x1b84f8['model']['on']('deleteContent',(_0x87e234,_0x220c0e)=>{const _0x5bc503=_0x220c0e[0x0],_0x3a6801=_0x220c0e[0x1];if(_0x3a6801&&_0x3a6801['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5bc503['isCollapsed'])return;const _0x547475=_0x1b84f8['model']['schema'],{start:_0x47b55b,end:_0x4800f1}=_0x5bc503['getFirstRange'](),_0x1f0939=_0x47b55b['nodeAfter']&&_0x547475['isLimit'](_0x47b55b['nodeAfter'])?null:_0x547475['getNearestSelectionRange'](_0x47b55b,'forward'),_0x501221=_0x4800f1['nodeBefore']&&_0x547475['isLimit'](_0x4800f1['nodeBefore'])?null:_0x547475['getNearestSelectionRange'](_0x4800f1,'backward'),_0x15f8ca=_0x1b84f8['model']['createRange'](_0x1f0939?_0x1f0939['start']:_0x47b55b,_0x501221?_0x501221['end']:_0x4800f1);_0x1b84f8['model']['change'](_0x35c060=>{this['markDeletion'](_0x15f8ca);const _0xd60e1d=_0x1b84f8['model']['schema']['getNearestSelectionRange'](_0x15f8ca['start']);_0x5bc503['is']('documentSelection')?_0x35c060['setSelection'](_0xd60e1d):_0x5bc503['setTo'](_0xd60e1d);}),_0x87e234['stop']();},{'priority':_0x1cf13d['normal']+0xa}),_0x1b84f8['model']['on']('insertContent',(_0x8f1e3c,_0x4f95bc)=>{const _0x40854d=_0x4f95bc[_0x4f95bc['length']-0x1];_0x40854d&&_0x40854d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b84f8['model']['change'](()=>{let _0x49edb9=_0x1b84f8['model']['insertContent'](_0x4f95bc[0x0],_0x4f95bc[0x1],_0x4f95bc[0x2],{'forceDefaultExecution':!0x0});if(!_0x49edb9)return;_0x8f1e3c['return']=_0x49edb9['clone']();const _0x2bed1a=_0x49edb9['end']['nodeBefore'],_0x3d6f3f=_0x1b84f8['model']['schema'];_0x2bed1a&&_0x3d6f3f['isBlock'](_0x2bed1a)&&!_0x3d6f3f['isObject'](_0x2bed1a)&&(_0x49edb9=_0x1b84f8['model']['createRange'](_0x49edb9['start'],_0x1b84f8['model']['createPositionAt'](_0x2bed1a,'end'))),this['markInsertion'](_0x49edb9);}),_0x8f1e3c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2a832c=new Tt(_0x1b84f8,this['_suggestions']);_0x1b84f8['commands']['add']('acceptSuggestion',_0x2a832c),this['enableCommand']('acceptSuggestion');const _0xd7ebb6=new _t(_0x1b84f8,this['_suggestions']);_0x1b84f8['commands']['add']('discardSuggestion',_0xd7ebb6),this['enableCommand']('discardSuggestion'),_0x1b84f8['commands']['add']('acceptAllSuggestions',new Ct(_0x1b84f8,_0x2a832c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b84f8['commands']['add']('discardAllSuggestions',new Ct(_0x1b84f8,_0xd7ebb6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b84f8['commands']['add']('acceptSelectedSuggestions',new Rt(_0x1b84f8,_0x2a832c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b84f8['commands']['add']('discardSelectedSuggestions',new Rt(_0x1b84f8,_0xd7ebb6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xddeab5=_0x1b84f8['plugins']['get'](_0x15ba36);this['listenTo'](_0xddeab5,'addComment',(_0x1574af,{threadId:_0x5421fd})=>{const _0x4e1e4d=this['_suggestions']['get'](_0x5421fd);_0x4e1e4d&&_0x4e1e4d['commentThread']&&0x1===_0x4e1e4d['commentThread']['length']&&this['_updateSuggestionData'](_0x5421fd,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xddeab5,'removeComment',(_0x1e6d70,{threadId:_0x459368})=>{const _0x103067=this['_suggestions']['get'](_0x459368);_0x103067&&_0x103067['commentThread']&&!_0x103067['commentThread']['length']&&this['_updateSuggestionData'](_0x459368,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x35f6e0){const _0x4126b2='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x1ec3d4=0x78fc0,_0x10133a=window['Date']['now'](),_0x20216d=_0x35f6e0['editor'],_0x2d5ac2=new window['Promise'](_0x5c0b47=>{_0x20216d['once']('ready',_0x5c0b47);}),_0x4006ba={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x2d117a=_0x20216d['config']['get']('licenseKey');async function _0x300660(){let _0x5eb82a,_0x14f6ed=null,_0x23ab75=null;try{return'GPL'==_0x2d117a?'NotAllowed':(_0x5eb82a=_0x5a9ac3(),_0x5eb82a?(_0x5eb82a['usageEndpoint']&&(_0x23ab75=_0x1db2dd(_0x5eb82a['usageEndpoint'],_0x5eb82a['jti'])),await _0x3fdb36()?_0x8947ce()?_0x375c09()?'Expired':_0x71d672()?('evaluation'==_0x5eb82a['licenseType']&&(_0x14f6ed=_0x480019('EvaluationLimit')),await _0x5387ec()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x375c09(){const _0x140e9e=['evaluation','trial']['includes'](_0x5eb82a['licenseType'])?_0x10133a/0x3e8:0xe10*_0x1ec3d4;return _0x5eb82a['exp']<_0x140e9e;}function _0x8947ce(){const _0x303313=_0x5eb82a['features'];if(!_0x303313)return!0x1;if(_0x303313['includes']('*'))return!0x0;if(_0x303313['includes']('TC'))return!0x0;if(_0x303313['includes']('RTC')){if(_0x192acb())return!0x0;if(_0x3c397a()||_0x450a9a())return!0x0;}return!0x1;}function _0x71d672(){const _0x3d645b=_0x5eb82a['licensedHosts'];if(!_0x3d645b||0x0==_0x3d645b['length'])return!0x0;const {hostname:_0xe1ffc9}=new URL(window['location']['href']);if(_0x3d645b['includes'](_0xe1ffc9))return!0x0;const _0x228e3d=_0xe1ffc9['split']('.');return _0x3d645b['filter'](_0x1749d3=>_0x1749d3['includes']('*'))['map'](_0x322407=>_0x322407['split']('.'))['filter'](_0x1a3e0c=>_0x1a3e0c['length']<=_0x228e3d['length'])['map'](_0x3acf4c=>Array(_0x228e3d['length']-_0x3acf4c['length'])['fill']('*'===_0x3acf4c[0x0]?'*':'')['concat'](_0x3acf4c))['some'](_0x292e3c=>_0x228e3d['every']((_0x1c66d1,_0x30d601)=>_0x292e3c[_0x30d601]===_0x1c66d1||'*'===_0x292e3c[_0x30d601]));}function _0x5387ec(){return _0x14f6ed&&_0x23ab75?new window['Promise']((_0x265be9,_0x219754)=>{_0x14f6ed['then'](_0x265be9,_0x219754),_0x23ab75['then'](_0x595e0f=>{'Valid'!=_0x595e0f&&_0x265be9(_0x595e0f);},_0x219754);}):_0x14f6ed||_0x23ab75||'Valid';}}function _0x1db2dd(_0x1e1b66,_0x3d8d4e){return new window['Promise'](_0x3b62a4=>{if(_0x26ce2b())return _0x3b62a4('Valid');_0x547cfa(),_0x20216d['decorate']('_sendUsageRequest');let _0x2f0116=!0x1;const _0x485232=_0x1f4b16();function _0x8f502c(_0x31776b){return!!_0x31776b&&('object'==typeof _0x31776b||'function'==typeof _0x31776b)&&'function'==typeof _0x31776b['then']&&'function'==typeof _0x31776b['catch'];}function _0x63813b(_0x2d571d){_0x2f3878(_0x2d571d)['then'](_0x58f263=>_0x58f263&&'ok'==_0x58f263['status']?_0xb8dff6(_0x185d48(_0x485232+_0x3d8d4e))!=_0x58f263['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x3b02b3=>(_0x321397(),_0x3b02b3),()=>{const _0xa39bc8=_0x321253();return null==_0xa39bc8?(_0x321397(),'Valid'):_0x10133a-_0xa39bc8>0x240c8400?'UsageLimit':'Valid';})['then'](_0x3b62a4)['catch'](()=>{_0x3b62a4('UsageLimit');});const _0x294f2c=0x36ee80;function _0x321397(){const _0xb0f476='llct-'+_0xb8dff6(_0x185d48(_0x1e1b66)),_0x5659a5=_0x1d0bc2(_0xb8dff6(window['Math']['ceil'](_0x10133a/_0x294f2c)));window['localStorage']['setItem'](_0xb0f476,_0x5659a5);}function _0x321253(){const _0xf5e5a7='llct-'+_0xb8dff6(_0x185d48(_0x1e1b66)),_0x582a79=window['localStorage']['getItem'](_0xf5e5a7);return _0x582a79?window['parseInt'](_0x1d0bc2(_0x582a79),0x10)*_0x294f2c:null;}function _0x2f3878(_0x1ab18e){return new window['Promise']((_0x18b101,_0x2cd26a)=>{_0x1ab18e['then'](_0x18b101,_0x2cd26a),window['setTimeout'](_0x2cd26a,0x1d4c0);});}}_0x20216d['on']('_sendUsageRequest',(_0xbd941d,_0xcc3374)=>{if(_0xcc3374[0x0]!=_0x1e1b66)return _0x3b62a4('UsageLimit');_0xcc3374[0x1]={..._0xcc3374[0x1],'requestId':_0x485232};},{'priority':'high'}),_0x20216d['on']('_sendUsageRequest',_0x2ff7a5=>{_0x8f502c(_0x2ff7a5['return'])&&(_0x2f0116=!0x0,_0x63813b(_0x2ff7a5['return']));},{'priority':'low'}),_0x2d5ac2['then'](()=>{_0x2f0116||_0x3b62a4('UsageLimit');});});function _0x26ce2b(){return'auto'==_0x20216d['editing']['view']['_overlayModeHint'];}function _0x547cfa(){_0x20216d['editing']['view']['_overlayModeHint']='auto';}}function _0x480019(_0xdf477){const _0x4f6365=[new window['Promise'](_0x32ab60=>setTimeout(_0x32ab60,0x93ecc)),_0x2d5ac2['then'](()=>new window['Promise'](_0x58b562=>{let _0x57d9e2=0x0;_0x20216d['model']['on']('applyOperation',(_0x58013b,_0x5888e4)=>{_0x5888e4[0x0]['isDocumentOperation']&&_0x57d9e2++,0x5e8==_0x57d9e2&&(_0x58b562(),_0x58013b['off']());});}))];return window['Promise']['race'](_0x4f6365)['then'](()=>_0xdf477);}async function _0x4f3e6d(){await _0x2d5ac2,_0x20216d['model']['change']=_0x181d65,_0x20216d['model']['enqueueChange']=_0x181d65,_0x20216d['enableReadOnlyMode']('model');}function _0x192acb(){return _0xe8a4ac('WebSocketGateway')&&'connected'==_0x11e1de('WebSocketGateway')['state'];}function _0x3c397a(){return _0xe8a4ac('RevisionViewerIntegration');}function _0x450a9a(){return _0xe8a4ac('TrackChangesDataGetter');}function _0xfcc595(_0x47f3db){const _0x427e40=_0x15e25b();_0x20216d[_0x427e40]='trackChangesLicenseKey'+_0x47f3db,'Valid'!=_0x47f3db&&_0x4f3e6d();}function _0x15e25b(){const _0x17e093=window['String'](window['performance']['now']())['replace']('.','');let _0x57caa1='R';for(let _0x15f312=0x0;_0x15f312<_0x17e093['length'];_0x15f312+=0x2){let _0xf3d898=window['parseInt'](_0x17e093['substring'](_0x15f312,_0x15f312+0x2));_0xf3d898>=0x3e&&(_0xf3d898-=0x3e),_0x57caa1+=_0x4126b2[_0xf3d898];}return _0x57caa1;}function _0x5a9ac3(){const _0x58c02f=_0x2d117a['split']('.');if(0x3!=_0x58c02f['length'])return null;return _0x3e6fbc(_0x58c02f[0x1]);function _0x3e6fbc(_0x17a264){const _0x8292bb=_0x29134c(_0x17a264);return _0x8292bb&&_0x42e52()?_0x8292bb:null;function _0x42e52(){const _0x3df787=_0x8292bb['jti'],_0x260fa8=window['parseInt'](_0x3df787['substring'](_0x3df787['length']-0x8),0x10),_0x8013b5={..._0x8292bb,'jti':_0x3df787['substring'](0x0,_0x3df787['length']-0x8)};return delete _0x8013b5['vc'],_0x185d48(_0x8013b5)==_0x260fa8;}}}async function _0x3fdb36(){let _0x58ae5e=!0x0;try{const [_0x42ca50,_0x5c79e5,_0x23ceeb]=_0x2d117a['split']('.');return _0x452f64(_0x42ca50),await _0x582b89(_0x42ca50,_0x5c79e5,_0x23ceeb),_0x58ae5e;}catch{return!0x1;}function _0x452f64(_0xa326c0){const _0x482ec5=_0x29134c(_0xa326c0);_0x482ec5&&'ES256'==_0x482ec5['alg']||(_0x58ae5e=!0x1);}async function _0x582b89(_0x14c83c,_0x287acc,_0x12dd95){const _0x5146b7=window['Uint8Array']['from'](_0xe94d5e(_0x12dd95),_0x244a32=>_0x244a32['charCodeAt'](0x0)),_0x2a8fff=new window['TextEncoder']()['encode'](_0x14c83c+'.'+_0x287acc),_0x4bc9e6=window['crypto']['subtle'];if(!_0x4bc9e6)return;const _0x20468e=await _0x4bc9e6['importKey']('jwk',_0x4006ba,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x4bc9e6['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x20468e,_0x5146b7,_0x2a8fff)||(_0x58ae5e=!0x1);}}function _0x29134c(_0x41629a){return _0x41629a['startsWith']('ey')?JSON['parse'](_0xe94d5e(_0x41629a)):null;}function _0xe94d5e(_0x1a4856){return window['atob'](_0x1a4856['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x185d48(_0x5078c3){let _0x5d5611=0x1505;function _0x338070(_0x159707){for(let _0x4cd7b5=0x0;_0x4cd7b5<_0x159707['length'];_0x4cd7b5++){const _0x15390b=_0x159707['charCodeAt'](_0x4cd7b5);_0x5d5611=(_0x5d5611<<0x5)+_0x5d5611+_0x15390b,_0x5d5611&=_0x5d5611;}}function _0x328aa9(_0x4eb78e){Array['isArray'](_0x4eb78e)?_0x4eb78e['forEach'](_0x328aa9):_0x4eb78e&&'object'==typeof _0x4eb78e?Object['entries'](_0x4eb78e)['sort']()['forEach'](([_0x161844,_0x38c05b])=>{_0x338070(_0x161844),_0x328aa9(_0x38c05b);}):_0x338070(window['String'](_0x4eb78e));}return _0x328aa9(_0x5078c3),_0x5d5611>>>0x0;}function _0xb8dff6(_0x64b371){return _0x64b371['toString'](0x10)['padStart'](0x8,'0');}function _0x1d0bc2(_0x49a594){return _0x49a594['split']('')['reverse']()['join']('');}function _0xe8a4ac(_0x5c8f7b){return _0x20216d['plugins']['has'](_0x5c8f7b);}function _0x11e1de(_0x3cdbe6){return _0x20216d['plugins']['get'](_0x3cdbe6);}function _0x181d65(){}_0xfcc595(await _0x300660());}(this);}set['adapter'](_0x1994e4){if(this['_adapter'])throw new _0x5748df('track-changes-adapter-already-set',this);this['_adapter']=_0x1994e4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x502176=!0x1,toJSON:_0x3a6ff0=!0x1}={}){const _0x35461d=[];for(const _0x5a955d of this['_suggestions']['values']())_0x502176&&!_0x5a955d['isInContent']||_0x35461d['push'](_0x5a955d);return _0x3a6ff0?_0x35461d['map'](_0x571f59=>_0x571f59['toJSON']()):_0x35461d;}['getSuggestion'](_0x3109cd){const _0x4b8908=this['_suggestions']['get'](_0x3109cd);if(!_0x4b8908)throw new _0x5748df('track-changes-suggestion-not-found',this);return _0x4b8908;}['hasSuggestion'](_0x8e1e6a){return this['_suggestions']['has'](_0x8e1e6a);}['addSuggestionData'](_0x46ecb4){const {authorId:_0x3e96ea,id:_0x5e7db0,originalSuggestionId:_0x2f4deb,attributes:_0x5d9be6}=_0x46ecb4,[_0x29cb0a,_0x697f9e]=_0x46ecb4['type']['split'](':'),_0x50a9b1=this['_suggestions']['get'](_0x5e7db0)||this['_createSuggestion'](_0x29cb0a,_0x697f9e,_0x5e7db0,_0x3e96ea,_0x5d9be6,_0x2f4deb);if(this['_addThreadToSuggestion'](_0x50a9b1),this['_checkSuggestionCorrectness'](_0x50a9b1,_0x29cb0a,_0x697f9e||null,_0x3e96ea),_0x50a9b1['createdAt']=_0x46ecb4['createdAt'],_0x50a9b1['_isDataLoaded']=!0x0,_0x5d9be6&&_0x5d9be6['@external']){const _0x37cfa9=_0x5d9be6['@external'],_0x367ecf=this['_getExternalAuthor'](_0x37cfa9['authorName']);_0x50a9b1['authoredAt']=_0x37cfa9['createdAt'],_0x50a9b1['author']=_0x367ecf;}else _0x50a9b1['authoredAt']=_0x46ecb4['createdAt'];switch(_0x46ecb4['data']&&(_0x50a9b1['data']=_0x46ecb4['data']),_0x46ecb4['attributes']&&(_0x50a9b1['attributes']=_0x46ecb4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x50a9b1['_saved']=!0x0),this['_suggestionState']['get'](_0x50a9b1)){case'notReady':this['_suggestionState']['set'](_0x50a9b1,'dataReady');break;case'markerReady':_0x50a9b1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x50a9b1])),this['_refreshSuggestionsChain'](new Set([_0x50a9b1])),this['_suggestionState']['set'](_0x50a9b1,'ready'),this['fire']('suggestionLoaded',_0x50a9b1)):this['_suggestionState']['set'](_0x50a9b1,'removed');}return _0x50a9b1;}['acceptSuggestion'](_0x31f2e2){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3a7d6d of _0x31f2e2['getAllAdjacentSuggestions']())_0x3a7d6d['accept']();});});}['discardSuggestion'](_0x55c92e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1318ba of _0x55c92e['getAllAdjacentSuggestions']())_0x1318ba['discard']();});});}['enableCommand'](_0x242804,_0x259e64){const _0x33d203=this['editor']['commands']['get'](_0x242804);if(!_0x33d203)throw new _0x5748df('track-changes-command-not-found',this,{'commandName':_0x242804});if(this['_enabledCommands']['has'](_0x33d203))throw new _0x5748df('track-changes-enable-command-twice',this,{'commandName':_0x242804});this['_enabledCommands']['add'](_0x33d203),_0x259e64&&_0x33d203['on']('execute',(_0x2925e5,_0x1ab9fe)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1ab9fe['length']>0x0&&_0x1ab9fe[_0x1ab9fe['length']-0x1]&&_0x1ab9fe[_0x1ab9fe['length']-0x1]['forceDefaultExecution']?_0x1ab9fe['pop']():(_0x2925e5['return']=_0x259e64((..._0xf7cbef)=>_0x33d203['execute'](..._0xf7cbef,{'forceDefaultExecution':!0x0}),..._0x1ab9fe),_0x2925e5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3a0b41){let _0x11e228,_0x56da38;const _0x5bfb16=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x11e228=_0x3a0b41();}catch(_0x8b35b2){_0x56da38=_0x8b35b2;}return _0x5bfb16||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x56da38&&_0x5748df['rethrowUnexpectedError'](_0x56da38,this),_0x11e228;}['markInsertion'](_0x1756b3,_0x52e4cf=null,_0x58fe4c={}){if(_0x1756b3['isCollapsed'])return null;const _0x112a7e=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x58fe4c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x502355,meta:_0x580c28}of this['_findSuggestions'](_0x1756b3,'insertion'))if(_0x580c28['isOwn']){if(!_0x580c28['isNextTo']){if(_0x580c28['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x502355,_0x58fe4c))continue;return _0x502355;}if(En(_0x502355,_0x58fe4c))return _0x502355;this['_breakSuggestionMarker'](_0x502355,_0x1756b3['start'],_0x1756b3['end']);break;}if(_0x52e4cf==_0x502355['subType']&&En(_0x502355,_0x58fe4c)){const _0x2d37ce=_0x502355['getFirstRange']();return _0x2d37ce['start']['isEqual'](_0x1756b3['end'])?this['_setSuggestionRange'](_0x502355,this['_model']['createRange'](_0x1756b3['start'],_0x2d37ce['end'])):this['_setSuggestionRange'](_0x502355,this['_model']['createRange'](_0x2d37ce['start'],_0x1756b3['end'])),_0x502355;}}const _0x59830f=_0x1f4b16(),_0x2bb036=_0x112a7e['id'],_0x35cf6a=_0x52e4cf?'insertion:'+_0x52e4cf:'insertion',_0x5de4a6=this['_setSuggestionData']({'id':_0x59830f,'type':_0x35cf6a,'createdAt':new Date(),'authorId':_0x2bb036,'attributes':_0x58fe4c});return this['_addSuggestionMarker'](_0x35cf6a,_0x59830f,_0x2bb036,_0x1756b3),_0x5de4a6;}['markMultiRangeInsertion'](_0x1a770a,_0x372e52='multi',_0x3f68c2={}){const _0x66dd59=this['editor']['plugins']['get']('Users')['me'],_0x1bb2c5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x372e52,'join');this['_trackingSessionId']&&(_0x3f68c2['trackingSessionId']=this['_trackingSessionId']);for(const _0x506c8e of this['getSuggestions']())if(_0x506c8e['author']['id']==_0x66dd59['id']&&'insertion'==_0x506c8e['type']&&_0x506c8e['subType']==_0x372e52&&En(_0x506c8e,_0x3f68c2)&&(_0x1bb2c5(_0x506c8e['getRanges'](),_0x1a770a)||_0x1bb2c5(_0x1a770a,_0x506c8e['getRanges']()))){for(const _0xbad5e1 of _0x1a770a)_0x506c8e['addRange'](_0xbad5e1);return _0x506c8e;}for(const {suggestion:_0x334b68,meta:_0x4cf585}of this['_findSuggestions'](_0x1a770a,'insertion')){if(!_0x4cf585['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4cf585['containsRangeInObject'])continue;if(!En(_0x334b68,_0x3f68c2))continue;let _0x4e7b4e=!0x0;for(const _0x32576e of _0x334b68['getRanges']())for(const _0x11f67d of _0x1a770a)if(!_0x32576e['containsRange'](_0x11f67d)){_0x4e7b4e=!0x1;break;}if(_0x4e7b4e)return _0x334b68;}const _0x378909=_0x1f4b16(),_0x5c1a7f=_0x66dd59['id'],_0x421a0b='insertion:'+_0x372e52,_0x5e0f03=this['_setSuggestionData']({'id':_0x378909,'type':_0x421a0b,'createdAt':new Date(),'authorId':_0x5c1a7f,'attributes':_0x3f68c2});for(const _0xe17e0c of _0x1a770a)this['_addSuggestionMarker'](_0x421a0b,_0x378909,_0x5c1a7f,_0xe17e0c,yt['getMultiRangeId']());return _0x5e0f03;}['markInlineFormat'](_0x11cc9d,_0x3232c2,_0x243769=null,_0x598143={}){if(_0x243769=_0x243769||cn(_0x3232c2),_0x11cc9d['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x598143['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4b244f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x243769,'accept');return this['forceDefaultExecution'](()=>_0x4b244f([_0x11cc9d],_0x3232c2,_0x598143)),null;}const _0x503576=this['editor']['plugins']['get']('Users')['me'],_0x18d9c3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x35a7c0,meta:_0x2637ab}of this['_findSuggestions'](_0x11cc9d,'insertion'))_0x2637ab['isOwn']&&!_0x2637ab['isInsideObject']&&_0x18d9c3['push'](..._0x35a7c0['getRanges']());}const _0x235866=function(_0xf41284,_0x160087){const _0xaceae8=[];for(const _0x2215da of _0x160087){const _0x299791=_0xf41284['getIntersection'](_0x2215da);_0x299791&&_0xaceae8['push'](_0x299791);}return _0xaceae8;}(_0x11cc9d,_0x18d9c3),_0x3bb596=function(_0x492298,_0x26dffa){const _0x1d4675=[_0x492298];for(const _0x33e5a1 of _0x26dffa){let _0x5c746e=0x0;for(;_0x5c746e<_0x1d4675['length'];){const _0x2e5a45=_0x1d4675[_0x5c746e]['getDifference'](_0x33e5a1);_0x1d4675['splice'](_0x5c746e,0x1,..._0x2e5a45),_0x5c746e+=_0x2e5a45['length'];}}return _0x1d4675;}(_0x11cc9d,_0x18d9c3);_0x235866['length']&&this['_model']['change'](()=>{for(const _0x52b38b of _0x235866){const _0x1e05f7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x243769,'accept');this['forceDefaultExecution'](()=>_0x1e05f7([_0x52b38b],_0x3232c2,_0x598143));}});for(const _0x5063cc of _0x3bb596){let _0x5deb56=null,_0x5df885=_0x5063cc['start'],_0x324c9f=_0x5063cc['end'];for(const {suggestion:_0x1cf508,meta:_0x5ee3c2}of this['_findSuggestions'](_0x5063cc,'formatInline')){if(!_0x5ee3c2['isOwn'])continue;if(_0x1cf508['subType']!=_0x243769)continue;if(!En(_0x1cf508,_0x598143))continue;const _0x4d861a=_0x1cf508['getFirstRange']();if(_0x4d861a['containsRange'](_0x5063cc,!0x0))return null;_0x5df885=_0x5df885['isBefore'](_0x4d861a['start'])?_0x5df885:_0x4d861a['start'],_0x324c9f=_0x324c9f['isAfter'](_0x4d861a['end'])?_0x324c9f:_0x4d861a['end'],_0x5deb56?_0x4d861a['start']['isBefore'](_0x5deb56['getFirstRange']()['start'])?(_0x5deb56['removeMarkers'](),_0x5deb56=_0x1cf508):_0x1cf508['removeMarkers']():_0x5deb56=_0x1cf508;}const _0x1b360a=this['_model']['createRange'](_0x5df885,_0x324c9f);if(_0x5deb56)this['_setSuggestionRange'](_0x5deb56,_0x1b360a);else{const _0x2fb883=_0x1f4b16(),_0x60b08a=_0x503576['id'];this['_setSuggestionData']({'id':_0x2fb883,'type':'formatInline:'+_0x243769,'data':_0x3232c2,'createdAt':new Date(),'authorId':_0x60b08a,'attributes':_0x598143}),this['_addSuggestionMarker']('formatInline:'+_0x243769,_0x2fb883,_0x60b08a,_0x1b360a);}}return null;}['markBlockFormat'](_0x131d80,_0x4bd01e,_0x4f91e1=[],_0x5bc8a2=null,_0x1cc538={}){_0x4bd01e['formatGroupId']||(_0x4bd01e['formatGroupId']=_0x4bd01e['commandName']),_0x4bd01e['multipleBlocks']=_0x131d80['is']('range'),_0x5bc8a2=_0x5bc8a2||cn(_0x4bd01e);const _0x4eda53=_0x4f91e1['map'](_0x2938a4=>gn(_0x2938a4,this['_model'])),_0x312692=_0x131d80['is']('range')?_0x131d80:gn(_0x131d80,this['_model']);if(this['_trackingSessionId']&&(_0x1cc538['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3735b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc8a2,'accept');return this['forceDefaultExecution'](()=>_0x3735b8([_0x312692],_0x4bd01e,_0x1cc538)),null;}_0x4eda53['push'](_0x312692);let _0x5e99f3=!0x0;for(const _0x7c4aac of _0x4eda53)if(!this['_rangeIsInLocalUserInsertion'](_0x7c4aac)){_0x5e99f3=!0x1;break;}if(_0x5e99f3&&'always'!==this['_trackFormatChanges']){const _0x1bdbe0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc8a2,'accept');return this['forceDefaultExecution'](()=>_0x1bdbe0([_0x312692],_0x4bd01e,_0x1cc538)),null;}let _0x45760f=null,_0x912eca=_0x312692['start'],_0x425cfa=_0x312692['end'];for(const {suggestion:_0x5c1349,meta:_0x346393}of this['_findSuggestions'](_0x312692,'formatBlock')){if(!_0x346393['isOwn'])continue;if(_0x346393['isNextTo']||_0x346393['containsRangeInObject']||_0x346393['isInsideObject'])continue;if(_0x5c1349['data']['formatGroupId']!=_0x4bd01e['formatGroupId'])continue;if(!En(_0x5c1349,_0x1cc538))continue;const _0x2298b=_0x5c1349['getFirstRange']();if(_0x5c1349['subType']==_0x5bc8a2){if(_0x2298b['containsRange'](_0x312692,!0x0))return null;_0x912eca=_0x912eca['isBefore'](_0x2298b['start'])?_0x912eca:_0x2298b['start'],_0x425cfa=_0x425cfa['isAfter'](_0x2298b['end'])?_0x425cfa:_0x2298b['end'],_0x45760f?_0x2298b['start']['isBefore'](_0x45760f['getFirstRange']()['start'])?(_0x45760f['removeMarkers'](),_0x45760f=_0x5c1349):_0x5c1349['removeMarkers']():_0x45760f=_0x5c1349;}else{const _0xb492e8=_0x312692['getIntersection'](_0x2298b);this['_cutOutSuggestionMarker'](_0x5c1349,_0xb492e8);}}const _0x531748=this['editor']['plugins']['get']('Users')['me'],_0x45f611=_0x1f4b16(),_0x1ef778=_0x531748['id'];if(_0x45760f)return this['_setSuggestionRange'](_0x45760f,this['_model']['createRange'](_0x912eca,_0x425cfa)),_0x45760f;{const _0x249e8c=this['_setSuggestionData']({'id':_0x45f611,'type':'formatBlock:'+_0x5bc8a2,'data':_0x4bd01e,'createdAt':new Date(),'authorId':_0x1ef778,'attributes':_0x1cc538});return this['_addSuggestionMarker']('formatBlock:'+_0x5bc8a2,_0x45f611,_0x1ef778,this['_model']['createRange'](_0x912eca,_0x425cfa)),_0x249e8c;}}['markMultiRangeBlockFormat'](_0x1ebf17,_0x4c9eeb,_0x12df60=[],_0x321bae=null,_0x42fc38={}){_0x4c9eeb['formatGroupId']||(_0x4c9eeb['formatGroupId']=_0x4c9eeb['commandName']);const _0x6e96df=_0x1ebf17[0x0];_0x4c9eeb['multipleBlocks']=_0x6e96df['is']('range'),_0x321bae=_0x321bae||cn(_0x4c9eeb);const _0x44806a=_0x12df60['map'](_0x41e418=>gn(_0x41e418,this['_model'])),_0x5cfbef=_0x6e96df['is']('range')?_0x1ebf17:_0x1ebf17['map'](_0x6d685b=>gn(_0x6d685b,this['_model']));if(this['_trackingSessionId']&&(_0x42fc38['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d8f55=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'accept');return this['forceDefaultExecution'](()=>_0x4d8f55(_0x5cfbef,_0x4c9eeb,_0x42fc38)),null;}_0x44806a['push'](..._0x5cfbef);let _0x309eb8=!0x0;for(const _0x1c7187 of _0x44806a)if(!this['_rangeIsInLocalUserInsertion'](_0x1c7187)){_0x309eb8=!0x1;break;}if(_0x309eb8&&'always'!==this['_trackFormatChanges']){const _0x2be1e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'accept');return this['forceDefaultExecution'](()=>_0x2be1e7(_0x5cfbef,_0x4c9eeb,_0x42fc38)),null;}const _0xf11e20=this['editor']['plugins']['get']('Users')['me'];for(const _0x2e1f14 of this['getSuggestions']()){const _0x125e94=_0x2e1f14['data'];if(_0x2e1f14['author']['id']!=_0xf11e20['id'])continue;if('formatBlock'!=_0x2e1f14['type']||_0x125e94['formatGroupId']!=_0x4c9eeb['formatGroupId'])continue;if(!En(_0x2e1f14,_0x42fc38))continue;const _0x1ec7e7=_0x2e1f14['subType']==_0x321bae;for(let _0x5954b6=0x0;_0x5954b6<_0x5cfbef['length'];_0x5954b6++){const _0x488d26=_0x5cfbef[_0x5954b6];for(const _0x3b54c5 of _0x2e1f14['getMarkers']()){const _0x1423f5=_0x3b54c5['getRange']();if(_0x488d26['isEqual'](_0x1423f5)){_0x1ec7e7?(_0x5cfbef['splice'](_0x5954b6,0x1),_0x5954b6--):_0x2e1f14['removeMarker'](_0x3b54c5['name']);break;}}}}if(0x0==_0x5cfbef['length'])return null;const _0x3a3d0e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x321bae,'join');for(const _0x359160 of this['getSuggestions']()){const _0x1f257a=_0x359160['data'];if(_0x359160['author']['id']==_0xf11e20['id']&&('formatBlock'==_0x359160['type']&&_0x1f257a['formatGroupId']==_0x4c9eeb['formatGroupId']&&_0x359160['subType']==_0x321bae&&En(_0x359160,_0x42fc38)&&(_0x3a3d0e(_0x359160['getRanges'](),_0x5cfbef)||_0x3a3d0e(_0x5cfbef,_0x359160['getRanges']())))){for(const _0x36bc69 of _0x5cfbef)_0x359160['addRange'](_0x36bc69);return _0x359160;}}const _0x5567ac=_0x1f4b16(),_0x21af39=_0xf11e20['id'],_0x123c58='formatBlock:'+_0x321bae,_0xb00bbc=this['_setSuggestionData']({'id':_0x5567ac,'type':_0x123c58,'data':_0x4c9eeb,'createdAt':new Date(),'authorId':_0x21af39,'attributes':_0x42fc38});for(const _0x108fab of _0x5cfbef)this['_addSuggestionMarker'](_0x123c58,_0x5567ac,_0x21af39,_0x108fab,yt['getMultiRangeId']());return _0xb00bbc;}['markDeletion'](_0x3adbf8,_0x191642=null,_0x5648ec={}){if(_0x3adbf8['isCollapsed'])return null;const _0x3a824d=this['editor']['plugins']['get']('Users')['me'],_0x5aa7a0=new rt(_0x3adbf8['start'],_0x3adbf8['end']);this['_trackingSessionId']&&(_0x5648ec['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5259d3,meta:_0x166467}of this['_findSuggestions'](_0x5aa7a0,'insertion'))if(_0x166467['isOwn']&&!_0x166467['isNextTo']){if(_0x5259d3['isMultiRange']){const _0x48d48a=_0x5259d3['getRanges']()['filter'](_0x43063e=>'$graveyard'!=_0x43063e['root']['rootName']);if(_0x48d48a['every'](_0x2a9409=>_0x5aa7a0['containsRange'](_0x2a9409,!0x0))&&_0x5259d3['discard'](),_0x48d48a['some'](_0x28d39f=>_0x28d39f['containsRange'](_0x5aa7a0,!0x0))){const _0x356566=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x191642,'accept');return this['forceDefaultExecution'](()=>_0x356566([_0x5aa7a0],null,_0x5648ec)),null;}}else{const _0x162d07=_0x5aa7a0['getIntersection'](_0x5259d3['getFirstRange']());null!==_0x162d07&&_0x5259d3['_onDiscard']([_0x162d07],null,_0x5648ec);}}if(_0x5aa7a0['detach'](),_0x5aa7a0['isCollapsed']||'$graveyard'==_0x5aa7a0['root']['rootName'])return null;let _0x3bd656=null,_0x413a63=_0x5aa7a0['start'],_0x19d662=_0x5aa7a0['end'];const _0x54c69f=this['_findSuggestions'](_0x5aa7a0,'deletion');for(const {suggestion:_0x44fc95,meta:_0x30e65e}of _0x54c69f){const _0x24e6c9=this['_model']['createRange'](_0x413a63,_0x19d662);if(_0x30e65e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30e65e['containsRangeInObject']&&!_0x30e65e['isInsideObject'])){if(_0x44fc95['isMultiRange']){if(!En(_0x44fc95,_0x5648ec))continue;let _0x46d9fc=!0x0;for(const _0x5ed197 of _0x44fc95['getRanges']()){if(_0x5ed197['containsRange'](_0x24e6c9,!0x0))return _0x44fc95;_0x24e6c9['containsRange'](_0x5ed197)||(_0x46d9fc=!0x1);}_0x46d9fc&&_0x44fc95['discard']();}else{const _0x4e3a39=_0x44fc95['getFirstRange']();if(_0x4e3a39['containsRange'](_0x24e6c9,!0x0))return _0x44fc95;if(!En(_0x44fc95,_0x5648ec)){_0x24e6c9['containsRange'](_0x4e3a39)?_0x44fc95['removeMarkers']():_0x4e3a39['containsPosition'](_0x413a63)?_0x413a63=_0x4e3a39['end']:_0x4e3a39['containsPosition'](_0x19d662)&&(_0x19d662=_0x4e3a39['start']);continue;}_0x413a63=_0x413a63['isBefore'](_0x4e3a39['start'])?_0x413a63:_0x4e3a39['start'],_0x19d662=_0x19d662['isAfter'](_0x4e3a39['end'])?_0x19d662:_0x4e3a39['end'],_0x5648ec=Object['assign']({},_0x44fc95['attributes']),_0x3bd656?_0x4e3a39['start']['isBefore'](_0x3bd656['getFirstRange']()['start'])?(_0x3bd656['removeMarkers'](),_0x3bd656=_0x44fc95):_0x44fc95['removeMarkers']():_0x3bd656=_0x44fc95;}}}if(_0x3bd656)return this['_setSuggestionRange'](_0x3bd656,this['_model']['createRange'](_0x413a63,_0x19d662)),_0x3bd656;{const _0x34fab0=_0x1f4b16(),_0x17975f=this['_model']['createRange'](_0x413a63,_0x19d662),_0x202778=_0x3a824d['id'],_0x142637=_0x191642?'deletion:'+_0x191642:'deletion',_0x1eb028=this['_setSuggestionData']({'id':_0x34fab0,'type':_0x142637,'createdAt':new Date(),'authorId':_0x202778,'attributes':_0x5648ec});return this['_addSuggestionMarker'](_0x142637,_0x34fab0,_0x202778,_0x17975f),_0x1eb028;}}['markMultiRangeDeletion'](_0x4b3cb8,_0x5b1307='multi',_0x521643={}){const _0x47594a=this['editor']['plugins']['get']('Users')['me'],_0x393819=_0x4b3cb8['map'](_0x2d1090=>new rt(_0x2d1090['start'],_0x2d1090['end'])),_0x2e122e=new Set();this['_trackingSessionId']&&(_0x521643['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e2836,meta:_0x3c54dc}of this['_findSuggestions'](_0x393819,'insertion'))_0x3c54dc['isOwn']&&!_0x3c54dc['isNextTo']&&_0x2e122e['add'](_0x2e2836);for(const _0x3b1c37 of _0x2e122e)if(_0x3b1c37['isMultiRange']){const _0x598b07=_0x3b1c37['getRanges']();if(_0x3b1c37['attributes']&&_0x3b1c37['attributes']['skipNestingCheck']||_0x598b07['every'](_0x5d8fb3=>_0x393819['some'](_0x2180ce=>_0x2180ce['containsRange'](_0x5d8fb3,!0x0)))&&_0x3b1c37['discard'](),_0x393819['every'](_0x4f1a9e=>_0x598b07['some'](_0x55dac3=>_0x55dac3['containsRange'](_0x4f1a9e,!0x0)))){const _0x18946e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'accept');return this['forceDefaultExecution'](()=>_0x18946e(_0x4b3cb8,null,_0x521643)),null;}}else{const _0x5ec363=_0x3b1c37['getFirstRange']();if(_0x393819['some'](_0x389906=>_0x389906['containsRange'](_0x5ec363,!0x0))&&_0x3b1c37['discard'](),_0x393819['every'](_0xa4f06a=>_0x5ec363['containsRange'](_0xa4f06a,!0x0))){const _0x4cbdf3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'accept');return this['forceDefaultExecution'](()=>_0x4cbdf3(_0x393819,null,_0x521643)),null;}}const _0x3b7fbe=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b1307,'join');let _0x5cc428=null;for(const _0x2fcd6c of this['getSuggestions']())if(_0x2fcd6c['author']['id']==_0x47594a['id']&&_0x2fcd6c['isInContent']&&'deletion'==_0x2fcd6c['type']&&_0x2fcd6c['subType']==_0x5b1307&&En(_0x2fcd6c,_0x521643)&&(_0x3b7fbe(_0x2fcd6c['getRanges'](),_0x393819)||_0x3b7fbe(_0x393819,_0x2fcd6c['getRanges']()))){if(_0x5cc428){if(_0x2fcd6c['commentThread']&&_0x2fcd6c['commentThread']['length'])continue;for(const _0x3acac4 of _0x2fcd6c['getRanges']())_0x5cc428['isIntersectingWithRange'](_0x3acac4)||_0x5cc428['addRange'](_0x3acac4);_0x2fcd6c['removeMarkers']();}else{_0x5cc428=_0x2fcd6c;for(const _0x6aec99 of _0x393819)_0x2fcd6c['isIntersectingWithRange'](_0x6aec99)||_0x2fcd6c['addRange'](_0x6aec99);}}if(_0x5cc428)return _0x5cc428;_0x2e122e['clear']();for(const {suggestion:_0x4adb89,meta:_0xec5ab2}of this['_findSuggestions'](_0x393819,'deletion'))_0xec5ab2['isOwn']&&(this['_mergeNestedSuggestions']||!_0xec5ab2['containsRangeInObject']&&!_0xec5ab2['isInsideObject'])&&En(_0x4adb89,_0x521643)&&_0x2e122e['add'](_0x4adb89);for(const _0x1a1ca3 of _0x2e122e){const _0x17ff87=_0x1a1ca3['getRanges']();if((!_0x521643||!_0x521643['skipNestingCheck'])&&_0x393819['every'](_0xd50793=>_0x17ff87['some'](_0x356583=>_0x356583['containsRange'](_0xd50793,!0x0))))return _0x1a1ca3;_0x1a1ca3['attributes']&&_0x1a1ca3['attributes']['skipNestingCheck']||_0x17ff87['every'](_0x18f0ff=>_0x393819['some'](_0x48a7e2=>_0x48a7e2['containsRange'](_0x18f0ff,!0x0)))&&_0x1a1ca3['discard']();}const _0x512823=_0x1f4b16(),_0x2573dc=_0x47594a['id'],_0x13d267='deletion:'+_0x5b1307,_0x5f467b=this['_setSuggestionData']({'id':_0x512823,'type':_0x13d267,'createdAt':new Date(),'authorId':_0x2573dc,'attributes':_0x521643});for(const _0xa361d0 of _0x393819)_0xa361d0['detach'](),_0xa361d0['isCollapsed']||'$graveyard'==_0xa361d0['root']['rootName']||this['_addSuggestionMarker'](_0x13d267,_0x512823,_0x2573dc,_0xa361d0,yt['getMultiRangeId']());return _0x5f467b;}['markAttributeChange'](_0x18db76,_0x1a405b,_0x35d7af,_0x954216,_0x1547fa){if(_0x18db76['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x68b718=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e89d5=Array['from'](this['_suggestions']['values']())['filter'](_0x3619dd=>'attribute'==_0x3619dd['type']&&_0x3619dd['data']['key']==_0x1a405b&&_0x3619dd['isIntersectingWithRange'](_0x18db76));if(this['_trackingSessionId']&&(_0x1547fa['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x2f555d=this['_findSuggestions'](_0x18db76,'insertion')['filter'](({meta:_0x1a48a9})=>_0x1a48a9['isOwn']&&!_0x1a48a9['isInsideObject']&&!_0x1a48a9['isNextTo'])['map'](({suggestion:_0x305d91})=>_0x305d91);_0x4e89d5['unshift'](..._0x2f555d);}const _0x41e3e7=new Map([[_0x18db76,_0x35d7af]]);for(const _0x2f1dbb of _0x4e89d5){const _0x1ade35='attribute'==_0x2f1dbb['type']?_0x2f1dbb['data']['oldValue']:void 0x0,_0x21f794=_0x2f1dbb['getFirstRange'](),_0x1b3193=Array['from'](_0x41e3e7['keys']())['find'](_0x6a8be=>_0x6a8be['isIntersecting'](_0x21f794));if(!_0x1b3193)continue;const _0x186e32=_0x1b3193['getDifference'](_0x21f794);this['_suggestionsConversion']['isBlockAttribute'](_0x1a405b)&&'insertion'==_0x2f1dbb['type']&&0x0!=_0x186e32['length']||(_0x41e3e7['delete'](_0x1b3193),_0x186e32['forEach'](_0x38d546=>{_0x41e3e7['set'](_0x38d546,_0x35d7af);}),'insertion'!=_0x2f1dbb['type']&&_0x1ade35!=_0x954216&&_0x41e3e7['set'](_0x1b3193['getIntersection'](_0x21f794),_0x1ade35));}const _0x176b59=[];for(const [_0x37f764,_0x31df7f]of _0x41e3e7){const _0x3b23fb=_0x1f4b16(),_0xccbf1b={'key':_0x1a405b,'oldValue':_0x31df7f,'newValue':_0x954216};_0x1a405b['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':_0x1a405b});const _0x2a0349=('attribute:'+_0x1a405b+'|'+cn({'newValue':_0x954216}))['substring'](0x0,0x3c),_0x2cc493=this['_setSuggestionData']({'id':_0x3b23fb,'type':_0x2a0349,'data':_0xccbf1b,'createdAt':new Date(),'authorId':_0x68b718,'attributes':_0x1547fa});_0x176b59['push'](_0x2cc493),this['_addSuggestionMarker'](_0x2a0349,_0x3b23fb,_0x68b718,_0x37f764);}return _0x176b59;}['enableDefaultAttributesIntegration'](_0x576994){this['enableCommand'](_0x576994,(_0x2cbf85,..._0x4fc2d5)=>{this['recordAttributeChanges'](()=>{_0x2cbf85(..._0x4fc2d5);});});}['startTrackingSession'](_0x3bd0b3){return this['_trackingSessionId']=void 0x0!==_0x3bd0b3?_0x3bd0b3:_0x1f4b16(),this['_trackingSessionId'];}['_getAttributeKey'](_0x85b099){return'attribute'==_0x85b099['type']?_n(_0x85b099['subType']):null;}['_applyOperationsAsSuggestions'](_0xaa6bc8){if(0x0==_0xaa6bc8['length'])return;const _0x450f64=this['editor'],_0x4934f7=_0x450f64['plugins']['get'](_0x23df0a),_0x3ff731=[],_0x981ae=_0x14ad5c=>{const _0x3dfc61=_0x14ad5c['_aiSource'];return _0x3dfc61?{'@ai':{'type':_0x3dfc61}}:{};},_0x142661=(_0x2c74c9,_0x1da672,_0x1c7f48)=>{for(let _0x1697cb=_0x1da672;_0x1697cb<_0x2c74c9['operations']['length'];_0x1697cb++){const _0x19b3e5=_0x2c74c9['operations'][_0x1697cb];'marker'===_0x19b3e5['type']&&(_0x19b3e5['_aiSource']=_0x1c7f48);}};_0x450f64['model']['change'](_0x54bc41=>{for(let _0x4b51ec=0x0;_0x4b51ec<_0xaa6bc8['length'];_0x4b51ec++){const _0x537313=_0xaa6bc8[_0x4b51ec],_0xee1b18=_0x537313['_aiSource'],_0x41f331=_0x54bc41['batch']['operations']['length'];if(_0x537313['baseVersion']=_0x450f64['model']['document']['version'],_0x537313['isDocumentOperation']=!0x0,_0x4934f7['isMarkedRemoveOperation'](_0x537313)){const _0x4ca6ee=_0x5f18e7(_0x537313['newRange'],_0x450f64['model']);_0x3ff731['unshift']({'range':rt['fromRange'](_0x4ca6ee),'opAttributes':_0x981ae(_0x537313),'aiSource':_0xee1b18});}else{switch(_0x537313['type']){case'rename':{const _0xd75572=_0x537313['oldName'],_0x3b97f1=_0x537313['newName'];if(_0xd75572==_0x3b97f1)break;_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x15683c='$elementName',_0x15af84=_0x537313['position'],_0x5170fc=_0x450f64['model']['createRange'](_0x15af84,_0x450f64['model']['createPositionAt'](_0x15af84['nodeAfter'],'end'));this['markAttributeChange'](_0x5170fc,_0x15683c,_0xd75572,_0x3b97f1,{..._0x981ae(_0x537313),'groupId':_0x1f4b16()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x255160=_0x537313['oldValue'],_0x5615d6=_0x537313['newValue'];if(_0x255160==_0x5615d6)break;_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x3590ab=_0x537313['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x3590ab))break;const _0x3617a6=_0x5f18e7(_0x537313['range'],_0x450f64['model']);this['markAttributeChange'](_0x3617a6,_0x3590ab,_0x255160,_0x5615d6,{..._0x981ae(_0x537313),'groupId':_0x1f4b16()});break;}case'insert':{if(_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313),_0xaa6bc8[_0x4b51ec+0x1]&&'move'==_0xaa6bc8[_0x4b51ec+0x1]['type'])break;const _0x51c532=_0x537313['position'],_0x50c9a4=_0x537313['howMany'],_0x1ff010=_0x5f18e7(_0x450f64['model']['createRange'](_0x51c532,_0x51c532['getShiftedBy'](_0x50c9a4)),_0x450f64['model']);this['markInsertion'](_0x1ff010,null,{..._0x981ae(_0x537313)});break;}case'split':{_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);const _0x4738f5=_0x537313['splitPosition'],_0xac7a6a=_0x537313['moveTargetPosition'],_0x3c8095=_0x450f64['model']['createRange'](_0x4738f5,_0xac7a6a);this['markInsertion'](_0x3c8095,null,{..._0x981ae(_0x537313)});break;}case'move':case'remove':_0x54bc41['batch']['addOperation'](_0x537313),_0x450f64['model']['applyOperation'](_0x537313);}_0xee1b18&&_0x142661(_0x54bc41['batch'],_0x41f331,_0xee1b18);}}for(const {range:_0x5a7355,opAttributes:_0x299244,aiSource:_0xb2e09c}of _0x3ff731){const _0x4e057c=_0x54bc41['batch']['operations']['length'];_0x5a7355['detach'](),this['markDeletion'](_0x5a7355,null,{..._0x299244}),_0xb2e09c&&_0x142661(_0x54bc41['batch'],_0x4e057c,_0xb2e09c);}});}['_setSuggestionRange'](_0x21e8a6,_0x102e04){const _0x166dc7=_0x21e8a6['getFirstMarker']();this['_model']['change'](_0x1e586f=>{_0x1e586f['updateMarker'](_0x166dc7,{'range':_0x102e04});});}['_addThreadToSuggestion'](_0x21cfd3){const _0x34b6bb=_0x21cfd3['id'],_0x5af744=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x34b6bb)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5af744,'threadId':_0x34b6bb,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4e1682=this['_commentsRepository']['getCommentThread'](_0x34b6bb);_0x4e1682['unbind']('isRemovable'),_0x4e1682['isRemovable']=!0x1,_0x21cfd3['commentThread']=_0x4e1682;}['_checkSuggestionCorrectness'](_0x5ab06d,_0x291205,_0x505792,_0x3786f3){if(_0x5ab06d['type']!=_0x291205||_0x5ab06d['subType']!=_0x505792||_0x5ab06d['creator']['id']!=_0x3786f3)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5748df('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x25627d,_0x433756){const _0x509fbd=_0x25627d['getFirstRange']();if(_0x433756['isEqual'](_0x509fbd))_0x25627d['removeMarkers']();else{if(_0x509fbd['containsRange'](_0x433756)){const _0x596856=this['_model']['createPositionAt'](_0x433756['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x509fbd['start'],_0x596856));const _0x3014df=_0x1f4b16(),_0x1246aa=_0x25627d['creator']['id'],_0xf7b41e=_0x25627d['type']+':'+_0x25627d['subType'];this['_setSuggestionData']({'id':_0x3014df,'type':_0xf7b41e,'createdAt':new Date(),'authorId':_0x1246aa,'data':_0x25627d['data'],'attributes':_0x25627d['attributes']});const _0x1b9780=this['_model']['createPositionAt'](_0x433756['end']['parent'],'after'),_0x453fe6=this['_model']['createRange'](_0x1b9780,_0x509fbd['end']);this['_addSuggestionMarker'](_0xf7b41e,_0x3014df,_0x1246aa,_0x453fe6);}else{if(_0x509fbd['containsPosition'](_0x433756['start'])){const _0x4bc9a8=this['_model']['createPositionAt'](_0x433756['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x509fbd['start'],_0x4bc9a8));}else{const _0x4fee21=this['_model']['createPositionAt'](_0x433756['end']['parent'],'after');this['_setSuggestionRange'](_0x25627d,this['_model']['createRange'](_0x4fee21,_0x509fbd['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x8d9e2c){for(const {suggestion:_0x412e71,meta:_0x7b97d8}of this['_findSuggestions'](_0x8d9e2c,'insertion')){if(!_0x7b97d8['isOwn'])continue;const _0x102ff0=_0x412e71['getRanges']();for(const _0x574752 of _0x102ff0)if(!_0x8d9e2c['getDifference'](_0x574752)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5e2932){return this['editor']['plugins']['get']('Users')['getUser'](_0x5e2932);}['_getExternalAuthor'](_0x24edf6){const _0x38bcd8=this['editor']['plugins']['get']('Users'),_0x258341=_0x4bef27('external:'+_0x24edf6),_0x214f84=_0x38bcd8['getUser'](_0x258341);return _0x214f84||_0x38bcd8['addUser']({'id':_0x258341,'name':_0x24edf6});}['_createSuggestion'](_0x6c3755,_0x1af040,_0x1c737e,_0xf0f9a6,_0x5b9c6d,_0x1cf743){const _0x480cee=this['_getAuthorFromId'](_0xf0f9a6);if(!_0x480cee)throw new _0x5748df('track-changes-user-not-found',this,{'authorId':_0xf0f9a6,'suggestionId':_0x1c737e});const _0x3e2a52=this['_suggestionFactory']['buildSuggestion'](_0x6c3755,_0x1af040,_0x1c737e,_0x480cee,_0x5b9c6d,_0x5ae05c=>{this['_updateSuggestionData'](_0x1c737e,{'attributes':_0x5ae05c});const _0x348cca=this['getSuggestion'](_0x1c737e);this['_joinWithAdjacentSuggestions'](new Set([_0x348cca])),this['_refreshSuggestionsChain'](new Set([_0x348cca]));},_0x1cf743);return this['listenTo'](_0x3e2a52,'accept',()=>{this['_updateSuggestionData'](_0x1c737e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e2a52,'discard',()=>{this['_updateSuggestionData'](_0x1c737e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1c737e,_0x3e2a52),this['_suggestionState']['set'](_0x3e2a52,'notReady'),_0x3e2a52;}['_breakSuggestionMarker'](_0x10c670,_0x6c47e1,_0xf624a2){const _0x412aef=_0x10c670['getFirstRange'](),_0xe6e561=_0x412aef['start'],_0x5b9f44=_0x412aef['end'];this['_setSuggestionRange'](_0x10c670,this['_model']['createRange'](_0xe6e561,_0x6c47e1));const _0x44d18b=_0x1f4b16(),_0x150308=_0x10c670['creator']['id'],_0x5dec7e=_0x10c670['type']+(_0x10c670['subType']?':'+_0x10c670['subType']:'');this['_setSuggestionData']({'id':_0x44d18b,'type':_0x5dec7e,'createdAt':new Date(),'authorId':_0x150308,'originalSuggestionId':_0x10c670['_originalSuggestionId']||_0x10c670['id'],'attributes':_0x10c670['attributes'],'data':_0x10c670['data']});const _0x4251b4=this['_getAttributeKey'](_0x10c670);('formatBlock'==_0x10c670['type']||_0x4251b4&&this['_suggestionsConversion']['isBlockAttribute'](_0x4251b4))&&(_0xf624a2=this['_model']['createPositionBefore'](_0xf624a2['parent'])),this['_addSuggestionMarker'](_0x5dec7e,_0x44d18b,_0x150308,this['_model']['createRange'](_0xf624a2,_0x5b9f44));}['_findSuggestions'](_0x33e255,_0xe96997=null){const _0x116824=[],_0x2108b8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x33e255)||(_0x33e255=[_0x33e255]);for(const _0x157b1e of this['getSuggestions']()){if(!_0x157b1e['isInContent'])continue;if(_0xe96997&&_0x157b1e['type']!=_0xe96997)continue;let _0x3865cd=!0x1;for(const _0x117400 of _0x157b1e['getRanges']()){for(const _0xaed633 of _0x33e255){const _0x6926d5=_0xaed633['start']['isEqual'](_0x117400['end'])||_0xaed633['end']['isEqual'](_0x117400['start']);if(_0x6926d5||_0xaed633['getIntersection'](_0x117400)){const _0x33f78e=_0xaed633['containsRange'](_0x117400)&&rn(this['_model']['schema'],_0x117400['start'],_0xaed633),_0x3adc2e=_0x117400['containsRange'](_0xaed633)&&rn(this['_model']['schema'],_0xaed633['start'],_0x117400);_0x116824['push']({'suggestion':_0x157b1e,'meta':{'isOwn':_0x2108b8==_0x157b1e['author'],'isNextTo':_0x6926d5,'isInsideObject':_0x33f78e,'containsRangeInObject':_0x3adc2e}}),_0x3865cd=!0x0;break;}}if(_0x3865cd)break;}}return _0x116824;}['_addSuggestionMarker'](_0xd6dab4,_0x5237ac,_0x20d334,_0x2f582d,_0x3dc02d){this['_model']['change'](_0x1be314=>{let _0x1185d8='suggestion:'+_0xd6dab4+':'+_0x5237ac+':'+_0x20d334;_0x3dc02d&&(_0x1185d8=_0x1185d8+':'+_0x3dc02d),_0x1be314['addMarker'](_0x1185d8,{'range':_0x2f582d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2241b1){const _0x12427b=_0x2241b1['previous'],_0x144764=_0x2241b1['next'];_0x2241b1['previous']=null,_0x2241b1['next']=null,null!=_0x12427b&&_0x12427b['next']==_0x2241b1&&(_0x12427b['next']=_0x144764),null!=_0x144764&&_0x144764['previous']==_0x2241b1&&(_0x144764['previous']=_0x12427b),'ready'==this['_suggestionState']['get'](_0x2241b1)&&(this['_suggestionState']['set'](_0x2241b1,'removed'),this['fire']('suggestionUnloaded',_0x2241b1,_0x12427b,_0x144764));}['_setSuggestionData'](_0x133c00){const _0x3c4729=_0x133c00['id'],_0x3777a1=this['addSuggestionData'](_0x133c00);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x149217=this['editor']['plugins']['get']('PendingActions'),_0x1bfc9d=_0x3777a1['hasComments'],_0x5b6442=_0x3777a1['subType']?_0x3777a1['type']+':'+_0x3777a1['subType']:_0x3777a1['type'],_0x349dc6=this['editor']['locale'],_0xbd2ec4=_0x149217['add'](St(_0x349dc6,'PENDING_ACTION_SUGGESTION')),_0x1390e1={'id':_0x3c4729,'type':_0x5b6442,'hasComments':_0x1bfc9d,'data':_0x133c00['data']||null,'originalSuggestionId':_0x133c00['originalSuggestionId']||null,'attributes':_0x3777a1['attributes']};this['_adapter']['addSuggestion'](_0x1390e1)['then'](_0x451549=>{_0x3777a1['_saved']=!0x0,_0x149217['remove'](_0xbd2ec4),_0x451549&&_0x451549['createdAt']&&(this['_suggestions']['get'](_0x3c4729)['createdAt']=_0x451549['createdAt']);})['catch'](_0x58fa3b=>{throw _0x1de656('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3777a1['discard']();}),_0x3777a1['stopListening'](),this['_suggestions']['delete'](_0x3777a1['id']),this['_suggestionState']['delete'](_0x3777a1),_0x58fa3b;});}return _0x3777a1;}['_updateSuggestionData'](_0x39dd69,_0x4eef8f){const _0x3089c9=this['editor']['plugins']['get']('PendingActions'),_0x376d20=this['getSuggestion'](_0x39dd69);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x376d20['_saved']){const _0x2a2f45=_0x3089c9['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39dd69,_0x4eef8f)['then'](()=>{_0x3089c9['remove'](_0x2a2f45);});}else _0x376d20['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39dd69,_0x4eef8f);});}}['_getSuggestionData'](_0x118f75){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5748df('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x118f75);}['_handleNewSuggestionMarker'](_0x40dd56){const {id:_0x25e69a,type:_0x575b7e,subType:_0x1bccec,authorId:_0x103091}=tt(_0x40dd56),_0x51dfef=this['_suggestions']['get'](_0x25e69a)||this['_createSuggestion'](_0x575b7e,_0x1bccec,_0x25e69a,_0x103091,{});switch(this['_checkSuggestionCorrectness'](_0x51dfef,_0x575b7e,_0x1bccec,_0x103091),this['_suggestionState']['get'](_0x51dfef)){case'notReady':this['_getSuggestionData'](_0x25e69a)['then'](_0x1b7a9a=>{let _0x11e425=Promise['resolve']();_0x1b7a9a['hasComments']&&(_0x11e425=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x25e69a})),_0x11e425['then'](()=>{this['addSuggestionData'](_0x1b7a9a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x51dfef,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x25e69a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x51dfef,'ready'),this['fire']('suggestionLoaded',_0x51dfef);break;case'ready':this['fire']('suggestionChanged',_0x51dfef);}return _0x51dfef['addMarkerName'](_0x40dd56),_0x51dfef;}['_refreshSuggestionsChain'](_0x53dfea){const _0x2b60d4=Array['from'](_0x53dfea),_0x369905=_0x2b60d4['filter'](_0x1e2dfe=>'attribute'==_0x1e2dfe['type']);this['_refreshAttributeSuggestionsChain'](_0x369905);const _0x4cf335=_0x2b60d4['filter'](_0x5d8a46=>!_0x5d8a46['isMultiRange']&&'attribute'!=_0x5d8a46['type']),_0x32c26a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ee21c=>!_0x3ee21c['isMultiRange']&&'attribute'!=_0x3ee21c['type']),_0x46b93e=_0x32c26a['filter'](_0x508e09=>!_0x53dfea['has'](_0x508e09)),_0x161dfa=new Map(_0x32c26a['map'](_0x354675=>[_0x354675,this['_suggestionFactory']['getSuggestionCallback'](_0x354675['type'],_0x354675['subType'],'chain')])),_0x358f8c=new Map(_0x32c26a['map'](_0x5d2cae=>[_0x5d2cae,_0x5d2cae['getFirstRange']()])),_0x48d2bb=new Set(),_0x104711=new Set();for(let _0x30cfb3=0x0;_0x30cfb3<_0x4cf335['length'];_0x30cfb3++)_0x3e0f78(_0x4cf335[_0x30cfb3],_0x4cf335,_0x30cfb3+0x1);for(let _0x3bf2c8=0x0;_0x3bf2c8<_0x4cf335['length'];_0x3bf2c8++)_0x3e0f78(_0x4cf335[_0x3bf2c8],_0x46b93e,0x0);const _0x261228=new Set();for(let _0x2e4067=0x0;_0x2e4067<_0x4cf335['length'];_0x2e4067++){const _0x8a1c07=_0x4cf335[_0x2e4067];!_0x104711['has'](_0x8a1c07)&&_0x8a1c07['previous']&&(_0x261228['add'](_0x8a1c07['previous']),_0x8a1c07['previous']['next']===_0x8a1c07&&(_0x8a1c07['previous']['next']=null),_0x8a1c07['previous']=null),!_0x48d2bb['has'](_0x8a1c07)&&_0x8a1c07['next']&&(_0x261228['add'](_0x8a1c07['next']),_0x8a1c07['next']['previous']===_0x8a1c07&&(_0x8a1c07['next']['previous']=null),_0x8a1c07['next']=null);}function _0x3e0f78(_0x415e89,_0x1189a3,_0x5ceb75){for(let _0x14ac69=_0x5ceb75;_0x14ac69<_0x1189a3['length'];_0x14ac69++){const _0x525098=_0x2593a3(_0x415e89,_0x1189a3[_0x14ac69]);_0x525098&&(_0x525098[0x0]['next']=_0x525098[0x1],_0x525098[0x1]['previous']=_0x525098[0x0],_0x48d2bb['add'](_0x525098[0x0]),_0x104711['add'](_0x525098[0x1]));}}function _0x2593a3(_0x52f92c,_0x39e2af){if(_0x52f92c['author']['id']!==_0x39e2af['author']['id'])return null;const _0x4a5a95=_0x161dfa['get'](_0x52f92c)(_0x52f92c,_0x39e2af,_0x358f8c['get'](_0x52f92c),_0x358f8c['get'](_0x39e2af));return _0x4a5a95&&_0x161dfa['get'](_0x39e2af)(_0x52f92c,_0x39e2af,_0x358f8c['get'](_0x52f92c),_0x358f8c['get'](_0x39e2af))?_0x4a5a95[0x1]['commentThread']&&_0x4a5a95[0x1]['commentThread']['length']?null:_0x4a5a95:null;}_0x261228['size']&&this['_refreshSuggestionsChain'](_0x261228);}['_refreshAttributeSuggestionsChain'](_0x4b4563){if(0x0==_0x4b4563['length'])return;const _0x3b610d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33ea5c=>'attribute'==_0x33ea5c['type']&&_0x33ea5c['_isDataLoaded']),_0x419bbe=[],_0x18bbb1=new Map();for(const _0x3d93b2 of _0x3b610d){const _0x225fb7=_0x4bef27(_0x3d93b2['attributes']);_0x18bbb1['has'](_0x225fb7)||(_0x18bbb1['set'](_0x225fb7,_0x419bbe['length']),_0x419bbe['push']([])),_0x419bbe[_0x18bbb1['get'](_0x225fb7)]['push'](_0x3d93b2);}!(function(){_0x419bbe['sort']((_0x573508,_0x32f356)=>{const _0x4fc1a1=_0x573508[0x0]['createdAt'],_0x4fd7bc=_0x32f356[0x0]['createdAt'];return _0x4fc1a1==_0x4fd7bc?_0x573508[0x0]['attributes']['groupId']<_0x32f356[0x0]['attributes']['groupId']?-0x1:0x1:_0x4fc1a1<_0x4fd7bc?-0x1:0x1;});for(const _0x12d0d7 of _0x419bbe)_0x12d0d7['sort']((_0x1a0964,_0x256897)=>_0x1a0964['id']<_0x256897['id']?-0x1:0x1);}());for(let _0x5ce950=0x0;_0x5ce950<_0x419bbe['length'];_0x5ce950++){if(0x0==_0x419bbe[_0x5ce950]['length'])continue;const _0x56b07f=[];for(let _0x5d5da9=_0x5ce950+0x1;_0x5d5da9<_0x419bbe['length'];_0x5d5da9++)0x0!=_0x419bbe[_0x5d5da9]['length']&&_0x127d73(_0x419bbe[_0x5ce950],_0x419bbe[_0x5d5da9])&&_0x56b07f['push'](_0x5d5da9);for(const _0x215b72 of _0x56b07f)_0x419bbe[_0x5ce950]=_0x419bbe[_0x5ce950]['concat'](_0x419bbe[_0x215b72]),_0x419bbe[_0x215b72]=[];}for(const _0x26c655 of _0x419bbe)for(let _0x693dd0=0x0;_0x693dd0<_0x26c655['length'];_0x693dd0++){const _0x14a9b2=_0x26c655[_0x693dd0+0x1]||null;_0x26c655[_0x693dd0]['next']!==_0x14a9b2&&(_0x26c655[_0x693dd0]['next']=_0x14a9b2);}for(const _0x5f114a of _0x419bbe)for(let _0x168fbc=0x0;_0x168fbc<_0x5f114a['length'];_0x168fbc++){const _0x405643=_0x5f114a[_0x168fbc-0x1]||null;_0x5f114a[_0x168fbc]['previous']!==_0x405643&&(_0x5f114a[_0x168fbc]['previous']=_0x405643);}function _0x127d73(_0x3f0a8b,_0x5d2230){return(_0x3f0a8b[0x0]['attributes']['groupId']===_0x5d2230[0x0]['attributes']['groupId']||_0x3f0a8b[0x0]['author']===_0x5d2230[0x0]['author'])&&(!!function(_0x31d278,_0x43ac62){return!_0x31d278['hasComments']&&!_0x43ac62['hasComments']||(!_0x31d278['hasComments']||!_0x43ac62['hasComments'])&&(!!(_0x31d278['hasComments']&&_0x43ac62['createdAt']<_0x31d278['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x43ac62['hasComments']&&_0x31d278['createdAt']<_0x43ac62['commentThread']['comments']['get'](0x0)['createdAt']));}(_0x3f0a8b[0x0],_0x5d2230[0x0])&&(!!ct(lt(_0x3f0a8b[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x5d2230[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0x3f0a8b[0x0]['attributes']['groupId']==_0x5d2230[0x0]['attributes']['groupId']||_0x3f0a8b[0x0]['attributes']['trackingSessionId']===_0x5d2230[0x0]['attributes']['trackingSessionId']&&(!!_0x3f0a8b['every'](_0x4bd27e=>_0x5d2230['some'](_0x1d1f8d=>_0x4bd27e['getFirstRange']()['isEqual'](_0x1d1f8d['getFirstRange']())))&&_0x5d2230['every'](_0x39f786=>_0x3f0a8b['some'](_0x598909=>_0x39f786['getFirstRange']()['isEqual'](_0x598909['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x3945ea){const _0x283d52=Array['from'](_0x3945ea),_0x591240=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe1d802=_0x591240['filter'](_0x13c5c2=>!_0x3945ea['has'](_0x13c5c2)),_0x58f254=new Map(_0x283d52['map'](_0x552242=>[_0x552242,this['_suggestionFactory']['getSuggestionCallback'](_0x552242['type'],_0x552242['subType'],'join')])),_0x4a61bb=new Map(_0x591240['map'](_0x1f4c0e=>[_0x1f4c0e,_0x1f4c0e['getRanges']()]));for(let _0x10645c=0x0;_0x10645c<_0x283d52['length'];_0x10645c++)if(_0xe2c94(this,_0x283d52[_0x10645c],_0x283d52,_0x10645c+0x1))return!0x0;for(let _0x28a73e=0x0;_0x28a73e<_0x283d52['length'];_0x28a73e++)if(_0xe2c94(this,_0x283d52[_0x28a73e],_0xe1d802,0x0))return!0x0;return!0x1;function _0xe2c94(_0x2797b7,_0x2d377e,_0x8500b7,_0x32cd5c){for(let _0x3e0df7=_0x32cd5c;_0x3e0df7<_0x8500b7['length'];_0x3e0df7++){const _0x447da6=_0x8500b7[_0x3e0df7];if(_0x447da6['type']!==_0x2d377e['type']||_0x447da6['author']['id']!==_0x2d377e['author']['id']||_0x447da6['subType']!==_0x2d377e['subType'])continue;if(!mn(_0x2d377e,_0x447da6))continue;if('attribute'==_0x2d377e['type']&&_0x2d377e['data']['oldValue']!=_0x447da6['data']['oldValue'])continue;if('attribute'==_0x2d377e['type']&&_0x2797b7['_suggestionsConversion']['isBlockAttribute'](_0x2d377e['data']['key']))continue;if('formatBlock'==_0x2d377e['type']){const _0x149401=_0x2797b7['editor']['model'],_0x3cc412=_0x2d377e['getContainedElement']();if(_0x3cc412&&(_0x149401['schema']['isObject'](_0x3cc412)||_0x149401['schema']['isLimit'](_0x3cc412)))continue;}const _0x2a3e7b=_0x58f254['get'](_0x2d377e),_0x50c4f7=_0x4a61bb['get'](_0x2d377e),_0x1f6705=_0x4a61bb['get'](_0x447da6),_0x36cc16=_0x2d377e['commentThread']&&_0x2d377e['commentThread']['length'],_0x1f807f=_0x447da6['commentThread']&&_0x447da6['commentThread']['length'];if(!_0x36cc16&&_0x2a3e7b(_0x1f6705,_0x50c4f7))return _0x2797b7['_joinSuggestions'](_0x447da6,_0x2d377e),_0x4a61bb['delete'](_0x2d377e),!0x0;if(!_0x1f807f&&_0x2a3e7b(_0x50c4f7,_0x1f6705))return _0x2797b7['_joinSuggestions'](_0x2d377e,_0x447da6),_0x4a61bb['delete'](_0x447da6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x13e779,_0x1495f4){if(_0x13e779['isMultiRange']){for(const _0x4d4106 of _0x1495f4['getRanges']())_0x13e779['addRange'](_0x4d4106);}else{const _0x2e7f7b=_0x1495f4['getFirstRange']()['end'];this['_setSuggestionRange'](_0x13e779,this['_model']['createRange'](_0x13e779['getFirstRange']()['start'],_0x2e7f7b));}_0x1495f4['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1c1c32,_0x5f22c7,_0x561955){const _0x15df4e=_0x1c1c32['startsWith']('format')||_0x1c1c32['startsWith']('attribute')?'FORMATTING':_0x1c1c32['toUpperCase']();return St(this['editor']['locale'],_0x5f22c7+'_'+_0x15df4e+'_SUGGESTION_ANNOUNCEMENT',_0x561955);}['_initAriaMarkerChangeAnnouncements'](){const _0x452a38=this['editor'];if(!_0x452a38['ui'])return;const {ariaLiveAnnouncer:_0x33793a}=_0x452a38['ui'];et(this['_model'],({left:_0x382012,entered:_0x5c59e7})=>{for(const _0x177094 of _0x382012){const {group:_0x1403ea,type:_0x314798}=tt(_0x177094['name']);if('suggestion'===_0x1403ea){_0x33793a['announce'](this['_getMarkerAnnouncementText'](_0x314798,'LEAVE'));break;}}for(const _0x44afb0 of _0x5c59e7){const {group:_0x4b2b5f,type:_0x280187}=tt(_0x44afb0['name']);if('suggestion'===_0x4b2b5f){_0x33793a['announce'](this['_getMarkerAnnouncementText'](_0x280187,'ENTER',_0x23475f(_0x312d7)));break;}}});}['_processAttributeChanges'](_0x51e2a5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x7f1760=this['editor'],_0x4e2f89=_0x7f1760['model']['document']['differ']['getChanges']();if(0x0==_0x4e2f89['length'])return!0x1;const _0x2c22a1=[],_0x36a6a1=_0x4e2f89['filter'](_0x314c58=>'attribute'==_0x314c58['type']),_0x33507b=_0x4e2f89['filter'](_0x55d03d=>'insert'==_0x55d03d['type']&&'$text'!=_0x55d03d['name']),_0x5e7e7e=_0x4e2f89['filter'](_0x247b8e=>'remove'==_0x247b8e['type']&&'$text'!=_0x247b8e['name']);for(const _0x1fc288 of _0x36a6a1)_0x2c22a1['push']({'key':_0x1fc288['attributeKey'],'newValue':_0x1fc288['attributeNewValue'],'oldValue':_0x1fc288['attributeOldValue'],'range':hn(_0x1fc288['range'],_0x7f1760['model'])});for(const _0x5e3203 of _0x33507b){const _0x16388e=_0x5e7e7e['find'](_0x5281d9=>_0x5281d9['position']['isEqual'](_0x5e3203['position']));_0x16388e&&_0x2c22a1['push']({'key':en,'newValue':_0x5e3203['name'],'oldValue':_0x16388e['name'],'range':_0x7f1760['model']['createRangeOn'](_0x5e3203['position']['nodeAfter'])});}return 0x0!=_0x2c22a1['length']&&this['_reduceExistingSuggestions'](_0x51e2a5,_0x2c22a1);}['_processAttributeSuggestions'](_0x547184){let _0x1c476d=!0x1;const _0x23ab38=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4e29d6=>_0x4e29d6['data']['newRange']&&_0x4e29d6['name']['startsWith']('suggestion:attribute:'));for(const _0xd99b0e of _0x23ab38){const {subType:_0x4fa0e4,id:_0x379a26}=tt(_0xd99b0e['name']),_0x436c62=_0x4fa0e4['split']('|')[0x0];for(const _0x4d7e75 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4d7e75['id']!=_0x379a26&&'attribute'==_0x4d7e75['type']&&_0x4d7e75['data']&&_0x4d7e75['data']['key']==_0x436c62&&_0x4d7e75['getFirstRange']()['isIntersecting'](_0xd99b0e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4d7e75,_0xd99b0e['data']['newRange'],_0x547184),_0x1c476d=!0x0);}return _0x1c476d;}['recordAttributeChanges'](_0x37b180){this['_recordAttributeSuggestions']=!0x0,_0x37b180();}['_reduceExistingSuggestions'](_0x188798,_0x3d46e4){if(0x0==_0x3d46e4['length'])return!0x1;let _0x55253d=!0x1;for(const _0x5b7934 of _0x3d46e4){const _0xa66c5a=this['_findSuggestions'](_0x5b7934['range'],'attribute')['filter'](_0x256c1c=>!_0x256c1c['meta']['isNextTo'])['map'](_0x309abd=>_0x309abd['suggestion']),_0x189adc=_0x4bef27({'newValue':_0x5b7934['newValue']});_0xa66c5a['filter'](_0x506c6e=>{const [_0x398abb,_0x502f98]=_0x506c6e['subType']['split']('|');return _0x398abb==_0x5b7934['key']&&_0x502f98!=_0x189adc;})['forEach'](_0x38b71f=>{this['_reduceSuggestionAttributeRange'](_0x38b71f,_0x5b7934['range'],_0x188798),_0x55253d=!0x0;});}return _0x55253d;}['_reduceSuggestionAttributeRange'](_0x4a4de7,_0x3423c7,_0x4df087){const _0x4b1948=_0x4a4de7['getFirstRange']()['getDifference'](_0x3423c7);0x0!==_0x4b1948['length']?0x1!==_0x4b1948['length']?this['_breakSuggestionMarker'](_0x4a4de7,_0x3423c7['start'],_0x3423c7['end']):this['_setSuggestionRange'](_0x4a4de7,_0x4b1948[0x0]):_0x4df087['removeMarker'](_0x4a4de7['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5a6f6a){this['_editor']=_0x5a6f6a,this['_model']=_0x5a6f6a['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x55949e,_0x3947f7,_0x29e68e,_0x1ae92b,_0x1c5e3e,_0x309f2c,_0x105f9a){return new yt(this['_model'],{'type':_0x55949e,'subType':_0x3947f7,'id':_0x29e68e,'originalSuggestionId':_0x105f9a,'author':_0x1ae92b,'creator':_0x1ae92b,'attributes':_0x1c5e3e,'onAttributesChange':_0x309f2c,'onAccept':(..._0x4f0507)=>this['getSuggestionCallback'](_0x55949e,_0x3947f7,'accept')(..._0x4f0507),'onDiscard':(..._0x1621d6)=>this['getSuggestionCallback'](_0x55949e,_0x3947f7,'discard')(..._0x1621d6)});}['registerCustomCallback'](_0x157a63,_0x1d62e2,_0x50bd78,_0x127154){const _0x43e9e9=_0x157a63+':'+_0x1d62e2+':'+_0x50bd78;this['_customCallbacks']['set'](_0x43e9e9,_0x127154);}['getSuggestionCallback'](_0x330227,_0x5e5cb4,_0x511ce2){const _0x133aa7=_0x330227+':'+_0x5e5cb4+':'+_0x511ce2;return this['_customCallbacks']['get'](_0x133aa7)||this['_defaultCallbacks']['get'](_0x330227+':'+_0x511ce2);}['_registerDefaultCallbacks'](){const _0x34ebd7=()=>!0x1,_0x41f40a=_0x238fe5=>{_0x238fe5['sort']((_0x2ecf2a,_0x4fd3f3)=>_0x2ecf2a['start']['isBefore'](_0x4fd3f3['start'])?0x1:-0x1),this['_model']['change'](_0x3edb97=>{for(const _0x19ee0c of _0x238fe5){let _0xb01eba;_0xb01eba=_0x19ee0c['end']['isAtEnd']&&_0x19ee0c['end']['parent']==_0x19ee0c['start']['nodeAfter']?_0x3edb97['createSelection'](_0x19ee0c['start']['nodeAfter'],'on'):_0x3edb97['createSelection'](_0x19ee0c),this['_model']['deleteContent'](_0xb01eba,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4e8522=(_0x386731,_0x55a889)=>{_0x55a889&&this['_model']['change'](_0x4f2e47=>{const {commandName:_0x4041e3,commandParams:_0x1fc3b8=[]}=_0x55a889,_0x590271=_0x386731['map'](_0x5a806b=>(on(_0x5a806b)&&(_0x5a806b=this['_model']['createRange'](_0x5a806b['end'])),_0x5a806b))['filter'](_0x770d05=>'$graveyard'!==_0x770d05['root']['rootName']);if(_0x590271['length']<0x1)return;const _0x6ec957=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1132e0=>rt['fromRange'](_0x1132e0));_0x4f2e47['setSelection'](_0x590271);for(const _0x2929ca of this['_editor']['commands']['commands']())_0x2929ca['refresh']();_0x1fc3b8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4041e3,..._0x1fc3b8);const _0x53f986=_0x6ec957['filter'](_0x3d6122=>'$graveyard'!=_0x3d6122['root']['rootName']);_0x53f986['length']>0x0&&_0x4f2e47['setSelection'](_0x53f986);for(const _0xab4e3f of _0x6ec957)_0xab4e3f['detach']();});},_0x4953f8=(_0x94bf4,_0x342d00)=>0x1==_0x94bf4['length']&&0x1==_0x342d00['length']&&_0x94bf4[0x0]['end']['isEqual'](_0x342d00[0x0]['start']),_0xbb4034=(_0x26150e,_0x4d56fb,_0x34f3d0,_0x3aa1ae)=>fn(_0x26150e,_0x4d56fb,_0x34f3d0,_0x3aa1ae)?[_0x26150e,_0x4d56fb]:fn(_0x4d56fb,_0x26150e,_0x3aa1ae,_0x34f3d0)?[_0x4d56fb,_0x26150e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x34ebd7),this['_defaultCallbacks']['set']('insertion:discard',_0x41f40a),this['_defaultCallbacks']['set']('insertion:join',_0x4953f8),this['_defaultCallbacks']['set']('insertion:chain',_0xbb4034),this['_defaultCallbacks']['set']('deletion:accept',_0x41f40a),this['_defaultCallbacks']['set']('deletion:discard',_0x34ebd7),this['_defaultCallbacks']['set']('deletion:join',_0x4953f8),this['_defaultCallbacks']['set']('deletion:chain',_0xbb4034),this['_defaultCallbacks']['set']('formatInline:accept',_0x4e8522),this['_defaultCallbacks']['set']('formatInline:discard',_0x34ebd7),this['_defaultCallbacks']['set']('formatInline:join',_0x4953f8),this['_defaultCallbacks']['set']('formatInline:chain',_0x34ebd7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4e8522),this['_defaultCallbacks']['set']('formatBlock:discard',_0x34ebd7),this['_defaultCallbacks']['set']('formatBlock:join',_0x4953f8),this['_defaultCallbacks']['set']('formatBlock:chain',_0x34ebd7),this['_defaultCallbacks']['set']('attribute:accept',_0x34ebd7),this['_defaultCallbacks']['set']('attribute:discard',(_0x5eca9f,_0x3afa71)=>{if(!_0x3afa71)return;const _0x190c08=this['_editor']['plugins']['get'](_0x28ef11);this['_model']['change'](_0x11bd0c=>{if('$elementName'==_0x3afa71['key'])for(const _0x452b1e of _0x5eca9f){const _0xc6bd1d=_0x452b1e['start']['nodeAfter'],_0x35564b=_0x3afa71['oldValue'];_0x11bd0c['rename'](_0xc6bd1d,_0x35564b);}else{if(_0x190c08['isBlockAttribute'](_0x3afa71['key'])){for(const _0x46f4e1 of _0x5eca9f)void 0x0!==_0x3afa71['oldValue']?_0x11bd0c['setAttribute'](_0x3afa71['key'],_0x3afa71['oldValue'],_0x46f4e1['start']['nodeAfter']):_0x11bd0c['removeAttribute'](_0x3afa71['key'],_0x46f4e1['start']['nodeAfter']);}else{for(const _0x3c6d9c of _0x5eca9f)_0x3afa71['oldValue']?_0x11bd0c['setAttribute'](_0x3afa71['key'],_0x3afa71['oldValue'],_0x3c6d9c):_0x11bd0c['removeAttribute'](_0x3afa71['key'],_0x3c6d9c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4953f8);}};function rn(_0x528bc4,_0x1c4f24,_0x45a64a){for(const _0x2d7262 of _0x1c4f24['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d7262['root']==_0x2d7262)return!0x1;if(!_0x45a64a['containsItem'](_0x2d7262))return!0x1;if(_0x528bc4['isObject'](_0x2d7262)||_0x528bc4['isLimit'](_0x2d7262))return!0x0;}return!0x1;}function on(_0x4f50a3){return _0x4f50a3['end']['parent']==_0x4f50a3['start']['nodeAfter']&&_0x4f50a3['end']['isAtStart'];}function an(_0xd8f60e,_0x2ad7ee,_0x3753d1,_0x3a6e66){const _0x166543=_0x4d5a96=>!_0x4d5a96['item']['is']('$textProxy')&&!_0x3a6e66['isObject'](_0x4d5a96['item']),_0x407460=_0xd8f60e['start']['getLastMatchingPosition'](_0x166543),_0x522f1b=_0xd8f60e['end']['getLastMatchingPosition'](_0x166543,{'direction':'backward'});return(!_0xd8f60e['start']['isEqual'](_0x407460)||!_0xd8f60e['end']['isEqual'](_0x522f1b))&&(_0x407460['isBefore'](_0x522f1b)?_0x3753d1['updateMarker'](_0x2ad7ee,{'range':_0x3753d1['createRange'](_0x407460,_0x522f1b)}):_0x3753d1['removeMarker'](_0x2ad7ee),!0x0);}function cn(_0xa33694){return _0x4bef27(_0xa33694);}function ln(_0x1e91fc){const _0x270e42=_0x1e91fc['start']['nodeAfter'];return _0x270e42&&_0x270e42['is']('element');}function un(_0x8e5f18){return on(_0x8e5f18)||function(_0x320296){return _0x320296['start']['parent']==_0x320296['end']['nodeBefore']&&_0x320296['start']['isAtEnd'];}(_0x8e5f18);}function dn(_0x6cfee0,_0x3f5a1b){try{const _0x197987=_0x6cfee0['getRange']();for(const _0x2644a5 of _0x3f5a1b)if(_0x6cfee0!==_0x2644a5&&_0x197987&&_0x197987['isIntersecting'](_0x2644a5['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x4a0fec,_0x5eef4c){return null==_0x4a0fec['end']['nodeBefore']&&_0x4a0fec['end']['parent']==_0x4a0fec['start']['nodeAfter']?gn(_0x4a0fec['start']['nodeAfter'],_0x5eef4c):_0x4a0fec;}function gn(_0x5cb409,_0x4ab06b){const _0x442427=_0x4ab06b['schema']['isObject'](_0x5cb409)||_0x4ab06b['schema']['isSelectable'](_0x5cb409);return _0x4ab06b['createRange'](_0x4ab06b['createPositionAt'](_0x5cb409,'before'),_0x442427?_0x4ab06b['createPositionAfter'](_0x5cb409):_0x4ab06b['createPositionAt'](_0x5cb409,'end'));}function fn(_0x3979fa,_0x5264f9,_0x429e0f,_0x40fdf5){return!!mn(_0x3979fa,_0x5264f9)&&_0x429e0f['end']['isEqual'](_0x40fdf5['start']);}function mn(_0x2c3662,_0x4ccdee){if(!_0x2c3662['_isDataLoaded']||!_0x4ccdee['_isDataLoaded'])return!0x1;const _0x4e4fa2=new Set(Object['keys'](_0x2c3662['attributes'])),_0x19ee12=new Set(Object['keys'](_0x4ccdee['attributes']));if(_0x4e4fa2['delete']('groupId'),_0x19ee12['delete']('groupId'),0x0==_0x4e4fa2['size']&&0x0==_0x19ee12['size'])return!0x0;if(_0x4e4fa2['size']!=_0x19ee12['size'])return!0x1;const _0x1d19da={..._0x2c3662['attributes']},_0x4797e1={..._0x4ccdee['attributes']};return delete _0x1d19da['groupId'],delete _0x4797e1['groupId'],JSON['stringify'](_0x1d19da)==JSON['stringify'](_0x4797e1);}function En(_0x3b6857,_0x5bfc55){const _0xb18c5c=Tn(_0x3b6857['attributes']),_0x3918e4=Tn(_0x5bfc55);if(!_0x3b6857['_isDataLoaded'])return!0x1;if(!ct(_0xb18c5c['@ai'],_0x3918e4['@ai']))return!0x1;for(const _0x2b2b8c of Object['keys'](_0x3918e4))if(!ct(_0xb18c5c[_0x2b2b8c],_0x3918e4[_0x2b2b8c]))return!0x1;return!0x0;}function Tn(_0x6a7407){const _0x36e565=Object['assign']({},_0x6a7407);return delete _0x36e565['skipNestingCheck'],delete _0x36e565['tablePasteChainId'],_0x36e565;}function _n(_0x3715e2){return _0x3715e2['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x25c6c1();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x21e7ed,_0x16a6fa,_0x17f4c2,_0x4f688a){super(),this['model']=_0x16a6fa,this['view']=_0x17f4c2,this['commentThreadController']=_0x4f688a,this['_editor']=_0x21e7ed,this['_acceptCommand']=_0x21e7ed['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x21e7ed['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x259d49,_0x50dd1f)=>_0x259d49||_0x50dd1f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4dcf6d=>_0x4dcf6d&&this['_editor']['model']['canEditAt'](_0x16a6fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x12986a=>_0x12986a&&this['_editor']['model']['canEditAt'](_0x16a6fa['getRanges']())),this['_pendingAction']=null,_0x17f4c2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x17f4c2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x17f4c2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x17f4c2,'change:isDirty',()=>{_0x17f4c2['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 _0x1686b0=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1686b0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x4ceb53{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x483632,_0xec8c65,_0x4f2bd1,_0xd3438c){super(_0x483632),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4e9480(_0x483632,St(_0x483632,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xec8c65['authoredAt']),this['bind']('authoredAt')['to'](_0xec8c65),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',_0xec8c65,'authoredAt',this,'descriptionParts',(_0x21248e,_0x210586,_0x48a4e)=>{const _0x37712d=_0x48a4e['map'](_0x3e60bb=>pt(_0x3e60bb['content']))['join']('.\x20')+'.',_0x3f5167=_0xec8c65['aiSource']&&'author'===_0xd3438c['showAISource']?_0xd3438c['aiAuthor']['name']:_0xec8c65['author']['name'],_0x35bf9c=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x21248e-0x1,_0x3f5167,_0x210586?_0xd3438c['formatDateTime'](_0x210586):'',new DOMParser()['parseFromString'](_0x37712d,'text/html')['body']['textContent']]);return _0xec8c65['aiSource']&&'pill'===_0xd3438c['showAISource']?_0x35bf9c+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x35bf9c;}),this['focusables']=new _0x12df6c(),this['focusTracker']=new _0x4fff65(),this['keystrokes']=new _0x560b3c(),this['focusCycler']=new _0xa36f0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x49ea8c=>_0x49ea8c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xec8c65,this['_localUser']=_0x4f2bd1,this['_config']=_0xd3438c,_0xd3438c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4d7c6c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x209b6e}=this['_config'];this['commentsListView']=new _0x209b6e(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',_0x33d08d=>_0x33d08d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x44d8e7,_0x492079)=>_0x44d8e7||!!_0x492079);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x28bb7a}=this['_config'],_0x30cd05=new _0x28bb7a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5c7518=_0x30cd05['commentInputView'];return _0x30cd05['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5c7518,'value',(_0x2832b9,_0x4c3cc1,_0x5a76e9)=>!!_0x5a76e9||_0x2832b9&&!_0x4c3cc1),_0x5c7518['on']('submit',(_0x4172e6,_0x5cb087)=>{this['fire']('addComment',_0x5cb087),_0x5c7518['editor']['setData']('');}),_0x5c7518['on']('cancel',()=>this['focus']()),_0x5c7518['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x30cd05;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0x7af229,_0x5ee4e6,_0x1c19c9,_0x3edaae){super(_0x7af229,_0x5ee4e6,_0x1c19c9,_0x3edaae),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256331=>_0x256331&&_0x256331[0x0]?_0x256331[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x54b758,_0x7544f8)=>{let _0x455d28='';for(const _0x15ca1f of _0x54b758)_0x455d28+='<p>'+pt(_0x15ca1f['content'],_0x15ca1f['color'])+'</p>';return _0x7544f8?_0x455d28:nt(_0x455d28,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3edaae['SuggestionView'](_0x7af229,_0x5ee4e6,{'formatDateTime':_0x3edaae['formatDateTime'],'showAISource':_0x3edaae['showAISource'],'aiAuthor':_0x3edaae['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3229c=this['bindTemplate'],_0x5f5d5e=[this['suggestionView']];return this['commentsListView']&&_0x5f5d5e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5f5d5e['push'](this['commentThreadInputView']),_0x5f5d5e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3229c['if']('isActive','ck-suggestion-wrapper--active'),_0x3229c['to']('type',_0x8589=>'ck-suggestion-'+_0x8589),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':_0x3229c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5f5d5e};}['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));}},bn=class extends _0x4ceb53{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x136ed6,_0x37e3a7,_0x4c1dd5){super(_0x136ed6),this['_model']=_0x37e3a7,this['_config']=_0x4c1dd5,this['set']('description',''),this['bind']('authoredAt')['to'](_0x37e3a7),this['acceptButton']=this['_createButton'](St(_0x136ed6,'Accept\x20suggestion'),_0x17f795,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x136ed6,'Discard\x20suggestion'),_0xe52ae3,'ck-suggestion--discard','discardSuggestion','sw');const _0x314761=!!_0x37e3a7['aiSource']&&'author'===_0x4c1dd5['showAISource'],_0x7280f1=_0x314761?this['_createAIUser'](_0x4c1dd5['aiAuthor']):_0x37e3a7['author'],_0x28253a=_0x314761&&!_0x4c1dd5['aiAuthor']['avatar']?_0x219f44:void 0x0;this['userView']=new _0x23460e(_0x136ed6,_0x7280f1,this['getUserViewNotificationText'](),_0x28253a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x12df6c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4fff65(),this['keystrokes']=new _0x560b3c(),this['focusCycler']=new _0xa36f0({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x29e88c=>_0x29e88c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x43cb56=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x43cb56['innerHTML']=this['description'],this['on']('change:description',(_0x4050d3,_0x13098e,_0x285368)=>{_0x43cb56['innerHTML']=_0x285368;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5e35bd=this['bindTemplate'],_0x537a3f=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5e35bd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e35bd['to']('authoredAt',_0x1b2340=>this['_config']['formatDateTime'](_0x1b2340))}]}]},{'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']&&_0x537a3f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x262032=new _0x5d1bc0(this['locale']);_0x262032['set']({'icon':_0x3d13e3,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x537a3f['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x262032]});}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':_0x537a3f}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x3535e9){return new _0x34dabe({'id':'ck-ai-author','name':_0x3535e9['name'],'avatar':_0x3535e9['avatar'],'color':new _0x300a40(0x0)});}['_createButton'](_0x2d58e4,_0x98377b,_0x9e6820,_0x3f7748,_0x32bce7){const _0x230ccb=new _0x1da65c(this['locale']);return _0x230ccb['set']({'label':_0x2d58e4,'icon':_0x98377b,'tooltip':!0x0,'tooltipPosition':_0x32bce7}),_0x230ccb['extendTemplate']({'attributes':{'class':_0x9e6820}}),_0x230ccb['on']('execute',()=>{this['fire'](_0x3f7748,this['_model']['id']);}),_0x230ccb;}['_setupKeyboardNavigation'](){const _0x4e7164=this['element'];this['keystrokes']['listenTo'](_0x4e7164);for(const _0x51a984 of this['focusables'])this['focusTracker']['add'](_0x51a984['element']),this['keystrokes']['listenTo'](_0x51a984['element']);this['keystrokes']['set']('enter',(_0x266ef3,_0x4dd9f2)=>{_0x4e7164===_0x266ef3['target']&&(this['focusCycler']['focusFirst'](),_0x4dd9f2());}),this['keystrokes']['set']('esc',(_0x199e68,_0x71ddb3)=>{_0x4e7164!==_0x199e68['target']&&(this['focus'](),_0x71ddb3());});}},kn=class extends _0x413c81{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0xbc2e11,_0x15ba36,_0x14a75c,_0x56a282];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1904f0){super(_0x1904f0),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xaa2945=this['editor']['config'];_0xaa2945['define']('trackChanges.SuggestionThreadView',An),_0xaa2945['define']('trackChanges.SuggestionView',bn),_0xaa2945['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xaa2945['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0xc35de5,_0x687a2c){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5b9695,_0x4265a7]of this['_handleControllerBuffer']){const _0x37c75f=this['_suggestionToController']['has'](_0x5b9695);_0x37c75f||_0x4265a7?_0x37c75f&&_0x4265a7&&this['_destroyController'](_0x5b9695):this['_initializeController'](_0x5b9695);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x56a282)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xc35de5,_0x687a2c);}['init'](){const _0x414c97=this['editor'],_0x3099df=_0x414c97['plugins']['get'](nn),_0x590787=_0x414c97['plugins']['get'](_0x14a75c),_0x945b62=_0x414c97['plugins']['get'](_0x56a282),_0x5eddf7=_0x414c97['plugins']['get'](_0x15ba36);this['_addUIComponentsToFactory'](),_0x945b62['addSourceCollector'](()=>{const _0x405572=[];for(const [_0x2e0caa,_0x22c27e]of Array['from'](this['_suggestionToController'])){const _0x327d4a=_0x2e0caa['getAllAdjacentSuggestions'](),_0x5b6511=[];for(const _0xa67322 of _0x327d4a){if(!_0xa67322['isInContent'])continue;if(_0xa67322['isMultiRange']){_0x5b6511['push'](..._0xa67322['getRanges']());continue;}const _0x3aff0e=_0xa67322['getFirstRange']();if(_0x5b6511['length']>0x0){const _0x997ea4=_0x5b6511[0x0]['getJoined'](_0x3aff0e);if(_0x997ea4){_0x5b6511[0x0]=_0x997ea4;continue;}}_0x5b6511['push'](_0x3aff0e);}_0x405572['push']([_0x22c27e['view'],_0x5b6511]);}return _0x405572;}),this['listenTo'](_0x3099df,'suggestionLoaded',(_0x50929e,_0x597241)=>{this['listenTo'](_0x597241,'change:previous',(_0x147f4b,_0x3f6a42,_0x592808,_0x4251a7)=>{_0x597241['isInContent']&&(null==_0x592808?(this['_updateController'](_0x4251a7['head']),this['_handleSuggestionControllerDelayed'](_0x597241,!0x1)):(this['_updateController'](_0x592808['head']),null==_0x4251a7&&this['_handleSuggestionControllerDelayed'](_0x597241,!0x0)));}),null!==_0x597241['previous']?this['_updateController'](_0x597241['head']):this['_handleSuggestionControllerDelayed'](_0x597241,!0x1);}),this['listenTo'](_0x3099df,'suggestionUnloaded',(_0x1d3c42,_0x586c7a,_0x582bc0)=>{this['stopListening'](_0x586c7a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x586c7a),this['_suggestionToController']['has'](_0x586c7a)&&this['_destroyController'](_0x586c7a),_0x582bc0&&this['_updateController'](_0x582bc0['head']);}),this['listenTo'](_0x3099df,'suggestionChanged',(_0x242a89,_0x577b0e)=>{this['_updateController'](_0x577b0e);}),this['listenTo'](_0x590787,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5eddf7,'addComment',(_0x4f0c61,{threadId:_0x35f83d,isFromAdapter:_0x135211})=>{if(_0x135211||!_0x3099df['hasSuggestion'](_0x35f83d))return;const _0x3e3d33=_0x3099df['getSuggestion'](_0x35f83d);this['_suggestionToController']['get'](_0x3e3d33)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x327483=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x471df3;for(const _0x33b64f in _0x327483){const _0x426e7f=_0x33b64f,_0x1565f8=_0x327483[_0x426e7f];if('trackChangesLicenseKeyValid'==_0x1565f8||'trackChangesLicenseKeyInvalid'==_0x1565f8||'trackChangesLicenseKeyExpired'==_0x1565f8||'trackChangesLicenseKeyDomainLimit'==_0x1565f8||'trackChangesLicenseKeyNotAllowed'==_0x1565f8||'trackChangesLicenseKeyEvaluationLimit'==_0x1565f8||'trackChangesLicenseKeyUsageLimit'==_0x1565f8){delete _0x327483[_0x426e7f],_0x471df3=_0x1565f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x471df3&&_0x327483['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x471df3&&_0x327483['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x471df3&&_0x327483['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x471df3&&_0x327483['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x471df3&&_0x327483['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x471df3&&_0x327483['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x4933bb){const _0x267eb5=this['_suggestionToController']['get'](_0x4933bb);return _0x267eb5&&this['editor']['plugins']['get'](_0x14a75c)['getByInnerView'](_0x267eb5['view'])||null;}['getSuggestionForAnnotation'](_0x50dc60){const _0x33f994=this['_viewToController']['get'](_0x50dc60['innerView']);return _0x33f994?_0x33f994['model']:null;}['_refreshActiveMarkers'](){const _0x48bec6=this['editor']['plugins']['get'](_0x14a75c),_0x515dc3=this['editor']['plugins']['get'](nn),_0x50560c=Array['from'](_0x48bec6['activeAnnotations'],_0xbff4e3=>_0xbff4e3['innerView'])['filter'](_0x2fba19=>this['_viewToController']['has'](_0x2fba19)),_0x53217d=[];for(const _0x51baab of _0x50560c){const _0x35ac29=this['_viewToController']['get'](_0x51baab)['model']['getAllAdjacentSuggestions']();_0x53217d['push'](..._0x35ac29['reduce']((_0x182437,_0x707d12)=>[..._0x182437,..._0x707d12['getMarkerNames']()],[]));}_0x515dc3['activeMarkers']=_0x53217d;}['_addUIComponentsToFactory'](){const _0x54d436=this['editor'],_0x490463=_0x54d436['locale'],_0x14198f=St(_0x490463,'Track\x20changes'),_0x5abf3d=new _0x2c968b([{'type':'switchbutton','model':new _0x34fa2a({'withText':!0x0,'isToggleable':!0x0,'label':_0x14198f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x54d436['plugins']['has']('TrackChangesPreview')&&_0x5abf3d['addMany']([{'type':'separator'},{'type':'button','model':new _0x34fa2a({'withText':!0x0,'label':St(_0x490463,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3155cf of _0x5abf3d)if(Cn(_0x3155cf)){const _0x4e4ea7=_0x54d436['commands']['get'](_0x3155cf['model']['commandName']);_0x3155cf['model']['bind']('isOn','isEnabled')['to'](_0x4e4ea7,'value','isEnabled');}_0x54d436['ui']['componentFactory']['add']('trackChanges',_0x3ed7fb=>this['_createToolbarButton'](_0x3ed7fb,_0x5abf3d,_0x14198f)),_0x54d436['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4c31e4=>this['_createMenuBarMenu'](_0x4c31e4,_0x5abf3d,_0x14198f));}['_createToolbarButton'](_0x292410,_0x386fac,_0xfd0cf4){const _0x163587=_0xfea874(_0x292410,_0x3fa594),_0x1f53b0=this['editor']['commands']['get']('trackChanges');_0x163587['buttonView']['set']({'tooltip':_0xfd0cf4,'label':_0xfd0cf4,'icon':_0x1bcfaa}),_0x163587['buttonView']['bind']('isOn')['to'](_0x1f53b0,'value'),_0x163587['buttonView']['on']('execute',()=>{_0x1f53b0['execute'](),this['editor']['editing']['view']['focus']();}),_0xa8f73d(_0x163587,_0x386fac,{'role':'menu'});const _0x2bd940=[];for(const _0x3624f0 of _0x386fac)Cn(_0x3624f0)&&_0x2bd940['push'](this['editor']['commands']['get'](_0x3624f0['model']['commandName']));const _0x607beb=_0x163587['buttonView'];return _0x607beb['actionView']['unbind']('isEnabled'),_0x607beb['arrowView']['unbind']('isEnabled'),_0x607beb['actionView']['bind']('isEnabled')['to'](_0x1f53b0,'isEnabled'),_0x607beb['arrowView']['bind']('isEnabled')['toMany'](_0x2bd940,'isEnabled',(..._0x4c94cc)=>_0x4c94cc['some'](_0x4ba424=>_0x4ba424)),_0x163587['on']('execute',_0x5311d3=>{this['editor']['execute'](_0x5311d3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x163587;}['_createMenuBarMenu'](_0x44b8ce,_0x303330,_0x323c80){const _0x57b3c5=new _0xd6e8b8(_0x44b8ce),_0x3876b4=this['editor']['commands']['get']('trackChanges');_0x57b3c5['buttonView']['set']({'label':_0x323c80,'icon':_0x1bcfaa});const _0xb9513b=new _0xfdc7c0(_0x44b8ce);for(const _0x376ec6 of _0x303330){if('separator'==_0x376ec6['type']){_0xb9513b['items']['add'](new _0x8ceee0(_0x44b8ce));continue;}const _0x49ed23=new _0x2bb385(_0x44b8ce,_0x57b3c5),_0x2fc7e9=new _0x5aeaf8(_0x44b8ce),_0x347b23=_0x376ec6['model'];_0x2fc7e9['bind'](...Object['keys'](_0x347b23))['to'](_0x347b23),_0x2fc7e9['delegate']('execute')['to'](_0x57b3c5),_0x2fc7e9['on']('execute',()=>{this['editor']['execute'](_0x347b23['commandName']),this['editor']['editing']['view']['focus']();}),_0x49ed23['children']['add'](_0x2fc7e9),_0xb9513b['items']['add'](_0x49ed23);}return _0x57b3c5['bind']('isEnabled')['to'](_0x3876b4,'isEnabled'),_0x57b3c5['panelView']['children']['add'](_0xb9513b),_0x57b3c5;}['_initializeController'](_0x59c5ff){const _0x1464ff=this['editor'],_0x169750=_0x1464ff['config'],_0x2d6526=_0x1464ff['plugins']['get'](_0x14a75c),_0x30defe=_0x1464ff['plugins']['get'](_0x15ba36),_0x466939=_0x1464ff['plugins']['get'](_0x56a282),_0x1fb52c=_0x1464ff['plugins']['get'](_0xbc2e11)['me'],_0x446184=_0x169750['get']('trackChanges')['SuggestionThreadView'],_0x85d281=_0x169750['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x41704b,CommentThreadInputView:_0x3810d8}=_0x1464ff['plugins']['get']('CommentsUI');let _0xbd2d16,_0x5062fd,_0x42b165;this['_annotationViews']['has'](_0x59c5ff['id'])?(_0x5062fd=this['_annotationViews']['get'](_0x59c5ff['id']),_0xbd2d16=_0x5062fd['mainView']):(_0xbd2d16=new _0x446184(_0x1464ff['locale'],_0x59c5ff,_0x1fb52c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x169750['get']('comments.editorConfig'),'licenseKey':_0x169750['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x169750['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x169750['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x169750['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f0d23(_0x169750['get']('locale'),_0x1464ff['locale']),'CommentView':_0x169750['get']('comments')['CommentView'],'CommentsListView':_0x41704b,'CommentThreadInputView':_0x3810d8,'SuggestionView':_0x85d281,'showAISource':_0x169750['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0x169750['get']('trackChanges.aiAuthor'),'name':_0x169750['get']('trackChanges.aiAuthor')?.['name']||St(_0x1464ff['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0xbd2d16['suggestionView']['acceptButton']['on']('execute',()=>{_0x1464ff['editing']['view']['focus']();}),_0xbd2d16['suggestionView']['discardButton']['on']('execute',()=>{_0x1464ff['editing']['view']['focus']();}),_0x5062fd=_0x2d6526['createAnnotationView'](this['editor']['locale'],_0xbd2d16),_0x5062fd['bind']('isDirty')['to'](_0xbd2d16,'isDirty'),_0x5062fd['bind']('length')['to'](_0xbd2d16),_0x5062fd['bind']('type')['to'](_0xbd2d16,'type',_0x55f606=>'suggestion-'+_0x55f606),_0xbd2d16['on']('escape',()=>{_0x42b165['fire']('escape');}),this['_annotationViews']['set'](_0x59c5ff['id'],_0x5062fd));const _0xa0fa56=_0x30defe['createCommentThreadController'](_0x59c5ff['commentThread'],_0xbd2d16),_0x30903d=new Ln(_0x1464ff,_0x59c5ff,_0xbd2d16,_0xa0fa56),_0x48de72=_0x59c5ff['getAllAdjacentSuggestions']()['filter'](_0x6f1cc2=>_0x6f1cc2['isInContent']);_0xbd2d16['descriptionParts']=_0x1464ff['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x48de72),this['_suggestionToController']['set'](_0x59c5ff,_0x30903d),this['_viewToController']['set'](_0xbd2d16,_0x30903d);const _0x1b5a86=()=>{const _0x561615=[],_0x40b180=_0x59c5ff['getAllAdjacentSuggestions']()['filter'](_0x1b6df6=>_0x1b6df6['isInContent']);for(const _0x3f8dad of _0x40b180)_0x561615['push'](..._0x3f8dad['getMarkers']());return _0x49f7b6(_0x1464ff['editing'],_0x561615);};_0x42b165=_0x2d6526['createAnnotation']({'view':_0x5062fd,'target':_0x1b5a86,'type':()=>'suggestion-'+_0x30903d['view']['type'],'isVisible':!!_0x1b5a86()}),_0x30defe['_bindAnnotationToEditors'](_0xbd2d16,_0x42b165),_0x2d6526['add'](_0x42b165),_0x466939['registerAnnotation'](_0x42b165);}['_destroyController'](_0x158613){const _0x3cdabd=this['editor']['plugins']['get'](_0x15ba36),_0x1c09c9=this['editor']['plugins']['get'](_0x14a75c),_0x1bd3dd=this['_suggestionToController']['get'](_0x158613),_0x5082d8=_0x1bd3dd['view'],_0x94c9f8=_0x1c09c9['getByInnerView'](_0x5082d8);_0x3cdabd['_unbindEditors'](_0x5082d8),_0x94c9f8&&_0x1c09c9['remove'](_0x94c9f8),this['_suggestionToController']['delete'](_0x158613),this['_viewToController']['delete'](_0x5082d8),_0x1bd3dd['destroy']();}['_updateController'](_0x875e98){if(!_0x875e98['isInContent']||!this['_suggestionToController']['has'](_0x875e98))return;const _0x24ee47=this['editor']['plugins']['get'](nn),_0x215897=this['_suggestionToController']['get'](_0x875e98),_0x1e006a=_0x875e98['getAllAdjacentSuggestions']();_0x215897['view']['descriptionParts']=_0x24ee47['descriptionFactory']['getDescriptions'](_0x1e006a);}['destroy'](){for(const _0x1c34fe of this['_suggestionToController']['keys']())this['_destroyController'](_0x1c34fe);for(const _0x359559 of this['_annotationViews']['values']())_0x359559['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0xc44e37){return'model'in _0xc44e37;}var Rn=class extends _0x413c81{static get['requires'](){return[nn,kn,_0x267b7c];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x243e93){this['editor']['plugins']['get'](nn)['adapter']=_0x243e93;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x32a857){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x32a857);}['getSuggestions']({skipNotAttached:_0x158958=!0x1,toJSON:_0x5b9e10=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x158958,'toJSON':_0x5b9e10});}['getSuggestion'](_0x19b939){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x19b939);}};const Nn=['Pagination'];var yn=class extends _0x413c81{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1ec507=this['editor'];if(_0x1ec507['config']['define']('trackChangesData.editorCreator',_0xe49bba=>{const _0x1b0435=_0x1ec507['model']['document']['getRootNames']()['reduce']((_0x206a0d,_0x4418fd)=>(_0x206a0d[_0x4418fd]='',_0x206a0d),{});return _0x1ec507['constructor']['create'](_0x1b0435,_0xe49bba);}),'function'!=typeof _0x1ec507['config']['get']('trackChangesData')['editorCreator'])throw new _0x5748df('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x10fc52){return On(this['editor'],!0x0,_0x10fc52);}['getDataWithDiscardedSuggestions'](_0x2574df){return On(this['editor'],!0x1,_0x2574df);}},Sn=class extends _0x413c81{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x424ae6){super(_0x424ae6),this['result']='end',_0x424ae6['editing']['view']['_overlayModeHint']='auto',_0x424ae6['_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 Mn(_0x191bb1){return void 0x0!==_0x191bb1['getRootsAttributes'];}async function On(_0x5196b2,_0x1e588a,_0x5792a2){const _0x251200=_0x2ac1c7(_0x5196b2,Nn);if(_0x251200['plugins']['push'](nn,Sn),Mn(_0x5196b2)){_0x251200['roots']=Object['create'](null);for(const _0x290c13 of _0x5196b2['model']['document']['getRootNames']())_0x251200['roots'][_0x290c13]={'modelAttributes':_0x5196b2['getRootAttributes'](_0x290c13)};}const _0xbbe8d7=document['createDocumentFragment'](),_0x43ec40=_0x5196b2['config']['get']('trackChangesData')['editorCreator'],_0x230989=await _0x43ec40(_0x251200,()=>function(_0x27cb4b){const _0xcf5abd=document['createElement']('div');return _0x27cb4b['appendChild'](_0xcf5abd),_0xcf5abd;}(_0xbbe8d7));!function(_0x2a4ae0,_0x43eb2d){const _0x4dd058=_0x2a4ae0['model']['document']['getRootNames']()['reduce']((_0x284131,_0x5af689)=>(_0x284131[_0x5af689]=_0x2a4ae0['data']['get']({'rootName':_0x5af689}),_0x284131),{}),_0x5b9faa=_0x2a4ae0['plugins']['get']('Users')['users']['map'](_0x476973=>({'id':_0x476973['id'],'name':_0x476973['name']})),_0x5cea42=_0x2a4ae0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x45dac6=_0x2a4ae0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x44dbed=_0x43eb2d['plugins']['get']('Users'),_0x3d624b=_0x43eb2d['plugins']['get']('TrackChangesEditing'),_0x125755=_0x43eb2d['plugins']['get']('CommentsRepository');for(const _0x379fc3 of _0x125755['getCommentThreads']())_0x379fc3['remove']();for(const _0x5cd0f7 of _0x5b9faa)_0x44dbed['getUser'](_0x5cd0f7['id'])||_0x44dbed['addUser'](_0x5cd0f7);_0x44dbed['me']||_0x44dbed['useAnonymousUser']();for(const _0x54f4bb of _0x45dac6)_0x125755['addCommentThread'](_0x54f4bb);for(const _0x8f1b6 of _0x5cea42)_0x3d624b['addSuggestionData'](_0x8f1b6);_0x43eb2d['data']['set'](_0x4dd058);}(_0x5196b2,_0x230989),_0x230989['execute'](_0x1e588a?'acceptAllSuggestions':'discardAllSuggestions');const _0x46d035=Mn(_0x230989)?_0x230989['getFullData'](_0x5792a2):_0x230989['data']['get'](_0x5792a2);return await _0x230989['destroy'](),_0x46d035;}var wn=class extends _0x4ceb53{['options'];constructor(_0x13ae97,_0x5c48f2){super(_0x13ae97),this['options']=_0x5c48f2,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'](_0x35f1fc,_0x1ec8f5){if(!this['element'])return;const _0x3bbdb9=[];for(const [_0x59f8d3,_0x4f2737]of _0x35f1fc){const _0x430118=document['createElement']('div');_0x430118['setAttribute']('data-ck-root-name',_0x59f8d3),_0x430118['className']=_0x4f2737['classes']+'\x20ck-track-changes-preview__root-container',_0x430118['innerHTML']=_0x4f2737['content'],_0x3bbdb9['push'](_0x430118);}_0x1ec8f5(this['element'],_0x3bbdb9),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x3e1ff9{constructor(_0x4ebf91){super(_0x4ebf91),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4a66bf=this['editor'],_0x35e17d=_0x4a66bf['locale'],_0x234a9a=_0x4a66bf['plugins']['get']('Dialog');let _0x4fbd78;const _0x2a7d32=function(_0x53526c){const _0x5e4259={};if('editables'in _0x53526c['ui']['view']){for(const [_0xf656f7,_0x3ebb95]of Object['entries'](_0x53526c['ui']['view']['editables']))_0x5e4259[_0xf656f7]=_0x3ebb95['element'];}else _0x5e4259[_0x53526c['model']['document']['getRootNames']()[0x0]]=_0x53526c['ui']['view']['editable']['element'];return _0x5e4259;}(_0x4a66bf),_0x10889a=function(_0x1f052d){let _0x340b84=0x0;for(const _0x1965c4 of Object['values'](_0x1f052d))_0x340b84=Math['max'](_0x340b84,_0x1965c4['getBoundingClientRect']()['width']);let _0x11d4bf=0x0;for(const _0x58cc5e of Object['values'](_0x1f052d))_0x11d4bf+=_0x58cc5e['getBoundingClientRect']()['height'];const _0x2ec514=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x340b84,'height':Math['min'](_0x11d4bf,_0x2ec514)};}(_0x2a7d32);_0x234a9a['show']({'id':'finalContentPreview','title':St(_0x35e17d,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x35e17d,{'dialogRects':_0x10889a}),'onHide':()=>{_0x4fbd78['detachFromDom']();},'onShow':()=>{_0x4a66bf['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b96c4=>{const _0x30a11a=this['_standarizeRootsData'](_0x2b96c4,_0x4a66bf,_0x2a7d32);_0x234a9a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x30a11a,_0x4a66bf['config']['get']('trackChanges.preview.renderFunction'));}),_0x4fbd78=new _0x5496d7(_0x35e17d,[_0x234a9a['view']]),_0x4fbd78['attachToDom'](),_0x4fbd78['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4a66bf['once']('destroy',()=>{_0x4fbd78['detachFromDom']();});const _0x2c843c=_0x234a9a['view']['headerView']['class'];_0x234a9a['view']['headerView']['class']=_0x2c843c?_0x2c843c+'\x20ck-reset_all':'ck-reset_all',_0x234a9a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x234a9a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1022dc=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2ee00e=_0x1022dc['previewMode'],_0x1f465d={};if('$labels'===_0x2ee00e){for(const _0x22c145 of _0x1022dc['getMergeFieldsIds']())_0x1f465d[_0x22c145]=_0x1022dc['getLabel'](_0x22c145)||_0x22c145;}else{const _0x5b09ff='$defaultValues'===_0x2ee00e?_0x1022dc['getDefaultValues']():_0x1022dc['getDataSetValues'](_0x2ee00e,!0x0);for(const _0x855f94 of Object['entries'](_0x5b09ff)){const [_0x58174c,_0x241ce6]=_0x855f94;_0x1f465d[_0x58174c]=null!==_0x241ce6?_0x241ce6:_0x1022dc['getLabel'](_0x58174c)||_0x58174c;}}return{'mergeFieldsData':_0x1f465d};}['_standarizeRootsData'](_0x46d4d0,_0x20ed00,_0x1a658a){let _0x24bf0b;_0x24bf0b='string'==typeof _0x46d4d0?{[_0x20ed00['model']['document']['getRootNames']()[0x0]]:_0x46d4d0}:_0x46d4d0;const _0x2c1c96=this['_fixMediaEmbeds'](_0x24bf0b,_0x20ed00);return function(_0x170c3a,_0x35111f){for(const [_0x58d064,_0x2504b1]of _0x170c3a)_0x2504b1['classes']=_0x35111f[_0x58d064]['classList']['value']['replace']('ck-focused','');return _0x170c3a;}(this['_sortRoots'](_0x20ed00)['reduce']((_0x3e257d,_0x40df18)=>(_0x3e257d['push']([_0x40df18,{'content':_0x2c1c96[_0x40df18],'classes':''}]),_0x3e257d),[]),_0x1a658a);}['_fixMediaEmbeds'](_0x42ef07,_0x28be4d){if(!_0x28be4d['plugins']['has']('MediaEmbedEditing'))return _0x42ef07;const _0x3c11bf=_0x28be4d['plugins']['get']('MediaEmbedEditing');for(const [_0x5339c7,_0x209a80]of Object['entries'](_0x42ef07)){const _0x5b5c1e=document['createElement']('div');_0x5b5c1e['innerHTML']=_0x209a80,_0x5b5c1e['querySelectorAll']('figure.media')['forEach'](_0x2df207=>{const _0x5c8c2e=_0x2df207['querySelector']('oembed');if(_0x5c8c2e){const _0x205368=_0x5c8c2e['getAttribute']('url');if(_0x205368){const _0x1b7152=_0x3c11bf['registry']['getMediaViewElement'](new ot(_0x28be4d['editing']['view']['document']),_0x205368,{'elementName':'','renderForEditingView':!0x0}),_0x4f7480=document['createElement']('div');_0x4f7480['classList']['add']('ck-media__wrapper'),_0x1b7152['render'](_0x4f7480,_0x28be4d['editing']['view']['domConverter']),_0x5c8c2e['replaceWith'](_0x4f7480);}}}),_0x42ef07[_0x5339c7]=_0x5b5c1e['innerHTML'];}return _0x42ef07;}['_sortRoots'](_0x29e437){if(!function(_0x5e5015){return void 0x0!==_0x5e5015['getRootsAttributes'];}(_0x29e437))return _0x29e437['model']['document']['getRootNames']();const _0xc559f3=[],_0x5ee4d8=new Map();for(const _0x539d00 of _0x29e437['model']['document']['getRootNames']()){const _0x23b8a6=_0x29e437['editing']['view']['getDomRoot'](_0x539d00)['getClientRects']()['item'](0x0);_0xc559f3['push'](_0x539d00),_0x5ee4d8['set'](_0x539d00,_0x23b8a6);}return _0xc559f3['sort']((_0xb31f49,_0x308565)=>{const _0x2836ff=_0x5ee4d8['get'](_0xb31f49),_0x39d57e=_0x5ee4d8['get'](_0x308565);return _0x2836ff['y']-_0x39d57e['y']||_0x2836ff['x']-_0x39d57e['x'];}),_0xc559f3;}},Bn=class extends _0x413c81{static get['requires'](){return[yn,_0x411989];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f072d){super(_0x1f072d),_0x1f072d['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x1f072d['config']['define']('trackChanges.preview.renderFunction',(_0x5291b4,_0x3e4b86)=>{for(const _0x564367 of _0x3e4b86)_0x5291b4['appendChild'](_0x564367);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
|
|
23
|
+
import{Command as _0x5a79ba,PendingActions as _0x6db56a,Plugin as _0x548d2a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x5a11f9,Comments as _0x28e9ec,CommentsRepository as _0x625dc5,EditorAnnotations as _0x515c91}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4ce3e1,Collection as _0x2d3c72,FocusTracker as _0x50e30b,KeystrokeHandler as _0x574fc1,ObservableMixin as _0x47ad8b,getEnvKeystrokeText as _0x217db9,insertToPriorityArray as _0x1dd3b8,logWarning as _0x78b2a9,priorities as _0x5e908b,uid as _0x1dfb7c}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x112b98,IconCancel as _0x5eb0dc,IconCheck as _0x14b565,IconSparkle as _0x3af273,IconTrackChanges as _0x1fd907}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1d1889,Dialog as _0x4ccace,FocusCycler as _0x3b54a5,ListSeparatorView as _0x5b0cbf,MenuBarMenuListItemButtonView as _0x28f43e,MenuBarMenuListItemView as _0x271ebd,MenuBarMenuListView as _0x1d8e7c,MenuBarMenuView as _0x3b7c12,SplitButtonView as _0x499055,UIModel as _0xe0f952,View as _0x44d047,ViewCollection as _0x4b334b,addListToDropdown as _0x5a7aa3,createDropdown as _0x583898,normalizeColorOptions as _0xb174e6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0xb0e5f7,CollaborationUserColor as _0x4762e5,DocumentCompare as _0x140123,FOCUS_ANNOTATION_KEYSTROKE as _0x55db56,LateFocusButtonView as _0x5bb789,PillView as _0x24fb6b,SuggestionsConversion as _0x4fbad8,User as _0xcdc6f6,UserView as _0x122117,Users as _0x5036c6,fixElementSuggestionRange as _0x42ced4,getAllMarkersDomElementsSorted as _0x369c76,getDateTimeFormatter as _0x1f27f5,hashObject as _0x86ba89,isInvalidAttributeOperation as _0x39c933,sanitizeEditorConfig as _0x303fe4,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x5a79ba{['_enabledCommands'];constructor(_0x24a447,_0x8606f2){super(_0x24a447),this['_enabledCommands']=_0x8606f2,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 _0xfcf0fc of this['editor']['commands']['commands']())_0xfcf0fc['affectsData']&&!this['_enabledCommands']['has'](_0xfcf0fc)&&_0xfcf0fc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1770c6 of this['editor']['commands']['commands']())_0x1770c6['affectsData']&&!this['_enabledCommands']['has'](_0x1770c6)&&_0x1770c6['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x5a79ba{_suggestions;constructor(_0x1ae441,_0x9ce711){super(_0x1ae441),this['_suggestions']=_0x9ce711,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5b1ea7){const _0x5324bb=this['_suggestions']['get'](_0x5b1ea7);if(!_0x5324bb)throw new _0x4ce3e1('track-changes-accept-suggestion-not-found',this);const _0x3bef9e=_0x5324bb['getRanges']();this['editor']['model']['canEditAt'](_0x3bef9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5324bb);}},Lt=class extends _0x5a79ba{_suggestions;constructor(_0xa6b99e,_0x54d261){super(_0xa6b99e),this['_suggestions']=_0x54d261,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1442){const _0x120644=this['_suggestions']['get'](_0x1f1442);if(!_0x120644)throw new _0x4ce3e1('track-changes-discard-suggestion-not-found',this);const _0x5e4181=_0x120644['getRanges']();this['editor']['model']['canEditAt'](_0x5e4181)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x120644);}};function It(_0x1194c3,_0x1c3a1d){let _0x58a8f3='';return _0x58a8f3+=_0x1194c3['split']('*')['map']((_0xcdf9e8,_0x270108)=>_0x270108%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0xcdf9e8)+'</span>':At(_0xcdf9e8))['join'](''),_0x1c3a1d&&(_0x58a8f3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c3a1d['value']+'\x22\x20title=\x22'+_0x1c3a1d['title']+'\x22></span>'),_0x58a8f3;}function At(_0x5928a7){const _0x4f8840=document['createElement']('span');return _0x4f8840['innerText']=_0x5928a7,_0x4f8840['innerHTML'];}function bt(_0x795e1){return _0x795e1['sort']((_0x3e0d57,_0x4b79bc)=>'attribute'===_0x3e0d57['type']&&'attribute'!==_0x4b79bc['type']?-0x1:'attribute'!==_0x3e0d57['type']&&'attribute'===_0x4b79bc['type']?0x1:'deletion'==_0x3e0d57['type']&&'deletion'!=_0x4b79bc['type']?-0x1:'deletion'!=_0x3e0d57['type']&&'deletion'==_0x4b79bc['type']?0x1:0x0);}function Ct(_0x3a29be,_0x497f62){let _0x4e9e59,_0x4d6338=0x0;const _0x4b4b98=[],_0x1a6e7f=_0x497f62['schema'];for(;_0x4d6338<_0x3a29be['length'];){const _0x44ebea=_0x3a29be[_0x4d6338],_0x380feb=_0x3a29be[_0x4d6338+0x1];_0x4e9e59||(_0x4e9e59=_0x497f62['createPositionBefore'](_0x44ebea)),kt(_0x497f62,_0x44ebea,_0x380feb)||(_0x4b4b98['push'](_0x497f62['createRange'](_0x4e9e59,_0x1a6e7f['isObject'](_0x44ebea)?_0x497f62['createPositionAfter'](_0x44ebea):_0x497f62['createPositionAt'](_0x44ebea,'end'))),_0x4e9e59=null),_0x4d6338++;}return _0x4b4b98;}function kt(_0xfe4988,_0x5af59f,_0x3fa615){if(!_0x3fa615)return!0x1;const _0x1c457a=_0xfe4988['createPositionAfter'](_0x5af59f),_0x335d79=_0xfe4988['createPositionBefore'](_0x3fa615);return _0x1c457a['isTouching'](_0x335d79);}function Rt(_0x418b4b,_0x35e7ad,_0x130506){for(;_0x130506['length'];){const _0x555103=_0x130506['splice'](0x0,0x64);_0x418b4b['change'](()=>{for(const _0x25887b of _0x555103)_0x25887b['isInContent']&&_0x35e7ad['execute'](_0x25887b['id']);});}}var yt=class extends _0x5a79ba{['_command'];_suggestions;constructor(_0x2004c5,_0x110477,_0x4b0f38){super(_0x2004c5),this['_command']=_0x110477,this['_suggestions']=_0x4b0f38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1298ac=Array['from'](this['_suggestions']['values']())['some'](_0x1ef728=>_0x1ef728['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1298ac;}execute(){const _0x59135b=bt(Array['from'](this['_suggestions']['values']()));for(const _0xc823c0 of _0x59135b){const _0x2e018b=_0xc823c0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e018b))return;}Rt(this['editor']['model'],this['_command'],_0x59135b);}},Nt=class extends _0x5a79ba{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4fbf4d,_0x1c5481,_0x94c3e1){super(_0x4fbf4d),this['_command']=_0x1c5481,this['_suggestions']=_0x94c3e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7cb9f9=this['editor']['model']['document']['selection'],_0x574cb2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6ff409,_0xc8abba){const _0x511255=Array['from'](_0x6ff409['getRanges']()),_0x22a6ca=new Set();for(const _0x23c12e of _0xc8abba)if(_0x23c12e['isInContent']){for(const _0x50b4f1 of _0x511255)for(const _0x38341f of _0x23c12e['getRanges']())(_0x50b4f1['isIntersecting'](_0x38341f)||_0x6ff409['isCollapsed']&&!_0x23c12e['isMultiRange']&&_0x23c12e['next']&&_0x38341f['end']['isTouching'](_0x50b4f1['start']))&&_0x22a6ca['add'](_0x23c12e);}return _0x22a6ca;}(_0x7cb9f9,_0x574cb2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x3b388e=bt(Array['from'](this['_selectedSuggestions']));for(const _0x4e5d8f of _0x3b388e){const _0x415f4d=_0x4e5d8f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x415f4d))return;}Rt(this['editor']['model'],this['_command'],_0x3b388e);}};const St=/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x47ad8b();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x59d596,_0x29f478){super(),this['id']=_0x29f478['id'],this['type']=_0x29f478['type'],this['subType']=_0x29f478['subType']||null,this['author']=_0x29f478['author'],this['creator']=_0x29f478['creator']||_0x29f478['author'],this['data']=null,this['_originalSuggestionId']=_0x29f478['originalSuggestionId']||null,this['_model']=_0x59d596,this['_onAccept']=_0x29f478['onAccept'],this['_onDiscard']=_0x29f478['onDiscard'],this['_onAttributesChange']=_0x29f478['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29f478['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4a4dab=this;for(;_0x4a4dab['previous'];)_0x4a4dab=_0x4a4dab['previous'];return _0x4a4dab;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x41f52f){this['_markerNames']['add'](_0x41f52f);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x3bfe17=>this['_model']['markers']['get'](_0x3bfe17))['filter'](_0x456c9e=>_0x456c9e);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b2a66=>{for(const _0x536246 of this['getMarkers']())_0x4b2a66['removeMarker'](_0x536246);}),this['_markerNames']['clear']();}['removeMarker'](_0x478e50){this['_model']['change'](_0x3091c0=>{_0x3091c0['removeMarker'](_0x478e50);}),this['_markerNames']['delete'](_0x478e50);}['addRange'](_0x2682bd){const _0xc20bca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc20bca),this['_model']['change'](_0x131494=>{_0x131494['addMarker'](_0xc20bca,{'range':_0x2682bd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x220008){for(const _0x461194 of this['getRanges']())if(_0x461194['isIntersecting'](_0x220008))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x401a2c=>_0x401a2c['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3cce98,_0x5eaaa0)=>[..._0x3cce98,..._0x5eaaa0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd23d18=this['getRanges']();if(0x1!=_0xd23d18['length'])return null;const _0x33e0ef=_0xd23d18[0x0],_0xd5a886=_0x33e0ef['start']['nodeAfter'],_0x56f7b4=_0x33e0ef['end']['nodeBefore'];return _0xd5a886 instanceof st?_0xd5a886!=_0x56f7b4?null:_0xd5a886:null;}accept(){this['_onAccept'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}['discard'](){this['_onDiscard'](this['getRanges'](),this['data'],this['attributes']),this['removeMarkers']();}getAllAdjacentSuggestions(){const _0x48fe6b=[];let _0x2f6904=this['head'];for(;_0x2f6904;)_0x48fe6b['push'](_0x2f6904),_0x2f6904=_0x2f6904['next'];return _0x48fe6b;}setAttribute(_0x150beb,_0x2fd83e){const _0x2ab888=ct(this['attributes']);dt(_0x2ab888,_0x150beb,_0x2fd83e),lt(_0x2ab888,this['attributes'])||(this['attributes']=_0x2ab888,this['_onAttributesChange'](_0x2ab888));}removeAttribute(_0x1befae){const _0x50497b=ct(this['attributes']);ht(_0x50497b,_0x1befae),lt(_0x50497b,this['attributes'])||(this['attributes']=_0x50497b,this['_onAttributesChange'](this['attributes']));}toJSON(){return{'id':this['id'],'type':this['subType']?this['type']+':'+this['subType']:this['type'],'authorId':this['creator']['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this['attributes']};}static getMultiRangeId(){return _0x1dfb7c()['substr'](0x1,0x5);}};function Ot(_0x580bbe,_0x598d09,_0x469664){const _0x5ddd10=_0x580bbe['t'],t=_0x580bbe['t'];switch(_0x598d09){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x469664);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469664);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469664);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469664);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469664);case'*Format:*\x20change\x20table\x20properties':return t('*Format:*\x20change\x20table\x20properties');case'*Format:*\x20change\x20table\x20cell\x20properties':return t('*Format:*\x20change\x20table\x20cell\x20properties');case'*Format:*\x20insert\x20into\x20%0':return t('*Format:*\x20insert\x20into\x20%0',_0x469664);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469664);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x469664);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469664);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469664);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469664);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469664);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469664);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x469664);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469664);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469664);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469664);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469664);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469664);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469664);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469664);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469664);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469664);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469664);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x469664);case'*Remove\x20highlight*':return t('*Remove\x20highlight*');case'FORMAT_HIGHLIGHT':return t({'string':'highlight','id':'FORMAT_HIGHLIGHT'});case'FORMAT_RESTRICTED_ENABLED':return t({'string':'*Enable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_ENABLED'});case'FORMAT_RESTRICTED_DISABLED':return t({'string':'*Disable\x20in\x20restricted\x20editing\x20mode*','id':'FORMAT_RESTRICTED_DISABLED'});case'ELEMENT_TABLE':return t({'string':'table','plural':'%0\x20tables','id':'ELEMENT_TABLE'},_0x469664);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x469664);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x469664);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469664);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469664);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469664);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469664);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469664);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x469664);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});case'ELEMENT_CAPTION':return t({'string':'caption','id':'ELEMENT_CAPTION'});case'ELEMENT_HORIZONTAL_LINE':return t({'string':'horizontal\x20line','plural':'%0\x20horizontal\x20lines','id':'ELEMENT_HORIZONTAL_LINE'},_0x469664);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469664);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469664);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469664);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469664);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x469664);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469664);case'FORMAT_ALIGNMENT':return t({'string':'alignment','id':'FORMAT_ALIGNMENT'});case'FORMAT_ALIGN_TO_LEFT':return t({'string':'align\x20to\x20left','id':'FORMAT_ALIGN_TO_LEFT'});case'FORMAT_ALIGN_TO_RIGHT':return t({'string':'align\x20to\x20right','id':'FORMAT_ALIGN_TO_RIGHT'});case'FORMAT_ALIGN_TO_CENTER':return t({'string':'align\x20to\x20center','id':'FORMAT_ALIGN_TO_CENTER'});case'FORMAT_JUSTIFY_TEXT':return t({'string':'justify','id':'FORMAT_JUSTIFY_TEXT'});case'FORMAT_BOLD':return t({'string':'bold','id':'FORMAT_BOLD'});case'FORMAT_ITALIC':return t({'string':'italic','id':'FORMAT_ITALIC'});case'FORMAT_UNDERLINE':return t({'string':'underline','id':'FORMAT_UNDERLINE'});case'FORMAT_CODE':return t({'string':'code','id':'FORMAT_CODE'});case'FORMAT_STRIKETHROUGH':return t({'string':'strikethrough','id':'FORMAT_STRIKETHROUGH'});case'FORMAT_SUBSCRIPT':return t({'string':'subscript','id':'FORMAT_SUBSCRIPT'});case'FORMAT_SUPERSCRIPT':return t({'string':'superscript','id':'FORMAT_SUPERSCRIPT'});case'ELEMENT_BLOCK_QUOTE':return t({'string':'block\x20quote','id':'ELEMENT_BLOCK_QUOTE'});case'ELEMENT_CODE_BLOCK':return t({'string':'code\x20block','plural':'%0\x20code\x20blocks','id':'ELEMENT_CODE_BLOCK'},_0x469664);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x469664);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469664);case'ELEMENT_TABLE_ROW_WITH_TEXT':return t({'string':'table\x20row\x20*with\x20text*\x20%1','plural':'%0\x20table\x20rows\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_ROW_WITH_TEXT'},_0x469664);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469664);case'ELEMENT_TABLE_COLUMN_WITH_TEXT':return t({'string':'table\x20column\x20*with\x20text*\x20%1','plural':'%0\x20table\x20columns\x20*with\x20text*\x20%1','id':'ELEMENT_TABLE_COLUMN_WITH_TEXT'},_0x469664);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469664);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x469664);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x469664);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x469664);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469664);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x469664);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x469664);case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x469664);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x469664);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x469664);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x598d09;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x14aa6b,_0xff8d6e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14aa6b,this['_locale']=_0xff8d6e;}getDescriptions(_0x2e5cf9){const _0x4ae254=[],_0x23ab8e=new Set(),_0x24bee4=new Set();for(let _0x11132e=0x0;_0x11132e<_0x2e5cf9['length'];_0x11132e++){const _0x502393=_0x2e5cf9[_0x11132e];if(!_0x502393['isInContent'])continue;const _0x1d7876=this['_handleCustomCallbackDescription'](_0x502393);if(_0x1d7876){if(null!=_0x502393['subType']){if(_0x23ab8e['has'](_0x502393['subType']))continue;_0x23ab8e['add'](_0x502393['subType']);}_0x4ae254['push'](_0x1d7876);}else{if('attribute'==_0x502393['type']){const _0x3a761d=_0x502393['data']['key'];if(_0x24bee4['has'](_0x3a761d))continue;_0x24bee4['add'](_0x502393['data']['key']),'$elementName'==_0x3a761d?this['_handleRenameSuggestionDescription'](_0x4ae254,_0x502393):this['_handleAttributeSuggestionDescription'](_0x4ae254,_0x502393);continue;}'insertion'!=_0x502393['type']&&'deletion'!=_0x502393['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ae254,_0x502393,_0x2e5cf9[_0x11132e+0x1]);}}return this['_resolveDescriptionItems'](_0x4ae254);}registerDescriptionCallback(_0x4f77c6){this['_customCallbacks']['push'](_0x4f77c6);}registerElementLabel(_0x2857f1,_0x3228d7,_0x1b4324=_0x5e908b['normal']){'function'==typeof _0x2857f1?_0x1dd3b8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2857f1,'label':_0x3228d7,'priority':_0x1b4324}):this['_itemLabels']['set'](_0x2857f1,_0x3228d7);}registerAttributeLabel(_0x96d3ae,_0x2f06a5){this['_attributeLabels']['set'](_0x96d3ae,_0x2f06a5);}getItemLabel(_0xf72d30,_0x59ca1a=0x1){let _0x593c73;for(const _0x165112 of this['_itemLabelsCallbacks'])if(_0x165112['matchingCallback'](_0xf72d30)){_0x593c73=_0x165112['label'];break;}return _0x593c73||(_0x593c73=this['_itemLabels']['get'](_0xf72d30['name'])),_0x593c73?_0x593c73(_0x59ca1a):0x1!==_0x59ca1a?_0x59ca1a+'\x20'+_0xf72d30['name']+'s':''+_0xf72d30['name'];}_addDescriptionItems(_0x49a196,_0x1c1125){const _0x275642=_0x1c1125['getFirstRange']()['getWalker'](),_0x2d8e5a='insertion'==_0x1c1125['type']?'add':'remove';for(const _0x6cc0b7 of _0x275642){const _0x236432=_0x6cc0b7['item'],_0x5ef514=_0x49a196[_0x49a196['length']-0x1];if(_0x236432['is']('$textProxy'))_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),_0x5ef514&&'text'==_0x5ef514['type']?_0x5ef514[_0x2d8e5a]+=_0x236432['data']:_0x49a196['push']({'type':'text','add':'add'==_0x2d8e5a?_0x236432['data']:'','remove':'remove'==_0x2d8e5a?_0x236432['data']:''});else{if(this['_schema']['isObject'](_0x236432)){const _0x36dd71=_0x236432;if(_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),'elementEnd'==_0x6cc0b7['type'])continue;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'Object'&&_0x5ef514['element']['name']==_0x36dd71['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'Object','element':_0x36dd71,'quantity':0x1}),_0x275642['skip'](_0x4bfed4=>!('elementEnd'==_0x4bfed4['type']&&_0x4bfed4['item']==_0x236432));}else{if(this['_schema']['checkChild'](_0x236432,'$text')||_0x236432['is']('element','softBreak')){const _0x84e86d=_0x236432;if('add'==_0x2d8e5a&&'elementStart'==_0x6cc0b7['type']||'remove'==_0x2d8e5a&&'elementEnd'==_0x6cc0b7['type'])continue;if(_0x5ef514&&-0x1==_0x5ef514['type']['indexOf']('Container')){'text'==_0x5ef514['type']&&(_0x5ef514[_0x2d8e5a]+='\x0a');continue;}let _0x11ce46;if(_0x11ce46='add'==_0x2d8e5a?_0x84e86d['nextSibling']&&!this['_schema']['isObject'](_0x84e86d['nextSibling'])?_0x84e86d['nextSibling']:null:_0x84e86d['previousSibling']&&!this['_schema']['isObject'](_0x84e86d['previousSibling'])?_0x84e86d['previousSibling']:null,_0x84e86d['isEmpty']||_0x11ce46&&_0x11ce46['isEmpty']){const _0x3ee0a3=_0x11ce46&&_0x11ce46['isEmpty']?_0x11ce46:_0x84e86d;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'EmptyContainer'&&_0x5ef514['element']['name']==_0x3ee0a3['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'EmptyContainer','element':_0x3ee0a3,'quantity':0x1});}else _0x49a196['push']({'type':_0x2d8e5a+'Container','element':_0x84e86d});}}}}}_resolveDescriptionItems(_0x35688e){const _0xb92b49=this['_locale'],_0x3bb84a=[],_0x1caffb=[],_0x5a01c1=[];for(const _0x3ee6b0 of _0x35688e)switch(_0x3ee6b0['type']){case'text':if(_0x3ee6b0['add']=_0x3ee6b0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ee6b0['remove']=_0x3ee6b0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ee6b0['add']&&''!=_0x3ee6b0['remove']){_0x3bb84a['push']({'type':'replace','content':Ot(_0xb92b49,'REPLACE_TEXT',['\x22'+_0x3ee6b0['remove']+'\x22','\x22'+_0x3ee6b0['add']+'\x22'])});continue;}if(null!=_0x3ee6b0['add']['match'](/^ +$/)){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['add']['length']))});continue;}if(null!=_0x3ee6b0['remove']['match'](/^ +$/)){_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['remove']['length']))});continue;}if(''!=_0x3ee6b0['add']){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0','\x22'+_0x3ee6b0['add']+'\x22')});continue;}_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0','\x22'+_0x3ee6b0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addContainer':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Split:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeContainer':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Merge:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addFormat':_0x1caffb['push'](_0x3ee6b0['key']);continue;case'removeFormat':_0x5a01c1['push'](_0x3ee6b0['key']);continue;default:_0x3bb84a['push'](_0x3ee6b0);}if(_0x1caffb['length']){const _0xda488a=_0x1caffb['map'](_0x3920c9=>this['_attributeLabels']['has'](_0x3920c9)?this['_attributeLabels']['get'](_0x3920c9):_0x3920c9)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0xda488a)});}if(_0x5a01c1['length']){const _0x4671f2=_0x5a01c1['map'](_0x571dce=>this['_attributeLabels']['has'](_0x571dce)?this['_attributeLabels']['get'](_0x571dce):_0x571dce)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x4671f2)});}return _0x3bb84a;}_handleCustomCallbackDescription(_0x4c45b4){for(const _0x551ece of this['_customCallbacks']){const _0x27b609=_0x551ece(_0x4c45b4);if(_0x27b609&&'type'in _0x27b609)return _0x27b609;}}_handleAttributeSuggestionDescription(_0x4ff171,_0x5bc390){const _0x31abaa=_0x5bc390['data'],_0x4fec73=void 0x0===_0x31abaa['newValue']?'removeFormat':'addFormat';_0x4ff171['push']({'type':_0x4fec73,'key':_0x31abaa['key']});}_handleRenameSuggestionDescription(_0x5efd87,_0x5a1937){_0x5efd87['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a1937['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x50ec23,_0x363f18,_0xdec4a3){if(this['_addDescriptionItems'](_0x50ec23,_0x363f18),_0xdec4a3&&_0xdec4a3['getFirstRange']()&&!_0x363f18['getFirstRange']()['end']['isEqual'](_0xdec4a3['getFirstRange']()['start'])){const _0x3dffe6=_0x50ec23[_0x50ec23['length']-0x1],_0x518ddb='insertion'==_0x363f18['type']?'add':'remove';_0x3dffe6&&'text'==_0x3dffe6['type']&&(_0x3dffe6[_0x518ddb]+='\x0a');}}},Ft=class extends _0x548d2a{afterInit(){const _0x33dbe0=this['editor'],_0x157d93=_0x33dbe0['plugins']['get']('TrackChangesEditing');_0x33dbe0['commands']['get']('showAIAssistant')&&_0x157d93['enableCommand']('showAIAssistant');}},Bt=class extends _0x548d2a{afterInit(){const _0x5901e1=this['editor'],_0x5ef11a=_0x5901e1['plugins']['get']('TrackChangesEditing');_0x5901e1['commands']['get']('toggleAi')&&_0x5ef11a['enableCommand']('toggleAi');}},vt=class extends _0x548d2a{afterInit(){const _0x3a84d0=this['editor'],_0x343fd8=_0x3a84d0['plugins']['get']('TrackChangesEditing');_0x3a84d0['commands']['get']('aiQuickAction')&&_0x343fd8['enableCommand']('aiQuickAction');}},Dt=class extends _0x548d2a{afterInit(){const _0x2d69a3=this['editor'],_0xc6e7f8=_0x2d69a3['locale'];if(!_0x2d69a3['plugins']['has']('AlignmentEditing'))return;const _0x324907=_0x2d69a3['plugins']['get']('TrackChangesEditing');_0x324907['enableDefaultAttributesIntegration']('alignment'),_0x324907['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0xc6e7f8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5657ac=this['editor'],_0x1d0d5e=_0x5657ac['locale'];_0x5657ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6a38=>{if('formatBlock'!=_0x3c6a38['type'])return;const {data:_0x58c0ec}=_0x3c6a38;if(_0x58c0ec&&'alignment'==_0x58c0ec['commandName']){const _0x1d2bd8=_0x58c0ec['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x1d0d5e,'*Format:*\x20%0',function(_0x2c2624){switch(_0x2c2624){case'left':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x1d0d5e,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2bd8))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x548d2a{afterInit(){const _0x55f6e5=this['editor'],_0x51c0f2=_0x55f6e5['plugins']['get']('TrackChangesEditing'),_0x472c79=_0x55f6e5['locale'];for(const _0x5106fe of Ut){if(!_0x55f6e5['plugins']['has'](_0x5106fe))continue;const _0x14ef00=_0x5106fe['slice'](0x0,-0x7)['toLowerCase'](),_0x304bf6='FORMAT_'+_0x14ef00['toUpperCase']();_0x51c0f2['enableDefaultAttributesIntegration'](_0x14ef00),_0x51c0f2['descriptionFactory']['registerAttributeLabel'](_0x14ef00,Ot(_0x472c79,_0x304bf6));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4338f0=this['editor'],_0x4f5d59=_0x4338f0['locale'],_0x17d980=_0x4338f0['plugins']['get']('TrackChangesEditing');function _0xc19c30(_0x392d7d,_0x1855a2){_0x17d980['descriptionFactory']['registerDescriptionCallback'](_0x2775ab=>{if('formatInline'!=_0x2775ab['type'])return;const {data:_0x527a96}=_0x2775ab;return _0x527a96&&_0x527a96['commandName']===_0x392d7d?_0x527a96['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x4f5d59,'*Format:*\x20%0',_0x1855a2)}:{'type':'format','content':Ot(_0x4f5d59,'*Remove\x20format:*\x20%0',_0x1855a2)}:void 0x0;});}_0xc19c30('bold',Ot(_0x4f5d59,'FORMAT_BOLD')),_0xc19c30('italic',Ot(_0x4f5d59,'FORMAT_ITALIC')),_0xc19c30('underline',Ot(_0x4f5d59,'FORMAT_UNDERLINE')),_0xc19c30('code',Ot(_0x4f5d59,'FORMAT_CODE')),_0xc19c30('strikethrough',Ot(_0x4f5d59,'FORMAT_STRIKETHROUGH')),_0xc19c30('subscript',Ot(_0x4f5d59,'FORMAT_SUBSCRIPT')),_0xc19c30('superscript',Ot(_0x4f5d59,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x548d2a{afterInit(){const _0x3a85d8=this['editor'],_0x36113c=_0x3a85d8['locale'];if(!_0x3a85d8['plugins']['has']('BlockQuoteEditing'))return;const _0x387209=_0x3a85d8['plugins']['get']('TrackChangesEditing'),_0x51e9bc=this['editor']['commands']['get']('blockQuote');_0x387209['enableCommand']('blockQuote',(_0xff3daa,_0x435138={})=>{const _0x1657e1=this['editor']['model']['document']['selection'],_0x4c0156=_0x435138&&void 0x0!==_0x435138['forceValue']?_0x435138['forceValue']:!_0x51e9bc['value'];let _0x46d889=[];_0x46d889=Ct(_0x4c0156?Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x2a5c28=>Gt(_0x2a5c28)||function(_0x48f7bf,_0x195c07){const _0x23939f=_0x195c07['createContext'](_0x48f7bf['parent']);return!!_0x195c07['checkChild'](_0x23939f,'blockQuote')&&!!_0x195c07['checkChild'](_0x23939f['push']('blockQuote'),_0x48f7bf);}(_0x2a5c28,this['editor']['model']['schema'])):Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x4cd9db=>Gt(_0x4cd9db)),_0x3a85d8['model']),_0x3a85d8['model']['change'](()=>{for(const _0x118167 of _0x46d889)_0x387209['markBlockFormat'](_0x118167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0156}]});});}),_0x387209['descriptionFactory']['registerDescriptionCallback'](_0x139664=>{const {data:_0x10916c}=_0x139664;if(_0x10916c&&'blockQuote'==_0x10916c['commandName']){const _0x1cc5c3=Ot(_0x36113c,'ELEMENT_BLOCK_QUOTE');return _0x10916c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36113c,'*Set\x20format:*\x20%0',_0x1cc5c3)}:{'type':'format','content':Ot(_0x36113c,'*Remove\x20format:*\x20%0',_0x1cc5c3)};}});}};function Gt(_0x572fbd){return'blockQuote'==_0x572fbd['parent']['name'];}var Ht=class extends _0x548d2a{afterInit(){const _0x27a490=this['editor'],_0x5d4a28=_0x27a490['locale'],_0x54e6e5=_0x27a490['plugins']['get']('TrackChangesEditing');_0x27a490['plugins']['has']('BookmarkEditing')&&(_0x54e6e5['enableCommand']('insertBookmark'),_0x54e6e5['enableDefaultAttributesIntegration']('updateBookmark'),_0x54e6e5['descriptionFactory']['registerDescriptionCallback'](_0x5d9ef8=>{if('insertion'!=_0x5d9ef8['type']&&'deletion'!=_0x5d9ef8['type']&&'attribute'!=_0x5d9ef8['type'])return;const _0x4b9797=_0x5d9ef8['getContainedElement']();if(null==_0x4b9797)return;if(!_0x4b9797['is']('element','bookmark'))return;const _0x362e7f=_0x4b9797['getAttribute']('bookmarkId');if('insertion'==_0x5d9ef8['type'])return{'type':'insertion','content':Ot(_0x5d4a28,'*Insert:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d9ef8['type'])return{'type':'deletion','content':Ot(_0x5d4a28,'*Remove:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};const {data:_0x4c37e3}=_0x5d9ef8;return _0x4c37e3&&'bookmarkId'==_0x4c37e3['key']?{'type':'format','content':Ot(_0x5d4a28,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c37e3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x548d2a{afterInit(){const _0x3f06d3=this['editor'];_0x3f06d3['plugins']['has']('CaseChange')&&(_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x548d2a{afterInit(){const _0x3ab169=this['editor'];_0x3ab169['commands']['get']('ckbox')&&_0x3ab169['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x548d2a{static get requires(){return[gt,ft];}constructor(_0x155be5){super(_0x155be5),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x6ebdaa=this['editor'],_0x2684b5=_0x6ebdaa['plugins']['get']('ClipboardMarkersUtils'),_0x317a38=_0x6ebdaa['plugins']['get'](ft);_0x2684b5['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x317a38['on']('outputTransformation',(_0x62898f,_0x3baf18)=>{const _0x40264d=this['_getSuggestionEntries'](_0x3baf18);for(const [_0x41208d,_0x5c7a55]of _0x3baf18['content']['markers']){const _0x20eb8a=ot['_fromRangeInDocumentFragment'](_0x5c7a55,_0x6ebdaa['model']);function _0x27b241(){_0x20eb8a['detach'](),_0x3baf18['content']['markers']['delete'](_0x41208d);}_0x20eb8a['on']('change:drop',_0x27b241),(_0x41208d['startsWith']('suggestion:')||_0x41208d['startsWith']('comment:'))&&_0x20eb8a['on']('change:range',()=>{_0x20eb8a['isCollapsed']&&_0x27b241();}),_0x3baf18['content']['markers']['set'](_0x41208d,_0x20eb8a);}const _0x2d99ea=_0x40264d['filter'](_0x25681b=>'deletion'===_0x25681b['meta']['type'])['map'](_0x4cbd1e=>_0x4cbd1e['modelRange']);if(this['_shouldSkipDeletions'](_0x2d99ea,_0x3baf18['content']))return[..._0x40264d]['forEach'](_0x77a233=>{_0x3baf18['content']['markers']['get'](_0x77a233['markerName'])['detach'](),_0x3baf18['content']['markers']['delete'](_0x77a233['markerName']);}),void this['_restoreRegularRanges'](_0x3baf18['content']['markers']);[..._0x40264d]['forEach'](_0x549f25=>{const _0x3b7dae=_0x6ebdaa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x549f25['meta']['type'],_0x549f25['meta']['subType'],'accept'),{markerName:_0x2ec4b5,meta:_0x366011}=_0x549f25;if(_0x3baf18['content']['markers']['has'](_0x2ec4b5)){switch(_0x366011['type']){case'deletion':if('tableRow'===_0x366011['subType']||'tableColumn'===_0x366011['subType']){if(!_0x6ebdaa['plugins']['has']('TableUtils'))break;const _0x4538da=_0x6ebdaa['plugins']['get']('TableUtils'),_0x45974a=_0x4538da['getSelectionAffectedTableCells'](_0x6ebdaa['model']['createSelection'](_0x3baf18['content']['markers']['get'](_0x2ec4b5))),_0x2ac429=_0x45974a[0x0]['findAncestor']('table');if('tableRow'===_0x366011['subType']){const {first:_0x262a0a,last:_0x26846f}=_0x4538da['getRowIndexes'](_0x45974a);_0x4538da['removeRows'](_0x2ac429,{'at':_0x262a0a,'rows':_0x26846f-_0x262a0a+0x1});}else{const {first:_0x2b2586,last:_0x3d0e0b}=_0x4538da['getColumnIndexes'](_0x45974a);_0x4538da['removeColumns'](_0x2ac429,{'at':_0x2b2586,'columns':_0x3d0e0b-_0x2b2586+0x1});}break;}_0x3b7dae([_0x3baf18['content']['markers']['get'](_0x2ec4b5)]);}_0x3baf18['content']['markers']['has'](_0x2ec4b5)&&(_0x3baf18['content']['markers']['get'](_0x2ec4b5)['detach'](),_0x3baf18['content']['markers']['delete'](_0x2ec4b5));}}),this['_restoreRegularRanges'](_0x3baf18['content']['markers']);});}_getSuggestionEntries(_0x384387){const _0x6f3717=_0x421492=>'dragstart'===_0x384387['method']?_0x421492['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x421492;return Array['from'](_0x384387['content']['markers'])['map'](([_0x3ab927,_0x57fab2])=>({'markerName':_0x3ab927,'modelRange':_0x57fab2,'meta':et(_0x6f3717(_0x3ab927))}))['filter'](({meta:_0x3b84c9})=>'suggestion'===_0x3b84c9['group']);}_shouldSkipDeletions(_0x8b8c83,_0x36f0c7){if(!_0x8b8c83['length'])return!0x1;let _0x208a61=[this['editor']['model']['createRangeIn'](_0x36f0c7)];for(const _0x525136 of _0x8b8c83)_0x208a61=_0x208a61['flatMap'](_0x5bd72a=>_0x5bd72a['getDifference'](_0x525136));return!_0x208a61['some'](_0x493c02=>this['editor']['model']['hasContent'](_0x493c02,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x315d15){[..._0x315d15['keys']()]['forEach'](_0xba9e61=>{const _0x2861da=_0x315d15['get'](_0xba9e61);_0x2861da['detach'](),_0x315d15['set'](_0xba9e61,_0x2861da['toRange']());});}},jt=class extends _0x548d2a{afterInit(){const _0x7fb726=this['editor'];if(!_0x7fb726['plugins']['has']('CodeBlock'))return;const _0x41a0fd=_0x7fb726['plugins']['get']('TrackChangesEditing'),_0x227427=_0x7fb726['locale'],_0x107a42=_0x7fb726['config']['get']('codeBlock')['languages'],_0x1610d0=_0x7fb726['commands']['get']('codeBlock');_0x41a0fd['enableCommand']('indentCodeBlock'),_0x41a0fd['enableCommand']('outdentCodeBlock'),_0x41a0fd['enableCommand']('codeBlock',(_0x37be77,_0x4fd184={})=>{const _0x190607=_0x7fb726['model'],_0x5230a6=_0x7fb726['model']['document']['selection'],_0x43ec52=_0x4fd184&&void 0x0!==_0x4fd184['forceValue']?_0x4fd184['forceValue']:!_0x1610d0['value'];let _0x145450;_0x4fd184['language']||(_0x4fd184['language']=_0x107a42[0x0]['language']),_0x145450=_0x43ec52?Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x5dce3f=>{return zt(_0x5dce3f)||(_0x589ced=_0x5dce3f,_0x1143fa=_0x190607['schema'],!_0x589ced['is']('rootElement')&&!_0x1143fa['isLimit'](_0x589ced)&&_0x1143fa['checkChild'](_0x589ced['parent'],'codeBlock'));var _0x589ced,_0x1143fa;}):Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x50befe=>zt(_0x50befe));const _0x2b64ae=Ct(_0x145450,_0x190607);_0x190607['change'](()=>{for(const _0x2e996a of _0x2b64ae)_0x41a0fd['markBlockFormat'](_0x2e996a,{'commandName':'codeBlock','commandParams':[{..._0x4fd184,'forceValue':_0x43ec52}],'formatGroupId':'blockName'});});}),(_0x41a0fd['descriptionFactory']['registerElementLabel']('codeBlock',_0x1dea05=>Ot(_0x227427,'ELEMENT_CODE_BLOCK',_0x1dea05)),_0x41a0fd['descriptionFactory']['registerDescriptionCallback'](_0x593c1e=>{if('formatBlock'!=_0x593c1e['type'])return;const _0x587fbc=_0x227427['t'],{data:_0x34c667}=_0x593c1e;if(!_0x34c667||'codeBlock'!=_0x34c667['commandName'])return;const _0x573cfa=_0x34c667['commandParams'][0x0]['language'],_0x94e3e0=_0x587fbc(_0x107a42['find'](_0x1891ff=>_0x1891ff['language']===_0x573cfa)['label'])['toLowerCase']();return _0x34c667['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x227427,'*Set\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x94e3e0+')')}:{'type':'format','content':Ot(_0x227427,'*Remove\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x21fb09){return'codeBlock'==_0x21fb09['name'];}var Kt=class extends _0x548d2a{afterInit(){const _0x3ba165=this['editor'];_0x3ba165['plugins']['has']('CommentsEditing')&&_0x3ba165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x548d2a{static get requires(){return[mt];}init(){const _0x533106=this['editor'],_0x3081e1=_0x533106['plugins']['get']('TrackChangesEditing');_0x3081e1['enableCommand']('delete');const _0x1364d4=_0x533106['commands']['get']('deleteForward');_0x3081e1['enableCommand']('deleteForward',(_0x8d35f3,_0x3947d3={})=>{const _0x48b8d3=_0x533106['model']['createSelection'](_0x533106['model']['document']['selection']);_0x48b8d3['isCollapsed']&&_0x533106['model']['modifySelection'](_0x48b8d3,{'direction':'forward','unit':_0x3947d3['unit']});const _0x32c3a6=_0x48b8d3['getFirstRange'](),_0x442f6e=ot['fromRange'](_0x32c3a6);let _0x2fd82b;_0x8d35f3(_0x3947d3),_0x2fd82b='$graveyard'==_0x442f6e['root']['rootName']?_0x533106['model']['createRange'](_0x32c3a6['start']):_0x533106['model']['createRange'](_0x442f6e['start'],_0x442f6e['end']),_0x442f6e['detach'](),_0x533106['model']['enqueueChange'](_0x1364d4['buffer']['batch'],_0x23ec08=>{_0x1364d4['buffer']['lock'](),_0x23ec08['setSelection'](_0x23ec08['createRange'](_0x2fd82b['end'])),_0x1364d4['buffer']['unlock']();});});}},qt=class extends _0x548d2a{afterInit(){const _0x3803ea=this['editor'];if(!_0x3803ea['plugins']['has']('ListEditing'))return;const _0x448ec5=_0x3803ea['locale'],_0x50285c=_0x3803ea['plugins']['get']('TrackChangesEditing'),_0x1cd82e=_0x3803ea['plugins']['has']('TodoListEditing'),_0x1b199f=!!_0x3803ea['config']['get']('list.multiBlock');function _0x9d5c39(_0x5b5218){return{'type':'format','content':''+Ot(_0x448ec5,'*Set\x20format:*\x20%0',_0x5b5218)};}function _0x255d13(_0x28cd38){return{'type':'format','content':''+Ot(_0x448ec5,'*Remove\x20format:*\x20%0',_0x28cd38)};}_0x50285c['enableDefaultAttributesIntegration']('numberedList'),_0x50285c['enableDefaultAttributesIntegration']('bulletedList'),_0x50285c['enableDefaultAttributesIntegration']('customNumberedList'),_0x50285c['enableDefaultAttributesIntegration']('customBulletedList'),_0x50285c['enableDefaultAttributesIntegration']('indentList'),_0x50285c['enableDefaultAttributesIntegration']('outdentList'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b199f&&(_0x50285c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x50285c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cd82e&&(_0x50285c['enableDefaultAttributesIntegration']('todoList'),_0x50285c['enableDefaultAttributesIntegration']('checkTodoList'),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x77f90e=>{const {data:_0x3b2851}=_0x77f90e;if(_0x3b2851&&'todoListChecked'==_0x3b2851['key'])return{'type':'format','content':_0x3b2851['newValue']?Ot(_0x448ec5,'*Check\x20item*'):Ot(_0x448ec5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5cbea3=>{if(_0x5cbea3['batch']['isUndo'])return!0x1;let _0x5eb877=!0x1;const _0x16bc44=_0x50285c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d7602=>'todoListChecked'===_0x50285c['_getAttributeKey'](_0x5d7602));for(const _0x1f90e6 of _0x16bc44)'todo'!=_0x1f90e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x50285c['_findSuggestions'](_0x1f90e6['getFirstRange'](),'attribute')['find'](_0x5a9f40=>'listType'===_0x50285c['_getAttributeKey'](_0x5a9f40['suggestion']))||(_0x5cbea3['removeMarker'](_0x1f90e6['getFirstMarker']()),_0x5eb877=!0x0));return _0x5eb877;})),_0x50285c['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x448ec5,'FORMAT_INDENT'));const _0x3e4736={'type':'format','content':''};_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x480aee=>{const {data:_0x1a3e47}=_0x480aee;if(!_0x1a3e47||'listType'!=_0x1a3e47['key'])return;let _0x4d8148=_0x480aee['head'];for(;_0x4d8148;){if(_0x4d8148['data']&&(('listStyle'==_0x4d8148['data']['key']||'listMarkerStyle'==_0x4d8148['data']['key'])&&(_0x4d8148['data']['newValue']&&'default'!=_0x4d8148['data']['newValue']||'default'!=_0x4d8148['data']['oldValue']&&!_0x1a3e47['newValue'])||!_0x1b199f&&'$elementName'==_0x4d8148['data']['key']))return _0x3e4736;_0x4d8148=_0x4d8148['next'];}if(null==_0x1a3e47['newValue'])switch(_0x1a3e47['oldValue']){case'bulleted':return _0x255d13(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x255d13(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x255d13(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}switch(_0x1a3e47['newValue']){case'bulleted':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x311dab=>{const {data:_0x4db833}=_0x311dab;if(_0x4db833&&'listIndent'==_0x4db833['key'])return null==_0x4db833['newValue']||null==_0x4db833['oldValue']&&0x0==_0x4db833['newValue']?_0x3e4736:void 0x0;}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0xb97fef=>{if('attribute'!=_0xb97fef['type'])return;const {data:_0x28e6c2}=_0xb97fef;if(!_0x28e6c2||'listItemId'!=_0x28e6c2['key'])return;const _0x7ae84f=Yt(_0xb97fef);return'newValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Split:*\x20list\x20item')}:_0x3e4736;}),_0x3803ea['model']['document']['registerPostFixer'](_0x5ee3b6=>this['listItemIdFixer'](_0x5ee3b6)),_0x3803ea['model']['document']['registerPostFixer'](_0x17bdf7=>this['noTrackChangesFixer'](_0x17bdf7)),_0x3803ea['model']['document']['on']('change:data',(_0x5d5bbe,_0x3ffc01)=>{if(_0x3ffc01['isUndo']||!_0x3ffc01['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x29018b){if(_0x29018b['batch']['isUndo']||!_0x29018b['batch']['isLocal'])return!0x1;let _0x357083=!0x1;const _0x137a54=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150b37=>_0x150b37['data']&&'listItemId'==_0x150b37['data']['key'])['filter'](_0x388783=>_0x388783['data']['newValue']&&_0x388783['data']['oldValue']);for(const _0x403279 of _0x137a54)Yt(_0x403279)||(_0x29018b['removeMarker'](_0x403279['getFirstMarker']()),_0x357083=!0x0);return _0x357083;}['noTrackChangesFixer'](_0x2e32cd){if(_0x2e32cd['batch']['isUndo']||!_0x2e32cd['batch']['isLocal'])return!0x1;const _0x3c6b3b=this['editor']['model']['document']['differ'],_0x344ca8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x344ca8['trackChangesCommand']['value'])return!0x1;let _0x2d72f1=!0x1;const _0x5157b3=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x65170b=_0x3c6b3b['getChanges']()['filter'](_0x4abc67=>'attribute'==_0x4abc67['type'])['filter'](_0x557c53=>_0x5157b3['has'](_0x557c53['attributeKey']));if(0x0==_0x65170b['length'])return _0x2d72f1;const _0x12a94d=new Set(_0x3c6b3b['getMarkersToAdd']()['filter'](_0x17fbdd=>{if(!_0x17fbdd['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3110bc=et(_0x17fbdd['name'])['subType']['split']('|')[0x0];return _0x5157b3['has'](_0x3110bc);})['map'](_0xc75954=>et(_0xc75954['name'])['id']));for(const _0x494b6c of _0x65170b){const _0x38631d=_0x344ca8['_findSuggestions'](_0x494b6c['range'],'attribute')['filter'](_0x5e8bb4=>{if(_0x5e8bb4['meta']['isNextTo'])return!0x1;if(_0x12a94d['has'](_0x5e8bb4['suggestion']['id']))return!0x1;const _0x282a50=_0x344ca8['_getAttributeKey'](_0x5e8bb4['suggestion']);return _0x5157b3['has'](_0x282a50);})['map'](_0x318936=>_0x318936['suggestion']);if(_0x38631d['length']){for(const _0x4eb5fd of _0x38631d)_0x2e32cd['removeMarker'](_0x4eb5fd['getFirstMarker']());_0x2d72f1=!0x0;}}return _0x2d72f1;}['assureChains'](){const _0x103687=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f5114=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2cc53c;const _0x199deb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ab7f3=>{if(_0x5ab7f3['data']['oldRange']||!_0x5ab7f3['data']['newRange'])return null;if(!_0x5ab7f3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57374c}=et(_0x5ab7f3['name']);if(!_0x103687['hasSuggestion'](_0x57374c))return null;const _0x47a899=_0x103687['getSuggestion'](_0x57374c);return _0x1f5114['includes'](_0x47a899['data']['key']);})['map'](_0x31c6ec=>{const {id:_0x61760f}=et(_0x31c6ec['name']),_0x799935=_0x103687['getSuggestion'](_0x61760f);return _0x2cc53c=_0x799935['attributes']['groupId'],_0x799935['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x199deb['size'])return;const _0x2bccd4=_0x103687['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c273=>'attribute'==_0x49c273['type']&&_0x49c273['data']&&_0x1f5114['includes'](_0x49c273['data']['key'])&&_0x49c273['attributes']['groupId']!=_0x2cc53c)['map'](_0xc3807b=>({'listItem':_0xc3807b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xc3807b['attributes']['groupId']})),_0x3a4564=new Set();for(const {groupId:_0x1e7442,listItem:_0x34ca46}of _0x2bccd4)_0x199deb['has'](_0x34ca46)&&_0x3a4564['add'](_0x1e7442);for(const _0x90b4de of _0x103687['getSuggestions']())_0x3a4564['has'](_0x90b4de['attributes']['groupId'])&&_0x90b4de['setAttribute']('groupId',_0x2cc53c);}_supportLegacySuggestions(){const _0x3566a4=this['editor'],_0x57d0f7=_0x3566a4['locale'],_0x3b11d3=_0x3566a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33de8d,_0x245827){const _0x3c80a9=[];for(let _0x1bc4b5 of _0x33de8d)_0x1bc4b5['start']['nodeAfter']===_0x1bc4b5['end']['parent']&&(_0x1bc4b5=_0x3566a4['model']['createRange'](_0x3566a4['model']['createPositionAt'](_0x1bc4b5['start']['nodeAfter'],0x0))),_0x3c80a9['push'](_0x1bc4b5);_0x3566a4['model']['change'](_0x188710=>{const _0x14f674=_0x3566a4['model']['document']['selection'],_0x52d3be=Array['from'](_0x14f674['getRanges']())['map'](_0x22ba7a=>ot['fromRange'](_0x22ba7a));_0x188710['setSelection'](_0x3c80a9),_0x3566a4['commands']['get'](_0x245827['commandName'])['refresh'](),_0x245827['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3566a4['execute'](_0x245827['commandName'],..._0x245827['commandParams']),_0x188710['setSelection'](_0x52d3be);for(const _0x1fc655 of _0x52d3be)_0x1fc655['detach']();});}),_0x3b11d3['descriptionFactory']['registerElementLabel'](function(_0x2efc07){const _0x463612=!_0x3566a4['model']['schema']['isObject'](_0x2efc07),_0x560560=_0x2efc07['previousSibling'],_0x6c250f=_0x2efc07['nextSibling'],_0x353d3d=_0x2efc07['getAttribute']('listItemId'),_0x8fa336=!_0x560560||_0x560560['getAttribute']('listItemId')!==_0x353d3d,_0x4b4ef0=!_0x6c250f||_0x6c250f['getAttribute']('listItemId')!==_0x353d3d;return _0x463612&&Boolean(_0x353d3d)&&_0x8fa336&&_0x4b4ef0;},_0x398c39=>Ot(_0x57d0f7,'ELEMENT_LIST_ITEM',_0x398c39));}_registerLegacyDescription(){const _0x2515bc=this['editor'],_0xd5d8bd=_0x2515bc['locale'];function _0x55b889(_0x1dec84){const _0x5c2fcc=_0x2515bc['commands']['get']('bulletedList')['value'],_0x4af828=_0x2515bc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1dec84?_0x5c2fcc:_0x4af828;}_0x2515bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a0b9){if('formatBlock'!=_0x48a0b9['type'])return;const {data:_0x5bd5b0}=_0x48a0b9;if(!_0x5bd5b0)return;let _0x3f1c61,_0x2d8e17,_0x5da99c,_0x146af0;switch(_0x5bd5b0['commandName']){case'bulletedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f1c61='*Indent:*\x20%0',_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f1c61=function(_0x1c928b){const _0x5f235e=_0x1c928b['getFirstRange']();let _0x50ad58=_0x5f235e['start']['nodeAfter'];for(;_0x50ad58&&_0x5f235e['containsItem'](_0x50ad58);){if(_0x50ad58['getAttribute']('listIndent')>0x0)return!0x1;_0x50ad58=_0x50ad58['nextSibling'];}return!0x0;}(_0x48a0b9)?Ot(_0xd5d8bd,'*Format:*\x20remove\x20from\x20%0',Ot(_0xd5d8bd,function(_0x949512){return'ELEMENT_'+_0x949512['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a0b9))):Ot(_0xd5d8bd,'*Outdent:*\x20%0',Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM')),_0x2d8e17={'type':'format','content':_0x3f1c61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5bd5b0['multipleBlocks']&&(_0x3f1c61='*Merge:*\x20%0',_0x2d8e17={'type':'deletion','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))});}return _0x2d8e17;});}};function Yt(_0x5621fd){let _0x459df5=_0x5621fd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x459df5;){const _0x288933=_0x459df5['getAttribute']('listItemId');if(!_0x288933)return!0x1;if(_0x288933==_0x5621fd['data']['newValue'])return'newValue';if(_0x288933==_0x5621fd['data']['oldValue'])return'oldValue';_0x459df5=_0x459df5['previousSibling'];}return!0x1;}var Qt=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2dfa21=this['editor']['config']['get']('list.properties'),_0x1f1b03=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dfa21['styles']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStyle'),_0x2dfa21['reversed']&&_0x1f1b03['enableDefaultAttributesIntegration']('listReversed'),_0x2dfa21['startIndex']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStart');const _0x166a09={'type':'format','content':''};_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4261cc=this['editor']['locale'];_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4261cc,'FORMAT_LIST_REVERSED')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x1de4d3=>{const {data:_0x49d1b2}=_0x1de4d3;if(_0x49d1b2&&'listReversed'==_0x49d1b2['key'])return null==_0x49d1b2['newValue']||0x0==_0x49d1b2['newValue']&&null==_0x49d1b2['oldValue']?_0x166a09:void 0x0;}),_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4261cc,'FORMAT_LIST_START')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x53f8a4=>{const {data:_0x33b662}=_0x53f8a4;if(_0x33b662&&'listStart'==_0x33b662['key'])return null==_0x33b662['newValue']||0x1==_0x33b662['newValue']&&null==_0x33b662['oldValue']?_0x166a09:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44bdf4=>{if(_0x44bdf4['batch']['isUndo'])return!0x1;let _0x5647c4=!0x1;const _0x495967=_0x1f1b03['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21d97e=>{const _0x1b1a04=_0x1f1b03['_getAttributeKey'](_0x21d97e);return'listStart'==_0x1b1a04||'listReversed'==_0x1b1a04;});for(const _0x37b939 of _0x495967){const _0x344f9b=_0x37b939['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x344f9b&&'customNumbered'!=_0x344f9b&&(_0x1f1b03['_findSuggestions'](_0x37b939['getFirstRange'](),'attribute')['find'](_0x2572f6=>'listType'==_0x1f1b03['_getAttributeKey'](_0x2572f6['suggestion']))||(_0x44bdf4['removeMarker'](_0x37b939['getFirstMarker']()),_0x5647c4=!0x0));}return _0x5647c4;}),this['_registerLegacyDescription']();}handleDescriptions(_0x385f7e){const _0x43f459=this['editor']['locale'],{data:_0x22cb45}=_0x385f7e,_0x30a0ff={'type':'format','content':''};if(!_0x22cb45||'listStyle'!=_0x22cb45['key'])return;if(!_0x22cb45['oldValue'])return'default'==_0x22cb45['newValue']?_0x30a0ff:{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};if(!_0x22cb45['newValue']){if('default'==_0x22cb45['oldValue'])return _0x30a0ff;let _0x536a95=_0x385f7e['head'];for(;_0x536a95;){if(_0x536a95['data']&&'listType'==_0x536a95['data']['key']&&_0x536a95['data']['newValue'])return _0x30a0ff;_0x536a95=_0x536a95['next'];}return{'type':'format','content':''+Ot(_0x43f459,'*Remove\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['oldValue'])))};}if('default'!=_0x22cb45['newValue'])return{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};let _0x5ab35e=_0x385f7e['head'];for(;_0x5ab35e;){if(_0x5ab35e['data']&&'listType'==_0x5ab35e['data']['key']&&_0x5ab35e['data']['newValue']&&_0x5ab35e['data']['oldValue'])return _0x30a0ff;_0x5ab35e=_0x5ab35e['next'];}return{'type':'format','content':Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,'ELEMENT_'+_0x385f7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x31bbd9=this['editor'],_0x9b3aaa=_0x31bbd9['locale'];_0x31bbd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43390c=>{if('formatBlock'!=_0x43390c['type'])return;const {data:_0x85535a}=_0x43390c;if(!_0x85535a)return;let _0x21d822,_0x4ddb22;switch(_0x85535a['commandName']){case'listStyle':_0x21d822='*Change\x20to:*\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,Ot(_0x9b3aaa,this['_getTranslationKeyForListStyle'](_0x85535a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21d822=_0x85535a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822)};break;case'listStart':_0x21d822='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,_0x85535a['commandParams'][0x0]['startIndex'])};}return _0x4ddb22;});}_getTranslationKeyForListStyle(_0x3e1841){return'ELEMENT_'+(_0x149319=_0x3e1841,Zt['includes'](_0x149319)?'bulleted':Jt['includes'](_0x149319)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3e1841['toUpperCase']()['replace'](/-/g,'_');var _0x149319;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x548d2a{afterInit(){const _0x2fd17e=this['editor'];_0x2fd17e['commands']['get']('emoji')&&_0x2fd17e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x548d2a{static get requires(){return[Tt];}init(){const _0x580699=this['editor'],_0x5ca5ff=_0x580699['plugins']['get']('TrackChangesEditing'),_0x18ea3a=_0x580699['commands']['get']('enter');_0x5ca5ff['enableCommand']('enter',()=>{_0x580699['model']['change'](_0x288c46=>{const _0x241b1a=_0x580699['model']['document']['selection'],_0x5e03d0=_0x241b1a['getFirstPosition'](),_0x4f6b96=ot['fromRange'](_0x241b1a['getFirstRange']());if(_0x18ea3a['enterBlock'](_0x288c46)){const _0x4bdfb3=_0x580699['model']['createPositionAt'](_0x5e03d0['parent']['nextSibling'],0x0),_0x490b0e=_0x288c46['createRange'](_0x5e03d0,_0x4bdfb3);_0x5ca5ff['markInsertion'](_0x490b0e);}else _0x288c46['setSelection'](_0x288c46['createRange'](_0x4f6b96['end']));_0x4f6b96['detach'](),_0x18ea3a['fire']('afterExecute',{'writer':_0x288c46});});});}},ne=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b3f7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3f7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b3f7d['enableCommand']('findNext'),_0x1b3f7d['enableCommand']('findPrevious'),_0x1b3f7d['enableCommand']('replace'),_0x1b3f7d['enableCommand']('replaceAll');}['handleFindCommand'](_0xdac891,_0x40e50d,_0x3c8f67={}){const _0x4fdd49=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdac891(_0x2f74dc=>{let _0x4376f7=('string'==typeof _0x40e50d?_0x4fdd49['findByTextCallback'](_0x40e50d,_0x3c8f67):_0x40e50d)(_0x2f74dc);Array['isArray'](_0x4376f7)&&(_0x4376f7={'results':_0x4376f7,'searchText':'string'==typeof _0x40e50d?_0x40e50d:''});const _0x15712b=_0x4376f7['results']['filter'](_0x461eaa=>!0x1===this['_isInDeletionRange'](_0x461eaa,_0x2f74dc['item']));return{..._0x4376f7,'results':_0x15712b};},_0x3c8f67);}_isInDeletionRange(_0x2ff009,_0x28162b){const _0x27cf83=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['start']),this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['end']));for(const _0x547745 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27cf83['getIntersection'](_0x547745['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x548d2a{afterInit(){const _0x384ffa=this['editor']['locale'],_0x59e503=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d56d1,commandName:_0x509060}of ie)this['editor']['plugins']['has'](_0x5d56d1)&&_0x59e503['enableDefaultAttributesIntegration'](_0x509060);_0x59e503['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x384ffa,'FORMAT_FONT_SIZE')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x384ffa,'FORMAT_FONT_FAMILY')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x384ffa,'FORMAT_FONT_COLOR')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x384ffa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43f598=this['editor'],_0x2e0d34=_0x43f598['locale'];_0x43f598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65f3c8=>{const _0x3a2fb3=_0x2e0d34['t'];if('formatInline'!=_0x65f3c8['type'])return;const {data:_0x18909b}=_0x65f3c8;if(null!=_0x18909b){if('fontSize'==_0x18909b['commandName']){const _0x57fbf5=_0x18909b['commandParams'][0x0]['value'];if(_0x57fbf5){const _0x4b209c=_0x3a2fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x22c04=>_0x22c04['model']==_0x57fbf5)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20size:*\x20%0',_0x4b209c)};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18909b['commandName']){const _0xd565c5=_0x18909b['commandParams'][0x0]['value'];return _0xd565c5?{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20family:*\x20%0',_0xd565c5)}:{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18909b['commandName']){const _0x111579=_0x18909b['commandParams'][0x0]['value'];if(_0x111579){const _0x2f4370=_0xb174e6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40a7ac=>_0x40a7ac['model']==_0x111579);let _0x4b4411=_0x111579,_0x10f4b1='';return _0x2f4370&&(_0x4b4411=_0x2f4370['label'],_0x10f4b1=_0x3a2fb3(_0x4b4411)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20color:*\x20%0',_0x10f4b1)['trim'](),'color':{'value':_0x111579,'title':_0x10f4b1||_0x4b4411}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18909b['commandName']){const _0x32a4bf=_0x18909b['commandParams'][0x0]['value'];if(_0x32a4bf){const _0x3a46a1=_0xb174e6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d372a=>_0x4d372a['model']==_0x32a4bf);let _0x1597b0=_0x32a4bf,_0x4c15f6='';return _0x3a46a1&&(_0x1597b0=_0x3a46a1['label'],_0x4c15f6=_0x3a2fb3(_0x1597b0)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c15f6)['trim'](),'color':{'value':_0x32a4bf,'title':_0x4c15f6||_0x1597b0}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x548d2a{afterInit(){const {plugins:_0x2723c5}=this['editor'];_0x2723c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2723c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3a9ce4,plugins:_0x54fcce,commands:_0x71d9c1}=this['editor'],_0x204ba7=_0x54fcce['get']('TrackChangesEditing');_0x71d9c1['get']('footnotesStyle')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x71d9c1['get']('footnotesStart')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStart'),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x53c7c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b97a6,commands:_0x5c6def}=this['editor'];_0x5c6def['get']('insertFootnote')&&_0x53c7c5['enableCommand']('insertFootnote'),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2ad76e=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_REF',_0x2ad76e)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x458bf4=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_DEFINITION',_0x458bf4)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1bfb0c=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1bfb0c));}},oe=class extends _0x548d2a{afterInit(){const _0x24283a=this['editor'],_0xfd30e7=_0x24283a['plugins']['get']('TrackChangesEditing'),_0x7c9b66=_0x24283a['commands']['get']('copyFormat'),_0x141a24=_0x24283a['commands']['get']('pasteFormat');_0x7c9b66&&_0x141a24&&(_0xfd30e7['enableDefaultAttributesIntegration']('pasteFormat'),_0xfd30e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4f8957=this['editor'],_0x5cec0a=_0x4f8957['locale'];_0x4f8957['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d37a5=>{if('formatBlock'!=_0x1d37a5['type']&&'formatInline'!=_0x1d37a5['type'])return;const {data:_0x5c72f2}=_0x1d37a5;if(_0x5c72f2&&'pasteFormat'===_0x5c72f2['commandName']){const _0x2fb898=[],_0x163cfb=_0x5c72f2['commandParams'][0x0];for(const [_0x362507,_0x2f6cc0]of Object['entries'](_0x163cfb))_0x2fb898['push'](ae(_0x4f8957,_0x362507,_0x2f6cc0));return _0x2fb898['length']?{'type':'format','content':Ot(_0x5cec0a,'*Set\x20format\x20to:*\x20%0',_0x2fb898['join'](',\x20'))}:{'type':'format','content':Ot(_0x5cec0a,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x4cf625,_0x38a7b1,_0x42fec5){const _0x1d793d=_0x4cf625['locale']['t'],_0x232098=_0x38a7b1['split'](/(?=[A-Z])/)['join']('\x20'),_0x35895d=_0x1d793d(_0x232098['charAt'](0x0)['toUpperCase']()+_0x232098['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fec5)return _0x35895d;if('fontColor'===_0x38a7b1||'fontBackgroundColor'===_0x38a7b1){const _0x2604ce=_0xb174e6(_0x4cf625['config']['get']('fontColor.colors'))['find'](_0x5dd6eb=>_0x5dd6eb['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x2604ce?_0x1d793d(_0x2604ce['label'])['toLowerCase']():_0x42fec5)+')';}if('fontSize'===_0x38a7b1&&isNaN(parseFloat(_0x42fec5))){const _0x55c909=_0x4cf625['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4cf625['config']['get']('fontSize.options'))['find'](_0x34195e=>_0x34195e['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x55c909?_0x1d793d(_0x55c909['title'])['toLowerCase']():_0x42fec5)+')';}return _0x35895d+'\x20('+_0x42fec5+')';}var ce=class extends _0x548d2a{afterInit(){const _0x962fd1=this['editor'];if(!_0x962fd1['plugins']['has']('GeneralHtmlSupport')||!_0x962fd1['plugins']['has']('DataSchema'))return;const _0x2b2136=_0x962fd1['plugins']['get']('TrackChangesEditing'),_0x5b8c46=_0x962fd1['plugins']['get']('GeneralHtmlSupport'),_0x18be86=_0x962fd1['plugins']['get']('DataSchema'),_0x2f1747=_0x962fd1['locale'],_0x3b443f=new Set(['htmlContent']);for(const _0x3ae361 of _0x18be86['getDefinitionsForView'](/.*/,!0x1)){const _0x24b67a=_0x3ae361['view'],_0x16d49f=_0x5b8c46['getGhsAttributeNameForElement'](_0x24b67a);_0x3b443f['add'](_0x16d49f),!_0x3ae361['isInline']||_0x3ae361['isObject']||'appliesToBlock'in _0x3ae361&&_0x3ae361['appliesToBlock']||_0x2b2136['descriptionFactory']['registerAttributeLabel'](_0x16d49f,_0x24b67a),_0x3ae361['model']['startsWith']('html')&&_0x2b2136['descriptionFactory']['registerElementLabel'](_0x3ae361['model'],_0x2f7144=>Ot(_0x2f1747,'ELEMENT_HTML_TAG',[_0x2f7144,_0x24b67a]));}_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2f1747,'FORMAT_RAW_HTML_CONTENT')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2f1747,'FORMAT_HTML_LIST_ITEM')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2f1747,'FORMAT_HTML_BULLETED_LIST')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2f1747,'FORMAT_HTML_NUMBERED_LIST')),_0x2b2136['descriptionFactory']['registerDescriptionCallback'](_0x1bdcea=>{if('attribute'!==_0x1bdcea['type'])return;const _0x395115=_0x1bdcea['data'];if(!_0x395115||!_0x3b443f['has'](_0x395115['key']))return;if('htmlContent'===_0x395115['key'])return{'type':'format','content':Ot(_0x2f1747,'*Change\x20%0\x20content*',Ot(_0x2f1747,'ELEMENT_RAW_HTML'))};const {setItems:_0x425f33,removeItems:_0x3aca9a}=function(_0x4624f5,_0x1f28a4,_0x2f9e42){const _0x5011f1=[],_0x6c92a9=[],_0x893cfd=_0x4624f5['styles']??{},_0x1b1ea8=_0x1f28a4['styles']??{};for(const _0x264055 of new Set([...Object['keys'](_0x893cfd),...Object['keys'](_0x1b1ea8)]))_0x893cfd[_0x264055]!==_0x1b1ea8[_0x264055]&&(void 0x0===_0x1b1ea8[_0x264055]?_0x6c92a9['push'](_0x264055):_0x5011f1['push'](_0x264055+'\x20('+_0x1b1ea8[_0x264055]+')'));const _0x47fc23=Ot(_0x2f9e42,'FORMAT_HTML_CLASS'),_0x2121b6=new Set(_0x4624f5['classes']??[]),_0x5d9038=new Set(_0x1f28a4['classes']??[]),_0x45c3ae=[..._0x5d9038]['some'](_0x5266b5=>!_0x2121b6['has'](_0x5266b5)),_0x3aff5c=[..._0x2121b6]['some'](_0x5e3f1c=>!_0x5d9038['has'](_0x5e3f1c));_0x45c3ae&&_0x5011f1['push'](_0x47fc23),_0x3aff5c&&_0x6c92a9['push'](_0x47fc23);const _0x135029=Ot(_0x2f9e42,'FORMAT_HTML_ATTRIBUTE'),_0x4f2024=_0x4624f5['attributes']??{},_0x47bb53=_0x1f28a4['attributes']??{};let _0x7e30e2=!0x1,_0x3d0020=!0x1;for(const _0x5aba11 of new Set([...Object['keys'](_0x4f2024),...Object['keys'](_0x47bb53)]))_0x4f2024[_0x5aba11]!==_0x47bb53[_0x5aba11]&&(void 0x0===_0x47bb53[_0x5aba11]?_0x3d0020=!0x0:_0x7e30e2=!0x0);return _0x7e30e2&&_0x5011f1['push'](_0x135029),_0x3d0020&&_0x6c92a9['push'](_0x135029),{'setItems':_0x5011f1,'removeItems':_0x6c92a9};}(_0x395115['oldValue']??{},_0x395115['newValue']??{},_0x2f1747);if(!_0x425f33['length']&&!_0x3aca9a['length'])return;const _0x18a35d=[];return _0x425f33['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Set\x20format:*\x20%0',_0x425f33['join'](',\x20'))),_0x3aca9a['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Remove\x20format:*\x20%0',_0x3aca9a['join'](',\x20'))),{'type':'format','content':_0x18a35d['join']('\x0a')};});}},le=class extends _0x548d2a{_headingOptions;afterInit(){const _0x41c2a2=this['editor'];if(!_0x41c2a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41c2a2['config']['get']('heading.options');const _0x14b60b=_0x41c2a2['locale'],_0x4fde14=_0x41c2a2['plugins']['get']('TrackChangesEditing');_0x4fde14['enableDefaultAttributesIntegration']('heading');for(const _0x1c082b of this['_headingOptions'])'paragraph'!=_0x1c082b['model']&&_0x4fde14['descriptionFactory']['registerElementLabel'](_0x1c082b['model'],_0x4f3305=>{const _0xffcb10=this['_getHeadingLevel'](_0x1c082b['model']);return null!==_0xffcb10?_0x50ad2b(_0x4f3305,_0xffcb10):_0x47ab8b(_0x4f3305,_0x1c082b['title']);});function _0x50ad2b(_0xf347ad,_0x673d08){return Ot(_0x14b60b,'ELEMENT_HEADING',[_0xf347ad,_0x673d08]);}function _0x47ab8b(_0x4956f5,_0x5244ed){return Ot(_0x14b60b,'ELEMENT_HEADING_CUSTOM',[_0x4956f5,_0x5244ed]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x872267=this['editor'],_0x4542e1=_0x872267['locale'];function _0x15a3f8(_0x1cb2d5,_0x342678){return Ot(_0x4542e1,'ELEMENT_HEADING_CUSTOM',[_0x1cb2d5,_0x342678]);}_0x872267['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3123d3=>{if('formatBlock'!=_0x3123d3['type'])return;const {data:_0x2378a6}=_0x3123d3;if(_0x2378a6&&'heading'==_0x2378a6['commandName']){const _0x2647e9=_0x2378a6['commandParams'][0x0]['value'],_0x55625e=this['_getHeadingLevel'](_0x2647e9);if(null!==_0x55625e)return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',(_0x36d3ac=0x1,_0x4405a1=_0x55625e,Ot(_0x4542e1,'ELEMENT_HEADING',[_0x36d3ac,_0x4405a1])))};const _0x4f9ea5=this['_headingOptions']['find'](_0x45a08e=>_0x45a08e['model']===_0x2647e9)['title'];return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',_0x15a3f8(0x1,_0x4f9ea5))};}var _0x36d3ac,_0x4405a1;});}_getHeadingLevel(_0x343206){const _0x45412a=_0x343206['match'](/^heading(\d+)/);if(_0x45412a)return _0x45412a[0x1];const _0x4751bd=this['_headingOptions']?.['find'](_0x3ddc75=>_0x3ddc75['model']==_0x343206);if(_0x4751bd&&_0x4751bd['view']){const _0x17d731=_0x4751bd['view'],_0x260a65=(_0x17d731['name']??_0x17d731)['match'](/^h(\d+)/);if(_0x260a65)return _0x260a65[0x1];}return null;}},ue=class extends _0x548d2a{afterInit(){const _0x1391be=this['editor'];if(!_0x1391be['plugins']['has']('HighlightEditing'))return;const _0x1960eb=_0x1391be['plugins']['get']('TrackChangesEditing'),_0x5f1452=_0x1391be['locale'];_0x1960eb['enableDefaultAttributesIntegration']('highlight'),_0x1960eb['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x5f1452,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x101ed1=this['editor'],_0x420e6d=_0x101ed1['locale'];_0x101ed1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253cfc=>{if('formatInline'!=_0x253cfc['type'])return;const {data:_0x1bc3dc}=_0x253cfc;if(_0x1bc3dc&&'highlight'==_0x1bc3dc['commandName']){const _0x46a89e=_0x420e6d['t'],_0x49e3fd=_0x1bc3dc['commandParams'][0x0]['value'];if(_0x49e3fd){const _0x285fac=_0x101ed1['config']['get']('highlight.options')['find'](_0x38325c=>_0x38325c['model']==_0x49e3fd),_0x1e5a98=_0x46a89e(_0x285fac['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x420e6d,'*Set\x20highlight:*\x20%0',_0x1e5a98),'color':{'value':_0x285fac['color'],'title':_0x285fac['title']}};}return{'type':'format','content':Ot(_0x420e6d,'*Remove\x20highlight*',Ot(_0x420e6d,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x548d2a{afterInit(){const _0x28e41b=this['editor'];if(!_0x28e41b['plugins']['has']('HorizontalLineEditing'))return;_0x28e41b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1808c4=_0x28e41b['plugins']['get']('TrackChangesEditing'),_0x4e60e5=_0x28e41b['locale'];_0x1808c4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43331d=>Ot(_0x4e60e5,'ELEMENT_HORIZONTAL_LINE',_0x43331d));}},he=class extends _0x548d2a{afterInit(){const _0x27bba3=this['editor'];if(!_0x27bba3['plugins']['has']('HtmlEmbed'))return;const _0x287399=_0x27bba3['plugins']['get']('TrackChangesEditing'),_0x46e809=_0x27bba3['locale'];_0x287399['descriptionFactory']['registerElementLabel']('rawHtml',_0x292ea8=>Ot(_0x46e809,'ELEMENT_HTML_EMBED',_0x292ea8)),_0x287399['enableDefaultAttributesIntegration']('htmlEmbed'),_0x287399['descriptionFactory']['registerDescriptionCallback'](_0x23f0aa=>{if('attribute'!=_0x23f0aa['type'])return;const {data:_0x14badc}=_0x23f0aa;if(_0x14badc&&'value'==_0x14badc['key']&&_0x23f0aa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x264bc2=Ot(_0x46e809,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x46e809,'*Change\x20%0\x20content*',_0x264bc2)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5114e2=this['editor'],_0x7a4ac6=_0x5114e2['locale'];_0x5114e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x366d5f=>{if('formatBlock'!=_0x366d5f['type'])return;const {data:_0x5966f9}=_0x366d5f;if(_0x5966f9&&'htmlEmbed'==_0x5966f9['commandName']){const _0x32de10=Ot(_0x7a4ac6,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x7a4ac6,'*Change\x20%0\x20content*',_0x32de10)};}});}},ge=class extends _0x548d2a{afterInit(){const _0x2c4c21=this['editor'];if(!_0x2c4c21['plugins']['has']('ImageEditing'))return;const _0x573cea=_0x2c4c21['plugins']['get']('TrackChangesEditing'),_0x4c642a=_0x2c4c21['plugins']['get']('ImageUtils'),_0x1f797c=_0x2c4c21['locale'];_0x573cea['enableCommand']('insertImage'),_0x573cea['descriptionFactory']['registerElementLabel']('imageBlock',_0x20d06c=>Ot(_0x1f797c,'ELEMENT_IMAGE',_0x20d06c)),_0x573cea['descriptionFactory']['registerElementLabel']('imageInline',_0x48f607=>Ot(_0x1f797c,'ELEMENT_INLINE_IMAGE',_0x48f607)),_0x573cea['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x1f797c,'ELEMENT_CAPTION')),_0x2c4c21['plugins']['has']('ImageUploadEditing')&&_0x573cea['enableCommand']('uploadImage'),_0x2c4c21['plugins']['has']('ImageBlockEditing')&&_0x2c4c21['plugins']['has']('ImageInlineEditing')&&(_0x573cea['enableCommand']('imageTypeInline',(_0x11ee76,_0x1df685)=>{const _0x156f14=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']);_0x2c4c21['model']['change'](()=>{_0x573cea['markBlockFormat'](_0x156f14,{'commandName':'imageTypeInline','commandParams':[_0x1df685]},[],'convertBlockImageToInline');});}),_0x573cea['enableCommand']('imageTypeBlock',(_0x51d2d1,_0x122e11)=>{_0x2c4c21['model']['change'](_0x473d84=>{let _0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x2d7e4a=rt['fromPosition'](_0x1fab70['start'],'toPrevious'),_0x387f34=rt['fromPosition'](_0x1fab70['end'],'toNext');_0x573cea['forceDefaultExecution'](()=>_0x51d2d1(_0x122e11)),_0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x4d4450=_0x473d84['createRange'](_0x2d7e4a,_0x387f34);_0x2d7e4a['detach'](),_0x387f34['detach'](),_0x573cea['markBlockFormat'](_0xec8e80,{'commandName':'imageTypeInline','commandParams':[_0x122e11]},[],'convertInlineImageToBlock'),_0x4d4450['start']['isBefore'](_0x1fab70['start'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x4d4450['start'],_0x1fab70['start']),'convertInlineImageToBlock'),_0x1fab70['end']['isBefore'](_0x4d4450['end'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x1fab70['end'],_0x4d4450['end']),'convertInlineImageToBlock');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x573cea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x38596e])=>{const _0x44bc39=_0x573cea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41483c=_0x38596e['start'],_0x5f1bea=_0x38596e['end'];const _0x1538f3=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x41483c,'backward'),_0x2c1a41=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x5f1bea,'forward');_0x1538f3['isCollapsed']&&(_0x41483c=_0x1538f3['start']),_0x2c1a41['isCollapsed']&&(_0x5f1bea=_0x2c1a41['end']),_0x44bc39([_0x2c4c21['model']['createRange'](_0x41483c,_0x5f1bea)]);}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3753c2),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3753c2)),_0x2c4c21['plugins']['has']('ImageCaptionEditing')&&(_0x573cea['enableCommand']('toggleImageCaption',(_0x3cae5e,_0x362b1a)=>{const _0x57c621=_0x2c4c21['plugins']['get']('ImageCaptionUtils');let _0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795);_0x2c4c21['model']['change'](()=>{if(_0x4cb16e)return void _0x573cea['markDeletion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e));const _0x176f13=_0x4c642a['isBlockImage'](_0x44795);_0x3cae5e(_0x362b1a),_0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795),_0x573cea['markInsertion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e),_0x176f13?null:'imageCaption');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3753c2));const _0x1e3744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe6435(_0x1dfe83,_0x234278){const _0x5cd1dd=_0x1e3744['findIndex'](({type:_0x3985ae,subType:_0xcabe93})=>_0x1dfe83['type']==_0x3985ae&&_0x1dfe83['subType']==_0xcabe93),_0x24004d=_0x1e3744['findIndex'](({type:_0x2ec08b,subType:_0x58855b})=>_0x234278['type']==_0x2ec08b&&_0x234278['subType']==_0x58855b);if(_0x5cd1dd<0x0||_0x24004d<0x0)return!0x1;const _0x82efcc=_0x1dfe83['getFirstRange'](),_0x7087a4=_0x234278['getFirstRange']();if((0x0==_0x5cd1dd||0x1==_0x5cd1dd)&&0x2==_0x24004d&&_0x82efcc['isIntersecting'](_0x7087a4))return!0x0;if(0x2==_0x5cd1dd&&0x3==_0x24004d){const _0x58ff32=_0x573cea['_findSuggestions'](_0x82efcc,'insertion')['filter'](({suggestion:_0x3262ad,meta:_0x4b6607})=>_0x4b6607['isOwn']&&'convertInlineImageToBlock'==_0x3262ad['subType']);if(_0x58ff32['length']>0x1&&_0x7087a4['end']['isEqual'](_0x82efcc['start']))return!0x0;if(0x1==_0x58ff32['length']&&(_0x82efcc['start']['isEqual'](_0x7087a4['end'])||_0x82efcc['end']['isEqual'](_0x7087a4['start'])))return!0x0;}if(0x3==_0x5cd1dd&&0x3==_0x24004d&&_0x82efcc['start']['isBefore'](_0x7087a4['start'])){const _0x537230=_0x82efcc['end']['nodeAfter'],_0x44ed4e=_0x7087a4['start']['nodeBefore'];return _0x4c642a['isBlockImage'](_0x537230)&&_0x537230===_0x44ed4e;}return!0x1;}function _0x3753c2(_0x4cf36c,_0x44eab6){return _0xbe6435(_0x4cf36c,_0x44eab6)?[_0x4cf36c,_0x44eab6]:_0xbe6435(_0x44eab6,_0x4cf36c)?[_0x44eab6,_0x4cf36c]:null;}_0x2c4c21['plugins']['has']('ImageResize')&&(_0x573cea['enableDefaultAttributesIntegration']('resizeImage'),_0x573cea['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x1f797c,'FORMAT_IMAGE_SIZE'))),_0x2c4c21['plugins']['has']('ImageTextAlternativeEditing')&&_0x573cea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c4c21['plugins']['has']('PictureEditing')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0xf87024=>{if('attribute'!=_0xf87024['type'])return;const {data:_0xd0531f}=_0xf87024;return _0xd0531f&&'sources'==_0xd0531f['key']?{'type':'format','content':''}:void 0x0;}),_0x2c4c21['plugins']['has']('ImageSizeAttributes')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x3f222d=>{if('attribute'!=_0x3f222d['type'])return;const {data:_0x920cc}=_0x3f222d;return!_0x920cc||'width'!=_0x920cc['key']&&'height'!=_0x920cc['key']?void 0x0:{'type':'format','content':''};}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x364cbd=>{if(_0x1e3744['find'](({type:_0x31c7e6,subType:_0x10d08c})=>_0x364cbd['type']==_0x31c7e6&&_0x364cbd['subType']==_0x10d08c))return _0x364cbd['previous']?{}:void 0x0;}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x121536=>{if('insertion'==_0x121536['type']||'deletion'==_0x121536['type']){const _0x120494=_0x121536['getContainedElement']();if(_0x120494&&_0x120494['is']('element','caption'))return{'type':'insertion'==_0x121536['type']?'addObject':'removeObject','element':_0x120494,'quantity':0x1};}}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x18f5a3=>'formatBlock'==_0x18f5a3['type']&&'convertInlineImageToBlock'==_0x18f5a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18f5a3['type']&&'convertBlockImageToInline'==_0x18f5a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x2999b7=>{if('attribute'!=_0x2999b7['type'])return;const {data:_0x5e766b}=_0x2999b7;if(!_0x5e766b||'alt'!=_0x5e766b['key'])return;const _0x5cb8a5=_0x5e766b['newValue'];return _0x5cb8a5?{'type':'format','content':Ot(_0x1f797c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb8a5+'\x22')}:{'type':'format','content':Ot(_0x1f797c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d0f27=this['editor'],_0x3aa520=_0x5d0f27['locale'];_0x5d0f27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8dec29=>{if('formatBlock'!=_0x8dec29['type']&&'formatInline'!=_0x8dec29['type'])return;const {data:_0x1d9ca7}=_0x8dec29;if(_0x1d9ca7){if('imageTextAlternative'==_0x1d9ca7['commandName']){const _0x5d1136=_0x1d9ca7['commandParams'][0x0]['newValue'];return _0x5d1136?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d1136+'\x22')}:{'type':'format','content':Ot(_0x3aa520,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d9ca7['commandName']){const _0x2aa2f9=_0x1d9ca7['commandParams'][0x0]['width'];return _0x2aa2f9?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20width:*\x20%0',_0x2aa2f9)}:{'type':'format','content':Ot(_0x3aa520,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd96960=this['editor']['locale'],_0x49a673=this['editor']['plugins']['get']('TrackChangesEditing');_0x49a673['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49a673['descriptionFactory']['registerDescriptionCallback'](_0x213cea=>{if('attribute'!=_0x213cea['type'])return;const {data:_0x4e878f}=_0x213cea;return _0x4e878f&&'src'==_0x4e878f['key']?_0x4e878f['newValue']&&_0x4e878f['oldValue']?{'type':'format','content':Ot(_0xd96960,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1badfa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x357d9d=this['editor'],_0x414e47=_0x357d9d['locale'];_0x357d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad166=>{if('formatBlock'!=_0x2ad166['type']&&'formatInline'!=_0x2ad166['type'])return;const {data:_0x47b96}=_0x2ad166;return _0x47b96&&'replaceImageSource'==_0x47b96['commandName']?{'type':'format','content':Ot(_0x414e47,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x548d2a{afterInit(){const _0x403f10=this['editor'];if(!_0x403f10['plugins']['has']('ImageStyleEditing'))return;const _0x422422=_0x403f10['plugins']['get']('TrackChangesEditing'),_0x205daa=_0x403f10['plugins']['get']('ImageUtils'),_0x48d719={};_0x422422['enableCommand']('imageStyle',(_0x5d74f0,_0x4c6f99)=>{const _0x2c0b1a=_0x403f10['plugins']['get']('Users')['me'],_0x1cfbc1=_0x403f10['commands']['get']('imageStyle');let _0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x2b0da5=_0x1cfbc1['value'];if(_0x2b0da5==_0x4c6f99['value'])return;if(_0x4c6f99['value']&&_0x205daa['isInlineImage'](_0x4589c2)&&!_0x1cfbc1['isStyleEnabled'](_0x4c6f99['value']))return;const _0x16edba={'commandName':'imageStyle','commandParams':[_0x4c6f99],'formatGroupId':_0x1dfb7c()};_0x403f10['model']['change'](()=>{if(_0x422422['getSuggestions']()['filter'](_0x49e67f=>_0x49e67f['isInContent']&&_0x2c0b1a==_0x49e67f['author']&&('formatBlock'==_0x49e67f['type']||'formatInline'==_0x49e67f['type'])&&('imageStylePreApply'==_0x49e67f['subType']||'imageStylePostApply'==_0x49e67f['subType'])&&_0x49e67f['getFirstRange']()['isEqual'](_0x3ef0d2))['forEach'](_0x369eae=>_0x422422['discardSuggestion'](_0x369eae['head'])),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x1cfbc1['refresh'](),_0x403f10['commands']['get']('imageTypeInline')['refresh'](),_0x403f10['commands']['get']('imageTypeBlock')['refresh'](),_0x2b0da5=_0x1cfbc1['value'],_0x2b0da5!=_0x4c6f99['value'])return _0x205daa['isInlineImage'](_0x4589c2)&&_0x1cfbc1['shouldConvertImageType'](_0x4c6f99['value'],_0x4589c2)?(_0x5d74f0({..._0x4c6f99,'setImageSizes':!0x1}),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),void _0x422422['markBlockFormat'](_0x4589c2,{..._0x16edba,'commandReversedParams':[{'value':_0x2b0da5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x205daa['isBlockImage'](_0x4589c2)?_0x422422['markBlockFormat'](_0x4589c2,_0x16edba,[],'imageStylePostApply'):_0x422422['markInlineFormat'](_0x3ef0d2,_0x16edba,'imageStylePostApply'));});});for(const _0x42ff1b of _0x403f10['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d719[_0x42ff1b['name']]=_0x42ff1b['title']['toLowerCase']();_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x486918])=>{_0x205daa['setImageNaturalSizeAttributes'](_0x486918['getContainedElement']());}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f84d5,_0x5240fc)=>{_0x422422['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f84d5,{'commandName':_0x5240fc['commandName'],'commandParams':_0x5240fc['commandReversedParams']});}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58949f,_0x9d7f50){return _0x51fb05(_0x58949f,_0x9d7f50)?[_0x58949f,_0x9d7f50]:_0x51fb05(_0x9d7f50,_0x58949f)?[_0x9d7f50,_0x58949f]:null;});const _0x149bcc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51fb05(_0x49e43c,_0x2a3e79){const _0xf82195=_0x149bcc['findIndex'](({type:_0x2f8fc9,subType:_0x23e74f})=>_0x49e43c['type']==_0x2f8fc9&&_0x49e43c['subType']==_0x23e74f),_0x47de2e=_0x149bcc['findIndex'](({type:_0x22d178,subType:_0x527706})=>_0x2a3e79['type']==_0x22d178&&_0x2a3e79['subType']==_0x527706);if(_0xf82195<0x0||_0x47de2e<0x0)return!0x1;const _0x3f612c=_0x49e43c['getFirstRange'](),_0x53c6c9=_0x2a3e79['getFirstRange']();if((0x0==_0xf82195||0x1==_0xf82195)&&0x2==_0x47de2e&&_0x3f612c['isIntersecting'](_0x53c6c9))return!0x0;if(0x2==_0xf82195&&0x3==_0x47de2e){const _0x2e0d66=_0x422422['_findSuggestions'](_0x3f612c,'insertion')['filter'](({suggestion:_0x5d9fe3,meta:_0x44cf28})=>_0x44cf28['isOwn']&&'convertInlineImageToBlock'==_0x5d9fe3['subType']);if(_0x2e0d66['length']>0x1&&_0x53c6c9['end']['isEqual'](_0x3f612c['start']))return!0x0;if(0x1==_0x2e0d66['length']&&(_0x3f612c['start']['isEqual'](_0x53c6c9['end'])||_0x3f612c['end']['isEqual'](_0x53c6c9['start'])))return!0x0;}if(0x3==_0xf82195&&0x3==_0x47de2e&&_0x3f612c['start']['isBefore'](_0x53c6c9['start'])){const _0x595def=_0x3f612c['end']['nodeAfter'],_0x40b1ef=_0x53c6c9['start']['nodeBefore'];return _0x205daa['isBlockImage'](_0x595def)&&_0x595def===_0x40b1ef;}return!0x1;}_0x403f10['model']['document']['registerPostFixer'](()=>{let _0x3a49a1=!0x1;const _0x485a82=Array['from'](_0x403f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56ca9d,data:_0x2ad460}of _0x485a82){const {group:_0x2bbe28,type:_0x539acf,subType:_0x516b72,id:_0x13ca2b}=et(_0x56ca9d);if('suggestion'==_0x2bbe28&&_0x422422['hasSuggestion'](_0x13ca2b)){if('formatBlock'==_0x539acf&&('imageStylePreApply'==_0x516b72||'imageStylePostApply'==_0x516b72)){const _0x1d0786=_0x422422['getSuggestion'](_0x13ca2b);if(_0x2ad460['newRange']){const _0x56164b=_0x1d0786['getFirstRange']()['getContainedElement']();if(_0x205daa['isBlockImage'](_0x56164b))continue;_0x422422['discardSuggestion'](_0x1d0786),_0x3a49a1=!0x0;}}if('insertion'==_0x539acf&&'imageCaption'==_0x516b72&&!_0x2ad460['newRange']){const _0x507a81=_0x422422['getSuggestion'](_0x13ca2b);_0x507a81['next']&&_0x507a81['next']['isInContent']&&(_0x422422['discardSuggestion'](_0x507a81['next']),_0x3a49a1=!0x0);}}}return _0x3a49a1;}),this['_registerLegacyDescription'](_0x48d719);}_registerLegacyDescription(_0xf005ed){const _0x27a93f=this['editor'],_0x3e0377=_0x27a93f['locale'];_0x27a93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244e50=>{if('formatBlock'!=_0x244e50['type']&&'formatInline'!=_0x244e50['type'])return;const {data:_0x561170}=_0x244e50;if(!_0x561170||'imageStyle'!=_0x561170['commandName'])return;const _0x1ac19b=_0x561170['commandParams'][0x0]['value'];return _0x2756cb('side'===_0x1ac19b?Ot(_0x3e0377,'FORMAT_SIDE_IMAGE'):_0xf005ed[_0x1ac19b]||_0x1ac19b);function _0x2756cb(_0x1ba56a){return{'type':'format','content':Ot(_0x3e0377,'*Format:*\x20%0',_0x1ba56a)};}});}},Ee=class extends _0x548d2a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x153449){super(_0x153449),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3e5424=this['editor'],_0x3843bf=_0x3e5424['commands']['get']('importWord'),_0x5060f4=_0x3e5424['commands']['get']('trackChanges');_0x3843bf&&(_0x3843bf['on']('execute',(_0x6a912a,[,_0x45d65b])=>{this['_trackChangesValueDuringImport']=_0x5060f4['value'],_0x45d65b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3843bf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3843bf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5060f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e5424['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x31db78,_0x47fdb5){const {suggestions:_0x346660}=_0x47fdb5,_0x3e32c8=this['editor']['commands']['get']('trackChanges'),_0x30e675=_0x3e32c8['value'];this['_trackChangesValueDuringImport']!==_0x30e675&&(_0x3e32c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x346660&&_0x346660['forEach'](({id:_0x1d3bf6,type:_0xdccc7a,author:_0x44ffce,created_at:_0x5654e1})=>{const _0x55b1b4={'id':_0x1d3bf6,'type':_0xdccc7a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44ffce,'createdAt':_0x5654e1?new Date(_0x5654e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55b1b4);});}},Te=class extends _0x548d2a{afterInit(){const _0x5b0e84=this['editor'],_0x44dd58=_0x5b0e84['plugins']['get']('TrackChangesEditing');if(_0x5b0e84['plugins']['has']('IndentEditing')&&(_0x44dd58['enableCommand']('indent'),_0x44dd58['enableCommand']('outdent')),_0x5b0e84['plugins']['has']('IndentBlock')){for(const _0x327038 of['indentBlock','outdentBlock'])_0x44dd58['enableDefaultAttributesIntegration'](_0x327038);if(_0x5b0e84['plugins']['has']('ListEditing')){for(const _0x3513a3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x44dd58['enableDefaultAttributesIntegration'](_0x3513a3);}}const _0x708e73=_0x5b0e84['locale'];_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x708e73,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19c8d3=this['editor'],_0x2f8987=_0x19c8d3['locale'],_0x39309b=_0x19c8d3['plugins']['get']('TrackChangesEditing');_0x39309b['descriptionFactory']['registerDescriptionCallback'](_0x4ee217=>{if('formatBlock'!=_0x4ee217['type'])return;const {data:_0x14a493}=_0x4ee217;if(!_0x14a493)return;if('indentBlock'!=_0x14a493['commandName']&&'outdentBlock'!=_0x14a493['commandName'])return;const _0x27a4bc=_0x4ee217['getItems']()[0x0],_0x432ebd=_0x39309b['descriptionFactory']['getItemLabel'](_0x27a4bc);return'indentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Indent:*\x20%0',_0x432ebd)}:'outdentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Outdent:*\x20%0',_0x432ebd)}:void 0x0;});}},_e=class extends _0x548d2a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x548d2a{afterInit(){const _0x49ad6a=this['editor'];if(!_0x49ad6a['plugins']['has']('LinkEditing'))return;const _0x32a288=_0x49ad6a['plugins']['get']('TrackChangesEditing'),_0x590dad=_0x49ad6a['commands']['get']('link');_0x32a288['enableDefaultAttributesIntegration']('link'),_0x32a288['enableDefaultAttributesIntegration']('unlink');for(const _0x110981 of _0x590dad['manualDecorators'])_0x32a288['descriptionFactory']['registerAttributeLabel'](_0x110981['id'],'link\x20('+_0x110981['label']['toLowerCase']()+')');_0x32a288['descriptionFactory']['registerDescriptionCallback'](_0x2b31bb=>{if('attribute'!=_0x2b31bb['type'])return;const {data:_0x45e92b}=_0x2b31bb;if(!_0x45e92b||'linkHref'!=_0x45e92b['key'])return;const _0x56e084=_0x45e92b['newValue'],_0x580000=_0x49ad6a['locale'];return{'type':'format','content':null==_0x56e084?Ot(_0x580000,'*Remove\x20link*'):Ot(_0x580000,'*Set\x20link:*\x20%0','\x22'+_0x56e084+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x47d5c5=this['editor'],_0x1af4e1=_0x47d5c5['locale'];_0x47d5c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52202e=>{if('formatInline'!=_0x52202e['type'])return;const {data:_0x42035d}=_0x52202e;if(_0x42035d){if('link'==_0x42035d['commandName']){const _0x5661b8=_0x42035d['commandParams'][0x0];return{'type':'format','content':Ot(_0x1af4e1,'*Set\x20link:*\x20%0','\x22'+_0x5661b8+'\x22')};}return'unlink'==_0x42035d['commandName']?{'type':'format','content':Ot(_0x1af4e1,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x548d2a{afterInit(){const _0x41da23=this['editor'],_0x1cf0f8=_0x41da23['locale'];if(!_0x41da23['plugins']['has']('LegacyListEditing'))return;const _0x40b667=_0x41da23['plugins']['get']('TrackChangesEditing'),_0x52fbe6=_0x41da23['plugins']['has']('LegacyTodoListEditing');function _0x329006(_0x4020b0){return()=>{const _0x44fb61=_0x41da23['model']['document']['selection'],_0x16a51f=_0x41da23['commands']['get'](_0x4020b0);if(_0x16a51f['value'])return void _0x41da23['execute']('paragraph',{});const _0xab2105=_0x4020b0['slice'](0x0,-0x4),_0x3e6325=function(_0x5ba448,_0xddcaeb,_0x28508a){let _0x52614a=Array['from'](_0x5ba448)['filter'](_0x586e19=>function(_0x8129d4,_0x5ded9f){return _0x5ded9f['checkChild'](_0x8129d4['parent'],'listItem')&&!_0x5ded9f['isObject'](_0x8129d4);}(_0x586e19,_0x28508a));_0x52614a=_0x52614a['filter'](_0x2de6ba=>!_0x2de6ba['is']('element','listItem')||_0x2de6ba['getAttribute']('listType')!=_0xddcaeb);const _0x334539=new Set();for(const _0x44ca5d of _0x52614a)_0x44ca5d['is']('element','listItem')?_0x334539['add'](Ie(_0x44ca5d)):_0x334539['add'](_0x44ca5d);return Array['from'](_0x334539);}(_0x44fb61['getSelectedBlocks'](),_0xab2105,_0x41da23['model']['schema']);_0x41da23['model']['change'](()=>{for(const _0x40d64c of _0x3e6325)_0x40b667['markBlockFormat'](_0x40d64c,{'commandName':_0x4020b0,'commandParams':[{'forceValue':!_0x16a51f['value']}],'formatGroupId':'blockName'},Ae(_0x40d64c));});};}function _0x53c53e(_0x3ebe21){return()=>{const _0x3b69b4=function(_0x34f65c){let _0x2ec0d3=Array['from'](_0x34f65c);const _0x1d7a9f=_0x2ec0d3['findIndex'](_0x3a23b0=>'listItem'!=_0x3a23b0['name']);return _0x1d7a9f>-0x1&&(_0x2ec0d3=_0x2ec0d3['slice'](0x0,_0x1d7a9f)),_0x2ec0d3;}(_0x41da23['model']['document']['selection']['getSelectedBlocks']()),_0x5ebf6d=_0x41da23['model']['createRange'](_0x41da23['model']['createPositionAt'](_0x3b69b4[0x0],'before'),_0x41da23['model']['createPositionAt'](_0x3b69b4[_0x3b69b4['length']-0x1],'end'));_0x41da23['model']['change'](()=>{_0x40b667['markBlockFormat'](_0x5ebf6d,{'commandName':_0x3ebe21,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ab2d4){const _0x58c6c8=new Set();for(const _0x5385c8 of _0x4ab2d4){let _0x1ec2a3=_0x5385c8['nextSibling'];for(;_0x1ec2a3&&_0x1ec2a3['getAttribute']('listIndent')>_0x5385c8['getAttribute']('listIndent');)_0x58c6c8['add'](_0x1ec2a3),_0x1ec2a3=_0x1ec2a3['nextSibling'];}return Array['from'](_0x58c6c8);}(_0x3b69b4));});};}_0x40b667['enableCommand']('numberedList',_0x329006('numberedList')),_0x40b667['enableCommand']('bulletedList',_0x329006('bulletedList')),_0x52fbe6&&_0x40b667['enableCommand']('todoList',_0x329006('todoList')),_0x40b667['enableCommand']('indentList',_0x53c53e('indentList')),_0x40b667['enableCommand']('outdentList',_0x53c53e('outdentList')),_0x52fbe6&&_0x40b667['enableCommand']('checkTodoList',()=>{const _0x28a193=_0x41da23['commands']['get']('checkTodoList'),_0x2db001=Array['from'](_0x28a193['_selectedElements']);_0x2db001['filter'](_0x1e6852=>_0x1e6852['getAttribute']('todoListChecked')!=_0x28a193['value']),_0x41da23['model']['change'](()=>{for(const _0x3d3a84 of _0x2db001)_0x40b667['markBlockFormat'](_0x3d3a84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28a193['value']}]});});}),_0x40b667['descriptionFactory']['registerElementLabel']('listItem',_0xc36602=>Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM',_0xc36602)),_0x40b667['descriptionFactory']['registerDescriptionCallback'](_0x6bf2fa=>{if('formatBlock'!=_0x6bf2fa['type']&&'formatInline'!=_0x6bf2fa['type'])return;const {data:_0xb621d4}=_0x6bf2fa;if(_0xb621d4){if('numberedList'==_0xb621d4['commandName']||'bulletedList'==_0xb621d4['commandName']||'todoList'==_0xb621d4['commandName'])switch(_0xb621d4['commandName']['replace']('List','')){case'bulleted':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Indent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Outdent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb621d4['commandName'])return _0xb621d4['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1cf0f8,'*Check\x20item*')}:{'type':'format','content':Ot(_0x1cf0f8,'*Uncheck\x20item*')};}function _0x3369b3(_0x3e0ed1){return{'type':'format','content':Ot(_0x1cf0f8,'*Change\x20to:*\x20%0',_0x3e0ed1)};}});}};function Ie(_0x94e304){const _0x2f0993=_0x94e304['getAttribute']('listIndent');if(0x0==_0x2f0993)return _0x94e304;let _0x204f46=_0x94e304;for(;_0x94e304['previousSibling']&&_0x94e304['previousSibling']['is']('element','listItem');){const _0x1fe1b5=_0x94e304['previousSibling']['getAttribute']('listIndent');if(_0x1fe1b5==_0x2f0993)_0x204f46=_0x94e304['previousSibling'];else{if(_0x1fe1b5<_0x2f0993)break;}_0x94e304=_0x94e304['previousSibling'];}return _0x204f46;}function Ae(_0x44ba67){const _0x57df16=[];if(_0x44ba67['is']('element','listItem')&&_0x44ba67['getAttribute']('listIndent')>0x0){let _0x290c0c=_0x44ba67['nextSibling'];for(;_0x290c0c&&'listItem'==_0x290c0c['name']&&_0x290c0c['getAttribute']('listIndent')==_0x44ba67['getAttribute']('listIndent');)_0x57df16['push'](_0x290c0c),_0x290c0c=_0x290c0c['nextSibling'];}return _0x57df16;}var be=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36cc63=this['editor']['config']['get']('list.properties'),_0x4d69bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x36cc63['styles']&&_0x4d69bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36cc63['reversed']&&_0x4d69bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36cc63['startIndex']&&_0x4d69bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d69bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x17fb03,_0x38a89a={}){const _0x4ffe9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28fcd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4ffe9d['markMultiRangeBlockFormat'](_0x28fcd4,{'commandName':'listStyle','commandParams':[{'type':_0x38a89a['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x478103,_0xd5aa29={}){const _0xad990b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f75da=this['_getSuggestionBlocks'](_0x3b68cc=>_0x3b68cc['is']('element','listItem')&&'numbered'===_0x3b68cc['getAttribute']('listType'));if(_0x1f75da['length']<0x1)return;const _0x501c65=_0x1f75da['map'](_0x4d02f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d02f9,'before'),this['editor']['model']['createPositionAt'](_0x4d02f9,0x0)));this['editor']['model']['change'](()=>{_0xad990b['markMultiRangeBlockFormat'](_0x501c65,{'commandName':'listReversed','commandParams':[{'reversed':_0xd5aa29['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x48a2c9,_0x581565={}){const _0x4ce3ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa357=this['_getSuggestionBlocks'](_0x53c674=>_0x53c674['is']('element','listItem')&&'numbered'===_0x53c674['getAttribute']('listType'));if(_0x1aa357['length']<0x1)return;const _0x2e9151=_0x1aa357['map'](_0x529b37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x529b37,'before'),this['editor']['model']['createPositionAt'](_0x529b37,0x0)));this['editor']['model']['change'](()=>{_0x4ce3ea['markMultiRangeBlockFormat'](_0x2e9151,{'commandName':'listStart','commandParams':[{'startIndex':_0x581565['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55a45c){if('formatBlock'!=_0x55a45c['type']&&'formatInline'!=_0x55a45c['type'])return;const _0x2b7bd9=this['editor']['locale'],{data:_0x4e69f1}=_0x55a45c;if(!_0x4e69f1)return;let _0x4afab0,_0x4ec52f;switch(_0x4e69f1['commandName']){case'listStyle':_0x4afab0='*Change\x20to:*\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,Ot(_0x2b7bd9,this['_getTranslationKeyForListStyle'](_0x4e69f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4afab0=_0x4e69f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0)};break;case'listStart':_0x4afab0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,_0x4e69f1['commandParams'][0x0]['startIndex'])};}return _0x4ec52f;}_getSuggestionBlocksForListStyle(){const _0x587c8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d2046=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1d2046[0x0]?.['is']('element','listItem')&&_0x1d2046['unshift'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1d2046[_0x1d2046['length']-0x1]?.['is']('element','listItem')&&_0x1d2046['push'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1d2046=[...new Set(_0x1d2046)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1d2046=_0x1d2046['filter'](_0x3a68e9=>_0x3a68e9['is']('element','listItem'))),_0x1d2046;}_getSuggestionBlocks(_0x1b596b){const _0xf3ef50=this['editor']['plugins']['get']('LegacyListUtils');let _0x213038=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b596b)['map'](_0x56b519=>{const _0x494efe=this['editor']['model']['createPositionAt'](_0x56b519,0x0);return[..._0xf3ef50['getSiblingNodes'](_0x494efe,'backward'),..._0xf3ef50['getSiblingNodes'](_0x494efe,'forward')];})['flat']();return _0x213038=[...new Set(_0x213038)],_0x213038;}_getTranslationKeyForListStyle(_0x187db8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x187db8)||'default')['toUpperCase']()+'_LIST_'+_0x187db8['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x548d2a{afterInit(){const _0x16ce5c=this['editor'];if(!_0x16ce5c['plugins']['has']('MediaEmbedEditing'))return;const _0x362284=_0x16ce5c['plugins']['get']('TrackChangesEditing'),_0x3df05f=_0x16ce5c['locale'];_0x362284['enableCommand']('mediaEmbed'),_0x362284['descriptionFactory']['registerElementLabel']('media',_0x298c2c=>Ot(_0x3df05f,'ELEMENT_MEDIA',_0x298c2c)),_0x16ce5c['plugins']['has']('MediaEmbedResizeEditing')&&(_0x362284['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x362284['descriptionFactory']['registerDescriptionCallback'](_0x5bb233=>{if('attribute'!=_0x5bb233['type'])return;const {data:_0x5d8ddb}=_0x5bb233;if(!_0x5d8ddb||'resizedWidth'!=_0x5d8ddb['key'])return;const _0xc193e=_0x5bb233['getContainedElement']();if(!_0xc193e||!_0xc193e['is']('element','media'))return;const _0x2cd107=Ot(_0x3df05f,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3df05f,'*Set\x20format:*\x20%0',_0x2cd107)};}));}},ke=class extends _0x548d2a{afterInit(){const _0xfb57de=this['editor'];if(!_0xfb57de['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5d58c6=_0xfb57de['plugins']['get']('TrackChangesEditing'),_0x9aeb64=_0xfb57de['locale'],_0x5d4994=_0xfb57de['plugins']['get']('MediaEmbedStyleEditing'),_0x1d6599={};for(const _0x26288e of _0x5d4994['normalizedStyles'])_0x1d6599[_0x26288e['name']]=_0x26288e['title']['toLowerCase']();const _0x4a1842=_0x5d4994['normalizedStyles']['find'](_0xf8cae6=>_0xf8cae6['isDefault'])?.['name'];_0x5d58c6['enableCommand']('mediaStyle',(_0x5c3999,_0x2b2695)=>{const _0x59562d=_0xfb57de['plugins']['get']('Users')['me'],_0x3f2d82=_0xfb57de['commands']['get']('mediaStyle'),_0x533f37=function(_0x4abf79){const _0x2bb4dd=_0x4abf79['model']['document']['selection']['getSelectedElement']();return _0x2bb4dd&&_0x2bb4dd['is']('element','media')?_0x2bb4dd:null;}(_0xfb57de);if(!_0x533f37)return;const _0x46bc51=_0xfb57de['model']['createRangeOn'](_0x533f37);let _0x3244f6=_0x3f2d82['value'];if(_0x3244f6==_0x2b2695['value'])return;const _0x57a0ae={'commandName':'mediaStyle','commandParams':[_0x2b2695],'formatGroupId':_0x1dfb7c()};_0xfb57de['model']['change'](()=>{_0x5d58c6['getSuggestions']()['filter'](_0x3ce742=>_0x3ce742['isInContent']&&_0x59562d==_0x3ce742['author']&&'formatBlock'==_0x3ce742['type']&&'mediaStylePostApply'==_0x3ce742['subType']&&_0x3ce742['getFirstRange']()['isEqual'](_0x46bc51))['forEach'](_0x4d0591=>_0x5d58c6['discardSuggestion'](_0x4d0591['head'])),_0x3f2d82['refresh'](),_0x3244f6=_0x3f2d82['value'],_0x3244f6!=_0x2b2695['value']&&_0x5d58c6['markBlockFormat'](_0x533f37,{..._0x57a0ae,'commandReversedParams':[{'value':'string'==typeof _0x3244f6?_0x3244f6:null}]},[],'mediaStylePostApply');});}),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5796b3,_0x42fb16)=>{_0x5d58c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5796b3,{'commandName':_0x42fb16['commandName'],'commandParams':_0x42fb16['commandReversedParams']});}),_0x5d58c6['descriptionFactory']['registerDescriptionCallback'](_0x30be7d=>{if('formatBlock'!=_0x30be7d['type'])return;const {data:_0x527247}=_0x30be7d;if(!_0x527247||'mediaStyle'!=_0x527247['commandName'])return;const _0xc907c8=_0x527247['commandParams'][0x0]['value']||_0x4a1842;if(!_0xc907c8)return;const _0x13b988=_0x1d6599[_0xc907c8]||_0xc907c8;return{'type':'format','content':Ot(_0x9aeb64,'*Format:*\x20%0',_0x13b988)};});}},Re=class extends _0x548d2a{afterInit(){const _0x3f7f62=this['editor'];_0x3f7f62['plugins']['has']('MentionEditing')&&_0x3f7f62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x548d2a{afterInit(){const _0xa0d38d=this['editor'];if(!_0xa0d38d['plugins']['has']('MergeFieldsEditing'))return;const _0x35ce95=_0xa0d38d['plugins']['get']('TrackChangesEditing'),_0x4b0ccd=_0xa0d38d['locale'];_0x35ce95['enableCommand']('insertMergeField'),_0x35ce95['enableCommand']('insertMergeFieldBlock'),_0x35ce95['enableCommand']('insertMergeFieldImage'),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeField',_0xfd5c5e=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0xfd5c5e)),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4910c1=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0x4910c1)),_0x35ce95['descriptionFactory']['registerDescriptionCallback'](_0xa452d6=>{if('insertion'!=_0xa452d6['type']&&'deletion'!=_0xa452d6['type'])return;const _0x3b9015=_0xa452d6['getContainedElement']();if(null==_0x3b9015)return;const _0x5d5034=_0xa0d38d['plugins']['get']('MergeFieldsEditing');let _0x4717d4;switch(_0x5d5034['getMergeFieldType'](_0x3b9015)){case null:return;case'image':{const _0x20a209=_0x5d5034['unwrapAffixes'](_0x3b9015['getAttribute']('src'));_0x4717d4=_0x5d5034['getLabel'](_0x20a209)||_0x20a209;break;}default:{const _0x47bd4d=_0x3b9015['getAttribute']('id');_0x4717d4=_0x5d5034['getLabel'](_0x47bd4d)||_0x47bd4d;break;}}return'insertion'==_0xa452d6['type']?{'type':'insertion','content':Ot(_0x4b0ccd,'*Insert:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x4b0ccd,'*Remove:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x548d2a{afterInit(){const _0x360b48=this['editor'],_0x45b1db=_0x360b48['plugins']['get']('TrackChangesEditing');_0x360b48['plugins']['has']('MultiLevelList')&&(_0x45b1db['enableDefaultAttributesIntegration']('multiLevelList'),_0x45b1db['descriptionFactory']['registerDescriptionCallback'](_0x4baad7=>this['handleDescriptions'](_0x4baad7)));}handleDescriptions(_0x483e6f){const _0x30f067=this['editor']['locale'],{data:_0x59bd73}=_0x483e6f,_0x59440d={'type':'format','content':''};if(_0x59bd73&&'listMarkerStyle'==_0x59bd73['key']){if(!_0x59bd73['oldValue'])return{'type':'format','content':Ot(_0x30f067,'*Set\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['newValue']+')'};if(!_0x59bd73['newValue']){let _0x35a70a=_0x483e6f['head'];for(;_0x35a70a;){if(_0x35a70a['data']&&'listType'==_0x35a70a['data']['key']&&_0x35a70a['data']['newValue'])return _0x59440d;_0x35a70a=_0x35a70a['next'];}return{'type':'format','content':Ot(_0x30f067,'*Remove\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['oldValue']+')'};}}}},Se=class extends _0x548d2a{afterInit(){const _0x15f33c=this['editor'];if(!_0x15f33c['plugins']['has']('PageBreakEditing'))return;_0x15f33c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ece5c=_0x15f33c['plugins']['get']('TrackChangesEditing'),_0x3c2a95=_0x15f33c['locale'];_0x1ece5c['descriptionFactory']['registerElementLabel']('pageBreak',_0x641b94=>Ot(_0x3c2a95,'ELEMENT_PAGE_BREAK',_0x641b94));}},Me=class extends _0x548d2a{afterInit(){const _0x2ac46a=this['editor'];if(!_0x2ac46a['plugins']['has']('Paragraph'))return;const _0x3fc95e=_0x2ac46a['locale'],_0x4c9658=_0x2ac46a['plugins']['get']('TrackChangesEditing');_0x4c9658['descriptionFactory']['registerElementLabel']('paragraph',_0xc7ed4d=>Ot(_0x3fc95e,'ELEMENT_PARAGRAPH',_0xc7ed4d)),_0x4c9658['enableDefaultAttributesIntegration']('paragraph'),_0x4c9658['enableCommand']('insertParagraph');const _0x1ae580=_0x4c9658['descriptionFactory'];_0x1ae580['registerDescriptionCallback'](_0xd4387a=>{if('insertion'!==_0xd4387a['type'])return;const {start:_0x45de6b,end:_0x13dec6}=_0xd4387a['getFirstRange']();if(!_0x45de6b['isTouching'](_0x13dec6)||!_0x45de6b['nodeAfter'])return;const _0x4e6100=_0x2ac46a['model']['schema'],_0x33cda0=_0x45de6b['nodeAfter'];return _0x4e6100['isBlock'](_0x33cda0)&&!_0x4e6100['isLimit'](_0x33cda0)&&_0x4e6100['checkChild'](_0x33cda0,'$text')?{'type':'insertion','content':Ot(_0x3fc95e,'*Insert:*\x20%0',_0x1ae580['getItemLabel'](_0x33cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d138c=this['editor'],_0x143446=_0x1d138c['locale'];_0x1d138c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c5a=>{if('formatBlock'!=_0x279c5a['type'])return;const {data:_0x3f74db}=_0x279c5a;return _0x3f74db&&'paragraph'==_0x3f74db['commandName']?{'type':'format','content':Ot(_0x143446,'*Change\x20to:*\x20%0',Ot(_0x143446,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x548d2a{afterInit(){const _0x154446=this['editor'];_0x154446['commands']['get']('replaceSource')&&_0x154446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x548d2a{afterInit(){const _0x1da2d4=this['editor'];_0x1da2d4['plugins']['has']('RemoveFormatEditing')&&(_0x1da2d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4a756a=this['editor'];_0x4a756a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466f2d=>{if('formatBlock'!=_0x466f2d['type']&&'formatInline'!=_0x466f2d['type'])return;const {data:_0x3bb190}=_0x466f2d;return _0x3bb190&&'removeFormat'==_0x3bb190['commandName']?{'type':'format','content':Ot(_0x4a756a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x548d2a{afterInit(){const _0x17ccd4=this['editor'];if(!_0x17ccd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537477=_0x17ccd4['plugins']['get']('TrackChangesEditing');_0x537477['enableCommand']('goToPreviousRestrictedEditingException'),_0x537477['enableCommand']('goToNextRestrictedEditingException');const _0x5618b4=_0x17ccd4['plugins']['get']('RestrictedEditingModeEditing');_0x5618b4['enableCommand']('trackChanges'),_0x5618b4['enableCommand']('acceptSuggestion'),_0x5618b4['enableCommand']('discardSuggestion'),_0x5618b4['enableCommand']('acceptAllSuggestions'),_0x5618b4['enableCommand']('discardAllSuggestions'),_0x5618b4['enableCommand']('acceptSelectedSuggestions'),_0x5618b4['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x548d2a{afterInit(){const _0x4f85ab=this['editor'];if(!_0x4f85ab['plugins']['has']('ShiftEnter'))return;const _0x288cef=_0x4f85ab['plugins']['get']('TrackChangesEditing');_0x288cef['enableCommand']('shiftEnter'),_0x288cef['descriptionFactory']['registerElementLabel']('softBreak',_0x3c8907=>Ot(_0x4f85ab['locale'],'ELEMENT_LINE_BREAK',_0x3c8907));}};function ve(_0xc80e90,_0x592af9,_0x178058){const _0x2f6932=[];for(const _0x1c8e06 of _0x592af9['getItems']())_0x1c8e06['hasAttribute'](_0xc80e90)&&_0x2f6932['push'](_0x178058['createRangeOn'](_0x1c8e06));return _0x2f6932;}var De=class extends _0x548d2a{afterInit(){const _0x2d8ca9=this['editor'],_0x16e04e=_0x2d8ca9['plugins']['get']('TrackChangesEditing');_0x2d8ca9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16e04e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xfeba7c=this['editor'],_0x2dfbf1=_0xfeba7c['model'],_0x1b3701=_0xfeba7c['locale'],_0x4454a5=_0xfeba7c['plugins']['get']('TrackChangesEditing'),_0x48ede='restrictedEditingException',_0x3264cb=_0xfeba7c['commands']['get'](_0x48ede);_0x4454a5['enableCommand'](_0x48ede,(_0x1b32fe,_0x1bb43e={})=>{const _0x295527=_0x2dfbf1['document']['selection'];if(_0x295527['isCollapsed'])return void _0x1b32fe(_0x1bb43e);const _0x170f0a=void 0x0!==_0x1bb43e['forceValue']?_0x1bb43e['forceValue']:!_0x3264cb['value'];_0x2dfbf1['change'](()=>{const _0x927793=Array['from'](_0x295527['getRanges']());for(const _0x32e7d0 of _0x927793){const _0x37c02c=_0x170f0a?[_0x32e7d0]:ve(_0x48ede,_0x32e7d0,_0x2dfbf1);for(const _0x4ec198 of _0x37c02c)_0x4454a5['markInlineFormat'](_0x4ec198,{'commandName':_0x48ede,'commandParams':[{'forceValue':_0x170f0a}]});}});}),_0x4454a5['descriptionFactory']['registerDescriptionCallback'](_0x2a470a=>{if('formatBlock'!=_0x2a470a['type']&&'formatInline'!=_0x2a470a['type'])return;const {data:_0x155f5c}=_0x2a470a;return _0x155f5c&&_0x155f5c['commandName']==_0x48ede?_0x155f5c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x7ec3d4=this['editor'],_0x26933f=_0x7ec3d4['locale'],_0x269542=_0x7ec3d4['plugins']['get']('TrackChangesEditing'),_0x8a50bf='restrictedEditingExceptionBlock',_0x355abd=this['editor']['commands']['get'](_0x8a50bf);_0x269542['enableCommand'](_0x8a50bf,(_0x9a2f70,_0x510787={})=>{const _0x321ea5=this['editor']['model']['document']['selection'],_0x216845=_0x510787&&void 0x0!==_0x510787['forceValue']?_0x510787['forceValue']:!_0x355abd['value'];let _0x1f4c7e=[];_0x1f4c7e=Ct(_0x216845?Array['from'](_0x321ea5['getSelectedBlocks']())['filter'](_0x1b434c=>function(_0x18aac9){return!!_0x18aac9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1b434c)||function(_0x18b2b7,_0x106a70){const _0x43a1fd=_0x106a70['createContext'](_0x18b2b7['parent']);return!!_0x106a70['checkChild'](_0x43a1fd,'restrictedEditingException')&&!!_0x106a70['checkChild'](_0x43a1fd['push']('restrictedEditingException'),_0x18b2b7);}(_0x1b434c,this['editor']['model']['schema'])):Array['from'](_0x321ea5['getSelectedBlocks']())['map'](_0x389444=>function(_0x779d57){let _0x11ade6=_0x779d57;for(;_0x11ade6['parent'];){if('restrictedEditingException'==_0x11ade6['parent']['name'])return _0x11ade6;_0x11ade6=_0x11ade6['parent'];}return null;}(_0x389444))['filter'](_0x4e70df=>!!_0x4e70df),_0x7ec3d4['model']),_0x7ec3d4['model']['change'](()=>{for(const _0x7090d2 of _0x1f4c7e)_0x269542['markBlockFormat'](_0x7090d2,{'commandName':_0x8a50bf,'commandParams':[{'forceValue':_0x216845}]});});}),_0x269542['descriptionFactory']['registerDescriptionCallback'](_0xb5a26b=>{const {data:_0x345591}=_0xb5a26b;if(_0x345591&&_0x345591['commandName']==_0x8a50bf)return _0x345591['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x548d2a{afterInit(){const _0x45c3df=this['editor'];_0x45c3df['plugins']['has']('Style')&&_0x45c3df['plugins']['has']('DataSchema')&&(_0x45c3df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xb03693=this['editor'],_0x1704cb=_0xb03693['locale'];_0xb03693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530c3f=>{if('formatBlock'!=_0x530c3f['type']&&'formatInline'!=_0x530c3f['type'])return;const {data:_0xc84134}=_0x530c3f;return _0xc84134&&'style'===_0xc84134['commandName']?_0xc84134['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1704cb,'*Set\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1704cb,'*Remove\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x548d2a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x1cdaa7){super(_0x1cdaa7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x305711=this['editor'],_0x2d48ea=_0x305711['model']['document']['selection'];if(!_0x305711['plugins']['has']('TableEditing'))return;const _0xebf499=_0x305711['locale'],_0x1b0da5=_0x305711['plugins']['get']('TrackChangesEditing'),_0x36613c=_0x305711['plugins']['get']('TableUtils');_0x1b0da5['descriptionFactory']['registerElementLabel']('table',_0x4a6ffb=>Ot(_0xebf499,'ELEMENT_TABLE',_0x4a6ffb)),this['_setupColumnsRowsFixing'](),_0x1b0da5['enableCommand']('insertTable'),_0x1b0da5['enableCommand']('selectTableRow'),_0x1b0da5['enableCommand']('selectTableColumn');for(const _0x2921be of['insertTableRowAbove','insertTableRowBelow']){const _0x6ba397=_0x305711['commands']['get'](_0x2921be);_0x1b0da5['enableCommand'](_0x2921be,_0x5d8063=>{_0x305711['model']['change'](_0x4a9e71=>{_0x5d8063();const _0x415d42='above'===_0x6ba397['order'],_0x451463=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x1e3c45=_0x36613c['getRowIndexes'](_0x451463),_0x5c05ee=_0x415d42?_0x1e3c45['first']-0x1:_0x1e3c45['last']+0x1,_0x1ce037=_0x451463[0x0]['findAncestor']('table'),_0x5ace80=_0x36613c['createTableWalker'](_0x1ce037,{'startRow':_0x5c05ee,'endRow':_0x5c05ee}),_0xe26b0=Array['from'](_0x5ace80)['map'](_0x260c91=>_0x4a9e71['createRangeOn'](_0x260c91['cell']));_0x1b0da5['markMultiRangeInsertion'](_0xe26b0,'tableRow');});});}for(const _0x5b6009 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d8be6=_0x305711['commands']['get'](_0x5b6009);_0x1b0da5['enableCommand'](_0x5b6009,_0x392956=>{_0x305711['model']['change'](_0x56c77b=>{_0x392956();const _0x392a90='left'===_0x4d8be6['order'],_0x3b5c8c=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x30a8ec=_0x36613c['getColumnIndexes'](_0x3b5c8c),_0x518424=_0x392a90?_0x30a8ec['first']-0x1:_0x30a8ec['last']+0x1,_0x2893a9=_0x3b5c8c[0x0]['findAncestor']('table'),_0x5a229a=_0x36613c['createTableWalker'](_0x2893a9,{'startRow':0x0,'column':_0x518424,'includeAllSlots':!0x1}),_0x5701dc=Array['from'](_0x5a229a)['map'](_0x4fa713=>_0x56c77b['createRangeOn'](_0x4fa713['cell']));_0x1b0da5['markMultiRangeInsertion'](_0x5701dc,'tableColumn');});});}for(const _0x548f0a of['removeTableRow','removeTableColumn']){const _0x1b75db=_0x548f0a['substr'](0xb),_0x3e9344=_0x1b75db['toLowerCase'](),_0x43189b=_0x3e9344['substr'](0x0,0x3)+'span',_0x586e53='table'+_0x1b75db,_0x47b0fd='min'+_0x1b75db,_0x37ab7a='max'+_0x1b75db;_0x1b0da5['enableCommand'](_0x548f0a,()=>{_0x305711['model']['change'](_0x44f57c=>{const _0x359e04=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x5228d6=_0x359e04[0x0]['findAncestor']('table');let _0x38844c;if('removeTableRow'==_0x548f0a){const _0x550c09=_0x36613c['getRowIndexes'](_0x359e04);_0x38844c={'startRow':_0x550c09['first'],'endRow':_0x550c09['last'],'includeAllSlots':!0x0};}else{const _0x5f08a1=_0x36613c['getColumnIndexes'](_0x359e04);_0x38844c={'startColumn':_0x5f08a1['first'],'endColumn':_0x5f08a1['last'],'includeAllSlots':!0x0};}const _0x3a3c11=_0x36613c['createTableWalker'](_0x5228d6,_0x38844c),_0x521bbc=Array['from'](_0x3a3c11)['map'](({cell:_0x2546c3})=>_0x2546c3),_0x50d50c=xe(_0x521bbc['filter'](_0xd28383=>_0xd28383['hasAttribute'](_0x43189b))),_0x238f26=xe(_0x521bbc['filter'](_0x127788=>!_0x127788['hasAttribute'](_0x43189b)))['map'](_0x1cbfa7=>_0x44f57c['createRangeOn'](_0x1cbfa7)),_0x58c128=_0x1b0da5['markMultiRangeDeletion'](_0x238f26,_0x586e53);if(_0x58c128&&('tableRow'==_0x58c128['subType']||'tableColumn'==_0x58c128['subType'])){const _0x507f23=this['_getSuggestionCoords'](_0x58c128);for(const _0x4194de of _0x50d50c){const _0x21c3e6=_0x44f57c['createRangeOn'](_0x4194de),_0x4e7a2d=_0x36613c['getCellLocation'](_0x4194de),_0x2180cf=_0x4194de['getAttribute'](_0x43189b)-0x1,_0x911903=_0x507f23[_0x47b0fd],_0x3eed3d=_0x507f23[_0x37ab7a];_0x911903<=_0x4e7a2d[_0x3e9344]&&_0x4e7a2d[_0x3e9344]+_0x2180cf<=_0x3eed3d&&_0x58c128['addRange'](_0x21c3e6);}}});});}function _0x2ba6a5(_0x361029){const _0x2642a0=Array['from'](_0x2d48ea['getRanges']())['map'](_0x41b2cd=>ot['fromRange'](_0x41b2cd));_0x305711['model']['change'](_0x2f8c28=>{const _0x28ea36=_0x2f8c28['batch'];_0x361029=_0x361029['filter'](_0x58dd1a=>'$graveyard'!=_0x58dd1a['root']['rootName']),_0x2f8c28['setSelection'](_0x361029),_0x305711['commands']['get']('removeTableRow')['refresh'](),_0x305711['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x305711['model']['enqueueChange'](()=>{_0x305711['model']['enqueueChange'](_0x28ea36,_0x1a98c4=>{const _0x550d1c=_0x2642a0['filter'](_0x54b9c4=>'$graveyard'!=_0x54b9c4['root']['rootName']);_0x550d1c['length']>0x0&&_0x1a98c4['setSelection'](_0x550d1c);for(const _0xb7d896 of _0x2642a0)_0xb7d896['detach']();});});});}function _0x491476(_0x23ef79){_0x305711['model']['change'](_0xbcc16f=>{const _0x5a99ce=Array['from'](_0x2d48ea['getRanges']())['map'](_0xac7474=>ot['fromRange'](_0xac7474)),_0x464f08=[];for(const _0x3edfb6 of _0x23ef79)for(const _0x4e0fdb of _0x3edfb6['getItems']({'shallow':!0x0}))_0x464f08['push'](_0x4e0fdb);for(const _0x512211 of _0x464f08)'$graveyard'!=_0x512211['root']['rootName']&&(_0xbcc16f['setSelection'](_0xbcc16f['createPositionAt'](_0x512211,0x0)),_0x305711['commands']['get']('removeTableColumn')['refresh'](),_0x305711['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6d4a8c=_0x5a99ce['filter'](_0x494338=>'$graveyard'!=_0x494338['root']['rootName']);_0x6d4a8c['length']>0x0&&_0xbcc16f['setSelection'](_0x6d4a8c);for(const _0x37116e of _0x5a99ce)_0x37116e['detach']();});}function _0x931fb8(_0x15d71d,_0x4e2043){return _0x4e2043['every'](_0x3669a1=>_0x15d71d['some'](_0x4412ba=>_0x4412ba['end']['isEqual'](_0x3669a1['start'])||_0x3669a1['end']['isEqual'](_0x4412ba['start'])));}function _0x50b9d2(_0x442c8e,_0x132a72){return!_0x442c8e['some'](_0x3aaf72=>_0x132a72['some'](_0x5a9bc9=>_0x3aaf72['isIntersecting'](_0x5a9bc9)))&&_0x442c8e['some'](_0xdb059d=>_0x132a72['some'](_0x5cb87a=>_0xdb059d['end']['isTouching'](_0x5cb87a['start'])));}_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x8a5cab=>{if('insertion'!=_0x8a5cab['type']&&'deletion'!=_0x8a5cab['type'])return;const _0xa9155f=_0x8a5cab['getContainedElement']();if(null!=_0xa9155f&&_0xa9155f['is']('element','table')){if('insertion'==_0x8a5cab['type']){const _0x16e5a2=_0x8a5cab['getItems']()['filter'](_0x1a61c2=>_0x1a61c2['is']('$textProxy'))['map'](_0x37cd90=>_0x37cd90['data']);if(_0x16e5a2['length'])return{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16e5a2['join']('\x20')+'\x22'))};}if('deletion'==_0x8a5cab['type']){const _0x21efbc=_0x8a5cab['getItems']()['filter'](_0x3fa686=>_0x3fa686['is']('$textProxy'))['map'](_0x4bd519=>_0x4bd519['data']);if(_0x21efbc['length'])return{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21efbc['join']('\x20')+'\x22'))};}}}),_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x5651f1=>{if('tableRow'==_0x5651f1['subType']){const _0x32a480=_0x5651f1['getItems']()['filter'](_0x912468=>_0x912468['is']('$textProxy'))['map'](_0x20ef2c=>_0x20ef2c['data']),_0x14f3aa=this['_getSuggestionCoords'](_0x5651f1),_0x24b960=_0x14f3aa['maxRow']-_0x14f3aa['minRow']+0x1;if('insertion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};if('deletion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};}if('tableColumn'==_0x5651f1['subType']){const _0x5cfaf3=_0x5651f1['getItems']()['filter'](_0x87d140=>_0x87d140['is']('$textProxy'))['map'](_0x5e0437=>_0x5e0437['data']),_0x4d5083=this['_getSuggestionCoords'](_0x5651f1),_0x1a8d6e=_0x4d5083['maxColumn']-_0x4d5083['minColumn']+0x1;if('insertion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};if('deletion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};}}),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50b9d2),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50b9d2);}_acceptFormatSuggestionCallbackFactory(){const _0x4ab10e=this['editor'],_0x1bb209=_0x4ab10e['model']['document']['selection'];return(_0x6dc437,_0x3c1f32)=>{_0x4ab10e['model']['change'](_0x4faeb1=>{const {commandName:_0x1780e8,commandParams:_0x32929d}=_0x3c1f32;let _0x40adb3=_0x6dc437[0x0]['end']['nodeBefore'];_0x32929d&&_0x32929d[0x0]&&!0x1===_0x32929d[0x0]['forceValue']&&(_0x40adb3=_0x6dc437[0x0]['start']['nodeAfter']);const _0x54d7c9=_0x4faeb1['createRangeIn'](_0x40adb3);if('$graveyard'==_0x54d7c9['root']['rootName'])return;const _0x897f1a=Array['from'](_0x1bb209['getRanges']())['map'](_0x411db7=>ot['fromRange'](_0x411db7));_0x4faeb1['setSelection'](_0x54d7c9),_0x4ab10e['commands']['get'](_0x1780e8)['refresh'](),_0x32929d['push']({'forceDefaultExecution':!0x0}),_0x4ab10e['execute'](_0x1780e8,..._0x32929d);const _0x21840c=_0x897f1a['filter'](_0x5a704f=>'$graveyard'!=_0x5a704f['root']['rootName']);_0x21840c['length']>0x0&&_0x4faeb1['setSelection'](_0x21840c);for(const _0x1716b0 of _0x897f1a)_0x1716b0['detach']();});};}_getCoordsForCells(_0x1b1e61){const _0xd6be9a=this['editor']['plugins']['get']('TableUtils');let _0x21f365=Number['MAX_SAFE_INTEGER'],_0x5ed6b7=Number['MIN_SAFE_INTEGER'],_0x57c00f=Number['MAX_SAFE_INTEGER'],_0x4730a6=Number['MIN_SAFE_INTEGER'];for(const _0x20adee of _0x1b1e61){if('$graveyard'==_0x20adee['root']['rootName'])continue;const {row:_0x26cdc5,column:_0x4e41a9}=_0xd6be9a['getCellLocation'](_0x20adee),_0x2cea03=_0x20adee['hasAttribute']('rowspan')?_0x20adee['getAttribute']('rowspan')-0x1:0x0,_0x3f60b2=_0x20adee['hasAttribute']('colspan')?_0x20adee['getAttribute']('colspan')-0x1:0x0;_0x21f365=_0x26cdc5<_0x21f365?_0x26cdc5:_0x21f365,_0x5ed6b7=_0x26cdc5+_0x2cea03>_0x5ed6b7?_0x26cdc5+_0x2cea03:_0x5ed6b7,_0x57c00f=_0x4e41a9<_0x57c00f?_0x4e41a9:_0x57c00f,_0x4730a6=_0x4e41a9+_0x3f60b2>_0x4730a6?_0x4e41a9+_0x3f60b2:_0x4730a6;}return{'minRow':_0x21f365,'maxRow':_0x5ed6b7,'minColumn':_0x57c00f,'maxColumn':_0x4730a6};}_setupColumnsRowsFixing(){const _0x507291=this['editor'],_0x5056ce=_0x507291['plugins']['get']('TrackChangesEditing'),_0x44b7aa=_0x507291['plugins']['get']('TableUtils');_0x507291['model']['document']['on']('change:data',()=>{const _0x18752e=Array['from'](_0x507291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269a69,data:_0x28d1c6}of _0x18752e){const {group:_0x52c316,id:_0x542052,subType:_0x121a67}=et(_0x269a69);if('suggestion'!=_0x52c316)continue;if(null!=_0x28d1c6['oldRange'])continue;const _0x224fdc=_0x5056ce['getSuggestion'](_0x542052);this['_tablePostFixingSubtypes']['includes'](_0x121a67)&&this['_tableSuggestions']['add'](_0x224fdc);}},{'priority':'low'});const _0x4b4f75=(_0x593773,_0x2b8341)=>{let _0x2799ff=!0x1;const _0x1b4db2=_0x2b8341['createRangeOn'](_0x593773),_0x9b2d17=_0x593773['findAncestor']('table'),_0x4f95a0=_0x44b7aa['getCellLocation'](_0x593773);for(const _0x530805 of this['_tableSuggestions']){const _0x35efde=_0x530805['subType'],_0x22d989=_0x35efde['startsWith']('tablePaste'),_0x4b3574=_0x35efde['substr'](_0x22d989?0xa:0x5),_0x23897f=_0x4b3574['toLowerCase'](),_0x1f1402=_0x23897f['substr'](0x0,0x3)+'span',_0x2930d6='min'+_0x4b3574,_0x405740='max'+_0x4b3574;if(!_0x530805['isInContent'])continue;if(_0x9b2d17!=_0x530805['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x530805['isIntersectingWithRange'](_0x1b4db2))continue;const _0x26dc8d=_0x593773['hasAttribute'](_0x1f1402)?_0x593773['getAttribute'](_0x1f1402)-0x1:0x0,_0x5e4c3f=this['_getSuggestionCoords'](_0x530805),_0x57d941=_0x5e4c3f[_0x2930d6],_0x7fcbb6=_0x5e4c3f[_0x405740];_0x57d941<=_0x4f95a0[_0x23897f]&&_0x4f95a0[_0x23897f]+_0x26dc8d<=_0x7fcbb6&&(_0x530805['addRange'](_0x1b4db2),_0x2799ff=!0x0);}return _0x2799ff;};_0x507291['model']['document']['registerPostFixer'](_0x52bcbd=>{let _0x168e42=!0x1;for(const _0x9a729e of _0x507291['model']['document']['differ']['getChanges']())if('insert'==_0x9a729e['type']){if('tableRow'==_0x9a729e['name']){for(const _0x51258b of _0x9a729e['position']['nodeAfter']['getChildren']())_0x168e42=_0x168e42||_0x4b4f75(_0x51258b,_0x52bcbd);}else'tableCell'==_0x9a729e['name']&&(_0x168e42=_0x168e42||_0x4b4f75(_0x9a729e['position']['nodeAfter'],_0x52bcbd));}return _0x168e42;});}_getSuggestionCoords(_0x307135){return this['_getCoordsForCells'](_0x307135['getRanges']()['map'](_0x23073f=>_0x23073f['start']['nodeAfter']));}};function xe(_0x38bd3d){return Array['from'](new Set(_0x38bd3d)['values']());}var Ge=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x4435be=this['editor'],_0x4a9211=_0x4435be['model']['document']['selection'],_0x22410a=_0x4435be['locale'];if(!_0x4435be['plugins']['has']('TableEditing'))return;const _0x336082=_0x4435be['plugins']['get']('TrackChangesEditing'),_0x8d8d5f=_0x4435be['plugins']['get']('TableUtils'),_0x5ee08f=_0x4435be['plugins']['get'](Pe);_0x5ee08f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336082['enableCommand']('mergeTableCells',()=>{const _0x1b73bf=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']);_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x1b73bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4435be['commands']['get']('mergeTableCells')['on']('execute',(_0x59ec58,_0x20a849)=>{_0x4435be['commands']['get']('trackChanges')['value']&&(_0x20a849['length']>0x0&&_0x20a849[_0x20a849['length']-0x1]&&_0x20a849[_0x20a849['length']-0x1]['forceDefaultExecution']||_0x336082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59ec58['stop']());},{'priority':'highest'});for(const _0x10fdf6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e6c0f=_0x4435be['commands']['get'](_0x10fdf6);_0x336082['enableCommand'](_0x10fdf6,()=>{const _0x26c740=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x591daf=>_0x591daf['is']('element','tableCell')),_0x5916b1=_0x1e6c0f['value'];_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat']([_0x26c740,_0x5916b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29eb8b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52bcc1=_0x4435be['commands']['get'](_0x29eb8b);_0x336082['enableCommand'](_0x29eb8b,()=>{const _0x5a5813=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']),_0x515a25=_0x5a5813[0x0]['findAncestor']('table'),_0x1d449c=new Set();for(const _0x4861e7 of _0x5a5813){const {column:_0x477cbd,row:_0x4c7f1d}=_0x8d8d5f['getCellLocation'](_0x4861e7),_0x5802e4='horizontally'==_0x52bcc1['direction']?_0x8d8d5f['createTableWalker'](_0x515a25,{'startRow':_0x4c7f1d,'endRow':_0x4c7f1d,'includeAllSlots':!0x0}):_0x8d8d5f['createTableWalker'](_0x515a25,{'column':_0x477cbd,'includeAllSlots':!0x0});for(const {cell:_0x43e720}of _0x5802e4)_0x1d449c['add'](_0x43e720);}_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x5a5813,{'commandName':_0x29eb8b,'commandParams':[]},Array['from'](_0x1d449c),_0x29eb8b);});});}_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x37cb8e=>{if('formatBlock'!=_0x37cb8e['type']&&'formatInline'!=_0x37cb8e['type'])return;const {data:_0x41239b}=_0x37cb8e;return _0x41239b&&'mergeTableCells'==_0x41239b['commandName']?{'type':'format','content':Ot(_0x22410a,'*Merge\x20cells*')}:void 0x0;}),_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x5e3dec=>{if('formatBlock'!=_0x5e3dec['type']&&'formatInline'!=_0x5e3dec['type'])return;const {data:_0x446892}=_0x5e3dec;return _0x446892?'splitTableCellVertically'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15c264=_0x5ee08f['_acceptFormatSuggestionCallbackFactory']();for(const _0x45a572 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a572,'accept',_0x15c264);for(const _0x4e5e3d of['splitTableCellVertically','splitTableCellHorizontally'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5e3d,'accept',_0x2ccac8=>{_0x4435be['model']['change'](_0x215f86=>{const _0x1322cb=Array['from'](_0x2ccac8)['filter'](_0x17944b=>'$graveyard'!=_0x17944b['root']['rootName']&&!!_0x17944b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1322cb['length'])return;const _0x454615=Array['from'](_0x4a9211['getRanges']())['map'](_0x55235b=>ot['fromRange'](_0x55235b));_0x215f86['setSelection'](_0x1322cb),_0x4435be['commands']['get'](_0x4e5e3d)['refresh'](),_0x4435be['execute'](_0x4e5e3d,{'forceDefaultExecution':!0x0});const _0x5cc1cd=_0x454615['filter'](_0x3e891b=>'$graveyard'!=_0x3e891b['root']['rootName']);_0x5cc1cd['length']>0x0&&_0x215f86['setSelection'](_0x5cc1cd);for(const _0x576c6e of _0x454615)_0x576c6e['detach']();});});_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5175c2=>{_0x4435be['model']['change'](_0x2e9d4b=>{const _0x40d6ae=Array['from'](_0x4a9211['getRanges']())['map'](_0x9dbcba=>ot['fromRange'](_0x9dbcba));_0x2e9d4b['setSelection'](_0x5175c2),_0x4435be['commands']['get']('mergeTableCells')['refresh'](),_0x4435be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bed67=_0x40d6ae['filter'](_0x14fb86=>'$graveyard'!=_0x14fb86['root']['rootName']);_0x2bed67['length']>0x0&&_0x2e9d4b['setSelection'](_0x2bed67);for(const _0x1a5551 of _0x40d6ae)_0x1a5551['detach']();});});for(const _0x14851a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2396a0=_0x4435be['commands']['get'](_0x14851a);_0x2396a0['on']('set:isEnabled',(_0x30b71e,_0x47cc5e,_0xcb08e3)=>{if(_0xcb08e3){const _0x38a62e=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10ab58=>_0x10ab58['is']('element','tableCell'));this['_areMergableCells'](_0x2396a0['value'],_0x38a62e)||(_0x30b71e['return']=!0x1,_0x30b71e['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x49ed20=this['editor']['commands']['get']('mergeTableCells'),_0x4e0197=this['editor']['plugins']['get']('TableUtils');if(!_0x49ed20['isEnabled'])return!0x1;const _0x13e0e8=_0x4e0197['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f2c1e of _0x13e0e8)for(const _0x2e8540 of _0x13e0e8)if(_0x2f2c1e!=_0x2e8540&&!this['_areMergableCells'](_0x2f2c1e,_0x2e8540))return!0x1;return!0x0;}['_areMergableCells'](_0x21508a,_0x1299cd){const _0x55ada4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0467=this['editor']['model']['createRangeOn'](_0x21508a),_0x20a95f=this['editor']['model']['createRangeOn'](_0x1299cd),_0x11bbc4=new Set(),_0x35ca89=new Set();for(const _0x234017 of _0x55ada4['getSuggestions']())if(('insertion'==_0x234017['type']||'deletion'==_0x234017['type']||'mergeTableCells'==_0x234017['subType'])&&_0x234017['isInContent']){for(const _0x256a14 of _0x234017['getRanges']())_0x256a14['containsRange'](_0x5e0467,!0x0)&&_0x11bbc4['add'](_0x234017['type']+':'+_0x234017['author']['id']),_0x256a14['containsRange'](_0x20a95f,!0x0)&&_0x35ca89['add'](_0x234017['type']+':'+_0x234017['author']['id']);}if(_0x11bbc4['size']!=_0x35ca89['size'])return!0x1;for(const _0x1bf457 of _0x11bbc4)if(!_0x35ca89['has'](_0x1bf457))return!0x1;return!0x0;}},He=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x18ee65=this['editor'];if(!_0x18ee65['plugins']['has']('TableEditing'))return;const _0x40b010=_0x18ee65['locale'],_0x4e6337=_0x18ee65['plugins']['get']('TrackChangesEditing');_0x4e6337['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e6337['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x40b010,'FORMAT_HEADER_ROW')),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x40b010,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1dceff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1864a0=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1864a0),_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1864a0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x2c2d02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413ca4=this['editor']['plugins']['get']('TableUtils');function _0x21e9a6({showActiveMarker:_0x367508=!0x0,setDataAttribute:_0x118392=!0x0}={}){return(_0x1657d8,_0x416118,_0x34ff66)=>{const {type:_0x5293ee,id:_0x2283b3}=et(_0x416118['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x2283b3))return;const _0x33dd28=_0x2c2d02['getSuggestion'](_0x2283b3),_0x44811a=_0x33dd28['data'];if('formatBlock'!=_0x33dd28['type']||!_0x44811a||'setTableColumnHeader'!=_0x44811a['commandName'])return;if(_0x416118['item'])return void _0x1657d8['stop']();if(!_0x34ff66['consumable']['consume'](_0x416118['markerRange'],_0x1657d8['name']))return;const _0x2fe846=_0x416118['markerRange']['start']['nodeAfter'],_0x462679=_0x416118['markerRange']['end']['nodeBefore'],_0x15f397=_0x2fe846['parent']['parent'],{column:_0x373067}=_0x413ca4['getCellLocation'](_0x2fe846),{column:_0x2aff68}=_0x413ca4['getCellLocation'](_0x462679);for(let _0x31d69d=_0x373067;_0x31d69d<=_0x2aff68;_0x31d69d++){const _0x133ea5=_0x413ca4['createTableWalker'](_0x15f397,{'column':_0x31d69d,'includeAllSlots':!0x1});for(const _0x4fff02 of _0x133ea5){const _0x3ecaa6=_0x4fff02['cell'],_0x1e0a02=_0x34ff66['mapper']['toViewElement'](_0x3ecaa6);_0x34ff66['writer']['addClass']('ck-suggestion-marker-'+_0x5293ee,_0x1e0a02),_0x118392&&_0x34ff66['writer']['setAttribute']('data-suggestion',_0x2283b3,_0x1e0a02),_0x34ff66['mapper']['bindElementToMarker'](_0x1e0a02,_0x416118['markerName']),_0x367508&&(_0x2c2d02['activeMarkers']['includes'](_0x416118['markerName'])?_0x34ff66['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a02):_0x34ff66['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0a02));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21e9a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38b54e,_0x4c805f,_0x3dbea0)=>{_0x3dbea0['options']['showSuggestionHighlights']&&_0x21e9a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b54e,_0x4c805f,_0x3dbea0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51b785,_0x2c7a20,_0x52f194)=>{const {type:_0x4ba003,id:_0x15aeb8}=et(_0x2c7a20['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x15aeb8))return;const _0x2dc66c=_0x2c2d02['getSuggestion'](_0x15aeb8),_0x314e01=_0x2dc66c['data'];if('formatBlock'!=_0x2dc66c['type']||!_0x314e01||'setTableColumnHeader'!=_0x314e01['commandName'])return;const _0x4a25ca=_0x52f194['mapper']['markerNameToElements'](_0x2c7a20['markerName']);if(_0x4a25ca){for(const _0x216821 of _0x4a25ca)_0x52f194['writer']['removeClass']('ck-suggestion-marker-'+_0x4ba003,_0x216821),_0x52f194['writer']['removeClass']('ck-suggestion-marker--active',_0x216821),_0x52f194['writer']['removeAttribute']('data-suggestion',_0x216821),_0x52f194['mapper']['unbindElementFromMarkerName'](_0x216821,_0x2c7a20['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x140aec=this['editor'],_0x32f310=_0x140aec['locale'];function _0x58514e(_0x32b38a){return{'type':'format','content':Ot(_0x32f310,'*Format:*\x20%0',_0x32b38a)};}_0x140aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baac6=>{if('formatBlock'!=_0x1baac6['type'])return;const {data:_0x19d4a9}=_0x1baac6;return _0x19d4a9?'setTableRowHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_ROW')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_COLUMN')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5d7da3=this['editor'];if(!_0x5d7da3['plugins']['has']('TableEditing')||!_0x5d7da3['config']['get']('table.enableFooters'))return;const _0xe169e4=_0x5d7da3['locale'],_0xdc958c=_0x5d7da3['plugins']['get']('TrackChangesEditing');_0xdc958c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xdc958c['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0xe169e4,'FORMAT_FOOTER_ROW'));}},We=class extends _0x548d2a{afterInit(){const _0x346031=this['editor'],_0x5957db=_0x346031['locale'],_0x3d2f5c=_0x346031['plugins']['get']('TrackChangesEditing');function _0x148129(_0x3e25db){return{'type':'format','content':''+Ot(_0x5957db,'*Set\x20table\x20type:*\x20%0',_0x3e25db)};}_0x346031['plugins']['has']('TableLayout')&&(_0x3d2f5c['enableCommand']('insertTableLayout'),_0x3d2f5c['enableDefaultAttributesIntegration']('tableType'),_0x3d2f5c['descriptionFactory']['registerElementLabel'](_0x29d44d=>_0x29d44d['is']('element','table')&&'layout'===_0x29d44d['getAttribute']('tableType'),_0x35977c=>Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE',_0x35977c)),_0x3d2f5c['descriptionFactory']['registerDescriptionCallback'](_0x3362b3=>{const {data:_0x21673a}=_0x3362b3;if(_0x21673a&&'tableType'==_0x21673a['key'])switch(_0x21673a['newValue']){case'layout':return _0x148129(Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x148129(Ot(_0x5957db,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Ve['map'](_0x15c8af=>[_0x15c8af,null]));var ze=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x22b1dc=this['editor'];if(!_0x22b1dc['plugins']['has']('TableClipboard'))return;const _0x13fcf9=_0x22b1dc['plugins']['get']('TrackChangesEditing'),_0x2ae819=_0x22b1dc['plugins']['get']('TableUtils'),_0x2b0896=_0x22b1dc['plugins']['get'](Pe),_0x171968=_0x22b1dc['plugins']['get']('TableClipboard'),_0x506c49=_0x22b1dc['plugins']['get']('TableSelection'),_0x18fe72=_0x22b1dc['plugins']['get'](ft);_0x2b0896['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22b1dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22b1dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bc126=null,_0x99d6dc=!0x1;_0x18fe72['on']('contentInsertion',(_0x49688f,_0x41b9f8)=>{_0x99d6dc='paste'===_0x41b9f8['method'];}),_0x22b1dc['model']['on']('insertContent',(_0x2a08e0,_0x499fc1)=>{if(!_0x99d6dc&&null===_0x506c49['getSelectedTableCells']())return;const [_0x2c9796,_0x3bb219]=_0x499fc1,_0x23caea=_0x499fc1[_0x499fc1['length']-0x1];_0x23caea&&_0x23caea['forceDefaultExecution']||_0x13fcf9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x897fc5,_0xd10cd1,_0x1726fc,_0x125b46,_0x124b3a){if(_0xd10cd1&&!_0xd10cd1['is']('documentSelection'))return!0x1;const _0x1ee1c0=_0x124b3a['getTableIfOnlyTableInContent'](_0x897fc5,_0x1726fc);if(!_0x1ee1c0||!Xe(_0x1ee1c0,void 0x0,_0x125b46))return!0x1;const _0x282997=_0x125b46['getSelectionAffectedTableCells'](_0x1726fc['document']['selection']);if(!_0x282997['length'])return!0x1;const _0x4a6587=_0x282997[0x0]['findAncestor']('table'),_0x2b55a9=_0x125b46['getRowIndexes'](_0x282997),_0x5dc821=_0x125b46['getColumnIndexes'](_0x282997),_0x5b88ba={'startRow':_0x2b55a9['first'],'endRow':_0x2b55a9['last'],'startColumn':_0x5dc821['first'],'endColumn':_0x5dc821['last']};return 0x1==_0x282997['length']&&(_0x5b88ba['endRow']+=_0x125b46['getRows'](_0x1ee1c0)-0x1,_0x5b88ba['endColumn']+=_0x125b46['getColumns'](_0x1ee1c0)-0x1),Xe(_0x4a6587,_0x5b88ba,_0x125b46);}(_0x2c9796,_0x3bb219,_0x22b1dc['model'],_0x2ae819,_0x171968)&&(_0x2a08e0['stop'](),_0x5bc126={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22b1dc['model']['change'](()=>{_0x22b1dc['model']['insertContent'](_0x499fc1[0x0],_0x499fc1[0x1],_0x499fc1[0x2],{'forceDefaultExecution':!0x0});const _0x32ae92=_0x1dfb7c(),{rowInsertionRanges:_0x49002b,columnInsertionRanges:_0x5d041f,insertionRanges:_0x15ba21,deletionRanges:_0x38510d,cells:_0x3d76b1}=_0x5bc126;_0x49002b['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x49002b,'tablePasteRow',{'tablePasteChainId':_0x32ae92}),_0x5d041f['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x5d041f,'tablePasteColumn',{'tablePasteChainId':_0x32ae92}),_0x15ba21['length']&&(_0x13fcf9['markMultiRangeInsertion'](_0x15ba21,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x15ba21['forEach'](_0x597235=>_0x597235['detach']?.())),_0x38510d['length']&&(_0x13fcf9['markMultiRangeDeletion'](_0x38510d,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x38510d['forEach'](_0x54bf1c=>_0x54bf1c['detach']?.()));const _0x28741f=_0x13fcf9['markMultiRangeBlockFormat'](_0x3d76b1['map'](({element:_0x124372})=>_0x124372),{'formatGroupId':_0x1dfb7c()},[],'tablePasteCell',{'tablePasteChainId':_0x32ae92});if(_0x28741f){const _0x5e027f=_0x28741f['getMarkers'](),_0x52a291=[];for(const {element:_0x1baf8e,attributes:_0x1bed91}of _0x3d76b1){if(!_0x1bed91)continue;const _0x2bb575=_0x22b1dc['model']['createRangeOn'](_0x1baf8e),_0x3deaae=_0x5e027f['find'](_0xec8726=>_0xec8726['getRange']()['isEqual'](_0x2bb575));_0x3deaae&&_0x52a291['push']([_0x3deaae['name'],_0x1bed91]);}_0x52a291['length']&&_0x28741f['setAttribute']('markerAttributes',Object['fromEntries'](_0x52a291));}_0x5bc126=null;}));},{'priority':_0x5e908b['high']+0xa}),_0x18fe72['on']('contentInsertion',()=>{_0x99d6dc=!0x1;},{'priority':'lowest'}),_0x22b1dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44477e,_0x5e2f12)=>{const [_0x36ca60,_0x3a847c,,_0x7f29aa]=_0x5e2f12;if(!_0x5bc126)return;_0x44477e['stop']();const _0x45b935=_0x36ca60['cell'],_0x5e4c3a=_0x3a847c,_0x1fb8f1=Ke(_0x45b935),_0x47178d=Ke(_0x5e4c3a);_0x44477e['return']=_0x45b935;let _0x5aa8de=null,_0xf94e37=null;if(_0x47178d||_0x1fb8f1){if(_0x1fb8f1&&!_0x47178d){_0x7f29aa['remove'](_0x45b935['getChild'](0x0));for(const _0x4566fb of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x4566fb,_0x45b935,'end');const _0x1d8f83=_0x5bc126['rowInsertionIndexes']['includes'](_0x36ca60['row']),_0x3e6d8d=_0x5bc126['columnInsertionIndexes']['includes'](_0x36ca60['column']);_0x1d8f83||_0x3e6d8d||(_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeIn'](_0x45b935)));}else _0x47178d&&!_0x1fb8f1&&(_0xf94e37=_0x7f29aa['createRangeIn'](_0x45b935));}else{const _0x36f78e=_0x7f29aa['createElement']('tableCellSuggestion'),_0x3903fe=_0x7f29aa['createElement']('tableCellSuggestion');_0x7f29aa['wrap'](_0x7f29aa['createRangeIn'](_0x45b935),_0x3903fe),_0x7f29aa['insert'](_0x36f78e,_0x45b935,0x0);for(const _0x1e0a88 of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x1e0a88,_0x36f78e,'end');_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x36f78e)),_0xf94e37=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x3903fe));}const _0x114c4b=Array['from'](_0x5e4c3a['getAttributes']())['filter'](([_0x41ed76])=>Ve['includes'](_0x41ed76));_0x5bc126['cells']['push']({'element':_0x45b935,'attributes':_0x114c4b['length']?Object['fromEntries'](_0x114c4b):null}),_0x5aa8de&&_0x5bc126['insertionRanges']['push'](_0x5aa8de),_0xf94e37&&_0x5bc126['deletionRanges']['push'](_0xf94e37);},{'priority':'high'}),_0x2ae819['on']('insertColumns',(_0x18e2b3,_0x272a2d)=>{const [_0x6a3893,_0x4d8f2d={}]=_0x272a2d;if(!_0x5bc126)return;const _0x44b890=_0x4d8f2d['at']||0x0,_0xeb0514=_0x4d8f2d['columns']||0x1;_0x5bc126['columnInsertionIndexes']=new Array(_0xeb0514)['fill'](_0x44b890)['map']((_0x24bd93,_0x5f0e8b)=>_0x24bd93+_0x5f0e8b);for(const {cell:_0x1b47f8}of _0x2ae819['createTableWalker'](_0x6a3893,{'startColumn':_0x44b890,'endColumn':_0x44b890+_0xeb0514-0x1}))_0x5bc126['columnInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x1b47f8));},{'priority':'low'}),_0x2ae819['on']('insertRows',(_0x32a403,_0xa86844)=>{const [_0x5c1ff1,_0x49c130={}]=_0xa86844;if(!_0x5bc126)return;const _0x196bce=_0x49c130['at']||0x0,_0x37c468=_0x49c130['rows']||0x1;_0x5bc126['rowInsertionIndexes']=new Array(_0x37c468)['fill'](_0x196bce)['map']((_0x24ccfb,_0x11a32f)=>_0x24ccfb+_0x11a32f);for(const {cell:_0x5731e6}of _0x2ae819['createTableWalker'](_0x5c1ff1,{'startRow':_0x196bce,'endRow':_0x196bce+_0x37c468-0x1}))_0x5bc126['rowInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x5731e6));},{'priority':'low'}),_0x13fcf9['descriptionFactory']['registerDescriptionCallback'](_0xfd682d=>{if(_0xfd682d['subType']&&_0xfd682d['subType']['startsWith']('tablePaste'))return _0xfd682d['previous']?{}:{'type':'insertion','content':Ot(_0x22b1dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5a636e=()=>!0x1;for(const _0x2eb1cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eb1cc,'join',_0x5a636e);_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ffdba,_0x1053f8,_0x4c1bef)=>{const _0x5bf664=_0x2ffdba['map'](_0x166806=>_0x166806['getContainedElement']())['filter'](_0x4bbfc1=>_0x4bbfc1),_0x15a7cd=new Map(_0x5bf664['map'](_0xddf6e8=>[_0xddf6e8,null]));if(_0x5bc126){for(const {element:_0xcde2aa,attributes:_0x2f24ab}of _0x5bc126['cells'])_0x2f24ab&&_0x15a7cd['set'](_0xcde2aa,_0x2f24ab);}else{if(_0x4c1bef&&_0x4c1bef['markerAttributes'])for(const [_0x12fbaa,_0x39ce53]of Object['entries'](_0x4c1bef['markerAttributes'])){const _0x1b20b6=_0x22b1dc['model']['markers']['get'](_0x12fbaa),_0x29aa04=_0x1b20b6?_0x1b20b6['getRange']()['getContainedElement']():null;_0x29aa04&&_0x15a7cd['set'](_0x29aa04,_0x39ce53);}}_0x22b1dc['model']['change'](_0x1c012b=>{for(const [_0x2d6a86,_0x3413f6]of _0x15a7cd)_0x1c012b['setAttributes']({...je,..._0x3413f6},_0x2d6a86);});});const _0x10b01f=(_0x469d77,_0x42b51c)=>{_0x13fcf9['_suggestionFactory']['registerCustomCallback'](_0x469d77,'tablePaste',_0x42b51c,(_0x4e3348,_0x575fc1,_0x58ff69)=>{_0x22b1dc['model']['change'](_0x196a8c=>{const _0x3195f8=[];for(const _0x41d929 of _0x4e3348){const _0x3779d6=_0x41d929['start']['nodeAfter'];_0x3779d6['is']('element','tableCellSuggestion')&&_0x3195f8['push'](_0x3779d6);}_0x13fcf9['_suggestionFactory']['getSuggestionCallback'](_0x469d77,null,_0x42b51c)(_0x4e3348,_0x575fc1,_0x58ff69);for(const _0x256caa of _0x3195f8)'$graveyard'!=_0x256caa['root']['rootName']&&_0x196a8c['unwrap'](_0x256caa);});});};_0x10b01f('insertion','accept'),_0x10b01f('insertion','discard'),_0x10b01f('deletion','accept'),_0x10b01f('deletion','discard'),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1448fe=>{const _0x1d720b=_0x1448fe['map'](_0x2904b1=>_0x2904b1['getContainedElement']()),_0x5a63c0=_0x1d720b[0x0]['findAncestor']('table'),{minRow:_0x128575,maxRow:_0x41217d}=_0x2b0896['_getCoordsForCells'](_0x1d720b);_0x2ae819['removeRows'](_0x5a63c0,{'at':_0x128575,'rows':_0x41217d-_0x128575+0x1});}),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b5687=>{const _0x119463=_0x4b5687['map'](_0x5cc4e0=>_0x5cc4e0['getContainedElement']()),_0x19f637=_0x119463[0x0]['findAncestor']('table'),{minColumn:_0x53cae3,maxColumn:_0x25de3f}=_0x2b0896['_getCoordsForCells'](_0x119463);_0x2ae819['removeColumns'](_0x19f637,{'at':_0x53cae3,'columns':_0x25de3f-_0x53cae3+0x1});});const _0x558a52=(_0x30158a,_0x137ae5)=>{if(!_0x137ae5['subType']||!_0x137ae5['subType']['startsWith']('tablePaste'))return;const _0x30ed60=_0x137ae5['attributes']['tablePasteChainId'],_0x2af88e=_0x13fcf9['getSuggestions']()['filter'](_0x270479=>_0x270479['isInContent']&&_0x270479['attributes']&&_0x270479['attributes']['tablePasteChainId']==_0x30ed60);_0x2af88e['length']&&_0x137ae5['getAllAdjacentSuggestions']()['length']!=_0x2af88e['length']&&_0x2af88e['reduce']((_0x243f3c,_0x299a94)=>(_0x243f3c['next']=_0x299a94,_0x299a94['previous']=_0x243f3c,_0x299a94));};function _0x2182a7(_0x1fbf93,_0x36328b=!0x0){const {id:_0x4ce1b8,authorId:_0x17341d}=et(_0x1fbf93['markerName']),_0x4074a3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42a7ea=_0x13fcf9['activeMarkers']['includes'](_0x1fbf93['markerName']);return _0x42a7ea&&_0x4074a3['push']('ck-suggestion-marker--active'),{'classes':_0x4074a3,'attributes':{'data-suggestion':_0x4ce1b8,'data-author-id':_0x17341d},'priority':_0x42a7ea&&_0x36328b?0xbc2:0xbb8};}_0x13fcf9['on']('suggestionLoaded',_0x558a52,{'priority':'high'}),_0x13fcf9['on']('suggestionUnloaded',_0x558a52,{'priority':'high'}),_0x22b1dc['model']['document']['registerPostFixer'](()=>{let _0x250e08=!0x1;const _0x31e96a=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x515a55,data:_0xd1da34}of _0x31e96a){const {group:_0x52f5ab,type:_0x426288,id:_0x1496d}=et(_0x515a55);if('suggestion'!=_0x52f5ab||'deletion'!=_0x426288||_0xd1da34['oldRange'])continue;if(!_0x13fcf9['hasSuggestion'](_0x1496d))continue;const _0x1413c2=_0x13fcf9['getSuggestion'](_0x1496d)['getRanges'](),_0x6ec384=_0x22b1dc['plugins']['get']('Users')['me'];for(const _0x485210 of _0x13fcf9['getSuggestions']())if(_0x485210['isInContent']&&_0x485210['author']==_0x6ec384&&'formatBlock'==_0x485210['type']&&'tablePasteCell'==_0x485210['subType']&&_0x485210['getRanges']()['every'](_0x3208ba=>_0x1413c2['some'](_0x169c50=>_0x169c50['containsRange'](_0x3208ba,!0x0)))){for(const _0x446156 of _0x485210['getAllAdjacentSuggestions']())_0x446156['isInContent']&&(_0x446156['discard'](),_0x250e08=!0x0);}}return _0x250e08;}),_0x22b1dc['model']['document']['registerPostFixer'](_0x2db57d=>{const _0x339894=_0x22b1dc['commands']['get']('redo');if(!_0x339894||!_0x339894['_createdBatches']['has'](_0x2db57d['batch']))return!0x1;let _0x17064a=!0x1;const _0x4edc00=_0x22b1dc['plugins']['get']('Users')['me'],_0x2b30db=_0x22b1dc['model']['document']['differ']['getChanges'](),_0x3e7a16=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cb925,data:_0x1c306f})=>{const {group:_0x4359d6,subType:_0x4aad6c,authorId:_0x3ada91}=et(_0x3cb925);return'suggestion'==_0x4359d6&&'tablePaste'==_0x4aad6c&&_0x3ada91==_0x4edc00['id']&&!_0x1c306f['oldRange'];});for(const _0x32b9b2 of _0x2b30db){if('insert'!=_0x32b9b2['type']||'tableCellSuggestion'!=_0x32b9b2['name']||0x1!=_0x32b9b2['length'])continue;const _0x296ed3=_0x2db57d['createRange'](_0x32b9b2['position'],_0x32b9b2['position']['getShiftedBy'](0x1));if(!_0x3e7a16['find'](({data:_0x309376})=>_0x309376['newRange']['isEqual'](_0x296ed3))){for(const {name:_0x5b8466,data:_0x656bcf}of _0x3e7a16)if(_0x296ed3['containsRange'](_0x656bcf['newRange'])){_0x2db57d['updateMarker'](_0x5b8466,{'range':_0x296ed3}),_0x17064a=!0x0;break;}}}return _0x17064a;}),_0x22b1dc['model']['document']['registerPostFixer'](_0xfc1bd3=>{let _0x52cdf9=!0x1;const _0x550712=_0x22b1dc['plugins']['get']('Users')['me'],_0x24bd11=_0x13fcf9['getSuggestions']()['filter'](_0x4553fd=>_0x4553fd['isInContent']&&_0x4553fd['author']==_0x550712),_0x29108e=new Set(),_0x153ff9=new Set();for(const _0xbcfd85 of _0x24bd11)if('tablePaste'==_0xbcfd85['subType'])for(const _0x554292 of _0xbcfd85['getMarkers']()){const _0x58d79a=_0x554292['getRange']()['getContainedElement']();if(_0x58d79a){if(_0x58d79a['is']('element','tableCellSuggestion')&&Ke(_0x58d79a)){_0xbcfd85['removeMarker'](_0x554292['name']),_0x29108e['add'](_0x58d79a),_0x52cdf9=!0x0;const _0x6d5962=_0x58d79a['nextSibling'],_0x209522=_0x58d79a['previousSibling'],_0x19b4cd=_0x6d5962&&_0x6d5962['is']('element','tableCellSuggestion'),_0x17e459=_0x209522&&_0x209522['is']('element','tableCellSuggestion');_0x19b4cd&&!_0x29108e['has'](_0x6d5962)&&_0x153ff9['add'](_0x6d5962),_0x17e459&&!_0x29108e['has'](_0x209522)&&_0x153ff9['add'](_0x209522);}else _0x58d79a['is']('element','paragraph')&&_0x58d79a['isEmpty']&&(_0xbcfd85['removeMarker'](_0x554292['name']),_0x52cdf9=!0x0);}}else{if('tablePasteCell'==_0xbcfd85['subType']){if(!_0xbcfd85['attributes']||!_0xbcfd85['attributes']['tablePasteChainId'])continue;const _0x2113a6=_0xbcfd85['attributes']['markerAttributes'];if(_0x2113a6&&Object['keys'](_0x2113a6)['length'])continue;const _0x2269f7=_0xbcfd85['attributes']['tablePasteChainId'];let _0xb310f7=!0x0,_0x2ed552=!0x0;for(const _0xe8738a of _0x24bd11)if(_0xe8738a['subType']&&_0xe8738a['subType']['startsWith']('tablePaste')){if(!_0xe8738a['attributes']['tablePasteChainId']){_0x2ed552=!0x1;break;}if(_0xe8738a['id']!=_0xbcfd85['id']&&_0xe8738a['attributes']['tablePasteChainId']==_0x2269f7){_0xb310f7=!0x1;break;}}_0x2ed552&&_0xb310f7&&(_0xbcfd85['removeMarkers'](),_0x52cdf9=!0x0);}}for(const _0x23757a of _0x29108e)_0xfc1bd3['remove'](_0x23757a);for(const _0x1d72b0 of _0x153ff9)_0xfc1bd3['unwrap'](_0x1d72b0);return _0x52cdf9;}),_0x22b1dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7a3b6d=>_0x2182a7(_0x7a3b6d),'converterPriority':'high'}),_0x22b1dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c2ff4,_0x143da5)=>_0x143da5['options']['showSuggestionHighlights']?_0x2182a7(_0x5c2ff4,!0x1):null,'converterPriority':'high'});const _0x33563d=_0x22b1dc['editing']['view'];this['listenTo'](_0x33563d['document'],'clipboardOutput',(_0x569a6b,_0x26e708)=>{const _0x21f946=[];for(const _0x5c48e8 of _0x33563d['createRangeIn'](_0x26e708['content'])['getItems']())_0x5c48e8['is']('element','suggestion-td')&&_0x21f946['push'](_0x5c48e8);_0x33563d['change'](_0x1a7ed9=>{for(const _0x3cdf70 of _0x21f946)_0x1a7ed9['move'](_0x1a7ed9['createRangeIn'](_0x3cdf70),_0x1a7ed9['createPositionBefore'](_0x3cdf70)),_0x1a7ed9['remove'](_0x3cdf70);});});}};function Ke(_0x3a864a){if(_0x3a864a['isEmpty'])return!0x0;const _0x3aad6b=_0x3a864a['getChild'](0x0);return _0x3aad6b['is']('element','paragraph')&&_0x3aad6b['isEmpty'];}function Xe(_0x132966,_0x147108={},_0x4e343b){for(const {isAnchor:_0x2d79c4,cellHeight:_0x36a13d,cellWidth:_0x237368}of _0x4e343b['createTableWalker'](_0x132966,{'includeAllSlots':!0x0,..._0x147108}))if(!_0x2d79c4||0x1!=_0x36a13d||0x1!=_0x237368)return!0x1;return!0x0;}var qe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e4bc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4bc0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3e4bc0['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xb4498e=_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x9b1ac1,_0x697693)=>{_0xb4498e(_0x9b1ac1,_0x697693),this['_restoreCellWidths'](_0x9b1ac1[0x0]['start']['nodeAfter'],_0x697693['commandParams'][0x0]['cellWidths']);}),_0x3e4bc0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xfd2ec,_0x379853){const _0x5ca75f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa1367a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x487620=_0x379853['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x48f233=_0xa1367a['getColumnGroupElement'](_0x487620);let _0x120b21=_0x48f233?_0xa1367a['getTableColumnsWidths'](_0x48f233):null,_0x526f95=_0x487620['getAttribute']('tableWidth')||null;const _0x537ddc=_0x379853['tableWidth']||_0x526f95,_0x5019dc=_0x379853['columnWidths']||_0x120b21;let _0x4e847e=this['_getCellWidths'](_0x487620);const _0x34a3b4=this['_foldResizeTableSuggestion'](_0x487620);_0x34a3b4&&(_0x526f95=_0x34a3b4['tableWidth'],_0x120b21=_0x34a3b4['columnWidths'],_0x4e847e=_0x34a3b4['cellWidths']||_0x4e847e),_0xfd2ec({'table':_0x487620,'tableWidth':_0x537ddc,'columnWidths':_0x5019dc}),_0x5ca75f['markBlockFormat'](_0x487620,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f95,'columnWidths':_0x120b21,'cellWidths':_0x4e847e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2cfcd9,_0x4537aa={}){if(void 0x0===_0x4537aa['value']||''===_0x4537aa['value'])return void _0x2cfcd9(_0x4537aa);const _0x5818e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf444=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ca04c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x4537aa['batch']||(_0x4537aa['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x4537aa['batch'],()=>{const _0x544c75=_0x3cf444['getColumnGroupElement'](_0x5ca04c);let _0x26ff1b=_0x544c75?_0x3cf444['getTableColumnsWidths'](_0x544c75):null,_0x5adbda=_0x5ca04c['getAttribute']('tableWidth')||null,_0x3bfdef=this['_getCellWidths'](_0x5ca04c);const _0x390f37=this['_foldResizeTableSuggestion'](_0x5ca04c,!0x0);_0x390f37&&(_0x5adbda=_0x390f37['tableWidth'],_0x26ff1b=_0x390f37['columnWidths'],_0x3bfdef=_0x390f37['cellWidths']||_0x3bfdef),_0x2cfcd9(_0x4537aa),_0x5818e9['markBlockFormat'](_0x5ca04c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5adbda,'columnWidths':_0x26ff1b,'cellWidths':_0x3bfdef}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3ffa6c,_0x3b3167=!0x1){const _0xc7112e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f6e5c=this['editor']['plugins']['get']('Users')['me'];for(const _0x397294 of _0xc7112e['getSuggestions']({'skipNotAttached':!0x0})){const _0x23d575=_0x397294['getContainedElement']();if('resizeTable'===_0x397294['subType']&&_0x23d575===_0x3ffa6c){_0x397294['author']!==_0x3f6e5c&&(_0x3b3167?_0x397294['removeMarkers']():_0x397294['discard']());const _0x1a3b97=_0x397294['data']['commandParams'];return{'tableWidth':_0x1a3b97[0x0]['tableWidth'],'columnWidths':_0x1a3b97[0x0]['columnWidths'],'cellWidths':_0x1a3b97[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x68d0a6){const _0x374d54=[];for(const _0x5f20fe of _0x68d0a6['getChildren']())if(_0x5f20fe['is']('element','tableRow')){for(const _0x400d8f of _0x5f20fe['getChildren']())_0x374d54['push'](_0x400d8f['getAttribute']('tableCellWidth')||null);}return _0x374d54;}_restoreCellWidths(_0x120287,_0x52d84c){_0x52d84c&&this['editor']['model']['change'](_0x3e7ddb=>{let _0x109049=0x0;for(const _0x42b9f7 of _0x120287['getChildren']())if(_0x42b9f7['is']('element','tableRow'))for(const _0x308774 of _0x42b9f7['getChildren']()){const _0x1d5e5e=_0x52d84c[_0x109049++];_0x1d5e5e&&_0x3e7ddb['setAttribute']('tableCellWidth',_0x1d5e5e,_0x308774);}});}handleSuggestionDescription(_0x47f410){if('formatBlock'!=_0x47f410['type']&&'formatInline'!=_0x47f410['type'])return;const {data:_0x41cabc}=_0x47f410;return _0x41cabc&&'resizeTable'===_0x41cabc['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x548d2a{afterInit(){const _0x3b290c=this['editor'];_0x3b290c['plugins']['has']('Template')&&_0x3b290c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x548d2a{afterInit(){const _0x4e3ff8=this['editor'];if(!_0x4e3ff8['commands']['get']('insertTableOfContents'))return;_0x4e3ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7db514=_0x4e3ff8['plugins']['get']('TrackChangesEditing'),_0x560300=_0x4e3ff8['locale'];_0x7db514['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1910cf=>Ot(_0x560300,'ELEMENT_TABLE_OF_CONTENTS',_0x1910cf));}},Ze=class extends _0x548d2a{afterInit(){const _0x1b50e8=this['editor'];_0x1b50e8['plugins']['has']('Title')&&(_0x1b50e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1b50e8['locale'],'ELEMENT_TITLE')),_0x1b50e8['model']['document']['registerPostFixer'](_0x3ce0f0=>{let _0x53162e=!0x1;const _0x114fac=Array['from'](_0x1b50e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ad369,data:_0x4cd636}of _0x114fac){const {group:_0x4fa507}=et(_0x1ad369);if('suggestion'!==_0x4fa507||!_0x4cd636['newRange'])continue;const _0x99d2cc=_0x4cd636['newRange'],_0x5caf8a=_0x99d2cc['end']['nodeBefore'];if(!_0x5caf8a||!_0x5caf8a['is']('element','title-content'))continue;if(!_0x99d2cc['start']['isTouching'](_0x99d2cc['end']))continue;const _0xb4c147=_0x1b50e8['model']['schema']['getNearestSelectionRange'](_0x99d2cc['end'],'forward');if(_0xb4c147&&_0xb4c147['isCollapsed']){const _0x15c318=_0x3ce0f0['createRange'](_0x99d2cc['start'],_0xb4c147['start']);_0x15c318['isEqual'](_0x99d2cc)||(_0x3ce0f0['updateMarker'](_0x1ad369,{'range':_0x15c318}),_0x53162e=!0x0);}_0x53162e||(_0x3ce0f0['removeMarker'](_0x1ad369),_0x53162e=!0x0);}return _0x53162e;}));}},Je=class extends _0x548d2a{afterInit(){const _0x2fb64f=this['editor'],_0x3fc01a=_0x2fb64f['plugins']['get']('TrackChangesEditing');_0x2fb64f['plugins']['has']('Uploadcare')&&(_0x3fc01a['enableCommand']('uploadcare'),_0x2fb64f['plugins']['has']('UploadcareImageEdit')&&(_0x3fc01a['enableCommand']('uploadcareImageEdit'),_0x3fc01a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3fc01a['descriptionFactory']['registerDescriptionCallback'](_0xeac986=>{if('attribute'!=_0xeac986['type'])return;const {data:_0xbbc2bb}=_0xeac986;return _0xbbc2bb&&'uploadcareImageId'==_0xbbc2bb['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x548d2a{afterInit(){const _0x3702c7=this['editor'],_0x1f5f35=_0x3702c7['plugins']['get']('TrackChangesEditing');_0x3702c7['plugins']['has']('UndoEditing')&&(_0x1f5f35['enableCommand']('undo'),_0x1f5f35['enableCommand']('redo'));}},en=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5edbac=this['editor'];_0x5edbac['plugins']['has']('TableCaptionEditing')&&_0x5edbac['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x548d2a{tableProperties;tableCellProperties;constructor(_0x1df2b3){super(_0x1df2b3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5888be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x259fa0 of this['tableProperties'])_0x5888be['enableCommand'](_0x259fa0,(_0xdac1f7,_0x2e354a)=>{const _0x2da71a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x259fa0,[_0x2da71a],this['tableProperties'],'tableProperties',_0xdac1f7,_0x2e354a);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7e62bc,_0x561867)=>this['handleDiscardAction'](this['tableProperties'],_0x7e62bc,_0x561867)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42bb15 of this['tableCellProperties'])this['editor']['commands']['get'](_0x42bb15)&&_0x5888be['enableCommand'](_0x42bb15,(_0x27594c,_0x36baa0)=>{const _0x4b5039=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42bb15,_0x4b5039,this['tableCellProperties'],'tableCellProperties',_0x27594c,_0x36baa0);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x370a7d,_0x1312ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x370a7d,_0x1312ab)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5888be['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5888be['descriptionFactory']['registerDescriptionCallback'](_0x549971=>this['handleSuggestionDescription'](_0x549971)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2d5df0,_0x5a05cd,_0x36596e,_0x2558a5,_0x52e756,_0x3ade68){const _0x2c497d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ade68['batch'],()=>{for(const _0x422987 of _0x5a05cd)if(this['_getSuggestion'](_0x422987,_0x2558a5))_0x52e756(_0x3ade68);else{const _0x278854={};for(const _0x868d37 of _0x36596e){const _0x687eff=_0x422987['getAttribute'](_0x868d37);void 0x0!==_0x687eff&&(_0x278854[_0x868d37]=_0x687eff);}const _0x40dc38=this['_getResizedColumnWidths'](_0x422987);_0x40dc38&&(_0x278854['columnWidths']=_0x40dc38),_0x52e756(_0x3ade68),_0x2c497d['markBlockFormat'](_0x422987,{'commandParams':[_0x278854]},[],_0x2558a5);}});}handleDiscardAction(_0x359549,_0x10a783,_0xe8fd52){const _0x5f3a36=_0x10a783[0x0]['start']['nodeAfter'],_0x2b1688=_0xe8fd52['commandParams'][0x0];this['editor']['model']['change'](_0x124c5f=>{for(const _0xa0d169 of _0x359549)void 0x0!==_0x2b1688[_0xa0d169]?_0x124c5f['setAttribute'](_0xa0d169,_0x2b1688[_0xa0d169],_0x5f3a36):_0x124c5f['removeAttribute'](_0xa0d169,_0x5f3a36);if(_0x2b1688['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0xde26e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21e53b=_0xde26e6['getColumnGroupElement'](_0x5f3a36);if(_0x21e53b){const _0x30033a=_0xde26e6['getTableColumnsWidths'](_0x21e53b),_0x52baa8=_0x5f3a36['getAttribute']('tableWidth');if(('string'==typeof _0x52baa8&&_0x52baa8['trim']()['endsWith']('px'))!==_0x30033a['some'](_0x5efd37=>'string'==typeof _0x5efd37&&_0x5efd37['endsWith']('px'))){const _0x53b5fe=_0xde26e6['getTableColumnElements'](_0x21e53b);_0x2b1688['columnWidths']['forEach']((_0x1fca15,_0x557ec7)=>{_0x53b5fe[_0x557ec7]&&_0x124c5f['setAttribute']('columnWidth',_0x1fca15,_0x53b5fe[_0x557ec7]);});}}}});}_getResizedColumnWidths(_0x2ca692){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2ca692['is']('element','table'))return;const _0x3f6004=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e5637=_0x3f6004['getColumnGroupElement'](_0x2ca692);return _0x1e5637?_0x3f6004['getTableColumnsWidths'](_0x1e5637):void 0x0;}handleSuggestionDescription(_0x2aefd8){if(_0x2aefd8['data'])switch(_0x2aefd8['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x50df5b,_0x1f1f56){const _0x27eb88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58e866 of _0x27eb88['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a6992=_0x58e866['getContainedElement']();if(_0x58e866['subType']===_0x1f1f56&&_0x2a6992===_0x50df5b)return _0x58e866;}return null;}_registerTablePropertiesAttributes(){const _0x292052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11585d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3b05bf of _0x11585d){const _0x17c9b2=_0x3b05bf['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x292052['descriptionFactory']['registerAttributeLabel'](_0x3b05bf,Ot(this['editor']['locale'],'FORMAT_'+_0x17c9b2));}}},sn=class extends _0x548d2a{afterInit(){const _0x1213d1=this['editor'];if(!_0x1213d1['plugins']['has']('LineHeight'))return;const _0x49dfa5=_0x1213d1['plugins']['get']('TrackChangesEditing'),_0x11493a=_0x1213d1['locale'];_0x49dfa5['enableDefaultAttributesIntegration']('lineHeight'),_0x49dfa5['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x11493a,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x548d2a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x625dc5,_0x4fbad8,_0x5036c6,_0x6db56a,_0x140123,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531c8f){super(_0x531c8f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e01d5,_0x340421,_0x55aadd,_0x6c2c28)=>{this['_model']['change'](()=>{for(const _0x201f0e of[..._0x6c2c28,..._0x55aadd])this['_model']['markers']['has'](_0x201f0e)&&_0x531c8f['editing']['reconvertMarker'](_0x201f0e);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531c8f['plugins']['get'](_0x625dc5),this['_suggestionsConversion']=_0x531c8f['plugins']['get'](_0x4fbad8),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x531c8f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531c8f['config']['get']('trackChanges.trackFormatChanges'),_0x531c8f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531c8f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x531c8f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1b1877=this['editor'];_0x1b1877['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c5add,{writer:_0x3d95e2})=>{let _0x4e93c7='suggestion:'+_0x3c5add['getAttribute']('suggestion-type')+':'+_0x3c5add['getAttribute']('id');return _0x3c5add['getAttribute']('marker-count')&&(_0x4e93c7+=':'+_0x3c5add['getAttribute']('marker-count')),_0x3d95e2['createElement']('$marker',{'data-name':_0x4e93c7});}}),_0x1b1877['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b1877['model']['document']['registerPostFixer'](_0x3aaefa=>{let _0x4502a7=!0x1;const _0x3360d3=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']()),_0xb240aa=new Set();for(const {name:_0x3b02c6,data:_0x5d83e6}of _0x3360d3){const {group:_0x5d7e46,type:_0x285c15,subType:_0x596367,id:_0x5f45c0}=et(_0x3b02c6);if('suggestion'!==_0x5d7e46)continue;const _0x485f43=_0x596367?'suggestion:'+_0x285c15+':'+_0x596367+':'+_0x5f45c0:'suggestion:'+_0x285c15+':'+_0x5f45c0,_0x43a627=_0x1b1877['model']['markers']['getMarkersGroup'](_0x485f43),_0x2a1169=_0x1b1877['model']['markers']['get'](_0x3b02c6),_0x399cb5=this['_suggestions']['get'](_0x5f45c0);if(null!=_0x5d83e6['newRange']){'formatInline'==_0x285c15&&(_0x4502a7=_0x4502a7||un(_0x5d83e6['newRange'],_0x3b02c6,_0x3aaefa,_0x1b1877['model']['schema']));const _0x2f0643='attribute'==_0x285c15&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x596367)),_0x46b8b1='attribute'==_0x285c15&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x596367));if(_0x5d83e6['newRange']['isCollapsed']||'$graveyard'==_0x5d83e6['newRange']['root']['rootName']||'formatBlock'==_0x285c15&&!hn(_0x5d83e6['newRange'])||_0x2f0643&&!hn(_0x5d83e6['newRange'])||_0x46b8b1&&gn(_0x5d83e6['newRange'])||'deletion'==_0x285c15&&gn(_0x5d83e6['newRange'])||_0x2a1169&&fn(_0x2a1169,_0x43a627))_0x3aaefa['removeMarker'](_0x3b02c6),_0x4502a7=!0x0;else{if(!_0x399cb5||!_0x399cb5['isInContent'])continue;if(_0x5d83e6['newRange']&&_0x5d83e6['oldRange']&&_0x5d83e6['newRange']['isEqual'](_0x5d83e6['oldRange']))continue;_0xb240aa['add'](_0x399cb5);}}}return _0xb240aa['size']>0x0&&(_0x4502a7=!!this['_joinWithAdjacentSuggestions'](_0xb240aa)||_0x4502a7),_0x4502a7;}),_0x1b1877['model']['document']['registerPostFixer'](_0x3f697f=>{let _0x7d2be3=!0x1;for(const _0x2e8960 of _0x1b1877['model']['document']['differ']['getChanges']())if('insert'==_0x2e8960['type'])for(const _0x1b79cf of this['_suggestions']['values']()){if(_0x1b79cf['isMultiRange']||!_0x1b79cf['isInContent'])continue;const _0x3bcb5c='formatBlock'==_0x1b79cf['type'],_0x3b75cd=this['_getAttributeKey'](_0x1b79cf),_0xe0bf56=_0x3b75cd&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b75cd);if(!_0x3bcb5c&&!_0xe0bf56)continue;const _0x16b347=_0x1b79cf['getFirstRange']();if(_0x16b347['start']['parent']!=_0x16b347['end']['parent']&&!_0x16b347['end']['isAtEnd']){const _0x30dbe7=_0x1b1877['model']['createPositionAt'](_0x16b347['start']['nodeAfter'],'end'),_0x576acf=_0x1b1877['model']['createRange'](_0x16b347['start'],_0x30dbe7);_0x3f697f['updateMarker'](_0x1b79cf['getFirstMarker'](),{'range':_0x576acf}),_0x7d2be3=!0x0;}}return _0x7d2be3;}),_0x1b1877['model']['document']['registerPostFixer'](_0x29905b=>this['_processAttributeChanges'](_0x29905b)),_0x1b1877['model']['document']['registerPostFixer'](_0x832018=>!_0x832018['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x832018)),_0x1b1877['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b1877['model']['document']['on']('change:data',(_0x5694ad,_0x46d276)=>{if(!_0x46d276['isLocal']||_0x46d276['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x506d94=_0x1b1877['model']['document']['differ']['getChanges']();if(0x0==_0x506d94['length'])return;const _0x3efb42=[],_0x585a81=_0x506d94['filter'](_0x599b21=>'attribute'==_0x599b21['type']),_0x24a52e=_0x506d94['filter'](_0x20f795=>'insert'==_0x20f795['type']&&'$text'!=_0x20f795['name']);for(const _0x65cae3 of _0x585a81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x65cae3['attributeKey'])&&_0x3efb42['push']({'key':_0x65cae3['attributeKey'],'newValue':_0x65cae3['attributeNewValue'],'oldValue':_0x65cae3['attributeOldValue'],'range':mn(_0x65cae3['range'],_0x1b1877['model'])});for(const _0x5d22b1 of _0x24a52e){if('rename'!=_0x5d22b1['action']&&'refresh'!=_0x5d22b1['action'])continue;const _0x33ca00=En(_0x5d22b1['position']['nodeAfter'],_0x1b1877['model']),_0x5926a4=_0x5d22b1['before'];'rename'==_0x5d22b1['action']&&_0x3efb42['push']({'key':rn,'newValue':_0x5d22b1['name'],'oldValue':_0x5926a4['name'],'range':_0x33ca00});for(const [_0x4b8788,_0x4e789b]of _0x5926a4['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8788))continue;const _0x337743=_0x5d22b1['attributes']['get'](_0x4b8788);_0x4e789b!==_0x337743&&_0x3efb42['push']({'key':_0x4b8788,'newValue':_0x337743,'oldValue':_0x4e789b,'range':_0x33ca00});}for(const [_0x5f0018,_0x3fd68b]of _0x5d22b1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5f0018)&&(_0x5926a4['attributes']['has'](_0x5f0018)||_0x3efb42['push']({'key':_0x5f0018,'newValue':_0x3fd68b,'oldValue':null,'range':_0x33ca00}));}0x0!=_0x3efb42['length']&&_0x1b1877['model']['enqueueChange'](_0x46d276,_0x5a6569=>{const _0xb88a27=_0x1dfb7c();for(const {range:_0x289e94,key:_0x80699c,oldValue:_0x16fb0f,newValue:_0x3312e0}of _0x3efb42)this['markAttributeChange'](_0x289e94,_0x80699c,_0x16fb0f,_0x3312e0,{'groupId':_0xb88a27});this['_reduceExistingSuggestions'](_0x5a6569,_0x3efb42);});},{'priority':'lowest'}),_0x1b1877['model']['markers']['on']('update:suggestion',(_0x29d6d5,_0x1cb229,_0x5deac0)=>{if(null==_0x5deac0){const {id:_0x18f90b}=et(_0x1cb229['name']),_0x4d3ecb=this['_suggestions']['get'](_0x18f90b);_0x4d3ecb&&_0x4d3ecb['addMarkerName'](_0x1cb229['name']);}}),_0x1b1877['model']['document']['on']('change:data',()=>{const _0x256b7d=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10435e=>'suggestion'===et(_0x10435e['name'])['group']);if(0x0===_0x256b7d['length'])return;_0x256b7d['sort']((_0x499ec8,_0x4acf70)=>{const _0x6cd00e=_0x499ec8['data']['oldRange'],_0x548add=_0x4acf70['data']['oldRange'];return null===_0x6cd00e&&null===_0x548add?0x0:null===_0x6cd00e&&null!==_0x548add?-0x1:null!==_0x6cd00e&&null===_0x548add?0x1:_0x6cd00e['start']['isBefore'](_0x548add['start'])?-0x1:0x1;});const _0x5ab119=new Set(),_0x407246=new Set();for(const {name:_0xc47b0e,data:_0x1c897c}of _0x256b7d){const {id:_0x576c4d}=et(_0xc47b0e);if(null===_0x1c897c['oldRange']){const _0x3ea10a=this['_handleNewSuggestionMarker'](_0xc47b0e);_0x407246['add'](_0x3ea10a);}else{const _0x5c431f=this['_suggestions']['get'](_0x576c4d);null!==_0x1c897c['newRange']||_0x5c431f['isInContent']?(_0x5ab119['add'](_0x5c431f['head']),_0x407246['add'](_0x5c431f)):this['_removeSuggestion'](_0x5c431f);}}_0x407246['size']>0x0&&this['_refreshSuggestionsChain'](_0x407246);for(const _0x3dd4c9 of _0x5ab119)this['fire']('suggestionChanged',_0x3dd4c9);}),_0x1b1877['model']['on']('applyOperation',(_0x57fe2d,_0x1202ee)=>{const _0x1de11c=_0x1202ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x1de11c['isDocumentOperation'])return;if(_0x1de11c['batch']['isUndo']||!_0x1de11c['batch']['isLocal'])return;let _0xbb2acf,_0x48f4ee;switch(_0x1de11c['type']){case'insert':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['position']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;case'split':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['splitPosition']),_0x48f4ee=_0x1b1877['model']['createPositionAt'](_0x1de11c['moveTargetPosition']);break;case'move':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['targetPosition']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;default:return;}const _0x630962=_0x1b1877['model']['createRange'](_0xbb2acf,_0x48f4ee);_0x1b1877['model']['change'](()=>{for(const {suggestion:_0x572b28,meta:_0x4c51d7}of this['_findSuggestions'](_0x630962)){if(_0x572b28['isMultiRange'])continue;if('formatInline'==_0x572b28['type'])continue;const _0x17159b=this['_getAttributeKey'](_0x572b28);if(_0x17159b&&this['_suggestionsConversion']['isBlockAttribute'](_0x17159b)&&'split'!=_0x1de11c['type'])continue;const _0x98cc31=_0x572b28['data']&&_0x572b28['data']['multipleBlocks'];('formatBlock'!=_0x572b28['type']||'split'==_0x1de11c['type']&&!_0x98cc31)&&(_0x4c51d7['containsRangeInObject']||'insertion'==_0x572b28['type']&&_0x4c51d7['isOwn']||_0x572b28['getFirstRange']()['containsRange'](_0x630962)&&this['_breakSuggestionMarker'](_0x572b28,_0xbb2acf,_0x48f4ee));}});},{'priority':'lowest'}),_0x1b1877['model']['on']('deleteContent',(_0x277287,_0x52360d)=>{const _0xf2759=_0x52360d[0x0],_0x498b89=_0x52360d[0x1];if(_0x498b89&&_0x498b89['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf2759['isCollapsed'])return;const _0x549323=_0x1b1877['model']['schema'],{start:_0x279c48,end:_0x4be0d1}=_0xf2759['getFirstRange'](),_0xa1e3f3=_0x279c48['nodeAfter']&&_0x549323['isLimit'](_0x279c48['nodeAfter'])?null:_0x549323['getNearestSelectionRange'](_0x279c48,'forward'),_0x3b6ef9=_0x4be0d1['nodeBefore']&&_0x549323['isLimit'](_0x4be0d1['nodeBefore'])?null:_0x549323['getNearestSelectionRange'](_0x4be0d1,'backward'),_0x391a63=_0x1b1877['model']['createRange'](_0xa1e3f3?_0xa1e3f3['start']:_0x279c48,_0x3b6ef9?_0x3b6ef9['end']:_0x4be0d1);_0x1b1877['model']['change'](_0x3c0df4=>{this['markDeletion'](_0x391a63);const _0x4c5d60=_0x1b1877['model']['schema']['getNearestSelectionRange'](_0x391a63['start']);_0xf2759['is']('documentSelection')?_0x3c0df4['setSelection'](_0x4c5d60):_0xf2759['setTo'](_0x4c5d60);}),_0x277287['stop']();},{'priority':_0x5e908b['normal']+0xa}),_0x1b1877['model']['on']('insertContent',(_0x4fa226,_0x34bc1b)=>{const _0x5930a1=_0x34bc1b[_0x34bc1b['length']-0x1];_0x5930a1&&_0x5930a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b1877['model']['change'](()=>{let _0x10cd33=_0x1b1877['model']['insertContent'](_0x34bc1b[0x0],_0x34bc1b[0x1],_0x34bc1b[0x2],{'forceDefaultExecution':!0x0});if(!_0x10cd33)return;_0x4fa226['return']=_0x10cd33['clone']();const _0x12e1a4=_0x10cd33['end']['nodeBefore'],_0x357deb=_0x1b1877['model']['schema'];_0x12e1a4&&_0x357deb['isBlock'](_0x12e1a4)&&!_0x357deb['isObject'](_0x12e1a4)&&(_0x10cd33=_0x1b1877['model']['createRange'](_0x10cd33['start'],_0x1b1877['model']['createPositionAt'](_0x12e1a4,'end'))),this['markInsertion'](_0x10cd33);}),_0x4fa226['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c4ff=new pt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('acceptSuggestion',_0x26c4ff),this['enableCommand']('acceptSuggestion');const _0x98c2a6=new Lt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('discardSuggestion',_0x98c2a6),this['enableCommand']('discardSuggestion'),_0x1b1877['commands']['add']('acceptAllSuggestions',new yt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b1877['commands']['add']('discardAllSuggestions',new yt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b1877['commands']['add']('acceptSelectedSuggestions',new Nt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b1877['commands']['add']('discardSelectedSuggestions',new Nt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e9652=_0x1b1877['plugins']['get'](_0x625dc5);this['listenTo'](_0x3e9652,'addComment',(_0x160bf7,{threadId:_0xc58a00})=>{const _0x2b1e45=this['_suggestions']['get'](_0xc58a00);_0x2b1e45&&_0x2b1e45['commentThread']&&0x1===_0x2b1e45['commentThread']['length']&&this['_updateSuggestionData'](_0xc58a00,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e9652,'removeComment',(_0x12c0a0,{threadId:_0x426a14})=>{const _0x3adf8e=this['_suggestions']['get'](_0x426a14);_0x3adf8e&&_0x3adf8e['commentThread']&&!_0x3adf8e['commentThread']['length']&&this['_updateSuggestionData'](_0x426a14,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x585675){const _0x4a9385='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0xf6046=0x79128,_0x50c0fc=window['Date']['now'](),_0x226420=_0x585675['editor'],_0x5a4556=new window['Promise'](_0x45036e=>{_0x226420['once']('ready',_0x45036e);}),_0x16721c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xe45b36=_0x226420['config']['get']('licenseKey');async function _0x4e5db8(){let _0x1e80e1,_0x5186ef=null,_0x22570f=null;try{return'GPL'==_0xe45b36?'NotAllowed':(_0x1e80e1=_0x401ea7(),_0x1e80e1?(_0x1e80e1['usageEndpoint']&&(_0x22570f=_0x1b2ace(_0x1e80e1['usageEndpoint'],_0x1e80e1['jti'])),await _0x835f87()?_0x349023()?_0x79003e()?'Expired':_0x510e99()?('evaluation'==_0x1e80e1['licenseType']&&(_0x5186ef=_0x57b6dc('EvaluationLimit')),await _0x272569()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x79003e(){const _0x214292=['evaluation','trial']['includes'](_0x1e80e1['licenseType'])?_0x50c0fc/0x3e8:0xe10*_0xf6046;return _0x1e80e1['exp']<_0x214292;}function _0x349023(){const _0x260871=_0x1e80e1['features'];if(!_0x260871)return!0x1;if(_0x260871['includes']('*'))return!0x0;if(_0x260871['includes']('TC'))return!0x0;if(_0x260871['includes']('RTC')){if(_0x139882())return!0x0;if(_0x413fe2()||_0x546bcc())return!0x0;}return!0x1;}function _0x510e99(){const _0x5c1e88=_0x1e80e1['licensedHosts'];if(!_0x5c1e88||0x0==_0x5c1e88['length'])return!0x0;const {hostname:_0x1d0014}=new URL(window['location']['href']);if(_0x5c1e88['includes'](_0x1d0014))return!0x0;const _0x3cc249=_0x1d0014['split']('.');return _0x5c1e88['filter'](_0x292313=>_0x292313['includes']('*'))['map'](_0x1ef3fd=>_0x1ef3fd['split']('.'))['filter'](_0x3c216a=>_0x3c216a['length']<=_0x3cc249['length'])['map'](_0x1c5c62=>Array(_0x3cc249['length']-_0x1c5c62['length'])['fill']('*'===_0x1c5c62[0x0]?'*':'')['concat'](_0x1c5c62))['some'](_0x410b01=>_0x3cc249['every']((_0x433654,_0x200ffc)=>_0x410b01[_0x200ffc]===_0x433654||'*'===_0x410b01[_0x200ffc]));}function _0x272569(){return _0x5186ef&&_0x22570f?new window['Promise']((_0x239861,_0x567645)=>{_0x5186ef['then'](_0x239861,_0x567645),_0x22570f['then'](_0x4bc531=>{'Valid'!=_0x4bc531&&_0x239861(_0x4bc531);},_0x567645);}):_0x5186ef||_0x22570f||'Valid';}}function _0x1b2ace(_0x29b589,_0x194d38){return new window['Promise'](_0x144d3f=>{if(_0x4f7680())return _0x144d3f('Valid');_0x31cdac(),_0x226420['decorate']('_sendUsageRequest');let _0x266454=!0x1;const _0x1c39d6=_0x1dfb7c();function _0x4e28e8(_0x3af1a4){return!!_0x3af1a4&&('object'==typeof _0x3af1a4||'function'==typeof _0x3af1a4)&&'function'==typeof _0x3af1a4['then']&&'function'==typeof _0x3af1a4['catch'];}function _0x4f6bcb(_0x20ea27){_0x2b88da(_0x20ea27)['then'](_0x2c6309=>_0x2c6309&&'ok'==_0x2c6309['status']?_0x5ce06c(_0x538ad9(_0x1c39d6+_0x194d38))!=_0x2c6309['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26240d=>(_0x3eef28(),_0x26240d),()=>{const _0x4c2496=_0x5792ec();return null==_0x4c2496?(_0x3eef28(),'Valid'):_0x50c0fc-_0x4c2496>0x240c8400?'UsageLimit':'Valid';})['then'](_0x144d3f)['catch'](()=>{_0x144d3f('UsageLimit');});const _0x2b29ee=0x36ee80;function _0x3eef28(){const _0x2cb67d='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x3d3f50=_0x163873(_0x5ce06c(window['Math']['ceil'](_0x50c0fc/_0x2b29ee)));window['localStorage']['setItem'](_0x2cb67d,_0x3d3f50);}function _0x5792ec(){const _0x1f9f95='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x4374ad=window['localStorage']['getItem'](_0x1f9f95);return _0x4374ad?window['parseInt'](_0x163873(_0x4374ad),0x10)*_0x2b29ee:null;}function _0x2b88da(_0x5527a6){return new window['Promise']((_0x2f17aa,_0x48e668)=>{_0x5527a6['then'](_0x2f17aa,_0x48e668),window['setTimeout'](_0x48e668,0x1d4c0);});}}_0x226420['on']('_sendUsageRequest',(_0x31e391,_0x917fc4)=>{if(_0x917fc4[0x0]!=_0x29b589)return _0x144d3f('UsageLimit');_0x917fc4[0x1]={..._0x917fc4[0x1],'requestId':_0x1c39d6};},{'priority':'high'}),_0x226420['on']('_sendUsageRequest',_0x35f06e=>{_0x4e28e8(_0x35f06e['return'])&&(_0x266454=!0x0,_0x4f6bcb(_0x35f06e['return']));},{'priority':'low'}),_0x5a4556['then'](()=>{_0x266454||_0x144d3f('UsageLimit');});});function _0x4f7680(){return'auto'==_0x226420['editing']['view']['_overlayModeHint'];}function _0x31cdac(){_0x226420['editing']['view']['_overlayModeHint']='auto';}}function _0x57b6dc(_0x54cd92){const _0x25fb0a=[new window['Promise'](_0x15e383=>setTimeout(_0x15e383,0x93ecc)),_0x5a4556['then'](()=>new window['Promise'](_0x38a1a9=>{let _0x10b3d7=0x0;_0x226420['model']['on']('applyOperation',(_0x13f40b,_0x424dd8)=>{_0x424dd8[0x0]['isDocumentOperation']&&_0x10b3d7++,0x5e8==_0x10b3d7&&(_0x38a1a9(),_0x13f40b['off']());});}))];return window['Promise']['race'](_0x25fb0a)['then'](()=>_0x54cd92);}async function _0x4dd158(){await _0x5a4556,_0x226420['model']['change']=_0x160afa,_0x226420['model']['enqueueChange']=_0x160afa,_0x226420['enableReadOnlyMode']('model');}function _0x139882(){return _0x509c73('WebSocketGateway')&&'connected'==_0x26270f('WebSocketGateway')['state'];}function _0x413fe2(){return _0x509c73('RevisionViewerIntegration');}function _0x546bcc(){return _0x509c73('TrackChangesDataGetter');}function _0x1750c1(_0x58b910){const _0x3bc73a=_0x3ffb27();_0x226420[_0x3bc73a]='trackChangesLicenseKey'+_0x58b910,'Valid'!=_0x58b910&&_0x4dd158();}function _0x3ffb27(){const _0x160b11=window['String'](window['performance']['now']())['replace']('.','');let _0x535130='R';for(let _0x212d82=0x0;_0x212d82<_0x160b11['length'];_0x212d82+=0x2){let _0x258958=window['parseInt'](_0x160b11['substring'](_0x212d82,_0x212d82+0x2));_0x258958>=0x3e&&(_0x258958-=0x3e),_0x535130+=_0x4a9385[_0x258958];}return _0x535130;}function _0x401ea7(){const _0x3aeef7=_0xe45b36['split']('.');if(0x3!=_0x3aeef7['length'])return null;return _0x58805f(_0x3aeef7[0x1]);function _0x58805f(_0x4ed7fc){const _0x5d78ac=_0x53e05a(_0x4ed7fc);return _0x5d78ac&&_0x414b2b()?_0x5d78ac:null;function _0x414b2b(){const _0x3afd78=_0x5d78ac['jti'],_0x209254=window['parseInt'](_0x3afd78['substring'](_0x3afd78['length']-0x8),0x10),_0x235e85={..._0x5d78ac,'jti':_0x3afd78['substring'](0x0,_0x3afd78['length']-0x8)};return delete _0x235e85['vc'],_0x538ad9(_0x235e85)==_0x209254;}}}async function _0x835f87(){let _0x5deb7d=!0x0;try{const [_0x2f898f,_0x5ba9a8,_0x8a395]=_0xe45b36['split']('.');return _0x1c4265(_0x2f898f),await _0x430f3a(_0x2f898f,_0x5ba9a8,_0x8a395),_0x5deb7d;}catch{return!0x1;}function _0x1c4265(_0x19fadd){const _0x2abba1=_0x53e05a(_0x19fadd);_0x2abba1&&'ES256'==_0x2abba1['alg']||(_0x5deb7d=!0x1);}async function _0x430f3a(_0x2f0d5d,_0x4e7619,_0x14f218){const _0x1c3904=window['Uint8Array']['from'](_0x2ed528(_0x14f218),_0x4287a7=>_0x4287a7['charCodeAt'](0x0)),_0xf4edd7=new window['TextEncoder']()['encode'](_0x2f0d5d+'.'+_0x4e7619),_0x1a3763=window['crypto']['subtle'];if(!_0x1a3763)return;const _0x5e3338=await _0x1a3763['importKey']('jwk',_0x16721c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1a3763['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e3338,_0x1c3904,_0xf4edd7)||(_0x5deb7d=!0x1);}}function _0x53e05a(_0x18b5f9){return _0x18b5f9['startsWith']('ey')?JSON['parse'](_0x2ed528(_0x18b5f9)):null;}function _0x2ed528(_0x4f4938){return window['atob'](_0x4f4938['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x538ad9(_0x318f7c){let _0xff9eb4=0x1505;function _0x38c2cf(_0x369c80){for(let _0x178e1b=0x0;_0x178e1b<_0x369c80['length'];_0x178e1b++){const _0x50686b=_0x369c80['charCodeAt'](_0x178e1b);_0xff9eb4=(_0xff9eb4<<0x5)+_0xff9eb4+_0x50686b,_0xff9eb4&=_0xff9eb4;}}function _0x2c12dc(_0x1d4f01){Array['isArray'](_0x1d4f01)?_0x1d4f01['forEach'](_0x2c12dc):_0x1d4f01&&'object'==typeof _0x1d4f01?Object['entries'](_0x1d4f01)['sort']()['forEach'](([_0x23baa6,_0x217fea])=>{_0x38c2cf(_0x23baa6),_0x2c12dc(_0x217fea);}):_0x38c2cf(window['String'](_0x1d4f01));}return _0x2c12dc(_0x318f7c),_0xff9eb4>>>0x0;}function _0x5ce06c(_0x2c4a13){return _0x2c4a13['toString'](0x10)['padStart'](0x8,'0');}function _0x163873(_0x706864){return _0x706864['split']('')['reverse']()['join']('');}function _0x509c73(_0x219a67){return _0x226420['plugins']['has'](_0x219a67);}function _0x26270f(_0x43c0e0){return _0x226420['plugins']['get'](_0x43c0e0);}function _0x160afa(){}_0x1750c1(await _0x4e5db8());}(this);}set adapter(_0x160fe8){if(this['_adapter'])throw new _0x4ce3e1('track-changes-adapter-already-set',this);this['_adapter']=_0x160fe8;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1ad71a=!0x1,toJSON:_0x3b0a2e=!0x1}={}){const _0x225195=[];for(const _0x5246c8 of this['_suggestions']['values']())_0x1ad71a&&!_0x5246c8['isInContent']||_0x225195['push'](_0x5246c8);return _0x3b0a2e?_0x225195['map'](_0x4af92a=>_0x4af92a['toJSON']()):_0x225195;}getSuggestion(_0x16cf20){const _0xa89856=this['_suggestions']['get'](_0x16cf20);if(!_0xa89856)throw new _0x4ce3e1('track-changes-suggestion-not-found',this);return _0xa89856;}hasSuggestion(_0x2972aa){return this['_suggestions']['has'](_0x2972aa);}addSuggestionData(_0x44bdae){const {authorId:_0x1ab59b,id:_0x2a6cc5,originalSuggestionId:_0x1a9197,attributes:_0x1c7ee6}=_0x44bdae,[_0x3b60a8,_0x482657]=_0x44bdae['type']['split'](':'),_0x53ec77=this['_suggestions']['get'](_0x2a6cc5)||this['_createSuggestion'](_0x3b60a8,_0x482657,_0x2a6cc5,_0x1ab59b,_0x1c7ee6,_0x1a9197);if(this['_addThreadToSuggestion'](_0x53ec77),this['_checkSuggestionCorrectness'](_0x53ec77,_0x3b60a8,_0x482657||null,_0x1ab59b),_0x53ec77['createdAt']=_0x44bdae['createdAt'],_0x53ec77['_isDataLoaded']=!0x0,_0x1c7ee6&&_0x1c7ee6['@external']){const _0x2609c6=_0x1c7ee6['@external'],_0x52e6d4=this['_getExternalAuthor'](_0x2609c6['authorName']);_0x53ec77['authoredAt']=_0x2609c6['createdAt'],_0x53ec77['author']=_0x52e6d4;}else _0x53ec77['authoredAt']=_0x44bdae['createdAt'];switch(_0x44bdae['data']&&(_0x53ec77['data']=_0x44bdae['data']),_0x44bdae['attributes']&&(_0x53ec77['attributes']=_0x44bdae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53ec77['_saved']=!0x0),this['_suggestionState']['get'](_0x53ec77)){case'notReady':this['_suggestionState']['set'](_0x53ec77,'dataReady');break;case'markerReady':_0x53ec77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53ec77])),this['_refreshSuggestionsChain'](new Set([_0x53ec77])),this['_suggestionState']['set'](_0x53ec77,'ready'),this['fire']('suggestionLoaded',_0x53ec77)):this['_suggestionState']['set'](_0x53ec77,'removed');}return _0x53ec77;}acceptSuggestion(_0x38cd6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a20e0 of _0x38cd6f['getAllAdjacentSuggestions']())_0x2a20e0['accept']();});});}discardSuggestion(_0x52cc1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d0631 of _0x52cc1e['getAllAdjacentSuggestions']())_0x2d0631['discard']();});});}['enableCommand'](_0x117994,_0x50af5e){const _0x463d30=this['editor']['commands']['get'](_0x117994);if(!_0x463d30)throw new _0x4ce3e1('track-changes-command-not-found',this,{'commandName':_0x117994});if(this['_enabledCommands']['has'](_0x463d30))throw new _0x4ce3e1('track-changes-enable-command-twice',this,{'commandName':_0x117994});this['_enabledCommands']['add'](_0x463d30),_0x50af5e&&_0x463d30['on']('execute',(_0x273711,_0x2e9cf1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9cf1['length']>0x0&&_0x2e9cf1[_0x2e9cf1['length']-0x1]&&_0x2e9cf1[_0x2e9cf1['length']-0x1]['forceDefaultExecution']?_0x2e9cf1['pop']():(_0x273711['return']=_0x50af5e((..._0x1050ef)=>_0x463d30['execute'](..._0x1050ef,{'forceDefaultExecution':!0x0}),..._0x2e9cf1),_0x273711['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3ddbe5){let _0x3c5704,_0x2cd51a;const _0x19e903=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c5704=_0x3ddbe5();}catch(_0x2ff273){_0x2cd51a=_0x2ff273;}return _0x19e903||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cd51a&&_0x4ce3e1['rethrowUnexpectedError'](_0x2cd51a,this),_0x3c5704;}markInsertion(_0xa3e3a3,_0x205b9d=null,_0x3e041a={}){if(_0xa3e3a3['isCollapsed'])return null;const _0x2c0c51=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e041a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5696c9,meta:_0x202222}of this['_findSuggestions'](_0xa3e3a3,'insertion'))if(_0x202222['isOwn']){if(!_0x202222['isNextTo']){if(_0x202222['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x5696c9,_0x3e041a))continue;return _0x5696c9;}if(pn(_0x5696c9,_0x3e041a))return _0x5696c9;this['_breakSuggestionMarker'](_0x5696c9,_0xa3e3a3['start'],_0xa3e3a3['end']);break;}if(_0x205b9d==_0x5696c9['subType']&&pn(_0x5696c9,_0x3e041a)){const _0x1d4de4=_0x5696c9['getFirstRange']();return _0x1d4de4['start']['isEqual'](_0xa3e3a3['end'])?this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0xa3e3a3['start'],_0x1d4de4['end'])):this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0x1d4de4['start'],_0xa3e3a3['end'])),_0x5696c9;}}const _0x380d81=_0x1dfb7c(),_0x1cf8f0=_0x2c0c51['id'],_0x46d68e=_0x205b9d?'insertion:'+_0x205b9d:'insertion',_0x1047a1=this['_setSuggestionData']({'id':_0x380d81,'type':_0x46d68e,'createdAt':new Date(),'authorId':_0x1cf8f0,'attributes':_0x3e041a});return this['_addSuggestionMarker'](_0x46d68e,_0x380d81,_0x1cf8f0,_0xa3e3a3),_0x1047a1;}markMultiRangeInsertion(_0x444462,_0x41839c='multi',_0x2e0953={}){const _0x3b6b81=this['editor']['plugins']['get']('Users')['me'],_0x332a17=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41839c,'join');this['_trackingSessionId']&&(_0x2e0953['trackingSessionId']=this['_trackingSessionId']);for(const _0x28b3cd of this['getSuggestions']())if(_0x28b3cd['author']['id']==_0x3b6b81['id']&&'insertion'==_0x28b3cd['type']&&_0x28b3cd['subType']==_0x41839c&&pn(_0x28b3cd,_0x2e0953)&&(_0x332a17(_0x28b3cd['getRanges'](),_0x444462)||_0x332a17(_0x444462,_0x28b3cd['getRanges']()))){for(const _0x225495 of _0x444462)_0x28b3cd['addRange'](_0x225495);return _0x28b3cd;}for(const {suggestion:_0x556260,meta:_0x57ca3f}of this['_findSuggestions'](_0x444462,'insertion')){if(!_0x57ca3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57ca3f['containsRangeInObject'])continue;if(!pn(_0x556260,_0x2e0953))continue;let _0x560926=!0x0;for(const _0x29abb4 of _0x556260['getRanges']())for(const _0x3689a7 of _0x444462)if(!_0x29abb4['containsRange'](_0x3689a7)){_0x560926=!0x1;break;}if(_0x560926)return _0x556260;}const _0x3d925a=_0x1dfb7c(),_0x11ab34=_0x3b6b81['id'],_0x3fbf33='insertion:'+_0x41839c,_0x532149=this['_setSuggestionData']({'id':_0x3d925a,'type':_0x3fbf33,'createdAt':new Date(),'authorId':_0x11ab34,'attributes':_0x2e0953});for(const _0x2033fc of _0x444462)this['_addSuggestionMarker'](_0x3fbf33,_0x3d925a,_0x11ab34,_0x2033fc,Mt['getMultiRangeId']());return _0x532149;}markInlineFormat(_0x260ac3,_0xa525f8,_0x1f4472=null,_0x14256d={}){if(_0x1f4472=_0x1f4472||dn(_0xa525f8),_0x260ac3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14256d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46c14e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');return this['forceDefaultExecution'](()=>_0x46c14e([_0x260ac3],_0xa525f8,_0x14256d)),null;}const _0x18d6f8=this['editor']['plugins']['get']('Users')['me'],_0x563d2c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb83b2c,meta:_0x37871c}of this['_findSuggestions'](_0x260ac3,'insertion'))_0x37871c['isOwn']&&!_0x37871c['isInsideObject']&&_0x563d2c['push'](..._0xb83b2c['getRanges']());}const _0x178bed=function(_0xb7f275,_0x4a0220){const _0x384566=[];for(const _0x4b881b of _0x4a0220){const _0x40a407=_0xb7f275['getIntersection'](_0x4b881b);_0x40a407&&_0x384566['push'](_0x40a407);}return _0x384566;}(_0x260ac3,_0x563d2c),_0x44b0ec=function(_0x515f38,_0xb4787b){const _0x3c8752=[_0x515f38];for(const _0x3691c2 of _0xb4787b){let _0x508ff6=0x0;for(;_0x508ff6<_0x3c8752['length'];){const _0xa45e9=_0x3c8752[_0x508ff6]['getDifference'](_0x3691c2);_0x3c8752['splice'](_0x508ff6,0x1,..._0xa45e9),_0x508ff6+=_0xa45e9['length'];}}return _0x3c8752;}(_0x260ac3,_0x563d2c);_0x178bed['length']&&this['_model']['change'](()=>{for(const _0x50096b of _0x178bed){const _0x4c381c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');this['forceDefaultExecution'](()=>_0x4c381c([_0x50096b],_0xa525f8,_0x14256d));}});for(const _0x43efe3 of _0x44b0ec){let _0x195da6=null,_0x3c1c0e=_0x43efe3['start'],_0x5d30ae=_0x43efe3['end'];for(const {suggestion:_0x2f034b,meta:_0x1b5638}of this['_findSuggestions'](_0x43efe3,'formatInline')){if(!_0x1b5638['isOwn'])continue;if(_0x2f034b['subType']!=_0x1f4472)continue;if(!pn(_0x2f034b,_0x14256d))continue;const _0x3122c0=_0x2f034b['getFirstRange']();if(_0x3122c0['containsRange'](_0x43efe3,!0x0))return null;_0x3c1c0e=_0x3c1c0e['isBefore'](_0x3122c0['start'])?_0x3c1c0e:_0x3122c0['start'],_0x5d30ae=_0x5d30ae['isAfter'](_0x3122c0['end'])?_0x5d30ae:_0x3122c0['end'],_0x195da6?_0x3122c0['start']['isBefore'](_0x195da6['getFirstRange']()['start'])?(_0x195da6['removeMarkers'](),_0x195da6=_0x2f034b):_0x2f034b['removeMarkers']():_0x195da6=_0x2f034b;}const _0x1fd20e=this['_model']['createRange'](_0x3c1c0e,_0x5d30ae);if(_0x195da6)this['_setSuggestionRange'](_0x195da6,_0x1fd20e);else{const _0xb680f3=_0x1dfb7c(),_0x96984f=_0x18d6f8['id'];this['_setSuggestionData']({'id':_0xb680f3,'type':'formatInline:'+_0x1f4472,'data':_0xa525f8,'createdAt':new Date(),'authorId':_0x96984f,'attributes':_0x14256d}),this['_addSuggestionMarker']('formatInline:'+_0x1f4472,_0xb680f3,_0x96984f,_0x1fd20e);}}return null;}markBlockFormat(_0x329809,_0x2d183f,_0x10793e=[],_0xe3b253=null,_0x23cd7a={}){_0x2d183f['formatGroupId']||(_0x2d183f['formatGroupId']=_0x2d183f['commandName']),_0x2d183f['multipleBlocks']=_0x329809['is']('range'),_0xe3b253=_0xe3b253||dn(_0x2d183f);const _0x250cc9=_0x10793e['map'](_0x3b4739=>En(_0x3b4739,this['_model'])),_0x5cad0d=_0x329809['is']('range')?_0x329809:En(_0x329809,this['_model']);if(this['_trackingSessionId']&&(_0x23cd7a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x447013=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x447013([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}_0x250cc9['push'](_0x5cad0d);let _0xe2adb1=!0x0;for(const _0x21d8da of _0x250cc9)if(!this['_rangeIsInLocalUserInsertion'](_0x21d8da)){_0xe2adb1=!0x1;break;}if(_0xe2adb1&&'always'!==this['_trackFormatChanges']){const _0x429d90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x429d90([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}let _0x5bbcfb=null,_0x1ac2d4=_0x5cad0d['start'],_0x226eb1=_0x5cad0d['end'];for(const {suggestion:_0x592945,meta:_0x7db99e}of this['_findSuggestions'](_0x5cad0d,'formatBlock')){if(!_0x7db99e['isOwn'])continue;if(_0x7db99e['isNextTo']||_0x7db99e['containsRangeInObject']||_0x7db99e['isInsideObject'])continue;if(_0x592945['data']['formatGroupId']!=_0x2d183f['formatGroupId'])continue;if(!pn(_0x592945,_0x23cd7a))continue;const _0x550920=_0x592945['getFirstRange']();if(_0x592945['subType']==_0xe3b253){if(_0x550920['containsRange'](_0x5cad0d,!0x0))return null;_0x1ac2d4=_0x1ac2d4['isBefore'](_0x550920['start'])?_0x1ac2d4:_0x550920['start'],_0x226eb1=_0x226eb1['isAfter'](_0x550920['end'])?_0x226eb1:_0x550920['end'],_0x5bbcfb?_0x550920['start']['isBefore'](_0x5bbcfb['getFirstRange']()['start'])?(_0x5bbcfb['removeMarkers'](),_0x5bbcfb=_0x592945):_0x592945['removeMarkers']():_0x5bbcfb=_0x592945;}else{const _0x555037=_0x5cad0d['getIntersection'](_0x550920);this['_cutOutSuggestionMarker'](_0x592945,_0x555037);}}const _0x1cb665=this['editor']['plugins']['get']('Users')['me'],_0xa45154=_0x1dfb7c(),_0x232bc5=_0x1cb665['id'];if(_0x5bbcfb)return this['_setSuggestionRange'](_0x5bbcfb,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x5bbcfb;{const _0x2bac1f=this['_setSuggestionData']({'id':_0xa45154,'type':'formatBlock:'+_0xe3b253,'data':_0x2d183f,'createdAt':new Date(),'authorId':_0x232bc5,'attributes':_0x23cd7a});return this['_addSuggestionMarker']('formatBlock:'+_0xe3b253,_0xa45154,_0x232bc5,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x2bac1f;}}markMultiRangeBlockFormat(_0x199956,_0x106491,_0x5734d3=[],_0x26902a=null,_0x442a4e={}){_0x106491['formatGroupId']||(_0x106491['formatGroupId']=_0x106491['commandName']);const _0x4b8e0a=_0x199956[0x0];_0x106491['multipleBlocks']=_0x4b8e0a['is']('range'),_0x26902a=_0x26902a||dn(_0x106491);const _0x654097=_0x5734d3['map'](_0x10fd66=>En(_0x10fd66,this['_model'])),_0x3abc29=_0x4b8e0a['is']('range')?_0x199956:_0x199956['map'](_0x5031bc=>En(_0x5031bc,this['_model']));if(this['_trackingSessionId']&&(_0x442a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x34bb6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x34bb6f(_0x3abc29,_0x106491,_0x442a4e)),null;}_0x654097['push'](..._0x3abc29);let _0x52db1e=!0x0;for(const _0x17cd23 of _0x654097)if(!this['_rangeIsInLocalUserInsertion'](_0x17cd23)){_0x52db1e=!0x1;break;}if(_0x52db1e&&'always'!==this['_trackFormatChanges']){const _0x3e8306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x3e8306(_0x3abc29,_0x106491,_0x442a4e)),null;}const _0x3405f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x5124f9 of this['getSuggestions']()){const _0x422a8a=_0x5124f9['data'];if(_0x5124f9['author']['id']!=_0x3405f3['id'])continue;if('formatBlock'!=_0x5124f9['type']||_0x422a8a['formatGroupId']!=_0x106491['formatGroupId'])continue;if(!pn(_0x5124f9,_0x442a4e))continue;const _0x4a9236=_0x5124f9['subType']==_0x26902a;for(let _0x1ae7c1=0x0;_0x1ae7c1<_0x3abc29['length'];_0x1ae7c1++){const _0x57cdb8=_0x3abc29[_0x1ae7c1];for(const _0x2ce648 of _0x5124f9['getMarkers']()){const _0x24f10c=_0x2ce648['getRange']();if(_0x57cdb8['isEqual'](_0x24f10c)){_0x4a9236?(_0x3abc29['splice'](_0x1ae7c1,0x1),_0x1ae7c1--):_0x5124f9['removeMarker'](_0x2ce648['name']);break;}}}}if(0x0==_0x3abc29['length'])return null;const _0x45b896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'join');for(const _0x4c33aa of this['getSuggestions']()){const _0xf470c7=_0x4c33aa['data'];if(_0x4c33aa['author']['id']==_0x3405f3['id']&&('formatBlock'==_0x4c33aa['type']&&_0xf470c7['formatGroupId']==_0x106491['formatGroupId']&&_0x4c33aa['subType']==_0x26902a&&pn(_0x4c33aa,_0x442a4e)&&(_0x45b896(_0x4c33aa['getRanges'](),_0x3abc29)||_0x45b896(_0x3abc29,_0x4c33aa['getRanges']())))){for(const _0xd7a89 of _0x3abc29)_0x4c33aa['addRange'](_0xd7a89);return _0x4c33aa;}}const _0x251791=_0x1dfb7c(),_0xf9f70a=_0x3405f3['id'],_0x172881='formatBlock:'+_0x26902a,_0x37bff5=this['_setSuggestionData']({'id':_0x251791,'type':_0x172881,'data':_0x106491,'createdAt':new Date(),'authorId':_0xf9f70a,'attributes':_0x442a4e});for(const _0xac8ddc of _0x3abc29)this['_addSuggestionMarker'](_0x172881,_0x251791,_0xf9f70a,_0xac8ddc,Mt['getMultiRangeId']());return _0x37bff5;}markDeletion(_0x3f09a1,_0x74e79d=null,_0x1c4436={}){if(_0x3f09a1['isCollapsed'])return null;const _0x4fc682=this['editor']['plugins']['get']('Users')['me'],_0x1613a2=new ot(_0x3f09a1['start'],_0x3f09a1['end']);this['_trackingSessionId']&&(_0x1c4436['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c1e4f,meta:_0x245c6c}of this['_findSuggestions'](_0x1613a2,'insertion'))if(_0x245c6c['isOwn']&&!_0x245c6c['isNextTo']){if(_0x1c1e4f['isMultiRange']){const _0xd6a570=_0x1c1e4f['getRanges']()['filter'](_0x45ce62=>'$graveyard'!=_0x45ce62['root']['rootName']);if(_0xd6a570['every'](_0x150c21=>_0x1613a2['containsRange'](_0x150c21,!0x0))&&_0x1c1e4f['discard'](),_0xd6a570['some'](_0x1af1f7=>_0x1af1f7['containsRange'](_0x1613a2,!0x0))){const _0x1fe8ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x74e79d,'accept');return this['forceDefaultExecution'](()=>_0x1fe8ba([_0x1613a2],null,_0x1c4436)),null;}}else{const _0x4f50e9=_0x1613a2['getIntersection'](_0x1c1e4f['getFirstRange']());null!==_0x4f50e9&&_0x1c1e4f['_onDiscard']([_0x4f50e9],null,_0x1c4436);}}if(_0x1613a2['detach'](),_0x1613a2['isCollapsed']||'$graveyard'==_0x1613a2['root']['rootName'])return null;let _0x30376f=null,_0x1148a6=_0x1613a2['start'],_0x1c81d7=_0x1613a2['end'];const _0x74beac=this['_findSuggestions'](_0x1613a2,'deletion');for(const {suggestion:_0x4b60e2,meta:_0x534675}of _0x74beac){const _0x28821a=this['_model']['createRange'](_0x1148a6,_0x1c81d7);if(_0x534675['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534675['containsRangeInObject']&&!_0x534675['isInsideObject'])){if(_0x4b60e2['isMultiRange']){if(!pn(_0x4b60e2,_0x1c4436))continue;let _0x268cd9=!0x0;for(const _0x904de8 of _0x4b60e2['getRanges']()){if(_0x904de8['containsRange'](_0x28821a,!0x0))return _0x4b60e2;_0x28821a['containsRange'](_0x904de8)||(_0x268cd9=!0x1);}_0x268cd9&&_0x4b60e2['discard']();}else{const _0xfae59e=_0x4b60e2['getFirstRange']();if(_0xfae59e['containsRange'](_0x28821a,!0x0))return _0x4b60e2;if(!pn(_0x4b60e2,_0x1c4436)){_0x28821a['containsRange'](_0xfae59e)?_0x4b60e2['removeMarkers']():_0xfae59e['containsPosition'](_0x1148a6)?_0x1148a6=_0xfae59e['end']:_0xfae59e['containsPosition'](_0x1c81d7)&&(_0x1c81d7=_0xfae59e['start']);continue;}_0x1148a6=_0x1148a6['isBefore'](_0xfae59e['start'])?_0x1148a6:_0xfae59e['start'],_0x1c81d7=_0x1c81d7['isAfter'](_0xfae59e['end'])?_0x1c81d7:_0xfae59e['end'],_0x1c4436=Object['assign']({},_0x4b60e2['attributes']),_0x30376f?_0xfae59e['start']['isBefore'](_0x30376f['getFirstRange']()['start'])?(_0x30376f['removeMarkers'](),_0x30376f=_0x4b60e2):_0x4b60e2['removeMarkers']():_0x30376f=_0x4b60e2;}}}if(_0x30376f)return this['_setSuggestionRange'](_0x30376f,this['_model']['createRange'](_0x1148a6,_0x1c81d7)),_0x30376f;{const _0x3c81c7=_0x1dfb7c(),_0x414609=this['_model']['createRange'](_0x1148a6,_0x1c81d7),_0x4d0724=_0x4fc682['id'],_0x5704ab=_0x74e79d?'deletion:'+_0x74e79d:'deletion',_0x3ebb79=this['_setSuggestionData']({'id':_0x3c81c7,'type':_0x5704ab,'createdAt':new Date(),'authorId':_0x4d0724,'attributes':_0x1c4436});return this['_addSuggestionMarker'](_0x5704ab,_0x3c81c7,_0x4d0724,_0x414609),_0x3ebb79;}}markMultiRangeDeletion(_0x83bfd1,_0x45ba95='multi',_0x213798={}){const _0x2aa4c0=this['editor']['plugins']['get']('Users')['me'],_0x5d06ee=_0x83bfd1['map'](_0x33821d=>new ot(_0x33821d['start'],_0x33821d['end'])),_0x5b026b=new Set();this['_trackingSessionId']&&(_0x213798['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x347c9f,meta:_0x38ada9}of this['_findSuggestions'](_0x5d06ee,'insertion'))_0x38ada9['isOwn']&&!_0x38ada9['isNextTo']&&_0x5b026b['add'](_0x347c9f);for(const _0x4ddea3 of _0x5b026b)if(_0x4ddea3['isMultiRange']){const _0x23558e=_0x4ddea3['getRanges']();if(_0x4ddea3['attributes']&&_0x4ddea3['attributes']['skipNestingCheck']||_0x23558e['every'](_0x5f599a=>_0x5d06ee['some'](_0x359f5b=>_0x359f5b['containsRange'](_0x5f599a,!0x0)))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x17fa6e=>_0x23558e['some'](_0x982ba0=>_0x982ba0['containsRange'](_0x17fa6e,!0x0)))){const _0x208a85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x208a85(_0x83bfd1,null,_0x213798)),null;}}else{const _0x588ec5=_0x4ddea3['getFirstRange']();if(_0x5d06ee['some'](_0xcc8b86=>_0xcc8b86['containsRange'](_0x588ec5,!0x0))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x47f3a7=>_0x588ec5['containsRange'](_0x47f3a7,!0x0))){const _0x12cb29=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x12cb29(_0x5d06ee,null,_0x213798)),null;}}const _0x443350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'join');let _0x159010=null;for(const _0x21b30a of this['getSuggestions']())if(_0x21b30a['author']['id']==_0x2aa4c0['id']&&_0x21b30a['isInContent']&&'deletion'==_0x21b30a['type']&&_0x21b30a['subType']==_0x45ba95&&pn(_0x21b30a,_0x213798)&&(_0x443350(_0x21b30a['getRanges'](),_0x5d06ee)||_0x443350(_0x5d06ee,_0x21b30a['getRanges']()))){if(_0x159010){if(_0x21b30a['commentThread']&&_0x21b30a['commentThread']['length'])continue;for(const _0xb32d30 of _0x21b30a['getRanges']())_0x159010['isIntersectingWithRange'](_0xb32d30)||_0x159010['addRange'](_0xb32d30);_0x21b30a['removeMarkers']();}else{_0x159010=_0x21b30a;for(const _0x48e4b9 of _0x5d06ee)_0x21b30a['isIntersectingWithRange'](_0x48e4b9)||_0x21b30a['addRange'](_0x48e4b9);}}if(_0x159010)return _0x159010;_0x5b026b['clear']();for(const {suggestion:_0x4119ac,meta:_0x110574}of this['_findSuggestions'](_0x5d06ee,'deletion'))_0x110574['isOwn']&&(this['_mergeNestedSuggestions']||!_0x110574['containsRangeInObject']&&!_0x110574['isInsideObject'])&&pn(_0x4119ac,_0x213798)&&_0x5b026b['add'](_0x4119ac);for(const _0x3b00f6 of _0x5b026b){const _0x25f378=_0x3b00f6['getRanges']();if((!_0x213798||!_0x213798['skipNestingCheck'])&&_0x5d06ee['every'](_0x309f65=>_0x25f378['some'](_0x17ce43=>_0x17ce43['containsRange'](_0x309f65,!0x0))))return _0x3b00f6;_0x3b00f6['attributes']&&_0x3b00f6['attributes']['skipNestingCheck']||_0x25f378['every'](_0x5020f9=>_0x5d06ee['some'](_0x588e92=>_0x588e92['containsRange'](_0x5020f9,!0x0)))&&_0x3b00f6['discard']();}const _0x2e92c5=_0x1dfb7c(),_0x3ca9b2=_0x2aa4c0['id'],_0x2350e5='deletion:'+_0x45ba95,_0x46b377=this['_setSuggestionData']({'id':_0x2e92c5,'type':_0x2350e5,'createdAt':new Date(),'authorId':_0x3ca9b2,'attributes':_0x213798});for(const _0x45179d of _0x5d06ee)_0x45179d['detach'](),_0x45179d['isCollapsed']||'$graveyard'==_0x45179d['root']['rootName']||this['_addSuggestionMarker'](_0x2350e5,_0x2e92c5,_0x3ca9b2,_0x45179d,Mt['getMultiRangeId']());return _0x46b377;}markAttributeChange(_0xdaa491,_0x3922c7,_0x1efd2e,_0x273578,_0x15cc9d){if(_0xdaa491['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x29e6a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x29d0dc=Array['from'](this['_suggestions']['values']())['filter'](_0x2abda3=>'attribute'==_0x2abda3['type']&&_0x2abda3['data']['key']==_0x3922c7&&_0x2abda3['isIntersectingWithRange'](_0xdaa491));if(this['_trackingSessionId']&&(_0x15cc9d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xdbd5c=this['_findSuggestions'](_0xdaa491,'insertion')['filter'](({meta:_0x2b7905})=>_0x2b7905['isOwn']&&!_0x2b7905['isInsideObject']&&!_0x2b7905['isNextTo'])['map'](({suggestion:_0x37bbb8})=>_0x37bbb8);_0x29d0dc['unshift'](..._0xdbd5c);}const _0x14c070=new Map([[_0xdaa491,_0x1efd2e]]);for(const _0x20e1a2 of _0x29d0dc){const _0x4aa676='attribute'==_0x20e1a2['type']?_0x20e1a2['data']['oldValue']:void 0x0,_0x1f55c2=_0x20e1a2['getFirstRange'](),_0x48cdb0=Array['from'](_0x14c070['keys']())['find'](_0x3e68a6=>_0x3e68a6['isIntersecting'](_0x1f55c2));if(!_0x48cdb0)continue;const _0x479a3b=_0x48cdb0['getDifference'](_0x1f55c2);this['_suggestionsConversion']['isBlockAttribute'](_0x3922c7)&&'insertion'==_0x20e1a2['type']&&0x0!=_0x479a3b['length']||(_0x14c070['delete'](_0x48cdb0),_0x479a3b['forEach'](_0x587f33=>{_0x14c070['set'](_0x587f33,_0x1efd2e);}),'insertion'!=_0x20e1a2['type']&&_0x4aa676!=_0x273578&&_0x14c070['set'](_0x48cdb0['getIntersection'](_0x1f55c2),_0x4aa676));}const _0x197846=[];for(const [_0x1c2a0a,_0x37c25c]of _0x14c070){const _0x25f784=_0x1dfb7c(),_0x4221ef={'key':_0x3922c7,'oldValue':_0x37c25c,'newValue':_0x273578};_0x3922c7['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x3922c7});const _0x43ada5=('attribute:'+_0x3922c7+'|'+dn({'newValue':_0x273578}))['substring'](0x0,0x3c),_0x1a15d2=this['_setSuggestionData']({'id':_0x25f784,'type':_0x43ada5,'data':_0x4221ef,'createdAt':new Date(),'authorId':_0x29e6a1,'attributes':_0x15cc9d});_0x197846['push'](_0x1a15d2),this['_addSuggestionMarker'](_0x43ada5,_0x25f784,_0x29e6a1,_0x1c2a0a);}return _0x197846;}enableDefaultAttributesIntegration(_0x237ba2){this['enableCommand'](_0x237ba2,(_0x4eb20a,..._0xa19bd4)=>{this['recordAttributeChanges'](()=>{_0x4eb20a(..._0xa19bd4);});});}startTrackingSession(_0x2a0656){return this['_trackingSessionId']=void 0x0!==_0x2a0656?_0x2a0656:_0x1dfb7c(),this['_trackingSessionId'];}_getAttributeKey(_0x4818ba){return'attribute'==_0x4818ba['type']?In(_0x4818ba['subType']):null;}_applyOperationsAsSuggestions(_0x76ae84){if(0x0==_0x76ae84['length'])return;const _0x490835=this['editor'],_0x1ee45a=_0x490835['plugins']['get'](_0x140123),_0x3428af=[],_0x3d2772=_0x4d84e6=>{const _0x39b47=_0x4d84e6['_aiSource'];return _0x39b47?{'@ai':{'type':_0x39b47}}:{};},_0x5a3bea=(_0x3eab85,_0x415f4c,_0x1be5ca)=>{for(let _0x113284=_0x415f4c;_0x113284<_0x3eab85['operations']['length'];_0x113284++){const _0x5ae736=_0x3eab85['operations'][_0x113284];'marker'===_0x5ae736['type']&&(_0x5ae736['_aiSource']=_0x1be5ca);}};_0x490835['model']['change'](_0x59b048=>{for(let _0xdcb5b3=0x0;_0xdcb5b3<_0x76ae84['length'];_0xdcb5b3++){const _0x16c61b=_0x76ae84[_0xdcb5b3],_0x2c056a=_0x16c61b['_aiSource'],_0x8ab46f=_0x59b048['batch']['operations']['length'];if(_0x16c61b['baseVersion']=_0x490835['model']['document']['version'],_0x16c61b['isDocumentOperation']=!0x0,!_0x39c933(_0x16c61b)){if(_0x1ee45a['isMarkedRemoveOperation'](_0x16c61b)){const _0x33aeec=_0x42ced4(_0x16c61b['newRange'],_0x490835['model']);_0x3428af['unshift']({'range':ot['fromRange'](_0x33aeec),'opAttributes':_0x3d2772(_0x16c61b),'aiSource':_0x2c056a});}else{switch(_0x16c61b['type']){case'rename':{const _0xbb9a2c=_0x16c61b['oldName'],_0x2956dd=_0x16c61b['newName'];if(_0xbb9a2c==_0x2956dd)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2a2159='$elementName',_0x5b6f26=_0x16c61b['position'],_0x368ba5=_0x490835['model']['createRange'](_0x5b6f26,_0x490835['model']['createPositionAt'](_0x5b6f26['nodeAfter'],'end'));this['markAttributeChange'](_0x368ba5,_0x2a2159,_0xbb9a2c,_0x2956dd,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xd59241=_0x16c61b['oldValue'],_0x47eab8=_0x16c61b['newValue'];if(_0xd59241==_0x47eab8)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2e2cf5=_0x16c61b['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e2cf5))break;const _0x3242a0=_0x42ced4(_0x16c61b['range'],_0x490835['model']);this['markAttributeChange'](_0x3242a0,_0x2e2cf5,_0xd59241,_0x47eab8,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'insert':{if(_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b),_0x76ae84[_0xdcb5b3+0x1]&&'move'==_0x76ae84[_0xdcb5b3+0x1]['type'])break;const _0x68e97f=_0x16c61b['position'],_0x860c6a=_0x16c61b['howMany'],_0x594123=_0x42ced4(_0x490835['model']['createRange'](_0x68e97f,_0x68e97f['getShiftedBy'](_0x860c6a)),_0x490835['model']);this['markInsertion'](_0x594123,null,{..._0x3d2772(_0x16c61b)});break;}case'split':{_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0xe10b98=_0x16c61b['splitPosition'],_0x561378=_0x16c61b['moveTargetPosition'],_0x1027b0=_0x490835['model']['createRange'](_0xe10b98,_0x561378);this['markInsertion'](_0x1027b0,null,{..._0x3d2772(_0x16c61b)});break;}case'move':case'remove':_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);}_0x2c056a&&_0x5a3bea(_0x59b048['batch'],_0x8ab46f,_0x2c056a);}}}for(const {range:_0x5f0b8d,opAttributes:_0x3a9d54,aiSource:_0x5cdd15}of _0x3428af){const _0x4e6add=_0x59b048['batch']['operations']['length'];_0x5f0b8d['detach'](),this['markDeletion'](_0x5f0b8d,null,{..._0x3a9d54}),_0x5cdd15&&_0x5a3bea(_0x59b048['batch'],_0x4e6add,_0x5cdd15);}});}_setSuggestionRange(_0x1ec67c,_0x1ad4b1){const _0x40844f=_0x1ec67c['getFirstMarker']();this['_model']['change'](_0x3802d5=>{_0x3802d5['updateMarker'](_0x40844f,{'range':_0x1ad4b1});});}_addThreadToSuggestion(_0x61dffe){const _0x1f16a0=_0x61dffe['id'],_0x5dbb4e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f16a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5dbb4e,'threadId':_0x1f16a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3211c4=this['_commentsRepository']['getCommentThread'](_0x1f16a0);_0x3211c4['unbind']('isRemovable'),_0x3211c4['isRemovable']=!0x1,_0x61dffe['commentThread']=_0x3211c4;}_checkSuggestionCorrectness(_0x1414bd,_0x52abe9,_0x1e9e5c,_0x2b8c7d){if(_0x1414bd['type']!=_0x52abe9||_0x1414bd['subType']!=_0x1e9e5c||_0x1414bd['creator']['id']!=_0x2b8c7d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ce3e1('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x31f2e6,_0x439e10){const _0x43700b=_0x31f2e6['getFirstRange']();if(_0x439e10['isEqual'](_0x43700b))_0x31f2e6['removeMarkers']();else{if(_0x43700b['containsRange'](_0x439e10)){const _0x24d9e0=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0x24d9e0));const _0x264127=_0x1dfb7c(),_0x4a344b=_0x31f2e6['creator']['id'],_0x147e61=_0x31f2e6['type']+':'+_0x31f2e6['subType'];this['_setSuggestionData']({'id':_0x264127,'type':_0x147e61,'createdAt':new Date(),'authorId':_0x4a344b,'data':_0x31f2e6['data'],'attributes':_0x31f2e6['attributes']});const _0x25bd94=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after'),_0x4d3090=this['_model']['createRange'](_0x25bd94,_0x43700b['end']);this['_addSuggestionMarker'](_0x147e61,_0x264127,_0x4a344b,_0x4d3090);}else{if(_0x43700b['containsPosition'](_0x439e10['start'])){const _0xe1ea3a=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0xe1ea3a));}else{const _0x138506=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x138506,_0x43700b['end']));}}}}_rangeIsInLocalUserInsertion(_0xa8d964){for(const {suggestion:_0x5aeb39,meta:_0x32138e}of this['_findSuggestions'](_0xa8d964,'insertion')){if(!_0x32138e['isOwn'])continue;const _0x362512=_0x5aeb39['getRanges']();for(const _0x445aca of _0x362512)if(!_0xa8d964['getDifference'](_0x445aca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x12f2c0){return this['editor']['plugins']['get']('Users')['getUser'](_0x12f2c0);}_getExternalAuthor(_0x3d77d2){const _0x303f7b=this['editor']['plugins']['get']('Users'),_0xec3666=_0x86ba89('external:'+_0x3d77d2),_0x52defa=_0x303f7b['getUser'](_0xec3666);return _0x52defa||_0x303f7b['addUser']({'id':_0xec3666,'name':_0x3d77d2});}_createSuggestion(_0x240d70,_0xacecb2,_0x42ac37,_0x403c8e,_0x3533db,_0x4a50ff){const _0x3fe53b=this['_getAuthorFromId'](_0x403c8e);if(!_0x3fe53b)throw new _0x4ce3e1('track-changes-user-not-found',this,{'authorId':_0x403c8e,'suggestionId':_0x42ac37});const _0x134944=this['_suggestionFactory']['buildSuggestion'](_0x240d70,_0xacecb2,_0x42ac37,_0x3fe53b,_0x3533db,_0x5d4859=>{this['_updateSuggestionData'](_0x42ac37,{'attributes':_0x5d4859});const _0x4c6a51=this['getSuggestion'](_0x42ac37);this['_joinWithAdjacentSuggestions'](new Set([_0x4c6a51])),this['_refreshSuggestionsChain'](new Set([_0x4c6a51]));},_0x4a50ff);return this['listenTo'](_0x134944,'accept',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x134944,'discard',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ac37,_0x134944),this['_suggestionState']['set'](_0x134944,'notReady'),_0x134944;}_breakSuggestionMarker(_0x3f112d,_0x53a3df,_0xe36246){const _0x124a8e=_0x3f112d['getFirstRange'](),_0x463fa5=_0x124a8e['start'],_0x18f65f=_0x124a8e['end'];this['_setSuggestionRange'](_0x3f112d,this['_model']['createRange'](_0x463fa5,_0x53a3df));const _0x45016a=_0x1dfb7c(),_0x3f3729=_0x3f112d['creator']['id'],_0x28c6d2=_0x3f112d['type']+(_0x3f112d['subType']?':'+_0x3f112d['subType']:'');this['_setSuggestionData']({'id':_0x45016a,'type':_0x28c6d2,'createdAt':new Date(),'authorId':_0x3f3729,'originalSuggestionId':_0x3f112d['_originalSuggestionId']||_0x3f112d['id'],'attributes':_0x3f112d['attributes'],'data':_0x3f112d['data']});const _0x2832ec=this['_getAttributeKey'](_0x3f112d);('formatBlock'==_0x3f112d['type']||_0x2832ec&&this['_suggestionsConversion']['isBlockAttribute'](_0x2832ec))&&(_0xe36246=this['_model']['createPositionBefore'](_0xe36246['parent'])),this['_addSuggestionMarker'](_0x28c6d2,_0x45016a,_0x3f3729,this['_model']['createRange'](_0xe36246,_0x18f65f));}_findSuggestions(_0x2bc07a,_0x39432a=null){const _0x385ec3=[],_0x4a7778=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2bc07a)||(_0x2bc07a=[_0x2bc07a]);for(const _0x408719 of this['getSuggestions']()){if(!_0x408719['isInContent'])continue;if(_0x39432a&&_0x408719['type']!=_0x39432a)continue;let _0xda96b7=!0x1;for(const _0x21b376 of _0x408719['getRanges']()){for(const _0x5f061c of _0x2bc07a){const _0x660877=_0x5f061c['start']['isEqual'](_0x21b376['end'])||_0x5f061c['end']['isEqual'](_0x21b376['start']);if(_0x660877||_0x5f061c['getIntersection'](_0x21b376)){const _0x28ef94=_0x5f061c['containsRange'](_0x21b376)&&cn(this['_model']['schema'],_0x21b376['start'],_0x5f061c),_0x517ce1=_0x21b376['containsRange'](_0x5f061c)&&cn(this['_model']['schema'],_0x5f061c['start'],_0x21b376);_0x385ec3['push']({'suggestion':_0x408719,'meta':{'isOwn':_0x4a7778==_0x408719['author'],'isNextTo':_0x660877,'isInsideObject':_0x28ef94,'containsRangeInObject':_0x517ce1}}),_0xda96b7=!0x0;break;}}if(_0xda96b7)break;}}return _0x385ec3;}_addSuggestionMarker(_0x2bda86,_0x4c5288,_0x2fb35d,_0x209a7f,_0x4cb7dc){this['_model']['change'](_0x2e527a=>{let _0x1ce8fd='suggestion:'+_0x2bda86+':'+_0x4c5288+':'+_0x2fb35d;_0x4cb7dc&&(_0x1ce8fd=_0x1ce8fd+':'+_0x4cb7dc),_0x2e527a['addMarker'](_0x1ce8fd,{'range':_0x209a7f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x551deb){const _0x5d38e8=_0x551deb['previous'],_0x4cece8=_0x551deb['next'];_0x551deb['previous']=null,_0x551deb['next']=null,null!=_0x5d38e8&&_0x5d38e8['next']==_0x551deb&&(_0x5d38e8['next']=_0x4cece8),null!=_0x4cece8&&_0x4cece8['previous']==_0x551deb&&(_0x4cece8['previous']=_0x5d38e8),'ready'==this['_suggestionState']['get'](_0x551deb)&&(this['_suggestionState']['set'](_0x551deb,'removed'),this['fire']('suggestionUnloaded',_0x551deb,_0x5d38e8,_0x4cece8));}_setSuggestionData(_0x4f24fc){const _0x56cfc7=_0x4f24fc['id'],_0x329856=this['addSuggestionData'](_0x4f24fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1663=this['editor']['plugins']['get']('PendingActions'),_0x974e70=_0x329856['hasComments'],_0x596d5f=_0x329856['subType']?_0x329856['type']+':'+_0x329856['subType']:_0x329856['type'],_0x2d7406=this['editor']['locale'],_0x310b6b=_0x2a1663['add'](Ot(_0x2d7406,'PENDING_ACTION_SUGGESTION')),_0x45e5a9={'id':_0x56cfc7,'type':_0x596d5f,'hasComments':_0x974e70,'data':_0x4f24fc['data']||null,'originalSuggestionId':_0x4f24fc['originalSuggestionId']||null,'attributes':_0x329856['attributes']};this['_adapter']['addSuggestion'](_0x45e5a9)['then'](_0x5ad295=>{_0x329856['_saved']=!0x0,_0x2a1663['remove'](_0x310b6b),_0x5ad295&&_0x5ad295['createdAt']&&(this['_suggestions']['get'](_0x56cfc7)['createdAt']=_0x5ad295['createdAt']);})['catch'](_0x5333a6=>{throw _0x78b2a9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x329856['discard']();}),_0x329856['stopListening'](),this['_suggestions']['delete'](_0x329856['id']),this['_suggestionState']['delete'](_0x329856),_0x5333a6;});}return _0x329856;}_updateSuggestionData(_0x47922e,_0x37f1c4){const _0x200e84=this['editor']['plugins']['get']('PendingActions'),_0x3ee651=this['getSuggestion'](_0x47922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ee651['_saved']){const _0x440325=_0x200e84['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47922e,_0x37f1c4)['then'](()=>{_0x200e84['remove'](_0x440325);});}else _0x3ee651['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47922e,_0x37f1c4);});}}_getSuggestionData(_0x5db931){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ce3e1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5db931);}_handleNewSuggestionMarker(_0x4b9572){const {id:_0x5a072d,type:_0x4c8bb1,subType:_0x433f92,authorId:_0x553c19}=et(_0x4b9572),_0x46d2ba=this['_suggestions']['get'](_0x5a072d)||this['_createSuggestion'](_0x4c8bb1,_0x433f92,_0x5a072d,_0x553c19,{});switch(this['_checkSuggestionCorrectness'](_0x46d2ba,_0x4c8bb1,_0x433f92,_0x553c19),this['_suggestionState']['get'](_0x46d2ba)){case'notReady':this['_getSuggestionData'](_0x5a072d)['then'](_0x35f2f3=>{let _0x11c0f1=Promise['resolve']();_0x35f2f3['hasComments']&&(_0x11c0f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a072d})),_0x11c0f1['then'](()=>{this['addSuggestionData'](_0x35f2f3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x46d2ba,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a072d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x46d2ba,'ready'),this['fire']('suggestionLoaded',_0x46d2ba);break;case'ready':this['fire']('suggestionChanged',_0x46d2ba);}return _0x46d2ba['addMarkerName'](_0x4b9572),_0x46d2ba;}_refreshSuggestionsChain(_0x329697){const _0x5c9dae=Array['from'](_0x329697),_0x125d50=_0x5c9dae['filter'](_0x872524=>'attribute'==_0x872524['type']);this['_refreshAttributeSuggestionsChain'](_0x125d50);const _0x446067=_0x5c9dae['filter'](_0x1d2ab4=>!_0x1d2ab4['isMultiRange']&&'attribute'!=_0x1d2ab4['type']),_0x39d439=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4735=>!_0x5c4735['isMultiRange']&&'attribute'!=_0x5c4735['type']),_0x12d1a3=_0x39d439['filter'](_0x3a7e20=>!_0x329697['has'](_0x3a7e20)),_0x4c9bbc=new Map(_0x39d439['map'](_0x4cd0c7=>[_0x4cd0c7,this['_suggestionFactory']['getSuggestionCallback'](_0x4cd0c7['type'],_0x4cd0c7['subType'],'chain')])),_0x138b0c=new Map(_0x39d439['map'](_0x2dfce2=>[_0x2dfce2,_0x2dfce2['getFirstRange']()])),_0x5d27d9=new Set(),_0x31d15d=new Set();for(let _0x21d258=0x0;_0x21d258<_0x446067['length'];_0x21d258++)_0x348dbb(_0x446067[_0x21d258],_0x446067,_0x21d258+0x1);for(let _0x29f27b=0x0;_0x29f27b<_0x446067['length'];_0x29f27b++)_0x348dbb(_0x446067[_0x29f27b],_0x12d1a3,0x0);const _0x1add54=new Set();for(let _0x55a451=0x0;_0x55a451<_0x446067['length'];_0x55a451++){const _0x516c8a=_0x446067[_0x55a451];!_0x31d15d['has'](_0x516c8a)&&_0x516c8a['previous']&&(_0x1add54['add'](_0x516c8a['previous']),_0x516c8a['previous']['next']===_0x516c8a&&(_0x516c8a['previous']['next']=null),_0x516c8a['previous']=null),!_0x5d27d9['has'](_0x516c8a)&&_0x516c8a['next']&&(_0x1add54['add'](_0x516c8a['next']),_0x516c8a['next']['previous']===_0x516c8a&&(_0x516c8a['next']['previous']=null),_0x516c8a['next']=null);}function _0x348dbb(_0x1f60ec,_0x3be222,_0xef5ddb){for(let _0x3a58f6=_0xef5ddb;_0x3a58f6<_0x3be222['length'];_0x3a58f6++){const _0x4d60d1=_0x4cf7ed(_0x1f60ec,_0x3be222[_0x3a58f6]);_0x4d60d1&&(_0x4d60d1[0x0]['next']=_0x4d60d1[0x1],_0x4d60d1[0x1]['previous']=_0x4d60d1[0x0],_0x5d27d9['add'](_0x4d60d1[0x0]),_0x31d15d['add'](_0x4d60d1[0x1]));}}function _0x4cf7ed(_0x112f30,_0x2d421f){if(_0x112f30['author']['id']!==_0x2d421f['author']['id'])return null;const _0x2381b5=_0x4c9bbc['get'](_0x112f30)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f));return _0x2381b5&&_0x4c9bbc['get'](_0x2d421f)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f))?_0x2381b5[0x1]['commentThread']&&_0x2381b5[0x1]['commentThread']['length']?null:_0x2381b5:null;}_0x1add54['size']&&this['_refreshSuggestionsChain'](_0x1add54);}_refreshAttributeSuggestionsChain(_0x507a5c){if(0x0==_0x507a5c['length'])return;const _0x1c1822=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd4687a=>'attribute'==_0xd4687a['type']&&_0xd4687a['_isDataLoaded']),_0x4f8bbd=[],_0x4690d8=new Map();for(const _0x448d84 of _0x1c1822){const _0x20b29f=_0x86ba89(_0x448d84['attributes']);_0x4690d8['has'](_0x20b29f)||(_0x4690d8['set'](_0x20b29f,_0x4f8bbd['length']),_0x4f8bbd['push']([])),_0x4f8bbd[_0x4690d8['get'](_0x20b29f)]['push'](_0x448d84);}!(function(){_0x4f8bbd['sort']((_0x3ef5d8,_0x59e1ba)=>{const _0xc91e77=_0x3ef5d8[0x0]['createdAt'],_0x26d20a=_0x59e1ba[0x0]['createdAt'];return _0xc91e77==_0x26d20a?_0x3ef5d8[0x0]['attributes']['groupId']<_0x59e1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0xc91e77<_0x26d20a?-0x1:0x1;});for(const _0xe6fcc2 of _0x4f8bbd)_0xe6fcc2['sort']((_0x6b79e2,_0x3570e0)=>_0x6b79e2['id']<_0x3570e0['id']?-0x1:0x1);}());for(let _0x5914ce=0x0;_0x5914ce<_0x4f8bbd['length'];_0x5914ce++){if(0x0==_0x4f8bbd[_0x5914ce]['length'])continue;const _0x1bd776=[];for(let _0x2ae89d=_0x5914ce+0x1;_0x2ae89d<_0x4f8bbd['length'];_0x2ae89d++)0x0!=_0x4f8bbd[_0x2ae89d]['length']&&_0x13ac2d(_0x4f8bbd[_0x5914ce],_0x4f8bbd[_0x2ae89d])&&_0x1bd776['push'](_0x2ae89d);for(const _0x5260ed of _0x1bd776)_0x4f8bbd[_0x5914ce]=_0x4f8bbd[_0x5914ce]['concat'](_0x4f8bbd[_0x5260ed]),_0x4f8bbd[_0x5260ed]=[];}for(const _0x1d4c5b of _0x4f8bbd)for(let _0x2072f1=0x0;_0x2072f1<_0x1d4c5b['length'];_0x2072f1++){const _0x6e439a=_0x1d4c5b[_0x2072f1+0x1]||null;_0x1d4c5b[_0x2072f1]['next']!==_0x6e439a&&(_0x1d4c5b[_0x2072f1]['next']=_0x6e439a);}for(const _0x47b59e of _0x4f8bbd)for(let _0xf77bea=0x0;_0xf77bea<_0x47b59e['length'];_0xf77bea++){const _0x51973e=_0x47b59e[_0xf77bea-0x1]||null;_0x47b59e[_0xf77bea]['previous']!==_0x51973e&&(_0x47b59e[_0xf77bea]['previous']=_0x51973e);}function _0x13ac2d(_0xf3ab5a,_0x27fdfd){return(_0xf3ab5a[0x0]['attributes']['groupId']===_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['author']===_0x27fdfd[0x0]['author'])&&(!!function(_0x1d1b61,_0x37a8a3){return!_0x1d1b61['hasComments']&&!_0x37a8a3['hasComments']||(!_0x1d1b61['hasComments']||!_0x37a8a3['hasComments'])&&(!!(_0x1d1b61['hasComments']&&_0x37a8a3['createdAt']<_0x1d1b61['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x37a8a3['hasComments']&&_0x1d1b61['createdAt']<_0x37a8a3['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xf3ab5a[0x0],_0x27fdfd[0x0])&&(!!lt(ut(_0xf3ab5a[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x27fdfd[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xf3ab5a[0x0]['attributes']['groupId']==_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['attributes']['trackingSessionId']===_0x27fdfd[0x0]['attributes']['trackingSessionId']&&(!!_0xf3ab5a['every'](_0x2a2228=>_0x27fdfd['some'](_0x50042c=>_0x2a2228['getFirstRange']()['isEqual'](_0x50042c['getFirstRange']())))&&_0x27fdfd['every'](_0x578be3=>_0xf3ab5a['some'](_0x3fbc1a=>_0x578be3['getFirstRange']()['isEqual'](_0x3fbc1a['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x4a2a55){const _0x3824b8=Array['from'](_0x4a2a55),_0x2e758e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e7a99=_0x2e758e['filter'](_0x11badc=>!_0x4a2a55['has'](_0x11badc)),_0x127781=new Map(_0x3824b8['map'](_0x5e2b45=>[_0x5e2b45,this['_suggestionFactory']['getSuggestionCallback'](_0x5e2b45['type'],_0x5e2b45['subType'],'join')])),_0x457e53=new Map(_0x2e758e['map'](_0x162a23=>[_0x162a23,_0x162a23['getRanges']()]));for(let _0x43f6c2=0x0;_0x43f6c2<_0x3824b8['length'];_0x43f6c2++)if(_0xdc98e1(this,_0x3824b8[_0x43f6c2],_0x3824b8,_0x43f6c2+0x1))return!0x0;for(let _0x23e3ff=0x0;_0x23e3ff<_0x3824b8['length'];_0x23e3ff++)if(_0xdc98e1(this,_0x3824b8[_0x23e3ff],_0x5e7a99,0x0))return!0x0;return!0x1;function _0xdc98e1(_0x42e37f,_0xfbf671,_0x3faf12,_0x135757){for(let _0x4e33bf=_0x135757;_0x4e33bf<_0x3faf12['length'];_0x4e33bf++){const _0x53eba1=_0x3faf12[_0x4e33bf];if(_0x53eba1['type']!==_0xfbf671['type']||_0x53eba1['author']['id']!==_0xfbf671['author']['id']||_0x53eba1['subType']!==_0xfbf671['subType'])continue;if(!_n(_0xfbf671,_0x53eba1))continue;if('attribute'==_0xfbf671['type']&&_0xfbf671['data']['oldValue']!=_0x53eba1['data']['oldValue'])continue;if('attribute'==_0xfbf671['type']&&_0x42e37f['_suggestionsConversion']['isBlockAttribute'](_0xfbf671['data']['key']))continue;if('formatBlock'==_0xfbf671['type']){const _0x4190e3=_0x42e37f['editor']['model'],_0xca8081=_0xfbf671['getContainedElement']();if(_0xca8081&&(_0x4190e3['schema']['isObject'](_0xca8081)||_0x4190e3['schema']['isLimit'](_0xca8081)))continue;}const _0x3a4bd7=_0x127781['get'](_0xfbf671),_0x1e56b7=_0x457e53['get'](_0xfbf671),_0x3b8f9e=_0x457e53['get'](_0x53eba1),_0x26d489=_0xfbf671['commentThread']&&_0xfbf671['commentThread']['length'],_0x519530=_0x53eba1['commentThread']&&_0x53eba1['commentThread']['length'];if(!_0x26d489&&_0x3a4bd7(_0x3b8f9e,_0x1e56b7))return _0x42e37f['_joinSuggestions'](_0x53eba1,_0xfbf671),_0x457e53['delete'](_0xfbf671),!0x0;if(!_0x519530&&_0x3a4bd7(_0x1e56b7,_0x3b8f9e))return _0x42e37f['_joinSuggestions'](_0xfbf671,_0x53eba1),_0x457e53['delete'](_0x53eba1),!0x0;}return!0x1;}}_joinSuggestions(_0x3ab375,_0x9e24e3){if(_0x3ab375['isMultiRange']){for(const _0x1d9bb4 of _0x9e24e3['getRanges']())_0x3ab375['addRange'](_0x1d9bb4);}else{const _0x35fe75=_0x9e24e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ab375,this['_model']['createRange'](_0x3ab375['getFirstRange']()['start'],_0x35fe75));}_0x9e24e3['removeMarkers']();}_getMarkerAnnouncementText(_0xc01b03,_0x499762,_0x21fda5){const _0x338252=_0xc01b03['startsWith']('format')||_0xc01b03['startsWith']('attribute')?'FORMATTING':_0xc01b03['toUpperCase']();return Ot(this['editor']['locale'],_0x499762+'_'+_0x338252+'_SUGGESTION_ANNOUNCEMENT',_0x21fda5);}_initAriaMarkerChangeAnnouncements(){const _0x41a71c=this['editor'];if(!_0x41a71c['ui'])return;const {ariaLiveAnnouncer:_0x3d4a7}=_0x41a71c['ui'];nt(this['_model'],({left:_0x20a5e7,entered:_0x2d25fa})=>{for(const _0x4bdba2 of _0x20a5e7){const {group:_0x4e0faf,type:_0x53afda}=et(_0x4bdba2['name']);if('suggestion'===_0x4e0faf){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x53afda,'LEAVE'));break;}}for(const _0x8b4f5b of _0x2d25fa){const {group:_0x26efc0,type:_0x2ba955}=et(_0x8b4f5b['name']);if('suggestion'===_0x26efc0){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x2ba955,'ENTER',_0x217db9(_0x55db56)));break;}}});}_processAttributeChanges(_0x14157d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf1ccca=this['editor'],_0xd1b592=_0xf1ccca['model']['document']['differ']['getChanges']();if(0x0==_0xd1b592['length'])return!0x1;const _0x46b842=[],_0x44b7f6=_0xd1b592['filter'](_0x393517=>'attribute'==_0x393517['type']),_0x2113ad=_0xd1b592['filter'](_0x5298c4=>'insert'==_0x5298c4['type']&&'$text'!=_0x5298c4['name']),_0xcd58d5=_0xd1b592['filter'](_0x49fdcb=>'remove'==_0x49fdcb['type']&&'$text'!=_0x49fdcb['name']);for(const _0x3c694d of _0x44b7f6)_0x46b842['push']({'key':_0x3c694d['attributeKey'],'newValue':_0x3c694d['attributeNewValue'],'oldValue':_0x3c694d['attributeOldValue'],'range':mn(_0x3c694d['range'],_0xf1ccca['model'])});for(const _0x3eb6d9 of _0x2113ad){const _0x5dda5a=_0xcd58d5['find'](_0xb65e75=>_0xb65e75['position']['isEqual'](_0x3eb6d9['position']));_0x5dda5a&&_0x46b842['push']({'key':rn,'newValue':_0x3eb6d9['name'],'oldValue':_0x5dda5a['name'],'range':_0xf1ccca['model']['createRangeOn'](_0x3eb6d9['position']['nodeAfter'])});}return 0x0!=_0x46b842['length']&&this['_reduceExistingSuggestions'](_0x14157d,_0x46b842);}_processAttributeSuggestions(_0x1e0595){let _0x1ac7ce=!0x1;const _0x20194d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d4a0=>_0x25d4a0['data']['newRange']&&_0x25d4a0['name']['startsWith']('suggestion:attribute:'));for(const _0x51b4d5 of _0x20194d){const {subType:_0x221ead,id:_0x369a83}=et(_0x51b4d5['name']),_0x19a422=_0x221ead['split']('|')[0x0];for(const _0x2fa953 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fa953['id']!=_0x369a83&&'attribute'==_0x2fa953['type']&&_0x2fa953['data']&&_0x2fa953['data']['key']==_0x19a422&&_0x2fa953['getFirstRange']()['isIntersecting'](_0x51b4d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fa953,_0x51b4d5['data']['newRange'],_0x1e0595),_0x1ac7ce=!0x0);}return _0x1ac7ce;}recordAttributeChanges(_0x63e66a){this['_recordAttributeSuggestions']=!0x0,_0x63e66a();}_reduceExistingSuggestions(_0x9cf98e,_0x361916){if(0x0==_0x361916['length'])return!0x1;let _0xa15c97=!0x1;for(const _0x24dba9 of _0x361916){const _0x2b8121=this['_findSuggestions'](_0x24dba9['range'],'attribute')['filter'](_0x14e29e=>!_0x14e29e['meta']['isNextTo'])['map'](_0x546245=>_0x546245['suggestion']),_0x282bab=_0x86ba89({'newValue':_0x24dba9['newValue']});_0x2b8121['filter'](_0x5bf1ff=>{const [_0x4073bf,_0x361eb6]=_0x5bf1ff['subType']['split']('|');return _0x4073bf==_0x24dba9['key']&&_0x361eb6!=_0x282bab;})['forEach'](_0x430b86=>{this['_reduceSuggestionAttributeRange'](_0x430b86,_0x24dba9['range'],_0x9cf98e),_0xa15c97=!0x0;});}return _0xa15c97;}_reduceSuggestionAttributeRange(_0xc591c6,_0x1a4bad,_0x271bef){const _0x36a602=_0xc591c6['getFirstRange']()['getDifference'](_0x1a4bad);0x0!==_0x36a602['length']?0x1!==_0x36a602['length']?this['_breakSuggestionMarker'](_0xc591c6,_0x1a4bad['start'],_0x1a4bad['end']):this['_setSuggestionRange'](_0xc591c6,_0x36a602[0x0]):_0x271bef['removeMarker'](_0xc591c6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4468e7){this['_editor']=_0x4468e7,this['_model']=_0x4468e7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x20e7b8,_0x460ed1,_0x5751be,_0x556470,_0x45a170,_0x4f0bce,_0x2a7939){return new Mt(this['_model'],{'type':_0x20e7b8,'subType':_0x460ed1,'id':_0x5751be,'originalSuggestionId':_0x2a7939,'author':_0x556470,'creator':_0x556470,'attributes':_0x45a170,'onAttributesChange':_0x4f0bce,'onAccept':(..._0x146b2f)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'accept')(..._0x146b2f),'onDiscard':(..._0x3c4e79)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'discard')(..._0x3c4e79)});}registerCustomCallback(_0x351aa1,_0x5b5fb5,_0x46366f,_0x32f1a9){const _0x531df1=_0x351aa1+':'+_0x5b5fb5+':'+_0x46366f;this['_customCallbacks']['set'](_0x531df1,_0x32f1a9);}getSuggestionCallback(_0x175f1f,_0x45118a,_0xde7123){const _0x457428=_0x175f1f+':'+_0x45118a+':'+_0xde7123;return this['_customCallbacks']['get'](_0x457428)||this['_defaultCallbacks']['get'](_0x175f1f+':'+_0xde7123);}_registerDefaultCallbacks(){const _0x2f8e5c=()=>!0x1,_0x129c23=_0x380399=>{_0x380399['sort']((_0x445bdf,_0x2ac35d)=>_0x445bdf['start']['isBefore'](_0x2ac35d['start'])?0x1:-0x1),this['_model']['change'](_0x2d6902=>{for(const _0x1f3ef8 of _0x380399){let _0x6dc56d;_0x6dc56d=_0x1f3ef8['end']['isAtEnd']&&_0x1f3ef8['end']['parent']==_0x1f3ef8['start']['nodeAfter']?_0x2d6902['createSelection'](_0x1f3ef8['start']['nodeAfter'],'on'):_0x2d6902['createSelection'](_0x1f3ef8),this['_model']['deleteContent'](_0x6dc56d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x528b81=(_0x2908d6,_0x57f9c8)=>{_0x57f9c8&&this['_model']['change'](_0x210253=>{const {commandName:_0x333f56,commandParams:_0xc25b1b=[]}=_0x57f9c8,_0x40becb=_0x2908d6['map'](_0x38558b=>(ln(_0x38558b)&&(_0x38558b=this['_model']['createRange'](_0x38558b['end'])),_0x38558b))['filter'](_0x1ffae3=>'$graveyard'!==_0x1ffae3['root']['rootName']);if(_0x40becb['length']<0x1)return;const _0x5419d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x510877=>ot['fromRange'](_0x510877));_0x210253['setSelection'](_0x40becb);for(const _0x122e92 of this['_editor']['commands']['commands']())_0x122e92['refresh']();_0xc25b1b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x333f56,..._0xc25b1b);const _0xa06e54=_0x5419d3['filter'](_0x225555=>'$graveyard'!=_0x225555['root']['rootName']);_0xa06e54['length']>0x0&&_0x210253['setSelection'](_0xa06e54);for(const _0x11ed21 of _0x5419d3)_0x11ed21['detach']();});},_0x1ddeba=(_0xa5ad98,_0x493d57)=>0x1==_0xa5ad98['length']&&0x1==_0x493d57['length']&&_0xa5ad98[0x0]['end']['isEqual'](_0x493d57[0x0]['start']),_0x9d359b=(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)=>Tn(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)?[_0x2e8afa,_0x78e636]:Tn(_0x78e636,_0x2e8afa,_0xb283ca,_0x3f5331)?[_0x78e636,_0x2e8afa]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('insertion:discard',_0x129c23),this['_defaultCallbacks']['set']('insertion:join',_0x1ddeba),this['_defaultCallbacks']['set']('insertion:chain',_0x9d359b),this['_defaultCallbacks']['set']('deletion:accept',_0x129c23),this['_defaultCallbacks']['set']('deletion:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('deletion:join',_0x1ddeba),this['_defaultCallbacks']['set']('deletion:chain',_0x9d359b),this['_defaultCallbacks']['set']('formatInline:accept',_0x528b81),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatInline:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x528b81),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a2ed4,_0x4492a7)=>{if(!_0x4492a7)return;const _0x25887d=this['_editor']['plugins']['get'](_0x4fbad8);this['_model']['change'](_0xeffd8=>{if('$elementName'==_0x4492a7['key'])for(const _0x497625 of _0x3a2ed4){const _0x21c79b=_0x497625['start']['nodeAfter'],_0xde7d4f=_0x4492a7['oldValue'];_0xeffd8['rename'](_0x21c79b,_0xde7d4f);}else{if(_0x25887d['isBlockAttribute'](_0x4492a7['key'])){for(const _0x556f9e of _0x3a2ed4)void 0x0!==_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x556f9e['start']['nodeAfter']):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x556f9e['start']['nodeAfter']);}else{for(const _0x4d7af7 of _0x3a2ed4)_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x4d7af7):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x4d7af7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ddeba);}};function cn(_0x1c1387,_0x169723,_0xdfd646){for(const _0x3683e7 of _0x169723['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3683e7['root']==_0x3683e7)return!0x1;if(!_0xdfd646['containsItem'](_0x3683e7))return!0x1;if(_0x1c1387['isObject'](_0x3683e7)||_0x1c1387['isLimit'](_0x3683e7))return!0x0;}return!0x1;}function ln(_0x4fdd30){return _0x4fdd30['end']['parent']==_0x4fdd30['start']['nodeAfter']&&_0x4fdd30['end']['isAtStart'];}function un(_0x3aceba,_0x34e04b,_0x38ca42,_0x8c2a80){const _0x9406ca=_0x2bf659=>!_0x2bf659['item']['is']('$textProxy')&&!_0x8c2a80['isObject'](_0x2bf659['item']),_0x9b648c=_0x3aceba['start']['getLastMatchingPosition'](_0x9406ca),_0x124ef1=_0x3aceba['end']['getLastMatchingPosition'](_0x9406ca,{'direction':'backward'});return(!_0x3aceba['start']['isEqual'](_0x9b648c)||!_0x3aceba['end']['isEqual'](_0x124ef1))&&(_0x9b648c['isBefore'](_0x124ef1)?_0x38ca42['updateMarker'](_0x34e04b,{'range':_0x38ca42['createRange'](_0x9b648c,_0x124ef1)}):_0x38ca42['removeMarker'](_0x34e04b),!0x0);}function dn(_0x4b6940){return _0x86ba89(_0x4b6940);}function hn(_0x39d3c8){const _0x10515a=_0x39d3c8['start']['nodeAfter'];return _0x10515a&&_0x10515a['is']('element');}function gn(_0x11b2c9){return ln(_0x11b2c9)||function(_0x27ff2b){return _0x27ff2b['start']['parent']==_0x27ff2b['end']['nodeBefore']&&_0x27ff2b['start']['isAtEnd'];}(_0x11b2c9);}function fn(_0x2eca1f,_0xd1c093){try{const _0x299f16=_0x2eca1f['getRange']();for(const _0x5e1c21 of _0xd1c093)if(_0x2eca1f!==_0x5e1c21&&_0x299f16&&_0x299f16['isIntersecting'](_0x5e1c21['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1d9140,_0x429797){return null==_0x1d9140['end']['nodeBefore']&&_0x1d9140['end']['parent']==_0x1d9140['start']['nodeAfter']?En(_0x1d9140['start']['nodeAfter'],_0x429797):_0x1d9140;}function En(_0x26f500,_0x2a6271){const _0x4c1dfd=_0x2a6271['schema']['isObject'](_0x26f500)||_0x2a6271['schema']['isSelectable'](_0x26f500);return _0x2a6271['createRange'](_0x2a6271['createPositionAt'](_0x26f500,'before'),_0x4c1dfd?_0x2a6271['createPositionAfter'](_0x26f500):_0x2a6271['createPositionAt'](_0x26f500,'end'));}function Tn(_0x59c484,_0x2f9d19,_0x556498,_0x1ec34a){return!!_n(_0x59c484,_0x2f9d19)&&_0x556498['end']['isEqual'](_0x1ec34a['start']);}function _n(_0x47d3f4,_0x477968){if(!_0x47d3f4['_isDataLoaded']||!_0x477968['_isDataLoaded'])return!0x1;const _0x23e1dc=new Set(Object['keys'](_0x47d3f4['attributes'])),_0x5326fa=new Set(Object['keys'](_0x477968['attributes']));if(_0x23e1dc['delete']('groupId'),_0x5326fa['delete']('groupId'),0x0==_0x23e1dc['size']&&0x0==_0x5326fa['size'])return!0x0;if(_0x23e1dc['size']!=_0x5326fa['size'])return!0x1;const _0x2185dd={..._0x47d3f4['attributes']},_0xb7237c={..._0x477968['attributes']};return delete _0x2185dd['groupId'],delete _0xb7237c['groupId'],JSON['stringify'](_0x2185dd)==JSON['stringify'](_0xb7237c);}function pn(_0x37d083,_0x543d4f){const _0x5fc08c=Ln(_0x37d083['attributes']),_0x2aaec5=Ln(_0x543d4f);if(!_0x37d083['_isDataLoaded'])return!0x1;if(!lt(_0x5fc08c['@ai'],_0x2aaec5['@ai']))return!0x1;for(const _0x5f41b6 of Object['keys'](_0x2aaec5))if(!lt(_0x5fc08c[_0x5f41b6],_0x2aaec5[_0x5f41b6]))return!0x1;return!0x0;}function Ln(_0x205e3f){const _0x4a12ba=Object['assign']({},_0x205e3f);return delete _0x4a12ba['skipNestingCheck'],delete _0x4a12ba['tablePasteChainId'],_0x4a12ba;}function In(_0xca9b39){return _0xca9b39['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x47ad8b();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x9f7678,_0x3ddbc4,_0x4f308e,_0x288a79){super(),this['model']=_0x3ddbc4,this['view']=_0x4f308e,this['commentThreadController']=_0x288a79,this['_editor']=_0x9f7678,this['_acceptCommand']=_0x9f7678['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9f7678['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5de8fa,_0x8864f)=>_0x5de8fa||_0x8864f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c7df8=>_0x1c7df8&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24181d=>_0x24181d&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['_pendingAction']=null,_0x4f308e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f308e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f308e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f308e,'change:isDirty',()=>{_0x4f308e['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}acceptSuggestion(){this['_acceptCommand']['execute'](this['model']['id']);}discardSuggestion(){this['_discardCommand']['execute'](this['model']['id']);}destroy(){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}_setPendingAction(){const _0x16233b=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16233b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x44d047{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x220cf0,_0x40a7af,_0x40984b,_0x10e20a){super(_0x220cf0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb0e5f7(_0x220cf0,Ot(_0x220cf0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40a7af['authoredAt']),this['bind']('authoredAt')['to'](_0x40a7af),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x40a7af,'authoredAt',this,'descriptionParts',(_0x28bbf0,_0x16dc10,_0x30d59c)=>{const _0x1b19fc=_0x30d59c['map'](_0x38e676=>It(_0x38e676['content']))['join']('.\x20')+'.',_0x1a8cda=_0x40a7af['aiSource']&&'author'===_0x10e20a['showAISource']?_0x10e20a['aiAuthor']['name']:_0x40a7af['author']['name'],_0x58406d=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28bbf0-0x1,_0x1a8cda,_0x16dc10?_0x10e20a['formatDateTime'](_0x16dc10):'',new DOMParser()['parseFromString'](_0x1b19fc,'text/html')['body']['textContent']]);return _0x40a7af['aiSource']&&'pill'===_0x10e20a['showAISource']?_0x58406d+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x58406d;}),this['focusables']=new _0x4b334b(),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34f76b=>_0x34f76b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40a7af,this['_localUser']=_0x40984b,this['_config']=_0x10e20a,_0x10e20a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x251c5b}=this['_config'];this['commentsListView']=new _0x251c5b(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x5986c7=>_0x5986c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24d518,_0x5363c8)=>_0x24d518||!!_0x5363c8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x32ce5f}=this['_config'],_0x456c77=new _0x32ce5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15e5c8=_0x456c77['commentInputView'];return _0x456c77['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15e5c8,'value',(_0x488edb,_0x5a5e33,_0x1d4514)=>!!_0x1d4514||_0x488edb&&!_0x5a5e33),_0x15e5c8['on']('submit',(_0x15764c,_0x47d2a6)=>{this['fire']('addComment',_0x47d2a6),_0x15e5c8['editor']['setData']('');}),_0x15e5c8['on']('cancel',()=>this['focus']()),_0x15e5c8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x456c77;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13){super(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44491c=>_0x44491c&&_0x44491c[0x0]?_0x44491c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f16d9,_0x188691)=>{let _0x3f747a='';for(const _0x2bfede of _0x4f16d9)_0x3f747a+='<p>'+It(_0x2bfede['content'],_0x2bfede['color'])+'</p>';return _0x188691?_0x3f747a:it(_0x3f747a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d5e13['SuggestionView'](_0x575ef2,_0x3e4595,{'formatDateTime':_0x2d5e13['formatDateTime'],'showAISource':_0x2d5e13['showAISource'],'aiAuthor':_0x2d5e13['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x3fee8c=this['bindTemplate'],_0x5747f3=[this['suggestionView']];return this['commentsListView']&&_0x5747f3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5747f3['push'](this['commentThreadInputView']),_0x5747f3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fee8c['if']('isActive','ck-suggestion-wrapper--active'),_0x3fee8c['to']('type',_0x4c8d47=>'ck-suggestion-'+_0x4c8d47),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3fee8c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5747f3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x44d047{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4235c8,_0x10938f,_0xb8c606){super(_0x4235c8),this['_model']=_0x10938f,this['_config']=_0xb8c606,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10938f),this['acceptButton']=this['_createButton'](Ot(_0x4235c8,'Accept\x20suggestion'),_0x14b565,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x4235c8,'Discard\x20suggestion'),_0x5eb0dc,'ck-suggestion--discard','discardSuggestion','sw');const _0x148980=!!_0x10938f['aiSource']&&'author'===_0xb8c606['showAISource'],_0x948dcb=_0x148980?this['_createAIUser'](_0xb8c606['aiAuthor']):_0x10938f['author'],_0x55026a=_0x148980&&!_0xb8c606['aiAuthor']['avatar']?_0x112b98:void 0x0;this['userView']=new _0x122117(_0x4235c8,_0x948dcb,this['getUserViewNotificationText'](),_0x55026a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b334b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1e219a=>_0x1e219a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xdfe01d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xdfe01d['innerHTML']=this['description'],this['on']('change:description',(_0xf69b51,_0x1b9bdc,_0x36dfb5)=>{_0xdfe01d['innerHTML']=_0x36dfb5;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x328181=this['bindTemplate'],_0x56338a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x328181['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x328181['to']('authoredAt',_0x3365c6=>this['_config']['formatDateTime'](_0x3365c6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x56338a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x472b8c=new _0x24fb6b(this['locale']);_0x472b8c['set']({'icon':_0x3af273,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x56338a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x472b8c]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x56338a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x9b4d9){return new _0xcdc6f6({'id':'ck-ai-author','name':_0x9b4d9['name'],'avatar':_0x9b4d9['avatar'],'color':new _0x4762e5(0x0)});}_createButton(_0x29be2a,_0x20ee5b,_0xc9c2d8,_0x363ba9,_0x5950de){const _0xf70725=new _0x5bb789(this['locale']);return _0xf70725['set']({'label':_0x29be2a,'icon':_0x20ee5b,'tooltip':!0x0,'tooltipPosition':_0x5950de}),_0xf70725['extendTemplate']({'attributes':{'class':_0xc9c2d8}}),_0xf70725['on']('execute',()=>{this['fire'](_0x363ba9,this['_model']['id']);}),_0xf70725;}_setupKeyboardNavigation(){const _0x2e28cc=this['element'];this['keystrokes']['listenTo'](_0x2e28cc);for(const _0x2e707a of this['focusables'])this['focusTracker']['add'](_0x2e707a['element']),this['keystrokes']['listenTo'](_0x2e707a['element']);this['keystrokes']['set']('enter',(_0x5cc161,_0x173880)=>{_0x2e28cc===_0x5cc161['target']&&(this['focusCycler']['focusFirst'](),_0x173880());}),this['keystrokes']['set']('esc',(_0x42b057,_0x29ff95)=>{_0x2e28cc!==_0x42b057['target']&&(this['focus'](),_0x29ff95());});}},yn=class extends _0x548d2a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x5036c6,_0x625dc5,_0x5a11f9,_0x515c91];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c2d4){super(_0x52c2d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bfcf0=this['editor']['config'];_0x3bfcf0['define']('trackChanges.SuggestionThreadView',kn),_0x3bfcf0['define']('trackChanges.SuggestionView',Rn),_0x3bfcf0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bfcf0['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2137e4,_0x11b751){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1a23,_0x5a2f39]of this['_handleControllerBuffer']){const _0x537f55=this['_suggestionToController']['has'](_0x1d1a23);_0x537f55||_0x5a2f39?_0x537f55&&_0x5a2f39&&this['_destroyController'](_0x1d1a23):this['_initializeController'](_0x1d1a23);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x515c91)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2137e4,_0x11b751);}init(){const _0x11716f=this['editor'],_0x29cad8=_0x11716f['plugins']['get'](on),_0x4d33fa=_0x11716f['plugins']['get'](_0x5a11f9),_0x385ec1=_0x11716f['plugins']['get'](_0x515c91),_0x300a07=_0x11716f['plugins']['get'](_0x625dc5);this['_addUIComponentsToFactory'](),_0x385ec1['addSourceCollector'](()=>{const _0x515bd6=[];for(const [_0x231064,_0x2347eb]of Array['from'](this['_suggestionToController'])){const _0x37f593=_0x231064['getAllAdjacentSuggestions'](),_0x4bf0d6=[];for(const _0x1eaf0a of _0x37f593){if(!_0x1eaf0a['isInContent'])continue;if(_0x1eaf0a['isMultiRange']){_0x4bf0d6['push'](..._0x1eaf0a['getRanges']());continue;}const _0x1bec27=_0x1eaf0a['getFirstRange']();if(_0x4bf0d6['length']>0x0){const _0x1a017a=_0x4bf0d6[0x0]['getJoined'](_0x1bec27);if(_0x1a017a){_0x4bf0d6[0x0]=_0x1a017a;continue;}}_0x4bf0d6['push'](_0x1bec27);}_0x515bd6['push']([_0x2347eb['view'],_0x4bf0d6]);}return _0x515bd6;}),this['listenTo'](_0x29cad8,'suggestionLoaded',(_0x28c5c8,_0x4772fb)=>{this['listenTo'](_0x4772fb,'change:previous',(_0x40f7e6,_0x15cfc5,_0x108887,_0x5ccc75)=>{_0x4772fb['isInContent']&&(null==_0x108887?(this['_updateController'](_0x5ccc75['head']),this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1)):(this['_updateController'](_0x108887['head']),null==_0x5ccc75&&this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x0)));}),null!==_0x4772fb['previous']?this['_updateController'](_0x4772fb['head']):this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1);}),this['listenTo'](_0x29cad8,'suggestionUnloaded',(_0x1ff12f,_0x1ce679,_0x4615a0)=>{this['stopListening'](_0x1ce679,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ce679),this['_suggestionToController']['has'](_0x1ce679)&&this['_destroyController'](_0x1ce679),_0x4615a0&&this['_updateController'](_0x4615a0['head']);}),this['listenTo'](_0x29cad8,'suggestionChanged',(_0xcbab95,_0xa4a79f)=>{this['_updateController'](_0xa4a79f);}),this['listenTo'](_0x4d33fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x300a07,'addComment',(_0x5af959,{threadId:_0x307531,isFromAdapter:_0x4c3cef})=>{if(_0x4c3cef||!_0x29cad8['hasSuggestion'](_0x307531))return;const _0x93da94=_0x29cad8['getSuggestion'](_0x307531);this['_suggestionToController']['get'](_0x93da94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48c026=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8ec6c1;for(const _0x39a3b9 in _0x48c026){const _0x4328c9=_0x39a3b9,_0x335394=_0x48c026[_0x4328c9];if('trackChangesLicenseKeyValid'==_0x335394||'trackChangesLicenseKeyInvalid'==_0x335394||'trackChangesLicenseKeyExpired'==_0x335394||'trackChangesLicenseKeyDomainLimit'==_0x335394||'trackChangesLicenseKeyNotAllowed'==_0x335394||'trackChangesLicenseKeyEvaluationLimit'==_0x335394||'trackChangesLicenseKeyUsageLimit'==_0x335394){delete _0x48c026[_0x4328c9],_0x8ec6c1=_0x335394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8ec6c1&&_0x48c026['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8ec6c1&&_0x48c026['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8ec6c1&&_0x48c026['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0xd404bc){const _0x3a767e=this['_suggestionToController']['get'](_0xd404bc);return _0x3a767e&&this['editor']['plugins']['get'](_0x5a11f9)['getByInnerView'](_0x3a767e['view'])||null;}getSuggestionForAnnotation(_0x1964e8){const _0x15b2ac=this['_viewToController']['get'](_0x1964e8['innerView']);return _0x15b2ac?_0x15b2ac['model']:null;}_refreshActiveMarkers(){const _0x33d1d2=this['editor']['plugins']['get'](_0x5a11f9),_0x5149ab=this['editor']['plugins']['get'](on),_0x4fc650=Array['from'](_0x33d1d2['activeAnnotations'],_0x462258=>_0x462258['innerView'])['filter'](_0x1111a1=>this['_viewToController']['has'](_0x1111a1)),_0x22917d=[];for(const _0xd10a3f of _0x4fc650){const _0x4f0f24=this['_viewToController']['get'](_0xd10a3f)['model']['getAllAdjacentSuggestions']();_0x22917d['push'](..._0x4f0f24['reduce']((_0x260c35,_0x89e38d)=>[..._0x260c35,..._0x89e38d['getMarkerNames']()],[]));}_0x5149ab['activeMarkers']=_0x22917d;}_addUIComponentsToFactory(){const _0x3a57f9=this['editor'],_0x7bfba=_0x3a57f9['locale'],_0x39e998=Ot(_0x7bfba,'Track\x20changes'),_0x18d524=new _0x2d3c72([{'type':'switchbutton','model':new _0xe0f952({'withText':!0x0,'isToggleable':!0x0,'label':_0x39e998,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a57f9['plugins']['has']('TrackChangesPreview')&&_0x18d524['addMany']([{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25ee7b of _0x18d524)if(Nn(_0x25ee7b)){const _0x16f661=_0x3a57f9['commands']['get'](_0x25ee7b['model']['commandName']);_0x25ee7b['model']['bind']('isOn','isEnabled')['to'](_0x16f661,'value','isEnabled');}_0x3a57f9['ui']['componentFactory']['add']('trackChanges',_0x4f2469=>this['_createToolbarButton'](_0x4f2469,_0x18d524,_0x39e998)),_0x3a57f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x799199=>this['_createMenuBarMenu'](_0x799199,_0x18d524,_0x39e998));}_createToolbarButton(_0x4f59f8,_0x420b16,_0x414dd0){const _0x3ebe9e=_0x583898(_0x4f59f8,_0x499055),_0x5b3365=this['editor']['commands']['get']('trackChanges');_0x3ebe9e['buttonView']['set']({'tooltip':_0x414dd0,'label':_0x414dd0,'icon':_0x1fd907}),_0x3ebe9e['buttonView']['bind']('isOn')['to'](_0x5b3365,'value'),_0x3ebe9e['buttonView']['on']('execute',()=>{_0x5b3365['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a7aa3(_0x3ebe9e,_0x420b16,{'role':'menu'});const _0x28b66a=[];for(const _0x249a26 of _0x420b16)Nn(_0x249a26)&&_0x28b66a['push'](this['editor']['commands']['get'](_0x249a26['model']['commandName']));const _0x5bb484=_0x3ebe9e['buttonView'];return _0x5bb484['actionView']['unbind']('isEnabled'),_0x5bb484['arrowView']['unbind']('isEnabled'),_0x5bb484['actionView']['bind']('isEnabled')['to'](_0x5b3365,'isEnabled'),_0x5bb484['arrowView']['bind']('isEnabled')['toMany'](_0x28b66a,'isEnabled',(..._0x3d0451)=>_0x3d0451['some'](_0x467926=>_0x467926)),_0x3ebe9e['on']('execute',_0x430bf8=>{this['editor']['execute'](_0x430bf8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ebe9e;}_createMenuBarMenu(_0x232c5a,_0x2f5afc,_0x1e96fe){const _0x7160f4=new _0x3b7c12(_0x232c5a),_0x379803=this['editor']['commands']['get']('trackChanges');_0x7160f4['buttonView']['set']({'label':_0x1e96fe,'icon':_0x1fd907});const _0x5f1d7d=new _0x1d8e7c(_0x232c5a);for(const _0x3fda93 of _0x2f5afc){if('separator'==_0x3fda93['type']){_0x5f1d7d['items']['add'](new _0x5b0cbf(_0x232c5a));continue;}const _0x490ea6=new _0x271ebd(_0x232c5a,_0x7160f4),_0x47fee4=new _0x28f43e(_0x232c5a),_0xf4166b=_0x3fda93['model'];_0x47fee4['bind'](...Object['keys'](_0xf4166b))['to'](_0xf4166b),_0x47fee4['delegate']('execute')['to'](_0x7160f4),_0x47fee4['on']('execute',()=>{this['editor']['execute'](_0xf4166b['commandName']),this['editor']['editing']['view']['focus']();}),_0x490ea6['children']['add'](_0x47fee4),_0x5f1d7d['items']['add'](_0x490ea6);}return _0x7160f4['bind']('isEnabled')['to'](_0x379803,'isEnabled'),_0x7160f4['panelView']['children']['add'](_0x5f1d7d),_0x7160f4;}_initializeController(_0x3a20f4){const _0x275151=this['editor'],_0xa56ec6=_0x275151['config'],_0x5d6a0a=_0x275151['plugins']['get'](_0x5a11f9),_0x39941a=_0x275151['plugins']['get'](_0x625dc5),_0x3069fc=_0x275151['plugins']['get'](_0x515c91),_0x5ba29f=_0x275151['plugins']['get'](_0x5036c6)['me'],_0x28c881=_0xa56ec6['get']('trackChanges')['SuggestionThreadView'],_0x46db4d=_0xa56ec6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x468f5f,CommentThreadInputView:_0x5e658d}=_0x275151['plugins']['get']('CommentsUI');let _0x4583bc,_0x45f8be,_0x244256;this['_annotationViews']['has'](_0x3a20f4['id'])?(_0x45f8be=this['_annotationViews']['get'](_0x3a20f4['id']),_0x4583bc=_0x45f8be['mainView']):(_0x4583bc=new _0x28c881(_0x275151['locale'],_0x3a20f4,_0x5ba29f,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa56ec6['get']('comments.editorConfig'),'licenseKey':_0xa56ec6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa56ec6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f27f5(_0xa56ec6['get']('locale'),_0x275151['locale']),'CommentView':_0xa56ec6['get']('comments')['CommentView'],'CommentsListView':_0x468f5f,'CommentThreadInputView':_0x5e658d,'SuggestionView':_0x46db4d,'showAISource':_0xa56ec6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xa56ec6['get']('trackChanges.aiAuthor'),'name':_0xa56ec6['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x275151['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4583bc['suggestionView']['acceptButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x4583bc['suggestionView']['discardButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x45f8be=_0x5d6a0a['createAnnotationView'](this['editor']['locale'],_0x4583bc),_0x45f8be['bind']('isDirty')['to'](_0x4583bc,'isDirty'),_0x45f8be['bind']('length')['to'](_0x4583bc),_0x45f8be['bind']('type')['to'](_0x4583bc,'type',_0x3cbea9=>'suggestion-'+_0x3cbea9),_0x4583bc['on']('escape',()=>{_0x244256['fire']('escape');}),this['_annotationViews']['set'](_0x3a20f4['id'],_0x45f8be));const _0x5248e2=_0x39941a['createCommentThreadController'](_0x3a20f4['commentThread'],_0x4583bc),_0x39077d=new bn(_0x275151,_0x3a20f4,_0x4583bc,_0x5248e2),_0x28cc09=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x34d17f=>_0x34d17f['isInContent']);_0x4583bc['descriptionParts']=_0x275151['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x28cc09),this['_suggestionToController']['set'](_0x3a20f4,_0x39077d),this['_viewToController']['set'](_0x4583bc,_0x39077d);const _0x113774=()=>{const _0x569d44=[],_0x20272b=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x17ed7c=>_0x17ed7c['isInContent']);for(const _0x23a47c of _0x20272b)_0x569d44['push'](..._0x23a47c['getMarkers']());return _0x369c76(_0x275151['editing'],_0x569d44);};_0x244256=_0x5d6a0a['createAnnotation']({'view':_0x45f8be,'target':_0x113774,'type':()=>'suggestion-'+_0x39077d['view']['type'],'isVisible':!!_0x113774()}),_0x39941a['_bindAnnotationToEditors'](_0x4583bc,_0x244256),_0x5d6a0a['add'](_0x244256),_0x3069fc['registerAnnotation'](_0x244256);}_destroyController(_0x3ed5ab){const _0x4c96e2=this['editor']['plugins']['get'](_0x625dc5),_0x16b38f=this['editor']['plugins']['get'](_0x5a11f9),_0x2fe565=this['_suggestionToController']['get'](_0x3ed5ab),_0xc784aa=_0x2fe565['view'],_0x5ca6aa=_0x16b38f['getByInnerView'](_0xc784aa);_0x4c96e2['_unbindEditors'](_0xc784aa),_0x5ca6aa&&_0x16b38f['remove'](_0x5ca6aa),this['_suggestionToController']['delete'](_0x3ed5ab),this['_viewToController']['delete'](_0xc784aa),_0x2fe565['destroy']();}_updateController(_0xd7f85f){if(!_0xd7f85f['isInContent']||!this['_suggestionToController']['has'](_0xd7f85f))return;const _0x51cd7f=this['editor']['plugins']['get'](on),_0x41cb58=this['_suggestionToController']['get'](_0xd7f85f),_0xd3c94=_0xd7f85f['getAllAdjacentSuggestions']();_0x41cb58['view']['descriptionParts']=_0x51cd7f['descriptionFactory']['getDescriptions'](_0xd3c94);}destroy(){for(const _0x5b0610 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b0610);for(const _0x5664a9 of this['_annotationViews']['values']())_0x5664a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x2c5bec){return'model'in _0x2c5bec;}var Sn=class extends _0x548d2a{static get requires(){return[on,yn,_0x28e9ec];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3cd48b){this['editor']['plugins']['get'](on)['adapter']=_0x3cd48b;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xa6005){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xa6005);}getSuggestions({skipNotAttached:_0x355e96=!0x1,toJSON:_0x4a8a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x355e96,'toJSON':_0x4a8a95});}getSuggestion(_0x1e5e2c){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1e5e2c);}};const Mn=['Pagination'];var On=class extends _0x548d2a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ddd1b=this['editor'];if(_0x4ddd1b['config']['define']('trackChangesData.editorCreator',_0x5e99bc=>{const _0x4dd735=_0x4ddd1b['model']['document']['getRootNames']()['reduce']((_0x193197,_0x55ed35)=>(_0x193197[_0x55ed35]='',_0x193197),{});return _0x4ddd1b['constructor']['create'](_0x4dd735,_0x5e99bc);}),'function'!=typeof _0x4ddd1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ce3e1('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x14f7e7){return Bn(this['editor'],!0x0,_0x14f7e7);}getDataWithDiscardedSuggestions(_0x2d7dbe){return Bn(this['editor'],!0x1,_0x2d7dbe);}},wn=class extends _0x548d2a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba85){super(_0x28ba85),this['result']='end',_0x28ba85['editing']['view']['_overlayModeHint']='auto',_0x28ba85['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}init(){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}};function Fn(_0x5aa0fe){return void 0x0!==_0x5aa0fe['getRootsAttributes'];}async function Bn(_0x124d42,_0x177eb7,_0x57850e){const _0x4db4b2=_0x303fe4(_0x124d42,Mn);if(_0x4db4b2['plugins']['push'](on,wn),Fn(_0x124d42)){_0x4db4b2['roots']=Object['create'](null);for(const _0x5bafe0 of _0x124d42['model']['document']['getRootNames']())_0x4db4b2['roots'][_0x5bafe0]={'modelAttributes':_0x124d42['getRootAttributes'](_0x5bafe0)};}const _0x50ac82=document['createDocumentFragment'](),_0x5379f7=_0x124d42['config']['get']('trackChangesData')['editorCreator'],_0x58096b=await _0x5379f7(_0x4db4b2,()=>function(_0x4b2c14){const _0x14883c=document['createElement']('div');return _0x4b2c14['appendChild'](_0x14883c),_0x14883c;}(_0x50ac82));!function(_0x44fff3,_0x49047a){const _0x3049e2=_0x44fff3['model']['document']['getRootNames']()['reduce']((_0x16e750,_0x3dddd1)=>(_0x16e750[_0x3dddd1]=_0x44fff3['data']['get']({'rootName':_0x3dddd1}),_0x16e750),{}),_0x3b8f41=_0x44fff3['plugins']['get']('Users')['users']['map'](_0x130ee1=>({'id':_0x130ee1['id'],'name':_0x130ee1['name']})),_0x2b3cc8=_0x44fff3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223625=_0x44fff3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x330598=_0x49047a['plugins']['get']('Users'),_0x13d5de=_0x49047a['plugins']['get']('TrackChangesEditing'),_0xe4285=_0x49047a['plugins']['get']('CommentsRepository');for(const _0x1313c3 of _0xe4285['getCommentThreads']())_0x1313c3['remove']();for(const _0x2ce7fe of _0x3b8f41)_0x330598['getUser'](_0x2ce7fe['id'])||_0x330598['addUser'](_0x2ce7fe);_0x330598['me']||_0x330598['useAnonymousUser']();for(const _0x3ecfee of _0x223625)_0xe4285['addCommentThread'](_0x3ecfee);for(const _0x162908 of _0x2b3cc8)_0x13d5de['addSuggestionData'](_0x162908);_0x49047a['data']['set'](_0x3049e2);}(_0x124d42,_0x58096b),_0x58096b['execute'](_0x177eb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f34e2=Fn(_0x58096b)?_0x58096b['getFullData'](_0x57850e):_0x58096b['data']['get'](_0x57850e);return await _0x58096b['destroy'](),_0x4f34e2;}var vn=class extends _0x44d047{options;constructor(_0x3f1e07,_0xff0677){super(_0x3f1e07),this['options']=_0xff0677,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x2fdeaf,_0x56690d){if(!this['element'])return;const _0x418c17=[];for(const [_0x5234ee,_0x40d3a8]of _0x2fdeaf){const _0x4aa2c4=document['createElement']('div');_0x4aa2c4['setAttribute']('data-ck-root-name',_0x5234ee),_0x4aa2c4['className']=_0x40d3a8['classes']+'\x20ck-track-changes-preview__root-container',_0x4aa2c4['innerHTML']=_0x40d3a8['content'],_0x418c17['push'](_0x4aa2c4);}_0x56690d(this['element'],_0x418c17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x5a79ba{constructor(_0x4933c0){super(_0x4933c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x7a7457=this['editor'],_0x3c4a38=_0x7a7457['locale'],_0xe8d7c8=_0x7a7457['plugins']['get']('Dialog');let _0x8ea4e7;const _0x24b842=function(_0x7cdeef){const _0x35e336={};if('editables'in _0x7cdeef['ui']['view']){for(const [_0x4c72c2,_0x2687e8]of Object['entries'](_0x7cdeef['ui']['view']['editables']))_0x35e336[_0x4c72c2]=_0x2687e8['element'];}else _0x35e336[_0x7cdeef['model']['document']['getRootNames']()[0x0]]=_0x7cdeef['ui']['view']['editable']['element'];return _0x35e336;}(_0x7a7457),_0x1f9ba3=function(_0x4db1ad){let _0x13c578=0x0;for(const _0x50f1c6 of Object['values'](_0x4db1ad))_0x13c578=Math['max'](_0x13c578,_0x50f1c6['getBoundingClientRect']()['width']);let _0x135b10=0x0;for(const _0x297ced of Object['values'](_0x4db1ad))_0x135b10+=_0x297ced['getBoundingClientRect']()['height'];const _0x291efa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x13c578,'height':Math['min'](_0x135b10,_0x291efa)};}(_0x24b842);_0xe8d7c8['show']({'id':'finalContentPreview','title':Ot(_0x3c4a38,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x3c4a38,{'dialogRects':_0x1f9ba3}),'onHide':()=>{_0x8ea4e7['detachFromDom']();},'onShow':()=>{_0x7a7457['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x152bd9=>{const _0x1ff517=this['_standarizeRootsData'](_0x152bd9,_0x7a7457,_0x24b842);_0xe8d7c8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1ff517,_0x7a7457['config']['get']('trackChanges.preview.renderFunction'));}),_0x8ea4e7=new _0x1d1889(_0x3c4a38,[_0xe8d7c8['view']]),_0x8ea4e7['attachToDom'](),_0x8ea4e7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x7a7457['once']('destroy',()=>{_0x8ea4e7['detachFromDom']();});const _0x3de1e7=_0xe8d7c8['view']['headerView']['class'];_0xe8d7c8['view']['headerView']['class']=_0x3de1e7?_0x3de1e7+'\x20ck-reset_all':'ck-reset_all',_0xe8d7c8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe8d7c8['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4be89f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x387123=_0x4be89f['previewMode'],_0x5df8bb={};if('$labels'===_0x387123){for(const _0x189049 of _0x4be89f['getMergeFieldsIds']())_0x5df8bb[_0x189049]=_0x4be89f['getLabel'](_0x189049)||_0x189049;}else{const _0x4f3a96='$defaultValues'===_0x387123?_0x4be89f['getDefaultValues']():_0x4be89f['getDataSetValues'](_0x387123,!0x0);for(const _0x1a8e79 of Object['entries'](_0x4f3a96)){const [_0x3bcb3d,_0x1c2c30]=_0x1a8e79;_0x5df8bb[_0x3bcb3d]=null!==_0x1c2c30?_0x1c2c30:_0x4be89f['getLabel'](_0x3bcb3d)||_0x3bcb3d;}}return{'mergeFieldsData':_0x5df8bb};}_standarizeRootsData(_0x41f16d,_0x240abd,_0xcca0f4){let _0x5d41d3;_0x5d41d3='string'==typeof _0x41f16d?{[_0x240abd['model']['document']['getRootNames']()[0x0]]:_0x41f16d}:_0x41f16d;const _0x1beca7=this['_fixMediaEmbeds'](_0x5d41d3,_0x240abd);return function(_0x37d418,_0x197767){for(const [_0x4f4c5b,_0x2ad5af]of _0x37d418)_0x2ad5af['classes']=_0x197767[_0x4f4c5b]['classList']['value']['replace']('ck-focused','');return _0x37d418;}(this['_sortRoots'](_0x240abd)['reduce']((_0x4c231c,_0x1d214c)=>(_0x4c231c['push']([_0x1d214c,{'content':_0x1beca7[_0x1d214c],'classes':''}]),_0x4c231c),[]),_0xcca0f4);}['_fixMediaEmbeds'](_0x1a9359,_0x31834e){if(!_0x31834e['plugins']['has']('MediaEmbedEditing'))return _0x1a9359;const _0x20b3a3=_0x31834e['plugins']['get']('MediaEmbedEditing');for(const [_0x228c51,_0x25145a]of Object['entries'](_0x1a9359)){const _0x3323c4=document['createElement']('div');_0x3323c4['innerHTML']=_0x25145a,_0x3323c4['querySelectorAll']('figure.media')['forEach'](_0x1dbee8=>{const _0x505c9d=_0x1dbee8['querySelector']('oembed');if(_0x505c9d){const _0x7a7261=_0x505c9d['getAttribute']('url');if(_0x7a7261){const _0x564fbf=_0x20b3a3['registry']['getMediaViewElement'](new at(_0x31834e['editing']['view']['document']),_0x7a7261,{'elementName':'','renderForEditingView':!0x0}),_0x296940=document['createElement']('div');_0x296940['classList']['add']('ck-media__wrapper'),_0x564fbf['render'](_0x296940,_0x31834e['editing']['view']['domConverter']),_0x505c9d['replaceWith'](_0x296940);}}}),_0x1a9359[_0x228c51]=_0x3323c4['innerHTML'];}return _0x1a9359;}_sortRoots(_0x4aaf5b){if(!function(_0x8f2e18){return void 0x0!==_0x8f2e18['getRootsAttributes'];}(_0x4aaf5b))return _0x4aaf5b['model']['document']['getRootNames']();const _0x29a615=[],_0x5ca53c=new Map();for(const _0x4ae2bd of _0x4aaf5b['model']['document']['getRootNames']()){const _0x2cfcec=_0x4aaf5b['editing']['view']['getDomRoot'](_0x4ae2bd)['getClientRects']()['item'](0x0);_0x29a615['push'](_0x4ae2bd),_0x5ca53c['set'](_0x4ae2bd,_0x2cfcec);}return _0x29a615['sort']((_0x34b4ef,_0x8080d9)=>{const _0x5df413=_0x5ca53c['get'](_0x34b4ef),_0x2c2f97=_0x5ca53c['get'](_0x8080d9);return _0x5df413['y']-_0x2c2f97['y']||_0x5df413['x']-_0x2c2f97['x'];}),_0x29a615;}},Un=class extends _0x548d2a{static get requires(){return[On,_0x4ccace];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x185a0b){super(_0x185a0b),_0x185a0b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x185a0b['config']['define']('trackChanges.preview.renderFunction',(_0x278be6,_0x3ff307)=>{for(const _0x30584e of _0x3ff307)_0x278be6['appendChild'](_0x30584e);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};
|