@ckeditor/ckeditor5-track-changes 47.6.0-alpha.7 → 47.6.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +4 -4
- 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 +26 -26
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/previewfinalcontentcommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/index.js +1 -1
- package/src/integrations/ai.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/aiquickactions.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/bookmark.js +1 -1
- package/src/integrations/casechange.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/emoji.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/footnotes.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.js +1 -1
- package/src/integrations/lineheight.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/mergefields.js +1 -1
- package/src/integrations/multilevellist.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/replacesourcecommand.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +2 -2
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablelayout.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/uploadcare.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +2 -2
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangespreview.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +2 -2
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/ui/view/suggestionview.js +1 -1
- package/src/ui/view/trackchangespreviewview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x1707ba(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4de4e8,_0x1a0510){super(),this['id']=_0x1a0510['id'],this['type']=_0x1a0510['type'],this['subType']=_0x1a0510['subType']||null,this['author']=_0x1a0510['author'],this['creator']=_0x1a0510['creator']||_0x1a0510['author'],this['isExternal']=Boolean(_0x1a0510['attributes']&&_0x1a0510['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1a0510['originalSuggestionId']||null,this['_model']=_0x4de4e8,this['_onAccept']=_0x1a0510['onAccept'],this['_onDiscard']=_0x1a0510['onDiscard'],this['_onAttributesChange']=_0x1a0510['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a0510['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x32d8ce=this;for(;_0x32d8ce['previous'];)_0x32d8ce=_0x32d8ce['previous'];return _0x32d8ce;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x5bb096){this['_markerNames']['add'](_0x5bb096);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xea6c66=>this['_model']['markers']['get'](_0xea6c66))['filter'](_0x1ad6b5=>_0x1ad6b5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1df4f2=>{for(const _0x13de72 of this['getMarkers']())_0x1df4f2['removeMarker'](_0x13de72);}),this['_markerNames']['clear']();}['removeMarker'](_0x4dcf47){this['_model']['change'](_0xed8f1=>{_0xed8f1['removeMarker'](_0x4dcf47);}),this['_markerNames']['delete'](_0x4dcf47);}['addRange'](_0x31f5dc){const _0x11d401='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x11d401),this['_model']['change'](_0xf0d7d1=>{_0xf0d7d1['addMarker'](_0x11d401,{'range':_0x31f5dc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x41a1e4){for(const _0x3b79ea of this['getRanges']())if(_0x3b79ea['isIntersecting'](_0x41a1e4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x23e089=>_0x23e089['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f2a5d,_0x362443)=>[..._0x4f2a5d,..._0x362443['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x43a5c4=this['getRanges']();if(0x1!=_0x43a5c4['length'])return null;const _0x58790c=_0x43a5c4[0x0],_0x39410e=_0x58790c['start']['nodeAfter'],_0xc1b7e4=_0x58790c['end']['nodeBefore'];return _0x39410e instanceof _0x44fe7a?_0x39410e!=_0xc1b7e4?null:_0x39410e: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 _0x37e0d8=[];let _0x6ecf3a=this['head'];for(;_0x6ecf3a;)_0x37e0d8['push'](_0x6ecf3a),_0x6ecf3a=_0x6ecf3a['next'];return _0x37e0d8;}['setAttribute'](_0x1ad481,_0x42b5df){const _0x42e10d=_0x22db81(this['attributes']);_0x232540(_0x42e10d,_0x1ad481,_0x42b5df),_0x29eb7f(_0x42e10d,this['attributes'])||(this['attributes']=_0x42e10d,this['_onAttributesChange'](_0x42e10d));}['removeAttribute'](_0xc3f69d){const _0x4981c3=_0x22db81(this['attributes']);_0x17c7ec(_0x4981c3,_0xc3f69d),_0x29eb7f(_0x4981c3,this['attributes'])||(this['attributes']=_0x4981c3,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 _0x258bf1()['substr'](0x1,0x5);}}function o(_0x5c7f49,_0x28a5dc,_0x289f52){const _0x42adb8=_0x5c7f49['t'],t=_0x5c7f49['t'];switch(_0x28a5dc){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',_0x289f52);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x289f52);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x289f52);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x289f52);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x289f52);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',_0x289f52);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x289f52);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',_0x289f52);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x289f52);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x289f52);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x289f52);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x289f52);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x289f52);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x289f52);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x289f52);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x289f52);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x289f52);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x289f52);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x289f52);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x289f52);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x289f52);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x289f52);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x289f52);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x289f52);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x289f52);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'},_0x289f52);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x289f52);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x289f52);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x289f52);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x289f52);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x289f52);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x289f52);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x289f52);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});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'},_0x289f52);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x289f52);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x289f52);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x289f52);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x289f52);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'},_0x289f52);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x289f52);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'},_0x289f52);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_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_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'},_0x289f52);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x289f52);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'},_0x289f52);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x289f52);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'},_0x289f52);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x289f52);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x289f52);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x289f52);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x289f52);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x289f52);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'},_0x289f52);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x289f52);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'EXTERNAL_AVATAR':return _0x42adb8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x289f52);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x42adb8({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x289f52);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x289f52);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'},_0x289f52);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'},_0x289f52);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'},_0x289f52);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28a5dc;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2abd19,_0xf786b8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2abd19,this['_locale']=_0xf786b8;}['getDescriptions'](_0x1edf19){const _0x3992fc=[],_0x1c654c=new Set(),_0x30e08f=new Set();for(let _0x31f12d=0x0;_0x31f12d<_0x1edf19['length'];_0x31f12d++){const _0xf797d5=_0x1edf19[_0x31f12d];if(!_0xf797d5['isInContent'])continue;const _0x4f1f42=this['_handleCustomCallbackDescription'](_0xf797d5);if(_0x4f1f42){if(null!=_0xf797d5['subType']){if(_0x1c654c['has'](_0xf797d5['subType']))continue;_0x1c654c['add'](_0xf797d5['subType']);}_0x3992fc['push'](_0x4f1f42);}else{if('attribute'==_0xf797d5['type']){const _0x505d37=_0xf797d5['data']['key'];if(_0x30e08f['has'](_0x505d37))continue;_0x30e08f['add'](_0xf797d5['data']['key']),_0x505d37==m?this['_handleRenameSuggestionDescription'](_0x3992fc,_0xf797d5):this['_handleAttributeSuggestionDescription'](_0x3992fc,_0xf797d5);continue;}'insertion'!=_0xf797d5['type']&&'deletion'!=_0xf797d5['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3992fc,_0xf797d5,_0x1edf19[_0x31f12d+0x1]);}}return this['_resolveDescriptionItems'](_0x3992fc);}['registerDescriptionCallback'](_0x5534ce){this['_customCallbacks']['push'](_0x5534ce);}['registerElementLabel'](_0x221baf,_0x2d31b9,_0x25a17f=_0x3bb9bc['normal']){'function'==typeof _0x221baf?_0xb0a330(this['_itemLabelsCallbacks'],{'matchingCallback':_0x221baf,'label':_0x2d31b9,'priority':_0x25a17f}):this['_itemLabels']['set'](_0x221baf,_0x2d31b9);}['registerAttributeLabel'](_0x55d486,_0x20f98b){this['_attributeLabels']['set'](_0x55d486,_0x20f98b);}['getItemLabel'](_0x3abdd5,_0x344acb=0x1){let _0x5cd903;for(const _0x19fc4e of this['_itemLabelsCallbacks'])if(_0x19fc4e['matchingCallback'](_0x3abdd5)){_0x5cd903=_0x19fc4e['label'];break;}return _0x5cd903||(_0x5cd903=this['_itemLabels']['get'](_0x3abdd5['name'])),_0x5cd903?_0x5cd903(_0x344acb):0x1!==_0x344acb?_0x344acb+'\x20'+_0x3abdd5['name']+'s':''+_0x3abdd5['name'];}['_addDescriptionItems'](_0x1c7889,_0x431651){const _0x441354=_0x431651['getFirstRange']()['getWalker'](),_0x2ad895='insertion'==_0x431651['type']?'add':'remove';for(const _0x26b748 of _0x441354){const _0x3bd12d=_0x26b748['item'],_0x11fcea=_0x1c7889[_0x1c7889['length']-0x1];if(_0x3bd12d['is']('$textProxy'))_0x11fcea&&_0x11fcea['type']['indexOf']('Container')>-0x1&&_0x1c7889['pop'](),_0x11fcea&&'text'==_0x11fcea['type']?_0x11fcea[_0x2ad895]+=_0x3bd12d['data']:_0x1c7889['push']({'type':'text','add':'add'==_0x2ad895?_0x3bd12d['data']:'','remove':'remove'==_0x2ad895?_0x3bd12d['data']:''});else{if(this['_schema']['isObject'](_0x3bd12d)){const _0x1ff2eb=_0x3bd12d;if(_0x11fcea&&_0x11fcea['type']['indexOf']('Container')>-0x1&&_0x1c7889['pop'](),'elementEnd'==_0x26b748['type'])continue;_0x11fcea&&_0x11fcea['type']==_0x2ad895+'Object'&&_0x11fcea['element']['name']==_0x1ff2eb['name']?_0x11fcea['quantity']++:_0x1c7889['push']({'type':_0x2ad895+'Object','element':_0x1ff2eb,'quantity':0x1}),_0x441354['skip'](_0x24d3bb=>!('elementEnd'==_0x24d3bb['type']&&_0x24d3bb['item']==_0x3bd12d));}else{if(this['_schema']['checkChild'](_0x3bd12d,'$text')||_0x3bd12d['is']('element','softBreak')){const _0x1ab80a=_0x3bd12d;if('add'==_0x2ad895&&'elementStart'==_0x26b748['type']||'remove'==_0x2ad895&&'elementEnd'==_0x26b748['type'])continue;if(_0x11fcea&&-0x1==_0x11fcea['type']['indexOf']('Container')){'text'==_0x11fcea['type']&&(_0x11fcea[_0x2ad895]+='\x0a');continue;}let _0x19c8d0;if(_0x19c8d0='add'==_0x2ad895?_0x1ab80a['nextSibling']&&!this['_schema']['isObject'](_0x1ab80a['nextSibling'])?_0x1ab80a['nextSibling']:null:_0x1ab80a['previousSibling']&&!this['_schema']['isObject'](_0x1ab80a['previousSibling'])?_0x1ab80a['previousSibling']:null,_0x1ab80a['isEmpty']||_0x19c8d0&&_0x19c8d0['isEmpty']){const _0xdf0b4e=_0x19c8d0&&_0x19c8d0['isEmpty']?_0x19c8d0:_0x1ab80a;_0x11fcea&&_0x11fcea['type']==_0x2ad895+'EmptyContainer'&&_0x11fcea['element']['name']==_0xdf0b4e['name']?_0x11fcea['quantity']++:_0x1c7889['push']({'type':_0x2ad895+'EmptyContainer','element':_0xdf0b4e,'quantity':0x1});}else _0x1c7889['push']({'type':_0x2ad895+'Container','element':_0x1ab80a});}}}}}['_resolveDescriptionItems'](_0x21e7b3){const _0x4c1721=this['_locale'],_0x6c0dc8=[],_0x25a8f8=[],_0x47f3e5=[];for(const _0x2d3556 of _0x21e7b3)switch(_0x2d3556['type']){case'text':if(_0x2d3556['add']=_0x2d3556['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2d3556['remove']=_0x2d3556['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2d3556['add']&&''!=_0x2d3556['remove']){_0x6c0dc8['push']({'type':'replace','content':o(_0x4c1721,'REPLACE_TEXT',['\x22'+_0x2d3556['remove']+'\x22','\x22'+_0x2d3556['add']+'\x22'])});continue;}if(null!=_0x2d3556['add']['match'](/^ +$/)){_0x6c0dc8['push']({'type':'insertion','content':o(_0x4c1721,'*Insert:*\x20%0',o(_0x4c1721,'ELEMENT_SPACE',_0x2d3556['add']['length']))});continue;}if(null!=_0x2d3556['remove']['match'](/^ +$/)){_0x6c0dc8['push']({'type':'deletion','content':o(_0x4c1721,'*Remove:*\x20%0',o(_0x4c1721,'ELEMENT_SPACE',_0x2d3556['remove']['length']))});continue;}if(''!=_0x2d3556['add']){_0x6c0dc8['push']({'type':'insertion','content':o(_0x4c1721,'*Insert:*\x20%0','\x22'+_0x2d3556['add']+'\x22')});continue;}_0x6c0dc8['push']({'type':'deletion','content':o(_0x4c1721,'*Remove:*\x20%0','\x22'+_0x2d3556['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x6c0dc8['push']({'type':'insertion','content':o(_0x4c1721,'*Insert:*\x20%0',this['getItemLabel'](_0x2d3556['element'],_0x2d3556['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x6c0dc8['push']({'type':'deletion','content':o(_0x4c1721,'*Remove:*\x20%0',this['getItemLabel'](_0x2d3556['element'],_0x2d3556['quantity']))});continue;case'addContainer':_0x6c0dc8['push']({'type':'insertion','content':o(_0x4c1721,'*Split:*\x20%0',this['getItemLabel'](_0x2d3556['element'],_0x2d3556['quantity']))});continue;case'removeContainer':_0x6c0dc8['push']({'type':'deletion','content':o(_0x4c1721,'*Merge:*\x20%0',this['getItemLabel'](_0x2d3556['element'],_0x2d3556['quantity']))});continue;case'addFormat':_0x25a8f8['push'](_0x2d3556['key']);continue;case'removeFormat':_0x47f3e5['push'](_0x2d3556['key']);continue;default:_0x6c0dc8['push'](_0x2d3556);}if(_0x25a8f8['length']){const _0x518351=_0x25a8f8['map'](_0x5cea5e=>this['_attributeLabels']['has'](_0x5cea5e)?this['_attributeLabels']['get'](_0x5cea5e):_0x5cea5e)['join'](',\x20');_0x6c0dc8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x518351)});}if(_0x47f3e5['length']){const _0x3a8236=_0x47f3e5['map'](_0xb820ee=>this['_attributeLabels']['has'](_0xb820ee)?this['_attributeLabels']['get'](_0xb820ee):_0xb820ee)['join'](',\x20');_0x6c0dc8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3a8236)});}return _0x6c0dc8;}['_handleCustomCallbackDescription'](_0x1b0815){for(const _0x3cdf47 of this['_customCallbacks']){const _0x313bfe=_0x3cdf47(_0x1b0815);if(_0x313bfe&&'type'in _0x313bfe)return _0x313bfe;}}['_handleAttributeSuggestionDescription'](_0x5d5b4f,_0x34d9d2){const _0x5e123d=_0x34d9d2['data'],_0x5e789d=void 0x0===_0x5e123d['newValue']?'removeFormat':'addFormat';_0x5d5b4f['push']({'type':_0x5e789d,'key':_0x5e123d['key']});}['_handleRenameSuggestionDescription'](_0xaa3688,_0xa11d93){_0xaa3688['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xa11d93['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x42e2f8,_0x57de8b,_0x115bc5){if(this['_addDescriptionItems'](_0x42e2f8,_0x57de8b),_0x115bc5&&_0x115bc5['getFirstRange']()&&!_0x57de8b['getFirstRange']()['end']['isEqual'](_0x115bc5['getFirstRange']()['start'])){const _0x15808f=_0x42e2f8[_0x42e2f8['length']-0x1],_0x26ca7b='insertion'==_0x57de8b['type']?'add':'remove';_0x15808f&&'text'==_0x15808f['type']&&(_0x15808f[_0x26ca7b]+='\x0a');}}}class U extends _0x4c30c7{['afterInit'](){const _0x2d6060=this['editor'],_0x2c5e4c=_0x2d6060['plugins']['get']('TrackChangesEditing');_0x2d6060['commands']['get']('showAIAssistant')&&_0x2c5e4c['enableCommand']('showAIAssistant');}}class V extends _0x4c30c7{['afterInit'](){const _0x4f8f19=this['editor'],_0x1e18d6=_0x4f8f19['plugins']['get']('TrackChangesEditing');_0x4f8f19['commands']['get']('toggleAi')&&_0x1e18d6['enableCommand']('toggleAi');}}class F extends _0x4c30c7{['afterInit'](){const _0x3a296a=this['editor'],_0x27a470=_0x3a296a['plugins']['get']('TrackChangesEditing');_0x3a296a['commands']['get']('aiQuickAction')&&_0x27a470['enableCommand']('aiQuickAction');}}class G extends _0x4c30c7{['afterInit'](){const _0x239d0a=this['editor'],_0x27c7a3=_0x239d0a['locale'];if(!_0x239d0a['plugins']['has']('AlignmentEditing'))return;const _0x36a100=_0x239d0a['plugins']['get']('TrackChangesEditing');_0x36a100['enableDefaultAttributesIntegration']('alignment'),_0x36a100['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x27c7a3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x309a01=this['editor'],_0x4e20e1=_0x309a01['locale'];_0x309a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fdae3=>{if('formatBlock'!=_0x4fdae3['type'])return;const {data:_0x3c2276}=_0x4fdae3;if(_0x3c2276&&'alignment'==_0x3c2276['commandName']){const _0x552afc=_0x3c2276['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e20e1,'*Format:*\x20%0',function(_0x1f4c74){switch(_0x1f4c74){case'left':return o(_0x4e20e1,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e20e1,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e20e1,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e20e1,'FORMAT_JUSTIFY_TEXT');}}(_0x552afc))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x4c30c7{['afterInit'](){const _0x4cc809=this['editor'],_0x5d3354=_0x4cc809['plugins']['get']('TrackChangesEditing'),_0x1247aa=_0x4cc809['locale'];for(const _0x11574a of ti){if(!_0x4cc809['plugins']['has'](_0x11574a))continue;const _0x102401=_0x11574a['slice'](0x0,-0x7)['toLowerCase'](),_0x5e5661='FORMAT_'+_0x102401['toUpperCase']();_0x5d3354['enableDefaultAttributesIntegration'](_0x102401),_0x5d3354['descriptionFactory']['registerAttributeLabel'](_0x102401,o(_0x1247aa,_0x5e5661));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf4f952=this['editor'],_0x55394f=_0xf4f952['locale'],_0x4ee8a9=_0xf4f952['plugins']['get']('TrackChangesEditing');function _0x4d30bc(_0x33528a,_0x2f5d35){_0x4ee8a9['descriptionFactory']['registerDescriptionCallback'](_0x12b457=>{if('formatInline'!=_0x12b457['type'])return;const {data:_0x2e76f9}=_0x12b457;return _0x2e76f9&&_0x2e76f9['commandName']===_0x33528a?_0x2e76f9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x55394f,'*Format:*\x20%0',_0x2f5d35)}:{'type':'format','content':o(_0x55394f,'*Remove\x20format:*\x20%0',_0x2f5d35)}:void 0x0;});}_0x4d30bc('bold',o(_0x55394f,'FORMAT_BOLD')),_0x4d30bc('italic',o(_0x55394f,'FORMAT_ITALIC')),_0x4d30bc('underline',o(_0x55394f,'FORMAT_UNDERLINE')),_0x4d30bc('code',o(_0x55394f,'FORMAT_CODE')),_0x4d30bc('strikethrough',o(_0x55394f,'FORMAT_STRIKETHROUGH')),_0x4d30bc('subscript',o(_0x55394f,'FORMAT_SUBSCRIPT')),_0x4d30bc('superscript',o(_0x55394f,'FORMAT_SUPERSCRIPT'));}}class J extends _0x4c30c7{['afterInit'](){const _0x468846=this['editor'],_0x335503=_0x468846['locale'];if(!_0x468846['plugins']['has']('BlockQuoteEditing'))return;const _0x5df773=_0x468846['plugins']['get']('TrackChangesEditing'),_0x48d056=this['editor']['commands']['get']('blockQuote');_0x5df773['enableCommand']('blockQuote',(_0x50a7ff,_0x522857={})=>{const _0x1df579=this['editor']['model']['document']['selection'],_0x10ceae=_0x522857&&void 0x0!==_0x522857['forceValue']?_0x522857['forceValue']:!_0x48d056['value'];let _0x3bd950=[];if(_0x10ceae){const _0x268a36=Array['from'](_0x1df579['getSelectedBlocks']())['filter'](_0x51a134=>oo(_0x51a134)||function(_0x49126a,_0xda19fb){const _0x2c6b26=_0xda19fb['checkChild'](_0x49126a['parent'],'blockQuote'),_0x92e92e=_0xda19fb['checkChild'](['$root','blockQuote'],_0x49126a);return _0x2c6b26&&_0x92e92e;}(_0x51a134,this['editor']['model']['schema']));_0x3bd950=to(_0x268a36,_0x468846['model']);}else{const _0x3931ca=Array['from'](_0x1df579['getSelectedBlocks']())['filter'](_0x4b0379=>oo(_0x4b0379));_0x3bd950=to(_0x3931ca,_0x468846['model']);}_0x468846['model']['change'](()=>{for(const _0xee1cdb of _0x3bd950)_0x5df773['markBlockFormat'](_0xee1cdb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x10ceae}]});});}),_0x5df773['descriptionFactory']['registerDescriptionCallback'](_0xdd2613=>{const {data:_0xa8237}=_0xdd2613;if(_0xa8237&&'blockQuote'==_0xa8237['commandName']){const _0x4994d1=o(_0x335503,'ELEMENT_BLOCK_QUOTE');return _0xa8237['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x335503,'*Set\x20format:*\x20%0',_0x4994d1)}:{'type':'format','content':o(_0x335503,'*Remove\x20format:*\x20%0',_0x4994d1)};}});}}function oo(_0x2b645f){return'blockQuote'==_0x2b645f['parent']['name'];}class q extends _0x4c30c7{['afterInit'](){const _0x12dda1=this['editor'],_0x499bab=_0x12dda1['locale'],_0x5d2386=_0x12dda1['plugins']['get']('TrackChangesEditing');_0x12dda1['plugins']['has']('BookmarkEditing')&&(_0x5d2386['enableCommand']('insertBookmark'),_0x5d2386['enableDefaultAttributesIntegration']('updateBookmark'),_0x5d2386['descriptionFactory']['registerDescriptionCallback'](_0x2600f2=>{if('insertion'!=_0x2600f2['type']&&'deletion'!=_0x2600f2['type']&&'attribute'!=_0x2600f2['type'])return;const _0x49fab8=_0x2600f2['getContainedElement']();if(null==_0x49fab8)return;if(!_0x49fab8['is']('element','bookmark'))return;const _0xc9bc1=_0x49fab8['getAttribute']('bookmarkId');if('insertion'==_0x2600f2['type'])return{'type':'insertion','content':o(_0x499bab,'*Insert:*\x20%0','\x22'+_0xc9bc1+'\x22\x20'+o(_0x499bab,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2600f2['type'])return{'type':'deletion','content':o(_0x499bab,'*Remove:*\x20%0','\x22'+_0xc9bc1+'\x22\x20'+o(_0x499bab,'ELEMENT_BOOKMARK'))};const {data:_0x4d0917}=_0x2600f2;if(!_0x4d0917||'bookmarkId'!=_0x4d0917['key'])return;return{'type':'format','content':o(_0x499bab,'*Set\x20bookmark:*\x20%0','\x22'+_0x4d0917['newValue']+'\x22')};}));}}class z extends _0x4c30c7{['afterInit'](){const _0x558a71=this['editor'];_0x558a71['plugins']['has']('CaseChange')&&(_0x558a71['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x558a71['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x558a71['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4c30c7{['afterInit'](){const _0x1b8029=this['editor'];_0x1b8029['commands']['get']('ckbox')&&_0x1b8029['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x4c30c7{['afterInit'](){const _0x5bb08d=this['editor'];if(!_0x5bb08d['plugins']['has']('CodeBlock'))return;const _0x3715e3=_0x5bb08d['plugins']['get']('TrackChangesEditing'),_0x30a97d=_0x5bb08d['locale'],_0x4caec8=_0x5bb08d['config']['get']('codeBlock')['languages'],_0x2ef6b7=_0x5bb08d['commands']['get']('codeBlock');_0x3715e3['enableCommand']('indentCodeBlock'),_0x3715e3['enableCommand']('outdentCodeBlock'),_0x3715e3['enableCommand']('codeBlock',(_0x26812d,_0x501d28={})=>{const _0x1a6690=_0x5bb08d['model'],_0x201538=_0x5bb08d['model']['document']['selection'],_0x5a9c64=_0x501d28&&void 0x0!==_0x501d28['forceValue']?_0x501d28['forceValue']:!_0x2ef6b7['value'];let _0x40e7e5;_0x501d28['language']||(_0x501d28['language']=_0x4caec8[0x0]['language']),_0x40e7e5=_0x5a9c64?Array['from'](_0x201538['getSelectedBlocks']())['filter'](_0x439a8e=>co(_0x439a8e)||function(_0x1b80a1,_0x28ad0d){if(_0x1b80a1['is']('rootElement')||_0x28ad0d['isLimit'](_0x1b80a1))return!0x1;return _0x28ad0d['checkChild'](_0x1b80a1['parent'],'codeBlock');}(_0x439a8e,_0x1a6690['schema'])):Array['from'](_0x201538['getSelectedBlocks']())['filter'](_0xf77143=>co(_0xf77143));const _0x53d1bd=to(_0x40e7e5,_0x1a6690);_0x1a6690['change'](()=>{for(const _0x1fd490 of _0x53d1bd)_0x3715e3['markBlockFormat'](_0x1fd490,{'commandName':'codeBlock','commandParams':[{..._0x501d28,'forceValue':_0x5a9c64}],'formatGroupId':'blockName'});});}),(_0x3715e3['descriptionFactory']['registerElementLabel']('codeBlock',_0x4f5744=>o(_0x30a97d,'ELEMENT_CODE_BLOCK',_0x4f5744)),_0x3715e3['descriptionFactory']['registerDescriptionCallback'](_0x27e389=>{if('formatBlock'!=_0x27e389['type'])return;const _0x2ded3b=_0x30a97d['t'],{data:_0x2a903f}=_0x27e389;if(!_0x2a903f||'codeBlock'!=_0x2a903f['commandName'])return;const _0x33ef3d=_0x2a903f['commandParams'][0x0]['language'],_0x2541a5=_0x2ded3b(_0x4caec8['find'](_0x53bdc3=>_0x53bdc3['language']===_0x33ef3d)['label'])['toLowerCase']();return _0x2a903f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x30a97d,'*Set\x20format:*\x20%0',o(_0x30a97d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2541a5+')')}:{'type':'format','content':o(_0x30a97d,'*Remove\x20format:*\x20%0',o(_0x30a97d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x82bed){return'codeBlock'==_0x82bed['name'];}class H extends _0x4c30c7{['afterInit'](){const _0xda4527=this['editor'];if(!_0xda4527['plugins']['has']('CommentsEditing'))return;_0xda4527['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x4c30c7{static get['requires'](){return[_0x473c82];}['init'](){const _0x30f233=this['editor'],_0x1ea235=_0x30f233['plugins']['get']('TrackChangesEditing');_0x1ea235['enableCommand']('delete');const _0x34ec0a=_0x30f233['commands']['get']('deleteForward');_0x1ea235['enableCommand']('deleteForward',(_0x51e174,_0x5133ee={})=>{const _0x529640=_0x30f233['model']['createSelection'](_0x30f233['model']['document']['selection']);_0x529640['isCollapsed']&&_0x30f233['model']['modifySelection'](_0x529640,{'direction':'forward','unit':_0x5133ee['unit']});const _0xd7bd05=_0x529640['getFirstRange'](),_0x1f6c66=_0x2b0079['fromRange'](_0xd7bd05);let _0xb32ec1;_0x51e174(_0x5133ee),_0xb32ec1='$graveyard'==_0x1f6c66['root']['rootName']?_0x30f233['model']['createRange'](_0xd7bd05['start']):_0x30f233['model']['createRange'](_0x1f6c66['start'],_0x1f6c66['end']),_0x1f6c66['detach'](),_0x30f233['model']['enqueueChange'](_0x34ec0a['buffer']['batch'],_0xf2bef1=>{_0x34ec0a['buffer']['lock'](),_0xf2bef1['setSelection'](_0xf2bef1['createRange'](_0xb32ec1['end'])),_0x34ec0a['buffer']['unlock']();});});}}class X extends _0x4c30c7{['afterInit'](){const _0x163919=this['editor'];if(!_0x163919['plugins']['has']('ListEditing'))return;const _0x5a7c9f=_0x163919['locale'],_0x41e203=_0x163919['plugins']['get']('TrackChangesEditing'),_0x3d70c1=_0x163919['plugins']['has']('TodoListEditing'),_0x21f509=!!_0x163919['config']['get']('list.multiBlock');function _0x4ff96d(_0x189879){return{'type':'format','content':''+o(_0x5a7c9f,'*Set\x20format:*\x20%0',_0x189879)};}function _0x133325(_0x53d71a){return{'type':'format','content':''+o(_0x5a7c9f,'*Remove\x20format:*\x20%0',_0x53d71a)};}_0x41e203['enableDefaultAttributesIntegration']('numberedList'),_0x41e203['enableDefaultAttributesIntegration']('bulletedList'),_0x41e203['enableDefaultAttributesIntegration']('customNumberedList'),_0x41e203['enableDefaultAttributesIntegration']('customBulletedList'),_0x41e203['enableDefaultAttributesIntegration']('indentList'),_0x41e203['enableDefaultAttributesIntegration']('outdentList'),_0x41e203['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x41e203['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x21f509&&(_0x41e203['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x41e203['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3d70c1&&(_0x41e203['enableDefaultAttributesIntegration']('todoList'),_0x41e203['enableDefaultAttributesIntegration']('checkTodoList'),_0x41e203['descriptionFactory']['registerDescriptionCallback'](_0x518fc5=>{const {data:_0x2aec8e}=_0x518fc5;if(_0x2aec8e&&'todoListChecked'==_0x2aec8e['key'])return{'type':'format','content':_0x2aec8e['newValue']?o(_0x5a7c9f,'*Check\x20item*'):o(_0x5a7c9f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1c9c55=>{if(_0x1c9c55['batch']['isUndo'])return!0x1;let _0x2a8f82=!0x1;const _0x1c6022=_0x41e203['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x39e88c=>'todoListChecked'===_0x41e203['_getAttributeKey'](_0x39e88c));for(const _0x546b58 of _0x1c6022){'todo'!=_0x546b58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x41e203['_findSuggestions'](_0x546b58['getFirstRange'](),'attribute')['find'](_0xcadedd=>'listType'===_0x41e203['_getAttributeKey'](_0xcadedd['suggestion']))||(_0x1c9c55['removeMarker'](_0x546b58['getFirstMarker']()),_0x2a8f82=!0x0));}return _0x2a8f82;})),_0x41e203['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5a7c9f,'FORMAT_INDENT'));const _0x5f3cf4={'type':'format','content':''};_0x41e203['descriptionFactory']['registerDescriptionCallback'](_0x427967=>{const {data:_0x5af0ba}=_0x427967;if(!_0x5af0ba||'listType'!=_0x5af0ba['key'])return;let _0x35e6b0=_0x427967['head'];for(;_0x35e6b0;){if(_0x35e6b0['data']&&(('listStyle'==_0x35e6b0['data']['key']||'listMarkerStyle'==_0x35e6b0['data']['key'])&&(_0x35e6b0['data']['newValue']&&'default'!=_0x35e6b0['data']['newValue']||'default'!=_0x35e6b0['data']['oldValue']&&!_0x5af0ba['newValue'])||!_0x21f509&&_0x35e6b0['data']['key']==m))return _0x5f3cf4;_0x35e6b0=_0x35e6b0['next'];}if(null==_0x5af0ba['newValue'])switch(_0x5af0ba['oldValue']){case'bulleted':return _0x133325(o(_0x5a7c9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x133325(o(_0x5a7c9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x133325(o(_0x5a7c9f,'ELEMENT_TODO_LIST'));}switch(_0x5af0ba['newValue']){case'bulleted':return _0x4ff96d(o(_0x5a7c9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ff96d(o(_0x5a7c9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ff96d(o(_0x5a7c9f,'ELEMENT_TODO_LIST'));}}),_0x41e203['descriptionFactory']['registerDescriptionCallback'](_0x3a9caf=>{const {data:_0x2ba1cf}=_0x3a9caf;if(_0x2ba1cf&&'listIndent'==_0x2ba1cf['key'])return null==_0x2ba1cf['newValue']||null==_0x2ba1cf['oldValue']&&0x0==_0x2ba1cf['newValue']?_0x5f3cf4:void 0x0;}),_0x41e203['descriptionFactory']['registerDescriptionCallback'](_0x3c4681=>{if('attribute'!=_0x3c4681['type'])return;const {data:_0x5713}=_0x3c4681;if(!_0x5713||'listItemId'!=_0x5713['key'])return;const _0x30d956=Te(_0x3c4681);return'newValue'==_0x30d956?{'type':'format','content':o(_0x5a7c9f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x30d956?{'type':'format','content':o(_0x5a7c9f,'*Split:*\x20list\x20item')}:_0x5f3cf4;}),_0x163919['model']['document']['registerPostFixer'](_0x27473c=>this['listItemIdFixer'](_0x27473c)),_0x163919['model']['document']['registerPostFixer'](_0x34aff1=>this['noTrackChangesFixer'](_0x34aff1)),_0x163919['model']['document']['on']('change:data',(_0x59d55e,_0x202a2c)=>{if(_0x202a2c['isUndo']||!_0x202a2c['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5da77a){if(_0x5da77a['batch']['isUndo']||!_0x5da77a['batch']['isLocal'])return!0x1;let _0x11e0a8=!0x1;const _0x2dc446=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3603d5=>_0x3603d5['data']&&'listItemId'==_0x3603d5['data']['key'])['filter'](_0x1dd55a=>_0x1dd55a['data']['newValue']&&_0x1dd55a['data']['oldValue']);for(const _0x1436f6 of _0x2dc446)Te(_0x1436f6)||(_0x5da77a['removeMarker'](_0x1436f6['getFirstMarker']()),_0x11e0a8=!0x0);return _0x11e0a8;}['noTrackChangesFixer'](_0xdb4ece){if(_0xdb4ece['batch']['isUndo']||!_0xdb4ece['batch']['isLocal'])return!0x1;const _0x16a8c0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x16a8c0['trackChangesCommand']['value'])return!0x1;let _0x39548d=!0x1;const _0x3e9376=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5f2449=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x926d69=>'attribute'==_0x926d69['type'])['filter'](_0x40747f=>_0x3e9376['includes'](_0x40747f['attributeKey']));if(0x0==_0x5f2449['length'])return _0x39548d;for(const _0x2dca6a of _0x5f2449){const _0x111904=_0x16a8c0['_findSuggestions'](_0x2dca6a['range'],'attribute')['filter'](_0x4c6077=>!_0x4c6077['meta']['isNextTo'])['map'](_0x5f0dd5=>_0x5f0dd5['suggestion'])['filter'](_0x44fc06=>{const _0x5a6e52=_0x16a8c0['_getAttributeKey'](_0x44fc06);return _0x3e9376['includes'](_0x5a6e52);});if(_0x111904['length']){for(const _0x60bad9 of _0x111904)_0xdb4ece['removeMarker'](_0x60bad9['getFirstMarker']());_0x39548d=!0x0;}}return _0x39548d;}['assureChains'](){const _0x26f4c9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x197a47=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6b4021;const _0x45f2da=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10a8fb=>{if(_0x10a8fb['data']['oldRange']||!_0x10a8fb['data']['newRange'])return null;if(!_0x10a8fb['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1a8d45}=_0x26f4c9['_splitMarkerName'](_0x10a8fb['name']);if(!_0x26f4c9['hasSuggestion'](_0x1a8d45))return null;const _0x51159e=_0x26f4c9['getSuggestion'](_0x1a8d45);return _0x197a47['includes'](_0x51159e['data']['key']);})['map'](_0x162dac=>{const {id:_0x319d3d}=_0x26f4c9['_splitMarkerName'](_0x162dac['name']),_0x74fc9e=_0x26f4c9['getSuggestion'](_0x319d3d);return _0x6b4021=_0x74fc9e['attributes']['groupId'],_0x74fc9e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x45f2da['size'])return;const _0x580db8=_0x26f4c9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x442ea7=>'attribute'==_0x442ea7['type']&&_0x442ea7['data']&&_0x197a47['includes'](_0x442ea7['data']['key'])&&_0x442ea7['attributes']['groupId']!=_0x6b4021)['map'](_0x3fa619=>({'listItem':_0x3fa619['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3fa619['attributes']['groupId']})),_0x3026b6=new Set();for(const {groupId:_0x1bbfcf,listItem:_0x4cc45d}of _0x580db8)_0x45f2da['has'](_0x4cc45d)&&_0x3026b6['add'](_0x1bbfcf);for(const _0x49f447 of _0x26f4c9['getSuggestions']())_0x3026b6['has'](_0x49f447['attributes']['groupId'])&&_0x49f447['setAttribute']('groupId',_0x6b4021);}['_supportLegacySuggestions'](){const _0x244ea2=this['editor'],_0x42f52a=_0x244ea2['locale'],_0x5067c8=_0x244ea2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5067c8['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x443854,_0x5e6d43){const _0x3e6d92=[];for(let _0x11c9ec of _0x443854)_0x11c9ec['start']['nodeAfter']===_0x11c9ec['end']['parent']&&(_0x11c9ec=_0x244ea2['model']['createRange'](_0x244ea2['model']['createPositionAt'](_0x11c9ec['start']['nodeAfter'],0x0))),_0x3e6d92['push'](_0x11c9ec);_0x244ea2['model']['change'](_0x3b4cab=>{const _0x243e50=_0x244ea2['model']['document']['selection'],_0x3a80dc=Array['from'](_0x243e50['getRanges']())['map'](_0x3ee16f=>_0x2b0079['fromRange'](_0x3ee16f));_0x3b4cab['setSelection'](_0x3e6d92),_0x244ea2['commands']['get'](_0x5e6d43['commandName'])['refresh'](),_0x5e6d43['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x244ea2['execute'](_0x5e6d43['commandName'],..._0x5e6d43['commandParams']),_0x3b4cab['setSelection'](_0x3a80dc);for(const _0xd16b8 of _0x3a80dc)_0xd16b8['detach']();});}),_0x5067c8['descriptionFactory']['registerElementLabel'](function(_0x1fbf91){const _0x3888d3=!_0x244ea2['model']['schema']['isObject'](_0x1fbf91),_0x3f9903=_0x1fbf91['previousSibling'],_0x4a6dad=_0x1fbf91['nextSibling'],_0x5e7a7c=_0x1fbf91['getAttribute']('listItemId'),_0x4654d6=!_0x3f9903||_0x3f9903['getAttribute']('listItemId')!==_0x5e7a7c,_0x4e557b=!_0x4a6dad||_0x4a6dad['getAttribute']('listItemId')!==_0x5e7a7c;return _0x3888d3&&Boolean(_0x5e7a7c)&&_0x4654d6&&_0x4e557b;},_0x48e58b=>o(_0x42f52a,'ELEMENT_LIST_ITEM',_0x48e58b));}['_registerLegacyDescription'](){const _0x3ac7a7=this['editor'],_0x44f19d=_0x3ac7a7['locale'];function _0x3d1d5f(_0x326400){const _0x17951f=_0x3ac7a7['commands']['get']('bulletedList')['value'],_0x2cdc57=_0x3ac7a7['commands']['get']('numberedList')['value'];return'numberedList'===_0x326400?_0x17951f:_0x2cdc57;}_0x3ac7a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4288ed){if('formatBlock'!=_0x4288ed['type'])return;const {data:_0x1b9bd5}=_0x4288ed;if(!_0x1b9bd5)return;let _0x57eff3,_0xec51c7,_0x190063,_0x5d3963;switch(_0x1b9bd5['commandName']){case'bulletedList':_0x190063=_0x1b9bd5['commandParams'][0x0]['forceValue'],_0x5d3963=_0x3d1d5f(_0x1b9bd5['commandName']),_0x57eff3=_0x190063?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d3963&&_0x3ac7a7['config']['get']('list.multiBlock')||(_0x57eff3='*Change\x20to:*\x20%0'),_0xec51c7={'type':'format','content':o(_0x44f19d,_0x57eff3,o(_0x44f19d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x190063=_0x1b9bd5['commandParams'][0x0]['forceValue'],_0x5d3963=_0x3d1d5f(_0x1b9bd5['commandName']),_0x57eff3=_0x190063?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5d3963&&_0x3ac7a7['config']['get']('list.multiBlock')||(_0x57eff3='*Change\x20to:*\x20%0'),_0xec51c7={'type':'format','content':o(_0x44f19d,_0x57eff3,o(_0x44f19d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57eff3='*Indent:*\x20%0',_0xec51c7={'type':'format','content':o(_0x44f19d,_0x57eff3,o(_0x44f19d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57eff3=function(_0x39c02b){const _0x41c20c=_0x39c02b['getFirstRange']();let _0x2549f1=_0x41c20c['start']['nodeAfter'];for(;_0x2549f1&&_0x41c20c['containsItem'](_0x2549f1);){if(_0x2549f1['getAttribute']('listIndent')>0x0)return!0x1;_0x2549f1=_0x2549f1['nextSibling'];}return!0x0;}(_0x4288ed)?o(_0x44f19d,'*Format:*\x20remove\x20from\x20%0',o(_0x44f19d,function(_0x14ec01){return'ELEMENT_'+_0x14ec01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4288ed))):o(_0x44f19d,'*Outdent:*\x20%0',o(_0x44f19d,'ELEMENT_LIST_ITEM')),_0xec51c7={'type':'format','content':_0x57eff3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b9bd5['multipleBlocks']&&(_0x57eff3='*Merge:*\x20%0',_0xec51c7={'type':'deletion','content':o(_0x44f19d,_0x57eff3,o(_0x44f19d,'ELEMENT_LIST_ITEM'))});}return _0xec51c7;});}}function Te(_0x33deb2){let _0x14fa28=_0x33deb2['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x14fa28;){const _0x112613=_0x14fa28['getAttribute']('listItemId');if(!_0x112613)return!0x1;if(_0x112613==_0x33deb2['data']['newValue'])return'newValue';if(_0x112613==_0x33deb2['data']['oldValue'])return'oldValue';_0x14fa28=_0x14fa28['previousSibling'];}return!0x1;}class Y extends _0x4c30c7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4ef170=this['editor']['config']['get']('list.properties'),_0x4724e9=this['editor']['plugins']['get']('TrackChangesEditing');_0x4ef170['styles']&&_0x4724e9['enableDefaultAttributesIntegration']('listStyle'),_0x4ef170['reversed']&&_0x4724e9['enableDefaultAttributesIntegration']('listReversed'),_0x4ef170['startIndex']&&_0x4724e9['enableDefaultAttributesIntegration']('listStart');const _0x11ad6c={'type':'format','content':''};_0x4724e9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5d647e=this['editor']['locale'];_0x4724e9['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5d647e,'FORMAT_LIST_REVERSED')),_0x4724e9['descriptionFactory']['registerDescriptionCallback'](_0x125ef3=>{const {data:_0x5705ae}=_0x125ef3;if(_0x5705ae&&'listReversed'==_0x5705ae['key'])return null==_0x5705ae['newValue']||0x0==_0x5705ae['newValue']&&null==_0x5705ae['oldValue']?_0x11ad6c:void 0x0;}),_0x4724e9['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5d647e,'FORMAT_LIST_START')),_0x4724e9['descriptionFactory']['registerDescriptionCallback'](_0x2a25bd=>{const {data:_0x226c84}=_0x2a25bd;if(_0x226c84&&'listStart'==_0x226c84['key'])return null==_0x226c84['newValue']||0x1==_0x226c84['newValue']&&null==_0x226c84['oldValue']?_0x11ad6c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x36e3bd=>{if(_0x36e3bd['batch']['isUndo'])return!0x1;let _0x289b4e=!0x1;const _0x1707a9=_0x4724e9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59b97d=>{const _0xa40be2=_0x4724e9['_getAttributeKey'](_0x59b97d);return'listStart'==_0xa40be2||'listReversed'==_0xa40be2;});for(const _0x3ad148 of _0x1707a9){const _0x4060a0=_0x3ad148['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4060a0||'customNumbered'==_0x4060a0)continue;_0x4724e9['_findSuggestions'](_0x3ad148['getFirstRange'](),'attribute')['find'](_0x30db0d=>'listType'==_0x4724e9['_getAttributeKey'](_0x30db0d['suggestion']))||(_0x36e3bd['removeMarker'](_0x3ad148['getFirstMarker']()),_0x289b4e=!0x0);}return _0x289b4e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x55bf00){const _0x2fa9f1=this['editor']['locale'],{data:_0x3aed01}=_0x55bf00,_0xe9ab86={'type':'format','content':''};if(!_0x3aed01||'listStyle'!=_0x3aed01['key'])return;if(!_0x3aed01['oldValue'])return'default'==_0x3aed01['newValue']?_0xe9ab86:{'type':'format','content':''+o(_0x2fa9f1,'*Set\x20format:*\x20%0',o(_0x2fa9f1,this['_getTranslationKeyForListStyle'](_0x3aed01['newValue'])))};if(!_0x3aed01['newValue']){if('default'==_0x3aed01['oldValue'])return _0xe9ab86;let _0x3bacc2=_0x55bf00['head'];for(;_0x3bacc2;){if(_0x3bacc2['data']&&'listType'==_0x3bacc2['data']['key']&&_0x3bacc2['data']['newValue'])return _0xe9ab86;_0x3bacc2=_0x3bacc2['next'];}return{'type':'format','content':''+o(_0x2fa9f1,'*Remove\x20format:*\x20%0',o(_0x2fa9f1,this['_getTranslationKeyForListStyle'](_0x3aed01['oldValue'])))};}if('default'!=_0x3aed01['newValue'])return{'type':'format','content':''+o(_0x2fa9f1,'*Set\x20format:*\x20%0',o(_0x2fa9f1,this['_getTranslationKeyForListStyle'](_0x3aed01['newValue'])))};let _0x148147=_0x55bf00['head'];for(;_0x148147;){if(_0x148147['data']&&'listType'==_0x148147['data']['key']&&_0x148147['data']['newValue']&&_0x148147['data']['oldValue'])return _0xe9ab86;_0x148147=_0x148147['next'];}return{'type':'format','content':o(_0x2fa9f1,'*Set\x20format:*\x20%0',o(_0x2fa9f1,'ELEMENT_'+_0x55bf00['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2f8417=this['editor'],_0x59bb7d=_0x2f8417['locale'];_0x2f8417['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f1e5=>{if('formatBlock'!=_0x42f1e5['type'])return;const {data:_0x2b6694}=_0x42f1e5;if(!_0x2b6694)return;let _0x10572b,_0x19a4fc;switch(_0x2b6694['commandName']){case'listStyle':_0x10572b='*Change\x20to:*\x20%0',_0x19a4fc={'type':'format','content':o(_0x59bb7d,_0x10572b,o(_0x59bb7d,this['_getTranslationKeyForListStyle'](_0x2b6694['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10572b=_0x2b6694['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x19a4fc={'type':'format','content':o(_0x59bb7d,_0x10572b)};break;case'listStart':_0x10572b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x19a4fc={'type':'format','content':o(_0x59bb7d,_0x10572b,_0x2b6694['commandParams'][0x0]['startIndex'])};}return _0x19a4fc;});}['_getTranslationKeyForListStyle'](_0x29e15a){return'ELEMENT_'+function(_0x30c621){if(ye['includes'](_0x30c621))return'bulleted';if(Se['includes'](_0x30c621))return'numbered';return null;}(_0x29e15a)['toUpperCase']()+'_LIST_'+_0x29e15a['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x4c30c7{['afterInit'](){const _0x46bf8a=this['editor'];_0x46bf8a['commands']['get']('emoji')&&_0x46bf8a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x4c30c7{static get['requires'](){return[_0x58592e];}['init'](){const _0x3c84e2=this['editor'],_0x5c6cda=_0x3c84e2['plugins']['get']('TrackChangesEditing'),_0x14bf41=_0x3c84e2['commands']['get']('enter');_0x5c6cda['enableCommand']('enter',()=>{_0x3c84e2['model']['change'](_0x2db8fb=>{const _0x11825f=_0x3c84e2['model']['document']['selection'],_0x1ed2ea=_0x11825f['getFirstPosition'](),_0x1f7da=_0x2b0079['fromRange'](_0x11825f['getFirstRange']());if(_0x14bf41['enterBlock'](_0x2db8fb)){const _0x49ab9a=_0x3c84e2['model']['createPositionAt'](_0x1ed2ea['parent']['nextSibling'],0x0),_0x54112e=_0x2db8fb['createRange'](_0x1ed2ea,_0x49ab9a);_0x5c6cda['markInsertion'](_0x54112e);}else _0x2db8fb['setSelection'](_0x2db8fb['createRange'](_0x1f7da['end']));_0x1f7da['detach'](),_0x14bf41['fire']('afterExecute',{'writer':_0x2db8fb});});});}}class nt extends _0x4c30c7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3c79ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c79ee['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3c79ee['enableCommand']('findNext'),_0x3c79ee['enableCommand']('findPrevious'),_0x3c79ee['enableCommand']('replace'),_0x3c79ee['enableCommand']('replaceAll');}['handleFindCommand'](_0x13a9b4,_0x2dbfc7,_0x3e938a={}){const _0x55e1d1=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x13a9b4(_0x529928=>{let _0x2335db=('string'==typeof _0x2dbfc7?_0x55e1d1['findByTextCallback'](_0x2dbfc7,_0x3e938a):_0x2dbfc7)(_0x529928);Array['isArray'](_0x2335db)&&(_0x2335db={'results':_0x2335db,'searchText':'string'==typeof _0x2dbfc7?_0x2dbfc7:''});const _0x3d2ca2=_0x2335db['results']['filter'](_0x4c0cb2=>!0x1===this['_isInDeletionRange'](_0x4c0cb2,_0x529928['item']));return{..._0x2335db,'results':_0x3d2ca2};},_0x3e938a);}['_isInDeletionRange'](_0x1f781b,_0x49be3d){const _0x389c65=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49be3d,_0x1f781b['start']),this['editor']['model']['createPositionAt'](_0x49be3d,_0x1f781b['end']));for(const _0x1e7cef of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x389c65['getIntersection'](_0x1e7cef['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x4c30c7{['afterInit'](){const _0x1b0d00=this['editor']['locale'],_0x2b2844=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3123ec,commandName:_0x113646}of eo)this['editor']['plugins']['has'](_0x3123ec)&&_0x2b2844['enableDefaultAttributesIntegration'](_0x113646);_0x2b2844['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1b0d00,'FORMAT_FONT_SIZE')),_0x2b2844['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1b0d00,'FORMAT_FONT_FAMILY')),_0x2b2844['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1b0d00,'FORMAT_FONT_COLOR')),_0x2b2844['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1b0d00,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48dc31=this['editor'],_0x3d6865=_0x48dc31['locale'];_0x48dc31['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x293fe3=>{const _0x3574c2=_0x3d6865['t'];if('formatInline'!=_0x293fe3['type'])return;const {data:_0x4504b7}=_0x293fe3;if(null!=_0x4504b7){if('fontSize'==_0x4504b7['commandName']){const _0x4a60b2=_0x4504b7['commandParams'][0x0]['value'];if(_0x4a60b2){const _0x3255c5=_0x3574c2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xaebdf0=>_0xaebdf0['model']==_0x4a60b2)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3d6865,'*Set\x20font\x20size:*\x20%0',_0x3255c5)};}return{'type':'format','content':o(_0x3d6865,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4504b7['commandName']){const _0xeaf7fa=_0x4504b7['commandParams'][0x0]['value'];return _0xeaf7fa?{'type':'format','content':o(_0x3d6865,'*Set\x20font\x20family:*\x20%0',_0xeaf7fa)}:{'type':'format','content':o(_0x3d6865,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4504b7['commandName']){const _0x1dd776=_0x4504b7['commandParams'][0x0]['value'];if(_0x1dd776){const _0x158cee=_0xc15ae2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x28da67=>_0x28da67['model']==_0x1dd776);let _0xce9e13=_0x1dd776,_0x32e34c='';return _0x158cee&&(_0xce9e13=_0x158cee['label'],_0x32e34c=_0x3574c2(_0xce9e13)['toLowerCase']()),{'type':'format','content':o(_0x3d6865,'*Set\x20font\x20color:*\x20%0',_0x32e34c)['trim'](),'color':{'value':_0x1dd776,'title':_0x32e34c||_0xce9e13}};}return{'type':'format','content':o(_0x3d6865,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4504b7['commandName']){const _0x4ab235=_0x4504b7['commandParams'][0x0]['value'];if(_0x4ab235){const _0x422f8c=_0xc15ae2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x573e90=>_0x573e90['model']==_0x4ab235);let _0x2f9586=_0x4ab235,_0x10be5e='';return _0x422f8c&&(_0x2f9586=_0x422f8c['label'],_0x10be5e=_0x3574c2(_0x2f9586)['toLowerCase']()),{'type':'format','content':o(_0x3d6865,'*Set\x20font\x20background\x20color:*\x20%0',_0x10be5e)['trim'](),'color':{'value':_0x4ab235,'title':_0x10be5e||_0x2f9586}};}return{'type':'format','content':o(_0x3d6865,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4c30c7{['afterInit'](){const {plugins:_0x160285}=this['editor'];_0x160285['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x160285['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xdd24e6,plugins:_0x551e4a,commands:_0x4ada94}=this['editor'],_0x240036=_0x551e4a['get']('TrackChangesEditing');_0x4ada94['get']('footnotesStyle')&&_0x240036['enableDefaultAttributesIntegration']('footnotesStyle'),_0x4ada94['get']('footnotesStart')&&_0x240036['enableDefaultAttributesIntegration']('footnotesStart'),_0x240036['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xdd24e6,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x240036['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xdd24e6,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x42bbd2=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x5e2872,commands:_0x3b5f93}=this['editor'];_0x3b5f93['get']('insertFootnote')&&_0x42bbd2['enableCommand']('insertFootnote'),_0x42bbd2['descriptionFactory']['registerElementLabel']('footnoteRef',_0x1a2a42=>o(_0x5e2872,'ELEMENT_FOOTNOTE_REF',_0x1a2a42)),_0x42bbd2['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1dea29=>o(_0x5e2872,'ELEMENT_FOOTNOTE_DEFINITION',_0x1dea29)),_0x42bbd2['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3e8805=>o(_0x5e2872,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3e8805));}}class st extends _0x4c30c7{['afterInit'](){const _0x407b77=this['editor'],_0x2bff5a=_0x407b77['plugins']['get']('TrackChangesEditing'),_0x1f88c2=_0x407b77['commands']['get']('copyFormat'),_0x3149c8=_0x407b77['commands']['get']('pasteFormat');_0x1f88c2&&_0x3149c8&&(_0x2bff5a['enableDefaultAttributesIntegration']('pasteFormat'),_0x2bff5a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x56390f=this['editor'],_0x35ed63=_0x56390f['locale'];_0x56390f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21c8b3=>{if('formatBlock'!=_0x21c8b3['type']&&'formatInline'!=_0x21c8b3['type'])return;const {data:_0x5b7dd2}=_0x21c8b3;if(_0x5b7dd2&&'pasteFormat'===_0x5b7dd2['commandName']){const _0x31215b=[],_0x1f516a=_0x5b7dd2['commandParams'][0x0];for(const [_0x573129,_0x4ccf28]of Object['entries'](_0x1f516a))_0x31215b['push'](ro(_0x56390f,_0x573129,_0x4ccf28));return _0x31215b['length']?{'type':'format','content':o(_0x35ed63,'*Set\x20format\x20to:*\x20%0',_0x31215b['join'](',\x20'))}:{'type':'format','content':o(_0x35ed63,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x4486f2,_0x11bf98,_0x3fe52b){const _0x5c379b=_0x4486f2['locale']['t'],_0x10b4b0=_0x11bf98['split'](/(?=[A-Z])/)['join']('\x20'),_0x42b9bf=_0x5c379b(_0x10b4b0['charAt'](0x0)['toUpperCase']()+_0x10b4b0['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3fe52b)return _0x42b9bf;if('fontColor'===_0x11bf98||'fontBackgroundColor'===_0x11bf98){const _0x4c2bc4=_0xc15ae2(_0x4486f2['config']['get']('fontColor.colors'))['find'](_0x10e6a1=>_0x10e6a1['model']==_0x3fe52b);return _0x42b9bf+'\x20('+(_0x4c2bc4?_0x5c379b(_0x4c2bc4['label'])['toLowerCase']():_0x3fe52b)+')';}if('fontSize'===_0x11bf98&&isNaN(parseFloat(_0x3fe52b))){const _0x483cef=_0x4486f2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4486f2['config']['get']('fontSize.options'))['find'](_0x37d839=>_0x37d839['model']==_0x3fe52b);return _0x42b9bf+'\x20('+(_0x483cef?_0x5c379b(_0x483cef['title'])['toLowerCase']():_0x3fe52b)+')';}return _0x42b9bf+'\x20('+_0x3fe52b+')';}class ot extends _0x4c30c7{['_headingOptions'];['afterInit'](){const _0x4ebfb3=this['editor'];if(!_0x4ebfb3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ebfb3['config']['get']('heading.options');const _0x2d70c8=_0x4ebfb3['locale'],_0x4c7411=_0x4ebfb3['plugins']['get']('TrackChangesEditing');_0x4c7411['enableDefaultAttributesIntegration']('heading');for(const _0x45583e of this['_headingOptions'])'paragraph'!=_0x45583e['model']&&_0x4c7411['descriptionFactory']['registerElementLabel'](_0x45583e['model'],_0x419901=>{const _0x41a879=this['_getHeadingLevel'](_0x45583e['model']);return null!==_0x41a879?_0x2ac086(_0x419901,_0x41a879):_0x1cdecf(_0x419901,_0x45583e['title']);});function _0x2ac086(_0x36227e,_0x20d58e){return o(_0x2d70c8,'ELEMENT_HEADING',[_0x36227e,_0x20d58e]);}function _0x1cdecf(_0x5ff3f7,_0x3db3be){return o(_0x2d70c8,'ELEMENT_HEADING_CUSTOM',[_0x5ff3f7,_0x3db3be]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ea78d=this['editor'],_0x26dfb6=_0x1ea78d['locale'];function _0x3da4cc(_0x421d93,_0x43e28d){return o(_0x26dfb6,'ELEMENT_HEADING_CUSTOM',[_0x421d93,_0x43e28d]);}_0x1ea78d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7031f9=>{if('formatBlock'!=_0x7031f9['type'])return;const {data:_0x4df537}=_0x7031f9;if(_0x4df537&&'heading'==_0x4df537['commandName']){const _0x10f843=_0x4df537['commandParams'][0x0]['value'],_0x5b63e8=this['_getHeadingLevel'](_0x10f843);if(null!==_0x5b63e8)return{'type':'format','content':o(_0x26dfb6,'*Change\x20to:*\x20%0',(_0x305e57=0x1,_0x416914=_0x5b63e8,o(_0x26dfb6,'ELEMENT_HEADING',[_0x305e57,_0x416914])))};const _0x243004=this['_headingOptions']['find'](_0x4466dd=>_0x4466dd['model']===_0x10f843)['title'];return{'type':'format','content':o(_0x26dfb6,'*Change\x20to:*\x20%0',_0x3da4cc(0x1,_0x243004))};}var _0x305e57,_0x416914;});}['_getHeadingLevel'](_0x500b4d){const _0x33215d=_0x500b4d['match'](/^heading(\d+)/);if(_0x33215d)return _0x33215d[0x1];const _0x33dd0f=this['_headingOptions']?.['find'](_0x4a69ee=>_0x4a69ee['model']==_0x500b4d);if(_0x33dd0f&&_0x33dd0f['view']){const _0x4607e9=_0x33dd0f['view'],_0x2c67ca=(_0x4607e9['name']??_0x4607e9)['match'](/^h(\d+)/);if(_0x2c67ca)return _0x2c67ca[0x1];}return null;}}class rt extends _0x4c30c7{['afterInit'](){const _0x377657=this['editor'];if(!_0x377657['plugins']['has']('HighlightEditing'))return;const _0x23dd2d=_0x377657['plugins']['get']('TrackChangesEditing'),_0xc2e792=_0x377657['locale'];_0x23dd2d['enableDefaultAttributesIntegration']('highlight'),_0x23dd2d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xc2e792,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a13d7=this['editor'],_0x5d15c9=_0x2a13d7['locale'];_0x2a13d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d90db=>{if('formatInline'!=_0x4d90db['type'])return;const {data:_0x182032}=_0x4d90db;if(_0x182032&&'highlight'==_0x182032['commandName']){const _0x4eab03=_0x5d15c9['t'],_0x3fc047=_0x182032['commandParams'][0x0]['value'];if(_0x3fc047){const _0x2b7b80=_0x2a13d7['config']['get']('highlight.options')['find'](_0x40909b=>_0x40909b['model']==_0x3fc047),_0x64f929=_0x4eab03(_0x2b7b80['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d15c9,'*Set\x20highlight:*\x20%0',_0x64f929),'color':{'value':_0x2b7b80['color'],'title':_0x2b7b80['title']}};}return{'type':'format','content':o(_0x5d15c9,'*Remove\x20highlight*',o(_0x5d15c9,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x4c30c7{['afterInit'](){const _0x12e031=this['editor'];if(!_0x12e031['plugins']['has']('HorizontalLineEditing'))return;_0x12e031['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x490fb1=_0x12e031['plugins']['get']('TrackChangesEditing'),_0x4e1b5f=_0x12e031['locale'];_0x490fb1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4f3a7d=>o(_0x4e1b5f,'ELEMENT_HORIZONTAL_LINE',_0x4f3a7d));}}class ct extends _0x4c30c7{['afterInit'](){const _0x27fdda=this['editor'];if(!_0x27fdda['plugins']['has']('HtmlEmbed'))return;const _0x107a9a=_0x27fdda['plugins']['get']('TrackChangesEditing'),_0x3adfb0=_0x27fdda['locale'];_0x107a9a['descriptionFactory']['registerElementLabel']('rawHtml',_0x5357c5=>o(_0x3adfb0,'ELEMENT_HTML_EMBED',_0x5357c5)),_0x107a9a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x107a9a['descriptionFactory']['registerDescriptionCallback'](_0x5247aa=>{if('attribute'!=_0x5247aa['type'])return;const {data:_0x4f175d}=_0x5247aa;if(_0x4f175d&&'value'==_0x4f175d['key']&&_0x5247aa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x56dd71=o(_0x3adfb0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3adfb0,'*Change\x20%0\x20content*',_0x56dd71)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17cc56=this['editor'],_0x68a76b=_0x17cc56['locale'];_0x17cc56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5dbed3=>{if('formatBlock'!=_0x5dbed3['type'])return;const {data:_0xaf2a49}=_0x5dbed3;if(_0xaf2a49&&'htmlEmbed'==_0xaf2a49['commandName']){const _0x444b01=o(_0x68a76b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x68a76b,'*Change\x20%0\x20content*',_0x444b01)};}});}}class ut extends _0x4c30c7{['afterInit'](){const _0x11a27b=this['editor'];if(!_0x11a27b['plugins']['has']('ImageEditing'))return;const _0xdc2329=_0x11a27b['plugins']['get']('TrackChangesEditing'),_0x40304c=_0x11a27b['plugins']['get']('ImageUtils'),_0x2a4262=_0x11a27b['locale'];_0xdc2329['enableCommand']('insertImage'),_0xdc2329['descriptionFactory']['registerElementLabel']('imageBlock',_0x3d9ad9=>o(_0x2a4262,'ELEMENT_IMAGE',_0x3d9ad9)),_0xdc2329['descriptionFactory']['registerElementLabel']('imageInline',_0x2357ca=>o(_0x2a4262,'ELEMENT_INLINE_IMAGE',_0x2357ca)),_0xdc2329['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2a4262,'ELEMENT_CAPTION')),_0x11a27b['plugins']['has']('ImageUploadEditing')&&_0xdc2329['enableCommand']('uploadImage'),_0x11a27b['plugins']['has']('ImageBlockEditing')&&_0x11a27b['plugins']['has']('ImageInlineEditing')&&(_0xdc2329['enableCommand']('imageTypeInline',(_0xa2b9ca,_0x43066a)=>{const _0x533cf7=_0x40304c['getClosestSelectedImageElement'](_0x11a27b['model']['document']['selection']);_0x11a27b['model']['change'](()=>{_0xdc2329['markBlockFormat'](_0x533cf7,{'commandName':'imageTypeInline','commandParams':[_0x43066a]},[],'convertBlockImageToInline');});}),_0xdc2329['enableCommand']('imageTypeBlock',(_0x5d9921,_0x49e4be)=>{_0x11a27b['model']['change'](_0x4f695f=>{let _0x47590f=_0x40304c['getClosestSelectedImageElement'](_0x11a27b['model']['document']['selection']),_0x46709b=_0x4f695f['createRangeOn'](_0x47590f);const _0x39bbe6=_0x407ea5['fromPosition'](_0x46709b['start'],'toPrevious'),_0x20d9c9=_0x407ea5['fromPosition'](_0x46709b['end'],'toNext');_0xdc2329['forceDefaultExecution'](()=>_0x5d9921(_0x49e4be)),_0x47590f=_0x40304c['getClosestSelectedImageElement'](_0x11a27b['model']['document']['selection']),_0x46709b=_0x4f695f['createRangeOn'](_0x47590f);const _0x5ab383=_0x4f695f['createRange'](_0x39bbe6,_0x20d9c9);_0x39bbe6['detach'](),_0x20d9c9['detach'](),_0xdc2329['markBlockFormat'](_0x47590f,{'commandName':'imageTypeInline','commandParams':[_0x49e4be]},[],'convertInlineImageToBlock'),_0x5ab383['start']['isBefore'](_0x46709b['start'])&&_0xdc2329['markInsertion'](_0x4f695f['createRange'](_0x5ab383['start'],_0x46709b['start']),'convertInlineImageToBlock'),_0x46709b['end']['isBefore'](_0x5ab383['end'])&&_0xdc2329['markInsertion'](_0x4f695f['createRange'](_0x46709b['end'],_0x5ab383['end']),'convertInlineImageToBlock');});}),_0xdc2329['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xdc2329['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xdc2329['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xdc2329['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xdc2329['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xdc2329['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x48252e])=>{const _0x270688=_0xdc2329['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3fcf91=_0x48252e['start'],_0x389dfa=_0x48252e['end'];const _0x23c7ba=_0x11a27b['model']['schema']['getNearestSelectionRange'](_0x3fcf91,'backward'),_0x25608b=_0x11a27b['model']['schema']['getNearestSelectionRange'](_0x389dfa,'forward');_0x23c7ba['isCollapsed']&&(_0x3fcf91=_0x23c7ba['start']),_0x25608b['isCollapsed']&&(_0x389dfa=_0x25608b['end']),_0x270688([_0x11a27b['model']['createRange'](_0x3fcf91,_0x389dfa)]);}),_0xdc2329['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4d5f80),_0xdc2329['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4d5f80)),_0x11a27b['plugins']['has']('ImageCaptionEditing')&&(_0xdc2329['enableCommand']('toggleImageCaption',(_0x471e71,_0x1e3cd0)=>{const _0x1e5d88=_0x11a27b['plugins']['get']('ImageCaptionUtils');let _0x58fe89=_0x40304c['getClosestSelectedImageElement'](_0x11a27b['model']['document']['selection']),_0x41356d=_0x1e5d88['getCaptionFromImageModelElement'](_0x58fe89);_0x11a27b['model']['change'](()=>{if(_0x41356d)return void _0xdc2329['markDeletion'](_0x11a27b['model']['createRangeOn'](_0x41356d));const _0x392d86=_0x40304c['isBlockImage'](_0x58fe89);_0x471e71(_0x1e3cd0),_0x58fe89=_0x40304c['getClosestSelectedImageElement'](_0x11a27b['model']['document']['selection']),_0x41356d=_0x1e5d88['getCaptionFromImageModelElement'](_0x58fe89),_0xdc2329['markInsertion'](_0x11a27b['model']['createRangeOn'](_0x41356d),_0x392d86?null:'imageCaption');});}),_0xdc2329['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4d5f80));const _0x2969cc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x428e2f(_0x26d62c,_0x3a9c64){const _0x41f959=_0x2969cc['findIndex'](({type:_0x1a9a89,subType:_0x154872})=>_0x26d62c['type']==_0x1a9a89&&_0x26d62c['subType']==_0x154872),_0x9175ff=_0x2969cc['findIndex'](({type:_0x3efe24,subType:_0x196146})=>_0x3a9c64['type']==_0x3efe24&&_0x3a9c64['subType']==_0x196146);if(_0x41f959<0x0||_0x9175ff<0x0)return!0x1;const _0x166785=_0x26d62c['getFirstRange'](),_0x2e1aa6=_0x3a9c64['getFirstRange']();if((0x0==_0x41f959||0x1==_0x41f959)&&0x2==_0x9175ff&&_0x166785['isIntersecting'](_0x2e1aa6))return!0x0;if(0x2==_0x41f959&&0x3==_0x9175ff){const _0x8841b8=_0xdc2329['_findSuggestions'](_0x166785,'insertion')['filter'](({suggestion:_0x28302b,meta:_0xb66bd5})=>_0xb66bd5['isOwn']&&'convertInlineImageToBlock'==_0x28302b['subType']);if(_0x8841b8['length']>0x1&&_0x2e1aa6['end']['isEqual'](_0x166785['start']))return!0x0;if(0x1==_0x8841b8['length']&&(_0x166785['start']['isEqual'](_0x2e1aa6['end'])||_0x166785['end']['isEqual'](_0x2e1aa6['start'])))return!0x0;}if(0x3==_0x41f959&&0x3==_0x9175ff&&_0x166785['start']['isBefore'](_0x2e1aa6['start'])){const _0x1c45a8=_0x166785['end']['nodeAfter'],_0x16b0c0=_0x2e1aa6['start']['nodeBefore'];return _0x40304c['isBlockImage'](_0x1c45a8)&&_0x1c45a8===_0x16b0c0;}return!0x1;}function _0x4d5f80(_0x229454,_0x9fe6c3){return _0x428e2f(_0x229454,_0x9fe6c3)?[_0x229454,_0x9fe6c3]:_0x428e2f(_0x9fe6c3,_0x229454)?[_0x9fe6c3,_0x229454]:null;}_0x11a27b['plugins']['has']('ImageResize')&&(_0xdc2329['enableDefaultAttributesIntegration']('resizeImage'),_0xdc2329['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2a4262,'FORMAT_IMAGE_SIZE'))),_0x11a27b['plugins']['has']('ImageTextAlternativeEditing')&&_0xdc2329['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11a27b['plugins']['has']('PictureEditing')&&_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x2284e6=>{if('attribute'!=_0x2284e6['type'])return;const {data:_0x19737a}=_0x2284e6;return _0x19737a&&'sources'==_0x19737a['key']?{'type':'format','content':''}:void 0x0;}),_0x11a27b['plugins']['has']('ImageSizeAttributes')&&_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x4bb9ab=>{if('attribute'!=_0x4bb9ab['type'])return;const {data:_0x1ad5bf}=_0x4bb9ab;return!_0x1ad5bf||'width'!=_0x1ad5bf['key']&&'height'!=_0x1ad5bf['key']?void 0x0:{'type':'format','content':''};}),_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x5be8c2=>{if(!!_0x2969cc['find'](({type:_0x129eea,subType:_0x77ad})=>_0x5be8c2['type']==_0x129eea&&_0x5be8c2['subType']==_0x77ad))return _0x5be8c2['previous']?{}:void 0x0;}),_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x56b53d=>{if('insertion'==_0x56b53d['type']||'deletion'==_0x56b53d['type']){const _0x190e13=_0x56b53d['getContainedElement']();if(_0x190e13&&_0x190e13['is']('element','caption'))return{'type':'insertion'==_0x56b53d['type']?'addObject':'removeObject','element':_0x190e13,'quantity':0x1};}}),_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x2cbeec=>'formatBlock'==_0x2cbeec['type']&&'convertInlineImageToBlock'==_0x2cbeec['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2cbeec['type']&&'convertBlockImageToInline'==_0x2cbeec['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xdc2329['descriptionFactory']['registerDescriptionCallback'](_0x26a50a=>{if('attribute'!=_0x26a50a['type'])return;const {data:_0x34d199}=_0x26a50a;if(!_0x34d199||'alt'!=_0x34d199['key'])return;const _0x10089d=_0x34d199['newValue'];return _0x10089d?{'type':'format','content':o(_0x2a4262,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x10089d+'\x22')}:{'type':'format','content':o(_0x2a4262,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b0221=this['editor'],_0x52ad1c=_0x3b0221['locale'];_0x3b0221['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48dbd3=>{if('formatBlock'!=_0x48dbd3['type']&&'formatInline'!=_0x48dbd3['type'])return;const {data:_0x2ad59e}=_0x48dbd3;if(_0x2ad59e){if('imageTextAlternative'==_0x2ad59e['commandName']){const _0x54ce61=_0x2ad59e['commandParams'][0x0]['newValue'];return _0x54ce61?{'type':'format','content':o(_0x52ad1c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54ce61+'\x22')}:{'type':'format','content':o(_0x52ad1c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2ad59e['commandName']){const _0x429061=_0x2ad59e['commandParams'][0x0]['width'];return _0x429061?{'type':'format','content':o(_0x52ad1c,'*Set\x20image\x20width:*\x20%0',_0x429061)}:{'type':'format','content':o(_0x52ad1c,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x4c30c7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x258870=this['editor']['locale'],_0x1397d9=this['editor']['plugins']['get']('TrackChangesEditing');_0x1397d9['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1397d9['descriptionFactory']['registerDescriptionCallback'](_0x13213e=>{if('attribute'!=_0x13213e['type'])return;const {data:_0x186893}=_0x13213e;return _0x186893&&'src'==_0x186893['key']?_0x186893['newValue']&&_0x186893['oldValue']?{'type':'format','content':o(_0x258870,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x480821=this['editor']['plugins']['get']('TrackChangesEditing');_0x480821['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x480821['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x480821['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x480821['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c4545=this['editor'],_0x441caf=_0x3c4545['locale'];_0x3c4545['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39ddbf=>{if('formatBlock'!=_0x39ddbf['type']&&'formatInline'!=_0x39ddbf['type'])return;const {data:_0x461c6e}=_0x39ddbf;if(!_0x461c6e||'replaceImageSource'!=_0x461c6e['commandName'])return;return{'type':'format','content':o(_0x441caf,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x4c30c7{['afterInit'](){const _0x2ecd84=this['editor'];if(!_0x2ecd84['plugins']['has']('ImageStyleEditing'))return;const _0x36b720=_0x2ecd84['plugins']['get']('TrackChangesEditing'),_0x3a5e73=_0x2ecd84['plugins']['get']('ImageUtils'),_0x49fee6={};_0x36b720['enableCommand']('imageStyle',(_0x14010e,_0x353ae1)=>{const _0x668828=_0x2ecd84['plugins']['get']('Users')['me'],_0x2cf830=_0x2ecd84['commands']['get']('imageStyle');let _0x254a33=_0x3a5e73['getClosestSelectedImageElement'](_0x2ecd84['model']['document']['selection']),_0x36a63f=_0x2ecd84['model']['createRangeOn'](_0x254a33),_0x3741e1=_0x2cf830['value'];if(_0x3741e1==_0x353ae1['value'])return;const _0x32e8b9={'commandName':'imageStyle','commandParams':[_0x353ae1],'formatGroupId':_0x258bf1()};_0x2ecd84['model']['change'](()=>{if(_0x36b720['getSuggestions']()['filter'](_0x35c6fc=>_0x35c6fc['isInContent']&&_0x668828==_0x35c6fc['author']&&('formatBlock'==_0x35c6fc['type']||'formatInline'==_0x35c6fc['type'])&&('imageStylePreApply'==_0x35c6fc['subType']||'imageStylePostApply'==_0x35c6fc['subType'])&&_0x35c6fc['getFirstRange']()['isEqual'](_0x36a63f))['forEach'](_0x4b6a06=>_0x36b720['discardSuggestion'](_0x4b6a06['head'])),_0x254a33=_0x3a5e73['getClosestSelectedImageElement'](_0x2ecd84['model']['document']['selection']),_0x36a63f=_0x2ecd84['model']['createRangeOn'](_0x254a33),_0x2cf830['refresh'](),_0x2ecd84['commands']['get']('imageTypeInline')['refresh'](),_0x2ecd84['commands']['get']('imageTypeBlock')['refresh'](),_0x3741e1=_0x2cf830['value'],_0x3741e1!=_0x353ae1['value'])return _0x3a5e73['isInlineImage'](_0x254a33)&&_0x2cf830['shouldConvertImageType'](_0x353ae1['value'],_0x254a33)?(_0x14010e({..._0x353ae1,'setImageSizes':!0x1}),_0x254a33=_0x3a5e73['getClosestSelectedImageElement'](_0x2ecd84['model']['document']['selection']),void _0x36b720['markBlockFormat'](_0x254a33,{..._0x32e8b9,'commandReversedParams':[{'value':_0x3741e1||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3a5e73['isBlockImage'](_0x254a33)?_0x36b720['markBlockFormat'](_0x254a33,_0x32e8b9,[],'imageStylePostApply'):_0x36b720['markInlineFormat'](_0x36a63f,_0x32e8b9,'imageStylePostApply'));});});for(const _0x1f9876 of _0x2ecd84['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x49fee6[_0x1f9876['name']]=_0x1f9876['title']['toLowerCase']();_0x36b720['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x36b720['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x36b720['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x36b720['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2586b2])=>{_0x3a5e73['setImageNaturalSizeAttributes'](_0x2586b2['getContainedElement']());}),_0x36b720['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x13b5a7,_0x4ce9be)=>{_0x36b720['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x13b5a7,{'commandName':_0x4ce9be['commandName'],'commandParams':_0x4ce9be['commandReversedParams']});}),_0x36b720['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x999635,_0x3dfaad){if(_0x3d5ff8(_0x999635,_0x3dfaad))return[_0x999635,_0x3dfaad];if(_0x3d5ff8(_0x3dfaad,_0x999635))return[_0x3dfaad,_0x999635];return null;});const _0x12f7e1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d5ff8(_0x24261c,_0x169ab7){const _0x566f80=_0x12f7e1['findIndex'](({type:_0xf65b5,subType:_0x59fde5})=>_0x24261c['type']==_0xf65b5&&_0x24261c['subType']==_0x59fde5),_0x126ada=_0x12f7e1['findIndex'](({type:_0x3f2293,subType:_0x3c34d1})=>_0x169ab7['type']==_0x3f2293&&_0x169ab7['subType']==_0x3c34d1);if(_0x566f80<0x0||_0x126ada<0x0)return!0x1;const _0xe847e4=_0x24261c['getFirstRange'](),_0x5adfad=_0x169ab7['getFirstRange']();if((0x0==_0x566f80||0x1==_0x566f80)&&0x2==_0x126ada&&_0xe847e4['isIntersecting'](_0x5adfad))return!0x0;if(0x2==_0x566f80&&0x3==_0x126ada){const _0x10723d=_0x36b720['_findSuggestions'](_0xe847e4,'insertion')['filter'](({suggestion:_0x59d092,meta:_0x3e5533})=>_0x3e5533['isOwn']&&'convertInlineImageToBlock'==_0x59d092['subType']);if(_0x10723d['length']>0x1&&_0x5adfad['end']['isEqual'](_0xe847e4['start']))return!0x0;if(0x1==_0x10723d['length']&&(_0xe847e4['start']['isEqual'](_0x5adfad['end'])||_0xe847e4['end']['isEqual'](_0x5adfad['start'])))return!0x0;}if(0x3==_0x566f80&&0x3==_0x126ada&&_0xe847e4['start']['isBefore'](_0x5adfad['start'])){const _0x4844d3=_0xe847e4['end']['nodeAfter'],_0x67e60e=_0x5adfad['start']['nodeBefore'];return _0x3a5e73['isBlockImage'](_0x4844d3)&&_0x4844d3===_0x67e60e;}return!0x1;}_0x2ecd84['model']['document']['registerPostFixer'](()=>{let _0x47f727=!0x1;const _0x9b7f95=Array['from'](_0x2ecd84['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2c8f,data:_0x144687}of _0x9b7f95){const {group:_0x43b696,type:_0x9d5863,subType:_0x311a1f,id:_0x524a67}=_0x36b720['_splitMarkerName'](_0x1d2c8f);if('suggestion'==_0x43b696&&_0x36b720['hasSuggestion'](_0x524a67)){if('formatBlock'==_0x9d5863&&('imageStylePreApply'==_0x311a1f||'imageStylePostApply'==_0x311a1f)){const _0x31ab57=_0x36b720['getSuggestion'](_0x524a67);if(_0x144687['newRange']){const _0x340e2c=_0x31ab57['getFirstRange']()['getContainedElement']();if(_0x3a5e73['isBlockImage'](_0x340e2c))continue;_0x36b720['discardSuggestion'](_0x31ab57),_0x47f727=!0x0;}}if('insertion'==_0x9d5863&&'imageCaption'==_0x311a1f&&!_0x144687['newRange']){const _0xdd4ed9=_0x36b720['getSuggestion'](_0x524a67);_0xdd4ed9['next']&&_0xdd4ed9['next']['isInContent']&&(_0x36b720['discardSuggestion'](_0xdd4ed9['next']),_0x47f727=!0x0);}}}return _0x47f727;}),this['_registerLegacyDescription'](_0x49fee6);}['_registerLegacyDescription'](_0x1dd9d4){const _0x38f6f9=this['editor'],_0x1217a1=_0x38f6f9['locale'];_0x38f6f9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7a32=>{if('formatBlock'!=_0x4a7a32['type']&&'formatInline'!=_0x4a7a32['type'])return;const {data:_0x19795a}=_0x4a7a32;if(!_0x19795a||'imageStyle'!=_0x19795a['commandName'])return;const _0x48e8b4=_0x19795a['commandParams'][0x0]['value'];return _0x27fbbc('side'===_0x48e8b4?o(_0x1217a1,'FORMAT_SIDE_IMAGE'):_0x1dd9d4[_0x48e8b4]||_0x48e8b4);function _0x27fbbc(_0x381aff){return{'type':'format','content':o(_0x1217a1,'*Format:*\x20%0',_0x381aff)};}});}}class lt extends _0x4c30c7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x34d0fb){super(_0x34d0fb),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x6ad455=this['editor'],_0x137176=_0x6ad455['commands']['get']('importWord'),_0x2dfbf6=_0x6ad455['commands']['get']('trackChanges');_0x137176&&(_0x137176['on']('execute',(_0x265182,[,_0x32ee7f])=>{this['_trackChangesValueDuringImport']=_0x2dfbf6['value'],_0x32ee7f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x137176,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x137176,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2dfbf6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x6ad455['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x31f6a9,_0x3f7d69){const {suggestions:_0x4374c4}=_0x3f7d69,_0x202485=this['editor']['commands']['get']('trackChanges'),_0x3beb24=_0x202485['value'];this['_trackChangesValueDuringImport']!==_0x3beb24&&(_0x202485['execute'](),this['_trackChangesExecuted']=!0x0),_0x4374c4&&_0x4374c4['forEach'](({id:_0xf2df40,type:_0x3e82d6,author:_0x1fa5f6,created_at:_0x5bbb67})=>{const _0x3ab63d={'id':_0xf2df40,'type':_0x3e82d6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1fa5f6,'createdAt':_0x5bbb67?new Date(_0x5bbb67):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ab63d);});}}class gt extends _0x4c30c7{['afterInit'](){const _0x3f4606=this['editor'],_0x477132=_0x3f4606['plugins']['get']('TrackChangesEditing');if(_0x3f4606['plugins']['has']('IndentEditing')&&(_0x477132['enableCommand']('indent'),_0x477132['enableCommand']('outdent')),_0x3f4606['plugins']['has']('IndentBlock')){for(const _0xa82ede of['indentBlock','outdentBlock'])_0x477132['enableDefaultAttributesIntegration'](_0xa82ede);if(_0x3f4606['plugins']['has']('ListEditing')){for(const _0x6d040f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x477132['enableDefaultAttributesIntegration'](_0x6d040f);}}const _0x413718=_0x3f4606['locale'];_0x477132['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x413718,'FORMAT_INDENT')),_0x477132['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x413718,'FORMAT_INDENT')),_0x477132['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x413718,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57144d=this['editor'],_0x3747f1=_0x57144d['locale'],_0x2f0e61=_0x57144d['plugins']['get']('TrackChangesEditing');_0x2f0e61['descriptionFactory']['registerDescriptionCallback'](_0x466dd3=>{if('formatBlock'!=_0x466dd3['type'])return;const {data:_0x122d6c}=_0x466dd3;if(!_0x122d6c)return;if('indentBlock'!=_0x122d6c['commandName']&&'outdentBlock'!=_0x122d6c['commandName'])return;const _0x1e2ad8=_0x466dd3['getItems']()[0x0],_0x23f01d=_0x2f0e61['descriptionFactory']['getItemLabel'](_0x1e2ad8);return'indentBlock'==_0x122d6c['commandName']?{'type':'format','content':o(_0x3747f1,'*Indent:*\x20%0',_0x23f01d)}:'outdentBlock'==_0x122d6c['commandName']?{'type':'format','content':o(_0x3747f1,'*Outdent:*\x20%0',_0x23f01d)}:void 0x0;});}}class mt extends _0x4c30c7{static get['requires'](){return[_0x4c3ac9];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x4c30c7{['afterInit'](){const _0x4e9862=this['editor'];if(!_0x4e9862['plugins']['has']('LinkEditing'))return;const _0x3a1f77=_0x4e9862['plugins']['get']('TrackChangesEditing'),_0x5936bd=_0x4e9862['commands']['get']('link');_0x3a1f77['enableDefaultAttributesIntegration']('link'),_0x3a1f77['enableDefaultAttributesIntegration']('unlink');for(const _0x5d5bdb of _0x5936bd['manualDecorators'])_0x3a1f77['descriptionFactory']['registerAttributeLabel'](_0x5d5bdb['id'],'link\x20('+_0x5d5bdb['label']['toLowerCase']()+')');_0x3a1f77['descriptionFactory']['registerDescriptionCallback'](_0x1ab948=>{if('attribute'!=_0x1ab948['type'])return;const {data:_0x435f98}=_0x1ab948;if(!_0x435f98||'linkHref'!=_0x435f98['key'])return;const _0x2d0c59=_0x435f98['newValue'],_0x256692=_0x4e9862['locale'];return{'type':'format','content':null==_0x2d0c59?o(_0x256692,'*Remove\x20link*'):o(_0x256692,'*Set\x20link:*\x20%0','\x22'+_0x2d0c59+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d19a4=this['editor'],_0x5aac5a=_0x7d19a4['locale'];_0x7d19a4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x106f22=>{if('formatInline'!=_0x106f22['type'])return;const {data:_0x284df6}=_0x106f22;if(_0x284df6){if('link'==_0x284df6['commandName']){const _0x1a45a6=_0x284df6['commandParams'][0x0];return{'type':'format','content':o(_0x5aac5a,'*Set\x20link:*\x20%0','\x22'+_0x1a45a6+'\x22')};}return'unlink'==_0x284df6['commandName']?{'type':'format','content':o(_0x5aac5a,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x4c30c7{['afterInit'](){const _0x3f0d2a=this['editor'],_0x1ded1d=_0x3f0d2a['locale'];if(!_0x3f0d2a['plugins']['has']('LegacyListEditing'))return;const _0x1e03ff=_0x3f0d2a['plugins']['get']('TrackChangesEditing'),_0xe431a=_0x3f0d2a['plugins']['has']('LegacyTodoListEditing');function _0x51a4cd(_0x56c15c){return()=>{const _0x2e187b=_0x3f0d2a['model']['document']['selection'],_0x33d6cd=_0x3f0d2a['commands']['get'](_0x56c15c);if(_0x33d6cd['value'])return void _0x3f0d2a['execute']('paragraph',{});const _0x4d1b81=_0x56c15c['slice'](0x0,-0x4),_0x40ad42=function(_0xd9e613,_0x5b8a9f,_0x7e04cc){let _0x4364f4=Array['from'](_0xd9e613)['filter'](_0x35f487=>function(_0xe7cd48,_0x19de03){return _0x19de03['checkChild'](_0xe7cd48['parent'],'listItem')&&!_0x19de03['isObject'](_0xe7cd48);}(_0x35f487,_0x7e04cc));_0x4364f4=_0x4364f4['filter'](_0x4377ff=>!_0x4377ff['is']('element','listItem')||_0x4377ff['getAttribute']('listType')!=_0x5b8a9f);const _0x32bac2=new Set();for(const _0x248fa6 of _0x4364f4)_0x248fa6['is']('element','listItem')?_0x32bac2['add'](Le(_0x248fa6)):_0x32bac2['add'](_0x248fa6);return Array['from'](_0x32bac2);}(_0x2e187b['getSelectedBlocks'](),_0x4d1b81,_0x3f0d2a['model']['schema']);_0x3f0d2a['model']['change'](()=>{for(const _0x1473fd of _0x40ad42)_0x1e03ff['markBlockFormat'](_0x1473fd,{'commandName':_0x56c15c,'commandParams':[{'forceValue':!_0x33d6cd['value']}],'formatGroupId':'blockName'},Ee(_0x1473fd));});};}function _0x40bcb8(_0x4b74b8){return()=>{const _0x509333=function(_0xfde450){let _0x5b90da=Array['from'](_0xfde450);const _0x447663=_0x5b90da['findIndex'](_0x166bbf=>'listItem'!=_0x166bbf['name']);return _0x447663>-0x1&&(_0x5b90da=_0x5b90da['slice'](0x0,_0x447663)),_0x5b90da;}(_0x3f0d2a['model']['document']['selection']['getSelectedBlocks']()),_0x2b447c=_0x3f0d2a['model']['createRange'](_0x3f0d2a['model']['createPositionAt'](_0x509333[0x0],'before'),_0x3f0d2a['model']['createPositionAt'](_0x509333[_0x509333['length']-0x1],'end'));_0x3f0d2a['model']['change'](()=>{_0x1e03ff['markBlockFormat'](_0x2b447c,{'commandName':_0x4b74b8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5098ab){const _0x13c229=new Set();for(const _0x197b29 of _0x5098ab){let _0x3e3cd9=_0x197b29['nextSibling'];for(;_0x3e3cd9&&_0x3e3cd9['getAttribute']('listIndent')>_0x197b29['getAttribute']('listIndent');)_0x13c229['add'](_0x3e3cd9),_0x3e3cd9=_0x3e3cd9['nextSibling'];}return Array['from'](_0x13c229);}(_0x509333));});};}_0x1e03ff['enableCommand']('numberedList',_0x51a4cd('numberedList')),_0x1e03ff['enableCommand']('bulletedList',_0x51a4cd('bulletedList')),_0xe431a&&_0x1e03ff['enableCommand']('todoList',_0x51a4cd('todoList')),_0x1e03ff['enableCommand']('indentList',_0x40bcb8('indentList')),_0x1e03ff['enableCommand']('outdentList',_0x40bcb8('outdentList')),_0xe431a&&_0x1e03ff['enableCommand']('checkTodoList',()=>{const _0x361306=_0x3f0d2a['commands']['get']('checkTodoList'),_0x46e1e3=Array['from'](_0x361306['_selectedElements']);_0x46e1e3['filter'](_0x2c277d=>_0x2c277d['getAttribute']('todoListChecked')!=_0x361306['value']),_0x3f0d2a['model']['change'](()=>{for(const _0x44ed51 of _0x46e1e3)_0x1e03ff['markBlockFormat'](_0x44ed51,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x361306['value']}]});});}),_0x1e03ff['descriptionFactory']['registerElementLabel']('listItem',_0x44e376=>o(_0x1ded1d,'ELEMENT_LIST_ITEM',_0x44e376)),_0x1e03ff['descriptionFactory']['registerDescriptionCallback'](_0x1b8c06=>{if('formatBlock'!=_0x1b8c06['type']&&'formatInline'!=_0x1b8c06['type'])return;const {data:_0x5730f7}=_0x1b8c06;if(_0x5730f7){if('numberedList'==_0x5730f7['commandName']||'bulletedList'==_0x5730f7['commandName']||'todoList'==_0x5730f7['commandName'])switch(_0x5730f7['commandName']['replace']('List','')){case'bulleted':return _0x392075(o(_0x1ded1d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x392075(o(_0x1ded1d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x392075(o(_0x1ded1d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5730f7['commandName'])return{'type':'format','content':o(_0x1ded1d,'*Indent:*\x20%0',o(_0x1ded1d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5730f7['commandName'])return{'type':'format','content':o(_0x1ded1d,'*Outdent:*\x20%0',o(_0x1ded1d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5730f7['commandName'])return _0x5730f7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ded1d,'*Check\x20item*')}:{'type':'format','content':o(_0x1ded1d,'*Uncheck\x20item*')};}function _0x392075(_0xccc45){return{'type':'format','content':o(_0x1ded1d,'*Change\x20to:*\x20%0',_0xccc45)};}});}}function Le(_0x4f44a1){const _0x43fe34=_0x4f44a1['getAttribute']('listIndent');if(0x0==_0x43fe34)return _0x4f44a1;let _0x52cd32=_0x4f44a1;for(;_0x4f44a1['previousSibling']&&_0x4f44a1['previousSibling']['is']('element','listItem');){const _0x13a192=_0x4f44a1['previousSibling']['getAttribute']('listIndent');if(_0x13a192==_0x43fe34)_0x52cd32=_0x4f44a1['previousSibling'];else{if(_0x13a192<_0x43fe34)break;}_0x4f44a1=_0x4f44a1['previousSibling'];}return _0x52cd32;}function Ee(_0x4c69f9){const _0x424f24=[];if(_0x4c69f9['is']('element','listItem')&&_0x4c69f9['getAttribute']('listIndent')>0x0){let _0x16e276=_0x4c69f9['nextSibling'];for(;_0x16e276&&'listItem'==_0x16e276['name']&&_0x16e276['getAttribute']('listIndent')==_0x4c69f9['getAttribute']('listIndent');)_0x424f24['push'](_0x16e276),_0x16e276=_0x16e276['nextSibling'];}return _0x424f24;}class wt extends _0x4c30c7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x12e998=this['editor']['config']['get']('list.properties'),_0x4348e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x12e998['styles']&&_0x4348e4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x12e998['reversed']&&_0x4348e4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x12e998['startIndex']&&_0x4348e4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4348e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x357b02,_0x4f8c3d={}){const _0x35138f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x327925=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x35138f['markMultiRangeBlockFormat'](_0x327925,{'commandName':'listStyle','commandParams':[{'type':_0x4f8c3d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x52671d,_0x539922={}){const _0x2df88b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xf9ff67=this['_getSuggestionBlocks'](_0x2d29b8=>_0x2d29b8['is']('element','listItem')&&'numbered'===_0x2d29b8['getAttribute']('listType'));if(_0xf9ff67['length']<0x1)return;const _0x3b4f3a=_0xf9ff67['map'](_0x22cd7c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x22cd7c,'before'),this['editor']['model']['createPositionAt'](_0x22cd7c,0x0)));this['editor']['model']['change'](()=>{_0x2df88b['markMultiRangeBlockFormat'](_0x3b4f3a,{'commandName':'listReversed','commandParams':[{'reversed':_0x539922['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x18cbaf,_0x16f5bc={}){const _0x3ac36e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8681=this['_getSuggestionBlocks'](_0x57ac15=>_0x57ac15['is']('element','listItem')&&'numbered'===_0x57ac15['getAttribute']('listType'));if(_0x5c8681['length']<0x1)return;const _0x3c7a03=_0x5c8681['map'](_0x3b587f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b587f,'before'),this['editor']['model']['createPositionAt'](_0x3b587f,0x0)));this['editor']['model']['change'](()=>{_0x3ac36e['markMultiRangeBlockFormat'](_0x3c7a03,{'commandName':'listStart','commandParams':[{'startIndex':_0x16f5bc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1a7bd4){if('formatBlock'!=_0x1a7bd4['type']&&'formatInline'!=_0x1a7bd4['type'])return;const _0x31d242=this['editor']['locale'],{data:_0xf600dd}=_0x1a7bd4;if(!_0xf600dd)return;let _0x3bc552,_0x364817;switch(_0xf600dd['commandName']){case'listStyle':_0x3bc552='*Change\x20to:*\x20%0',_0x364817={'type':'format','content':o(_0x31d242,_0x3bc552,o(_0x31d242,this['_getTranslationKeyForListStyle'](_0xf600dd['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bc552=_0xf600dd['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x364817={'type':'format','content':o(_0x31d242,_0x3bc552)};break;case'listStart':_0x3bc552='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x364817={'type':'format','content':o(_0x31d242,_0x3bc552,_0xf600dd['commandParams'][0x0]['startIndex'])};}return _0x364817;}['_getSuggestionBlocksForListStyle'](){const _0x5e3cf4=this['editor']['plugins']['get']('LegacyListUtils');let _0x431e00=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x431e00[0x0]?.['is']('element','listItem')&&_0x431e00['unshift'](..._0x5e3cf4['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x431e00[_0x431e00['length']-0x1]?.['is']('element','listItem')&&_0x431e00['push'](..._0x5e3cf4['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x431e00=[...new Set(_0x431e00)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x431e00=_0x431e00['filter'](_0x3c25b3=>_0x3c25b3['is']('element','listItem'))),_0x431e00;}['_getSuggestionBlocks'](_0x312073){const _0x104939=this['editor']['plugins']['get']('LegacyListUtils');let _0xf72d13=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x312073)['map'](_0x1b58ac=>{const _0x430472=this['editor']['model']['createPositionAt'](_0x1b58ac,0x0);return[..._0x104939['getSiblingNodes'](_0x430472,'backward'),..._0x104939['getSiblingNodes'](_0x430472,'forward')];})['flat']();return _0xf72d13=[...new Set(_0xf72d13)],_0xf72d13;}['_getTranslationKeyForListStyle'](_0xd4d415){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xd4d415)||'default')['toUpperCase']()+'_LIST_'+_0xd4d415['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x4c30c7{['afterInit'](){const _0xc0d398=this['editor'];if(!_0xc0d398['plugins']['has']('MediaEmbedEditing'))return;const _0x4685c4=_0xc0d398['plugins']['get']('TrackChangesEditing'),_0xbfef24=_0xc0d398['locale'];_0x4685c4['enableCommand']('mediaEmbed'),_0x4685c4['descriptionFactory']['registerElementLabel']('media',_0x8715c1=>o(_0xbfef24,'ELEMENT_MEDIA',_0x8715c1));}}class bt extends _0x4c30c7{['afterInit'](){const _0x18aa6e=this['editor'];_0x18aa6e['plugins']['has']('MentionEditing')&&_0x18aa6e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x4c30c7{['afterInit'](){const _0x3a83cf=this['editor'];if(!_0x3a83cf['plugins']['has']('MergeFieldsEditing'))return;const _0x4c6905=_0x3a83cf['plugins']['get']('TrackChangesEditing'),_0x1a3cf6=_0x3a83cf['locale'];_0x4c6905['enableCommand']('insertMergeField'),_0x4c6905['enableCommand']('insertMergeFieldBlock'),_0x4c6905['enableCommand']('insertMergeFieldImage'),_0x4c6905['descriptionFactory']['registerElementLabel']('mergeField',_0x148698=>o(_0x1a3cf6,'ELEMENT_MERGE_FIELD',_0x148698)),_0x4c6905['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x25ee9b=>o(_0x1a3cf6,'ELEMENT_MERGE_FIELD',_0x25ee9b)),_0x4c6905['descriptionFactory']['registerDescriptionCallback'](_0x43011f=>{if('insertion'!=_0x43011f['type']&&'deletion'!=_0x43011f['type'])return;const _0x30f514=_0x43011f['getContainedElement']();if(null==_0x30f514)return;const _0x2055a1=_0x3a83cf['plugins']['get']('MergeFieldsEditing');let _0x207245;switch(_0x2055a1['getMergeFieldType'](_0x30f514)){case null:return;case'image':{const _0x349753=_0x2055a1['unwrapAffixes'](_0x30f514['getAttribute']('src'));_0x207245=_0x2055a1['getLabel'](_0x349753)||_0x349753;break;}default:{const _0x1bccd0=_0x30f514['getAttribute']('id');_0x207245=_0x2055a1['getLabel'](_0x1bccd0)||_0x1bccd0;break;}}return'insertion'==_0x43011f['type']?{'type':'insertion','content':o(_0x1a3cf6,'*Insert:*\x20%0','\x22'+_0x207245+'\x22\x20'+o(_0x1a3cf6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1a3cf6,'*Remove:*\x20%0','\x22'+_0x207245+'\x22\x20'+o(_0x1a3cf6,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4c30c7{['afterInit'](){const _0x5e2a82=this['editor'],_0x1f36d7=_0x5e2a82['plugins']['get']('TrackChangesEditing');_0x5e2a82['plugins']['has']('MultiLevelList')&&(_0x1f36d7['enableDefaultAttributesIntegration']('multiLevelList'),_0x1f36d7['descriptionFactory']['registerDescriptionCallback'](_0x9488d5=>this['handleDescriptions'](_0x9488d5)));}['handleDescriptions'](_0x29325f){const _0x1954fd=this['editor']['locale'],{data:_0x285c0d}=_0x29325f,_0x180c75={'type':'format','content':''};if(_0x285c0d&&'listMarkerStyle'==_0x285c0d['key']){if(!_0x285c0d['oldValue'])return{'type':'format','content':o(_0x1954fd,'*Set\x20format:*\x20%0',o(_0x1954fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x285c0d['newValue']+')'};if(!_0x285c0d['newValue']){let _0x6b7d0a=_0x29325f['head'];for(;_0x6b7d0a;){if(_0x6b7d0a['data']&&'listType'==_0x6b7d0a['data']['key']&&_0x6b7d0a['data']['newValue'])return _0x180c75;_0x6b7d0a=_0x6b7d0a['next'];}return{'type':'format','content':o(_0x1954fd,'*Remove\x20format:*\x20%0',o(_0x1954fd,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x285c0d['oldValue']+')'};}}}}class St extends _0x4c30c7{['afterInit'](){const _0x4f271d=this['editor'];if(!_0x4f271d['plugins']['has']('PageBreakEditing'))return;_0x4f271d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2f2144=_0x4f271d['plugins']['get']('TrackChangesEditing'),_0x102c8d=_0x4f271d['locale'];_0x2f2144['descriptionFactory']['registerElementLabel']('pageBreak',_0xcecf4e=>o(_0x102c8d,'ELEMENT_PAGE_BREAK',_0xcecf4e));}}class It extends _0x4c30c7{['afterInit'](){const _0x4fb09=this['editor'];if(!_0x4fb09['plugins']['has']('Paragraph'))return;const _0x2d01a0=_0x4fb09['locale'],_0x377e0=_0x4fb09['plugins']['get']('TrackChangesEditing');_0x377e0['descriptionFactory']['registerElementLabel']('paragraph',_0xa92a9d=>o(_0x2d01a0,'ELEMENT_PARAGRAPH',_0xa92a9d)),_0x377e0['enableDefaultAttributesIntegration']('paragraph'),_0x377e0['enableCommand']('insertParagraph');const _0x8fbc4b=_0x377e0['descriptionFactory'];_0x8fbc4b['registerDescriptionCallback'](_0x2d6019=>{if('insertion'!==_0x2d6019['type'])return;const {start:_0x189980,end:_0x2ff05c}=_0x2d6019['getFirstRange']();if(!_0x189980['isTouching'](_0x2ff05c)||!_0x189980['nodeAfter'])return;const _0x2c2a44=_0x4fb09['model']['schema'],_0x36ce33=_0x189980['nodeAfter'];return _0x2c2a44['isBlock'](_0x36ce33)&&!_0x2c2a44['isLimit'](_0x36ce33)&&_0x2c2a44['checkChild'](_0x36ce33,'$text')?{'type':'insertion','content':o(_0x2d01a0,'*Insert:*\x20%0',_0x8fbc4b['getItemLabel'](_0x36ce33,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55ffb5=this['editor'],_0x5e6b72=_0x55ffb5['locale'];_0x55ffb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d5132=>{if('formatBlock'!=_0x1d5132['type'])return;const {data:_0x5bc272}=_0x1d5132;return _0x5bc272&&'paragraph'==_0x5bc272['commandName']?{'type':'format','content':o(_0x5e6b72,'*Change\x20to:*\x20%0',o(_0x5e6b72,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x4c30c7{['afterInit'](){const _0x5d8f3d=this['editor'];_0x5d8f3d['commands']['get']('replaceSource')&&_0x5d8f3d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x4c30c7{['afterInit'](){const _0x3c4da1=this['editor'];if(!_0x3c4da1['plugins']['has']('RemoveFormatEditing'))return;_0x3c4da1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fadf4=this['editor'];_0x2fadf4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x326bde=>{if('formatBlock'!=_0x326bde['type']&&'formatInline'!=_0x326bde['type'])return;const {data:_0x5414be}=_0x326bde;return _0x5414be&&'removeFormat'==_0x5414be['commandName']?{'type':'format','content':o(_0x2fadf4['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x4c30c7{['afterInit'](){const _0x2d600c=this['editor'];if(!_0x2d600c['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4e32b0=_0x2d600c['plugins']['get']('TrackChangesEditing');_0x4e32b0['enableCommand']('goToPreviousRestrictedEditingException'),_0x4e32b0['enableCommand']('goToNextRestrictedEditingException');const _0x1d0807=_0x2d600c['plugins']['get']('RestrictedEditingModeEditing');_0x1d0807['enableCommand']('trackChanges'),_0x1d0807['enableCommand']('acceptSuggestion'),_0x1d0807['enableCommand']('discardSuggestion'),_0x1d0807['enableCommand']('acceptAllSuggestions'),_0x1d0807['enableCommand']('discardAllSuggestions'),_0x1d0807['enableCommand']('acceptSelectedSuggestions'),_0x1d0807['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x4c30c7{['afterInit'](){const _0x372004=this['editor'];if(!_0x372004['plugins']['has']('ShiftEnter'))return;const _0x1f0e9b=_0x372004['plugins']['get']('TrackChangesEditing');_0x1f0e9b['enableCommand']('shiftEnter'),_0x1f0e9b['descriptionFactory']['registerElementLabel']('softBreak',_0x22c5d6=>o(_0x372004['locale'],'ELEMENT_LINE_BREAK',_0x22c5d6));}}function an(_0x19c1fd,_0x310a61,_0x3f7eda){const _0x2c563e=[];for(const _0x3fc724 of _0x310a61['getItems']())_0x3fc724['hasAttribute'](_0x19c1fd)&&_0x2c563e['push'](_0x3f7eda['createRangeOn'](_0x3fc724));return _0x2c563e;}class $t extends _0x4c30c7{['afterInit'](){const _0x562754=this['editor'],_0x438def=_0x562754['plugins']['get']('TrackChangesEditing');_0x562754['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x438def['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x48fd1b=this['editor'],_0x215a0b=_0x48fd1b['model'],_0x10b5e9=_0x48fd1b['locale'],_0x84d25a=_0x48fd1b['plugins']['get']('TrackChangesEditing'),_0x21d1e4='restrictedEditingException',_0x18c1bd=_0x48fd1b['commands']['get'](_0x21d1e4);_0x84d25a['enableCommand'](_0x21d1e4,(_0x4b3cfc,_0x1a0178={})=>{const _0x5003e2=_0x215a0b['document']['selection'];if(_0x5003e2['isCollapsed'])return void _0x4b3cfc(_0x1a0178);const _0x2e9fd7=void 0x0!==_0x1a0178['forceValue']?_0x1a0178['forceValue']:!_0x18c1bd['value'];_0x215a0b['change'](()=>{const _0x5a8e05=Array['from'](_0x5003e2['getRanges']());for(const _0xecd201 of _0x5a8e05){const _0x56426e=_0x2e9fd7?[_0xecd201]:an(_0x21d1e4,_0xecd201,_0x215a0b);for(const _0x2f93a7 of _0x56426e)_0x84d25a['markInlineFormat'](_0x2f93a7,{'commandName':_0x21d1e4,'commandParams':[{'forceValue':_0x2e9fd7}]});}});}),_0x84d25a['descriptionFactory']['registerDescriptionCallback'](_0x3ee823=>{if('formatBlock'!=_0x3ee823['type']&&'formatInline'!=_0x3ee823['type'])return;const {data:_0x5e35f4}=_0x3ee823;return _0x5e35f4&&_0x5e35f4['commandName']==_0x21d1e4?_0x5e35f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10b5e9,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x10b5e9,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x204f19=this['editor'],_0x41075f=_0x204f19['locale'],_0xbfafd=_0x204f19['plugins']['get']('TrackChangesEditing'),_0x242647='restrictedEditingExceptionBlock',_0x22e30a=this['editor']['commands']['get'](_0x242647);_0xbfafd['enableCommand'](_0x242647,(_0x45938f,_0x105222={})=>{const _0x1949d9=this['editor']['model']['document']['selection'],_0x43b06a=_0x105222&&void 0x0!==_0x105222['forceValue']?_0x105222['forceValue']:!_0x22e30a['value'];let _0x47b99e=[];if(_0x43b06a){const _0x4b3e94=Array['from'](_0x1949d9['getSelectedBlocks']())['filter'](_0x1f7b4a=>function(_0x1bc662){return!!_0x1bc662['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1f7b4a)||function(_0xe863bd,_0xbfa3ed){const _0x1899a0=_0xbfa3ed['createContext'](_0xe863bd['parent']);if(!_0xbfa3ed['checkChild'](_0x1899a0,'restrictedEditingException'))return!0x1;if(!_0xbfa3ed['checkChild'](_0x1899a0['push']('restrictedEditingException'),_0xe863bd))return!0x1;return!0x0;}(_0x1f7b4a,this['editor']['model']['schema']));_0x47b99e=to(_0x4b3e94,_0x204f19['model']);}else{const _0x3a0f32=Array['from'](_0x1949d9['getSelectedBlocks']())['map'](_0x100bea=>function(_0x4a4347){let _0x173983=_0x4a4347;for(;_0x173983['parent'];){if('restrictedEditingException'==_0x173983['parent']['name'])return _0x173983;_0x173983=_0x173983['parent'];}return null;}(_0x100bea))['filter'](_0x43b604=>!!_0x43b604);_0x47b99e=to(_0x3a0f32,_0x204f19['model']);}_0x204f19['model']['change'](()=>{for(const _0x3b037d of _0x47b99e)_0xbfafd['markBlockFormat'](_0x3b037d,{'commandName':_0x242647,'commandParams':[{'forceValue':_0x43b06a}]});});}),_0xbfafd['descriptionFactory']['registerDescriptionCallback'](_0xf5543a=>{const {data:_0x3e9075}=_0xf5543a;if(_0x3e9075&&_0x3e9075['commandName']==_0x242647)return _0x3e9075['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41075f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41075f,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x4c30c7{['afterInit'](){const _0x51097d=this['editor'];if(!_0x51097d['plugins']['has']('Style')||!_0x51097d['plugins']['has']('DataSchema'))return;const _0x33debb=_0x51097d['plugins']['get']('TrackChangesEditing'),_0x5431fe=_0x51097d['locale'],_0x2dc5cc=_0x51097d['config']['get']('style')||{},_0x9c5a6a=_0x51097d['plugins']['get']('GeneralHtmlSupport'),_0x55e673=_0x51097d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51097d['plugins']['get']('DataSchema'),_0x2dc5cc['definitions']);_0x33debb['enableDefaultAttributesIntegration']('style');const _0x4e0a87=new Set();for(const _0x416088 of _0x55e673['block']){const _0x5d3158=_0x9c5a6a['getGhsAttributeNameForElement'](_0x416088['element']);_0x4e0a87['add'](_0x5d3158);}const _0x41a89b=new Set();for(const _0x44ca0f of _0x55e673['inline']){const _0x127775=_0x9c5a6a['getGhsAttributeNameForElement'](_0x44ca0f['element']);_0x41a89b['add'](_0x127775);for(const _0x558f6d of _0x44ca0f['ghsAttributes'])_0x41a89b['add'](_0x558f6d);}for(const _0x42a09b of _0x4e0a87)_0x33debb['descriptionFactory']['registerAttributeLabel'](_0x42a09b,o(_0x5431fe,'FORMAT_STYLE'));for(const _0x198015 of _0x41a89b)_0x33debb['descriptionFactory']['registerAttributeLabel'](_0x198015,o(_0x5431fe,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25afb6=this['editor'],_0x18d833=_0x25afb6['locale'];_0x25afb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cf563=>{if('formatBlock'!=_0x3cf563['type']&&'formatInline'!=_0x3cf563['type'])return;const {data:_0x32ed02}=_0x3cf563;return _0x32ed02&&'style'===_0x32ed02['commandName']?_0x32ed02['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x18d833,'*Set\x20format:*\x20%0',_0x32ed02['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x18d833,'*Remove\x20format:*\x20%0',_0x32ed02['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x4c30c7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c651e){super(_0x5c651e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3dab0c=this['editor'],_0x17aaee=_0x3dab0c['model']['document']['selection'];if(!_0x3dab0c['plugins']['has']('TableEditing'))return;const _0x330635=_0x3dab0c['locale'],_0x144694=_0x3dab0c['plugins']['get']('TrackChangesEditing'),_0x1dfd2d=_0x3dab0c['plugins']['get']('TableUtils');_0x144694['descriptionFactory']['registerElementLabel']('table',_0x1185df=>o(_0x330635,'ELEMENT_TABLE',_0x1185df)),this['_setupColumnsRowsFixing'](),_0x144694['enableCommand']('insertTable'),_0x144694['enableCommand']('selectTableRow'),_0x144694['enableCommand']('selectTableColumn');for(const _0x1b8277 of['insertTableRowAbove','insertTableRowBelow']){const _0x373b86=_0x3dab0c['commands']['get'](_0x1b8277);_0x144694['enableCommand'](_0x1b8277,_0x426559=>{_0x3dab0c['model']['change'](_0x4b0d94=>{_0x426559();const _0x32d2fb='above'===_0x373b86['order'],_0x558ce0=_0x1dfd2d['getSelectionAffectedTableCells'](_0x17aaee),_0x4e96c5=_0x1dfd2d['getRowIndexes'](_0x558ce0),_0x2a0839=_0x32d2fb?_0x4e96c5['first']-0x1:_0x4e96c5['last']+0x1,_0x58ae0d=_0x558ce0[0x0]['findAncestor']('table'),_0x2733b8=_0x1dfd2d['createTableWalker'](_0x58ae0d,{'startRow':_0x2a0839,'endRow':_0x2a0839}),_0xcd8fe7=Array['from'](_0x2733b8)['map'](_0x31e323=>_0x4b0d94['createRangeOn'](_0x31e323['cell']));_0x144694['markMultiRangeInsertion'](_0xcd8fe7,'tableRow');});});}for(const _0x2cb4bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x2803b2=_0x3dab0c['commands']['get'](_0x2cb4bd);_0x144694['enableCommand'](_0x2cb4bd,_0x14d35d=>{_0x3dab0c['model']['change'](_0x1a6abb=>{_0x14d35d();const _0x2a8a20='left'===_0x2803b2['order'],_0x1caf66=_0x1dfd2d['getSelectionAffectedTableCells'](_0x17aaee),_0xceb1ff=_0x1dfd2d['getColumnIndexes'](_0x1caf66),_0x11b94f=_0x2a8a20?_0xceb1ff['first']-0x1:_0xceb1ff['last']+0x1,_0x55e92b=_0x1caf66[0x0]['findAncestor']('table'),_0x2b5be5=_0x1dfd2d['createTableWalker'](_0x55e92b,{'startRow':0x0,'column':_0x11b94f,'includeAllSlots':!0x1}),_0x15857b=Array['from'](_0x2b5be5)['map'](_0x19eca3=>_0x1a6abb['createRangeOn'](_0x19eca3['cell']));_0x144694['markMultiRangeInsertion'](_0x15857b,'tableColumn');});});}for(const _0x2ce69e of['removeTableRow','removeTableColumn']){const _0x1dae72=_0x2ce69e['substr'](0xb),_0x7ff24e=_0x1dae72['toLowerCase'](),_0x559ea6=_0x7ff24e['substr'](0x0,0x3)+'span',_0x48859b='table'+_0x1dae72,_0xdcffbf='min'+_0x1dae72,_0x2c7d0b='max'+_0x1dae72;_0x144694['enableCommand'](_0x2ce69e,()=>{_0x3dab0c['model']['change'](_0x4fd430=>{const _0xb7b11b=_0x1dfd2d['getSelectionAffectedTableCells'](_0x17aaee),_0x5f49e0=_0xb7b11b[0x0]['findAncestor']('table');let _0x5ee6e7;if('removeTableRow'==_0x2ce69e){const _0x4e38e4=_0x1dfd2d['getRowIndexes'](_0xb7b11b);_0x5ee6e7={'startRow':_0x4e38e4['first'],'endRow':_0x4e38e4['last'],'includeAllSlots':!0x0};}else{const _0x32e1c3=_0x1dfd2d['getColumnIndexes'](_0xb7b11b);_0x5ee6e7={'startColumn':_0x32e1c3['first'],'endColumn':_0x32e1c3['last'],'includeAllSlots':!0x0};}const _0x2e2af6=_0x1dfd2d['createTableWalker'](_0x5f49e0,_0x5ee6e7),_0x15cab7=Array['from'](_0x2e2af6)['map'](({cell:_0x210d3d})=>_0x210d3d),_0x3a655b=_e(_0x15cab7['filter'](_0x2d94a6=>_0x2d94a6['hasAttribute'](_0x559ea6))),_0x5f5372=_e(_0x15cab7['filter'](_0x5c7fd8=>!_0x5c7fd8['hasAttribute'](_0x559ea6)))['map'](_0x4a6a8b=>_0x4fd430['createRangeOn'](_0x4a6a8b)),_0x1ff2a8=_0x144694['markMultiRangeDeletion'](_0x5f5372,_0x48859b);if(_0x1ff2a8&&('tableRow'==_0x1ff2a8['subType']||'tableColumn'==_0x1ff2a8['subType'])){const _0x57b82f=this['_getSuggestionCoords'](_0x1ff2a8);for(const _0x566237 of _0x3a655b){const _0xedf44a=_0x4fd430['createRangeOn'](_0x566237),_0x48298f=_0x1dfd2d['getCellLocation'](_0x566237),_0x52248d=_0x566237['getAttribute'](_0x559ea6)-0x1,_0x473f24=_0x57b82f[_0xdcffbf],_0x22bdd3=_0x57b82f[_0x2c7d0b];_0x473f24<=_0x48298f[_0x7ff24e]&&_0x48298f[_0x7ff24e]+_0x52248d<=_0x22bdd3&&_0x1ff2a8['addRange'](_0xedf44a);}}});});}function _0x36ba41(_0x16920c){const _0x3e3fef=Array['from'](_0x17aaee['getRanges']())['map'](_0x2475b6=>_0x2b0079['fromRange'](_0x2475b6));_0x3dab0c['model']['change'](_0x219a00=>{const _0x4373ad=_0x219a00['batch'];_0x16920c=_0x16920c['filter'](_0x5c0fe1=>'$graveyard'!=_0x5c0fe1['root']['rootName']),_0x219a00['setSelection'](_0x16920c),_0x3dab0c['commands']['get']('removeTableRow')['refresh'](),_0x3dab0c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3dab0c['model']['enqueueChange'](()=>{_0x3dab0c['model']['enqueueChange'](_0x4373ad,_0x12f82b=>{const _0x28ca48=_0x3e3fef['filter'](_0xf4a5e9=>'$graveyard'!=_0xf4a5e9['root']['rootName']);_0x28ca48['length']>0x0&&_0x12f82b['setSelection'](_0x28ca48);for(const _0x56affc of _0x3e3fef)_0x56affc['detach']();});});});}function _0x5c8e12(_0x2ff7f3){_0x3dab0c['model']['change'](_0x4be48b=>{const _0x26c16f=Array['from'](_0x17aaee['getRanges']())['map'](_0x684e3b=>_0x2b0079['fromRange'](_0x684e3b)),_0x338c84=[];for(const _0x3612fd of _0x2ff7f3)for(const _0x1a97c5 of _0x3612fd['getItems']({'shallow':!0x0}))_0x338c84['push'](_0x1a97c5);for(const _0x1d3afd of _0x338c84)'$graveyard'!=_0x1d3afd['root']['rootName']&&(_0x4be48b['setSelection'](_0x4be48b['createPositionAt'](_0x1d3afd,0x0)),_0x3dab0c['commands']['get']('removeTableColumn')['refresh'](),_0x3dab0c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b5953=_0x26c16f['filter'](_0xb6c594=>'$graveyard'!=_0xb6c594['root']['rootName']);_0x4b5953['length']>0x0&&_0x4be48b['setSelection'](_0x4b5953);for(const _0x4c2ed5 of _0x26c16f)_0x4c2ed5['detach']();});}function _0xd85221(_0xe20abd,_0x4724ba){return _0x4724ba['every'](_0x17b1cf=>_0xe20abd['some'](_0x50ed7d=>_0x50ed7d['end']['isEqual'](_0x17b1cf['start'])||_0x17b1cf['end']['isEqual'](_0x50ed7d['start'])));}function _0x207a5b(_0x4457b9,_0x547b4f){return!_0x4457b9['some'](_0x2b27cb=>_0x547b4f['some'](_0x5a5e3c=>_0x2b27cb['isIntersecting'](_0x5a5e3c)))&&_0x4457b9['some'](_0x3c2223=>_0x547b4f['some'](_0x814570=>_0x3c2223['end']['isTouching'](_0x814570['start'])));}_0x144694['descriptionFactory']['registerDescriptionCallback'](_0xb35c4e=>{if('insertion'!=_0xb35c4e['type']&&'deletion'!=_0xb35c4e['type'])return;const _0x94fa0b=_0xb35c4e['getContainedElement']();if(null!=_0x94fa0b&&_0x94fa0b['is']('element','table')){if('insertion'==_0xb35c4e['type']){const _0x4c6bb1=_0xb35c4e['getItems']()['filter'](_0x551462=>_0x551462['is']('$textProxy'))['map'](_0x266bb6=>_0x266bb6['data']);if(_0x4c6bb1['length'])return{'type':'insertion','content':o(_0x330635,'*Insert:*\x20%0',o(_0x330635,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4c6bb1['join']('\x20')+'\x22'))};}if('deletion'==_0xb35c4e['type']){const _0x3f7ad4=_0xb35c4e['getItems']()['filter'](_0x3c07c7=>_0x3c07c7['is']('$textProxy'))['map'](_0x1e01dc=>_0x1e01dc['data']);if(_0x3f7ad4['length'])return{'type':'deletion','content':o(_0x330635,'*Remove:*\x20%0',o(_0x330635,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3f7ad4['join']('\x20')+'\x22'))};}}}),_0x144694['descriptionFactory']['registerDescriptionCallback'](_0x4d0d66=>{if('tableRow'==_0x4d0d66['subType']){const _0x3a7481=_0x4d0d66['getItems']()['filter'](_0x460df1=>_0x460df1['is']('$textProxy'))['map'](_0x3c6661=>_0x3c6661['data']),_0x35133a=this['_getSuggestionCoords'](_0x4d0d66),_0x19ba79=_0x35133a['maxRow']-_0x35133a['minRow']+0x1;if('insertion'==_0x4d0d66['type'])return _0x3a7481['length']?{'type':'insertion','content':o(_0x330635,'*Insert:*\x20%0',o(_0x330635,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19ba79,'\x22'+_0x3a7481['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x330635,'*Insert:*\x20%0',o(_0x330635,'ELEMENT_TABLE_ROW',_0x19ba79))};if('deletion'==_0x4d0d66['type'])return _0x3a7481['length']?{'type':'deletion','content':o(_0x330635,'*Remove:*\x20%0',o(_0x330635,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x19ba79,'\x22'+_0x3a7481['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x330635,'*Remove:*\x20%0',o(_0x330635,'ELEMENT_TABLE_ROW',_0x19ba79))};}if('tableColumn'==_0x4d0d66['subType']){const _0x20c83a=_0x4d0d66['getItems']()['filter'](_0x1bcaf7=>_0x1bcaf7['is']('$textProxy'))['map'](_0xbf02ef=>_0xbf02ef['data']),_0x42c65c=this['_getSuggestionCoords'](_0x4d0d66),_0x58e30e=_0x42c65c['maxColumn']-_0x42c65c['minColumn']+0x1;if('insertion'==_0x4d0d66['type'])return _0x20c83a['length']?{'type':'insertion','content':o(_0x330635,'*Insert:*\x20%0',o(_0x330635,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58e30e,'\x22'+_0x20c83a['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x330635,'*Insert:*\x20%0',o(_0x330635,'ELEMENT_TABLE_COLUMN',_0x58e30e))};if('deletion'==_0x4d0d66['type'])return _0x20c83a['length']?{'type':'deletion','content':o(_0x330635,'*Remove:*\x20%0',o(_0x330635,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x58e30e,'\x22'+_0x20c83a['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x330635,'*Remove:*\x20%0',o(_0x330635,'ELEMENT_TABLE_COLUMN',_0x58e30e))};}}),_0x144694['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x36ba41),_0x144694['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x36ba41),_0x144694['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5c8e12),_0x144694['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5c8e12),_0x144694['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xd85221),_0x144694['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xd85221),_0x144694['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x207a5b),_0x144694['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x207a5b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x17e828=this['editor'],_0x39213b=_0x17e828['model']['document']['selection'];return(_0x1987a9,_0x46d5f4)=>{_0x17e828['model']['change'](_0x1ac32d=>{const {commandName:_0x445070,commandParams:_0x342a7f}=_0x46d5f4;let _0x3bbfb2=_0x1987a9[0x0]['end']['nodeBefore'];_0x342a7f&&_0x342a7f[0x0]&&!0x1===_0x342a7f[0x0]['forceValue']&&(_0x3bbfb2=_0x1987a9[0x0]['start']['nodeAfter']);const _0x432525=_0x1ac32d['createRangeIn'](_0x3bbfb2);if('$graveyard'==_0x432525['root']['rootName'])return;const _0x305281=Array['from'](_0x39213b['getRanges']())['map'](_0x39e8a6=>_0x2b0079['fromRange'](_0x39e8a6));_0x1ac32d['setSelection'](_0x432525),_0x17e828['commands']['get'](_0x445070)['refresh'](),_0x342a7f['push']({'forceDefaultExecution':!0x0}),_0x17e828['execute'](_0x445070,..._0x342a7f);const _0x56beba=_0x305281['filter'](_0x2e10d7=>'$graveyard'!=_0x2e10d7['root']['rootName']);_0x56beba['length']>0x0&&_0x1ac32d['setSelection'](_0x56beba);for(const _0x3906d4 of _0x305281)_0x3906d4['detach']();});};}['_getCoordsForCells'](_0x32cf99){const _0x1b9fc6=this['editor']['plugins']['get']('TableUtils');let _0x4bc83a=Number['MAX_SAFE_INTEGER'],_0x4e75e2=Number['MIN_SAFE_INTEGER'],_0x2582e2=Number['MAX_SAFE_INTEGER'],_0x5573e6=Number['MIN_SAFE_INTEGER'];for(const _0x40af59 of _0x32cf99){if('$graveyard'==_0x40af59['root']['rootName'])continue;const {row:_0x8d61af,column:_0x445fb0}=_0x1b9fc6['getCellLocation'](_0x40af59),_0x33504c=_0x40af59['hasAttribute']('rowspan')?_0x40af59['getAttribute']('rowspan')-0x1:0x0,_0x521121=_0x40af59['hasAttribute']('colspan')?_0x40af59['getAttribute']('colspan')-0x1:0x0;_0x4bc83a=_0x8d61af<_0x4bc83a?_0x8d61af:_0x4bc83a,_0x4e75e2=_0x8d61af+_0x33504c>_0x4e75e2?_0x8d61af+_0x33504c:_0x4e75e2,_0x2582e2=_0x445fb0<_0x2582e2?_0x445fb0:_0x2582e2,_0x5573e6=_0x445fb0+_0x521121>_0x5573e6?_0x445fb0+_0x521121:_0x5573e6;}return{'minRow':_0x4bc83a,'maxRow':_0x4e75e2,'minColumn':_0x2582e2,'maxColumn':_0x5573e6};}['_setupColumnsRowsFixing'](){const _0x192ddd=this['editor'],_0x5962cf=_0x192ddd['plugins']['get']('TrackChangesEditing'),_0x53b672=_0x192ddd['plugins']['get']('TableUtils');_0x192ddd['model']['document']['on']('change:data',()=>{const _0x367a30=Array['from'](_0x192ddd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x287c7b,data:_0xc8d1b9}of _0x367a30){const {group:_0x4ea2fd,id:_0x339c58,subType:_0x5cefd9}=_0x5962cf['_splitMarkerName'](_0x287c7b);if('suggestion'!=_0x4ea2fd)continue;if(null!=_0xc8d1b9['oldRange'])continue;const _0x262431=_0x5962cf['getSuggestion'](_0x339c58);this['_tablePostFixingSubtypes']['includes'](_0x5cefd9)&&this['_tableSuggestions']['add'](_0x262431);}},{'priority':'low'});const _0x40ff6f=(_0x2cbae3,_0x1c2df9)=>{let _0x107b6e=!0x1;const _0x73dac0=_0x1c2df9['createRangeOn'](_0x2cbae3),_0x1ddf7d=_0x2cbae3['findAncestor']('table'),_0x4a326c=_0x53b672['getCellLocation'](_0x2cbae3);for(const _0xe2da4d of this['_tableSuggestions']){const _0x49e9da=_0xe2da4d['subType'],_0x5603f4=_0x49e9da['startsWith']('tablePaste'),_0x164248=_0x49e9da['substr'](_0x5603f4?0xa:0x5),_0xd72556=_0x164248['toLowerCase'](),_0x1ef0c0=_0xd72556['substr'](0x0,0x3)+'span',_0x1c606e='min'+_0x164248,_0x21b021='max'+_0x164248;if(!_0xe2da4d['isInContent'])continue;if(_0x1ddf7d!=_0xe2da4d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xe2da4d['isIntersectingWithRange'](_0x73dac0))continue;const _0x6d6916=_0x2cbae3['hasAttribute'](_0x1ef0c0)?_0x2cbae3['getAttribute'](_0x1ef0c0)-0x1:0x0,_0x3d66ca=this['_getSuggestionCoords'](_0xe2da4d),_0x545e70=_0x3d66ca[_0x1c606e],_0x4a8270=_0x3d66ca[_0x21b021];_0x545e70<=_0x4a326c[_0xd72556]&&_0x4a326c[_0xd72556]+_0x6d6916<=_0x4a8270&&(_0xe2da4d['addRange'](_0x73dac0),_0x107b6e=!0x0);}return _0x107b6e;};_0x192ddd['model']['document']['registerPostFixer'](_0x5ad65b=>{let _0x265ba5=!0x1;for(const _0x179221 of _0x192ddd['model']['document']['differ']['getChanges']())if('insert'==_0x179221['type']){if('tableRow'==_0x179221['name']){for(const _0x2aab42 of _0x179221['position']['nodeAfter']['getChildren']())_0x265ba5=_0x265ba5||_0x40ff6f(_0x2aab42,_0x5ad65b);}else'tableCell'==_0x179221['name']&&(_0x265ba5=_0x265ba5||_0x40ff6f(_0x179221['position']['nodeAfter'],_0x5ad65b));}return _0x265ba5;});}['_getSuggestionCoords'](_0x9df7a7){return this['_getCoordsForCells'](_0x9df7a7['getRanges']()['map'](_0x5e22b0=>_0x5e22b0['start']['nodeAfter']));}}function _e(_0x1508e6){return Array['from'](new Set(_0x1508e6)['values']());}class Bt extends _0x4c30c7{static get['requires'](){return[Dt];}['afterInit'](){const _0xdbc58a=this['editor'],_0x153d73=_0xdbc58a['model']['document']['selection'],_0x2d579a=_0xdbc58a['locale'];if(!_0xdbc58a['plugins']['has']('TableEditing'))return;const _0x1302cf=_0xdbc58a['plugins']['get']('TrackChangesEditing'),_0x421aa2=_0xdbc58a['plugins']['get']('TableUtils'),_0x277a74=_0xdbc58a['plugins']['get'](Dt);_0x277a74['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1302cf['enableCommand']('mergeTableCells',()=>{const _0x555f03=_0x421aa2['getSelectionAffectedTableCells'](_0xdbc58a['model']['document']['selection']);_0xdbc58a['model']['change'](()=>{_0x1302cf['markMultiRangeBlockFormat'](_0x555f03,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xdbc58a['commands']['get']('mergeTableCells')['on']('execute',(_0x42e6e2,_0x34397d)=>{_0xdbc58a['commands']['get']('trackChanges')['value']&&(_0x34397d['length']>0x0&&_0x34397d[_0x34397d['length']-0x1]&&_0x34397d[_0x34397d['length']-0x1]['forceDefaultExecution']||_0x1302cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x42e6e2['stop']());},{'priority':'highest'});for(const _0x340639 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ab789=_0xdbc58a['commands']['get'](_0x340639);_0x1302cf['enableCommand'](_0x340639,()=>{const _0x404944=_0xdbc58a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x59e938=>_0x59e938['is']('element','tableCell')),_0x33d1a0=_0x1ab789['value'];_0xdbc58a['model']['change'](()=>{_0x1302cf['markMultiRangeBlockFormat']([_0x404944,_0x33d1a0],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x85a241 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x152433=_0xdbc58a['commands']['get'](_0x85a241);_0x1302cf['enableCommand'](_0x85a241,()=>{const _0x5b1d44=_0x421aa2['getSelectionAffectedTableCells'](_0xdbc58a['model']['document']['selection'])[0x0],_0x414189=_0x5b1d44['findAncestor']('table'),{column:_0x421260,row:_0x4d54ad}=_0x421aa2['getCellLocation'](_0x5b1d44);let _0x1d71f2=[];if('horizontally'==_0x152433['direction']){const _0x1ef6ed=_0x421aa2['createTableWalker'](_0x414189,{'startRow':_0x4d54ad,'endRow':_0x4d54ad,'includeAllSlots':!0x0});_0x1d71f2=Array['from'](_0x1ef6ed)['map'](_0xbdeccb=>_0xbdeccb['cell']);}else{const _0x2c8971=_0x421aa2['createTableWalker'](_0x414189,{'column':_0x421260,'includeAllSlots':!0x0});_0x1d71f2=Array['from'](_0x2c8971)['map'](_0x5e2aca=>_0x5e2aca['cell']);}_0xdbc58a['model']['change'](_0x43c6ff=>{_0x1302cf['markBlockFormat'](_0x43c6ff['createRangeOn'](_0x5b1d44),{'commandName':_0x85a241,'commandParams':[]},_0x1d71f2,_0x85a241);});});}_0x1302cf['descriptionFactory']['registerDescriptionCallback'](_0x3dce09=>{if('formatBlock'!=_0x3dce09['type']&&'formatInline'!=_0x3dce09['type'])return;const {data:_0x444ecc}=_0x3dce09;return _0x444ecc&&'mergeTableCells'==_0x444ecc['commandName']?{'type':'format','content':o(_0x2d579a,'*Merge\x20cells*')}:void 0x0;}),_0x1302cf['descriptionFactory']['registerDescriptionCallback'](_0x28cde8=>{if('formatBlock'!=_0x28cde8['type']&&'formatInline'!=_0x28cde8['type'])return;const {data:_0xa5adec}=_0x28cde8;return _0xa5adec?'splitTableCellVertically'==_0xa5adec['commandName']?{'type':'format','content':o(_0x2d579a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xa5adec['commandName']?{'type':'format','content':o(_0x2d579a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5b8ecb=_0x277a74['_acceptFormatSuggestionCallbackFactory']();for(const _0x1fe53b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1302cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fe53b,'accept',_0x5b8ecb);for(const _0x124f33 of['splitTableCellVertically','splitTableCellHorizontally'])_0x1302cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x124f33,'accept',_0x5b8ecb);_0x1302cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x58c710=>{_0xdbc58a['model']['change'](_0x7e07ea=>{const _0x430882=Array['from'](_0x153d73['getRanges']())['map'](_0x196ebd=>_0x2b0079['fromRange'](_0x196ebd));_0x7e07ea['setSelection'](_0x58c710),_0xdbc58a['commands']['get']('mergeTableCells')['refresh'](),_0xdbc58a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3d7b57=_0x430882['filter'](_0x247e71=>'$graveyard'!=_0x247e71['root']['rootName']);_0x3d7b57['length']>0x0&&_0x7e07ea['setSelection'](_0x3d7b57);for(const _0x3cf773 of _0x430882)_0x3cf773['detach']();});});for(const _0x54cd1f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x257aed=_0xdbc58a['commands']['get'](_0x54cd1f);_0x257aed['on']('set:isEnabled',(_0x5bba6b,_0xb98805,_0xff9a1c)=>{if(_0xff9a1c){const _0x2d2217=_0xdbc58a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2537d2=>_0x2537d2['is']('element','tableCell'));this['_areMergableCells'](_0x257aed['value'],_0x2d2217)||(_0x5bba6b['return']=!0x1,_0x5bba6b['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1e1148=this['editor']['commands']['get']('mergeTableCells'),_0x23afd0=this['editor']['plugins']['get']('TableUtils');if(!_0x1e1148['isEnabled'])return!0x1;const _0x28af87=_0x23afd0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x56a5b3 of _0x28af87)for(const _0x2e7589 of _0x28af87)if(_0x56a5b3!=_0x2e7589&&!this['_areMergableCells'](_0x56a5b3,_0x2e7589))return!0x1;return!0x0;}['_areMergableCells'](_0x255464,_0x41ac2b){const _0x583f7c=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd9a684=this['editor']['model']['createRangeOn'](_0x255464),_0x27ff7c=this['editor']['model']['createRangeOn'](_0x41ac2b),_0x2154e7=new Set(),_0x27887f=new Set();for(const _0x2a1bd9 of _0x583f7c['getSuggestions']())if(('insertion'==_0x2a1bd9['type']||'deletion'==_0x2a1bd9['type']||'mergeTableCells'==_0x2a1bd9['subType'])&&_0x2a1bd9['isInContent']){for(const _0x50f15e of _0x2a1bd9['getRanges']())_0x50f15e['containsRange'](_0xd9a684,!0x0)&&_0x2154e7['add'](_0x2a1bd9['type']+':'+_0x2a1bd9['author']['id']),_0x50f15e['containsRange'](_0x27ff7c,!0x0)&&_0x27887f['add'](_0x2a1bd9['type']+':'+_0x2a1bd9['author']['id']);}if(_0x2154e7['size']!=_0x27887f['size'])return!0x1;for(const _0xd172d4 of _0x2154e7)if(!_0x27887f['has'](_0xd172d4))return!0x1;return!0x0;}}class Ot extends _0x4c30c7{static get['requires'](){return[Dt];}['afterInit'](){const _0x423a57=this['editor'];if(!_0x423a57['plugins']['has']('TableEditing'))return;const _0x5dbbee=_0x423a57['locale'],_0x55a272=_0x423a57['plugins']['get']('TrackChangesEditing');_0x55a272['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x55a272['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x55a272['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5dbbee,'FORMAT_HEADER_ROW')),_0x55a272['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5dbbee,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xe72f94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x571b67=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0xe72f94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x571b67),_0xe72f94['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x571b67),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x5e2716=this['editor']['plugins']['get']('TrackChangesEditing'),_0x168b96=this['editor']['plugins']['get']('TableUtils');function _0x5ba60c({showActiveMarker:_0x379fac=!0x0,setDataAttribute:_0x293fbf=!0x0}={}){return(_0x16a9f6,_0xc77758,_0x546513)=>{const {type:_0x374f42,id:_0x4d8f47}=_0x5e2716['_splitMarkerName'](_0xc77758['markerName']);if(!_0x5e2716['hasSuggestion'](_0x4d8f47))return;const _0x35f4fe=_0x5e2716['getSuggestion'](_0x4d8f47),_0x401ccb=_0x35f4fe['data'];if('formatBlock'!=_0x35f4fe['type']||!_0x401ccb||'setTableColumnHeader'!=_0x401ccb['commandName'])return;if(_0xc77758['item'])return void _0x16a9f6['stop']();if(!_0x546513['consumable']['consume'](_0xc77758['markerRange'],_0x16a9f6['name']))return;const _0xbe1ef6=_0xc77758['markerRange']['start']['nodeAfter'],_0x293ea1=_0xc77758['markerRange']['end']['nodeBefore'],_0x529121=_0xbe1ef6['parent']['parent'],{column:_0x167868}=_0x168b96['getCellLocation'](_0xbe1ef6),{column:_0x38d3f4}=_0x168b96['getCellLocation'](_0x293ea1);for(let _0x429baf=_0x167868;_0x429baf<=_0x38d3f4;_0x429baf++){const _0x239b35=_0x168b96['createTableWalker'](_0x529121,{'column':_0x429baf,'includeAllSlots':!0x1});for(const _0x1d046c of _0x239b35){const _0x2e5cf3=_0x1d046c['cell'],_0x442240=_0x546513['mapper']['toViewElement'](_0x2e5cf3);_0x546513['writer']['addClass']('ck-suggestion-marker-'+_0x374f42,_0x442240),_0x293fbf&&_0x546513['writer']['setAttribute']('data-suggestion',_0x4d8f47,_0x442240),_0x546513['mapper']['bindElementToMarker'](_0x442240,_0xc77758['markerName']),_0x379fac&&(_0x5e2716['activeMarkers']['includes'](_0xc77758['markerName'])?_0x546513['writer']['addClass']('ck-suggestion-marker--active',_0x442240):_0x546513['writer']['removeClass']('ck-suggestion-marker--active',_0x442240));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5ba60c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29b742,_0x109618,_0x5ef598)=>{_0x5ef598['options']['showSuggestionHighlights']&&_0x5ba60c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29b742,_0x109618,_0x5ef598);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1b0122,_0x1156b4,_0x6b0835)=>{const {type:_0x5c99e1,id:_0x4c8040}=_0x5e2716['_splitMarkerName'](_0x1156b4['markerName']);if(!_0x5e2716['hasSuggestion'](_0x4c8040))return;const _0x4d71cd=_0x5e2716['getSuggestion'](_0x4c8040),_0x506145=_0x4d71cd['data'];if('formatBlock'!=_0x4d71cd['type']||!_0x506145||'setTableColumnHeader'!=_0x506145['commandName'])return;const _0x1d20d3=_0x6b0835['mapper']['markerNameToElements'](_0x1156b4['markerName']);if(_0x1d20d3){for(const _0x13cb37 of _0x1d20d3)_0x6b0835['writer']['removeClass']('ck-suggestion-marker-'+_0x5c99e1,_0x13cb37),_0x6b0835['writer']['removeClass']('ck-suggestion-marker--active',_0x13cb37),_0x6b0835['writer']['removeAttribute']('data-suggestion',_0x13cb37),_0x6b0835['mapper']['unbindElementFromMarkerName'](_0x13cb37,_0x1156b4['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0xf3bed7=this['editor'],_0x2fe5a4=_0xf3bed7['locale'];function _0xdf5e95(_0x5f4a2c){return{'type':'format','content':o(_0x2fe5a4,'*Format:*\x20%0',_0x5f4a2c)};}_0xf3bed7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb537ba=>{if('formatBlock'!=_0xb537ba['type'])return;const {data:_0x2273a1}=_0xb537ba;if(_0x2273a1){if('setTableRowHeader'==_0x2273a1['commandName']){const _0x39207a=_0x2273a1['commandParams'][0x0]['forceValue'];return _0xdf5e95(o(_0x2fe5a4,_0x39207a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2273a1['commandName']){const _0x550e84=_0x2273a1['commandParams'][0x0]['forceValue'];return _0xdf5e95(o(_0x2fe5a4,_0x550e84?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x4c30c7{['afterInit'](){const _0x5827a9=this['editor'],_0x20d135=_0x5827a9['locale'],_0x16574d=_0x5827a9['plugins']['get']('TrackChangesEditing');function _0x5af1dd(_0x4b687c){return{'type':'format','content':''+o(_0x20d135,'*Set\x20table\x20type:*\x20%0',_0x4b687c)};}_0x5827a9['plugins']['has']('TableLayout')&&(_0x16574d['enableCommand']('insertTableLayout'),_0x16574d['enableDefaultAttributesIntegration']('tableType'),_0x16574d['descriptionFactory']['registerElementLabel'](_0x357dcc=>_0x357dcc['is']('element','table')&&'layout'===_0x357dcc['getAttribute']('tableType'),_0x18b0e4=>o(_0x20d135,'ELEMENT_LAYOUT_TABLE',_0x18b0e4)),_0x16574d['descriptionFactory']['registerDescriptionCallback'](_0x5cb51c=>{const {data:_0x127254}=_0x5cb51c;if(_0x127254&&'tableType'==_0x127254['key'])switch(_0x127254['newValue']){case'layout':return _0x5af1dd(o(_0x20d135,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5af1dd(o(_0x20d135,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x29fc32=>[_0x29fc32,null]));class Mt extends _0x4c30c7{static get['requires'](){return[Dt];}['afterInit'](){const _0x2838d3=this['editor'];if(!_0x2838d3['plugins']['has']('TableClipboard'))return;const _0x5ca928=_0x2838d3['plugins']['get']('TrackChangesEditing'),_0x608e4d=_0x2838d3['plugins']['get']('TableUtils'),_0x5b5f51=_0x2838d3['plugins']['get'](Dt),_0x4a5945=_0x2838d3['plugins']['get']('TableClipboard'),_0x26fff2=_0x2838d3['plugins']['get']('TableSelection'),_0x5a49cd=_0x2838d3['plugins']['get'](_0x503578);_0x5b5f51['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2838d3['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2838d3['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xb7c1ee=null,_0x4a7c09=!0x1;_0x5a49cd['on']('contentInsertion',(_0x1090d1,_0x3b67ae)=>{_0x4a7c09='paste'===_0x3b67ae['method'];}),_0x2838d3['model']['on']('insertContent',(_0x2c1bdf,_0x26da7c)=>{if(!_0x4a7c09&&null===_0x26fff2['getSelectedTableCells']())return;const [_0x281116,_0x2d17d4]=_0x26da7c,_0x572c03=_0x26da7c[_0x26da7c['length']-0x1];_0x572c03&&_0x572c03['forceDefaultExecution']||_0x5ca928['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36fe5a,_0x59c5ab,_0x55bd85,_0x56c96e,_0xe95bc6){if(_0x59c5ab&&!_0x59c5ab['is']('documentSelection'))return!0x1;const _0x3c93f2=_0xe95bc6['getTableIfOnlyTableInContent'](_0x36fe5a,_0x55bd85);if(!_0x3c93f2||!Oe(_0x3c93f2,void 0x0,_0x56c96e))return!0x1;const _0x321fed=_0x56c96e['getSelectionAffectedTableCells'](_0x55bd85['document']['selection']);if(!_0x321fed['length'])return!0x1;const _0x5e79a8=_0x321fed[0x0]['findAncestor']('table'),_0x317ae8=_0x56c96e['getRowIndexes'](_0x321fed),_0x22f7cb=_0x56c96e['getColumnIndexes'](_0x321fed),_0x17a8cc={'startRow':_0x317ae8['first'],'endRow':_0x317ae8['last'],'startColumn':_0x22f7cb['first'],'endColumn':_0x22f7cb['last']};return 0x1==_0x321fed['length']&&(_0x17a8cc['endRow']+=_0x56c96e['getRows'](_0x3c93f2)-0x1,_0x17a8cc['endColumn']+=_0x56c96e['getColumns'](_0x3c93f2)-0x1),Oe(_0x5e79a8,_0x17a8cc,_0x56c96e);}(_0x281116,_0x2d17d4,_0x2838d3['model'],_0x608e4d,_0x4a5945)&&(_0x2c1bdf['stop'](),_0xb7c1ee={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2838d3['model']['change'](()=>{_0x2838d3['model']['insertContent'](_0x26da7c[0x0],_0x26da7c[0x1],_0x26da7c[0x2],{'forceDefaultExecution':!0x0});const _0x325fda=_0x258bf1(),{rowInsertionRanges:_0xe3d795,columnInsertionRanges:_0x4f652b,insertionRanges:_0x130bb0,deletionRanges:_0x2c4a12,cells:_0x5b2490}=_0xb7c1ee;_0xe3d795['length']&&_0x5ca928['markMultiRangeInsertion'](_0xe3d795,'tablePasteRow',{'tablePasteChainId':_0x325fda}),_0x4f652b['length']&&_0x5ca928['markMultiRangeInsertion'](_0x4f652b,'tablePasteColumn',{'tablePasteChainId':_0x325fda}),_0x130bb0['length']&&(_0x5ca928['markMultiRangeInsertion'](_0x130bb0,'tablePaste',{'tablePasteChainId':_0x325fda,'skipNestingCheck':!0x0}),_0x130bb0['forEach'](_0x117a07=>_0x117a07['detach']?.())),_0x2c4a12['length']&&(_0x5ca928['markMultiRangeDeletion'](_0x2c4a12,'tablePaste',{'tablePasteChainId':_0x325fda,'skipNestingCheck':!0x0}),_0x2c4a12['forEach'](_0x669e84=>_0x669e84['detach']?.()));const _0x379110=_0x5ca928['markMultiRangeBlockFormat'](_0x5b2490['map'](({element:_0x55460f})=>_0x55460f),{'formatGroupId':_0x258bf1()},[],'tablePasteCell',{'tablePasteChainId':_0x325fda});if(_0x379110){const _0x3fb0ca=_0x379110['getMarkers'](),_0x27940a=[];for(const {element:_0x5dba87,attributes:_0x1f984c}of _0x5b2490){if(!_0x1f984c)continue;const _0x17a1ef=_0x2838d3['model']['createRangeOn'](_0x5dba87),_0x32f67b=_0x3fb0ca['find'](_0x1abe77=>_0x1abe77['getRange']()['isEqual'](_0x17a1ef));_0x32f67b&&_0x27940a['push']([_0x32f67b['name'],_0x1f984c]);}_0x27940a['length']&&_0x379110['setAttribute']('markerAttributes',Object['fromEntries'](_0x27940a));}_0xb7c1ee=null;}));},{'priority':_0x3bb9bc['high']+0xa}),_0x5a49cd['on']('contentInsertion',()=>{_0x4a7c09=!0x1;},{'priority':'lowest'}),_0x2838d3['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3bf4d1,_0x4a0074)=>{const [_0x1b6a6a,_0x1848e4,,_0x3bc576]=_0x4a0074;if(!_0xb7c1ee)return;_0x3bf4d1['stop']();const _0x317f0c=_0x1b6a6a['cell'],_0xc5880c=_0x1848e4,_0x38ad0a=Be(_0x317f0c),_0x289e1a=Be(_0xc5880c);_0x3bf4d1['return']=_0x317f0c;let _0x7d640e=null,_0xc7d42=null;if(_0x289e1a||_0x38ad0a){if(_0x38ad0a&&!_0x289e1a){_0x3bc576['remove'](_0x317f0c['getChild'](0x0));for(const _0x112a8c of Array['from'](_0xc5880c['getChildren']()))_0x3bc576['insert'](_0x112a8c,_0x317f0c,'end');const _0x48ce27=_0xb7c1ee['rowInsertionIndexes']['includes'](_0x1b6a6a['row']),_0x4e6c29=_0xb7c1ee['columnInsertionIndexes']['includes'](_0x1b6a6a['column']);_0x48ce27||_0x4e6c29||(_0x7d640e=_0x2b0079['fromRange'](_0x3bc576['createRangeIn'](_0x317f0c)));}else _0x289e1a&&!_0x38ad0a&&(_0xc7d42=_0x3bc576['createRangeIn'](_0x317f0c));}else{const _0x282922=_0x3bc576['createElement']('tableCellSuggestion'),_0x3c77b2=_0x3bc576['createElement']('tableCellSuggestion');_0x3bc576['wrap'](_0x3bc576['createRangeIn'](_0x317f0c),_0x3c77b2),_0x3bc576['insert'](_0x282922,_0x317f0c,0x0);for(const _0x3835c4 of Array['from'](_0xc5880c['getChildren']()))_0x3bc576['insert'](_0x3835c4,_0x282922,'end');_0x7d640e=_0x2b0079['fromRange'](_0x3bc576['createRangeOn'](_0x282922)),_0xc7d42=_0x2b0079['fromRange'](_0x3bc576['createRangeOn'](_0x3c77b2));}const _0x2ea1a7=Array['from'](_0xc5880c['getAttributes']())['filter'](([_0x48d4f3])=>Re['includes'](_0x48d4f3));_0xb7c1ee['cells']['push']({'element':_0x317f0c,'attributes':_0x2ea1a7['length']?Object['fromEntries'](_0x2ea1a7):null}),_0x7d640e&&_0xb7c1ee['insertionRanges']['push'](_0x7d640e),_0xc7d42&&_0xb7c1ee['deletionRanges']['push'](_0xc7d42);},{'priority':'high'}),_0x608e4d['on']('insertColumns',(_0x3afca0,_0x3cecfd)=>{const [_0x52636c,_0x17d942={}]=_0x3cecfd;if(!_0xb7c1ee)return;const _0x4580e4=_0x17d942['at']||0x0,_0x21d82a=_0x17d942['columns']||0x1;_0xb7c1ee['columnInsertionIndexes']=new Array(_0x21d82a)['fill'](_0x4580e4)['map']((_0x3952b2,_0x58e5d1)=>_0x3952b2+_0x58e5d1);for(const {cell:_0x32438d}of _0x608e4d['createTableWalker'](_0x52636c,{'startColumn':_0x4580e4,'endColumn':_0x4580e4+_0x21d82a-0x1}))_0xb7c1ee['columnInsertionRanges']['push'](_0x2838d3['model']['createRangeOn'](_0x32438d));},{'priority':'low'}),_0x608e4d['on']('insertRows',(_0x3f96e4,_0xc4056a)=>{const [_0x2a2ae2,_0x3dfbcf={}]=_0xc4056a;if(!_0xb7c1ee)return;const _0x5abf72=_0x3dfbcf['at']||0x0,_0x479762=_0x3dfbcf['rows']||0x1;_0xb7c1ee['rowInsertionIndexes']=new Array(_0x479762)['fill'](_0x5abf72)['map']((_0x48653d,_0x3ca8b5)=>_0x48653d+_0x3ca8b5);for(const {cell:_0x5ccebf}of _0x608e4d['createTableWalker'](_0x2a2ae2,{'startRow':_0x5abf72,'endRow':_0x5abf72+_0x479762-0x1}))_0xb7c1ee['rowInsertionRanges']['push'](_0x2838d3['model']['createRangeOn'](_0x5ccebf));},{'priority':'low'}),_0x5ca928['descriptionFactory']['registerDescriptionCallback'](_0x2fef59=>{if(_0x2fef59['subType']&&_0x2fef59['subType']['startsWith']('tablePaste'))return _0x2fef59['previous']?{}:{'type':'insertion','content':o(_0x2838d3['locale'],'*Replace\x20table\x20cells*')};});const _0x154899=()=>!0x1;for(const _0x2014ec of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5ca928['_suggestionFactory']['registerCustomCallback']('insertion',_0x2014ec,'join',_0x154899),_0x5ca928['_suggestionFactory']['registerCustomCallback']('deletion',_0x2014ec,'join',_0x154899),_0x5ca928['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2014ec,'join',_0x154899);_0x5ca928['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x154899),_0x5ca928['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x408f1d,_0x1765fd,_0x5a868c)=>{const _0x45f835=_0x408f1d['map'](_0x11a95b=>_0x11a95b['getContainedElement']())['filter'](_0x4deeb7=>_0x4deeb7),_0x2ec7fb=new Map(_0x45f835['map'](_0x41b024=>[_0x41b024,null]));if(_0xb7c1ee){for(const {element:_0x519498,attributes:_0x2574ea}of _0xb7c1ee['cells'])_0x2574ea&&_0x2ec7fb['set'](_0x519498,_0x2574ea);}else{if(_0x5a868c&&_0x5a868c['markerAttributes'])for(const [_0x246f6e,_0x2a003f]of Object['entries'](_0x5a868c['markerAttributes'])){const _0x400814=_0x2838d3['model']['markers']['get'](_0x246f6e),_0x120145=_0x400814?_0x400814['getRange']()['getContainedElement']():null;_0x120145&&_0x2ec7fb['set'](_0x120145,_0x2a003f);}}_0x2838d3['model']['change'](_0x48fae7=>{for(const [_0x827b30,_0x1eac22]of _0x2ec7fb)_0x48fae7['setAttributes']({...Ae,..._0x1eac22},_0x827b30);});});const _0xd171fa=(_0x4f0d4d,_0x5da650)=>{_0x5ca928['_suggestionFactory']['registerCustomCallback'](_0x4f0d4d,'tablePaste',_0x5da650,(_0x10c895,_0x2bf30d,_0x728786)=>{_0x2838d3['model']['change'](_0x2a780f=>{const _0x5ca96e=[];for(const _0x3268f3 of _0x10c895){const _0x5e6548=_0x3268f3['start']['nodeAfter'];_0x5e6548['is']('element','tableCellSuggestion')&&_0x5ca96e['push'](_0x5e6548);}_0x5ca928['_suggestionFactory']['getSuggestionCallback'](_0x4f0d4d,null,_0x5da650)(_0x10c895,_0x2bf30d,_0x728786);for(const _0x20abfe of _0x5ca96e)'$graveyard'!=_0x20abfe['root']['rootName']&&_0x2a780f['unwrap'](_0x20abfe);});});};_0xd171fa('insertion','accept'),_0xd171fa('insertion','discard'),_0xd171fa('deletion','accept'),_0xd171fa('deletion','discard'),_0x5ca928['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2e8194=>{const _0x356bb6=_0x2e8194['map'](_0x535174=>_0x535174['getContainedElement']()),_0x5afc01=_0x356bb6[0x0]['findAncestor']('table'),{minRow:_0xe10460,maxRow:_0x5104b3}=_0x5b5f51['_getCoordsForCells'](_0x356bb6);_0x608e4d['removeRows'](_0x5afc01,{'at':_0xe10460,'rows':_0x5104b3-_0xe10460+0x1});}),_0x5ca928['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x14ab74=>{const _0x333101=_0x14ab74['map'](_0x22eb05=>_0x22eb05['getContainedElement']()),_0x11d537=_0x333101[0x0]['findAncestor']('table'),{minColumn:_0x31c5ee,maxColumn:_0x5b8adf}=_0x5b5f51['_getCoordsForCells'](_0x333101);_0x608e4d['removeColumns'](_0x11d537,{'at':_0x31c5ee,'columns':_0x5b8adf-_0x31c5ee+0x1});});const _0xf75218=(_0x1d051e,_0x91f884)=>{if(!_0x91f884['subType']||!_0x91f884['subType']['startsWith']('tablePaste'))return;const _0x3e7ef4=_0x91f884['attributes']['tablePasteChainId'],_0x1bc59a=_0x5ca928['getSuggestions']()['filter'](_0x124179=>_0x124179['isInContent']&&_0x124179['attributes']&&_0x124179['attributes']['tablePasteChainId']==_0x3e7ef4);_0x1bc59a['length']&&_0x91f884['getAllAdjacentSuggestions']()['length']!=_0x1bc59a['length']&&_0x1bc59a['reduce']((_0x11df6e,_0x21e72b)=>(_0x11df6e['next']=_0x21e72b,_0x21e72b['previous']=_0x11df6e,_0x21e72b));};function _0x5022a1(_0x805287,_0x31e872=!0x0){const {id:_0x40aee5,authorId:_0xbcae8d}=_0x5ca928['_splitMarkerName'](_0x805287['markerName']),_0xb6d94b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x48c58b=_0x5ca928['activeMarkers']['includes'](_0x805287['markerName']);return _0x48c58b&&_0xb6d94b['push']('ck-suggestion-marker--active'),{'classes':_0xb6d94b,'attributes':{'data-suggestion':_0x40aee5,'data-author-id':_0xbcae8d},'priority':_0x48c58b&&_0x31e872?0xbc2:0xbb8};}_0x5ca928['on']('suggestionLoaded',_0xf75218,{'priority':'high'}),_0x5ca928['on']('suggestionUnloaded',_0xf75218,{'priority':'high'}),_0x2838d3['model']['document']['registerPostFixer'](()=>{let _0x523b44=!0x1;const _0x58ef22=Array['from'](_0x2838d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b3dd6,data:_0x3f717d}of _0x58ef22){const {group:_0x1094f5,type:_0x265f5a,id:_0x361e56}=_0x5ca928['_splitMarkerName'](_0x3b3dd6);if('suggestion'!=_0x1094f5||'deletion'!=_0x265f5a||_0x3f717d['oldRange'])continue;if(!_0x5ca928['hasSuggestion'](_0x361e56))continue;const _0x14cc71=_0x5ca928['getSuggestion'](_0x361e56)['getRanges'](),_0x3bb5f0=_0x2838d3['plugins']['get']('Users')['me'];for(const _0x54b0c7 of _0x5ca928['getSuggestions']()){if(!_0x54b0c7['isInContent']||_0x54b0c7['author']!=_0x3bb5f0)continue;if('formatBlock'!=_0x54b0c7['type']||'tablePasteCell'!=_0x54b0c7['subType'])continue;if(_0x54b0c7['getRanges']()['every'](_0x4209db=>_0x14cc71['some'](_0x368595=>_0x368595['containsRange'](_0x4209db,!0x0)))){for(const _0x104250 of _0x54b0c7['getAllAdjacentSuggestions']())_0x104250['isInContent']&&(_0x104250['discard'](),_0x523b44=!0x0);}}}return _0x523b44;}),_0x2838d3['model']['document']['registerPostFixer'](_0x3639c7=>{const _0x1d10a5=_0x2838d3['commands']['get']('redo');if(!_0x1d10a5||!_0x1d10a5['_createdBatches']['has'](_0x3639c7['batch']))return!0x1;let _0x1610df=!0x1;const _0x2d789c=_0x2838d3['plugins']['get']('Users')['me'],_0x4968a5=_0x2838d3['model']['document']['differ']['getChanges'](),_0x41b938=Array['from'](_0x2838d3['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x27bc79,data:_0x759a2d})=>{const {group:_0x298424,subType:_0xd037e9,authorId:_0x1a7637}=_0x5ca928['_splitMarkerName'](_0x27bc79);return'suggestion'==_0x298424&&'tablePaste'==_0xd037e9&&_0x1a7637==_0x2d789c['id']&&!_0x759a2d['oldRange'];});for(const _0x14541a of _0x4968a5){if('insert'!=_0x14541a['type']||'tableCellSuggestion'!=_0x14541a['name']||0x1!=_0x14541a['length'])continue;const _0x237d0b=_0x3639c7['createRange'](_0x14541a['position'],_0x14541a['position']['getShiftedBy'](0x1));if(!_0x41b938['find'](({data:_0x1c7dbe})=>_0x1c7dbe['newRange']['isEqual'](_0x237d0b))){for(const {name:_0x35881e,data:_0x52ec33}of _0x41b938)if(_0x237d0b['containsRange'](_0x52ec33['newRange'])){_0x3639c7['updateMarker'](_0x35881e,{'range':_0x237d0b}),_0x1610df=!0x0;break;}}}return _0x1610df;}),_0x2838d3['model']['document']['registerPostFixer'](_0x2426cb=>{let _0x268715=!0x1;const _0x4c71ef=_0x2838d3['plugins']['get']('Users')['me'],_0x4e2eef=_0x5ca928['getSuggestions']()['filter'](_0x313b16=>_0x313b16['isInContent']&&_0x313b16['author']==_0x4c71ef),_0xda91f5=new Set(),_0x4d16d6=new Set();for(const _0x13dbcb of _0x4e2eef)if('tablePaste'==_0x13dbcb['subType'])for(const _0xb2c6fd of _0x13dbcb['getMarkers']()){const _0x107518=_0xb2c6fd['getRange']()['getContainedElement']();if(_0x107518){if(_0x107518['is']('element','tableCellSuggestion')&&Be(_0x107518)){_0x13dbcb['removeMarker'](_0xb2c6fd['name']),_0xda91f5['add'](_0x107518),_0x268715=!0x0;const _0x408439=_0x107518['nextSibling'],_0x19ec86=_0x107518['previousSibling'],_0x3c55c6=_0x408439&&_0x408439['is']('element','tableCellSuggestion'),_0x484881=_0x19ec86&&_0x19ec86['is']('element','tableCellSuggestion');_0x3c55c6&&!_0xda91f5['has'](_0x408439)&&_0x4d16d6['add'](_0x408439),_0x484881&&!_0xda91f5['has'](_0x19ec86)&&_0x4d16d6['add'](_0x19ec86);}else _0x107518['is']('element','paragraph')&&_0x107518['isEmpty']&&(_0x13dbcb['removeMarker'](_0xb2c6fd['name']),_0x268715=!0x0);}}else{if('tablePasteCell'==_0x13dbcb['subType']){if(!_0x13dbcb['attributes']||!_0x13dbcb['attributes']['tablePasteChainId'])continue;const _0x224997=_0x13dbcb['attributes']['markerAttributes'];if(_0x224997&&Object['keys'](_0x224997)['length'])continue;const _0x3b8cbc=_0x13dbcb['attributes']['tablePasteChainId'];let _0x2ddae9=!0x0,_0x333c12=!0x0;for(const _0x974805 of _0x4e2eef)if(_0x974805['subType']&&_0x974805['subType']['startsWith']('tablePaste')){if(!_0x974805['attributes']['tablePasteChainId']){_0x333c12=!0x1;break;}if(_0x974805['id']!=_0x13dbcb['id']&&_0x974805['attributes']['tablePasteChainId']==_0x3b8cbc){_0x2ddae9=!0x1;break;}}_0x333c12&&_0x2ddae9&&(_0x13dbcb['removeMarkers'](),_0x268715=!0x0);}}for(const _0x5834ef of _0xda91f5)_0x2426cb['remove'](_0x5834ef);for(const _0x43d025 of _0x4d16d6)_0x2426cb['unwrap'](_0x43d025);return _0x268715;}),_0x2838d3['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x47427f=>_0x5022a1(_0x47427f),'converterPriority':'high'}),_0x2838d3['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1d129d,_0x5183a8)=>_0x5183a8['options']['showSuggestionHighlights']?_0x5022a1(_0x1d129d,!0x1):null,'converterPriority':'high'});const _0x246b33=_0x2838d3['editing']['view'];this['listenTo'](_0x246b33['document'],'clipboardOutput',(_0x102d7e,_0x5099ec)=>{const _0x5f3b95=[];for(const _0x3f193d of _0x246b33['createRangeIn'](_0x5099ec['content'])['getItems']())_0x3f193d['is']('element','suggestion-td')&&_0x5f3b95['push'](_0x3f193d);_0x246b33['change'](_0x33382a=>{for(const _0x311009 of _0x5f3b95)_0x33382a['move'](_0x33382a['createRangeIn'](_0x311009),_0x33382a['createPositionBefore'](_0x311009)),_0x33382a['remove'](_0x311009);});});}}function Be(_0x2c668e){if(_0x2c668e['isEmpty'])return!0x0;const _0x275440=_0x2c668e['getChild'](0x0);return _0x275440['is']('element','paragraph')&&_0x275440['isEmpty'];}function Oe(_0x200886,_0xa64bec={},_0x27fc6e){for(const {isAnchor:_0x148f30,cellHeight:_0x1040aa,cellWidth:_0xba5c63}of _0x27fc6e['createTableWalker'](_0x200886,{'includeAllSlots':!0x0,..._0xa64bec}))if(!_0x148f30||0x1!=_0x1040aa||0x1!=_0xba5c63)return!0x1;return!0x0;}class Rt extends _0x4c30c7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44300e=this['editor']['plugins']['get']('TrackChangesEditing');_0x44300e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44300e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44300e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44300e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44300e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44300e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x46c4b8,_0x46e35c){const _0x330921=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e2719=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x774f21=_0x46e35c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x48effa=_0x3e2719['getColumnGroupElement'](_0x774f21);let _0x213e00=_0x48effa?_0x3e2719['getTableColumnsWidths'](_0x48effa):null,_0x1242ce=_0x774f21['getAttribute']('tableWidth')||null;const _0x21abd9=_0x46e35c['tableWidth']||_0x1242ce,_0x359324=_0x46e35c['columnWidths']||_0x213e00,_0x34799f=this['editor']['plugins']['get']('Users')['me'];for(const _0x54e573 of _0x330921['getSuggestions']()){const _0x41ed99=_0x54e573['getContainedElement']();if('resizeTable'===_0x54e573['subType']&&_0x41ed99===_0x774f21){_0x54e573['author']!==_0x34799f&&_0x54e573['discard']();const _0x5451d3=_0x54e573['data']['commandParams'];_0x1242ce=_0x5451d3[0x0]['tableWidth'],_0x213e00=_0x5451d3[0x0]['columnWidths'];break;}}_0x46c4b8({'table':_0x774f21,'tableWidth':_0x21abd9,'columnWidths':_0x359324}),_0x330921['markBlockFormat'](_0x774f21,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1242ce,'columnWidths':_0x213e00}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1f9d6a){if('formatBlock'!=_0x1f9d6a['type']&&'formatInline'!=_0x1f9d6a['type'])return;const {data:_0xa96db7}=_0x1f9d6a;if(_0xa96db7&&'resizeTable'===_0xa96db7['formatGroupId']){const _0x4dca9f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4dca9f)};}}}class Tt extends _0x4c30c7{['afterInit'](){const _0x46b8c4=this['editor'];_0x46b8c4['plugins']['has']('Template')&&_0x46b8c4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x4c30c7{['afterInit'](){const _0x2ae49a=this['editor'];if(!_0x2ae49a['commands']['get']('insertTableOfContents'))return;_0x2ae49a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xbd24b6=_0x2ae49a['plugins']['get']('TrackChangesEditing'),_0x11a788=_0x2ae49a['locale'];_0xbd24b6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x593ef3=>o(_0x11a788,'ELEMENT_TABLE_OF_CONTENTS',_0x593ef3));}}class Ut extends _0x4c30c7{['afterInit'](){const _0x5adebc=this['editor'];if(!_0x5adebc['plugins']['has']('Title'))return;const _0x2eaac6=_0x5adebc['plugins']['get']('TrackChangesEditing');_0x2eaac6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5adebc['locale'],'ELEMENT_TITLE')),_0x5adebc['model']['document']['registerPostFixer'](_0x313aaf=>{let _0x4d88ca=!0x1;const _0x3c8483=Array['from'](_0x5adebc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x583a32,data:_0x2b5c97}of _0x3c8483){const {group:_0x44748a}=_0x2eaac6['_splitMarkerName'](_0x583a32);if('suggestion'!==_0x44748a||!_0x2b5c97['newRange'])continue;const _0xd456f6=_0x2b5c97['newRange'],_0x5017b2=_0xd456f6['end']['nodeBefore'];if(!_0x5017b2||!_0x5017b2['is']('element','title-content'))continue;if(!_0xd456f6['start']['isTouching'](_0xd456f6['end']))continue;const _0x2e0c18=_0x5adebc['model']['schema']['getNearestSelectionRange'](_0xd456f6['end'],'forward');if(_0x2e0c18&&_0x2e0c18['isCollapsed']){const _0x53bdcf=_0x313aaf['createRange'](_0xd456f6['start'],_0x2e0c18['start']);_0x53bdcf['isEqual'](_0xd456f6)||(_0x313aaf['updateMarker'](_0x583a32,{'range':_0x53bdcf}),_0x4d88ca=!0x0);}_0x4d88ca||(_0x313aaf['removeMarker'](_0x583a32),_0x4d88ca=!0x0);}return _0x4d88ca;});}}class Vt extends _0x4c30c7{['afterInit'](){const _0x366251=this['editor'],_0x3866b6=_0x366251['plugins']['get']('TrackChangesEditing');_0x366251['plugins']['has']('Uploadcare')&&(_0x3866b6['enableCommand']('uploadcare'),_0x366251['plugins']['has']('UploadcareImageEdit')&&(_0x3866b6['enableCommand']('uploadcareImageEdit'),_0x3866b6['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3866b6['descriptionFactory']['registerDescriptionCallback'](_0xead37c=>{if('attribute'!=_0xead37c['type'])return;const {data:_0x37249e}=_0xead37c;return _0x37249e&&'uploadcareImageId'==_0x37249e['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x4c30c7{['afterInit'](){const _0x374f43=this['editor'],_0x3f5ab0=_0x374f43['plugins']['get']('TrackChangesEditing');_0x374f43['plugins']['has']('UndoEditing')&&(_0x3f5ab0['enableCommand']('undo'),_0x3f5ab0['enableCommand']('redo'));}}class Pt extends _0x4c30c7{static get['requires'](){return[Dt];}['afterInit'](){const _0x552fd0=this['editor'];if(!_0x552fd0['plugins']['has']('TableCaptionEditing'))return;_0x552fd0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x4c30c7{['tableProperties'];['tableCellProperties'];constructor(_0x165fc0){super(_0x165fc0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x165fc0['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x4c0929=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x379298 of this['tableProperties'])_0x4c0929['enableCommand'](_0x379298,(_0x5c4fc6,_0xd83d02)=>{const _0x2c3498=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x379298,[_0x2c3498],this['tableProperties'],'tableProperties',_0x5c4fc6,_0xd83d02);});_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c0929['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2cf336,_0x3bc836)=>this['handleDiscardAction'](this['tableProperties'],_0x2cf336,_0x3bc836)),_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x452ada of this['tableCellProperties'])this['editor']['commands']['get'](_0x452ada)&&_0x4c0929['enableCommand'](_0x452ada,(_0x1fcd75,_0x997760)=>{const _0x10372a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x452ada,_0x10372a,this['tableCellProperties'],'tableCellProperties',_0x1fcd75,_0x997760);});_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c0929['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d4be6,_0x43a314)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d4be6,_0x43a314)),_0x4c0929['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x4c0929['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x4c0929['descriptionFactory']['registerDescriptionCallback'](_0x10249a=>this['handleSuggestionDescription'](_0x10249a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x106b71,_0x58378f,_0x4d552b,_0x3f6683,_0x208f55,_0x28bd3c){const _0x4bd810=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x28bd3c['batch'],()=>{for(const _0xb8eb1 of _0x58378f){if(this['_getSuggestion'](_0xb8eb1,_0x3f6683))_0x208f55(_0x28bd3c);else{const _0x43b7d5={};for(const _0x26798c of _0x4d552b){const _0x4288d6=_0xb8eb1['getAttribute'](_0x26798c);void 0x0!==_0x4288d6&&(_0x43b7d5[_0x26798c]=_0x4288d6);}_0x208f55(_0x28bd3c),_0x4bd810['markBlockFormat'](_0xb8eb1,{'commandParams':[_0x43b7d5]},[],_0x3f6683);}}});}['handleDiscardAction'](_0x545056,_0x4bc4e8,_0x60470b){const _0x1360d6=_0x4bc4e8[0x0]['start']['nodeAfter'],_0xb46f16=_0x60470b['commandParams'][0x0];this['editor']['model']['change'](_0xa1a6e1=>{for(const _0x2ab681 of _0x545056)void 0x0!==_0xb46f16[_0x2ab681]?_0xa1a6e1['setAttribute'](_0x2ab681,_0xb46f16[_0x2ab681],_0x1360d6):_0xa1a6e1['removeAttribute'](_0x2ab681,_0x1360d6);});}['handleSuggestionDescription'](_0x443343){if(_0x443343['data'])switch(_0x443343['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1cdcb7,_0xae027a){const _0x51861b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x56488e of _0x51861b['getSuggestions']({'skipNotAttached':!0x0})){const _0x10e786=_0x56488e['getContainedElement']();if(_0x56488e['subType']===_0xae027a&&_0x10e786===_0x1cdcb7)return _0x56488e;}return null;}['_registerTablePropertiesAttributes'](){const _0x10c1b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bc7af=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x5e46c1 of _0x5bc7af){const _0x3d8d6e=_0x5e46c1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x10c1b9['descriptionFactory']['registerAttributeLabel'](_0x5e46c1,o(this['editor']['locale'],'FORMAT_'+_0x3d8d6e));}}}class Lt extends _0x4c30c7{['afterInit'](){const _0x50be47=this['editor'];if(!_0x50be47['plugins']['has']('LineHeight'))return;const _0x22e95b=_0x50be47['plugins']['get']('TrackChangesEditing'),_0x1c9241=_0x50be47['locale'];_0x22e95b['enableDefaultAttributesIntegration']('lineHeight'),_0x22e95b['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x1c9241,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4c30c7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xd09ee,_0x55c56b,_0x32cfc2,_0x22d3ab,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4a71b2){super(_0x4a71b2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x70c5d7,_0x3800d3,_0x2444c4,_0x41fa9c)=>{this['_model']['change'](()=>{for(const _0x1074b8 of[..._0x41fa9c,..._0x2444c4])this['_model']['markers']['has'](_0x1074b8)&&_0x4a71b2['editing']['reconvertMarker'](_0x1074b8);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4a71b2['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x4a71b2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a71b2['config']['get']('trackChanges.trackFormatChanges'),_0x4a71b2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a71b2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4a71b2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb069b6=this['editor'];_0xb069b6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e77eb,{writer:_0x3dc7cf})=>{let _0x2a6d54='suggestion:'+_0x4e77eb['getAttribute']('suggestion-type')+':'+_0x4e77eb['getAttribute']('id');return _0x4e77eb['getAttribute']('marker-count')&&(_0x2a6d54+=':'+_0x4e77eb['getAttribute']('marker-count')),_0x3dc7cf['createElement']('$marker',{'data-name':_0x2a6d54});}}),_0xb069b6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb069b6['model']['document']['registerPostFixer'](_0x55a901=>{let _0x3ebee1=!0x1;const _0x249545=Array['from'](_0xb069b6['model']['document']['differ']['getChangedMarkers']()),_0x505295=new Set();for(const {name:_0x7dc96e,data:_0x3ae73f}of _0x249545){const {group:_0x2172be,type:_0x3dda6b,subType:_0x1b51dc,id:_0x2a75ac}=this['_splitMarkerName'](_0x7dc96e);if('suggestion'!==_0x2172be)continue;const _0x24388a=_0x1b51dc?'suggestion:'+_0x3dda6b+':'+_0x1b51dc+':'+_0x2a75ac:'suggestion:'+_0x3dda6b+':'+_0x2a75ac,_0x4012c6=_0xb069b6['model']['markers']['getMarkersGroup'](_0x24388a),_0x331494=_0xb069b6['model']['markers']['get'](_0x7dc96e),_0x2215f2=this['_suggestions']['get'](_0x2a75ac);if(null!=_0x3ae73f['newRange']){'formatInline'==_0x3dda6b&&(_0x3ebee1=_0x3ebee1||Wt(_0x3ae73f['newRange'],_0x7dc96e,_0x55a901,_0xb069b6['model']['schema']));const _0x2f3d51='attribute'==_0x3dda6b&&this['_isBlockAttribute'](_0x1b51dc['split']('|')[0x0]),_0x3eb8f4='attribute'==_0x3dda6b&&this['_isInlineAttribute'](_0x1b51dc['split']('|')[0x0]);if(_0x3ae73f['newRange']['isCollapsed']||'$graveyard'==_0x3ae73f['newRange']['root']['rootName']||'formatBlock'==_0x3dda6b&&!Qt(_0x3ae73f['newRange'])||_0x2f3d51&&!Qt(_0x3ae73f['newRange'])||_0x3eb8f4&&Xt(_0x3ae73f['newRange'])||'deletion'==_0x3dda6b&&Xt(_0x3ae73f['newRange'])||_0x331494&&Yt(_0x331494,_0x4012c6))_0x55a901['removeMarker'](_0x7dc96e),_0x3ebee1=!0x0;else{if(!_0x2215f2||!_0x2215f2['isInContent'])continue;if(_0x3ae73f['newRange']&&_0x3ae73f['oldRange']&&_0x3ae73f['newRange']['isEqual'](_0x3ae73f['oldRange']))continue;_0x505295['add'](_0x2215f2);}}}return _0x505295['size']>0x0&&(_0x3ebee1=!!this['_joinWithAdjacentSuggestions'](_0x505295)||_0x3ebee1),_0x3ebee1;}),_0xb069b6['model']['document']['registerPostFixer'](_0x34ccc1=>{let _0x399c73=!0x1;for(const _0x3886db of _0xb069b6['model']['document']['differ']['getChanges']())if('insert'==_0x3886db['type'])for(const _0x5202bf of this['_suggestions']['values']()){if(_0x5202bf['isMultiRange']||!_0x5202bf['isInContent'])continue;const _0x4c476c='formatBlock'==_0x5202bf['type'],_0x4b4c72=this['_getAttributeKey'](_0x5202bf),_0x261f83=_0x4b4c72&&this['_isBlockAttribute'](_0x4b4c72);if(!_0x4c476c&&!_0x261f83)continue;const _0x857b07=_0x5202bf['getFirstRange']();if(_0x857b07['start']['parent']!=_0x857b07['end']['parent']&&!_0x857b07['end']['isAtEnd']){const _0xeab502=_0xb069b6['model']['createPositionAt'](_0x857b07['start']['nodeAfter'],'end'),_0x31dbd7=_0xb069b6['model']['createRange'](_0x857b07['start'],_0xeab502);_0x34ccc1['updateMarker'](_0x5202bf['getFirstMarker'](),{'range':_0x31dbd7}),_0x399c73=!0x0;}}return _0x399c73;}),_0xb069b6['model']['document']['registerPostFixer'](_0x1df6ef=>this['_processAttributeChanges'](_0x1df6ef)),_0xb069b6['model']['document']['registerPostFixer'](_0x2c45ea=>!_0x2c45ea['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2c45ea)),_0xb069b6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb069b6['model']['document']['on']('change:data',(_0x5b5c8b,_0x36c3be)=>{if(!_0x36c3be['isLocal']||_0x36c3be['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x56ad7c=_0xb069b6['model']['document']['differ']['getChanges']();if(0x0==_0x56ad7c['length'])return;const _0x357a82=[],_0x488af7=_0x56ad7c['filter'](_0x5ca58f=>'attribute'==_0x5ca58f['type']),_0x4c5638=_0x56ad7c['filter'](_0x3f3c82=>'insert'==_0x3f3c82['type']&&'$text'!=_0x3f3c82['name']);for(const _0x281789 of _0x488af7)this['_isRegisteredAttribute'](_0x281789['attributeKey'])&&_0x357a82['push']({'key':_0x281789['attributeKey'],'newValue':_0x281789['attributeNewValue'],'oldValue':_0x281789['attributeOldValue'],'range':Zt(_0x281789['range'],_0xb069b6['model'])});for(const _0x14b44a of _0x4c5638){if('rename'!=_0x14b44a['action']&&'refresh'!=_0x14b44a['action'])continue;const _0xb9f699=tn(_0x14b44a['position']['nodeAfter'],_0xb069b6['model']),_0x36a39a=_0x14b44a['before'];'rename'==_0x14b44a['action']&&_0x357a82['push']({'key':m,'newValue':_0x14b44a['name'],'oldValue':_0x36a39a['name'],'range':_0xb9f699});for(const [_0x1fb6d4,_0x47af54]of _0x36a39a['attributes']){if(!this['_isRegisteredAttribute'](_0x1fb6d4))continue;const _0x4a3056=_0x14b44a['attributes']['get'](_0x1fb6d4);_0x47af54!==_0x4a3056&&_0x357a82['push']({'key':_0x1fb6d4,'newValue':_0x4a3056,'oldValue':_0x47af54,'range':_0xb9f699});}for(const [_0x4f6339,_0x53fc62]of _0x14b44a['attributes'])this['_isRegisteredAttribute'](_0x4f6339)&&(_0x36a39a['attributes']['has'](_0x4f6339)||_0x357a82['push']({'key':_0x4f6339,'newValue':_0x53fc62,'oldValue':null,'range':_0xb9f699}));}0x0!=_0x357a82['length']&&_0xb069b6['model']['enqueueChange'](_0x36c3be,_0x4ae480=>{const _0x5f050d=_0x258bf1();for(const {range:_0x3fb7a9,key:_0x41d7f1,oldValue:_0x4ed761,newValue:_0x20c02d}of _0x357a82)this['markAttributeChange'](_0x3fb7a9,_0x41d7f1,_0x4ed761,_0x20c02d,{'groupId':_0x5f050d});this['_reduceExistingSuggestions'](_0x4ae480,_0x357a82);});},{'priority':'lowest'}),_0xb069b6['model']['markers']['on']('update:suggestion',(_0xd62621,_0x58695d,_0x3a0cc6)=>{if(null==_0x3a0cc6){const {id:_0x1f4ee2}=this['_splitMarkerName'](_0x58695d['name']),_0x181829=this['_suggestions']['get'](_0x1f4ee2);_0x181829&&_0x181829['addMarkerName'](_0x58695d['name']);}}),_0xb069b6['model']['document']['on']('change:data',()=>{const _0x14a8ba=Array['from'](_0xb069b6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1f8c6d=>'suggestion'===this['_splitMarkerName'](_0x1f8c6d['name'])['group']);if(0x0===_0x14a8ba['length'])return;_0x14a8ba['sort']((_0x452011,_0x5c109d)=>{const _0x23d295=_0x452011['data']['oldRange'],_0x12de8b=_0x5c109d['data']['oldRange'];return null===_0x23d295&&null===_0x12de8b?0x0:null===_0x23d295&&null!==_0x12de8b?-0x1:null!==_0x23d295&&null===_0x12de8b?0x1:_0x23d295['start']['isBefore'](_0x12de8b['start'])?-0x1:0x1;});const _0x31678d=new Set(),_0x1082d5=new Set();for(const {name:_0x2607e4,data:_0x1e8e32}of _0x14a8ba){const {id:_0x513bb6}=this['_splitMarkerName'](_0x2607e4);if(null===_0x1e8e32['oldRange']){const _0x54d9a9=this['_handleNewSuggestionMarker'](_0x2607e4);_0x1082d5['add'](_0x54d9a9);}else{const _0xab9fa2=this['_suggestions']['get'](_0x513bb6);null!==_0x1e8e32['newRange']||_0xab9fa2['isInContent']?(_0x31678d['add'](_0xab9fa2['head']),_0x1082d5['add'](_0xab9fa2)):this['_removeSuggestion'](_0xab9fa2);}}_0x1082d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x1082d5);for(const _0x39cdbe of _0x31678d)this['fire']('suggestionChanged',_0x39cdbe);}),_0xb069b6['model']['on']('applyOperation',(_0x10756a,_0x2576b6)=>{const _0x41a621=_0x2576b6[0x0];if(!this['_suggestions']['size'])return;if(!_0x41a621['isDocumentOperation'])return;if(_0x41a621['batch']['isUndo']||!_0x41a621['batch']['isLocal'])return;let _0xcc733a,_0x1fb106;switch(_0x41a621['type']){case'insert':_0xcc733a=_0xb069b6['model']['createPositionAt'](_0x41a621['position']),_0x1fb106=_0xcc733a['getShiftedBy'](_0x41a621['howMany']);break;case'split':_0xcc733a=_0xb069b6['model']['createPositionAt'](_0x41a621['splitPosition']),_0x1fb106=_0xb069b6['model']['createPositionAt'](_0x41a621['moveTargetPosition']);break;case'move':_0xcc733a=_0xb069b6['model']['createPositionAt'](_0x41a621['targetPosition']),_0x1fb106=_0xcc733a['getShiftedBy'](_0x41a621['howMany']);break;default:return;}const _0x7c7c8d=_0xb069b6['model']['createRange'](_0xcc733a,_0x1fb106);_0xb069b6['model']['change'](()=>{for(const {suggestion:_0x2f6ccf,meta:_0x1eb0da}of this['_findSuggestions'](_0x7c7c8d)){if(_0x2f6ccf['isMultiRange'])continue;if('formatInline'==_0x2f6ccf['type'])continue;const _0x13a1e8=this['_getAttributeKey'](_0x2f6ccf);if(_0x13a1e8&&this['_isBlockAttribute'](_0x13a1e8)&&'split'!=_0x41a621['type'])continue;const _0x18d10b=_0x2f6ccf['data']&&_0x2f6ccf['data']['multipleBlocks'];('formatBlock'!=_0x2f6ccf['type']||'split'==_0x41a621['type']&&!_0x18d10b)&&(_0x1eb0da['containsRangeInObject']||'insertion'==_0x2f6ccf['type']&&_0x1eb0da['isOwn']||_0x2f6ccf['getFirstRange']()['containsRange'](_0x7c7c8d)&&this['_breakSuggestionMarker'](_0x2f6ccf,_0xcc733a,_0x1fb106));}});},{'priority':'lowest'}),_0xb069b6['model']['on']('deleteContent',(_0x5d04ee,_0x3ea17c)=>{const _0x21ccf8=_0x3ea17c[0x0],_0x45de36=_0x3ea17c[0x1];if(_0x45de36&&_0x45de36['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x21ccf8['isCollapsed'])return;const _0x418811=_0xb069b6['model']['schema'],{start:_0x2ad3c2,end:_0x46a0aa}=_0x21ccf8['getFirstRange'](),_0x4b4f83=_0x2ad3c2['nodeAfter']&&_0x418811['isLimit'](_0x2ad3c2['nodeAfter'])?null:_0x418811['getNearestSelectionRange'](_0x2ad3c2,'forward'),_0x4c8284=_0x46a0aa['nodeBefore']&&_0x418811['isLimit'](_0x46a0aa['nodeBefore'])?null:_0x418811['getNearestSelectionRange'](_0x46a0aa,'backward'),_0x758c47=_0xb069b6['model']['createRange'](_0x4b4f83?_0x4b4f83['start']:_0x2ad3c2,_0x4c8284?_0x4c8284['end']:_0x46a0aa);_0xb069b6['model']['change'](_0x1d1a8b=>{this['markDeletion'](_0x758c47);const _0x3e0d73=_0xb069b6['model']['schema']['getNearestSelectionRange'](_0x758c47['start']);_0x21ccf8['is']('documentSelection')?_0x1d1a8b['setSelection'](_0x3e0d73):_0x21ccf8['setTo'](_0x3e0d73);}),_0x5d04ee['stop']();},{'priority':_0x3bb9bc['normal']+0xa}),_0xb069b6['model']['on']('insertContent',(_0x2d2937,_0x153396)=>{const _0x557030=_0x153396[_0x153396['length']-0x1];_0x557030&&_0x557030['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb069b6['model']['change'](()=>{let _0x4df229=_0xb069b6['model']['insertContent'](_0x153396[0x0],_0x153396[0x1],_0x153396[0x2],{'forceDefaultExecution':!0x0});if(!_0x4df229)return;_0x2d2937['return']=_0x4df229['clone']();const _0x521330=_0x4df229['end']['nodeBefore'],_0x1d6666=_0xb069b6['model']['schema'];_0x521330&&_0x1d6666['isBlock'](_0x521330)&&!_0x1d6666['isObject'](_0x521330)&&(_0x4df229=_0xb069b6['model']['createRange'](_0x4df229['start'],_0xb069b6['model']['createPositionAt'](_0x521330,'end'))),this['markInsertion'](_0x4df229);}),_0x2d2937['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x22c0fe=new O(_0xb069b6,this['_suggestions']);_0xb069b6['commands']['add']('acceptSuggestion',_0x22c0fe),this['enableCommand']('acceptSuggestion');const _0x3ed220=new x(_0xb069b6,this['_suggestions']);_0xb069b6['commands']['add']('discardSuggestion',_0x3ed220),this['enableCommand']('discardSuggestion'),_0xb069b6['commands']['add']('acceptAllSuggestions',new M(_0xb069b6,_0x22c0fe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb069b6['commands']['add']('discardAllSuggestions',new M(_0xb069b6,_0x3ed220,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb069b6['commands']['add']('acceptSelectedSuggestions',new R(_0xb069b6,_0x22c0fe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb069b6['commands']['add']('discardSelectedSuggestions',new R(_0xb069b6,_0x3ed220,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x389e36=_0xb069b6['plugins']['get']('CommentsRepository');this['listenTo'](_0x389e36,'addComment',(_0x4729f4,{threadId:_0x41c4bb})=>{const _0x5ce207=this['_suggestions']['get'](_0x41c4bb);_0x5ce207&&_0x5ce207['commentThread']&&0x1===_0x5ce207['commentThread']['length']&&this['_updateSuggestionData'](_0x41c4bb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x389e36,'removeComment',(_0x4226d5,{threadId:_0x264be0})=>{const _0x148f3f=this['_suggestions']['get'](_0x264be0);_0x148f3f&&_0x148f3f['commentThread']&&!_0x148f3f['commentThread']['length']&&this['_updateSuggestionData'](_0x264be0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x339582){const _0x174d4f=_0x58d7a9([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xde315c=0x3d8d0df,_0x549ef8=0x3df5397^_0xde315c,_0xf39a79=window[_0x58d7a9([0x44,0x61,0x74,0x65])][_0x58d7a9([0x6e,0x6f,0x77])](),_0x9c8ea1=_0x339582[_0x58d7a9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x24fb4d=new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf9bcc6=>{_0x9c8ea1[_0x58d7a9([0x6f,0x6e,0x63,0x65])](_0x58d7a9([0x72,0x65,0x61,0x64,0x79]),_0xf9bcc6);}),_0xc5ee55={[_0x58d7a9([0x6b,0x74,0x79])]:_0x58d7a9([0x45,0x43]),[_0x58d7a9([0x75,0x73,0x65])]:_0x58d7a9([0x73,0x69,0x67]),[_0x58d7a9([0x63,0x72,0x76])]:_0x58d7a9([0x50,0x2d,0x32,0x35,0x36]),[_0x58d7a9([0x78])]:_0x58d7a9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x58d7a9([0x79])]:_0x58d7a9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x58d7a9([0x61,0x6c,0x67])]:_0x58d7a9([0x45,0x53,0x32,0x35,0x36])},_0x1d6b7b=_0x9c8ea1[_0x58d7a9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58d7a9([0x67,0x65,0x74])](_0x58d7a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17ae8b(){let _0x19db02,_0x548e54=null,_0x2d1597=null;try{if(_0x1d6b7b==_0x58d7a9([0x47,0x50,0x4c]))return _0x58d7a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x19db02=_0x3709e9(),!_0x19db02)return _0x58d7a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x19db02[_0x58d7a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d1597=_0x47d144(_0x19db02[_0x58d7a9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x19db02[_0x58d7a9([0x6a,0x74,0x69])])),await _0x26cebe()?_0x57f088()?_0x488230()?_0x58d7a9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d7834()?(_0x19db02[_0x58d7a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58d7a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x548e54=_0x4f27a7(_0x58d7a9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1824f9()):_0x58d7a9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58d7a9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58d7a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58d7a9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x488230(){const _0x1163c9=[_0x58d7a9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58d7a9([0x74,0x72,0x69,0x61,0x6c])][_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x19db02[_0x58d7a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xf39a79/0x3e8:0xe10*_0x549ef8;return _0x19db02[_0x58d7a9([0x65,0x78,0x70])]<_0x1163c9;}function _0x57f088(){const _0x4a442c=_0x19db02[_0x58d7a9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4a442c)return!0x1;if(_0x4a442c[_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58d7a9([0x2a])))return!0x0;if(_0x4a442c[_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58d7a9([0x54,0x43])))return!0x0;if(_0x4a442c[_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58d7a9([0x52,0x54,0x43]))){if(_0x5a2e15())return!0x0;if(_0xbafb6c()||_0x3708fc())return!0x0;}return!0x1;}function _0x4d7834(){const _0x1d2911=_0x19db02[_0x58d7a9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d2911||0x0==_0x1d2911[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x190b17}=new URL(window[_0x58d7a9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d2911[_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x190b17))return!0x0;const _0x5df15d=_0x190b17[_0x58d7a9([0x73,0x70,0x6c,0x69,0x74])](_0x58d7a9([0x2e]));return _0x1d2911[_0x58d7a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x34c80a=>_0x34c80a[_0x58d7a9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58d7a9([0x2a])))[_0x58d7a9([0x6d,0x61,0x70])](_0x2d6270=>_0x2d6270[_0x58d7a9([0x73,0x70,0x6c,0x69,0x74])](_0x58d7a9([0x2e])))[_0x58d7a9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x48da0f=>_0x48da0f[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5df15d[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58d7a9([0x6d,0x61,0x70])](_0x3ecfe1=>Array(_0x5df15d[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3ecfe1[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x58d7a9([0x66,0x69,0x6c,0x6c])](_0x3ecfe1[0x0]===_0x58d7a9([0x2a])?_0x58d7a9([0x2a]):'')[_0x58d7a9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3ecfe1))[_0x58d7a9([0x73,0x6f,0x6d,0x65])](_0x136997=>_0x5df15d[_0x58d7a9([0x65,0x76,0x65,0x72,0x79])]((_0x3dd4f5,_0x705ed0)=>_0x136997[_0x705ed0]===_0x3dd4f5||_0x136997[_0x705ed0]===_0x58d7a9([0x2a])));}function _0x1824f9(){return _0x548e54&&_0x2d1597?new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3f460e,_0x3cde07)=>{_0x548e54[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x3f460e,_0x3cde07),_0x2d1597[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x375b86=>{_0x375b86!=_0x58d7a9([0x56,0x61,0x6c,0x69,0x64])&&_0x3f460e(_0x375b86);},_0x3cde07);}):_0x548e54||_0x2d1597||_0x58d7a9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47d144(_0x4898bb,_0xc92e44){return new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ffcd5=>{if(_0x1633a6())return _0x1ffcd5(_0x58d7a9([0x56,0x61,0x6c,0x69,0x64]));_0x142ba2(),_0x9c8ea1[_0x58d7a9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58d7a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15a803=!0x1;const _0x5f1470=_0x258bf1();function _0x568a33(_0x1609a8){return!!_0x1609a8&&(typeof _0x1609a8===_0x58d7a9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1609a8===_0x58d7a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1609a8[_0x58d7a9([0x74,0x68,0x65,0x6e])]===_0x58d7a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1609a8[_0x58d7a9([0x63,0x61,0x74,0x63,0x68])]===_0x58d7a9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c65dc(_0x3f3398){_0x39e243(_0x3f3398)[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x463c87=>{if(!_0x463c87||_0x463c87[_0x58d7a9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58d7a9([0x6f,0x6b]))return _0x58d7a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d4058(_0x248c01(_0x5f1470+_0xc92e44))!=_0x463c87[_0x58d7a9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58d7a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58d7a9([0x56,0x61,0x6c,0x69,0x64]);})[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x370520=>(_0xb3d85c(),_0x370520),()=>{const _0x3fb485=_0x166026();return null==_0x3fb485?(_0xb3d85c(),_0x58d7a9([0x56,0x61,0x6c,0x69,0x64])):_0x58d7a9(_0xf39a79-_0x3fb485>(0x27d454df^_0xde315c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x1ffcd5)[_0x58d7a9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1ffcd5(_0x58d7a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x29ec82=0x3ee3e5f^_0xde315c;function _0xb3d85c(){const _0x34e82c=_0x58d7a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d4058(_0x248c01(_0x4898bb)),_0x5d1bca=_0x4da58e(_0x4d4058(window[_0x58d7a9([0x4d,0x61,0x74,0x68])][_0x58d7a9([0x63,0x65,0x69,0x6c])](_0xf39a79/_0x29ec82)));window[_0x58d7a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58d7a9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34e82c,_0x5d1bca);}function _0x166026(){const _0x27bf2b=_0x58d7a9([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d4058(_0x248c01(_0x4898bb)),_0x30e2bd=window[_0x58d7a9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58d7a9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x27bf2b);return _0x30e2bd?window[_0x58d7a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4da58e(_0x30e2bd),0x10)*_0x29ec82:null;}function _0x39e243(_0x3c9567){return new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x243329,_0x3c46e1)=>{_0x3c9567[_0x58d7a9([0x74,0x68,0x65,0x6e])](_0x243329,_0x3c46e1),window[_0x58d7a9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c46e1,0x3d9041f^_0xde315c);});}}_0x9c8ea1[_0x58d7a9([0x6f,0x6e])](_0x58d7a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x53c971,_0x4229ef)=>{if(_0x4229ef[0x0]!=_0x4898bb)return _0x1ffcd5(_0x58d7a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4229ef[0x1]={..._0x4229ef[0x1],[_0x58d7a9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5f1470};},{[_0x58d7a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58d7a9([0x68,0x69,0x67,0x68])}),_0x9c8ea1[_0x58d7a9([0x6f,0x6e])](_0x58d7a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58eb6a=>{_0x568a33(_0x58eb6a[_0x58d7a9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15a803=!0x0,_0x4c65dc(_0x58eb6a[_0x58d7a9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58d7a9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58d7a9([0x6c,0x6f,0x77])}),_0x24fb4d[_0x58d7a9([0x74,0x68,0x65,0x6e])](()=>{_0x15a803||_0x1ffcd5(_0x58d7a9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1633a6(){return _0x9c8ea1[_0x58d7a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58d7a9([0x76,0x69,0x65,0x77])][_0x58d7a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58d7a9([0x61,0x75,0x74,0x6f]);}function _0x142ba2(){_0x9c8ea1[_0x58d7a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58d7a9([0x76,0x69,0x65,0x77])][_0x58d7a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58d7a9([0x61,0x75,0x74,0x6f]);}}function _0x4f27a7(_0x48b336){const _0x1cdc00=[new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bfc6c=>setTimeout(_0x2bfc6c,0x3d1ee13^_0xde315c)),_0x24fb4d[_0x58d7a9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f9693=>{let _0x3b0c22=0x0;_0x9c8ea1[_0x58d7a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58d7a9([0x6f,0x6e])](_0x58d7a9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e9d27,_0x441335)=>{_0x441335[0x0][_0x58d7a9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3b0c22++,_0x3b0c22==(0x3d8d537^_0xde315c)&&(_0x5f9693(),_0x5e9d27[_0x58d7a9([0x6f,0x66,0x66])]());});}))];return window[_0x58d7a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58d7a9([0x72,0x61,0x63,0x65])](_0x1cdc00)[_0x58d7a9([0x74,0x68,0x65,0x6e])](()=>_0x48b336);}async function _0x14b85c(){await _0x24fb4d,_0x9c8ea1[_0x58d7a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58d7a9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x279fd2,_0x9c8ea1[_0x58d7a9([0x6d,0x6f,0x64,0x65,0x6c])][_0x58d7a9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x279fd2,_0x9c8ea1[_0x58d7a9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58d7a9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a2e15(){return _0xe025dc(_0x58d7a9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32c92f(_0x58d7a9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58d7a9([0x73,0x74,0x61,0x74,0x65])]==_0x58d7a9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xbafb6c(){return _0xe025dc(_0x58d7a9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x3708fc(){return _0xe025dc(_0x58d7a9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1920e0(_0x2dc332){const _0x3da47f=_0x2fb6b6();_0x9c8ea1[_0x3da47f]=_0x58d7a9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2dc332,_0x2dc332!=_0x58d7a9([0x56,0x61,0x6c,0x69,0x64])&&_0x14b85c();}function _0x2fb6b6(){const _0x54060f=window[_0x58d7a9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58d7a9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58d7a9([0x6e,0x6f,0x77])]())[_0x58d7a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58d7a9([0x2e]),'');let _0x28a3b7=_0x58d7a9([0x52]);for(let _0x497dba=0x0;_0x497dba<_0x54060f[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x497dba+=0x2){let _0x22f2ee=window[_0x58d7a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x54060f[_0x58d7a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x497dba,_0x497dba+0x2));_0x22f2ee>=_0x174d4f[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22f2ee-=_0x174d4f[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28a3b7+=_0x174d4f[_0x22f2ee];}return _0x28a3b7;}function _0x3709e9(){const _0x51fc6d=_0x1d6b7b[_0x58d7a9([0x73,0x70,0x6c,0x69,0x74])](_0x58d7a9([0x2e]));if(0x3!=_0x51fc6d[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3e791e(_0x51fc6d[0x1]);function _0x3e791e(_0x42f860){const _0x4397bd=_0x3c765a(_0x42f860);return _0x4397bd&&_0x3efd3e()?_0x4397bd:null;function _0x3efd3e(){const _0xd9b9ee=_0x4397bd[_0x58d7a9([0x6a,0x74,0x69])],_0x2ff12d=window[_0x58d7a9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd9b9ee[_0x58d7a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd9b9ee[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41e642={..._0x4397bd,[_0x58d7a9([0x6a,0x74,0x69])]:_0xd9b9ee[_0x58d7a9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xd9b9ee[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41e642[_0x58d7a9([0x76,0x63])],_0x248c01(_0x41e642)==_0x2ff12d;}}}async function _0x26cebe(){let _0x4400c6=!0x0;try{const _0x55157b=_0x1d6b7b[_0x58d7a9([0x73,0x70,0x6c,0x69,0x74])](_0x58d7a9([0x2e])),[_0x59d7d8,_0x2bd049,_0x15cd9d]=_0x55157b;return _0x3b84af(_0x59d7d8),await _0x54e8ba(_0x59d7d8,_0x2bd049,_0x15cd9d),_0x4400c6;}catch{return!0x1;}function _0x3b84af(_0x756fc4){const _0x501656=_0x3c765a(_0x756fc4);_0x501656&&_0x501656[_0x58d7a9([0x61,0x6c,0x67])]==_0x58d7a9([0x45,0x53,0x32,0x35,0x36])||(_0x4400c6=!0x1);}async function _0x54e8ba(_0x3e9407,_0xcb6ea0,_0x53b930){const _0x45ee39=window[_0x58d7a9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58d7a9([0x66,0x72,0x6f,0x6d])](_0x3690aa(_0x53b930),_0x523b58=>_0x523b58[_0x58d7a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33bf10=new window[(_0x58d7a9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58d7a9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3e9407+_0x58d7a9([0x2e])+_0xcb6ea0),_0x36d6f7=window[_0x58d7a9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58d7a9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36d6f7)return;const _0x3c810e=await _0x36d6f7[_0x58d7a9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58d7a9([0x6a,0x77,0x6b]),_0xc5ee55,{[_0x58d7a9([0x6e,0x61,0x6d,0x65])]:_0x58d7a9([0x45,0x43,0x44,0x53,0x41]),[_0x58d7a9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58d7a9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58d7a9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36d6f7[_0x58d7a9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58d7a9([0x6e,0x61,0x6d,0x65])]:_0x58d7a9([0x45,0x43,0x44,0x53,0x41]),[_0x58d7a9([0x68,0x61,0x73,0x68])]:{[_0x58d7a9([0x6e,0x61,0x6d,0x65])]:_0x58d7a9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3c810e,_0x45ee39,_0x33bf10)||(_0x4400c6=!0x1);}}function _0x3c765a(_0x5c61a9){return _0x5c61a9[_0x58d7a9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58d7a9([0x65,0x79]))?JSON[_0x58d7a9([0x70,0x61,0x72,0x73,0x65])](_0x3690aa(_0x5c61a9)):null;}function _0x3690aa(_0x1d1d83){return window[_0x58d7a9([0x61,0x74,0x6f,0x62])](_0x1d1d83[_0x58d7a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58d7a9([0x2b]))[_0x58d7a9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58d7a9([0x2f])));}function _0x248c01(_0x642e27){let _0x21326c=0x1505;function _0x2fd56d(_0x5b2897){for(let _0xf21d91=0x0;_0xf21d91<_0x5b2897[_0x58d7a9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf21d91++){const _0x2e5d90=_0x5b2897[_0x58d7a9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf21d91);_0x21326c=(_0x21326c<<0x5)+_0x21326c+_0x2e5d90,_0x21326c&=_0x21326c;}}function _0x8a82cd(_0x4ca32d){Array[_0x58d7a9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ca32d)?_0x4ca32d[_0x58d7a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8a82cd):_0x4ca32d&&typeof _0x4ca32d==_0x58d7a9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58d7a9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ca32d)[_0x58d7a9([0x73,0x6f,0x72,0x74])]()[_0x58d7a9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e106b,_0x5e07fa])=>{_0x2fd56d(_0x3e106b),_0x8a82cd(_0x5e07fa);}):_0x2fd56d(window[_0x58d7a9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ca32d));}return _0x8a82cd(_0x642e27),_0x21326c>>>0x0;}function _0x4d4058(_0x13fa17){return _0x13fa17[_0x58d7a9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58d7a9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58d7a9([0x30]));}function _0x4da58e(_0x137fb9){return _0x137fb9[_0x58d7a9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58d7a9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58d7a9([0x6a,0x6f,0x69,0x6e])]('');}function _0xe025dc(_0x1ef908){return _0x9c8ea1[_0x58d7a9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58d7a9([0x68,0x61,0x73])](_0x1ef908);}function _0x32c92f(_0xa64a9f){return _0x9c8ea1[_0x58d7a9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58d7a9([0x67,0x65,0x74])](_0xa64a9f);}function _0x279fd2(){}function _0x58d7a9(_0x4de78d){return _0x4de78d['map'](_0x2cc21a=>String['fromCharCode'](_0x2cc21a))['join']('');}_0x1920e0(await _0x17ae8b());}(this);}set['adapter'](_0x68502a){if(this['_adapter'])throw new _0x5c3384('track-changes-adapter-already-set',this);this['_adapter']=_0x68502a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x527382=!0x1,toJSON:_0x30900b=!0x1}={}){const _0x429406=[];for(const _0x386a37 of this['_suggestions']['values']())_0x527382&&!_0x386a37['isInContent']||_0x429406['push'](_0x386a37);return _0x30900b?_0x429406['map'](_0x2acb6e=>_0x2acb6e['toJSON']()):_0x429406;}['getSuggestion'](_0x54e613){const _0x4ebaf9=this['_suggestions']['get'](_0x54e613);if(!_0x4ebaf9)throw new _0x5c3384('track-changes-suggestion-not-found',this);return _0x4ebaf9;}['hasSuggestion'](_0x1bf688){return this['_suggestions']['has'](_0x1bf688);}['addSuggestionData'](_0x548b0d){const {authorId:_0x42531b,id:_0x1d9cb5,originalSuggestionId:_0x4c8411,attributes:_0x5953ab}=_0x548b0d,[_0x5bf310,_0x10b7d0]=_0x548b0d['type']['split'](':'),_0x283e85=this['_suggestions']['get'](_0x1d9cb5)||this['_createSuggestion'](_0x5bf310,_0x10b7d0,_0x1d9cb5,_0x42531b,_0x5953ab,_0x4c8411);if(this['_addThreadToSuggestion'](_0x283e85),this['_checkSuggestionCorrectness'](_0x283e85,_0x5bf310,_0x10b7d0||null,_0x42531b),_0x283e85['createdAt']=_0x548b0d['createdAt'],_0x283e85['_isDataLoaded']=!0x0,_0x5953ab&&_0x5953ab['@external']){const _0x402956=_0x5953ab['@external'],_0xb5e6a6=this['_getExternalAuthor'](_0x402956['authorName']);_0x283e85['authoredAt']=_0x402956['createdAt'],_0x283e85['author']=_0xb5e6a6,_0x283e85['isExternal']=!0x0;}else _0x283e85['authoredAt']=_0x548b0d['createdAt'];switch(_0x548b0d['data']&&(_0x283e85['data']=_0x548b0d['data']),_0x548b0d['attributes']&&(_0x283e85['attributes']=_0x548b0d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x283e85['_saved']=!0x0),this['_suggestionState']['get'](_0x283e85)){case'notReady':this['_suggestionState']['set'](_0x283e85,'dataReady');break;case'markerReady':_0x283e85['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x283e85])),this['_refreshSuggestionsChain'](new Set([_0x283e85])),this['_suggestionState']['set'](_0x283e85,'ready'),this['fire']('suggestionLoaded',_0x283e85)):this['_suggestionState']['set'](_0x283e85,'removed');}return _0x283e85;}['acceptSuggestion'](_0xac8622){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4b7a08 of _0xac8622['getAllAdjacentSuggestions']())_0x4b7a08['accept']();});});}['discardSuggestion'](_0x563acf){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d9c8e of _0x563acf['getAllAdjacentSuggestions']())_0x3d9c8e['discard']();});});}['enableCommand'](_0x3692ea,_0xa610ba){const _0xbd5e4a=this['editor']['commands']['get'](_0x3692ea);if(!_0xbd5e4a)throw new _0x5c3384('track-changes-command-not-found',this,{'commandName':_0x3692ea});if(this['_enabledCommands']['has'](_0xbd5e4a))throw new _0x5c3384('track-changes-enable-command-twice',this,{'commandName':_0x3692ea});this['_enabledCommands']['add'](_0xbd5e4a),_0xa610ba&&_0xbd5e4a['on']('execute',(_0x563f31,_0x24fbc4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x24fbc4['length']>0x0&&_0x24fbc4[_0x24fbc4['length']-0x1]&&_0x24fbc4[_0x24fbc4['length']-0x1]['forceDefaultExecution']?_0x24fbc4['pop']():(_0x563f31['return']=_0xa610ba((..._0x1ee6a3)=>_0xbd5e4a['execute'](..._0x1ee6a3,{'forceDefaultExecution':!0x0}),..._0x24fbc4),_0x563f31['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x86080a){let _0x4a55e6,_0x17a120;const _0x4499d3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a55e6=_0x86080a();}catch(_0x1d7e5e){_0x17a120=_0x1d7e5e;}return _0x4499d3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17a120&&_0x5c3384['rethrowUnexpectedError'](_0x17a120,this),_0x4a55e6;}['markInsertion'](_0x1170df,_0x40048d=null,_0xe4c834={}){if(_0x1170df['isCollapsed'])return null;const _0x1468a4=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0xe4c834['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4678f3,meta:_0x47f69b}of this['_findSuggestions'](_0x1170df,'insertion'))if(_0x47f69b['isOwn']){if(!_0x47f69b['isNextTo']){if(_0x47f69b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4678f3,_0xe4c834))continue;return _0x4678f3;}if(sn(_0x4678f3,_0xe4c834))return _0x4678f3;this['_breakSuggestionMarker'](_0x4678f3,_0x1170df['start'],_0x1170df['end']);break;}if(_0x40048d==_0x4678f3['subType']&&sn(_0x4678f3,_0xe4c834)){const _0x1edf2d=_0x4678f3['getFirstRange']();return _0x1edf2d['start']['isEqual'](_0x1170df['end'])?this['_setSuggestionRange'](_0x4678f3,this['_model']['createRange'](_0x1170df['start'],_0x1edf2d['end'])):this['_setSuggestionRange'](_0x4678f3,this['_model']['createRange'](_0x1edf2d['start'],_0x1170df['end'])),_0x4678f3;}}const _0x19f3db=_0x258bf1(),_0x37c6c9=_0x1468a4['id'],_0x22bc1c=_0x40048d?'insertion:'+_0x40048d:'insertion',_0x1d810b=this['_setSuggestionData']({'id':_0x19f3db,'type':_0x22bc1c,'createdAt':new Date(),'authorId':_0x37c6c9,'attributes':_0xe4c834});return this['_addSuggestionMarker'](_0x22bc1c,_0x19f3db,_0x37c6c9,_0x1170df),_0x1d810b;}['markMultiRangeInsertion'](_0x3f3da2,_0x153460='multi',_0x39b15a={}){const _0x1c05bd=this['editor']['plugins']['get']('Users')['me'],_0x3ee54d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x153460,'join');this['_trackingSessionId']&&(_0x39b15a['trackingSessionId']=this['_trackingSessionId']);for(const _0x1b446 of this['getSuggestions']())if(_0x1b446['author']['id']==_0x1c05bd['id']&&'insertion'==_0x1b446['type']&&_0x1b446['subType']==_0x153460&&sn(_0x1b446,_0x39b15a)&&(_0x3ee54d(_0x1b446['getRanges'](),_0x3f3da2)||_0x3ee54d(_0x3f3da2,_0x1b446['getRanges']()))){for(const _0x5a013a of _0x3f3da2)_0x1b446['addRange'](_0x5a013a);return _0x1b446;}for(const {suggestion:_0x375ceb,meta:_0x5d98ab}of this['_findSuggestions'](_0x3f3da2,'insertion')){if(!_0x5d98ab['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5d98ab['containsRangeInObject'])continue;if(!sn(_0x375ceb,_0x39b15a))continue;let _0x3d37ce=!0x0;for(const _0x325711 of _0x375ceb['getRanges']())for(const _0x17d88c of _0x3f3da2)if(!_0x325711['containsRange'](_0x17d88c)){_0x3d37ce=!0x1;break;}if(_0x3d37ce)return _0x375ceb;}const _0x4b194f=_0x258bf1(),_0x1454de=_0x1c05bd['id'],_0x21b1af='insertion:'+_0x153460,_0xde17f4=this['_setSuggestionData']({'id':_0x4b194f,'type':_0x21b1af,'createdAt':new Date(),'authorId':_0x1454de,'attributes':_0x39b15a});for(const _0x10552b of _0x3f3da2)this['_addSuggestionMarker'](_0x21b1af,_0x4b194f,_0x1454de,_0x10552b,T['getMultiRangeId']());return _0xde17f4;}['markInlineFormat'](_0x5c808f,_0x4c6453,_0x5c3195=null,_0x1fa653={}){if(_0x5c3195=_0x5c3195||Ht(_0x4c6453),_0x5c808f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1fa653['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f0d04=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c3195,'accept');return this['forceDefaultExecution'](()=>_0x1f0d04([_0x5c808f],_0x4c6453,_0x1fa653)),null;}const _0x226556=this['editor']['plugins']['get']('Users')['me'],_0x20b01f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x564f7b,meta:_0x19e70f}of this['_findSuggestions'](_0x5c808f,'insertion'))_0x19e70f['isOwn']&&!_0x19e70f['isInsideObject']&&_0x20b01f['push'](..._0x564f7b['getRanges']());}const _0x52c772=function(_0x58bd6e,_0x2a7d38){const _0x338105=[];for(const _0x148414 of _0x2a7d38){const _0x2fa242=_0x58bd6e['getIntersection'](_0x148414);_0x2fa242&&_0x338105['push'](_0x2fa242);}return _0x338105;}(_0x5c808f,_0x20b01f),_0x3b9a89=function(_0x48bbb9,_0x27d891){const _0xb91af=[_0x48bbb9];for(const _0xdd6934 of _0x27d891){let _0x4b3d9c=0x0;for(;_0x4b3d9c<_0xb91af['length'];){const _0xbe5269=_0xb91af[_0x4b3d9c]['getDifference'](_0xdd6934);_0xb91af['splice'](_0x4b3d9c,0x1,..._0xbe5269),_0x4b3d9c+=_0xbe5269['length'];}}return _0xb91af;}(_0x5c808f,_0x20b01f);_0x52c772['length']&&this['_model']['change'](()=>{for(const _0x49d7a0 of _0x52c772){const _0x2bfaf7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5c3195,'accept');this['forceDefaultExecution'](()=>_0x2bfaf7([_0x49d7a0],_0x4c6453,_0x1fa653));}});for(const _0x596697 of _0x3b9a89){let _0xdb280b=null,_0x5d4ac9=_0x596697['start'],_0x5cf570=_0x596697['end'];for(const {suggestion:_0x4dbbc7,meta:_0x200070}of this['_findSuggestions'](_0x596697,'formatInline')){if(!_0x200070['isOwn'])continue;if(_0x4dbbc7['subType']!=_0x5c3195)continue;if(!sn(_0x4dbbc7,_0x1fa653))continue;const _0x53cc6a=_0x4dbbc7['getFirstRange']();if(_0x53cc6a['containsRange'](_0x596697,!0x0))return null;_0x5d4ac9=_0x5d4ac9['isBefore'](_0x53cc6a['start'])?_0x5d4ac9:_0x53cc6a['start'],_0x5cf570=_0x5cf570['isAfter'](_0x53cc6a['end'])?_0x5cf570:_0x53cc6a['end'],_0xdb280b?_0x53cc6a['start']['isBefore'](_0xdb280b['getFirstRange']()['start'])?(_0xdb280b['removeMarkers'](),_0xdb280b=_0x4dbbc7):_0x4dbbc7['removeMarkers']():_0xdb280b=_0x4dbbc7;}const _0x305bfe=this['_model']['createRange'](_0x5d4ac9,_0x5cf570);if(_0xdb280b)this['_setSuggestionRange'](_0xdb280b,_0x305bfe);else{const _0x3671b9=_0x258bf1(),_0x493b4d=_0x226556['id'];this['_setSuggestionData']({'id':_0x3671b9,'type':'formatInline:'+_0x5c3195,'data':_0x4c6453,'createdAt':new Date(),'authorId':_0x493b4d,'attributes':_0x1fa653}),this['_addSuggestionMarker']('formatInline:'+_0x5c3195,_0x3671b9,_0x493b4d,_0x305bfe);}}return null;}['markBlockFormat'](_0xf07e22,_0x56a77c,_0x4596e7=[],_0xbf427e=null,_0x4a4549={}){_0x56a77c['formatGroupId']||(_0x56a77c['formatGroupId']=_0x56a77c['commandName']),_0x56a77c['multipleBlocks']=_0xf07e22['is']('range'),_0xbf427e=_0xbf427e||Ht(_0x56a77c);const _0x484b16=_0x4596e7['map'](_0x158a6b=>tn(_0x158a6b,this['_model'])),_0x3cbc86=_0xf07e22['is']('range')?_0xf07e22:tn(_0xf07e22,this['_model']);if(this['_trackingSessionId']&&(_0x4a4549['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x26df3c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbf427e,'accept');return this['forceDefaultExecution'](()=>_0x26df3c([_0x3cbc86],_0x56a77c,_0x4a4549)),null;}_0x484b16['push'](_0x3cbc86);let _0x3d4390=!0x0;for(const _0x467c98 of _0x484b16)if(!this['_rangeIsInLocalUserInsertion'](_0x467c98)){_0x3d4390=!0x1;break;}if(_0x3d4390&&'always'!==this['_trackFormatChanges']){const _0x77489=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xbf427e,'accept');return this['forceDefaultExecution'](()=>_0x77489([_0x3cbc86],_0x56a77c,_0x4a4549)),null;}let _0x33354a=null,_0x486f45=_0x3cbc86['start'],_0x240964=_0x3cbc86['end'];for(const {suggestion:_0xbc2311,meta:_0x3c5a0a}of this['_findSuggestions'](_0x3cbc86,'formatBlock')){if(!_0x3c5a0a['isOwn'])continue;if(_0x3c5a0a['isNextTo']||_0x3c5a0a['containsRangeInObject']||_0x3c5a0a['isInsideObject'])continue;if(_0xbc2311['data']['formatGroupId']!=_0x56a77c['formatGroupId'])continue;if(!sn(_0xbc2311,_0x4a4549))continue;const _0x23d19e=_0xbc2311['getFirstRange']();if(_0xbc2311['subType']==_0xbf427e){if(_0x23d19e['containsRange'](_0x3cbc86,!0x0))return null;_0x486f45=_0x486f45['isBefore'](_0x23d19e['start'])?_0x486f45:_0x23d19e['start'],_0x240964=_0x240964['isAfter'](_0x23d19e['end'])?_0x240964:_0x23d19e['end'],_0x33354a?_0x23d19e['start']['isBefore'](_0x33354a['getFirstRange']()['start'])?(_0x33354a['removeMarkers'](),_0x33354a=_0xbc2311):_0xbc2311['removeMarkers']():_0x33354a=_0xbc2311;}else{const _0x542d80=_0x3cbc86['getIntersection'](_0x23d19e);this['_cutOutSuggestionMarker'](_0xbc2311,_0x542d80);}}const _0x570d93=this['editor']['plugins']['get']('Users')['me'],_0x3035b9=_0x258bf1(),_0x2900c8=_0x570d93['id'];if(_0x33354a)return this['_setSuggestionRange'](_0x33354a,this['_model']['createRange'](_0x486f45,_0x240964)),_0x33354a;{const _0x38567d=this['_setSuggestionData']({'id':_0x3035b9,'type':'formatBlock:'+_0xbf427e,'data':_0x56a77c,'createdAt':new Date(),'authorId':_0x2900c8,'attributes':_0x4a4549});return this['_addSuggestionMarker']('formatBlock:'+_0xbf427e,_0x3035b9,_0x2900c8,this['_model']['createRange'](_0x486f45,_0x240964)),_0x38567d;}}['markMultiRangeBlockFormat'](_0x4e4a12,_0xa04570,_0x599cac=[],_0x139add=null,_0x14864e={}){_0xa04570['formatGroupId']||(_0xa04570['formatGroupId']=_0xa04570['commandName']);const _0x3c5e2c=_0x4e4a12[0x0];_0xa04570['multipleBlocks']=_0x3c5e2c['is']('range'),_0x139add=_0x139add||Ht(_0xa04570);const _0x277333=_0x599cac['map'](_0xcf397f=>tn(_0xcf397f,this['_model'])),_0x203495=_0x3c5e2c['is']('range')?_0x4e4a12:_0x4e4a12['map'](_0x54effb=>tn(_0x54effb,this['_model']));if(this['_trackingSessionId']&&(_0x14864e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x393ebe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x139add,'accept');return this['forceDefaultExecution'](()=>_0x393ebe(_0x203495,_0xa04570,_0x14864e)),null;}_0x277333['push'](..._0x203495);let _0x183d59=!0x0;for(const _0x235148 of _0x277333)if(!this['_rangeIsInLocalUserInsertion'](_0x235148)){_0x183d59=!0x1;break;}if(_0x183d59&&'always'!==this['_trackFormatChanges']){const _0xe4da78=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x139add,'accept');return this['forceDefaultExecution'](()=>_0xe4da78(_0x203495,_0xa04570,_0x14864e)),null;}const _0xe46bcb=this['editor']['plugins']['get']('Users')['me'];for(const _0x471b27 of this['getSuggestions']()){const _0x2238c0=_0x471b27['data'];if(_0x471b27['author']['id']!=_0xe46bcb['id'])continue;if('formatBlock'!=_0x471b27['type']||_0x2238c0['formatGroupId']!=_0xa04570['formatGroupId'])continue;if(!sn(_0x471b27,_0x14864e))continue;const _0x1361a9=_0x471b27['subType']==_0x139add;for(let _0xc36530=0x0;_0xc36530<_0x203495['length'];_0xc36530++){const _0x361e02=_0x203495[_0xc36530];for(const _0x2f2aa4 of _0x471b27['getMarkers']()){const _0x4d0489=_0x2f2aa4['getRange']();if(_0x361e02['isEqual'](_0x4d0489)){_0x1361a9?(_0x203495['splice'](_0xc36530,0x1),_0xc36530--):_0x471b27['removeMarker'](_0x2f2aa4['name']);break;}}}}if(0x0==_0x203495['length'])return null;const _0x3d3a3b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x139add,'join');for(const _0x2e0b19 of this['getSuggestions']()){const _0x1a9815=_0x2e0b19['data'];if(_0x2e0b19['author']['id']==_0xe46bcb['id']&&('formatBlock'==_0x2e0b19['type']&&_0x1a9815['formatGroupId']==_0xa04570['formatGroupId']&&_0x2e0b19['subType']==_0x139add&&sn(_0x2e0b19,_0x14864e)&&(_0x3d3a3b(_0x2e0b19['getRanges'](),_0x203495)||_0x3d3a3b(_0x203495,_0x2e0b19['getRanges']())))){for(const _0x292f6e of _0x203495)_0x2e0b19['addRange'](_0x292f6e);return _0x2e0b19;}}const _0x5a53b0=_0x258bf1(),_0x178476=_0xe46bcb['id'],_0x10390c='formatBlock:'+_0x139add,_0x4e8b5f=this['_setSuggestionData']({'id':_0x5a53b0,'type':_0x10390c,'data':_0xa04570,'createdAt':new Date(),'authorId':_0x178476,'attributes':_0x14864e});for(const _0x4c5b2d of _0x203495)this['_addSuggestionMarker'](_0x10390c,_0x5a53b0,_0x178476,_0x4c5b2d,T['getMultiRangeId']());return _0x4e8b5f;}['markDeletion'](_0x144b23,_0x57d763=null,_0x3d80eb={}){if(_0x144b23['isCollapsed'])return null;const _0x333a4a=this['editor']['plugins']['get']('Users')['me'],_0x5535b5=new _0x2b0079(_0x144b23['start'],_0x144b23['end']);this['_trackingSessionId']&&(_0x3d80eb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x57c3d2,meta:_0x3a3908}of this['_findSuggestions'](_0x5535b5,'insertion'))if(_0x3a3908['isOwn']&&!_0x3a3908['isNextTo']){if(_0x57c3d2['isMultiRange']){const _0x3b67cc=_0x57c3d2['getRanges']()['filter'](_0x3cb0b0=>'$graveyard'!=_0x3cb0b0['root']['rootName']);_0x3b67cc['every'](_0x1e2064=>_0x5535b5['containsRange'](_0x1e2064,!0x0))&&_0x57c3d2['discard']();if(_0x3b67cc['some'](_0x5a4efb=>_0x5a4efb['containsRange'](_0x5535b5,!0x0))){const _0x10731e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57d763,'accept');return this['forceDefaultExecution'](()=>_0x10731e([_0x5535b5],null,_0x3d80eb)),null;}}else{const _0x10078a=_0x5535b5['getIntersection'](_0x57c3d2['getFirstRange']());null!==_0x10078a&&_0x57c3d2['_onDiscard']([_0x10078a],null,_0x3d80eb);}}if(_0x5535b5['detach'](),_0x5535b5['isCollapsed']||'$graveyard'==_0x5535b5['root']['rootName'])return null;let _0xfba795=null,_0x1f8c4d=_0x5535b5['start'],_0x128a7c=_0x5535b5['end'];const _0x32fb9f=this['_findSuggestions'](_0x5535b5,'deletion');for(const {suggestion:_0x199ad6,meta:_0x41df16}of _0x32fb9f){const _0x5a1d0a=this['_model']['createRange'](_0x1f8c4d,_0x128a7c);if(_0x41df16['isOwn']&&(this['_mergeNestedSuggestions']||!_0x41df16['containsRangeInObject']&&!_0x41df16['isInsideObject'])){if(_0x199ad6['isMultiRange']){if(!sn(_0x199ad6,_0x3d80eb))continue;let _0x24866e=!0x0;for(const _0x5485cd of _0x199ad6['getRanges']()){if(_0x5485cd['containsRange'](_0x5a1d0a,!0x0))return _0x199ad6;_0x5a1d0a['containsRange'](_0x5485cd)||(_0x24866e=!0x1);}_0x24866e&&_0x199ad6['discard']();}else{const _0x390c96=_0x199ad6['getFirstRange']();if(_0x390c96['containsRange'](_0x5a1d0a,!0x0))return _0x199ad6;if(!sn(_0x199ad6,_0x3d80eb)){_0x5a1d0a['containsRange'](_0x390c96)?_0x199ad6['removeMarkers']():_0x390c96['containsPosition'](_0x1f8c4d)?_0x1f8c4d=_0x390c96['end']:_0x390c96['containsPosition'](_0x128a7c)&&(_0x128a7c=_0x390c96['start']);continue;}_0x1f8c4d=_0x1f8c4d['isBefore'](_0x390c96['start'])?_0x1f8c4d:_0x390c96['start'],_0x128a7c=_0x128a7c['isAfter'](_0x390c96['end'])?_0x128a7c:_0x390c96['end'],_0x3d80eb=Object['assign']({},_0x199ad6['attributes']),_0xfba795?_0x390c96['start']['isBefore'](_0xfba795['getFirstRange']()['start'])?(_0xfba795['removeMarkers'](),_0xfba795=_0x199ad6):_0x199ad6['removeMarkers']():_0xfba795=_0x199ad6;}}}if(_0xfba795)return this['_setSuggestionRange'](_0xfba795,this['_model']['createRange'](_0x1f8c4d,_0x128a7c)),_0xfba795;{const _0x5ba418=_0x258bf1(),_0x408548=this['_model']['createRange'](_0x1f8c4d,_0x128a7c),_0x469cfe=_0x333a4a['id'],_0x48362a=_0x57d763?'deletion:'+_0x57d763:'deletion',_0x4b43f6=this['_setSuggestionData']({'id':_0x5ba418,'type':_0x48362a,'createdAt':new Date(),'authorId':_0x469cfe,'attributes':_0x3d80eb});return this['_addSuggestionMarker'](_0x48362a,_0x5ba418,_0x469cfe,_0x408548),_0x4b43f6;}}['markMultiRangeDeletion'](_0xa4b44a,_0x1ec60e='multi',_0x34ceea={}){const _0x314d3a=this['editor']['plugins']['get']('Users')['me'],_0x40c8df=_0xa4b44a['map'](_0x33c9cd=>new _0x2b0079(_0x33c9cd['start'],_0x33c9cd['end'])),_0x573755=new Set();this['_trackingSessionId']&&(_0x34ceea['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4686d5,meta:_0x3db2a8}of this['_findSuggestions'](_0x40c8df,'insertion'))_0x3db2a8['isOwn']&&!_0x3db2a8['isNextTo']&&_0x573755['add'](_0x4686d5);for(const _0x3903d6 of _0x573755)if(_0x3903d6['isMultiRange']){const _0x51dd20=_0x3903d6['getRanges']();(!_0x3903d6['attributes']||!_0x3903d6['attributes']['skipNestingCheck'])&&(_0x51dd20['every'](_0x59ef4e=>_0x40c8df['some'](_0x49f89c=>_0x49f89c['containsRange'](_0x59ef4e,!0x0)))&&_0x3903d6['discard']());if(_0x40c8df['every'](_0x54c821=>_0x51dd20['some'](_0x438e92=>_0x438e92['containsRange'](_0x54c821,!0x0)))){const _0x4b5b96=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ec60e,'accept');return this['forceDefaultExecution'](()=>_0x4b5b96(_0xa4b44a,null,_0x34ceea)),null;}}else{const _0x3645a5=_0x3903d6['getFirstRange']();_0x40c8df['some'](_0x3d29c4=>_0x3d29c4['containsRange'](_0x3645a5,!0x0))&&_0x3903d6['discard']();if(_0x40c8df['every'](_0x4e15ab=>_0x3645a5['containsRange'](_0x4e15ab,!0x0))){const _0x4c9c89=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ec60e,'accept');return this['forceDefaultExecution'](()=>_0x4c9c89(_0x40c8df,null,_0x34ceea)),null;}}const _0x5c56af=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1ec60e,'join');let _0x15d7e1=null;for(const _0x426408 of this['getSuggestions']())if(_0x426408['author']['id']==_0x314d3a['id']&&_0x426408['isInContent']&&'deletion'==_0x426408['type']&&_0x426408['subType']==_0x1ec60e&&sn(_0x426408,_0x34ceea)&&(_0x5c56af(_0x426408['getRanges'](),_0x40c8df)||_0x5c56af(_0x40c8df,_0x426408['getRanges']()))){if(_0x15d7e1){if(_0x426408['commentThread']&&_0x426408['commentThread']['length'])continue;for(const _0x4a1cc1 of _0x426408['getRanges']())_0x15d7e1['isIntersectingWithRange'](_0x4a1cc1)||_0x15d7e1['addRange'](_0x4a1cc1);_0x426408['removeMarkers']();}else{_0x15d7e1=_0x426408;for(const _0xb29191 of _0x40c8df)_0x426408['isIntersectingWithRange'](_0xb29191)||_0x426408['addRange'](_0xb29191);}}if(_0x15d7e1)return _0x15d7e1;_0x573755['clear']();for(const {suggestion:_0x556871,meta:_0x51f65f}of this['_findSuggestions'](_0x40c8df,'deletion'))_0x51f65f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x51f65f['containsRangeInObject']&&!_0x51f65f['isInsideObject'])&&sn(_0x556871,_0x34ceea)&&_0x573755['add'](_0x556871);for(const _0x1aefe3 of _0x573755){const _0x244c3f=_0x1aefe3['getRanges']();if(!_0x34ceea||!_0x34ceea['skipNestingCheck']){if(_0x40c8df['every'](_0x3d26e8=>_0x244c3f['some'](_0xc620ae=>_0xc620ae['containsRange'](_0x3d26e8,!0x0))))return _0x1aefe3;}(!_0x1aefe3['attributes']||!_0x1aefe3['attributes']['skipNestingCheck'])&&(_0x244c3f['every'](_0x32c248=>_0x40c8df['some'](_0x124983=>_0x124983['containsRange'](_0x32c248,!0x0)))&&_0x1aefe3['discard']());}const _0x243b67=_0x258bf1(),_0x1000d2=_0x314d3a['id'],_0xe81fcc='deletion:'+_0x1ec60e,_0x4007cd=this['_setSuggestionData']({'id':_0x243b67,'type':_0xe81fcc,'createdAt':new Date(),'authorId':_0x1000d2,'attributes':_0x34ceea});for(const _0x347fe6 of _0x40c8df)_0x347fe6['detach'](),_0x347fe6['isCollapsed']||'$graveyard'==_0x347fe6['root']['rootName']||this['_addSuggestionMarker'](_0xe81fcc,_0x243b67,_0x1000d2,_0x347fe6,T['getMultiRangeId']());return _0x4007cd;}['markAttributeChange'](_0x4293c1,_0x344eb8,_0x4cac0a,_0x3e2755,_0x53612a){if(_0x4293c1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x141b5d=this['editor']['plugins']['get']('Users')['me']['id'],_0x19d357=Array['from'](this['_suggestions']['values']())['filter'](_0x1a4e15=>'attribute'==_0x1a4e15['type']&&_0x1a4e15['data']['key']==_0x344eb8&&_0x1a4e15['isIntersectingWithRange'](_0x4293c1));if(this['_trackingSessionId']&&(_0x53612a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x28db6f=this['_findSuggestions'](_0x4293c1,'insertion')['filter'](({meta:_0x4bbe35})=>_0x4bbe35['isOwn']&&!_0x4bbe35['isInsideObject']&&!_0x4bbe35['isNextTo'])['map'](({suggestion:_0x56a9d2})=>_0x56a9d2);_0x19d357['unshift'](..._0x28db6f);}const _0x59f1c3=new Map([[_0x4293c1,_0x4cac0a]]);for(const _0x27c7df of _0x19d357){const _0x303adf='attribute'==_0x27c7df['type']?_0x27c7df['data']['oldValue']:void 0x0,_0x4f8bb2=_0x27c7df['getFirstRange'](),_0xa7f0d7=Array['from'](_0x59f1c3['keys']())['find'](_0x5f595b=>_0x5f595b['isIntersecting'](_0x4f8bb2));if(!_0xa7f0d7)continue;const _0x3b6a57=_0xa7f0d7['getDifference'](_0x4f8bb2);this['_isBlockAttribute'](_0x344eb8)&&'insertion'==_0x27c7df['type']&&0x0!=_0x3b6a57['length']||(_0x59f1c3['delete'](_0xa7f0d7),_0x3b6a57['forEach'](_0x497e11=>{_0x59f1c3['set'](_0x497e11,_0x4cac0a);}),'insertion'!=_0x27c7df['type']&&_0x303adf!=_0x3e2755&&_0x59f1c3['set'](_0xa7f0d7['getIntersection'](_0x4f8bb2),_0x303adf));}const _0x49ff38=[];for(const [_0x25c8d8,_0x1d3fb2]of _0x59f1c3){const _0x5ddd21=_0x258bf1(),_0x331346={'key':_0x344eb8,'oldValue':_0x1d3fb2,'newValue':_0x3e2755};_0x344eb8['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':_0x344eb8});const _0xcb146d=('attribute:'+(_0x344eb8+'|'+Ht({'newValue':_0x3e2755})))['substring'](0x0,0x3c),_0x25f2b7=this['_setSuggestionData']({'id':_0x5ddd21,'type':_0xcb146d,'data':_0x331346,'createdAt':new Date(),'authorId':_0x141b5d,'attributes':_0x53612a});_0x49ff38['push'](_0x25f2b7),this['_addSuggestionMarker'](_0xcb146d,_0x5ddd21,_0x141b5d,_0x25c8d8);}return _0x49ff38;}['enableDefaultAttributesIntegration'](_0x124984){this['enableCommand'](_0x124984,(_0x1d8cb4,..._0x5e6bbb)=>{this['recordAttributeChanges'](()=>{_0x1d8cb4(..._0x5e6bbb);});});}['registerBlockAttribute'](_0x3cf3d7){this['editor']['plugins']['get'](_0xd09ee)['registerBlockAttribute'](_0x3cf3d7);}['registerInlineAttribute'](_0x3be748){this['editor']['plugins']['get'](_0xd09ee)['registerInlineAttribute'](_0x3be748);}['startTrackingSession'](_0x3e8adb){return this['_trackingSessionId']=void 0x0!==_0x3e8adb?_0x3e8adb:_0x258bf1(),this['_trackingSessionId'];}['_getAttributeKey'](_0x29d209){return'attribute'==_0x29d209['type']?_0x29d209['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x27cb60){if(0x0==_0x27cb60['length'])return;const _0x26eae5=this['editor'],_0x3ae459=_0x26eae5['plugins']['get'](_0x22d3ab),_0x1e3e83=[];_0x26eae5['model']['change'](_0x429417=>{for(let _0x1549a0=0x0;_0x1549a0<_0x27cb60['length'];_0x1549a0++){const _0x54a88e=_0x27cb60[_0x1549a0];if(_0x54a88e['baseVersion']=_0x26eae5['model']['document']['version'],_0x54a88e['isDocumentOperation']=!0x0,_0x3ae459['isMarkedRemoveOperation'](_0x54a88e)){const _0x95f910=_0x1d7ef6(_0x54a88e['newRange'],_0x26eae5['model']);_0x1e3e83['unshift'](_0x2b0079['fromRange'](_0x95f910));}else switch(_0x54a88e['type']){case'rename':{const _0x2a424f=_0x54a88e['oldName'],_0x420d6e=_0x54a88e['newName'];if(_0x2a424f==_0x420d6e)break;_0x429417['batch']['addOperation'](_0x54a88e),_0x26eae5['model']['applyOperation'](_0x54a88e);const _0x49eec9='$elementName',_0x2aa72c=_0x54a88e['position'],_0x3208e8=_0x26eae5['model']['createRange'](_0x2aa72c,_0x26eae5['model']['createPositionAt'](_0x2aa72c['nodeAfter'],'end'));this['markAttributeChange'](_0x3208e8,_0x49eec9,_0x2a424f,_0x420d6e,{'groupId':_0x258bf1()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x4e403f=_0x54a88e['oldValue'],_0x3cd782=_0x54a88e['newValue'];if(_0x4e403f==_0x3cd782)break;_0x429417['batch']['addOperation'](_0x54a88e),_0x26eae5['model']['applyOperation'](_0x54a88e);const _0x5ad690=_0x54a88e['key'];if(!this['_isRegisteredAttribute'](_0x5ad690))break;const _0x2965f5=_0x1d7ef6(_0x54a88e['range'],_0x26eae5['model']);this['markAttributeChange'](_0x2965f5,_0x5ad690,_0x4e403f,_0x3cd782,{'groupId':_0x258bf1()});break;}case'insert':{_0x429417['batch']['addOperation'](_0x54a88e),_0x26eae5['model']['applyOperation'](_0x54a88e);if(_0x27cb60[_0x1549a0+0x1]&&'move'==_0x27cb60[_0x1549a0+0x1]['type'])break;const _0x59d366=_0x54a88e['position'],_0x36328e=_0x54a88e['howMany'],_0x2edd21=_0x1d7ef6(_0x26eae5['model']['createRange'](_0x59d366,_0x59d366['getShiftedBy'](_0x36328e)),_0x26eae5['model']);this['markInsertion'](_0x2edd21);break;}case'split':{_0x429417['batch']['addOperation'](_0x54a88e),_0x26eae5['model']['applyOperation'](_0x54a88e);const _0x2cfa09=_0x54a88e['splitPosition'],_0x3deacf=_0x54a88e['moveTargetPosition'];this['markInsertion'](_0x26eae5['model']['createRange'](_0x2cfa09,_0x3deacf));break;}case'move':case'remove':_0x429417['batch']['addOperation'](_0x54a88e),_0x26eae5['model']['applyOperation'](_0x54a88e);}}for(const _0x386e42 of _0x1e3e83)_0x386e42['detach'](),this['markDeletion'](_0x386e42);});}['_setSuggestionRange'](_0x2c1989,_0x47b2b4){const _0x382eb5=_0x2c1989['getFirstMarker']();this['_model']['change'](_0x1ca730=>{_0x1ca730['updateMarker'](_0x382eb5,{'range':_0x47b2b4});});}['_addThreadToSuggestion'](_0x402177){const _0x2e83a0=_0x402177['id'],_0x1f09a5=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2e83a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f09a5,'threadId':_0x2e83a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2d7fe9=this['_commentsRepository']['getCommentThread'](_0x2e83a0);_0x2d7fe9['unbind']('isRemovable'),_0x2d7fe9['isRemovable']=!0x1,_0x402177['commentThread']=_0x2d7fe9;}['_checkSuggestionCorrectness'](_0x584bea,_0x347528,_0x437348,_0x257ec0){if(_0x584bea['type']!=_0x347528||_0x584bea['subType']!=_0x437348||_0x584bea['creator']['id']!=_0x257ec0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5c3384('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x465422,_0x36aea9){const _0x3f7163=_0x465422['getFirstRange']();if(_0x36aea9['isEqual'](_0x3f7163))_0x465422['removeMarkers']();else{if(_0x3f7163['containsRange'](_0x36aea9)){const _0x4b5ed6=this['_model']['createPositionAt'](_0x36aea9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x465422,this['_model']['createRange'](_0x3f7163['start'],_0x4b5ed6));const _0x4b44e6=_0x258bf1(),_0x3b3552=_0x465422['creator']['id'],_0x527d3c=_0x465422['type']+':'+_0x465422['subType'];this['_setSuggestionData']({'id':_0x4b44e6,'type':_0x527d3c,'createdAt':new Date(),'authorId':_0x3b3552,'data':_0x465422['data'],'attributes':_0x465422['attributes']});const _0x4fbac6=this['_model']['createPositionAt'](_0x36aea9['end']['parent'],'after'),_0x586c76=this['_model']['createRange'](_0x4fbac6,_0x3f7163['end']);this['_addSuggestionMarker'](_0x527d3c,_0x4b44e6,_0x3b3552,_0x586c76);}else{if(_0x3f7163['containsPosition'](_0x36aea9['start'])){const _0x5d1618=this['_model']['createPositionAt'](_0x36aea9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x465422,this['_model']['createRange'](_0x3f7163['start'],_0x5d1618));}else{const _0x4880ad=this['_model']['createPositionAt'](_0x36aea9['end']['parent'],'after');this['_setSuggestionRange'](_0x465422,this['_model']['createRange'](_0x4880ad,_0x3f7163['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4e6e1b){for(const {suggestion:_0x28ed2a,meta:_0x335741}of this['_findSuggestions'](_0x4e6e1b,'insertion')){if(!_0x335741['isOwn'])continue;const _0x1f7681=_0x28ed2a['getRanges']();for(const _0x39a57b of _0x1f7681)if(!_0x4e6e1b['getDifference'](_0x39a57b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3558f2){return this['editor']['plugins']['get']('Users')['getUser'](_0x3558f2);}['_getExternalAuthor'](_0x23b616){const _0x5ef419=this['editor']['plugins']['get']('Users'),_0x597c11=_0x13590a('external:'+_0x23b616),_0x4af52f=_0x5ef419['getUser'](_0x597c11);return _0x4af52f||_0x5ef419['addUser']({'id':_0x597c11,'name':_0x23b616});}['_createSuggestion'](_0xd7e430,_0x577400,_0x54bb1d,_0x235cf7,_0x51a4c2,_0x548912){const _0x57b8ad=this['_getAuthorFromId'](_0x235cf7);if(!_0x57b8ad)throw new _0x5c3384('track-changes-user-not-found',this,{'authorId':_0x235cf7,'suggestionId':_0x54bb1d});const _0x56d5c2=this['_suggestionFactory']['buildSuggestion'](_0xd7e430,_0x577400,_0x54bb1d,_0x57b8ad,_0x51a4c2,_0x5b4d15=>{this['_updateSuggestionData'](_0x54bb1d,{'attributes':_0x5b4d15});const _0x2d248b=this['getSuggestion'](_0x54bb1d);this['_joinWithAdjacentSuggestions'](new Set([_0x2d248b])),this['_refreshSuggestionsChain'](new Set([_0x2d248b]));},_0x548912);return this['listenTo'](_0x56d5c2,'accept',()=>{this['_updateSuggestionData'](_0x54bb1d,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x56d5c2,'discard',()=>{this['_updateSuggestionData'](_0x54bb1d,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x54bb1d,_0x56d5c2),this['_suggestionState']['set'](_0x56d5c2,'notReady'),_0x56d5c2;}['_splitMarkerName'](_0x2790e5){return _0x256875(_0x2790e5);}['_breakSuggestionMarker'](_0x13ab9c,_0x31c2b7,_0x46cca4){const _0x4f151a=_0x13ab9c['getFirstRange'](),_0x797249=_0x4f151a['start'],_0x13268e=_0x4f151a['end'];this['_setSuggestionRange'](_0x13ab9c,this['_model']['createRange'](_0x797249,_0x31c2b7));const _0x4a7df0=_0x258bf1(),_0xeec8cc=_0x13ab9c['creator']['id'],_0x1823f4=_0x13ab9c['type']+(_0x13ab9c['subType']?':'+_0x13ab9c['subType']:'');this['_setSuggestionData']({'id':_0x4a7df0,'type':_0x1823f4,'createdAt':new Date(),'authorId':_0xeec8cc,'originalSuggestionId':_0x13ab9c['_originalSuggestionId']||_0x13ab9c['id'],'attributes':_0x13ab9c['attributes'],'data':_0x13ab9c['data']});const _0x21e0a6=this['_getAttributeKey'](_0x13ab9c);('formatBlock'==_0x13ab9c['type']||_0x21e0a6&&this['_isBlockAttribute'](_0x21e0a6))&&(_0x46cca4=this['_model']['createPositionBefore'](_0x46cca4['parent'])),this['_addSuggestionMarker'](_0x1823f4,_0x4a7df0,_0xeec8cc,this['_model']['createRange'](_0x46cca4,_0x13268e));}['_findSuggestions'](_0x527580,_0x30ed9f=null){const _0x2d297f=[],_0x386d7a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x527580)||(_0x527580=[_0x527580]);for(const _0x550c4e of this['getSuggestions']()){if(!_0x550c4e['isInContent'])continue;if(_0x30ed9f&&_0x550c4e['type']!=_0x30ed9f)continue;let _0x28130f=!0x1;for(const _0x578c92 of _0x550c4e['getRanges']()){for(const _0x3ea0c2 of _0x527580){const _0xf583ad=_0x3ea0c2['start']['isEqual'](_0x578c92['end'])||_0x3ea0c2['end']['isEqual'](_0x578c92['start']);if(_0xf583ad||_0x3ea0c2['getIntersection'](_0x578c92)){const _0xba785a=_0x3ea0c2['containsRange'](_0x578c92)&&zt(this['_model']['schema'],_0x578c92['start'],_0x3ea0c2),_0x47c955=_0x578c92['containsRange'](_0x3ea0c2)&&zt(this['_model']['schema'],_0x3ea0c2['start'],_0x578c92);_0x2d297f['push']({'suggestion':_0x550c4e,'meta':{'isOwn':_0x386d7a==_0x550c4e['author'],'isNextTo':_0xf583ad,'isInsideObject':_0xba785a,'containsRangeInObject':_0x47c955}}),_0x28130f=!0x0;break;}}if(_0x28130f)break;}}return _0x2d297f;}['_addSuggestionMarker'](_0x1c891d,_0x4202f9,_0x40967f,_0x42a195,_0x4602bf){this['_model']['change'](_0x419169=>{let _0x2b6731='suggestion:'+_0x1c891d+':'+_0x4202f9+':'+_0x40967f;_0x4602bf&&(_0x2b6731=_0x2b6731+':'+_0x4602bf),_0x419169['addMarker'](_0x2b6731,{'range':_0x42a195,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x37248b){const _0x8f9963=_0x37248b['previous'],_0x593319=_0x37248b['next'];_0x37248b['previous']=null,_0x37248b['next']=null,null!=_0x8f9963&&_0x8f9963['next']==_0x37248b&&(_0x8f9963['next']=_0x593319),null!=_0x593319&&_0x593319['previous']==_0x37248b&&(_0x593319['previous']=_0x8f9963),'ready'==this['_suggestionState']['get'](_0x37248b)&&(this['_suggestionState']['set'](_0x37248b,'removed'),this['fire']('suggestionUnloaded',_0x37248b,_0x8f9963,_0x593319));}['_setSuggestionData'](_0x236534){const _0x3a372d=_0x236534['id'],_0x3409ef=this['addSuggestionData'](_0x236534);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x39d4a2=this['editor']['plugins']['get']('PendingActions'),_0x1b4f48=_0x3409ef['hasComments'],_0x3b2e39=_0x3409ef['subType']?_0x3409ef['type']+':'+_0x3409ef['subType']:_0x3409ef['type'],_0x29d7a3=this['editor']['locale'],_0x1bcb1a=_0x39d4a2['add'](o(_0x29d7a3,'PENDING_ACTION_SUGGESTION')),_0x50280c={'id':_0x3a372d,'type':_0x3b2e39,'hasComments':_0x1b4f48,'data':_0x236534['data']||null,'originalSuggestionId':_0x236534['originalSuggestionId']||null,'attributes':_0x3409ef['attributes']};this['_adapter']['addSuggestion'](_0x50280c)['then'](_0xd3f79c=>{_0x3409ef['_saved']=!0x0,_0x39d4a2['remove'](_0x1bcb1a),_0xd3f79c&&_0xd3f79c['createdAt']&&(this['_suggestions']['get'](_0x3a372d)['createdAt']=_0xd3f79c['createdAt']);})['catch'](_0x534b45=>{throw _0x47aa15('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3409ef['discard']();}),_0x3409ef['stopListening'](),this['_suggestions']['delete'](_0x3409ef['id']),this['_suggestionState']['delete'](_0x3409ef),_0x534b45;});}return _0x3409ef;}['_isBlockAttribute'](_0x13b801){return this['editor']['plugins']['get'](_0xd09ee)['isBlockAttribute'](_0x13b801);}['_isInlineAttribute'](_0x13c529){return this['editor']['plugins']['get'](_0xd09ee)['isInlineAttribute'](_0x13c529);}['_updateSuggestionData'](_0x2f6523,_0x4f6525){const _0x33e80a=this['editor']['plugins']['get']('PendingActions'),_0x67dd27=this['getSuggestion'](_0x2f6523);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x67dd27['_saved']){const _0x59bdec=_0x33e80a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2f6523,_0x4f6525)['then'](()=>{_0x33e80a['remove'](_0x59bdec);});}else _0x67dd27['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2f6523,_0x4f6525);});}}['_getSuggestionData'](_0x5e0e85){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5c3384('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5e0e85);}['_handleNewSuggestionMarker'](_0xc3db14){const {id:_0x9ec8f6,type:_0x599a30,subType:_0x271354,authorId:_0x3323a9}=this['_splitMarkerName'](_0xc3db14),_0x12ed83=this['_suggestions']['get'](_0x9ec8f6)||this['_createSuggestion'](_0x599a30,_0x271354,_0x9ec8f6,_0x3323a9,{});switch(this['_checkSuggestionCorrectness'](_0x12ed83,_0x599a30,_0x271354,_0x3323a9),this['_suggestionState']['get'](_0x12ed83)){case'notReady':this['_getSuggestionData'](_0x9ec8f6)['then'](_0x330dd1=>{let _0x61d3dd=Promise['resolve']();_0x330dd1['hasComments']&&(_0x61d3dd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x9ec8f6})),_0x61d3dd['then'](()=>{this['addSuggestionData'](_0x330dd1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x12ed83,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x9ec8f6,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x12ed83,'ready'),this['fire']('suggestionLoaded',_0x12ed83);break;case'ready':this['fire']('suggestionChanged',_0x12ed83);}return _0x12ed83['addMarkerName'](_0xc3db14),_0x12ed83;}['_refreshSuggestionsChain'](_0x537acc){const _0x17db15=Array['from'](_0x537acc),_0x3333bd=_0x17db15['filter'](_0x3a0263=>'attribute'==_0x3a0263['type']);this['_refreshAttributeSuggestionsChain'](_0x3333bd);const _0x38923c=_0x17db15['filter'](_0x2bff82=>!_0x2bff82['isMultiRange']&&'attribute'!=_0x2bff82['type']),_0x59bad4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x964ece=>!_0x964ece['isMultiRange']&&'attribute'!=_0x964ece['type']),_0x4d245f=_0x59bad4['filter'](_0x352845=>!_0x537acc['has'](_0x352845)),_0x21680f=new Map(_0x59bad4['map'](_0x5d5a7b=>[_0x5d5a7b,this['_suggestionFactory']['getSuggestionCallback'](_0x5d5a7b['type'],_0x5d5a7b['subType'],'chain')])),_0x16eefc=new Map(_0x59bad4['map'](_0x211de7=>[_0x211de7,_0x211de7['getFirstRange']()])),_0x52c680=new Set(),_0x1d6459=new Set();for(let _0x3e84e8=0x0;_0x3e84e8<_0x38923c['length'];_0x3e84e8++)_0x4e019c(_0x38923c[_0x3e84e8],_0x38923c,_0x3e84e8+0x1);for(let _0xd8969f=0x0;_0xd8969f<_0x38923c['length'];_0xd8969f++)_0x4e019c(_0x38923c[_0xd8969f],_0x4d245f,0x0);const _0xf1e0bc=new Set();for(let _0x2fd7d4=0x0;_0x2fd7d4<_0x38923c['length'];_0x2fd7d4++){const _0x1884f6=_0x38923c[_0x2fd7d4];!_0x1d6459['has'](_0x1884f6)&&_0x1884f6['previous']&&(_0xf1e0bc['add'](_0x1884f6['previous']),_0x1884f6['previous']['next']===_0x1884f6&&(_0x1884f6['previous']['next']=null),_0x1884f6['previous']=null),!_0x52c680['has'](_0x1884f6)&&_0x1884f6['next']&&(_0xf1e0bc['add'](_0x1884f6['next']),_0x1884f6['next']['previous']===_0x1884f6&&(_0x1884f6['next']['previous']=null),_0x1884f6['next']=null);}function _0x4e019c(_0x13775c,_0x250910,_0x1257dc){for(let _0x1d9bb4=_0x1257dc;_0x1d9bb4<_0x250910['length'];_0x1d9bb4++){const _0x40dcf=_0x4671ad(_0x13775c,_0x250910[_0x1d9bb4]);_0x40dcf&&(_0x40dcf[0x0]['next']=_0x40dcf[0x1],_0x40dcf[0x1]['previous']=_0x40dcf[0x0],_0x52c680['add'](_0x40dcf[0x0]),_0x1d6459['add'](_0x40dcf[0x1]));}}function _0x4671ad(_0x4f1f5f,_0x439281){if(_0x4f1f5f['author']['id']!==_0x439281['author']['id'])return null;const _0x2d8016=_0x21680f['get'](_0x4f1f5f)(_0x4f1f5f,_0x439281,_0x16eefc['get'](_0x4f1f5f),_0x16eefc['get'](_0x439281));if(!_0x2d8016)return null;return _0x21680f['get'](_0x439281)(_0x4f1f5f,_0x439281,_0x16eefc['get'](_0x4f1f5f),_0x16eefc['get'](_0x439281))?_0x2d8016[0x1]['commentThread']&&_0x2d8016[0x1]['commentThread']['length']?null:_0x2d8016:null;}_0xf1e0bc['size']&&this['_refreshSuggestionsChain'](_0xf1e0bc);}['_refreshAttributeSuggestionsChain'](_0x165988){if(0x0==_0x165988['length'])return;const _0x4dd61c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2bdd75=>'attribute'==_0x2bdd75['type']&&_0x2bdd75['_isDataLoaded']),_0x134644=[],_0x58a120=new Map();for(const _0x197ff7 of _0x4dd61c){const _0x35c961=_0x13590a(_0x197ff7['attributes']);_0x58a120['has'](_0x35c961)||(_0x58a120['set'](_0x35c961,_0x134644['length']),_0x134644['push']([]));const _0x3c5a36=_0x58a120['get'](_0x35c961);_0x134644[_0x3c5a36]['push'](_0x197ff7);}!(function(){_0x134644['sort']((_0x3ae57d,_0xac1088)=>{const _0xc76f97=_0x3ae57d[0x0]['createdAt'],_0x2c975c=_0xac1088[0x0]['createdAt'];return _0xc76f97==_0x2c975c?_0x3ae57d[0x0]['attributes']['groupId']<_0xac1088[0x0]['attributes']['groupId']?-0x1:0x1:_0xc76f97<_0x2c975c?-0x1:0x1;});for(const _0x3cf8fa of _0x134644)_0x3cf8fa['sort']((_0x164252,_0x1c67e9)=>_0x164252['id']<_0x1c67e9['id']?-0x1:0x1);}());for(let _0x250ebd=0x0;_0x250ebd<_0x134644['length'];_0x250ebd++){if(0x0==_0x134644[_0x250ebd]['length'])continue;const _0xdb013e=[];for(let _0x3bb73b=_0x250ebd+0x1;_0x3bb73b<_0x134644['length'];_0x3bb73b++)0x0!=_0x134644[_0x3bb73b]['length']&&_0x1918b7(_0x134644[_0x250ebd],_0x134644[_0x3bb73b])&&_0xdb013e['push'](_0x3bb73b);for(const _0x733eb8 of _0xdb013e)_0x134644[_0x250ebd]=_0x134644[_0x250ebd]['concat'](_0x134644[_0x733eb8]),_0x134644[_0x733eb8]=[];}for(const _0x48eb3e of _0x134644)for(let _0x24c380=0x0;_0x24c380<_0x48eb3e['length'];_0x24c380++){const _0x3456f6=_0x48eb3e[_0x24c380+0x1]||null;_0x48eb3e[_0x24c380]['next']!==_0x3456f6&&(_0x48eb3e[_0x24c380]['next']=_0x3456f6);}for(const _0x2086c1 of _0x134644)for(let _0x4f4cd4=0x0;_0x4f4cd4<_0x2086c1['length'];_0x4f4cd4++){const _0x533a39=_0x2086c1[_0x4f4cd4-0x1]||null;_0x2086c1[_0x4f4cd4]['previous']!==_0x533a39&&(_0x2086c1[_0x4f4cd4]['previous']=_0x533a39);}function _0x1918b7(_0xb7c32d,_0xf20bfa){if(_0xb7c32d[0x0]['attributes']['groupId']!==_0xf20bfa[0x0]['attributes']['groupId']&&_0xb7c32d[0x0]['author']!==_0xf20bfa[0x0]['author'])return!0x1;if(!function(_0xa03990,_0x49f36e){if(!_0xa03990['hasComments']&&!_0x49f36e['hasComments'])return!0x0;if(_0xa03990['hasComments']&&_0x49f36e['hasComments'])return!0x1;if(_0xa03990['hasComments']&&_0x49f36e['createdAt']<_0xa03990['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x49f36e['hasComments']&&_0xa03990['createdAt']<_0x49f36e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xb7c32d[0x0],_0xf20bfa[0x0]))return!0x1;const _0x262488=Jt(_0xb7c32d[0x0]['attributes'],['groupId','trackingSessionId']),_0x407770=Jt(_0xf20bfa[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x29eb7f(_0x262488,_0x407770))return!0x1;if(_0xb7c32d[0x0]['attributes']['groupId']==_0xf20bfa[0x0]['attributes']['groupId'])return!0x0;if(_0xb7c32d[0x0]['attributes']['trackingSessionId']!==_0xf20bfa[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0xb7c32d['every'](_0x4697e1=>_0xf20bfa['some'](_0x1a4132=>_0x4697e1['getFirstRange']()['isEqual'](_0x1a4132['getFirstRange']())))&&_0xf20bfa['every'](_0x57a056=>_0xb7c32d['some'](_0x411408=>_0x57a056['getFirstRange']()['isEqual'](_0x411408['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x38e69b){const _0x59cc37=Array['from'](_0x38e69b),_0x5a9090=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39aa23=_0x5a9090['filter'](_0x2bc3cb=>!_0x38e69b['has'](_0x2bc3cb)),_0x593d1d=new Map(_0x59cc37['map'](_0x36a099=>[_0x36a099,this['_suggestionFactory']['getSuggestionCallback'](_0x36a099['type'],_0x36a099['subType'],'join')])),_0x369be2=new Map(_0x5a9090['map'](_0x3e08a0=>[_0x3e08a0,_0x3e08a0['getRanges']()]));for(let _0x5a5eab=0x0;_0x5a5eab<_0x59cc37['length'];_0x5a5eab++){if(_0x32a516(this,_0x59cc37[_0x5a5eab],_0x59cc37,_0x5a5eab+0x1))return!0x0;}for(let _0x55a49c=0x0;_0x55a49c<_0x59cc37['length'];_0x55a49c++){if(_0x32a516(this,_0x59cc37[_0x55a49c],_0x39aa23,0x0))return!0x0;}return!0x1;function _0x32a516(_0x9a76ed,_0x3eb36f,_0x7e06a6,_0x5cabf6){for(let _0x11a160=_0x5cabf6;_0x11a160<_0x7e06a6['length'];_0x11a160++){const _0xff9d17=_0x7e06a6[_0x11a160];if(_0xff9d17['type']!==_0x3eb36f['type']||_0xff9d17['author']['id']!==_0x3eb36f['author']['id']||_0xff9d17['subType']!==_0x3eb36f['subType'])continue;if(!en(_0x3eb36f,_0xff9d17))continue;if('attribute'==_0x3eb36f['type']&&_0x3eb36f['data']['oldValue']!=_0xff9d17['data']['oldValue'])continue;if('attribute'==_0x3eb36f['type']&&_0x9a76ed['_isBlockAttribute'](_0x3eb36f['data']['key']))continue;if('formatBlock'==_0x3eb36f['type']){const _0x50a488=_0x9a76ed['editor']['model'],_0xb69db6=_0x3eb36f['getContainedElement']();if(_0xb69db6&&(_0x50a488['schema']['isObject'](_0xb69db6)||_0x50a488['schema']['isLimit'](_0xb69db6)))continue;}const _0x3a8625=_0x593d1d['get'](_0x3eb36f),_0x1231e7=_0x369be2['get'](_0x3eb36f),_0xf74bdc=_0x369be2['get'](_0xff9d17),_0x20233b=_0x3eb36f['commentThread']&&_0x3eb36f['commentThread']['length'],_0x5574f3=_0xff9d17['commentThread']&&_0xff9d17['commentThread']['length'];if(!_0x20233b&&_0x3a8625(_0xf74bdc,_0x1231e7))return _0x9a76ed['_joinSuggestions'](_0xff9d17,_0x3eb36f),_0x369be2['delete'](_0x3eb36f),!0x0;if(!_0x5574f3&&_0x3a8625(_0x1231e7,_0xf74bdc))return _0x9a76ed['_joinSuggestions'](_0x3eb36f,_0xff9d17),_0x369be2['delete'](_0xff9d17),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3ffec8,_0x4d03e7){if(_0x3ffec8['isMultiRange']){for(const _0x3daecb of _0x4d03e7['getRanges']())_0x3ffec8['addRange'](_0x3daecb);}else{const _0x5299c1=_0x4d03e7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ffec8,this['_model']['createRange'](_0x3ffec8['getFirstRange']()['start'],_0x5299c1));}_0x4d03e7['removeMarkers']();}['_getMarkerAnnouncementText'](_0x33501a,_0x11ea67,_0x352271){const _0x28853d=_0x33501a['startsWith']('format')||_0x33501a['startsWith']('attribute')?'FORMATTING':_0x33501a['toUpperCase']();return o(this['editor']['locale'],_0x11ea67+'_'+_0x28853d+'_SUGGESTION_ANNOUNCEMENT',_0x352271);}['_initAriaMarkerChangeAnnouncements'](){const _0x1333d1=this['editor'];if(!_0x1333d1['ui'])return;const {ariaLiveAnnouncer:_0xbbf49c}=_0x1333d1['ui'];_0x5a64c3(this['_model'],({left:_0x3343e,entered:_0x4430b5})=>{for(const _0x2bdf4a of _0x3343e){const {group:_0x293134,type:_0x4f519e}=this['_splitMarkerName'](_0x2bdf4a['name']);if('suggestion'===_0x293134){_0xbbf49c['announce'](this['_getMarkerAnnouncementText'](_0x4f519e,'LEAVE'));break;}}for(const _0x3764a5 of _0x4430b5){const {group:_0x2d8e20,type:_0x43348a}=this['_splitMarkerName'](_0x3764a5['name']);if('suggestion'===_0x2d8e20){_0xbbf49c['announce'](this['_getMarkerAnnouncementText'](_0x43348a,'ENTER',_0x393ac0(_0x193cf7)));break;}}});}['_processAttributeChanges'](_0x419a80){if(this['_recordAttributeSuggestions'])return!0x1;const _0x10771b=this['editor'],_0x21b025=_0x10771b['model']['document']['differ']['getChanges']();if(0x0==_0x21b025['length'])return!0x1;const _0x69ad49=[],_0x52b438=_0x21b025['filter'](_0x1ecef4=>'attribute'==_0x1ecef4['type']),_0x4df53c=_0x21b025['filter'](_0x2e3915=>'insert'==_0x2e3915['type']&&'$text'!=_0x2e3915['name']),_0x4e5bb2=_0x21b025['filter'](_0x98987=>'remove'==_0x98987['type']&&'$text'!=_0x98987['name']);for(const _0x95dba5 of _0x52b438)_0x69ad49['push']({'key':_0x95dba5['attributeKey'],'newValue':_0x95dba5['attributeNewValue'],'oldValue':_0x95dba5['attributeOldValue'],'range':Zt(_0x95dba5['range'],_0x10771b['model'])});for(const _0x2280e2 of _0x4df53c){const _0x5287e4=_0x4e5bb2['find'](_0x3032a7=>_0x3032a7['position']['isEqual'](_0x2280e2['position']));_0x5287e4&&_0x69ad49['push']({'key':m,'newValue':_0x2280e2['name'],'oldValue':_0x5287e4['name'],'range':_0x10771b['model']['createRangeOn'](_0x2280e2['position']['nodeAfter'])});}return 0x0!=_0x69ad49['length']&&this['_reduceExistingSuggestions'](_0x419a80,_0x69ad49);}['_processAttributeSuggestions'](_0x2cb6e1){let _0xeb5116=!0x1;const _0x55cc14=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2d3248=>_0x2d3248['data']['newRange']&&_0x2d3248['name']['startsWith']('suggestion:attribute:'));for(const _0x592e0c of _0x55cc14){const {subType:_0x48c3b0,id:_0x12e805}=this['_splitMarkerName'](_0x592e0c['name']),_0x1bfef1=_0x48c3b0['split']('|')[0x0];for(const _0xefc1a of this['getSuggestions']({'skipNotAttached':!0x0}))_0xefc1a['id']!=_0x12e805&&'attribute'==_0xefc1a['type']&&_0xefc1a['data']&&_0xefc1a['data']['key']==_0x1bfef1&&_0xefc1a['getFirstRange']()['isIntersecting'](_0x592e0c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xefc1a,_0x592e0c['data']['newRange'],_0x2cb6e1),_0xeb5116=!0x0);}return _0xeb5116;}['recordAttributeChanges'](_0x23b31c){this['_recordAttributeSuggestions']=!0x0,_0x23b31c();}['_isRegisteredAttribute'](_0x9c511){return this['editor']['plugins']['get'](_0xd09ee)['isRegisteredAttribute'](_0x9c511);}['_reduceExistingSuggestions'](_0x193207,_0x226deb){if(0x0==_0x226deb['length'])return!0x1;let _0x4783b6=!0x1;for(const _0x117004 of _0x226deb){const _0x82bcb8=this['_findSuggestions'](_0x117004['range'],'attribute')['filter'](_0x3abd72=>!_0x3abd72['meta']['isNextTo'])['map'](_0x123cd2=>_0x123cd2['suggestion']),_0x3a3efa=_0x13590a({'newValue':_0x117004['newValue']});_0x82bcb8['filter'](_0x566f95=>{const [_0x90dc8f,_0x59ed6d]=_0x566f95['subType']['split']('|');return _0x90dc8f==_0x117004['key']&&_0x59ed6d!=_0x3a3efa;})['forEach'](_0x3c0b49=>{this['_reduceSuggestionAttributeRange'](_0x3c0b49,_0x117004['range'],_0x193207),_0x4783b6=!0x0;});}return _0x4783b6;}['_reduceSuggestionAttributeRange'](_0x1a31a7,_0x55ac31,_0xee9418){const _0x48f8af=_0x1a31a7['getFirstRange']()['getDifference'](_0x55ac31);0x0!==_0x48f8af['length']?0x1!==_0x48f8af['length']?this['_breakSuggestionMarker'](_0x1a31a7,_0x55ac31['start'],_0x55ac31['end']):this['_setSuggestionRange'](_0x1a31a7,_0x48f8af[0x0]):_0xee9418['removeMarker'](_0x1a31a7['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x502fe0){this['_editor']=_0x502fe0,this['_model']=_0x502fe0['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5bd7a3,_0x478fbc,_0x4abcef,_0x3d78b3,_0x217de9,_0x34e90f,_0x16b5cc){return new T(this['_model'],{'type':_0x5bd7a3,'subType':_0x478fbc,'id':_0x4abcef,'originalSuggestionId':_0x16b5cc,'author':_0x3d78b3,'creator':_0x3d78b3,'attributes':_0x217de9,'onAttributesChange':_0x34e90f,'onAccept':(..._0x56cc3e)=>this['getSuggestionCallback'](_0x5bd7a3,_0x478fbc,'accept')(..._0x56cc3e),'onDiscard':(..._0x1677d7)=>this['getSuggestionCallback'](_0x5bd7a3,_0x478fbc,'discard')(..._0x1677d7)});}['registerCustomCallback'](_0x377245,_0x30f6f4,_0x23e173,_0x35370f){const _0x1da3ab=_0x377245+':'+_0x30f6f4+':'+_0x23e173;this['_customCallbacks']['set'](_0x1da3ab,_0x35370f);}['getSuggestionCallback'](_0x2c3127,_0x26a6e7,_0x1a2854){const _0x28871c=_0x2c3127+':'+_0x26a6e7+':'+_0x1a2854;return this['_customCallbacks']['get'](_0x28871c)||this['_defaultCallbacks']['get'](_0x2c3127+':'+_0x1a2854);}['_registerDefaultCallbacks'](){const _0x4d9bbf=()=>!0x1,_0xfe4951=_0x3568a4=>{_0x3568a4['sort']((_0x22dc6c,_0x2837e3)=>_0x22dc6c['start']['isBefore'](_0x2837e3['start'])?0x1:-0x1),this['_model']['change'](_0x697626=>{for(const _0x39a1cf of _0x3568a4){let _0x3881e9;_0x3881e9=_0x39a1cf['end']['isAtEnd']&&_0x39a1cf['end']['parent']==_0x39a1cf['start']['nodeAfter']?_0x697626['createSelection'](_0x39a1cf['start']['nodeAfter'],'on'):_0x697626['createSelection'](_0x39a1cf),this['_model']['deleteContent'](_0x3881e9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x177f06=(_0x3150ca,_0x46efd6)=>{_0x46efd6&&this['_model']['change'](_0x1936f6=>{const {commandName:_0x154670,commandParams:_0x2ecb2f=[]}=_0x46efd6,_0x23801f=_0x3150ca['map'](_0x335988=>(Kt(_0x335988)&&(_0x335988=this['_model']['createRange'](_0x335988['end'])),_0x335988))['filter'](_0x4342dd=>'$graveyard'!==_0x4342dd['root']['rootName']);if(_0x23801f['length']<0x1)return;const _0x5474cd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x340f3a=>_0x2b0079['fromRange'](_0x340f3a));_0x1936f6['setSelection'](_0x23801f);for(const _0x6ed778 of this['_editor']['commands']['commands']())_0x6ed778['refresh']();_0x2ecb2f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x154670,..._0x2ecb2f);const _0x22ca11=_0x5474cd['filter'](_0x9efffe=>'$graveyard'!=_0x9efffe['root']['rootName']);_0x22ca11['length']>0x0&&_0x1936f6['setSelection'](_0x22ca11);for(const _0x1adb91 of _0x5474cd)_0x1adb91['detach']();});},_0x4de049=(_0x5cea88,_0x259ed9)=>0x1==_0x5cea88['length']&&0x1==_0x259ed9['length']&&_0x5cea88[0x0]['end']['isEqual'](_0x259ed9[0x0]['start']),_0x160553=(_0x20578a,_0x1f49df,_0x4503ac,_0x119e37)=>nn(_0x20578a,_0x1f49df,_0x4503ac,_0x119e37)?[_0x20578a,_0x1f49df]:nn(_0x1f49df,_0x20578a,_0x119e37,_0x4503ac)?[_0x1f49df,_0x20578a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d9bbf),this['_defaultCallbacks']['set']('insertion:discard',_0xfe4951),this['_defaultCallbacks']['set']('insertion:join',_0x4de049),this['_defaultCallbacks']['set']('insertion:chain',_0x160553),this['_defaultCallbacks']['set']('deletion:accept',_0xfe4951),this['_defaultCallbacks']['set']('deletion:discard',_0x4d9bbf),this['_defaultCallbacks']['set']('deletion:join',_0x4de049),this['_defaultCallbacks']['set']('deletion:chain',_0x160553),this['_defaultCallbacks']['set']('formatInline:accept',_0x177f06),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d9bbf),this['_defaultCallbacks']['set']('formatInline:join',_0x4de049),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d9bbf),this['_defaultCallbacks']['set']('formatBlock:accept',_0x177f06),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d9bbf),this['_defaultCallbacks']['set']('formatBlock:join',_0x4de049),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d9bbf),this['_defaultCallbacks']['set']('attribute:accept',_0x4d9bbf),this['_defaultCallbacks']['set']('attribute:discard',(_0x191971,_0x1bd552)=>{if(!_0x1bd552)return;const _0x2e2739=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x4d43e5=>{if(_0x1bd552['key']==m)for(const _0x33c1d7 of _0x191971){const _0x47aae4=_0x33c1d7['start']['nodeAfter'],_0x82fdb9=_0x1bd552['oldValue'];_0x4d43e5['rename'](_0x47aae4,_0x82fdb9);}else{if(_0x2e2739['_isBlockAttribute'](_0x1bd552['key'])){for(const _0x32c6f4 of _0x191971)void 0x0!==_0x1bd552['oldValue']?_0x4d43e5['setAttribute'](_0x1bd552['key'],_0x1bd552['oldValue'],_0x32c6f4['start']['nodeAfter']):_0x4d43e5['removeAttribute'](_0x1bd552['key'],_0x32c6f4['start']['nodeAfter']);}else{for(const _0x55e49b of _0x191971)_0x1bd552['oldValue']?_0x4d43e5['setAttribute'](_0x1bd552['key'],_0x1bd552['oldValue'],_0x55e49b):_0x4d43e5['removeAttribute'](_0x1bd552['key'],_0x55e49b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4de049);}}function zt(_0x597a06,_0x5ffb26,_0x5a7012){for(const _0x5b57bd of _0x5ffb26['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5b57bd['root']==_0x5b57bd)return!0x1;if(!_0x5a7012['containsItem'](_0x5b57bd))return!0x1;if(_0x597a06['isObject'](_0x5b57bd)||_0x597a06['isLimit'](_0x5b57bd))return!0x0;}return!0x1;}function Kt(_0x1c817a){return _0x1c817a['end']['parent']==_0x1c817a['start']['nodeAfter']&&_0x1c817a['end']['isAtStart'];}function Wt(_0x33b48a,_0x3b4f54,_0x27c768,_0x282426){const _0x2833b1=_0x83d4f=>!_0x83d4f['item']['is']('$textProxy')&&!_0x282426['isObject'](_0x83d4f['item']),_0x71ecf4=_0x33b48a['start']['getLastMatchingPosition'](_0x2833b1),_0x4a9df3=_0x33b48a['end']['getLastMatchingPosition'](_0x2833b1,{'direction':'backward'});return(!_0x33b48a['start']['isEqual'](_0x71ecf4)||!_0x33b48a['end']['isEqual'](_0x4a9df3))&&(_0x71ecf4['isBefore'](_0x4a9df3)?_0x27c768['updateMarker'](_0x3b4f54,{'range':_0x27c768['createRange'](_0x71ecf4,_0x4a9df3)}):_0x27c768['removeMarker'](_0x3b4f54),!0x0);}function Ht(_0x3498a7){return _0x13590a(_0x3498a7);}function Qt(_0x4fc54c){const _0x998f03=_0x4fc54c['start']['nodeAfter'];return _0x998f03&&_0x998f03['is']('element');}function Xt(_0x33e7b9){return Kt(_0x33e7b9)||function(_0x490104){return _0x490104['start']['parent']==_0x490104['end']['nodeBefore']&&_0x490104['start']['isAtEnd'];}(_0x33e7b9);}function Yt(_0x36cb7f,_0x55713c){try{const _0x3e6bc2=_0x36cb7f['getRange']();for(const _0x23cfdf of _0x55713c)if(_0x36cb7f!==_0x23cfdf&&_0x3e6bc2&&_0x3e6bc2['isIntersecting'](_0x23cfdf['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x540674,_0x25c77f){return null==_0x540674['end']['nodeBefore']&&_0x540674['end']['parent']==_0x540674['start']['nodeAfter']?tn(_0x540674['start']['nodeAfter'],_0x25c77f):_0x540674;}function tn(_0x1c628c,_0x98c0f2){const _0x19cdde=_0x98c0f2['schema']['isObject'](_0x1c628c)||_0x98c0f2['schema']['isSelectable'](_0x1c628c);return _0x98c0f2['createRange'](_0x98c0f2['createPositionAt'](_0x1c628c,'before'),_0x19cdde?_0x98c0f2['createPositionAfter'](_0x1c628c):_0x98c0f2['createPositionAt'](_0x1c628c,'end'));}function nn(_0xd9cb9a,_0x19c67b,_0x4e4ef2,_0x1bbac5){return!!en(_0xd9cb9a,_0x19c67b)&&_0x4e4ef2['end']['isEqual'](_0x1bbac5['start']);}function en(_0x53195b,_0x460ee2){if(!_0x53195b['_isDataLoaded']||!_0x460ee2['_isDataLoaded'])return!0x1;const _0x51d358=new Set(Object['keys'](_0x53195b['attributes'])),_0x4bbde1=new Set(Object['keys'](_0x460ee2['attributes']));if(_0x51d358['delete']('groupId'),_0x4bbde1['delete']('groupId'),0x0==_0x51d358['size']&&0x0==_0x4bbde1['size'])return!0x0;if(_0x51d358['size']!=_0x4bbde1['size'])return!0x1;const _0x3dee3b={..._0x53195b['attributes']},_0x494f23={..._0x460ee2['attributes']};return delete _0x3dee3b['groupId'],delete _0x494f23['groupId'],JSON['stringify'](_0x3dee3b)==JSON['stringify'](_0x494f23);}function sn(_0x2fb7df,_0x1197b2){const _0x1570c0=on(_0x2fb7df['attributes']),_0xbb2fa2=on(_0x1197b2);if(!_0x2fb7df['_isDataLoaded'])return!0x1;for(const _0x3ad942 of Object['keys'](_0xbb2fa2))if(!_0x29eb7f(_0x1570c0[_0x3ad942],_0xbb2fa2[_0x3ad942]))return!0x1;return!0x0;}function on(_0x13f2da){const _0x519f8d=Object['assign']({},_0x13f2da);return delete _0x519f8d['skipNestingCheck'],delete _0x519f8d['tablePasteChainId'],_0x519f8d;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1707ba(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x22f127,_0xc5b7fa,_0xacf352,_0x440962){super(),this['model']=_0xc5b7fa,this['view']=_0xacf352,this['commentThreadController']=_0x440962,this['_editor']=_0x22f127,this['_acceptCommand']=_0x22f127['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x22f127['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x19a719,_0x598c6e)=>_0x19a719||_0x598c6e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3c01e2=>_0x3c01e2&&this['_editor']['model']['canEditAt'](_0xc5b7fa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24de97=>_0x24de97&&this['_editor']['model']['canEditAt'](_0xc5b7fa['getRanges']())),this['_pendingAction']=null,_0xacf352['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xacf352,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xacf352,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xacf352,'change:isDirty',()=>{_0xacf352['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 _0x362b42=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x362b42);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x429d3a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4375a9,_0x454f0c,_0x19d499,_0x59a6c3){super(_0x4375a9),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x44bdb1(_0x4375a9,o(_0x4375a9,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x454f0c['authoredAt']),this['bind']('authoredAt')['to'](_0x454f0c),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',_0x454f0c,'authoredAt',this,'descriptionParts',(_0x4a0fd3,_0x3eebb1,_0x4ba488)=>{const _0x31db3e=_0x4ba488['map'](_0x38145c=>ls(_0x38145c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a0fd3-0x1,_0x454f0c['author']['name'],_0x3eebb1?_0x59a6c3['formatDateTime'](_0x3eebb1):'',new DOMParser()['parseFromString'](_0x31db3e,'text/html')['body']['textContent']]);}),this['focusables']=new _0x26c1d8(),this['focusTracker']=new _0x5e1937(),this['keystrokes']=new _0x484f44(),this['focusCycler']=new _0x494826({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5a39c4=>_0x5a39c4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x454f0c,this['_localUser']=_0x19d499,this['_config']=_0x59a6c3,_0x59a6c3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x10171f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x240355}=this['_config'];this['commentsListView']=new _0x240355(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',_0x4d5fb0=>_0x4d5fb0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x27542f,_0x317036)=>_0x27542f||!!_0x317036);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x191c75}=this['_config'],_0x29d788=new _0x191c75(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5b6f07=_0x29d788['commentInputView'];return _0x29d788['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5b6f07,'value',(_0x180b45,_0x299cf1,_0x1d7056)=>!!_0x1d7056||_0x180b45&&!_0x299cf1),_0x5b6f07['on']('submit',(_0x1f01a1,_0x59fd9f)=>{this['fire']('addComment',_0x59fd9f),_0x5b6f07['editor']['setData']('');}),_0x5b6f07['on']('cancel',()=>this['focus']()),_0x5b6f07['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x29d788;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x29f5d0,_0xea59c7,_0x5537fe,_0x6669b5){super(_0x29f5d0,_0xea59c7,_0x5537fe,_0x6669b5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x208130=>_0x208130&&_0x208130[0x0]?_0x208130[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x35b3a0,_0x38a415)=>{let _0x4425ba='';for(const _0xb4c719 of _0x35b3a0)_0x4425ba+='<p>'+ls(_0xb4c719['content'],_0xb4c719['color'])+'</p>';return _0x38a415?_0x4425ba:_0x16aa23(_0x4425ba,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x6669b5['SuggestionView'](_0x29f5d0,_0xea59c7,{'formatDateTime':_0x6669b5['formatDateTime']}),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 _0x3267b4=this['bindTemplate'],_0x3c2bd3=[this['suggestionView']];return this['commentsListView']&&_0x3c2bd3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3c2bd3['push'](this['commentThreadInputView']),_0x3c2bd3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3267b4['if']('isActive','ck-suggestion-wrapper--active'),_0x3267b4['to']('type',_0x3bdf91=>'ck-suggestion-'+_0x3bdf91),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':_0x3267b4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3c2bd3};}['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));}}class we extends _0x429d3a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1c7e37,_0x5d1abc,_0x5936e0){super(_0x1c7e37),this['_model']=_0x5d1abc,this['_config']=_0x5936e0,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5d1abc),this['acceptButton']=this['_createButton'](o(_0x1c7e37,'Accept\x20suggestion'),_0x5dfc4b,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1c7e37,'Discard\x20suggestion'),_0x4e6a89,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1bef2a(_0x1c7e37,_0x5d1abc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x26c1d8([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5e1937(),this['keystrokes']=new _0x484f44(),this['focusCycler']=new _0x494826({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x15bc17=>_0x15bc17['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x9faff9=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x9faff9['innerHTML']=this['description'],this['on']('change:description',(_0x3ee879,_0xaacbec,_0x53455e)=>{_0x9faff9['innerHTML']=_0x53455e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1d4818=this['bindTemplate'],_0x1975fa=[{'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':_0x1d4818['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1d4818['to']('authoredAt',_0x4fe70f=>this['_config']['formatDateTime'](_0x4fe70f))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1975fa['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'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':_0x1975fa}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2ea547,_0x2bda92,_0x144b9a,_0x2124f0,_0x12d20f){const _0x178726=new _0x38e74c(this['locale']);return _0x178726['set']({'label':_0x2ea547,'icon':_0x2bda92,'tooltip':!0x0,'tooltipPosition':_0x12d20f}),_0x178726['extendTemplate']({'attributes':{'class':_0x144b9a}}),_0x178726['on']('execute',()=>{this['fire'](_0x2124f0,this['_model']['id']);}),_0x178726;}['_setupKeyboardNavigation'](){const _0x5cf041=this['element'];this['keystrokes']['listenTo'](_0x5cf041);for(const _0x4df191 of this['focusables'])this['focusTracker']['add'](_0x4df191['element']),this['keystrokes']['listenTo'](_0x4df191['element']);this['keystrokes']['set']('enter',(_0x41a55e,_0x299557)=>{_0x5cf041===_0x41a55e['target']&&(this['focusCycler']['focusFirst'](),_0x299557());}),this['keystrokes']['set']('esc',(_0x158f6a,_0x25c81d)=>{_0x5cf041!==_0x158f6a['target']&&(this['focus'](),_0x25c81d());});}}class u extends _0x4c30c7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x55c56b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bd250){super(_0x4bd250),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x56b38d=this['editor']['config'];_0x56b38d['define']('trackChanges.SuggestionThreadView',fe),_0x56b38d['define']('trackChanges.SuggestionView',we),_0x56b38d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x56b38d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1cac16,_0x56eb37){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47347d,_0x3cc13a]of this['_handleControllerBuffer']){const _0x51af08=this['_suggestionToController']['has'](_0x47347d);_0x51af08||_0x3cc13a?_0x51af08&&_0x3cc13a&&this['_destroyController'](_0x47347d):this['_initializeController'](_0x47347d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1cac16,_0x56eb37);}['init'](){const _0x1c13a2=this['editor'],_0x6fe055=_0x1c13a2['plugins']['get']('TrackChangesEditing'),_0x2f2a6d=_0x1c13a2['plugins']['get']('Annotations'),_0x510e57=_0x1c13a2['plugins']['get']('EditorAnnotations'),_0x598f98=_0x1c13a2['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x510e57['addSourceCollector'](()=>{const _0x55c167=[];for(const [_0x1d5b91,_0x19dc51]of Array['from'](this['_suggestionToController'])){const _0x54e60d=_0x1d5b91['getAllAdjacentSuggestions'](),_0x43e563=[];for(const _0xb2cad5 of _0x54e60d){if(!_0xb2cad5['isInContent'])continue;if(_0xb2cad5['isMultiRange']){_0x43e563['push'](..._0xb2cad5['getRanges']());continue;}const _0x3ed927=_0xb2cad5['getFirstRange']();if(_0x43e563['length']>0x0){const _0x727b7=_0x43e563[0x0]['getJoined'](_0x3ed927);if(_0x727b7){_0x43e563[0x0]=_0x727b7;continue;}}_0x43e563['push'](_0x3ed927);}_0x55c167['push']([_0x19dc51['view'],_0x43e563]);}return _0x55c167;}),this['listenTo'](_0x6fe055,'suggestionLoaded',(_0x4eb103,_0x309138)=>{this['listenTo'](_0x309138,'change:previous',(_0x4c1a87,_0x6a59ea,_0x5bdd42,_0x3841c5)=>{_0x309138['isInContent']&&(null==_0x5bdd42?(this['_updateController'](_0x3841c5['head']),this['_handleSuggestionControllerDelayed'](_0x309138,!0x1)):(this['_updateController'](_0x5bdd42['head']),null==_0x3841c5&&this['_handleSuggestionControllerDelayed'](_0x309138,!0x0)));}),null!==_0x309138['previous']?this['_updateController'](_0x309138['head']):this['_handleSuggestionControllerDelayed'](_0x309138,!0x1);}),this['listenTo'](_0x6fe055,'suggestionUnloaded',(_0x5000c4,_0x2d93d3,_0x226c31)=>{this['stopListening'](_0x2d93d3,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2d93d3),this['_suggestionToController']['has'](_0x2d93d3)&&this['_destroyController'](_0x2d93d3),_0x226c31&&this['_updateController'](_0x226c31['head']);}),this['listenTo'](_0x6fe055,'suggestionChanged',(_0x19f7b7,_0x4616b1)=>{this['_updateController'](_0x4616b1);}),this['listenTo'](_0x2f2a6d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x598f98,'addComment',(_0x3ea4f6,{threadId:_0x5ca6df,isFromAdapter:_0x524123})=>{if(_0x524123||!_0x6fe055['hasSuggestion'](_0x5ca6df))return;const _0xd1e0a9=_0x6fe055['getSuggestion'](_0x5ca6df);this['_suggestionToController']['get'](_0xd1e0a9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x500e34=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x377a60;for(const _0x2a1139 in _0x500e34){const _0x1707ce=_0x2a1139,_0x11028b=_0x500e34[_0x1707ce];if('trackChangesLicenseKeyValid'==_0x11028b||'trackChangesLicenseKeyInvalid'==_0x11028b||'trackChangesLicenseKeyExpired'==_0x11028b||'trackChangesLicenseKeyDomainLimit'==_0x11028b||'trackChangesLicenseKeyNotAllowed'==_0x11028b||'trackChangesLicenseKeyEvaluationLimit'==_0x11028b||'trackChangesLicenseKeyUsageLimit'==_0x11028b){delete _0x500e34[_0x1707ce],_0x377a60=_0x11028b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x377a60&&_0x500e34['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x377a60&&_0x500e34['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x377a60&&_0x500e34['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x377a60&&_0x500e34['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x377a60&&_0x500e34['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x377a60&&_0x500e34['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x3d41b9){const _0x1e2a13=this['_suggestionToController']['get'](_0x3d41b9);if(!_0x1e2a13)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x1e2a13['view'])||null;}['getSuggestionForAnnotation'](_0x97678a){const _0x32bd00=this['_viewToController']['get'](_0x97678a['innerView']);return _0x32bd00?_0x32bd00['model']:null;}['_refreshActiveMarkers'](){const _0x3c7dde=this['editor']['plugins']['get']('Annotations'),_0x51a604=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b489f=Array['from'](_0x3c7dde['activeAnnotations'],_0x376022=>_0x376022['innerView'])['filter'](_0x217011=>this['_viewToController']['has'](_0x217011)),_0x1badda=[];for(const _0x146f92 of _0x5b489f){const _0x423231=this['_viewToController']['get'](_0x146f92)['model']['getAllAdjacentSuggestions']();_0x1badda['push'](..._0x423231['reduce']((_0x43e43c,_0x2a7776)=>[..._0x43e43c,..._0x2a7776['getMarkerNames']()],[]));}_0x51a604['activeMarkers']=_0x1badda;}['_addUIComponentsToFactory'](){const _0x3ce594=this['editor'],_0xcf63b5=_0x3ce594['locale'],_0x495835=o(_0xcf63b5,'Track\x20changes'),_0x2fff1f=new _0x3db62b([{'type':'switchbutton','model':new _0x1d016e({'withText':!0x0,'isToggleable':!0x0,'label':_0x495835,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1d016e({'withText':!0x0,'label':o(_0xcf63b5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d016e({'withText':!0x0,'label':o(_0xcf63b5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d016e({'withText':!0x0,'label':o(_0xcf63b5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1d016e({'withText':!0x0,'label':o(_0xcf63b5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3ce594['plugins']['has']('TrackChangesPreview')&&_0x2fff1f['addMany']([{'type':'separator'},{'type':'button','model':new _0x1d016e({'withText':!0x0,'label':o(_0xcf63b5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5bccdc of _0x2fff1f)if(ke(_0x5bccdc)){const _0x5b2f9f=_0x3ce594['commands']['get'](_0x5bccdc['model']['commandName']);_0x5bccdc['model']['bind']('isOn','isEnabled')['to'](_0x5b2f9f,'value','isEnabled');}_0x3ce594['ui']['componentFactory']['add']('trackChanges',_0x55cdaa=>this['_createToolbarButton'](_0x55cdaa,_0x2fff1f,_0x495835)),_0x3ce594['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5e18ec=>this['_createMenuBarMenu'](_0x5e18ec,_0x2fff1f,_0x495835));}['_createToolbarButton'](_0x356cb2,_0x599b93,_0xf74264){const _0x10b304=_0xdacc49(_0x356cb2,_0xa87710),_0x39894b=this['editor']['commands']['get']('trackChanges');_0x10b304['buttonView']['set']({'tooltip':_0xf74264,'label':_0xf74264,'icon':_0x15c63d}),_0x10b304['buttonView']['bind']('isOn')['to'](_0x39894b,'value'),_0x10b304['buttonView']['on']('execute',()=>{_0x39894b['execute'](),this['editor']['editing']['view']['focus']();}),_0x2a826f(_0x10b304,_0x599b93,{'role':'menu'});const _0x16a9ce=[];for(const _0x2f194f of _0x599b93)ke(_0x2f194f)&&_0x16a9ce['push'](this['editor']['commands']['get'](_0x2f194f['model']['commandName']));const _0xed2116=_0x10b304['buttonView'];return _0xed2116['actionView']['unbind']('isEnabled'),_0xed2116['arrowView']['unbind']('isEnabled'),_0xed2116['actionView']['bind']('isEnabled')['to'](_0x39894b,'isEnabled'),_0xed2116['arrowView']['bind']('isEnabled')['toMany'](_0x16a9ce,'isEnabled',(..._0x46b728)=>_0x46b728['some'](_0x4a3d82=>_0x4a3d82)),_0x10b304['on']('execute',_0x4aa85a=>{this['editor']['execute'](_0x4aa85a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x10b304;}['_createMenuBarMenu'](_0x279b8a,_0x806720,_0x42170d){const _0x33757c=new _0x5aebd4(_0x279b8a),_0x2c953=this['editor']['commands']['get']('trackChanges');_0x33757c['buttonView']['set']({'label':_0x42170d,'icon':_0x15c63d});const _0x11a466=new _0x29e5d9(_0x279b8a);for(const _0x23befe of _0x806720){if('separator'==_0x23befe['type']){_0x11a466['items']['add'](new _0x24dc2e(_0x279b8a));continue;}const _0x1bece9=new _0x497ed6(_0x279b8a,_0x33757c),_0x376a95=new _0x1932f1(_0x279b8a),_0x585134=_0x23befe['model'];_0x376a95['bind'](...Object['keys'](_0x585134))['to'](_0x585134),_0x376a95['delegate']('execute')['to'](_0x33757c),_0x376a95['on']('execute',()=>{this['editor']['execute'](_0x585134['commandName']),this['editor']['editing']['view']['focus']();}),_0x1bece9['children']['add'](_0x376a95),_0x11a466['items']['add'](_0x1bece9);}return _0x33757c['bind']('isEnabled')['to'](_0x2c953,'isEnabled'),_0x33757c['panelView']['children']['add'](_0x11a466),_0x33757c;}['_initializeController'](_0x38cea3){const _0x311244=this['editor'],_0x279033=_0x311244['config'],_0x17562d=_0x311244['plugins']['get']('Annotations'),_0x39bc3c=_0x311244['plugins']['get']('CommentsRepository'),_0x2e864b=_0x311244['plugins']['get']('EditorAnnotations'),_0x52915c=_0x311244['plugins']['get'](_0x55c56b)['me'],_0x369847=_0x279033['get']('trackChanges')['SuggestionThreadView'],_0x1207b7=_0x279033['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x506378,CommentThreadInputView:_0x2b1a95}=_0x311244['plugins']['get']('CommentsUI');let _0x468ab7,_0x18cd5f,_0xcbc54b;this['_annotationViews']['has'](_0x38cea3['id'])?(_0x18cd5f=this['_annotationViews']['get'](_0x38cea3['id']),_0x468ab7=_0x18cd5f['mainView']):(_0x468ab7=new _0x369847(_0x311244['locale'],_0x38cea3,_0x52915c,{'disableComments':this['_disableComments'],'editorConfig':{..._0x279033['get']('comments.editorConfig'),'licenseKey':_0x279033['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x279033['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x279033['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x279033['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x436753(_0x279033['get']('locale'),_0x311244['locale']),'CommentView':_0x279033['get']('comments')['CommentView'],'CommentsListView':_0x506378,'CommentThreadInputView':_0x2b1a95,'SuggestionView':_0x1207b7}),_0x468ab7['suggestionView']['acceptButton']['on']('execute',()=>{_0x311244['editing']['view']['focus']();}),_0x468ab7['suggestionView']['discardButton']['on']('execute',()=>{_0x311244['editing']['view']['focus']();}),_0x18cd5f=_0x17562d['createAnnotationView'](this['editor']['locale'],_0x468ab7),_0x18cd5f['bind']('isDirty')['to'](_0x468ab7,'isDirty'),_0x18cd5f['bind']('length')['to'](_0x468ab7),_0x18cd5f['bind']('type')['to'](_0x468ab7,'type',_0x239c02=>'suggestion-'+_0x239c02),_0x468ab7['on']('escape',()=>{_0xcbc54b['fire']('escape');}),this['_annotationViews']['set'](_0x38cea3['id'],_0x18cd5f));const _0x3ddae2=_0x39bc3c['createCommentThreadController'](_0x38cea3['commentThread'],_0x468ab7),_0x5b0d1b=new pe(_0x311244,_0x38cea3,_0x468ab7,_0x3ddae2),_0x2e61d9=_0x38cea3['getAllAdjacentSuggestions']()['filter'](_0x28a93b=>_0x28a93b['isInContent']);_0x468ab7['descriptionParts']=_0x311244['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2e61d9),this['_suggestionToController']['set'](_0x38cea3,_0x5b0d1b),this['_viewToController']['set'](_0x468ab7,_0x5b0d1b);const _0x279425=()=>{const _0x490959=[],_0x2f7d0d=_0x38cea3['getAllAdjacentSuggestions']()['filter'](_0x4d60ee=>_0x4d60ee['isInContent']);for(const _0x225b8a of _0x2f7d0d)_0x490959['push'](..._0x225b8a['getMarkers']());return _0x183bb8(_0x311244['editing'],_0x490959);};_0xcbc54b=_0x17562d['createAnnotation']({'view':_0x18cd5f,'target':_0x279425,'type':()=>'suggestion-'+_0x5b0d1b['view']['type'],'isVisible':!!_0x279425()}),_0x39bc3c['_bindAnnotationToEditors'](_0x468ab7,_0xcbc54b),_0x17562d['add'](_0xcbc54b),_0x2e864b['registerAnnotation'](_0xcbc54b);}['_destroyController'](_0x41ab30){const _0x44a626=this['editor']['plugins']['get']('CommentsRepository'),_0x2bfac0=this['editor']['plugins']['get']('Annotations'),_0x2f5e01=this['_suggestionToController']['get'](_0x41ab30),_0x13b8c4=_0x2f5e01['view'],_0x2e17dc=_0x2bfac0['getByInnerView'](_0x13b8c4);_0x44a626['_unbindEditors'](_0x13b8c4),_0x2e17dc&&_0x2bfac0['remove'](_0x2e17dc),this['_suggestionToController']['delete'](_0x41ab30),this['_viewToController']['delete'](_0x13b8c4),_0x2f5e01['destroy']();}['_updateController'](_0x30ad98){if(!_0x30ad98['isInContent']||!this['_suggestionToController']['has'](_0x30ad98))return;const _0x29c208=this['editor']['plugins']['get']('TrackChangesEditing'),_0x725d94=this['_suggestionToController']['get'](_0x30ad98),_0x5dd509=_0x30ad98['getAllAdjacentSuggestions']();_0x725d94['view']['descriptionParts']=_0x29c208['descriptionFactory']['getDescriptions'](_0x5dd509);}['destroy'](){for(const _0x491384 of this['_suggestionToController']['keys']())this['_destroyController'](_0x491384);for(const _0x45eb48 of this['_annotationViews']['values']())_0x45eb48['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x261c78){return'model'in _0x261c78;}class Ne extends _0x4c30c7{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2abc8b){this['editor']['plugins']['get'](d)['adapter']=_0x2abc8b;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x14fe2d){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x14fe2d);}['getSuggestions']({skipNotAttached:_0x453d0b=!0x1,toJSON:_0x258b95=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x453d0b,'toJSON':_0x258b95});}['getSuggestion'](_0x38bf92){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x38bf92);}}const p=['Pagination'];class re extends _0x4c30c7{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43c5e6=this['editor'];if(_0x43c5e6['config']['define']('trackChangesData.editorCreator',_0x273d87=>{const _0x343083=_0x43c5e6['model']['document']['getRootNames']()['reduce']((_0x5bd239,_0x4ad701)=>(_0x5bd239[_0x4ad701]='',_0x5bd239),{});return _0x43c5e6['constructor']['create'](_0x343083,_0x273d87);}),'function'!=typeof _0x43c5e6['config']['get']('trackChangesData')['editorCreator'])throw new _0x5c3384('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2e2c38){return P(this['editor'],!0x0,_0x2e2c38);}['getDataWithDiscardedSuggestions'](_0xbc7921){return P(this['editor'],!0x1,_0xbc7921);}}class Fe extends _0x4c30c7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fba71){function _0x476d27(_0x5cfaec){return _0x5cfaec['map'](_0x356422=>String['fromCharCode'](_0x356422))['join']('');}super(_0x4fba71),this['result']='end',_0x4fba71[_0x476d27([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x476d27([0x76,0x69,0x65,0x77])][_0x476d27([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x476d27([0x61,0x75,0x74,0x6f]),_0x4fba71[_0x476d27([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x476d27([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x476d27([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x476d27([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x476d27([0x6f,0x6b])});}['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 De(_0x56db68){return void 0x0!==_0x56db68['getRootsAttributes'];}async function P(_0x5d2ffe,_0x12f182,_0x562346){const _0x1d0968=_0x2c407f(_0x5d2ffe,p);_0x1d0968['plugins']['push'](d,Fe),_0x1d0968['rootsAttributes']=De(_0x5d2ffe)?_0x5d2ffe['getRootsAttributes']():void 0x0;const _0x728bb9=document['createDocumentFragment'](),_0x53a66c=_0x5d2ffe['config']['get']('trackChangesData')['editorCreator'],_0x18f5b3=await _0x53a66c(_0x1d0968,()=>function(_0x2cad2c){const _0x35d157=document['createElement']('div');return _0x2cad2c['appendChild'](_0x35d157),_0x35d157;}(_0x728bb9));!function(_0x39cf4e,_0x4d7b4d){const _0x4eaa32=_0x39cf4e['model']['document']['getRootNames']()['reduce']((_0x4a3a16,_0x16c8d2)=>(_0x4a3a16[_0x16c8d2]=_0x39cf4e['data']['get']({'rootName':_0x16c8d2}),_0x4a3a16),{}),_0x371b1d=_0x39cf4e['plugins']['get']('Users')['users']['map'](_0xdf4bfb=>({'id':_0xdf4bfb['id'],'name':_0xdf4bfb['name']})),_0x595457=_0x39cf4e['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26d641=_0x39cf4e['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x587925=_0x4d7b4d['plugins']['get']('Users'),_0x5b2c68=_0x4d7b4d['plugins']['get']('TrackChangesEditing'),_0x305f95=_0x4d7b4d['plugins']['get']('CommentsRepository');for(const _0x23284a of _0x305f95['getCommentThreads']())_0x23284a['remove']();for(const _0x110934 of _0x371b1d)_0x587925['getUser'](_0x110934['id'])||_0x587925['addUser'](_0x110934);_0x587925['me']||_0x587925['useAnonymousUser']();for(const _0x39c029 of _0x26d641)_0x305f95['addCommentThread'](_0x39c029);for(const _0x57e316 of _0x595457)_0x5b2c68['addSuggestionData'](_0x57e316);_0x4d7b4d['data']['set'](_0x4eaa32);}(_0x5d2ffe,_0x18f5b3),_0x18f5b3['execute'](_0x12f182?'acceptAllSuggestions':'discardAllSuggestions');const _0x3bc324=De(_0x18f5b3)?_0x18f5b3['getFullData'](_0x562346):_0x18f5b3['data']['get'](_0x562346);return await _0x18f5b3['destroy'](),_0x3bc324;}class Me extends _0x429d3a{['options'];constructor(_0x549e31,_0x46d2da){super(_0x549e31),this['options']=_0x46d2da,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'](_0x5b6ee7,_0x54e7b6){if(!this['element'])return;const _0x51e865=[];for(const [_0x5c5bfd,_0x312bd6]of _0x5b6ee7){const _0x20997b=document['createElement']('div');_0x20997b['setAttribute']('data-ck-root-name',_0x5c5bfd),_0x20997b['className']=_0x312bd6['classes']+'\x20ck-track-changes-preview__root-container',_0x20997b['innerHTML']=_0x312bd6['content'],_0x51e865['push'](_0x20997b);}_0x54e7b6(this['element'],_0x51e865),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x276204{constructor(_0x244107){super(_0x244107),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3cf09c=this['editor'],_0x27797b=_0x3cf09c['locale'],_0x29b7e9=_0x3cf09c['plugins']['get']('Dialog');let _0x2f7ea8;const _0x4f9999=function(_0x261137){const _0x56f5ba={};if('editables'in _0x261137['ui']['view']){for(const [_0x4cae0f,_0x477af4]of Object['entries'](_0x261137['ui']['view']['editables']))_0x56f5ba[_0x4cae0f]=_0x477af4['element'];}else _0x56f5ba[_0x261137['model']['document']['getRootNames']()[0x0]]=_0x261137['ui']['view']['editable']['element'];return _0x56f5ba;}(_0x3cf09c),_0x2b9039=function(_0x453daf){let _0x518956=0x0;for(const _0x27910f of Object['values'](_0x453daf))_0x518956=Math['max'](_0x518956,_0x27910f['getBoundingClientRect']()['width']);let _0x402101=0x0;for(const _0x444834 of Object['values'](_0x453daf))_0x402101+=_0x444834['getBoundingClientRect']()['height'];const _0x407c7=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x38ffd8=Math['min'](_0x402101,_0x407c7);return{'width':_0x518956,'height':_0x38ffd8};}(_0x4f9999);_0x29b7e9['show']({'id':'finalContentPreview','title':o(_0x27797b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x27797b,{'dialogRects':_0x2b9039}),'onHide':()=>{_0x2f7ea8['detachFromDom']();},'onShow':()=>{_0x3cf09c['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x464b08=>{const _0x51312c=this['_standarizeRootsData'](_0x464b08,_0x3cf09c,_0x4f9999);_0x29b7e9['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x51312c,_0x3cf09c['config']['get']('trackChanges.preview.renderFunction'));}),_0x2f7ea8=new _0x44c19e(_0x27797b,[_0x29b7e9['view']]),_0x2f7ea8['attachToDom'](),_0x2f7ea8['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3cf09c['once']('destroy',()=>{_0x2f7ea8['detachFromDom']();});const _0x3edd21=_0x29b7e9['view']['headerView']['class'];_0x29b7e9['view']['headerView']['class']=_0x3edd21?_0x3edd21+'\x20ck-reset_all':'ck-reset_all',_0x29b7e9['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x29b7e9['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x20cd01=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1b6ea8=_0x20cd01['previewMode'],_0x52598b={};if('$labels'===_0x1b6ea8){for(const _0x2dc4b7 of _0x20cd01['getMergeFieldsIds']())_0x52598b[_0x2dc4b7]=_0x20cd01['getLabel'](_0x2dc4b7)||_0x2dc4b7;}else{const _0x416fa6='$defaultValues'===_0x1b6ea8?_0x20cd01['getDefaultValues']():_0x20cd01['getDataSetValues'](_0x1b6ea8,!0x0);for(const _0x4ac88e of Object['entries'](_0x416fa6)){const [_0x180c6b,_0x427201]=_0x4ac88e;_0x52598b[_0x180c6b]=null!==_0x427201?_0x427201:_0x20cd01['getLabel'](_0x180c6b)||_0x180c6b;}}return{'mergeFieldsData':_0x52598b};}['_standarizeRootsData'](_0x2f8389,_0x5c9e8b,_0x43529c){let _0x10a03c;if('string'==typeof _0x2f8389){const _0x3b675b=_0x5c9e8b['model']['document']['getRootNames']()[0x0];_0x10a03c={[_0x3b675b]:_0x2f8389};}else _0x10a03c=_0x2f8389;const _0x213adb=this['_fixMediaEmbeds'](_0x10a03c,_0x5c9e8b),_0x54b2f8=function(_0x212b9d,_0x15e15c){for(const [_0x156786,_0x45bdd6]of _0x212b9d)_0x45bdd6['classes']=_0x15e15c[_0x156786]['classList']['value']['replace']('ck-focused','');return _0x212b9d;}(this['_sortRoots'](_0x5c9e8b)['reduce']((_0x11e3b4,_0x554d31)=>(_0x11e3b4['push']([_0x554d31,{'content':_0x213adb[_0x554d31],'classes':''}]),_0x11e3b4),[]),_0x43529c);return _0x54b2f8;}['_fixMediaEmbeds'](_0x9d5b72,_0x5e8823){if(!_0x5e8823['plugins']['has']('MediaEmbedEditing'))return _0x9d5b72;const _0x13b31c=_0x5e8823['plugins']['get']('MediaEmbedEditing');for(const [_0x18d2d7,_0x16b099]of Object['entries'](_0x9d5b72)){const _0x5585f8=document['createElement']('div');_0x5585f8['innerHTML']=_0x16b099,(_0x5585f8['querySelectorAll']('figure.media')['forEach'](_0x5e8f0f=>{const _0x3a2857=_0x5e8f0f['querySelector']('oembed');if(_0x3a2857){const _0x4dddd9=_0x3a2857['getAttribute']('url');if(_0x4dddd9){const _0x546b39=_0x13b31c['registry']['getMediaViewElement'](new _0x2ec512(_0x5e8823['editing']['view']['document']),_0x4dddd9,{'elementName':'','renderForEditingView':!0x0}),_0x13181c=document['createElement']('div');_0x13181c['classList']['add']('ck-media__wrapper'),_0x546b39['render'](_0x13181c,_0x5e8823['editing']['view']['domConverter']),_0x3a2857['replaceWith'](_0x13181c);}}}),_0x9d5b72[_0x18d2d7]=_0x5585f8['innerHTML']);}return _0x9d5b72;}['_sortRoots'](_0x40e23b){if(!function(_0x524ffd){return void 0x0!==_0x524ffd['getRootsAttributes'];}(_0x40e23b))return _0x40e23b['model']['document']['getRootNames']();const _0x2083bf=[],_0x2fe6dc=new Map();for(const _0x3425a0 of _0x40e23b['model']['document']['getRootNames']()){const _0x5894f8=_0x40e23b['editing']['view']['getDomRoot'](_0x3425a0)['getClientRects']()['item'](0x0);_0x2083bf['push'](_0x3425a0),_0x2fe6dc['set'](_0x3425a0,_0x5894f8);}return _0x2083bf['sort']((_0x36ed80,_0x54daab)=>{const _0x19ca22=_0x2fe6dc['get'](_0x36ed80),_0xe2249b=_0x2fe6dc['get'](_0x54daab);return _0x19ca22['y']-_0xe2249b['y']||_0x19ca22['x']-_0xe2249b['x'];}),_0x2083bf;}}class Ue extends _0x4c30c7{static get['requires'](){return[re,_0x4773fa];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56c540){super(_0x56c540),_0x56c540['commands']['add']('previewFinalContent',new te(this['editor'])),_0x56c540['config']['define']('trackChanges.preview.renderFunction',(_0x787fd2,_0x484a73)=>{for(const _0x2e4357 of _0x484a73)_0x787fd2['appendChild'](_0x2e4357);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x243073,Plugin as _0x562758,PendingActions as _0x448de2}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2ea645,ObservableMixin as _0x3aea00,uid as _0x341aab,priorities as _0x30da9e,insertToPriorityArray as _0x246ccd,logWarning as _0x4de72a,getEnvKeystrokeText as _0xda6fcd,FocusTracker as _0x327580,KeystrokeHandler as _0x3b42a9,Collection as _0x41e968}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x51b180,IconCancel as _0x3a2f9c,IconTrackChanges as _0x4c593e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x2abc75,View as _0x28bdc3,ViewCollection as _0x416963,FocusCycler as _0x5ed207,UIModel as _0x2d8df2,createDropdown as _0x4d0c40,SplitButtonView as _0x574fdd,addListToDropdown as _0x7bb7d8,MenuBarMenuView as _0x1e0b08,MenuBarMenuListView as _0x107130,ListSeparatorView as _0x37e502,MenuBarMenuListItemView as _0x5a7459,MenuBarMenuListItemButtonView as _0x40a314,BodyCollection as _0x124139,Dialog as _0x435edb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x55e6d0,Users as _0x3f15d1,DocumentCompare as _0x18362e,fixElementSuggestionRange as _0x1d4d3c,hashObject as _0x56d605,splitSuggestionMarkerName as _0xdfe2f6,surroundingMarkersDetector as _0x35b4f6,FOCUS_ANNOTATION_KEYSTROKE as _0x39921e,AriaDescriptionView as _0x15f86c,setupThreadKeyboardNavigation as _0x7a1f11,trimHtml as _0x44dce4,UserView as _0x322d3d,LateFocusButtonView as _0x21e5b5,getDateTimeFormatter as _0x39adb7,getAllMarkersDomElementsSorted as _0x4b32ea,sanitizeEditorConfig as _0x3050d5}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1e376c,ModelLiveRange as _0x2ed57b,ModelLivePosition as _0xbf4859,ViewDowncastWriter as _0x27c8e5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x4e7214,set as _0x53cfff,isEqual as _0x1a3d04,unset as _0x1a3e18,omit as Jt}from'es-toolkit/compat';import{Delete as _0x59067,Input as _0x1357fe}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x421073}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2aa2ff}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x243073{['_enabledCommands'];constructor(_0x3e99d1,_0x1e2a4f){super(_0x3e99d1),this['_enabledCommands']=_0x1e2a4f,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 _0x1c37f6 of this['editor']['commands']['commands']())_0x1c37f6['affectsData']&&!this['_enabledCommands']['has'](_0x1c37f6)&&_0x1c37f6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x24f0d7 of this['editor']['commands']['commands']())_0x24f0d7['affectsData']&&!this['_enabledCommands']['has'](_0x24f0d7)&&_0x24f0d7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x243073{['_suggestions'];constructor(_0x244a37,_0x36d0de){super(_0x244a37),this['_suggestions']=_0x36d0de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x448348){const _0x3a1dcf=this['_suggestions']['get'](_0x448348);if(!_0x3a1dcf)throw new _0x2ea645('track-changes-accept-suggestion-not-found',this);const _0xef0115=_0x3a1dcf['getRanges']();this['editor']['model']['canEditAt'](_0xef0115)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3a1dcf);}}class x extends _0x243073{['_suggestions'];constructor(_0x43e514,_0x4b63a3){super(_0x43e514),this['_suggestions']=_0x4b63a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4793db){const _0x533356=this['_suggestions']['get'](_0x4793db);if(!_0x533356)throw new _0x2ea645('track-changes-discard-suggestion-not-found',this);const _0x53ea4e=_0x533356['getRanges']();this['editor']['model']['canEditAt'](_0x53ea4e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x533356);}}function ls(_0x2065d9,_0x232cdc){let _0x46955b='';return _0x46955b+=_0x2065d9['split']('*')['map']((_0x20db3c,_0x308761)=>_0x308761%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+rn(_0x20db3c)+'</span>':rn(_0x20db3c))['join'](''),_0x232cdc&&(_0x46955b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x232cdc['value']+'\x22\x20title=\x22'+_0x232cdc['title']+'\x22></span>'),_0x46955b;}function rn(_0x53bf2d){const _0x536226=document['createElement']('span');return _0x536226['innerText']=_0x53bf2d,_0x536226['innerHTML'];}function ts(_0x754d14){return _0x754d14['sort']((_0x568e93,_0x2fe1a0)=>'attribute'===_0x568e93['type']&&'attribute'!==_0x2fe1a0['type']?-0x1:'attribute'!==_0x568e93['type']&&'attribute'===_0x2fe1a0['type']?0x1:'deletion'==_0x568e93['type']&&'deletion'!=_0x2fe1a0['type']?-0x1:'deletion'!=_0x568e93['type']&&'deletion'==_0x2fe1a0['type']?0x1:0x0);}function to(_0x3980f1,_0x234c3a){let _0x57cee2,_0x5d46a6=0x0;const _0x42cd06=[],_0x562ede=_0x234c3a['schema'];for(;_0x5d46a6<_0x3980f1['length'];){const _0x571f7a=_0x3980f1[_0x5d46a6],_0x2c7d6b=_0x3980f1[_0x5d46a6+0x1];_0x57cee2||(_0x57cee2=_0x234c3a['createPositionBefore'](_0x571f7a)),cn(_0x234c3a,_0x571f7a,_0x2c7d6b)||(_0x42cd06['push'](_0x234c3a['createRange'](_0x57cee2,_0x562ede['isObject'](_0x571f7a)?_0x234c3a['createPositionAfter'](_0x571f7a):_0x234c3a['createPositionAt'](_0x571f7a,'end'))),_0x57cee2=null),_0x5d46a6++;}return _0x42cd06;}function cn(_0x2cb6da,_0xd7a427,_0x13055e){if(!_0x13055e)return!0x1;const _0x36feba=_0x2cb6da['createPositionAfter'](_0xd7a427),_0x19ecc2=_0x2cb6da['createPositionBefore'](_0x13055e);return _0x36feba['isTouching'](_0x19ecc2);}function rs(_0x3ed47e,_0x9bd250,_0xb58cec){for(;_0xb58cec['length'];){const _0x326f6e=_0xb58cec['splice'](0x0,0x64);_0x3ed47e['change'](()=>{for(const _0x2e57a5 of _0x326f6e)_0x2e57a5['isInContent']&&_0x9bd250['execute'](_0x2e57a5['id']);});}}class M extends _0x243073{['_command'];['_suggestions'];constructor(_0x21f175,_0x361f6d,_0x1ca755){super(_0x21f175),this['_command']=_0x361f6d,this['_suggestions']=_0x1ca755,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x35eea3=Array['from'](this['_suggestions']['values']())['some'](_0x4d521d=>_0x4d521d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x35eea3;}['execute'](){const _0x5e0ed4=ts(Array['from'](this['_suggestions']['values']()));for(const _0x12282a of _0x5e0ed4){const _0x231336=_0x12282a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x231336))return;}rs(this['editor']['model'],this['_command'],_0x5e0ed4);}}class R extends _0x243073{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3aa172,_0x183336,_0x2daaf8){super(_0x3aa172),this['_command']=_0x183336,this['_suggestions']=_0x2daaf8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d85eb=this['editor']['model']['document']['selection'],_0x34c8ae=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2bf47c,_0x5742ee){const _0x13091c=Array['from'](_0x2bf47c['getRanges']()),_0x3b55a4=new Set();for(const _0x1d61e3 of _0x5742ee)if(_0x1d61e3['isInContent']){for(const _0x48b414 of _0x13091c)for(const _0x51bcbf of _0x1d61e3['getRanges']())(_0x48b414['isIntersecting'](_0x51bcbf)||_0x2bf47c['isCollapsed']&&!_0x1d61e3['isMultiRange']&&_0x1d61e3['next']&&_0x51bcbf['end']['isTouching'](_0x48b414['start']))&&_0x3b55a4['add'](_0x1d61e3);}return _0x3b55a4;}(_0x4d85eb,_0x34c8ae),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5dbb68=ts(Array['from'](this['_selectedSuggestions']));for(const _0x16b934 of _0x5dbb68){const _0x263db0=_0x16b934['getRanges']();if(!this['editor']['model']['canEditAt'](_0x263db0))return;}rs(this['editor']['model'],this['_command'],_0x5dbb68);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3aea00(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1f94d4,_0x1cbeca){super(),this['id']=_0x1cbeca['id'],this['type']=_0x1cbeca['type'],this['subType']=_0x1cbeca['subType']||null,this['author']=_0x1cbeca['author'],this['creator']=_0x1cbeca['creator']||_0x1cbeca['author'],this['isExternal']=Boolean(_0x1cbeca['attributes']&&_0x1cbeca['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1cbeca['originalSuggestionId']||null,this['_model']=_0x1f94d4,this['_onAccept']=_0x1cbeca['onAccept'],this['_onDiscard']=_0x1cbeca['onDiscard'],this['_onAttributesChange']=_0x1cbeca['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1cbeca['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['head'](){let _0x24a6d5=this;for(;_0x24a6d5['previous'];)_0x24a6d5=_0x24a6d5['previous'];return _0x24a6d5;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){if(0x0==this['_markerNames']['size'])return!0x1;return 0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x3e2b75){this['_markerNames']['add'](_0x3e2b75);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x12d0f1=>this['_model']['markers']['get'](_0x12d0f1))['filter'](_0xc1a35d=>_0xc1a35d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4ed260=>{for(const _0xce63db of this['getMarkers']())_0x4ed260['removeMarker'](_0xce63db);}),this['_markerNames']['clear']();}['removeMarker'](_0x403a77){this['_model']['change'](_0x5da3f0=>{_0x5da3f0['removeMarker'](_0x403a77);}),this['_markerNames']['delete'](_0x403a77);}['addRange'](_0x54c298){const _0x5e36c5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5e36c5),this['_model']['change'](_0x3968ca=>{_0x3968ca['addMarker'](_0x5e36c5,{'range':_0x54c298,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x569195){for(const _0x3d449b of this['getRanges']())if(_0x3d449b['isIntersecting'](_0x569195))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x42e261=>_0x42e261['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x44e12a,_0x2485fb)=>[..._0x44e12a,..._0x2485fb['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa04844=this['getRanges']();if(0x1!=_0xa04844['length'])return null;const _0x15a6aa=_0xa04844[0x0],_0x5bbc86=_0x15a6aa['start']['nodeAfter'],_0x5b0d56=_0x15a6aa['end']['nodeBefore'];return _0x5bbc86 instanceof _0x1e376c?_0x5bbc86!=_0x5b0d56?null:_0x5bbc86: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 _0x187605=[];let _0x241b26=this['head'];for(;_0x241b26;)_0x187605['push'](_0x241b26),_0x241b26=_0x241b26['next'];return _0x187605;}['setAttribute'](_0xc4b3cf,_0x58db9e){const _0x401f9c=_0x4e7214(this['attributes']);_0x53cfff(_0x401f9c,_0xc4b3cf,_0x58db9e),_0x1a3d04(_0x401f9c,this['attributes'])||(this['attributes']=_0x401f9c,this['_onAttributesChange'](_0x401f9c));}['removeAttribute'](_0x583fad){const _0x1b00a8=_0x4e7214(this['attributes']);_0x1a3e18(_0x1b00a8,_0x583fad),_0x1a3d04(_0x1b00a8,this['attributes'])||(this['attributes']=_0x1b00a8,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 _0x341aab()['substr'](0x1,0x5);}}function o(_0x207657,_0x4bf0eb,_0x4ed375){const _0x42e7ce=_0x207657['t'],t=_0x207657['t'];switch(_0x4bf0eb){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',_0x4ed375);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4ed375);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4ed375);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4ed375);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4ed375);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',_0x4ed375);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4ed375);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',_0x4ed375);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4ed375);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4ed375);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4ed375);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4ed375);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4ed375);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4ed375);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4ed375);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4ed375);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4ed375);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4ed375);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4ed375);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4ed375);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4ed375);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4ed375);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4ed375);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4ed375);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4ed375);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'},_0x4ed375);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4ed375);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4ed375);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4ed375);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4ed375);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4ed375);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4ed375);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4ed375);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});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'},_0x4ed375);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4ed375);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4ed375);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4ed375);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4ed375);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'},_0x4ed375);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_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_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'},_0x4ed375);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4ed375);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x4ed375);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x4ed375);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x4ed375);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4ed375);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'},_0x4ed375);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4ed375);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'EXTERNAL_AVATAR':return _0x42e7ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4ed375);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x42e7ce({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4ed375);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4ed375);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'},_0x4ed375);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'},_0x4ed375);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'},_0x4ed375);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4bf0eb;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xe4b7e5,_0x1a7ba8){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xe4b7e5,this['_locale']=_0x1a7ba8;}['getDescriptions'](_0xae743b){const _0x3d85a5=[],_0x422886=new Set(),_0x265334=new Set();for(let _0xe80576=0x0;_0xe80576<_0xae743b['length'];_0xe80576++){const _0x5ba611=_0xae743b[_0xe80576];if(!_0x5ba611['isInContent'])continue;const _0xb5a944=this['_handleCustomCallbackDescription'](_0x5ba611);if(_0xb5a944){if(null!=_0x5ba611['subType']){if(_0x422886['has'](_0x5ba611['subType']))continue;_0x422886['add'](_0x5ba611['subType']);}_0x3d85a5['push'](_0xb5a944);}else{if('attribute'==_0x5ba611['type']){const _0x419a02=_0x5ba611['data']['key'];if(_0x265334['has'](_0x419a02))continue;_0x265334['add'](_0x5ba611['data']['key']),_0x419a02==m?this['_handleRenameSuggestionDescription'](_0x3d85a5,_0x5ba611):this['_handleAttributeSuggestionDescription'](_0x3d85a5,_0x5ba611);continue;}'insertion'!=_0x5ba611['type']&&'deletion'!=_0x5ba611['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3d85a5,_0x5ba611,_0xae743b[_0xe80576+0x1]);}}return this['_resolveDescriptionItems'](_0x3d85a5);}['registerDescriptionCallback'](_0x6bae2a){this['_customCallbacks']['push'](_0x6bae2a);}['registerElementLabel'](_0x296c5a,_0x3f0334,_0x47812c=_0x30da9e['normal']){'function'==typeof _0x296c5a?_0x246ccd(this['_itemLabelsCallbacks'],{'matchingCallback':_0x296c5a,'label':_0x3f0334,'priority':_0x47812c}):this['_itemLabels']['set'](_0x296c5a,_0x3f0334);}['registerAttributeLabel'](_0x5ec12c,_0x2a6ecb){this['_attributeLabels']['set'](_0x5ec12c,_0x2a6ecb);}['getItemLabel'](_0x5f30fa,_0x4ff6f1=0x1){let _0x4c4af5;for(const _0xbca1c9 of this['_itemLabelsCallbacks'])if(_0xbca1c9['matchingCallback'](_0x5f30fa)){_0x4c4af5=_0xbca1c9['label'];break;}return _0x4c4af5||(_0x4c4af5=this['_itemLabels']['get'](_0x5f30fa['name'])),_0x4c4af5?_0x4c4af5(_0x4ff6f1):0x1!==_0x4ff6f1?_0x4ff6f1+'\x20'+_0x5f30fa['name']+'s':''+_0x5f30fa['name'];}['_addDescriptionItems'](_0x528d3a,_0x1187ce){const _0x8f29c5=_0x1187ce['getFirstRange']()['getWalker'](),_0x3e4989='insertion'==_0x1187ce['type']?'add':'remove';for(const _0x3596be of _0x8f29c5){const _0x563b3d=_0x3596be['item'],_0xbb58e=_0x528d3a[_0x528d3a['length']-0x1];if(_0x563b3d['is']('$textProxy'))_0xbb58e&&_0xbb58e['type']['indexOf']('Container')>-0x1&&_0x528d3a['pop'](),_0xbb58e&&'text'==_0xbb58e['type']?_0xbb58e[_0x3e4989]+=_0x563b3d['data']:_0x528d3a['push']({'type':'text','add':'add'==_0x3e4989?_0x563b3d['data']:'','remove':'remove'==_0x3e4989?_0x563b3d['data']:''});else{if(this['_schema']['isObject'](_0x563b3d)){const _0x2d91cb=_0x563b3d;if(_0xbb58e&&_0xbb58e['type']['indexOf']('Container')>-0x1&&_0x528d3a['pop'](),'elementEnd'==_0x3596be['type'])continue;_0xbb58e&&_0xbb58e['type']==_0x3e4989+'Object'&&_0xbb58e['element']['name']==_0x2d91cb['name']?_0xbb58e['quantity']++:_0x528d3a['push']({'type':_0x3e4989+'Object','element':_0x2d91cb,'quantity':0x1}),_0x8f29c5['skip'](_0x162ebd=>!('elementEnd'==_0x162ebd['type']&&_0x162ebd['item']==_0x563b3d));}else{if(this['_schema']['checkChild'](_0x563b3d,'$text')||_0x563b3d['is']('element','softBreak')){const _0x2719c0=_0x563b3d;if('add'==_0x3e4989&&'elementStart'==_0x3596be['type']||'remove'==_0x3e4989&&'elementEnd'==_0x3596be['type'])continue;if(_0xbb58e&&-0x1==_0xbb58e['type']['indexOf']('Container')){'text'==_0xbb58e['type']&&(_0xbb58e[_0x3e4989]+='\x0a');continue;}let _0x250c3f;if(_0x250c3f='add'==_0x3e4989?_0x2719c0['nextSibling']&&!this['_schema']['isObject'](_0x2719c0['nextSibling'])?_0x2719c0['nextSibling']:null:_0x2719c0['previousSibling']&&!this['_schema']['isObject'](_0x2719c0['previousSibling'])?_0x2719c0['previousSibling']:null,_0x2719c0['isEmpty']||_0x250c3f&&_0x250c3f['isEmpty']){const _0x32762d=_0x250c3f&&_0x250c3f['isEmpty']?_0x250c3f:_0x2719c0;_0xbb58e&&_0xbb58e['type']==_0x3e4989+'EmptyContainer'&&_0xbb58e['element']['name']==_0x32762d['name']?_0xbb58e['quantity']++:_0x528d3a['push']({'type':_0x3e4989+'EmptyContainer','element':_0x32762d,'quantity':0x1});}else _0x528d3a['push']({'type':_0x3e4989+'Container','element':_0x2719c0});}}}}}['_resolveDescriptionItems'](_0x4a8a15){const _0x1fc55b=this['_locale'],_0x46b876=[],_0x128754=[],_0x21acaf=[];for(const _0x569cd6 of _0x4a8a15)switch(_0x569cd6['type']){case'text':if(_0x569cd6['add']=_0x569cd6['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x569cd6['remove']=_0x569cd6['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x569cd6['add']&&''!=_0x569cd6['remove']){_0x46b876['push']({'type':'replace','content':o(_0x1fc55b,'REPLACE_TEXT',['\x22'+_0x569cd6['remove']+'\x22','\x22'+_0x569cd6['add']+'\x22'])});continue;}if(null!=_0x569cd6['add']['match'](/^ +$/)){_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0',o(_0x1fc55b,'ELEMENT_SPACE',_0x569cd6['add']['length']))});continue;}if(null!=_0x569cd6['remove']['match'](/^ +$/)){_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0',o(_0x1fc55b,'ELEMENT_SPACE',_0x569cd6['remove']['length']))});continue;}if(''!=_0x569cd6['add']){_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0','\x22'+_0x569cd6['add']+'\x22')});continue;}_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0','\x22'+_0x569cd6['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Insert:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Remove:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'addContainer':_0x46b876['push']({'type':'insertion','content':o(_0x1fc55b,'*Split:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'removeContainer':_0x46b876['push']({'type':'deletion','content':o(_0x1fc55b,'*Merge:*\x20%0',this['getItemLabel'](_0x569cd6['element'],_0x569cd6['quantity']))});continue;case'addFormat':_0x128754['push'](_0x569cd6['key']);continue;case'removeFormat':_0x21acaf['push'](_0x569cd6['key']);continue;default:_0x46b876['push'](_0x569cd6);}if(_0x128754['length']){const _0xc45011=_0x128754['map'](_0x18b8ac=>this['_attributeLabels']['has'](_0x18b8ac)?this['_attributeLabels']['get'](_0x18b8ac):_0x18b8ac)['join'](',\x20');_0x46b876['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xc45011)});}if(_0x21acaf['length']){const _0x412e25=_0x21acaf['map'](_0x50f985=>this['_attributeLabels']['has'](_0x50f985)?this['_attributeLabels']['get'](_0x50f985):_0x50f985)['join'](',\x20');_0x46b876['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x412e25)});}return _0x46b876;}['_handleCustomCallbackDescription'](_0x49bc4a){for(const _0x3f2403 of this['_customCallbacks']){const _0x546380=_0x3f2403(_0x49bc4a);if(_0x546380&&'type'in _0x546380)return _0x546380;}}['_handleAttributeSuggestionDescription'](_0x386fc8,_0x497162){const _0x4e6d0d=_0x497162['data'],_0x30ed81=void 0x0===_0x4e6d0d['newValue']?'removeFormat':'addFormat';_0x386fc8['push']({'type':_0x30ed81,'key':_0x4e6d0d['key']});}['_handleRenameSuggestionDescription'](_0x329ce0,_0x35fd44){_0x329ce0['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x35fd44['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x77cd98,_0x1e7da8,_0x375d05){if(this['_addDescriptionItems'](_0x77cd98,_0x1e7da8),_0x375d05&&_0x375d05['getFirstRange']()&&!_0x1e7da8['getFirstRange']()['end']['isEqual'](_0x375d05['getFirstRange']()['start'])){const _0x2e4d6d=_0x77cd98[_0x77cd98['length']-0x1],_0x371e89='insertion'==_0x1e7da8['type']?'add':'remove';_0x2e4d6d&&'text'==_0x2e4d6d['type']&&(_0x2e4d6d[_0x371e89]+='\x0a');}}}class U extends _0x562758{['afterInit'](){const _0xf0af5e=this['editor'],_0x1fd0ee=_0xf0af5e['plugins']['get']('TrackChangesEditing');_0xf0af5e['commands']['get']('showAIAssistant')&&_0x1fd0ee['enableCommand']('showAIAssistant');}}class V extends _0x562758{['afterInit'](){const _0x40c311=this['editor'],_0x6a32bf=_0x40c311['plugins']['get']('TrackChangesEditing');_0x40c311['commands']['get']('toggleAi')&&_0x6a32bf['enableCommand']('toggleAi');}}class F extends _0x562758{['afterInit'](){const _0xef96da=this['editor'],_0x344379=_0xef96da['plugins']['get']('TrackChangesEditing');_0xef96da['commands']['get']('aiQuickAction')&&_0x344379['enableCommand']('aiQuickAction');}}class G extends _0x562758{['afterInit'](){const _0x2afc34=this['editor'],_0x56d492=_0x2afc34['locale'];if(!_0x2afc34['plugins']['has']('AlignmentEditing'))return;const _0x5b414f=_0x2afc34['plugins']['get']('TrackChangesEditing');_0x5b414f['enableDefaultAttributesIntegration']('alignment'),_0x5b414f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x56d492,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e49d5=this['editor'],_0x222531=_0x4e49d5['locale'];_0x4e49d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16fc27=>{if('formatBlock'!=_0x16fc27['type'])return;const {data:_0x22eb1c}=_0x16fc27;if(_0x22eb1c&&'alignment'==_0x22eb1c['commandName']){const _0x2b36e3=_0x22eb1c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x222531,'*Format:*\x20%0',function(_0x4f4cac){switch(_0x4f4cac){case'left':return o(_0x222531,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x222531,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x222531,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x222531,'FORMAT_JUSTIFY_TEXT');}}(_0x2b36e3))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x562758{['afterInit'](){const _0x1223e5=this['editor'],_0x25dd2d=_0x1223e5['plugins']['get']('TrackChangesEditing'),_0x52dba0=_0x1223e5['locale'];for(const _0x17e33d of ti){if(!_0x1223e5['plugins']['has'](_0x17e33d))continue;const _0x2718b0=_0x17e33d['slice'](0x0,-0x7)['toLowerCase'](),_0x6197a='FORMAT_'+_0x2718b0['toUpperCase']();_0x25dd2d['enableDefaultAttributesIntegration'](_0x2718b0),_0x25dd2d['descriptionFactory']['registerAttributeLabel'](_0x2718b0,o(_0x52dba0,_0x6197a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1536a8=this['editor'],_0x5dfb59=_0x1536a8['locale'],_0x5e41fc=_0x1536a8['plugins']['get']('TrackChangesEditing');function _0x170989(_0x26ad5b,_0x22b466){_0x5e41fc['descriptionFactory']['registerDescriptionCallback'](_0x7bf20b=>{if('formatInline'!=_0x7bf20b['type'])return;const {data:_0x3e6611}=_0x7bf20b;return _0x3e6611&&_0x3e6611['commandName']===_0x26ad5b?_0x3e6611['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dfb59,'*Format:*\x20%0',_0x22b466)}:{'type':'format','content':o(_0x5dfb59,'*Remove\x20format:*\x20%0',_0x22b466)}:void 0x0;});}_0x170989('bold',o(_0x5dfb59,'FORMAT_BOLD')),_0x170989('italic',o(_0x5dfb59,'FORMAT_ITALIC')),_0x170989('underline',o(_0x5dfb59,'FORMAT_UNDERLINE')),_0x170989('code',o(_0x5dfb59,'FORMAT_CODE')),_0x170989('strikethrough',o(_0x5dfb59,'FORMAT_STRIKETHROUGH')),_0x170989('subscript',o(_0x5dfb59,'FORMAT_SUBSCRIPT')),_0x170989('superscript',o(_0x5dfb59,'FORMAT_SUPERSCRIPT'));}}class J extends _0x562758{['afterInit'](){const _0x2ea615=this['editor'],_0x1e6733=_0x2ea615['locale'];if(!_0x2ea615['plugins']['has']('BlockQuoteEditing'))return;const _0x1d28d1=_0x2ea615['plugins']['get']('TrackChangesEditing'),_0x677e41=this['editor']['commands']['get']('blockQuote');_0x1d28d1['enableCommand']('blockQuote',(_0xb0a3ca,_0x28a6c3={})=>{const _0x16af1e=this['editor']['model']['document']['selection'],_0x2ee3f1=_0x28a6c3&&void 0x0!==_0x28a6c3['forceValue']?_0x28a6c3['forceValue']:!_0x677e41['value'];let _0x2d0f5a=[];if(_0x2ee3f1){const _0x10b4bc=Array['from'](_0x16af1e['getSelectedBlocks']())['filter'](_0x2a38fe=>oo(_0x2a38fe)||function(_0x3a69e7,_0x44ef3a){const _0x589489=_0x44ef3a['checkChild'](_0x3a69e7['parent'],'blockQuote'),_0x2f5222=_0x44ef3a['checkChild'](['$root','blockQuote'],_0x3a69e7);return _0x589489&&_0x2f5222;}(_0x2a38fe,this['editor']['model']['schema']));_0x2d0f5a=to(_0x10b4bc,_0x2ea615['model']);}else{const _0x5cdd4c=Array['from'](_0x16af1e['getSelectedBlocks']())['filter'](_0x3bfb57=>oo(_0x3bfb57));_0x2d0f5a=to(_0x5cdd4c,_0x2ea615['model']);}_0x2ea615['model']['change'](()=>{for(const _0x345c2e of _0x2d0f5a)_0x1d28d1['markBlockFormat'](_0x345c2e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2ee3f1}]});});}),_0x1d28d1['descriptionFactory']['registerDescriptionCallback'](_0x5dce14=>{const {data:_0x56aaf5}=_0x5dce14;if(_0x56aaf5&&'blockQuote'==_0x56aaf5['commandName']){const _0x27d5c9=o(_0x1e6733,'ELEMENT_BLOCK_QUOTE');return _0x56aaf5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6733,'*Set\x20format:*\x20%0',_0x27d5c9)}:{'type':'format','content':o(_0x1e6733,'*Remove\x20format:*\x20%0',_0x27d5c9)};}});}}function oo(_0x11c1e0){return'blockQuote'==_0x11c1e0['parent']['name'];}class q extends _0x562758{['afterInit'](){const _0x305532=this['editor'],_0x16a0c0=_0x305532['locale'],_0x10bfb5=_0x305532['plugins']['get']('TrackChangesEditing');_0x305532['plugins']['has']('BookmarkEditing')&&(_0x10bfb5['enableCommand']('insertBookmark'),_0x10bfb5['enableDefaultAttributesIntegration']('updateBookmark'),_0x10bfb5['descriptionFactory']['registerDescriptionCallback'](_0x5d4621=>{if('insertion'!=_0x5d4621['type']&&'deletion'!=_0x5d4621['type']&&'attribute'!=_0x5d4621['type'])return;const _0x529e62=_0x5d4621['getContainedElement']();if(null==_0x529e62)return;if(!_0x529e62['is']('element','bookmark'))return;const _0x53969e=_0x529e62['getAttribute']('bookmarkId');if('insertion'==_0x5d4621['type'])return{'type':'insertion','content':o(_0x16a0c0,'*Insert:*\x20%0','\x22'+_0x53969e+'\x22\x20'+o(_0x16a0c0,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d4621['type'])return{'type':'deletion','content':o(_0x16a0c0,'*Remove:*\x20%0','\x22'+_0x53969e+'\x22\x20'+o(_0x16a0c0,'ELEMENT_BOOKMARK'))};const {data:_0xa7d4c4}=_0x5d4621;if(!_0xa7d4c4||'bookmarkId'!=_0xa7d4c4['key'])return;return{'type':'format','content':o(_0x16a0c0,'*Set\x20bookmark:*\x20%0','\x22'+_0xa7d4c4['newValue']+'\x22')};}));}}class z extends _0x562758{['afterInit'](){const _0x360353=this['editor'];_0x360353['plugins']['has']('CaseChange')&&(_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x360353['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x562758{['afterInit'](){const _0x3336a1=this['editor'];_0x3336a1['commands']['get']('ckbox')&&_0x3336a1['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x562758{['afterInit'](){const _0x4667f9=this['editor'];if(!_0x4667f9['plugins']['has']('CodeBlock'))return;const _0x503643=_0x4667f9['plugins']['get']('TrackChangesEditing'),_0x408d4f=_0x4667f9['locale'],_0x299c8e=_0x4667f9['config']['get']('codeBlock')['languages'],_0x30c916=_0x4667f9['commands']['get']('codeBlock');_0x503643['enableCommand']('indentCodeBlock'),_0x503643['enableCommand']('outdentCodeBlock'),_0x503643['enableCommand']('codeBlock',(_0x1abe14,_0x540931={})=>{const _0x23a0b8=_0x4667f9['model'],_0x3a1eca=_0x4667f9['model']['document']['selection'],_0x66d3b1=_0x540931&&void 0x0!==_0x540931['forceValue']?_0x540931['forceValue']:!_0x30c916['value'];let _0x5245f1;_0x540931['language']||(_0x540931['language']=_0x299c8e[0x0]['language']),_0x5245f1=_0x66d3b1?Array['from'](_0x3a1eca['getSelectedBlocks']())['filter'](_0x5c60be=>co(_0x5c60be)||function(_0x1d695a,_0x36b7c2){if(_0x1d695a['is']('rootElement')||_0x36b7c2['isLimit'](_0x1d695a))return!0x1;return _0x36b7c2['checkChild'](_0x1d695a['parent'],'codeBlock');}(_0x5c60be,_0x23a0b8['schema'])):Array['from'](_0x3a1eca['getSelectedBlocks']())['filter'](_0x52512e=>co(_0x52512e));const _0x1d9bd6=to(_0x5245f1,_0x23a0b8);_0x23a0b8['change'](()=>{for(const _0x14e520 of _0x1d9bd6)_0x503643['markBlockFormat'](_0x14e520,{'commandName':'codeBlock','commandParams':[{..._0x540931,'forceValue':_0x66d3b1}],'formatGroupId':'blockName'});});}),(_0x503643['descriptionFactory']['registerElementLabel']('codeBlock',_0xb746b4=>o(_0x408d4f,'ELEMENT_CODE_BLOCK',_0xb746b4)),_0x503643['descriptionFactory']['registerDescriptionCallback'](_0xc3f933=>{if('formatBlock'!=_0xc3f933['type'])return;const _0x543efd=_0x408d4f['t'],{data:_0x3760aa}=_0xc3f933;if(!_0x3760aa||'codeBlock'!=_0x3760aa['commandName'])return;const _0x2ea8d4=_0x3760aa['commandParams'][0x0]['language'],_0x3c7dd8=_0x543efd(_0x299c8e['find'](_0x451c92=>_0x451c92['language']===_0x2ea8d4)['label'])['toLowerCase']();return _0x3760aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408d4f,'*Set\x20format:*\x20%0',o(_0x408d4f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3c7dd8+')')}:{'type':'format','content':o(_0x408d4f,'*Remove\x20format:*\x20%0',o(_0x408d4f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x370c97){return'codeBlock'==_0x370c97['name'];}class H extends _0x562758{['afterInit'](){const _0x24337f=this['editor'];if(!_0x24337f['plugins']['has']('CommentsEditing'))return;_0x24337f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x562758{static get['requires'](){return[_0x59067];}['init'](){const _0x36b805=this['editor'],_0x5b1d78=_0x36b805['plugins']['get']('TrackChangesEditing');_0x5b1d78['enableCommand']('delete');const _0x4bdb8a=_0x36b805['commands']['get']('deleteForward');_0x5b1d78['enableCommand']('deleteForward',(_0x36a8e1,_0x5d5c20={})=>{const _0x5b6db5=_0x36b805['model']['createSelection'](_0x36b805['model']['document']['selection']);_0x5b6db5['isCollapsed']&&_0x36b805['model']['modifySelection'](_0x5b6db5,{'direction':'forward','unit':_0x5d5c20['unit']});const _0x4ac9a8=_0x5b6db5['getFirstRange'](),_0x1750b6=_0x2ed57b['fromRange'](_0x4ac9a8);let _0x2607b1;_0x36a8e1(_0x5d5c20),_0x2607b1='$graveyard'==_0x1750b6['root']['rootName']?_0x36b805['model']['createRange'](_0x4ac9a8['start']):_0x36b805['model']['createRange'](_0x1750b6['start'],_0x1750b6['end']),_0x1750b6['detach'](),_0x36b805['model']['enqueueChange'](_0x4bdb8a['buffer']['batch'],_0xbf006f=>{_0x4bdb8a['buffer']['lock'](),_0xbf006f['setSelection'](_0xbf006f['createRange'](_0x2607b1['end'])),_0x4bdb8a['buffer']['unlock']();});});}}class X extends _0x562758{['afterInit'](){const _0x54bb4d=this['editor'];if(!_0x54bb4d['plugins']['has']('ListEditing'))return;const _0x173f31=_0x54bb4d['locale'],_0x48f830=_0x54bb4d['plugins']['get']('TrackChangesEditing'),_0x479cc5=_0x54bb4d['plugins']['has']('TodoListEditing'),_0x3c2f2b=!!_0x54bb4d['config']['get']('list.multiBlock');function _0x53f16c(_0x3335b5){return{'type':'format','content':''+o(_0x173f31,'*Set\x20format:*\x20%0',_0x3335b5)};}function _0x136bcf(_0x3b2374){return{'type':'format','content':''+o(_0x173f31,'*Remove\x20format:*\x20%0',_0x3b2374)};}_0x48f830['enableDefaultAttributesIntegration']('numberedList'),_0x48f830['enableDefaultAttributesIntegration']('bulletedList'),_0x48f830['enableDefaultAttributesIntegration']('customNumberedList'),_0x48f830['enableDefaultAttributesIntegration']('customBulletedList'),_0x48f830['enableDefaultAttributesIntegration']('indentList'),_0x48f830['enableDefaultAttributesIntegration']('outdentList'),_0x48f830['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x48f830['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c2f2b&&(_0x48f830['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x48f830['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x479cc5&&(_0x48f830['enableDefaultAttributesIntegration']('todoList'),_0x48f830['enableDefaultAttributesIntegration']('checkTodoList'),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0xbfa97=>{const {data:_0x4c16ee}=_0xbfa97;if(_0x4c16ee&&'todoListChecked'==_0x4c16ee['key'])return{'type':'format','content':_0x4c16ee['newValue']?o(_0x173f31,'*Check\x20item*'):o(_0x173f31,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1ba872=>{if(_0x1ba872['batch']['isUndo'])return!0x1;let _0x1918f6=!0x1;const _0x387a7f=_0x48f830['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x19babb=>'todoListChecked'===_0x48f830['_getAttributeKey'](_0x19babb));for(const _0x17adb2 of _0x387a7f){'todo'!=_0x17adb2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x48f830['_findSuggestions'](_0x17adb2['getFirstRange'](),'attribute')['find'](_0x280b79=>'listType'===_0x48f830['_getAttributeKey'](_0x280b79['suggestion']))||(_0x1ba872['removeMarker'](_0x17adb2['getFirstMarker']()),_0x1918f6=!0x0));}return _0x1918f6;})),_0x48f830['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x173f31,'FORMAT_INDENT'));const _0x5aedfb={'type':'format','content':''};_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x21e05d=>{const {data:_0x15d3ca}=_0x21e05d;if(!_0x15d3ca||'listType'!=_0x15d3ca['key'])return;let _0x1e9d5f=_0x21e05d['head'];for(;_0x1e9d5f;){if(_0x1e9d5f['data']&&(('listStyle'==_0x1e9d5f['data']['key']||'listMarkerStyle'==_0x1e9d5f['data']['key'])&&(_0x1e9d5f['data']['newValue']&&'default'!=_0x1e9d5f['data']['newValue']||'default'!=_0x1e9d5f['data']['oldValue']&&!_0x15d3ca['newValue'])||!_0x3c2f2b&&_0x1e9d5f['data']['key']==m))return _0x5aedfb;_0x1e9d5f=_0x1e9d5f['next'];}if(null==_0x15d3ca['newValue'])switch(_0x15d3ca['oldValue']){case'bulleted':return _0x136bcf(o(_0x173f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x136bcf(o(_0x173f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x136bcf(o(_0x173f31,'ELEMENT_TODO_LIST'));}switch(_0x15d3ca['newValue']){case'bulleted':return _0x53f16c(o(_0x173f31,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53f16c(o(_0x173f31,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53f16c(o(_0x173f31,'ELEMENT_TODO_LIST'));}}),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x4f733e=>{const {data:_0x5eec8b}=_0x4f733e;if(_0x5eec8b&&'listIndent'==_0x5eec8b['key'])return null==_0x5eec8b['newValue']||null==_0x5eec8b['oldValue']&&0x0==_0x5eec8b['newValue']?_0x5aedfb:void 0x0;}),_0x48f830['descriptionFactory']['registerDescriptionCallback'](_0x1c738a=>{if('attribute'!=_0x1c738a['type'])return;const {data:_0x148866}=_0x1c738a;if(!_0x148866||'listItemId'!=_0x148866['key'])return;const _0x3d9cdd=Te(_0x1c738a);return'newValue'==_0x3d9cdd?{'type':'format','content':o(_0x173f31,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d9cdd?{'type':'format','content':o(_0x173f31,'*Split:*\x20list\x20item')}:_0x5aedfb;}),_0x54bb4d['model']['document']['registerPostFixer'](_0x5eab5d=>this['listItemIdFixer'](_0x5eab5d)),_0x54bb4d['model']['document']['registerPostFixer'](_0xc1d58b=>this['noTrackChangesFixer'](_0xc1d58b)),_0x54bb4d['model']['document']['on']('change:data',(_0x3cbbeb,_0x4c01ae)=>{if(_0x4c01ae['isUndo']||!_0x4c01ae['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x127e90){if(_0x127e90['batch']['isUndo']||!_0x127e90['batch']['isLocal'])return!0x1;let _0x7b91fb=!0x1;const _0x41ba07=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2619be=>_0x2619be['data']&&'listItemId'==_0x2619be['data']['key'])['filter'](_0x40fc71=>_0x40fc71['data']['newValue']&&_0x40fc71['data']['oldValue']);for(const _0x2d9722 of _0x41ba07)Te(_0x2d9722)||(_0x127e90['removeMarker'](_0x2d9722['getFirstMarker']()),_0x7b91fb=!0x0);return _0x7b91fb;}['noTrackChangesFixer'](_0x2b81c){if(_0x2b81c['batch']['isUndo']||!_0x2b81c['batch']['isLocal'])return!0x1;const _0x45de25=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x45de25['trackChangesCommand']['value'])return!0x1;let _0x39756e=!0x1;const _0x3e6291=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x12bf1c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5e7073=>'attribute'==_0x5e7073['type'])['filter'](_0x49e54b=>_0x3e6291['includes'](_0x49e54b['attributeKey']));if(0x0==_0x12bf1c['length'])return _0x39756e;for(const _0x4ea070 of _0x12bf1c){const _0x8d3acf=_0x45de25['_findSuggestions'](_0x4ea070['range'],'attribute')['filter'](_0x5dab7b=>!_0x5dab7b['meta']['isNextTo'])['map'](_0x2ea6d6=>_0x2ea6d6['suggestion'])['filter'](_0x26cb33=>{const _0x5cca44=_0x45de25['_getAttributeKey'](_0x26cb33);return _0x3e6291['includes'](_0x5cca44);});if(_0x8d3acf['length']){for(const _0x1eb16a of _0x8d3acf)_0x2b81c['removeMarker'](_0x1eb16a['getFirstMarker']());_0x39756e=!0x0;}}return _0x39756e;}['assureChains'](){const _0x3ef67b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54fea7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2aaee5;const _0x24c174=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x452ee7=>{if(_0x452ee7['data']['oldRange']||!_0x452ee7['data']['newRange'])return null;if(!_0x452ee7['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x290e7c}=_0x3ef67b['_splitMarkerName'](_0x452ee7['name']);if(!_0x3ef67b['hasSuggestion'](_0x290e7c))return null;const _0x587647=_0x3ef67b['getSuggestion'](_0x290e7c);return _0x54fea7['includes'](_0x587647['data']['key']);})['map'](_0x1d72d7=>{const {id:_0x4f5622}=_0x3ef67b['_splitMarkerName'](_0x1d72d7['name']),_0x190ea5=_0x3ef67b['getSuggestion'](_0x4f5622);return _0x2aaee5=_0x190ea5['attributes']['groupId'],_0x190ea5['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x24c174['size'])return;const _0x32b7d9=_0x3ef67b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40128b=>'attribute'==_0x40128b['type']&&_0x40128b['data']&&_0x54fea7['includes'](_0x40128b['data']['key'])&&_0x40128b['attributes']['groupId']!=_0x2aaee5)['map'](_0xb5a507=>({'listItem':_0xb5a507['getFirstRange']()['start']['nodeAfter'],'groupId':_0xb5a507['attributes']['groupId']})),_0x1b90e6=new Set();for(const {groupId:_0x5dda36,listItem:_0x2f14dc}of _0x32b7d9)_0x24c174['has'](_0x2f14dc)&&_0x1b90e6['add'](_0x5dda36);for(const _0x40732d of _0x3ef67b['getSuggestions']())_0x1b90e6['has'](_0x40732d['attributes']['groupId'])&&_0x40732d['setAttribute']('groupId',_0x2aaee5);}['_supportLegacySuggestions'](){const _0x502395=this['editor'],_0x665338=_0x502395['locale'],_0x554362=_0x502395['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x554362['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x44d767,_0x2090fa){const _0x5bc80a=[];for(let _0x511164 of _0x44d767)_0x511164['start']['nodeAfter']===_0x511164['end']['parent']&&(_0x511164=_0x502395['model']['createRange'](_0x502395['model']['createPositionAt'](_0x511164['start']['nodeAfter'],0x0))),_0x5bc80a['push'](_0x511164);_0x502395['model']['change'](_0x51ab95=>{const _0x16fa6f=_0x502395['model']['document']['selection'],_0x115d68=Array['from'](_0x16fa6f['getRanges']())['map'](_0x50bae6=>_0x2ed57b['fromRange'](_0x50bae6));_0x51ab95['setSelection'](_0x5bc80a),_0x502395['commands']['get'](_0x2090fa['commandName'])['refresh'](),_0x2090fa['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x502395['execute'](_0x2090fa['commandName'],..._0x2090fa['commandParams']),_0x51ab95['setSelection'](_0x115d68);for(const _0x2d3f7b of _0x115d68)_0x2d3f7b['detach']();});}),_0x554362['descriptionFactory']['registerElementLabel'](function(_0x5aec1b){const _0x42b8eb=!_0x502395['model']['schema']['isObject'](_0x5aec1b),_0x9b67ae=_0x5aec1b['previousSibling'],_0x32618e=_0x5aec1b['nextSibling'],_0x231f97=_0x5aec1b['getAttribute']('listItemId'),_0x3e2701=!_0x9b67ae||_0x9b67ae['getAttribute']('listItemId')!==_0x231f97,_0x457a2d=!_0x32618e||_0x32618e['getAttribute']('listItemId')!==_0x231f97;return _0x42b8eb&&Boolean(_0x231f97)&&_0x3e2701&&_0x457a2d;},_0x4ca0a9=>o(_0x665338,'ELEMENT_LIST_ITEM',_0x4ca0a9));}['_registerLegacyDescription'](){const _0x97914c=this['editor'],_0x53a2be=_0x97914c['locale'];function _0xc6aba4(_0x1f5551){const _0x97d9dc=_0x97914c['commands']['get']('bulletedList')['value'],_0x3597e8=_0x97914c['commands']['get']('numberedList')['value'];return'numberedList'===_0x1f5551?_0x97d9dc:_0x3597e8;}_0x97914c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21bdd1){if('formatBlock'!=_0x21bdd1['type'])return;const {data:_0x285e5a}=_0x21bdd1;if(!_0x285e5a)return;let _0x14dd12,_0x5d595d,_0x349103,_0x323026;switch(_0x285e5a['commandName']){case'bulletedList':_0x349103=_0x285e5a['commandParams'][0x0]['forceValue'],_0x323026=_0xc6aba4(_0x285e5a['commandName']),_0x14dd12=_0x349103?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x323026&&_0x97914c['config']['get']('list.multiBlock')||(_0x14dd12='*Change\x20to:*\x20%0'),_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x349103=_0x285e5a['commandParams'][0x0]['forceValue'],_0x323026=_0xc6aba4(_0x285e5a['commandName']),_0x14dd12=_0x349103?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x323026&&_0x97914c['config']['get']('list.multiBlock')||(_0x14dd12='*Change\x20to:*\x20%0'),_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x14dd12='*Indent:*\x20%0',_0x5d595d={'type':'format','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x14dd12=function(_0x4753ee){const _0x55edfe=_0x4753ee['getFirstRange']();let _0x401660=_0x55edfe['start']['nodeAfter'];for(;_0x401660&&_0x55edfe['containsItem'](_0x401660);){if(_0x401660['getAttribute']('listIndent')>0x0)return!0x1;_0x401660=_0x401660['nextSibling'];}return!0x0;}(_0x21bdd1)?o(_0x53a2be,'*Format:*\x20remove\x20from\x20%0',o(_0x53a2be,function(_0x3af220){return'ELEMENT_'+_0x3af220['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21bdd1))):o(_0x53a2be,'*Outdent:*\x20%0',o(_0x53a2be,'ELEMENT_LIST_ITEM')),_0x5d595d={'type':'format','content':_0x14dd12};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x285e5a['multipleBlocks']&&(_0x14dd12='*Merge:*\x20%0',_0x5d595d={'type':'deletion','content':o(_0x53a2be,_0x14dd12,o(_0x53a2be,'ELEMENT_LIST_ITEM'))});}return _0x5d595d;});}}function Te(_0x174290){let _0x455073=_0x174290['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x455073;){const _0x5810bf=_0x455073['getAttribute']('listItemId');if(!_0x5810bf)return!0x1;if(_0x5810bf==_0x174290['data']['newValue'])return'newValue';if(_0x5810bf==_0x174290['data']['oldValue'])return'oldValue';_0x455073=_0x455073['previousSibling'];}return!0x1;}class Y extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1945af=this['editor']['config']['get']('list.properties'),_0x302e48=this['editor']['plugins']['get']('TrackChangesEditing');_0x1945af['styles']&&_0x302e48['enableDefaultAttributesIntegration']('listStyle'),_0x1945af['reversed']&&_0x302e48['enableDefaultAttributesIntegration']('listReversed'),_0x1945af['startIndex']&&_0x302e48['enableDefaultAttributesIntegration']('listStart');const _0x5ea8e5={'type':'format','content':''};_0x302e48['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1ded35=this['editor']['locale'];_0x302e48['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1ded35,'FORMAT_LIST_REVERSED')),_0x302e48['descriptionFactory']['registerDescriptionCallback'](_0x143eb6=>{const {data:_0xd24b8d}=_0x143eb6;if(_0xd24b8d&&'listReversed'==_0xd24b8d['key'])return null==_0xd24b8d['newValue']||0x0==_0xd24b8d['newValue']&&null==_0xd24b8d['oldValue']?_0x5ea8e5:void 0x0;}),_0x302e48['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1ded35,'FORMAT_LIST_START')),_0x302e48['descriptionFactory']['registerDescriptionCallback'](_0x345223=>{const {data:_0x397bab}=_0x345223;if(_0x397bab&&'listStart'==_0x397bab['key'])return null==_0x397bab['newValue']||0x1==_0x397bab['newValue']&&null==_0x397bab['oldValue']?_0x5ea8e5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46f793=>{if(_0x46f793['batch']['isUndo'])return!0x1;let _0x5680dc=!0x1;const _0x458535=_0x302e48['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53cac9=>{const _0x2fe4e6=_0x302e48['_getAttributeKey'](_0x53cac9);return'listStart'==_0x2fe4e6||'listReversed'==_0x2fe4e6;});for(const _0x2510c5 of _0x458535){const _0x337a3d=_0x2510c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x337a3d||'customNumbered'==_0x337a3d)continue;_0x302e48['_findSuggestions'](_0x2510c5['getFirstRange'](),'attribute')['find'](_0x1162f6=>'listType'==_0x302e48['_getAttributeKey'](_0x1162f6['suggestion']))||(_0x46f793['removeMarker'](_0x2510c5['getFirstMarker']()),_0x5680dc=!0x0);}return _0x5680dc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4cc918){const _0x1afef7=this['editor']['locale'],{data:_0x139c1f}=_0x4cc918,_0x553cdf={'type':'format','content':''};if(!_0x139c1f||'listStyle'!=_0x139c1f['key'])return;if(!_0x139c1f['oldValue'])return'default'==_0x139c1f['newValue']?_0x553cdf:{'type':'format','content':''+o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['newValue'])))};if(!_0x139c1f['newValue']){if('default'==_0x139c1f['oldValue'])return _0x553cdf;let _0x495243=_0x4cc918['head'];for(;_0x495243;){if(_0x495243['data']&&'listType'==_0x495243['data']['key']&&_0x495243['data']['newValue'])return _0x553cdf;_0x495243=_0x495243['next'];}return{'type':'format','content':''+o(_0x1afef7,'*Remove\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['oldValue'])))};}if('default'!=_0x139c1f['newValue'])return{'type':'format','content':''+o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,this['_getTranslationKeyForListStyle'](_0x139c1f['newValue'])))};let _0x4c6a31=_0x4cc918['head'];for(;_0x4c6a31;){if(_0x4c6a31['data']&&'listType'==_0x4c6a31['data']['key']&&_0x4c6a31['data']['newValue']&&_0x4c6a31['data']['oldValue'])return _0x553cdf;_0x4c6a31=_0x4c6a31['next'];}return{'type':'format','content':o(_0x1afef7,'*Set\x20format:*\x20%0',o(_0x1afef7,'ELEMENT_'+_0x4cc918['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1eb5c0=this['editor'],_0x1a60be=_0x1eb5c0['locale'];_0x1eb5c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3eac05=>{if('formatBlock'!=_0x3eac05['type'])return;const {data:_0x442309}=_0x3eac05;if(!_0x442309)return;let _0x117e7b,_0x329d98;switch(_0x442309['commandName']){case'listStyle':_0x117e7b='*Change\x20to:*\x20%0',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b,o(_0x1a60be,this['_getTranslationKeyForListStyle'](_0x442309['commandParams'][0x0]['type'])))};break;case'listReversed':_0x117e7b=_0x442309['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b)};break;case'listStart':_0x117e7b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x329d98={'type':'format','content':o(_0x1a60be,_0x117e7b,_0x442309['commandParams'][0x0]['startIndex'])};}return _0x329d98;});}['_getTranslationKeyForListStyle'](_0x58b833){return'ELEMENT_'+function(_0xf7e000){if(ye['includes'](_0xf7e000))return'bulleted';if(Se['includes'](_0xf7e000))return'numbered';return null;}(_0x58b833)['toUpperCase']()+'_LIST_'+_0x58b833['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x562758{['afterInit'](){const _0x47fe79=this['editor'];_0x47fe79['commands']['get']('emoji')&&_0x47fe79['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x562758{static get['requires'](){return[_0x421073];}['init'](){const _0x11c173=this['editor'],_0x293ad1=_0x11c173['plugins']['get']('TrackChangesEditing'),_0x441585=_0x11c173['commands']['get']('enter');_0x293ad1['enableCommand']('enter',()=>{_0x11c173['model']['change'](_0x3047db=>{const _0x302cf2=_0x11c173['model']['document']['selection'],_0x5d1ce6=_0x302cf2['getFirstPosition'](),_0x1fac24=_0x2ed57b['fromRange'](_0x302cf2['getFirstRange']());if(_0x441585['enterBlock'](_0x3047db)){const _0x51d7cc=_0x11c173['model']['createPositionAt'](_0x5d1ce6['parent']['nextSibling'],0x0),_0x6e1b1b=_0x3047db['createRange'](_0x5d1ce6,_0x51d7cc);_0x293ad1['markInsertion'](_0x6e1b1b);}else _0x3047db['setSelection'](_0x3047db['createRange'](_0x1fac24['end']));_0x1fac24['detach'](),_0x441585['fire']('afterExecute',{'writer':_0x3047db});});});}}class nt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x11a6ba=this['editor']['plugins']['get']('TrackChangesEditing');_0x11a6ba['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x11a6ba['enableCommand']('findNext'),_0x11a6ba['enableCommand']('findPrevious'),_0x11a6ba['enableCommand']('replace'),_0x11a6ba['enableCommand']('replaceAll');}['handleFindCommand'](_0x3188a6,_0x31027b,_0x7a0fc7={}){const _0x2b309d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3188a6(_0x2e1c41=>{let _0x115f8a=('string'==typeof _0x31027b?_0x2b309d['findByTextCallback'](_0x31027b,_0x7a0fc7):_0x31027b)(_0x2e1c41);Array['isArray'](_0x115f8a)&&(_0x115f8a={'results':_0x115f8a,'searchText':'string'==typeof _0x31027b?_0x31027b:''});const _0x16d2bd=_0x115f8a['results']['filter'](_0x42b5b5=>!0x1===this['_isInDeletionRange'](_0x42b5b5,_0x2e1c41['item']));return{..._0x115f8a,'results':_0x16d2bd};},_0x7a0fc7);}['_isInDeletionRange'](_0xe6c284,_0x319568){const _0x319bd9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x319568,_0xe6c284['start']),this['editor']['model']['createPositionAt'](_0x319568,_0xe6c284['end']));for(const _0x282c56 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x319bd9['getIntersection'](_0x282c56['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x562758{['afterInit'](){const _0x105bbf=this['editor']['locale'],_0x103563=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5aa7d0,commandName:_0x2e5202}of eo)this['editor']['plugins']['has'](_0x5aa7d0)&&_0x103563['enableDefaultAttributesIntegration'](_0x2e5202);_0x103563['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x105bbf,'FORMAT_FONT_SIZE')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x105bbf,'FORMAT_FONT_FAMILY')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x105bbf,'FORMAT_FONT_COLOR')),_0x103563['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x105bbf,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x372680=this['editor'],_0x388661=_0x372680['locale'];_0x372680['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1075cc=>{const _0x4feff2=_0x388661['t'];if('formatInline'!=_0x1075cc['type'])return;const {data:_0x281b0a}=_0x1075cc;if(null!=_0x281b0a){if('fontSize'==_0x281b0a['commandName']){const _0x3245e8=_0x281b0a['commandParams'][0x0]['value'];if(_0x3245e8){const _0x50494c=_0x4feff2(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2116e3=>_0x2116e3['model']==_0x3245e8)['title'])['toLowerCase']();return{'type':'format','content':o(_0x388661,'*Set\x20font\x20size:*\x20%0',_0x50494c)};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x281b0a['commandName']){const _0x2ff8bd=_0x281b0a['commandParams'][0x0]['value'];return _0x2ff8bd?{'type':'format','content':o(_0x388661,'*Set\x20font\x20family:*\x20%0',_0x2ff8bd)}:{'type':'format','content':o(_0x388661,'*Reset\x20font\x20family*')};}if('fontColor'==_0x281b0a['commandName']){const _0x26f822=_0x281b0a['commandParams'][0x0]['value'];if(_0x26f822){const _0x3402c2=_0x2abc75(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2dfe67=>_0x2dfe67['model']==_0x26f822);let _0x1dff0c=_0x26f822,_0x37a9c3='';return _0x3402c2&&(_0x1dff0c=_0x3402c2['label'],_0x37a9c3=_0x4feff2(_0x1dff0c)['toLowerCase']()),{'type':'format','content':o(_0x388661,'*Set\x20font\x20color:*\x20%0',_0x37a9c3)['trim'](),'color':{'value':_0x26f822,'title':_0x37a9c3||_0x1dff0c}};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x281b0a['commandName']){const _0x20d70c=_0x281b0a['commandParams'][0x0]['value'];if(_0x20d70c){const _0x33b17a=_0x2abc75(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x253920=>_0x253920['model']==_0x20d70c);let _0x237964=_0x20d70c,_0x3a6498='';return _0x33b17a&&(_0x237964=_0x33b17a['label'],_0x3a6498=_0x4feff2(_0x237964)['toLowerCase']()),{'type':'format','content':o(_0x388661,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a6498)['trim'](),'color':{'value':_0x20d70c,'title':_0x3a6498||_0x237964}};}return{'type':'format','content':o(_0x388661,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x562758{['afterInit'](){const {plugins:_0x4091fb}=this['editor'];_0x4091fb['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4091fb['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x2722eb,plugins:_0x25c9b0,commands:_0x228886}=this['editor'],_0xd99ad6=_0x25c9b0['get']('TrackChangesEditing');_0x228886['get']('footnotesStyle')&&_0xd99ad6['enableDefaultAttributesIntegration']('footnotesStyle'),_0x228886['get']('footnotesStart')&&_0xd99ad6['enableDefaultAttributesIntegration']('footnotesStart'),_0xd99ad6['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x2722eb,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xd99ad6['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x2722eb,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x858ac8=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xec972e,commands:_0x25b6fb}=this['editor'];_0x25b6fb['get']('insertFootnote')&&_0x858ac8['enableCommand']('insertFootnote'),_0x858ac8['descriptionFactory']['registerElementLabel']('footnoteRef',_0x25d8de=>o(_0xec972e,'ELEMENT_FOOTNOTE_REF',_0x25d8de)),_0x858ac8['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4c020d=>o(_0xec972e,'ELEMENT_FOOTNOTE_DEFINITION',_0x4c020d)),_0x858ac8['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x274e6a=>o(_0xec972e,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x274e6a));}}class st extends _0x562758{['afterInit'](){const _0x5564ed=this['editor'],_0x2ac4d5=_0x5564ed['plugins']['get']('TrackChangesEditing'),_0x9c9c10=_0x5564ed['commands']['get']('copyFormat'),_0x493fba=_0x5564ed['commands']['get']('pasteFormat');_0x9c9c10&&_0x493fba&&(_0x2ac4d5['enableDefaultAttributesIntegration']('pasteFormat'),_0x2ac4d5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x27cff4=this['editor'],_0x1d856b=_0x27cff4['locale'];_0x27cff4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222520=>{if('formatBlock'!=_0x222520['type']&&'formatInline'!=_0x222520['type'])return;const {data:_0x242f92}=_0x222520;if(_0x242f92&&'pasteFormat'===_0x242f92['commandName']){const _0x2591f7=[],_0x5cfd42=_0x242f92['commandParams'][0x0];for(const [_0x50a98e,_0x2580c2]of Object['entries'](_0x5cfd42))_0x2591f7['push'](ro(_0x27cff4,_0x50a98e,_0x2580c2));return _0x2591f7['length']?{'type':'format','content':o(_0x1d856b,'*Set\x20format\x20to:*\x20%0',_0x2591f7['join'](',\x20'))}:{'type':'format','content':o(_0x1d856b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x351e9b,_0x321f73,_0xe807a6){const _0x1e60ad=_0x351e9b['locale']['t'],_0xd389ed=_0x321f73['split'](/(?=[A-Z])/)['join']('\x20'),_0x51da65=_0x1e60ad(_0xd389ed['charAt'](0x0)['toUpperCase']()+_0xd389ed['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xe807a6)return _0x51da65;if('fontColor'===_0x321f73||'fontBackgroundColor'===_0x321f73){const _0x55ebc3=_0x2abc75(_0x351e9b['config']['get']('fontColor.colors'))['find'](_0x31ac3a=>_0x31ac3a['model']==_0xe807a6);return _0x51da65+'\x20('+(_0x55ebc3?_0x1e60ad(_0x55ebc3['label'])['toLowerCase']():_0xe807a6)+')';}if('fontSize'===_0x321f73&&isNaN(parseFloat(_0xe807a6))){const _0x30991f=_0x351e9b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x351e9b['config']['get']('fontSize.options'))['find'](_0xbd557a=>_0xbd557a['model']==_0xe807a6);return _0x51da65+'\x20('+(_0x30991f?_0x1e60ad(_0x30991f['title'])['toLowerCase']():_0xe807a6)+')';}return _0x51da65+'\x20('+_0xe807a6+')';}class ot extends _0x562758{['_headingOptions'];['afterInit'](){const _0x287262=this['editor'];if(!_0x287262['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x287262['config']['get']('heading.options');const _0x1b432f=_0x287262['locale'],_0x653433=_0x287262['plugins']['get']('TrackChangesEditing');_0x653433['enableDefaultAttributesIntegration']('heading');for(const _0x4e12e3 of this['_headingOptions'])'paragraph'!=_0x4e12e3['model']&&_0x653433['descriptionFactory']['registerElementLabel'](_0x4e12e3['model'],_0x1bd814=>{const _0x21a687=this['_getHeadingLevel'](_0x4e12e3['model']);return null!==_0x21a687?_0xb966ac(_0x1bd814,_0x21a687):_0x55233e(_0x1bd814,_0x4e12e3['title']);});function _0xb966ac(_0x54551a,_0x854ce9){return o(_0x1b432f,'ELEMENT_HEADING',[_0x54551a,_0x854ce9]);}function _0x55233e(_0x519763,_0x6ac6b3){return o(_0x1b432f,'ELEMENT_HEADING_CUSTOM',[_0x519763,_0x6ac6b3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f22c8=this['editor'],_0x24db30=_0x2f22c8['locale'];function _0x3bcf54(_0x2a99a6,_0x5063bb){return o(_0x24db30,'ELEMENT_HEADING_CUSTOM',[_0x2a99a6,_0x5063bb]);}_0x2f22c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272620=>{if('formatBlock'!=_0x272620['type'])return;const {data:_0x3ce7c3}=_0x272620;if(_0x3ce7c3&&'heading'==_0x3ce7c3['commandName']){const _0xc61953=_0x3ce7c3['commandParams'][0x0]['value'],_0xb174da=this['_getHeadingLevel'](_0xc61953);if(null!==_0xb174da)return{'type':'format','content':o(_0x24db30,'*Change\x20to:*\x20%0',(_0x30a972=0x1,_0xea53bd=_0xb174da,o(_0x24db30,'ELEMENT_HEADING',[_0x30a972,_0xea53bd])))};const _0x3929eb=this['_headingOptions']['find'](_0x17f1a4=>_0x17f1a4['model']===_0xc61953)['title'];return{'type':'format','content':o(_0x24db30,'*Change\x20to:*\x20%0',_0x3bcf54(0x1,_0x3929eb))};}var _0x30a972,_0xea53bd;});}['_getHeadingLevel'](_0x54e0bc){const _0x17716b=_0x54e0bc['match'](/^heading(\d+)/);if(_0x17716b)return _0x17716b[0x1];const _0x1763aa=this['_headingOptions']?.['find'](_0x1abbd7=>_0x1abbd7['model']==_0x54e0bc);if(_0x1763aa&&_0x1763aa['view']){const _0x107a0f=_0x1763aa['view'],_0x11669d=(_0x107a0f['name']??_0x107a0f)['match'](/^h(\d+)/);if(_0x11669d)return _0x11669d[0x1];}return null;}}class rt extends _0x562758{['afterInit'](){const _0x181ae8=this['editor'];if(!_0x181ae8['plugins']['has']('HighlightEditing'))return;const _0xc6f7c5=_0x181ae8['plugins']['get']('TrackChangesEditing'),_0x39a298=_0x181ae8['locale'];_0xc6f7c5['enableDefaultAttributesIntegration']('highlight'),_0xc6f7c5['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x39a298,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21fa02=this['editor'],_0x4eb84a=_0x21fa02['locale'];_0x21fa02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa398=>{if('formatInline'!=_0x4fa398['type'])return;const {data:_0x64f1bc}=_0x4fa398;if(_0x64f1bc&&'highlight'==_0x64f1bc['commandName']){const _0x68ef02=_0x4eb84a['t'],_0x128498=_0x64f1bc['commandParams'][0x0]['value'];if(_0x128498){const _0x4810eb=_0x21fa02['config']['get']('highlight.options')['find'](_0x48e05b=>_0x48e05b['model']==_0x128498),_0x4ff44e=_0x68ef02(_0x4810eb['title'])['toLowerCase']();return{'type':'format','content':o(_0x4eb84a,'*Set\x20highlight:*\x20%0',_0x4ff44e),'color':{'value':_0x4810eb['color'],'title':_0x4810eb['title']}};}return{'type':'format','content':o(_0x4eb84a,'*Remove\x20highlight*',o(_0x4eb84a,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x562758{['afterInit'](){const _0xc0abcc=this['editor'];if(!_0xc0abcc['plugins']['has']('HorizontalLineEditing'))return;_0xc0abcc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2fb479=_0xc0abcc['plugins']['get']('TrackChangesEditing'),_0x345e3d=_0xc0abcc['locale'];_0x2fb479['descriptionFactory']['registerElementLabel']('horizontalLine',_0x31eb18=>o(_0x345e3d,'ELEMENT_HORIZONTAL_LINE',_0x31eb18));}}class ct extends _0x562758{['afterInit'](){const _0x7da398=this['editor'];if(!_0x7da398['plugins']['has']('HtmlEmbed'))return;const _0x242d82=_0x7da398['plugins']['get']('TrackChangesEditing'),_0x2ada74=_0x7da398['locale'];_0x242d82['descriptionFactory']['registerElementLabel']('rawHtml',_0x51c819=>o(_0x2ada74,'ELEMENT_HTML_EMBED',_0x51c819)),_0x242d82['enableDefaultAttributesIntegration']('htmlEmbed'),_0x242d82['descriptionFactory']['registerDescriptionCallback'](_0x7579cc=>{if('attribute'!=_0x7579cc['type'])return;const {data:_0x51617a}=_0x7579cc;if(_0x51617a&&'value'==_0x51617a['key']&&_0x7579cc['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xa1775a=o(_0x2ada74,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2ada74,'*Change\x20%0\x20content*',_0xa1775a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cbf02=this['editor'],_0xe9c835=_0x5cbf02['locale'];_0x5cbf02['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x995939=>{if('formatBlock'!=_0x995939['type'])return;const {data:_0x1bea2a}=_0x995939;if(_0x1bea2a&&'htmlEmbed'==_0x1bea2a['commandName']){const _0x136669=o(_0xe9c835,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe9c835,'*Change\x20%0\x20content*',_0x136669)};}});}}class ut extends _0x562758{['afterInit'](){const _0x395f82=this['editor'];if(!_0x395f82['plugins']['has']('ImageEditing'))return;const _0x44a0e4=_0x395f82['plugins']['get']('TrackChangesEditing'),_0x356e24=_0x395f82['plugins']['get']('ImageUtils'),_0x211e40=_0x395f82['locale'];_0x44a0e4['enableCommand']('insertImage'),_0x44a0e4['descriptionFactory']['registerElementLabel']('imageBlock',_0xa31e17=>o(_0x211e40,'ELEMENT_IMAGE',_0xa31e17)),_0x44a0e4['descriptionFactory']['registerElementLabel']('imageInline',_0x4320df=>o(_0x211e40,'ELEMENT_INLINE_IMAGE',_0x4320df)),_0x44a0e4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x211e40,'ELEMENT_CAPTION')),_0x395f82['plugins']['has']('ImageUploadEditing')&&_0x44a0e4['enableCommand']('uploadImage'),_0x395f82['plugins']['has']('ImageBlockEditing')&&_0x395f82['plugins']['has']('ImageInlineEditing')&&(_0x44a0e4['enableCommand']('imageTypeInline',(_0x2cfbfa,_0x43f416)=>{const _0x18cb15=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']);_0x395f82['model']['change'](()=>{_0x44a0e4['markBlockFormat'](_0x18cb15,{'commandName':'imageTypeInline','commandParams':[_0x43f416]},[],'convertBlockImageToInline');});}),_0x44a0e4['enableCommand']('imageTypeBlock',(_0x5dda7c,_0x421473)=>{_0x395f82['model']['change'](_0x3cec4c=>{let _0x17d69=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x5f4152=_0x3cec4c['createRangeOn'](_0x17d69);const _0x81b69=_0xbf4859['fromPosition'](_0x5f4152['start'],'toPrevious'),_0x435719=_0xbf4859['fromPosition'](_0x5f4152['end'],'toNext');_0x44a0e4['forceDefaultExecution'](()=>_0x5dda7c(_0x421473)),_0x17d69=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x5f4152=_0x3cec4c['createRangeOn'](_0x17d69);const _0x3609ac=_0x3cec4c['createRange'](_0x81b69,_0x435719);_0x81b69['detach'](),_0x435719['detach'](),_0x44a0e4['markBlockFormat'](_0x17d69,{'commandName':'imageTypeInline','commandParams':[_0x421473]},[],'convertInlineImageToBlock'),_0x3609ac['start']['isBefore'](_0x5f4152['start'])&&_0x44a0e4['markInsertion'](_0x3cec4c['createRange'](_0x3609ac['start'],_0x5f4152['start']),'convertInlineImageToBlock'),_0x5f4152['end']['isBefore'](_0x3609ac['end'])&&_0x44a0e4['markInsertion'](_0x3cec4c['createRange'](_0x5f4152['end'],_0x3609ac['end']),'convertInlineImageToBlock');});}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x44a0e4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x470623])=>{const _0xf86978=_0x44a0e4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4a90ee=_0x470623['start'],_0xf6fb71=_0x470623['end'];const _0x2f960a=_0x395f82['model']['schema']['getNearestSelectionRange'](_0x4a90ee,'backward'),_0x2ab895=_0x395f82['model']['schema']['getNearestSelectionRange'](_0xf6fb71,'forward');_0x2f960a['isCollapsed']&&(_0x4a90ee=_0x2f960a['start']),_0x2ab895['isCollapsed']&&(_0xf6fb71=_0x2ab895['end']),_0xf86978([_0x395f82['model']['createRange'](_0x4a90ee,_0xf6fb71)]);}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x18530c),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x18530c)),_0x395f82['plugins']['has']('ImageCaptionEditing')&&(_0x44a0e4['enableCommand']('toggleImageCaption',(_0x1fb368,_0x858df7)=>{const _0x3488ad=_0x395f82['plugins']['get']('ImageCaptionUtils');let _0x265a3a=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x42aec3=_0x3488ad['getCaptionFromImageModelElement'](_0x265a3a);_0x395f82['model']['change'](()=>{if(_0x42aec3)return void _0x44a0e4['markDeletion'](_0x395f82['model']['createRangeOn'](_0x42aec3));const _0x5967b2=_0x356e24['isBlockImage'](_0x265a3a);_0x1fb368(_0x858df7),_0x265a3a=_0x356e24['getClosestSelectedImageElement'](_0x395f82['model']['document']['selection']),_0x42aec3=_0x3488ad['getCaptionFromImageModelElement'](_0x265a3a),_0x44a0e4['markInsertion'](_0x395f82['model']['createRangeOn'](_0x42aec3),_0x5967b2?null:'imageCaption');});}),_0x44a0e4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x18530c));const _0x1e81e9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3c7d0a(_0x52689a,_0x2ba029){const _0x39cc23=_0x1e81e9['findIndex'](({type:_0x3275e2,subType:_0x3999a7})=>_0x52689a['type']==_0x3275e2&&_0x52689a['subType']==_0x3999a7),_0x2d6ef7=_0x1e81e9['findIndex'](({type:_0x1ab604,subType:_0x1544f4})=>_0x2ba029['type']==_0x1ab604&&_0x2ba029['subType']==_0x1544f4);if(_0x39cc23<0x0||_0x2d6ef7<0x0)return!0x1;const _0x11a072=_0x52689a['getFirstRange'](),_0x109789=_0x2ba029['getFirstRange']();if((0x0==_0x39cc23||0x1==_0x39cc23)&&0x2==_0x2d6ef7&&_0x11a072['isIntersecting'](_0x109789))return!0x0;if(0x2==_0x39cc23&&0x3==_0x2d6ef7){const _0x3f8495=_0x44a0e4['_findSuggestions'](_0x11a072,'insertion')['filter'](({suggestion:_0x5a6562,meta:_0x4b2b47})=>_0x4b2b47['isOwn']&&'convertInlineImageToBlock'==_0x5a6562['subType']);if(_0x3f8495['length']>0x1&&_0x109789['end']['isEqual'](_0x11a072['start']))return!0x0;if(0x1==_0x3f8495['length']&&(_0x11a072['start']['isEqual'](_0x109789['end'])||_0x11a072['end']['isEqual'](_0x109789['start'])))return!0x0;}if(0x3==_0x39cc23&&0x3==_0x2d6ef7&&_0x11a072['start']['isBefore'](_0x109789['start'])){const _0x401aed=_0x11a072['end']['nodeAfter'],_0x20c7b1=_0x109789['start']['nodeBefore'];return _0x356e24['isBlockImage'](_0x401aed)&&_0x401aed===_0x20c7b1;}return!0x1;}function _0x18530c(_0x5972aa,_0x407713){return _0x3c7d0a(_0x5972aa,_0x407713)?[_0x5972aa,_0x407713]:_0x3c7d0a(_0x407713,_0x5972aa)?[_0x407713,_0x5972aa]:null;}_0x395f82['plugins']['has']('ImageResize')&&(_0x44a0e4['enableDefaultAttributesIntegration']('resizeImage'),_0x44a0e4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x211e40,'FORMAT_IMAGE_SIZE'))),_0x395f82['plugins']['has']('ImageTextAlternativeEditing')&&_0x44a0e4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x395f82['plugins']['has']('PictureEditing')&&_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x436596=>{if('attribute'!=_0x436596['type'])return;const {data:_0x39cad3}=_0x436596;return _0x39cad3&&'sources'==_0x39cad3['key']?{'type':'format','content':''}:void 0x0;}),_0x395f82['plugins']['has']('ImageSizeAttributes')&&_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x48b1b7=>{if('attribute'!=_0x48b1b7['type'])return;const {data:_0x571fe0}=_0x48b1b7;return!_0x571fe0||'width'!=_0x571fe0['key']&&'height'!=_0x571fe0['key']?void 0x0:{'type':'format','content':''};}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x538432=>{if(!!_0x1e81e9['find'](({type:_0x2033c6,subType:_0x1e5777})=>_0x538432['type']==_0x2033c6&&_0x538432['subType']==_0x1e5777))return _0x538432['previous']?{}:void 0x0;}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x332c60=>{if('insertion'==_0x332c60['type']||'deletion'==_0x332c60['type']){const _0x13e474=_0x332c60['getContainedElement']();if(_0x13e474&&_0x13e474['is']('element','caption'))return{'type':'insertion'==_0x332c60['type']?'addObject':'removeObject','element':_0x13e474,'quantity':0x1};}}),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x377423=>'formatBlock'==_0x377423['type']&&'convertInlineImageToBlock'==_0x377423['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x377423['type']&&'convertBlockImageToInline'==_0x377423['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x44a0e4['descriptionFactory']['registerDescriptionCallback'](_0x3bbe33=>{if('attribute'!=_0x3bbe33['type'])return;const {data:_0x2f778c}=_0x3bbe33;if(!_0x2f778c||'alt'!=_0x2f778c['key'])return;const _0x33bfdf=_0x2f778c['newValue'];return _0x33bfdf?{'type':'format','content':o(_0x211e40,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x33bfdf+'\x22')}:{'type':'format','content':o(_0x211e40,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54da21=this['editor'],_0x50dbf3=_0x54da21['locale'];_0x54da21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xde4d9f=>{if('formatBlock'!=_0xde4d9f['type']&&'formatInline'!=_0xde4d9f['type'])return;const {data:_0x327ad1}=_0xde4d9f;if(_0x327ad1){if('imageTextAlternative'==_0x327ad1['commandName']){const _0x57dd0f=_0x327ad1['commandParams'][0x0]['newValue'];return _0x57dd0f?{'type':'format','content':o(_0x50dbf3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x57dd0f+'\x22')}:{'type':'format','content':o(_0x50dbf3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x327ad1['commandName']){const _0x3eaa33=_0x327ad1['commandParams'][0x0]['width'];return _0x3eaa33?{'type':'format','content':o(_0x50dbf3,'*Set\x20image\x20width:*\x20%0',_0x3eaa33)}:{'type':'format','content':o(_0x50dbf3,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c474d=this['editor']['locale'],_0x212029=this['editor']['plugins']['get']('TrackChangesEditing');_0x212029['enableDefaultAttributesIntegration']('replaceImageSource'),_0x212029['descriptionFactory']['registerDescriptionCallback'](_0x577085=>{if('attribute'!=_0x577085['type'])return;const {data:_0x3c06c7}=_0x577085;return _0x3c06c7&&'src'==_0x3c06c7['key']?_0x3c06c7['newValue']&&_0x3c06c7['oldValue']?{'type':'format','content':o(_0x5c474d,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e7c1e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e7c1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e7c1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e7c1e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e7c1e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39a8fc=this['editor'],_0x359bd1=_0x39a8fc['locale'];_0x39a8fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abc94=>{if('formatBlock'!=_0x3abc94['type']&&'formatInline'!=_0x3abc94['type'])return;const {data:_0x5d7f6a}=_0x3abc94;if(!_0x5d7f6a||'replaceImageSource'!=_0x5d7f6a['commandName'])return;return{'type':'format','content':o(_0x359bd1,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x562758{['afterInit'](){const _0x23e53b=this['editor'];if(!_0x23e53b['plugins']['has']('ImageStyleEditing'))return;const _0x280863=_0x23e53b['plugins']['get']('TrackChangesEditing'),_0x2eb3e5=_0x23e53b['plugins']['get']('ImageUtils'),_0x269cf6={};_0x280863['enableCommand']('imageStyle',(_0x13c4f7,_0x50f7ce)=>{const _0x51cb75=_0x23e53b['plugins']['get']('Users')['me'],_0x24be84=_0x23e53b['commands']['get']('imageStyle');let _0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),_0x369664=_0x23e53b['model']['createRangeOn'](_0x1cb1a3),_0x94d9ff=_0x24be84['value'];if(_0x94d9ff==_0x50f7ce['value'])return;const _0xcfea3a={'commandName':'imageStyle','commandParams':[_0x50f7ce],'formatGroupId':_0x341aab()};_0x23e53b['model']['change'](()=>{if(_0x280863['getSuggestions']()['filter'](_0x217b20=>_0x217b20['isInContent']&&_0x51cb75==_0x217b20['author']&&('formatBlock'==_0x217b20['type']||'formatInline'==_0x217b20['type'])&&('imageStylePreApply'==_0x217b20['subType']||'imageStylePostApply'==_0x217b20['subType'])&&_0x217b20['getFirstRange']()['isEqual'](_0x369664))['forEach'](_0x59e94f=>_0x280863['discardSuggestion'](_0x59e94f['head'])),_0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),_0x369664=_0x23e53b['model']['createRangeOn'](_0x1cb1a3),_0x24be84['refresh'](),_0x23e53b['commands']['get']('imageTypeInline')['refresh'](),_0x23e53b['commands']['get']('imageTypeBlock')['refresh'](),_0x94d9ff=_0x24be84['value'],_0x94d9ff!=_0x50f7ce['value'])return _0x2eb3e5['isInlineImage'](_0x1cb1a3)&&_0x24be84['shouldConvertImageType'](_0x50f7ce['value'],_0x1cb1a3)?(_0x13c4f7({..._0x50f7ce,'setImageSizes':!0x1}),_0x1cb1a3=_0x2eb3e5['getClosestSelectedImageElement'](_0x23e53b['model']['document']['selection']),void _0x280863['markBlockFormat'](_0x1cb1a3,{..._0xcfea3a,'commandReversedParams':[{'value':_0x94d9ff||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2eb3e5['isBlockImage'](_0x1cb1a3)?_0x280863['markBlockFormat'](_0x1cb1a3,_0xcfea3a,[],'imageStylePostApply'):_0x280863['markInlineFormat'](_0x369664,_0xcfea3a,'imageStylePostApply'));});});for(const _0x9ff29f of _0x23e53b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x269cf6[_0x9ff29f['name']]=_0x9ff29f['title']['toLowerCase']();_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4cb259])=>{_0x2eb3e5['setImageNaturalSizeAttributes'](_0x4cb259['getContainedElement']());}),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x53b704,_0x304117)=>{_0x280863['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x53b704,{'commandName':_0x304117['commandName'],'commandParams':_0x304117['commandReversedParams']});}),_0x280863['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5bc4ed,_0x25b77c){if(_0x422a79(_0x5bc4ed,_0x25b77c))return[_0x5bc4ed,_0x25b77c];if(_0x422a79(_0x25b77c,_0x5bc4ed))return[_0x25b77c,_0x5bc4ed];return null;});const _0x15f88f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x422a79(_0x4f0e4e,_0x567483){const _0x523764=_0x15f88f['findIndex'](({type:_0x334bf6,subType:_0x2c42a3})=>_0x4f0e4e['type']==_0x334bf6&&_0x4f0e4e['subType']==_0x2c42a3),_0x3ce57e=_0x15f88f['findIndex'](({type:_0x5781f8,subType:_0x29d2ec})=>_0x567483['type']==_0x5781f8&&_0x567483['subType']==_0x29d2ec);if(_0x523764<0x0||_0x3ce57e<0x0)return!0x1;const _0x33d250=_0x4f0e4e['getFirstRange'](),_0x3084d5=_0x567483['getFirstRange']();if((0x0==_0x523764||0x1==_0x523764)&&0x2==_0x3ce57e&&_0x33d250['isIntersecting'](_0x3084d5))return!0x0;if(0x2==_0x523764&&0x3==_0x3ce57e){const _0x3cc947=_0x280863['_findSuggestions'](_0x33d250,'insertion')['filter'](({suggestion:_0x233e95,meta:_0x5edc8d})=>_0x5edc8d['isOwn']&&'convertInlineImageToBlock'==_0x233e95['subType']);if(_0x3cc947['length']>0x1&&_0x3084d5['end']['isEqual'](_0x33d250['start']))return!0x0;if(0x1==_0x3cc947['length']&&(_0x33d250['start']['isEqual'](_0x3084d5['end'])||_0x33d250['end']['isEqual'](_0x3084d5['start'])))return!0x0;}if(0x3==_0x523764&&0x3==_0x3ce57e&&_0x33d250['start']['isBefore'](_0x3084d5['start'])){const _0x415c3c=_0x33d250['end']['nodeAfter'],_0x3eab9e=_0x3084d5['start']['nodeBefore'];return _0x2eb3e5['isBlockImage'](_0x415c3c)&&_0x415c3c===_0x3eab9e;}return!0x1;}_0x23e53b['model']['document']['registerPostFixer'](()=>{let _0x198687=!0x1;const _0x62a17d=Array['from'](_0x23e53b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x109835,data:_0x50c66d}of _0x62a17d){const {group:_0x598767,type:_0x26d1e5,subType:_0x4df213,id:_0x34be08}=_0x280863['_splitMarkerName'](_0x109835);if('suggestion'==_0x598767&&_0x280863['hasSuggestion'](_0x34be08)){if('formatBlock'==_0x26d1e5&&('imageStylePreApply'==_0x4df213||'imageStylePostApply'==_0x4df213)){const _0x95d720=_0x280863['getSuggestion'](_0x34be08);if(_0x50c66d['newRange']){const _0x1057d0=_0x95d720['getFirstRange']()['getContainedElement']();if(_0x2eb3e5['isBlockImage'](_0x1057d0))continue;_0x280863['discardSuggestion'](_0x95d720),_0x198687=!0x0;}}if('insertion'==_0x26d1e5&&'imageCaption'==_0x4df213&&!_0x50c66d['newRange']){const _0x5bc0db=_0x280863['getSuggestion'](_0x34be08);_0x5bc0db['next']&&_0x5bc0db['next']['isInContent']&&(_0x280863['discardSuggestion'](_0x5bc0db['next']),_0x198687=!0x0);}}}return _0x198687;}),this['_registerLegacyDescription'](_0x269cf6);}['_registerLegacyDescription'](_0x244c34){const _0x16f117=this['editor'],_0x1d5509=_0x16f117['locale'];_0x16f117['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x397cad=>{if('formatBlock'!=_0x397cad['type']&&'formatInline'!=_0x397cad['type'])return;const {data:_0x189877}=_0x397cad;if(!_0x189877||'imageStyle'!=_0x189877['commandName'])return;const _0xc9109b=_0x189877['commandParams'][0x0]['value'];return _0xa906ae('side'===_0xc9109b?o(_0x1d5509,'FORMAT_SIDE_IMAGE'):_0x244c34[_0xc9109b]||_0xc9109b);function _0xa906ae(_0xe036a8){return{'type':'format','content':o(_0x1d5509,'*Format:*\x20%0',_0xe036a8)};}});}}class lt extends _0x562758{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3ce109){super(_0x3ce109),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5e6740=this['editor'],_0x287475=_0x5e6740['commands']['get']('importWord'),_0xfd6594=_0x5e6740['commands']['get']('trackChanges');_0x287475&&(_0x287475['on']('execute',(_0xfbb65c,[,_0x401eea])=>{this['_trackChangesValueDuringImport']=_0xfd6594['value'],_0x401eea['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x287475,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x287475,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfd6594['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5e6740['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4ccd0e,_0xbe114f){const {suggestions:_0xd833a6}=_0xbe114f,_0x1c4291=this['editor']['commands']['get']('trackChanges'),_0x49fffd=_0x1c4291['value'];this['_trackChangesValueDuringImport']!==_0x49fffd&&(_0x1c4291['execute'](),this['_trackChangesExecuted']=!0x0),_0xd833a6&&_0xd833a6['forEach'](({id:_0xa74e95,type:_0x2a6c2a,author:_0x56396c,created_at:_0x4ff7db})=>{const _0x375713={'id':_0xa74e95,'type':_0x2a6c2a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x56396c,'createdAt':_0x4ff7db?new Date(_0x4ff7db):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x375713);});}}class gt extends _0x562758{['afterInit'](){const _0x22f639=this['editor'],_0x53d395=_0x22f639['plugins']['get']('TrackChangesEditing');if(_0x22f639['plugins']['has']('IndentEditing')&&(_0x53d395['enableCommand']('indent'),_0x53d395['enableCommand']('outdent')),_0x22f639['plugins']['has']('IndentBlock')){for(const _0x20f989 of['indentBlock','outdentBlock'])_0x53d395['enableDefaultAttributesIntegration'](_0x20f989);if(_0x22f639['plugins']['has']('ListEditing')){for(const _0x3d5071 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x53d395['enableDefaultAttributesIntegration'](_0x3d5071);}}const _0x52dab4=_0x22f639['locale'];_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x52dab4,'FORMAT_INDENT')),_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x52dab4,'FORMAT_INDENT')),_0x53d395['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x52dab4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x99ec9b=this['editor'],_0x1d3751=_0x99ec9b['locale'],_0x20d0ef=_0x99ec9b['plugins']['get']('TrackChangesEditing');_0x20d0ef['descriptionFactory']['registerDescriptionCallback'](_0x41e369=>{if('formatBlock'!=_0x41e369['type'])return;const {data:_0x17b1fc}=_0x41e369;if(!_0x17b1fc)return;if('indentBlock'!=_0x17b1fc['commandName']&&'outdentBlock'!=_0x17b1fc['commandName'])return;const _0xc9b11d=_0x41e369['getItems']()[0x0],_0x2dd942=_0x20d0ef['descriptionFactory']['getItemLabel'](_0xc9b11d);return'indentBlock'==_0x17b1fc['commandName']?{'type':'format','content':o(_0x1d3751,'*Indent:*\x20%0',_0x2dd942)}:'outdentBlock'==_0x17b1fc['commandName']?{'type':'format','content':o(_0x1d3751,'*Outdent:*\x20%0',_0x2dd942)}:void 0x0;});}}class mt extends _0x562758{static get['requires'](){return[_0x1357fe];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x562758{['afterInit'](){const _0x227502=this['editor'];if(!_0x227502['plugins']['has']('LinkEditing'))return;const _0x2a514d=_0x227502['plugins']['get']('TrackChangesEditing'),_0x5a32d5=_0x227502['commands']['get']('link');_0x2a514d['enableDefaultAttributesIntegration']('link'),_0x2a514d['enableDefaultAttributesIntegration']('unlink');for(const _0x893f9 of _0x5a32d5['manualDecorators'])_0x2a514d['descriptionFactory']['registerAttributeLabel'](_0x893f9['id'],'link\x20('+_0x893f9['label']['toLowerCase']()+')');_0x2a514d['descriptionFactory']['registerDescriptionCallback'](_0xe7672b=>{if('attribute'!=_0xe7672b['type'])return;const {data:_0x370125}=_0xe7672b;if(!_0x370125||'linkHref'!=_0x370125['key'])return;const _0x21e515=_0x370125['newValue'],_0x1992bb=_0x227502['locale'];return{'type':'format','content':null==_0x21e515?o(_0x1992bb,'*Remove\x20link*'):o(_0x1992bb,'*Set\x20link:*\x20%0','\x22'+_0x21e515+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bc9de=this['editor'],_0x246339=_0x4bc9de['locale'];_0x4bc9de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6672ab=>{if('formatInline'!=_0x6672ab['type'])return;const {data:_0x18d64c}=_0x6672ab;if(_0x18d64c){if('link'==_0x18d64c['commandName']){const _0x3bbbd1=_0x18d64c['commandParams'][0x0];return{'type':'format','content':o(_0x246339,'*Set\x20link:*\x20%0','\x22'+_0x3bbbd1+'\x22')};}return'unlink'==_0x18d64c['commandName']?{'type':'format','content':o(_0x246339,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x562758{['afterInit'](){const _0x287966=this['editor'],_0x3f755b=_0x287966['locale'];if(!_0x287966['plugins']['has']('LegacyListEditing'))return;const _0x4540f2=_0x287966['plugins']['get']('TrackChangesEditing'),_0x10e6cc=_0x287966['plugins']['has']('LegacyTodoListEditing');function _0x531331(_0x26cace){return()=>{const _0x5a8131=_0x287966['model']['document']['selection'],_0x5d3467=_0x287966['commands']['get'](_0x26cace);if(_0x5d3467['value'])return void _0x287966['execute']('paragraph',{});const _0x3439fb=_0x26cace['slice'](0x0,-0x4),_0x5f12a6=function(_0x1238c5,_0x196c6d,_0x4efefa){let _0x3a0524=Array['from'](_0x1238c5)['filter'](_0x3164cb=>function(_0x14f66d,_0x462029){return _0x462029['checkChild'](_0x14f66d['parent'],'listItem')&&!_0x462029['isObject'](_0x14f66d);}(_0x3164cb,_0x4efefa));_0x3a0524=_0x3a0524['filter'](_0x467c04=>!_0x467c04['is']('element','listItem')||_0x467c04['getAttribute']('listType')!=_0x196c6d);const _0x40a0e6=new Set();for(const _0x227e8b of _0x3a0524)_0x227e8b['is']('element','listItem')?_0x40a0e6['add'](Le(_0x227e8b)):_0x40a0e6['add'](_0x227e8b);return Array['from'](_0x40a0e6);}(_0x5a8131['getSelectedBlocks'](),_0x3439fb,_0x287966['model']['schema']);_0x287966['model']['change'](()=>{for(const _0x26392b of _0x5f12a6)_0x4540f2['markBlockFormat'](_0x26392b,{'commandName':_0x26cace,'commandParams':[{'forceValue':!_0x5d3467['value']}],'formatGroupId':'blockName'},Ee(_0x26392b));});};}function _0x254b74(_0x1796f8){return()=>{const _0x19010c=function(_0x54018a){let _0x2800db=Array['from'](_0x54018a);const _0x3bfbef=_0x2800db['findIndex'](_0x4639c0=>'listItem'!=_0x4639c0['name']);return _0x3bfbef>-0x1&&(_0x2800db=_0x2800db['slice'](0x0,_0x3bfbef)),_0x2800db;}(_0x287966['model']['document']['selection']['getSelectedBlocks']()),_0x41e84f=_0x287966['model']['createRange'](_0x287966['model']['createPositionAt'](_0x19010c[0x0],'before'),_0x287966['model']['createPositionAt'](_0x19010c[_0x19010c['length']-0x1],'end'));_0x287966['model']['change'](()=>{_0x4540f2['markBlockFormat'](_0x41e84f,{'commandName':_0x1796f8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5572f7){const _0x3148b8=new Set();for(const _0x2d9d0f of _0x5572f7){let _0x9bdcee=_0x2d9d0f['nextSibling'];for(;_0x9bdcee&&_0x9bdcee['getAttribute']('listIndent')>_0x2d9d0f['getAttribute']('listIndent');)_0x3148b8['add'](_0x9bdcee),_0x9bdcee=_0x9bdcee['nextSibling'];}return Array['from'](_0x3148b8);}(_0x19010c));});};}_0x4540f2['enableCommand']('numberedList',_0x531331('numberedList')),_0x4540f2['enableCommand']('bulletedList',_0x531331('bulletedList')),_0x10e6cc&&_0x4540f2['enableCommand']('todoList',_0x531331('todoList')),_0x4540f2['enableCommand']('indentList',_0x254b74('indentList')),_0x4540f2['enableCommand']('outdentList',_0x254b74('outdentList')),_0x10e6cc&&_0x4540f2['enableCommand']('checkTodoList',()=>{const _0x37be93=_0x287966['commands']['get']('checkTodoList'),_0x43bce9=Array['from'](_0x37be93['_selectedElements']);_0x43bce9['filter'](_0xb5e965=>_0xb5e965['getAttribute']('todoListChecked')!=_0x37be93['value']),_0x287966['model']['change'](()=>{for(const _0xa80e0f of _0x43bce9)_0x4540f2['markBlockFormat'](_0xa80e0f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37be93['value']}]});});}),_0x4540f2['descriptionFactory']['registerElementLabel']('listItem',_0x5b143c=>o(_0x3f755b,'ELEMENT_LIST_ITEM',_0x5b143c)),_0x4540f2['descriptionFactory']['registerDescriptionCallback'](_0xb85045=>{if('formatBlock'!=_0xb85045['type']&&'formatInline'!=_0xb85045['type'])return;const {data:_0x591059}=_0xb85045;if(_0x591059){if('numberedList'==_0x591059['commandName']||'bulletedList'==_0x591059['commandName']||'todoList'==_0x591059['commandName'])switch(_0x591059['commandName']['replace']('List','')){case'bulleted':return _0x1794d3(o(_0x3f755b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1794d3(o(_0x3f755b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1794d3(o(_0x3f755b,'ELEMENT_TODO_LIST'));}if('indentList'==_0x591059['commandName'])return{'type':'format','content':o(_0x3f755b,'*Indent:*\x20%0',o(_0x3f755b,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x591059['commandName'])return{'type':'format','content':o(_0x3f755b,'*Outdent:*\x20%0',o(_0x3f755b,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x591059['commandName'])return _0x591059['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f755b,'*Check\x20item*')}:{'type':'format','content':o(_0x3f755b,'*Uncheck\x20item*')};}function _0x1794d3(_0x499ee4){return{'type':'format','content':o(_0x3f755b,'*Change\x20to:*\x20%0',_0x499ee4)};}});}}function Le(_0x434331){const _0x260215=_0x434331['getAttribute']('listIndent');if(0x0==_0x260215)return _0x434331;let _0x432fc7=_0x434331;for(;_0x434331['previousSibling']&&_0x434331['previousSibling']['is']('element','listItem');){const _0x4268a4=_0x434331['previousSibling']['getAttribute']('listIndent');if(_0x4268a4==_0x260215)_0x432fc7=_0x434331['previousSibling'];else{if(_0x4268a4<_0x260215)break;}_0x434331=_0x434331['previousSibling'];}return _0x432fc7;}function Ee(_0x4d745f){const _0x2b375b=[];if(_0x4d745f['is']('element','listItem')&&_0x4d745f['getAttribute']('listIndent')>0x0){let _0x2c34f1=_0x4d745f['nextSibling'];for(;_0x2c34f1&&'listItem'==_0x2c34f1['name']&&_0x2c34f1['getAttribute']('listIndent')==_0x4d745f['getAttribute']('listIndent');)_0x2b375b['push'](_0x2c34f1),_0x2c34f1=_0x2c34f1['nextSibling'];}return _0x2b375b;}class wt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x454baa=this['editor']['config']['get']('list.properties'),_0x223844=this['editor']['plugins']['get']('TrackChangesEditing');_0x454baa['styles']&&_0x223844['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x454baa['reversed']&&_0x223844['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x454baa['startIndex']&&_0x223844['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x223844['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5c36e8,_0x5f4c55={}){const _0x12edb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c1bbb=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x12edb9['markMultiRangeBlockFormat'](_0x5c1bbb,{'commandName':'listStyle','commandParams':[{'type':_0x5f4c55['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe8b084,_0x3152fe={}){const _0x8e676=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ef34d=this['_getSuggestionBlocks'](_0x2ad326=>_0x2ad326['is']('element','listItem')&&'numbered'===_0x2ad326['getAttribute']('listType'));if(_0x3ef34d['length']<0x1)return;const _0x448bb9=_0x3ef34d['map'](_0x360a1f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360a1f,'before'),this['editor']['model']['createPositionAt'](_0x360a1f,0x0)));this['editor']['model']['change'](()=>{_0x8e676['markMultiRangeBlockFormat'](_0x448bb9,{'commandName':'listReversed','commandParams':[{'reversed':_0x3152fe['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x28eb4c,_0x15ce80={}){const _0x43104b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ccb86=this['_getSuggestionBlocks'](_0x146ebd=>_0x146ebd['is']('element','listItem')&&'numbered'===_0x146ebd['getAttribute']('listType'));if(_0x2ccb86['length']<0x1)return;const _0x5be6c2=_0x2ccb86['map'](_0x247625=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x247625,'before'),this['editor']['model']['createPositionAt'](_0x247625,0x0)));this['editor']['model']['change'](()=>{_0x43104b['markMultiRangeBlockFormat'](_0x5be6c2,{'commandName':'listStart','commandParams':[{'startIndex':_0x15ce80['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x529d57){if('formatBlock'!=_0x529d57['type']&&'formatInline'!=_0x529d57['type'])return;const _0x2ba1c3=this['editor']['locale'],{data:_0x30276b}=_0x529d57;if(!_0x30276b)return;let _0x263d56,_0x146698;switch(_0x30276b['commandName']){case'listStyle':_0x263d56='*Change\x20to:*\x20%0',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56,o(_0x2ba1c3,this['_getTranslationKeyForListStyle'](_0x30276b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x263d56=_0x30276b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56)};break;case'listStart':_0x263d56='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x146698={'type':'format','content':o(_0x2ba1c3,_0x263d56,_0x30276b['commandParams'][0x0]['startIndex'])};}return _0x146698;}['_getSuggestionBlocksForListStyle'](){const _0xe4a95=this['editor']['plugins']['get']('LegacyListUtils');let _0x83a89f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x83a89f[0x0]?.['is']('element','listItem')&&_0x83a89f['unshift'](..._0xe4a95['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x83a89f[_0x83a89f['length']-0x1]?.['is']('element','listItem')&&_0x83a89f['push'](..._0xe4a95['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x83a89f=[...new Set(_0x83a89f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x83a89f=_0x83a89f['filter'](_0x402861=>_0x402861['is']('element','listItem'))),_0x83a89f;}['_getSuggestionBlocks'](_0x184151){const _0x33fdf1=this['editor']['plugins']['get']('LegacyListUtils');let _0x2062a0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x184151)['map'](_0x1f8828=>{const _0xfffa54=this['editor']['model']['createPositionAt'](_0x1f8828,0x0);return[..._0x33fdf1['getSiblingNodes'](_0xfffa54,'backward'),..._0x33fdf1['getSiblingNodes'](_0xfffa54,'forward')];})['flat']();return _0x2062a0=[...new Set(_0x2062a0)],_0x2062a0;}['_getTranslationKeyForListStyle'](_0x6cc78f){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x6cc78f)||'default')['toUpperCase']()+'_LIST_'+_0x6cc78f['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x562758{['afterInit'](){const _0x188d58=this['editor'];if(!_0x188d58['plugins']['has']('MediaEmbedEditing'))return;const _0x41c1d2=_0x188d58['plugins']['get']('TrackChangesEditing'),_0x172e76=_0x188d58['locale'];_0x41c1d2['enableCommand']('mediaEmbed'),_0x41c1d2['descriptionFactory']['registerElementLabel']('media',_0x514f23=>o(_0x172e76,'ELEMENT_MEDIA',_0x514f23));}}class bt extends _0x562758{['afterInit'](){const _0x4a6ede=this['editor'];_0x4a6ede['plugins']['has']('MentionEditing')&&_0x4a6ede['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x562758{['afterInit'](){const _0x422486=this['editor'];if(!_0x422486['plugins']['has']('MergeFieldsEditing'))return;const _0x3806a3=_0x422486['plugins']['get']('TrackChangesEditing'),_0x29a3a1=_0x422486['locale'];_0x3806a3['enableCommand']('insertMergeField'),_0x3806a3['enableCommand']('insertMergeFieldBlock'),_0x3806a3['enableCommand']('insertMergeFieldImage'),_0x3806a3['descriptionFactory']['registerElementLabel']('mergeField',_0x162f55=>o(_0x29a3a1,'ELEMENT_MERGE_FIELD',_0x162f55)),_0x3806a3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x3eeaae=>o(_0x29a3a1,'ELEMENT_MERGE_FIELD',_0x3eeaae)),_0x3806a3['descriptionFactory']['registerDescriptionCallback'](_0x301456=>{if('insertion'!=_0x301456['type']&&'deletion'!=_0x301456['type'])return;const _0x11973e=_0x301456['getContainedElement']();if(null==_0x11973e)return;const _0x4e98d0=_0x422486['plugins']['get']('MergeFieldsEditing');let _0x9bc3b6;switch(_0x4e98d0['getMergeFieldType'](_0x11973e)){case null:return;case'image':{const _0x539fb4=_0x4e98d0['unwrapAffixes'](_0x11973e['getAttribute']('src'));_0x9bc3b6=_0x4e98d0['getLabel'](_0x539fb4)||_0x539fb4;break;}default:{const _0x552c84=_0x11973e['getAttribute']('id');_0x9bc3b6=_0x4e98d0['getLabel'](_0x552c84)||_0x552c84;break;}}return'insertion'==_0x301456['type']?{'type':'insertion','content':o(_0x29a3a1,'*Insert:*\x20%0','\x22'+_0x9bc3b6+'\x22\x20'+o(_0x29a3a1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29a3a1,'*Remove:*\x20%0','\x22'+_0x9bc3b6+'\x22\x20'+o(_0x29a3a1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x562758{['afterInit'](){const _0x511488=this['editor'],_0x593aa6=_0x511488['plugins']['get']('TrackChangesEditing');_0x511488['plugins']['has']('MultiLevelList')&&(_0x593aa6['enableDefaultAttributesIntegration']('multiLevelList'),_0x593aa6['descriptionFactory']['registerDescriptionCallback'](_0x54ef4e=>this['handleDescriptions'](_0x54ef4e)));}['handleDescriptions'](_0x367c4e){const _0x172a84=this['editor']['locale'],{data:_0x5b1a6f}=_0x367c4e,_0x4d967a={'type':'format','content':''};if(_0x5b1a6f&&'listMarkerStyle'==_0x5b1a6f['key']){if(!_0x5b1a6f['oldValue'])return{'type':'format','content':o(_0x172a84,'*Set\x20format:*\x20%0',o(_0x172a84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1a6f['newValue']+')'};if(!_0x5b1a6f['newValue']){let _0x413728=_0x367c4e['head'];for(;_0x413728;){if(_0x413728['data']&&'listType'==_0x413728['data']['key']&&_0x413728['data']['newValue'])return _0x4d967a;_0x413728=_0x413728['next'];}return{'type':'format','content':o(_0x172a84,'*Remove\x20format:*\x20%0',o(_0x172a84,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b1a6f['oldValue']+')'};}}}}class St extends _0x562758{['afterInit'](){const _0x2ceedd=this['editor'];if(!_0x2ceedd['plugins']['has']('PageBreakEditing'))return;_0x2ceedd['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x426e02=_0x2ceedd['plugins']['get']('TrackChangesEditing'),_0x328d17=_0x2ceedd['locale'];_0x426e02['descriptionFactory']['registerElementLabel']('pageBreak',_0x4df667=>o(_0x328d17,'ELEMENT_PAGE_BREAK',_0x4df667));}}class It extends _0x562758{['afterInit'](){const _0x37acf7=this['editor'];if(!_0x37acf7['plugins']['has']('Paragraph'))return;const _0x52713c=_0x37acf7['locale'],_0x4e638b=_0x37acf7['plugins']['get']('TrackChangesEditing');_0x4e638b['descriptionFactory']['registerElementLabel']('paragraph',_0x405b13=>o(_0x52713c,'ELEMENT_PARAGRAPH',_0x405b13)),_0x4e638b['enableDefaultAttributesIntegration']('paragraph'),_0x4e638b['enableCommand']('insertParagraph');const _0x2d7c62=_0x4e638b['descriptionFactory'];_0x2d7c62['registerDescriptionCallback'](_0x401c68=>{if('insertion'!==_0x401c68['type'])return;const {start:_0x5205da,end:_0x7d4ae0}=_0x401c68['getFirstRange']();if(!_0x5205da['isTouching'](_0x7d4ae0)||!_0x5205da['nodeAfter'])return;const _0x597c37=_0x37acf7['model']['schema'],_0x33edf3=_0x5205da['nodeAfter'];return _0x597c37['isBlock'](_0x33edf3)&&!_0x597c37['isLimit'](_0x33edf3)&&_0x597c37['checkChild'](_0x33edf3,'$text')?{'type':'insertion','content':o(_0x52713c,'*Insert:*\x20%0',_0x2d7c62['getItemLabel'](_0x33edf3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d3f12=this['editor'],_0x441c7a=_0x5d3f12['locale'];_0x5d3f12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47be8b=>{if('formatBlock'!=_0x47be8b['type'])return;const {data:_0x3e70a5}=_0x47be8b;return _0x3e70a5&&'paragraph'==_0x3e70a5['commandName']?{'type':'format','content':o(_0x441c7a,'*Change\x20to:*\x20%0',o(_0x441c7a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x562758{['afterInit'](){const _0x27e80b=this['editor'];_0x27e80b['commands']['get']('replaceSource')&&_0x27e80b['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x562758{['afterInit'](){const _0x32f4ae=this['editor'];if(!_0x32f4ae['plugins']['has']('RemoveFormatEditing'))return;_0x32f4ae['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b184a=this['editor'];_0x4b184a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a5252=>{if('formatBlock'!=_0x5a5252['type']&&'formatInline'!=_0x5a5252['type'])return;const {data:_0x6cde6d}=_0x5a5252;return _0x6cde6d&&'removeFormat'==_0x6cde6d['commandName']?{'type':'format','content':o(_0x4b184a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x562758{['afterInit'](){const _0x50e0a6=this['editor'];if(!_0x50e0a6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5a1732=_0x50e0a6['plugins']['get']('TrackChangesEditing');_0x5a1732['enableCommand']('goToPreviousRestrictedEditingException'),_0x5a1732['enableCommand']('goToNextRestrictedEditingException');const _0x4b5b81=_0x50e0a6['plugins']['get']('RestrictedEditingModeEditing');_0x4b5b81['enableCommand']('trackChanges'),_0x4b5b81['enableCommand']('acceptSuggestion'),_0x4b5b81['enableCommand']('discardSuggestion'),_0x4b5b81['enableCommand']('acceptAllSuggestions'),_0x4b5b81['enableCommand']('discardAllSuggestions'),_0x4b5b81['enableCommand']('acceptSelectedSuggestions'),_0x4b5b81['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x562758{['afterInit'](){const _0x499951=this['editor'];if(!_0x499951['plugins']['has']('ShiftEnter'))return;const _0x1398ef=_0x499951['plugins']['get']('TrackChangesEditing');_0x1398ef['enableCommand']('shiftEnter'),_0x1398ef['descriptionFactory']['registerElementLabel']('softBreak',_0x3f172f=>o(_0x499951['locale'],'ELEMENT_LINE_BREAK',_0x3f172f));}}function an(_0x65d14d,_0x6bc7f6,_0x2beb6e){const _0x162d56=[];for(const _0x7d4221 of _0x6bc7f6['getItems']())_0x7d4221['hasAttribute'](_0x65d14d)&&_0x162d56['push'](_0x2beb6e['createRangeOn'](_0x7d4221));return _0x162d56;}class $t extends _0x562758{['afterInit'](){const _0x3e0298=this['editor'],_0x573adb=_0x3e0298['plugins']['get']('TrackChangesEditing');_0x3e0298['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x573adb['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x5a8cd9=this['editor'],_0x8012bd=_0x5a8cd9['model'],_0x289931=_0x5a8cd9['locale'],_0x50867c=_0x5a8cd9['plugins']['get']('TrackChangesEditing'),_0x5331ea='restrictedEditingException',_0x45ad59=_0x5a8cd9['commands']['get'](_0x5331ea);_0x50867c['enableCommand'](_0x5331ea,(_0x8155f4,_0x45bd={})=>{const _0xadf14e=_0x8012bd['document']['selection'];if(_0xadf14e['isCollapsed'])return void _0x8155f4(_0x45bd);const _0x477a2b=void 0x0!==_0x45bd['forceValue']?_0x45bd['forceValue']:!_0x45ad59['value'];_0x8012bd['change'](()=>{const _0x3f2b63=Array['from'](_0xadf14e['getRanges']());for(const _0x187ca5 of _0x3f2b63){const _0x48939=_0x477a2b?[_0x187ca5]:an(_0x5331ea,_0x187ca5,_0x8012bd);for(const _0x5f3272 of _0x48939)_0x50867c['markInlineFormat'](_0x5f3272,{'commandName':_0x5331ea,'commandParams':[{'forceValue':_0x477a2b}]});}});}),_0x50867c['descriptionFactory']['registerDescriptionCallback'](_0x51893e=>{if('formatBlock'!=_0x51893e['type']&&'formatInline'!=_0x51893e['type'])return;const {data:_0x58a02f}=_0x51893e;return _0x58a02f&&_0x58a02f['commandName']==_0x5331ea?_0x58a02f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x289931,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x289931,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x313c3d=this['editor'],_0x47c52f=_0x313c3d['locale'],_0x3a6110=_0x313c3d['plugins']['get']('TrackChangesEditing'),_0x458a3c='restrictedEditingExceptionBlock',_0x1d2614=this['editor']['commands']['get'](_0x458a3c);_0x3a6110['enableCommand'](_0x458a3c,(_0x30f62a,_0x2b77fe={})=>{const _0x5159f3=this['editor']['model']['document']['selection'],_0x4cc7de=_0x2b77fe&&void 0x0!==_0x2b77fe['forceValue']?_0x2b77fe['forceValue']:!_0x1d2614['value'];let _0x438b98=[];if(_0x4cc7de){const _0x145c7f=Array['from'](_0x5159f3['getSelectedBlocks']())['filter'](_0x123164=>function(_0x592c73){return!!_0x592c73['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x123164)||function(_0x183187,_0x514a58){const _0x11d458=_0x514a58['createContext'](_0x183187['parent']);if(!_0x514a58['checkChild'](_0x11d458,'restrictedEditingException'))return!0x1;if(!_0x514a58['checkChild'](_0x11d458['push']('restrictedEditingException'),_0x183187))return!0x1;return!0x0;}(_0x123164,this['editor']['model']['schema']));_0x438b98=to(_0x145c7f,_0x313c3d['model']);}else{const _0x325e01=Array['from'](_0x5159f3['getSelectedBlocks']())['map'](_0x140669=>function(_0xa60bc1){let _0x5dbb60=_0xa60bc1;for(;_0x5dbb60['parent'];){if('restrictedEditingException'==_0x5dbb60['parent']['name'])return _0x5dbb60;_0x5dbb60=_0x5dbb60['parent'];}return null;}(_0x140669))['filter'](_0x1e7297=>!!_0x1e7297);_0x438b98=to(_0x325e01,_0x313c3d['model']);}_0x313c3d['model']['change'](()=>{for(const _0x59e012 of _0x438b98)_0x3a6110['markBlockFormat'](_0x59e012,{'commandName':_0x458a3c,'commandParams':[{'forceValue':_0x4cc7de}]});});}),_0x3a6110['descriptionFactory']['registerDescriptionCallback'](_0xde4c20=>{const {data:_0x1d115a}=_0xde4c20;if(_0x1d115a&&_0x1d115a['commandName']==_0x458a3c)return _0x1d115a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47c52f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x47c52f,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x562758{['afterInit'](){const _0x129cea=this['editor'];if(!_0x129cea['plugins']['has']('Style')||!_0x129cea['plugins']['has']('DataSchema'))return;const _0x600218=_0x129cea['plugins']['get']('TrackChangesEditing'),_0x378a60=_0x129cea['locale'],_0xbc718d=_0x129cea['config']['get']('style')||{},_0x248290=_0x129cea['plugins']['get']('GeneralHtmlSupport'),_0x557e20=_0x129cea['plugins']['get']('StyleUtils')['normalizeConfig'](_0x129cea['plugins']['get']('DataSchema'),_0xbc718d['definitions']);_0x600218['enableDefaultAttributesIntegration']('style');const _0x5e511b=new Set();for(const _0x3beb49 of _0x557e20['block']){const _0x52f881=_0x248290['getGhsAttributeNameForElement'](_0x3beb49['element']);_0x5e511b['add'](_0x52f881);}const _0x466b2d=new Set();for(const _0x23193f of _0x557e20['inline']){const _0x25b1e7=_0x248290['getGhsAttributeNameForElement'](_0x23193f['element']);_0x466b2d['add'](_0x25b1e7);for(const _0x329a65 of _0x23193f['ghsAttributes'])_0x466b2d['add'](_0x329a65);}for(const _0xb678d7 of _0x5e511b)_0x600218['descriptionFactory']['registerAttributeLabel'](_0xb678d7,o(_0x378a60,'FORMAT_STYLE'));for(const _0x83e447 of _0x466b2d)_0x600218['descriptionFactory']['registerAttributeLabel'](_0x83e447,o(_0x378a60,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e1015=this['editor'],_0x107cc2=_0x2e1015['locale'];_0x2e1015['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bc04f=>{if('formatBlock'!=_0x4bc04f['type']&&'formatInline'!=_0x4bc04f['type'])return;const {data:_0x510328}=_0x4bc04f;return _0x510328&&'style'===_0x510328['commandName']?_0x510328['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x107cc2,'*Set\x20format:*\x20%0',_0x510328['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x107cc2,'*Remove\x20format:*\x20%0',_0x510328['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x562758{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x5c0088){super(_0x5c0088),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x22b7f9=this['editor'],_0x4abe64=_0x22b7f9['model']['document']['selection'];if(!_0x22b7f9['plugins']['has']('TableEditing'))return;const _0x44d29b=_0x22b7f9['locale'],_0x45fa66=_0x22b7f9['plugins']['get']('TrackChangesEditing'),_0x163f3c=_0x22b7f9['plugins']['get']('TableUtils');_0x45fa66['descriptionFactory']['registerElementLabel']('table',_0x5e8bc9=>o(_0x44d29b,'ELEMENT_TABLE',_0x5e8bc9)),this['_setupColumnsRowsFixing'](),_0x45fa66['enableCommand']('insertTable'),_0x45fa66['enableCommand']('selectTableRow'),_0x45fa66['enableCommand']('selectTableColumn');for(const _0x2e67d2 of['insertTableRowAbove','insertTableRowBelow']){const _0x11d2d7=_0x22b7f9['commands']['get'](_0x2e67d2);_0x45fa66['enableCommand'](_0x2e67d2,_0x147fc9=>{_0x22b7f9['model']['change'](_0x1337db=>{_0x147fc9();const _0x564c11='above'===_0x11d2d7['order'],_0x60d74=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0xa16d89=_0x163f3c['getRowIndexes'](_0x60d74),_0xb08988=_0x564c11?_0xa16d89['first']-0x1:_0xa16d89['last']+0x1,_0x43b9c9=_0x60d74[0x0]['findAncestor']('table'),_0x5e44cb=_0x163f3c['createTableWalker'](_0x43b9c9,{'startRow':_0xb08988,'endRow':_0xb08988}),_0x44eba1=Array['from'](_0x5e44cb)['map'](_0x291cd7=>_0x1337db['createRangeOn'](_0x291cd7['cell']));_0x45fa66['markMultiRangeInsertion'](_0x44eba1,'tableRow');});});}for(const _0x589f21 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47df4e=_0x22b7f9['commands']['get'](_0x589f21);_0x45fa66['enableCommand'](_0x589f21,_0x4043e0=>{_0x22b7f9['model']['change'](_0x424db1=>{_0x4043e0();const _0x26c0bc='left'===_0x47df4e['order'],_0x1aa37a=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0x43b9fc=_0x163f3c['getColumnIndexes'](_0x1aa37a),_0x2b276f=_0x26c0bc?_0x43b9fc['first']-0x1:_0x43b9fc['last']+0x1,_0x2b91cf=_0x1aa37a[0x0]['findAncestor']('table'),_0x5a08f5=_0x163f3c['createTableWalker'](_0x2b91cf,{'startRow':0x0,'column':_0x2b276f,'includeAllSlots':!0x1}),_0x33500d=Array['from'](_0x5a08f5)['map'](_0x39d3a1=>_0x424db1['createRangeOn'](_0x39d3a1['cell']));_0x45fa66['markMultiRangeInsertion'](_0x33500d,'tableColumn');});});}for(const _0x426038 of['removeTableRow','removeTableColumn']){const _0x4ac0d6=_0x426038['substr'](0xb),_0x5bf6c4=_0x4ac0d6['toLowerCase'](),_0x3e4bcd=_0x5bf6c4['substr'](0x0,0x3)+'span',_0x44bcf8='table'+_0x4ac0d6,_0x26e8a5='min'+_0x4ac0d6,_0x4e3c40='max'+_0x4ac0d6;_0x45fa66['enableCommand'](_0x426038,()=>{_0x22b7f9['model']['change'](_0xde8fe6=>{const _0x3a4bf8=_0x163f3c['getSelectionAffectedTableCells'](_0x4abe64),_0x4bfaed=_0x3a4bf8[0x0]['findAncestor']('table');let _0x34d4bf;if('removeTableRow'==_0x426038){const _0x494add=_0x163f3c['getRowIndexes'](_0x3a4bf8);_0x34d4bf={'startRow':_0x494add['first'],'endRow':_0x494add['last'],'includeAllSlots':!0x0};}else{const _0x149d7f=_0x163f3c['getColumnIndexes'](_0x3a4bf8);_0x34d4bf={'startColumn':_0x149d7f['first'],'endColumn':_0x149d7f['last'],'includeAllSlots':!0x0};}const _0x229e90=_0x163f3c['createTableWalker'](_0x4bfaed,_0x34d4bf),_0x2aefec=Array['from'](_0x229e90)['map'](({cell:_0xb31711})=>_0xb31711),_0x27490a=_e(_0x2aefec['filter'](_0x2e64ab=>_0x2e64ab['hasAttribute'](_0x3e4bcd))),_0x106e5a=_e(_0x2aefec['filter'](_0x1285b0=>!_0x1285b0['hasAttribute'](_0x3e4bcd)))['map'](_0x49da02=>_0xde8fe6['createRangeOn'](_0x49da02)),_0x7f001e=_0x45fa66['markMultiRangeDeletion'](_0x106e5a,_0x44bcf8);if(_0x7f001e&&('tableRow'==_0x7f001e['subType']||'tableColumn'==_0x7f001e['subType'])){const _0x596856=this['_getSuggestionCoords'](_0x7f001e);for(const _0x3f5fef of _0x27490a){const _0x5ac37b=_0xde8fe6['createRangeOn'](_0x3f5fef),_0x53f0d4=_0x163f3c['getCellLocation'](_0x3f5fef),_0x559e74=_0x3f5fef['getAttribute'](_0x3e4bcd)-0x1,_0x90730=_0x596856[_0x26e8a5],_0x30e14e=_0x596856[_0x4e3c40];_0x90730<=_0x53f0d4[_0x5bf6c4]&&_0x53f0d4[_0x5bf6c4]+_0x559e74<=_0x30e14e&&_0x7f001e['addRange'](_0x5ac37b);}}});});}function _0x129068(_0x5316ad){const _0x345a02=Array['from'](_0x4abe64['getRanges']())['map'](_0x1f0fbb=>_0x2ed57b['fromRange'](_0x1f0fbb));_0x22b7f9['model']['change'](_0x312220=>{const _0x565005=_0x312220['batch'];_0x5316ad=_0x5316ad['filter'](_0x125bd7=>'$graveyard'!=_0x125bd7['root']['rootName']),_0x312220['setSelection'](_0x5316ad),_0x22b7f9['commands']['get']('removeTableRow')['refresh'](),_0x22b7f9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x22b7f9['model']['enqueueChange'](()=>{_0x22b7f9['model']['enqueueChange'](_0x565005,_0x3d0c6f=>{const _0x484908=_0x345a02['filter'](_0x243125=>'$graveyard'!=_0x243125['root']['rootName']);_0x484908['length']>0x0&&_0x3d0c6f['setSelection'](_0x484908);for(const _0x4262db of _0x345a02)_0x4262db['detach']();});});});}function _0x3b60d9(_0x33021c){_0x22b7f9['model']['change'](_0x1915da=>{const _0x32a9ca=Array['from'](_0x4abe64['getRanges']())['map'](_0x5bf2fd=>_0x2ed57b['fromRange'](_0x5bf2fd)),_0x30c01e=[];for(const _0xfbbb5b of _0x33021c)for(const _0x44e7b6 of _0xfbbb5b['getItems']({'shallow':!0x0}))_0x30c01e['push'](_0x44e7b6);for(const _0x4e5d5a of _0x30c01e)'$graveyard'!=_0x4e5d5a['root']['rootName']&&(_0x1915da['setSelection'](_0x1915da['createPositionAt'](_0x4e5d5a,0x0)),_0x22b7f9['commands']['get']('removeTableColumn')['refresh'](),_0x22b7f9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x475627=_0x32a9ca['filter'](_0x262472=>'$graveyard'!=_0x262472['root']['rootName']);_0x475627['length']>0x0&&_0x1915da['setSelection'](_0x475627);for(const _0x38a4cc of _0x32a9ca)_0x38a4cc['detach']();});}function _0x4f0b88(_0x50d081,_0x147341){return _0x147341['every'](_0x2216cb=>_0x50d081['some'](_0x160326=>_0x160326['end']['isEqual'](_0x2216cb['start'])||_0x2216cb['end']['isEqual'](_0x160326['start'])));}function _0x49aeac(_0x10a309,_0x39915b){return!_0x10a309['some'](_0x34ea7b=>_0x39915b['some'](_0x2381d0=>_0x34ea7b['isIntersecting'](_0x2381d0)))&&_0x10a309['some'](_0x56442a=>_0x39915b['some'](_0x296d8e=>_0x56442a['end']['isTouching'](_0x296d8e['start'])));}_0x45fa66['descriptionFactory']['registerDescriptionCallback'](_0x43cb99=>{if('insertion'!=_0x43cb99['type']&&'deletion'!=_0x43cb99['type'])return;const _0x57cda8=_0x43cb99['getContainedElement']();if(null!=_0x57cda8&&_0x57cda8['is']('element','table')){if('insertion'==_0x43cb99['type']){const _0x42abc7=_0x43cb99['getItems']()['filter'](_0x54a9cf=>_0x54a9cf['is']('$textProxy'))['map'](_0x45a857=>_0x45a857['data']);if(_0x42abc7['length'])return{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42abc7['join']('\x20')+'\x22'))};}if('deletion'==_0x43cb99['type']){const _0x38736c=_0x43cb99['getItems']()['filter'](_0x2a76a1=>_0x2a76a1['is']('$textProxy'))['map'](_0x53a613=>_0x53a613['data']);if(_0x38736c['length'])return{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x38736c['join']('\x20')+'\x22'))};}}}),_0x45fa66['descriptionFactory']['registerDescriptionCallback'](_0x458be4=>{if('tableRow'==_0x458be4['subType']){const _0x50b94f=_0x458be4['getItems']()['filter'](_0x40cd4a=>_0x40cd4a['is']('$textProxy'))['map'](_0x52548c=>_0x52548c['data']),_0x525018=this['_getSuggestionCoords'](_0x458be4),_0x2ed732=_0x525018['maxRow']-_0x525018['minRow']+0x1;if('insertion'==_0x458be4['type'])return _0x50b94f['length']?{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ed732,'\x22'+_0x50b94f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW',_0x2ed732))};if('deletion'==_0x458be4['type'])return _0x50b94f['length']?{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2ed732,'\x22'+_0x50b94f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_ROW',_0x2ed732))};}if('tableColumn'==_0x458be4['subType']){const _0x33a828=_0x458be4['getItems']()['filter'](_0xe0bac4=>_0xe0bac4['is']('$textProxy'))['map'](_0x19a8fa=>_0x19a8fa['data']),_0x411d9f=this['_getSuggestionCoords'](_0x458be4),_0x249bf9=_0x411d9f['maxColumn']-_0x411d9f['minColumn']+0x1;if('insertion'==_0x458be4['type'])return _0x33a828['length']?{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x249bf9,'\x22'+_0x33a828['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x44d29b,'*Insert:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN',_0x249bf9))};if('deletion'==_0x458be4['type'])return _0x33a828['length']?{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x249bf9,'\x22'+_0x33a828['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x44d29b,'*Remove:*\x20%0',o(_0x44d29b,'ELEMENT_TABLE_COLUMN',_0x249bf9))};}}),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x129068),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x129068),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3b60d9),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3b60d9),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4f0b88),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4f0b88),_0x45fa66['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x49aeac),_0x45fa66['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x49aeac);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2841fe=this['editor'],_0x3abbbf=_0x2841fe['model']['document']['selection'];return(_0x4c080d,_0x3e5ebe)=>{_0x2841fe['model']['change'](_0x38239a=>{const {commandName:_0x56cd93,commandParams:_0x310485}=_0x3e5ebe;let _0x2f8bec=_0x4c080d[0x0]['end']['nodeBefore'];_0x310485&&_0x310485[0x0]&&!0x1===_0x310485[0x0]['forceValue']&&(_0x2f8bec=_0x4c080d[0x0]['start']['nodeAfter']);const _0x49cc67=_0x38239a['createRangeIn'](_0x2f8bec);if('$graveyard'==_0x49cc67['root']['rootName'])return;const _0x53e3dd=Array['from'](_0x3abbbf['getRanges']())['map'](_0x1e9728=>_0x2ed57b['fromRange'](_0x1e9728));_0x38239a['setSelection'](_0x49cc67),_0x2841fe['commands']['get'](_0x56cd93)['refresh'](),_0x310485['push']({'forceDefaultExecution':!0x0}),_0x2841fe['execute'](_0x56cd93,..._0x310485);const _0x1e939c=_0x53e3dd['filter'](_0x4cb0b7=>'$graveyard'!=_0x4cb0b7['root']['rootName']);_0x1e939c['length']>0x0&&_0x38239a['setSelection'](_0x1e939c);for(const _0x128395 of _0x53e3dd)_0x128395['detach']();});};}['_getCoordsForCells'](_0x511f51){const _0x4748ed=this['editor']['plugins']['get']('TableUtils');let _0x1de9b3=Number['MAX_SAFE_INTEGER'],_0x27361a=Number['MIN_SAFE_INTEGER'],_0x12a90b=Number['MAX_SAFE_INTEGER'],_0x5c5b2f=Number['MIN_SAFE_INTEGER'];for(const _0x371da1 of _0x511f51){if('$graveyard'==_0x371da1['root']['rootName'])continue;const {row:_0x691297,column:_0x5743b1}=_0x4748ed['getCellLocation'](_0x371da1),_0x1a7947=_0x371da1['hasAttribute']('rowspan')?_0x371da1['getAttribute']('rowspan')-0x1:0x0,_0x34f61b=_0x371da1['hasAttribute']('colspan')?_0x371da1['getAttribute']('colspan')-0x1:0x0;_0x1de9b3=_0x691297<_0x1de9b3?_0x691297:_0x1de9b3,_0x27361a=_0x691297+_0x1a7947>_0x27361a?_0x691297+_0x1a7947:_0x27361a,_0x12a90b=_0x5743b1<_0x12a90b?_0x5743b1:_0x12a90b,_0x5c5b2f=_0x5743b1+_0x34f61b>_0x5c5b2f?_0x5743b1+_0x34f61b:_0x5c5b2f;}return{'minRow':_0x1de9b3,'maxRow':_0x27361a,'minColumn':_0x12a90b,'maxColumn':_0x5c5b2f};}['_setupColumnsRowsFixing'](){const _0x47309a=this['editor'],_0x1ca3a9=_0x47309a['plugins']['get']('TrackChangesEditing'),_0x4cae9f=_0x47309a['plugins']['get']('TableUtils');_0x47309a['model']['document']['on']('change:data',()=>{const _0x44eba7=Array['from'](_0x47309a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4eb08c,data:_0x216c6f}of _0x44eba7){const {group:_0xa648a1,id:_0x3f7da9,subType:_0x780645}=_0x1ca3a9['_splitMarkerName'](_0x4eb08c);if('suggestion'!=_0xa648a1)continue;if(null!=_0x216c6f['oldRange'])continue;const _0x39bef5=_0x1ca3a9['getSuggestion'](_0x3f7da9);this['_tablePostFixingSubtypes']['includes'](_0x780645)&&this['_tableSuggestions']['add'](_0x39bef5);}},{'priority':'low'});const _0x4ceff9=(_0x500de6,_0x61943)=>{let _0x5d1f06=!0x1;const _0x133277=_0x61943['createRangeOn'](_0x500de6),_0x34c9d4=_0x500de6['findAncestor']('table'),_0x187ab8=_0x4cae9f['getCellLocation'](_0x500de6);for(const _0x5c3beb of this['_tableSuggestions']){const _0x58d6c0=_0x5c3beb['subType'],_0x343a7a=_0x58d6c0['startsWith']('tablePaste'),_0x2a4cf1=_0x58d6c0['substr'](_0x343a7a?0xa:0x5),_0x197c06=_0x2a4cf1['toLowerCase'](),_0x199b29=_0x197c06['substr'](0x0,0x3)+'span',_0x11c3d6='min'+_0x2a4cf1,_0x2163e2='max'+_0x2a4cf1;if(!_0x5c3beb['isInContent'])continue;if(_0x34c9d4!=_0x5c3beb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5c3beb['isIntersectingWithRange'](_0x133277))continue;const _0x45c345=_0x500de6['hasAttribute'](_0x199b29)?_0x500de6['getAttribute'](_0x199b29)-0x1:0x0,_0x259f89=this['_getSuggestionCoords'](_0x5c3beb),_0x3656c9=_0x259f89[_0x11c3d6],_0x554277=_0x259f89[_0x2163e2];_0x3656c9<=_0x187ab8[_0x197c06]&&_0x187ab8[_0x197c06]+_0x45c345<=_0x554277&&(_0x5c3beb['addRange'](_0x133277),_0x5d1f06=!0x0);}return _0x5d1f06;};_0x47309a['model']['document']['registerPostFixer'](_0x41ca06=>{let _0x10aec=!0x1;for(const _0x40d0e5 of _0x47309a['model']['document']['differ']['getChanges']())if('insert'==_0x40d0e5['type']){if('tableRow'==_0x40d0e5['name']){for(const _0x385dc8 of _0x40d0e5['position']['nodeAfter']['getChildren']())_0x10aec=_0x10aec||_0x4ceff9(_0x385dc8,_0x41ca06);}else'tableCell'==_0x40d0e5['name']&&(_0x10aec=_0x10aec||_0x4ceff9(_0x40d0e5['position']['nodeAfter'],_0x41ca06));}return _0x10aec;});}['_getSuggestionCoords'](_0x1b3484){return this['_getCoordsForCells'](_0x1b3484['getRanges']()['map'](_0x262da7=>_0x262da7['start']['nodeAfter']));}}function _e(_0x25705c){return Array['from'](new Set(_0x25705c)['values']());}class Bt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x39e1f1=this['editor'],_0xa715be=_0x39e1f1['model']['document']['selection'],_0x498742=_0x39e1f1['locale'];if(!_0x39e1f1['plugins']['has']('TableEditing'))return;const _0x1bf60d=_0x39e1f1['plugins']['get']('TrackChangesEditing'),_0x55c7b7=_0x39e1f1['plugins']['get']('TableUtils'),_0x583d3e=_0x39e1f1['plugins']['get'](Dt);_0x583d3e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1bf60d['enableCommand']('mergeTableCells',()=>{const _0x63dd28=_0x55c7b7['getSelectionAffectedTableCells'](_0x39e1f1['model']['document']['selection']);_0x39e1f1['model']['change'](()=>{_0x1bf60d['markMultiRangeBlockFormat'](_0x63dd28,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x39e1f1['commands']['get']('mergeTableCells')['on']('execute',(_0x43adb6,_0x38e065)=>{_0x39e1f1['commands']['get']('trackChanges')['value']&&(_0x38e065['length']>0x0&&_0x38e065[_0x38e065['length']-0x1]&&_0x38e065[_0x38e065['length']-0x1]['forceDefaultExecution']||_0x1bf60d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x43adb6['stop']());},{'priority':'highest'});for(const _0xf702d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5b0343=_0x39e1f1['commands']['get'](_0xf702d9);_0x1bf60d['enableCommand'](_0xf702d9,()=>{const _0x210cea=_0x39e1f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xf66e56=>_0xf66e56['is']('element','tableCell')),_0x2283f9=_0x5b0343['value'];_0x39e1f1['model']['change'](()=>{_0x1bf60d['markMultiRangeBlockFormat']([_0x210cea,_0x2283f9],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x270590 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x275d15=_0x39e1f1['commands']['get'](_0x270590);_0x1bf60d['enableCommand'](_0x270590,()=>{const _0x3750c7=_0x55c7b7['getSelectionAffectedTableCells'](_0x39e1f1['model']['document']['selection'])[0x0],_0x1aca32=_0x3750c7['findAncestor']('table'),{column:_0x34331a,row:_0x59f90f}=_0x55c7b7['getCellLocation'](_0x3750c7);let _0x26d992=[];if('horizontally'==_0x275d15['direction']){const _0x12a57e=_0x55c7b7['createTableWalker'](_0x1aca32,{'startRow':_0x59f90f,'endRow':_0x59f90f,'includeAllSlots':!0x0});_0x26d992=Array['from'](_0x12a57e)['map'](_0x3146d=>_0x3146d['cell']);}else{const _0x5277df=_0x55c7b7['createTableWalker'](_0x1aca32,{'column':_0x34331a,'includeAllSlots':!0x0});_0x26d992=Array['from'](_0x5277df)['map'](_0x80d40b=>_0x80d40b['cell']);}_0x39e1f1['model']['change'](_0x4c9abe=>{_0x1bf60d['markBlockFormat'](_0x4c9abe['createRangeOn'](_0x3750c7),{'commandName':_0x270590,'commandParams':[]},_0x26d992,_0x270590);});});}_0x1bf60d['descriptionFactory']['registerDescriptionCallback'](_0xd97373=>{if('formatBlock'!=_0xd97373['type']&&'formatInline'!=_0xd97373['type'])return;const {data:_0x2ce455}=_0xd97373;return _0x2ce455&&'mergeTableCells'==_0x2ce455['commandName']?{'type':'format','content':o(_0x498742,'*Merge\x20cells*')}:void 0x0;}),_0x1bf60d['descriptionFactory']['registerDescriptionCallback'](_0x461bc1=>{if('formatBlock'!=_0x461bc1['type']&&'formatInline'!=_0x461bc1['type'])return;const {data:_0x1bf1c6}=_0x461bc1;return _0x1bf1c6?'splitTableCellVertically'==_0x1bf1c6['commandName']?{'type':'format','content':o(_0x498742,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1bf1c6['commandName']?{'type':'format','content':o(_0x498742,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5f2dce=_0x583d3e['_acceptFormatSuggestionCallbackFactory']();for(const _0x2b5ba7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b5ba7,'accept',_0x5f2dce);for(const _0x23c8cb of['splitTableCellVertically','splitTableCellHorizontally'])_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x23c8cb,'accept',_0x5f2dce);_0x1bf60d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x147638=>{_0x39e1f1['model']['change'](_0x6c1557=>{const _0xe18a72=Array['from'](_0xa715be['getRanges']())['map'](_0x167130=>_0x2ed57b['fromRange'](_0x167130));_0x6c1557['setSelection'](_0x147638),_0x39e1f1['commands']['get']('mergeTableCells')['refresh'](),_0x39e1f1['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x25dbb7=_0xe18a72['filter'](_0x4790eb=>'$graveyard'!=_0x4790eb['root']['rootName']);_0x25dbb7['length']>0x0&&_0x6c1557['setSelection'](_0x25dbb7);for(const _0x2c5145 of _0xe18a72)_0x2c5145['detach']();});});for(const _0x3b6d4d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3383aa=_0x39e1f1['commands']['get'](_0x3b6d4d);_0x3383aa['on']('set:isEnabled',(_0x5c4c55,_0x380d25,_0x35b184)=>{if(_0x35b184){const _0x3b0494=_0x39e1f1['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe87c7=>_0xe87c7['is']('element','tableCell'));this['_areMergableCells'](_0x3383aa['value'],_0x3b0494)||(_0x5c4c55['return']=!0x1,_0x5c4c55['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x474603=this['editor']['commands']['get']('mergeTableCells'),_0x179e33=this['editor']['plugins']['get']('TableUtils');if(!_0x474603['isEnabled'])return!0x1;const _0x29f22e=_0x179e33['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x383a26 of _0x29f22e)for(const _0x1dd30b of _0x29f22e)if(_0x383a26!=_0x1dd30b&&!this['_areMergableCells'](_0x383a26,_0x1dd30b))return!0x1;return!0x0;}['_areMergableCells'](_0x28fc9,_0x5ee364){const _0x36c4d4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c5a47=this['editor']['model']['createRangeOn'](_0x28fc9),_0x5cd5e6=this['editor']['model']['createRangeOn'](_0x5ee364),_0x8cf68d=new Set(),_0x1fe0f6=new Set();for(const _0x38d3d2 of _0x36c4d4['getSuggestions']())if(('insertion'==_0x38d3d2['type']||'deletion'==_0x38d3d2['type']||'mergeTableCells'==_0x38d3d2['subType'])&&_0x38d3d2['isInContent']){for(const _0x5f0dc8 of _0x38d3d2['getRanges']())_0x5f0dc8['containsRange'](_0x3c5a47,!0x0)&&_0x8cf68d['add'](_0x38d3d2['type']+':'+_0x38d3d2['author']['id']),_0x5f0dc8['containsRange'](_0x5cd5e6,!0x0)&&_0x1fe0f6['add'](_0x38d3d2['type']+':'+_0x38d3d2['author']['id']);}if(_0x8cf68d['size']!=_0x1fe0f6['size'])return!0x1;for(const _0x3414c8 of _0x8cf68d)if(!_0x1fe0f6['has'](_0x3414c8))return!0x1;return!0x0;}}class Ot extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x10036e=this['editor'];if(!_0x10036e['plugins']['has']('TableEditing'))return;const _0x443c87=_0x10036e['locale'],_0x183270=_0x10036e['plugins']['get']('TrackChangesEditing');_0x183270['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x183270['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x183270['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x443c87,'FORMAT_HEADER_ROW')),_0x183270['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x443c87,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4cbcbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x35a8dd=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x4cbcbb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x35a8dd),_0x4cbcbb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x35a8dd),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x49929b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a64d=this['editor']['plugins']['get']('TableUtils');function _0x49f05d({showActiveMarker:_0x26724b=!0x0,setDataAttribute:_0x4918b0=!0x0}={}){return(_0x128463,_0x1509d6,_0x520220)=>{const {type:_0x4d0d7d,id:_0x4f9b5d}=_0x49929b['_splitMarkerName'](_0x1509d6['markerName']);if(!_0x49929b['hasSuggestion'](_0x4f9b5d))return;const _0x490d28=_0x49929b['getSuggestion'](_0x4f9b5d),_0x227ffe=_0x490d28['data'];if('formatBlock'!=_0x490d28['type']||!_0x227ffe||'setTableColumnHeader'!=_0x227ffe['commandName'])return;if(_0x1509d6['item'])return void _0x128463['stop']();if(!_0x520220['consumable']['consume'](_0x1509d6['markerRange'],_0x128463['name']))return;const _0x2c2fe9=_0x1509d6['markerRange']['start']['nodeAfter'],_0x3cf6c6=_0x1509d6['markerRange']['end']['nodeBefore'],_0xe89e6d=_0x2c2fe9['parent']['parent'],{column:_0x44382a}=_0x1a64d['getCellLocation'](_0x2c2fe9),{column:_0x22c4cf}=_0x1a64d['getCellLocation'](_0x3cf6c6);for(let _0x256d7d=_0x44382a;_0x256d7d<=_0x22c4cf;_0x256d7d++){const _0x271513=_0x1a64d['createTableWalker'](_0xe89e6d,{'column':_0x256d7d,'includeAllSlots':!0x1});for(const _0xd482fe of _0x271513){const _0x46a81e=_0xd482fe['cell'],_0x52a833=_0x520220['mapper']['toViewElement'](_0x46a81e);_0x520220['writer']['addClass']('ck-suggestion-marker-'+_0x4d0d7d,_0x52a833),_0x4918b0&&_0x520220['writer']['setAttribute']('data-suggestion',_0x4f9b5d,_0x52a833),_0x520220['mapper']['bindElementToMarker'](_0x52a833,_0x1509d6['markerName']),_0x26724b&&(_0x49929b['activeMarkers']['includes'](_0x1509d6['markerName'])?_0x520220['writer']['addClass']('ck-suggestion-marker--active',_0x52a833):_0x520220['writer']['removeClass']('ck-suggestion-marker--active',_0x52a833));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49f05d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1bb25a,_0xc3276c,_0x5211b1)=>{_0x5211b1['options']['showSuggestionHighlights']&&_0x49f05d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1bb25a,_0xc3276c,_0x5211b1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x235b0d,_0x190d28,_0x6494e6)=>{const {type:_0x58cf1c,id:_0x339599}=_0x49929b['_splitMarkerName'](_0x190d28['markerName']);if(!_0x49929b['hasSuggestion'](_0x339599))return;const _0x35b1a7=_0x49929b['getSuggestion'](_0x339599),_0x2b95ac=_0x35b1a7['data'];if('formatBlock'!=_0x35b1a7['type']||!_0x2b95ac||'setTableColumnHeader'!=_0x2b95ac['commandName'])return;const _0x143df9=_0x6494e6['mapper']['markerNameToElements'](_0x190d28['markerName']);if(_0x143df9){for(const _0x10b490 of _0x143df9)_0x6494e6['writer']['removeClass']('ck-suggestion-marker-'+_0x58cf1c,_0x10b490),_0x6494e6['writer']['removeClass']('ck-suggestion-marker--active',_0x10b490),_0x6494e6['writer']['removeAttribute']('data-suggestion',_0x10b490),_0x6494e6['mapper']['unbindElementFromMarkerName'](_0x10b490,_0x190d28['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x3881f4=this['editor'],_0x33e0b3=_0x3881f4['locale'];function _0x17af12(_0x134b1c){return{'type':'format','content':o(_0x33e0b3,'*Format:*\x20%0',_0x134b1c)};}_0x3881f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c369b=>{if('formatBlock'!=_0x5c369b['type'])return;const {data:_0x5dab6a}=_0x5c369b;if(_0x5dab6a){if('setTableRowHeader'==_0x5dab6a['commandName']){const _0x25a48f=_0x5dab6a['commandParams'][0x0]['forceValue'];return _0x17af12(o(_0x33e0b3,_0x25a48f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5dab6a['commandName']){const _0x4ab30f=_0x5dab6a['commandParams'][0x0]['forceValue'];return _0x17af12(o(_0x33e0b3,_0x4ab30f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x562758{['afterInit'](){const _0x5aef84=this['editor'],_0x343cf8=_0x5aef84['locale'],_0x21ae04=_0x5aef84['plugins']['get']('TrackChangesEditing');function _0x7c3e1b(_0x4696e7){return{'type':'format','content':''+o(_0x343cf8,'*Set\x20table\x20type:*\x20%0',_0x4696e7)};}_0x5aef84['plugins']['has']('TableLayout')&&(_0x21ae04['enableCommand']('insertTableLayout'),_0x21ae04['enableDefaultAttributesIntegration']('tableType'),_0x21ae04['descriptionFactory']['registerElementLabel'](_0x72f306=>_0x72f306['is']('element','table')&&'layout'===_0x72f306['getAttribute']('tableType'),_0x2b0aa1=>o(_0x343cf8,'ELEMENT_LAYOUT_TABLE',_0x2b0aa1)),_0x21ae04['descriptionFactory']['registerDescriptionCallback'](_0x242d04=>{const {data:_0x5670c4}=_0x242d04;if(_0x5670c4&&'tableType'==_0x5670c4['key'])switch(_0x5670c4['newValue']){case'layout':return _0x7c3e1b(o(_0x343cf8,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x7c3e1b(o(_0x343cf8,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x1fc281=>[_0x1fc281,null]));class Mt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x26e371=this['editor'];if(!_0x26e371['plugins']['has']('TableClipboard'))return;const _0x4ecc91=_0x26e371['plugins']['get']('TrackChangesEditing'),_0x3bbf7d=_0x26e371['plugins']['get']('TableUtils'),_0x9d51a5=_0x26e371['plugins']['get'](Dt),_0x1493ae=_0x26e371['plugins']['get']('TableClipboard'),_0x31c1c6=_0x26e371['plugins']['get']('TableSelection'),_0x23578d=_0x26e371['plugins']['get'](_0x2aa2ff);_0x9d51a5['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x26e371['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x26e371['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x582851=null,_0x4f7e1a=!0x1;_0x23578d['on']('contentInsertion',(_0x3971e9,_0x94ec7)=>{_0x4f7e1a='paste'===_0x94ec7['method'];}),_0x26e371['model']['on']('insertContent',(_0x52750e,_0xd997f2)=>{if(!_0x4f7e1a&&null===_0x31c1c6['getSelectedTableCells']())return;const [_0xc17d1,_0x229a2c]=_0xd997f2,_0x11b6d1=_0xd997f2[_0xd997f2['length']-0x1];_0x11b6d1&&_0x11b6d1['forceDefaultExecution']||_0x4ecc91['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x714d3,_0x46929f,_0x12612a,_0x266365,_0x4bfc50){if(_0x46929f&&!_0x46929f['is']('documentSelection'))return!0x1;const _0x46aa84=_0x4bfc50['getTableIfOnlyTableInContent'](_0x714d3,_0x12612a);if(!_0x46aa84||!Oe(_0x46aa84,void 0x0,_0x266365))return!0x1;const _0x582905=_0x266365['getSelectionAffectedTableCells'](_0x12612a['document']['selection']);if(!_0x582905['length'])return!0x1;const _0x28623b=_0x582905[0x0]['findAncestor']('table'),_0x2de994=_0x266365['getRowIndexes'](_0x582905),_0x387fbe=_0x266365['getColumnIndexes'](_0x582905),_0x4f6d20={'startRow':_0x2de994['first'],'endRow':_0x2de994['last'],'startColumn':_0x387fbe['first'],'endColumn':_0x387fbe['last']};return 0x1==_0x582905['length']&&(_0x4f6d20['endRow']+=_0x266365['getRows'](_0x46aa84)-0x1,_0x4f6d20['endColumn']+=_0x266365['getColumns'](_0x46aa84)-0x1),Oe(_0x28623b,_0x4f6d20,_0x266365);}(_0xc17d1,_0x229a2c,_0x26e371['model'],_0x3bbf7d,_0x1493ae)&&(_0x52750e['stop'](),_0x582851={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x26e371['model']['change'](()=>{_0x26e371['model']['insertContent'](_0xd997f2[0x0],_0xd997f2[0x1],_0xd997f2[0x2],{'forceDefaultExecution':!0x0});const _0x28ec09=_0x341aab(),{rowInsertionRanges:_0x9559ec,columnInsertionRanges:_0x436ce6,insertionRanges:_0x422748,deletionRanges:_0x3fdbcf,cells:_0x29f66a}=_0x582851;_0x9559ec['length']&&_0x4ecc91['markMultiRangeInsertion'](_0x9559ec,'tablePasteRow',{'tablePasteChainId':_0x28ec09}),_0x436ce6['length']&&_0x4ecc91['markMultiRangeInsertion'](_0x436ce6,'tablePasteColumn',{'tablePasteChainId':_0x28ec09}),_0x422748['length']&&(_0x4ecc91['markMultiRangeInsertion'](_0x422748,'tablePaste',{'tablePasteChainId':_0x28ec09,'skipNestingCheck':!0x0}),_0x422748['forEach'](_0x35f47b=>_0x35f47b['detach']?.())),_0x3fdbcf['length']&&(_0x4ecc91['markMultiRangeDeletion'](_0x3fdbcf,'tablePaste',{'tablePasteChainId':_0x28ec09,'skipNestingCheck':!0x0}),_0x3fdbcf['forEach'](_0x44b5ef=>_0x44b5ef['detach']?.()));const _0x5f5028=_0x4ecc91['markMultiRangeBlockFormat'](_0x29f66a['map'](({element:_0x3a0814})=>_0x3a0814),{'formatGroupId':_0x341aab()},[],'tablePasteCell',{'tablePasteChainId':_0x28ec09});if(_0x5f5028){const _0x3b33e3=_0x5f5028['getMarkers'](),_0x4b21eb=[];for(const {element:_0x47b16e,attributes:_0x47c28d}of _0x29f66a){if(!_0x47c28d)continue;const _0x3c09dc=_0x26e371['model']['createRangeOn'](_0x47b16e),_0x3f1536=_0x3b33e3['find'](_0x504fa9=>_0x504fa9['getRange']()['isEqual'](_0x3c09dc));_0x3f1536&&_0x4b21eb['push']([_0x3f1536['name'],_0x47c28d]);}_0x4b21eb['length']&&_0x5f5028['setAttribute']('markerAttributes',Object['fromEntries'](_0x4b21eb));}_0x582851=null;}));},{'priority':_0x30da9e['high']+0xa}),_0x23578d['on']('contentInsertion',()=>{_0x4f7e1a=!0x1;},{'priority':'lowest'}),_0x26e371['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11ffd2,_0x16c6ed)=>{const [_0xbc0c36,_0x9caa0b,,_0x1e4d72]=_0x16c6ed;if(!_0x582851)return;_0x11ffd2['stop']();const _0x2ccc44=_0xbc0c36['cell'],_0x1ea627=_0x9caa0b,_0x3ccc6d=Be(_0x2ccc44),_0x378c3e=Be(_0x1ea627);_0x11ffd2['return']=_0x2ccc44;let _0x4c2a48=null,_0x10f628=null;if(_0x378c3e||_0x3ccc6d){if(_0x3ccc6d&&!_0x378c3e){_0x1e4d72['remove'](_0x2ccc44['getChild'](0x0));for(const _0x5e3e64 of Array['from'](_0x1ea627['getChildren']()))_0x1e4d72['insert'](_0x5e3e64,_0x2ccc44,'end');const _0x11a128=_0x582851['rowInsertionIndexes']['includes'](_0xbc0c36['row']),_0x374b36=_0x582851['columnInsertionIndexes']['includes'](_0xbc0c36['column']);_0x11a128||_0x374b36||(_0x4c2a48=_0x2ed57b['fromRange'](_0x1e4d72['createRangeIn'](_0x2ccc44)));}else _0x378c3e&&!_0x3ccc6d&&(_0x10f628=_0x1e4d72['createRangeIn'](_0x2ccc44));}else{const _0x24f8df=_0x1e4d72['createElement']('tableCellSuggestion'),_0xff40d0=_0x1e4d72['createElement']('tableCellSuggestion');_0x1e4d72['wrap'](_0x1e4d72['createRangeIn'](_0x2ccc44),_0xff40d0),_0x1e4d72['insert'](_0x24f8df,_0x2ccc44,0x0);for(const _0x1bbc32 of Array['from'](_0x1ea627['getChildren']()))_0x1e4d72['insert'](_0x1bbc32,_0x24f8df,'end');_0x4c2a48=_0x2ed57b['fromRange'](_0x1e4d72['createRangeOn'](_0x24f8df)),_0x10f628=_0x2ed57b['fromRange'](_0x1e4d72['createRangeOn'](_0xff40d0));}const _0x27e483=Array['from'](_0x1ea627['getAttributes']())['filter'](([_0x22464a])=>Re['includes'](_0x22464a));_0x582851['cells']['push']({'element':_0x2ccc44,'attributes':_0x27e483['length']?Object['fromEntries'](_0x27e483):null}),_0x4c2a48&&_0x582851['insertionRanges']['push'](_0x4c2a48),_0x10f628&&_0x582851['deletionRanges']['push'](_0x10f628);},{'priority':'high'}),_0x3bbf7d['on']('insertColumns',(_0x5579ce,_0xaf625f)=>{const [_0x3f07cb,_0x2f9caf={}]=_0xaf625f;if(!_0x582851)return;const _0x30d02e=_0x2f9caf['at']||0x0,_0x51e477=_0x2f9caf['columns']||0x1;_0x582851['columnInsertionIndexes']=new Array(_0x51e477)['fill'](_0x30d02e)['map']((_0x57b4c5,_0x540bf9)=>_0x57b4c5+_0x540bf9);for(const {cell:_0x5746b6}of _0x3bbf7d['createTableWalker'](_0x3f07cb,{'startColumn':_0x30d02e,'endColumn':_0x30d02e+_0x51e477-0x1}))_0x582851['columnInsertionRanges']['push'](_0x26e371['model']['createRangeOn'](_0x5746b6));},{'priority':'low'}),_0x3bbf7d['on']('insertRows',(_0x4c4be6,_0x51ed94)=>{const [_0x37fb71,_0x35da1b={}]=_0x51ed94;if(!_0x582851)return;const _0x5185b6=_0x35da1b['at']||0x0,_0x29d5fe=_0x35da1b['rows']||0x1;_0x582851['rowInsertionIndexes']=new Array(_0x29d5fe)['fill'](_0x5185b6)['map']((_0x1d7ea2,_0xdcc5bd)=>_0x1d7ea2+_0xdcc5bd);for(const {cell:_0xf419c8}of _0x3bbf7d['createTableWalker'](_0x37fb71,{'startRow':_0x5185b6,'endRow':_0x5185b6+_0x29d5fe-0x1}))_0x582851['rowInsertionRanges']['push'](_0x26e371['model']['createRangeOn'](_0xf419c8));},{'priority':'low'}),_0x4ecc91['descriptionFactory']['registerDescriptionCallback'](_0x1ee537=>{if(_0x1ee537['subType']&&_0x1ee537['subType']['startsWith']('tablePaste'))return _0x1ee537['previous']?{}:{'type':'insertion','content':o(_0x26e371['locale'],'*Replace\x20table\x20cells*')};});const _0x457508=()=>!0x1;for(const _0x1535fc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion',_0x1535fc,'join',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('deletion',_0x1535fc,'join',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1535fc,'join',_0x457508);_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x457508),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1a9289,_0x32e18c,_0x23101a)=>{const _0x562935=_0x1a9289['map'](_0x50166c=>_0x50166c['getContainedElement']())['filter'](_0xf52e8=>_0xf52e8),_0x30bc8d=new Map(_0x562935['map'](_0x1658f2=>[_0x1658f2,null]));if(_0x582851){for(const {element:_0x2bb16d,attributes:_0x17fbf6}of _0x582851['cells'])_0x17fbf6&&_0x30bc8d['set'](_0x2bb16d,_0x17fbf6);}else{if(_0x23101a&&_0x23101a['markerAttributes'])for(const [_0x3d49f9,_0x32c106]of Object['entries'](_0x23101a['markerAttributes'])){const _0x4ca604=_0x26e371['model']['markers']['get'](_0x3d49f9),_0x1e0956=_0x4ca604?_0x4ca604['getRange']()['getContainedElement']():null;_0x1e0956&&_0x30bc8d['set'](_0x1e0956,_0x32c106);}}_0x26e371['model']['change'](_0x24b1c8=>{for(const [_0x281589,_0x5fc24e]of _0x30bc8d)_0x24b1c8['setAttributes']({...Ae,..._0x5fc24e},_0x281589);});});const _0x372abc=(_0x145fa4,_0x105302)=>{_0x4ecc91['_suggestionFactory']['registerCustomCallback'](_0x145fa4,'tablePaste',_0x105302,(_0x69818,_0x398829,_0x25438f)=>{_0x26e371['model']['change'](_0x40402c=>{const _0x2de398=[];for(const _0x2720d1 of _0x69818){const _0x499020=_0x2720d1['start']['nodeAfter'];_0x499020['is']('element','tableCellSuggestion')&&_0x2de398['push'](_0x499020);}_0x4ecc91['_suggestionFactory']['getSuggestionCallback'](_0x145fa4,null,_0x105302)(_0x69818,_0x398829,_0x25438f);for(const _0x5b8ead of _0x2de398)'$graveyard'!=_0x5b8ead['root']['rootName']&&_0x40402c['unwrap'](_0x5b8ead);});});};_0x372abc('insertion','accept'),_0x372abc('insertion','discard'),_0x372abc('deletion','accept'),_0x372abc('deletion','discard'),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f3de8=>{const _0x34ce02=_0x4f3de8['map'](_0x2e38e4=>_0x2e38e4['getContainedElement']()),_0x51cc27=_0x34ce02[0x0]['findAncestor']('table'),{minRow:_0x40364a,maxRow:_0x41def5}=_0x9d51a5['_getCoordsForCells'](_0x34ce02);_0x3bbf7d['removeRows'](_0x51cc27,{'at':_0x40364a,'rows':_0x41def5-_0x40364a+0x1});}),_0x4ecc91['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x38f71e=>{const _0x4977b3=_0x38f71e['map'](_0x275bb3=>_0x275bb3['getContainedElement']()),_0x21f036=_0x4977b3[0x0]['findAncestor']('table'),{minColumn:_0x2fdbe4,maxColumn:_0x345c5c}=_0x9d51a5['_getCoordsForCells'](_0x4977b3);_0x3bbf7d['removeColumns'](_0x21f036,{'at':_0x2fdbe4,'columns':_0x345c5c-_0x2fdbe4+0x1});});const _0x2b5685=(_0x26e5e4,_0x4cdeec)=>{if(!_0x4cdeec['subType']||!_0x4cdeec['subType']['startsWith']('tablePaste'))return;const _0x169aaf=_0x4cdeec['attributes']['tablePasteChainId'],_0x2fbab6=_0x4ecc91['getSuggestions']()['filter'](_0x127121=>_0x127121['isInContent']&&_0x127121['attributes']&&_0x127121['attributes']['tablePasteChainId']==_0x169aaf);_0x2fbab6['length']&&_0x4cdeec['getAllAdjacentSuggestions']()['length']!=_0x2fbab6['length']&&_0x2fbab6['reduce']((_0x12f510,_0x139ecf)=>(_0x12f510['next']=_0x139ecf,_0x139ecf['previous']=_0x12f510,_0x139ecf));};function _0x12fcb1(_0x29954f,_0x2cfc13=!0x0){const {id:_0x5b0983,authorId:_0x20bf5d}=_0x4ecc91['_splitMarkerName'](_0x29954f['markerName']),_0x4db2da=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x453b38=_0x4ecc91['activeMarkers']['includes'](_0x29954f['markerName']);return _0x453b38&&_0x4db2da['push']('ck-suggestion-marker--active'),{'classes':_0x4db2da,'attributes':{'data-suggestion':_0x5b0983,'data-author-id':_0x20bf5d},'priority':_0x453b38&&_0x2cfc13?0xbc2:0xbb8};}_0x4ecc91['on']('suggestionLoaded',_0x2b5685,{'priority':'high'}),_0x4ecc91['on']('suggestionUnloaded',_0x2b5685,{'priority':'high'}),_0x26e371['model']['document']['registerPostFixer'](()=>{let _0x4eefa8=!0x1;const _0x6ad65e=Array['from'](_0x26e371['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x455234,data:_0x47c69f}of _0x6ad65e){const {group:_0x3ee1d4,type:_0x1c8624,id:_0x5ca142}=_0x4ecc91['_splitMarkerName'](_0x455234);if('suggestion'!=_0x3ee1d4||'deletion'!=_0x1c8624||_0x47c69f['oldRange'])continue;if(!_0x4ecc91['hasSuggestion'](_0x5ca142))continue;const _0x1ac3df=_0x4ecc91['getSuggestion'](_0x5ca142)['getRanges'](),_0x295d49=_0x26e371['plugins']['get']('Users')['me'];for(const _0x12cb11 of _0x4ecc91['getSuggestions']()){if(!_0x12cb11['isInContent']||_0x12cb11['author']!=_0x295d49)continue;if('formatBlock'!=_0x12cb11['type']||'tablePasteCell'!=_0x12cb11['subType'])continue;if(_0x12cb11['getRanges']()['every'](_0x486e9b=>_0x1ac3df['some'](_0xad6e02=>_0xad6e02['containsRange'](_0x486e9b,!0x0)))){for(const _0x3d86c8 of _0x12cb11['getAllAdjacentSuggestions']())_0x3d86c8['isInContent']&&(_0x3d86c8['discard'](),_0x4eefa8=!0x0);}}}return _0x4eefa8;}),_0x26e371['model']['document']['registerPostFixer'](_0x2a3dcd=>{const _0x5384c7=_0x26e371['commands']['get']('redo');if(!_0x5384c7||!_0x5384c7['_createdBatches']['has'](_0x2a3dcd['batch']))return!0x1;let _0x584c4c=!0x1;const _0x1e2672=_0x26e371['plugins']['get']('Users')['me'],_0x115498=_0x26e371['model']['document']['differ']['getChanges'](),_0x42d40b=Array['from'](_0x26e371['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b2964,data:_0x677026})=>{const {group:_0x480eb7,subType:_0x20e98a,authorId:_0x160c9a}=_0x4ecc91['_splitMarkerName'](_0x3b2964);return'suggestion'==_0x480eb7&&'tablePaste'==_0x20e98a&&_0x160c9a==_0x1e2672['id']&&!_0x677026['oldRange'];});for(const _0x5ac821 of _0x115498){if('insert'!=_0x5ac821['type']||'tableCellSuggestion'!=_0x5ac821['name']||0x1!=_0x5ac821['length'])continue;const _0xe6168a=_0x2a3dcd['createRange'](_0x5ac821['position'],_0x5ac821['position']['getShiftedBy'](0x1));if(!_0x42d40b['find'](({data:_0x36c05e})=>_0x36c05e['newRange']['isEqual'](_0xe6168a))){for(const {name:_0x19bcc1,data:_0x231b1e}of _0x42d40b)if(_0xe6168a['containsRange'](_0x231b1e['newRange'])){_0x2a3dcd['updateMarker'](_0x19bcc1,{'range':_0xe6168a}),_0x584c4c=!0x0;break;}}}return _0x584c4c;}),_0x26e371['model']['document']['registerPostFixer'](_0xa93f69=>{let _0xccca76=!0x1;const _0x497c5f=_0x26e371['plugins']['get']('Users')['me'],_0xf21f9d=_0x4ecc91['getSuggestions']()['filter'](_0x2165e0=>_0x2165e0['isInContent']&&_0x2165e0['author']==_0x497c5f),_0x383de7=new Set(),_0x10171c=new Set();for(const _0x27b312 of _0xf21f9d)if('tablePaste'==_0x27b312['subType'])for(const _0x279e88 of _0x27b312['getMarkers']()){const _0xd434bb=_0x279e88['getRange']()['getContainedElement']();if(_0xd434bb){if(_0xd434bb['is']('element','tableCellSuggestion')&&Be(_0xd434bb)){_0x27b312['removeMarker'](_0x279e88['name']),_0x383de7['add'](_0xd434bb),_0xccca76=!0x0;const _0x9d8d26=_0xd434bb['nextSibling'],_0x5713ac=_0xd434bb['previousSibling'],_0x21d704=_0x9d8d26&&_0x9d8d26['is']('element','tableCellSuggestion'),_0x3e8306=_0x5713ac&&_0x5713ac['is']('element','tableCellSuggestion');_0x21d704&&!_0x383de7['has'](_0x9d8d26)&&_0x10171c['add'](_0x9d8d26),_0x3e8306&&!_0x383de7['has'](_0x5713ac)&&_0x10171c['add'](_0x5713ac);}else _0xd434bb['is']('element','paragraph')&&_0xd434bb['isEmpty']&&(_0x27b312['removeMarker'](_0x279e88['name']),_0xccca76=!0x0);}}else{if('tablePasteCell'==_0x27b312['subType']){if(!_0x27b312['attributes']||!_0x27b312['attributes']['tablePasteChainId'])continue;const _0x139ebc=_0x27b312['attributes']['markerAttributes'];if(_0x139ebc&&Object['keys'](_0x139ebc)['length'])continue;const _0x91a8f3=_0x27b312['attributes']['tablePasteChainId'];let _0x11d78f=!0x0,_0x97adb8=!0x0;for(const _0x24c0c4 of _0xf21f9d)if(_0x24c0c4['subType']&&_0x24c0c4['subType']['startsWith']('tablePaste')){if(!_0x24c0c4['attributes']['tablePasteChainId']){_0x97adb8=!0x1;break;}if(_0x24c0c4['id']!=_0x27b312['id']&&_0x24c0c4['attributes']['tablePasteChainId']==_0x91a8f3){_0x11d78f=!0x1;break;}}_0x97adb8&&_0x11d78f&&(_0x27b312['removeMarkers'](),_0xccca76=!0x0);}}for(const _0x5f4c42 of _0x383de7)_0xa93f69['remove'](_0x5f4c42);for(const _0x568ef0 of _0x10171c)_0xa93f69['unwrap'](_0x568ef0);return _0xccca76;}),_0x26e371['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5ba4de=>_0x12fcb1(_0x5ba4de),'converterPriority':'high'}),_0x26e371['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3a1555,_0x3b2b1d)=>_0x3b2b1d['options']['showSuggestionHighlights']?_0x12fcb1(_0x3a1555,!0x1):null,'converterPriority':'high'});const _0x6263ea=_0x26e371['editing']['view'];this['listenTo'](_0x6263ea['document'],'clipboardOutput',(_0x532dc5,_0x356fbd)=>{const _0x10fedb=[];for(const _0x21f673 of _0x6263ea['createRangeIn'](_0x356fbd['content'])['getItems']())_0x21f673['is']('element','suggestion-td')&&_0x10fedb['push'](_0x21f673);_0x6263ea['change'](_0x559cfb=>{for(const _0x27d3fb of _0x10fedb)_0x559cfb['move'](_0x559cfb['createRangeIn'](_0x27d3fb),_0x559cfb['createPositionBefore'](_0x27d3fb)),_0x559cfb['remove'](_0x27d3fb);});});}}function Be(_0x2b7d20){if(_0x2b7d20['isEmpty'])return!0x0;const _0xf7ab4d=_0x2b7d20['getChild'](0x0);return _0xf7ab4d['is']('element','paragraph')&&_0xf7ab4d['isEmpty'];}function Oe(_0x34c0e1,_0x1485fc={},_0x450a95){for(const {isAnchor:_0x1947f3,cellHeight:_0x2e27f6,cellWidth:_0x232679}of _0x450a95['createTableWalker'](_0x34c0e1,{'includeAllSlots':!0x0,..._0x1485fc}))if(!_0x1947f3||0x1!=_0x2e27f6||0x1!=_0x232679)return!0x1;return!0x0;}class Rt extends _0x562758{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f466c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f466c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f466c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f466c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f466c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f466c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f466c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1c25dd,_0x1a3a8b){const _0x1cc03e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1eac2d=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xfbc6b3=_0x1a3a8b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4370d7=_0x1eac2d['getColumnGroupElement'](_0xfbc6b3);let _0x390cdb=_0x4370d7?_0x1eac2d['getTableColumnsWidths'](_0x4370d7):null,_0x1b65f8=_0xfbc6b3['getAttribute']('tableWidth')||null;const _0x227bed=_0x1a3a8b['tableWidth']||_0x1b65f8,_0x2bedec=_0x1a3a8b['columnWidths']||_0x390cdb,_0x101260=this['editor']['plugins']['get']('Users')['me'];for(const _0xd97376 of _0x1cc03e['getSuggestions']()){const _0x2a4827=_0xd97376['getContainedElement']();if('resizeTable'===_0xd97376['subType']&&_0x2a4827===_0xfbc6b3){_0xd97376['author']!==_0x101260&&_0xd97376['discard']();const _0x39db99=_0xd97376['data']['commandParams'];_0x1b65f8=_0x39db99[0x0]['tableWidth'],_0x390cdb=_0x39db99[0x0]['columnWidths'];break;}}_0x1c25dd({'table':_0xfbc6b3,'tableWidth':_0x227bed,'columnWidths':_0x2bedec}),_0x1cc03e['markBlockFormat'](_0xfbc6b3,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1b65f8,'columnWidths':_0x390cdb}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x22c488){if('formatBlock'!=_0x22c488['type']&&'formatInline'!=_0x22c488['type'])return;const {data:_0x39e697}=_0x22c488;if(_0x39e697&&'resizeTable'===_0x39e697['formatGroupId']){const _0x19490d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19490d)};}}}class Tt extends _0x562758{['afterInit'](){const _0x184a5d=this['editor'];_0x184a5d['plugins']['has']('Template')&&_0x184a5d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x562758{['afterInit'](){const _0x57bb77=this['editor'];if(!_0x57bb77['commands']['get']('insertTableOfContents'))return;_0x57bb77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4fa81f=_0x57bb77['plugins']['get']('TrackChangesEditing'),_0x16c531=_0x57bb77['locale'];_0x4fa81f['descriptionFactory']['registerElementLabel']('tableOfContents',_0x16f7d4=>o(_0x16c531,'ELEMENT_TABLE_OF_CONTENTS',_0x16f7d4));}}class Ut extends _0x562758{['afterInit'](){const _0x159078=this['editor'];if(!_0x159078['plugins']['has']('Title'))return;const _0x804276=_0x159078['plugins']['get']('TrackChangesEditing');_0x804276['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x159078['locale'],'ELEMENT_TITLE')),_0x159078['model']['document']['registerPostFixer'](_0x2a1059=>{let _0x33d661=!0x1;const _0x2d5777=Array['from'](_0x159078['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x170221,data:_0x2d511e}of _0x2d5777){const {group:_0xd9a7b4}=_0x804276['_splitMarkerName'](_0x170221);if('suggestion'!==_0xd9a7b4||!_0x2d511e['newRange'])continue;const _0x52b135=_0x2d511e['newRange'],_0x32aa33=_0x52b135['end']['nodeBefore'];if(!_0x32aa33||!_0x32aa33['is']('element','title-content'))continue;if(!_0x52b135['start']['isTouching'](_0x52b135['end']))continue;const _0x4bec8c=_0x159078['model']['schema']['getNearestSelectionRange'](_0x52b135['end'],'forward');if(_0x4bec8c&&_0x4bec8c['isCollapsed']){const _0x26208c=_0x2a1059['createRange'](_0x52b135['start'],_0x4bec8c['start']);_0x26208c['isEqual'](_0x52b135)||(_0x2a1059['updateMarker'](_0x170221,{'range':_0x26208c}),_0x33d661=!0x0);}_0x33d661||(_0x2a1059['removeMarker'](_0x170221),_0x33d661=!0x0);}return _0x33d661;});}}class Vt extends _0x562758{['afterInit'](){const _0x5955aa=this['editor'],_0x3d719f=_0x5955aa['plugins']['get']('TrackChangesEditing');_0x5955aa['plugins']['has']('Uploadcare')&&(_0x3d719f['enableCommand']('uploadcare'),_0x5955aa['plugins']['has']('UploadcareImageEdit')&&(_0x3d719f['enableCommand']('uploadcareImageEdit'),_0x3d719f['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d719f['descriptionFactory']['registerDescriptionCallback'](_0x452394=>{if('attribute'!=_0x452394['type'])return;const {data:_0x5d4d66}=_0x452394;return _0x5d4d66&&'uploadcareImageId'==_0x5d4d66['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x562758{['afterInit'](){const _0x3f3b22=this['editor'],_0x2d25c9=_0x3f3b22['plugins']['get']('TrackChangesEditing');_0x3f3b22['plugins']['has']('UndoEditing')&&(_0x2d25c9['enableCommand']('undo'),_0x2d25c9['enableCommand']('redo'));}}class Pt extends _0x562758{static get['requires'](){return[Dt];}['afterInit'](){const _0x2807be=this['editor'];if(!_0x2807be['plugins']['has']('TableCaptionEditing'))return;_0x2807be['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x562758{['tableProperties'];['tableCellProperties'];constructor(_0x3bb33c){super(_0x3bb33c),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x3bb33c['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5770eb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x531e76 of this['tableProperties'])_0x5770eb['enableCommand'](_0x531e76,(_0x35bb7a,_0x50c795)=>{const _0x152be0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x531e76,[_0x152be0],this['tableProperties'],'tableProperties',_0x35bb7a,_0x50c795);});_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5770eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1f96b4,_0x262bc)=>this['handleDiscardAction'](this['tableProperties'],_0x1f96b4,_0x262bc)),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x19e124 of this['tableCellProperties'])this['editor']['commands']['get'](_0x19e124)&&_0x5770eb['enableCommand'](_0x19e124,(_0x23da17,_0x49f1d0)=>{const _0x1d9ffd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x19e124,_0x1d9ffd,this['tableCellProperties'],'tableCellProperties',_0x23da17,_0x49f1d0);});_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5770eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3f7da3,_0x2f061)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3f7da3,_0x2f061)),_0x5770eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5770eb['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5770eb['descriptionFactory']['registerDescriptionCallback'](_0x2e971f=>this['handleSuggestionDescription'](_0x2e971f)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xe8bbf8,_0x34f229,_0x255671,_0xd0e98d,_0x4a3e9d,_0x3bbabc){const _0x660b1e=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bbabc['batch'],()=>{for(const _0x9440c5 of _0x34f229){if(this['_getSuggestion'](_0x9440c5,_0xd0e98d))_0x4a3e9d(_0x3bbabc);else{const _0x4e51cc={};for(const _0x107af2 of _0x255671){const _0x8d6e7c=_0x9440c5['getAttribute'](_0x107af2);void 0x0!==_0x8d6e7c&&(_0x4e51cc[_0x107af2]=_0x8d6e7c);}_0x4a3e9d(_0x3bbabc),_0x660b1e['markBlockFormat'](_0x9440c5,{'commandParams':[_0x4e51cc]},[],_0xd0e98d);}}});}['handleDiscardAction'](_0x59b96c,_0x1c597c,_0x1c653a){const _0x50132d=_0x1c597c[0x0]['start']['nodeAfter'],_0x50c203=_0x1c653a['commandParams'][0x0];this['editor']['model']['change'](_0x5c610f=>{for(const _0x5e5ef5 of _0x59b96c)void 0x0!==_0x50c203[_0x5e5ef5]?_0x5c610f['setAttribute'](_0x5e5ef5,_0x50c203[_0x5e5ef5],_0x50132d):_0x5c610f['removeAttribute'](_0x5e5ef5,_0x50132d);});}['handleSuggestionDescription'](_0xf06ff9){if(_0xf06ff9['data'])switch(_0xf06ff9['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x435f42,_0x17e3aa){const _0x583997=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x41504a of _0x583997['getSuggestions']({'skipNotAttached':!0x0})){const _0xbb829d=_0x41504a['getContainedElement']();if(_0x41504a['subType']===_0x17e3aa&&_0xbb829d===_0x435f42)return _0x41504a;}return null;}['_registerTablePropertiesAttributes'](){const _0x338c63=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13fad0=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x4785d4 of _0x13fad0){const _0x2f49ca=_0x4785d4['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x338c63['descriptionFactory']['registerAttributeLabel'](_0x4785d4,o(this['editor']['locale'],'FORMAT_'+_0x2f49ca));}}}class Lt extends _0x562758{['afterInit'](){const _0x16bcd1=this['editor'];if(!_0x16bcd1['plugins']['has']('LineHeight'))return;const _0x3497c0=_0x16bcd1['plugins']['get']('TrackChangesEditing'),_0x53a5b1=_0x16bcd1['locale'];_0x3497c0['enableDefaultAttributesIntegration']('lineHeight'),_0x3497c0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x53a5b1,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x562758{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x55e6d0,_0x3f15d1,_0x448de2,_0x18362e,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c1b22){super(_0x5c1b22),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x554f0c,_0x289dc9,_0x30e5eb,_0x325fdc)=>{this['_model']['change'](()=>{for(const _0x5a6aab of[..._0x325fdc,..._0x30e5eb])this['_model']['markers']['has'](_0x5a6aab)&&_0x5c1b22['editing']['reconvertMarker'](_0x5a6aab);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5c1b22['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x5c1b22['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5c1b22['config']['get']('trackChanges.trackFormatChanges'),_0x5c1b22['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5c1b22['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5c1b22,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x57ee37=this['editor'];_0x57ee37['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x57f187,{writer:_0x3ccffd})=>{let _0x2d14a8='suggestion:'+_0x57f187['getAttribute']('suggestion-type')+':'+_0x57f187['getAttribute']('id');return _0x57f187['getAttribute']('marker-count')&&(_0x2d14a8+=':'+_0x57f187['getAttribute']('marker-count')),_0x3ccffd['createElement']('$marker',{'data-name':_0x2d14a8});}}),_0x57ee37['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x57ee37['model']['document']['registerPostFixer'](_0x4a9942=>{let _0x3c116c=!0x1;const _0x48e4c1=Array['from'](_0x57ee37['model']['document']['differ']['getChangedMarkers']()),_0x4dd94d=new Set();for(const {name:_0x504a0c,data:_0x434d1a}of _0x48e4c1){const {group:_0xe098a9,type:_0x52b728,subType:_0x1dba43,id:_0x284599}=this['_splitMarkerName'](_0x504a0c);if('suggestion'!==_0xe098a9)continue;const _0x2dbcb6=_0x1dba43?'suggestion:'+_0x52b728+':'+_0x1dba43+':'+_0x284599:'suggestion:'+_0x52b728+':'+_0x284599,_0x6fdd1d=_0x57ee37['model']['markers']['getMarkersGroup'](_0x2dbcb6),_0x4e91e=_0x57ee37['model']['markers']['get'](_0x504a0c),_0x1a2f77=this['_suggestions']['get'](_0x284599);if(null!=_0x434d1a['newRange']){'formatInline'==_0x52b728&&(_0x3c116c=_0x3c116c||Wt(_0x434d1a['newRange'],_0x504a0c,_0x4a9942,_0x57ee37['model']['schema']));const _0x5c4b3c='attribute'==_0x52b728&&this['_isBlockAttribute'](_0x1dba43['split']('|')[0x0]),_0x54a175='attribute'==_0x52b728&&this['_isInlineAttribute'](_0x1dba43['split']('|')[0x0]);if(_0x434d1a['newRange']['isCollapsed']||'$graveyard'==_0x434d1a['newRange']['root']['rootName']||'formatBlock'==_0x52b728&&!Qt(_0x434d1a['newRange'])||_0x5c4b3c&&!Qt(_0x434d1a['newRange'])||_0x54a175&&Xt(_0x434d1a['newRange'])||'deletion'==_0x52b728&&Xt(_0x434d1a['newRange'])||_0x4e91e&&Yt(_0x4e91e,_0x6fdd1d))_0x4a9942['removeMarker'](_0x504a0c),_0x3c116c=!0x0;else{if(!_0x1a2f77||!_0x1a2f77['isInContent'])continue;if(_0x434d1a['newRange']&&_0x434d1a['oldRange']&&_0x434d1a['newRange']['isEqual'](_0x434d1a['oldRange']))continue;_0x4dd94d['add'](_0x1a2f77);}}}return _0x4dd94d['size']>0x0&&(_0x3c116c=!!this['_joinWithAdjacentSuggestions'](_0x4dd94d)||_0x3c116c),_0x3c116c;}),_0x57ee37['model']['document']['registerPostFixer'](_0x1db65c=>{let _0x5667d3=!0x1;for(const _0xf7dead of _0x57ee37['model']['document']['differ']['getChanges']())if('insert'==_0xf7dead['type'])for(const _0x55bfcb of this['_suggestions']['values']()){if(_0x55bfcb['isMultiRange']||!_0x55bfcb['isInContent'])continue;const _0xd1be5='formatBlock'==_0x55bfcb['type'],_0x54a2a9=this['_getAttributeKey'](_0x55bfcb),_0x34051e=_0x54a2a9&&this['_isBlockAttribute'](_0x54a2a9);if(!_0xd1be5&&!_0x34051e)continue;const _0x2119fa=_0x55bfcb['getFirstRange']();if(_0x2119fa['start']['parent']!=_0x2119fa['end']['parent']&&!_0x2119fa['end']['isAtEnd']){const _0x4d056b=_0x57ee37['model']['createPositionAt'](_0x2119fa['start']['nodeAfter'],'end'),_0x57e487=_0x57ee37['model']['createRange'](_0x2119fa['start'],_0x4d056b);_0x1db65c['updateMarker'](_0x55bfcb['getFirstMarker'](),{'range':_0x57e487}),_0x5667d3=!0x0;}}return _0x5667d3;}),_0x57ee37['model']['document']['registerPostFixer'](_0x56bb9a=>this['_processAttributeChanges'](_0x56bb9a)),_0x57ee37['model']['document']['registerPostFixer'](_0x34bc9b=>!_0x34bc9b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x34bc9b)),_0x57ee37['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x57ee37['model']['document']['on']('change:data',(_0x329824,_0x114752)=>{if(!_0x114752['isLocal']||_0x114752['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x594516=_0x57ee37['model']['document']['differ']['getChanges']();if(0x0==_0x594516['length'])return;const _0x21765c=[],_0x3e2d6a=_0x594516['filter'](_0x56bf8b=>'attribute'==_0x56bf8b['type']),_0x201656=_0x594516['filter'](_0x3da3b0=>'insert'==_0x3da3b0['type']&&'$text'!=_0x3da3b0['name']);for(const _0x5b1c69 of _0x3e2d6a)this['_isRegisteredAttribute'](_0x5b1c69['attributeKey'])&&_0x21765c['push']({'key':_0x5b1c69['attributeKey'],'newValue':_0x5b1c69['attributeNewValue'],'oldValue':_0x5b1c69['attributeOldValue'],'range':Zt(_0x5b1c69['range'],_0x57ee37['model'])});for(const _0x5a6cba of _0x201656){if('rename'!=_0x5a6cba['action']&&'refresh'!=_0x5a6cba['action'])continue;const _0x5ebf69=tn(_0x5a6cba['position']['nodeAfter'],_0x57ee37['model']),_0x2ad3de=_0x5a6cba['before'];'rename'==_0x5a6cba['action']&&_0x21765c['push']({'key':m,'newValue':_0x5a6cba['name'],'oldValue':_0x2ad3de['name'],'range':_0x5ebf69});for(const [_0x2c1ade,_0x3591f4]of _0x2ad3de['attributes']){if(!this['_isRegisteredAttribute'](_0x2c1ade))continue;const _0x5c21b0=_0x5a6cba['attributes']['get'](_0x2c1ade);_0x3591f4!==_0x5c21b0&&_0x21765c['push']({'key':_0x2c1ade,'newValue':_0x5c21b0,'oldValue':_0x3591f4,'range':_0x5ebf69});}for(const [_0x52d095,_0x3d02e6]of _0x5a6cba['attributes'])this['_isRegisteredAttribute'](_0x52d095)&&(_0x2ad3de['attributes']['has'](_0x52d095)||_0x21765c['push']({'key':_0x52d095,'newValue':_0x3d02e6,'oldValue':null,'range':_0x5ebf69}));}0x0!=_0x21765c['length']&&_0x57ee37['model']['enqueueChange'](_0x114752,_0x4c4737=>{const _0x318062=_0x341aab();for(const {range:_0x23219f,key:_0x34ace5,oldValue:_0x3093a5,newValue:_0x5c0fe9}of _0x21765c)this['markAttributeChange'](_0x23219f,_0x34ace5,_0x3093a5,_0x5c0fe9,{'groupId':_0x318062});this['_reduceExistingSuggestions'](_0x4c4737,_0x21765c);});},{'priority':'lowest'}),_0x57ee37['model']['markers']['on']('update:suggestion',(_0x4f1187,_0xe22aa1,_0x17fae7)=>{if(null==_0x17fae7){const {id:_0xa12c48}=this['_splitMarkerName'](_0xe22aa1['name']),_0x45f995=this['_suggestions']['get'](_0xa12c48);_0x45f995&&_0x45f995['addMarkerName'](_0xe22aa1['name']);}}),_0x57ee37['model']['document']['on']('change:data',()=>{const _0x29475b=Array['from'](_0x57ee37['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20e485=>'suggestion'===this['_splitMarkerName'](_0x20e485['name'])['group']);if(0x0===_0x29475b['length'])return;_0x29475b['sort']((_0x23b01f,_0x4414ee)=>{const _0x1931e1=_0x23b01f['data']['oldRange'],_0x386943=_0x4414ee['data']['oldRange'];return null===_0x1931e1&&null===_0x386943?0x0:null===_0x1931e1&&null!==_0x386943?-0x1:null!==_0x1931e1&&null===_0x386943?0x1:_0x1931e1['start']['isBefore'](_0x386943['start'])?-0x1:0x1;});const _0x12f8f8=new Set(),_0x4915d5=new Set();for(const {name:_0x11eaaa,data:_0x5dbed0}of _0x29475b){const {id:_0x1eb763}=this['_splitMarkerName'](_0x11eaaa);if(null===_0x5dbed0['oldRange']){const _0x56cb48=this['_handleNewSuggestionMarker'](_0x11eaaa);_0x4915d5['add'](_0x56cb48);}else{const _0x1ad181=this['_suggestions']['get'](_0x1eb763);null!==_0x5dbed0['newRange']||_0x1ad181['isInContent']?(_0x12f8f8['add'](_0x1ad181['head']),_0x4915d5['add'](_0x1ad181)):this['_removeSuggestion'](_0x1ad181);}}_0x4915d5['size']>0x0&&this['_refreshSuggestionsChain'](_0x4915d5);for(const _0x454343 of _0x12f8f8)this['fire']('suggestionChanged',_0x454343);}),_0x57ee37['model']['on']('applyOperation',(_0x3bf506,_0x46e2c9)=>{const _0x24c0b0=_0x46e2c9[0x0];if(!this['_suggestions']['size'])return;if(!_0x24c0b0['isDocumentOperation'])return;if(_0x24c0b0['batch']['isUndo']||!_0x24c0b0['batch']['isLocal'])return;let _0x110308,_0x5197e1;switch(_0x24c0b0['type']){case'insert':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['position']),_0x5197e1=_0x110308['getShiftedBy'](_0x24c0b0['howMany']);break;case'split':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['splitPosition']),_0x5197e1=_0x57ee37['model']['createPositionAt'](_0x24c0b0['moveTargetPosition']);break;case'move':_0x110308=_0x57ee37['model']['createPositionAt'](_0x24c0b0['targetPosition']),_0x5197e1=_0x110308['getShiftedBy'](_0x24c0b0['howMany']);break;default:return;}const _0x14bfd9=_0x57ee37['model']['createRange'](_0x110308,_0x5197e1);_0x57ee37['model']['change'](()=>{for(const {suggestion:_0x3a2abc,meta:_0x3c3800}of this['_findSuggestions'](_0x14bfd9)){if(_0x3a2abc['isMultiRange'])continue;if('formatInline'==_0x3a2abc['type'])continue;const _0x52bba9=this['_getAttributeKey'](_0x3a2abc);if(_0x52bba9&&this['_isBlockAttribute'](_0x52bba9)&&'split'!=_0x24c0b0['type'])continue;const _0x43edd9=_0x3a2abc['data']&&_0x3a2abc['data']['multipleBlocks'];('formatBlock'!=_0x3a2abc['type']||'split'==_0x24c0b0['type']&&!_0x43edd9)&&(_0x3c3800['containsRangeInObject']||'insertion'==_0x3a2abc['type']&&_0x3c3800['isOwn']||_0x3a2abc['getFirstRange']()['containsRange'](_0x14bfd9)&&this['_breakSuggestionMarker'](_0x3a2abc,_0x110308,_0x5197e1));}});},{'priority':'lowest'}),_0x57ee37['model']['on']('deleteContent',(_0x283b7b,_0x4f1161)=>{const _0x4d7b68=_0x4f1161[0x0],_0x46d988=_0x4f1161[0x1];if(_0x46d988&&_0x46d988['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4d7b68['isCollapsed'])return;const _0x4087fa=_0x57ee37['model']['schema'],{start:_0x35a1ad,end:_0x37124e}=_0x4d7b68['getFirstRange'](),_0x2264c4=_0x35a1ad['nodeAfter']&&_0x4087fa['isLimit'](_0x35a1ad['nodeAfter'])?null:_0x4087fa['getNearestSelectionRange'](_0x35a1ad,'forward'),_0x52e07b=_0x37124e['nodeBefore']&&_0x4087fa['isLimit'](_0x37124e['nodeBefore'])?null:_0x4087fa['getNearestSelectionRange'](_0x37124e,'backward'),_0x2d6604=_0x57ee37['model']['createRange'](_0x2264c4?_0x2264c4['start']:_0x35a1ad,_0x52e07b?_0x52e07b['end']:_0x37124e);_0x57ee37['model']['change'](_0x2ce9a3=>{this['markDeletion'](_0x2d6604);const _0x47f6f0=_0x57ee37['model']['schema']['getNearestSelectionRange'](_0x2d6604['start']);_0x4d7b68['is']('documentSelection')?_0x2ce9a3['setSelection'](_0x47f6f0):_0x4d7b68['setTo'](_0x47f6f0);}),_0x283b7b['stop']();},{'priority':_0x30da9e['normal']+0xa}),_0x57ee37['model']['on']('insertContent',(_0xb4271e,_0x5686ae)=>{const _0x3f8f8c=_0x5686ae[_0x5686ae['length']-0x1];_0x3f8f8c&&_0x3f8f8c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x57ee37['model']['change'](()=>{let _0x2c8439=_0x57ee37['model']['insertContent'](_0x5686ae[0x0],_0x5686ae[0x1],_0x5686ae[0x2],{'forceDefaultExecution':!0x0});if(!_0x2c8439)return;_0xb4271e['return']=_0x2c8439['clone']();const _0x595d7b=_0x2c8439['end']['nodeBefore'],_0x5398e0=_0x57ee37['model']['schema'];_0x595d7b&&_0x5398e0['isBlock'](_0x595d7b)&&!_0x5398e0['isObject'](_0x595d7b)&&(_0x2c8439=_0x57ee37['model']['createRange'](_0x2c8439['start'],_0x57ee37['model']['createPositionAt'](_0x595d7b,'end'))),this['markInsertion'](_0x2c8439);}),_0xb4271e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x343dd9=new O(_0x57ee37,this['_suggestions']);_0x57ee37['commands']['add']('acceptSuggestion',_0x343dd9),this['enableCommand']('acceptSuggestion');const _0x4f0021=new x(_0x57ee37,this['_suggestions']);_0x57ee37['commands']['add']('discardSuggestion',_0x4f0021),this['enableCommand']('discardSuggestion'),_0x57ee37['commands']['add']('acceptAllSuggestions',new M(_0x57ee37,_0x343dd9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x57ee37['commands']['add']('discardAllSuggestions',new M(_0x57ee37,_0x4f0021,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x57ee37['commands']['add']('acceptSelectedSuggestions',new R(_0x57ee37,_0x343dd9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x57ee37['commands']['add']('discardSelectedSuggestions',new R(_0x57ee37,_0x4f0021,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5e11cf=_0x57ee37['plugins']['get']('CommentsRepository');this['listenTo'](_0x5e11cf,'addComment',(_0x556e75,{threadId:_0x31a2c4})=>{const _0x274216=this['_suggestions']['get'](_0x31a2c4);_0x274216&&_0x274216['commentThread']&&0x1===_0x274216['commentThread']['length']&&this['_updateSuggestionData'](_0x31a2c4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5e11cf,'removeComment',(_0x5a5398,{threadId:_0x2554bd})=>{const _0x3a6a50=this['_suggestions']['get'](_0x2554bd);_0x3a6a50&&_0x3a6a50['commentThread']&&!_0x3a6a50['commentThread']['length']&&this['_updateSuggestionData'](_0x2554bd,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5d18){const _0x2d3e1c=_0x565d1d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x4afc61=0x3d8d0df,_0x59a93c=0x3df53bf^_0x4afc61,_0x5781d8=window[_0x565d1d([0x44,0x61,0x74,0x65])][_0x565d1d([0x6e,0x6f,0x77])](),_0x1beec3=_0x2e5d18[_0x565d1d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a46c1=new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234db7=>{_0x1beec3[_0x565d1d([0x6f,0x6e,0x63,0x65])](_0x565d1d([0x72,0x65,0x61,0x64,0x79]),_0x234db7);}),_0x3ee539={[_0x565d1d([0x6b,0x74,0x79])]:_0x565d1d([0x45,0x43]),[_0x565d1d([0x75,0x73,0x65])]:_0x565d1d([0x73,0x69,0x67]),[_0x565d1d([0x63,0x72,0x76])]:_0x565d1d([0x50,0x2d,0x32,0x35,0x36]),[_0x565d1d([0x78])]:_0x565d1d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x565d1d([0x79])]:_0x565d1d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x565d1d([0x61,0x6c,0x67])]:_0x565d1d([0x45,0x53,0x32,0x35,0x36])},_0x41363c=_0x1beec3[_0x565d1d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x565d1d([0x67,0x65,0x74])](_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a9b89(){let _0x1c63c9,_0x26d082=null,_0x135693=null;try{if(_0x41363c==_0x565d1d([0x47,0x50,0x4c]))return _0x565d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c63c9=_0x107254(),!_0x1c63c9)return _0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c63c9[_0x565d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x135693=_0x53ff1c(_0x1c63c9[_0x565d1d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c63c9[_0x565d1d([0x6a,0x74,0x69])])),await _0x4bd8ae()?_0xfc4d17()?_0x9f3823()?_0x565d1d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x38a4fe()?(_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x565d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26d082=_0x55d7b5(_0x565d1d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x438448()):_0x565d1d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x565d1d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x565d1d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x9f3823(){const _0x4027dd=[_0x565d1d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x565d1d([0x74,0x72,0x69,0x61,0x6c])][_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5781d8/0x3e8:0xe10*_0x59a93c;return _0x1c63c9[_0x565d1d([0x65,0x78,0x70])]<_0x4027dd;}function _0xfc4d17(){const _0xf0726b=_0x1c63c9[_0x565d1d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf0726b)return!0x1;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x2a])))return!0x0;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x54,0x43])))return!0x0;if(_0xf0726b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x52,0x54,0x43]))){if(_0x3a6bad())return!0x0;if(_0x2ba800()||_0x1d8778())return!0x0;}return!0x1;}function _0x38a4fe(){const _0x22d360=_0x1c63c9[_0x565d1d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x22d360||0x0==_0x22d360[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x400356}=new URL(window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x22d360[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x400356))return!0x0;const _0x897e8d=_0x400356[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e]));return _0x22d360[_0x565d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x297c2b=>_0x297c2b[_0x565d1d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x565d1d([0x2a])))[_0x565d1d([0x6d,0x61,0x70])](_0x546791=>_0x546791[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e])))[_0x565d1d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x31f4c6=>_0x31f4c6[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x897e8d[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x565d1d([0x6d,0x61,0x70])](_0x28ab25=>Array(_0x897e8d[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x28ab25[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x565d1d([0x66,0x69,0x6c,0x6c])](_0x28ab25[0x0]===_0x565d1d([0x2a])?_0x565d1d([0x2a]):'')[_0x565d1d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x28ab25))[_0x565d1d([0x73,0x6f,0x6d,0x65])](_0xc94a33=>_0x897e8d[_0x565d1d([0x65,0x76,0x65,0x72,0x79])]((_0x59340c,_0x260cd3)=>_0xc94a33[_0x260cd3]===_0x59340c||_0xc94a33[_0x260cd3]===_0x565d1d([0x2a])));}function _0x438448(){return _0x26d082&&_0x135693?new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17ff25,_0x487391)=>{_0x26d082[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x17ff25,_0x487391),_0x135693[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x42ec79=>{_0x42ec79!=_0x565d1d([0x56,0x61,0x6c,0x69,0x64])&&_0x17ff25(_0x42ec79);},_0x487391);}):_0x26d082||_0x135693||_0x565d1d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x53ff1c(_0x17de72,_0x1651ca){return new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3e3c16=>{if(_0x348bd7())return _0x3e3c16(_0x565d1d([0x56,0x61,0x6c,0x69,0x64]));_0x46ba75(),_0x1beec3[_0x565d1d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2007dc=!0x1;const _0x1de9e2=_0x341aab();function _0x5c531e(_0x11d630){return!!_0x11d630&&(typeof _0x11d630===_0x565d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x11d630===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x11d630[_0x565d1d([0x74,0x68,0x65,0x6e])]===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x11d630[_0x565d1d([0x63,0x61,0x74,0x63,0x68])]===_0x565d1d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35cd3d(_0x50357a){_0x283145(_0x50357a)[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x4bd6dc=>{if(!_0x4bd6dc||_0x4bd6dc[_0x565d1d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x565d1d([0x6f,0x6b]))return _0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x562711(_0x4f5172(_0x1de9e2+_0x1651ca))!=_0x4bd6dc[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x565d1d([0x56,0x61,0x6c,0x69,0x64]);})[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x30d9dd=>(_0x31956b(),_0x30d9dd),()=>{const _0x5da8f3=_0x2b118e();return null==_0x5da8f3?(_0x31956b(),_0x565d1d([0x56,0x61,0x6c,0x69,0x64])):_0x565d1d(_0x5781d8-_0x5da8f3>(0x27d454df^_0x4afc61)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x3e3c16)[_0x565d1d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x201a00=0x3ee3e5f^_0x4afc61;function _0x31956b(){const _0x26b006=_0x565d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x562711(_0x4f5172(_0x17de72)),_0x1c84eb=_0x1ec487(_0x562711(window[_0x565d1d([0x4d,0x61,0x74,0x68])][_0x565d1d([0x63,0x65,0x69,0x6c])](_0x5781d8/_0x201a00)));window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x565d1d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26b006,_0x1c84eb);}function _0x2b118e(){const _0x30b53c=_0x565d1d([0x6c,0x6c,0x63,0x74,0x2d])+_0x562711(_0x4f5172(_0x17de72)),_0x8b5b85=window[_0x565d1d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x565d1d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30b53c);return _0x8b5b85?window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ec487(_0x8b5b85),0x10)*_0x201a00:null;}function _0x283145(_0x1f77c1){return new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b4644,_0xbd47b0)=>{_0x1f77c1[_0x565d1d([0x74,0x68,0x65,0x6e])](_0x5b4644,_0xbd47b0),window[_0x565d1d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xbd47b0,0x3d9041f^_0x4afc61);});}}_0x1beec3[_0x565d1d([0x6f,0x6e])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x7afb77,_0x33349b)=>{if(_0x33349b[0x0]!=_0x17de72)return _0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x33349b[0x1]={..._0x33349b[0x1],[_0x565d1d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1de9e2};},{[_0x565d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x565d1d([0x68,0x69,0x67,0x68])}),_0x1beec3[_0x565d1d([0x6f,0x6e])](_0x565d1d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x48adf9=>{_0x5c531e(_0x48adf9[_0x565d1d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2007dc=!0x0,_0x35cd3d(_0x48adf9[_0x565d1d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x565d1d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x565d1d([0x6c,0x6f,0x77])}),_0x3a46c1[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>{_0x2007dc||_0x3e3c16(_0x565d1d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x348bd7(){return _0x1beec3[_0x565d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x565d1d([0x76,0x69,0x65,0x77])][_0x565d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x565d1d([0x61,0x75,0x74,0x6f]);}function _0x46ba75(){_0x1beec3[_0x565d1d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x565d1d([0x76,0x69,0x65,0x77])][_0x565d1d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x565d1d([0x61,0x75,0x74,0x6f]);}}function _0x55d7b5(_0x8aac64){const _0x421eac=[new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9d1503=>setTimeout(_0x9d1503,0x3d1ee13^_0x4afc61)),_0x3a46c1[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57d40c=>{let _0x535a33=0x0;_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x6f,0x6e])](_0x565d1d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2db37f,_0x551e85)=>{_0x551e85[0x0][_0x565d1d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x535a33++,_0x535a33==(0x3d8d537^_0x4afc61)&&(_0x57d40c(),_0x2db37f[_0x565d1d([0x6f,0x66,0x66])]());});}))];return window[_0x565d1d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x565d1d([0x72,0x61,0x63,0x65])](_0x421eac)[_0x565d1d([0x74,0x68,0x65,0x6e])](()=>_0x8aac64);}async function _0xe37a5e(){await _0x3a46c1,_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xa1f32e,_0x1beec3[_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c])][_0x565d1d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xa1f32e,_0x1beec3[_0x565d1d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x565d1d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a6bad(){return _0x8e4e37(_0x565d1d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4fd8f6(_0x565d1d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x565d1d([0x73,0x74,0x61,0x74,0x65])]==_0x565d1d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2ba800(){return _0x8e4e37(_0x565d1d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x1d8778(){return _0x8e4e37(_0x565d1d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x43e31f(_0x4026c9){const _0x367e19=_0x793788();_0x1beec3[_0x367e19]=_0x565d1d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4026c9,_0x4026c9!=_0x565d1d([0x56,0x61,0x6c,0x69,0x64])&&_0xe37a5e();}function _0x793788(){const _0x59fb27=window[_0x565d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x565d1d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x565d1d([0x6e,0x6f,0x77])]())[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x565d1d([0x2e]),'');let _0x4a7e3e=_0x565d1d([0x52]);for(let _0x31738a=0x0;_0x31738a<_0x59fb27[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31738a+=0x2){let _0x12e7c7=window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x59fb27[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31738a,_0x31738a+0x2));_0x12e7c7>=_0x2d3e1c[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x12e7c7-=_0x2d3e1c[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a7e3e+=_0x2d3e1c[_0x12e7c7];}return _0x4a7e3e;}function _0x107254(){const _0xd2279f=_0x41363c[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e]));if(0x3!=_0xd2279f[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x57c4eb(_0xd2279f[0x1]);function _0x57c4eb(_0x16bca2){const _0xbaf057=_0x3117c4(_0x16bca2);return _0xbaf057&&_0x3ec6b6()?_0xbaf057:null;function _0x3ec6b6(){const _0x289253=_0xbaf057[_0x565d1d([0x6a,0x74,0x69])],_0x123c29=window[_0x565d1d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x289253[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x289253[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36a54a={..._0xbaf057,[_0x565d1d([0x6a,0x74,0x69])]:_0x289253[_0x565d1d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x289253[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36a54a[_0x565d1d([0x76,0x63])],_0x4f5172(_0x36a54a)==_0x123c29;}}}async function _0x4bd8ae(){let _0x4ec12a=!0x0;try{const _0x3f6bbc=_0x41363c[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])](_0x565d1d([0x2e])),[_0x38bbbf,_0x3f9e22,_0x47e5b2]=_0x3f6bbc;return _0x6876a0(_0x38bbbf),await _0x4713dc(_0x38bbbf,_0x3f9e22,_0x47e5b2),_0x4ec12a;}catch{return!0x1;}function _0x6876a0(_0x77363f){const _0x3fb9d5=_0x3117c4(_0x77363f);_0x3fb9d5&&_0x3fb9d5[_0x565d1d([0x61,0x6c,0x67])]==_0x565d1d([0x45,0x53,0x32,0x35,0x36])||(_0x4ec12a=!0x1);}async function _0x4713dc(_0x2eac33,_0x46a641,_0x366c4c){const _0x100fa1=window[_0x565d1d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x565d1d([0x66,0x72,0x6f,0x6d])](_0x38955b(_0x366c4c),_0x913a11=>_0x913a11[_0x565d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1aa565=new window[(_0x565d1d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x565d1d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2eac33+_0x565d1d([0x2e])+_0x46a641),_0x36d27b=window[_0x565d1d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x565d1d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x36d27b)return;const _0xe94921=await _0x36d27b[_0x565d1d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x565d1d([0x6a,0x77,0x6b]),_0x3ee539,{[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x45,0x43,0x44,0x53,0x41]),[_0x565d1d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x565d1d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x36d27b[_0x565d1d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x45,0x43,0x44,0x53,0x41]),[_0x565d1d([0x68,0x61,0x73,0x68])]:{[_0x565d1d([0x6e,0x61,0x6d,0x65])]:_0x565d1d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe94921,_0x100fa1,_0x1aa565)||(_0x4ec12a=!0x1);}}function _0x3117c4(_0x2c8725){return _0x2c8725[_0x565d1d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x565d1d([0x65,0x79]))?JSON[_0x565d1d([0x70,0x61,0x72,0x73,0x65])](_0x38955b(_0x2c8725)):null;}function _0x38955b(_0x13daa4){return window[_0x565d1d([0x61,0x74,0x6f,0x62])](_0x13daa4[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x565d1d([0x2b]))[_0x565d1d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x565d1d([0x2f])));}function _0x4f5172(_0xa87588){let _0x2ababe=0x1505;function _0x3ad838(_0x4cdd0a){for(let _0x23a73d=0x0;_0x23a73d<_0x4cdd0a[_0x565d1d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23a73d++){const _0x333f0c=_0x4cdd0a[_0x565d1d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23a73d);_0x2ababe=(_0x2ababe<<0x5)+_0x2ababe+_0x333f0c,_0x2ababe&=_0x2ababe;}}function _0x307f85(_0x542158){Array[_0x565d1d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542158)?_0x542158[_0x565d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x307f85):_0x542158&&typeof _0x542158==_0x565d1d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x565d1d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542158)[_0x565d1d([0x73,0x6f,0x72,0x74])]()[_0x565d1d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c1206,_0x4486ba])=>{_0x3ad838(_0x2c1206),_0x307f85(_0x4486ba);}):_0x3ad838(window[_0x565d1d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542158));}return _0x307f85(_0xa87588),_0x2ababe>>>0x0;}function _0x562711(_0x509e29){return _0x509e29[_0x565d1d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x565d1d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x565d1d([0x30]));}function _0x1ec487(_0x3a0032){return _0x3a0032[_0x565d1d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x565d1d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x565d1d([0x6a,0x6f,0x69,0x6e])]('');}function _0x8e4e37(_0x316445){return _0x1beec3[_0x565d1d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x565d1d([0x68,0x61,0x73])](_0x316445);}function _0x4fd8f6(_0x331f8f){return _0x1beec3[_0x565d1d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x565d1d([0x67,0x65,0x74])](_0x331f8f);}function _0xa1f32e(){}function _0x565d1d(_0x43cdcb){return _0x43cdcb['map'](_0x35c069=>String['fromCharCode'](_0x35c069))['join']('');}_0x43e31f(await _0x4a9b89());}(this);}set['adapter'](_0x38971b){if(this['_adapter'])throw new _0x2ea645('track-changes-adapter-already-set',this);this['_adapter']=_0x38971b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1f6f20=!0x1,toJSON:_0x4357a3=!0x1}={}){const _0x21d2aa=[];for(const _0xe3663 of this['_suggestions']['values']())_0x1f6f20&&!_0xe3663['isInContent']||_0x21d2aa['push'](_0xe3663);return _0x4357a3?_0x21d2aa['map'](_0x19c58f=>_0x19c58f['toJSON']()):_0x21d2aa;}['getSuggestion'](_0x42449){const _0x3ce52b=this['_suggestions']['get'](_0x42449);if(!_0x3ce52b)throw new _0x2ea645('track-changes-suggestion-not-found',this);return _0x3ce52b;}['hasSuggestion'](_0x343e28){return this['_suggestions']['has'](_0x343e28);}['addSuggestionData'](_0x460726){const {authorId:_0x49eb94,id:_0x2fa084,originalSuggestionId:_0x555ba6,attributes:_0x52d12a}=_0x460726,[_0x246743,_0x479848]=_0x460726['type']['split'](':'),_0x3a8503=this['_suggestions']['get'](_0x2fa084)||this['_createSuggestion'](_0x246743,_0x479848,_0x2fa084,_0x49eb94,_0x52d12a,_0x555ba6);if(this['_addThreadToSuggestion'](_0x3a8503),this['_checkSuggestionCorrectness'](_0x3a8503,_0x246743,_0x479848||null,_0x49eb94),_0x3a8503['createdAt']=_0x460726['createdAt'],_0x3a8503['_isDataLoaded']=!0x0,_0x52d12a&&_0x52d12a['@external']){const _0x53ca97=_0x52d12a['@external'],_0x15b3e8=this['_getExternalAuthor'](_0x53ca97['authorName']);_0x3a8503['authoredAt']=_0x53ca97['createdAt'],_0x3a8503['author']=_0x15b3e8,_0x3a8503['isExternal']=!0x0;}else _0x3a8503['authoredAt']=_0x460726['createdAt'];switch(_0x460726['data']&&(_0x3a8503['data']=_0x460726['data']),_0x460726['attributes']&&(_0x3a8503['attributes']=_0x460726['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a8503['_saved']=!0x0),this['_suggestionState']['get'](_0x3a8503)){case'notReady':this['_suggestionState']['set'](_0x3a8503,'dataReady');break;case'markerReady':_0x3a8503['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a8503])),this['_refreshSuggestionsChain'](new Set([_0x3a8503])),this['_suggestionState']['set'](_0x3a8503,'ready'),this['fire']('suggestionLoaded',_0x3a8503)):this['_suggestionState']['set'](_0x3a8503,'removed');}return _0x3a8503;}['acceptSuggestion'](_0x354af6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2f1639 of _0x354af6['getAllAdjacentSuggestions']())_0x2f1639['accept']();});});}['discardSuggestion'](_0x23cffc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55d624 of _0x23cffc['getAllAdjacentSuggestions']())_0x55d624['discard']();});});}['enableCommand'](_0x8c1abf,_0x5ec58f){const _0x453f57=this['editor']['commands']['get'](_0x8c1abf);if(!_0x453f57)throw new _0x2ea645('track-changes-command-not-found',this,{'commandName':_0x8c1abf});if(this['_enabledCommands']['has'](_0x453f57))throw new _0x2ea645('track-changes-enable-command-twice',this,{'commandName':_0x8c1abf});this['_enabledCommands']['add'](_0x453f57),_0x5ec58f&&_0x453f57['on']('execute',(_0x276249,_0x37efe4)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x37efe4['length']>0x0&&_0x37efe4[_0x37efe4['length']-0x1]&&_0x37efe4[_0x37efe4['length']-0x1]['forceDefaultExecution']?_0x37efe4['pop']():(_0x276249['return']=_0x5ec58f((..._0x29fc4a)=>_0x453f57['execute'](..._0x29fc4a,{'forceDefaultExecution':!0x0}),..._0x37efe4),_0x276249['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2cb063){let _0x46fcbc,_0x44be02;const _0x501464=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x46fcbc=_0x2cb063();}catch(_0x5eda43){_0x44be02=_0x5eda43;}return _0x501464||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x44be02&&_0x2ea645['rethrowUnexpectedError'](_0x44be02,this),_0x46fcbc;}['markInsertion'](_0x613a13,_0x37d83c=null,_0x32c19c={}){if(_0x613a13['isCollapsed'])return null;const _0x515574=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x32c19c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f9990,meta:_0x5d4219}of this['_findSuggestions'](_0x613a13,'insertion'))if(_0x5d4219['isOwn']){if(!_0x5d4219['isNextTo']){if(_0x5d4219['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x4f9990,_0x32c19c))continue;return _0x4f9990;}if(sn(_0x4f9990,_0x32c19c))return _0x4f9990;this['_breakSuggestionMarker'](_0x4f9990,_0x613a13['start'],_0x613a13['end']);break;}if(_0x37d83c==_0x4f9990['subType']&&sn(_0x4f9990,_0x32c19c)){const _0x282d1f=_0x4f9990['getFirstRange']();return _0x282d1f['start']['isEqual'](_0x613a13['end'])?this['_setSuggestionRange'](_0x4f9990,this['_model']['createRange'](_0x613a13['start'],_0x282d1f['end'])):this['_setSuggestionRange'](_0x4f9990,this['_model']['createRange'](_0x282d1f['start'],_0x613a13['end'])),_0x4f9990;}}const _0x255360=_0x341aab(),_0x4df5b1=_0x515574['id'],_0x50b877=_0x37d83c?'insertion:'+_0x37d83c:'insertion',_0xd8024e=this['_setSuggestionData']({'id':_0x255360,'type':_0x50b877,'createdAt':new Date(),'authorId':_0x4df5b1,'attributes':_0x32c19c});return this['_addSuggestionMarker'](_0x50b877,_0x255360,_0x4df5b1,_0x613a13),_0xd8024e;}['markMultiRangeInsertion'](_0x4ae9aa,_0x2d223c='multi',_0x14bdc5={}){const _0x2b0094=this['editor']['plugins']['get']('Users')['me'],_0x1bd2e0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2d223c,'join');this['_trackingSessionId']&&(_0x14bdc5['trackingSessionId']=this['_trackingSessionId']);for(const _0x204179 of this['getSuggestions']())if(_0x204179['author']['id']==_0x2b0094['id']&&'insertion'==_0x204179['type']&&_0x204179['subType']==_0x2d223c&&sn(_0x204179,_0x14bdc5)&&(_0x1bd2e0(_0x204179['getRanges'](),_0x4ae9aa)||_0x1bd2e0(_0x4ae9aa,_0x204179['getRanges']()))){for(const _0x59a8f0 of _0x4ae9aa)_0x204179['addRange'](_0x59a8f0);return _0x204179;}for(const {suggestion:_0x269c2a,meta:_0x55879b}of this['_findSuggestions'](_0x4ae9aa,'insertion')){if(!_0x55879b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x55879b['containsRangeInObject'])continue;if(!sn(_0x269c2a,_0x14bdc5))continue;let _0x96e7f1=!0x0;for(const _0x65f210 of _0x269c2a['getRanges']())for(const _0x29cf28 of _0x4ae9aa)if(!_0x65f210['containsRange'](_0x29cf28)){_0x96e7f1=!0x1;break;}if(_0x96e7f1)return _0x269c2a;}const _0x10cae9=_0x341aab(),_0x1d0185=_0x2b0094['id'],_0x54ab30='insertion:'+_0x2d223c,_0x30922f=this['_setSuggestionData']({'id':_0x10cae9,'type':_0x54ab30,'createdAt':new Date(),'authorId':_0x1d0185,'attributes':_0x14bdc5});for(const _0x5dada5 of _0x4ae9aa)this['_addSuggestionMarker'](_0x54ab30,_0x10cae9,_0x1d0185,_0x5dada5,T['getMultiRangeId']());return _0x30922f;}['markInlineFormat'](_0x44eabd,_0x57daf2,_0x49e616=null,_0x1657d0={}){if(_0x49e616=_0x49e616||Ht(_0x57daf2),_0x44eabd['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1657d0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4f26f4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49e616,'accept');return this['forceDefaultExecution'](()=>_0x4f26f4([_0x44eabd],_0x57daf2,_0x1657d0)),null;}const _0x17e36d=this['editor']['plugins']['get']('Users')['me'],_0x327d26=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2d2003,meta:_0x52c19a}of this['_findSuggestions'](_0x44eabd,'insertion'))_0x52c19a['isOwn']&&!_0x52c19a['isInsideObject']&&_0x327d26['push'](..._0x2d2003['getRanges']());}const _0x33804f=function(_0xbd1a4b,_0x5808c8){const _0x8e7f2=[];for(const _0x5de33a of _0x5808c8){const _0x4a11fb=_0xbd1a4b['getIntersection'](_0x5de33a);_0x4a11fb&&_0x8e7f2['push'](_0x4a11fb);}return _0x8e7f2;}(_0x44eabd,_0x327d26),_0x4efabc=function(_0x425c76,_0x2d2e42){const _0x31d007=[_0x425c76];for(const _0x37e57c of _0x2d2e42){let _0x5cdc56=0x0;for(;_0x5cdc56<_0x31d007['length'];){const _0x48b5b3=_0x31d007[_0x5cdc56]['getDifference'](_0x37e57c);_0x31d007['splice'](_0x5cdc56,0x1,..._0x48b5b3),_0x5cdc56+=_0x48b5b3['length'];}}return _0x31d007;}(_0x44eabd,_0x327d26);_0x33804f['length']&&this['_model']['change'](()=>{for(const _0xee4912 of _0x33804f){const _0x59d4d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x49e616,'accept');this['forceDefaultExecution'](()=>_0x59d4d0([_0xee4912],_0x57daf2,_0x1657d0));}});for(const _0x419631 of _0x4efabc){let _0x107325=null,_0x31ebba=_0x419631['start'],_0x11c9cb=_0x419631['end'];for(const {suggestion:_0x4e7c8c,meta:_0x2ac2fc}of this['_findSuggestions'](_0x419631,'formatInline')){if(!_0x2ac2fc['isOwn'])continue;if(_0x4e7c8c['subType']!=_0x49e616)continue;if(!sn(_0x4e7c8c,_0x1657d0))continue;const _0x2ebf0a=_0x4e7c8c['getFirstRange']();if(_0x2ebf0a['containsRange'](_0x419631,!0x0))return null;_0x31ebba=_0x31ebba['isBefore'](_0x2ebf0a['start'])?_0x31ebba:_0x2ebf0a['start'],_0x11c9cb=_0x11c9cb['isAfter'](_0x2ebf0a['end'])?_0x11c9cb:_0x2ebf0a['end'],_0x107325?_0x2ebf0a['start']['isBefore'](_0x107325['getFirstRange']()['start'])?(_0x107325['removeMarkers'](),_0x107325=_0x4e7c8c):_0x4e7c8c['removeMarkers']():_0x107325=_0x4e7c8c;}const _0x176dcc=this['_model']['createRange'](_0x31ebba,_0x11c9cb);if(_0x107325)this['_setSuggestionRange'](_0x107325,_0x176dcc);else{const _0xea10ad=_0x341aab(),_0x2c8cba=_0x17e36d['id'];this['_setSuggestionData']({'id':_0xea10ad,'type':'formatInline:'+_0x49e616,'data':_0x57daf2,'createdAt':new Date(),'authorId':_0x2c8cba,'attributes':_0x1657d0}),this['_addSuggestionMarker']('formatInline:'+_0x49e616,_0xea10ad,_0x2c8cba,_0x176dcc);}}return null;}['markBlockFormat'](_0x819c3,_0x36b7b0,_0x4b2d86=[],_0x45532c=null,_0x59a797={}){_0x36b7b0['formatGroupId']||(_0x36b7b0['formatGroupId']=_0x36b7b0['commandName']),_0x36b7b0['multipleBlocks']=_0x819c3['is']('range'),_0x45532c=_0x45532c||Ht(_0x36b7b0);const _0x5ba710=_0x4b2d86['map'](_0x17e8bb=>tn(_0x17e8bb,this['_model'])),_0x39b51d=_0x819c3['is']('range')?_0x819c3:tn(_0x819c3,this['_model']);if(this['_trackingSessionId']&&(_0x59a797['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1c7c50=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45532c,'accept');return this['forceDefaultExecution'](()=>_0x1c7c50([_0x39b51d],_0x36b7b0,_0x59a797)),null;}_0x5ba710['push'](_0x39b51d);let _0x421c90=!0x0;for(const _0x5bb179 of _0x5ba710)if(!this['_rangeIsInLocalUserInsertion'](_0x5bb179)){_0x421c90=!0x1;break;}if(_0x421c90&&'always'!==this['_trackFormatChanges']){const _0x4a589e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45532c,'accept');return this['forceDefaultExecution'](()=>_0x4a589e([_0x39b51d],_0x36b7b0,_0x59a797)),null;}let _0x2ecc39=null,_0x7bdc47=_0x39b51d['start'],_0x4703f4=_0x39b51d['end'];for(const {suggestion:_0xe4f5cd,meta:_0x18d7f3}of this['_findSuggestions'](_0x39b51d,'formatBlock')){if(!_0x18d7f3['isOwn'])continue;if(_0x18d7f3['isNextTo']||_0x18d7f3['containsRangeInObject']||_0x18d7f3['isInsideObject'])continue;if(_0xe4f5cd['data']['formatGroupId']!=_0x36b7b0['formatGroupId'])continue;if(!sn(_0xe4f5cd,_0x59a797))continue;const _0x91c70f=_0xe4f5cd['getFirstRange']();if(_0xe4f5cd['subType']==_0x45532c){if(_0x91c70f['containsRange'](_0x39b51d,!0x0))return null;_0x7bdc47=_0x7bdc47['isBefore'](_0x91c70f['start'])?_0x7bdc47:_0x91c70f['start'],_0x4703f4=_0x4703f4['isAfter'](_0x91c70f['end'])?_0x4703f4:_0x91c70f['end'],_0x2ecc39?_0x91c70f['start']['isBefore'](_0x2ecc39['getFirstRange']()['start'])?(_0x2ecc39['removeMarkers'](),_0x2ecc39=_0xe4f5cd):_0xe4f5cd['removeMarkers']():_0x2ecc39=_0xe4f5cd;}else{const _0x1f3f49=_0x39b51d['getIntersection'](_0x91c70f);this['_cutOutSuggestionMarker'](_0xe4f5cd,_0x1f3f49);}}const _0x1e1586=this['editor']['plugins']['get']('Users')['me'],_0x2e94d0=_0x341aab(),_0x1732b9=_0x1e1586['id'];if(_0x2ecc39)return this['_setSuggestionRange'](_0x2ecc39,this['_model']['createRange'](_0x7bdc47,_0x4703f4)),_0x2ecc39;{const _0x26fda4=this['_setSuggestionData']({'id':_0x2e94d0,'type':'formatBlock:'+_0x45532c,'data':_0x36b7b0,'createdAt':new Date(),'authorId':_0x1732b9,'attributes':_0x59a797});return this['_addSuggestionMarker']('formatBlock:'+_0x45532c,_0x2e94d0,_0x1732b9,this['_model']['createRange'](_0x7bdc47,_0x4703f4)),_0x26fda4;}}['markMultiRangeBlockFormat'](_0x21d892,_0x4cffca,_0x29088d=[],_0x3b2a29=null,_0x15bd0e={}){_0x4cffca['formatGroupId']||(_0x4cffca['formatGroupId']=_0x4cffca['commandName']);const _0x50ca5e=_0x21d892[0x0];_0x4cffca['multipleBlocks']=_0x50ca5e['is']('range'),_0x3b2a29=_0x3b2a29||Ht(_0x4cffca);const _0x4c4678=_0x29088d['map'](_0x22c195=>tn(_0x22c195,this['_model'])),_0x29acf1=_0x50ca5e['is']('range')?_0x21d892:_0x21d892['map'](_0x1e24f0=>tn(_0x1e24f0,this['_model']));if(this['_trackingSessionId']&&(_0x15bd0e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d3b82=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'accept');return this['forceDefaultExecution'](()=>_0x4d3b82(_0x29acf1,_0x4cffca,_0x15bd0e)),null;}_0x4c4678['push'](..._0x29acf1);let _0x5752e7=!0x0;for(const _0x5801fe of _0x4c4678)if(!this['_rangeIsInLocalUserInsertion'](_0x5801fe)){_0x5752e7=!0x1;break;}if(_0x5752e7&&'always'!==this['_trackFormatChanges']){const _0x3d7181=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'accept');return this['forceDefaultExecution'](()=>_0x3d7181(_0x29acf1,_0x4cffca,_0x15bd0e)),null;}const _0x36eff1=this['editor']['plugins']['get']('Users')['me'];for(const _0x95b71d of this['getSuggestions']()){const _0x44db06=_0x95b71d['data'];if(_0x95b71d['author']['id']!=_0x36eff1['id'])continue;if('formatBlock'!=_0x95b71d['type']||_0x44db06['formatGroupId']!=_0x4cffca['formatGroupId'])continue;if(!sn(_0x95b71d,_0x15bd0e))continue;const _0x330b46=_0x95b71d['subType']==_0x3b2a29;for(let _0x8c1859=0x0;_0x8c1859<_0x29acf1['length'];_0x8c1859++){const _0x26ff18=_0x29acf1[_0x8c1859];for(const _0x2551be of _0x95b71d['getMarkers']()){const _0x5ef539=_0x2551be['getRange']();if(_0x26ff18['isEqual'](_0x5ef539)){_0x330b46?(_0x29acf1['splice'](_0x8c1859,0x1),_0x8c1859--):_0x95b71d['removeMarker'](_0x2551be['name']);break;}}}}if(0x0==_0x29acf1['length'])return null;const _0x3759ae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b2a29,'join');for(const _0x38caa8 of this['getSuggestions']()){const _0x3c8eb4=_0x38caa8['data'];if(_0x38caa8['author']['id']==_0x36eff1['id']&&('formatBlock'==_0x38caa8['type']&&_0x3c8eb4['formatGroupId']==_0x4cffca['formatGroupId']&&_0x38caa8['subType']==_0x3b2a29&&sn(_0x38caa8,_0x15bd0e)&&(_0x3759ae(_0x38caa8['getRanges'](),_0x29acf1)||_0x3759ae(_0x29acf1,_0x38caa8['getRanges']())))){for(const _0x4bc5ef of _0x29acf1)_0x38caa8['addRange'](_0x4bc5ef);return _0x38caa8;}}const _0x3273ff=_0x341aab(),_0x2e4aa3=_0x36eff1['id'],_0x31c591='formatBlock:'+_0x3b2a29,_0x5bc3d6=this['_setSuggestionData']({'id':_0x3273ff,'type':_0x31c591,'data':_0x4cffca,'createdAt':new Date(),'authorId':_0x2e4aa3,'attributes':_0x15bd0e});for(const _0x216aa4 of _0x29acf1)this['_addSuggestionMarker'](_0x31c591,_0x3273ff,_0x2e4aa3,_0x216aa4,T['getMultiRangeId']());return _0x5bc3d6;}['markDeletion'](_0x586922,_0x10bcee=null,_0xe62588={}){if(_0x586922['isCollapsed'])return null;const _0x1cf82d=this['editor']['plugins']['get']('Users')['me'],_0xb4e777=new _0x2ed57b(_0x586922['start'],_0x586922['end']);this['_trackingSessionId']&&(_0xe62588['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5a8792,meta:_0x2c93d0}of this['_findSuggestions'](_0xb4e777,'insertion'))if(_0x2c93d0['isOwn']&&!_0x2c93d0['isNextTo']){if(_0x5a8792['isMultiRange']){const _0x41f77f=_0x5a8792['getRanges']()['filter'](_0x5741a6=>'$graveyard'!=_0x5741a6['root']['rootName']);_0x41f77f['every'](_0x48cc9b=>_0xb4e777['containsRange'](_0x48cc9b,!0x0))&&_0x5a8792['discard']();if(_0x41f77f['some'](_0x5d3706=>_0x5d3706['containsRange'](_0xb4e777,!0x0))){const _0x6f2ee4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x10bcee,'accept');return this['forceDefaultExecution'](()=>_0x6f2ee4([_0xb4e777],null,_0xe62588)),null;}}else{const _0x23bfaa=_0xb4e777['getIntersection'](_0x5a8792['getFirstRange']());null!==_0x23bfaa&&_0x5a8792['_onDiscard']([_0x23bfaa],null,_0xe62588);}}if(_0xb4e777['detach'](),_0xb4e777['isCollapsed']||'$graveyard'==_0xb4e777['root']['rootName'])return null;let _0x4efc45=null,_0x334d60=_0xb4e777['start'],_0x11e278=_0xb4e777['end'];const _0x3edaf1=this['_findSuggestions'](_0xb4e777,'deletion');for(const {suggestion:_0x41105d,meta:_0x18dc5b}of _0x3edaf1){const _0x48d603=this['_model']['createRange'](_0x334d60,_0x11e278);if(_0x18dc5b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x18dc5b['containsRangeInObject']&&!_0x18dc5b['isInsideObject'])){if(_0x41105d['isMultiRange']){if(!sn(_0x41105d,_0xe62588))continue;let _0x35a13b=!0x0;for(const _0x5c5845 of _0x41105d['getRanges']()){if(_0x5c5845['containsRange'](_0x48d603,!0x0))return _0x41105d;_0x48d603['containsRange'](_0x5c5845)||(_0x35a13b=!0x1);}_0x35a13b&&_0x41105d['discard']();}else{const _0x532007=_0x41105d['getFirstRange']();if(_0x532007['containsRange'](_0x48d603,!0x0))return _0x41105d;if(!sn(_0x41105d,_0xe62588)){_0x48d603['containsRange'](_0x532007)?_0x41105d['removeMarkers']():_0x532007['containsPosition'](_0x334d60)?_0x334d60=_0x532007['end']:_0x532007['containsPosition'](_0x11e278)&&(_0x11e278=_0x532007['start']);continue;}_0x334d60=_0x334d60['isBefore'](_0x532007['start'])?_0x334d60:_0x532007['start'],_0x11e278=_0x11e278['isAfter'](_0x532007['end'])?_0x11e278:_0x532007['end'],_0xe62588=Object['assign']({},_0x41105d['attributes']),_0x4efc45?_0x532007['start']['isBefore'](_0x4efc45['getFirstRange']()['start'])?(_0x4efc45['removeMarkers'](),_0x4efc45=_0x41105d):_0x41105d['removeMarkers']():_0x4efc45=_0x41105d;}}}if(_0x4efc45)return this['_setSuggestionRange'](_0x4efc45,this['_model']['createRange'](_0x334d60,_0x11e278)),_0x4efc45;{const _0x120063=_0x341aab(),_0x46d6eb=this['_model']['createRange'](_0x334d60,_0x11e278),_0x170ac3=_0x1cf82d['id'],_0x2edf75=_0x10bcee?'deletion:'+_0x10bcee:'deletion',_0x133404=this['_setSuggestionData']({'id':_0x120063,'type':_0x2edf75,'createdAt':new Date(),'authorId':_0x170ac3,'attributes':_0xe62588});return this['_addSuggestionMarker'](_0x2edf75,_0x120063,_0x170ac3,_0x46d6eb),_0x133404;}}['markMultiRangeDeletion'](_0x31178a,_0x589b43='multi',_0x3474b6={}){const _0x34c9f6=this['editor']['plugins']['get']('Users')['me'],_0xf2f924=_0x31178a['map'](_0x4461fa=>new _0x2ed57b(_0x4461fa['start'],_0x4461fa['end'])),_0x21a745=new Set();this['_trackingSessionId']&&(_0x3474b6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53d0b2,meta:_0x2a0f98}of this['_findSuggestions'](_0xf2f924,'insertion'))_0x2a0f98['isOwn']&&!_0x2a0f98['isNextTo']&&_0x21a745['add'](_0x53d0b2);for(const _0x3ce462 of _0x21a745)if(_0x3ce462['isMultiRange']){const _0xdef8ae=_0x3ce462['getRanges']();(!_0x3ce462['attributes']||!_0x3ce462['attributes']['skipNestingCheck'])&&(_0xdef8ae['every'](_0x580eba=>_0xf2f924['some'](_0x8d4db9=>_0x8d4db9['containsRange'](_0x580eba,!0x0)))&&_0x3ce462['discard']());if(_0xf2f924['every'](_0x386cb5=>_0xdef8ae['some'](_0x157670=>_0x157670['containsRange'](_0x386cb5,!0x0)))){const _0x196b44=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'accept');return this['forceDefaultExecution'](()=>_0x196b44(_0x31178a,null,_0x3474b6)),null;}}else{const _0x441354=_0x3ce462['getFirstRange']();_0xf2f924['some'](_0x3a6f20=>_0x3a6f20['containsRange'](_0x441354,!0x0))&&_0x3ce462['discard']();if(_0xf2f924['every'](_0x17a718=>_0x441354['containsRange'](_0x17a718,!0x0))){const _0x1dcba2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'accept');return this['forceDefaultExecution'](()=>_0x1dcba2(_0xf2f924,null,_0x3474b6)),null;}}const _0x33a84f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x589b43,'join');let _0x139400=null;for(const _0x10e598 of this['getSuggestions']())if(_0x10e598['author']['id']==_0x34c9f6['id']&&_0x10e598['isInContent']&&'deletion'==_0x10e598['type']&&_0x10e598['subType']==_0x589b43&&sn(_0x10e598,_0x3474b6)&&(_0x33a84f(_0x10e598['getRanges'](),_0xf2f924)||_0x33a84f(_0xf2f924,_0x10e598['getRanges']()))){if(_0x139400){if(_0x10e598['commentThread']&&_0x10e598['commentThread']['length'])continue;for(const _0x3f39b4 of _0x10e598['getRanges']())_0x139400['isIntersectingWithRange'](_0x3f39b4)||_0x139400['addRange'](_0x3f39b4);_0x10e598['removeMarkers']();}else{_0x139400=_0x10e598;for(const _0x5dc254 of _0xf2f924)_0x10e598['isIntersectingWithRange'](_0x5dc254)||_0x10e598['addRange'](_0x5dc254);}}if(_0x139400)return _0x139400;_0x21a745['clear']();for(const {suggestion:_0x9e9231,meta:_0x496b88}of this['_findSuggestions'](_0xf2f924,'deletion'))_0x496b88['isOwn']&&(this['_mergeNestedSuggestions']||!_0x496b88['containsRangeInObject']&&!_0x496b88['isInsideObject'])&&sn(_0x9e9231,_0x3474b6)&&_0x21a745['add'](_0x9e9231);for(const _0x27ddec of _0x21a745){const _0x210411=_0x27ddec['getRanges']();if(!_0x3474b6||!_0x3474b6['skipNestingCheck']){if(_0xf2f924['every'](_0x122d34=>_0x210411['some'](_0x50b0a7=>_0x50b0a7['containsRange'](_0x122d34,!0x0))))return _0x27ddec;}(!_0x27ddec['attributes']||!_0x27ddec['attributes']['skipNestingCheck'])&&(_0x210411['every'](_0x3ffd01=>_0xf2f924['some'](_0x27864f=>_0x27864f['containsRange'](_0x3ffd01,!0x0)))&&_0x27ddec['discard']());}const _0x36bbb1=_0x341aab(),_0x2b93c1=_0x34c9f6['id'],_0x49af83='deletion:'+_0x589b43,_0x19c831=this['_setSuggestionData']({'id':_0x36bbb1,'type':_0x49af83,'createdAt':new Date(),'authorId':_0x2b93c1,'attributes':_0x3474b6});for(const _0x11ac39 of _0xf2f924)_0x11ac39['detach'](),_0x11ac39['isCollapsed']||'$graveyard'==_0x11ac39['root']['rootName']||this['_addSuggestionMarker'](_0x49af83,_0x36bbb1,_0x2b93c1,_0x11ac39,T['getMultiRangeId']());return _0x19c831;}['markAttributeChange'](_0x4e03e0,_0x4477ea,_0x27a9b0,_0x1d4497,_0xb47611){if(_0x4e03e0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e3ead=this['editor']['plugins']['get']('Users')['me']['id'],_0x193bd6=Array['from'](this['_suggestions']['values']())['filter'](_0x1b9358=>'attribute'==_0x1b9358['type']&&_0x1b9358['data']['key']==_0x4477ea&&_0x1b9358['isIntersectingWithRange'](_0x4e03e0));if(this['_trackingSessionId']&&(_0xb47611['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x5b4e02=this['_findSuggestions'](_0x4e03e0,'insertion')['filter'](({meta:_0x1abdc9})=>_0x1abdc9['isOwn']&&!_0x1abdc9['isInsideObject']&&!_0x1abdc9['isNextTo'])['map'](({suggestion:_0x6212b2})=>_0x6212b2);_0x193bd6['unshift'](..._0x5b4e02);}const _0xcb06dc=new Map([[_0x4e03e0,_0x27a9b0]]);for(const _0x540c2b of _0x193bd6){const _0x275244='attribute'==_0x540c2b['type']?_0x540c2b['data']['oldValue']:void 0x0,_0x2ab150=_0x540c2b['getFirstRange'](),_0x1d33dc=Array['from'](_0xcb06dc['keys']())['find'](_0x4bcd66=>_0x4bcd66['isIntersecting'](_0x2ab150));if(!_0x1d33dc)continue;const _0x3ecfaf=_0x1d33dc['getDifference'](_0x2ab150);this['_isBlockAttribute'](_0x4477ea)&&'insertion'==_0x540c2b['type']&&0x0!=_0x3ecfaf['length']||(_0xcb06dc['delete'](_0x1d33dc),_0x3ecfaf['forEach'](_0xf1a52a=>{_0xcb06dc['set'](_0xf1a52a,_0x27a9b0);}),'insertion'!=_0x540c2b['type']&&_0x275244!=_0x1d4497&&_0xcb06dc['set'](_0x1d33dc['getIntersection'](_0x2ab150),_0x275244));}const _0x55200c=[];for(const [_0x57c707,_0xbd2954]of _0xcb06dc){const _0x3ac468=_0x341aab(),_0x133615={'key':_0x4477ea,'oldValue':_0xbd2954,'newValue':_0x1d4497};_0x4477ea['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':_0x4477ea});const _0x1b223d=('attribute:'+(_0x4477ea+'|'+Ht({'newValue':_0x1d4497})))['substring'](0x0,0x3c),_0x1f665f=this['_setSuggestionData']({'id':_0x3ac468,'type':_0x1b223d,'data':_0x133615,'createdAt':new Date(),'authorId':_0x5e3ead,'attributes':_0xb47611});_0x55200c['push'](_0x1f665f),this['_addSuggestionMarker'](_0x1b223d,_0x3ac468,_0x5e3ead,_0x57c707);}return _0x55200c;}['enableDefaultAttributesIntegration'](_0x447d69){this['enableCommand'](_0x447d69,(_0x1e9e6e,..._0x5e306e)=>{this['recordAttributeChanges'](()=>{_0x1e9e6e(..._0x5e306e);});});}['registerBlockAttribute'](_0x465962){this['editor']['plugins']['get'](_0x55e6d0)['registerBlockAttribute'](_0x465962);}['registerInlineAttribute'](_0x435e8c){this['editor']['plugins']['get'](_0x55e6d0)['registerInlineAttribute'](_0x435e8c);}['startTrackingSession'](_0xc52e64){return this['_trackingSessionId']=void 0x0!==_0xc52e64?_0xc52e64:_0x341aab(),this['_trackingSessionId'];}['_getAttributeKey'](_0x431bb9){return'attribute'==_0x431bb9['type']?_0x431bb9['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x48d589){if(0x0==_0x48d589['length'])return;const _0x2c94d4=this['editor'],_0xba4b3=_0x2c94d4['plugins']['get'](_0x18362e),_0x28a5c2=[];_0x2c94d4['model']['change'](_0x16c41f=>{for(let _0x259e09=0x0;_0x259e09<_0x48d589['length'];_0x259e09++){const _0x30ab96=_0x48d589[_0x259e09];if(_0x30ab96['baseVersion']=_0x2c94d4['model']['document']['version'],_0x30ab96['isDocumentOperation']=!0x0,_0xba4b3['isMarkedRemoveOperation'](_0x30ab96)){const _0x2134b1=_0x1d4d3c(_0x30ab96['newRange'],_0x2c94d4['model']);_0x28a5c2['unshift'](_0x2ed57b['fromRange'](_0x2134b1));}else switch(_0x30ab96['type']){case'rename':{const _0x401194=_0x30ab96['oldName'],_0x517ccb=_0x30ab96['newName'];if(_0x401194==_0x517ccb)break;_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x3a2fea='$elementName',_0x3b8faf=_0x30ab96['position'],_0x24f23a=_0x2c94d4['model']['createRange'](_0x3b8faf,_0x2c94d4['model']['createPositionAt'](_0x3b8faf['nodeAfter'],'end'));this['markAttributeChange'](_0x24f23a,_0x3a2fea,_0x401194,_0x517ccb,{'groupId':_0x341aab()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x3ae3e3=_0x30ab96['oldValue'],_0x224f11=_0x30ab96['newValue'];if(_0x3ae3e3==_0x224f11)break;_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x4e8974=_0x30ab96['key'];if(!this['_isRegisteredAttribute'](_0x4e8974))break;const _0x4fa60f=_0x1d4d3c(_0x30ab96['range'],_0x2c94d4['model']);this['markAttributeChange'](_0x4fa60f,_0x4e8974,_0x3ae3e3,_0x224f11,{'groupId':_0x341aab()});break;}case'insert':{_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);if(_0x48d589[_0x259e09+0x1]&&'move'==_0x48d589[_0x259e09+0x1]['type'])break;const _0x4655c6=_0x30ab96['position'],_0x419f33=_0x30ab96['howMany'],_0x779151=_0x1d4d3c(_0x2c94d4['model']['createRange'](_0x4655c6,_0x4655c6['getShiftedBy'](_0x419f33)),_0x2c94d4['model']);this['markInsertion'](_0x779151);break;}case'split':{_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);const _0x3c04eb=_0x30ab96['splitPosition'],_0x501a0b=_0x30ab96['moveTargetPosition'];this['markInsertion'](_0x2c94d4['model']['createRange'](_0x3c04eb,_0x501a0b));break;}case'move':case'remove':_0x16c41f['batch']['addOperation'](_0x30ab96),_0x2c94d4['model']['applyOperation'](_0x30ab96);}}for(const _0x115b4e of _0x28a5c2)_0x115b4e['detach'](),this['markDeletion'](_0x115b4e);});}['_setSuggestionRange'](_0x9ae7df,_0x38f69f){const _0x47f40a=_0x9ae7df['getFirstMarker']();this['_model']['change'](_0x2d2b24=>{_0x2d2b24['updateMarker'](_0x47f40a,{'range':_0x38f69f});});}['_addThreadToSuggestion'](_0x2abae4){const _0x57f51a=_0x2abae4['id'],_0x54e477=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57f51a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x54e477,'threadId':_0x57f51a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1925b0=this['_commentsRepository']['getCommentThread'](_0x57f51a);_0x1925b0['unbind']('isRemovable'),_0x1925b0['isRemovable']=!0x1,_0x2abae4['commentThread']=_0x1925b0;}['_checkSuggestionCorrectness'](_0x1822bc,_0x303aa3,_0x58cec8,_0x377ac2){if(_0x1822bc['type']!=_0x303aa3||_0x1822bc['subType']!=_0x58cec8||_0x1822bc['creator']['id']!=_0x377ac2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2ea645('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x40a876,_0x59f2cb){const _0x1703fa=_0x40a876['getFirstRange']();if(_0x59f2cb['isEqual'](_0x1703fa))_0x40a876['removeMarkers']();else{if(_0x1703fa['containsRange'](_0x59f2cb)){const _0x56560e=this['_model']['createPositionAt'](_0x59f2cb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x1703fa['start'],_0x56560e));const _0x26d7df=_0x341aab(),_0x556b15=_0x40a876['creator']['id'],_0x31278e=_0x40a876['type']+':'+_0x40a876['subType'];this['_setSuggestionData']({'id':_0x26d7df,'type':_0x31278e,'createdAt':new Date(),'authorId':_0x556b15,'data':_0x40a876['data'],'attributes':_0x40a876['attributes']});const _0x2ba577=this['_model']['createPositionAt'](_0x59f2cb['end']['parent'],'after'),_0x5f4962=this['_model']['createRange'](_0x2ba577,_0x1703fa['end']);this['_addSuggestionMarker'](_0x31278e,_0x26d7df,_0x556b15,_0x5f4962);}else{if(_0x1703fa['containsPosition'](_0x59f2cb['start'])){const _0x3dc384=this['_model']['createPositionAt'](_0x59f2cb['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x1703fa['start'],_0x3dc384));}else{const _0x5cf726=this['_model']['createPositionAt'](_0x59f2cb['end']['parent'],'after');this['_setSuggestionRange'](_0x40a876,this['_model']['createRange'](_0x5cf726,_0x1703fa['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2b5912){for(const {suggestion:_0x48ad21,meta:_0x46a79f}of this['_findSuggestions'](_0x2b5912,'insertion')){if(!_0x46a79f['isOwn'])continue;const _0x17b2f9=_0x48ad21['getRanges']();for(const _0x5b1127 of _0x17b2f9)if(!_0x2b5912['getDifference'](_0x5b1127)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd47d65){return this['editor']['plugins']['get']('Users')['getUser'](_0xd47d65);}['_getExternalAuthor'](_0x4142b4){const _0x2e1d87=this['editor']['plugins']['get']('Users'),_0xeb35f6=_0x56d605('external:'+_0x4142b4),_0x25b7c3=_0x2e1d87['getUser'](_0xeb35f6);return _0x25b7c3||_0x2e1d87['addUser']({'id':_0xeb35f6,'name':_0x4142b4});}['_createSuggestion'](_0x5e88c7,_0x10bb61,_0xd59e44,_0x3737b7,_0x16133a,_0x4585c7){const _0x5d27f6=this['_getAuthorFromId'](_0x3737b7);if(!_0x5d27f6)throw new _0x2ea645('track-changes-user-not-found',this,{'authorId':_0x3737b7,'suggestionId':_0xd59e44});const _0x44a59b=this['_suggestionFactory']['buildSuggestion'](_0x5e88c7,_0x10bb61,_0xd59e44,_0x5d27f6,_0x16133a,_0x46ecad=>{this['_updateSuggestionData'](_0xd59e44,{'attributes':_0x46ecad});const _0x3f83aa=this['getSuggestion'](_0xd59e44);this['_joinWithAdjacentSuggestions'](new Set([_0x3f83aa])),this['_refreshSuggestionsChain'](new Set([_0x3f83aa]));},_0x4585c7);return this['listenTo'](_0x44a59b,'accept',()=>{this['_updateSuggestionData'](_0xd59e44,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x44a59b,'discard',()=>{this['_updateSuggestionData'](_0xd59e44,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0xd59e44,_0x44a59b),this['_suggestionState']['set'](_0x44a59b,'notReady'),_0x44a59b;}['_splitMarkerName'](_0x19b114){return _0xdfe2f6(_0x19b114);}['_breakSuggestionMarker'](_0x31b2cc,_0xd29628,_0xcf2003){const _0x59f4b6=_0x31b2cc['getFirstRange'](),_0x6e4b42=_0x59f4b6['start'],_0x4a7494=_0x59f4b6['end'];this['_setSuggestionRange'](_0x31b2cc,this['_model']['createRange'](_0x6e4b42,_0xd29628));const _0x23bb60=_0x341aab(),_0x496cf5=_0x31b2cc['creator']['id'],_0x538745=_0x31b2cc['type']+(_0x31b2cc['subType']?':'+_0x31b2cc['subType']:'');this['_setSuggestionData']({'id':_0x23bb60,'type':_0x538745,'createdAt':new Date(),'authorId':_0x496cf5,'originalSuggestionId':_0x31b2cc['_originalSuggestionId']||_0x31b2cc['id'],'attributes':_0x31b2cc['attributes'],'data':_0x31b2cc['data']});const _0x53a788=this['_getAttributeKey'](_0x31b2cc);('formatBlock'==_0x31b2cc['type']||_0x53a788&&this['_isBlockAttribute'](_0x53a788))&&(_0xcf2003=this['_model']['createPositionBefore'](_0xcf2003['parent'])),this['_addSuggestionMarker'](_0x538745,_0x23bb60,_0x496cf5,this['_model']['createRange'](_0xcf2003,_0x4a7494));}['_findSuggestions'](_0xb4e665,_0x57f3be=null){const _0x5938e5=[],_0x2ce3cb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb4e665)||(_0xb4e665=[_0xb4e665]);for(const _0x23a52a of this['getSuggestions']()){if(!_0x23a52a['isInContent'])continue;if(_0x57f3be&&_0x23a52a['type']!=_0x57f3be)continue;let _0x5f5566=!0x1;for(const _0x529817 of _0x23a52a['getRanges']()){for(const _0xfb513b of _0xb4e665){const _0x256ee3=_0xfb513b['start']['isEqual'](_0x529817['end'])||_0xfb513b['end']['isEqual'](_0x529817['start']);if(_0x256ee3||_0xfb513b['getIntersection'](_0x529817)){const _0x268bcb=_0xfb513b['containsRange'](_0x529817)&&zt(this['_model']['schema'],_0x529817['start'],_0xfb513b),_0x2c5937=_0x529817['containsRange'](_0xfb513b)&&zt(this['_model']['schema'],_0xfb513b['start'],_0x529817);_0x5938e5['push']({'suggestion':_0x23a52a,'meta':{'isOwn':_0x2ce3cb==_0x23a52a['author'],'isNextTo':_0x256ee3,'isInsideObject':_0x268bcb,'containsRangeInObject':_0x2c5937}}),_0x5f5566=!0x0;break;}}if(_0x5f5566)break;}}return _0x5938e5;}['_addSuggestionMarker'](_0x5409d0,_0x1cb751,_0x164cbe,_0x52d9d0,_0x12da04){this['_model']['change'](_0x58d97a=>{let _0x53d409='suggestion:'+_0x5409d0+':'+_0x1cb751+':'+_0x164cbe;_0x12da04&&(_0x53d409=_0x53d409+':'+_0x12da04),_0x58d97a['addMarker'](_0x53d409,{'range':_0x52d9d0,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x134e2f){const _0xa86eb6=_0x134e2f['previous'],_0x454fb6=_0x134e2f['next'];_0x134e2f['previous']=null,_0x134e2f['next']=null,null!=_0xa86eb6&&_0xa86eb6['next']==_0x134e2f&&(_0xa86eb6['next']=_0x454fb6),null!=_0x454fb6&&_0x454fb6['previous']==_0x134e2f&&(_0x454fb6['previous']=_0xa86eb6),'ready'==this['_suggestionState']['get'](_0x134e2f)&&(this['_suggestionState']['set'](_0x134e2f,'removed'),this['fire']('suggestionUnloaded',_0x134e2f,_0xa86eb6,_0x454fb6));}['_setSuggestionData'](_0x33c34c){const _0x38b85d=_0x33c34c['id'],_0x1998f7=this['addSuggestionData'](_0x33c34c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3a45da=this['editor']['plugins']['get']('PendingActions'),_0x132b5f=_0x1998f7['hasComments'],_0x1c8300=_0x1998f7['subType']?_0x1998f7['type']+':'+_0x1998f7['subType']:_0x1998f7['type'],_0x556e3c=this['editor']['locale'],_0x4c5b83=_0x3a45da['add'](o(_0x556e3c,'PENDING_ACTION_SUGGESTION')),_0x18ffd7={'id':_0x38b85d,'type':_0x1c8300,'hasComments':_0x132b5f,'data':_0x33c34c['data']||null,'originalSuggestionId':_0x33c34c['originalSuggestionId']||null,'attributes':_0x1998f7['attributes']};this['_adapter']['addSuggestion'](_0x18ffd7)['then'](_0x40aa30=>{_0x1998f7['_saved']=!0x0,_0x3a45da['remove'](_0x4c5b83),_0x40aa30&&_0x40aa30['createdAt']&&(this['_suggestions']['get'](_0x38b85d)['createdAt']=_0x40aa30['createdAt']);})['catch'](_0x5eccc0=>{throw _0x4de72a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1998f7['discard']();}),_0x1998f7['stopListening'](),this['_suggestions']['delete'](_0x1998f7['id']),this['_suggestionState']['delete'](_0x1998f7),_0x5eccc0;});}return _0x1998f7;}['_isBlockAttribute'](_0x3f7a4e){return this['editor']['plugins']['get'](_0x55e6d0)['isBlockAttribute'](_0x3f7a4e);}['_isInlineAttribute'](_0x1c8c68){return this['editor']['plugins']['get'](_0x55e6d0)['isInlineAttribute'](_0x1c8c68);}['_updateSuggestionData'](_0x1772df,_0x46bd9d){const _0x48d35e=this['editor']['plugins']['get']('PendingActions'),_0x5cab66=this['getSuggestion'](_0x1772df);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5cab66['_saved']){const _0x13c3c6=_0x48d35e['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1772df,_0x46bd9d)['then'](()=>{_0x48d35e['remove'](_0x13c3c6);});}else _0x5cab66['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1772df,_0x46bd9d);});}}['_getSuggestionData'](_0x5d2a2c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2ea645('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5d2a2c);}['_handleNewSuggestionMarker'](_0x4b4618){const {id:_0x552784,type:_0xaae94d,subType:_0xa0297e,authorId:_0x4229f2}=this['_splitMarkerName'](_0x4b4618),_0x2bfbfb=this['_suggestions']['get'](_0x552784)||this['_createSuggestion'](_0xaae94d,_0xa0297e,_0x552784,_0x4229f2,{});switch(this['_checkSuggestionCorrectness'](_0x2bfbfb,_0xaae94d,_0xa0297e,_0x4229f2),this['_suggestionState']['get'](_0x2bfbfb)){case'notReady':this['_getSuggestionData'](_0x552784)['then'](_0x5e2718=>{let _0x18afd1=Promise['resolve']();_0x5e2718['hasComments']&&(_0x18afd1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x552784})),_0x18afd1['then'](()=>{this['addSuggestionData'](_0x5e2718)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2bfbfb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x552784,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2bfbfb,'ready'),this['fire']('suggestionLoaded',_0x2bfbfb);break;case'ready':this['fire']('suggestionChanged',_0x2bfbfb);}return _0x2bfbfb['addMarkerName'](_0x4b4618),_0x2bfbfb;}['_refreshSuggestionsChain'](_0x2d069e){const _0x4acef4=Array['from'](_0x2d069e),_0x22562f=_0x4acef4['filter'](_0x598863=>'attribute'==_0x598863['type']);this['_refreshAttributeSuggestionsChain'](_0x22562f);const _0x17429b=_0x4acef4['filter'](_0x303def=>!_0x303def['isMultiRange']&&'attribute'!=_0x303def['type']),_0x55b9a7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x253703=>!_0x253703['isMultiRange']&&'attribute'!=_0x253703['type']),_0x195073=_0x55b9a7['filter'](_0x170223=>!_0x2d069e['has'](_0x170223)),_0x171c99=new Map(_0x55b9a7['map'](_0x5b4ae2=>[_0x5b4ae2,this['_suggestionFactory']['getSuggestionCallback'](_0x5b4ae2['type'],_0x5b4ae2['subType'],'chain')])),_0x52d39a=new Map(_0x55b9a7['map'](_0x307e49=>[_0x307e49,_0x307e49['getFirstRange']()])),_0x27598=new Set(),_0x2d03aa=new Set();for(let _0x5ce2b3=0x0;_0x5ce2b3<_0x17429b['length'];_0x5ce2b3++)_0x13e0df(_0x17429b[_0x5ce2b3],_0x17429b,_0x5ce2b3+0x1);for(let _0x11e346=0x0;_0x11e346<_0x17429b['length'];_0x11e346++)_0x13e0df(_0x17429b[_0x11e346],_0x195073,0x0);const _0x56d2ba=new Set();for(let _0x1a6676=0x0;_0x1a6676<_0x17429b['length'];_0x1a6676++){const _0xf281e7=_0x17429b[_0x1a6676];!_0x2d03aa['has'](_0xf281e7)&&_0xf281e7['previous']&&(_0x56d2ba['add'](_0xf281e7['previous']),_0xf281e7['previous']['next']===_0xf281e7&&(_0xf281e7['previous']['next']=null),_0xf281e7['previous']=null),!_0x27598['has'](_0xf281e7)&&_0xf281e7['next']&&(_0x56d2ba['add'](_0xf281e7['next']),_0xf281e7['next']['previous']===_0xf281e7&&(_0xf281e7['next']['previous']=null),_0xf281e7['next']=null);}function _0x13e0df(_0x354c5f,_0x315ad7,_0x2d20b9){for(let _0x41a87c=_0x2d20b9;_0x41a87c<_0x315ad7['length'];_0x41a87c++){const _0x448228=_0x4fc26d(_0x354c5f,_0x315ad7[_0x41a87c]);_0x448228&&(_0x448228[0x0]['next']=_0x448228[0x1],_0x448228[0x1]['previous']=_0x448228[0x0],_0x27598['add'](_0x448228[0x0]),_0x2d03aa['add'](_0x448228[0x1]));}}function _0x4fc26d(_0x149001,_0x28f970){if(_0x149001['author']['id']!==_0x28f970['author']['id'])return null;const _0x33bb9d=_0x171c99['get'](_0x149001)(_0x149001,_0x28f970,_0x52d39a['get'](_0x149001),_0x52d39a['get'](_0x28f970));if(!_0x33bb9d)return null;return _0x171c99['get'](_0x28f970)(_0x149001,_0x28f970,_0x52d39a['get'](_0x149001),_0x52d39a['get'](_0x28f970))?_0x33bb9d[0x1]['commentThread']&&_0x33bb9d[0x1]['commentThread']['length']?null:_0x33bb9d:null;}_0x56d2ba['size']&&this['_refreshSuggestionsChain'](_0x56d2ba);}['_refreshAttributeSuggestionsChain'](_0x148cb9){if(0x0==_0x148cb9['length'])return;const _0x5dd31a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x280794=>'attribute'==_0x280794['type']&&_0x280794['_isDataLoaded']),_0x1870a6=[],_0x3d534f=new Map();for(const _0x14de67 of _0x5dd31a){const _0xf8a0a2=_0x56d605(_0x14de67['attributes']);_0x3d534f['has'](_0xf8a0a2)||(_0x3d534f['set'](_0xf8a0a2,_0x1870a6['length']),_0x1870a6['push']([]));const _0x2be85c=_0x3d534f['get'](_0xf8a0a2);_0x1870a6[_0x2be85c]['push'](_0x14de67);}!(function(){_0x1870a6['sort']((_0x99028,_0x1196f1)=>{const _0x4af571=_0x99028[0x0]['createdAt'],_0x20949a=_0x1196f1[0x0]['createdAt'];return _0x4af571==_0x20949a?_0x99028[0x0]['attributes']['groupId']<_0x1196f1[0x0]['attributes']['groupId']?-0x1:0x1:_0x4af571<_0x20949a?-0x1:0x1;});for(const _0x54c79f of _0x1870a6)_0x54c79f['sort']((_0x3bb34f,_0x25ead2)=>_0x3bb34f['id']<_0x25ead2['id']?-0x1:0x1);}());for(let _0x4a8e16=0x0;_0x4a8e16<_0x1870a6['length'];_0x4a8e16++){if(0x0==_0x1870a6[_0x4a8e16]['length'])continue;const _0x5674ae=[];for(let _0x532436=_0x4a8e16+0x1;_0x532436<_0x1870a6['length'];_0x532436++)0x0!=_0x1870a6[_0x532436]['length']&&_0x327c19(_0x1870a6[_0x4a8e16],_0x1870a6[_0x532436])&&_0x5674ae['push'](_0x532436);for(const _0x5965af of _0x5674ae)_0x1870a6[_0x4a8e16]=_0x1870a6[_0x4a8e16]['concat'](_0x1870a6[_0x5965af]),_0x1870a6[_0x5965af]=[];}for(const _0xa006fe of _0x1870a6)for(let _0x7eea11=0x0;_0x7eea11<_0xa006fe['length'];_0x7eea11++){const _0x7c87f9=_0xa006fe[_0x7eea11+0x1]||null;_0xa006fe[_0x7eea11]['next']!==_0x7c87f9&&(_0xa006fe[_0x7eea11]['next']=_0x7c87f9);}for(const _0x42af44 of _0x1870a6)for(let _0x36a2fe=0x0;_0x36a2fe<_0x42af44['length'];_0x36a2fe++){const _0x3df0b5=_0x42af44[_0x36a2fe-0x1]||null;_0x42af44[_0x36a2fe]['previous']!==_0x3df0b5&&(_0x42af44[_0x36a2fe]['previous']=_0x3df0b5);}function _0x327c19(_0x1d39a3,_0x667a1){if(_0x1d39a3[0x0]['attributes']['groupId']!==_0x667a1[0x0]['attributes']['groupId']&&_0x1d39a3[0x0]['author']!==_0x667a1[0x0]['author'])return!0x1;if(!function(_0x2136a1,_0x439161){if(!_0x2136a1['hasComments']&&!_0x439161['hasComments'])return!0x0;if(_0x2136a1['hasComments']&&_0x439161['hasComments'])return!0x1;if(_0x2136a1['hasComments']&&_0x439161['createdAt']<_0x2136a1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x439161['hasComments']&&_0x2136a1['createdAt']<_0x439161['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1d39a3[0x0],_0x667a1[0x0]))return!0x1;const _0x4204e1=Jt(_0x1d39a3[0x0]['attributes'],['groupId','trackingSessionId']),_0x10e922=Jt(_0x667a1[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x1a3d04(_0x4204e1,_0x10e922))return!0x1;if(_0x1d39a3[0x0]['attributes']['groupId']==_0x667a1[0x0]['attributes']['groupId'])return!0x0;if(_0x1d39a3[0x0]['attributes']['trackingSessionId']!==_0x667a1[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x1d39a3['every'](_0x435836=>_0x667a1['some'](_0x293668=>_0x435836['getFirstRange']()['isEqual'](_0x293668['getFirstRange']())))&&_0x667a1['every'](_0x20f036=>_0x1d39a3['some'](_0x4b902b=>_0x20f036['getFirstRange']()['isEqual'](_0x4b902b['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x285946){const _0x4857ec=Array['from'](_0x285946),_0x3d2502=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2995a6=_0x3d2502['filter'](_0x433034=>!_0x285946['has'](_0x433034)),_0x58c4c9=new Map(_0x4857ec['map'](_0x41f2da=>[_0x41f2da,this['_suggestionFactory']['getSuggestionCallback'](_0x41f2da['type'],_0x41f2da['subType'],'join')])),_0x3f6644=new Map(_0x3d2502['map'](_0x1a88f6=>[_0x1a88f6,_0x1a88f6['getRanges']()]));for(let _0x30227e=0x0;_0x30227e<_0x4857ec['length'];_0x30227e++){if(_0x495549(this,_0x4857ec[_0x30227e],_0x4857ec,_0x30227e+0x1))return!0x0;}for(let _0x5aa5ad=0x0;_0x5aa5ad<_0x4857ec['length'];_0x5aa5ad++){if(_0x495549(this,_0x4857ec[_0x5aa5ad],_0x2995a6,0x0))return!0x0;}return!0x1;function _0x495549(_0x286cd3,_0x335152,_0x3421b4,_0x24ade6){for(let _0x14c406=_0x24ade6;_0x14c406<_0x3421b4['length'];_0x14c406++){const _0x22909c=_0x3421b4[_0x14c406];if(_0x22909c['type']!==_0x335152['type']||_0x22909c['author']['id']!==_0x335152['author']['id']||_0x22909c['subType']!==_0x335152['subType'])continue;if(!en(_0x335152,_0x22909c))continue;if('attribute'==_0x335152['type']&&_0x335152['data']['oldValue']!=_0x22909c['data']['oldValue'])continue;if('attribute'==_0x335152['type']&&_0x286cd3['_isBlockAttribute'](_0x335152['data']['key']))continue;if('formatBlock'==_0x335152['type']){const _0x520d40=_0x286cd3['editor']['model'],_0x283162=_0x335152['getContainedElement']();if(_0x283162&&(_0x520d40['schema']['isObject'](_0x283162)||_0x520d40['schema']['isLimit'](_0x283162)))continue;}const _0x42b669=_0x58c4c9['get'](_0x335152),_0x58b48c=_0x3f6644['get'](_0x335152),_0x3b4763=_0x3f6644['get'](_0x22909c),_0x584a6e=_0x335152['commentThread']&&_0x335152['commentThread']['length'],_0x243644=_0x22909c['commentThread']&&_0x22909c['commentThread']['length'];if(!_0x584a6e&&_0x42b669(_0x3b4763,_0x58b48c))return _0x286cd3['_joinSuggestions'](_0x22909c,_0x335152),_0x3f6644['delete'](_0x335152),!0x0;if(!_0x243644&&_0x42b669(_0x58b48c,_0x3b4763))return _0x286cd3['_joinSuggestions'](_0x335152,_0x22909c),_0x3f6644['delete'](_0x22909c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x22b09f,_0x24d1ed){if(_0x22b09f['isMultiRange']){for(const _0x135f3f of _0x24d1ed['getRanges']())_0x22b09f['addRange'](_0x135f3f);}else{const _0x3d91ab=_0x24d1ed['getFirstRange']()['end'];this['_setSuggestionRange'](_0x22b09f,this['_model']['createRange'](_0x22b09f['getFirstRange']()['start'],_0x3d91ab));}_0x24d1ed['removeMarkers']();}['_getMarkerAnnouncementText'](_0x53703f,_0x27896d,_0x2e8973){const _0x886967=_0x53703f['startsWith']('format')||_0x53703f['startsWith']('attribute')?'FORMATTING':_0x53703f['toUpperCase']();return o(this['editor']['locale'],_0x27896d+'_'+_0x886967+'_SUGGESTION_ANNOUNCEMENT',_0x2e8973);}['_initAriaMarkerChangeAnnouncements'](){const _0x450849=this['editor'];if(!_0x450849['ui'])return;const {ariaLiveAnnouncer:_0x295437}=_0x450849['ui'];_0x35b4f6(this['_model'],({left:_0x254d37,entered:_0x294c24})=>{for(const _0x728c95 of _0x254d37){const {group:_0x1ba396,type:_0x4096e4}=this['_splitMarkerName'](_0x728c95['name']);if('suggestion'===_0x1ba396){_0x295437['announce'](this['_getMarkerAnnouncementText'](_0x4096e4,'LEAVE'));break;}}for(const _0x185179 of _0x294c24){const {group:_0x42ca81,type:_0x4f6ffc}=this['_splitMarkerName'](_0x185179['name']);if('suggestion'===_0x42ca81){_0x295437['announce'](this['_getMarkerAnnouncementText'](_0x4f6ffc,'ENTER',_0xda6fcd(_0x39921e)));break;}}});}['_processAttributeChanges'](_0xe00239){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5c6c59=this['editor'],_0x2fd135=_0x5c6c59['model']['document']['differ']['getChanges']();if(0x0==_0x2fd135['length'])return!0x1;const _0x22da41=[],_0x4202ab=_0x2fd135['filter'](_0x3b6aba=>'attribute'==_0x3b6aba['type']),_0x3dc0a5=_0x2fd135['filter'](_0x2aeda2=>'insert'==_0x2aeda2['type']&&'$text'!=_0x2aeda2['name']),_0x8f4a31=_0x2fd135['filter'](_0x37a47c=>'remove'==_0x37a47c['type']&&'$text'!=_0x37a47c['name']);for(const _0x55ba45 of _0x4202ab)_0x22da41['push']({'key':_0x55ba45['attributeKey'],'newValue':_0x55ba45['attributeNewValue'],'oldValue':_0x55ba45['attributeOldValue'],'range':Zt(_0x55ba45['range'],_0x5c6c59['model'])});for(const _0x41324e of _0x3dc0a5){const _0x67449d=_0x8f4a31['find'](_0x505f6b=>_0x505f6b['position']['isEqual'](_0x41324e['position']));_0x67449d&&_0x22da41['push']({'key':m,'newValue':_0x41324e['name'],'oldValue':_0x67449d['name'],'range':_0x5c6c59['model']['createRangeOn'](_0x41324e['position']['nodeAfter'])});}return 0x0!=_0x22da41['length']&&this['_reduceExistingSuggestions'](_0xe00239,_0x22da41);}['_processAttributeSuggestions'](_0x30cde3){let _0x36c05c=!0x1;const _0x5bb779=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3b32d8=>_0x3b32d8['data']['newRange']&&_0x3b32d8['name']['startsWith']('suggestion:attribute:'));for(const _0x46bb73 of _0x5bb779){const {subType:_0x20932e,id:_0x402fac}=this['_splitMarkerName'](_0x46bb73['name']),_0x441b50=_0x20932e['split']('|')[0x0];for(const _0x41fbc5 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x41fbc5['id']!=_0x402fac&&'attribute'==_0x41fbc5['type']&&_0x41fbc5['data']&&_0x41fbc5['data']['key']==_0x441b50&&_0x41fbc5['getFirstRange']()['isIntersecting'](_0x46bb73['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x41fbc5,_0x46bb73['data']['newRange'],_0x30cde3),_0x36c05c=!0x0);}return _0x36c05c;}['recordAttributeChanges'](_0x62d23e){this['_recordAttributeSuggestions']=!0x0,_0x62d23e();}['_isRegisteredAttribute'](_0x5dc94b){return this['editor']['plugins']['get'](_0x55e6d0)['isRegisteredAttribute'](_0x5dc94b);}['_reduceExistingSuggestions'](_0x13c3e3,_0x4bf8f2){if(0x0==_0x4bf8f2['length'])return!0x1;let _0x375639=!0x1;for(const _0x19bf5b of _0x4bf8f2){const _0x1b0854=this['_findSuggestions'](_0x19bf5b['range'],'attribute')['filter'](_0x53e4c4=>!_0x53e4c4['meta']['isNextTo'])['map'](_0x2653e2=>_0x2653e2['suggestion']),_0x4ecab9=_0x56d605({'newValue':_0x19bf5b['newValue']});_0x1b0854['filter'](_0x5dc856=>{const [_0xb8c3d3,_0x373b69]=_0x5dc856['subType']['split']('|');return _0xb8c3d3==_0x19bf5b['key']&&_0x373b69!=_0x4ecab9;})['forEach'](_0x168456=>{this['_reduceSuggestionAttributeRange'](_0x168456,_0x19bf5b['range'],_0x13c3e3),_0x375639=!0x0;});}return _0x375639;}['_reduceSuggestionAttributeRange'](_0x4a2bfd,_0x57ac47,_0x5cddba){const _0x4dfa9e=_0x4a2bfd['getFirstRange']()['getDifference'](_0x57ac47);0x0!==_0x4dfa9e['length']?0x1!==_0x4dfa9e['length']?this['_breakSuggestionMarker'](_0x4a2bfd,_0x57ac47['start'],_0x57ac47['end']):this['_setSuggestionRange'](_0x4a2bfd,_0x4dfa9e[0x0]):_0x5cddba['removeMarker'](_0x4a2bfd['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x22b3bc){this['_editor']=_0x22b3bc,this['_model']=_0x22b3bc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5555a9,_0x368f17,_0x31c94b,_0x520f5c,_0x1759db,_0x5e2395,_0x3369d1){return new T(this['_model'],{'type':_0x5555a9,'subType':_0x368f17,'id':_0x31c94b,'originalSuggestionId':_0x3369d1,'author':_0x520f5c,'creator':_0x520f5c,'attributes':_0x1759db,'onAttributesChange':_0x5e2395,'onAccept':(..._0x54e5cb)=>this['getSuggestionCallback'](_0x5555a9,_0x368f17,'accept')(..._0x54e5cb),'onDiscard':(..._0x442d65)=>this['getSuggestionCallback'](_0x5555a9,_0x368f17,'discard')(..._0x442d65)});}['registerCustomCallback'](_0x5e56ac,_0x94efa7,_0xb3096b,_0x5d99d4){const _0x55f040=_0x5e56ac+':'+_0x94efa7+':'+_0xb3096b;this['_customCallbacks']['set'](_0x55f040,_0x5d99d4);}['getSuggestionCallback'](_0xa7d7a7,_0x2aefab,_0x178b66){const _0x3add22=_0xa7d7a7+':'+_0x2aefab+':'+_0x178b66;return this['_customCallbacks']['get'](_0x3add22)||this['_defaultCallbacks']['get'](_0xa7d7a7+':'+_0x178b66);}['_registerDefaultCallbacks'](){const _0x1e9e06=()=>!0x1,_0x31fc43=_0x4bae08=>{_0x4bae08['sort']((_0x250482,_0x2e0e48)=>_0x250482['start']['isBefore'](_0x2e0e48['start'])?0x1:-0x1),this['_model']['change'](_0x541fa7=>{for(const _0x533fa3 of _0x4bae08){let _0x59f84a;_0x59f84a=_0x533fa3['end']['isAtEnd']&&_0x533fa3['end']['parent']==_0x533fa3['start']['nodeAfter']?_0x541fa7['createSelection'](_0x533fa3['start']['nodeAfter'],'on'):_0x541fa7['createSelection'](_0x533fa3),this['_model']['deleteContent'](_0x59f84a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x5bd4e1=(_0x5406d7,_0x310b83)=>{_0x310b83&&this['_model']['change'](_0x188d5b=>{const {commandName:_0x400ec9,commandParams:_0x19501f=[]}=_0x310b83,_0x5da991=_0x5406d7['map'](_0x8510d3=>(Kt(_0x8510d3)&&(_0x8510d3=this['_model']['createRange'](_0x8510d3['end'])),_0x8510d3))['filter'](_0x1c1d8b=>'$graveyard'!==_0x1c1d8b['root']['rootName']);if(_0x5da991['length']<0x1)return;const _0x24bf4f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x49186f=>_0x2ed57b['fromRange'](_0x49186f));_0x188d5b['setSelection'](_0x5da991);for(const _0x2b4b35 of this['_editor']['commands']['commands']())_0x2b4b35['refresh']();_0x19501f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x400ec9,..._0x19501f);const _0xefbf04=_0x24bf4f['filter'](_0x3661f3=>'$graveyard'!=_0x3661f3['root']['rootName']);_0xefbf04['length']>0x0&&_0x188d5b['setSelection'](_0xefbf04);for(const _0x465330 of _0x24bf4f)_0x465330['detach']();});},_0x4acc8e=(_0x1d066b,_0x333547)=>0x1==_0x1d066b['length']&&0x1==_0x333547['length']&&_0x1d066b[0x0]['end']['isEqual'](_0x333547[0x0]['start']),_0x45744f=(_0x203b4f,_0x2dee21,_0x2e3889,_0x3fa737)=>nn(_0x203b4f,_0x2dee21,_0x2e3889,_0x3fa737)?[_0x203b4f,_0x2dee21]:nn(_0x2dee21,_0x203b4f,_0x3fa737,_0x2e3889)?[_0x2dee21,_0x203b4f]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e9e06),this['_defaultCallbacks']['set']('insertion:discard',_0x31fc43),this['_defaultCallbacks']['set']('insertion:join',_0x4acc8e),this['_defaultCallbacks']['set']('insertion:chain',_0x45744f),this['_defaultCallbacks']['set']('deletion:accept',_0x31fc43),this['_defaultCallbacks']['set']('deletion:discard',_0x1e9e06),this['_defaultCallbacks']['set']('deletion:join',_0x4acc8e),this['_defaultCallbacks']['set']('deletion:chain',_0x45744f),this['_defaultCallbacks']['set']('formatInline:accept',_0x5bd4e1),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e9e06),this['_defaultCallbacks']['set']('formatInline:join',_0x4acc8e),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e9e06),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5bd4e1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e9e06),this['_defaultCallbacks']['set']('formatBlock:join',_0x4acc8e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e9e06),this['_defaultCallbacks']['set']('attribute:accept',_0x1e9e06),this['_defaultCallbacks']['set']('attribute:discard',(_0x16c02a,_0x4a816d)=>{if(!_0x4a816d)return;const _0x3ac6d0=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x12ef8f=>{if(_0x4a816d['key']==m)for(const _0x395b57 of _0x16c02a){const _0xa4e5e6=_0x395b57['start']['nodeAfter'],_0x382feb=_0x4a816d['oldValue'];_0x12ef8f['rename'](_0xa4e5e6,_0x382feb);}else{if(_0x3ac6d0['_isBlockAttribute'](_0x4a816d['key'])){for(const _0x308045 of _0x16c02a)void 0x0!==_0x4a816d['oldValue']?_0x12ef8f['setAttribute'](_0x4a816d['key'],_0x4a816d['oldValue'],_0x308045['start']['nodeAfter']):_0x12ef8f['removeAttribute'](_0x4a816d['key'],_0x308045['start']['nodeAfter']);}else{for(const _0x6a53d0 of _0x16c02a)_0x4a816d['oldValue']?_0x12ef8f['setAttribute'](_0x4a816d['key'],_0x4a816d['oldValue'],_0x6a53d0):_0x12ef8f['removeAttribute'](_0x4a816d['key'],_0x6a53d0);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4acc8e);}}function zt(_0x2e4421,_0x34b7a4,_0x4e5da1){for(const _0x39f0ab of _0x34b7a4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x39f0ab['root']==_0x39f0ab)return!0x1;if(!_0x4e5da1['containsItem'](_0x39f0ab))return!0x1;if(_0x2e4421['isObject'](_0x39f0ab)||_0x2e4421['isLimit'](_0x39f0ab))return!0x0;}return!0x1;}function Kt(_0x300031){return _0x300031['end']['parent']==_0x300031['start']['nodeAfter']&&_0x300031['end']['isAtStart'];}function Wt(_0x1fc3f5,_0x56a40f,_0x4ad26d,_0x39652c){const _0x3ee77e=_0xc55bac=>!_0xc55bac['item']['is']('$textProxy')&&!_0x39652c['isObject'](_0xc55bac['item']),_0x25ed17=_0x1fc3f5['start']['getLastMatchingPosition'](_0x3ee77e),_0x55f46b=_0x1fc3f5['end']['getLastMatchingPosition'](_0x3ee77e,{'direction':'backward'});return(!_0x1fc3f5['start']['isEqual'](_0x25ed17)||!_0x1fc3f5['end']['isEqual'](_0x55f46b))&&(_0x25ed17['isBefore'](_0x55f46b)?_0x4ad26d['updateMarker'](_0x56a40f,{'range':_0x4ad26d['createRange'](_0x25ed17,_0x55f46b)}):_0x4ad26d['removeMarker'](_0x56a40f),!0x0);}function Ht(_0x269ac5){return _0x56d605(_0x269ac5);}function Qt(_0xbdc1c4){const _0x1ea7eb=_0xbdc1c4['start']['nodeAfter'];return _0x1ea7eb&&_0x1ea7eb['is']('element');}function Xt(_0x27087b){return Kt(_0x27087b)||function(_0x1162f1){return _0x1162f1['start']['parent']==_0x1162f1['end']['nodeBefore']&&_0x1162f1['start']['isAtEnd'];}(_0x27087b);}function Yt(_0x54f71c,_0x3efd11){try{const _0x26f03e=_0x54f71c['getRange']();for(const _0x31cd88 of _0x3efd11)if(_0x54f71c!==_0x31cd88&&_0x26f03e&&_0x26f03e['isIntersecting'](_0x31cd88['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1f0418,_0x5084b4){return null==_0x1f0418['end']['nodeBefore']&&_0x1f0418['end']['parent']==_0x1f0418['start']['nodeAfter']?tn(_0x1f0418['start']['nodeAfter'],_0x5084b4):_0x1f0418;}function tn(_0x3de9a4,_0x1406d5){const _0xf6dda4=_0x1406d5['schema']['isObject'](_0x3de9a4)||_0x1406d5['schema']['isSelectable'](_0x3de9a4);return _0x1406d5['createRange'](_0x1406d5['createPositionAt'](_0x3de9a4,'before'),_0xf6dda4?_0x1406d5['createPositionAfter'](_0x3de9a4):_0x1406d5['createPositionAt'](_0x3de9a4,'end'));}function nn(_0x410500,_0xb20210,_0x5832c8,_0x44adc0){return!!en(_0x410500,_0xb20210)&&_0x5832c8['end']['isEqual'](_0x44adc0['start']);}function en(_0x2113ec,_0x393b3b){if(!_0x2113ec['_isDataLoaded']||!_0x393b3b['_isDataLoaded'])return!0x1;const _0x2292a5=new Set(Object['keys'](_0x2113ec['attributes'])),_0x3aff8d=new Set(Object['keys'](_0x393b3b['attributes']));if(_0x2292a5['delete']('groupId'),_0x3aff8d['delete']('groupId'),0x0==_0x2292a5['size']&&0x0==_0x3aff8d['size'])return!0x0;if(_0x2292a5['size']!=_0x3aff8d['size'])return!0x1;const _0x1c200d={..._0x2113ec['attributes']},_0x18b433={..._0x393b3b['attributes']};return delete _0x1c200d['groupId'],delete _0x18b433['groupId'],JSON['stringify'](_0x1c200d)==JSON['stringify'](_0x18b433);}function sn(_0x5f315b,_0x2b3ae8){const _0x2bcb55=on(_0x5f315b['attributes']),_0xf6b4cf=on(_0x2b3ae8);if(!_0x5f315b['_isDataLoaded'])return!0x1;for(const _0x278972 of Object['keys'](_0xf6b4cf))if(!_0x1a3d04(_0x2bcb55[_0x278972],_0xf6b4cf[_0x278972]))return!0x1;return!0x0;}function on(_0x2eaeae){const _0x32cc86=Object['assign']({},_0x2eaeae);return delete _0x32cc86['skipNestingCheck'],delete _0x32cc86['tablePasteChainId'],_0x32cc86;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x3aea00(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x26ddff,_0x5ee722,_0x1f1d35,_0x30b16f){super(),this['model']=_0x5ee722,this['view']=_0x1f1d35,this['commentThreadController']=_0x30b16f,this['_editor']=_0x26ddff,this['_acceptCommand']=_0x26ddff['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x26ddff['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x15e924,_0x370189)=>_0x15e924||_0x370189),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xf10495=>_0xf10495&&this['_editor']['model']['canEditAt'](_0x5ee722['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xefeeee=>_0xefeeee&&this['_editor']['model']['canEditAt'](_0x5ee722['getRanges']())),this['_pendingAction']=null,_0x1f1d35['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f1d35,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f1d35,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f1d35,'change:isDirty',()=>{_0x1f1d35['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 _0x4dd194=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4dd194);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x28bdc3{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x954863,_0xbc1aac,_0x547ab0,_0x6df08a){super(_0x954863),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x15f86c(_0x954863,o(_0x954863,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xbc1aac['authoredAt']),this['bind']('authoredAt')['to'](_0xbc1aac),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',_0xbc1aac,'authoredAt',this,'descriptionParts',(_0x529fd0,_0x30ecfc,_0x5d117c)=>{const _0x12c515=_0x5d117c['map'](_0x3fec7b=>ls(_0x3fec7b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x529fd0-0x1,_0xbc1aac['author']['name'],_0x30ecfc?_0x6df08a['formatDateTime'](_0x30ecfc):'',new DOMParser()['parseFromString'](_0x12c515,'text/html')['body']['textContent']]);}),this['focusables']=new _0x416963(),this['focusTracker']=new _0x327580(),this['keystrokes']=new _0x3b42a9(),this['focusCycler']=new _0x5ed207({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4754bc=>_0x4754bc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xbc1aac,this['_localUser']=_0x547ab0,this['_config']=_0x6df08a,_0x6df08a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7a1f11(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x249e41}=this['_config'];this['commentsListView']=new _0x249e41(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',_0x347851=>_0x347851+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3242f0,_0x4f2eb5)=>_0x3242f0||!!_0x4f2eb5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf4d97f}=this['_config'],_0x28039e=new _0xf4d97f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1e0a86=_0x28039e['commentInputView'];return _0x28039e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1e0a86,'value',(_0x50025c,_0x30b7df,_0x480f31)=>!!_0x480f31||_0x50025c&&!_0x30b7df),_0x1e0a86['on']('submit',(_0x47b3ca,_0x36a0ba)=>{this['fire']('addComment',_0x36a0ba),_0x1e0a86['editor']['setData']('');}),_0x1e0a86['on']('cancel',()=>this['focus']()),_0x1e0a86['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x28039e;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x54fff4,_0x47e4d8,_0xb78c31,_0x46c836){super(_0x54fff4,_0x47e4d8,_0xb78c31,_0x46c836),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3bbc8d=>_0x3bbc8d&&_0x3bbc8d[0x0]?_0x3bbc8d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x22cea3,_0x3d0b4d)=>{let _0x2ef897='';for(const _0x20e137 of _0x22cea3)_0x2ef897+='<p>'+ls(_0x20e137['content'],_0x20e137['color'])+'</p>';return _0x3d0b4d?_0x2ef897:_0x44dce4(_0x2ef897,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x46c836['SuggestionView'](_0x54fff4,_0x47e4d8,{'formatDateTime':_0x46c836['formatDateTime']}),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 _0x4c13d4=this['bindTemplate'],_0x4ec1b3=[this['suggestionView']];return this['commentsListView']&&_0x4ec1b3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4ec1b3['push'](this['commentThreadInputView']),_0x4ec1b3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4c13d4['if']('isActive','ck-suggestion-wrapper--active'),_0x4c13d4['to']('type',_0x2454f3=>'ck-suggestion-'+_0x2454f3),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':_0x4c13d4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4ec1b3};}['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));}}class we extends _0x28bdc3{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2fcb53,_0x5ca293,_0x2ca809){super(_0x2fcb53),this['_model']=_0x5ca293,this['_config']=_0x2ca809,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5ca293),this['acceptButton']=this['_createButton'](o(_0x2fcb53,'Accept\x20suggestion'),_0x51b180,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2fcb53,'Discard\x20suggestion'),_0x3a2f9c,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x322d3d(_0x2fcb53,_0x5ca293['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x416963([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x327580(),this['keystrokes']=new _0x3b42a9(),this['focusCycler']=new _0x5ed207({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x530734=>_0x530734['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2292c5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2292c5['innerHTML']=this['description'],this['on']('change:description',(_0x4d9237,_0xc41263,_0x5ced8a)=>{_0x2292c5['innerHTML']=_0x5ced8a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5cf241=this['bindTemplate'],_0x3f45fc=[{'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':_0x5cf241['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5cf241['to']('authoredAt',_0x3b11e8=>this['_config']['formatDateTime'](_0x3b11e8))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3f45fc['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'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':_0x3f45fc}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x178ade,_0x3aa8b6,_0x2b8039,_0x14629a,_0x30da34){const _0x5e9765=new _0x21e5b5(this['locale']);return _0x5e9765['set']({'label':_0x178ade,'icon':_0x3aa8b6,'tooltip':!0x0,'tooltipPosition':_0x30da34}),_0x5e9765['extendTemplate']({'attributes':{'class':_0x2b8039}}),_0x5e9765['on']('execute',()=>{this['fire'](_0x14629a,this['_model']['id']);}),_0x5e9765;}['_setupKeyboardNavigation'](){const _0xfd0dea=this['element'];this['keystrokes']['listenTo'](_0xfd0dea);for(const _0x4d9a02 of this['focusables'])this['focusTracker']['add'](_0x4d9a02['element']),this['keystrokes']['listenTo'](_0x4d9a02['element']);this['keystrokes']['set']('enter',(_0x5e30d0,_0x32b08c)=>{_0xfd0dea===_0x5e30d0['target']&&(this['focusCycler']['focusFirst'](),_0x32b08c());}),this['keystrokes']['set']('esc',(_0xb6bb0,_0x4864d5)=>{_0xfd0dea!==_0xb6bb0['target']&&(this['focus'](),_0x4864d5());});}}class u extends _0x562758{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3f15d1,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b3bd5){super(_0x5b3bd5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x50704a=this['editor']['config'];_0x50704a['define']('trackChanges.SuggestionThreadView',fe),_0x50704a['define']('trackChanges.SuggestionView',we),_0x50704a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x50704a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x28f8aa,_0x427be2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2c93f3,_0x1b4b13]of this['_handleControllerBuffer']){const _0x18855f=this['_suggestionToController']['has'](_0x2c93f3);_0x18855f||_0x1b4b13?_0x18855f&&_0x1b4b13&&this['_destroyController'](_0x2c93f3):this['_initializeController'](_0x2c93f3);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x28f8aa,_0x427be2);}['init'](){const _0x2283ae=this['editor'],_0x5eb184=_0x2283ae['plugins']['get']('TrackChangesEditing'),_0x4b8f73=_0x2283ae['plugins']['get']('Annotations'),_0x4321ce=_0x2283ae['plugins']['get']('EditorAnnotations'),_0x39eaa5=_0x2283ae['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4321ce['addSourceCollector'](()=>{const _0x194547=[];for(const [_0x181fae,_0x3ca065]of Array['from'](this['_suggestionToController'])){const _0xd7c7a5=_0x181fae['getAllAdjacentSuggestions'](),_0x2b5024=[];for(const _0xf78104 of _0xd7c7a5){if(!_0xf78104['isInContent'])continue;if(_0xf78104['isMultiRange']){_0x2b5024['push'](..._0xf78104['getRanges']());continue;}const _0x39e978=_0xf78104['getFirstRange']();if(_0x2b5024['length']>0x0){const _0x1540f1=_0x2b5024[0x0]['getJoined'](_0x39e978);if(_0x1540f1){_0x2b5024[0x0]=_0x1540f1;continue;}}_0x2b5024['push'](_0x39e978);}_0x194547['push']([_0x3ca065['view'],_0x2b5024]);}return _0x194547;}),this['listenTo'](_0x5eb184,'suggestionLoaded',(_0x4941c4,_0x5bbebe)=>{this['listenTo'](_0x5bbebe,'change:previous',(_0x3805b6,_0xb5c474,_0x43db66,_0xa2198a)=>{_0x5bbebe['isInContent']&&(null==_0x43db66?(this['_updateController'](_0xa2198a['head']),this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x1)):(this['_updateController'](_0x43db66['head']),null==_0xa2198a&&this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x0)));}),null!==_0x5bbebe['previous']?this['_updateController'](_0x5bbebe['head']):this['_handleSuggestionControllerDelayed'](_0x5bbebe,!0x1);}),this['listenTo'](_0x5eb184,'suggestionUnloaded',(_0x14daae,_0xbf7e9b,_0x51f740)=>{this['stopListening'](_0xbf7e9b,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbf7e9b),this['_suggestionToController']['has'](_0xbf7e9b)&&this['_destroyController'](_0xbf7e9b),_0x51f740&&this['_updateController'](_0x51f740['head']);}),this['listenTo'](_0x5eb184,'suggestionChanged',(_0x108ce1,_0x9c09fe)=>{this['_updateController'](_0x9c09fe);}),this['listenTo'](_0x4b8f73,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x39eaa5,'addComment',(_0x2b9dc2,{threadId:_0x306fc0,isFromAdapter:_0x44b7dd})=>{if(_0x44b7dd||!_0x5eb184['hasSuggestion'](_0x306fc0))return;const _0x150b06=_0x5eb184['getSuggestion'](_0x306fc0);this['_suggestionToController']['get'](_0x150b06)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4cbd8a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xf9b86c;for(const _0x33e534 in _0x4cbd8a){const _0x2b8b6f=_0x33e534,_0x1a71b1=_0x4cbd8a[_0x2b8b6f];if('trackChangesLicenseKeyValid'==_0x1a71b1||'trackChangesLicenseKeyInvalid'==_0x1a71b1||'trackChangesLicenseKeyExpired'==_0x1a71b1||'trackChangesLicenseKeyDomainLimit'==_0x1a71b1||'trackChangesLicenseKeyNotAllowed'==_0x1a71b1||'trackChangesLicenseKeyEvaluationLimit'==_0x1a71b1||'trackChangesLicenseKeyUsageLimit'==_0x1a71b1){delete _0x4cbd8a[_0x2b8b6f],_0xf9b86c=_0x1a71b1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0xf9b86c&&_0x4cbd8a['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x16357c){const _0x4a1ae8=this['_suggestionToController']['get'](_0x16357c);if(!_0x4a1ae8)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4a1ae8['view'])||null;}['getSuggestionForAnnotation'](_0x5ce3dd){const _0x2238b5=this['_viewToController']['get'](_0x5ce3dd['innerView']);return _0x2238b5?_0x2238b5['model']:null;}['_refreshActiveMarkers'](){const _0x27c941=this['editor']['plugins']['get']('Annotations'),_0xc88912=this['editor']['plugins']['get']('TrackChangesEditing'),_0x456ac2=Array['from'](_0x27c941['activeAnnotations'],_0x4cec02=>_0x4cec02['innerView'])['filter'](_0x26773c=>this['_viewToController']['has'](_0x26773c)),_0x7952a0=[];for(const _0x36ee54 of _0x456ac2){const _0x5d8202=this['_viewToController']['get'](_0x36ee54)['model']['getAllAdjacentSuggestions']();_0x7952a0['push'](..._0x5d8202['reduce']((_0x42c63f,_0x9a15cc)=>[..._0x42c63f,..._0x9a15cc['getMarkerNames']()],[]));}_0xc88912['activeMarkers']=_0x7952a0;}['_addUIComponentsToFactory'](){const _0x17abd8=this['editor'],_0x2c01ce=_0x17abd8['locale'],_0x4d3a2e=o(_0x2c01ce,'Track\x20changes'),_0x4a8eb6=new _0x41e968([{'type':'switchbutton','model':new _0x2d8df2({'withText':!0x0,'isToggleable':!0x0,'label':_0x4d3a2e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x17abd8['plugins']['has']('TrackChangesPreview')&&_0x4a8eb6['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d8df2({'withText':!0x0,'label':o(_0x2c01ce,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2a0077 of _0x4a8eb6)if(ke(_0x2a0077)){const _0x4b98bc=_0x17abd8['commands']['get'](_0x2a0077['model']['commandName']);_0x2a0077['model']['bind']('isOn','isEnabled')['to'](_0x4b98bc,'value','isEnabled');}_0x17abd8['ui']['componentFactory']['add']('trackChanges',_0x36b4d6=>this['_createToolbarButton'](_0x36b4d6,_0x4a8eb6,_0x4d3a2e)),_0x17abd8['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a0336=>this['_createMenuBarMenu'](_0x5a0336,_0x4a8eb6,_0x4d3a2e));}['_createToolbarButton'](_0x5a645,_0x4bee79,_0x22a86d){const _0x27a53a=_0x4d0c40(_0x5a645,_0x574fdd),_0x3e2e57=this['editor']['commands']['get']('trackChanges');_0x27a53a['buttonView']['set']({'tooltip':_0x22a86d,'label':_0x22a86d,'icon':_0x4c593e}),_0x27a53a['buttonView']['bind']('isOn')['to'](_0x3e2e57,'value'),_0x27a53a['buttonView']['on']('execute',()=>{_0x3e2e57['execute'](),this['editor']['editing']['view']['focus']();}),_0x7bb7d8(_0x27a53a,_0x4bee79,{'role':'menu'});const _0x58b42e=[];for(const _0x54ba46 of _0x4bee79)ke(_0x54ba46)&&_0x58b42e['push'](this['editor']['commands']['get'](_0x54ba46['model']['commandName']));const _0xc059aa=_0x27a53a['buttonView'];return _0xc059aa['actionView']['unbind']('isEnabled'),_0xc059aa['arrowView']['unbind']('isEnabled'),_0xc059aa['actionView']['bind']('isEnabled')['to'](_0x3e2e57,'isEnabled'),_0xc059aa['arrowView']['bind']('isEnabled')['toMany'](_0x58b42e,'isEnabled',(..._0x559802)=>_0x559802['some'](_0x5bfb51=>_0x5bfb51)),_0x27a53a['on']('execute',_0x21ecc6=>{this['editor']['execute'](_0x21ecc6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x27a53a;}['_createMenuBarMenu'](_0x2b7f0e,_0x580236,_0x9af6f0){const _0x566625=new _0x1e0b08(_0x2b7f0e),_0x28be66=this['editor']['commands']['get']('trackChanges');_0x566625['buttonView']['set']({'label':_0x9af6f0,'icon':_0x4c593e});const _0x2130c9=new _0x107130(_0x2b7f0e);for(const _0x481bb0 of _0x580236){if('separator'==_0x481bb0['type']){_0x2130c9['items']['add'](new _0x37e502(_0x2b7f0e));continue;}const _0x4f28c1=new _0x5a7459(_0x2b7f0e,_0x566625),_0x2a9cf2=new _0x40a314(_0x2b7f0e),_0x2e0fad=_0x481bb0['model'];_0x2a9cf2['bind'](...Object['keys'](_0x2e0fad))['to'](_0x2e0fad),_0x2a9cf2['delegate']('execute')['to'](_0x566625),_0x2a9cf2['on']('execute',()=>{this['editor']['execute'](_0x2e0fad['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f28c1['children']['add'](_0x2a9cf2),_0x2130c9['items']['add'](_0x4f28c1);}return _0x566625['bind']('isEnabled')['to'](_0x28be66,'isEnabled'),_0x566625['panelView']['children']['add'](_0x2130c9),_0x566625;}['_initializeController'](_0x2d3cdc){const _0x417a9c=this['editor'],_0x552c72=_0x417a9c['config'],_0x450cda=_0x417a9c['plugins']['get']('Annotations'),_0x155461=_0x417a9c['plugins']['get']('CommentsRepository'),_0x2f25c3=_0x417a9c['plugins']['get']('EditorAnnotations'),_0x20ac4f=_0x417a9c['plugins']['get'](_0x3f15d1)['me'],_0x5545e6=_0x552c72['get']('trackChanges')['SuggestionThreadView'],_0x11f214=_0x552c72['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x862a02,CommentThreadInputView:_0x3e7079}=_0x417a9c['plugins']['get']('CommentsUI');let _0x17215a,_0x29bdb9,_0xd20e2a;this['_annotationViews']['has'](_0x2d3cdc['id'])?(_0x29bdb9=this['_annotationViews']['get'](_0x2d3cdc['id']),_0x17215a=_0x29bdb9['mainView']):(_0x17215a=new _0x5545e6(_0x417a9c['locale'],_0x2d3cdc,_0x20ac4f,{'disableComments':this['_disableComments'],'editorConfig':{..._0x552c72['get']('comments.editorConfig'),'licenseKey':_0x552c72['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x552c72['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x552c72['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x552c72['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x39adb7(_0x552c72['get']('locale'),_0x417a9c['locale']),'CommentView':_0x552c72['get']('comments')['CommentView'],'CommentsListView':_0x862a02,'CommentThreadInputView':_0x3e7079,'SuggestionView':_0x11f214}),_0x17215a['suggestionView']['acceptButton']['on']('execute',()=>{_0x417a9c['editing']['view']['focus']();}),_0x17215a['suggestionView']['discardButton']['on']('execute',()=>{_0x417a9c['editing']['view']['focus']();}),_0x29bdb9=_0x450cda['createAnnotationView'](this['editor']['locale'],_0x17215a),_0x29bdb9['bind']('isDirty')['to'](_0x17215a,'isDirty'),_0x29bdb9['bind']('length')['to'](_0x17215a),_0x29bdb9['bind']('type')['to'](_0x17215a,'type',_0x54f80b=>'suggestion-'+_0x54f80b),_0x17215a['on']('escape',()=>{_0xd20e2a['fire']('escape');}),this['_annotationViews']['set'](_0x2d3cdc['id'],_0x29bdb9));const _0x1ca4d8=_0x155461['createCommentThreadController'](_0x2d3cdc['commentThread'],_0x17215a),_0x417171=new pe(_0x417a9c,_0x2d3cdc,_0x17215a,_0x1ca4d8),_0x4be54a=_0x2d3cdc['getAllAdjacentSuggestions']()['filter'](_0x2bcbc6=>_0x2bcbc6['isInContent']);_0x17215a['descriptionParts']=_0x417a9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4be54a),this['_suggestionToController']['set'](_0x2d3cdc,_0x417171),this['_viewToController']['set'](_0x17215a,_0x417171);const _0x394c29=()=>{const _0x49644d=[],_0x4a1b2b=_0x2d3cdc['getAllAdjacentSuggestions']()['filter'](_0x135553=>_0x135553['isInContent']);for(const _0xf57a0b of _0x4a1b2b)_0x49644d['push'](..._0xf57a0b['getMarkers']());return _0x4b32ea(_0x417a9c['editing'],_0x49644d);};_0xd20e2a=_0x450cda['createAnnotation']({'view':_0x29bdb9,'target':_0x394c29,'type':()=>'suggestion-'+_0x417171['view']['type'],'isVisible':!!_0x394c29()}),_0x155461['_bindAnnotationToEditors'](_0x17215a,_0xd20e2a),_0x450cda['add'](_0xd20e2a),_0x2f25c3['registerAnnotation'](_0xd20e2a);}['_destroyController'](_0x483fc3){const _0x528fb2=this['editor']['plugins']['get']('CommentsRepository'),_0xdcb478=this['editor']['plugins']['get']('Annotations'),_0x1c74c3=this['_suggestionToController']['get'](_0x483fc3),_0x3cefaa=_0x1c74c3['view'],_0xb763bd=_0xdcb478['getByInnerView'](_0x3cefaa);_0x528fb2['_unbindEditors'](_0x3cefaa),_0xb763bd&&_0xdcb478['remove'](_0xb763bd),this['_suggestionToController']['delete'](_0x483fc3),this['_viewToController']['delete'](_0x3cefaa),_0x1c74c3['destroy']();}['_updateController'](_0x4b38f0){if(!_0x4b38f0['isInContent']||!this['_suggestionToController']['has'](_0x4b38f0))return;const _0x3bc02e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e73db=this['_suggestionToController']['get'](_0x4b38f0),_0x5ecb1e=_0x4b38f0['getAllAdjacentSuggestions']();_0x5e73db['view']['descriptionParts']=_0x3bc02e['descriptionFactory']['getDescriptions'](_0x5ecb1e);}['destroy'](){for(const _0x3a3615 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3a3615);for(const _0x76b2ca of this['_annotationViews']['values']())_0x76b2ca['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4d11fd){return'model'in _0x4d11fd;}class Ne extends _0x562758{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xb9eb50){this['editor']['plugins']['get'](d)['adapter']=_0xb9eb50;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x446cc0){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x446cc0);}['getSuggestions']({skipNotAttached:_0x259a3a=!0x1,toJSON:_0x3110df=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x259a3a,'toJSON':_0x3110df});}['getSuggestion'](_0x3101eb){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x3101eb);}}const p=['Pagination'];class re extends _0x562758{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3735ef=this['editor'];if(_0x3735ef['config']['define']('trackChangesData.editorCreator',_0x25d9bb=>{const _0x3658a5=_0x3735ef['model']['document']['getRootNames']()['reduce']((_0x246df3,_0x1b2ea0)=>(_0x246df3[_0x1b2ea0]='',_0x246df3),{});return _0x3735ef['constructor']['create'](_0x3658a5,_0x25d9bb);}),'function'!=typeof _0x3735ef['config']['get']('trackChangesData')['editorCreator'])throw new _0x2ea645('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x499252){return P(this['editor'],!0x0,_0x499252);}['getDataWithDiscardedSuggestions'](_0x13125b){return P(this['editor'],!0x1,_0x13125b);}}class Fe extends _0x562758{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31f5ca){function _0x4d4ba8(_0x318eb0){return _0x318eb0['map'](_0x333780=>String['fromCharCode'](_0x333780))['join']('');}super(_0x31f5ca),this['result']='end',_0x31f5ca[_0x4d4ba8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d4ba8([0x76,0x69,0x65,0x77])][_0x4d4ba8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d4ba8([0x61,0x75,0x74,0x6f]),_0x31f5ca[_0x4d4ba8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d4ba8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d4ba8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d4ba8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d4ba8([0x6f,0x6b])});}['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 De(_0x5d94f3){return void 0x0!==_0x5d94f3['getRootsAttributes'];}async function P(_0x47021d,_0x44b03e,_0x2b4986){const _0x57723f=_0x3050d5(_0x47021d,p);_0x57723f['plugins']['push'](d,Fe),_0x57723f['rootsAttributes']=De(_0x47021d)?_0x47021d['getRootsAttributes']():void 0x0;const _0x28781b=document['createDocumentFragment'](),_0x292127=_0x47021d['config']['get']('trackChangesData')['editorCreator'],_0x540d4a=await _0x292127(_0x57723f,()=>function(_0xa19b1e){const _0x28ce44=document['createElement']('div');return _0xa19b1e['appendChild'](_0x28ce44),_0x28ce44;}(_0x28781b));!function(_0x44cba7,_0x2e0950){const _0x1022bd=_0x44cba7['model']['document']['getRootNames']()['reduce']((_0x53f7db,_0x570694)=>(_0x53f7db[_0x570694]=_0x44cba7['data']['get']({'rootName':_0x570694}),_0x53f7db),{}),_0x5a4263=_0x44cba7['plugins']['get']('Users')['users']['map'](_0x36c45c=>({'id':_0x36c45c['id'],'name':_0x36c45c['name']})),_0x244377=_0x44cba7['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xccda1c=_0x44cba7['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x47038c=_0x2e0950['plugins']['get']('Users'),_0x2a784d=_0x2e0950['plugins']['get']('TrackChangesEditing'),_0x403f5b=_0x2e0950['plugins']['get']('CommentsRepository');for(const _0x3eb341 of _0x403f5b['getCommentThreads']())_0x3eb341['remove']();for(const _0xe18815 of _0x5a4263)_0x47038c['getUser'](_0xe18815['id'])||_0x47038c['addUser'](_0xe18815);_0x47038c['me']||_0x47038c['useAnonymousUser']();for(const _0x57227f of _0xccda1c)_0x403f5b['addCommentThread'](_0x57227f);for(const _0x39cfc8 of _0x244377)_0x2a784d['addSuggestionData'](_0x39cfc8);_0x2e0950['data']['set'](_0x1022bd);}(_0x47021d,_0x540d4a),_0x540d4a['execute'](_0x44b03e?'acceptAllSuggestions':'discardAllSuggestions');const _0x334a9d=De(_0x540d4a)?_0x540d4a['getFullData'](_0x2b4986):_0x540d4a['data']['get'](_0x2b4986);return await _0x540d4a['destroy'](),_0x334a9d;}class Me extends _0x28bdc3{['options'];constructor(_0x28ca64,_0x2d42a2){super(_0x28ca64),this['options']=_0x2d42a2,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'](_0x2caf53,_0x346072){if(!this['element'])return;const _0x4c7ce0=[];for(const [_0x359c86,_0x558cda]of _0x2caf53){const _0x5b6841=document['createElement']('div');_0x5b6841['setAttribute']('data-ck-root-name',_0x359c86),_0x5b6841['className']=_0x558cda['classes']+'\x20ck-track-changes-preview__root-container',_0x5b6841['innerHTML']=_0x558cda['content'],_0x4c7ce0['push'](_0x5b6841);}_0x346072(this['element'],_0x4c7ce0),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x243073{constructor(_0x182406){super(_0x182406),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x14dd69=this['editor'],_0x3e849f=_0x14dd69['locale'],_0x202749=_0x14dd69['plugins']['get']('Dialog');let _0x49b6c7;const _0x3a980c=function(_0x59734b){const _0x2fb975={};if('editables'in _0x59734b['ui']['view']){for(const [_0x401ef6,_0xcef1cb]of Object['entries'](_0x59734b['ui']['view']['editables']))_0x2fb975[_0x401ef6]=_0xcef1cb['element'];}else _0x2fb975[_0x59734b['model']['document']['getRootNames']()[0x0]]=_0x59734b['ui']['view']['editable']['element'];return _0x2fb975;}(_0x14dd69),_0x14fd36=function(_0x9b33cd){let _0x227c06=0x0;for(const _0x13ea95 of Object['values'](_0x9b33cd))_0x227c06=Math['max'](_0x227c06,_0x13ea95['getBoundingClientRect']()['width']);let _0x28c8ff=0x0;for(const _0x15106e of Object['values'](_0x9b33cd))_0x28c8ff+=_0x15106e['getBoundingClientRect']()['height'];const _0x3df663=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x152e27=Math['min'](_0x28c8ff,_0x3df663);return{'width':_0x227c06,'height':_0x152e27};}(_0x3a980c);_0x202749['show']({'id':'finalContentPreview','title':o(_0x3e849f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3e849f,{'dialogRects':_0x14fd36}),'onHide':()=>{_0x49b6c7['detachFromDom']();},'onShow':()=>{_0x14dd69['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x297205=>{const _0x47a76e=this['_standarizeRootsData'](_0x297205,_0x14dd69,_0x3a980c);_0x202749['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x47a76e,_0x14dd69['config']['get']('trackChanges.preview.renderFunction'));}),_0x49b6c7=new _0x124139(_0x3e849f,[_0x202749['view']]),_0x49b6c7['attachToDom'](),_0x49b6c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x14dd69['once']('destroy',()=>{_0x49b6c7['detachFromDom']();});const _0x1c0868=_0x202749['view']['headerView']['class'];_0x202749['view']['headerView']['class']=_0x1c0868?_0x1c0868+'\x20ck-reset_all':'ck-reset_all',_0x202749['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x202749['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x113b05=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3ea411=_0x113b05['previewMode'],_0x23eea7={};if('$labels'===_0x3ea411){for(const _0x20d929 of _0x113b05['getMergeFieldsIds']())_0x23eea7[_0x20d929]=_0x113b05['getLabel'](_0x20d929)||_0x20d929;}else{const _0x58bfe0='$defaultValues'===_0x3ea411?_0x113b05['getDefaultValues']():_0x113b05['getDataSetValues'](_0x3ea411,!0x0);for(const _0x316aa2 of Object['entries'](_0x58bfe0)){const [_0x24b75f,_0x415cb7]=_0x316aa2;_0x23eea7[_0x24b75f]=null!==_0x415cb7?_0x415cb7:_0x113b05['getLabel'](_0x24b75f)||_0x24b75f;}}return{'mergeFieldsData':_0x23eea7};}['_standarizeRootsData'](_0x49b0df,_0x1761c3,_0x46a213){let _0x262ae7;if('string'==typeof _0x49b0df){const _0x1f8033=_0x1761c3['model']['document']['getRootNames']()[0x0];_0x262ae7={[_0x1f8033]:_0x49b0df};}else _0x262ae7=_0x49b0df;const _0x3e2af2=this['_fixMediaEmbeds'](_0x262ae7,_0x1761c3),_0xda9ac5=function(_0x2b7e6f,_0x4524a1){for(const [_0x425b4f,_0x22afd3]of _0x2b7e6f)_0x22afd3['classes']=_0x4524a1[_0x425b4f]['classList']['value']['replace']('ck-focused','');return _0x2b7e6f;}(this['_sortRoots'](_0x1761c3)['reduce']((_0x2b4a69,_0x26d092)=>(_0x2b4a69['push']([_0x26d092,{'content':_0x3e2af2[_0x26d092],'classes':''}]),_0x2b4a69),[]),_0x46a213);return _0xda9ac5;}['_fixMediaEmbeds'](_0x31b634,_0x11ea20){if(!_0x11ea20['plugins']['has']('MediaEmbedEditing'))return _0x31b634;const _0x70094d=_0x11ea20['plugins']['get']('MediaEmbedEditing');for(const [_0x455f24,_0x2bc50d]of Object['entries'](_0x31b634)){const _0x394a41=document['createElement']('div');_0x394a41['innerHTML']=_0x2bc50d,(_0x394a41['querySelectorAll']('figure.media')['forEach'](_0x5304d7=>{const _0x2e7ae2=_0x5304d7['querySelector']('oembed');if(_0x2e7ae2){const _0x1dc03=_0x2e7ae2['getAttribute']('url');if(_0x1dc03){const _0x38fd21=_0x70094d['registry']['getMediaViewElement'](new _0x27c8e5(_0x11ea20['editing']['view']['document']),_0x1dc03,{'elementName':'','renderForEditingView':!0x0}),_0x369e6=document['createElement']('div');_0x369e6['classList']['add']('ck-media__wrapper'),_0x38fd21['render'](_0x369e6,_0x11ea20['editing']['view']['domConverter']),_0x2e7ae2['replaceWith'](_0x369e6);}}}),_0x31b634[_0x455f24]=_0x394a41['innerHTML']);}return _0x31b634;}['_sortRoots'](_0xad43d5){if(!function(_0x59aa06){return void 0x0!==_0x59aa06['getRootsAttributes'];}(_0xad43d5))return _0xad43d5['model']['document']['getRootNames']();const _0x3476b9=[],_0x5670a9=new Map();for(const _0x594f1e of _0xad43d5['model']['document']['getRootNames']()){const _0x5505f6=_0xad43d5['editing']['view']['getDomRoot'](_0x594f1e)['getClientRects']()['item'](0x0);_0x3476b9['push'](_0x594f1e),_0x5670a9['set'](_0x594f1e,_0x5505f6);}return _0x3476b9['sort']((_0x4f5b3e,_0x3c38d2)=>{const _0x1545a2=_0x5670a9['get'](_0x4f5b3e),_0x440b38=_0x5670a9['get'](_0x3c38d2);return _0x1545a2['y']-_0x440b38['y']||_0x1545a2['x']-_0x440b38['x'];}),_0x3476b9;}}class Ue extends _0x562758{static get['requires'](){return[re,_0x435edb];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6f8b02){super(_0x6f8b02),_0x6f8b02['commands']['add']('previewFinalContent',new te(this['editor'])),_0x6f8b02['config']['define']('trackChanges.preview.renderFunction',(_0xf8d8fc,_0xdf193d)=>{for(const _0x15782b of _0xdf193d)_0xf8d8fc['appendChild'](_0x15782b);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|