@ckeditor/ckeditor5-track-changes 46.0.0-alpha.0 → 46.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +27 -27
- 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/aiassistant.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/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
|
-
_0x1a2a84(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x530e5b,_0x23ed0e){super(),this['id']=_0x23ed0e['id'],this['type']=_0x23ed0e['type'],this['subType']=_0x23ed0e['subType']||null,this['author']=_0x23ed0e['author'],this['creator']=_0x23ed0e['creator']||_0x23ed0e['author'],this['isExternal']=Boolean(_0x23ed0e['attributes']&&_0x23ed0e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x23ed0e['originalSuggestionId']||null,this['_model']=_0x530e5b,this['_onAccept']=_0x23ed0e['onAccept'],this['_onDiscard']=_0x23ed0e['onDiscard'],this['_onAttributesChange']=_0x23ed0e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x23ed0e['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 _0x120aa7=this;for(;_0x120aa7['previous'];)_0x120aa7=_0x120aa7['previous'];return _0x120aa7;}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'](_0xa14b6c){this['_markerNames']['add'](_0xa14b6c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4cb1b5=>this['_model']['markers']['get'](_0x4cb1b5))['filter'](_0x2a7f68=>_0x2a7f68);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x338b61=>{for(const _0x16843e of this['getMarkers']())_0x338b61['removeMarker'](_0x16843e);}),this['_markerNames']['clear']();}['removeMarker'](_0xd3704){this['_model']['change'](_0x50ff2f=>{_0x50ff2f['removeMarker'](_0xd3704);}),this['_markerNames']['delete'](_0xd3704);}['addRange'](_0xa67133){const _0x433879='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x433879),this['_model']['change'](_0x114733=>{_0x114733['addMarker'](_0x433879,{'range':_0xa67133,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x52bbaa){for(const _0x51d2c5 of this['getRanges']())if(_0x51d2c5['isIntersecting'](_0x52bbaa))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3a870c=>_0x3a870c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x339439,_0x31dfda)=>[..._0x339439,..._0x31dfda['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xf31939=this['getRanges']();if(0x1!=_0xf31939['length'])return null;const _0x497685=_0xf31939[0x0],_0x19e1d3=_0x497685['start']['nodeAfter'],_0x251435=_0x497685['end']['nodeBefore'];return _0x19e1d3 instanceof _0x5c66d5?_0x19e1d3!=_0x251435?null:_0x19e1d3: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 _0xbad695=[];let _0x554ef0=this['head'];for(;_0x554ef0;)_0xbad695['push'](_0x554ef0),_0x554ef0=_0x554ef0['next'];return _0xbad695;}['setAttribute'](_0x305b17,_0x4a93a0){const _0x463b1d=_0x955d7d(this['attributes']);_0x2e600d(_0x463b1d,_0x305b17,_0x4a93a0),_0x2d5d33(_0x463b1d,this['attributes'])||(this['attributes']=_0x463b1d,this['_onAttributesChange'](_0x463b1d));}['removeAttribute'](_0x1689c2){const _0x14e3de=_0x955d7d(this['attributes']);_0xb18193(_0x14e3de,_0x1689c2),_0x2d5d33(_0x14e3de,this['attributes'])||(this['attributes']=_0x14e3de,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 _0x48a539()['substr'](0x1,0x5);}}function o(_0x34c55b,_0x1546fc,_0x2f3b7a){const _0x4a19a9=_0x34c55b['t'],t=_0x34c55b['t'];switch(_0x1546fc){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',_0x2f3b7a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2f3b7a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2f3b7a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2f3b7a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2f3b7a);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',_0x2f3b7a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2f3b7a);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',_0x2f3b7a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2f3b7a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2f3b7a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2f3b7a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2f3b7a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2f3b7a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2f3b7a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2f3b7a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2f3b7a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2f3b7a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2f3b7a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2f3b7a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2f3b7a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2f3b7a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2f3b7a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2f3b7a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2f3b7a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2f3b7a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2f3b7a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2f3b7a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2f3b7a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2f3b7a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2f3b7a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2f3b7a);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_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'},_0x2f3b7a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2f3b7a);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'},_0x2f3b7a);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'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'},_0x2f3b7a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2f3b7a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2f3b7a);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'},_0x2f3b7a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2f3b7a);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 _0x4a19a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2f3b7a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4a19a9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2f3b7a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2f3b7a);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'},_0x2f3b7a);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'},_0x2f3b7a);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'},_0x2f3b7a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1546fc;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x35c2b3,_0x52d19b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x35c2b3,this['_locale']=_0x52d19b;}['getDescriptions'](_0x3e721e){const _0x5f5856=[],_0x5cc883=new Set(),_0x277f79=new Set();for(let _0x1210b2=0x0;_0x1210b2<_0x3e721e['length'];_0x1210b2++){const _0x545d7e=_0x3e721e[_0x1210b2];if(!_0x545d7e['isInContent'])continue;const _0x77052b=this['_handleCustomCallbackDescription'](_0x545d7e);if(_0x77052b){if(null!=_0x545d7e['subType']){if(_0x5cc883['has'](_0x545d7e['subType']))continue;_0x5cc883['add'](_0x545d7e['subType']);}_0x5f5856['push'](_0x77052b);}else{if('attribute'==_0x545d7e['type']){const _0xcf7c1f=_0x545d7e['data']['key'];if(_0x277f79['has'](_0xcf7c1f))continue;_0x277f79['add'](_0x545d7e['data']['key']),_0xcf7c1f==m?this['_handleRenameSuggestionDescription'](_0x5f5856,_0x545d7e):this['_handleAttributeSuggestionDescription'](_0x5f5856,_0x545d7e);continue;}'insertion'!=_0x545d7e['type']&&'deletion'!=_0x545d7e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5f5856,_0x545d7e,_0x3e721e[_0x1210b2+0x1]);}}return this['_resolveDescriptionItems'](_0x5f5856);}['registerDescriptionCallback'](_0x60e403){this['_customCallbacks']['push'](_0x60e403);}['registerElementLabel'](_0x4bae5f,_0x3a88e7,_0x282871=_0x2dd4ea['normal']){'function'==typeof _0x4bae5f?_0x4f8253(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4bae5f,'label':_0x3a88e7,'priority':_0x282871}):this['_itemLabels']['set'](_0x4bae5f,_0x3a88e7);}['registerAttributeLabel'](_0x543888,_0x193544){this['_attributeLabels']['set'](_0x543888,_0x193544);}['getItemLabel'](_0x317548,_0x5aa98c=0x1){let _0x118bd0;for(const _0x47f362 of this['_itemLabelsCallbacks'])if(_0x47f362['matchingCallback'](_0x317548)){_0x118bd0=_0x47f362['label'];break;}return _0x118bd0||(_0x118bd0=this['_itemLabels']['get'](_0x317548['name'])),_0x118bd0?_0x118bd0(_0x5aa98c):0x1!==_0x5aa98c?_0x5aa98c+'\x20'+_0x317548['name']+'s':''+_0x317548['name'];}['_addDescriptionItems'](_0x1574c3,_0x52692b){const _0x38f512=_0x52692b['getFirstRange']()['getWalker'](),_0xb117ed='insertion'==_0x52692b['type']?'add':'remove';for(const _0x50460b of _0x38f512){const _0x40093f=_0x50460b['item'],_0x9c54b0=_0x1574c3[_0x1574c3['length']-0x1];if(_0x40093f['is']('$textProxy'))_0x9c54b0&&_0x9c54b0['type']['indexOf']('Container')>-0x1&&_0x1574c3['pop'](),_0x9c54b0&&'text'==_0x9c54b0['type']?_0x9c54b0[_0xb117ed]+=_0x40093f['data']:_0x1574c3['push']({'type':'text','add':'add'==_0xb117ed?_0x40093f['data']:'','remove':'remove'==_0xb117ed?_0x40093f['data']:''});else{if(this['_schema']['isObject'](_0x40093f)){const _0x1298c1=_0x40093f;if(_0x9c54b0&&_0x9c54b0['type']['indexOf']('Container')>-0x1&&_0x1574c3['pop'](),'elementEnd'==_0x50460b['type'])continue;_0x9c54b0&&_0x9c54b0['type']==_0xb117ed+'Object'&&_0x9c54b0['element']['name']==_0x1298c1['name']?_0x9c54b0['quantity']++:_0x1574c3['push']({'type':_0xb117ed+'Object','element':_0x1298c1,'quantity':0x1}),_0x38f512['skip'](_0x54080a=>!('elementEnd'==_0x54080a['type']&&_0x54080a['item']==_0x40093f));}else{if(this['_schema']['checkChild'](_0x40093f,'$text')||_0x40093f['is']('element','softBreak')){const _0x530167=_0x40093f;if('add'==_0xb117ed&&'elementStart'==_0x50460b['type']||'remove'==_0xb117ed&&'elementEnd'==_0x50460b['type'])continue;if(_0x9c54b0&&-0x1==_0x9c54b0['type']['indexOf']('Container')){'text'==_0x9c54b0['type']&&(_0x9c54b0[_0xb117ed]+='\x0a');continue;}let _0x845b6c;if(_0x845b6c='add'==_0xb117ed?_0x530167['nextSibling']&&!this['_schema']['isObject'](_0x530167['nextSibling'])?_0x530167['nextSibling']:null:_0x530167['previousSibling']&&!this['_schema']['isObject'](_0x530167['previousSibling'])?_0x530167['previousSibling']:null,_0x530167['isEmpty']||_0x845b6c&&_0x845b6c['isEmpty']){const _0x4047a9=_0x845b6c&&_0x845b6c['isEmpty']?_0x845b6c:_0x530167;_0x9c54b0&&_0x9c54b0['type']==_0xb117ed+'EmptyContainer'&&_0x9c54b0['element']['name']==_0x4047a9['name']?_0x9c54b0['quantity']++:_0x1574c3['push']({'type':_0xb117ed+'EmptyContainer','element':_0x4047a9,'quantity':0x1});}else _0x1574c3['push']({'type':_0xb117ed+'Container','element':_0x530167});}}}}}['_resolveDescriptionItems'](_0x2fddb8){const _0x22bf4a=this['_locale'],_0x28a427=[],_0x591c5a=[],_0x36b7e3=[];for(const _0x4f813f of _0x2fddb8)switch(_0x4f813f['type']){case'text':if(_0x4f813f['add']=_0x4f813f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f813f['remove']=_0x4f813f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f813f['add']&&''!=_0x4f813f['remove']){_0x28a427['push']({'type':'replace','content':o(_0x22bf4a,'REPLACE_TEXT',['\x22'+_0x4f813f['remove']+'\x22','\x22'+_0x4f813f['add']+'\x22'])});continue;}if(null!=_0x4f813f['add']['match'](/^ +$/)){_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0',o(_0x22bf4a,'ELEMENT_SPACE',_0x4f813f['add']['length']))});continue;}if(null!=_0x4f813f['remove']['match'](/^ +$/)){_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0',o(_0x22bf4a,'ELEMENT_SPACE',_0x4f813f['remove']['length']))});continue;}if(''!=_0x4f813f['add']){_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0','\x22'+_0x4f813f['add']+'\x22')});continue;}_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0','\x22'+_0x4f813f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Insert:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Remove:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'addContainer':_0x28a427['push']({'type':'insertion','content':o(_0x22bf4a,'*Split:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'removeContainer':_0x28a427['push']({'type':'deletion','content':o(_0x22bf4a,'*Merge:*\x20%0',this['getItemLabel'](_0x4f813f['element'],_0x4f813f['quantity']))});continue;case'addFormat':_0x591c5a['push'](_0x4f813f['key']);continue;case'removeFormat':_0x36b7e3['push'](_0x4f813f['key']);continue;default:_0x28a427['push'](_0x4f813f);}if(_0x591c5a['length']){const _0x33cd1b=_0x591c5a['map'](_0x3668b7=>this['_attributeLabels']['has'](_0x3668b7)?this['_attributeLabels']['get'](_0x3668b7):_0x3668b7)['join'](',\x20');_0x28a427['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x33cd1b)});}if(_0x36b7e3['length']){const _0x1d44fb=_0x36b7e3['map'](_0x38f358=>this['_attributeLabels']['has'](_0x38f358)?this['_attributeLabels']['get'](_0x38f358):_0x38f358)['join'](',\x20');_0x28a427['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1d44fb)});}return _0x28a427;}['_handleCustomCallbackDescription'](_0x30545f){for(const _0x1c9407 of this['_customCallbacks']){const _0x3ba23f=_0x1c9407(_0x30545f);if(_0x3ba23f&&'type'in _0x3ba23f)return _0x3ba23f;}}['_handleAttributeSuggestionDescription'](_0x2f3eb7,_0x7f1b13){const _0x62035e=_0x7f1b13['data'],_0x10e505=void 0x0===_0x62035e['newValue']?'removeFormat':'addFormat';_0x2f3eb7['push']({'type':_0x10e505,'key':_0x62035e['key']});}['_handleRenameSuggestionDescription'](_0x1d8d04,_0x1c0ed0){_0x1d8d04['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1c0ed0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x589c26,_0x5613b7,_0x5d7c2d){if(this['_addDescriptionItems'](_0x589c26,_0x5613b7),_0x5d7c2d&&_0x5d7c2d['getFirstRange']()&&!_0x5613b7['getFirstRange']()['end']['isEqual'](_0x5d7c2d['getFirstRange']()['start'])){const _0x50f635=_0x589c26[_0x589c26['length']-0x1],_0x3c4024='insertion'==_0x5613b7['type']?'add':'remove';_0x50f635&&'text'==_0x50f635['type']&&(_0x50f635[_0x3c4024]+='\x0a');}}}class O extends _0x292012{['afterInit'](){const _0x47657b=this['editor'],_0x33c51d=_0x47657b['plugins']['get']('TrackChangesEditing');_0x47657b['commands']['get']('showAIAssistant')&&_0x33c51d['enableCommand']('showAIAssistant');}}class E extends _0x292012{['afterInit'](){const _0x57191c=this['editor'],_0x250827=_0x57191c['locale'];if(!_0x57191c['plugins']['has']('AlignmentEditing'))return;const _0x39e442=_0x57191c['plugins']['get']('TrackChangesEditing');_0x39e442['enableDefaultAttributesIntegration']('alignment'),_0x39e442['registerBlockAttribute']('alignment'),_0x39e442['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x250827,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x308209=this['editor'],_0xfe423b=_0x308209['locale'];_0x308209['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d8b1e=>{if('formatBlock'!=_0x4d8b1e['type'])return;const {data:_0x1c48c6}=_0x4d8b1e;if(_0x1c48c6&&'alignment'==_0x1c48c6['commandName']){const _0x189e91=_0x1c48c6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xfe423b,'*Format:*\x20%0',function(_0x4f100f){switch(_0x4f100f){case'left':return o(_0xfe423b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xfe423b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xfe423b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xfe423b,'FORMAT_JUSTIFY_TEXT');}}(_0x189e91))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x292012{['afterInit'](){const _0x1d677e=this['editor'],_0xcd373b=_0x1d677e['plugins']['get']('TrackChangesEditing'),_0x454441=_0x1d677e['locale'];for(const _0x112dc6 of ti){if(!_0x1d677e['plugins']['has'](_0x112dc6))continue;const _0x543e8f=_0x112dc6['slice'](0x0,-0x7)['toLowerCase'](),_0x452940='FORMAT_'+_0x543e8f['toUpperCase']();_0xcd373b['enableDefaultAttributesIntegration'](_0x543e8f),_0xcd373b['registerInlineAttribute'](_0x543e8f),_0xcd373b['descriptionFactory']['registerAttributeLabel'](_0x543e8f,o(_0x454441,_0x452940));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ec9db=this['editor'],_0x3af413=_0x5ec9db['locale'],_0x1f3120=_0x5ec9db['plugins']['get']('TrackChangesEditing');function _0xa97ac8(_0x56fcc0,_0x3b52dc){_0x1f3120['descriptionFactory']['registerDescriptionCallback'](_0x2ad52c=>{if('formatInline'!=_0x2ad52c['type'])return;const {data:_0x435e4f}=_0x2ad52c;return _0x435e4f&&_0x435e4f['commandName']===_0x56fcc0?_0x435e4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3af413,'*Format:*\x20%0',_0x3b52dc)}:{'type':'format','content':o(_0x3af413,'*Remove\x20format:*\x20%0',_0x3b52dc)}:void 0x0;});}_0xa97ac8('bold',o(_0x3af413,'FORMAT_BOLD')),_0xa97ac8('italic',o(_0x3af413,'FORMAT_ITALIC')),_0xa97ac8('underline',o(_0x3af413,'FORMAT_UNDERLINE')),_0xa97ac8('code',o(_0x3af413,'FORMAT_CODE')),_0xa97ac8('strikethrough',o(_0x3af413,'FORMAT_STRIKETHROUGH')),_0xa97ac8('subscript',o(_0x3af413,'FORMAT_SUBSCRIPT')),_0xa97ac8('superscript',o(_0x3af413,'FORMAT_SUPERSCRIPT'));}}class U extends _0x292012{['afterInit'](){const _0x5503a7=this['editor'],_0x49516c=_0x5503a7['locale'];if(!_0x5503a7['plugins']['has']('BlockQuoteEditing'))return;const _0x3ab0c2=_0x5503a7['plugins']['get']('TrackChangesEditing'),_0x5be01d=this['editor']['commands']['get']('blockQuote');_0x3ab0c2['enableCommand']('blockQuote',(_0x10211f,_0x21ac57={})=>{const _0xabbab7=this['editor']['model']['document']['selection'],_0x2926bd=_0x21ac57&&void 0x0!==_0x21ac57['forceValue']?_0x21ac57['forceValue']:!_0x5be01d['value'];let _0xed9fe=[];if(_0x2926bd){const _0x10194=Array['from'](_0xabbab7['getSelectedBlocks']())['filter'](_0x3387f2=>oo(_0x3387f2)||function(_0x49c56e,_0x11107d){const _0x5eb27d=_0x11107d['checkChild'](_0x49c56e['parent'],'blockQuote'),_0x1ba5b4=_0x11107d['checkChild'](['$root','blockQuote'],_0x49c56e);return _0x5eb27d&&_0x1ba5b4;}(_0x3387f2,this['editor']['model']['schema']));_0xed9fe=to(_0x10194,_0x5503a7['model']);}else{const _0x147a21=Array['from'](_0xabbab7['getSelectedBlocks']())['filter'](_0xc9d480=>oo(_0xc9d480));_0xed9fe=to(_0x147a21,_0x5503a7['model']);}_0x5503a7['model']['change'](()=>{for(const _0x7808bb of _0xed9fe)_0x3ab0c2['markBlockFormat'](_0x7808bb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2926bd}]});});}),_0x3ab0c2['descriptionFactory']['registerDescriptionCallback'](_0x3db33d=>{const {data:_0x52aac9}=_0x3db33d;if(_0x52aac9&&'blockQuote'==_0x52aac9['commandName']){const _0x188090=o(_0x49516c,'ELEMENT_BLOCK_QUOTE');return _0x52aac9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49516c,'*Set\x20format:*\x20%0',_0x188090)}:{'type':'format','content':o(_0x49516c,'*Remove\x20format:*\x20%0',_0x188090)};}});}}function oo(_0x3ca17a){return'blockQuote'==_0x3ca17a['parent']['name'];}class V extends _0x292012{['afterInit'](){const _0x5b5eef=this['editor'],_0x26b6de=_0x5b5eef['locale'],_0x1eef1a=_0x5b5eef['plugins']['get']('TrackChangesEditing');_0x5b5eef['plugins']['has']('BookmarkEditing')&&(_0x1eef1a['enableCommand']('insertBookmark'),_0x1eef1a['enableDefaultAttributesIntegration']('updateBookmark'),_0x1eef1a['registerBlockAttribute']('bookmarkId'),_0x1eef1a['descriptionFactory']['registerDescriptionCallback'](_0x4346a0=>{if('insertion'!=_0x4346a0['type']&&'deletion'!=_0x4346a0['type']&&'attribute'!=_0x4346a0['type'])return;const _0x3b139f=_0x4346a0['getContainedElement']();if(null==_0x3b139f)return;if(!_0x3b139f['is']('element','bookmark'))return;const _0x42a6f6=_0x3b139f['getAttribute']('bookmarkId');if('insertion'==_0x4346a0['type'])return{'type':'insertion','content':o(_0x26b6de,'*Insert:*\x20%0','\x22'+_0x42a6f6+'\x22\x20'+o(_0x26b6de,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4346a0['type'])return{'type':'deletion','content':o(_0x26b6de,'*Remove:*\x20%0','\x22'+_0x42a6f6+'\x22\x20'+o(_0x26b6de,'ELEMENT_BOOKMARK'))};const {data:_0x4e915d}=_0x4346a0;if(!_0x4e915d||'bookmarkId'!=_0x4e915d['key'])return;return{'type':'format','content':o(_0x26b6de,'*Set\x20bookmark:*\x20%0','\x22'+_0x4e915d['newValue']+'\x22')};}));}}class F extends _0x292012{['afterInit'](){const _0x104910=this['editor'];_0x104910['plugins']['has']('CaseChange')&&(_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x104910['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x292012{['afterInit'](){const _0x169ad3=this['editor'];_0x169ad3['commands']['get']('ckbox')&&_0x169ad3['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x292012{['afterInit'](){const _0x5b9ad7=this['editor'];if(!_0x5b9ad7['plugins']['has']('CodeBlock'))return;const _0xfdce20=_0x5b9ad7['plugins']['get']('TrackChangesEditing'),_0x1c5ccd=_0x5b9ad7['locale'],_0x158b5b=_0x5b9ad7['config']['get']('codeBlock')['languages'],_0x26ac76=_0x5b9ad7['commands']['get']('codeBlock');_0xfdce20['enableCommand']('indentCodeBlock'),_0xfdce20['enableCommand']('outdentCodeBlock'),_0xfdce20['enableCommand']('codeBlock',(_0x3c4a3a,_0x5eba1e={})=>{const _0xb0e584=_0x5b9ad7['model'],_0x2a82f6=_0x5b9ad7['model']['document']['selection'],_0x352f1e=_0x5eba1e&&void 0x0!==_0x5eba1e['forceValue']?_0x5eba1e['forceValue']:!_0x26ac76['value'];let _0x531600;_0x5eba1e['language']||(_0x5eba1e['language']=_0x158b5b[0x0]['language']),_0x531600=_0x352f1e?Array['from'](_0x2a82f6['getSelectedBlocks']())['filter'](_0x2c9e23=>co(_0x2c9e23)||function(_0x1446dd,_0x3eb446){if(_0x1446dd['is']('rootElement')||_0x3eb446['isLimit'](_0x1446dd))return!0x1;return _0x3eb446['checkChild'](_0x1446dd['parent'],'codeBlock');}(_0x2c9e23,_0xb0e584['schema'])):Array['from'](_0x2a82f6['getSelectedBlocks']())['filter'](_0x2bb390=>co(_0x2bb390));const _0x108d7a=to(_0x531600,_0xb0e584);_0xb0e584['change'](()=>{for(const _0x1b078b of _0x108d7a)_0xfdce20['markBlockFormat'](_0x1b078b,{'commandName':'codeBlock','commandParams':[{..._0x5eba1e,'forceValue':_0x352f1e}],'formatGroupId':'blockName'});});}),(_0xfdce20['descriptionFactory']['registerElementLabel']('codeBlock',_0x1f1e48=>o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',_0x1f1e48)),_0xfdce20['descriptionFactory']['registerDescriptionCallback'](_0x3bbf07=>{if('formatBlock'!=_0x3bbf07['type'])return;const _0x2a5cce=_0x1c5ccd['t'],{data:_0x3bfc91}=_0x3bbf07;if(!_0x3bfc91||'codeBlock'!=_0x3bfc91['commandName'])return;const _0x32895e=_0x3bfc91['commandParams'][0x0]['language'],_0x9d6e1a=_0x2a5cce(_0x158b5b['find'](_0x4c4d66=>_0x4c4d66['language']===_0x32895e)['label'])['toLowerCase']();return _0x3bfc91['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5ccd,'*Set\x20format:*\x20%0',o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x9d6e1a+')')}:{'type':'format','content':o(_0x1c5ccd,'*Remove\x20format:*\x20%0',o(_0x1c5ccd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x347b0e){return'codeBlock'==_0x347b0e['name'];}class J extends _0x292012{['afterInit'](){const _0x37b0bb=this['editor'];if(!_0x37b0bb['plugins']['has']('CommentsEditing'))return;_0x37b0bb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4ab2bd,_0x4436a6,_0x73ea5){const _0x14da67=[];for(const _0x48b7ed of _0x4436a6['getItems']())_0x48b7ed['hasAttribute'](_0x4ab2bd)&&_0x14da67['push'](_0x73ea5['createRangeOn'](_0x48b7ed));return _0x14da67;}function De(_0x3ea337,_0x2e2cfc,{showActiveMarker:_0x7740a0=!0x0}={}){const _0x496876=_0x3ea337['plugins']['get']('TrackChangesEditing');return(_0x2c6a37,_0x594ea5,_0x3bd3bb)=>{if(!_0x3bd3bb['consumable']['test'](_0x594ea5['markerRange'],_0x2c6a37['name']))return;const _0x13e6d2=_0x594ea5['markerRange']['getWalker'](),_0x3b16ae=_0x594ea5['markerRange']['start'],_0x1c3ca4=_0x3ea337['model']['schema'];let _0x33409e=null,_0x73b6b2=null,_0x54cdb9=!0x1,_0x2344cd=!0x1;for(const _0x4c34e0 of _0x13e6d2){const _0x12c994=_0x4c34e0['item'];_0x54cdb9=_0x54cdb9||_0x1c3ca4['isContent'](_0x12c994);const _0x4be131=_0x3bd3bb['mapper']['toViewElement'](_0x12c994);if(_0x4be131&&_0x4be131['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4c34e0['type']&&(_0x1c3ca4['isBlock'](_0x12c994)&&!_0x1c3ca4['isLimit'](_0x12c994)&&(_0x12c994['nextSibling']||_0x3b16ae['isAtEnd']?_0x33409e&&_0x33409e['parent']==_0x12c994||(_0x33409e=_0x12c994,_0x10e0be(_0x4c34e0['previousPosition']),_0x2344cd=!0x0):_0x73b6b2=_0x73b6b2||_0x4c34e0['previousPosition']));}function _0x10e0be(_0x3e0b19){const {id:_0x128982,authorId:_0x14b125}=_0x496876['_splitMarkerName'](_0x594ea5['markerName']),_0x5d42da=_0x3bd3bb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e2cfc,'data-suggestion':_0x128982,'data-author-id':_0x14b125}),_0x394665=_0x3bd3bb['mapper']['toViewPosition'](_0x3e0b19);_0x7740a0&&_0x496876['activeMarkers']['includes'](_0x594ea5['markerName'])&&_0x3bd3bb['writer']['addClass']('ck-suggestion-marker--active',_0x5d42da),_0x3bd3bb['writer']['insert'](_0x394665,_0x5d42da),_0x3bd3bb['mapper']['bindElementToMarker'](_0x5d42da,_0x594ea5['markerName']);}_0x54cdb9||_0x2344cd||!_0x73b6b2||_0x10e0be(_0x73b6b2);};}class K extends _0x292012{static get['requires'](){return[_0x47ae77];}['init'](){const _0x26b4ac=this['editor'],_0x23bec1=_0x26b4ac['plugins']['get']('TrackChangesEditing');_0x23bec1['enableCommand']('delete');const _0xdc4031=_0x26b4ac['commands']['get']('deleteForward');_0x23bec1['enableCommand']('deleteForward',(_0x538678,_0x479a8a={})=>{const _0x15f9a7=_0x26b4ac['model']['createSelection'](_0x26b4ac['model']['document']['selection']);_0x15f9a7['isCollapsed']&&_0x26b4ac['model']['modifySelection'](_0x15f9a7,{'direction':'forward','unit':_0x479a8a['unit']});const _0x52383e=_0x15f9a7['getFirstRange'](),_0x1291ad=_0x5f13a0['fromRange'](_0x52383e);let _0x50c758;_0x538678(_0x479a8a),_0x50c758='$graveyard'==_0x1291ad['root']['rootName']?_0x26b4ac['model']['createRange'](_0x52383e['start']):_0x26b4ac['model']['createRange'](_0x1291ad['start'],_0x1291ad['end']),_0x1291ad['detach'](),_0x26b4ac['model']['enqueueChange'](_0xdc4031['buffer']['batch'],_0xe020b9=>{_0xdc4031['buffer']['lock'](),_0xe020b9['setSelection'](_0xe020b9['createRange'](_0x50c758['end'])),_0xdc4031['buffer']['unlock']();});}),_0x26b4ac['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x26b4ac,'merge'),{'priority':'high'}),_0x26b4ac['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x44c0dd,_0xad7f61,_0x32e70d)=>{_0x32e70d['options']['showSuggestionHighlights']&&De(_0x26b4ac,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x44c0dd,_0xad7f61,_0x32e70d);},{'priority':'high'}),_0x26b4ac['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xd1107b,_0x4e9a86,_0x3812fd)=>{const _0x1d83a5=_0x3812fd['mapper']['markerNameToElements'](_0x4e9a86['markerName']);if(_0x1d83a5){for(const _0x2f775b of _0x1d83a5)_0x2f775b['is']('uiElement')&&(_0x3812fd['mapper']['unbindElementFromMarkerName'](_0x2f775b,_0x4e9a86['markerName']),_0x3812fd['writer']['remove'](_0x2f775b));}},{'priority':'high'});}}class H extends _0x292012{['afterInit'](){const _0x32bc7e=this['editor'];if(!_0x32bc7e['plugins']['has']('ListEditing'))return;const _0x1b68de=_0x32bc7e['locale'],_0x32d8f5=_0x32bc7e['plugins']['get']('TrackChangesEditing'),_0x29e272=_0x32bc7e['plugins']['has']('TodoListEditing'),_0x587670=!!_0x32bc7e['config']['get']('list.multiBlock');function _0x522058(_0x5f1af7){return{'type':'format','content':''+o(_0x1b68de,'*Set\x20format:*\x20%0',_0x5f1af7)};}function _0x38fc53(_0x574680){return{'type':'format','content':''+o(_0x1b68de,'*Remove\x20format:*\x20%0',_0x574680)};}_0x32d8f5['enableDefaultAttributesIntegration']('numberedList'),_0x32d8f5['enableDefaultAttributesIntegration']('bulletedList'),_0x32d8f5['enableDefaultAttributesIntegration']('customNumberedList'),_0x32d8f5['enableDefaultAttributesIntegration']('customBulletedList'),_0x32d8f5['enableDefaultAttributesIntegration']('indentList'),_0x32d8f5['enableDefaultAttributesIntegration']('outdentList'),_0x32d8f5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x32d8f5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x32d8f5['registerBlockAttribute']('listItemId'),_0x32d8f5['registerBlockAttribute']('listType'),_0x32d8f5['registerBlockAttribute']('listIndent'),_0x587670&&(_0x32d8f5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x32d8f5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x29e272&&(_0x32d8f5['enableDefaultAttributesIntegration']('todoList'),_0x32d8f5['enableDefaultAttributesIntegration']('checkTodoList'),_0x32d8f5['registerBlockAttribute']('todoListChecked'),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x9891de=>{const {data:_0x510c8c}=_0x9891de;if(_0x510c8c&&'todoListChecked'==_0x510c8c['key'])return{'type':'format','content':_0x510c8c['newValue']?o(_0x1b68de,'*Check\x20item*'):o(_0x1b68de,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x21e132=>{if(_0x21e132['batch']['isUndo'])return!0x1;let _0x474b6b=!0x1;const _0x2fe536=_0x32d8f5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x954fdf=>'todoListChecked'===_0x32d8f5['_getAttributeKey'](_0x954fdf));for(const _0x359074 of _0x2fe536){'todo'!=_0x359074['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x32d8f5['_findSuggestions'](_0x359074['getFirstRange'](),'attribute')['find'](_0x3fff57=>'listType'===_0x32d8f5['_getAttributeKey'](_0x3fff57['suggestion']))||(_0x21e132['removeMarker'](_0x359074['getFirstMarker']()),_0x474b6b=!0x0));}return _0x474b6b;})),_0x32d8f5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1b68de,'FORMAT_INDENT'));const _0x5eb00e={'type':'format','content':''};_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x479bb1=>{const {data:_0x543c22}=_0x479bb1;if(!_0x543c22||'listType'!=_0x543c22['key'])return;let _0x3ce36a=_0x479bb1['head'];for(;_0x3ce36a;){if(_0x3ce36a['data']&&(('listStyle'==_0x3ce36a['data']['key']||'listMarkerStyle'==_0x3ce36a['data']['key'])&&(_0x3ce36a['data']['newValue']&&'default'!=_0x3ce36a['data']['newValue']||'default'!=_0x3ce36a['data']['oldValue']&&!_0x543c22['newValue'])||!_0x587670&&_0x3ce36a['data']['key']==m))return _0x5eb00e;_0x3ce36a=_0x3ce36a['next'];}if(null==_0x543c22['newValue'])switch(_0x543c22['oldValue']){case'bulleted':return _0x38fc53(o(_0x1b68de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x38fc53(o(_0x1b68de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x38fc53(o(_0x1b68de,'ELEMENT_TODO_LIST'));}switch(_0x543c22['newValue']){case'bulleted':return _0x522058(o(_0x1b68de,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x522058(o(_0x1b68de,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x522058(o(_0x1b68de,'ELEMENT_TODO_LIST'));}}),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x41e21e=>{const {data:_0x4285c2}=_0x41e21e;if(_0x4285c2&&'listIndent'==_0x4285c2['key'])return null==_0x4285c2['newValue']||null==_0x4285c2['oldValue']&&0x0==_0x4285c2['newValue']?_0x5eb00e:void 0x0;}),_0x32d8f5['descriptionFactory']['registerDescriptionCallback'](_0x4edc60=>{if('attribute'!=_0x4edc60['type'])return;const {data:_0x1e3316}=_0x4edc60;if(!_0x1e3316||'listItemId'!=_0x1e3316['key'])return;const _0x3fca6e=Te(_0x4edc60);return'newValue'==_0x3fca6e?{'type':'format','content':o(_0x1b68de,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3fca6e?{'type':'format','content':o(_0x1b68de,'*Split:*\x20list\x20item')}:_0x5eb00e;}),_0x32bc7e['model']['document']['registerPostFixer'](_0x2d359d=>this['listItemIdFixer'](_0x2d359d)),_0x32bc7e['model']['document']['registerPostFixer'](_0x340ced=>this['noTrackChangesFixer'](_0x340ced)),_0x32bc7e['model']['document']['on']('change:data',(_0x4faf64,_0x124c91)=>{if(_0x124c91['isUndo']||!_0x124c91['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x280d58){if(_0x280d58['batch']['isUndo']||!_0x280d58['batch']['isLocal'])return!0x1;let _0x17e653=!0x1;const _0x19d724=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5288a9=>_0x5288a9['data']&&'listItemId'==_0x5288a9['data']['key'])['filter'](_0x278bf0=>_0x278bf0['data']['newValue']&&_0x278bf0['data']['oldValue']);for(const _0xe5a86e of _0x19d724)Te(_0xe5a86e)||(_0x280d58['removeMarker'](_0xe5a86e['getFirstMarker']()),_0x17e653=!0x0);return _0x17e653;}['noTrackChangesFixer'](_0x150bce){if(_0x150bce['batch']['isUndo']||!_0x150bce['batch']['isLocal'])return!0x1;const _0x28a207=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x28a207['trackChangesCommand']['value'])return!0x1;let _0x3751fe=!0x1;const _0x35e46e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35ead2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x59fb7f=>'attribute'==_0x59fb7f['type'])['filter'](_0x2f676c=>_0x35e46e['includes'](_0x2f676c['attributeKey']));if(0x0==_0x35ead2['length'])return _0x3751fe;for(const _0x3faad2 of _0x35ead2){const _0xa1a853=_0x28a207['_findSuggestions'](_0x3faad2['range'],'attribute')['filter'](_0x1bd5d3=>!_0x1bd5d3['meta']['isNextTo'])['map'](_0x3e0beb=>_0x3e0beb['suggestion'])['filter'](_0x10a4ef=>{const _0x2abe63=_0x28a207['_getAttributeKey'](_0x10a4ef);return _0x35e46e['includes'](_0x2abe63);});if(_0xa1a853['length']){for(const _0x55d4d9 of _0xa1a853)_0x150bce['removeMarker'](_0x55d4d9['getFirstMarker']());_0x3751fe=!0x0;}}return _0x3751fe;}['assureChains'](){const _0x276e07=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2105f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x35f009;const _0x9378d6=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x49efd3=>{if(_0x49efd3['data']['oldRange']||!_0x49efd3['data']['newRange'])return null;if(!_0x49efd3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xbb7c3a}=_0x276e07['_splitMarkerName'](_0x49efd3['name']);if(!_0x276e07['hasSuggestion'](_0xbb7c3a))return null;const _0x226806=_0x276e07['getSuggestion'](_0xbb7c3a);return _0x2105f5['includes'](_0x226806['data']['key']);})['map'](_0x5c3851=>{const {id:_0x2bc289}=_0x276e07['_splitMarkerName'](_0x5c3851['name']),_0xe6ff5b=_0x276e07['getSuggestion'](_0x2bc289);return _0x35f009=_0xe6ff5b['attributes']['groupId'],_0xe6ff5b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9378d6['size'])return;const _0x25f94e=_0x276e07['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x273403=>'attribute'==_0x273403['type']&&_0x273403['data']&&_0x2105f5['includes'](_0x273403['data']['key'])&&_0x273403['attributes']['groupId']!=_0x35f009)['map'](_0x5419d9=>({'listItem':_0x5419d9['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5419d9['attributes']['groupId']})),_0x264014=new Set();for(const {groupId:_0xed4539,listItem:_0x1741e8}of _0x25f94e)_0x9378d6['has'](_0x1741e8)&&_0x264014['add'](_0xed4539);for(const _0x43d912 of _0x276e07['getSuggestions']())_0x264014['has'](_0x43d912['attributes']['groupId'])&&_0x43d912['setAttribute']('groupId',_0x35f009);}['_supportLegacySuggestions'](){const _0x7409a4=this['editor'],_0x610894=_0x7409a4['locale'],_0x12fe79=_0x7409a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x12fe79['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21f546,_0xa8847b){const _0x258923=[];for(let _0x585755 of _0x21f546)_0x585755['start']['nodeAfter']===_0x585755['end']['parent']&&(_0x585755=_0x7409a4['model']['createRange'](_0x7409a4['model']['createPositionAt'](_0x585755['start']['nodeAfter'],0x0))),_0x258923['push'](_0x585755);_0x7409a4['model']['change'](_0x1bee48=>{const _0x174373=_0x7409a4['model']['document']['selection'],_0x371c76=Array['from'](_0x174373['getRanges']())['map'](_0x10f8f0=>_0x5f13a0['fromRange'](_0x10f8f0));_0x1bee48['setSelection'](_0x258923),_0x7409a4['commands']['get'](_0xa8847b['commandName'])['refresh'](),_0xa8847b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x7409a4['execute'](_0xa8847b['commandName'],..._0xa8847b['commandParams']),_0x1bee48['setSelection'](_0x371c76);for(const _0x57926b of _0x371c76)_0x57926b['detach']();});}),_0x12fe79['descriptionFactory']['registerElementLabel'](function(_0x1c4dd9){const _0x516d35=!_0x7409a4['model']['schema']['isObject'](_0x1c4dd9),_0x49a1d6=_0x1c4dd9['previousSibling'],_0x3f21df=_0x1c4dd9['nextSibling'],_0x3a3bec=_0x1c4dd9['getAttribute']('listItemId'),_0x27150d=!_0x49a1d6||_0x49a1d6['getAttribute']('listItemId')!==_0x3a3bec,_0x259030=!_0x3f21df||_0x3f21df['getAttribute']('listItemId')!==_0x3a3bec;return _0x516d35&&Boolean(_0x3a3bec)&&_0x27150d&&_0x259030;},_0x5d2ef0=>o(_0x610894,'ELEMENT_LIST_ITEM',_0x5d2ef0));}['_registerLegacyDescription'](){const _0x3a03e4=this['editor'],_0xc8053c=_0x3a03e4['locale'];function _0x5765bb(_0x5a170a){const _0x1f1c23=_0x3a03e4['commands']['get']('bulletedList')['value'],_0x1fd1fe=_0x3a03e4['commands']['get']('numberedList')['value'];return'numberedList'===_0x5a170a?_0x1f1c23:_0x1fd1fe;}_0x3a03e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x43df84){if('formatBlock'!=_0x43df84['type'])return;const {data:_0x16db56}=_0x43df84;if(!_0x16db56)return;let _0x15fecb,_0x5890f0,_0x155d96,_0x43cea6;switch(_0x16db56['commandName']){case'bulletedList':_0x155d96=_0x16db56['commandParams'][0x0]['forceValue'],_0x43cea6=_0x5765bb(_0x16db56['commandName']),_0x15fecb=_0x155d96?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43cea6&&_0x3a03e4['config']['get']('list.multiBlock')||(_0x15fecb='*Change\x20to:*\x20%0'),_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x155d96=_0x16db56['commandParams'][0x0]['forceValue'],_0x43cea6=_0x5765bb(_0x16db56['commandName']),_0x15fecb=_0x155d96?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43cea6&&_0x3a03e4['config']['get']('list.multiBlock')||(_0x15fecb='*Change\x20to:*\x20%0'),_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x15fecb='*Indent:*\x20%0',_0x5890f0={'type':'format','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x15fecb=function(_0x11aaeb){const _0x3b519d=_0x11aaeb['getFirstRange']();let _0x5c38a4=_0x3b519d['start']['nodeAfter'];for(;_0x5c38a4&&_0x3b519d['containsItem'](_0x5c38a4);){if(_0x5c38a4['getAttribute']('listIndent')>0x0)return!0x1;_0x5c38a4=_0x5c38a4['nextSibling'];}return!0x0;}(_0x43df84)?o(_0xc8053c,'*Format:*\x20remove\x20from\x20%0',o(_0xc8053c,function(_0x1a1976){return'ELEMENT_'+_0x1a1976['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x43df84))):o(_0xc8053c,'*Outdent:*\x20%0',o(_0xc8053c,'ELEMENT_LIST_ITEM')),_0x5890f0={'type':'format','content':_0x15fecb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x16db56['multipleBlocks']&&(_0x15fecb='*Merge:*\x20%0',_0x5890f0={'type':'deletion','content':o(_0xc8053c,_0x15fecb,o(_0xc8053c,'ELEMENT_LIST_ITEM'))});}return _0x5890f0;});}}function Te(_0x2ac143){let _0x34af10=_0x2ac143['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34af10;){const _0x408238=_0x34af10['getAttribute']('listItemId');if(!_0x408238)return!0x1;if(_0x408238==_0x2ac143['data']['newValue'])return'newValue';if(_0x408238==_0x2ac143['data']['oldValue'])return'oldValue';_0x34af10=_0x34af10['previousSibling'];}return!0x1;}class q extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x37a356=this['editor']['config']['get']('list.properties'),_0x462e6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x37a356['styles']&&(_0x462e6b['enableDefaultAttributesIntegration']('listStyle'),_0x462e6b['registerBlockAttribute']('listStyle')),_0x37a356['reversed']&&(_0x462e6b['enableDefaultAttributesIntegration']('listReversed'),_0x462e6b['registerBlockAttribute']('listReversed')),_0x37a356['startIndex']&&(_0x462e6b['enableDefaultAttributesIntegration']('listStart'),_0x462e6b['registerBlockAttribute']('listStart'));const _0x42de63={'type':'format','content':''};_0x462e6b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a2db4=this['editor']['locale'];_0x462e6b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a2db4,'FORMAT_LIST_REVERSED')),_0x462e6b['descriptionFactory']['registerDescriptionCallback'](_0x2754da=>{const {data:_0x339bfa}=_0x2754da;if(_0x339bfa&&'listReversed'==_0x339bfa['key'])return null==_0x339bfa['newValue']||0x0==_0x339bfa['newValue']&&null==_0x339bfa['oldValue']?_0x42de63:void 0x0;}),_0x462e6b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a2db4,'FORMAT_LIST_START')),_0x462e6b['descriptionFactory']['registerDescriptionCallback'](_0x1efd2d=>{const {data:_0x2a7c3}=_0x1efd2d;if(_0x2a7c3&&'listStart'==_0x2a7c3['key'])return null==_0x2a7c3['newValue']||0x1==_0x2a7c3['newValue']&&null==_0x2a7c3['oldValue']?_0x42de63:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x711da4=>{if(_0x711da4['batch']['isUndo'])return!0x1;let _0x5ca21e=!0x1;const _0x55b836=_0x462e6b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15f8c3=>{const _0x2013a8=_0x462e6b['_getAttributeKey'](_0x15f8c3);return'listStart'==_0x2013a8||'listReversed'==_0x2013a8;});for(const _0x5df716 of _0x55b836){const _0x3010e6=_0x5df716['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3010e6||'customNumbered'==_0x3010e6)continue;_0x462e6b['_findSuggestions'](_0x5df716['getFirstRange'](),'attribute')['find'](_0x5cead0=>'listType'==_0x462e6b['_getAttributeKey'](_0x5cead0['suggestion']))||(_0x711da4['removeMarker'](_0x5df716['getFirstMarker']()),_0x5ca21e=!0x0);}return _0x5ca21e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5e6b85){const _0x572b11=this['editor']['locale'],{data:_0x1f0eef}=_0x5e6b85,_0x248020={'type':'format','content':''};if(!_0x1f0eef||'listStyle'!=_0x1f0eef['key'])return;if(!_0x1f0eef['oldValue'])return'default'==_0x1f0eef['newValue']?_0x248020:{'type':'format','content':''+o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['newValue'])))};if(!_0x1f0eef['newValue']){if('default'==_0x1f0eef['oldValue'])return _0x248020;let _0x530796=_0x5e6b85['head'];for(;_0x530796;){if(_0x530796['data']&&'listType'==_0x530796['data']['key']&&_0x530796['data']['newValue'])return _0x248020;_0x530796=_0x530796['next'];}return{'type':'format','content':''+o(_0x572b11,'*Remove\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['oldValue'])))};}if('default'!=_0x1f0eef['newValue'])return{'type':'format','content':''+o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,this['_getTranslationKeyForListStyle'](_0x1f0eef['newValue'])))};let _0x5db2f4=_0x5e6b85['head'];for(;_0x5db2f4;){if(_0x5db2f4['data']&&'listType'==_0x5db2f4['data']['key']&&_0x5db2f4['data']['newValue']&&_0x5db2f4['data']['oldValue'])return _0x248020;_0x5db2f4=_0x5db2f4['next'];}return{'type':'format','content':o(_0x572b11,'*Set\x20format:*\x20%0',o(_0x572b11,'ELEMENT_'+_0x5e6b85['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4d707f=this['editor'],_0x5204cb=_0x4d707f['locale'];_0x4d707f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e274=>{if('formatBlock'!=_0x14e274['type'])return;const {data:_0x34e3a3}=_0x14e274;if(!_0x34e3a3)return;let _0x4c0ca2,_0xc91c;switch(_0x34e3a3['commandName']){case'listStyle':_0x4c0ca2='*Change\x20to:*\x20%0',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2,o(_0x5204cb,this['_getTranslationKeyForListStyle'](_0x34e3a3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4c0ca2=_0x34e3a3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2)};break;case'listStart':_0x4c0ca2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc91c={'type':'format','content':o(_0x5204cb,_0x4c0ca2,_0x34e3a3['commandParams'][0x0]['startIndex'])};}return _0xc91c;});}['_getTranslationKeyForListStyle'](_0x443219){return'ELEMENT_'+function(_0x362101){if(Se['includes'](_0x362101))return'bulleted';if(_e['includes'](_0x362101))return'numbered';return null;}(_0x443219)['toUpperCase']()+'_LIST_'+_0x443219['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x292012{['afterInit'](){const _0x591675=this['editor'];_0x591675['commands']['get']('emoji')&&_0x591675['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x292012{static get['requires'](){return[_0x445463];}['init'](){const _0x4439b2=this['editor'],_0x596203=_0x4439b2['plugins']['get']('TrackChangesEditing'),_0x27065f=_0x4439b2['commands']['get']('enter');_0x596203['enableCommand']('enter',()=>{_0x4439b2['model']['change'](_0xc4ec36=>{const _0x1819d6=_0x4439b2['model']['document']['selection'],_0x1e6d64=_0x1819d6['getFirstPosition'](),_0x394d3e=_0x5f13a0['fromRange'](_0x1819d6['getFirstRange']());if(_0x27065f['enterBlock'](_0xc4ec36)){const _0x261009=_0x4439b2['model']['createPositionAt'](_0x1e6d64['parent']['nextSibling'],0x0),_0x5ba961=_0xc4ec36['createRange'](_0x1e6d64,_0x261009);_0x596203['markInsertion'](_0x5ba961);}else _0xc4ec36['setSelection'](_0xc4ec36['createRange'](_0x394d3e['end']));_0x394d3e['detach'](),_0x27065f['fire']('afterExecute',{'writer':_0xc4ec36});});}),_0x4439b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4439b2,'split'),{'priority':'high'}),_0x4439b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3be07f,_0x5ef292,_0x2308fa)=>{const _0x29cdf5=_0x2308fa['mapper']['markerNameToElements'](_0x5ef292['markerName']);if(_0x29cdf5){for(const _0x7a5750 of _0x29cdf5)_0x7a5750['hasClass']('ck-suggestion-marker-split')&&(_0x2308fa['mapper']['unbindElementFromMarkerName'](_0x7a5750,_0x5ef292['markerName']),_0x2308fa['writer']['remove'](_0x7a5750));}},{'priority':'high'}),_0x4439b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x270057,_0x12a5e4,_0x34f1eb)=>{_0x34f1eb['options']['showSuggestionHighlights']&&De(_0x4439b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x270057,_0x12a5e4,_0x34f1eb);},{'priority':'high'});}}class Q extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x556e10=this['editor']['plugins']['get']('TrackChangesEditing');_0x556e10['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x556e10['enableCommand']('findNext'),_0x556e10['enableCommand']('findPrevious'),_0x556e10['enableCommand']('replace'),_0x556e10['enableCommand']('replaceAll');}['handleFindCommand'](_0x588a45,_0x5bb984,_0x64f7df={}){const _0x523ecd=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x588a45(_0x51182e=>{let _0xe6b95e=('string'==typeof _0x5bb984?_0x523ecd['findByTextCallback'](_0x5bb984,_0x64f7df):_0x5bb984)(_0x51182e);Array['isArray'](_0xe6b95e)&&(_0xe6b95e={'results':_0xe6b95e,'searchText':'string'==typeof _0x5bb984?_0x5bb984:''});const _0x4145e5=_0xe6b95e['results']['filter'](_0x3eeedd=>!0x1===this['_isInDeletionRange'](_0x3eeedd,_0x51182e['item']));return{..._0xe6b95e,'results':_0x4145e5};},_0x64f7df);}['_isInDeletionRange'](_0x4d2f63,_0x3eb0eb){const _0x4f55cb=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3eb0eb,_0x4d2f63['start']),this['editor']['model']['createPositionAt'](_0x3eb0eb,_0x4d2f63['end']));for(const _0x26f9d9 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4f55cb['getIntersection'](_0x26f9d9['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x292012{['afterInit'](){const _0x377d5f=this['editor']['locale'],_0x1fd555=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50258d,commandName:_0x244d3b}of eo)this['editor']['plugins']['has'](_0x50258d)&&(_0x1fd555['enableDefaultAttributesIntegration'](_0x244d3b),_0x1fd555['registerInlineAttribute'](_0x244d3b));_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x377d5f,'FORMAT_FONT_SIZE')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x377d5f,'FORMAT_FONT_FAMILY')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x377d5f,'FORMAT_FONT_COLOR')),_0x1fd555['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x377d5f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc66f=this['editor'],_0x429723=_0x3cc66f['locale'];_0x3cc66f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x274439=>{const _0x32bf2c=_0x429723['t'];if('formatInline'!=_0x274439['type'])return;const {data:_0x5f0cd2}=_0x274439;if(null!=_0x5f0cd2){if('fontSize'==_0x5f0cd2['commandName']){const _0x6166c3=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x6166c3){const _0x494d4b=_0x32bf2c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23a455=>_0x23a455['model']==_0x6166c3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x429723,'*Set\x20font\x20size:*\x20%0',_0x494d4b)};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f0cd2['commandName']){const _0xab92f0=_0x5f0cd2['commandParams'][0x0]['value'];return _0xab92f0?{'type':'format','content':o(_0x429723,'*Set\x20font\x20family:*\x20%0',_0xab92f0)}:{'type':'format','content':o(_0x429723,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f0cd2['commandName']){const _0x3aca89=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x3aca89){const _0x472647=_0x21c3ef(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4d8570=>_0x4d8570['model']==_0x3aca89);let _0x160e2a=_0x3aca89,_0x54f2c0='';return _0x472647&&(_0x160e2a=_0x472647['label'],_0x54f2c0=_0x32bf2c(_0x160e2a)['toLowerCase']()),{'type':'format','content':o(_0x429723,'*Set\x20font\x20color:*\x20%0',_0x54f2c0)['trim'](),'color':{'value':_0x3aca89,'title':_0x54f2c0||_0x160e2a}};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f0cd2['commandName']){const _0x33d8c2=_0x5f0cd2['commandParams'][0x0]['value'];if(_0x33d8c2){const _0x370ac9=_0x21c3ef(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2112aa=>_0x2112aa['model']==_0x33d8c2);let _0x39e1f4=_0x33d8c2,_0x3d41d2='';return _0x370ac9&&(_0x39e1f4=_0x370ac9['label'],_0x3d41d2=_0x32bf2c(_0x39e1f4)['toLowerCase']()),{'type':'format','content':o(_0x429723,'*Set\x20font\x20background\x20color:*\x20%0',_0x3d41d2)['trim'](),'color':{'value':_0x33d8c2,'title':_0x3d41d2||_0x39e1f4}};}return{'type':'format','content':o(_0x429723,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x292012{['afterInit'](){const _0x46332f=this['editor'],_0xd5e8ef=_0x46332f['plugins']['get']('TrackChangesEditing'),_0x943dd7=_0x46332f['commands']['get']('copyFormat'),_0x180534=_0x46332f['commands']['get']('pasteFormat');_0x943dd7&&_0x180534&&(_0xd5e8ef['enableDefaultAttributesIntegration']('pasteFormat'),_0xd5e8ef['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x38b0ae=this['editor'],_0x31e8c6=_0x38b0ae['locale'];_0x38b0ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c0827=>{if('formatBlock'!=_0x5c0827['type']&&'formatInline'!=_0x5c0827['type'])return;const {data:_0x573e45}=_0x5c0827;if(_0x573e45&&'pasteFormat'===_0x573e45['commandName']){const _0x5b9b2b=[],_0x2f9b53=_0x573e45['commandParams'][0x0];for(const [_0x21b3b7,_0x469138]of Object['entries'](_0x2f9b53))_0x5b9b2b['push'](ro(_0x38b0ae,_0x21b3b7,_0x469138));return _0x5b9b2b['length']?{'type':'format','content':o(_0x31e8c6,'*Set\x20format\x20to:*\x20%0',_0x5b9b2b['join'](',\x20'))}:{'type':'format','content':o(_0x31e8c6,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x17cad1,_0x1a1dde,_0x5f58c8){const _0x25e145=_0x17cad1['locale']['t'],_0x5377fc=_0x1a1dde['split'](/(?=[A-Z])/)['join']('\x20'),_0x1890a2=_0x25e145(_0x5377fc['charAt'](0x0)['toUpperCase']()+_0x5377fc['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5f58c8)return _0x1890a2;if('fontColor'===_0x1a1dde||'fontBackgroundColor'===_0x1a1dde){const _0x45de10=_0x21c3ef(_0x17cad1['config']['get']('fontColor.colors'))['find'](_0x101a59=>_0x101a59['model']==_0x5f58c8);return _0x1890a2+'\x20('+(_0x45de10?_0x25e145(_0x45de10['label'])['toLowerCase']():_0x5f58c8)+')';}if('fontSize'===_0x1a1dde&&isNaN(parseFloat(_0x5f58c8))){const _0x4f6ade=_0x17cad1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x17cad1['config']['get']('fontSize.options'))['find'](_0x3e75e6=>_0x3e75e6['model']==_0x5f58c8);return _0x1890a2+'\x20('+(_0x4f6ade?_0x25e145(_0x4f6ade['title'])['toLowerCase']():_0x5f58c8)+')';}return _0x1890a2+'\x20('+_0x5f58c8+')';}class Z extends _0x292012{['_headingOptions'];['afterInit'](){const _0x284ba4=this['editor'];if(!_0x284ba4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x284ba4['config']['get']('heading.options');const _0x4c140e=_0x284ba4['locale'],_0x4b6337=_0x284ba4['plugins']['get']('TrackChangesEditing');_0x4b6337['enableDefaultAttributesIntegration']('heading');for(const _0x1cf2f9 of this['_headingOptions'])'paragraph'!=_0x1cf2f9['model']&&_0x4b6337['descriptionFactory']['registerElementLabel'](_0x1cf2f9['model'],_0x31ecb4=>{const _0x51a914=this['_getHeadingLevel'](_0x1cf2f9['model']);return null!==_0x51a914?_0x717c16(_0x31ecb4,_0x51a914):_0x2e88be(_0x31ecb4,_0x1cf2f9['title']);});function _0x717c16(_0x581c6a,_0x386641){return o(_0x4c140e,'ELEMENT_HEADING',[_0x581c6a,_0x386641]);}function _0x2e88be(_0x10ecca,_0x16f366){return o(_0x4c140e,'ELEMENT_HEADING_CUSTOM',[_0x10ecca,_0x16f366]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21778b=this['editor'],_0x284e43=_0x21778b['locale'];function _0x4eccb8(_0x49de2e,_0x2de523){return o(_0x284e43,'ELEMENT_HEADING_CUSTOM',[_0x49de2e,_0x2de523]);}_0x21778b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x353311=>{if('formatBlock'!=_0x353311['type'])return;const {data:_0x41d69e}=_0x353311;if(_0x41d69e&&'heading'==_0x41d69e['commandName']){const _0x3fd63b=_0x41d69e['commandParams'][0x0]['value'],_0x4f3986=this['_getHeadingLevel'](_0x3fd63b);if(null!==_0x4f3986)return{'type':'format','content':o(_0x284e43,'*Change\x20to:*\x20%0',(_0x561d0f=0x1,_0xcda3e8=_0x4f3986,o(_0x284e43,'ELEMENT_HEADING',[_0x561d0f,_0xcda3e8])))};const _0x5445ca=this['_headingOptions']['find'](_0xca8363=>_0xca8363['model']===_0x3fd63b)['title'];return{'type':'format','content':o(_0x284e43,'*Change\x20to:*\x20%0',_0x4eccb8(0x1,_0x5445ca))};}var _0x561d0f,_0xcda3e8;});}['_getHeadingLevel'](_0x5ec461){const _0x1b306b=_0x5ec461['match'](/^heading(\d+)/);if(_0x1b306b)return _0x1b306b[0x1];const _0x1f631a=this['_headingOptions']?.['find'](_0x8701a1=>_0x8701a1['model']==_0x5ec461);if(_0x1f631a&&_0x1f631a['view']){const _0x3a5163=_0x1f631a['view'],_0xc98452=(_0x3a5163['name']??_0x3a5163)['match'](/^h(\d+)/);if(_0xc98452)return _0xc98452[0x1];}return null;}}class tt extends _0x292012{['afterInit'](){const _0x33bce9=this['editor'];if(!_0x33bce9['plugins']['has']('HighlightEditing'))return;const _0x131c63=_0x33bce9['plugins']['get']('TrackChangesEditing'),_0x9bf945=_0x33bce9['locale'];_0x131c63['enableDefaultAttributesIntegration']('highlight'),_0x131c63['registerInlineAttribute']('highlight'),_0x131c63['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x9bf945,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x173ae9=this['editor'],_0x595987=_0x173ae9['locale'];_0x173ae9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19db38=>{if('formatInline'!=_0x19db38['type'])return;const {data:_0x313e05}=_0x19db38;if(_0x313e05&&'highlight'==_0x313e05['commandName']){const _0xaa9b1c=_0x595987['t'],_0x204aa6=_0x313e05['commandParams'][0x0]['value'];if(_0x204aa6){const _0x4fc51a=_0x173ae9['config']['get']('highlight.options')['find'](_0x26c2ac=>_0x26c2ac['model']==_0x204aa6),_0x148712=_0xaa9b1c(_0x4fc51a['title'])['toLowerCase']();return{'type':'format','content':o(_0x595987,'*Set\x20highlight:*\x20%0',_0x148712),'color':{'value':_0x4fc51a['color'],'title':_0x4fc51a['title']}};}return{'type':'format','content':o(_0x595987,'*Remove\x20highlight*',o(_0x595987,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x292012{['afterInit'](){const _0x584cf8=this['editor'];if(!_0x584cf8['plugins']['has']('HorizontalLineEditing'))return;_0x584cf8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4148de=_0x584cf8['plugins']['get']('TrackChangesEditing'),_0x2847a1=_0x584cf8['locale'];_0x4148de['descriptionFactory']['registerElementLabel']('horizontalLine',_0xed23c9=>o(_0x2847a1,'ELEMENT_HORIZONTAL_LINE',_0xed23c9)),_0x584cf8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x167bdc,{writer:_0x325970,options:_0x25ea68})=>{if(!_0x25ea68['showSuggestionHighlights'])return null;const _0x420425=_0x325970['createContainerElement']('div'),_0x4ad975=_0x325970['createEmptyElement']('hr');return _0x325970['addClass']('ck-horizontal-line',_0x420425),_0x325970['insert'](_0x325970['createPositionAt'](_0x420425,0x0),_0x4ad975),_0x420425;},'converterPriority':'high'});}}class nt extends _0x292012{['afterInit'](){const _0x212609=this['editor'];if(!_0x212609['plugins']['has']('HtmlEmbed'))return;const _0x53021e=_0x212609['plugins']['get']('TrackChangesEditing'),_0xed06a1=_0x212609['locale'];_0x53021e['descriptionFactory']['registerElementLabel']('rawHtml',_0x17e60b=>o(_0xed06a1,'ELEMENT_HTML_EMBED',_0x17e60b)),_0x53021e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x53021e['registerBlockAttribute']('value'),_0x53021e['descriptionFactory']['registerDescriptionCallback'](_0x2ba7ac=>{if('attribute'!=_0x2ba7ac['type'])return;const {data:_0x545fab}=_0x2ba7ac;if(_0x545fab&&'value'==_0x545fab['key']&&_0x2ba7ac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x422ffb=o(_0xed06a1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xed06a1,'*Change\x20%0\x20content*',_0x422ffb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20f08b=this['editor'],_0x20659a=_0x20f08b['locale'];_0x20f08b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x63d696=>{if('formatBlock'!=_0x63d696['type'])return;const {data:_0x1e762c}=_0x63d696;if(_0x1e762c&&'htmlEmbed'==_0x1e762c['commandName']){const _0x5350f8=o(_0x20659a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x20659a,'*Change\x20%0\x20content*',_0x5350f8)};}});}}class et extends _0x292012{['afterInit'](){const _0x335ccd=this['editor'];if(!_0x335ccd['plugins']['has']('ImageEditing'))return;const _0x43f96d=_0x335ccd['plugins']['get']('TrackChangesEditing'),_0x3681b9=_0x335ccd['plugins']['get']('ImageUtils'),_0x154fc3=_0x335ccd['locale'];_0x43f96d['enableCommand']('insertImage'),_0x43f96d['descriptionFactory']['registerElementLabel']('imageBlock',_0x2095cb=>o(_0x154fc3,'ELEMENT_IMAGE',_0x2095cb)),_0x43f96d['descriptionFactory']['registerElementLabel']('imageInline',_0x380097=>o(_0x154fc3,'ELEMENT_INLINE_IMAGE',_0x380097)),_0x43f96d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x154fc3,'ELEMENT_CAPTION')),_0x335ccd['plugins']['has']('ImageUploadEditing')&&_0x43f96d['enableCommand']('uploadImage'),_0x335ccd['plugins']['has']('ImageBlockEditing')&&_0x335ccd['plugins']['has']('ImageInlineEditing')&&(_0x43f96d['enableCommand']('imageTypeInline',(_0x26f283,_0x1db323)=>{const _0x1fce87=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']);_0x335ccd['model']['change'](()=>{_0x43f96d['markBlockFormat'](_0x1fce87,{'commandName':'imageTypeInline','commandParams':[_0x1db323]},[],'convertBlockImageToInline');});}),_0x43f96d['enableCommand']('imageTypeBlock',(_0xfd158f,_0x36400b)=>{_0x335ccd['model']['change'](_0x55315e=>{let _0x31ef48=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x61cda1=_0x55315e['createRangeOn'](_0x31ef48);const _0xb5b1dd=_0x3b4ced['fromPosition'](_0x61cda1['start'],'toPrevious'),_0x4154dc=_0x3b4ced['fromPosition'](_0x61cda1['end'],'toNext');_0x43f96d['forceDefaultExecution'](()=>_0xfd158f(_0x36400b)),_0x31ef48=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x61cda1=_0x55315e['createRangeOn'](_0x31ef48);const _0xac0ec2=_0x55315e['createRange'](_0xb5b1dd,_0x4154dc);_0xb5b1dd['detach'](),_0x4154dc['detach'](),_0x43f96d['markBlockFormat'](_0x31ef48,{'commandName':'imageTypeInline','commandParams':[_0x36400b]},[],'convertInlineImageToBlock'),_0xac0ec2['start']['isBefore'](_0x61cda1['start'])&&_0x43f96d['markInsertion'](_0x55315e['createRange'](_0xac0ec2['start'],_0x61cda1['start']),'convertInlineImageToBlock'),_0x61cda1['end']['isBefore'](_0xac0ec2['end'])&&_0x43f96d['markInsertion'](_0x55315e['createRange'](_0x61cda1['end'],_0xac0ec2['end']),'convertInlineImageToBlock');});}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x43f96d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x396e98])=>{const _0x5c588f=_0x43f96d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1eff91=_0x396e98['start'],_0x4d943a=_0x396e98['end'];const _0x51071c=_0x335ccd['model']['schema']['getNearestSelectionRange'](_0x1eff91,'backward'),_0x35b1cb=_0x335ccd['model']['schema']['getNearestSelectionRange'](_0x4d943a,'forward');_0x51071c['isCollapsed']&&(_0x1eff91=_0x51071c['start']),_0x35b1cb['isCollapsed']&&(_0x4d943a=_0x35b1cb['end']),_0x5c588f([_0x335ccd['model']['createRange'](_0x1eff91,_0x4d943a)]);}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x196961),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x196961)),_0x335ccd['plugins']['has']('ImageCaptionEditing')&&(_0x43f96d['enableCommand']('toggleImageCaption',(_0xc1dbc4,_0x27185d)=>{const _0x4a9937=_0x335ccd['plugins']['get']('ImageCaptionUtils');let _0xe95d8c=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x24d4d1=_0x4a9937['getCaptionFromImageModelElement'](_0xe95d8c);_0x335ccd['model']['change'](()=>{if(_0x24d4d1)return void _0x43f96d['markDeletion'](_0x335ccd['model']['createRangeOn'](_0x24d4d1));const _0x4c6cef=_0x3681b9['isBlockImage'](_0xe95d8c);_0xc1dbc4(_0x27185d),_0xe95d8c=_0x3681b9['getClosestSelectedImageElement'](_0x335ccd['model']['document']['selection']),_0x24d4d1=_0x4a9937['getCaptionFromImageModelElement'](_0xe95d8c),_0x43f96d['markInsertion'](_0x335ccd['model']['createRangeOn'](_0x24d4d1),_0x4c6cef?null:'imageCaption');});}),_0x43f96d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x196961));const _0x66ff9f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3db0e9(_0x48bf49,_0x4e2945){const _0x2a1f8f=_0x66ff9f['findIndex'](({type:_0x2db267,subType:_0x2bd5a1})=>_0x48bf49['type']==_0x2db267&&_0x48bf49['subType']==_0x2bd5a1),_0x25cb92=_0x66ff9f['findIndex'](({type:_0x14237e,subType:_0x1172c6})=>_0x4e2945['type']==_0x14237e&&_0x4e2945['subType']==_0x1172c6);if(_0x2a1f8f<0x0||_0x25cb92<0x0)return!0x1;const _0x9e35e0=_0x48bf49['getFirstRange'](),_0x2dd958=_0x4e2945['getFirstRange']();if((0x0==_0x2a1f8f||0x1==_0x2a1f8f)&&0x2==_0x25cb92&&_0x9e35e0['isIntersecting'](_0x2dd958))return!0x0;if(0x2==_0x2a1f8f&&0x3==_0x25cb92){const _0x5ea345=_0x43f96d['_findSuggestions'](_0x9e35e0,'insertion')['filter'](({suggestion:_0xf614f7,meta:_0x50afd8})=>_0x50afd8['isOwn']&&'convertInlineImageToBlock'==_0xf614f7['subType']);if(_0x5ea345['length']>0x1&&_0x2dd958['end']['isEqual'](_0x9e35e0['start']))return!0x0;if(0x1==_0x5ea345['length']&&(_0x9e35e0['start']['isEqual'](_0x2dd958['end'])||_0x9e35e0['end']['isEqual'](_0x2dd958['start'])))return!0x0;}if(0x3==_0x2a1f8f&&0x3==_0x25cb92&&_0x9e35e0['start']['isBefore'](_0x2dd958['start'])){const _0x14ac34=_0x9e35e0['end']['nodeAfter'],_0x21312d=_0x2dd958['start']['nodeBefore'];return _0x3681b9['isBlockImage'](_0x14ac34)&&_0x14ac34===_0x21312d;}return!0x1;}function _0x196961(_0x4ac6fe,_0x5cc1f0){return _0x3db0e9(_0x4ac6fe,_0x5cc1f0)?[_0x4ac6fe,_0x5cc1f0]:_0x3db0e9(_0x5cc1f0,_0x4ac6fe)?[_0x5cc1f0,_0x4ac6fe]:null;}_0x335ccd['plugins']['has']('ImageResize')&&(_0x43f96d['enableDefaultAttributesIntegration']('resizeImage'),_0x43f96d['registerBlockAttribute']('resizedWidth'),_0x43f96d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x154fc3,'FORMAT_IMAGE_SIZE'))),_0x335ccd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x43f96d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x43f96d['registerBlockAttribute']('alt')),_0x335ccd['plugins']['has']('PictureEditing')&&(_0x43f96d['registerBlockAttribute']('sources'),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x27abf6=>{if('attribute'!=_0x27abf6['type'])return;const {data:_0x41cfec}=_0x27abf6;return _0x41cfec&&'sources'==_0x41cfec['key']?{'type':'format','content':''}:void 0x0;})),_0x335ccd['plugins']['has']('ImageSizeAttributes')&&(_0x43f96d['registerBlockAttribute']('width'),_0x43f96d['registerBlockAttribute']('height'),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x303a0a=>{if('attribute'!=_0x303a0a['type'])return;const {data:_0x38f80b}=_0x303a0a;return!_0x38f80b||'width'!=_0x38f80b['key']&&'height'!=_0x38f80b['key']?void 0x0:{'type':'format','content':''};})),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x3655b6=>{if(!!_0x66ff9f['find'](({type:_0x33d307,subType:_0x2b338d})=>_0x3655b6['type']==_0x33d307&&_0x3655b6['subType']==_0x2b338d))return _0x3655b6['previous']?{}:void 0x0;}),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x5670d8=>{if('insertion'==_0x5670d8['type']||'deletion'==_0x5670d8['type']){const _0x1f4a68=_0x5670d8['getContainedElement']();if(_0x1f4a68&&_0x1f4a68['is']('element','caption'))return{'type':'insertion'==_0x5670d8['type']?'addObject':'removeObject','element':_0x1f4a68,'quantity':0x1};}}),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x1dfc83=>'formatBlock'==_0x1dfc83['type']&&'convertInlineImageToBlock'==_0x1dfc83['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1dfc83['type']&&'convertBlockImageToInline'==_0x1dfc83['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x43f96d['descriptionFactory']['registerDescriptionCallback'](_0x423ca4=>{if('attribute'!=_0x423ca4['type'])return;const {data:_0x597fc9}=_0x423ca4;if(!_0x597fc9||'alt'!=_0x597fc9['key'])return;const _0x5252a8=_0x597fc9['newValue'];return _0x5252a8?{'type':'format','content':o(_0x154fc3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5252a8+'\x22')}:{'type':'format','content':o(_0x154fc3,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28a3e5=this['editor'],_0x273d3d=_0x28a3e5['locale'];_0x28a3e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10026b=>{if('formatBlock'!=_0x10026b['type']&&'formatInline'!=_0x10026b['type'])return;const {data:_0x4dafe0}=_0x10026b;if(_0x4dafe0){if('imageTextAlternative'==_0x4dafe0['commandName']){const _0x1063ec=_0x4dafe0['commandParams'][0x0]['newValue'];return _0x1063ec?{'type':'format','content':o(_0x273d3d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1063ec+'\x22')}:{'type':'format','content':o(_0x273d3d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4dafe0['commandName']){const _0x53e9cd=_0x4dafe0['commandParams'][0x0]['width'];return _0x53e9cd?{'type':'format','content':o(_0x273d3d,'*Set\x20image\x20width:*\x20%0',_0x53e9cd)}:{'type':'format','content':o(_0x273d3d,'*Reset\x20image\x20width*')};}}});}}class st extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2d003b=this['editor']['locale'],_0x5c77e1=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c77e1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5c77e1['registerBlockAttribute']('src'),_0x5c77e1['descriptionFactory']['registerDescriptionCallback'](_0x222df1=>{if('attribute'!=_0x222df1['type'])return;const {data:_0x3e74f3}=_0x222df1;return _0x3e74f3&&'src'==_0x3e74f3['key']?_0x3e74f3['newValue']&&_0x3e74f3['oldValue']?{'type':'format','content':o(_0x2d003b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3cc8b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x3cc8b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3cc8b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3cc8b7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3cc8b7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d9eb1=this['editor'],_0x628d91=_0x4d9eb1['locale'];_0x4d9eb1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ae176=>{if('formatBlock'!=_0x4ae176['type']&&'formatInline'!=_0x4ae176['type'])return;const {data:_0x55efa5}=_0x4ae176;if(!_0x55efa5||'replaceImageSource'!=_0x55efa5['commandName'])return;return{'type':'format','content':o(_0x628d91,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x292012{['afterInit'](){const _0x4bfa2a=this['editor'];if(!_0x4bfa2a['plugins']['has']('ImageStyleEditing'))return;const _0x220a26=_0x4bfa2a['plugins']['get']('TrackChangesEditing'),_0x4f570a=_0x4bfa2a['plugins']['get']('ImageUtils'),_0x281eb2={};_0x220a26['enableCommand']('imageStyle',(_0x2785d6,_0x2a9d3c)=>{const _0x4e3ca8=_0x4bfa2a['plugins']['get']('Users')['me'],_0xadaeb4=_0x4bfa2a['commands']['get']('imageStyle');let _0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),_0x11cbaf=_0x4bfa2a['model']['createRangeOn'](_0x4da2a8),_0x54a24b=_0xadaeb4['value'];if(_0x54a24b==_0x2a9d3c['value'])return;const _0x844a7f={'commandName':'imageStyle','commandParams':[_0x2a9d3c],'formatGroupId':_0x48a539()};_0x4bfa2a['model']['change'](()=>{if(_0x220a26['getSuggestions']()['filter'](_0xb45950=>_0xb45950['isInContent']&&_0x4e3ca8==_0xb45950['author']&&('formatBlock'==_0xb45950['type']||'formatInline'==_0xb45950['type'])&&('imageStylePreApply'==_0xb45950['subType']||'imageStylePostApply'==_0xb45950['subType'])&&_0xb45950['getFirstRange']()['isEqual'](_0x11cbaf))['forEach'](_0x49694e=>_0x220a26['discardSuggestion'](_0x49694e['head'])),_0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),_0x11cbaf=_0x4bfa2a['model']['createRangeOn'](_0x4da2a8),_0xadaeb4['refresh'](),_0x4bfa2a['commands']['get']('imageTypeInline')['refresh'](),_0x4bfa2a['commands']['get']('imageTypeBlock')['refresh'](),_0x54a24b=_0xadaeb4['value'],_0x54a24b!=_0x2a9d3c['value'])return _0x4f570a['isInlineImage'](_0x4da2a8)&&_0xadaeb4['shouldConvertImageType'](_0x2a9d3c['value'],_0x4da2a8)?(_0x2785d6({..._0x2a9d3c,'setImageSizes':!0x1}),_0x4da2a8=_0x4f570a['getClosestSelectedImageElement'](_0x4bfa2a['model']['document']['selection']),void _0x220a26['markBlockFormat'](_0x4da2a8,{..._0x844a7f,'commandReversedParams':[{'value':_0x54a24b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4f570a['isBlockImage'](_0x4da2a8)?_0x220a26['markBlockFormat'](_0x4da2a8,_0x844a7f,[],'imageStylePostApply'):_0x220a26['markInlineFormat'](_0x11cbaf,_0x844a7f,'imageStylePostApply'));});});for(const _0x1a58d7 of _0x4bfa2a['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x281eb2[_0x1a58d7['name']]=_0x1a58d7['title']['toLowerCase']();_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3dc88f])=>{_0x4f570a['setImageNaturalSizeAttributes'](_0x3dc88f['getContainedElement']());}),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4634b1,_0x33b8dd)=>{_0x220a26['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4634b1,{'commandName':_0x33b8dd['commandName'],'commandParams':_0x33b8dd['commandReversedParams']});}),_0x220a26['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5af604,_0x5e0f0c){if(_0x3f5d4c(_0x5af604,_0x5e0f0c))return[_0x5af604,_0x5e0f0c];if(_0x3f5d4c(_0x5e0f0c,_0x5af604))return[_0x5e0f0c,_0x5af604];return null;});const _0x51dd65=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3f5d4c(_0x4bd3f5,_0x2a1d13){const _0x441d3c=_0x51dd65['findIndex'](({type:_0x1cccb0,subType:_0x35386d})=>_0x4bd3f5['type']==_0x1cccb0&&_0x4bd3f5['subType']==_0x35386d),_0x5072ee=_0x51dd65['findIndex'](({type:_0x1acbfb,subType:_0x3dc154})=>_0x2a1d13['type']==_0x1acbfb&&_0x2a1d13['subType']==_0x3dc154);if(_0x441d3c<0x0||_0x5072ee<0x0)return!0x1;const _0x2227ee=_0x4bd3f5['getFirstRange'](),_0x5c20b1=_0x2a1d13['getFirstRange']();if((0x0==_0x441d3c||0x1==_0x441d3c)&&0x2==_0x5072ee&&_0x2227ee['isIntersecting'](_0x5c20b1))return!0x0;if(0x2==_0x441d3c&&0x3==_0x5072ee){const _0x332857=_0x220a26['_findSuggestions'](_0x2227ee,'insertion')['filter'](({suggestion:_0x5ebd40,meta:_0x2a59c6})=>_0x2a59c6['isOwn']&&'convertInlineImageToBlock'==_0x5ebd40['subType']);if(_0x332857['length']>0x1&&_0x5c20b1['end']['isEqual'](_0x2227ee['start']))return!0x0;if(0x1==_0x332857['length']&&(_0x2227ee['start']['isEqual'](_0x5c20b1['end'])||_0x2227ee['end']['isEqual'](_0x5c20b1['start'])))return!0x0;}if(0x3==_0x441d3c&&0x3==_0x5072ee&&_0x2227ee['start']['isBefore'](_0x5c20b1['start'])){const _0x2302b8=_0x2227ee['end']['nodeAfter'],_0x20f08f=_0x5c20b1['start']['nodeBefore'];return _0x4f570a['isBlockImage'](_0x2302b8)&&_0x2302b8===_0x20f08f;}return!0x1;}_0x4bfa2a['model']['document']['registerPostFixer'](()=>{let _0x67a8e6=!0x1;const _0x24d3bf=Array['from'](_0x4bfa2a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe435d0,data:_0x167aa3}of _0x24d3bf){const {group:_0x18a012,type:_0x5631da,subType:_0x71b27e,id:_0x4a9b5b}=_0x220a26['_splitMarkerName'](_0xe435d0);if('suggestion'==_0x18a012&&_0x220a26['hasSuggestion'](_0x4a9b5b)){if('formatBlock'==_0x5631da&&('imageStylePreApply'==_0x71b27e||'imageStylePostApply'==_0x71b27e)){const _0x4545b7=_0x220a26['getSuggestion'](_0x4a9b5b);if(_0x167aa3['newRange']){const _0x51610c=_0x4545b7['getFirstRange']()['getContainedElement']();if(_0x4f570a['isBlockImage'](_0x51610c))continue;_0x220a26['discardSuggestion'](_0x4545b7),_0x67a8e6=!0x0;}}if('insertion'==_0x5631da&&'imageCaption'==_0x71b27e&&!_0x167aa3['newRange']){const _0x254764=_0x220a26['getSuggestion'](_0x4a9b5b);_0x254764['next']&&_0x254764['next']['isInContent']&&(_0x220a26['discardSuggestion'](_0x254764['next']),_0x67a8e6=!0x0);}}}return _0x67a8e6;}),this['_registerLegacyDescription'](_0x281eb2);}['_registerLegacyDescription'](_0x329a59){const _0xc5e867=this['editor'],_0x493310=_0xc5e867['locale'];_0xc5e867['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb4a84f=>{if('formatBlock'!=_0xb4a84f['type']&&'formatInline'!=_0xb4a84f['type'])return;const {data:_0x308c1e}=_0xb4a84f;if(!_0x308c1e||'imageStyle'!=_0x308c1e['commandName'])return;const _0x105267=_0x308c1e['commandParams'][0x0]['value'];return _0x5a304e('side'===_0x105267?o(_0x493310,'FORMAT_SIDE_IMAGE'):_0x329a59[_0x105267]||_0x105267);function _0x5a304e(_0x285855){return{'type':'format','content':o(_0x493310,'*Format:*\x20%0',_0x285855)};}});}}class rt extends _0x292012{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5b774f){super(_0x5b774f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x292259=this['editor'],_0x2eb0f3=_0x292259['commands']['get']('importWord'),_0x50b237=_0x292259['commands']['get']('trackChanges');_0x2eb0f3&&(_0x2eb0f3['on']('execute',(_0x4144c3,[,_0x123bff])=>{this['_trackChangesValueDuringImport']=_0x50b237['value'],_0x123bff['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2eb0f3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2eb0f3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x50b237['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x292259['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1378b9,_0xbce623){const {suggestions:_0x4236a5}=_0xbce623,_0x5536a4=this['editor']['commands']['get']('trackChanges'),_0xc90698=_0x5536a4['value'];this['_trackChangesValueDuringImport']!==_0xc90698&&(_0x5536a4['execute'](),this['_trackChangesExecuted']=!0x0),_0x4236a5&&_0x4236a5['forEach'](({id:_0x2a8a27,type:_0x228299,author:_0x3e1c2a,created_at:_0x2b79f5})=>{const _0x4aa2c2={'id':_0x2a8a27,'type':_0x228299,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3e1c2a,'createdAt':_0x2b79f5?new Date(_0x2b79f5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4aa2c2);});}}class at extends _0x292012{['afterInit'](){const _0x207df9=this['editor'],_0x566e43=_0x207df9['plugins']['get']('TrackChangesEditing');if(_0x207df9['plugins']['has']('IndentEditing')&&(_0x566e43['enableCommand']('indent'),_0x566e43['enableCommand']('outdent')),_0x207df9['plugins']['has']('IndentBlock')){for(const _0x1fdb9c of['indentBlock','outdentBlock'])_0x566e43['enableDefaultAttributesIntegration'](_0x1fdb9c);}const _0x59c78e=_0x207df9['locale'];_0x566e43['registerBlockAttribute']('blockIndent'),_0x566e43['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x59c78e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x312a56=this['editor'],_0x53b5c9=_0x312a56['locale'],_0x994469=_0x312a56['plugins']['get']('TrackChangesEditing');_0x994469['descriptionFactory']['registerDescriptionCallback'](_0x684486=>{if('formatBlock'!=_0x684486['type'])return;const {data:_0x227f11}=_0x684486;if(!_0x227f11)return;if('indentBlock'!=_0x227f11['commandName']&&'outdentBlock'!=_0x227f11['commandName'])return;const _0x2f8d92=_0x684486['getItems']()[0x0],_0x31dc31=_0x994469['descriptionFactory']['getItemLabel'](_0x2f8d92);return'indentBlock'==_0x227f11['commandName']?{'type':'format','content':o(_0x53b5c9,'*Indent:*\x20%0',_0x31dc31)}:'outdentBlock'==_0x227f11['commandName']?{'type':'format','content':o(_0x53b5c9,'*Outdent:*\x20%0',_0x31dc31)}:void 0x0;});}}class ct extends _0x292012{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x292012{['afterInit'](){const _0x4a8c6c=this['editor'];if(!_0x4a8c6c['plugins']['has']('LinkEditing'))return;const _0x2fd732=_0x4a8c6c['plugins']['get']('TrackChangesEditing'),_0x580247=_0x4a8c6c['commands']['get']('link');_0x2fd732['enableDefaultAttributesIntegration']('link'),_0x2fd732['enableDefaultAttributesIntegration']('unlink'),_0x2fd732['registerInlineAttribute']('linkHref');for(const _0x4088a0 of _0x580247['manualDecorators'])_0x2fd732['registerInlineAttribute'](_0x4088a0['id']),_0x2fd732['descriptionFactory']['registerAttributeLabel'](_0x4088a0['id'],'link\x20('+_0x4088a0['label']['toLowerCase']()+')');_0x2fd732['descriptionFactory']['registerDescriptionCallback'](_0x60c636=>{if('attribute'!=_0x60c636['type'])return;const {data:_0x569492}=_0x60c636;if(!_0x569492||'linkHref'!=_0x569492['key'])return;const _0x205df5=_0x569492['newValue'],_0x5b1bd4=_0x4a8c6c['locale'];return{'type':'format','content':null==_0x205df5?o(_0x5b1bd4,'*Remove\x20link*'):o(_0x5b1bd4,'*Set\x20link:*\x20%0','\x22'+_0x205df5+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1318e8=this['editor'],_0x2476b5=_0x1318e8['locale'];_0x1318e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ee0a8=>{if('formatInline'!=_0x3ee0a8['type'])return;const {data:_0x183ec6}=_0x3ee0a8;if(_0x183ec6){if('link'==_0x183ec6['commandName']){const _0x4809a5=_0x183ec6['commandParams'][0x0];return{'type':'format','content':o(_0x2476b5,'*Set\x20link:*\x20%0','\x22'+_0x4809a5+'\x22')};}return'unlink'==_0x183ec6['commandName']?{'type':'format','content':o(_0x2476b5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x292012{['afterInit'](){const _0x380057=this['editor'],_0x3fedfb=_0x380057['locale'];if(!_0x380057['plugins']['has']('LegacyListEditing'))return;const _0x8ae522=_0x380057['plugins']['get']('TrackChangesEditing'),_0x160e4d=_0x380057['plugins']['has']('LegacyTodoListEditing');function _0x24bf01(_0x52019b){return()=>{const _0x1322ea=_0x380057['model']['document']['selection'],_0x3879dd=_0x380057['commands']['get'](_0x52019b);if(_0x3879dd['value'])return void _0x380057['execute']('paragraph',{});const _0x154de3=_0x52019b['slice'](0x0,-0x4),_0x557c29=function(_0x1924c4,_0x17485d,_0x1eeb28){let _0xf3abfb=Array['from'](_0x1924c4)['filter'](_0xe6d9e=>function(_0x2b7794,_0xbe4945){return _0xbe4945['checkChild'](_0x2b7794['parent'],'listItem')&&!_0xbe4945['isObject'](_0x2b7794);}(_0xe6d9e,_0x1eeb28));_0xf3abfb=_0xf3abfb['filter'](_0x1c3761=>!_0x1c3761['is']('element','listItem')||_0x1c3761['getAttribute']('listType')!=_0x17485d);const _0x12e826=new Set();for(const _0x23d77c of _0xf3abfb)_0x23d77c['is']('element','listItem')?_0x12e826['add'](Le(_0x23d77c)):_0x12e826['add'](_0x23d77c);return Array['from'](_0x12e826);}(_0x1322ea['getSelectedBlocks'](),_0x154de3,_0x380057['model']['schema']);_0x380057['model']['change'](()=>{for(const _0xbd89fb of _0x557c29)_0x8ae522['markBlockFormat'](_0xbd89fb,{'commandName':_0x52019b,'commandParams':[{'forceValue':!_0x3879dd['value']}],'formatGroupId':'blockName'},Ee(_0xbd89fb));});};}function _0x160a09(_0x324267){return()=>{const _0x44460e=function(_0x16c323){let _0x37c810=Array['from'](_0x16c323);const _0x5eb87a=_0x37c810['findIndex'](_0x2ae521=>'listItem'!=_0x2ae521['name']);return _0x5eb87a>-0x1&&(_0x37c810=_0x37c810['slice'](0x0,_0x5eb87a)),_0x37c810;}(_0x380057['model']['document']['selection']['getSelectedBlocks']()),_0x66c213=_0x380057['model']['createRange'](_0x380057['model']['createPositionAt'](_0x44460e[0x0],'before'),_0x380057['model']['createPositionAt'](_0x44460e[_0x44460e['length']-0x1],'end'));_0x380057['model']['change'](()=>{_0x8ae522['markBlockFormat'](_0x66c213,{'commandName':_0x324267,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2f5bbf){const _0x169f72=new Set();for(const _0x215d15 of _0x2f5bbf){let _0x3dceab=_0x215d15['nextSibling'];for(;_0x3dceab&&_0x3dceab['getAttribute']('listIndent')>_0x215d15['getAttribute']('listIndent');)_0x169f72['add'](_0x3dceab),_0x3dceab=_0x3dceab['nextSibling'];}return Array['from'](_0x169f72);}(_0x44460e));});};}_0x8ae522['enableCommand']('numberedList',_0x24bf01('numberedList')),_0x8ae522['enableCommand']('bulletedList',_0x24bf01('bulletedList')),_0x160e4d&&_0x8ae522['enableCommand']('todoList',_0x24bf01('todoList')),_0x8ae522['enableCommand']('indentList',_0x160a09('indentList')),_0x8ae522['enableCommand']('outdentList',_0x160a09('outdentList')),_0x160e4d&&_0x8ae522['enableCommand']('checkTodoList',()=>{const _0x37e681=_0x380057['commands']['get']('checkTodoList'),_0x4f6bd8=Array['from'](_0x37e681['_selectedElements']);_0x4f6bd8['filter'](_0x176cc9=>_0x176cc9['getAttribute']('todoListChecked')!=_0x37e681['value']),_0x380057['model']['change'](()=>{for(const _0x5c3bf8 of _0x4f6bd8)_0x8ae522['markBlockFormat'](_0x5c3bf8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x37e681['value']}]});});}),_0x8ae522['descriptionFactory']['registerElementLabel']('listItem',_0xb98895=>o(_0x3fedfb,'ELEMENT_LIST_ITEM',_0xb98895)),_0x8ae522['descriptionFactory']['registerDescriptionCallback'](_0x595cac=>{if('formatBlock'!=_0x595cac['type']&&'formatInline'!=_0x595cac['type'])return;const {data:_0x3d332d}=_0x595cac;if(_0x3d332d){if('numberedList'==_0x3d332d['commandName']||'bulletedList'==_0x3d332d['commandName']||'todoList'==_0x3d332d['commandName'])switch(_0x3d332d['commandName']['replace']('List','')){case'bulleted':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1b1a15(o(_0x3fedfb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3d332d['commandName'])return{'type':'format','content':o(_0x3fedfb,'*Indent:*\x20%0',o(_0x3fedfb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3d332d['commandName'])return{'type':'format','content':o(_0x3fedfb,'*Outdent:*\x20%0',o(_0x3fedfb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3d332d['commandName'])return _0x3d332d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3fedfb,'*Check\x20item*')}:{'type':'format','content':o(_0x3fedfb,'*Uncheck\x20item*')};}function _0x1b1a15(_0x4a4dc1){return{'type':'format','content':o(_0x3fedfb,'*Change\x20to:*\x20%0',_0x4a4dc1)};}});}}function Le(_0x13d7a6){const _0x1383ba=_0x13d7a6['getAttribute']('listIndent');if(0x0==_0x1383ba)return _0x13d7a6;let _0x1c9be4=_0x13d7a6;for(;_0x13d7a6['previousSibling']&&_0x13d7a6['previousSibling']['is']('element','listItem');){const _0x566c57=_0x13d7a6['previousSibling']['getAttribute']('listIndent');if(_0x566c57==_0x1383ba)_0x1c9be4=_0x13d7a6['previousSibling'];else{if(_0x566c57<_0x1383ba)break;}_0x13d7a6=_0x13d7a6['previousSibling'];}return _0x1c9be4;}function Ee(_0x5c587c){const _0x446c61=[];if(_0x5c587c['is']('element','listItem')&&_0x5c587c['getAttribute']('listIndent')>0x0){let _0x226e95=_0x5c587c['nextSibling'];for(;_0x226e95&&'listItem'==_0x226e95['name']&&_0x226e95['getAttribute']('listIndent')==_0x5c587c['getAttribute']('listIndent');)_0x446c61['push'](_0x226e95),_0x226e95=_0x226e95['nextSibling'];}return _0x446c61;}class ht extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xd0e21a=this['editor']['config']['get']('list.properties'),_0x200b7c=this['editor']['plugins']['get']('TrackChangesEditing');_0xd0e21a['styles']&&_0x200b7c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xd0e21a['reversed']&&_0x200b7c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xd0e21a['startIndex']&&_0x200b7c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x200b7c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x44b373,_0x2f1a02={}){const _0x54d426=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d5ba9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x54d426['markMultiRangeBlockFormat'](_0x3d5ba9,{'commandName':'listStyle','commandParams':[{'type':_0x2f1a02['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x32d89d,_0x39fc31={}){const _0x48c76f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5aa884=this['_getSuggestionBlocks'](_0x4b6d50=>_0x4b6d50['is']('element','listItem')&&'numbered'===_0x4b6d50['getAttribute']('listType'));if(_0x5aa884['length']<0x1)return;const _0xbfb7ed=_0x5aa884['map'](_0xa13c49=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xa13c49,'before'),this['editor']['model']['createPositionAt'](_0xa13c49,0x0)));this['editor']['model']['change'](()=>{_0x48c76f['markMultiRangeBlockFormat'](_0xbfb7ed,{'commandName':'listReversed','commandParams':[{'reversed':_0x39fc31['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x516abb,_0xe58f3={}){const _0x568a90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14cc1f=this['_getSuggestionBlocks'](_0x246f2f=>_0x246f2f['is']('element','listItem')&&'numbered'===_0x246f2f['getAttribute']('listType'));if(_0x14cc1f['length']<0x1)return;const _0x1f112d=_0x14cc1f['map'](_0x3a094f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a094f,'before'),this['editor']['model']['createPositionAt'](_0x3a094f,0x0)));this['editor']['model']['change'](()=>{_0x568a90['markMultiRangeBlockFormat'](_0x1f112d,{'commandName':'listStart','commandParams':[{'startIndex':_0xe58f3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x17b1cc){if('formatBlock'!=_0x17b1cc['type']&&'formatInline'!=_0x17b1cc['type'])return;const _0x5e1299=this['editor']['locale'],{data:_0x12d8c8}=_0x17b1cc;if(!_0x12d8c8)return;let _0x79caf2,_0x276051;switch(_0x12d8c8['commandName']){case'listStyle':_0x79caf2='*Change\x20to:*\x20%0',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2,o(_0x5e1299,this['_getTranslationKeyForListStyle'](_0x12d8c8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x79caf2=_0x12d8c8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2)};break;case'listStart':_0x79caf2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x276051={'type':'format','content':o(_0x5e1299,_0x79caf2,_0x12d8c8['commandParams'][0x0]['startIndex'])};}return _0x276051;}['_getSuggestionBlocksForListStyle'](){const _0xc16ffa=this['editor']['plugins']['get']('LegacyListUtils');let _0x36a48d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x36a48d[0x0]?.['is']('element','listItem')&&_0x36a48d['unshift'](..._0xc16ffa['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x36a48d[_0x36a48d['length']-0x1]?.['is']('element','listItem')&&_0x36a48d['push'](..._0xc16ffa['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x36a48d=[...new Set(_0x36a48d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x36a48d=_0x36a48d['filter'](_0x563c5a=>_0x563c5a['is']('element','listItem'))),_0x36a48d;}['_getSuggestionBlocks'](_0x907a3a){const _0x136efe=this['editor']['plugins']['get']('LegacyListUtils');let _0x204735=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x907a3a)['map'](_0x8a0af8=>{const _0x395445=this['editor']['model']['createPositionAt'](_0x8a0af8,0x0);return[..._0x136efe['getSiblingNodes'](_0x395445,'backward'),..._0x136efe['getSiblingNodes'](_0x395445,'forward')];})['flat']();return _0x204735=[...new Set(_0x204735)],_0x204735;}['_getTranslationKeyForListStyle'](_0x477a93){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x477a93)||'default')['toUpperCase']()+'_LIST_'+_0x477a93['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x292012{['afterInit'](){const _0x3a742b=this['editor'];if(!_0x3a742b['plugins']['has']('MediaEmbedEditing'))return;const _0x403614=_0x3a742b['plugins']['get']('TrackChangesEditing'),_0x30f810=_0x3a742b['locale'];_0x403614['enableCommand']('mediaEmbed'),_0x403614['descriptionFactory']['registerElementLabel']('media',_0x56a730=>o(_0x30f810,'ELEMENT_MEDIA',_0x56a730)),_0x3a742b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x25d375,{writer:_0xdd0ddc,options:_0xe8c586})=>{if(_0xe8c586['showSuggestionHighlights'])return _0xdd0ddc['createEmptyElement']('div');},'converterPriority':'high'}),_0x3a742b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2b1dda,_0xe35b22,_0x321bde)=>{_0x321bde['options']['showSuggestionHighlights']&&_0x2b1dda['stop']();},{'priority':'high'});}}class lt extends _0x292012{['afterInit'](){const _0x338269=this['editor'];_0x338269['plugins']['has']('MentionEditing')&&_0x338269['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x292012{['afterInit'](){const _0x6c1352=this['editor'];if(!_0x6c1352['plugins']['has']('MergeFieldsEditing'))return;const _0x51fa96=_0x6c1352['plugins']['get']('TrackChangesEditing'),_0x50e0a9=_0x6c1352['locale'];_0x51fa96['enableCommand']('insertMergeField'),_0x51fa96['enableCommand']('insertMergeFieldBlock'),_0x51fa96['enableCommand']('insertMergeFieldImage'),_0x51fa96['descriptionFactory']['registerElementLabel']('mergeField',_0x1107cc=>o(_0x50e0a9,'ELEMENT_MERGE_FIELD',_0x1107cc)),_0x51fa96['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1fec63=>o(_0x50e0a9,'ELEMENT_MERGE_FIELD',_0x1fec63)),_0x51fa96['descriptionFactory']['registerDescriptionCallback'](_0x4c3651=>{if('insertion'!=_0x4c3651['type']&&'deletion'!=_0x4c3651['type'])return;const _0x7f6fff=_0x4c3651['getContainedElement']();if(null==_0x7f6fff)return;const _0xd573e5=_0x6c1352['plugins']['get']('MergeFieldsEditing');let _0x409698;switch(_0xd573e5['getMergeFieldType'](_0x7f6fff)){case null:return;case'image':{const _0x55342c=_0xd573e5['unwrapAffixes'](_0x7f6fff['getAttribute']('src'));_0x409698=_0xd573e5['getLabel'](_0x55342c)||_0x55342c;break;}default:{const _0x4006c2=_0x7f6fff['getAttribute']('id');_0x409698=_0xd573e5['getLabel'](_0x4006c2)||_0x4006c2;break;}}return'insertion'==_0x4c3651['type']?{'type':'insertion','content':o(_0x50e0a9,'*Insert:*\x20%0','\x22'+_0x409698+'\x22\x20'+o(_0x50e0a9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x50e0a9,'*Remove:*\x20%0','\x22'+_0x409698+'\x22\x20'+o(_0x50e0a9,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x292012{['afterInit'](){const _0x44e16c=this['editor'],_0x35e0c1=_0x44e16c['plugins']['get']('TrackChangesEditing');_0x44e16c['plugins']['has']('MultiLevelList')&&(_0x35e0c1['enableDefaultAttributesIntegration']('multiLevelList'),_0x35e0c1['registerBlockAttribute']('listMarkerStyle'),_0x35e0c1['descriptionFactory']['registerDescriptionCallback'](_0x136cef=>this['handleDescriptions'](_0x136cef)));}['handleDescriptions'](_0x296003){const _0x1fe81c=this['editor']['locale'],{data:_0x31e262}=_0x296003,_0x5635e0={'type':'format','content':''};if(_0x31e262&&'listMarkerStyle'==_0x31e262['key']){if(!_0x31e262['oldValue'])return{'type':'format','content':o(_0x1fe81c,'*Set\x20format:*\x20%0',o(_0x1fe81c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31e262['newValue']+')'};if(!_0x31e262['newValue']){let _0xed3270=_0x296003['head'];for(;_0xed3270;){if(_0xed3270['data']&&'listType'==_0xed3270['data']['key']&&_0xed3270['data']['newValue'])return _0x5635e0;_0xed3270=_0xed3270['next'];}return{'type':'format','content':o(_0x1fe81c,'*Remove\x20format:*\x20%0',o(_0x1fe81c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x31e262['oldValue']+')'};}}}}class pt extends _0x292012{['afterInit'](){const _0x6e3ec4=this['editor'];if(!_0x6e3ec4['plugins']['has']('PageBreakEditing'))return;_0x6e3ec4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3d1dcf=_0x6e3ec4['plugins']['get']('TrackChangesEditing'),_0x2961fb=_0x6e3ec4['locale'];_0x3d1dcf['descriptionFactory']['registerElementLabel']('pageBreak',_0x549d65=>o(_0x2961fb,'ELEMENT_PAGE_BREAK',_0x549d65));}}class kt extends _0x292012{['afterInit'](){const _0x2cae5f=this['editor'];if(!_0x2cae5f['plugins']['has']('Paragraph'))return;const _0x4861eb=_0x2cae5f['locale'],_0x47731c=_0x2cae5f['plugins']['get']('TrackChangesEditing');_0x47731c['descriptionFactory']['registerElementLabel']('paragraph',_0xea8c4=>o(_0x4861eb,'ELEMENT_PARAGRAPH',_0xea8c4)),_0x47731c['enableDefaultAttributesIntegration']('paragraph'),_0x47731c['enableCommand']('insertParagraph'),_0x2cae5f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2cae5f),{'priority':'highest'}),_0x2cae5f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x371076,_0x13903d,_0x439149)=>{_0x439149['options']['showSuggestionHighlights']&&nr(_0x2cae5f,{'showActiveMarker':!0x1})(_0x371076,_0x13903d,_0x439149);},{'priority':'highest'});const _0x1b355e=_0x47731c['descriptionFactory'];_0x1b355e['registerDescriptionCallback'](_0x2610ce=>{if('insertion'!==_0x2610ce['type'])return;const {start:_0x38329f,end:_0x112796}=_0x2610ce['getFirstRange']();if(!_0x38329f['isTouching'](_0x112796)||!_0x38329f['nodeAfter'])return;const _0x51d419=_0x2cae5f['model']['schema'],_0x19f93=_0x38329f['nodeAfter'];return _0x51d419['isBlock'](_0x19f93)&&!_0x51d419['isLimit'](_0x19f93)&&_0x51d419['checkChild'](_0x19f93,'$text')?{'type':'insertion','content':o(_0x4861eb,'*Insert:*\x20%0',_0x1b355e['getItemLabel'](_0x19f93,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3427cd=this['editor'],_0x215fab=_0x3427cd['locale'];_0x3427cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x319ed5=>{if('formatBlock'!=_0x319ed5['type'])return;const {data:_0x1bdbb4}=_0x319ed5;return _0x1bdbb4&&'paragraph'==_0x1bdbb4['commandName']?{'type':'format','content':o(_0x215fab,'*Change\x20to:*\x20%0',o(_0x215fab,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xf57660,{showActiveMarker:_0x12ec58=!0x0}={}){return(_0x720b1f,_0x3345f2,_0x4914ac)=>{const _0x3c9436=_0xf57660['plugins']['get']('TrackChangesEditing'),_0x363162=_0x3345f2['markerRange']['start'],_0x1bc239=_0x3345f2['markerRange']['end'],_0x19fa1a=_0xf57660['model']['schema'];if(!_0x363162['isTouching'](_0x1bc239)||!_0x363162['nodeAfter'])return;const _0x538445=_0x363162['nodeAfter'];if(_0x19fa1a['isBlock'](_0x538445)&&!_0x19fa1a['isLimit'](_0x538445)&&_0x19fa1a['checkChild'](_0x538445,'$text')){if(!_0x4914ac['consumable']['consume'](_0x3345f2['markerRange'],_0x720b1f['name']))return;const {id:_0x441b07,authorId:_0x341947}=_0x3c9436['_splitMarkerName'](_0x3345f2['markerName']),_0x4635df=_0x4914ac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x441b07,'data-author-id':_0x341947}),_0x5cf8cb=_0x4914ac['mapper']['toViewPosition'](_0x1bc239);_0x12ec58&&_0x3c9436['activeMarkers']['includes'](_0x3345f2['markerName'])&&_0x4914ac['writer']['addClass']('ck-suggestion-marker--active',_0x4635df),_0x4914ac['writer']['insert'](_0x5cf8cb,_0x4635df),_0x4914ac['mapper']['bindElementToMarker'](_0x4635df,_0x3345f2['markerName']);}};}class wt extends _0x292012{['afterInit'](){const _0x370670=this['editor'];_0x370670['commands']['get']('replaceSource')&&_0x370670['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x292012{['afterInit'](){const _0x4afa8b=this['editor'];if(!_0x4afa8b['plugins']['has']('RemoveFormatEditing'))return;_0x4afa8b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x173aab=this['editor'];_0x173aab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd8db52=>{if('formatBlock'!=_0xd8db52['type']&&'formatInline'!=_0xd8db52['type'])return;const {data:_0xa79c54}=_0xd8db52;return _0xa79c54&&'removeFormat'==_0xa79c54['commandName']?{'type':'format','content':o(_0x173aab['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x292012{['afterInit'](){const _0x1ac562=this['editor'];if(!_0x1ac562['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x206f9f=_0x1ac562['plugins']['get']('TrackChangesEditing');_0x206f9f['enableCommand']('goToPreviousRestrictedEditingException'),_0x206f9f['enableCommand']('goToNextRestrictedEditingException');const _0x32474a=_0x1ac562['plugins']['get']('RestrictedEditingModeEditing');_0x32474a['enableCommand']('trackChanges'),_0x32474a['enableCommand']('acceptSuggestion'),_0x32474a['enableCommand']('discardSuggestion'),_0x32474a['enableCommand']('acceptAllSuggestions'),_0x32474a['enableCommand']('discardAllSuggestions'),_0x32474a['enableCommand']('acceptSelectedSuggestions'),_0x32474a['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x292012{['afterInit'](){const _0x18cb2e=this['editor'];if(!_0x18cb2e['plugins']['has']('ShiftEnter'))return;const _0x3a4dea=_0x18cb2e['plugins']['get']('TrackChangesEditing');_0x3a4dea['enableCommand']('shiftEnter'),_0x18cb2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x18cb2e),{'priority':'high'}),_0x18cb2e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x18cb2e),{'priority':'high'}),_0x18cb2e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x347878,_0x4b62e6,_0x3200f9)=>{_0x3200f9['options']['showSuggestionHighlights']&&je(_0x18cb2e,{'showActiveMarker':!0x1})(_0x347878,_0x4b62e6,_0x3200f9);}),_0x3a4dea['descriptionFactory']['registerElementLabel']('softBreak',_0x2935c8=>o(_0x18cb2e['locale'],'ELEMENT_LINE_BREAK',_0x2935c8));}}function je(_0x3d4bc8,{showActiveMarker:_0x5eadc9=!0x0}={}){return(_0x231773,_0x2e68f6,_0x5323ec)=>{const _0x349789=_0x3d4bc8['plugins']['get']('TrackChangesEditing');if(!_0x5323ec['consumable']['test'](_0x2e68f6['markerRange'],_0x231773['name']))return;const _0x497069=_0x3d4bc8['model'];for(const _0x2a2599 of _0x2e68f6['markerRange']['getItems']()){if(!_0x2a2599['is']('element','softBreak'))continue;const _0x2816b3='deletion'==_0x2e68f6['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4675d9,authorId:_0x50873e}=_0x349789['_splitMarkerName'](_0x2e68f6['markerName']),_0x1b1a8f=_0x5323ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2816b3,'data-suggestion':_0x4675d9,'data-author-id':_0x50873e}),_0x579ce9=_0x5323ec['mapper']['toViewPosition'](_0x497069['createPositionBefore'](_0x2a2599));_0x5eadc9&&_0x349789['activeMarkers']['includes'](_0x2e68f6['markerName'])&&_0x5323ec['writer']['addClass']('ck-suggestion-marker--active',_0x1b1a8f),_0x5323ec['writer']['insert'](_0x579ce9,_0x1b1a8f),_0x5323ec['mapper']['bindElementToMarker'](_0x1b1a8f,_0x2e68f6['markerName']);}};}class St extends _0x292012{['afterInit'](){const _0x595e53=this['editor'],_0x2e5fa7=_0x595e53['model'],_0x3f13d8=_0x595e53['locale'];if(!_0x595e53['plugins']['has']('StandardEditingModeEditing'))return;const _0x538e7d=_0x595e53['plugins']['get']('TrackChangesEditing'),_0x3f95ef='restrictedEditingException',_0x19d85a=_0x595e53['commands']['get'](_0x3f95ef);_0x538e7d['enableCommand'](_0x3f95ef,(_0x2e7934,_0x1ae00e={})=>{const _0x507874=_0x2e5fa7['document']['selection'];if(_0x507874['isCollapsed'])return void _0x2e7934(_0x1ae00e);const _0x258a06=void 0x0!==_0x1ae00e['forceValue']?_0x1ae00e['forceValue']:!_0x19d85a['value'];_0x2e5fa7['change'](()=>{const _0xc81184=Array['from'](_0x507874['getRanges']());for(const _0x3ab9b5 of _0xc81184){const _0x2fde95=_0x258a06?[_0x3ab9b5]:io(_0x3f95ef,_0x3ab9b5,_0x2e5fa7);for(const _0x2e2645 of _0x2fde95)_0x538e7d['markInlineFormat'](_0x2e2645,{'commandName':_0x3f95ef,'commandParams':[{'forceValue':_0x258a06}]});}});}),_0x538e7d['descriptionFactory']['registerDescriptionCallback'](_0x2f3637=>{if('formatBlock'!=_0x2f3637['type']&&'formatInline'!=_0x2f3637['type'])return;const {data:_0x349783}=_0x2f3637;return _0x349783&&_0x349783['commandName']==_0x3f95ef?_0x349783['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3f13d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3f13d8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x292012{['afterInit'](){const _0x54d07c=this['editor'];if(!_0x54d07c['plugins']['has']('Style')||!_0x54d07c['plugins']['has']('DataSchema'))return;const _0x30777f=_0x54d07c['plugins']['get']('TrackChangesEditing'),_0x22ff32=_0x54d07c['locale'],_0x1d2a21=_0x54d07c['config']['get']('style')||{},_0x3d8961=_0x54d07c['plugins']['get']('GeneralHtmlSupport'),_0x503e77=_0x54d07c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x54d07c['plugins']['get']('DataSchema'),_0x1d2a21['definitions']);_0x30777f['enableDefaultAttributesIntegration']('style');const _0x409c10=new Set();for(const _0x3a3e38 of _0x503e77['block']){const _0x1f2fad=_0x3d8961['getGhsAttributeNameForElement'](_0x3a3e38['element']);_0x409c10['add'](_0x1f2fad);}const _0x242776=new Set();for(const _0x4376c3 of _0x503e77['inline']){const _0x5d97f0=_0x3d8961['getGhsAttributeNameForElement'](_0x4376c3['element']);_0x242776['add'](_0x5d97f0);for(const _0x523a71 of _0x4376c3['ghsAttributes'])_0x242776['add'](_0x523a71);}for(const _0x4ffb7e of _0x409c10)_0x30777f['registerBlockAttribute'](_0x4ffb7e),_0x30777f['descriptionFactory']['registerAttributeLabel'](_0x4ffb7e,o(_0x22ff32,'FORMAT_STYLE'));for(const _0xef48b4 of _0x242776)_0x30777f['registerInlineAttribute'](_0xef48b4),_0x30777f['descriptionFactory']['registerAttributeLabel'](_0xef48b4,o(_0x22ff32,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56d0e1=this['editor'],_0x364ddf=_0x56d0e1['locale'];_0x56d0e1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x175584=>{if('formatBlock'!=_0x175584['type']&&'formatInline'!=_0x175584['type'])return;const {data:_0x9bac4}=_0x175584;return _0x9bac4&&'style'===_0x9bac4['commandName']?_0x9bac4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x364ddf,'*Set\x20format:*\x20%0',_0x9bac4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x364ddf,'*Remove\x20format:*\x20%0',_0x9bac4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x292012{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4c5a19){super(_0x4c5a19),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xdda0ec=this['editor'],_0x5de62b=_0xdda0ec['model']['document']['selection'];if(!_0xdda0ec['plugins']['has']('TableEditing'))return;const _0x2b0142=_0xdda0ec['locale'],_0x97d7a8=_0xdda0ec['plugins']['get']('TrackChangesEditing'),_0x4229fe=_0xdda0ec['plugins']['get']('TableUtils');_0x97d7a8['descriptionFactory']['registerElementLabel']('table',_0x152fc5=>o(_0x2b0142,'ELEMENT_TABLE',_0x152fc5)),this['_setupColumnsRowsFixing'](),_0x97d7a8['enableCommand']('insertTable'),_0x97d7a8['enableCommand']('selectTableRow'),_0x97d7a8['enableCommand']('selectTableColumn');for(const _0x3fce8b of['insertTableRowAbove','insertTableRowBelow']){const _0x484418=_0xdda0ec['commands']['get'](_0x3fce8b);_0x97d7a8['enableCommand'](_0x3fce8b,_0x439cb2=>{_0xdda0ec['model']['change'](_0x436129=>{_0x439cb2();const _0x43f329='above'===_0x484418['order'],_0xd5c916=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x132b78=_0x4229fe['getRowIndexes'](_0xd5c916),_0x36d017=_0x43f329?_0x132b78['first']-0x1:_0x132b78['last']+0x1,_0x240ceb=_0xd5c916[0x0]['findAncestor']('table'),_0x420223=_0x4229fe['createTableWalker'](_0x240ceb,{'startRow':_0x36d017,'endRow':_0x36d017}),_0x221a2e=Array['from'](_0x420223)['map'](_0x4e7010=>_0x436129['createRangeOn'](_0x4e7010['cell']));_0x97d7a8['markMultiRangeInsertion'](_0x221a2e,'tableRow');});});}for(const _0x2bbd85 of['insertTableColumnLeft','insertTableColumnRight']){const _0x519112=_0xdda0ec['commands']['get'](_0x2bbd85);_0x97d7a8['enableCommand'](_0x2bbd85,_0x438cc1=>{_0xdda0ec['model']['change'](_0x1a477d=>{_0x438cc1();const _0xfa485='left'===_0x519112['order'],_0x552987=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x185991=_0x4229fe['getColumnIndexes'](_0x552987),_0x22e5cb=_0xfa485?_0x185991['first']-0x1:_0x185991['last']+0x1,_0x424934=_0x552987[0x0]['findAncestor']('table'),_0x19f664=_0x4229fe['createTableWalker'](_0x424934,{'startRow':0x0,'column':_0x22e5cb,'includeAllSlots':!0x1}),_0x2e49a4=Array['from'](_0x19f664)['map'](_0x16e372=>_0x1a477d['createRangeOn'](_0x16e372['cell']));_0x97d7a8['markMultiRangeInsertion'](_0x2e49a4,'tableColumn');});});}for(const _0x374e02 of['removeTableRow','removeTableColumn']){const _0x199180=_0x374e02['substr'](0xb),_0x30ec63=_0x199180['toLowerCase'](),_0x5ea7e9=_0x30ec63['substr'](0x0,0x3)+'span',_0x25401c='table'+_0x199180,_0x1de867='min'+_0x199180,_0x11a10d='max'+_0x199180;_0x97d7a8['enableCommand'](_0x374e02,()=>{_0xdda0ec['model']['change'](_0x247557=>{const _0x2c1acb=_0x4229fe['getSelectionAffectedTableCells'](_0x5de62b),_0x42e078=_0x2c1acb[0x0]['findAncestor']('table');let _0x13905a;if('removeTableRow'==_0x374e02){const _0x49da57=_0x4229fe['getRowIndexes'](_0x2c1acb);_0x13905a={'startRow':_0x49da57['first'],'endRow':_0x49da57['last'],'includeAllSlots':!0x0};}else{const _0x74ed69=_0x4229fe['getColumnIndexes'](_0x2c1acb);_0x13905a={'startColumn':_0x74ed69['first'],'endColumn':_0x74ed69['last'],'includeAllSlots':!0x0};}const _0x1ea332=_0x4229fe['createTableWalker'](_0x42e078,_0x13905a),_0x247572=Array['from'](_0x1ea332)['map'](({cell:_0xa8dc2f})=>_0xa8dc2f),_0x124836=Ne(_0x247572['filter'](_0x5a7dbf=>_0x5a7dbf['hasAttribute'](_0x5ea7e9))),_0x3c7434=Ne(_0x247572['filter'](_0x556ac6=>!_0x556ac6['hasAttribute'](_0x5ea7e9)))['map'](_0x4250bd=>_0x247557['createRangeOn'](_0x4250bd)),_0x3fc754=_0x97d7a8['markMultiRangeDeletion'](_0x3c7434,_0x25401c);if(_0x3fc754&&('tableRow'==_0x3fc754['subType']||'tableColumn'==_0x3fc754['subType'])){const _0x1f8de8=this['_getSuggestionCoords'](_0x3fc754);for(const _0x4530dc of _0x124836){const _0x33e38=_0x247557['createRangeOn'](_0x4530dc),_0x5c395c=_0x4229fe['getCellLocation'](_0x4530dc),_0x5894d0=_0x4530dc['getAttribute'](_0x5ea7e9)-0x1,_0x5a760a=_0x1f8de8[_0x1de867],_0x185212=_0x1f8de8[_0x11a10d];_0x5a760a<=_0x5c395c[_0x30ec63]&&_0x5c395c[_0x30ec63]+_0x5894d0<=_0x185212&&_0x3fc754['addRange'](_0x33e38);}}});});}function _0x44c586(_0x44d7a9){const _0x45e722=Array['from'](_0x5de62b['getRanges']())['map'](_0xa37902=>_0x5f13a0['fromRange'](_0xa37902));_0xdda0ec['model']['change'](_0x4f96bc=>{const _0x4e7c68=_0x4f96bc['batch'];_0x44d7a9=_0x44d7a9['filter'](_0x5a2530=>'$graveyard'!=_0x5a2530['root']['rootName']),_0x4f96bc['setSelection'](_0x44d7a9),_0xdda0ec['commands']['get']('removeTableRow')['refresh'](),_0xdda0ec['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xdda0ec['model']['enqueueChange'](()=>{_0xdda0ec['model']['enqueueChange'](_0x4e7c68,_0x2309f9=>{const _0x42b324=_0x45e722['filter'](_0x3f1c53=>'$graveyard'!=_0x3f1c53['root']['rootName']);_0x42b324['length']>0x0&&_0x2309f9['setSelection'](_0x42b324);for(const _0x3259f3 of _0x45e722)_0x3259f3['detach']();});});});}function _0x3418ba(_0x2750c3){_0xdda0ec['model']['change'](_0x5d2489=>{const _0x3f7bc2=Array['from'](_0x5de62b['getRanges']())['map'](_0x18c7e1=>_0x5f13a0['fromRange'](_0x18c7e1)),_0x425b2e=[];for(const _0x49f530 of _0x2750c3)for(const _0x2a0e82 of _0x49f530['getItems']({'shallow':!0x0}))_0x425b2e['push'](_0x2a0e82);for(const _0x3ddf2a of _0x425b2e)'$graveyard'!=_0x3ddf2a['root']['rootName']&&(_0x5d2489['setSelection'](_0x5d2489['createPositionAt'](_0x3ddf2a,0x0)),_0xdda0ec['commands']['get']('removeTableColumn')['refresh'](),_0xdda0ec['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xe96eaa=_0x3f7bc2['filter'](_0x3e9c08=>'$graveyard'!=_0x3e9c08['root']['rootName']);_0xe96eaa['length']>0x0&&_0x5d2489['setSelection'](_0xe96eaa);for(const _0x58b253 of _0x3f7bc2)_0x58b253['detach']();});}function _0x29ed0d(_0x3365d5,_0x22f1ad){return _0x22f1ad['every'](_0x4ff317=>_0x3365d5['some'](_0x494d02=>_0x494d02['end']['isEqual'](_0x4ff317['start'])||_0x4ff317['end']['isEqual'](_0x494d02['start'])));}function _0x24ab80(_0xf78fd4,_0x524d36){return!_0xf78fd4['some'](_0x30d458=>_0x524d36['some'](_0x599c30=>_0x30d458['isIntersecting'](_0x599c30)))&&_0xf78fd4['some'](_0x33195d=>_0x524d36['some'](_0x37a2a5=>_0x33195d['end']['isTouching'](_0x37a2a5['start'])));}_0xdda0ec['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x7972cb,_0x15f2df,_0x32f6da)=>{if(!_0x32f6da['options']['showSuggestionHighlights'])return;const _0x1d9c39=_0x15f2df['item'];if(!_0x1d9c39||!_0x1d9c39['is']('element','tableCell'))return;const _0x45c68c=_0x32f6da['mapper']['toViewElement'](_0x1d9c39);if(_0x45c68c){const {id:_0x476be6,authorId:_0x3cd3a6}=_0x97d7a8['_splitMarkerName'](_0x15f2df['markerName']);_0x165164(_0x45c68c,_0x32f6da['writer'],(_0x394d1b,_0x59ec1d,_0x36a537)=>{_0x36a537['addClass'](_0x3ad1a7(_0x59ec1d['classes']),_0x394d1b),_0x36a537['setAttribute']('data-suggestion-id',_0x476be6,_0x394d1b),_0x36a537['setAttribute']('data-author-id',_0x3cd3a6,_0x394d1b);},(_0x1bd046,_0xd7dcd3,_0x216f4a)=>{_0x216f4a['removeClass'](_0x3ad1a7(_0xd7dcd3['classes']),_0x1bd046),_0x216f4a['removeAttribute']('data-suggestion-id',_0x1bd046),_0x216f4a['removeAttribute']('data-author-id',_0x1bd046);});}},{'priority':'highest'}),_0x97d7a8['descriptionFactory']['registerDescriptionCallback'](_0x543a67=>{if('insertion'!=_0x543a67['type']&&'deletion'!=_0x543a67['type'])return;const _0x1af680=_0x543a67['getContainedElement']();if(null!=_0x1af680&&_0x1af680['is']('element','table')){if('insertion'==_0x543a67['type']){const _0x18867e=_0x543a67['getItems']()['filter'](_0x4d6405=>_0x4d6405['is']('$textProxy'))['map'](_0x4bfcef=>_0x4bfcef['data']);if(_0x18867e['length'])return{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18867e['join']('\x20')+'\x22'))};}if('deletion'==_0x543a67['type']){const _0x395da4=_0x543a67['getItems']()['filter'](_0x1b975c=>_0x1b975c['is']('$textProxy'))['map'](_0x2a347f=>_0x2a347f['data']);if(_0x395da4['length'])return{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x395da4['join']('\x20')+'\x22'))};}}}),_0x97d7a8['descriptionFactory']['registerDescriptionCallback'](_0x17eb3f=>{if('tableRow'==_0x17eb3f['subType']){const _0xc6c3f=_0x17eb3f['getItems']()['filter'](_0x578cac=>_0x578cac['is']('$textProxy'))['map'](_0x445012=>_0x445012['data']),_0x13a2c8=this['_getSuggestionCoords'](_0x17eb3f),_0x282631=_0x13a2c8['maxRow']-_0x13a2c8['minRow']+0x1;if('insertion'==_0x17eb3f['type'])return _0xc6c3f['length']?{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x282631,'\x22'+_0xc6c3f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW',_0x282631))};if('deletion'==_0x17eb3f['type'])return _0xc6c3f['length']?{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x282631,'\x22'+_0xc6c3f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_ROW',_0x282631))};}if('tableColumn'==_0x17eb3f['subType']){const _0x4d384d=_0x17eb3f['getItems']()['filter'](_0x3dbce5=>_0x3dbce5['is']('$textProxy'))['map'](_0x5b2144=>_0x5b2144['data']),_0x12a5b6=this['_getSuggestionCoords'](_0x17eb3f),_0x5a8b24=_0x12a5b6['maxColumn']-_0x12a5b6['minColumn']+0x1;if('insertion'==_0x17eb3f['type'])return _0x4d384d['length']?{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a8b24,'\x22'+_0x4d384d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2b0142,'*Insert:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN',_0x5a8b24))};if('deletion'==_0x17eb3f['type'])return _0x4d384d['length']?{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a8b24,'\x22'+_0x4d384d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2b0142,'*Remove:*\x20%0',o(_0x2b0142,'ELEMENT_TABLE_COLUMN',_0x5a8b24))};}}),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x44c586),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x44c586),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3418ba),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3418ba),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x29ed0d),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x29ed0d),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x24ab80),_0x97d7a8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x24ab80);}['_acceptFormatSuggestionCallbackFactory'](){const _0x474f04=this['editor'],_0x2a8d6a=_0x474f04['model']['document']['selection'];return(_0x58e61e,_0xb4a97a)=>{_0x474f04['model']['change'](_0x442019=>{const {commandName:_0x131e3b,commandParams:_0x2cdbb9}=_0xb4a97a;let _0x49b05f=_0x58e61e[0x0]['end']['nodeBefore'];_0x2cdbb9&&_0x2cdbb9[0x0]&&!0x1===_0x2cdbb9[0x0]['forceValue']&&(_0x49b05f=_0x58e61e[0x0]['start']['nodeAfter']);const _0x3db9aa=_0x442019['createRangeIn'](_0x49b05f);if('$graveyard'==_0x3db9aa['root']['rootName'])return;const _0x282a0a=Array['from'](_0x2a8d6a['getRanges']())['map'](_0x1346b1=>_0x5f13a0['fromRange'](_0x1346b1));_0x442019['setSelection'](_0x3db9aa),_0x474f04['commands']['get'](_0x131e3b)['refresh'](),_0x2cdbb9['push']({'forceDefaultExecution':!0x0}),_0x474f04['execute'](_0x131e3b,..._0x2cdbb9);const _0x34f8e0=_0x282a0a['filter'](_0x4464f0=>'$graveyard'!=_0x4464f0['root']['rootName']);_0x34f8e0['length']>0x0&&_0x442019['setSelection'](_0x34f8e0);for(const _0x2fd2a4 of _0x282a0a)_0x2fd2a4['detach']();});};}['_getCoordsForCells'](_0x5c9b83){const _0x582d19=this['editor']['plugins']['get']('TableUtils');let _0x1be363=Number['MAX_SAFE_INTEGER'],_0x19a42e=Number['MIN_SAFE_INTEGER'],_0x41250f=Number['MAX_SAFE_INTEGER'],_0x34999e=Number['MIN_SAFE_INTEGER'];for(const _0x4b1b72 of _0x5c9b83){if('$graveyard'==_0x4b1b72['root']['rootName'])continue;const {row:_0xf9252,column:_0x418ef4}=_0x582d19['getCellLocation'](_0x4b1b72),_0x4e3be8=_0x4b1b72['hasAttribute']('rowspan')?_0x4b1b72['getAttribute']('rowspan')-0x1:0x0,_0x2d1d5f=_0x4b1b72['hasAttribute']('colspan')?_0x4b1b72['getAttribute']('colspan')-0x1:0x0;_0x1be363=_0xf9252<_0x1be363?_0xf9252:_0x1be363,_0x19a42e=_0xf9252+_0x4e3be8>_0x19a42e?_0xf9252+_0x4e3be8:_0x19a42e,_0x41250f=_0x418ef4<_0x41250f?_0x418ef4:_0x41250f,_0x34999e=_0x418ef4+_0x2d1d5f>_0x34999e?_0x418ef4+_0x2d1d5f:_0x34999e;}return{'minRow':_0x1be363,'maxRow':_0x19a42e,'minColumn':_0x41250f,'maxColumn':_0x34999e};}['_setupColumnsRowsFixing'](){const _0x5307e2=this['editor'],_0x5520cd=_0x5307e2['plugins']['get']('TrackChangesEditing'),_0x2aab82=_0x5307e2['plugins']['get']('TableUtils');_0x5307e2['model']['document']['on']('change:data',()=>{const _0x382659=Array['from'](_0x5307e2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7cc206,data:_0x10facf}of _0x382659){const {group:_0x155707,id:_0x6d7e8c,subType:_0x1bd8c9}=_0x5520cd['_splitMarkerName'](_0x7cc206);if('suggestion'!=_0x155707)continue;if(null!=_0x10facf['oldRange'])continue;const _0x287d51=_0x5520cd['getSuggestion'](_0x6d7e8c);this['_tablePostFixingSubtypes']['includes'](_0x1bd8c9)&&this['_tableSuggestions']['add'](_0x287d51);}},{'priority':'low'});const _0x392ad2=(_0xdfaf85,_0x20548a)=>{let _0x305e1f=!0x1;const _0x2affbf=_0x20548a['createRangeOn'](_0xdfaf85),_0x124e39=_0xdfaf85['findAncestor']('table'),_0x28f756=_0x2aab82['getCellLocation'](_0xdfaf85);for(const _0x5aae1c of this['_tableSuggestions']){const _0x4c1b2d=_0x5aae1c['subType'],_0x12a5d4=_0x4c1b2d['startsWith']('tablePaste'),_0x11b74c=_0x4c1b2d['substr'](_0x12a5d4?0xa:0x5),_0xbc584c=_0x11b74c['toLowerCase'](),_0x185ade=_0xbc584c['substr'](0x0,0x3)+'span',_0x1cd316='min'+_0x11b74c,_0x38664c='max'+_0x11b74c;if(!_0x5aae1c['isInContent'])continue;if(_0x124e39!=_0x5aae1c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5aae1c['isIntersectingWithRange'](_0x2affbf))continue;const _0x7973f3=_0xdfaf85['hasAttribute'](_0x185ade)?_0xdfaf85['getAttribute'](_0x185ade)-0x1:0x0,_0x533b38=this['_getSuggestionCoords'](_0x5aae1c),_0x24ff7d=_0x533b38[_0x1cd316],_0x24cfce=_0x533b38[_0x38664c];_0x24ff7d<=_0x28f756[_0xbc584c]&&_0x28f756[_0xbc584c]+_0x7973f3<=_0x24cfce&&(_0x5aae1c['addRange'](_0x2affbf),_0x305e1f=!0x0);}return _0x305e1f;};_0x5307e2['model']['document']['registerPostFixer'](_0x486c33=>{let _0x5eebbc=!0x1;for(const _0x30e3af of _0x5307e2['model']['document']['differ']['getChanges']())if('insert'==_0x30e3af['type']){if('tableRow'==_0x30e3af['name']){for(const _0x33646d of _0x30e3af['position']['nodeAfter']['getChildren']())_0x5eebbc=_0x5eebbc||_0x392ad2(_0x33646d,_0x486c33);}else'tableCell'==_0x30e3af['name']&&(_0x5eebbc=_0x5eebbc||_0x392ad2(_0x30e3af['position']['nodeAfter'],_0x486c33));}return _0x5eebbc;});}['_getSuggestionCoords'](_0x477a67){return this['_getCoordsForCells'](_0x477a67['getRanges']()['map'](_0x5ebedd=>_0x5ebedd['start']['nodeAfter']));}}function Ne(_0x83be41){return Array['from'](new Set(_0x83be41)['values']());}class _t extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x28bf7c=this['editor'],_0x1f6177=_0x28bf7c['model']['document']['selection'],_0x5027ca=_0x28bf7c['locale'];if(!_0x28bf7c['plugins']['has']('TableEditing'))return;const _0xb87d91=_0x28bf7c['plugins']['get']('TrackChangesEditing'),_0x486ee1=_0x28bf7c['plugins']['get']('TableUtils'),_0x5f3016=_0x28bf7c['plugins']['get'](At);_0x5f3016['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xb87d91['enableCommand']('mergeTableCells',()=>{const _0x37128f=_0x486ee1['getSelectionAffectedTableCells'](_0x28bf7c['model']['document']['selection']);_0x28bf7c['model']['change'](()=>{_0xb87d91['markMultiRangeBlockFormat'](_0x37128f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x28bf7c['commands']['get']('mergeTableCells')['on']('execute',(_0x53a1dd,_0x151d76)=>{_0x28bf7c['commands']['get']('trackChanges')['value']&&(_0x151d76['length']>0x0&&_0x151d76[_0x151d76['length']-0x1]&&_0x151d76[_0x151d76['length']-0x1]['forceDefaultExecution']||_0xb87d91['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53a1dd['stop']());},{'priority':'highest'});for(const _0x1a5605 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a95b5=_0x28bf7c['commands']['get'](_0x1a5605);_0xb87d91['enableCommand'](_0x1a5605,()=>{const _0x44900f=_0x28bf7c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2fc805=>_0x2fc805['is']('element','tableCell')),_0x4f6d6d=_0x5a95b5['value'];_0x28bf7c['model']['change'](()=>{_0xb87d91['markMultiRangeBlockFormat']([_0x44900f,_0x4f6d6d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1c0d0f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x593f6c=_0x28bf7c['commands']['get'](_0x1c0d0f);_0xb87d91['enableCommand'](_0x1c0d0f,()=>{const _0x1ad84f=_0x486ee1['getSelectionAffectedTableCells'](_0x28bf7c['model']['document']['selection'])[0x0],_0x5dcd5f=_0x1ad84f['findAncestor']('table'),{column:_0x492070,row:_0x34f2f2}=_0x486ee1['getCellLocation'](_0x1ad84f);let _0x4656a5=[];if('horizontally'==_0x593f6c['direction']){const _0x1c4e82=_0x486ee1['createTableWalker'](_0x5dcd5f,{'startRow':_0x34f2f2,'endRow':_0x34f2f2,'includeAllSlots':!0x0});_0x4656a5=Array['from'](_0x1c4e82)['map'](_0x1b81ee=>_0x1b81ee['cell']);}else{const _0x5eb545=_0x486ee1['createTableWalker'](_0x5dcd5f,{'column':_0x492070,'includeAllSlots':!0x0});_0x4656a5=Array['from'](_0x5eb545)['map'](_0x290ffd=>_0x290ffd['cell']);}_0x28bf7c['model']['change'](_0xc08f60=>{_0xb87d91['markBlockFormat'](_0xc08f60['createRangeOn'](_0x1ad84f),{'commandName':_0x1c0d0f,'commandParams':[]},_0x4656a5,_0x1c0d0f);});});}_0xb87d91['descriptionFactory']['registerDescriptionCallback'](_0x5dace3=>{if('formatBlock'!=_0x5dace3['type']&&'formatInline'!=_0x5dace3['type'])return;const {data:_0x2e4c00}=_0x5dace3;return _0x2e4c00&&'mergeTableCells'==_0x2e4c00['commandName']?{'type':'format','content':o(_0x5027ca,'*Merge\x20cells*')}:void 0x0;}),_0xb87d91['descriptionFactory']['registerDescriptionCallback'](_0x563144=>{if('formatBlock'!=_0x563144['type']&&'formatInline'!=_0x563144['type'])return;const {data:_0x3face9}=_0x563144;return _0x3face9?'splitTableCellVertically'==_0x3face9['commandName']?{'type':'format','content':o(_0x5027ca,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3face9['commandName']?{'type':'format','content':o(_0x5027ca,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x299ae8=_0x5f3016['_acceptFormatSuggestionCallbackFactory']();for(const _0x42c1cb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x42c1cb,'accept',_0x299ae8);for(const _0x5923bd of['splitTableCellVertically','splitTableCellHorizontally'])_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5923bd,'accept',_0x299ae8);_0xb87d91['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x489061=>{_0x28bf7c['model']['change'](_0x1a906b=>{const _0x2bd923=Array['from'](_0x1f6177['getRanges']())['map'](_0x9e0624=>_0x5f13a0['fromRange'](_0x9e0624));_0x1a906b['setSelection'](_0x489061),_0x28bf7c['commands']['get']('mergeTableCells')['refresh'](),_0x28bf7c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x22772b=_0x2bd923['filter'](_0x5b5a85=>'$graveyard'!=_0x5b5a85['root']['rootName']);_0x22772b['length']>0x0&&_0x1a906b['setSelection'](_0x22772b);for(const _0x2ea187 of _0x2bd923)_0x2ea187['detach']();});});for(const _0x396541 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3df727=_0x28bf7c['commands']['get'](_0x396541);_0x3df727['on']('set:isEnabled',(_0xacc443,_0x1f268d,_0x1b49e0)=>{if(_0x1b49e0){const _0x4de82d=_0x28bf7c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4241cf=>_0x4241cf['is']('element','tableCell'));this['_areMergableCells'](_0x3df727['value'],_0x4de82d)||(_0xacc443['return']=!0x1,_0xacc443['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3f91b4=this['editor']['commands']['get']('mergeTableCells'),_0x2ff7f5=this['editor']['plugins']['get']('TableUtils');if(!_0x3f91b4['isEnabled'])return!0x1;const _0x2aafe9=_0x2ff7f5['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1ca980 of _0x2aafe9)for(const _0x781bcd of _0x2aafe9)if(_0x1ca980!=_0x781bcd&&!this['_areMergableCells'](_0x1ca980,_0x781bcd))return!0x1;return!0x0;}['_areMergableCells'](_0x16a472,_0x19fbf8){const _0x59feaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b4a10=this['editor']['model']['createRangeOn'](_0x16a472),_0x287bfd=this['editor']['model']['createRangeOn'](_0x19fbf8),_0x4a47a4=new Set(),_0x4855df=new Set();for(const _0x4e1b76 of _0x59feaf['getSuggestions']())if(('insertion'==_0x4e1b76['type']||'deletion'==_0x4e1b76['type']||'mergeTableCells'==_0x4e1b76['subType'])&&_0x4e1b76['isInContent']){for(const _0x23903b of _0x4e1b76['getRanges']())_0x23903b['containsRange'](_0x5b4a10,!0x0)&&_0x4a47a4['add'](_0x4e1b76['type']+':'+_0x4e1b76['author']['id']),_0x23903b['containsRange'](_0x287bfd,!0x0)&&_0x4855df['add'](_0x4e1b76['type']+':'+_0x4e1b76['author']['id']);}if(_0x4a47a4['size']!=_0x4855df['size'])return!0x1;for(const _0x11a6fb of _0x4a47a4)if(!_0x4855df['has'](_0x11a6fb))return!0x1;return!0x0;}}class Ct extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x44e5dd=this['editor'];if(!_0x44e5dd['plugins']['has']('TableEditing'))return;const _0x28b4e7=_0x44e5dd['locale'],_0x51ea09=_0x44e5dd['plugins']['get']('TrackChangesEditing');_0x51ea09['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51ea09['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51ea09['registerBlockAttribute']('headingRows'),_0x51ea09['registerBlockAttribute']('headingColumns'),_0x51ea09['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x28b4e7,'FORMAT_HEADER_ROW')),_0x51ea09['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x28b4e7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a2472=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1830f2=this['editor']['plugins']['get']('TableUtils'),_0x32f082=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x33e8ae({showActiveMarker:_0x29dcfb=!0x0,setDataAttribute:_0xf352f6=!0x0}={}){return(_0x64abc0,_0x1de7a9,_0x387244)=>{const {type:_0x146787,id:_0x449597}=_0x5a2472['_splitMarkerName'](_0x1de7a9['markerName']),_0x1fae20=_0x5a2472['getSuggestion'](_0x449597),_0x16b4a5=_0x1fae20['data'];if('formatBlock'!=_0x1fae20['type']||!_0x16b4a5||'setTableColumnHeader'!=_0x16b4a5['commandName'])return;if(_0x1de7a9['item'])return void _0x64abc0['stop']();if(!_0x387244['consumable']['consume'](_0x1de7a9['markerRange'],_0x64abc0['name']))return;const _0x52e753=_0x1de7a9['markerRange']['start']['nodeAfter'],_0x3f3079=_0x1de7a9['markerRange']['end']['nodeBefore'],_0x332485=_0x52e753['parent']['parent'],{column:_0x2f4491}=_0x1830f2['getCellLocation'](_0x52e753),{column:_0x3c5eda}=_0x1830f2['getCellLocation'](_0x3f3079);for(let _0x47ffe2=_0x2f4491;_0x47ffe2<=_0x3c5eda;_0x47ffe2++){const _0x389c69=_0x1830f2['createTableWalker'](_0x332485,{'column':_0x47ffe2,'includeAllSlots':!0x1});for(const _0x23dd07 of _0x389c69){const _0x9ea9cb=_0x23dd07['cell'],_0x3858dc=_0x387244['mapper']['toViewElement'](_0x9ea9cb);_0x387244['writer']['addClass']('ck-suggestion-marker-'+_0x146787,_0x3858dc),_0xf352f6&&_0x387244['writer']['setAttribute']('data-suggestion',_0x449597,_0x3858dc),_0x387244['mapper']['bindElementToMarker'](_0x3858dc,_0x1de7a9['markerName']),_0x29dcfb&&(_0x5a2472['activeMarkers']['includes'](_0x1de7a9['markerName'])?_0x387244['writer']['addClass']('ck-suggestion-marker--active',_0x3858dc):_0x387244['writer']['removeClass']('ck-suggestion-marker--active',_0x3858dc));}}};}_0x5a2472['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x32f082),_0x5a2472['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x32f082),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33e8ae(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x489c6c,_0x13e4c7,_0x5f2ee4)=>{_0x5f2ee4['options']['showSuggestionHighlights']&&_0x33e8ae({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x489c6c,_0x13e4c7,_0x5f2ee4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51ce7e,_0x291ec5,_0x5dd33d)=>{const {type:_0x316763,id:_0x42c8fb}=_0x5a2472['_splitMarkerName'](_0x291ec5['markerName']),_0x13699b=_0x5a2472['getSuggestion'](_0x42c8fb),_0x492922=_0x13699b['data'];if('formatBlock'!=_0x13699b['type']||!_0x492922||'setTableColumnHeader'!=_0x492922['commandName'])return;const _0x3fb124=_0x5dd33d['mapper']['markerNameToElements'](_0x291ec5['markerName']);if(_0x3fb124){for(const _0x555378 of _0x3fb124)_0x5dd33d['writer']['removeClass']('ck-suggestion-marker-'+_0x316763,_0x555378),_0x5dd33d['writer']['removeClass']('ck-suggestion-marker--active',_0x555378),_0x5dd33d['writer']['removeAttribute']('data-suggestion',_0x555378),_0x5dd33d['mapper']['unbindElementFromMarkerName'](_0x555378,_0x291ec5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b3a5b=this['editor'],_0x20009d=_0x1b3a5b['locale'];function _0x586dae(_0x4b4ff8){return{'type':'format','content':o(_0x20009d,'*Format:*\x20%0',_0x4b4ff8)};}_0x1b3a5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bac36=>{if('formatBlock'!=_0x2bac36['type'])return;const {data:_0x60f920}=_0x2bac36;if(_0x60f920){if('setTableRowHeader'==_0x60f920['commandName']){const _0x24c426=_0x60f920['commandParams'][0x0]['forceValue'];return _0x586dae(o(_0x20009d,_0x24c426?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x60f920['commandName']){const _0x116fe4=_0x60f920['commandParams'][0x0]['forceValue'];return _0x586dae(o(_0x20009d,_0x116fe4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x292012{['afterInit'](){const _0x4174d4=this['editor'],_0x5a5500=_0x4174d4['locale'],_0xb0ba94=_0x4174d4['plugins']['get']('TrackChangesEditing');function _0x52ac26(_0x5f07fb){return{'type':'format','content':''+o(_0x5a5500,'*Set\x20table\x20type:*\x20%0',_0x5f07fb)};}_0x4174d4['plugins']['has']('TableLayout')&&(_0xb0ba94['enableCommand']('insertTableLayout'),_0xb0ba94['enableDefaultAttributesIntegration']('tableType'),_0xb0ba94['registerBlockAttribute']('tableType'),_0xb0ba94['descriptionFactory']['registerElementLabel'](_0x6f2467=>_0x6f2467['is']('element','table')&&'layout'===_0x6f2467['getAttribute']('tableType'),_0x1f3b2b=>o(_0x5a5500,'ELEMENT_LAYOUT_TABLE',_0x1f3b2b)),_0xb0ba94['descriptionFactory']['registerDescriptionCallback'](_0x211dbc=>{const {data:_0x17a51a}=_0x211dbc;if(_0x17a51a&&'tableType'==_0x17a51a['key'])switch(_0x17a51a['newValue']){case'layout':return _0x52ac26(o(_0x5a5500,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x52ac26(o(_0x5a5500,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Be['map'](_0x2e99cb=>[_0x2e99cb,null]));class Nt extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x5c6df5=this['editor'];if(!_0x5c6df5['plugins']['has']('TableClipboard'))return;const _0x55b07c=_0x5c6df5['plugins']['get']('TrackChangesEditing'),_0xf27db1=_0x5c6df5['plugins']['get']('TableUtils'),_0x3a6406=_0x5c6df5['plugins']['get'](At),_0x2e96b4=_0x5c6df5['plugins']['get']('TableClipboard'),_0x47fe83=_0x5c6df5['plugins']['get']('TableSelection'),_0x41731e=_0x5c6df5['plugins']['get'](_0x395624);_0x3a6406['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5c6df5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5c6df5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x240dc2=null,_0x3ed848=!0x1;_0x41731e['on']('contentInsertion',(_0x5aa8a9,_0x3cbeff)=>{_0x3ed848='paste'===_0x3cbeff['method'];}),_0x5c6df5['model']['on']('insertContent',(_0x2bf981,_0x9c6cbe)=>{if(!_0x3ed848&&null===_0x47fe83['getSelectedTableCells']())return;const [_0x77f97f,_0x2406cf]=_0x9c6cbe,_0x484911=_0x9c6cbe[_0x9c6cbe['length']-0x1];_0x484911&&_0x484911['forceDefaultExecution']||_0x55b07c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x10ccfc,_0x34aba1,_0x2dc5f8,_0x1b276f,_0x394f02){if(_0x34aba1&&!_0x34aba1['is']('documentSelection'))return!0x1;const _0x103ee6=_0x394f02['getTableIfOnlyTableInContent'](_0x10ccfc,_0x2dc5f8);if(!_0x103ee6||!Ue(_0x103ee6,void 0x0,_0x1b276f))return!0x1;const _0x383969=_0x1b276f['getSelectionAffectedTableCells'](_0x2dc5f8['document']['selection']);if(!_0x383969['length'])return!0x1;const _0x1356db=_0x383969[0x0]['findAncestor']('table'),_0x1737cc=_0x1b276f['getRowIndexes'](_0x383969),_0x25c68b=_0x1b276f['getColumnIndexes'](_0x383969),_0x42fcd1={'startRow':_0x1737cc['first'],'endRow':_0x1737cc['last'],'startColumn':_0x25c68b['first'],'endColumn':_0x25c68b['last']};return 0x1==_0x383969['length']&&(_0x42fcd1['endRow']+=_0x1b276f['getRows'](_0x103ee6)-0x1,_0x42fcd1['endColumn']+=_0x1b276f['getColumns'](_0x103ee6)-0x1),Ue(_0x1356db,_0x42fcd1,_0x1b276f);}(_0x77f97f,_0x2406cf,_0x5c6df5['model'],_0xf27db1,_0x2e96b4)&&(_0x2bf981['stop'](),_0x240dc2={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5c6df5['model']['change'](()=>{_0x5c6df5['model']['insertContent'](_0x9c6cbe[0x0],_0x9c6cbe[0x1],_0x9c6cbe[0x2],{'forceDefaultExecution':!0x0});const _0x33699b=_0x48a539(),{rowInsertionRanges:_0x431dd8,columnInsertionRanges:_0x478adb,insertionRanges:_0x26c997,deletionRanges:_0x20e7ab,cells:_0x46f633}=_0x240dc2;_0x431dd8['length']&&_0x55b07c['markMultiRangeInsertion'](_0x431dd8,'tablePasteRow',{'tablePasteChainId':_0x33699b}),_0x478adb['length']&&_0x55b07c['markMultiRangeInsertion'](_0x478adb,'tablePasteColumn',{'tablePasteChainId':_0x33699b}),_0x26c997['length']&&(_0x55b07c['markMultiRangeInsertion'](_0x26c997,'tablePaste',{'tablePasteChainId':_0x33699b,'skipNestingCheck':!0x0}),_0x26c997['forEach'](_0x227d8b=>_0x227d8b['detach']?.())),_0x20e7ab['length']&&(_0x55b07c['markMultiRangeDeletion'](_0x20e7ab,'tablePaste',{'tablePasteChainId':_0x33699b,'skipNestingCheck':!0x0}),_0x20e7ab['forEach'](_0x1efdc9=>_0x1efdc9['detach']?.()));const _0x634cb2=_0x55b07c['markMultiRangeBlockFormat'](_0x46f633['map'](({element:_0x20443f})=>_0x20443f),{'formatGroupId':_0x48a539()},[],'tablePasteCell',{'tablePasteChainId':_0x33699b});if(_0x634cb2){const _0x2d2dee=_0x634cb2['getMarkers'](),_0x45ae1f=[];for(const {element:_0x2ad3ac,attributes:_0x2e0fa8}of _0x46f633){if(!_0x2e0fa8)continue;const _0x3aabf6=_0x5c6df5['model']['createRangeOn'](_0x2ad3ac),_0x2b71e2=_0x2d2dee['find'](_0x469e59=>_0x469e59['getRange']()['isEqual'](_0x3aabf6));_0x2b71e2&&_0x45ae1f['push']([_0x2b71e2['name'],_0x2e0fa8]);}_0x45ae1f['length']&&_0x634cb2['setAttribute']('markerAttributes',Object['fromEntries'](_0x45ae1f));}_0x240dc2=null;}));},{'priority':_0x2dd4ea['high']+0xa}),_0x41731e['on']('contentInsertion',()=>{_0x3ed848=!0x1;},{'priority':'lowest'}),_0x5c6df5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x291fbd,_0x558e63)=>{const [_0x50e5a9,_0x3f4703,,_0x58a7a7]=_0x558e63;if(!_0x240dc2)return;_0x291fbd['stop']();const _0x32f47f=_0x50e5a9['cell'],_0x436c08=_0x3f4703,_0x1c7343=Oe(_0x32f47f),_0x15fbe7=Oe(_0x436c08);_0x291fbd['return']=_0x32f47f;let _0xc4cf4c=null,_0x180232=null;if(_0x15fbe7||_0x1c7343){if(_0x1c7343&&!_0x15fbe7){_0x58a7a7['remove'](_0x32f47f['getChild'](0x0));for(const _0x1bb520 of Array['from'](_0x436c08['getChildren']()))_0x58a7a7['insert'](_0x1bb520,_0x32f47f,'end');const _0x55231f=_0x240dc2['rowInsertionIndexes']['includes'](_0x50e5a9['row']),_0x50d23f=_0x240dc2['columnInsertionIndexes']['includes'](_0x50e5a9['column']);_0x55231f||_0x50d23f||(_0xc4cf4c=_0x5f13a0['fromRange'](_0x58a7a7['createRangeIn'](_0x32f47f)));}else _0x15fbe7&&!_0x1c7343&&(_0x180232=_0x58a7a7['createRangeIn'](_0x32f47f));}else{const _0x160d88=_0x58a7a7['createElement']('tableCellSuggestion'),_0x3a54f5=_0x58a7a7['createElement']('tableCellSuggestion');_0x58a7a7['wrap'](_0x58a7a7['createRangeIn'](_0x32f47f),_0x3a54f5),_0x58a7a7['insert'](_0x160d88,_0x32f47f,0x0);for(const _0x582f5a of Array['from'](_0x436c08['getChildren']()))_0x58a7a7['insert'](_0x582f5a,_0x160d88,'end');_0xc4cf4c=_0x5f13a0['fromRange'](_0x58a7a7['createRangeOn'](_0x160d88)),_0x180232=_0x5f13a0['fromRange'](_0x58a7a7['createRangeOn'](_0x3a54f5));}const _0x40f4e8=Array['from'](_0x436c08['getAttributes']())['filter'](([_0x1b65dc])=>Be['includes'](_0x1b65dc));_0x240dc2['cells']['push']({'element':_0x32f47f,'attributes':_0x40f4e8['length']?Object['fromEntries'](_0x40f4e8):null}),_0xc4cf4c&&_0x240dc2['insertionRanges']['push'](_0xc4cf4c),_0x180232&&_0x240dc2['deletionRanges']['push'](_0x180232);},{'priority':'high'}),_0xf27db1['on']('insertColumns',(_0x40729c,_0x5e9ffb)=>{const [_0x1b9067,_0x37d59e={}]=_0x5e9ffb;if(!_0x240dc2)return;const _0x2cbb21=_0x37d59e['at']||0x0,_0x28a4f2=_0x37d59e['columns']||0x1;_0x240dc2['columnInsertionIndexes']=new Array(_0x28a4f2)['fill'](_0x2cbb21)['map']((_0x2b4b50,_0x24c7ba)=>_0x2b4b50+_0x24c7ba);for(const {cell:_0x396ecb}of _0xf27db1['createTableWalker'](_0x1b9067,{'startColumn':_0x2cbb21,'endColumn':_0x2cbb21+_0x28a4f2-0x1}))_0x240dc2['columnInsertionRanges']['push'](_0x5c6df5['model']['createRangeOn'](_0x396ecb));},{'priority':'low'}),_0xf27db1['on']('insertRows',(_0xabbdb4,_0x3555f1)=>{const [_0x13cfd5,_0x49c141={}]=_0x3555f1;if(!_0x240dc2)return;const _0x3e77e4=_0x49c141['at']||0x0,_0x243926=_0x49c141['rows']||0x1;_0x240dc2['rowInsertionIndexes']=new Array(_0x243926)['fill'](_0x3e77e4)['map']((_0x175c60,_0x296db)=>_0x175c60+_0x296db);for(const {cell:_0x4f563f}of _0xf27db1['createTableWalker'](_0x13cfd5,{'startRow':_0x3e77e4,'endRow':_0x3e77e4+_0x243926-0x1}))_0x240dc2['rowInsertionRanges']['push'](_0x5c6df5['model']['createRangeOn'](_0x4f563f));},{'priority':'low'}),_0x55b07c['descriptionFactory']['registerDescriptionCallback'](_0xaa2d16=>{if(_0xaa2d16['subType']&&_0xaa2d16['subType']['startsWith']('tablePaste'))return _0xaa2d16['previous']?{}:{'type':'insertion','content':o(_0x5c6df5['locale'],'*Replace\x20table\x20cells*')};});const _0x3e7b5c=()=>!0x1;for(const _0x546d03 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion',_0x546d03,'join',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('deletion',_0x546d03,'join',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x546d03,'join',_0x3e7b5c);_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e7b5c),_0x55b07c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a4cd0,_0x48ba12,_0x29498b)=>{const _0x2f5c56=_0x4a4cd0['map'](_0x8786ee=>_0x8786ee['getContainedElement']())['filter'](_0x191c30=>_0x191c30),_0x5e810b=new Map(_0x2f5c56['map'](_0x291fcf=>[_0x291fcf,null]));if(_0x240dc2){for(const {element:_0x554493,attributes:_0xaf1d45}of _0x240dc2['cells'])_0xaf1d45&&_0x5e810b['set'](_0x554493,_0xaf1d45);}else{if(_0x29498b&&_0x29498b['markerAttributes'])for(const [_0xf119e0,_0x3f3fe4]of Object['entries'](_0x29498b['markerAttributes'])){const _0x53306e=_0x5c6df5['model']['markers']['get'](_0xf119e0),_0x2f0579=_0x53306e?_0x53306e['getRange']()['getContainedElement']():null;_0x2f0579&&_0x5e810b['set'](_0x2f0579,_0x3f3fe4);}}_0x5c6df5['model']['change'](_0x159aaf=>{for(const [_0x12c5ee,_0x3f82af]of _0x5e810b)_0x159aaf['setAttributes']({...xe,..._0x3f82af},_0x12c5ee);});});const _0x4878c2=(_0x704fa2,_0x4aee2c)=>{_0x55b07c['_suggestionFactory']['registerCustomCallback'](_0x704fa2,'tablePaste',_0x4aee2c,(_0x3eccd5,_0x145eb3,_0x12e40f)=>{_0x5c6df5['model']['change'](_0x594cef=>{const _0x3c90ac=[];for(const _0x323dca of _0x3eccd5){const _0x4e1444=_0x323dca['start']['nodeAfter'];_0x4e1444['is']('element','tableCellSuggestion')&&_0x3c90ac['push'](_0x4e1444);}_0x55b07c['_suggestionFactory']['getSuggestionCallback'](_0x704fa2,null,_0x4aee2c)(_0x3eccd5,_0x145eb3,_0x12e40f);for(const _0x36d674 of _0x3c90ac)'$graveyard'!=_0x36d674['root']['rootName']&&_0x594cef['unwrap'](_0x36d674);});});};_0x4878c2('insertion','accept'),_0x4878c2('insertion','discard'),_0x4878c2('deletion','accept'),_0x4878c2('deletion','discard'),_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4c6e2e=>{const _0x5cbfa6=_0x4c6e2e['map'](_0x580ad4=>_0x580ad4['getContainedElement']()),_0x4c2c9f=_0x5cbfa6[0x0]['findAncestor']('table'),{minRow:_0x55daf9,maxRow:_0x53c6a0}=_0x3a6406['_getCoordsForCells'](_0x5cbfa6);_0xf27db1['removeRows'](_0x4c2c9f,{'at':_0x55daf9,'rows':_0x53c6a0-_0x55daf9+0x1});}),_0x55b07c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1beacd=>{const _0x6024b4=_0x1beacd['map'](_0x2d0372=>_0x2d0372['getContainedElement']()),_0x340459=_0x6024b4[0x0]['findAncestor']('table'),{minColumn:_0x5923d6,maxColumn:_0x230273}=_0x3a6406['_getCoordsForCells'](_0x6024b4);_0xf27db1['removeColumns'](_0x340459,{'at':_0x5923d6,'columns':_0x230273-_0x5923d6+0x1});});const _0xaa3a7a=(_0x35433f,_0x7cdef)=>{if(!_0x7cdef['subType']||!_0x7cdef['subType']['startsWith']('tablePaste'))return;const _0x28984f=_0x7cdef['attributes']['tablePasteChainId'],_0x58fe31=_0x55b07c['getSuggestions']()['filter'](_0xa0dbc9=>_0xa0dbc9['isInContent']&&_0xa0dbc9['attributes']&&_0xa0dbc9['attributes']['tablePasteChainId']==_0x28984f);_0x58fe31['length']&&_0x7cdef['getAllAdjacentSuggestions']()['length']!=_0x58fe31['length']&&_0x58fe31['reduce']((_0x38fcfb,_0x3ef432)=>(_0x38fcfb['next']=_0x3ef432,_0x3ef432['previous']=_0x38fcfb,_0x3ef432));};function _0x19412c(_0x1f694f,_0x2dcccd=!0x0){const {id:_0x2c1413,authorId:_0x23e8a3}=_0x55b07c['_splitMarkerName'](_0x1f694f['markerName']),_0x22dbb8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x385496=_0x55b07c['activeMarkers']['includes'](_0x1f694f['markerName']);return _0x385496&&_0x22dbb8['push']('ck-suggestion-marker--active'),{'classes':_0x22dbb8,'attributes':{'data-suggestion':_0x2c1413,'data-author-id':_0x23e8a3},'priority':_0x385496&&_0x2dcccd?0xbc2:0xbb8};}_0x55b07c['on']('suggestionLoaded',_0xaa3a7a,{'priority':'high'}),_0x55b07c['on']('suggestionUnloaded',_0xaa3a7a,{'priority':'high'}),_0x5c6df5['model']['document']['registerPostFixer'](()=>{let _0x360676=!0x1;const _0x3c4a54=Array['from'](_0x5c6df5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32e504,data:_0x2dde47}of _0x3c4a54){const {group:_0x2a3c3f,type:_0x4f9e81,id:_0x593819}=_0x55b07c['_splitMarkerName'](_0x32e504);if('suggestion'!=_0x2a3c3f||'deletion'!=_0x4f9e81||_0x2dde47['oldRange'])continue;if(!_0x55b07c['hasSuggestion'](_0x593819))continue;const _0x1d2ade=_0x55b07c['getSuggestion'](_0x593819)['getRanges'](),_0x55fc4a=_0x5c6df5['plugins']['get']('Users')['me'];for(const _0x50c53d of _0x55b07c['getSuggestions']()){if(!_0x50c53d['isInContent']||_0x50c53d['author']!=_0x55fc4a)continue;if('formatBlock'!=_0x50c53d['type']||'tablePasteCell'!=_0x50c53d['subType'])continue;if(_0x50c53d['getRanges']()['every'](_0x4e3324=>_0x1d2ade['some'](_0x1aad1f=>_0x1aad1f['containsRange'](_0x4e3324,!0x0)))){for(const _0x36cd4f of _0x50c53d['getAllAdjacentSuggestions']())_0x36cd4f['isInContent']&&(_0x36cd4f['discard'](),_0x360676=!0x0);}}}return _0x360676;}),_0x5c6df5['model']['document']['registerPostFixer'](_0x4c1ff0=>{const _0xb072d4=_0x5c6df5['commands']['get']('redo');if(!_0xb072d4||!_0xb072d4['_createdBatches']['has'](_0x4c1ff0['batch']))return!0x1;let _0x2f1996=!0x1;const _0x5dbc2b=_0x5c6df5['plugins']['get']('Users')['me'],_0x1eb6c6=_0x5c6df5['model']['document']['differ']['getChanges'](),_0x33b9f1=Array['from'](_0x5c6df5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1d3141,data:_0x1a1060})=>{const {group:_0x5b5ab8,subType:_0x325ee6,authorId:_0x24341a}=_0x55b07c['_splitMarkerName'](_0x1d3141);return'suggestion'==_0x5b5ab8&&'tablePaste'==_0x325ee6&&_0x24341a==_0x5dbc2b['id']&&!_0x1a1060['oldRange'];});for(const _0x33fb27 of _0x1eb6c6){if('insert'!=_0x33fb27['type']||'tableCellSuggestion'!=_0x33fb27['name']||0x1!=_0x33fb27['length'])continue;const _0x28c96b=_0x4c1ff0['createRange'](_0x33fb27['position'],_0x33fb27['position']['getShiftedBy'](0x1));if(!_0x33b9f1['find'](({data:_0x2491c5})=>_0x2491c5['newRange']['isEqual'](_0x28c96b))){for(const {name:_0x539ce9,data:_0x39576c}of _0x33b9f1)if(_0x28c96b['containsRange'](_0x39576c['newRange'])){_0x4c1ff0['updateMarker'](_0x539ce9,{'range':_0x28c96b}),_0x2f1996=!0x0;break;}}}return _0x2f1996;}),_0x5c6df5['model']['document']['registerPostFixer'](_0x23f6df=>{let _0x22c10a=!0x1;const _0x7372c=_0x5c6df5['plugins']['get']('Users')['me'],_0x12eab8=_0x55b07c['getSuggestions']()['filter'](_0x4b679d=>_0x4b679d['isInContent']&&_0x4b679d['author']==_0x7372c),_0x565e32=new Set(),_0x49c001=new Set();for(const _0x440e90 of _0x12eab8)if('tablePaste'==_0x440e90['subType'])for(const _0x2b0088 of _0x440e90['getMarkers']()){const _0x171829=_0x2b0088['getRange']()['getContainedElement']();if(_0x171829){if(_0x171829['is']('element','tableCellSuggestion')&&Oe(_0x171829)){_0x440e90['removeMarker'](_0x2b0088['name']),_0x565e32['add'](_0x171829),_0x22c10a=!0x0;const _0x10798=_0x171829['nextSibling'],_0x175586=_0x171829['previousSibling'],_0x121c60=_0x10798&&_0x10798['is']('element','tableCellSuggestion'),_0x3b7664=_0x175586&&_0x175586['is']('element','tableCellSuggestion');_0x121c60&&!_0x565e32['has'](_0x10798)&&_0x49c001['add'](_0x10798),_0x3b7664&&!_0x565e32['has'](_0x175586)&&_0x49c001['add'](_0x175586);}else _0x171829['is']('element','paragraph')&&_0x171829['isEmpty']&&(_0x440e90['removeMarker'](_0x2b0088['name']),_0x22c10a=!0x0);}}else{if('tablePasteCell'==_0x440e90['subType']){if(!_0x440e90['attributes']||!_0x440e90['attributes']['tablePasteChainId'])continue;const _0x2ba9ed=_0x440e90['attributes']['markerAttributes'];if(_0x2ba9ed&&Object['keys'](_0x2ba9ed)['length'])continue;const _0x137f29=_0x440e90['attributes']['tablePasteChainId'];let _0x2c9572=!0x0,_0x2a591e=!0x0;for(const _0x20b9b5 of _0x12eab8)if(_0x20b9b5['subType']&&_0x20b9b5['subType']['startsWith']('tablePaste')){if(!_0x20b9b5['attributes']['tablePasteChainId']){_0x2a591e=!0x1;break;}if(_0x20b9b5['id']!=_0x440e90['id']&&_0x20b9b5['attributes']['tablePasteChainId']==_0x137f29){_0x2c9572=!0x1;break;}}_0x2a591e&&_0x2c9572&&(_0x440e90['removeMarkers'](),_0x22c10a=!0x0);}}for(const _0x50825d of _0x565e32)_0x23f6df['remove'](_0x50825d);for(const _0x3d442a of _0x49c001)_0x23f6df['unwrap'](_0x3d442a);return _0x22c10a;}),_0x5c6df5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x79c52e=>_0x19412c(_0x79c52e),'converterPriority':'high'}),_0x5c6df5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5a49a1,_0x456aaa)=>_0x456aaa['options']['showSuggestionHighlights']?_0x19412c(_0x5a49a1,!0x1):null,'converterPriority':'high'});const _0xe7d8d5=_0x5c6df5['editing']['view'];this['listenTo'](_0xe7d8d5['document'],'clipboardOutput',(_0x2cfc1c,_0x41b56)=>{const _0xd7df7=[];for(const _0x4b7635 of _0xe7d8d5['createRangeIn'](_0x41b56['content'])['getItems']())_0x4b7635['is']('element','suggestion-td')&&_0xd7df7['push'](_0x4b7635);_0xe7d8d5['change'](_0x1f7e92=>{for(const _0x4b0bc0 of _0xd7df7)_0x1f7e92['move'](_0x1f7e92['createRangeIn'](_0x4b0bc0),_0x1f7e92['createPositionBefore'](_0x4b0bc0)),_0x1f7e92['remove'](_0x4b0bc0);});});}}function Oe(_0x13cfa1){if(_0x13cfa1['isEmpty'])return!0x0;const _0x3d0fa4=_0x13cfa1['getChild'](0x0);return _0x3d0fa4['is']('element','paragraph')&&_0x3d0fa4['isEmpty'];}function Ue(_0x1143b6,_0x3accef={},_0x227aea){for(const {isAnchor:_0x387faf,cellHeight:_0xe26b2c,cellWidth:_0x329391}of _0x227aea['createTableWalker'](_0x1143b6,{'includeAllSlots':!0x0,..._0x3accef}))if(!_0x387faf||0x1!=_0xe26b2c||0x1!=_0x329391)return!0x1;return!0x0;}class Dt extends _0x292012{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x421353=this['editor']['plugins']['get']('TrackChangesEditing');_0x421353['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x421353['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x421353['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x421353['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x421353['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x421353['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b2e25,_0x59be72){const _0x5bc113=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436ed3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5b6157=_0x59be72['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f0417=_0x436ed3['getColumnGroupElement'](_0x5b6157);let _0x276469=_0x2f0417?_0x436ed3['getTableColumnsWidths'](_0x2f0417):null,_0x30ee04=_0x5b6157['getAttribute']('tableWidth')||null;const _0x43d197=_0x59be72['tableWidth']||_0x30ee04,_0x4a4a80=_0x59be72['columnWidths']||_0x276469,_0x5b4fb8=this['editor']['plugins']['get']('Users')['me'];for(const _0x3270c1 of _0x5bc113['getSuggestions']()){const _0x2bd47a=_0x3270c1['getContainedElement']();if('resizeTable'===_0x3270c1['subType']&&_0x2bd47a===_0x5b6157){_0x3270c1['author']!==_0x5b4fb8&&_0x3270c1['discard']();const _0x3958d4=_0x3270c1['data']['commandParams'];_0x30ee04=_0x3958d4[0x0]['tableWidth'],_0x276469=_0x3958d4[0x0]['columnWidths'];break;}}_0x4b2e25({'table':_0x5b6157,'tableWidth':_0x43d197,'columnWidths':_0x4a4a80}),_0x5bc113['markBlockFormat'](_0x5b6157,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x30ee04,'columnWidths':_0x276469}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x13ce2e){if('formatBlock'!=_0x13ce2e['type']&&'formatInline'!=_0x13ce2e['type'])return;const {data:_0xb00af}=_0x13ce2e;if(_0xb00af&&'resizeTable'===_0xb00af['formatGroupId']){const _0x190898='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x190898)};}}}class Mt extends _0x292012{['afterInit'](){const _0x574571=this['editor'];_0x574571['plugins']['has']('Template')&&_0x574571['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x292012{['afterInit'](){const _0x221700=this['editor'];if(!_0x221700['commands']['get']('insertTableOfContents'))return;_0x221700['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x10babd=_0x221700['plugins']['get']('TrackChangesEditing'),_0x4f1d9d=_0x221700['locale'];_0x10babd['descriptionFactory']['registerElementLabel']('tableOfContents',_0x54dfc6=>o(_0x4f1d9d,'ELEMENT_TABLE_OF_CONTENTS',_0x54dfc6));}}class Bt extends _0x292012{['afterInit'](){const _0x30d4b5=this['editor'];if(!_0x30d4b5['plugins']['has']('Title'))return;const _0x119f81=_0x30d4b5['plugins']['get']('TrackChangesEditing');_0x119f81['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x30d4b5['locale'],'ELEMENT_TITLE')),_0x30d4b5['model']['document']['registerPostFixer'](_0x4f4e98=>{let _0x388dcd=!0x1;const _0x61b3af=Array['from'](_0x30d4b5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x535ed7,data:_0x194811}of _0x61b3af){const {group:_0xf29f83}=_0x119f81['_splitMarkerName'](_0x535ed7);if('suggestion'!==_0xf29f83||!_0x194811['newRange'])continue;const _0x53e234=_0x194811['newRange'],_0x1c76a6=_0x53e234['end']['nodeBefore'];if(!_0x1c76a6||!_0x1c76a6['is']('element','title-content'))continue;if(!_0x53e234['start']['isTouching'](_0x53e234['end']))continue;const _0x54a52d=_0x30d4b5['model']['schema']['getNearestSelectionRange'](_0x53e234['end'],'forward');if(_0x54a52d&&_0x54a52d['isCollapsed']){const _0xfbdc37=_0x4f4e98['createRange'](_0x53e234['start'],_0x54a52d['start']);_0xfbdc37['isEqual'](_0x53e234)||(_0x4f4e98['updateMarker'](_0x535ed7,{'range':_0xfbdc37}),_0x388dcd=!0x0);}_0x388dcd||(_0x4f4e98['removeMarker'](_0x535ed7),_0x388dcd=!0x0);}return _0x388dcd;});}}class Tt extends _0x292012{['afterInit'](){const _0x101665=this['editor'],_0x3d81e8=_0x101665['plugins']['get']('TrackChangesEditing');_0x101665['plugins']['has']('Uploadcare')&&(_0x3d81e8['enableCommand']('uploadcare'),_0x101665['plugins']['has']('UploadcareImageEdit')&&(_0x3d81e8['enableCommand']('uploadcareImageEdit'),_0x3d81e8['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3d81e8['registerBlockAttribute']('uploadcareImageId'),_0x3d81e8['descriptionFactory']['registerDescriptionCallback'](_0x37d7af=>{if('attribute'!=_0x37d7af['type'])return;const {data:_0x2f4405}=_0x37d7af;return _0x2f4405&&'uploadcareImageId'==_0x2f4405['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x292012{['afterInit'](){const _0x252067=this['editor'],_0x530f3d=_0x252067['plugins']['get']('TrackChangesEditing');_0x252067['plugins']['has']('UndoEditing')&&(_0x530f3d['enableCommand']('undo'),_0x530f3d['enableCommand']('redo'));}}class Ot extends _0x292012{static get['requires'](){return[At];}['afterInit'](){const _0x3f8de6=this['editor'];if(!_0x3f8de6['plugins']['has']('TableCaptionEditing'))return;_0x3f8de6['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x292012{['tableProperties'];['tableCellProperties'];constructor(_0x27b545){super(_0x27b545),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0xec05bb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x23486a of this['tableProperties'])_0xec05bb['enableCommand'](_0x23486a,(_0xfda7e5,_0x4cb2a1)=>{const _0x16110a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x23486a,[_0x16110a],this['tableProperties'],'tableProperties',_0xfda7e5,_0x4cb2a1);});_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xec05bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x30589d,_0x3311bf)=>this['handleDiscardAction'](this['tableProperties'],_0x30589d,_0x3311bf)),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2177ef of this['tableCellProperties'])_0xec05bb['enableCommand'](_0x2177ef,(_0x5a56ec,_0x3e5669)=>{const _0x1eae05=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2177ef,_0x1eae05,this['tableCellProperties'],'tableCellProperties',_0x5a56ec,_0x3e5669);});_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xec05bb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x49aa7a,_0x32520c)=>this['handleDiscardAction'](this['tableCellProperties'],_0x49aa7a,_0x32520c)),_0xec05bb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xec05bb['descriptionFactory']['registerDescriptionCallback'](_0x24bbad=>this['handleSuggestionDescription'](_0x24bbad));}['_handlePropertyChange'](_0x1c3d54,_0x6fab2d,_0x516615,_0x4127b4,_0x40db52,_0x2ebdf3){const _0x56811d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ebdf3['batch'],()=>{for(const _0x327ed5 of _0x6fab2d){if(this['_getSuggestion'](_0x327ed5,_0x4127b4))_0x40db52(_0x2ebdf3);else{const _0x36c175={};for(const _0x58c037 of _0x516615){const _0x24ae20=_0x327ed5['getAttribute'](_0x58c037);void 0x0!==_0x24ae20&&(_0x36c175[_0x58c037]=_0x24ae20);}_0x40db52(_0x2ebdf3),_0x56811d['markBlockFormat'](_0x327ed5,{'commandParams':[_0x36c175]},[],_0x4127b4);}}});}['handleDiscardAction'](_0x44bf97,_0x4a69b7,_0x23e2eb){const _0x7691f4=_0x4a69b7[0x0]['start']['nodeAfter'],_0x4e74f0=_0x23e2eb['commandParams'][0x0];this['editor']['model']['change'](_0x1d6953=>{for(const _0x65db68 of _0x44bf97)void 0x0!==_0x4e74f0[_0x65db68]?_0x1d6953['setAttribute'](_0x65db68,_0x4e74f0[_0x65db68],_0x7691f4):_0x1d6953['removeAttribute'](_0x65db68,_0x7691f4);});}['handleSuggestionDescription'](_0xdb4771){if(_0xdb4771['data'])switch(_0xdb4771['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'](_0x314b2e,_0x3747b0){const _0x175551=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x96bd3a of _0x175551['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e5716=_0x96bd3a['getContainedElement']();if(_0x96bd3a['subType']===_0x3747b0&&_0x2e5716===_0x314b2e)return _0x96bd3a;}return null;}}class Rt extends _0x292012{['afterInit'](){const _0x488057=this['editor'];if(!_0x488057['plugins']['has']('LineHeight'))return;const _0x423edf=_0x488057['plugins']['get']('TrackChangesEditing'),_0x5b1ee8=_0x488057['locale'];_0x423edf['enableDefaultAttributesIntegration']('lineHeight'),_0x423edf['registerBlockAttribute']('lineHeight'),_0x423edf['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x5b1ee8,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x292012{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x28ae71,_0x5e1fd5,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20dda5){super(_0x20dda5),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x46c69f,_0x8e1001,_0x24c074,_0x2b5df7)=>{this['_model']['change'](()=>{for(const _0x4ffac of[..._0x2b5df7,..._0x24c074])this['_model']['markers']['has'](_0x4ffac)&&_0x20dda5['editing']['reconvertMarker'](_0x4ffac);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x20dda5['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x20dda5['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x20dda5['config']['get']('trackChanges.trackFormatChanges'),_0x20dda5['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x20dda5['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x20dda5,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x56a8b9=this['editor'],_0x379694=(_0x204687,_0x4f1d3e)=>{if('attribute'!=_0x204687)return'ck-suggestion-marker-'+_0x204687;const _0x1be0da=_0x4f1d3e['split']('|')[0x0];return this['_isBlockAttribute'](_0x1be0da)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x56a8b9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x568f38=>{const {id:_0x2695be,authorId:_0x538680,type:_0x467436,subType:_0x172664}=this['_splitMarkerName'](_0x568f38['markerName']),_0x545f93=['ck-suggestion-marker',_0x379694(_0x467436,_0x172664)];let _0xd01e6b=0xbb8;return this['activeMarkers']['includes'](_0x568f38['markerName'])&&(_0x545f93['push']('ck-suggestion-marker--active'),_0xd01e6b=0xbc2),'deletion'==_0x467436&&(_0xd01e6b+=0x5),{'classes':_0x545f93,'attributes':{'data-suggestion':_0x2695be,'data-author-id':_0x538680},'priority':_0xd01e6b};}}),_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x13de94=>{_0x13de94['on']('addMarker:suggestion',(_0x37404d,_0x14bb42,_0x5bdc96)=>{if(!_0x5bdc96['options']['showSuggestionHighlights'])return;const _0x20166a=_0x14bb42['item'];if(!_0x20166a)return;const _0x3872c8=_0x5bdc96['mapper']['toViewElement'](_0x20166a);_0x56a8b9['model']['schema']['isObject'](_0x20166a)&&_0x3872c8&&!_0x3872c8['getCustomProperty']('widget')&&_0x3872c8['is']('containerElement')&&_0x8635b4(_0x3872c8,_0x5bdc96['writer']);},{'priority':'high'});}),_0x56a8b9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcc21cb,_0x602ddc)=>{if(!_0x602ddc['options']['showSuggestionHighlights'])return null;const {id:_0x5471ca,authorId:_0x58cc34,type:_0x863efd,subType:_0x833ca8}=this['_splitMarkerName'](_0xcc21cb['markerName']);return{'classes':['ck-suggestion-marker',_0x379694(_0x863efd,_0x833ca8)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5471ca,'data-author-id':_0x58cc34}};}});const _0x3d10e3=({showActiveMarkers:_0x447ef8=!0x0,isAttributeSuggestion:_0x5c2e1c=!0x1}={})=>(_0xeb375,_0x3851b1,_0x15dbc5)=>{if(!_0x3851b1['item'])return;const {id:_0x535a37,authorId:_0x52c314}=this['_splitMarkerName'](_0x3851b1['markerName']);if(_0x5c2e1c){const _0x2d075f=this['_suggestions']['get'](_0x535a37),_0x23d682=this['_getAttributeKey'](_0x2d075f);if(!this['_isBlockAttribute'](_0x23d682))return;}if(_0x3851b1['item']['is']('selection'))return void _0x15dbc5['consumable']['consume'](_0x3851b1['item'],_0xeb375['name']);const _0x38faf0=_0x15dbc5['mapper']['toViewElement'](_0x3851b1['item']);if(_0x3851b1['item']['is']('element')&&_0x56a8b9['model']['schema']['isBlock'](_0x3851b1['item'])&&!_0x38faf0['getCustomProperty']('addHighlight')){_0x15dbc5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x38faf0),_0x15dbc5['writer']['setAttribute']('data-suggestion',_0x535a37,_0x38faf0),_0x15dbc5['writer']['setAttribute']('data-author-id',_0x52c314,_0x38faf0),_0x15dbc5['mapper']['bindElementToMarker'](_0x38faf0,_0x3851b1['markerName']),_0x447ef8&&(this['activeMarkers']['includes'](_0x3851b1['markerName'])?_0x15dbc5['writer']['addClass']('ck-suggestion-marker--active',_0x38faf0):_0x15dbc5['writer']['removeClass']('ck-suggestion-marker--active',_0x38faf0));for(const _0x55f832 of _0x56a8b9['model']['createRangeIn'](_0x3851b1['item'])['getItems']())_0x15dbc5['consumable']['consume'](_0x55f832,_0xeb375['name']);_0x15dbc5['consumable']['consume'](_0x3851b1['item'],_0xeb375['name']);}};_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x577889=>{_0x577889['on']('addMarker:suggestion:formatBlock',(_0xcaad44,_0x511132,_0x5424f6)=>{_0x5424f6['options']['showSuggestionHighlights']&&_0x3d10e3({'showActiveMarkers':!0x1})(_0xcaad44,_0x511132,_0x5424f6);},{'priority':'highest'});}),_0x56a8b9['conversion']['for']('dataDowncast')['add'](_0x2d617b=>{_0x2d617b['on']('addMarker:suggestion:attribute',(_0x5a407c,_0xe5bf11,_0x54ad7b)=>{_0x54ad7b['options']['showSuggestionHighlights']&&_0x3d10e3({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5a407c,_0xe5bf11,_0x54ad7b);},{'priority':'highest'});}),_0x56a8b9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x44dd36,_0x5e19f7)=>{if(_0x5e19f7['options']['showSuggestionHighlights']){const {id:_0x3ca689,authorId:_0x3c7cc2}=this['_splitMarkerName'](_0x44dd36);return _0x44dd36['includes'](':split')||_0x44dd36['includes'](':merge')?{'group':'suggestion','name':_0x44dd36['substr'](0xb),'attributes':{'data-suggestion':_0x3ca689,'data-author-id':_0x3c7cc2}}:null;}return{'group':'suggestion','name':_0x44dd36['substr'](0xb)};}}),_0x56a8b9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x276f51,{writer:_0xb860d7})=>{let _0x47b914='suggestion:'+_0x276f51['getAttribute']('suggestion-type')+':'+_0x276f51['getAttribute']('id');return _0x276f51['getAttribute']('marker-count')&&(_0x47b914+=':'+_0x276f51['getAttribute']('marker-count')),_0xb860d7['createElement']('$marker',{'data-name':_0x47b914});}}),_0x56a8b9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x188874=>{_0x188874['on']('addMarker:suggestion:formatBlock',_0x3d10e3(),{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x3d6e8d=>{_0x3d6e8d['on']('addMarker:suggestion:attribute',_0x3d10e3({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x4bd87f=>{_0x4bd87f['on']('removeMarker:suggestion:formatBlock',(_0x4fc8e5,_0x3387a7,_0x36ce14)=>{const _0x427c68=_0x36ce14['mapper']['markerNameToElements'](_0x3387a7['markerName']);if(_0x427c68){for(const _0x58c76e of _0x427c68)_0x58c76e['getCustomProperty']('addHighlight')||(_0x36ce14['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x58c76e),_0x36ce14['writer']['removeAttribute']('data-suggestion',_0x58c76e),_0x36ce14['writer']['removeAttribute']('data-author-id',_0x58c76e),_0x36ce14['mapper']['unbindElementFromMarkerName'](_0x58c76e,_0x3387a7['markerName']));}},{'priority':'high'});}),_0x56a8b9['conversion']['for']('editingDowncast')['add'](_0x4b51d4=>{_0x4b51d4['on']('removeMarker:suggestion:attribute',(_0xe81d1,_0x15fc13,_0x1be45d)=>{const _0x43a9af=_0x1be45d['mapper']['markerNameToElements'](_0x15fc13['markerName']);if(!_0x43a9af)return;const {id:_0x187cc3}=this['_splitMarkerName'](_0x15fc13['markerName']),_0xce0ca7=this['_suggestions']['get'](_0x187cc3),_0x42c793=this['_getAttributeKey'](_0xce0ca7);if(this['_isBlockAttribute'](_0x42c793)){for(const _0x3365a3 of _0x43a9af)_0x3365a3['getCustomProperty']('addHighlight')||(_0x1be45d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3365a3),_0x1be45d['writer']['removeAttribute']('data-suggestion',_0x3365a3),_0x1be45d['writer']['removeAttribute']('data-author-id',_0x3365a3),_0x1be45d['mapper']['unbindElementFromMarkerName'](_0x3365a3,_0x15fc13['markerName']));}},{'priority':'high'});}),_0x56a8b9['model']['document']['registerPostFixer'](_0x29a2d4=>{let _0x23b928=!0x1;const _0x40f8eb=Array['from'](_0x56a8b9['model']['document']['differ']['getChangedMarkers']()),_0x321623=new Set();for(const {name:_0x2526f7,data:_0xda096e}of _0x40f8eb){const {group:_0x5d940f,type:_0x855599,subType:_0x37ac8a,id:_0x18a5f6}=this['_splitMarkerName'](_0x2526f7);if('suggestion'!==_0x5d940f)continue;const _0x39782c=this['_suggestions']['get'](_0x18a5f6);if(null!=_0xda096e['newRange']){'formatInline'==_0x855599&&(_0x23b928=_0x23b928||Gt(_0xda096e['newRange'],_0x2526f7,_0x29a2d4,_0x56a8b9['model']['schema']));const _0x367671='attribute'==_0x855599&&this['_isBlockAttribute'](_0x37ac8a['split']('|')[0x0]);if(_0xda096e['newRange']['isCollapsed']||'$graveyard'==_0xda096e['newRange']['root']['rootName']||'formatBlock'==_0x855599&&!Jt(_0xda096e['newRange'])||_0x367671&&!Jt(_0xda096e['newRange'])||'deletion'==_0x855599&&!Kt(_0xda096e['newRange']))_0x29a2d4['removeMarker'](_0x2526f7),_0x23b928=!0x0;else{if(!_0x39782c||!_0x39782c['isInContent'])continue;if(_0xda096e['newRange']&&_0xda096e['oldRange']&&_0xda096e['newRange']['isEqual'](_0xda096e['oldRange']))continue;_0x321623['add'](_0x39782c);}}}return _0x321623['size']>0x0&&(_0x23b928=!!this['_joinWithAdjacentSuggestions'](_0x321623)||_0x23b928),_0x23b928;}),_0x56a8b9['model']['document']['registerPostFixer'](_0x505fb1=>{let _0x2af183=!0x1;for(const _0x54d930 of _0x56a8b9['model']['document']['differ']['getChanges']())if('insert'==_0x54d930['type'])for(const _0x514602 of this['_suggestions']['values']()){if(_0x514602['isMultiRange']||!_0x514602['isInContent'])continue;const _0x2ff769='formatBlock'==_0x514602['type'],_0x220042=this['_getAttributeKey'](_0x514602),_0x5f846a=_0x220042&&this['_isBlockAttribute'](_0x220042);if(!_0x2ff769&&!_0x5f846a)continue;const _0x47c662=_0x514602['getFirstRange']();if(_0x47c662['start']['parent']!=_0x47c662['end']['parent']&&!_0x47c662['end']['isAtEnd']){const _0x3a4f45=_0x56a8b9['model']['createPositionAt'](_0x47c662['start']['nodeAfter'],'end'),_0x443b53=_0x56a8b9['model']['createRange'](_0x47c662['start'],_0x3a4f45);_0x505fb1['updateMarker'](_0x514602['getFirstMarker'](),{'range':_0x443b53}),_0x2af183=!0x0;}}return _0x2af183;}),_0x56a8b9['model']['document']['registerPostFixer'](_0x3561aa=>this['_processAttributeChanges'](_0x3561aa)),_0x56a8b9['model']['document']['registerPostFixer'](_0x457214=>!_0x457214['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x457214)),_0x56a8b9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x56a8b9['model']['document']['on']('change:data',(_0x12290c,_0x150af6)=>{if(!_0x150af6['isLocal']||_0x150af6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ed95d=_0x56a8b9['model']['document']['differ']['getChanges']();if(0x0==_0x4ed95d['length'])return;const _0x3c52f7=[],_0x215293=_0x4ed95d['filter'](_0x23a23d=>'attribute'==_0x23a23d['type']),_0x4625cc=_0x4ed95d['filter'](_0x2b1e46=>'insert'==_0x2b1e46['type']&&'$text'!=_0x2b1e46['name']);for(const _0x4b9fd1 of _0x215293)this['_isRegisteredAttribute'](_0x4b9fd1['attributeKey'])&&_0x3c52f7['push']({'key':_0x4b9fd1['attributeKey'],'newValue':_0x4b9fd1['attributeNewValue'],'oldValue':_0x4b9fd1['attributeOldValue'],'range':Ht(_0x4b9fd1['range'],_0x56a8b9['model'])});for(const _0xb33f95 of _0x4625cc){if('rename'!=_0xb33f95['action']&&'refresh'!=_0xb33f95['action'])continue;const _0x14899a=qt(_0xb33f95['position']['nodeAfter'],_0x56a8b9['model']),_0x5e2fa5=_0xb33f95['before'];'rename'==_0xb33f95['action']&&_0x3c52f7['push']({'key':m,'newValue':_0xb33f95['name'],'oldValue':_0x5e2fa5['name'],'range':_0x14899a});for(const [_0x356ba4,_0x4728f9]of _0x5e2fa5['attributes']){if(!this['_isRegisteredAttribute'](_0x356ba4))continue;const _0x150913=_0xb33f95['attributes']['get'](_0x356ba4);_0x4728f9!==_0x150913&&_0x3c52f7['push']({'key':_0x356ba4,'newValue':_0x150913,'oldValue':_0x4728f9,'range':_0x14899a});}for(const [_0x5b0082,_0x3094fd]of _0xb33f95['attributes'])this['_isRegisteredAttribute'](_0x5b0082)&&(_0x5e2fa5['attributes']['has'](_0x5b0082)||_0x3c52f7['push']({'key':_0x5b0082,'newValue':_0x3094fd,'oldValue':null,'range':_0x14899a}));}0x0!=_0x3c52f7['length']&&_0x56a8b9['model']['enqueueChange'](_0x150af6,_0x32a086=>{const _0x280121=_0x48a539();for(const {range:_0x4c9430,key:_0x528a6c,oldValue:_0x2fe821,newValue:_0x1fd7d0}of _0x3c52f7)this['markAttributeChange'](_0x4c9430,_0x528a6c,_0x2fe821,_0x1fd7d0,{'groupId':_0x280121});this['_reduceExistingSuggestions'](_0x32a086,_0x3c52f7);});},{'priority':'lowest'}),_0x56a8b9['model']['markers']['on']('update:suggestion',(_0x265eb4,_0xed9c9e,_0x44ae23)=>{if(null==_0x44ae23){const {id:_0x2290c0}=this['_splitMarkerName'](_0xed9c9e['name']),_0x55f365=this['_suggestions']['get'](_0x2290c0);_0x55f365&&_0x55f365['addMarkerName'](_0xed9c9e['name']);}}),_0x56a8b9['model']['document']['on']('change:data',()=>{const _0x339fbb=Array['from'](_0x56a8b9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3062ca=>'suggestion'===this['_splitMarkerName'](_0x3062ca['name'])['group']);if(0x0===_0x339fbb['length'])return;_0x339fbb['sort']((_0x3a906c,_0x39632e)=>{const _0x3fb4df=_0x3a906c['data']['oldRange'],_0x1f43af=_0x39632e['data']['oldRange'];return null===_0x3fb4df&&null===_0x1f43af?0x0:null===_0x3fb4df&&null!==_0x1f43af?-0x1:null!==_0x3fb4df&&null===_0x1f43af?0x1:_0x3fb4df['start']['isBefore'](_0x1f43af['start'])?-0x1:0x1;});const _0x3d5ed8=new Set(),_0x5436bb=new Set();for(const {name:_0x542d0a,data:_0x2adcce}of _0x339fbb){const {id:_0x2f398b}=this['_splitMarkerName'](_0x542d0a);if(null===_0x2adcce['oldRange']){const _0x18c562=this['_handleNewSuggestionMarker'](_0x542d0a);_0x5436bb['add'](_0x18c562);}else{const _0x19b91f=this['_suggestions']['get'](_0x2f398b);null!==_0x2adcce['newRange']||_0x19b91f['isInContent']?(_0x3d5ed8['add'](_0x19b91f['head']),_0x5436bb['add'](_0x19b91f)):this['_removeSuggestion'](_0x19b91f);}}_0x5436bb['size']>0x0&&this['_refreshSuggestionsChain'](_0x5436bb);for(const _0x1ce498 of _0x3d5ed8)this['fire']('suggestionChanged',_0x1ce498);}),_0x56a8b9['model']['on']('applyOperation',(_0x4ec446,_0x24b322)=>{const _0x5ec748=_0x24b322[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ec748['isDocumentOperation'])return;if(_0x5ec748['batch']['isUndo']||!_0x5ec748['batch']['isLocal'])return;let _0x49cba6,_0x44eb51;switch(_0x5ec748['type']){case'insert':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['position']),_0x44eb51=_0x49cba6['getShiftedBy'](_0x5ec748['howMany']);break;case'split':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['splitPosition']),_0x44eb51=_0x56a8b9['model']['createPositionAt'](_0x5ec748['moveTargetPosition']);break;case'move':_0x49cba6=_0x56a8b9['model']['createPositionAt'](_0x5ec748['targetPosition']),_0x44eb51=_0x49cba6['getShiftedBy'](_0x5ec748['howMany']);break;default:return;}const _0x409bae=_0x56a8b9['model']['createRange'](_0x49cba6,_0x44eb51);_0x56a8b9['model']['change'](()=>{for(const {suggestion:_0xbaa8f1,meta:_0x2a5f4}of this['_findSuggestions'](_0x409bae)){if(_0xbaa8f1['isMultiRange'])continue;if('formatInline'==_0xbaa8f1['type'])continue;const _0xeabe0d=this['_getAttributeKey'](_0xbaa8f1);if(_0xeabe0d&&this['_isBlockAttribute'](_0xeabe0d)&&'split'!=_0x5ec748['type'])continue;const _0x44d742=_0xbaa8f1['data']&&_0xbaa8f1['data']['multipleBlocks'];('formatBlock'!=_0xbaa8f1['type']||'split'==_0x5ec748['type']&&!_0x44d742)&&(_0x2a5f4['containsRangeInObject']||'insertion'==_0xbaa8f1['type']&&_0x2a5f4['isOwn']||_0xbaa8f1['getFirstRange']()['containsRange'](_0x409bae)&&this['_breakSuggestionMarker'](_0xbaa8f1,_0x49cba6,_0x44eb51));}});},{'priority':'lowest'}),_0x56a8b9['model']['on']('deleteContent',(_0x4b6350,_0x82b228)=>{const _0x16454b=_0x82b228[0x0],_0x2c0728=_0x82b228[0x1];if(_0x2c0728&&_0x2c0728['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x16454b['isCollapsed'])return;const _0x3ad826=_0x56a8b9['model']['schema'],{start:_0x2af9d5,end:_0x40a70c}=_0x16454b['getFirstRange'](),_0x148ff3=_0x2af9d5['nodeAfter']&&_0x3ad826['isLimit'](_0x2af9d5['nodeAfter'])?null:_0x3ad826['getNearestSelectionRange'](_0x2af9d5,'forward'),_0x2c54f3=_0x40a70c['nodeBefore']&&_0x3ad826['isLimit'](_0x40a70c['nodeBefore'])?null:_0x3ad826['getNearestSelectionRange'](_0x40a70c,'backward'),_0x66db44=_0x56a8b9['model']['createRange'](_0x148ff3?_0x148ff3['start']:_0x2af9d5,_0x2c54f3?_0x2c54f3['end']:_0x40a70c);_0x56a8b9['model']['change'](_0x248dbf=>{this['markDeletion'](_0x66db44);const _0xdfe82e=_0x56a8b9['model']['schema']['getNearestSelectionRange'](_0x66db44['start']);_0x16454b['is']('documentSelection')?_0x248dbf['setSelection'](_0xdfe82e):_0x16454b['setTo'](_0xdfe82e);}),_0x4b6350['stop']();},{'priority':_0x2dd4ea['normal']+0xa}),_0x56a8b9['model']['on']('insertContent',(_0x39cab4,_0x464b97)=>{const _0x176819=_0x464b97[_0x464b97['length']-0x1];_0x176819&&_0x176819['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x56a8b9['model']['change'](()=>{let _0x2a3580=_0x56a8b9['model']['insertContent'](_0x464b97[0x0],_0x464b97[0x1],_0x464b97[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a3580)return;_0x39cab4['return']=_0x2a3580['clone']();const _0x1ea36f=_0x2a3580['end']['nodeBefore'],_0x4283e2=_0x56a8b9['model']['schema'];_0x1ea36f&&_0x4283e2['isBlock'](_0x1ea36f)&&!_0x4283e2['isObject'](_0x1ea36f)&&(_0x2a3580=_0x56a8b9['model']['createRange'](_0x2a3580['start'],_0x56a8b9['model']['createPositionAt'](_0x1ea36f,'end'))),this['markInsertion'](_0x2a3580);}),_0x39cab4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3565ca=new D(_0x56a8b9,this['_suggestions']);_0x56a8b9['commands']['add']('acceptSuggestion',_0x3565ca),this['enableCommand']('acceptSuggestion');const _0x347d6d=new M(_0x56a8b9,this['_suggestions']);_0x56a8b9['commands']['add']('discardSuggestion',_0x347d6d),this['enableCommand']('discardSuggestion'),_0x56a8b9['commands']['add']('acceptAllSuggestions',new $(_0x56a8b9,_0x3565ca,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x56a8b9['commands']['add']('discardAllSuggestions',new $(_0x56a8b9,_0x347d6d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x56a8b9['commands']['add']('acceptSelectedSuggestions',new B(_0x56a8b9,_0x3565ca,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x56a8b9['commands']['add']('discardSelectedSuggestions',new B(_0x56a8b9,_0x347d6d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2db2b5=_0x56a8b9['plugins']['get']('CommentsRepository');this['listenTo'](_0x2db2b5,'addComment',(_0xb31077,{threadId:_0x580b34})=>{const _0x2c8fa9=this['_suggestions']['get'](_0x580b34);_0x2c8fa9&&_0x2c8fa9['commentThread']&&0x1===_0x2c8fa9['commentThread']['length']&&this['_updateSuggestionData'](_0x580b34,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2db2b5,'removeComment',(_0x1b58eb,{threadId:_0x3efdc0})=>{const _0x12905=this['_suggestions']['get'](_0x3efdc0);_0x12905&&_0x12905['commentThread']&&!_0x12905['commentThread']['length']&&this['_updateSuggestionData'](_0x3efdc0,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x319686){const _0x1080b5=_0x5cdf6a([0x47,0x51,0x31,0x75,0x76,0x4b,0x59,0x68,0x37,0x56,0x48,0x41,0x6a,0x64,0x39,0x38,0x33,0x52,0x66,0x4e,0x74,0x65,0x4f,0x54,0x45,0x55,0x79,0x7a,0x77,0x6e,0x5a,0x35,0x53,0x42,0x4c,0x44,0x30,0x78,0x49,0x61,0x46,0x73,0x43,0x67,0x34,0x58,0x57,0x72,0x6c,0x4a,0x6b,0x50,0x32,0x63,0x70,0x36,0x69,0x62,0x6d,0x4d,0x6f,0x71]),_0x49de19=0x13d9e842,_0x57544a=0x13de8412^_0x49de19,_0x5cca4e=window[_0x5cdf6a([0x44,0x61,0x74,0x65])][_0x5cdf6a([0x6e,0x6f,0x77])](),_0x44c198=_0x319686[_0x5cdf6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3eff3a=new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29031c=>{_0x44c198[_0x5cdf6a([0x6f,0x6e,0x63,0x65])](_0x5cdf6a([0x72,0x65,0x61,0x64,0x79]),_0x29031c);}),_0x136e17={[_0x5cdf6a([0x6b,0x74,0x79])]:_0x5cdf6a([0x45,0x43]),[_0x5cdf6a([0x75,0x73,0x65])]:_0x5cdf6a([0x73,0x69,0x67]),[_0x5cdf6a([0x63,0x72,0x76])]:_0x5cdf6a([0x50,0x2d,0x32,0x35,0x36]),[_0x5cdf6a([0x78])]:_0x5cdf6a([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]),[_0x5cdf6a([0x79])]:_0x5cdf6a([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]),[_0x5cdf6a([0x61,0x6c,0x67])]:_0x5cdf6a([0x45,0x53,0x32,0x35,0x36])},_0x5a9fd0=_0x44c198[_0x5cdf6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5cdf6a([0x67,0x65,0x74])](_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5c2fe3(){let _0x50c75d,_0x3114ab=null,_0x47ab9a=null;try{if(_0x5a9fd0==_0x5cdf6a([0x47,0x50,0x4c]))return _0x5cdf6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x50c75d=_0x1bf2ed(),!_0x50c75d)return _0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x50c75d[_0x5cdf6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x47ab9a=_0x25f169(_0x50c75d[_0x5cdf6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x50c75d[_0x5cdf6a([0x6a,0x74,0x69])])),await _0x16bf63()?_0x36f2a7()?_0x95c80c()?_0x5cdf6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2448ed()?(_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cdf6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3114ab=_0x3f6615(_0x5cdf6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5cdf6a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3114ab=_0x3f6615(_0x5cdf6a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f526a()):_0x5cdf6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5cdf6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5cdf6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x95c80c(){const _0x5ef5f7=[_0x5cdf6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5cdf6a([0x74,0x72,0x69,0x61,0x6c])][_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5cca4e/0x3e8:0xe10*_0x57544a;return _0x50c75d[_0x5cdf6a([0x65,0x78,0x70])]<_0x5ef5f7;}function _0x36f2a7(){const _0x2a1742=_0x50c75d[_0x5cdf6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2a1742)return!0x1;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x2a])))return!0x0;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x54,0x43])))return!0x0;if(_0x2a1742[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x52,0x54,0x43]))){if(_0x2a4ec9())return!0x0;if(_0x4435ab()||_0x4a8b9c())return!0x0;}return!0x1;}function _0x2448ed(){const _0x4718da=_0x50c75d[_0x5cdf6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4718da||0x0==_0x4718da[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf03008}=new URL(window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4718da[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf03008))return!0x0;const _0xf40dfa=_0xf03008[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e]));return _0x4718da[_0x5cdf6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bf150=>_0x4bf150[_0x5cdf6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5cdf6a([0x2a])))[_0x5cdf6a([0x6d,0x61,0x70])](_0x497679=>_0x497679[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e])))[_0x5cdf6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ccb84=>_0x2ccb84[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xf40dfa[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cdf6a([0x6d,0x61,0x70])](_0x758ac6=>Array(_0xf40dfa[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x758ac6[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5cdf6a([0x66,0x69,0x6c,0x6c])](_0x758ac6[0x0]===_0x5cdf6a([0x2a])?_0x5cdf6a([0x2a]):'')[_0x5cdf6a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x758ac6))[_0x5cdf6a([0x73,0x6f,0x6d,0x65])](_0x414205=>_0xf40dfa[_0x5cdf6a([0x65,0x76,0x65,0x72,0x79])]((_0x1426c0,_0x54edbc)=>_0x414205[_0x54edbc]===_0x1426c0||_0x414205[_0x54edbc]===_0x5cdf6a([0x2a])));}function _0x5f526a(){return _0x3114ab&&_0x47ab9a?new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1afcea,_0x208717)=>{_0x3114ab[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x1afcea,_0x208717),_0x47ab9a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x5ababc=>{_0x5ababc!=_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])&&_0x1afcea(_0x5ababc);},_0x208717);}):_0x3114ab||_0x47ab9a||_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25f169(_0x363874,_0x46e0c6){return new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x172f2b=>{if(_0x2454de())return _0x172f2b(_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]));_0x176d25(),_0x44c198[_0x5cdf6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5674a7=!0x1;const _0x17d30d=_0x48a539();function _0x5c0da4(_0x15de39){return!!_0x15de39&&(typeof _0x15de39===_0x5cdf6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x15de39===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x15de39[_0x5cdf6a([0x74,0x68,0x65,0x6e])]===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x15de39[_0x5cdf6a([0x63,0x61,0x74,0x63,0x68])]===_0x5cdf6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x28b292(_0x20d7df){_0x14bb38(_0x20d7df)[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x4f7b9e=>{if(!_0x4f7b9e||_0x4f7b9e[_0x5cdf6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5cdf6a([0x6f,0x6b]))return _0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xf51de4(_0x1957d6(_0x17d30d+_0x46e0c6))!=_0x4f7b9e[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x43abd2=>(_0x16b020(),_0x43abd2),()=>{const _0x44c7bc=_0x13db78();return null==_0x44c7bc?(_0x16b020(),_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])):_0x5cdf6a(_0x5cca4e-_0x44c7bc>(0x37d56c42^_0x49de19)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x172f2b)[_0x5cdf6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3900d3=0x13ef06c2^_0x49de19;function _0x16b020(){const _0x15b58f=_0x5cdf6a([0x6c,0x6c,0x63,0x74,0x2d])+_0xf51de4(_0x1957d6(_0x363874)),_0x2dc3a8=_0x1cb57c(_0xf51de4(window[_0x5cdf6a([0x4d,0x61,0x74,0x68])][_0x5cdf6a([0x63,0x65,0x69,0x6c])](_0x5cca4e/_0x3900d3)));window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cdf6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b58f,_0x2dc3a8);}function _0x13db78(){const _0x594bff=_0x5cdf6a([0x6c,0x6c,0x63,0x74,0x2d])+_0xf51de4(_0x1957d6(_0x363874)),_0x418c9d=window[_0x5cdf6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5cdf6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x594bff);return _0x418c9d?window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cb57c(_0x418c9d),0x10)*_0x3900d3:null;}function _0x14bb38(_0x2c4f9d){return new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5633d5,_0x2985a3)=>{_0x2c4f9d[_0x5cdf6a([0x74,0x68,0x65,0x6e])](_0x5633d5,_0x2985a3),window[_0x5cdf6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2985a3,0x13d83c82^_0x49de19);});}}_0x44c198[_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x134a24,_0x2258d2)=>{if(_0x2258d2[0x0]!=_0x363874)return _0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2258d2[0x1]={..._0x2258d2[0x1],[_0x5cdf6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x17d30d};},{[_0x5cdf6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cdf6a([0x68,0x69,0x67,0x68])}),_0x44c198[_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x49acce=>{_0x5c0da4(_0x49acce[_0x5cdf6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5674a7=!0x0,_0x28b292(_0x49acce[_0x5cdf6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5cdf6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5cdf6a([0x6c,0x6f,0x77])}),_0x3eff3a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>{_0x5674a7||_0x172f2b(_0x5cdf6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2454de(){return _0x44c198[_0x5cdf6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cdf6a([0x76,0x69,0x65,0x77])][_0x5cdf6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5cdf6a([0x61,0x75,0x74,0x6f]);}function _0x176d25(){_0x44c198[_0x5cdf6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cdf6a([0x76,0x69,0x65,0x77])][_0x5cdf6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cdf6a([0x61,0x75,0x74,0x6f]);}}function _0x3f6615(_0x29c0db){const _0x57f286=[new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48b84e=>setTimeout(_0x48b84e,0x13d0d68e^_0x49de19)),_0x3eff3a[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x166810=>{let _0x5f1a9f=0x0;_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x6f,0x6e])](_0x5cdf6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d0723,_0x5b051c)=>{_0x5b051c[0x0][_0x5cdf6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5f1a9f++,_0x5f1a9f==(0x13d9e9ba^_0x49de19)&&(_0x166810(),_0x4d0723[_0x5cdf6a([0x6f,0x66,0x66])]());});}))];return window[_0x5cdf6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cdf6a([0x72,0x61,0x63,0x65])](_0x57f286)[_0x5cdf6a([0x74,0x68,0x65,0x6e])](()=>_0x29c0db);}async function _0x5b8895(){await _0x3eff3a,_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3398a3,_0x44c198[_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5cdf6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3398a3,_0x44c198[_0x5cdf6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5cdf6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a4ec9(){return _0x5b6826(_0x5cdf6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x194ed1(_0x5cdf6a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5cdf6a([0x73,0x74,0x61,0x74,0x65])]==_0x5cdf6a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4435ab(){return _0x5b6826(_0x5cdf6a([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 _0x4a8b9c(){return _0x5b6826(_0x5cdf6a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1c2734(_0x27fc9c){const _0x3eb5ec=_0xdf6dc3();_0x44c198[_0x3eb5ec]=_0x5cdf6a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x27fc9c,_0x27fc9c!=_0x5cdf6a([0x56,0x61,0x6c,0x69,0x64])&&_0x5b8895();}function _0xdf6dc3(){const _0xbcf308=window[_0x5cdf6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5cdf6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5cdf6a([0x6e,0x6f,0x77])]())[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5cdf6a([0x2e]),'');let _0x2556e4=_0x5cdf6a([0x47]);for(let _0x30b694=0x0;_0x30b694<_0xbcf308[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30b694+=0x2){let _0x175d7a=window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xbcf308[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30b694,_0x30b694+0x2));_0x175d7a>=_0x1080b5[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x175d7a-=_0x1080b5[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2556e4+=_0x1080b5[_0x175d7a];}return _0x2556e4;}function _0x1bf2ed(){const _0x35cacb=_0x5a9fd0[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e]));if(0x3!=_0x35cacb[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ab5d1(_0x35cacb[0x1]);function _0x5ab5d1(_0x45f5c2){const _0x5e527e=_0x3bcb71(_0x45f5c2);return _0x5e527e&&_0x2eff00()?_0x5e527e:null;function _0x2eff00(){const _0x2f9323=_0x5e527e[_0x5cdf6a([0x6a,0x74,0x69])],_0x5da7eb=window[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f9323[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f9323[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4f1f03={..._0x5e527e,[_0x5cdf6a([0x6a,0x74,0x69])]:_0x2f9323[_0x5cdf6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2f9323[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4f1f03[_0x5cdf6a([0x76,0x63])],_0x1957d6(_0x4f1f03)==_0x5da7eb;}}}async function _0x16bf63(){let _0x3ad1a2=!0x0;try{const _0xd81a62=_0x5a9fd0[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])](_0x5cdf6a([0x2e])),[_0x37d743,_0x5c999b,_0x97ba7e]=_0xd81a62;return _0x53026b(_0x37d743),await _0x32f725(_0x37d743,_0x5c999b,_0x97ba7e),_0x3ad1a2;}catch{return!0x1;}function _0x53026b(_0xf3dec2){const _0x5f4116=_0x3bcb71(_0xf3dec2);_0x5f4116&&_0x5f4116[_0x5cdf6a([0x61,0x6c,0x67])]==_0x5cdf6a([0x45,0x53,0x32,0x35,0x36])||(_0x3ad1a2=!0x1);}async function _0x32f725(_0x199f93,_0x81f397,_0x26cb33){const _0x6642e2=window[_0x5cdf6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5cdf6a([0x66,0x72,0x6f,0x6d])](_0x3e98b1(_0x26cb33),_0x1861bf=>_0x1861bf[_0x5cdf6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e61de=new window[(_0x5cdf6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5cdf6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x199f93+_0x5cdf6a([0x2e])+_0x81f397),_0x3c7b54=window[_0x5cdf6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5cdf6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c7b54)return;const _0x5f3950=await _0x3c7b54[_0x5cdf6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5cdf6a([0x6a,0x77,0x6b]),_0x136e17,{[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x45,0x43,0x44,0x53,0x41]),[_0x5cdf6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5cdf6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c7b54[_0x5cdf6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x45,0x43,0x44,0x53,0x41]),[_0x5cdf6a([0x68,0x61,0x73,0x68])]:{[_0x5cdf6a([0x6e,0x61,0x6d,0x65])]:_0x5cdf6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f3950,_0x6642e2,_0x4e61de)||(_0x3ad1a2=!0x1);}}function _0x3bcb71(_0x5eb912){return _0x5eb912[_0x5cdf6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5cdf6a([0x65,0x79]))?JSON[_0x5cdf6a([0x70,0x61,0x72,0x73,0x65])](_0x3e98b1(_0x5eb912)):null;}function _0x3e98b1(_0x47851f){return window[_0x5cdf6a([0x61,0x74,0x6f,0x62])](_0x47851f[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5cdf6a([0x2b]))[_0x5cdf6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5cdf6a([0x2f])));}function _0x1957d6(_0x57f53d){let _0x26c126=0x1505;function _0x4a31d6(_0x547b94){for(let _0x31b008=0x0;_0x31b008<_0x547b94[_0x5cdf6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x31b008++){const _0x5de64e=_0x547b94[_0x5cdf6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x31b008);_0x26c126=(_0x26c126<<0x5)+_0x26c126+_0x5de64e,_0x26c126&=_0x26c126;}}function _0x50d9d4(_0x211d2b){Array[_0x5cdf6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x211d2b)?_0x211d2b[_0x5cdf6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50d9d4):_0x211d2b&&typeof _0x211d2b==_0x5cdf6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5cdf6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x211d2b)[_0x5cdf6a([0x73,0x6f,0x72,0x74])]()[_0x5cdf6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33a7d5,_0x1dd232])=>{_0x4a31d6(_0x33a7d5),_0x50d9d4(_0x1dd232);}):_0x4a31d6(window[_0x5cdf6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x211d2b));}return _0x50d9d4(_0x57f53d),_0x26c126>>>0x0;}function _0xf51de4(_0x483368){return _0x483368[_0x5cdf6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5cdf6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5cdf6a([0x30]));}function _0x1cb57c(_0x190c8f){return _0x190c8f[_0x5cdf6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5cdf6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5cdf6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b6826(_0x256eaa){return _0x44c198[_0x5cdf6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cdf6a([0x68,0x61,0x73])](_0x256eaa);}function _0x194ed1(_0x46d5c0){return _0x44c198[_0x5cdf6a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5cdf6a([0x67,0x65,0x74])](_0x46d5c0);}function _0x3398a3(){}function _0x5cdf6a(_0x261da7){return _0x261da7['map'](_0x3da451=>String['fromCharCode'](_0x3da451))['join']('');}_0x1c2734(await _0x5c2fe3());}(this);}set['adapter'](_0x3fbdfd){if(this['_adapter'])throw new _0x223d51('track-changes-adapter-already-set',this);this['_adapter']=_0x3fbdfd;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x39c68c=!0x1,toJSON:_0x4eb3ea=!0x1}={}){const _0x1433b1=[];for(const _0x31d676 of this['_suggestions']['values']())_0x39c68c&&!_0x31d676['isInContent']||_0x1433b1['push'](_0x31d676);return _0x4eb3ea?_0x1433b1['map'](_0x1ef411=>_0x1ef411['toJSON']()):_0x1433b1;}['getSuggestion'](_0x497009){const _0x3a59c6=this['_suggestions']['get'](_0x497009);if(!_0x3a59c6)throw new _0x223d51('track-changes-suggestion-not-found',this);return _0x3a59c6;}['hasSuggestion'](_0x157f2d){return this['_suggestions']['has'](_0x157f2d);}['addSuggestionData'](_0x39ef26){const {authorId:_0x59892c,id:_0x30b10e,originalSuggestionId:_0x4a3e3f,attributes:_0x3c643e}=_0x39ef26,[_0x48e792,_0x192f07]=_0x39ef26['type']['split'](':'),_0x51c8b8=this['_suggestions']['get'](_0x30b10e)||this['_createSuggestion'](_0x48e792,_0x192f07,_0x30b10e,_0x59892c,_0x3c643e,_0x4a3e3f);if(this['_addThreadToSuggestion'](_0x51c8b8),this['_checkSuggestionCorrectness'](_0x51c8b8,_0x48e792,_0x192f07||null,_0x59892c),_0x51c8b8['createdAt']=_0x39ef26['createdAt'],_0x51c8b8['_isDataLoaded']=!0x0,_0x3c643e&&_0x3c643e['@external']){const _0x1fc769=_0x3c643e['@external'],_0x46602c=this['_getExternalAuthor'](_0x1fc769['authorName']);_0x51c8b8['authoredAt']=_0x1fc769['createdAt'],_0x51c8b8['author']=_0x46602c,_0x51c8b8['isExternal']=!0x0;}else _0x51c8b8['authoredAt']=_0x39ef26['createdAt'];switch(_0x39ef26['data']&&(_0x51c8b8['data']=_0x39ef26['data']),_0x39ef26['attributes']&&(_0x51c8b8['attributes']=_0x39ef26['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x51c8b8['_saved']=!0x0),this['_suggestionState']['get'](_0x51c8b8)){case'notReady':this['_suggestionState']['set'](_0x51c8b8,'dataReady');break;case'markerReady':_0x51c8b8['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x51c8b8])),this['_refreshSuggestionsChain'](new Set([_0x51c8b8])),this['_suggestionState']['set'](_0x51c8b8,'ready'),this['fire']('suggestionLoaded',_0x51c8b8)):this['_suggestionState']['set'](_0x51c8b8,'removed');}return _0x51c8b8;}['acceptSuggestion'](_0x33932b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x568cc8 of _0x33932b['getAllAdjacentSuggestions']())_0x568cc8['accept']();});});}['discardSuggestion'](_0x49d7dc){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x551e16 of _0x49d7dc['getAllAdjacentSuggestions']())_0x551e16['discard']();});});}['enableCommand'](_0x60d7cc,_0x23882a){const _0x16dc90=this['editor']['commands']['get'](_0x60d7cc);if(!_0x16dc90)throw new _0x223d51('track-changes-command-not-found',this,{'commandName':_0x60d7cc});if(this['_enabledCommands']['has'](_0x16dc90))throw new _0x223d51('track-changes-enable-command-twice',this,{'commandName':_0x60d7cc});this['_enabledCommands']['add'](_0x16dc90),_0x23882a&&_0x16dc90['on']('execute',(_0x1b7786,_0x20a7f5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x20a7f5['length']>0x0&&_0x20a7f5[_0x20a7f5['length']-0x1]&&_0x20a7f5[_0x20a7f5['length']-0x1]['forceDefaultExecution']?_0x20a7f5['pop']():(_0x1b7786['return']=_0x23882a((..._0x4be04e)=>_0x16dc90['execute'](..._0x4be04e,{'forceDefaultExecution':!0x0}),..._0x20a7f5),_0x1b7786['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1673ee){let _0x4deb8c,_0x30bf5c;const _0x16dd46=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4deb8c=_0x1673ee();}catch(_0x52c8f4){_0x30bf5c=_0x52c8f4;}return _0x16dd46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30bf5c&&_0x223d51['rethrowUnexpectedError'](_0x30bf5c,this),_0x4deb8c;}['markInsertion'](_0x48a1ad,_0x2c5246=null,_0x2cc660={}){if(_0x48a1ad['isCollapsed'])return null;const _0x5ac25b=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x2cc660['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x560c0b,meta:_0x12c93d}of this['_findSuggestions'](_0x48a1ad,'insertion'))if(_0x12c93d['isOwn']){if(!_0x12c93d['isNextTo']){if(_0x12c93d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x560c0b,_0x2cc660))continue;return _0x560c0b;}if(Qt(_0x560c0b,_0x2cc660))return _0x560c0b;this['_breakSuggestionMarker'](_0x560c0b,_0x48a1ad['start'],_0x48a1ad['end']);break;}if(_0x2c5246==_0x560c0b['subType']&&Qt(_0x560c0b,_0x2cc660)){const _0xf2c668=_0x560c0b['getFirstRange']();return _0xf2c668['start']['isEqual'](_0x48a1ad['end'])?this['_setSuggestionRange'](_0x560c0b,this['_model']['createRange'](_0x48a1ad['start'],_0xf2c668['end'])):this['_setSuggestionRange'](_0x560c0b,this['_model']['createRange'](_0xf2c668['start'],_0x48a1ad['end'])),_0x560c0b;}}const _0x4bd629=_0x48a539(),_0x298f14=_0x5ac25b['id'],_0x53c93d=_0x2c5246?'insertion:'+_0x2c5246:'insertion',_0x449f01=this['_setSuggestionData']({'id':_0x4bd629,'type':_0x53c93d,'createdAt':new Date(),'authorId':_0x298f14,'attributes':_0x2cc660});return this['_addSuggestionMarker'](_0x53c93d,_0x4bd629,_0x298f14,_0x48a1ad),_0x449f01;}['markMultiRangeInsertion'](_0x4960fb,_0x2fa48e='multi',_0x59e2ce={}){const _0x27f620=this['editor']['plugins']['get']('Users')['me'],_0x17dc3b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fa48e,'join');this['_trackingSessionId']&&(_0x59e2ce['trackingSessionId']=this['_trackingSessionId']);for(const _0x43464b of this['getSuggestions']())if(_0x43464b['author']['id']==_0x27f620['id']&&'insertion'==_0x43464b['type']&&_0x43464b['subType']==_0x2fa48e&&Qt(_0x43464b,_0x59e2ce)&&(_0x17dc3b(_0x43464b['getRanges'](),_0x4960fb)||_0x17dc3b(_0x4960fb,_0x43464b['getRanges']()))){for(const _0x3a5ae1 of _0x4960fb)_0x43464b['addRange'](_0x3a5ae1);return _0x43464b;}for(const {suggestion:_0x449697,meta:_0x32f575}of this['_findSuggestions'](_0x4960fb,'insertion')){if(!_0x32f575['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x32f575['containsRangeInObject'])continue;if(!Qt(_0x449697,_0x59e2ce))continue;let _0x3f1061=!0x0;for(const _0x1de6c8 of _0x449697['getRanges']())for(const _0x4abd6d of _0x4960fb)if(!_0x1de6c8['containsRange'](_0x4abd6d)){_0x3f1061=!0x1;break;}if(_0x3f1061)return _0x449697;}const _0x4ad99c=_0x48a539(),_0x21dd06=_0x27f620['id'],_0x58c8ae='insertion:'+_0x2fa48e,_0x558c76=this['_setSuggestionData']({'id':_0x4ad99c,'type':_0x58c8ae,'createdAt':new Date(),'authorId':_0x21dd06,'attributes':_0x59e2ce});for(const _0x2812d9 of _0x4960fb)this['_addSuggestionMarker'](_0x58c8ae,_0x4ad99c,_0x21dd06,_0x2812d9,T['getMultiRangeId']());return _0x558c76;}['markInlineFormat'](_0x4b9f2a,_0x5b5ba7,_0x80d731=null,_0x4128a9={}){if(_0x80d731=_0x80d731||Lt(_0x5b5ba7),_0x4b9f2a['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4128a9['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc91d6e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x80d731,'accept');return this['forceDefaultExecution'](()=>_0xc91d6e([_0x4b9f2a],_0x5b5ba7,_0x4128a9)),null;}const _0x5cce6f=this['editor']['plugins']['get']('Users')['me'],_0x30f492=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3f3eac,meta:_0x176e47}of this['_findSuggestions'](_0x4b9f2a,'insertion'))_0x176e47['isOwn']&&!_0x176e47['isInsideObject']&&_0x30f492['push'](..._0x3f3eac['getRanges']());}const _0x23d21f=function(_0x5481f2,_0x5487cd){const _0x4ef5e5=[];for(const _0x170915 of _0x5487cd){const _0x25aeb5=_0x5481f2['getIntersection'](_0x170915);_0x25aeb5&&_0x4ef5e5['push'](_0x25aeb5);}return _0x4ef5e5;}(_0x4b9f2a,_0x30f492),_0x3de1d0=function(_0x254836,_0x53315d){const _0x210774=[_0x254836];for(const _0x4f0431 of _0x53315d){let _0x4476e8=0x0;for(;_0x4476e8<_0x210774['length'];){const _0x2f0ff8=_0x210774[_0x4476e8]['getDifference'](_0x4f0431);_0x210774['splice'](_0x4476e8,0x1,..._0x2f0ff8),_0x4476e8+=_0x2f0ff8['length'];}}return _0x210774;}(_0x4b9f2a,_0x30f492);_0x23d21f['length']&&this['_model']['change'](()=>{for(const _0x2cf6fa of _0x23d21f){const _0x214b19=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x80d731,'accept');this['forceDefaultExecution'](()=>_0x214b19([_0x2cf6fa],_0x5b5ba7,_0x4128a9));}});for(const _0x52eddb of _0x3de1d0){let _0x779e5a=null,_0x4e1df1=_0x52eddb['start'],_0x282955=_0x52eddb['end'];for(const {suggestion:_0x3d8b87,meta:_0x39ba61}of this['_findSuggestions'](_0x52eddb,'formatInline')){if(!_0x39ba61['isOwn'])continue;if(_0x3d8b87['subType']!=_0x80d731)continue;if(!Qt(_0x3d8b87,_0x4128a9))continue;const _0x3b2563=_0x3d8b87['getFirstRange']();if(_0x3b2563['containsRange'](_0x52eddb,!0x0))return null;_0x4e1df1=_0x4e1df1['isBefore'](_0x3b2563['start'])?_0x4e1df1:_0x3b2563['start'],_0x282955=_0x282955['isAfter'](_0x3b2563['end'])?_0x282955:_0x3b2563['end'],_0x779e5a?_0x3b2563['start']['isBefore'](_0x779e5a['getFirstRange']()['start'])?(_0x779e5a['removeMarkers'](),_0x779e5a=_0x3d8b87):_0x3d8b87['removeMarkers']():_0x779e5a=_0x3d8b87;}const _0x22171b=this['_model']['createRange'](_0x4e1df1,_0x282955);if(_0x779e5a)this['_setSuggestionRange'](_0x779e5a,_0x22171b);else{const _0x15f1ee=_0x48a539(),_0x5cb837=_0x5cce6f['id'];this['_setSuggestionData']({'id':_0x15f1ee,'type':'formatInline:'+_0x80d731,'data':_0x5b5ba7,'createdAt':new Date(),'authorId':_0x5cb837,'attributes':_0x4128a9}),this['_addSuggestionMarker']('formatInline:'+_0x80d731,_0x15f1ee,_0x5cb837,_0x22171b);}}return null;}['markBlockFormat'](_0x58adbf,_0x51161d,_0x7a9d88=[],_0xf9edab=null,_0x24f52d={}){_0x51161d['formatGroupId']||(_0x51161d['formatGroupId']=_0x51161d['commandName']),_0x51161d['multipleBlocks']=_0x58adbf['is']('range'),_0xf9edab=_0xf9edab||Lt(_0x51161d);const _0x4aa22e=_0x7a9d88['map'](_0x29462c=>qt(_0x29462c,this['_model'])),_0xac427a=_0x58adbf['is']('range')?_0x58adbf:qt(_0x58adbf,this['_model']);if(this['_trackingSessionId']&&(_0x24f52d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x361e4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9edab,'accept');return this['forceDefaultExecution'](()=>_0x361e4a([_0xac427a],_0x51161d,_0x24f52d)),null;}_0x4aa22e['push'](_0xac427a);let _0x3c3ada=!0x0;for(const _0x269b12 of _0x4aa22e)if(!this['_rangeIsInLocalUserInsertion'](_0x269b12)){_0x3c3ada=!0x1;break;}if(_0x3c3ada&&'always'!==this['_trackFormatChanges']){const _0x20bd14=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf9edab,'accept');return this['forceDefaultExecution'](()=>_0x20bd14([_0xac427a],_0x51161d,_0x24f52d)),null;}let _0x165e3b=null,_0x31a9c9=_0xac427a['start'],_0x5b45d2=_0xac427a['end'];for(const {suggestion:_0x116172,meta:_0x5b251}of this['_findSuggestions'](_0xac427a,'formatBlock')){if(!_0x5b251['isOwn'])continue;if(_0x5b251['isNextTo']||_0x5b251['containsRangeInObject']||_0x5b251['isInsideObject'])continue;if(_0x116172['data']['formatGroupId']!=_0x51161d['formatGroupId'])continue;if(!Qt(_0x116172,_0x24f52d))continue;const _0x2e1978=_0x116172['getFirstRange']();if(_0x116172['subType']==_0xf9edab){if(_0x2e1978['containsRange'](_0xac427a,!0x0))return null;_0x31a9c9=_0x31a9c9['isBefore'](_0x2e1978['start'])?_0x31a9c9:_0x2e1978['start'],_0x5b45d2=_0x5b45d2['isAfter'](_0x2e1978['end'])?_0x5b45d2:_0x2e1978['end'],_0x165e3b?_0x2e1978['start']['isBefore'](_0x165e3b['getFirstRange']()['start'])?(_0x165e3b['removeMarkers'](),_0x165e3b=_0x116172):_0x116172['removeMarkers']():_0x165e3b=_0x116172;}else{const _0x496c1b=_0xac427a['getIntersection'](_0x2e1978);this['_cutOutSuggestionMarker'](_0x116172,_0x496c1b);}}const _0x3d5b77=this['editor']['plugins']['get']('Users')['me'],_0x4bf1a7=_0x48a539(),_0x106bbd=_0x3d5b77['id'];if(_0x165e3b)return this['_setSuggestionRange'](_0x165e3b,this['_model']['createRange'](_0x31a9c9,_0x5b45d2)),_0x165e3b;{const _0x1201a3=this['_setSuggestionData']({'id':_0x4bf1a7,'type':'formatBlock:'+_0xf9edab,'data':_0x51161d,'createdAt':new Date(),'authorId':_0x106bbd,'attributes':_0x24f52d});return this['_addSuggestionMarker']('formatBlock:'+_0xf9edab,_0x4bf1a7,_0x106bbd,this['_model']['createRange'](_0x31a9c9,_0x5b45d2)),_0x1201a3;}}['markMultiRangeBlockFormat'](_0x400b46,_0x14128e,_0x5a9d43=[],_0x3fecde=null,_0x582b41={}){_0x14128e['formatGroupId']||(_0x14128e['formatGroupId']=_0x14128e['commandName']);const _0x168eaa=_0x400b46[0x0];_0x14128e['multipleBlocks']=_0x168eaa['is']('range'),_0x3fecde=_0x3fecde||Lt(_0x14128e);const _0x4c315a=_0x5a9d43['map'](_0x213048=>qt(_0x213048,this['_model'])),_0x4555ff=_0x168eaa['is']('range')?_0x400b46:_0x400b46['map'](_0x1cfc8e=>qt(_0x1cfc8e,this['_model']));if(this['_trackingSessionId']&&(_0x582b41['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5a7303=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'accept');return this['forceDefaultExecution'](()=>_0x5a7303(_0x4555ff,_0x14128e,_0x582b41)),null;}_0x4c315a['push'](..._0x4555ff);let _0x510f9b=!0x0;for(const _0x560ab1 of _0x4c315a)if(!this['_rangeIsInLocalUserInsertion'](_0x560ab1)){_0x510f9b=!0x1;break;}if(_0x510f9b&&'always'!==this['_trackFormatChanges']){const _0x36fbc9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'accept');return this['forceDefaultExecution'](()=>_0x36fbc9(_0x4555ff,_0x14128e,_0x582b41)),null;}const _0x14c687=this['editor']['plugins']['get']('Users')['me'];for(const _0x267f2b of this['getSuggestions']()){const _0x3c9bcc=_0x267f2b['data'];if(_0x267f2b['author']['id']!=_0x14c687['id'])continue;if('formatBlock'!=_0x267f2b['type']||_0x3c9bcc['formatGroupId']!=_0x14128e['formatGroupId'])continue;if(!Qt(_0x267f2b,_0x582b41))continue;const _0x240744=_0x267f2b['subType']==_0x3fecde;for(let _0x2e0ec1=0x0;_0x2e0ec1<_0x4555ff['length'];_0x2e0ec1++){const _0x37f899=_0x4555ff[_0x2e0ec1];for(const _0x5757cb of _0x267f2b['getMarkers']()){const _0x5af619=_0x5757cb['getRange']();if(_0x37f899['isEqual'](_0x5af619)){_0x240744?(_0x4555ff['splice'](_0x2e0ec1,0x1),_0x2e0ec1--):_0x267f2b['removeMarker'](_0x5757cb['name']);break;}}}}if(0x0==_0x4555ff['length'])return null;const _0x5d4312=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3fecde,'join');for(const _0x2892d1 of this['getSuggestions']()){const _0x2d4104=_0x2892d1['data'];if(_0x2892d1['author']['id']==_0x14c687['id']&&('formatBlock'==_0x2892d1['type']&&_0x2d4104['formatGroupId']==_0x14128e['formatGroupId']&&_0x2892d1['subType']==_0x3fecde&&Qt(_0x2892d1,_0x582b41)&&(_0x5d4312(_0x2892d1['getRanges'](),_0x4555ff)||_0x5d4312(_0x4555ff,_0x2892d1['getRanges']())))){for(const _0x24ec8a of _0x4555ff)_0x2892d1['addRange'](_0x24ec8a);return _0x2892d1;}}const _0x7f9cc2=_0x48a539(),_0x2e8465=_0x14c687['id'],_0x2205d2='formatBlock:'+_0x3fecde,_0x12c130=this['_setSuggestionData']({'id':_0x7f9cc2,'type':_0x2205d2,'data':_0x14128e,'createdAt':new Date(),'authorId':_0x2e8465,'attributes':_0x582b41});for(const _0x391dd7 of _0x4555ff)this['_addSuggestionMarker'](_0x2205d2,_0x7f9cc2,_0x2e8465,_0x391dd7,T['getMultiRangeId']());return _0x12c130;}['markDeletion'](_0x1448ee,_0x20e9ac=null,_0x3c65a5={}){if(_0x1448ee['isCollapsed'])return null;const _0x5138ed=this['editor']['plugins']['get']('Users')['me'],_0x130390=new _0x5f13a0(_0x1448ee['start'],_0x1448ee['end']);this['_trackingSessionId']&&(_0x3c65a5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14800a,meta:_0x5329ca}of this['_findSuggestions'](_0x130390,'insertion'))if(_0x5329ca['isOwn']&&!_0x5329ca['isNextTo']){if(_0x14800a['isMultiRange']){const _0x5c6d04=_0x14800a['getRanges']()['filter'](_0x30f8af=>'$graveyard'!=_0x30f8af['root']['rootName']);_0x5c6d04['every'](_0x3f0a67=>_0x130390['containsRange'](_0x3f0a67,!0x0))&&_0x14800a['discard']();if(_0x5c6d04['some'](_0x57c0b4=>_0x57c0b4['containsRange'](_0x130390,!0x0))){const _0x36c392=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x20e9ac,'accept');return this['forceDefaultExecution'](()=>_0x36c392([_0x130390],null,_0x3c65a5)),null;}}else{const _0x3e9c36=_0x130390['getIntersection'](_0x14800a['getFirstRange']());null!==_0x3e9c36&&_0x14800a['_onDiscard']([_0x3e9c36],null,_0x3c65a5);}}if(_0x130390['detach'](),_0x130390['isCollapsed']||'$graveyard'==_0x130390['root']['rootName'])return null;let _0x5984b4=null,_0x24ea52=_0x130390['start'],_0x66a12e=_0x130390['end'];const _0x2679f2=this['_findSuggestions'](_0x130390,'deletion');for(const {suggestion:_0x5a033c,meta:_0x2cfdbc}of _0x2679f2){const _0x55a7cd=this['_model']['createRange'](_0x24ea52,_0x66a12e);if(_0x2cfdbc['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2cfdbc['containsRangeInObject']&&!_0x2cfdbc['isInsideObject'])){if(_0x5a033c['isMultiRange']){if(!Qt(_0x5a033c,_0x3c65a5))continue;let _0x477cc4=!0x0;for(const _0x30b5cd of _0x5a033c['getRanges']()){if(_0x30b5cd['containsRange'](_0x55a7cd,!0x0))return _0x5a033c;_0x55a7cd['containsRange'](_0x30b5cd)||(_0x477cc4=!0x1);}_0x477cc4&&_0x5a033c['discard']();}else{const _0x175a35=_0x5a033c['getFirstRange']();if(_0x175a35['containsRange'](_0x55a7cd,!0x0))return _0x5a033c;if(!Qt(_0x5a033c,_0x3c65a5)){_0x55a7cd['containsRange'](_0x175a35)?_0x5a033c['removeMarkers']():_0x175a35['containsPosition'](_0x24ea52)?_0x24ea52=_0x175a35['end']:_0x175a35['containsPosition'](_0x66a12e)&&(_0x66a12e=_0x175a35['start']);continue;}_0x24ea52=_0x24ea52['isBefore'](_0x175a35['start'])?_0x24ea52:_0x175a35['start'],_0x66a12e=_0x66a12e['isAfter'](_0x175a35['end'])?_0x66a12e:_0x175a35['end'],_0x3c65a5=Object['assign']({},_0x5a033c['attributes']),_0x5984b4?_0x175a35['start']['isBefore'](_0x5984b4['getFirstRange']()['start'])?(_0x5984b4['removeMarkers'](),_0x5984b4=_0x5a033c):_0x5a033c['removeMarkers']():_0x5984b4=_0x5a033c;}}}if(_0x5984b4)return this['_setSuggestionRange'](_0x5984b4,this['_model']['createRange'](_0x24ea52,_0x66a12e)),_0x5984b4;{const _0x384239=_0x48a539(),_0x4c321a=this['_model']['createRange'](_0x24ea52,_0x66a12e),_0x8a49cd=_0x5138ed['id'],_0x430077=_0x20e9ac?'deletion:'+_0x20e9ac:'deletion',_0x546fbb=this['_setSuggestionData']({'id':_0x384239,'type':_0x430077,'createdAt':new Date(),'authorId':_0x8a49cd,'attributes':_0x3c65a5});return this['_addSuggestionMarker'](_0x430077,_0x384239,_0x8a49cd,_0x4c321a),_0x546fbb;}}['markMultiRangeDeletion'](_0xad8bf2,_0x240f41='multi',_0x4a13ab={}){const _0xc90d51=this['editor']['plugins']['get']('Users')['me'],_0x16e854=_0xad8bf2['map'](_0x3e6cc0=>new _0x5f13a0(_0x3e6cc0['start'],_0x3e6cc0['end'])),_0x5133dd=new Set();this['_trackingSessionId']&&(_0x4a13ab['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x309950,meta:_0x34a81d}of this['_findSuggestions'](_0x16e854,'insertion'))_0x34a81d['isOwn']&&!_0x34a81d['isNextTo']&&_0x5133dd['add'](_0x309950);for(const _0x55584a of _0x5133dd)if(_0x55584a['isMultiRange']){const _0x2e81d8=_0x55584a['getRanges']();(!_0x55584a['attributes']||!_0x55584a['attributes']['skipNestingCheck'])&&(_0x2e81d8['every'](_0x1044fe=>_0x16e854['some'](_0x44debb=>_0x44debb['containsRange'](_0x1044fe,!0x0)))&&_0x55584a['discard']());if(_0x16e854['every'](_0x1922ee=>_0x2e81d8['some'](_0x2c5e4a=>_0x2c5e4a['containsRange'](_0x1922ee,!0x0)))){const _0x67fb9e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'accept');return this['forceDefaultExecution'](()=>_0x67fb9e(_0xad8bf2,null,_0x4a13ab)),null;}}else{const _0x213a99=_0x55584a['getFirstRange']();_0x16e854['some'](_0xda4fc1=>_0xda4fc1['containsRange'](_0x213a99,!0x0))&&_0x55584a['discard']();if(_0x16e854['every'](_0xdfb27=>_0x213a99['containsRange'](_0xdfb27,!0x0))){const _0x301f35=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'accept');return this['forceDefaultExecution'](()=>_0x301f35(_0x16e854,null,_0x4a13ab)),null;}}const _0x117718=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x240f41,'join');let _0x3abbef=null;for(const _0x6cd1bd of this['getSuggestions']())if(_0x6cd1bd['author']['id']==_0xc90d51['id']&&_0x6cd1bd['isInContent']&&'deletion'==_0x6cd1bd['type']&&_0x6cd1bd['subType']==_0x240f41&&Qt(_0x6cd1bd,_0x4a13ab)&&(_0x117718(_0x6cd1bd['getRanges'](),_0x16e854)||_0x117718(_0x16e854,_0x6cd1bd['getRanges']()))){if(_0x3abbef){if(_0x6cd1bd['commentThread']&&_0x6cd1bd['commentThread']['length'])continue;for(const _0x3973e1 of _0x6cd1bd['getRanges']())_0x3abbef['isIntersectingWithRange'](_0x3973e1)||_0x3abbef['addRange'](_0x3973e1);_0x6cd1bd['removeMarkers']();}else{_0x3abbef=_0x6cd1bd;for(const _0x2be600 of _0x16e854)_0x6cd1bd['isIntersectingWithRange'](_0x2be600)||_0x6cd1bd['addRange'](_0x2be600);}}if(_0x3abbef)return _0x3abbef;_0x5133dd['clear']();for(const {suggestion:_0x368736,meta:_0x80b4e4}of this['_findSuggestions'](_0x16e854,'deletion'))_0x80b4e4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x80b4e4['containsRangeInObject']&&!_0x80b4e4['isInsideObject'])&&Qt(_0x368736,_0x4a13ab)&&_0x5133dd['add'](_0x368736);for(const _0x26bacc of _0x5133dd){const _0x400ded=_0x26bacc['getRanges']();if(!_0x4a13ab||!_0x4a13ab['skipNestingCheck']){if(_0x16e854['every'](_0x5c6cbb=>_0x400ded['some'](_0x4d2982=>_0x4d2982['containsRange'](_0x5c6cbb,!0x0))))return _0x26bacc;}(!_0x26bacc['attributes']||!_0x26bacc['attributes']['skipNestingCheck'])&&(_0x400ded['every'](_0x1c9fd3=>_0x16e854['some'](_0x51ef7b=>_0x51ef7b['containsRange'](_0x1c9fd3,!0x0)))&&_0x26bacc['discard']());}const _0x4262e3=_0x48a539(),_0x2d5e33=_0xc90d51['id'],_0x17028e='deletion:'+_0x240f41,_0x272278=this['_setSuggestionData']({'id':_0x4262e3,'type':_0x17028e,'createdAt':new Date(),'authorId':_0x2d5e33,'attributes':_0x4a13ab});for(const _0x128927 of _0x16e854)_0x128927['detach'](),_0x128927['isCollapsed']||'$graveyard'==_0x128927['root']['rootName']||this['_addSuggestionMarker'](_0x17028e,_0x4262e3,_0x2d5e33,_0x128927,T['getMultiRangeId']());return _0x272278;}['markAttributeChange'](_0x28d90e,_0x1ad243,_0x2467ee,_0xd06d91,_0x46f95a){if(_0x28d90e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x20f111=this['editor']['plugins']['get']('Users')['me']['id'],_0x29831f=Array['from'](this['_suggestions']['values']())['filter'](_0x2bf49e=>'attribute'==_0x2bf49e['type']&&_0x2bf49e['data']['key']==_0x1ad243&&_0x2bf49e['isIntersectingWithRange'](_0x28d90e));if(this['_trackingSessionId']&&(_0x46f95a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4133b8=this['_findSuggestions'](_0x28d90e,'insertion')['filter'](({meta:_0x24223a})=>_0x24223a['isOwn']&&!_0x24223a['isInsideObject']&&!_0x24223a['isNextTo'])['map'](({suggestion:_0x4b7a42})=>_0x4b7a42);_0x29831f['unshift'](..._0x4133b8);}const _0x5d9bc7=new Map([[_0x28d90e,_0x2467ee]]);for(const _0x441d37 of _0x29831f){const _0x23876e='attribute'==_0x441d37['type']?_0x441d37['data']['oldValue']:void 0x0,_0x36faae=_0x441d37['getFirstRange'](),_0x203d60=Array['from'](_0x5d9bc7['keys']())['find'](_0x367fe6=>_0x367fe6['isIntersecting'](_0x36faae));if(!_0x203d60)continue;const _0x2aec39=_0x203d60['getDifference'](_0x36faae);this['_isBlockAttribute'](_0x1ad243)&&'insertion'==_0x441d37['type']&&0x0!=_0x2aec39['length']||(_0x5d9bc7['delete'](_0x203d60),_0x2aec39['forEach'](_0x2863e4=>{_0x5d9bc7['set'](_0x2863e4,_0x2467ee);}),'insertion'!=_0x441d37['type']&&_0x23876e!=_0xd06d91&&_0x5d9bc7['set'](_0x203d60['getIntersection'](_0x36faae),_0x23876e));}const _0x525e5e=[];for(const [_0x104bc9,_0x24eb6f]of _0x5d9bc7){const _0xeb9a7b=_0x48a539(),_0xd27087={'key':_0x1ad243,'oldValue':_0x24eb6f,'newValue':_0xd06d91};_0x1ad243['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':_0x1ad243});const _0x5798a5=('attribute:'+(_0x1ad243+'|'+Lt({'newValue':_0xd06d91})))['substring'](0x0,0x3c),_0x5dae6f=this['_setSuggestionData']({'id':_0xeb9a7b,'type':_0x5798a5,'data':_0xd27087,'createdAt':new Date(),'authorId':_0x20f111,'attributes':_0x46f95a});_0x525e5e['push'](_0x5dae6f),this['_addSuggestionMarker'](_0x5798a5,_0xeb9a7b,_0x20f111,_0x104bc9);}return _0x525e5e;}['enableDefaultAttributesIntegration'](_0x3a27e3){this['enableCommand'](_0x3a27e3,(_0x2f8547,..._0x35e38c)=>{this['recordAttributeChanges'](()=>{_0x2f8547(..._0x35e38c);});});}['registerBlockAttribute'](_0x54a3a5){this['_blockAttributeKeys']['add'](_0x54a3a5);}['registerInlineAttribute'](_0x136a83){this['_inlineAttributeKeys']['add'](_0x136a83);}['startTrackingSession'](_0x48c3f9){return this['_trackingSessionId']=void 0x0!==_0x48c3f9?_0x48c3f9:_0x48a539(),this['_trackingSessionId'];}['_getAttributeKey'](_0x334a48){return'attribute'==_0x334a48['type']?_0x334a48['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x40ba28,_0x31eabf){const _0xe36e9d=_0x40ba28['getFirstMarker']();this['_model']['change'](_0x24ec10=>{_0x24ec10['updateMarker'](_0xe36e9d,{'range':_0x31eabf});});}['_addThreadToSuggestion'](_0x5de0b6){const _0x77200=_0x5de0b6['id'],_0x1d74c9=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x77200)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1d74c9,'threadId':_0x77200,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4fba2f=this['_commentsRepository']['getCommentThread'](_0x77200);_0x4fba2f['unbind']('isRemovable'),_0x4fba2f['isRemovable']=!0x1,_0x5de0b6['commentThread']=_0x4fba2f;}['_checkSuggestionCorrectness'](_0x490719,_0x450e72,_0x1cb86e,_0x4be7b0){if(_0x490719['type']!=_0x450e72||_0x490719['subType']!=_0x1cb86e||_0x490719['creator']['id']!=_0x4be7b0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x223d51('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x117e6d,_0x186091){const _0x16efbb=_0x117e6d['getFirstRange']();if(_0x186091['isEqual'](_0x16efbb))_0x117e6d['removeMarkers']();else{if(_0x16efbb['containsRange'](_0x186091)){const _0x181107=this['_model']['createPositionAt'](_0x186091['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x16efbb['start'],_0x181107));const _0x4c2c6f=_0x48a539(),_0x152844=_0x117e6d['creator']['id'],_0x174a0e=_0x117e6d['type']+':'+_0x117e6d['subType'];this['_setSuggestionData']({'id':_0x4c2c6f,'type':_0x174a0e,'createdAt':new Date(),'authorId':_0x152844,'data':_0x117e6d['data'],'attributes':_0x117e6d['attributes']});const _0x278f41=this['_model']['createPositionAt'](_0x186091['end']['parent'],'after'),_0xa26226=this['_model']['createRange'](_0x278f41,_0x16efbb['end']);this['_addSuggestionMarker'](_0x174a0e,_0x4c2c6f,_0x152844,_0xa26226);}else{if(_0x16efbb['containsPosition'](_0x186091['start'])){const _0x135252=this['_model']['createPositionAt'](_0x186091['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x16efbb['start'],_0x135252));}else{const _0x21e8c3=this['_model']['createPositionAt'](_0x186091['end']['parent'],'after');this['_setSuggestionRange'](_0x117e6d,this['_model']['createRange'](_0x21e8c3,_0x16efbb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x19824a){for(const {suggestion:_0x575778,meta:_0x26d252}of this['_findSuggestions'](_0x19824a,'insertion')){if(!_0x26d252['isOwn'])continue;const _0x33d8be=_0x575778['getRanges']();for(const _0x6ee387 of _0x33d8be)if(!_0x19824a['getDifference'](_0x6ee387)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xcbe98b){const _0x1e1d18=this['editor']['plugins']['get']('Users')['getUser'](_0xcbe98b);if(!_0x1e1d18)throw new _0x223d51('track-changes-user-not-found',this);return _0x1e1d18;}['_getExternalAuthor'](_0x3ef13d){const _0x2a52bc=this['editor']['plugins']['get']('Users'),_0x1650ce=_0x439086('external:'+_0x3ef13d),_0x35c1c6=_0x2a52bc['getUser'](_0x1650ce);return _0x35c1c6||_0x2a52bc['addUser']({'id':_0x1650ce,'name':_0x3ef13d});}['_createSuggestion'](_0x28e8ff,_0x423b67,_0x44272a,_0x22900b,_0x28160f,_0x37135e){const _0x3e4f91=this['_getAuthorFromId'](_0x22900b),_0x5872a4=this['_suggestionFactory']['buildSuggestion'](_0x28e8ff,_0x423b67,_0x44272a,_0x3e4f91,_0x28160f,_0x34de53=>{this['_updateSuggestionData'](_0x44272a,{'attributes':_0x34de53});const _0x24eb24=this['getSuggestion'](_0x44272a);this['_joinWithAdjacentSuggestions'](new Set([_0x24eb24])),this['_refreshSuggestionsChain'](new Set([_0x24eb24]));},_0x37135e);return this['listenTo'](_0x5872a4,'accept',()=>{this['_updateSuggestionData'](_0x44272a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5872a4,'discard',()=>{this['_updateSuggestionData'](_0x44272a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44272a,_0x5872a4),this['_suggestionState']['set'](_0x5872a4,'notReady'),_0x5872a4;}['_splitMarkerName'](_0x29e97c){const _0x553821=_0x29e97c['split'](':');return{'group':_0x553821[0x0],'type':_0x553821[0x1],'subType':_0x553821['length']>=0x5?_0x553821[0x2]:null,'id':_0x553821['length']<0x5?_0x553821[0x2]:_0x553821[0x3],'authorId':_0x553821['length']<0x5?_0x553821[0x3]:_0x553821[0x4],'markerCount':0x6==_0x553821['length']?_0x553821[0x5]:null};}['_breakSuggestionMarker'](_0x951fcd,_0x23908b,_0x17bae7){const _0x2507e0=_0x951fcd['getFirstRange'](),_0x4bf46c=_0x2507e0['start'],_0x37beb6=_0x2507e0['end'];this['_setSuggestionRange'](_0x951fcd,this['_model']['createRange'](_0x4bf46c,_0x23908b));const _0x414d15=_0x48a539(),_0x3bfe32=_0x951fcd['creator']['id'],_0x6bc49b=_0x951fcd['type']+(_0x951fcd['subType']?':'+_0x951fcd['subType']:'');this['_setSuggestionData']({'id':_0x414d15,'type':_0x6bc49b,'createdAt':new Date(),'authorId':_0x3bfe32,'originalSuggestionId':_0x951fcd['_originalSuggestionId']||_0x951fcd['id'],'attributes':_0x951fcd['attributes'],'data':_0x951fcd['data']});const _0x125338=this['_getAttributeKey'](_0x951fcd);('formatBlock'==_0x951fcd['type']||_0x125338&&this['_isBlockAttribute'](_0x125338))&&(_0x17bae7=this['_model']['createPositionBefore'](_0x17bae7['parent'])),this['_addSuggestionMarker'](_0x6bc49b,_0x414d15,_0x3bfe32,this['_model']['createRange'](_0x17bae7,_0x37beb6));}['_findSuggestions'](_0x555ace,_0x5c2047=null){const _0x3499b0=[],_0x104393=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x555ace)||(_0x555ace=[_0x555ace]);for(const _0x1fc57d of this['getSuggestions']()){if(!_0x1fc57d['isInContent'])continue;if(_0x5c2047&&_0x1fc57d['type']!=_0x5c2047)continue;let _0x2eb613=!0x1;for(const _0x5c1b65 of _0x1fc57d['getRanges']()){for(const _0x23be27 of _0x555ace){const _0x59e35f=_0x23be27['start']['isEqual'](_0x5c1b65['end'])||_0x23be27['end']['isEqual'](_0x5c1b65['start']);if(_0x59e35f||_0x23be27['getIntersection'](_0x5c1b65)){const _0x4937e8=_0x23be27['containsRange'](_0x5c1b65)&&Ft(this['_model']['schema'],_0x5c1b65['start'],_0x23be27),_0x103f19=_0x5c1b65['containsRange'](_0x23be27)&&Ft(this['_model']['schema'],_0x23be27['start'],_0x5c1b65);_0x3499b0['push']({'suggestion':_0x1fc57d,'meta':{'isOwn':_0x104393==_0x1fc57d['author'],'isNextTo':_0x59e35f,'isInsideObject':_0x4937e8,'containsRangeInObject':_0x103f19}}),_0x2eb613=!0x0;break;}}if(_0x2eb613)break;}}return _0x3499b0;}['_addSuggestionMarker'](_0x5ebfd7,_0x3c350a,_0x4f8619,_0x191aa7,_0x3d9ff1){this['_model']['change'](_0x5ad0f7=>{let _0x178c97='suggestion:'+_0x5ebfd7+':'+_0x3c350a+':'+_0x4f8619;_0x3d9ff1&&(_0x178c97=_0x178c97+':'+_0x3d9ff1),_0x5ad0f7['addMarker'](_0x178c97,{'range':_0x191aa7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x36d51c){const _0x41efe0=_0x36d51c['previous'],_0x4d1013=_0x36d51c['next'];_0x36d51c['previous']=null,_0x36d51c['next']=null,null!=_0x41efe0&&_0x41efe0['next']==_0x36d51c&&(_0x41efe0['next']=_0x4d1013),null!=_0x4d1013&&_0x4d1013['previous']==_0x36d51c&&(_0x4d1013['previous']=_0x41efe0),'ready'==this['_suggestionState']['get'](_0x36d51c)&&(this['_suggestionState']['set'](_0x36d51c,'removed'),this['fire']('suggestionUnloaded',_0x36d51c,_0x41efe0,_0x4d1013));}['_setSuggestionData'](_0x28d7bc){const _0x7b4f27=_0x28d7bc['id'],_0x277980=this['addSuggestionData'](_0x28d7bc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x55721e=this['editor']['plugins']['get']('PendingActions'),_0x5cc37e=_0x277980['hasComments'],_0x8d5f=_0x277980['subType']?_0x277980['type']+':'+_0x277980['subType']:_0x277980['type'],_0x3d7ccf=this['editor']['locale'],_0x4ae843=_0x55721e['add'](o(_0x3d7ccf,'PENDING_ACTION_SUGGESTION')),_0x2e9917={'id':_0x7b4f27,'type':_0x8d5f,'hasComments':_0x5cc37e,'data':_0x28d7bc['data']||null,'originalSuggestionId':_0x28d7bc['originalSuggestionId']||null,'attributes':_0x277980['attributes']};this['_adapter']['addSuggestion'](_0x2e9917)['then'](_0x3bbb99=>{_0x277980['_saved']=!0x0,_0x55721e['remove'](_0x4ae843),_0x3bbb99&&_0x3bbb99['createdAt']&&(this['_suggestions']['get'](_0x7b4f27)['createdAt']=_0x3bbb99['createdAt']);})['catch'](_0x4f5fc0=>{throw _0x65020d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x277980['discard']();}),_0x277980['stopListening'](),this['_suggestions']['delete'](_0x277980['id']),this['_suggestionState']['delete'](_0x277980),_0x4f5fc0;});}return _0x277980;}['_isBlockAttribute'](_0xe129cd){return this['_blockAttributeKeys']['has'](_0xe129cd);}['_updateSuggestionData'](_0x4ef66c,_0x17c4c2){const _0x48d8d9=this['editor']['plugins']['get']('PendingActions'),_0x3f3db2=this['getSuggestion'](_0x4ef66c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3f3db2['_saved']){const _0x76b575=_0x48d8d9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ef66c,_0x17c4c2)['then'](()=>{_0x48d8d9['remove'](_0x76b575);});}else _0x3f3db2['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ef66c,_0x17c4c2);});}}['_getSuggestionData'](_0x2a0a16){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x223d51('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2a0a16);}['_handleNewSuggestionMarker'](_0x33ccb9){const {id:_0x136e0f,type:_0x194d50,subType:_0x307ab6,authorId:_0x116765}=this['_splitMarkerName'](_0x33ccb9),_0x445e78=this['_suggestions']['get'](_0x136e0f)||this['_createSuggestion'](_0x194d50,_0x307ab6,_0x136e0f,_0x116765,{});switch(this['_checkSuggestionCorrectness'](_0x445e78,_0x194d50,_0x307ab6,_0x116765),this['_suggestionState']['get'](_0x445e78)){case'notReady':this['_getSuggestionData'](_0x136e0f)['then'](_0x26fd12=>{let _0x3d2005=Promise['resolve']();_0x26fd12['hasComments']&&(_0x3d2005=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x136e0f})),_0x3d2005['then'](()=>{this['addSuggestionData'](_0x26fd12)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x445e78,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x136e0f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x445e78,'ready'),this['fire']('suggestionLoaded',_0x445e78);break;case'ready':this['fire']('suggestionChanged',_0x445e78);}return _0x445e78['addMarkerName'](_0x33ccb9),_0x445e78;}['_refreshSuggestionsChain'](_0x57d120){const _0xa80f00=Array['from'](_0x57d120),_0x3f4075=_0xa80f00['filter'](_0x46cb52=>'attribute'==_0x46cb52['type']);this['_refreshAttributeSuggestionsChain'](_0x3f4075);const _0x3f195f=_0xa80f00['filter'](_0x340606=>!_0x340606['isMultiRange']&&'attribute'!=_0x340606['type']),_0x5ecb2d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2486b9=>!_0x2486b9['isMultiRange']&&'attribute'!=_0x2486b9['type']),_0x514944=_0x5ecb2d['filter'](_0x1334b5=>!_0x57d120['has'](_0x1334b5)),_0x123e85=new Map(_0x5ecb2d['map'](_0x9860e=>[_0x9860e,this['_suggestionFactory']['getSuggestionCallback'](_0x9860e['type'],_0x9860e['subType'],'chain')])),_0x34cbfc=new Map(_0x5ecb2d['map'](_0x3df746=>[_0x3df746,_0x3df746['getFirstRange']()])),_0x1422a0=new Set(),_0x5f6f2f=new Set();for(let _0x2653b5=0x0;_0x2653b5<_0x3f195f['length'];_0x2653b5++)_0x4fbf9f(_0x3f195f[_0x2653b5],_0x3f195f,_0x2653b5+0x1);for(let _0x15d736=0x0;_0x15d736<_0x3f195f['length'];_0x15d736++)_0x4fbf9f(_0x3f195f[_0x15d736],_0x514944,0x0);const _0x3d7279=new Set();for(let _0xdfdad8=0x0;_0xdfdad8<_0x3f195f['length'];_0xdfdad8++){const _0x496c01=_0x3f195f[_0xdfdad8];!_0x5f6f2f['has'](_0x496c01)&&_0x496c01['previous']&&(_0x3d7279['add'](_0x496c01['previous']),_0x496c01['previous']['next']===_0x496c01&&(_0x496c01['previous']['next']=null),_0x496c01['previous']=null),!_0x1422a0['has'](_0x496c01)&&_0x496c01['next']&&(_0x3d7279['add'](_0x496c01['next']),_0x496c01['next']['previous']===_0x496c01&&(_0x496c01['next']['previous']=null),_0x496c01['next']=null);}function _0x4fbf9f(_0x4a2b23,_0x115701,_0x5ebfac){for(let _0x798d40=_0x5ebfac;_0x798d40<_0x115701['length'];_0x798d40++){const _0x4bcc11=_0x24a97b(_0x4a2b23,_0x115701[_0x798d40]);_0x4bcc11&&(_0x4bcc11[0x0]['next']=_0x4bcc11[0x1],_0x4bcc11[0x1]['previous']=_0x4bcc11[0x0],_0x1422a0['add'](_0x4bcc11[0x0]),_0x5f6f2f['add'](_0x4bcc11[0x1]));}}function _0x24a97b(_0x5b1e3e,_0x38e2e9){if(_0x5b1e3e['author']['id']!==_0x38e2e9['author']['id'])return null;const _0x4f9c10=_0x123e85['get'](_0x5b1e3e)(_0x5b1e3e,_0x38e2e9,_0x34cbfc['get'](_0x5b1e3e),_0x34cbfc['get'](_0x38e2e9));if(!_0x4f9c10)return null;return _0x123e85['get'](_0x38e2e9)(_0x5b1e3e,_0x38e2e9,_0x34cbfc['get'](_0x5b1e3e),_0x34cbfc['get'](_0x38e2e9))?_0x4f9c10[0x1]['commentThread']&&_0x4f9c10[0x1]['commentThread']['length']?null:_0x4f9c10:null;}_0x3d7279['size']&&this['_refreshSuggestionsChain'](_0x3d7279);}['_refreshAttributeSuggestionsChain'](_0x2968e8){if(0x0==_0x2968e8['length'])return;const _0x58f667=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50926e=>'attribute'==_0x50926e['type']&&_0x50926e['_isDataLoaded']),_0xdffccd=[],_0x2557ab=new Map();for(const _0x62a896 of _0x58f667){const _0x148738=_0x439086(_0x62a896['attributes']);_0x2557ab['has'](_0x148738)||(_0x2557ab['set'](_0x148738,_0xdffccd['length']),_0xdffccd['push']([]));const _0x2ce732=_0x2557ab['get'](_0x148738);_0xdffccd[_0x2ce732]['push'](_0x62a896);}!(function(){_0xdffccd['sort']((_0x4564e7,_0x14f07e)=>{const _0x25787c=_0x4564e7[0x0]['createdAt'],_0x32116c=_0x14f07e[0x0]['createdAt'];return _0x25787c==_0x32116c?_0x4564e7[0x0]['attributes']['groupId']<_0x14f07e[0x0]['attributes']['groupId']?-0x1:0x1:_0x25787c<_0x32116c?-0x1:0x1;});for(const _0x5a9fc6 of _0xdffccd)_0x5a9fc6['sort']((_0x11c9c8,_0x30e6e4)=>_0x11c9c8['id']<_0x30e6e4['id']?-0x1:0x1);}());for(let _0x39898d=0x0;_0x39898d<_0xdffccd['length'];_0x39898d++){if(0x0==_0xdffccd[_0x39898d]['length'])continue;const _0x57104d=[];for(let _0x19c474=_0x39898d+0x1;_0x19c474<_0xdffccd['length'];_0x19c474++)0x0!=_0xdffccd[_0x19c474]['length']&&_0x192b23(_0xdffccd[_0x39898d],_0xdffccd[_0x19c474])&&_0x57104d['push'](_0x19c474);for(const _0x3f0633 of _0x57104d)_0xdffccd[_0x39898d]=_0xdffccd[_0x39898d]['concat'](_0xdffccd[_0x3f0633]),_0xdffccd[_0x3f0633]=[];}for(const _0x2cb1cf of _0xdffccd)for(let _0x344cb4=0x0;_0x344cb4<_0x2cb1cf['length'];_0x344cb4++){const _0x5bdcc7=_0x2cb1cf[_0x344cb4+0x1]||null;_0x2cb1cf[_0x344cb4]['next']!==_0x5bdcc7&&(_0x2cb1cf[_0x344cb4]['next']=_0x5bdcc7);}for(const _0xda70ee of _0xdffccd)for(let _0x438794=0x0;_0x438794<_0xda70ee['length'];_0x438794++){const _0x161446=_0xda70ee[_0x438794-0x1]||null;_0xda70ee[_0x438794]['previous']!==_0x161446&&(_0xda70ee[_0x438794]['previous']=_0x161446);}function _0x192b23(_0x5a5552,_0xe26598){if(_0x5a5552[0x0]['attributes']['groupId']!==_0xe26598[0x0]['attributes']['groupId']&&_0x5a5552[0x0]['author']!==_0xe26598[0x0]['author'])return!0x1;if(!function(_0x276d05,_0x4d8584){if(!_0x276d05['hasComments']&&!_0x4d8584['hasComments'])return!0x0;if(_0x276d05['hasComments']&&_0x4d8584['hasComments'])return!0x1;if(_0x276d05['hasComments']&&_0x4d8584['createdAt']<_0x276d05['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4d8584['hasComments']&&_0x276d05['createdAt']<_0x4d8584['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a5552[0x0],_0xe26598[0x0]))return!0x1;const _0x457137=Ut(_0x5a5552[0x0]['attributes'],['groupId','trackingSessionId']),_0x4e0c98=Ut(_0xe26598[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2d5d33(_0x457137,_0x4e0c98))return!0x1;if(_0x5a5552[0x0]['attributes']['groupId']==_0xe26598[0x0]['attributes']['groupId'])return!0x0;if(_0x5a5552[0x0]['attributes']['trackingSessionId']!==_0xe26598[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x5a5552['every'](_0x5de629=>_0xe26598['some'](_0x250ae0=>_0x5de629['getFirstRange']()['isEqual'](_0x250ae0['getFirstRange']())))&&_0xe26598['every'](_0x4cdd57=>_0x5a5552['some'](_0x101382=>_0x4cdd57['getFirstRange']()['isEqual'](_0x101382['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1b147b){const _0x2f85e1=Array['from'](_0x1b147b),_0x57c9f6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4b8ac6=_0x57c9f6['filter'](_0x4b7fd1=>!_0x1b147b['has'](_0x4b7fd1)),_0x208965=new Map(_0x2f85e1['map'](_0x1dd382=>[_0x1dd382,this['_suggestionFactory']['getSuggestionCallback'](_0x1dd382['type'],_0x1dd382['subType'],'join')])),_0x3190e5=new Map(_0x57c9f6['map'](_0x542da5=>[_0x542da5,_0x542da5['getRanges']()]));for(let _0x13621a=0x0;_0x13621a<_0x2f85e1['length'];_0x13621a++){if(_0x32cc87(this,_0x2f85e1[_0x13621a],_0x2f85e1,_0x13621a+0x1))return!0x0;}for(let _0x1a1767=0x0;_0x1a1767<_0x2f85e1['length'];_0x1a1767++){if(_0x32cc87(this,_0x2f85e1[_0x1a1767],_0x4b8ac6,0x0))return!0x0;}return!0x1;function _0x32cc87(_0x25a2d9,_0x184d31,_0x2697db,_0x130e51){for(let _0x3fe659=_0x130e51;_0x3fe659<_0x2697db['length'];_0x3fe659++){const _0x3a6c43=_0x2697db[_0x3fe659];if(_0x3a6c43['type']!==_0x184d31['type']||_0x3a6c43['author']['id']!==_0x184d31['author']['id']||_0x3a6c43['subType']!==_0x184d31['subType'])continue;if(!Wt(_0x184d31,_0x3a6c43))continue;if('attribute'==_0x184d31['type']&&_0x184d31['data']['oldValue']!=_0x3a6c43['data']['oldValue'])continue;if('attribute'==_0x184d31['type']&&_0x25a2d9['_isBlockAttribute'](_0x184d31['data']['key']))continue;if('formatBlock'==_0x184d31['type']){const _0x11dcdc=_0x25a2d9['editor']['model'],_0x38df69=_0x184d31['getContainedElement']();if(_0x38df69&&(_0x11dcdc['schema']['isObject'](_0x38df69)||_0x11dcdc['schema']['isLimit'](_0x38df69)))continue;}const _0x1ad324=_0x208965['get'](_0x184d31),_0x24acd6=_0x3190e5['get'](_0x184d31),_0x2ba347=_0x3190e5['get'](_0x3a6c43),_0x20d3ba=_0x184d31['commentThread']&&_0x184d31['commentThread']['length'],_0x299c1a=_0x3a6c43['commentThread']&&_0x3a6c43['commentThread']['length'];if(!_0x20d3ba&&_0x1ad324(_0x2ba347,_0x24acd6))return _0x25a2d9['_joinSuggestions'](_0x3a6c43,_0x184d31),_0x3190e5['delete'](_0x184d31),!0x0;if(!_0x299c1a&&_0x1ad324(_0x24acd6,_0x2ba347))return _0x25a2d9['_joinSuggestions'](_0x184d31,_0x3a6c43),_0x3190e5['delete'](_0x3a6c43),!0x0;}return!0x1;}}['_joinSuggestions'](_0x184599,_0x4e3327){if(_0x184599['isMultiRange']){for(const _0x23ad52 of _0x4e3327['getRanges']())_0x184599['addRange'](_0x23ad52);}else{const _0x333747=_0x4e3327['getFirstRange']()['end'];this['_setSuggestionRange'](_0x184599,this['_model']['createRange'](_0x184599['getFirstRange']()['start'],_0x333747));}_0x4e3327['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f4e7f,_0x2554b7,_0x59fe7e){const _0x2f8763=_0x5f4e7f['startsWith']('format')||_0x5f4e7f['startsWith']('attribute')?'FORMATTING':_0x5f4e7f['toUpperCase']();return o(this['editor']['locale'],_0x2554b7+'_'+_0x2f8763+'_SUGGESTION_ANNOUNCEMENT',_0x59fe7e);}['_initAriaMarkerChangeAnnouncements'](){const _0x52e255=this['editor'];if(!_0x52e255['ui'])return;const {ariaLiveAnnouncer:_0x4cf820}=_0x52e255['ui'];_0x329e8d(this['_model'],({left:_0x18b9a8,entered:_0x5dc295})=>{for(const _0x72a523 of _0x18b9a8){const {group:_0x51efe7,type:_0x1d0356}=this['_splitMarkerName'](_0x72a523['name']);if('suggestion'===_0x51efe7){_0x4cf820['announce'](this['_getMarkerAnnouncementText'](_0x1d0356,'LEAVE'));break;}}for(const _0x260203 of _0x5dc295){const {group:_0x2f0039,type:_0x2998ad}=this['_splitMarkerName'](_0x260203['name']);if('suggestion'===_0x2f0039){_0x4cf820['announce'](this['_getMarkerAnnouncementText'](_0x2998ad,'ENTER',_0x2a7e57(_0x2b8b03)));break;}}});}['_processAttributeChanges'](_0x238922){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf45e87=this['editor'],_0x38ac11=_0xf45e87['model']['document']['differ']['getChanges']();if(0x0==_0x38ac11['length'])return!0x1;const _0x5f09c4=[],_0x572a80=_0x38ac11['filter'](_0x1bf9a1=>'attribute'==_0x1bf9a1['type']),_0x25d323=_0x38ac11['filter'](_0x42282e=>'insert'==_0x42282e['type']&&'$text'!=_0x42282e['name']),_0x59d668=_0x38ac11['filter'](_0x33cd5e=>'remove'==_0x33cd5e['type']&&'$text'!=_0x33cd5e['name']);for(const _0x41677e of _0x572a80)_0x5f09c4['push']({'key':_0x41677e['attributeKey'],'newValue':_0x41677e['attributeNewValue'],'oldValue':_0x41677e['attributeOldValue'],'range':Ht(_0x41677e['range'],_0xf45e87['model'])});for(const _0x2f25e2 of _0x25d323){const _0x397773=_0x59d668['find'](_0x549f02=>_0x549f02['position']['isEqual'](_0x2f25e2['position']));_0x397773&&_0x5f09c4['push']({'key':m,'newValue':_0x2f25e2['name'],'oldValue':_0x397773['name'],'range':_0xf45e87['model']['createRangeOn'](_0x2f25e2['position']['nodeAfter'])});}return 0x0!=_0x5f09c4['length']&&this['_reduceExistingSuggestions'](_0x238922,_0x5f09c4);}['_processAttributeSuggestions'](_0x4d4d99){let _0x272508=!0x1;const _0x315592=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11d4a7=>_0x11d4a7['data']['newRange']&&_0x11d4a7['name']['startsWith']('suggestion:attribute:'));for(const _0x13a1f8 of _0x315592){const {subType:_0x3d2b30,id:_0x2cab41}=this['_splitMarkerName'](_0x13a1f8['name']),_0x49f00e=_0x3d2b30['split']('|')[0x0];for(const _0x227674 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x227674['id']!=_0x2cab41&&'attribute'==_0x227674['type']&&_0x227674['data']&&_0x227674['data']['key']==_0x49f00e&&_0x227674['getFirstRange']()['isIntersecting'](_0x13a1f8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x227674,_0x13a1f8['data']['newRange'],_0x4d4d99),_0x272508=!0x0);}return _0x272508;}['recordAttributeChanges'](_0x1f28fb){this['_recordAttributeSuggestions']=!0x0,_0x1f28fb();}['_isRegisteredAttribute'](_0x1e189b){const _0x54a632=this['_isBlockAttribute'](_0x1e189b),_0x3c7bea=this['_inlineAttributeKeys']['has'](_0x1e189b);return _0x54a632||_0x3c7bea;}['_reduceExistingSuggestions'](_0x1508ac,_0x5a272d){if(0x0==_0x5a272d['length'])return!0x1;let _0x325b94=!0x1;for(const _0x28092d of _0x5a272d){const _0x482a36=this['_findSuggestions'](_0x28092d['range'],'attribute')['filter'](_0x160084=>!_0x160084['meta']['isNextTo'])['map'](_0x2408eb=>_0x2408eb['suggestion']),_0x25a9e1=_0x439086({'newValue':_0x28092d['newValue']});_0x482a36['filter'](_0x154feb=>{const [_0x2bc338,_0x1b0ae6]=_0x154feb['subType']['split']('|');return _0x2bc338==_0x28092d['key']&&_0x1b0ae6!=_0x25a9e1;})['forEach'](_0x28ff52=>{this['_reduceSuggestionAttributeRange'](_0x28ff52,_0x28092d['range'],_0x1508ac),_0x325b94=!0x0;});}return _0x325b94;}['_reduceSuggestionAttributeRange'](_0x52be48,_0x4c3687,_0x35dfb0){const _0x58d475=_0x52be48['getFirstRange']()['getDifference'](_0x4c3687);0x0!==_0x58d475['length']?0x1!==_0x58d475['length']?this['_breakSuggestionMarker'](_0x52be48,_0x4c3687['start'],_0x4c3687['end']):this['_setSuggestionRange'](_0x52be48,_0x58d475[0x0]):_0x35dfb0['removeMarker'](_0x52be48['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x246151){this['_editor']=_0x246151,this['_model']=_0x246151['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x34c06a,_0x531efc,_0x1d820b,_0x2b8983,_0xd49397,_0x12ab4d,_0xc80e6){return new T(this['_model'],{'type':_0x34c06a,'subType':_0x531efc,'id':_0x1d820b,'originalSuggestionId':_0xc80e6,'author':_0x2b8983,'creator':_0x2b8983,'attributes':_0xd49397,'onAttributesChange':_0x12ab4d,'onAccept':(..._0x151df5)=>this['getSuggestionCallback'](_0x34c06a,_0x531efc,'accept')(..._0x151df5),'onDiscard':(..._0x1446a5)=>this['getSuggestionCallback'](_0x34c06a,_0x531efc,'discard')(..._0x1446a5)});}['registerCustomCallback'](_0x57dca9,_0x2e7390,_0x2279be,_0x33987d){const _0x4ada12=_0x57dca9+':'+_0x2e7390+':'+_0x2279be;this['_customCallbacks']['set'](_0x4ada12,_0x33987d);}['getSuggestionCallback'](_0xa287cf,_0xbf8c23,_0x2fda77){const _0x122b10=_0xa287cf+':'+_0xbf8c23+':'+_0x2fda77;return this['_customCallbacks']['get'](_0x122b10)||this['_defaultCallbacks']['get'](_0xa287cf+':'+_0x2fda77);}['_registerDefaultCallbacks'](){const _0x35ff04=()=>!0x1,_0xf4b41e=_0x3ff254=>{_0x3ff254['sort']((_0x21684e,_0x14015d)=>_0x21684e['start']['isBefore'](_0x14015d['start'])?0x1:-0x1),this['_model']['change'](_0x470aca=>{for(const _0x3ba744 of _0x3ff254){let _0x4c6ef6;_0x4c6ef6=_0x3ba744['end']['isAtEnd']&&_0x3ba744['end']['parent']==_0x3ba744['start']['nodeAfter']?_0x470aca['createSelection'](_0x3ba744['start']['nodeAfter'],'on'):_0x470aca['createSelection'](_0x3ba744),this['_model']['deleteContent'](_0x4c6ef6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x32c80a=(_0x7cf21,_0x534a97)=>{_0x534a97&&this['_model']['change'](_0x460c2a=>{const {commandName:_0x1c8f94,commandParams:_0x3c8c3e=[]}=_0x534a97,_0xca01a0=_0x7cf21['map'](_0x498fb2=>(Pt(_0x498fb2)&&(_0x498fb2=this['_model']['createRange'](_0x498fb2['end'])),_0x498fb2))['filter'](_0x3ef581=>'$graveyard'!==_0x3ef581['root']['rootName']);if(_0xca01a0['length']<0x1)return;const _0x181df3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2eeddc=>_0x5f13a0['fromRange'](_0x2eeddc));_0x460c2a['setSelection'](_0xca01a0);for(const _0x543247 of this['_editor']['commands']['commands']())_0x543247['refresh']();_0x3c8c3e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c8f94,..._0x3c8c3e);const _0x451f9e=_0x181df3['filter'](_0x59aa7e=>'$graveyard'!=_0x59aa7e['root']['rootName']);_0x451f9e['length']>0x0&&_0x460c2a['setSelection'](_0x451f9e);for(const _0x30599a of _0x181df3)_0x30599a['detach']();});},_0x365710=(_0x1abd68,_0x2dad98)=>0x1==_0x1abd68['length']&&0x1==_0x2dad98['length']&&_0x1abd68[0x0]['end']['isEqual'](_0x2dad98[0x0]['start']),_0x498020=(_0x268ffb,_0x2c8c8f,_0x3e8bd7,_0x2814bd)=>zt(_0x268ffb,_0x2c8c8f,_0x3e8bd7,_0x2814bd)?[_0x268ffb,_0x2c8c8f]:zt(_0x2c8c8f,_0x268ffb,_0x2814bd,_0x3e8bd7)?[_0x2c8c8f,_0x268ffb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35ff04),this['_defaultCallbacks']['set']('insertion:discard',_0xf4b41e),this['_defaultCallbacks']['set']('insertion:join',_0x365710),this['_defaultCallbacks']['set']('insertion:chain',_0x498020),this['_defaultCallbacks']['set']('deletion:accept',_0xf4b41e),this['_defaultCallbacks']['set']('deletion:discard',_0x35ff04),this['_defaultCallbacks']['set']('deletion:join',_0x365710),this['_defaultCallbacks']['set']('deletion:chain',_0x498020),this['_defaultCallbacks']['set']('formatInline:accept',_0x32c80a),this['_defaultCallbacks']['set']('formatInline:discard',_0x35ff04),this['_defaultCallbacks']['set']('formatInline:join',_0x365710),this['_defaultCallbacks']['set']('formatInline:chain',_0x35ff04),this['_defaultCallbacks']['set']('formatBlock:accept',_0x32c80a),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35ff04),this['_defaultCallbacks']['set']('formatBlock:join',_0x365710),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35ff04),this['_defaultCallbacks']['set']('attribute:accept',_0x35ff04),this['_defaultCallbacks']['set']('attribute:discard',(_0x113393,_0x25b037)=>{if(!_0x25b037)return;const _0x9ae59d=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2b4c0b=>{if(_0x25b037['key']==m)for(const _0x58f339 of _0x113393){const _0x13fe51=_0x58f339['start']['nodeAfter'],_0x300046=_0x25b037['oldValue'];_0x2b4c0b['rename'](_0x13fe51,_0x300046);}else{if(_0x9ae59d['_isBlockAttribute'](_0x25b037['key'])){for(const _0x4eb9c3 of _0x113393)void 0x0!==_0x25b037['oldValue']?_0x2b4c0b['setAttribute'](_0x25b037['key'],_0x25b037['oldValue'],_0x4eb9c3['start']['nodeAfter']):_0x2b4c0b['removeAttribute'](_0x25b037['key'],_0x4eb9c3['start']['nodeAfter']);}else{for(const _0x2a406c of _0x113393)_0x25b037['oldValue']?_0x2b4c0b['setAttribute'](_0x25b037['key'],_0x25b037['oldValue'],_0x2a406c):_0x2b4c0b['removeAttribute'](_0x25b037['key'],_0x2a406c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x365710);}}function Ft(_0x287140,_0x29997a,_0x4b05d7){for(const _0x38564a of _0x29997a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x38564a['root']==_0x38564a)return!0x1;if(!_0x4b05d7['containsItem'](_0x38564a))return!0x1;if(_0x287140['isObject'](_0x38564a)||_0x287140['isLimit'](_0x38564a))return!0x0;}return!0x1;}function Pt(_0x3f1ae6){return _0x3f1ae6['end']['parent']==_0x3f1ae6['start']['nodeAfter']&&_0x3f1ae6['end']['isAtStart'];}function Gt(_0x5940cb,_0x72aeff,_0x596f6a,_0x4b8ae1){const _0x240ec0=_0x17917d=>!_0x17917d['item']['is']('$textProxy')&&!_0x4b8ae1['isObject'](_0x17917d['item']),_0x3ee36b=_0x5940cb['start']['getLastMatchingPosition'](_0x240ec0),_0x4a432a=_0x5940cb['end']['getLastMatchingPosition'](_0x240ec0,{'direction':'backward'});return(!_0x5940cb['start']['isEqual'](_0x3ee36b)||!_0x5940cb['end']['isEqual'](_0x4a432a))&&(_0x3ee36b['isBefore'](_0x4a432a)?_0x596f6a['updateMarker'](_0x72aeff,{'range':_0x596f6a['createRange'](_0x3ee36b,_0x4a432a)}):_0x596f6a['removeMarker'](_0x72aeff),!0x0);}function Lt(_0x2bda3d){return _0x439086(_0x2bda3d);}function Jt(_0x1fd522){const _0x3e6cd8=_0x1fd522['start']['nodeAfter'];return _0x3e6cd8&&_0x3e6cd8['is']('element');}function Kt(_0x2b3686){return!Pt(_0x2b3686)&&!function(_0x258d04){return _0x258d04['start']['parent']==_0x258d04['end']['nodeBefore']&&_0x258d04['start']['isAtEnd'];}(_0x2b3686);}function Ht(_0x5db4ec,_0x3704ab){return null==_0x5db4ec['end']['nodeBefore']&&_0x5db4ec['end']['parent']==_0x5db4ec['start']['nodeAfter']?qt(_0x5db4ec['start']['nodeAfter'],_0x3704ab):_0x5db4ec;}function qt(_0xa6db3b,_0x28c308){const _0x220e5f=_0x28c308['schema']['isObject'](_0xa6db3b)||_0x28c308['schema']['isSelectable'](_0xa6db3b);return _0x28c308['createRange'](_0x28c308['createPositionAt'](_0xa6db3b,'before'),_0x220e5f?_0x28c308['createPositionAfter'](_0xa6db3b):_0x28c308['createPositionAt'](_0xa6db3b,'end'));}function zt(_0xb46157,_0xbba11d,_0x50f526,_0x20d1f3){return!!Wt(_0xb46157,_0xbba11d)&&_0x50f526['end']['isEqual'](_0x20d1f3['start']);}function Wt(_0x3450b3,_0x11541e){if(!_0x3450b3['_isDataLoaded']||!_0x11541e['_isDataLoaded'])return!0x1;const _0x4e1ed8=new Set(Object['keys'](_0x3450b3['attributes'])),_0x1d89b0=new Set(Object['keys'](_0x11541e['attributes']));if(_0x4e1ed8['delete']('groupId'),_0x1d89b0['delete']('groupId'),0x0==_0x4e1ed8['size']&&0x0==_0x1d89b0['size'])return!0x0;if(_0x4e1ed8['size']!=_0x1d89b0['size'])return!0x1;const _0x3bbdb0={..._0x3450b3['attributes']},_0x1553b5={..._0x11541e['attributes']};return delete _0x3bbdb0['groupId'],delete _0x1553b5['groupId'],JSON['stringify'](_0x3bbdb0)==JSON['stringify'](_0x1553b5);}function Qt(_0x174b40,_0x1f181b){const _0x5d6d2c=Xt(_0x174b40['attributes']),_0x5101b5=Xt(_0x1f181b);if(!_0x174b40['_isDataLoaded'])return!0x1;for(const _0x2dbf47 of Object['keys'](_0x5101b5))if(!_0x2d5d33(_0x5d6d2c[_0x2dbf47],_0x5101b5[_0x2dbf47]))return!0x1;return!0x0;}function Xt(_0x7e96fb){const _0x2ac2fe=Object['assign']({},_0x7e96fb);return delete _0x2ac2fe['skipNestingCheck'],delete _0x2ac2fe['tablePasteChainId'],_0x2ac2fe;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x1a2a84(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2e1aac,_0x37515e,_0x69b513,_0x149290){super(),this['model']=_0x37515e,this['view']=_0x69b513,this['commentThreadController']=_0x149290,this['_editor']=_0x2e1aac,this['_acceptCommand']=_0x2e1aac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2e1aac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4d81b5,_0x1288ec)=>_0x4d81b5||_0x1288ec),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2c2481=>_0x2c2481&&this['_editor']['model']['canEditAt'](_0x37515e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d53c0=>_0x5d53c0&&this['_editor']['model']['canEditAt'](_0x37515e['getRanges']())),this['_pendingAction']=null,_0x69b513['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x69b513,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x69b513,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x69b513,'change:isDirty',()=>{_0x69b513['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 _0x130306=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x130306);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x403f1d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3bd6b8,_0x5dc0ec,_0x55f813,_0x4d4c5e){super(_0x3bd6b8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x462936(_0x3bd6b8,o(_0x3bd6b8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5dc0ec['authoredAt']),this['bind']('authoredAt')['to'](_0x5dc0ec),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',_0x5dc0ec,'authoredAt',this,'descriptionParts',(_0x1a7df,_0x351ca2,_0x42db73)=>{const _0x2a3284=_0x42db73['map'](_0x1e806d=>ls(_0x1e806d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a7df-0x1,_0x5dc0ec['author']['name'],_0x351ca2?_0x4d4c5e['formatDateTime'](_0x351ca2):'',new DOMParser()['parseFromString'](_0x2a3284,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3809fb(),this['focusTracker']=new _0x4ffe1a(),this['keystrokes']=new _0xa7055e(),this['focusCycler']=new _0x1a3c08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5cf94a=>_0x5cf94a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5dc0ec,this['_localUser']=_0x55f813,this['_config']=_0x4d4c5e,_0x4d4c5e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1430e2(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xef6f07}=this['_config'];this['commentsListView']=new _0xef6f07(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',_0x490d19=>_0x490d19+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3df79c,_0x4c22df)=>_0x3df79c||!!_0x4c22df);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xf984a7}=this['_config'],_0x87c821=new _0xf984a7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3211b3=_0x87c821['commentInputView'];return _0x87c821['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3211b3,'value',(_0x2fd870,_0x4161da,_0x35dc78)=>!!_0x35dc78||_0x2fd870&&!_0x4161da),_0x3211b3['on']('submit',(_0x331711,_0x4f7110)=>{this['fire']('addComment',_0x4f7110),_0x3211b3['editor']['setData']('');}),_0x3211b3['on']('cancel',()=>this['focus']()),_0x3211b3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x87c821;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x374ed6,_0x36cfd5,_0xb7d170,_0x5b90dc){super(_0x374ed6,_0x36cfd5,_0xb7d170,_0x5b90dc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x256248=>_0x256248&&_0x256248[0x0]?_0x256248[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5303b2,_0x495c5a)=>{let _0x283ead='';for(const _0x476350 of _0x5303b2)_0x283ead+='<p>'+ls(_0x476350['content'],_0x476350['color'])+'</p>';return _0x495c5a?_0x283ead:_0x2b3f95(_0x283ead,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5b90dc['SuggestionView'](_0x374ed6,_0x36cfd5,{'formatDateTime':_0x5b90dc['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 _0x5c3b10=this['bindTemplate'],_0x3ebcff=[this['suggestionView']];return this['commentsListView']&&_0x3ebcff['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3ebcff['push'](this['commentThreadInputView']),_0x3ebcff['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5c3b10['if']('isActive','ck-suggestion-wrapper--active'),_0x5c3b10['to']('type',_0x5c6fdb=>'ck-suggestion-'+_0x5c6fdb),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':_0x5c3b10['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3ebcff};}['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 _0x403f1d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x14033b,_0x51e9f9,_0x5e5265){super(_0x14033b),this['_model']=_0x51e9f9,this['_config']=_0x5e5265,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51e9f9),this['acceptButton']=this['_createButton'](o(_0x14033b,'Accept\x20suggestion'),_0xcc66c3,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x14033b,'Discard\x20suggestion'),_0x4efbb1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5db3b3(_0x14033b,_0x51e9f9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3809fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ffe1a(),this['keystrokes']=new _0xa7055e(),this['focusCycler']=new _0x1a3c08({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x438365=>_0x438365['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1cdcab=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1cdcab['innerHTML']=this['description'],this['on']('change:description',(_0x150a5d,_0x9d4477,_0x59498a)=>{_0x1cdcab['innerHTML']=_0x59498a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x33d422=this['bindTemplate'],_0xebc2d6=[{'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':_0x33d422['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x33d422['to']('authoredAt',_0x2587e9=>this['_config']['formatDateTime'](_0x2587e9))}]}]},{'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']&&_0xebc2d6['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':_0xebc2d6}]};}['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'](_0x58fc79,_0x5b5f31,_0x18e31,_0x1be2bc,_0x417a99){const _0x7a7a6f=new _0x43d490(this['locale']);return _0x7a7a6f['set']({'label':_0x58fc79,'icon':_0x5b5f31,'tooltip':!0x0,'tooltipPosition':_0x417a99}),_0x7a7a6f['extendTemplate']({'attributes':{'class':_0x18e31}}),_0x7a7a6f['on']('execute',()=>{this['fire'](_0x1be2bc,this['_model']['id']);}),_0x7a7a6f;}['_setupKeyboardNavigation'](){const _0x46edd3=this['element'];this['keystrokes']['listenTo'](_0x46edd3);for(const _0xf85c80 of this['focusables'])this['focusTracker']['add'](_0xf85c80['element']),this['keystrokes']['listenTo'](_0xf85c80['element']);this['keystrokes']['set']('enter',(_0x4a8613,_0xd3c8ce)=>{_0x46edd3===_0x4a8613['target']&&(this['focusCycler']['focusFirst'](),_0xd3c8ce());}),this['keystrokes']['set']('esc',(_0x2a8c1c,_0x403b06)=>{_0x46edd3!==_0x2a8c1c['target']&&(this['focus'](),_0x403b06());});}}class u extends _0x292012{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x28ae71,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3035f8){super(_0x3035f8),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5ad03d=this['editor']['config'];_0x5ad03d['define']('trackChanges.SuggestionThreadView',fe),_0x5ad03d['define']('trackChanges.SuggestionView',we),_0x5ad03d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5ad03d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x50695a,_0x3fc6a2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x180902,_0x1fa230]of this['_handleControllerBuffer']){const _0x3bfae9=this['_suggestionToController']['has'](_0x180902);_0x3bfae9||_0x1fa230?_0x3bfae9&&_0x1fa230&&this['_destroyController'](_0x180902):this['_initializeController'](_0x180902);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x50695a,_0x3fc6a2);}['init'](){const _0x4b17cd=this['editor'],_0x1393fb=_0x4b17cd['plugins']['get']('TrackChangesEditing'),_0x436e7b=_0x4b17cd['plugins']['get']('Annotations'),_0x801cbd=_0x4b17cd['plugins']['get']('EditorAnnotations'),_0x3e87d4=_0x4b17cd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x801cbd['addSourceCollector'](()=>{const _0xee2f3b=[];for(const [_0x45c358,_0x508a0b]of Array['from'](this['_suggestionToController'])){const _0x21124c=_0x45c358['getAllAdjacentSuggestions'](),_0x12c417=[];for(const _0x23f6b1 of _0x21124c){if(!_0x23f6b1['isInContent'])continue;if(_0x23f6b1['isMultiRange']){_0x12c417['push'](..._0x23f6b1['getRanges']());continue;}const _0x280124=_0x23f6b1['getFirstRange']();if(_0x12c417['length']>0x0){const _0x51b133=_0x12c417[0x0]['getJoined'](_0x280124);if(_0x51b133){_0x12c417[0x0]=_0x51b133;continue;}}_0x12c417['push'](_0x280124);}_0xee2f3b['push']([_0x508a0b['view'],_0x12c417]);}return _0xee2f3b;}),this['listenTo'](_0x1393fb,'suggestionLoaded',(_0x130599,_0x482a2f)=>{this['listenTo'](_0x482a2f,'change:previous',(_0x4cc605,_0x28cf56,_0x4a8073,_0x4cc6ab)=>{_0x482a2f['isInContent']&&(null==_0x4a8073?(this['_updateController'](_0x4cc6ab['head']),this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x1)):(this['_updateController'](_0x4a8073['head']),null==_0x4cc6ab&&this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x0)));}),null!==_0x482a2f['previous']?this['_updateController'](_0x482a2f['head']):this['_handleSuggestionControllerDelayed'](_0x482a2f,!0x1);}),this['listenTo'](_0x1393fb,'suggestionUnloaded',(_0x21e3cd,_0x301d0f,_0x3cb221)=>{this['stopListening'](_0x301d0f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x301d0f),this['_suggestionToController']['has'](_0x301d0f)&&this['_destroyController'](_0x301d0f),_0x3cb221&&this['_updateController'](_0x3cb221['head']);}),this['listenTo'](_0x1393fb,'suggestionChanged',(_0x43353e,_0x1398c4)=>{this['_updateController'](_0x1398c4);}),this['listenTo'](_0x436e7b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3e87d4,'addComment',(_0x205380,{threadId:_0x1e4790,isFromAdapter:_0x18a386})=>{if(_0x18a386||!_0x1393fb['hasSuggestion'](_0x1e4790))return;const _0x53aefe=_0x1393fb['getSuggestion'](_0x1e4790);this['_suggestionToController']['get'](_0x53aefe)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xf72302=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x52ae44;for(const _0x4c9ae5 in _0xf72302){const _0x5d26f6=_0x4c9ae5,_0x274cb0=_0xf72302[_0x5d26f6];if('trackChangesLicenseKeyValid'==_0x274cb0||'trackChangesLicenseKeyInvalid'==_0x274cb0||'trackChangesLicenseKeyExpired'==_0x274cb0||'trackChangesLicenseKeyDomainLimit'==_0x274cb0||'trackChangesLicenseKeyNotAllowed'==_0x274cb0||'trackChangesLicenseKeyEvaluationLimit'==_0x274cb0||'trackChangesLicenseKeyTrialLimit'==_0x274cb0||'trackChangesLicenseKeyUsageLimit'==_0x274cb0){delete _0xf72302[_0x5d26f6],_0x52ae44=_0x274cb0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x52ae44&&_0xf72302['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x52ae44&&_0xf72302['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x52ae44&&_0xf72302['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x52ae44&&_0xf72302['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x1089fd){const _0x3de29a=this['_suggestionToController']['get'](_0x1089fd);if(!_0x3de29a)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3de29a['view'])||null;}['getSuggestionForAnnotation'](_0x3f53c1){const _0x39a361=this['_viewToController']['get'](_0x3f53c1['innerView']);return _0x39a361?_0x39a361['model']:null;}['_refreshActiveMarkers'](){const _0x29c3a0=this['editor']['plugins']['get']('Annotations'),_0x26ce18=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d91a=Array['from'](_0x29c3a0['activeAnnotations'],_0x98662d=>_0x98662d['innerView'])['filter'](_0x559822=>this['_viewToController']['has'](_0x559822)),_0x52673d=[];for(const _0x24d488 of _0x39d91a){const _0x48915f=this['_viewToController']['get'](_0x24d488)['model']['getAllAdjacentSuggestions']();_0x52673d['push'](..._0x48915f['reduce']((_0x4811cb,_0x29d13f)=>[..._0x4811cb,..._0x29d13f['getMarkerNames']()],[]));}_0x26ce18['activeMarkers']=_0x52673d;}['_addUIComponentsToFactory'](){const _0x284692=this['editor'],_0x247092=_0x284692['locale'],_0x24ae87=o(_0x247092,'Track\x20changes'),_0x483e0f=new _0x35dfc3([{'type':'switchbutton','model':new _0x22563d({'withText':!0x0,'isToggleable':!0x0,'label':_0x24ae87,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x284692['plugins']['has']('TrackChangesPreview')&&_0x483e0f['addMany']([{'type':'separator'},{'type':'button','model':new _0x22563d({'withText':!0x0,'label':o(_0x247092,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x51ce37 of _0x483e0f)if(ke(_0x51ce37)){const _0x4a577d=_0x284692['commands']['get'](_0x51ce37['model']['commandName']);_0x51ce37['model']['bind']('isOn','isEnabled')['to'](_0x4a577d,'value','isEnabled');}_0x284692['ui']['componentFactory']['add']('trackChanges',_0x560d74=>this['_createToolbarButton'](_0x560d74,_0x483e0f,_0x24ae87)),_0x284692['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1fcc14=>this['_createMenuBarMenu'](_0x1fcc14,_0x483e0f,_0x24ae87));}['_createToolbarButton'](_0xb464f8,_0x2c8de7,_0x76d98d){const _0x1ded9e=_0x58bd4d(_0xb464f8,_0xabaeb3),_0x4846c7=this['editor']['commands']['get']('trackChanges');_0x1ded9e['buttonView']['set']({'tooltip':_0x76d98d,'label':_0x76d98d,'icon':_0x5e888c}),_0x1ded9e['buttonView']['bind']('isOn')['to'](_0x4846c7,'value'),_0x1ded9e['buttonView']['on']('execute',()=>{_0x4846c7['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bfc48(_0x1ded9e,_0x2c8de7,{'role':'menu'});const _0x2127bc=[];for(const _0x39fbd1 of _0x2c8de7)ke(_0x39fbd1)&&_0x2127bc['push'](this['editor']['commands']['get'](_0x39fbd1['model']['commandName']));const _0xe2411=_0x1ded9e['buttonView'];return _0xe2411['actionView']['unbind']('isEnabled'),_0xe2411['arrowView']['unbind']('isEnabled'),_0xe2411['actionView']['bind']('isEnabled')['to'](_0x4846c7,'isEnabled'),_0xe2411['arrowView']['bind']('isEnabled')['toMany'](_0x2127bc,'isEnabled',(..._0xf2d120)=>_0xf2d120['some'](_0x1128ac=>_0x1128ac)),_0x1ded9e['on']('execute',_0x1b27c0=>{this['editor']['execute'](_0x1b27c0['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ded9e;}['_createMenuBarMenu'](_0x215a42,_0x4fbdda,_0x1cb0d9){const _0xf96031=new _0xbcb731(_0x215a42),_0x383b6=this['editor']['commands']['get']('trackChanges');_0xf96031['buttonView']['set']({'label':_0x1cb0d9,'icon':_0x5e888c});const _0x2401f5=new _0x323793(_0x215a42);for(const _0x4bad19 of _0x4fbdda){if('separator'==_0x4bad19['type']){_0x2401f5['items']['add'](new _0x220548(_0x215a42));continue;}const _0x20dae9=new _0x9faef3(_0x215a42,_0xf96031),_0x258c31=new _0x6dd469(_0x215a42),_0x229de1=_0x4bad19['model'];_0x258c31['bind'](...Object['keys'](_0x229de1))['to'](_0x229de1),_0x258c31['delegate']('execute')['to'](_0xf96031),_0x258c31['on']('execute',()=>{this['editor']['execute'](_0x229de1['commandName']),this['editor']['editing']['view']['focus']();}),_0x20dae9['children']['add'](_0x258c31),_0x2401f5['items']['add'](_0x20dae9);}return _0xf96031['bind']('isEnabled')['to'](_0x383b6,'isEnabled'),_0xf96031['panelView']['children']['add'](_0x2401f5),_0xf96031;}['_initializeController'](_0x15d821){const _0x176ddb=this['editor'],_0x35eb8b=_0x176ddb['config'],_0x4fc2f2=_0x176ddb['plugins']['get']('Annotations'),_0x2874ba=_0x176ddb['plugins']['get']('CommentsRepository'),_0x52d074=_0x176ddb['plugins']['get']('EditorAnnotations'),_0x87a7a3=_0x176ddb['plugins']['get'](_0x28ae71)['me'],_0x55a9a1=_0x35eb8b['get']('trackChanges')['SuggestionThreadView'],_0x11af59=_0x35eb8b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18bc2d,CommentThreadInputView:_0x589dfd}=_0x176ddb['plugins']['get']('CommentsUI');let _0x3ace4b,_0x399347,_0x544dbe;this['_annotationViews']['has'](_0x15d821['id'])?(_0x399347=this['_annotationViews']['get'](_0x15d821['id']),_0x3ace4b=_0x399347['mainView']):(_0x3ace4b=new _0x55a9a1(_0x176ddb['locale'],_0x15d821,_0x87a7a3,{'disableComments':this['_disableComments'],'editorConfig':{..._0x35eb8b['get']('comments.editorConfig'),'licenseKey':_0x35eb8b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x35eb8b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x35eb8b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x35eb8b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x470902(_0x35eb8b['get']('locale'),_0x176ddb['locale']),'CommentView':_0x35eb8b['get']('comments')['CommentView'],'CommentsListView':_0x18bc2d,'CommentThreadInputView':_0x589dfd,'SuggestionView':_0x11af59}),_0x3ace4b['suggestionView']['acceptButton']['on']('execute',()=>{_0x176ddb['editing']['view']['focus']();}),_0x3ace4b['suggestionView']['discardButton']['on']('execute',()=>{_0x176ddb['editing']['view']['focus']();}),_0x399347=_0x4fc2f2['createAnnotationView'](this['editor']['locale'],_0x3ace4b),_0x399347['bind']('isDirty')['to'](_0x3ace4b,'isDirty'),_0x399347['bind']('length')['to'](_0x3ace4b),_0x399347['bind']('type')['to'](_0x3ace4b,'type',_0x2ca128=>'suggestion-'+_0x2ca128),_0x3ace4b['on']('escape',()=>{_0x544dbe['fire']('escape');}),this['_annotationViews']['set'](_0x15d821['id'],_0x399347));const _0x8c64cf=_0x2874ba['createCommentThreadController'](_0x15d821['commentThread'],_0x3ace4b),_0x1b3784=new pe(_0x176ddb,_0x15d821,_0x3ace4b,_0x8c64cf),_0x2d34ec=_0x15d821['getAllAdjacentSuggestions']()['filter'](_0x2a5272=>_0x2a5272['isInContent']);_0x3ace4b['descriptionParts']=_0x176ddb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2d34ec),this['_suggestionToController']['set'](_0x15d821,_0x1b3784),this['_viewToController']['set'](_0x3ace4b,_0x1b3784),_0x544dbe=_0x4fc2f2['createAnnotation']({'view':_0x399347,'target':()=>{const _0x5a4ea2=[],_0x2ad59d=_0x15d821['getAllAdjacentSuggestions']()['filter'](_0xe75691=>_0xe75691['isInContent']);for(const _0xcfea7e of _0x2ad59d)_0x5a4ea2['push'](..._0xcfea7e['getMarkers']());return _0x232dce(_0x176ddb['editing'],_0x5a4ea2);},'type':()=>'suggestion-'+_0x1b3784['view']['type']}),_0x2874ba['_bindAnnotationToEditors'](_0x3ace4b,_0x544dbe),_0x4fc2f2['add'](_0x544dbe),_0x52d074['registerAnnotation'](_0x544dbe);}['_destroyController'](_0x34b42d){const _0x10c885=this['editor']['plugins']['get']('CommentsRepository'),_0x42f78b=this['editor']['plugins']['get']('Annotations'),_0x2e70f7=this['_suggestionToController']['get'](_0x34b42d),_0x5dde7e=_0x2e70f7['view'],_0xd178c=_0x42f78b['getByInnerView'](_0x5dde7e);_0x10c885['_unbindEditors'](_0x5dde7e),_0xd178c&&_0x42f78b['remove'](_0xd178c),this['_suggestionToController']['delete'](_0x34b42d),this['_viewToController']['delete'](_0x5dde7e),_0x2e70f7['destroy']();}['_updateController'](_0x41a9c1){if(!_0x41a9c1['isInContent']||!this['_suggestionToController']['has'](_0x41a9c1))return;const _0x5f1d8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15280b=this['_suggestionToController']['get'](_0x41a9c1),_0x3b624f=_0x41a9c1['getAllAdjacentSuggestions']();_0x15280b['view']['descriptionParts']=_0x5f1d8a['descriptionFactory']['getDescriptions'](_0x3b624f);}['destroy'](){for(const _0x45332f of this['_suggestionToController']['keys']())this['_destroyController'](_0x45332f);for(const _0x5ea5e6 of this['_annotationViews']['values']())_0x5ea5e6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2532c0){return'model'in _0x2532c0;}class Fe extends _0x292012{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xba8169){this['editor']['plugins']['get'](d)['adapter']=_0xba8169;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x34d97f){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x34d97f);}['getSuggestions']({skipNotAttached:_0x5742ad=!0x1,toJSON:_0x4c2914=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5742ad,'toJSON':_0x4c2914});}['getSuggestion'](_0x105251){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x105251);}}const p=['Pagination'];class re extends _0x292012{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x535a65=this['editor'];if(_0x535a65['config']['define']('trackChangesData.editorCreator',_0x3c191d=>{const _0x5c9913=_0x535a65['model']['document']['getRootNames']()['reduce']((_0x45c87a,_0xa5246e)=>(_0x45c87a[_0xa5246e]='',_0x45c87a),{});return _0x535a65['constructor']['create'](_0x5c9913,_0x3c191d);}),'function'!=typeof _0x535a65['config']['get']('trackChangesData')['editorCreator'])throw new _0x223d51('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x42011c){return P(this['editor'],!0x0,_0x42011c);}['getDataWithDiscardedSuggestions'](_0x21fedd){return P(this['editor'],!0x1,_0x21fedd);}}class Ge extends _0x292012{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5aa7f3){function _0x4c7436(_0x1d0ec6){return _0x1d0ec6['map'](_0x18581a=>String['fromCharCode'](_0x18581a))['join']('');}super(_0x5aa7f3),this['result']='end',_0x5aa7f3[_0x4c7436([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4c7436([0x76,0x69,0x65,0x77])][_0x4c7436([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4c7436([0x61,0x75,0x74,0x6f]),_0x5aa7f3[_0x4c7436([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4c7436([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4c7436([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4c7436([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4c7436([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 $e(_0x3b4d4b){return void 0x0!==_0x3b4d4b['getRootsAttributes'];}async function P(_0x386aef,_0x59342d,_0x128d40){const _0xed814d=_0x107ef5(_0x386aef,p);_0xed814d['plugins']['push'](d,Ge),_0xed814d['rootsAttributes']=$e(_0x386aef)?_0x386aef['getRootsAttributes']():void 0x0;const _0x3723a8=document['createDocumentFragment'](),_0x546039=_0x386aef['config']['get']('trackChangesData')['editorCreator'],_0x4c5fc6=await _0x546039(_0xed814d,()=>function(_0x26e7d8){const _0x94756f=document['createElement']('div');return _0x26e7d8['appendChild'](_0x94756f),_0x94756f;}(_0x3723a8));!function(_0x42799a,_0x3015ec){const _0x53dd71=_0x42799a['model']['document']['getRootNames']()['reduce']((_0x1f7d56,_0xfcfa52)=>(_0x1f7d56[_0xfcfa52]=_0x42799a['data']['get']({'rootName':_0xfcfa52}),_0x1f7d56),{}),_0x35e4cd=_0x42799a['plugins']['get']('Users')['users']['map'](_0x2680e2=>({'id':_0x2680e2['id'],'name':_0x2680e2['name']})),_0x4f15b6=_0x42799a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b66d3=_0x42799a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3bbea0=_0x3015ec['plugins']['get']('Users'),_0x34fb41=_0x3015ec['plugins']['get']('TrackChangesEditing'),_0x19b4aa=_0x3015ec['plugins']['get']('CommentsRepository');for(const _0x29e17f of _0x19b4aa['getCommentThreads']())_0x29e17f['remove']();for(const _0x41078b of _0x35e4cd)_0x3bbea0['getUser'](_0x41078b['id'])||_0x3bbea0['addUser'](_0x41078b);_0x3bbea0['me']||_0x3bbea0['useAnonymousUser']();for(const _0xf91bb5 of _0x3b66d3)_0x19b4aa['addCommentThread'](_0xf91bb5);for(const _0x15ac03 of _0x4f15b6)_0x34fb41['addSuggestionData'](_0x15ac03);_0x3015ec['data']['set'](_0x53dd71);}(_0x386aef,_0x4c5fc6),_0x4c5fc6['execute'](_0x59342d?'acceptAllSuggestions':'discardAllSuggestions');const _0xfc6f0a=$e(_0x4c5fc6)?_0x4c5fc6['getFullData'](_0x128d40):_0x4c5fc6['data']['get'](_0x128d40);return await _0x4c5fc6['destroy'](),_0xfc6f0a;}class Me extends _0x403f1d{['options'];constructor(_0x196935,_0x44ed1b){super(_0x196935),this['options']=_0x44ed1b,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'](_0x23c5c0,_0x39e61b){if(!this['element'])return;const _0xd99db4=[];for(const [_0x36effb,_0x134b69]of _0x23c5c0){const _0x2caa80=document['createElement']('div');_0x2caa80['setAttribute']('data-ck-root-name',_0x36effb),_0x2caa80['className']=_0x134b69['classes']+'\x20ck-track-changes-preview__root-container',_0x2caa80['innerHTML']=_0x134b69['content'],_0xd99db4['push'](_0x2caa80);}_0x39e61b(this['element'],_0xd99db4),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x2f1852{constructor(_0x23660f){super(_0x23660f),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xc78422=this['editor'],_0x5c3581=_0xc78422['locale'],_0x105aa8=_0xc78422['plugins']['get']('Dialog');let _0x1f0160;const _0xfcd9f7=function(_0x1e8ea6){const _0x2efe64={};if('editables'in _0x1e8ea6['ui']['view']){for(const [_0x27431c,_0x3238da]of Object['entries'](_0x1e8ea6['ui']['view']['editables']))_0x2efe64[_0x27431c]=_0x3238da['element'];}else _0x2efe64[_0x1e8ea6['model']['document']['getRootNames']()[0x0]]=_0x1e8ea6['ui']['view']['editable']['element'];return _0x2efe64;}(_0xc78422),_0x51d223=function(_0x56c8a4){let _0x368508=0x0;for(const _0x4be71d of Object['values'](_0x56c8a4))_0x368508=Math['max'](_0x368508,_0x4be71d['getBoundingClientRect']()['width']);let _0x1a2b77=0x0;for(const _0x56bb17 of Object['values'](_0x56c8a4))_0x1a2b77+=_0x56bb17['getBoundingClientRect']()['height'];const _0x10683b=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xb9e777=Math['min'](_0x1a2b77,_0x10683b);return{'width':_0x368508,'height':_0xb9e777};}(_0xfcd9f7);_0x105aa8['show']({'id':'finalContentPreview','title':o(_0x5c3581,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c3581,{'dialogRects':_0x51d223}),'onHide':()=>{_0x1f0160['detachFromDom']();},'onShow':()=>{_0xc78422['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x3199af=>{const _0x4984b8=this['_standarizeRootsData'](_0x3199af,_0xc78422,_0xfcd9f7);_0x105aa8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4984b8,_0xc78422['config']['get']('trackChanges.preview.renderFunction'));}),_0x1f0160=new _0x841c7e(_0x5c3581,[_0x105aa8['view']]),_0x1f0160['attachToDom'](),_0x1f0160['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xc78422['once']('destroy',()=>{_0x1f0160['detachFromDom']();});const _0x310b98=_0x105aa8['view']['headerView']['class'];_0x105aa8['view']['headerView']['class']=_0x310b98?_0x310b98+'\x20ck-reset_all':'ck-reset_all',_0x105aa8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x105aa8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5822ea=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x520fbe=_0x5822ea['previewMode'],_0x1896d8={};if('$labels'===_0x520fbe){for(const _0x5eef72 of _0x5822ea['getMergeFieldsIds']())_0x1896d8[_0x5eef72]=_0x5822ea['getLabel'](_0x5eef72)||_0x5eef72;}else{const _0x156dc3='$defaultValues'===_0x520fbe?_0x5822ea['getDefaultValues']():_0x5822ea['getDataSetValues'](_0x520fbe,!0x0);for(const _0x3e7fda of Object['entries'](_0x156dc3)){const [_0x345cb5,_0xbe7ca8]=_0x3e7fda;_0x1896d8[_0x345cb5]=null!==_0xbe7ca8?_0xbe7ca8:_0x5822ea['getLabel'](_0x345cb5)||_0x345cb5;}}return{'mergeFieldsData':_0x1896d8};}['_standarizeRootsData'](_0x32cc40,_0x455359,_0x38ee54){let _0x53d78e;if('string'==typeof _0x32cc40){const _0x4dd62b=_0x455359['model']['document']['getRootNames']()[0x0];_0x53d78e={[_0x4dd62b]:_0x32cc40};}else _0x53d78e=_0x32cc40;const _0x1a6107=this['_fixMediaEmbeds'](_0x53d78e,_0x455359),_0x214e51=function(_0x13bece,_0x21b6bf){for(const [_0x3c8bf3,_0x4e8326]of _0x13bece)_0x4e8326['classes']=_0x21b6bf[_0x3c8bf3]['classList']['value']['replace']('ck-focused','');return _0x13bece;}(this['_sortRoots'](_0x455359)['reduce']((_0x5a65ff,_0x48b39e)=>(_0x5a65ff['push']([_0x48b39e,{'content':_0x1a6107[_0x48b39e],'classes':''}]),_0x5a65ff),[]),_0x38ee54);return _0x214e51;}['_fixMediaEmbeds'](_0x6525e,_0x1f795a){if(!_0x1f795a['plugins']['has']('MediaEmbedEditing'))return _0x6525e;const _0x123188=_0x1f795a['plugins']['get']('MediaEmbedEditing');for(const [_0x570666,_0x1ba2bf]of Object['entries'](_0x6525e)){const _0x3a70fe=document['createElement']('div');_0x3a70fe['innerHTML']=_0x1ba2bf,(_0x3a70fe['querySelectorAll']('figure.media')['forEach'](_0x44f058=>{const _0x212f32=_0x44f058['querySelector']('oembed');if(_0x212f32){const _0x2e94aa=_0x212f32['getAttribute']('url');if(_0x2e94aa){const _0x4db129=_0x123188['registry']['getMediaViewElement'](new _0x30e963(_0x1f795a['editing']['view']['document']),_0x2e94aa,{'elementName':'','renderForEditingView':!0x0}),_0x2e0562=document['createElement']('div');_0x2e0562['classList']['add']('ck-media__wrapper'),_0x4db129['render'](_0x2e0562,_0x1f795a['editing']['view']['domConverter']),_0x212f32['replaceWith'](_0x2e0562);}}}),_0x6525e[_0x570666]=_0x3a70fe['innerHTML']);}return _0x6525e;}['_sortRoots'](_0x3a2580){if(!function(_0x2467f8){return void 0x0!==_0x2467f8['getRootsAttributes'];}(_0x3a2580))return _0x3a2580['model']['document']['getRootNames']();const _0x4acd67=[],_0x19199a=new Map();for(const _0x262b30 of _0x3a2580['model']['document']['getRootNames']()){const _0x19dc64=_0x3a2580['editing']['view']['getDomRoot'](_0x262b30)['getClientRects']()['item'](0x0);_0x4acd67['push'](_0x262b30),_0x19199a['set'](_0x262b30,_0x19dc64);}return _0x4acd67['sort']((_0x36211c,_0x4c8bf8)=>{const _0x12f082=_0x19199a['get'](_0x36211c),_0x277a73=_0x19199a['get'](_0x4c8bf8);return _0x12f082['y']-_0x277a73['y']||_0x12f082['x']-_0x277a73['x'];}),_0x4acd67;}}class He extends _0x292012{static get['requires'](){return[re,_0x1ac612];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x339d5d){super(_0x339d5d),_0x339d5d['commands']['add']('previewFinalContent',new te(this['editor'])),_0x339d5d['config']['define']('trackChanges.preview.renderFunction',(_0x8e6632,_0x691514)=>{for(const _0x440304 of _0x691514)_0x8e6632['appendChild'](_0x440304);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|
|
23
|
+
import{Command as _0x5a8212,Plugin as _0x185c8e,PendingActions as _0x29dc66}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x464339,ObservableMixin as _0x4ab215,uid as _0x510ab3,priorities as _0xa6a0c5,insertToPriorityArray as _0x4f1811,toArray as _0x10f187,logWarning as _0x1a537c,getEnvKeystrokeText as _0x48f72b,FocusTracker as _0x4ba80c,KeystrokeHandler as _0xea4328,Collection as _0x418873}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x3bab8d,IconCancel as _0x2bbfac,IconTrackChanges as _0x214e3f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x22f526,View as _0x51fa9e,ViewCollection as _0x13b940,FocusCycler as _0x50f93b,UIModel as _0x2a146f,createDropdown as _0x3413fc,SplitButtonView as _0x3f091f,addListToDropdown as _0x300a82,MenuBarMenuView as _0x53e884,MenuBarMenuListView as _0x2c5f59,ListSeparatorView as _0x4ca5df,MenuBarMenuListItemView as _0x441c3f,MenuBarMenuListItemButtonView as _0x3a5579,BodyCollection as _0x5a8715,Dialog as _0x5bfc98}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x7e9419,hashObject as _0x38917d,surroundingMarkersDetector as _0x320351,FOCUS_ANNOTATION_KEYSTROKE as _0x101cd3,AriaDescriptionView as _0x1fbb41,setupThreadKeyboardNavigation as _0x390368,trimHtml as _0x5039b0,UserView as _0x581262,LateFocusButtonView as _0xf2ab3a,getDateTimeFormatter as _0x25adc9,getAllMarkersDomElementsSorted as _0x331e1e,sanitizeEditorConfig as _0x32f147}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x469b5f,ModelLiveRange as _0x4ef168,ModelLivePosition as _0x2cbf43,ViewDowncastWriter as _0x32df9f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x481c19,toWidget as _0xdc8a31}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4bc9d1,set as _0x4195db,isEqual as _0x48c112,unset as _0xa6c429,omit as Ut}from'es-toolkit/compat';import{Delete as _0x2e2120,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x7a9e08}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1ee166}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x5a8212{['_enabledCommands'];constructor(_0x5869a1,_0x2795b7){super(_0x5869a1),this['_enabledCommands']=_0x2795b7,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 _0x8d8852 of this['editor']['commands']['commands']())_0x8d8852['affectsData']&&!this['_enabledCommands']['has'](_0x8d8852)&&_0x8d8852['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x205c82 of this['editor']['commands']['commands']())_0x205c82['affectsData']&&!this['_enabledCommands']['has'](_0x205c82)&&_0x205c82['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x5a8212{['_suggestions'];constructor(_0x5c3b26,_0x28f42a){super(_0x5c3b26),this['_suggestions']=_0x28f42a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x20905c){const _0x560560=this['_suggestions']['get'](_0x20905c);if(!_0x560560)throw new _0x464339('track-changes-accept-suggestion-not-found',this);const _0x1c9229=_0x560560['getRanges']();this['editor']['model']['canEditAt'](_0x1c9229)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x560560);}}class M extends _0x5a8212{['_suggestions'];constructor(_0x5719a2,_0x4438fc){super(_0x5719a2),this['_suggestions']=_0x4438fc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x362190){const _0x5449d3=this['_suggestions']['get'](_0x362190);if(!_0x5449d3)throw new _0x464339('track-changes-discard-suggestion-not-found',this);const _0x27541c=_0x5449d3['getRanges']();this['editor']['model']['canEditAt'](_0x27541c)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5449d3);}}function ls(_0x1307e7,_0x479964){let _0x579297='';return _0x579297+=_0x1307e7['split']('*')['map']((_0x1c6326,_0xd022c)=>_0xd022c%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x1c6326)+'</span>':Yt(_0x1c6326))['join'](''),_0x479964&&(_0x579297+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x479964['value']+'\x22\x20title=\x22'+_0x479964['title']+'\x22></span>'),_0x579297;}function Yt(_0x4d26ac){const _0x3ec515=document['createElement']('span');return _0x3ec515['innerText']=_0x4d26ac,_0x3ec515['innerHTML'];}function ts(_0x391d9c){return _0x391d9c['sort']((_0x18c598,_0x40ad97)=>'attribute'===_0x18c598['type']&&'attribute'!==_0x40ad97['type']?-0x1:'attribute'!==_0x18c598['type']&&'attribute'===_0x40ad97['type']?0x1:'deletion'==_0x18c598['type']&&'deletion'!=_0x40ad97['type']?-0x1:'deletion'!=_0x18c598['type']&&'deletion'==_0x40ad97['type']?0x1:0x0);}function to(_0x251c40,_0x459d99){let _0x42aa82,_0x21d236=0x0;const _0x4479a2=[],_0x1ea6c3=_0x459d99['schema'];for(;_0x21d236<_0x251c40['length'];){const _0x17ca76=_0x251c40[_0x21d236],_0x32b261=_0x251c40[_0x21d236+0x1];_0x42aa82||(_0x42aa82=_0x459d99['createPositionBefore'](_0x17ca76)),Zt(_0x459d99,_0x17ca76,_0x32b261)||(_0x4479a2['push'](_0x459d99['createRange'](_0x42aa82,_0x1ea6c3['isObject'](_0x17ca76)?_0x459d99['createPositionAfter'](_0x17ca76):_0x459d99['createPositionAt'](_0x17ca76,'end'))),_0x42aa82=null),_0x21d236++;}return _0x4479a2;}function Zt(_0x2bb29d,_0x27ff14,_0x1b3236){if(!_0x1b3236)return!0x1;const _0x56c498=_0x2bb29d['createPositionAfter'](_0x27ff14),_0x397065=_0x2bb29d['createPositionBefore'](_0x1b3236);return _0x56c498['isTouching'](_0x397065);}function rs(_0x1c3f2d,_0xd2e74a,_0x545404){for(;_0x545404['length'];){const _0x34e15d=_0x545404['splice'](0x0,0x64);_0x1c3f2d['change'](()=>{for(const _0x57749d of _0x34e15d)_0x57749d['isInContent']&&_0xd2e74a['execute'](_0x57749d['id']);});}}class $ extends _0x5a8212{['_command'];['_suggestions'];constructor(_0x39369e,_0xb7778f,_0x3101bc){super(_0x39369e),this['_command']=_0xb7778f,this['_suggestions']=_0x3101bc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x358617=Array['from'](this['_suggestions']['values']())['some'](_0x23ae94=>_0x23ae94['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x358617;}['execute'](){const _0x2aabb7=ts(Array['from'](this['_suggestions']['values']()));for(const _0x50258b of _0x2aabb7){const _0x30287f=_0x50258b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30287f))return;}rs(this['editor']['model'],this['_command'],_0x2aabb7);}}class B extends _0x5a8212{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd003f0,_0x236236,_0x2e921){super(_0xd003f0),this['_command']=_0x236236,this['_suggestions']=_0x2e921,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15bb2c=this['editor']['model']['document']['selection'],_0x52e76d=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x41bbaf,_0x3f0bca){const _0xbe5b40=Array['from'](_0x41bbaf['getRanges']()),_0x11ca4f=new Set();for(const _0x282a40 of _0x3f0bca)if(_0x282a40['isInContent']){for(const _0x3baa30 of _0xbe5b40)for(const _0x3fdb38 of _0x282a40['getRanges']())(_0x3baa30['isIntersecting'](_0x3fdb38)||_0x41bbaf['isCollapsed']&&!_0x282a40['isMultiRange']&&_0x282a40['next']&&_0x3fdb38['end']['isTouching'](_0x3baa30['start']))&&_0x11ca4f['add'](_0x282a40);}return _0x11ca4f;}(_0x15bb2c,_0x52e76d),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d9bcc=ts(Array['from'](this['_selectedSuggestions']));for(const _0x508004 of _0x4d9bcc){const _0x30244f=_0x508004['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30244f))return;}rs(this['editor']['model'],this['_command'],_0x4d9bcc);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4ab215(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x15ad48,_0x4eec2c){super(),this['id']=_0x4eec2c['id'],this['type']=_0x4eec2c['type'],this['subType']=_0x4eec2c['subType']||null,this['author']=_0x4eec2c['author'],this['creator']=_0x4eec2c['creator']||_0x4eec2c['author'],this['isExternal']=Boolean(_0x4eec2c['attributes']&&_0x4eec2c['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x4eec2c['originalSuggestionId']||null,this['_model']=_0x15ad48,this['_onAccept']=_0x4eec2c['onAccept'],this['_onDiscard']=_0x4eec2c['onDiscard'],this['_onAttributesChange']=_0x4eec2c['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4eec2c['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 _0x4bffb5=this;for(;_0x4bffb5['previous'];)_0x4bffb5=_0x4bffb5['previous'];return _0x4bffb5;}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'](_0x2e87a5){this['_markerNames']['add'](_0x2e87a5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52b66b=>this['_model']['markers']['get'](_0x52b66b))['filter'](_0x2ef2cb=>_0x2ef2cb);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x32df74=>{for(const _0x3c40f5 of this['getMarkers']())_0x32df74['removeMarker'](_0x3c40f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x93e03){this['_model']['change'](_0x4060b2=>{_0x4060b2['removeMarker'](_0x93e03);}),this['_markerNames']['delete'](_0x93e03);}['addRange'](_0x5aa6f7){const _0x21c572='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x21c572),this['_model']['change'](_0x57f475=>{_0x57f475['addMarker'](_0x21c572,{'range':_0x5aa6f7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xb70f89){for(const _0x486d38 of this['getRanges']())if(_0x486d38['isIntersecting'](_0xb70f89))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x554e23=>_0x554e23['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1cb34b,_0x483147)=>[..._0x1cb34b,..._0x483147['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x222cfc=this['getRanges']();if(0x1!=_0x222cfc['length'])return null;const _0x5006f6=_0x222cfc[0x0],_0x6e8744=_0x5006f6['start']['nodeAfter'],_0x1276b7=_0x5006f6['end']['nodeBefore'];return _0x6e8744 instanceof _0x469b5f?_0x6e8744!=_0x1276b7?null:_0x6e8744: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 _0x530b81=[];let _0x57bf97=this['head'];for(;_0x57bf97;)_0x530b81['push'](_0x57bf97),_0x57bf97=_0x57bf97['next'];return _0x530b81;}['setAttribute'](_0xf4508e,_0xc94375){const _0x45ce95=_0x4bc9d1(this['attributes']);_0x4195db(_0x45ce95,_0xf4508e,_0xc94375),_0x48c112(_0x45ce95,this['attributes'])||(this['attributes']=_0x45ce95,this['_onAttributesChange'](_0x45ce95));}['removeAttribute'](_0x2b60e0){const _0x3b323d=_0x4bc9d1(this['attributes']);_0xa6c429(_0x3b323d,_0x2b60e0),_0x48c112(_0x3b323d,this['attributes'])||(this['attributes']=_0x3b323d,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 _0x510ab3()['substr'](0x1,0x5);}}function o(_0x4e0298,_0x2abaae,_0x3a510a){const _0x22ee8a=_0x4e0298['t'],t=_0x4e0298['t'];switch(_0x2abaae){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',_0x3a510a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3a510a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3a510a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3a510a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3a510a);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',_0x3a510a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3a510a);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',_0x3a510a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3a510a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3a510a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3a510a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3a510a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3a510a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3a510a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3a510a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3a510a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3a510a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3a510a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3a510a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3a510a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3a510a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3a510a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3a510a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3a510a);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3a510a);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'},_0x3a510a);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3a510a);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3a510a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3a510a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3a510a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3a510a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3a510a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3a510a);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'},_0x3a510a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3a510a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3a510a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3a510a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3a510a);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_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'},_0x3a510a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3a510a);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'},_0x3a510a);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'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'},_0x3a510a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3a510a);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'},_0x3a510a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3a510a);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'},_0x3a510a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3a510a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3a510a);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'},_0x3a510a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3a510a);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 _0x22ee8a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3a510a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x22ee8a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3a510a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3a510a);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'},_0x3a510a);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'},_0x3a510a);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'},_0x3a510a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2abaae;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d5d01,_0x2a2c72){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d5d01,this['_locale']=_0x2a2c72;}['getDescriptions'](_0x32f84e){const _0x34ec7e=[],_0x598137=new Set(),_0x4a9c61=new Set();for(let _0x3ee738=0x0;_0x3ee738<_0x32f84e['length'];_0x3ee738++){const _0x713788=_0x32f84e[_0x3ee738];if(!_0x713788['isInContent'])continue;const _0x2d56fc=this['_handleCustomCallbackDescription'](_0x713788);if(_0x2d56fc){if(null!=_0x713788['subType']){if(_0x598137['has'](_0x713788['subType']))continue;_0x598137['add'](_0x713788['subType']);}_0x34ec7e['push'](_0x2d56fc);}else{if('attribute'==_0x713788['type']){const _0xc8121b=_0x713788['data']['key'];if(_0x4a9c61['has'](_0xc8121b))continue;_0x4a9c61['add'](_0x713788['data']['key']),_0xc8121b==m?this['_handleRenameSuggestionDescription'](_0x34ec7e,_0x713788):this['_handleAttributeSuggestionDescription'](_0x34ec7e,_0x713788);continue;}'insertion'!=_0x713788['type']&&'deletion'!=_0x713788['type']||this['_handleInsertRemoveSuggestionDescription'](_0x34ec7e,_0x713788,_0x32f84e[_0x3ee738+0x1]);}}return this['_resolveDescriptionItems'](_0x34ec7e);}['registerDescriptionCallback'](_0x2ce123){this['_customCallbacks']['push'](_0x2ce123);}['registerElementLabel'](_0x227a09,_0x2c458a,_0x2b87b7=_0xa6a0c5['normal']){'function'==typeof _0x227a09?_0x4f1811(this['_itemLabelsCallbacks'],{'matchingCallback':_0x227a09,'label':_0x2c458a,'priority':_0x2b87b7}):this['_itemLabels']['set'](_0x227a09,_0x2c458a);}['registerAttributeLabel'](_0x4862bd,_0xb29ae7){this['_attributeLabels']['set'](_0x4862bd,_0xb29ae7);}['getItemLabel'](_0x249da0,_0x4d917d=0x1){let _0x5dd503;for(const _0x231c8e of this['_itemLabelsCallbacks'])if(_0x231c8e['matchingCallback'](_0x249da0)){_0x5dd503=_0x231c8e['label'];break;}return _0x5dd503||(_0x5dd503=this['_itemLabels']['get'](_0x249da0['name'])),_0x5dd503?_0x5dd503(_0x4d917d):0x1!==_0x4d917d?_0x4d917d+'\x20'+_0x249da0['name']+'s':''+_0x249da0['name'];}['_addDescriptionItems'](_0xfca6e4,_0x27dabb){const _0x5f208a=_0x27dabb['getFirstRange']()['getWalker'](),_0x40ff05='insertion'==_0x27dabb['type']?'add':'remove';for(const _0x59f226 of _0x5f208a){const _0x35260e=_0x59f226['item'],_0x2708b4=_0xfca6e4[_0xfca6e4['length']-0x1];if(_0x35260e['is']('$textProxy'))_0x2708b4&&_0x2708b4['type']['indexOf']('Container')>-0x1&&_0xfca6e4['pop'](),_0x2708b4&&'text'==_0x2708b4['type']?_0x2708b4[_0x40ff05]+=_0x35260e['data']:_0xfca6e4['push']({'type':'text','add':'add'==_0x40ff05?_0x35260e['data']:'','remove':'remove'==_0x40ff05?_0x35260e['data']:''});else{if(this['_schema']['isObject'](_0x35260e)){const _0x562597=_0x35260e;if(_0x2708b4&&_0x2708b4['type']['indexOf']('Container')>-0x1&&_0xfca6e4['pop'](),'elementEnd'==_0x59f226['type'])continue;_0x2708b4&&_0x2708b4['type']==_0x40ff05+'Object'&&_0x2708b4['element']['name']==_0x562597['name']?_0x2708b4['quantity']++:_0xfca6e4['push']({'type':_0x40ff05+'Object','element':_0x562597,'quantity':0x1}),_0x5f208a['skip'](_0x151ceb=>!('elementEnd'==_0x151ceb['type']&&_0x151ceb['item']==_0x35260e));}else{if(this['_schema']['checkChild'](_0x35260e,'$text')||_0x35260e['is']('element','softBreak')){const _0x351af8=_0x35260e;if('add'==_0x40ff05&&'elementStart'==_0x59f226['type']||'remove'==_0x40ff05&&'elementEnd'==_0x59f226['type'])continue;if(_0x2708b4&&-0x1==_0x2708b4['type']['indexOf']('Container')){'text'==_0x2708b4['type']&&(_0x2708b4[_0x40ff05]+='\x0a');continue;}let _0x26a2ee;if(_0x26a2ee='add'==_0x40ff05?_0x351af8['nextSibling']&&!this['_schema']['isObject'](_0x351af8['nextSibling'])?_0x351af8['nextSibling']:null:_0x351af8['previousSibling']&&!this['_schema']['isObject'](_0x351af8['previousSibling'])?_0x351af8['previousSibling']:null,_0x351af8['isEmpty']||_0x26a2ee&&_0x26a2ee['isEmpty']){const _0x319d69=_0x26a2ee&&_0x26a2ee['isEmpty']?_0x26a2ee:_0x351af8;_0x2708b4&&_0x2708b4['type']==_0x40ff05+'EmptyContainer'&&_0x2708b4['element']['name']==_0x319d69['name']?_0x2708b4['quantity']++:_0xfca6e4['push']({'type':_0x40ff05+'EmptyContainer','element':_0x319d69,'quantity':0x1});}else _0xfca6e4['push']({'type':_0x40ff05+'Container','element':_0x351af8});}}}}}['_resolveDescriptionItems'](_0x3c1893){const _0x959f28=this['_locale'],_0x43b828=[],_0x50a148=[],_0x3c9bbb=[];for(const _0x4b7c6e of _0x3c1893)switch(_0x4b7c6e['type']){case'text':if(_0x4b7c6e['add']=_0x4b7c6e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4b7c6e['remove']=_0x4b7c6e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4b7c6e['add']&&''!=_0x4b7c6e['remove']){_0x43b828['push']({'type':'replace','content':o(_0x959f28,'REPLACE_TEXT',['\x22'+_0x4b7c6e['remove']+'\x22','\x22'+_0x4b7c6e['add']+'\x22'])});continue;}if(null!=_0x4b7c6e['add']['match'](/^ +$/)){_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0',o(_0x959f28,'ELEMENT_SPACE',_0x4b7c6e['add']['length']))});continue;}if(null!=_0x4b7c6e['remove']['match'](/^ +$/)){_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0',o(_0x959f28,'ELEMENT_SPACE',_0x4b7c6e['remove']['length']))});continue;}if(''!=_0x4b7c6e['add']){_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0','\x22'+_0x4b7c6e['add']+'\x22')});continue;}_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0','\x22'+_0x4b7c6e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Insert:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Remove:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'addContainer':_0x43b828['push']({'type':'insertion','content':o(_0x959f28,'*Split:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'removeContainer':_0x43b828['push']({'type':'deletion','content':o(_0x959f28,'*Merge:*\x20%0',this['getItemLabel'](_0x4b7c6e['element'],_0x4b7c6e['quantity']))});continue;case'addFormat':_0x50a148['push'](_0x4b7c6e['key']);continue;case'removeFormat':_0x3c9bbb['push'](_0x4b7c6e['key']);continue;default:_0x43b828['push'](_0x4b7c6e);}if(_0x50a148['length']){const _0x41f445=_0x50a148['map'](_0xc831c8=>this['_attributeLabels']['has'](_0xc831c8)?this['_attributeLabels']['get'](_0xc831c8):_0xc831c8)['join'](',\x20');_0x43b828['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x41f445)});}if(_0x3c9bbb['length']){const _0x510856=_0x3c9bbb['map'](_0x802fcd=>this['_attributeLabels']['has'](_0x802fcd)?this['_attributeLabels']['get'](_0x802fcd):_0x802fcd)['join'](',\x20');_0x43b828['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x510856)});}return _0x43b828;}['_handleCustomCallbackDescription'](_0x3f806){for(const _0x54d4e5 of this['_customCallbacks']){const _0x35ecb2=_0x54d4e5(_0x3f806);if(_0x35ecb2&&'type'in _0x35ecb2)return _0x35ecb2;}}['_handleAttributeSuggestionDescription'](_0x3e9df1,_0x501712){const _0x49b33b=_0x501712['data'],_0x34c30b=void 0x0===_0x49b33b['newValue']?'removeFormat':'addFormat';_0x3e9df1['push']({'type':_0x34c30b,'key':_0x49b33b['key']});}['_handleRenameSuggestionDescription'](_0x93a82d,_0x20f919){_0x93a82d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x20f919['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x333df7,_0x316a3d,_0x26da02){if(this['_addDescriptionItems'](_0x333df7,_0x316a3d),_0x26da02&&_0x26da02['getFirstRange']()&&!_0x316a3d['getFirstRange']()['end']['isEqual'](_0x26da02['getFirstRange']()['start'])){const _0x3798ec=_0x333df7[_0x333df7['length']-0x1],_0x38ae38='insertion'==_0x316a3d['type']?'add':'remove';_0x3798ec&&'text'==_0x3798ec['type']&&(_0x3798ec[_0x38ae38]+='\x0a');}}}class O extends _0x185c8e{['afterInit'](){const _0x53cf94=this['editor'],_0x2757c8=_0x53cf94['plugins']['get']('TrackChangesEditing');_0x53cf94['commands']['get']('showAIAssistant')&&_0x2757c8['enableCommand']('showAIAssistant');}}class E extends _0x185c8e{['afterInit'](){const _0x38068b=this['editor'],_0x5b6b56=_0x38068b['locale'];if(!_0x38068b['plugins']['has']('AlignmentEditing'))return;const _0x5c89df=_0x38068b['plugins']['get']('TrackChangesEditing');_0x5c89df['enableDefaultAttributesIntegration']('alignment'),_0x5c89df['registerBlockAttribute']('alignment'),_0x5c89df['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5b6b56,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdf1afb=this['editor'],_0x58b54c=_0xdf1afb['locale'];_0xdf1afb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599d22=>{if('formatBlock'!=_0x599d22['type'])return;const {data:_0x364f2a}=_0x599d22;if(_0x364f2a&&'alignment'==_0x364f2a['commandName']){const _0x4b169e=_0x364f2a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x58b54c,'*Format:*\x20%0',function(_0x455b65){switch(_0x455b65){case'left':return o(_0x58b54c,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x58b54c,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x58b54c,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x58b54c,'FORMAT_JUSTIFY_TEXT');}}(_0x4b169e))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x185c8e{['afterInit'](){const _0x522dba=this['editor'],_0x3dc673=_0x522dba['plugins']['get']('TrackChangesEditing'),_0x43fae0=_0x522dba['locale'];for(const _0x239966 of ti){if(!_0x522dba['plugins']['has'](_0x239966))continue;const _0x1a8e78=_0x239966['slice'](0x0,-0x7)['toLowerCase'](),_0x691120='FORMAT_'+_0x1a8e78['toUpperCase']();_0x3dc673['enableDefaultAttributesIntegration'](_0x1a8e78),_0x3dc673['registerInlineAttribute'](_0x1a8e78),_0x3dc673['descriptionFactory']['registerAttributeLabel'](_0x1a8e78,o(_0x43fae0,_0x691120));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf1fa0c=this['editor'],_0x2a5abc=_0xf1fa0c['locale'],_0x101966=_0xf1fa0c['plugins']['get']('TrackChangesEditing');function _0x35bcff(_0x39a2da,_0x2514af){_0x101966['descriptionFactory']['registerDescriptionCallback'](_0x5cedfd=>{if('formatInline'!=_0x5cedfd['type'])return;const {data:_0x347701}=_0x5cedfd;return _0x347701&&_0x347701['commandName']===_0x39a2da?_0x347701['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a5abc,'*Format:*\x20%0',_0x2514af)}:{'type':'format','content':o(_0x2a5abc,'*Remove\x20format:*\x20%0',_0x2514af)}:void 0x0;});}_0x35bcff('bold',o(_0x2a5abc,'FORMAT_BOLD')),_0x35bcff('italic',o(_0x2a5abc,'FORMAT_ITALIC')),_0x35bcff('underline',o(_0x2a5abc,'FORMAT_UNDERLINE')),_0x35bcff('code',o(_0x2a5abc,'FORMAT_CODE')),_0x35bcff('strikethrough',o(_0x2a5abc,'FORMAT_STRIKETHROUGH')),_0x35bcff('subscript',o(_0x2a5abc,'FORMAT_SUBSCRIPT')),_0x35bcff('superscript',o(_0x2a5abc,'FORMAT_SUPERSCRIPT'));}}class U extends _0x185c8e{['afterInit'](){const _0x32e941=this['editor'],_0x11cf61=_0x32e941['locale'];if(!_0x32e941['plugins']['has']('BlockQuoteEditing'))return;const _0x4090da=_0x32e941['plugins']['get']('TrackChangesEditing'),_0x172b11=this['editor']['commands']['get']('blockQuote');_0x4090da['enableCommand']('blockQuote',(_0x3f18c7,_0x413a23={})=>{const _0x1dbed7=this['editor']['model']['document']['selection'],_0x2243d1=_0x413a23&&void 0x0!==_0x413a23['forceValue']?_0x413a23['forceValue']:!_0x172b11['value'];let _0x54a0eb=[];if(_0x2243d1){const _0x2998e1=Array['from'](_0x1dbed7['getSelectedBlocks']())['filter'](_0x4fe14c=>oo(_0x4fe14c)||function(_0x65be0e,_0x56620d){const _0x17a9aa=_0x56620d['checkChild'](_0x65be0e['parent'],'blockQuote'),_0x69d768=_0x56620d['checkChild'](['$root','blockQuote'],_0x65be0e);return _0x17a9aa&&_0x69d768;}(_0x4fe14c,this['editor']['model']['schema']));_0x54a0eb=to(_0x2998e1,_0x32e941['model']);}else{const _0x1bcef3=Array['from'](_0x1dbed7['getSelectedBlocks']())['filter'](_0x16f461=>oo(_0x16f461));_0x54a0eb=to(_0x1bcef3,_0x32e941['model']);}_0x32e941['model']['change'](()=>{for(const _0x19b119 of _0x54a0eb)_0x4090da['markBlockFormat'](_0x19b119,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2243d1}]});});}),_0x4090da['descriptionFactory']['registerDescriptionCallback'](_0x31ba8a=>{const {data:_0x5aff68}=_0x31ba8a;if(_0x5aff68&&'blockQuote'==_0x5aff68['commandName']){const _0x43525a=o(_0x11cf61,'ELEMENT_BLOCK_QUOTE');return _0x5aff68['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11cf61,'*Set\x20format:*\x20%0',_0x43525a)}:{'type':'format','content':o(_0x11cf61,'*Remove\x20format:*\x20%0',_0x43525a)};}});}}function oo(_0x2a2124){return'blockQuote'==_0x2a2124['parent']['name'];}class V extends _0x185c8e{['afterInit'](){const _0x27dbdd=this['editor'],_0x266624=_0x27dbdd['locale'],_0x238ffd=_0x27dbdd['plugins']['get']('TrackChangesEditing');_0x27dbdd['plugins']['has']('BookmarkEditing')&&(_0x238ffd['enableCommand']('insertBookmark'),_0x238ffd['enableDefaultAttributesIntegration']('updateBookmark'),_0x238ffd['registerBlockAttribute']('bookmarkId'),_0x238ffd['descriptionFactory']['registerDescriptionCallback'](_0x3a6ec6=>{if('insertion'!=_0x3a6ec6['type']&&'deletion'!=_0x3a6ec6['type']&&'attribute'!=_0x3a6ec6['type'])return;const _0x38ff27=_0x3a6ec6['getContainedElement']();if(null==_0x38ff27)return;if(!_0x38ff27['is']('element','bookmark'))return;const _0x5b71bc=_0x38ff27['getAttribute']('bookmarkId');if('insertion'==_0x3a6ec6['type'])return{'type':'insertion','content':o(_0x266624,'*Insert:*\x20%0','\x22'+_0x5b71bc+'\x22\x20'+o(_0x266624,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3a6ec6['type'])return{'type':'deletion','content':o(_0x266624,'*Remove:*\x20%0','\x22'+_0x5b71bc+'\x22\x20'+o(_0x266624,'ELEMENT_BOOKMARK'))};const {data:_0x515948}=_0x3a6ec6;if(!_0x515948||'bookmarkId'!=_0x515948['key'])return;return{'type':'format','content':o(_0x266624,'*Set\x20bookmark:*\x20%0','\x22'+_0x515948['newValue']+'\x22')};}));}}class F extends _0x185c8e{['afterInit'](){const _0x1dfbcc=this['editor'];_0x1dfbcc['plugins']['has']('CaseChange')&&(_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1dfbcc['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x185c8e{['afterInit'](){const _0x1997ac=this['editor'];_0x1997ac['commands']['get']('ckbox')&&_0x1997ac['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x185c8e{['afterInit'](){const _0x47edf2=this['editor'];if(!_0x47edf2['plugins']['has']('CodeBlock'))return;const _0x1fa8a0=_0x47edf2['plugins']['get']('TrackChangesEditing'),_0x4c0814=_0x47edf2['locale'],_0x41e457=_0x47edf2['config']['get']('codeBlock')['languages'],_0x3c2ffc=_0x47edf2['commands']['get']('codeBlock');_0x1fa8a0['enableCommand']('indentCodeBlock'),_0x1fa8a0['enableCommand']('outdentCodeBlock'),_0x1fa8a0['enableCommand']('codeBlock',(_0x3b01ba,_0x14863f={})=>{const _0x6bd163=_0x47edf2['model'],_0x1693b9=_0x47edf2['model']['document']['selection'],_0x1ae8d9=_0x14863f&&void 0x0!==_0x14863f['forceValue']?_0x14863f['forceValue']:!_0x3c2ffc['value'];let _0x58f657;_0x14863f['language']||(_0x14863f['language']=_0x41e457[0x0]['language']),_0x58f657=_0x1ae8d9?Array['from'](_0x1693b9['getSelectedBlocks']())['filter'](_0x15cce2=>co(_0x15cce2)||function(_0x5169dc,_0x2bf691){if(_0x5169dc['is']('rootElement')||_0x2bf691['isLimit'](_0x5169dc))return!0x1;return _0x2bf691['checkChild'](_0x5169dc['parent'],'codeBlock');}(_0x15cce2,_0x6bd163['schema'])):Array['from'](_0x1693b9['getSelectedBlocks']())['filter'](_0x5b001f=>co(_0x5b001f));const _0x8c0a5c=to(_0x58f657,_0x6bd163);_0x6bd163['change'](()=>{for(const _0x366ca2 of _0x8c0a5c)_0x1fa8a0['markBlockFormat'](_0x366ca2,{'commandName':'codeBlock','commandParams':[{..._0x14863f,'forceValue':_0x1ae8d9}],'formatGroupId':'blockName'});});}),(_0x1fa8a0['descriptionFactory']['registerElementLabel']('codeBlock',_0x12f6c2=>o(_0x4c0814,'ELEMENT_CODE_BLOCK',_0x12f6c2)),_0x1fa8a0['descriptionFactory']['registerDescriptionCallback'](_0x4ff975=>{if('formatBlock'!=_0x4ff975['type'])return;const _0x1d9d6b=_0x4c0814['t'],{data:_0x4f02aa}=_0x4ff975;if(!_0x4f02aa||'codeBlock'!=_0x4f02aa['commandName'])return;const _0x57bfab=_0x4f02aa['commandParams'][0x0]['language'],_0x42a778=_0x1d9d6b(_0x41e457['find'](_0x27b11c=>_0x27b11c['language']===_0x57bfab)['label'])['toLowerCase']();return _0x4f02aa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c0814,'*Set\x20format:*\x20%0',o(_0x4c0814,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x42a778+')')}:{'type':'format','content':o(_0x4c0814,'*Remove\x20format:*\x20%0',o(_0x4c0814,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x522e2d){return'codeBlock'==_0x522e2d['name'];}class J extends _0x185c8e{['afterInit'](){const _0x3d8299=this['editor'];if(!_0x3d8299['plugins']['has']('CommentsEditing'))return;_0x3d8299['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5ce713,_0x17179c,_0x42547f){const _0x473983=[];for(const _0x2468ab of _0x17179c['getItems']())_0x2468ab['hasAttribute'](_0x5ce713)&&_0x473983['push'](_0x42547f['createRangeOn'](_0x2468ab));return _0x473983;}function De(_0x4f7a30,_0x4f820e,{showActiveMarker:_0x531a71=!0x0}={}){const _0x4c90a0=_0x4f7a30['plugins']['get']('TrackChangesEditing');return(_0x597161,_0x1d831d,_0x4b02ab)=>{if(!_0x4b02ab['consumable']['test'](_0x1d831d['markerRange'],_0x597161['name']))return;const _0xede005=_0x1d831d['markerRange']['getWalker'](),_0x1fbed1=_0x1d831d['markerRange']['start'],_0x39006f=_0x4f7a30['model']['schema'];let _0xd225cc=null,_0xd79373=null,_0xd61d06=!0x1,_0x711247=!0x1;for(const _0x1d0292 of _0xede005){const _0x325e30=_0x1d0292['item'];_0xd61d06=_0xd61d06||_0x39006f['isContent'](_0x325e30);const _0x577abc=_0x4b02ab['mapper']['toViewElement'](_0x325e30);if(_0x577abc&&_0x577abc['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d0292['type']&&(_0x39006f['isBlock'](_0x325e30)&&!_0x39006f['isLimit'](_0x325e30)&&(_0x325e30['nextSibling']||_0x1fbed1['isAtEnd']?_0xd225cc&&_0xd225cc['parent']==_0x325e30||(_0xd225cc=_0x325e30,_0x1f276d(_0x1d0292['previousPosition']),_0x711247=!0x0):_0xd79373=_0xd79373||_0x1d0292['previousPosition']));}function _0x1f276d(_0x101202){const {id:_0x42ea7e,authorId:_0x55ff52}=_0x4c90a0['_splitMarkerName'](_0x1d831d['markerName']),_0x15c00c=_0x4b02ab['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f820e,'data-suggestion':_0x42ea7e,'data-author-id':_0x55ff52}),_0xe3a0ec=_0x4b02ab['mapper']['toViewPosition'](_0x101202);_0x531a71&&_0x4c90a0['activeMarkers']['includes'](_0x1d831d['markerName'])&&_0x4b02ab['writer']['addClass']('ck-suggestion-marker--active',_0x15c00c),_0x4b02ab['writer']['insert'](_0xe3a0ec,_0x15c00c),_0x4b02ab['mapper']['bindElementToMarker'](_0x15c00c,_0x1d831d['markerName']);}_0xd61d06||_0x711247||!_0xd79373||_0x1f276d(_0xd79373);};}class K extends _0x185c8e{static get['requires'](){return[_0x2e2120];}['init'](){const _0x27d767=this['editor'],_0x5dc4e8=_0x27d767['plugins']['get']('TrackChangesEditing');_0x5dc4e8['enableCommand']('delete');const _0xeb2849=_0x27d767['commands']['get']('deleteForward');_0x5dc4e8['enableCommand']('deleteForward',(_0x18e0c2,_0x524fb5={})=>{const _0x23ba20=_0x27d767['model']['createSelection'](_0x27d767['model']['document']['selection']);_0x23ba20['isCollapsed']&&_0x27d767['model']['modifySelection'](_0x23ba20,{'direction':'forward','unit':_0x524fb5['unit']});const _0x14abd3=_0x23ba20['getFirstRange'](),_0x1a3623=_0x4ef168['fromRange'](_0x14abd3);let _0x869c4f;_0x18e0c2(_0x524fb5),_0x869c4f='$graveyard'==_0x1a3623['root']['rootName']?_0x27d767['model']['createRange'](_0x14abd3['start']):_0x27d767['model']['createRange'](_0x1a3623['start'],_0x1a3623['end']),_0x1a3623['detach'](),_0x27d767['model']['enqueueChange'](_0xeb2849['buffer']['batch'],_0x25d0c1=>{_0xeb2849['buffer']['lock'](),_0x25d0c1['setSelection'](_0x25d0c1['createRange'](_0x869c4f['end'])),_0xeb2849['buffer']['unlock']();});}),_0x27d767['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x27d767,'merge'),{'priority':'high'}),_0x27d767['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x119768,_0x5a03f1,_0x122ad5)=>{_0x122ad5['options']['showSuggestionHighlights']&&De(_0x27d767,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x119768,_0x5a03f1,_0x122ad5);},{'priority':'high'}),_0x27d767['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x407693,_0x4297a6,_0x2b8d86)=>{const _0x4c4e4e=_0x2b8d86['mapper']['markerNameToElements'](_0x4297a6['markerName']);if(_0x4c4e4e){for(const _0x28d701 of _0x4c4e4e)_0x28d701['is']('uiElement')&&(_0x2b8d86['mapper']['unbindElementFromMarkerName'](_0x28d701,_0x4297a6['markerName']),_0x2b8d86['writer']['remove'](_0x28d701));}},{'priority':'high'});}}class H extends _0x185c8e{['afterInit'](){const _0x427ccd=this['editor'];if(!_0x427ccd['plugins']['has']('ListEditing'))return;const _0x20cba1=_0x427ccd['locale'],_0x368ec0=_0x427ccd['plugins']['get']('TrackChangesEditing'),_0x5087d0=_0x427ccd['plugins']['has']('TodoListEditing'),_0x5e870f=!!_0x427ccd['config']['get']('list.multiBlock');function _0xe673f2(_0x3c440c){return{'type':'format','content':''+o(_0x20cba1,'*Set\x20format:*\x20%0',_0x3c440c)};}function _0x5b1d4f(_0x4e0436){return{'type':'format','content':''+o(_0x20cba1,'*Remove\x20format:*\x20%0',_0x4e0436)};}_0x368ec0['enableDefaultAttributesIntegration']('numberedList'),_0x368ec0['enableDefaultAttributesIntegration']('bulletedList'),_0x368ec0['enableDefaultAttributesIntegration']('customNumberedList'),_0x368ec0['enableDefaultAttributesIntegration']('customBulletedList'),_0x368ec0['enableDefaultAttributesIntegration']('indentList'),_0x368ec0['enableDefaultAttributesIntegration']('outdentList'),_0x368ec0['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x368ec0['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x368ec0['registerBlockAttribute']('listItemId'),_0x368ec0['registerBlockAttribute']('listType'),_0x368ec0['registerBlockAttribute']('listIndent'),_0x5e870f&&(_0x368ec0['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x368ec0['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5087d0&&(_0x368ec0['enableDefaultAttributesIntegration']('todoList'),_0x368ec0['enableDefaultAttributesIntegration']('checkTodoList'),_0x368ec0['registerBlockAttribute']('todoListChecked'),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x1ded81=>{const {data:_0x5592c7}=_0x1ded81;if(_0x5592c7&&'todoListChecked'==_0x5592c7['key'])return{'type':'format','content':_0x5592c7['newValue']?o(_0x20cba1,'*Check\x20item*'):o(_0x20cba1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5a1268=>{if(_0x5a1268['batch']['isUndo'])return!0x1;let _0x4a6b28=!0x1;const _0x83badc=_0x368ec0['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e7759=>'todoListChecked'===_0x368ec0['_getAttributeKey'](_0x5e7759));for(const _0x22625e of _0x83badc){'todo'!=_0x22625e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x368ec0['_findSuggestions'](_0x22625e['getFirstRange'](),'attribute')['find'](_0x336d6e=>'listType'===_0x368ec0['_getAttributeKey'](_0x336d6e['suggestion']))||(_0x5a1268['removeMarker'](_0x22625e['getFirstMarker']()),_0x4a6b28=!0x0));}return _0x4a6b28;})),_0x368ec0['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x20cba1,'FORMAT_INDENT'));const _0x4c1d7d={'type':'format','content':''};_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x2f8d41=>{const {data:_0x24afc9}=_0x2f8d41;if(!_0x24afc9||'listType'!=_0x24afc9['key'])return;let _0x5217c9=_0x2f8d41['head'];for(;_0x5217c9;){if(_0x5217c9['data']&&(('listStyle'==_0x5217c9['data']['key']||'listMarkerStyle'==_0x5217c9['data']['key'])&&(_0x5217c9['data']['newValue']&&'default'!=_0x5217c9['data']['newValue']||'default'!=_0x5217c9['data']['oldValue']&&!_0x24afc9['newValue'])||!_0x5e870f&&_0x5217c9['data']['key']==m))return _0x4c1d7d;_0x5217c9=_0x5217c9['next'];}if(null==_0x24afc9['newValue'])switch(_0x24afc9['oldValue']){case'bulleted':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b1d4f(o(_0x20cba1,'ELEMENT_TODO_LIST'));}switch(_0x24afc9['newValue']){case'bulleted':return _0xe673f2(o(_0x20cba1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe673f2(o(_0x20cba1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe673f2(o(_0x20cba1,'ELEMENT_TODO_LIST'));}}),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x3ee978=>{const {data:_0x45a2f3}=_0x3ee978;if(_0x45a2f3&&'listIndent'==_0x45a2f3['key'])return null==_0x45a2f3['newValue']||null==_0x45a2f3['oldValue']&&0x0==_0x45a2f3['newValue']?_0x4c1d7d:void 0x0;}),_0x368ec0['descriptionFactory']['registerDescriptionCallback'](_0x5ee39a=>{if('attribute'!=_0x5ee39a['type'])return;const {data:_0x1ba7c7}=_0x5ee39a;if(!_0x1ba7c7||'listItemId'!=_0x1ba7c7['key'])return;const _0x4482b4=Te(_0x5ee39a);return'newValue'==_0x4482b4?{'type':'format','content':o(_0x20cba1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4482b4?{'type':'format','content':o(_0x20cba1,'*Split:*\x20list\x20item')}:_0x4c1d7d;}),_0x427ccd['model']['document']['registerPostFixer'](_0x5a4ba8=>this['listItemIdFixer'](_0x5a4ba8)),_0x427ccd['model']['document']['registerPostFixer'](_0x193186=>this['noTrackChangesFixer'](_0x193186)),_0x427ccd['model']['document']['on']('change:data',(_0x168fd8,_0x5e50eb)=>{if(_0x5e50eb['isUndo']||!_0x5e50eb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x487f3f){if(_0x487f3f['batch']['isUndo']||!_0x487f3f['batch']['isLocal'])return!0x1;let _0x281774=!0x1;const _0x1bf513=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x65b1de=>_0x65b1de['data']&&'listItemId'==_0x65b1de['data']['key'])['filter'](_0x2b427f=>_0x2b427f['data']['newValue']&&_0x2b427f['data']['oldValue']);for(const _0x307357 of _0x1bf513)Te(_0x307357)||(_0x487f3f['removeMarker'](_0x307357['getFirstMarker']()),_0x281774=!0x0);return _0x281774;}['noTrackChangesFixer'](_0x353ba7){if(_0x353ba7['batch']['isUndo']||!_0x353ba7['batch']['isLocal'])return!0x1;const _0x381022=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x381022['trackChangesCommand']['value'])return!0x1;let _0x4818d0=!0x1;const _0x27a97d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4985c2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2100c0=>'attribute'==_0x2100c0['type'])['filter'](_0x539999=>_0x27a97d['includes'](_0x539999['attributeKey']));if(0x0==_0x4985c2['length'])return _0x4818d0;for(const _0x2ecbd8 of _0x4985c2){const _0x27c6fb=_0x381022['_findSuggestions'](_0x2ecbd8['range'],'attribute')['filter'](_0x1c4815=>!_0x1c4815['meta']['isNextTo'])['map'](_0x3cd358=>_0x3cd358['suggestion'])['filter'](_0x4f1049=>{const _0x584d8b=_0x381022['_getAttributeKey'](_0x4f1049);return _0x27a97d['includes'](_0x584d8b);});if(_0x27c6fb['length']){for(const _0x578e31 of _0x27c6fb)_0x353ba7['removeMarker'](_0x578e31['getFirstMarker']());_0x4818d0=!0x0;}}return _0x4818d0;}['assureChains'](){const _0x2e4d10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x571c92=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1c58da;const _0x13e8a9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x36cef5=>{if(_0x36cef5['data']['oldRange']||!_0x36cef5['data']['newRange'])return null;if(!_0x36cef5['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2cafac}=_0x2e4d10['_splitMarkerName'](_0x36cef5['name']);if(!_0x2e4d10['hasSuggestion'](_0x2cafac))return null;const _0x61c9c7=_0x2e4d10['getSuggestion'](_0x2cafac);return _0x571c92['includes'](_0x61c9c7['data']['key']);})['map'](_0x39a912=>{const {id:_0x4b1000}=_0x2e4d10['_splitMarkerName'](_0x39a912['name']),_0x37d1d0=_0x2e4d10['getSuggestion'](_0x4b1000);return _0x1c58da=_0x37d1d0['attributes']['groupId'],_0x37d1d0['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13e8a9['size'])return;const _0x1a50e4=_0x2e4d10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c5efc=>'attribute'==_0x5c5efc['type']&&_0x5c5efc['data']&&_0x571c92['includes'](_0x5c5efc['data']['key'])&&_0x5c5efc['attributes']['groupId']!=_0x1c58da)['map'](_0x28ddd6=>({'listItem':_0x28ddd6['getFirstRange']()['start']['nodeAfter'],'groupId':_0x28ddd6['attributes']['groupId']})),_0x2765be=new Set();for(const {groupId:_0x2a90a6,listItem:_0x101959}of _0x1a50e4)_0x13e8a9['has'](_0x101959)&&_0x2765be['add'](_0x2a90a6);for(const _0x5b395b of _0x2e4d10['getSuggestions']())_0x2765be['has'](_0x5b395b['attributes']['groupId'])&&_0x5b395b['setAttribute']('groupId',_0x1c58da);}['_supportLegacySuggestions'](){const _0x64d4bc=this['editor'],_0x452951=_0x64d4bc['locale'],_0x5d98fb=_0x64d4bc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5d98fb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5928eb,_0x269732){const _0x17b687=[];for(let _0x35e9d2 of _0x5928eb)_0x35e9d2['start']['nodeAfter']===_0x35e9d2['end']['parent']&&(_0x35e9d2=_0x64d4bc['model']['createRange'](_0x64d4bc['model']['createPositionAt'](_0x35e9d2['start']['nodeAfter'],0x0))),_0x17b687['push'](_0x35e9d2);_0x64d4bc['model']['change'](_0x4370bb=>{const _0x3b03a0=_0x64d4bc['model']['document']['selection'],_0x50cc0d=Array['from'](_0x3b03a0['getRanges']())['map'](_0x428218=>_0x4ef168['fromRange'](_0x428218));_0x4370bb['setSelection'](_0x17b687),_0x64d4bc['commands']['get'](_0x269732['commandName'])['refresh'](),_0x269732['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x64d4bc['execute'](_0x269732['commandName'],..._0x269732['commandParams']),_0x4370bb['setSelection'](_0x50cc0d);for(const _0x1b87f3 of _0x50cc0d)_0x1b87f3['detach']();});}),_0x5d98fb['descriptionFactory']['registerElementLabel'](function(_0x15e57e){const _0x394958=!_0x64d4bc['model']['schema']['isObject'](_0x15e57e),_0x5d1fef=_0x15e57e['previousSibling'],_0x181b13=_0x15e57e['nextSibling'],_0x252a2c=_0x15e57e['getAttribute']('listItemId'),_0x31176f=!_0x5d1fef||_0x5d1fef['getAttribute']('listItemId')!==_0x252a2c,_0x409715=!_0x181b13||_0x181b13['getAttribute']('listItemId')!==_0x252a2c;return _0x394958&&Boolean(_0x252a2c)&&_0x31176f&&_0x409715;},_0x44c7ba=>o(_0x452951,'ELEMENT_LIST_ITEM',_0x44c7ba));}['_registerLegacyDescription'](){const _0x39f886=this['editor'],_0x2617e2=_0x39f886['locale'];function _0xe6189a(_0xa9cd88){const _0x5c16d7=_0x39f886['commands']['get']('bulletedList')['value'],_0x6fec15=_0x39f886['commands']['get']('numberedList')['value'];return'numberedList'===_0xa9cd88?_0x5c16d7:_0x6fec15;}_0x39f886['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbe04f5){if('formatBlock'!=_0xbe04f5['type'])return;const {data:_0x3fbdbf}=_0xbe04f5;if(!_0x3fbdbf)return;let _0x1f0824,_0x31f74c,_0x310895,_0x303138;switch(_0x3fbdbf['commandName']){case'bulletedList':_0x310895=_0x3fbdbf['commandParams'][0x0]['forceValue'],_0x303138=_0xe6189a(_0x3fbdbf['commandName']),_0x1f0824=_0x310895?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x303138&&_0x39f886['config']['get']('list.multiBlock')||(_0x1f0824='*Change\x20to:*\x20%0'),_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x310895=_0x3fbdbf['commandParams'][0x0]['forceValue'],_0x303138=_0xe6189a(_0x3fbdbf['commandName']),_0x1f0824=_0x310895?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x303138&&_0x39f886['config']['get']('list.multiBlock')||(_0x1f0824='*Change\x20to:*\x20%0'),_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1f0824='*Indent:*\x20%0',_0x31f74c={'type':'format','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1f0824=function(_0x1b7e03){const _0x4bfa86=_0x1b7e03['getFirstRange']();let _0x2ab6f8=_0x4bfa86['start']['nodeAfter'];for(;_0x2ab6f8&&_0x4bfa86['containsItem'](_0x2ab6f8);){if(_0x2ab6f8['getAttribute']('listIndent')>0x0)return!0x1;_0x2ab6f8=_0x2ab6f8['nextSibling'];}return!0x0;}(_0xbe04f5)?o(_0x2617e2,'*Format:*\x20remove\x20from\x20%0',o(_0x2617e2,function(_0x272183){return'ELEMENT_'+_0x272183['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbe04f5))):o(_0x2617e2,'*Outdent:*\x20%0',o(_0x2617e2,'ELEMENT_LIST_ITEM')),_0x31f74c={'type':'format','content':_0x1f0824};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3fbdbf['multipleBlocks']&&(_0x1f0824='*Merge:*\x20%0',_0x31f74c={'type':'deletion','content':o(_0x2617e2,_0x1f0824,o(_0x2617e2,'ELEMENT_LIST_ITEM'))});}return _0x31f74c;});}}function Te(_0x3604cc){let _0x57a4c1=_0x3604cc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57a4c1;){const _0xc0efbd=_0x57a4c1['getAttribute']('listItemId');if(!_0xc0efbd)return!0x1;if(_0xc0efbd==_0x3604cc['data']['newValue'])return'newValue';if(_0xc0efbd==_0x3604cc['data']['oldValue'])return'oldValue';_0x57a4c1=_0x57a4c1['previousSibling'];}return!0x1;}class q extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5f3294=this['editor']['config']['get']('list.properties'),_0x15dc78=this['editor']['plugins']['get']('TrackChangesEditing');_0x5f3294['styles']&&(_0x15dc78['enableDefaultAttributesIntegration']('listStyle'),_0x15dc78['registerBlockAttribute']('listStyle')),_0x5f3294['reversed']&&(_0x15dc78['enableDefaultAttributesIntegration']('listReversed'),_0x15dc78['registerBlockAttribute']('listReversed')),_0x5f3294['startIndex']&&(_0x15dc78['enableDefaultAttributesIntegration']('listStart'),_0x15dc78['registerBlockAttribute']('listStart'));const _0x6e1785={'type':'format','content':''};_0x15dc78['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x77b486=this['editor']['locale'];_0x15dc78['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x77b486,'FORMAT_LIST_REVERSED')),_0x15dc78['descriptionFactory']['registerDescriptionCallback'](_0x1f65a4=>{const {data:_0x4d7828}=_0x1f65a4;if(_0x4d7828&&'listReversed'==_0x4d7828['key'])return null==_0x4d7828['newValue']||0x0==_0x4d7828['newValue']&&null==_0x4d7828['oldValue']?_0x6e1785:void 0x0;}),_0x15dc78['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x77b486,'FORMAT_LIST_START')),_0x15dc78['descriptionFactory']['registerDescriptionCallback'](_0x59ef6e=>{const {data:_0x17a6d4}=_0x59ef6e;if(_0x17a6d4&&'listStart'==_0x17a6d4['key'])return null==_0x17a6d4['newValue']||0x1==_0x17a6d4['newValue']&&null==_0x17a6d4['oldValue']?_0x6e1785:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x433633=>{if(_0x433633['batch']['isUndo'])return!0x1;let _0x225358=!0x1;const _0x28026a=_0x15dc78['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58d343=>{const _0x3467fd=_0x15dc78['_getAttributeKey'](_0x58d343);return'listStart'==_0x3467fd||'listReversed'==_0x3467fd;});for(const _0x230a2d of _0x28026a){const _0x1f3662=_0x230a2d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f3662||'customNumbered'==_0x1f3662)continue;_0x15dc78['_findSuggestions'](_0x230a2d['getFirstRange'](),'attribute')['find'](_0x174954=>'listType'==_0x15dc78['_getAttributeKey'](_0x174954['suggestion']))||(_0x433633['removeMarker'](_0x230a2d['getFirstMarker']()),_0x225358=!0x0);}return _0x225358;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x55ea82){const _0x5517b0=this['editor']['locale'],{data:_0x34f717}=_0x55ea82,_0x25c796={'type':'format','content':''};if(!_0x34f717||'listStyle'!=_0x34f717['key'])return;if(!_0x34f717['oldValue'])return'default'==_0x34f717['newValue']?_0x25c796:{'type':'format','content':''+o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['newValue'])))};if(!_0x34f717['newValue']){if('default'==_0x34f717['oldValue'])return _0x25c796;let _0x3a5d7f=_0x55ea82['head'];for(;_0x3a5d7f;){if(_0x3a5d7f['data']&&'listType'==_0x3a5d7f['data']['key']&&_0x3a5d7f['data']['newValue'])return _0x25c796;_0x3a5d7f=_0x3a5d7f['next'];}return{'type':'format','content':''+o(_0x5517b0,'*Remove\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['oldValue'])))};}if('default'!=_0x34f717['newValue'])return{'type':'format','content':''+o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,this['_getTranslationKeyForListStyle'](_0x34f717['newValue'])))};let _0x2ad83b=_0x55ea82['head'];for(;_0x2ad83b;){if(_0x2ad83b['data']&&'listType'==_0x2ad83b['data']['key']&&_0x2ad83b['data']['newValue']&&_0x2ad83b['data']['oldValue'])return _0x25c796;_0x2ad83b=_0x2ad83b['next'];}return{'type':'format','content':o(_0x5517b0,'*Set\x20format:*\x20%0',o(_0x5517b0,'ELEMENT_'+_0x55ea82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b1a3d=this['editor'],_0x587a80=_0x3b1a3d['locale'];_0x3b1a3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dd4c5=>{if('formatBlock'!=_0x2dd4c5['type'])return;const {data:_0x4ea33b}=_0x2dd4c5;if(!_0x4ea33b)return;let _0xabe8da,_0x25d0e0;switch(_0x4ea33b['commandName']){case'listStyle':_0xabe8da='*Change\x20to:*\x20%0',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da,o(_0x587a80,this['_getTranslationKeyForListStyle'](_0x4ea33b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xabe8da=_0x4ea33b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da)};break;case'listStart':_0xabe8da='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25d0e0={'type':'format','content':o(_0x587a80,_0xabe8da,_0x4ea33b['commandParams'][0x0]['startIndex'])};}return _0x25d0e0;});}['_getTranslationKeyForListStyle'](_0x15efad){return'ELEMENT_'+function(_0x2f4c2a){if(Se['includes'](_0x2f4c2a))return'bulleted';if(_e['includes'](_0x2f4c2a))return'numbered';return null;}(_0x15efad)['toUpperCase']()+'_LIST_'+_0x15efad['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x185c8e{['afterInit'](){const _0x5bf57c=this['editor'];_0x5bf57c['commands']['get']('emoji')&&_0x5bf57c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x185c8e{static get['requires'](){return[_0x7a9e08];}['init'](){const _0x1254a1=this['editor'],_0x1e4617=_0x1254a1['plugins']['get']('TrackChangesEditing'),_0x14418c=_0x1254a1['commands']['get']('enter');_0x1e4617['enableCommand']('enter',()=>{_0x1254a1['model']['change'](_0x5618cc=>{const _0x3c27a0=_0x1254a1['model']['document']['selection'],_0x26f0e5=_0x3c27a0['getFirstPosition'](),_0x46a9ae=_0x4ef168['fromRange'](_0x3c27a0['getFirstRange']());if(_0x14418c['enterBlock'](_0x5618cc)){const _0x21680d=_0x1254a1['model']['createPositionAt'](_0x26f0e5['parent']['nextSibling'],0x0),_0x58bde1=_0x5618cc['createRange'](_0x26f0e5,_0x21680d);_0x1e4617['markInsertion'](_0x58bde1);}else _0x5618cc['setSelection'](_0x5618cc['createRange'](_0x46a9ae['end']));_0x46a9ae['detach'](),_0x14418c['fire']('afterExecute',{'writer':_0x5618cc});});}),_0x1254a1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1254a1,'split'),{'priority':'high'}),_0x1254a1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x158400,_0x427563,_0x38e87b)=>{const _0x4de89f=_0x38e87b['mapper']['markerNameToElements'](_0x427563['markerName']);if(_0x4de89f){for(const _0x437799 of _0x4de89f)_0x437799['hasClass']('ck-suggestion-marker-split')&&(_0x38e87b['mapper']['unbindElementFromMarkerName'](_0x437799,_0x427563['markerName']),_0x38e87b['writer']['remove'](_0x437799));}},{'priority':'high'}),_0x1254a1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47e61c,_0x59f7e1,_0x44fc6e)=>{_0x44fc6e['options']['showSuggestionHighlights']&&De(_0x1254a1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x47e61c,_0x59f7e1,_0x44fc6e);},{'priority':'high'});}}class Q extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x154f67=this['editor']['plugins']['get']('TrackChangesEditing');_0x154f67['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x154f67['enableCommand']('findNext'),_0x154f67['enableCommand']('findPrevious'),_0x154f67['enableCommand']('replace'),_0x154f67['enableCommand']('replaceAll');}['handleFindCommand'](_0x57789d,_0x156973,_0x281681={}){const _0x3fd2f4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x57789d(_0x39ad9b=>{let _0x486b7b=('string'==typeof _0x156973?_0x3fd2f4['findByTextCallback'](_0x156973,_0x281681):_0x156973)(_0x39ad9b);Array['isArray'](_0x486b7b)&&(_0x486b7b={'results':_0x486b7b,'searchText':'string'==typeof _0x156973?_0x156973:''});const _0x278f13=_0x486b7b['results']['filter'](_0x22e0de=>!0x1===this['_isInDeletionRange'](_0x22e0de,_0x39ad9b['item']));return{..._0x486b7b,'results':_0x278f13};},_0x281681);}['_isInDeletionRange'](_0x40bcdd,_0x58a107){const _0x57c42f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58a107,_0x40bcdd['start']),this['editor']['model']['createPositionAt'](_0x58a107,_0x40bcdd['end']));for(const _0x21d79a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57c42f['getIntersection'](_0x21d79a['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x185c8e{['afterInit'](){const _0x3d7eb4=this['editor']['locale'],_0x47c43e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x37eedf,commandName:_0x3fe2ec}of eo)this['editor']['plugins']['has'](_0x37eedf)&&(_0x47c43e['enableDefaultAttributesIntegration'](_0x3fe2ec),_0x47c43e['registerInlineAttribute'](_0x3fe2ec));_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3d7eb4,'FORMAT_FONT_SIZE')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3d7eb4,'FORMAT_FONT_FAMILY')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3d7eb4,'FORMAT_FONT_COLOR')),_0x47c43e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3d7eb4,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5272bb=this['editor'],_0x21cec6=_0x5272bb['locale'];_0x5272bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2543d2=>{const _0xb6beea=_0x21cec6['t'];if('formatInline'!=_0x2543d2['type'])return;const {data:_0x24a2d3}=_0x2543d2;if(null!=_0x24a2d3){if('fontSize'==_0x24a2d3['commandName']){const _0x32af3d=_0x24a2d3['commandParams'][0x0]['value'];if(_0x32af3d){const _0x51ba06=_0xb6beea(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5781c2=>_0x5781c2['model']==_0x32af3d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20size:*\x20%0',_0x51ba06)};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x24a2d3['commandName']){const _0xeb8da=_0x24a2d3['commandParams'][0x0]['value'];return _0xeb8da?{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20family:*\x20%0',_0xeb8da)}:{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x24a2d3['commandName']){const _0xa8ccdb=_0x24a2d3['commandParams'][0x0]['value'];if(_0xa8ccdb){const _0x2570e8=_0x22f526(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2aa2ec=>_0x2aa2ec['model']==_0xa8ccdb);let _0x46c932=_0xa8ccdb,_0x1347e7='';return _0x2570e8&&(_0x46c932=_0x2570e8['label'],_0x1347e7=_0xb6beea(_0x46c932)['toLowerCase']()),{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20color:*\x20%0',_0x1347e7)['trim'](),'color':{'value':_0xa8ccdb,'title':_0x1347e7||_0x46c932}};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x24a2d3['commandName']){const _0x433c0c=_0x24a2d3['commandParams'][0x0]['value'];if(_0x433c0c){const _0x42eff4=_0x22f526(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3af1a9=>_0x3af1a9['model']==_0x433c0c);let _0x4134d2=_0x433c0c,_0x51deba='';return _0x42eff4&&(_0x4134d2=_0x42eff4['label'],_0x51deba=_0xb6beea(_0x4134d2)['toLowerCase']()),{'type':'format','content':o(_0x21cec6,'*Set\x20font\x20background\x20color:*\x20%0',_0x51deba)['trim'](),'color':{'value':_0x433c0c,'title':_0x51deba||_0x4134d2}};}return{'type':'format','content':o(_0x21cec6,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x185c8e{['afterInit'](){const _0x2f062b=this['editor'],_0x2baef9=_0x2f062b['plugins']['get']('TrackChangesEditing'),_0x5ecd28=_0x2f062b['commands']['get']('copyFormat'),_0x26261b=_0x2f062b['commands']['get']('pasteFormat');_0x5ecd28&&_0x26261b&&(_0x2baef9['enableDefaultAttributesIntegration']('pasteFormat'),_0x2baef9['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3876a9=this['editor'],_0x2c262c=_0x3876a9['locale'];_0x3876a9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3b1d71=>{if('formatBlock'!=_0x3b1d71['type']&&'formatInline'!=_0x3b1d71['type'])return;const {data:_0x3e9d0d}=_0x3b1d71;if(_0x3e9d0d&&'pasteFormat'===_0x3e9d0d['commandName']){const _0x3f5f45=[],_0x24d595=_0x3e9d0d['commandParams'][0x0];for(const [_0x5c63ce,_0x10690e]of Object['entries'](_0x24d595))_0x3f5f45['push'](ro(_0x3876a9,_0x5c63ce,_0x10690e));return _0x3f5f45['length']?{'type':'format','content':o(_0x2c262c,'*Set\x20format\x20to:*\x20%0',_0x3f5f45['join'](',\x20'))}:{'type':'format','content':o(_0x2c262c,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3cb958,_0x332cea,_0x5526f4){const _0x2c8d6f=_0x3cb958['locale']['t'],_0x2bc85c=_0x332cea['split'](/(?=[A-Z])/)['join']('\x20'),_0x2220ba=_0x2c8d6f(_0x2bc85c['charAt'](0x0)['toUpperCase']()+_0x2bc85c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5526f4)return _0x2220ba;if('fontColor'===_0x332cea||'fontBackgroundColor'===_0x332cea){const _0x21ba3c=_0x22f526(_0x3cb958['config']['get']('fontColor.colors'))['find'](_0x3422f0=>_0x3422f0['model']==_0x5526f4);return _0x2220ba+'\x20('+(_0x21ba3c?_0x2c8d6f(_0x21ba3c['label'])['toLowerCase']():_0x5526f4)+')';}if('fontSize'===_0x332cea&&isNaN(parseFloat(_0x5526f4))){const _0x26b733=_0x3cb958['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cb958['config']['get']('fontSize.options'))['find'](_0x15fc58=>_0x15fc58['model']==_0x5526f4);return _0x2220ba+'\x20('+(_0x26b733?_0x2c8d6f(_0x26b733['title'])['toLowerCase']():_0x5526f4)+')';}return _0x2220ba+'\x20('+_0x5526f4+')';}class Z extends _0x185c8e{['_headingOptions'];['afterInit'](){const _0x5dea4b=this['editor'];if(!_0x5dea4b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5dea4b['config']['get']('heading.options');const _0x45b679=_0x5dea4b['locale'],_0x316fd9=_0x5dea4b['plugins']['get']('TrackChangesEditing');_0x316fd9['enableDefaultAttributesIntegration']('heading');for(const _0x350b00 of this['_headingOptions'])'paragraph'!=_0x350b00['model']&&_0x316fd9['descriptionFactory']['registerElementLabel'](_0x350b00['model'],_0x494612=>{const _0x4469a4=this['_getHeadingLevel'](_0x350b00['model']);return null!==_0x4469a4?_0x483d22(_0x494612,_0x4469a4):_0x25c6bd(_0x494612,_0x350b00['title']);});function _0x483d22(_0x377f85,_0x4fef8e){return o(_0x45b679,'ELEMENT_HEADING',[_0x377f85,_0x4fef8e]);}function _0x25c6bd(_0x188275,_0x5ccb5a){return o(_0x45b679,'ELEMENT_HEADING_CUSTOM',[_0x188275,_0x5ccb5a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x430b0e=this['editor'],_0x1540bb=_0x430b0e['locale'];function _0x8dd15c(_0x48226a,_0x4a3361){return o(_0x1540bb,'ELEMENT_HEADING_CUSTOM',[_0x48226a,_0x4a3361]);}_0x430b0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x61850=>{if('formatBlock'!=_0x61850['type'])return;const {data:_0x474d23}=_0x61850;if(_0x474d23&&'heading'==_0x474d23['commandName']){const _0x544f53=_0x474d23['commandParams'][0x0]['value'],_0x28d27d=this['_getHeadingLevel'](_0x544f53);if(null!==_0x28d27d)return{'type':'format','content':o(_0x1540bb,'*Change\x20to:*\x20%0',(_0xd97921=0x1,_0x5700ec=_0x28d27d,o(_0x1540bb,'ELEMENT_HEADING',[_0xd97921,_0x5700ec])))};const _0x300ba0=this['_headingOptions']['find'](_0xbf62d0=>_0xbf62d0['model']===_0x544f53)['title'];return{'type':'format','content':o(_0x1540bb,'*Change\x20to:*\x20%0',_0x8dd15c(0x1,_0x300ba0))};}var _0xd97921,_0x5700ec;});}['_getHeadingLevel'](_0x463dec){const _0x3ce2f8=_0x463dec['match'](/^heading(\d+)/);if(_0x3ce2f8)return _0x3ce2f8[0x1];const _0x5e9257=this['_headingOptions']?.['find'](_0xf72aef=>_0xf72aef['model']==_0x463dec);if(_0x5e9257&&_0x5e9257['view']){const _0xdb27e2=_0x5e9257['view'],_0x406b7d=(_0xdb27e2['name']??_0xdb27e2)['match'](/^h(\d+)/);if(_0x406b7d)return _0x406b7d[0x1];}return null;}}class tt extends _0x185c8e{['afterInit'](){const _0x5cf17d=this['editor'];if(!_0x5cf17d['plugins']['has']('HighlightEditing'))return;const _0x57632c=_0x5cf17d['plugins']['get']('TrackChangesEditing'),_0x4b8635=_0x5cf17d['locale'];_0x57632c['enableDefaultAttributesIntegration']('highlight'),_0x57632c['registerInlineAttribute']('highlight'),_0x57632c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4b8635,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2360de=this['editor'],_0x5d5e38=_0x2360de['locale'];_0x2360de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d5bc=>{if('formatInline'!=_0x58d5bc['type'])return;const {data:_0x68081f}=_0x58d5bc;if(_0x68081f&&'highlight'==_0x68081f['commandName']){const _0xe56534=_0x5d5e38['t'],_0x30540d=_0x68081f['commandParams'][0x0]['value'];if(_0x30540d){const _0x2d71d1=_0x2360de['config']['get']('highlight.options')['find'](_0x342e23=>_0x342e23['model']==_0x30540d),_0x16b33a=_0xe56534(_0x2d71d1['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d5e38,'*Set\x20highlight:*\x20%0',_0x16b33a),'color':{'value':_0x2d71d1['color'],'title':_0x2d71d1['title']}};}return{'type':'format','content':o(_0x5d5e38,'*Remove\x20highlight*',o(_0x5d5e38,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x185c8e{['afterInit'](){const _0x24b618=this['editor'];if(!_0x24b618['plugins']['has']('HorizontalLineEditing'))return;_0x24b618['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x449781=_0x24b618['plugins']['get']('TrackChangesEditing'),_0x1413dc=_0x24b618['locale'];_0x449781['descriptionFactory']['registerElementLabel']('horizontalLine',_0x214693=>o(_0x1413dc,'ELEMENT_HORIZONTAL_LINE',_0x214693)),_0x24b618['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4774d9,{writer:_0x36982f,options:_0x4ef6ad})=>{if(!_0x4ef6ad['showSuggestionHighlights'])return null;const _0x2764e8=_0x36982f['createContainerElement']('div'),_0x46e352=_0x36982f['createEmptyElement']('hr');return _0x36982f['addClass']('ck-horizontal-line',_0x2764e8),_0x36982f['insert'](_0x36982f['createPositionAt'](_0x2764e8,0x0),_0x46e352),_0x2764e8;},'converterPriority':'high'});}}class nt extends _0x185c8e{['afterInit'](){const _0x26b0e8=this['editor'];if(!_0x26b0e8['plugins']['has']('HtmlEmbed'))return;const _0x390f8b=_0x26b0e8['plugins']['get']('TrackChangesEditing'),_0x3883d0=_0x26b0e8['locale'];_0x390f8b['descriptionFactory']['registerElementLabel']('rawHtml',_0x20bb84=>o(_0x3883d0,'ELEMENT_HTML_EMBED',_0x20bb84)),_0x390f8b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x390f8b['registerBlockAttribute']('value'),_0x390f8b['descriptionFactory']['registerDescriptionCallback'](_0x88b96a=>{if('attribute'!=_0x88b96a['type'])return;const {data:_0x2029b7}=_0x88b96a;if(_0x2029b7&&'value'==_0x2029b7['key']&&_0x88b96a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x11ef06=o(_0x3883d0,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3883d0,'*Change\x20%0\x20content*',_0x11ef06)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x254e04=this['editor'],_0x2896be=_0x254e04['locale'];_0x254e04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baf99=>{if('formatBlock'!=_0x1baf99['type'])return;const {data:_0x11110a}=_0x1baf99;if(_0x11110a&&'htmlEmbed'==_0x11110a['commandName']){const _0x3ed1ca=o(_0x2896be,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2896be,'*Change\x20%0\x20content*',_0x3ed1ca)};}});}}class et extends _0x185c8e{['afterInit'](){const _0x3fd980=this['editor'];if(!_0x3fd980['plugins']['has']('ImageEditing'))return;const _0x509c3d=_0x3fd980['plugins']['get']('TrackChangesEditing'),_0x12ff9c=_0x3fd980['plugins']['get']('ImageUtils'),_0x4fe167=_0x3fd980['locale'];_0x509c3d['enableCommand']('insertImage'),_0x509c3d['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c0d49=>o(_0x4fe167,'ELEMENT_IMAGE',_0x2c0d49)),_0x509c3d['descriptionFactory']['registerElementLabel']('imageInline',_0x15dce2=>o(_0x4fe167,'ELEMENT_INLINE_IMAGE',_0x15dce2)),_0x509c3d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4fe167,'ELEMENT_CAPTION')),_0x3fd980['plugins']['has']('ImageUploadEditing')&&_0x509c3d['enableCommand']('uploadImage'),_0x3fd980['plugins']['has']('ImageBlockEditing')&&_0x3fd980['plugins']['has']('ImageInlineEditing')&&(_0x509c3d['enableCommand']('imageTypeInline',(_0x32fcef,_0x3a8f92)=>{const _0x379e79=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']);_0x3fd980['model']['change'](()=>{_0x509c3d['markBlockFormat'](_0x379e79,{'commandName':'imageTypeInline','commandParams':[_0x3a8f92]},[],'convertBlockImageToInline');});}),_0x509c3d['enableCommand']('imageTypeBlock',(_0x45c05c,_0x240b07)=>{_0x3fd980['model']['change'](_0x12b525=>{let _0x389c2f=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x75878f=_0x12b525['createRangeOn'](_0x389c2f);const _0x4fdb74=_0x2cbf43['fromPosition'](_0x75878f['start'],'toPrevious'),_0x2c9b8c=_0x2cbf43['fromPosition'](_0x75878f['end'],'toNext');_0x509c3d['forceDefaultExecution'](()=>_0x45c05c(_0x240b07)),_0x389c2f=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x75878f=_0x12b525['createRangeOn'](_0x389c2f);const _0x577bf8=_0x12b525['createRange'](_0x4fdb74,_0x2c9b8c);_0x4fdb74['detach'](),_0x2c9b8c['detach'](),_0x509c3d['markBlockFormat'](_0x389c2f,{'commandName':'imageTypeInline','commandParams':[_0x240b07]},[],'convertInlineImageToBlock'),_0x577bf8['start']['isBefore'](_0x75878f['start'])&&_0x509c3d['markInsertion'](_0x12b525['createRange'](_0x577bf8['start'],_0x75878f['start']),'convertInlineImageToBlock'),_0x75878f['end']['isBefore'](_0x577bf8['end'])&&_0x509c3d['markInsertion'](_0x12b525['createRange'](_0x75878f['end'],_0x577bf8['end']),'convertInlineImageToBlock');});}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x509c3d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x33fd9a])=>{const _0xe56ec9=_0x509c3d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x258170=_0x33fd9a['start'],_0x5dab54=_0x33fd9a['end'];const _0x2869d2=_0x3fd980['model']['schema']['getNearestSelectionRange'](_0x258170,'backward'),_0x5d6d03=_0x3fd980['model']['schema']['getNearestSelectionRange'](_0x5dab54,'forward');_0x2869d2['isCollapsed']&&(_0x258170=_0x2869d2['start']),_0x5d6d03['isCollapsed']&&(_0x5dab54=_0x5d6d03['end']),_0xe56ec9([_0x3fd980['model']['createRange'](_0x258170,_0x5dab54)]);}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x7c8912),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x7c8912)),_0x3fd980['plugins']['has']('ImageCaptionEditing')&&(_0x509c3d['enableCommand']('toggleImageCaption',(_0x3a1053,_0x15caf7)=>{const _0x1afdab=_0x3fd980['plugins']['get']('ImageCaptionUtils');let _0xce8ab9=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x4434dd=_0x1afdab['getCaptionFromImageModelElement'](_0xce8ab9);_0x3fd980['model']['change'](()=>{if(_0x4434dd)return void _0x509c3d['markDeletion'](_0x3fd980['model']['createRangeOn'](_0x4434dd));const _0x56167d=_0x12ff9c['isBlockImage'](_0xce8ab9);_0x3a1053(_0x15caf7),_0xce8ab9=_0x12ff9c['getClosestSelectedImageElement'](_0x3fd980['model']['document']['selection']),_0x4434dd=_0x1afdab['getCaptionFromImageModelElement'](_0xce8ab9),_0x509c3d['markInsertion'](_0x3fd980['model']['createRangeOn'](_0x4434dd),_0x56167d?null:'imageCaption');});}),_0x509c3d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x7c8912));const _0x2eb3de=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2a7f5b(_0x1bcc66,_0x25ead0){const _0xbd9f1e=_0x2eb3de['findIndex'](({type:_0x2217e3,subType:_0x1502d1})=>_0x1bcc66['type']==_0x2217e3&&_0x1bcc66['subType']==_0x1502d1),_0x370a2f=_0x2eb3de['findIndex'](({type:_0x5c7061,subType:_0xe2e249})=>_0x25ead0['type']==_0x5c7061&&_0x25ead0['subType']==_0xe2e249);if(_0xbd9f1e<0x0||_0x370a2f<0x0)return!0x1;const _0x3cb5d6=_0x1bcc66['getFirstRange'](),_0x4517af=_0x25ead0['getFirstRange']();if((0x0==_0xbd9f1e||0x1==_0xbd9f1e)&&0x2==_0x370a2f&&_0x3cb5d6['isIntersecting'](_0x4517af))return!0x0;if(0x2==_0xbd9f1e&&0x3==_0x370a2f){const _0x476920=_0x509c3d['_findSuggestions'](_0x3cb5d6,'insertion')['filter'](({suggestion:_0x2ed3d1,meta:_0x85eed0})=>_0x85eed0['isOwn']&&'convertInlineImageToBlock'==_0x2ed3d1['subType']);if(_0x476920['length']>0x1&&_0x4517af['end']['isEqual'](_0x3cb5d6['start']))return!0x0;if(0x1==_0x476920['length']&&(_0x3cb5d6['start']['isEqual'](_0x4517af['end'])||_0x3cb5d6['end']['isEqual'](_0x4517af['start'])))return!0x0;}if(0x3==_0xbd9f1e&&0x3==_0x370a2f&&_0x3cb5d6['start']['isBefore'](_0x4517af['start'])){const _0xcba2c2=_0x3cb5d6['end']['nodeAfter'],_0x14bcf0=_0x4517af['start']['nodeBefore'];return _0x12ff9c['isBlockImage'](_0xcba2c2)&&_0xcba2c2===_0x14bcf0;}return!0x1;}function _0x7c8912(_0x50ef3e,_0x183e79){return _0x2a7f5b(_0x50ef3e,_0x183e79)?[_0x50ef3e,_0x183e79]:_0x2a7f5b(_0x183e79,_0x50ef3e)?[_0x183e79,_0x50ef3e]:null;}_0x3fd980['plugins']['has']('ImageResize')&&(_0x509c3d['enableDefaultAttributesIntegration']('resizeImage'),_0x509c3d['registerBlockAttribute']('resizedWidth'),_0x509c3d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4fe167,'FORMAT_IMAGE_SIZE'))),_0x3fd980['plugins']['has']('ImageTextAlternativeEditing')&&(_0x509c3d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x509c3d['registerBlockAttribute']('alt')),_0x3fd980['plugins']['has']('PictureEditing')&&(_0x509c3d['registerBlockAttribute']('sources'),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x5cebd7=>{if('attribute'!=_0x5cebd7['type'])return;const {data:_0x31624b}=_0x5cebd7;return _0x31624b&&'sources'==_0x31624b['key']?{'type':'format','content':''}:void 0x0;})),_0x3fd980['plugins']['has']('ImageSizeAttributes')&&(_0x509c3d['registerBlockAttribute']('width'),_0x509c3d['registerBlockAttribute']('height'),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x3f1e9c=>{if('attribute'!=_0x3f1e9c['type'])return;const {data:_0x13d646}=_0x3f1e9c;return!_0x13d646||'width'!=_0x13d646['key']&&'height'!=_0x13d646['key']?void 0x0:{'type':'format','content':''};})),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x40a71f=>{if(!!_0x2eb3de['find'](({type:_0x266984,subType:_0x11c712})=>_0x40a71f['type']==_0x266984&&_0x40a71f['subType']==_0x11c712))return _0x40a71f['previous']?{}:void 0x0;}),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x375a63=>{if('insertion'==_0x375a63['type']||'deletion'==_0x375a63['type']){const _0x88ebf3=_0x375a63['getContainedElement']();if(_0x88ebf3&&_0x88ebf3['is']('element','caption'))return{'type':'insertion'==_0x375a63['type']?'addObject':'removeObject','element':_0x88ebf3,'quantity':0x1};}}),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x289622=>'formatBlock'==_0x289622['type']&&'convertInlineImageToBlock'==_0x289622['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x289622['type']&&'convertBlockImageToInline'==_0x289622['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x509c3d['descriptionFactory']['registerDescriptionCallback'](_0x433aed=>{if('attribute'!=_0x433aed['type'])return;const {data:_0x7271bd}=_0x433aed;if(!_0x7271bd||'alt'!=_0x7271bd['key'])return;const _0x3a2112=_0x7271bd['newValue'];return _0x3a2112?{'type':'format','content':o(_0x4fe167,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a2112+'\x22')}:{'type':'format','content':o(_0x4fe167,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48b7e0=this['editor'],_0x50da0a=_0x48b7e0['locale'];_0x48b7e0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10a187=>{if('formatBlock'!=_0x10a187['type']&&'formatInline'!=_0x10a187['type'])return;const {data:_0x24ab34}=_0x10a187;if(_0x24ab34){if('imageTextAlternative'==_0x24ab34['commandName']){const _0x1bb63b=_0x24ab34['commandParams'][0x0]['newValue'];return _0x1bb63b?{'type':'format','content':o(_0x50da0a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1bb63b+'\x22')}:{'type':'format','content':o(_0x50da0a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x24ab34['commandName']){const _0x34df3c=_0x24ab34['commandParams'][0x0]['width'];return _0x34df3c?{'type':'format','content':o(_0x50da0a,'*Set\x20image\x20width:*\x20%0',_0x34df3c)}:{'type':'format','content':o(_0x50da0a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xbc00c9=this['editor']['locale'],_0xbac585=this['editor']['plugins']['get']('TrackChangesEditing');_0xbac585['enableDefaultAttributesIntegration']('replaceImageSource'),_0xbac585['registerBlockAttribute']('src'),_0xbac585['descriptionFactory']['registerDescriptionCallback'](_0xe414da=>{if('attribute'!=_0xe414da['type'])return;const {data:_0x209057}=_0xe414da;return _0x209057&&'src'==_0x209057['key']?_0x209057['newValue']&&_0x209057['oldValue']?{'type':'format','content':o(_0xbc00c9,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13dcd3=this['editor']['plugins']['get']('TrackChangesEditing');_0x13dcd3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13dcd3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13dcd3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13dcd3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34a928=this['editor'],_0x1a5643=_0x34a928['locale'];_0x34a928['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4933f6=>{if('formatBlock'!=_0x4933f6['type']&&'formatInline'!=_0x4933f6['type'])return;const {data:_0x1c6420}=_0x4933f6;if(!_0x1c6420||'replaceImageSource'!=_0x1c6420['commandName'])return;return{'type':'format','content':o(_0x1a5643,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x185c8e{['afterInit'](){const _0x475928=this['editor'];if(!_0x475928['plugins']['has']('ImageStyleEditing'))return;const _0x4f71ec=_0x475928['plugins']['get']('TrackChangesEditing'),_0x4ba4a4=_0x475928['plugins']['get']('ImageUtils'),_0x581e2b={};_0x4f71ec['enableCommand']('imageStyle',(_0x4bf3c3,_0x43d049)=>{const _0x959cae=_0x475928['plugins']['get']('Users')['me'],_0x8d5b8f=_0x475928['commands']['get']('imageStyle');let _0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),_0x1dcf4d=_0x475928['model']['createRangeOn'](_0x198851),_0x2e8c4c=_0x8d5b8f['value'];if(_0x2e8c4c==_0x43d049['value'])return;const _0x54c1c9={'commandName':'imageStyle','commandParams':[_0x43d049],'formatGroupId':_0x510ab3()};_0x475928['model']['change'](()=>{if(_0x4f71ec['getSuggestions']()['filter'](_0x3c33f9=>_0x3c33f9['isInContent']&&_0x959cae==_0x3c33f9['author']&&('formatBlock'==_0x3c33f9['type']||'formatInline'==_0x3c33f9['type'])&&('imageStylePreApply'==_0x3c33f9['subType']||'imageStylePostApply'==_0x3c33f9['subType'])&&_0x3c33f9['getFirstRange']()['isEqual'](_0x1dcf4d))['forEach'](_0x2b8790=>_0x4f71ec['discardSuggestion'](_0x2b8790['head'])),_0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),_0x1dcf4d=_0x475928['model']['createRangeOn'](_0x198851),_0x8d5b8f['refresh'](),_0x475928['commands']['get']('imageTypeInline')['refresh'](),_0x475928['commands']['get']('imageTypeBlock')['refresh'](),_0x2e8c4c=_0x8d5b8f['value'],_0x2e8c4c!=_0x43d049['value'])return _0x4ba4a4['isInlineImage'](_0x198851)&&_0x8d5b8f['shouldConvertImageType'](_0x43d049['value'],_0x198851)?(_0x4bf3c3({..._0x43d049,'setImageSizes':!0x1}),_0x198851=_0x4ba4a4['getClosestSelectedImageElement'](_0x475928['model']['document']['selection']),void _0x4f71ec['markBlockFormat'](_0x198851,{..._0x54c1c9,'commandReversedParams':[{'value':_0x2e8c4c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4ba4a4['isBlockImage'](_0x198851)?_0x4f71ec['markBlockFormat'](_0x198851,_0x54c1c9,[],'imageStylePostApply'):_0x4f71ec['markInlineFormat'](_0x1dcf4d,_0x54c1c9,'imageStylePostApply'));});});for(const _0x437606 of _0x475928['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x581e2b[_0x437606['name']]=_0x437606['title']['toLowerCase']();_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x52dd35])=>{_0x4ba4a4['setImageNaturalSizeAttributes'](_0x52dd35['getContainedElement']());}),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4f1a27,_0x4e41ad)=>{_0x4f71ec['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4f1a27,{'commandName':_0x4e41ad['commandName'],'commandParams':_0x4e41ad['commandReversedParams']});}),_0x4f71ec['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x9e8a7d,_0x345ba5){if(_0x4c62a3(_0x9e8a7d,_0x345ba5))return[_0x9e8a7d,_0x345ba5];if(_0x4c62a3(_0x345ba5,_0x9e8a7d))return[_0x345ba5,_0x9e8a7d];return null;});const _0xc91cf5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4c62a3(_0x563e56,_0x8b1598){const _0x46240b=_0xc91cf5['findIndex'](({type:_0x2e257a,subType:_0x294102})=>_0x563e56['type']==_0x2e257a&&_0x563e56['subType']==_0x294102),_0x36d703=_0xc91cf5['findIndex'](({type:_0x8c3abd,subType:_0x2176aa})=>_0x8b1598['type']==_0x8c3abd&&_0x8b1598['subType']==_0x2176aa);if(_0x46240b<0x0||_0x36d703<0x0)return!0x1;const _0x3fc276=_0x563e56['getFirstRange'](),_0x1770c6=_0x8b1598['getFirstRange']();if((0x0==_0x46240b||0x1==_0x46240b)&&0x2==_0x36d703&&_0x3fc276['isIntersecting'](_0x1770c6))return!0x0;if(0x2==_0x46240b&&0x3==_0x36d703){const _0x46a499=_0x4f71ec['_findSuggestions'](_0x3fc276,'insertion')['filter'](({suggestion:_0x6bf297,meta:_0xda3308})=>_0xda3308['isOwn']&&'convertInlineImageToBlock'==_0x6bf297['subType']);if(_0x46a499['length']>0x1&&_0x1770c6['end']['isEqual'](_0x3fc276['start']))return!0x0;if(0x1==_0x46a499['length']&&(_0x3fc276['start']['isEqual'](_0x1770c6['end'])||_0x3fc276['end']['isEqual'](_0x1770c6['start'])))return!0x0;}if(0x3==_0x46240b&&0x3==_0x36d703&&_0x3fc276['start']['isBefore'](_0x1770c6['start'])){const _0x392e49=_0x3fc276['end']['nodeAfter'],_0x325eea=_0x1770c6['start']['nodeBefore'];return _0x4ba4a4['isBlockImage'](_0x392e49)&&_0x392e49===_0x325eea;}return!0x1;}_0x475928['model']['document']['registerPostFixer'](()=>{let _0xeb3bb8=!0x1;const _0x29eeec=Array['from'](_0x475928['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b1bc3,data:_0x22d35c}of _0x29eeec){const {group:_0x3326b1,type:_0x5a106f,subType:_0x555675,id:_0x336450}=_0x4f71ec['_splitMarkerName'](_0x1b1bc3);if('suggestion'==_0x3326b1&&_0x4f71ec['hasSuggestion'](_0x336450)){if('formatBlock'==_0x5a106f&&('imageStylePreApply'==_0x555675||'imageStylePostApply'==_0x555675)){const _0x54a78f=_0x4f71ec['getSuggestion'](_0x336450);if(_0x22d35c['newRange']){const _0x45092b=_0x54a78f['getFirstRange']()['getContainedElement']();if(_0x4ba4a4['isBlockImage'](_0x45092b))continue;_0x4f71ec['discardSuggestion'](_0x54a78f),_0xeb3bb8=!0x0;}}if('insertion'==_0x5a106f&&'imageCaption'==_0x555675&&!_0x22d35c['newRange']){const _0x151ce2=_0x4f71ec['getSuggestion'](_0x336450);_0x151ce2['next']&&_0x151ce2['next']['isInContent']&&(_0x4f71ec['discardSuggestion'](_0x151ce2['next']),_0xeb3bb8=!0x0);}}}return _0xeb3bb8;}),this['_registerLegacyDescription'](_0x581e2b);}['_registerLegacyDescription'](_0x3a6024){const _0x189d22=this['editor'],_0x1e6ffd=_0x189d22['locale'];_0x189d22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x365b28=>{if('formatBlock'!=_0x365b28['type']&&'formatInline'!=_0x365b28['type'])return;const {data:_0x1e4cd6}=_0x365b28;if(!_0x1e4cd6||'imageStyle'!=_0x1e4cd6['commandName'])return;const _0x4b70ef=_0x1e4cd6['commandParams'][0x0]['value'];return _0x30b72b('side'===_0x4b70ef?o(_0x1e6ffd,'FORMAT_SIDE_IMAGE'):_0x3a6024[_0x4b70ef]||_0x4b70ef);function _0x30b72b(_0x5ab04e){return{'type':'format','content':o(_0x1e6ffd,'*Format:*\x20%0',_0x5ab04e)};}});}}class rt extends _0x185c8e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x310fdc){super(_0x310fdc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x117f5d=this['editor'],_0x4f360a=_0x117f5d['commands']['get']('importWord'),_0x123762=_0x117f5d['commands']['get']('trackChanges');_0x4f360a&&(_0x4f360a['on']('execute',(_0x1f8c6c,[,_0x48ccc3])=>{this['_trackChangesValueDuringImport']=_0x123762['value'],_0x48ccc3['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4f360a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4f360a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x123762['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x117f5d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1a6af1,_0x27ae83){const {suggestions:_0x107518}=_0x27ae83,_0x450323=this['editor']['commands']['get']('trackChanges'),_0x870722=_0x450323['value'];this['_trackChangesValueDuringImport']!==_0x870722&&(_0x450323['execute'](),this['_trackChangesExecuted']=!0x0),_0x107518&&_0x107518['forEach'](({id:_0x556cec,type:_0x398ff6,author:_0x4f2e86,created_at:_0x4bd6b2})=>{const _0x3e8c7d={'id':_0x556cec,'type':_0x398ff6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4f2e86,'createdAt':_0x4bd6b2?new Date(_0x4bd6b2):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e8c7d);});}}class at extends _0x185c8e{['afterInit'](){const _0x39878f=this['editor'],_0x4a4f5f=_0x39878f['plugins']['get']('TrackChangesEditing');if(_0x39878f['plugins']['has']('IndentEditing')&&(_0x4a4f5f['enableCommand']('indent'),_0x4a4f5f['enableCommand']('outdent')),_0x39878f['plugins']['has']('IndentBlock')){for(const _0x34350a of['indentBlock','outdentBlock'])_0x4a4f5f['enableDefaultAttributesIntegration'](_0x34350a);}const _0x44d8c5=_0x39878f['locale'];_0x4a4f5f['registerBlockAttribute']('blockIndent'),_0x4a4f5f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x44d8c5,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ad386=this['editor'],_0x23acd6=_0x1ad386['locale'],_0xdf9179=_0x1ad386['plugins']['get']('TrackChangesEditing');_0xdf9179['descriptionFactory']['registerDescriptionCallback'](_0x462080=>{if('formatBlock'!=_0x462080['type'])return;const {data:_0x2531eb}=_0x462080;if(!_0x2531eb)return;if('indentBlock'!=_0x2531eb['commandName']&&'outdentBlock'!=_0x2531eb['commandName'])return;const _0x2fc43d=_0x462080['getItems']()[0x0],_0x302bcb=_0xdf9179['descriptionFactory']['getItemLabel'](_0x2fc43d);return'indentBlock'==_0x2531eb['commandName']?{'type':'format','content':o(_0x23acd6,'*Indent:*\x20%0',_0x302bcb)}:'outdentBlock'==_0x2531eb['commandName']?{'type':'format','content':o(_0x23acd6,'*Outdent:*\x20%0',_0x302bcb)}:void 0x0;});}}class ct extends _0x185c8e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x185c8e{['afterInit'](){const _0x5fa867=this['editor'];if(!_0x5fa867['plugins']['has']('LinkEditing'))return;const _0x46e275=_0x5fa867['plugins']['get']('TrackChangesEditing'),_0x26b6b4=_0x5fa867['commands']['get']('link');_0x46e275['enableDefaultAttributesIntegration']('link'),_0x46e275['enableDefaultAttributesIntegration']('unlink'),_0x46e275['registerInlineAttribute']('linkHref');for(const _0x304b0e of _0x26b6b4['manualDecorators'])_0x46e275['registerInlineAttribute'](_0x304b0e['id']),_0x46e275['descriptionFactory']['registerAttributeLabel'](_0x304b0e['id'],'link\x20('+_0x304b0e['label']['toLowerCase']()+')');_0x46e275['descriptionFactory']['registerDescriptionCallback'](_0x20a602=>{if('attribute'!=_0x20a602['type'])return;const {data:_0x550278}=_0x20a602;if(!_0x550278||'linkHref'!=_0x550278['key'])return;const _0x4f7995=_0x550278['newValue'],_0x2ececa=_0x5fa867['locale'];return{'type':'format','content':null==_0x4f7995?o(_0x2ececa,'*Remove\x20link*'):o(_0x2ececa,'*Set\x20link:*\x20%0','\x22'+_0x4f7995+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b8450=this['editor'],_0x516959=_0x1b8450['locale'];_0x1b8450['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ccc8d=>{if('formatInline'!=_0x2ccc8d['type'])return;const {data:_0x13b5a5}=_0x2ccc8d;if(_0x13b5a5){if('link'==_0x13b5a5['commandName']){const _0x314cbc=_0x13b5a5['commandParams'][0x0];return{'type':'format','content':o(_0x516959,'*Set\x20link:*\x20%0','\x22'+_0x314cbc+'\x22')};}return'unlink'==_0x13b5a5['commandName']?{'type':'format','content':o(_0x516959,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x185c8e{['afterInit'](){const _0x5ca01c=this['editor'],_0x427254=_0x5ca01c['locale'];if(!_0x5ca01c['plugins']['has']('LegacyListEditing'))return;const _0x59ed78=_0x5ca01c['plugins']['get']('TrackChangesEditing'),_0x6f925c=_0x5ca01c['plugins']['has']('LegacyTodoListEditing');function _0xbd24a1(_0x4bf064){return()=>{const _0xdfe131=_0x5ca01c['model']['document']['selection'],_0x926f52=_0x5ca01c['commands']['get'](_0x4bf064);if(_0x926f52['value'])return void _0x5ca01c['execute']('paragraph',{});const _0x16ea16=_0x4bf064['slice'](0x0,-0x4),_0x5bb2e4=function(_0x75f0d0,_0x54e543,_0x4a05d4){let _0x2371c4=Array['from'](_0x75f0d0)['filter'](_0x144919=>function(_0x42d009,_0x46d700){return _0x46d700['checkChild'](_0x42d009['parent'],'listItem')&&!_0x46d700['isObject'](_0x42d009);}(_0x144919,_0x4a05d4));_0x2371c4=_0x2371c4['filter'](_0x1498a3=>!_0x1498a3['is']('element','listItem')||_0x1498a3['getAttribute']('listType')!=_0x54e543);const _0x2f88f5=new Set();for(const _0x2e04fb of _0x2371c4)_0x2e04fb['is']('element','listItem')?_0x2f88f5['add'](Le(_0x2e04fb)):_0x2f88f5['add'](_0x2e04fb);return Array['from'](_0x2f88f5);}(_0xdfe131['getSelectedBlocks'](),_0x16ea16,_0x5ca01c['model']['schema']);_0x5ca01c['model']['change'](()=>{for(const _0x318b8e of _0x5bb2e4)_0x59ed78['markBlockFormat'](_0x318b8e,{'commandName':_0x4bf064,'commandParams':[{'forceValue':!_0x926f52['value']}],'formatGroupId':'blockName'},Ee(_0x318b8e));});};}function _0x34ff20(_0xcc9ee4){return()=>{const _0x1d33a4=function(_0x8b3b9){let _0x31e5f4=Array['from'](_0x8b3b9);const _0x30db16=_0x31e5f4['findIndex'](_0x1997f8=>'listItem'!=_0x1997f8['name']);return _0x30db16>-0x1&&(_0x31e5f4=_0x31e5f4['slice'](0x0,_0x30db16)),_0x31e5f4;}(_0x5ca01c['model']['document']['selection']['getSelectedBlocks']()),_0x63ecf8=_0x5ca01c['model']['createRange'](_0x5ca01c['model']['createPositionAt'](_0x1d33a4[0x0],'before'),_0x5ca01c['model']['createPositionAt'](_0x1d33a4[_0x1d33a4['length']-0x1],'end'));_0x5ca01c['model']['change'](()=>{_0x59ed78['markBlockFormat'](_0x63ecf8,{'commandName':_0xcc9ee4,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1ecc18){const _0x5ed44e=new Set();for(const _0x40aff9 of _0x1ecc18){let _0x26764c=_0x40aff9['nextSibling'];for(;_0x26764c&&_0x26764c['getAttribute']('listIndent')>_0x40aff9['getAttribute']('listIndent');)_0x5ed44e['add'](_0x26764c),_0x26764c=_0x26764c['nextSibling'];}return Array['from'](_0x5ed44e);}(_0x1d33a4));});};}_0x59ed78['enableCommand']('numberedList',_0xbd24a1('numberedList')),_0x59ed78['enableCommand']('bulletedList',_0xbd24a1('bulletedList')),_0x6f925c&&_0x59ed78['enableCommand']('todoList',_0xbd24a1('todoList')),_0x59ed78['enableCommand']('indentList',_0x34ff20('indentList')),_0x59ed78['enableCommand']('outdentList',_0x34ff20('outdentList')),_0x6f925c&&_0x59ed78['enableCommand']('checkTodoList',()=>{const _0x1d91fb=_0x5ca01c['commands']['get']('checkTodoList'),_0x23b8e8=Array['from'](_0x1d91fb['_selectedElements']);_0x23b8e8['filter'](_0x4bb589=>_0x4bb589['getAttribute']('todoListChecked')!=_0x1d91fb['value']),_0x5ca01c['model']['change'](()=>{for(const _0x4d7944 of _0x23b8e8)_0x59ed78['markBlockFormat'](_0x4d7944,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1d91fb['value']}]});});}),_0x59ed78['descriptionFactory']['registerElementLabel']('listItem',_0x58bdb5=>o(_0x427254,'ELEMENT_LIST_ITEM',_0x58bdb5)),_0x59ed78['descriptionFactory']['registerDescriptionCallback'](_0x481bc3=>{if('formatBlock'!=_0x481bc3['type']&&'formatInline'!=_0x481bc3['type'])return;const {data:_0x4cbc1d}=_0x481bc3;if(_0x4cbc1d){if('numberedList'==_0x4cbc1d['commandName']||'bulletedList'==_0x4cbc1d['commandName']||'todoList'==_0x4cbc1d['commandName'])switch(_0x4cbc1d['commandName']['replace']('List','')){case'bulleted':return _0x2dbf06(o(_0x427254,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2dbf06(o(_0x427254,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2dbf06(o(_0x427254,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4cbc1d['commandName'])return{'type':'format','content':o(_0x427254,'*Indent:*\x20%0',o(_0x427254,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4cbc1d['commandName'])return{'type':'format','content':o(_0x427254,'*Outdent:*\x20%0',o(_0x427254,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4cbc1d['commandName'])return _0x4cbc1d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x427254,'*Check\x20item*')}:{'type':'format','content':o(_0x427254,'*Uncheck\x20item*')};}function _0x2dbf06(_0x3f0be9){return{'type':'format','content':o(_0x427254,'*Change\x20to:*\x20%0',_0x3f0be9)};}});}}function Le(_0x13418a){const _0x5d4364=_0x13418a['getAttribute']('listIndent');if(0x0==_0x5d4364)return _0x13418a;let _0x4f7fc1=_0x13418a;for(;_0x13418a['previousSibling']&&_0x13418a['previousSibling']['is']('element','listItem');){const _0x4ed6f8=_0x13418a['previousSibling']['getAttribute']('listIndent');if(_0x4ed6f8==_0x5d4364)_0x4f7fc1=_0x13418a['previousSibling'];else{if(_0x4ed6f8<_0x5d4364)break;}_0x13418a=_0x13418a['previousSibling'];}return _0x4f7fc1;}function Ee(_0x298a89){const _0x219f6c=[];if(_0x298a89['is']('element','listItem')&&_0x298a89['getAttribute']('listIndent')>0x0){let _0x4de18c=_0x298a89['nextSibling'];for(;_0x4de18c&&'listItem'==_0x4de18c['name']&&_0x4de18c['getAttribute']('listIndent')==_0x298a89['getAttribute']('listIndent');)_0x219f6c['push'](_0x4de18c),_0x4de18c=_0x4de18c['nextSibling'];}return _0x219f6c;}class ht extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x344174=this['editor']['config']['get']('list.properties'),_0x1ea49b=this['editor']['plugins']['get']('TrackChangesEditing');_0x344174['styles']&&_0x1ea49b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x344174['reversed']&&_0x1ea49b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x344174['startIndex']&&_0x1ea49b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1ea49b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x351dda,_0xba0cb4={}){const _0x10915b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2672e4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x10915b['markMultiRangeBlockFormat'](_0x2672e4,{'commandName':'listStyle','commandParams':[{'type':_0xba0cb4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3cbb86,_0x3f69a4={}){const _0x230c87=this['editor']['plugins']['get']('TrackChangesEditing'),_0x185632=this['_getSuggestionBlocks'](_0x1aa17e=>_0x1aa17e['is']('element','listItem')&&'numbered'===_0x1aa17e['getAttribute']('listType'));if(_0x185632['length']<0x1)return;const _0x5a0e7e=_0x185632['map'](_0x4590e1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4590e1,'before'),this['editor']['model']['createPositionAt'](_0x4590e1,0x0)));this['editor']['model']['change'](()=>{_0x230c87['markMultiRangeBlockFormat'](_0x5a0e7e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3f69a4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2775cb,_0xaf4bee={}){const _0xf2ac9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b4c1a=this['_getSuggestionBlocks'](_0x4a9690=>_0x4a9690['is']('element','listItem')&&'numbered'===_0x4a9690['getAttribute']('listType'));if(_0x1b4c1a['length']<0x1)return;const _0xcb0ad9=_0x1b4c1a['map'](_0x1bbdc9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bbdc9,'before'),this['editor']['model']['createPositionAt'](_0x1bbdc9,0x0)));this['editor']['model']['change'](()=>{_0xf2ac9['markMultiRangeBlockFormat'](_0xcb0ad9,{'commandName':'listStart','commandParams':[{'startIndex':_0xaf4bee['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x348dfc){if('formatBlock'!=_0x348dfc['type']&&'formatInline'!=_0x348dfc['type'])return;const _0x5cba82=this['editor']['locale'],{data:_0x5cfc0b}=_0x348dfc;if(!_0x5cfc0b)return;let _0x412692,_0x526631;switch(_0x5cfc0b['commandName']){case'listStyle':_0x412692='*Change\x20to:*\x20%0',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692,o(_0x5cba82,this['_getTranslationKeyForListStyle'](_0x5cfc0b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x412692=_0x5cfc0b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692)};break;case'listStart':_0x412692='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x526631={'type':'format','content':o(_0x5cba82,_0x412692,_0x5cfc0b['commandParams'][0x0]['startIndex'])};}return _0x526631;}['_getSuggestionBlocksForListStyle'](){const _0x3bbb7f=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e7635=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5e7635[0x0]?.['is']('element','listItem')&&_0x5e7635['unshift'](..._0x3bbb7f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5e7635[_0x5e7635['length']-0x1]?.['is']('element','listItem')&&_0x5e7635['push'](..._0x3bbb7f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5e7635=[...new Set(_0x5e7635)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5e7635=_0x5e7635['filter'](_0x48d37e=>_0x48d37e['is']('element','listItem'))),_0x5e7635;}['_getSuggestionBlocks'](_0x3fb9ed){const _0x91e510=this['editor']['plugins']['get']('LegacyListUtils');let _0xfa84ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3fb9ed)['map'](_0x5584a3=>{const _0x1acb6c=this['editor']['model']['createPositionAt'](_0x5584a3,0x0);return[..._0x91e510['getSiblingNodes'](_0x1acb6c,'backward'),..._0x91e510['getSiblingNodes'](_0x1acb6c,'forward')];})['flat']();return _0xfa84ac=[...new Set(_0xfa84ac)],_0xfa84ac;}['_getTranslationKeyForListStyle'](_0x59872d){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x59872d)||'default')['toUpperCase']()+'_LIST_'+_0x59872d['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x185c8e{['afterInit'](){const _0x5a2822=this['editor'];if(!_0x5a2822['plugins']['has']('MediaEmbedEditing'))return;const _0x53f61c=_0x5a2822['plugins']['get']('TrackChangesEditing'),_0x54d726=_0x5a2822['locale'];_0x53f61c['enableCommand']('mediaEmbed'),_0x53f61c['descriptionFactory']['registerElementLabel']('media',_0x1ae02f=>o(_0x54d726,'ELEMENT_MEDIA',_0x1ae02f)),_0x5a2822['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x167255,{writer:_0x265876,options:_0x2df3bf})=>{if(_0x2df3bf['showSuggestionHighlights'])return _0x265876['createEmptyElement']('div');},'converterPriority':'high'}),_0x5a2822['data']['downcastDispatcher']['on']('attribute:url:media',(_0x254e19,_0x3ec614,_0x223a20)=>{_0x223a20['options']['showSuggestionHighlights']&&_0x254e19['stop']();},{'priority':'high'});}}class lt extends _0x185c8e{['afterInit'](){const _0x2f0c62=this['editor'];_0x2f0c62['plugins']['has']('MentionEditing')&&_0x2f0c62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x185c8e{['afterInit'](){const _0x12c662=this['editor'];if(!_0x12c662['plugins']['has']('MergeFieldsEditing'))return;const _0x5103e3=_0x12c662['plugins']['get']('TrackChangesEditing'),_0x11e92a=_0x12c662['locale'];_0x5103e3['enableCommand']('insertMergeField'),_0x5103e3['enableCommand']('insertMergeFieldBlock'),_0x5103e3['enableCommand']('insertMergeFieldImage'),_0x5103e3['descriptionFactory']['registerElementLabel']('mergeField',_0x2dd1cc=>o(_0x11e92a,'ELEMENT_MERGE_FIELD',_0x2dd1cc)),_0x5103e3['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x59c39a=>o(_0x11e92a,'ELEMENT_MERGE_FIELD',_0x59c39a)),_0x5103e3['descriptionFactory']['registerDescriptionCallback'](_0x1a5af0=>{if('insertion'!=_0x1a5af0['type']&&'deletion'!=_0x1a5af0['type'])return;const _0xbfd984=_0x1a5af0['getContainedElement']();if(null==_0xbfd984)return;const _0x41d94b=_0x12c662['plugins']['get']('MergeFieldsEditing');let _0x3255c8;switch(_0x41d94b['getMergeFieldType'](_0xbfd984)){case null:return;case'image':{const _0x4ed411=_0x41d94b['unwrapAffixes'](_0xbfd984['getAttribute']('src'));_0x3255c8=_0x41d94b['getLabel'](_0x4ed411)||_0x4ed411;break;}default:{const _0x3f54f8=_0xbfd984['getAttribute']('id');_0x3255c8=_0x41d94b['getLabel'](_0x3f54f8)||_0x3f54f8;break;}}return'insertion'==_0x1a5af0['type']?{'type':'insertion','content':o(_0x11e92a,'*Insert:*\x20%0','\x22'+_0x3255c8+'\x22\x20'+o(_0x11e92a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x11e92a,'*Remove:*\x20%0','\x22'+_0x3255c8+'\x22\x20'+o(_0x11e92a,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x185c8e{['afterInit'](){const _0x2ec676=this['editor'],_0x3b1a31=_0x2ec676['plugins']['get']('TrackChangesEditing');_0x2ec676['plugins']['has']('MultiLevelList')&&(_0x3b1a31['enableDefaultAttributesIntegration']('multiLevelList'),_0x3b1a31['registerBlockAttribute']('listMarkerStyle'),_0x3b1a31['descriptionFactory']['registerDescriptionCallback'](_0x5cc385=>this['handleDescriptions'](_0x5cc385)));}['handleDescriptions'](_0x44f615){const _0x517ace=this['editor']['locale'],{data:_0x18035e}=_0x44f615,_0x3f2e2b={'type':'format','content':''};if(_0x18035e&&'listMarkerStyle'==_0x18035e['key']){if(!_0x18035e['oldValue'])return{'type':'format','content':o(_0x517ace,'*Set\x20format:*\x20%0',o(_0x517ace,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18035e['newValue']+')'};if(!_0x18035e['newValue']){let _0x1d3473=_0x44f615['head'];for(;_0x1d3473;){if(_0x1d3473['data']&&'listType'==_0x1d3473['data']['key']&&_0x1d3473['data']['newValue'])return _0x3f2e2b;_0x1d3473=_0x1d3473['next'];}return{'type':'format','content':o(_0x517ace,'*Remove\x20format:*\x20%0',o(_0x517ace,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18035e['oldValue']+')'};}}}}class pt extends _0x185c8e{['afterInit'](){const _0x4a8677=this['editor'];if(!_0x4a8677['plugins']['has']('PageBreakEditing'))return;_0x4a8677['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x16a226=_0x4a8677['plugins']['get']('TrackChangesEditing'),_0x49ef3d=_0x4a8677['locale'];_0x16a226['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e11b2=>o(_0x49ef3d,'ELEMENT_PAGE_BREAK',_0x3e11b2));}}class kt extends _0x185c8e{['afterInit'](){const _0x25da12=this['editor'];if(!_0x25da12['plugins']['has']('Paragraph'))return;const _0x418eef=_0x25da12['locale'],_0x20446d=_0x25da12['plugins']['get']('TrackChangesEditing');_0x20446d['descriptionFactory']['registerElementLabel']('paragraph',_0x229225=>o(_0x418eef,'ELEMENT_PARAGRAPH',_0x229225)),_0x20446d['enableDefaultAttributesIntegration']('paragraph'),_0x20446d['enableCommand']('insertParagraph'),_0x25da12['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x25da12),{'priority':'highest'}),_0x25da12['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b5080,_0x1094f1,_0x1a0c43)=>{_0x1a0c43['options']['showSuggestionHighlights']&&nr(_0x25da12,{'showActiveMarker':!0x1})(_0x1b5080,_0x1094f1,_0x1a0c43);},{'priority':'highest'});const _0x26a478=_0x20446d['descriptionFactory'];_0x26a478['registerDescriptionCallback'](_0x52be09=>{if('insertion'!==_0x52be09['type'])return;const {start:_0x5e421d,end:_0x385acb}=_0x52be09['getFirstRange']();if(!_0x5e421d['isTouching'](_0x385acb)||!_0x5e421d['nodeAfter'])return;const _0x2203a3=_0x25da12['model']['schema'],_0x18480c=_0x5e421d['nodeAfter'];return _0x2203a3['isBlock'](_0x18480c)&&!_0x2203a3['isLimit'](_0x18480c)&&_0x2203a3['checkChild'](_0x18480c,'$text')?{'type':'insertion','content':o(_0x418eef,'*Insert:*\x20%0',_0x26a478['getItemLabel'](_0x18480c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283baf=this['editor'],_0x4753c0=_0x283baf['locale'];_0x283baf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35d727=>{if('formatBlock'!=_0x35d727['type'])return;const {data:_0x208a1d}=_0x35d727;return _0x208a1d&&'paragraph'==_0x208a1d['commandName']?{'type':'format','content':o(_0x4753c0,'*Change\x20to:*\x20%0',o(_0x4753c0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1faf74,{showActiveMarker:_0x198f37=!0x0}={}){return(_0x52a674,_0x5a9970,_0x4eea6c)=>{const _0x77da57=_0x1faf74['plugins']['get']('TrackChangesEditing'),_0x35e069=_0x5a9970['markerRange']['start'],_0x5c9f10=_0x5a9970['markerRange']['end'],_0x16170d=_0x1faf74['model']['schema'];if(!_0x35e069['isTouching'](_0x5c9f10)||!_0x35e069['nodeAfter'])return;const _0xf77fce=_0x35e069['nodeAfter'];if(_0x16170d['isBlock'](_0xf77fce)&&!_0x16170d['isLimit'](_0xf77fce)&&_0x16170d['checkChild'](_0xf77fce,'$text')){if(!_0x4eea6c['consumable']['consume'](_0x5a9970['markerRange'],_0x52a674['name']))return;const {id:_0x1a5d0a,authorId:_0x456b2d}=_0x77da57['_splitMarkerName'](_0x5a9970['markerName']),_0x570d69=_0x4eea6c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1a5d0a,'data-author-id':_0x456b2d}),_0x54d035=_0x4eea6c['mapper']['toViewPosition'](_0x5c9f10);_0x198f37&&_0x77da57['activeMarkers']['includes'](_0x5a9970['markerName'])&&_0x4eea6c['writer']['addClass']('ck-suggestion-marker--active',_0x570d69),_0x4eea6c['writer']['insert'](_0x54d035,_0x570d69),_0x4eea6c['mapper']['bindElementToMarker'](_0x570d69,_0x5a9970['markerName']);}};}class wt extends _0x185c8e{['afterInit'](){const _0x522289=this['editor'];_0x522289['commands']['get']('replaceSource')&&_0x522289['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x185c8e{['afterInit'](){const _0x479809=this['editor'];if(!_0x479809['plugins']['has']('RemoveFormatEditing'))return;_0x479809['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ad494=this['editor'];_0x2ad494['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492bfd=>{if('formatBlock'!=_0x492bfd['type']&&'formatInline'!=_0x492bfd['type'])return;const {data:_0x54a469}=_0x492bfd;return _0x54a469&&'removeFormat'==_0x54a469['commandName']?{'type':'format','content':o(_0x2ad494['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x185c8e{['afterInit'](){const _0x428ecb=this['editor'];if(!_0x428ecb['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x41edaa=_0x428ecb['plugins']['get']('TrackChangesEditing');_0x41edaa['enableCommand']('goToPreviousRestrictedEditingException'),_0x41edaa['enableCommand']('goToNextRestrictedEditingException');const _0x206af5=_0x428ecb['plugins']['get']('RestrictedEditingModeEditing');_0x206af5['enableCommand']('trackChanges'),_0x206af5['enableCommand']('acceptSuggestion'),_0x206af5['enableCommand']('discardSuggestion'),_0x206af5['enableCommand']('acceptAllSuggestions'),_0x206af5['enableCommand']('discardAllSuggestions'),_0x206af5['enableCommand']('acceptSelectedSuggestions'),_0x206af5['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x185c8e{['afterInit'](){const _0x39bb26=this['editor'];if(!_0x39bb26['plugins']['has']('ShiftEnter'))return;const _0x5e8827=_0x39bb26['plugins']['get']('TrackChangesEditing');_0x5e8827['enableCommand']('shiftEnter'),_0x39bb26['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x39bb26),{'priority':'high'}),_0x39bb26['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x39bb26),{'priority':'high'}),_0x39bb26['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c1940,_0x3ce902,_0x4bb047)=>{_0x4bb047['options']['showSuggestionHighlights']&&je(_0x39bb26,{'showActiveMarker':!0x1})(_0x1c1940,_0x3ce902,_0x4bb047);}),_0x5e8827['descriptionFactory']['registerElementLabel']('softBreak',_0x316178=>o(_0x39bb26['locale'],'ELEMENT_LINE_BREAK',_0x316178));}}function je(_0x248d2f,{showActiveMarker:_0x342d11=!0x0}={}){return(_0x5aee6a,_0x292c38,_0x367581)=>{const _0x54498c=_0x248d2f['plugins']['get']('TrackChangesEditing');if(!_0x367581['consumable']['test'](_0x292c38['markerRange'],_0x5aee6a['name']))return;const _0x359373=_0x248d2f['model'];for(const _0x451f7a of _0x292c38['markerRange']['getItems']()){if(!_0x451f7a['is']('element','softBreak'))continue;const _0x376a4b='deletion'==_0x292c38['markerName']['split'](':')[0x1]?'merge':'split',{id:_0xfee78d,authorId:_0x2b0705}=_0x54498c['_splitMarkerName'](_0x292c38['markerName']),_0x473b0b=_0x367581['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x376a4b,'data-suggestion':_0xfee78d,'data-author-id':_0x2b0705}),_0x2c81ce=_0x367581['mapper']['toViewPosition'](_0x359373['createPositionBefore'](_0x451f7a));_0x342d11&&_0x54498c['activeMarkers']['includes'](_0x292c38['markerName'])&&_0x367581['writer']['addClass']('ck-suggestion-marker--active',_0x473b0b),_0x367581['writer']['insert'](_0x2c81ce,_0x473b0b),_0x367581['mapper']['bindElementToMarker'](_0x473b0b,_0x292c38['markerName']);}};}class St extends _0x185c8e{['afterInit'](){const _0x3a4644=this['editor'],_0x35c4ff=_0x3a4644['model'],_0x706d1c=_0x3a4644['locale'];if(!_0x3a4644['plugins']['has']('StandardEditingModeEditing'))return;const _0x4a9c3d=_0x3a4644['plugins']['get']('TrackChangesEditing'),_0x3ee1a8='restrictedEditingException',_0xaca6f=_0x3a4644['commands']['get'](_0x3ee1a8);_0x4a9c3d['enableCommand'](_0x3ee1a8,(_0x406908,_0x181b8c={})=>{const _0x18755a=_0x35c4ff['document']['selection'];if(_0x18755a['isCollapsed'])return void _0x406908(_0x181b8c);const _0xccb9f6=void 0x0!==_0x181b8c['forceValue']?_0x181b8c['forceValue']:!_0xaca6f['value'];_0x35c4ff['change'](()=>{const _0x5ea1f6=Array['from'](_0x18755a['getRanges']());for(const _0x2bb5d0 of _0x5ea1f6){const _0x8d9ad7=_0xccb9f6?[_0x2bb5d0]:io(_0x3ee1a8,_0x2bb5d0,_0x35c4ff);for(const _0xdfaf60 of _0x8d9ad7)_0x4a9c3d['markInlineFormat'](_0xdfaf60,{'commandName':_0x3ee1a8,'commandParams':[{'forceValue':_0xccb9f6}]});}});}),_0x4a9c3d['descriptionFactory']['registerDescriptionCallback'](_0x324f9a=>{if('formatBlock'!=_0x324f9a['type']&&'formatInline'!=_0x324f9a['type'])return;const {data:_0x1bb3cc}=_0x324f9a;return _0x1bb3cc&&_0x1bb3cc['commandName']==_0x3ee1a8?_0x1bb3cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x706d1c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x706d1c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x185c8e{['afterInit'](){const _0x45810f=this['editor'];if(!_0x45810f['plugins']['has']('Style')||!_0x45810f['plugins']['has']('DataSchema'))return;const _0xea9742=_0x45810f['plugins']['get']('TrackChangesEditing'),_0x2ce465=_0x45810f['locale'],_0xb65197=_0x45810f['config']['get']('style')||{},_0x5841dd=_0x45810f['plugins']['get']('GeneralHtmlSupport'),_0x2d8d1f=_0x45810f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x45810f['plugins']['get']('DataSchema'),_0xb65197['definitions']);_0xea9742['enableDefaultAttributesIntegration']('style');const _0x22446c=new Set();for(const _0x33e3c8 of _0x2d8d1f['block']){const _0x39b537=_0x5841dd['getGhsAttributeNameForElement'](_0x33e3c8['element']);_0x22446c['add'](_0x39b537);}const _0x199060=new Set();for(const _0xc84ee7 of _0x2d8d1f['inline']){const _0x81773f=_0x5841dd['getGhsAttributeNameForElement'](_0xc84ee7['element']);_0x199060['add'](_0x81773f);for(const _0x2d920d of _0xc84ee7['ghsAttributes'])_0x199060['add'](_0x2d920d);}for(const _0x6ceaa9 of _0x22446c)_0xea9742['registerBlockAttribute'](_0x6ceaa9),_0xea9742['descriptionFactory']['registerAttributeLabel'](_0x6ceaa9,o(_0x2ce465,'FORMAT_STYLE'));for(const _0x497196 of _0x199060)_0xea9742['registerInlineAttribute'](_0x497196),_0xea9742['descriptionFactory']['registerAttributeLabel'](_0x497196,o(_0x2ce465,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x523e72=this['editor'],_0x1bfdcd=_0x523e72['locale'];_0x523e72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x250427=>{if('formatBlock'!=_0x250427['type']&&'formatInline'!=_0x250427['type'])return;const {data:_0x9f123a}=_0x250427;return _0x9f123a&&'style'===_0x9f123a['commandName']?_0x9f123a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bfdcd,'*Set\x20format:*\x20%0',_0x9f123a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1bfdcd,'*Remove\x20format:*\x20%0',_0x9f123a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x185c8e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e85c9){super(_0x4e85c9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x44e68b=this['editor'],_0x2cdd54=_0x44e68b['model']['document']['selection'];if(!_0x44e68b['plugins']['has']('TableEditing'))return;const _0x38eee8=_0x44e68b['locale'],_0x2dec72=_0x44e68b['plugins']['get']('TrackChangesEditing'),_0x5a53f5=_0x44e68b['plugins']['get']('TableUtils');_0x2dec72['descriptionFactory']['registerElementLabel']('table',_0x307a43=>o(_0x38eee8,'ELEMENT_TABLE',_0x307a43)),this['_setupColumnsRowsFixing'](),_0x2dec72['enableCommand']('insertTable'),_0x2dec72['enableCommand']('selectTableRow'),_0x2dec72['enableCommand']('selectTableColumn');for(const _0x4be5e5 of['insertTableRowAbove','insertTableRowBelow']){const _0x22e688=_0x44e68b['commands']['get'](_0x4be5e5);_0x2dec72['enableCommand'](_0x4be5e5,_0xe5f04e=>{_0x44e68b['model']['change'](_0x2d3168=>{_0xe5f04e();const _0x1b9bdd='above'===_0x22e688['order'],_0x338ce6=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x479a10=_0x5a53f5['getRowIndexes'](_0x338ce6),_0xeb29b7=_0x1b9bdd?_0x479a10['first']-0x1:_0x479a10['last']+0x1,_0x2856ed=_0x338ce6[0x0]['findAncestor']('table'),_0x481d3d=_0x5a53f5['createTableWalker'](_0x2856ed,{'startRow':_0xeb29b7,'endRow':_0xeb29b7}),_0x2aa38e=Array['from'](_0x481d3d)['map'](_0xab39a=>_0x2d3168['createRangeOn'](_0xab39a['cell']));_0x2dec72['markMultiRangeInsertion'](_0x2aa38e,'tableRow');});});}for(const _0x530ae9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3be31e=_0x44e68b['commands']['get'](_0x530ae9);_0x2dec72['enableCommand'](_0x530ae9,_0x12415a=>{_0x44e68b['model']['change'](_0x446bb4=>{_0x12415a();const _0x262399='left'===_0x3be31e['order'],_0x5ba8de=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x161930=_0x5a53f5['getColumnIndexes'](_0x5ba8de),_0x8073d8=_0x262399?_0x161930['first']-0x1:_0x161930['last']+0x1,_0x577c95=_0x5ba8de[0x0]['findAncestor']('table'),_0x116035=_0x5a53f5['createTableWalker'](_0x577c95,{'startRow':0x0,'column':_0x8073d8,'includeAllSlots':!0x1}),_0x3747fa=Array['from'](_0x116035)['map'](_0x55521a=>_0x446bb4['createRangeOn'](_0x55521a['cell']));_0x2dec72['markMultiRangeInsertion'](_0x3747fa,'tableColumn');});});}for(const _0x2e5d94 of['removeTableRow','removeTableColumn']){const _0x581a3f=_0x2e5d94['substr'](0xb),_0x23faee=_0x581a3f['toLowerCase'](),_0x3716df=_0x23faee['substr'](0x0,0x3)+'span',_0x3253d0='table'+_0x581a3f,_0x26c18a='min'+_0x581a3f,_0x5aefbb='max'+_0x581a3f;_0x2dec72['enableCommand'](_0x2e5d94,()=>{_0x44e68b['model']['change'](_0x4ff2a6=>{const _0x599941=_0x5a53f5['getSelectionAffectedTableCells'](_0x2cdd54),_0x3d316b=_0x599941[0x0]['findAncestor']('table');let _0x255ac0;if('removeTableRow'==_0x2e5d94){const _0xc94178=_0x5a53f5['getRowIndexes'](_0x599941);_0x255ac0={'startRow':_0xc94178['first'],'endRow':_0xc94178['last'],'includeAllSlots':!0x0};}else{const _0x99e8b=_0x5a53f5['getColumnIndexes'](_0x599941);_0x255ac0={'startColumn':_0x99e8b['first'],'endColumn':_0x99e8b['last'],'includeAllSlots':!0x0};}const _0x2d3bcd=_0x5a53f5['createTableWalker'](_0x3d316b,_0x255ac0),_0x139114=Array['from'](_0x2d3bcd)['map'](({cell:_0xc1f88c})=>_0xc1f88c),_0x4ba1ea=Ne(_0x139114['filter'](_0xe9543d=>_0xe9543d['hasAttribute'](_0x3716df))),_0x3679d3=Ne(_0x139114['filter'](_0x2110e9=>!_0x2110e9['hasAttribute'](_0x3716df)))['map'](_0x15536d=>_0x4ff2a6['createRangeOn'](_0x15536d)),_0x3b5e25=_0x2dec72['markMultiRangeDeletion'](_0x3679d3,_0x3253d0);if(_0x3b5e25&&('tableRow'==_0x3b5e25['subType']||'tableColumn'==_0x3b5e25['subType'])){const _0x22fb8c=this['_getSuggestionCoords'](_0x3b5e25);for(const _0x1cad11 of _0x4ba1ea){const _0x5142d2=_0x4ff2a6['createRangeOn'](_0x1cad11),_0x73b2d1=_0x5a53f5['getCellLocation'](_0x1cad11),_0xbd210=_0x1cad11['getAttribute'](_0x3716df)-0x1,_0xba69b5=_0x22fb8c[_0x26c18a],_0x538286=_0x22fb8c[_0x5aefbb];_0xba69b5<=_0x73b2d1[_0x23faee]&&_0x73b2d1[_0x23faee]+_0xbd210<=_0x538286&&_0x3b5e25['addRange'](_0x5142d2);}}});});}function _0x1d64bb(_0x43372f){const _0x3db1fe=Array['from'](_0x2cdd54['getRanges']())['map'](_0x5e17c6=>_0x4ef168['fromRange'](_0x5e17c6));_0x44e68b['model']['change'](_0x5f237e=>{const _0x3272b9=_0x5f237e['batch'];_0x43372f=_0x43372f['filter'](_0x9a7999=>'$graveyard'!=_0x9a7999['root']['rootName']),_0x5f237e['setSelection'](_0x43372f),_0x44e68b['commands']['get']('removeTableRow')['refresh'](),_0x44e68b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x44e68b['model']['enqueueChange'](()=>{_0x44e68b['model']['enqueueChange'](_0x3272b9,_0x274a46=>{const _0x127cf7=_0x3db1fe['filter'](_0x1b53be=>'$graveyard'!=_0x1b53be['root']['rootName']);_0x127cf7['length']>0x0&&_0x274a46['setSelection'](_0x127cf7);for(const _0x3717f8 of _0x3db1fe)_0x3717f8['detach']();});});});}function _0x3950e0(_0xd19844){_0x44e68b['model']['change'](_0xf39f8=>{const _0x5ab681=Array['from'](_0x2cdd54['getRanges']())['map'](_0x24d847=>_0x4ef168['fromRange'](_0x24d847)),_0x4b4a9a=[];for(const _0x401f8c of _0xd19844)for(const _0x7156a1 of _0x401f8c['getItems']({'shallow':!0x0}))_0x4b4a9a['push'](_0x7156a1);for(const _0x570d1d of _0x4b4a9a)'$graveyard'!=_0x570d1d['root']['rootName']&&(_0xf39f8['setSelection'](_0xf39f8['createPositionAt'](_0x570d1d,0x0)),_0x44e68b['commands']['get']('removeTableColumn')['refresh'](),_0x44e68b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x386ffb=_0x5ab681['filter'](_0x2493a2=>'$graveyard'!=_0x2493a2['root']['rootName']);_0x386ffb['length']>0x0&&_0xf39f8['setSelection'](_0x386ffb);for(const _0x2bb752 of _0x5ab681)_0x2bb752['detach']();});}function _0x60dfe6(_0x22c33d,_0x27fba4){return _0x27fba4['every'](_0x5d599f=>_0x22c33d['some'](_0x5bb081=>_0x5bb081['end']['isEqual'](_0x5d599f['start'])||_0x5d599f['end']['isEqual'](_0x5bb081['start'])));}function _0x1f010f(_0x245a58,_0x31ffec){return!_0x245a58['some'](_0xf80d39=>_0x31ffec['some'](_0x310867=>_0xf80d39['isIntersecting'](_0x310867)))&&_0x245a58['some'](_0x318211=>_0x31ffec['some'](_0x3529b5=>_0x318211['end']['isTouching'](_0x3529b5['start'])));}_0x44e68b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53d6df,_0x31b825,_0x267a1f)=>{if(!_0x267a1f['options']['showSuggestionHighlights'])return;const _0x51a1e5=_0x31b825['item'];if(!_0x51a1e5||!_0x51a1e5['is']('element','tableCell'))return;const _0x11ad74=_0x267a1f['mapper']['toViewElement'](_0x51a1e5);if(_0x11ad74){const {id:_0x57084e,authorId:_0x365387}=_0x2dec72['_splitMarkerName'](_0x31b825['markerName']);_0x481c19(_0x11ad74,_0x267a1f['writer'],(_0x54b7d3,_0x295cde,_0x392033)=>{_0x392033['addClass'](_0x10f187(_0x295cde['classes']),_0x54b7d3),_0x392033['setAttribute']('data-suggestion-id',_0x57084e,_0x54b7d3),_0x392033['setAttribute']('data-author-id',_0x365387,_0x54b7d3);},(_0xaf9d80,_0x4cba81,_0x274a2e)=>{_0x274a2e['removeClass'](_0x10f187(_0x4cba81['classes']),_0xaf9d80),_0x274a2e['removeAttribute']('data-suggestion-id',_0xaf9d80),_0x274a2e['removeAttribute']('data-author-id',_0xaf9d80);});}},{'priority':'highest'}),_0x2dec72['descriptionFactory']['registerDescriptionCallback'](_0x338e68=>{if('insertion'!=_0x338e68['type']&&'deletion'!=_0x338e68['type'])return;const _0x47d422=_0x338e68['getContainedElement']();if(null!=_0x47d422&&_0x47d422['is']('element','table')){if('insertion'==_0x338e68['type']){const _0x9029bc=_0x338e68['getItems']()['filter'](_0x3111ea=>_0x3111ea['is']('$textProxy'))['map'](_0x4ad24b=>_0x4ad24b['data']);if(_0x9029bc['length'])return{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x9029bc['join']('\x20')+'\x22'))};}if('deletion'==_0x338e68['type']){const _0x225462=_0x338e68['getItems']()['filter'](_0x2349da=>_0x2349da['is']('$textProxy'))['map'](_0x2aeef7=>_0x2aeef7['data']);if(_0x225462['length'])return{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x225462['join']('\x20')+'\x22'))};}}}),_0x2dec72['descriptionFactory']['registerDescriptionCallback'](_0x298cdd=>{if('tableRow'==_0x298cdd['subType']){const _0x27b449=_0x298cdd['getItems']()['filter'](_0x243f96=>_0x243f96['is']('$textProxy'))['map'](_0x482075=>_0x482075['data']),_0x571697=this['_getSuggestionCoords'](_0x298cdd),_0x16ad43=_0x571697['maxRow']-_0x571697['minRow']+0x1;if('insertion'==_0x298cdd['type'])return _0x27b449['length']?{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16ad43,'\x22'+_0x27b449['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW',_0x16ad43))};if('deletion'==_0x298cdd['type'])return _0x27b449['length']?{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x16ad43,'\x22'+_0x27b449['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_ROW',_0x16ad43))};}if('tableColumn'==_0x298cdd['subType']){const _0x4c9782=_0x298cdd['getItems']()['filter'](_0x4fdfe1=>_0x4fdfe1['is']('$textProxy'))['map'](_0x2298cf=>_0x2298cf['data']),_0x2df7b4=this['_getSuggestionCoords'](_0x298cdd),_0x5467c5=_0x2df7b4['maxColumn']-_0x2df7b4['minColumn']+0x1;if('insertion'==_0x298cdd['type'])return _0x4c9782['length']?{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5467c5,'\x22'+_0x4c9782['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38eee8,'*Insert:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN',_0x5467c5))};if('deletion'==_0x298cdd['type'])return _0x4c9782['length']?{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5467c5,'\x22'+_0x4c9782['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38eee8,'*Remove:*\x20%0',o(_0x38eee8,'ELEMENT_TABLE_COLUMN',_0x5467c5))};}}),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d64bb),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d64bb),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3950e0),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3950e0),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x60dfe6),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x60dfe6),_0x2dec72['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1f010f),_0x2dec72['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1f010f);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2c862a=this['editor'],_0x495463=_0x2c862a['model']['document']['selection'];return(_0x14a15b,_0x317799)=>{_0x2c862a['model']['change'](_0x17f936=>{const {commandName:_0x2e464d,commandParams:_0x249c9d}=_0x317799;let _0x54fbd3=_0x14a15b[0x0]['end']['nodeBefore'];_0x249c9d&&_0x249c9d[0x0]&&!0x1===_0x249c9d[0x0]['forceValue']&&(_0x54fbd3=_0x14a15b[0x0]['start']['nodeAfter']);const _0x20c460=_0x17f936['createRangeIn'](_0x54fbd3);if('$graveyard'==_0x20c460['root']['rootName'])return;const _0x4ab8b9=Array['from'](_0x495463['getRanges']())['map'](_0x316d80=>_0x4ef168['fromRange'](_0x316d80));_0x17f936['setSelection'](_0x20c460),_0x2c862a['commands']['get'](_0x2e464d)['refresh'](),_0x249c9d['push']({'forceDefaultExecution':!0x0}),_0x2c862a['execute'](_0x2e464d,..._0x249c9d);const _0x2b864b=_0x4ab8b9['filter'](_0x16bb8b=>'$graveyard'!=_0x16bb8b['root']['rootName']);_0x2b864b['length']>0x0&&_0x17f936['setSelection'](_0x2b864b);for(const _0x55133f of _0x4ab8b9)_0x55133f['detach']();});};}['_getCoordsForCells'](_0x3d3de5){const _0x268f43=this['editor']['plugins']['get']('TableUtils');let _0x192483=Number['MAX_SAFE_INTEGER'],_0x410e07=Number['MIN_SAFE_INTEGER'],_0x56a083=Number['MAX_SAFE_INTEGER'],_0x2a3984=Number['MIN_SAFE_INTEGER'];for(const _0x1b84ba of _0x3d3de5){if('$graveyard'==_0x1b84ba['root']['rootName'])continue;const {row:_0xfee071,column:_0x15cccf}=_0x268f43['getCellLocation'](_0x1b84ba),_0x487d17=_0x1b84ba['hasAttribute']('rowspan')?_0x1b84ba['getAttribute']('rowspan')-0x1:0x0,_0x1a4917=_0x1b84ba['hasAttribute']('colspan')?_0x1b84ba['getAttribute']('colspan')-0x1:0x0;_0x192483=_0xfee071<_0x192483?_0xfee071:_0x192483,_0x410e07=_0xfee071+_0x487d17>_0x410e07?_0xfee071+_0x487d17:_0x410e07,_0x56a083=_0x15cccf<_0x56a083?_0x15cccf:_0x56a083,_0x2a3984=_0x15cccf+_0x1a4917>_0x2a3984?_0x15cccf+_0x1a4917:_0x2a3984;}return{'minRow':_0x192483,'maxRow':_0x410e07,'minColumn':_0x56a083,'maxColumn':_0x2a3984};}['_setupColumnsRowsFixing'](){const _0x412dc4=this['editor'],_0x1506cf=_0x412dc4['plugins']['get']('TrackChangesEditing'),_0x34bb83=_0x412dc4['plugins']['get']('TableUtils');_0x412dc4['model']['document']['on']('change:data',()=>{const _0x10962d=Array['from'](_0x412dc4['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4035f2,data:_0x54ba93}of _0x10962d){const {group:_0x46963e,id:_0x4fb216,subType:_0x290cae}=_0x1506cf['_splitMarkerName'](_0x4035f2);if('suggestion'!=_0x46963e)continue;if(null!=_0x54ba93['oldRange'])continue;const _0x568231=_0x1506cf['getSuggestion'](_0x4fb216);this['_tablePostFixingSubtypes']['includes'](_0x290cae)&&this['_tableSuggestions']['add'](_0x568231);}},{'priority':'low'});const _0x49daa1=(_0xe3150c,_0x58cbb9)=>{let _0x4f5b03=!0x1;const _0x2b8b84=_0x58cbb9['createRangeOn'](_0xe3150c),_0x3920b9=_0xe3150c['findAncestor']('table'),_0x3edba0=_0x34bb83['getCellLocation'](_0xe3150c);for(const _0x48ae8f of this['_tableSuggestions']){const _0x252f10=_0x48ae8f['subType'],_0x3a7221=_0x252f10['startsWith']('tablePaste'),_0x45b0eb=_0x252f10['substr'](_0x3a7221?0xa:0x5),_0x2c86f8=_0x45b0eb['toLowerCase'](),_0x4306a9=_0x2c86f8['substr'](0x0,0x3)+'span',_0x3b2cc5='min'+_0x45b0eb,_0x155457='max'+_0x45b0eb;if(!_0x48ae8f['isInContent'])continue;if(_0x3920b9!=_0x48ae8f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x48ae8f['isIntersectingWithRange'](_0x2b8b84))continue;const _0x27d5f9=_0xe3150c['hasAttribute'](_0x4306a9)?_0xe3150c['getAttribute'](_0x4306a9)-0x1:0x0,_0x144afd=this['_getSuggestionCoords'](_0x48ae8f),_0x1c4a12=_0x144afd[_0x3b2cc5],_0x786444=_0x144afd[_0x155457];_0x1c4a12<=_0x3edba0[_0x2c86f8]&&_0x3edba0[_0x2c86f8]+_0x27d5f9<=_0x786444&&(_0x48ae8f['addRange'](_0x2b8b84),_0x4f5b03=!0x0);}return _0x4f5b03;};_0x412dc4['model']['document']['registerPostFixer'](_0x4c0aa1=>{let _0x326c91=!0x1;for(const _0x2d0e44 of _0x412dc4['model']['document']['differ']['getChanges']())if('insert'==_0x2d0e44['type']){if('tableRow'==_0x2d0e44['name']){for(const _0x18fd30 of _0x2d0e44['position']['nodeAfter']['getChildren']())_0x326c91=_0x326c91||_0x49daa1(_0x18fd30,_0x4c0aa1);}else'tableCell'==_0x2d0e44['name']&&(_0x326c91=_0x326c91||_0x49daa1(_0x2d0e44['position']['nodeAfter'],_0x4c0aa1));}return _0x326c91;});}['_getSuggestionCoords'](_0x4ceba9){return this['_getCoordsForCells'](_0x4ceba9['getRanges']()['map'](_0x59967b=>_0x59967b['start']['nodeAfter']));}}function Ne(_0x263732){return Array['from'](new Set(_0x263732)['values']());}class _t extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x4c3f5d=this['editor'],_0x57fe61=_0x4c3f5d['model']['document']['selection'],_0x33ee10=_0x4c3f5d['locale'];if(!_0x4c3f5d['plugins']['has']('TableEditing'))return;const _0x2cf4ed=_0x4c3f5d['plugins']['get']('TrackChangesEditing'),_0x4a32a0=_0x4c3f5d['plugins']['get']('TableUtils'),_0xdc75a=_0x4c3f5d['plugins']['get'](At);_0xdc75a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2cf4ed['enableCommand']('mergeTableCells',()=>{const _0x304dd4=_0x4a32a0['getSelectionAffectedTableCells'](_0x4c3f5d['model']['document']['selection']);_0x4c3f5d['model']['change'](()=>{_0x2cf4ed['markMultiRangeBlockFormat'](_0x304dd4,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c3f5d['commands']['get']('mergeTableCells')['on']('execute',(_0x361d15,_0x16c6de)=>{_0x4c3f5d['commands']['get']('trackChanges')['value']&&(_0x16c6de['length']>0x0&&_0x16c6de[_0x16c6de['length']-0x1]&&_0x16c6de[_0x16c6de['length']-0x1]['forceDefaultExecution']||_0x2cf4ed['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x361d15['stop']());},{'priority':'highest'});for(const _0x496110 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ed259=_0x4c3f5d['commands']['get'](_0x496110);_0x2cf4ed['enableCommand'](_0x496110,()=>{const _0x9fba9f=_0x4c3f5d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x17255a=>_0x17255a['is']('element','tableCell')),_0x338059=_0x1ed259['value'];_0x4c3f5d['model']['change'](()=>{_0x2cf4ed['markMultiRangeBlockFormat']([_0x9fba9f,_0x338059],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bab72 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1aa3f3=_0x4c3f5d['commands']['get'](_0x5bab72);_0x2cf4ed['enableCommand'](_0x5bab72,()=>{const _0x14f943=_0x4a32a0['getSelectionAffectedTableCells'](_0x4c3f5d['model']['document']['selection'])[0x0],_0xbe4687=_0x14f943['findAncestor']('table'),{column:_0x3abea2,row:_0x1f5450}=_0x4a32a0['getCellLocation'](_0x14f943);let _0x53d232=[];if('horizontally'==_0x1aa3f3['direction']){const _0x1eb26a=_0x4a32a0['createTableWalker'](_0xbe4687,{'startRow':_0x1f5450,'endRow':_0x1f5450,'includeAllSlots':!0x0});_0x53d232=Array['from'](_0x1eb26a)['map'](_0x197fbc=>_0x197fbc['cell']);}else{const _0x2431ff=_0x4a32a0['createTableWalker'](_0xbe4687,{'column':_0x3abea2,'includeAllSlots':!0x0});_0x53d232=Array['from'](_0x2431ff)['map'](_0x4a4812=>_0x4a4812['cell']);}_0x4c3f5d['model']['change'](_0x39a52e=>{_0x2cf4ed['markBlockFormat'](_0x39a52e['createRangeOn'](_0x14f943),{'commandName':_0x5bab72,'commandParams':[]},_0x53d232,_0x5bab72);});});}_0x2cf4ed['descriptionFactory']['registerDescriptionCallback'](_0x5dafb1=>{if('formatBlock'!=_0x5dafb1['type']&&'formatInline'!=_0x5dafb1['type'])return;const {data:_0x2f65cd}=_0x5dafb1;return _0x2f65cd&&'mergeTableCells'==_0x2f65cd['commandName']?{'type':'format','content':o(_0x33ee10,'*Merge\x20cells*')}:void 0x0;}),_0x2cf4ed['descriptionFactory']['registerDescriptionCallback'](_0x38ed5a=>{if('formatBlock'!=_0x38ed5a['type']&&'formatInline'!=_0x38ed5a['type'])return;const {data:_0x2645f4}=_0x38ed5a;return _0x2645f4?'splitTableCellVertically'==_0x2645f4['commandName']?{'type':'format','content':o(_0x33ee10,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2645f4['commandName']?{'type':'format','content':o(_0x33ee10,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5a9899=_0xdc75a['_acceptFormatSuggestionCallbackFactory']();for(const _0x18252c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x18252c,'accept',_0x5a9899);for(const _0xa1a9ec of['splitTableCellVertically','splitTableCellHorizontally'])_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa1a9ec,'accept',_0x5a9899);_0x2cf4ed['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5d73af=>{_0x4c3f5d['model']['change'](_0x3bc3c7=>{const _0xaab99=Array['from'](_0x57fe61['getRanges']())['map'](_0x3f43c4=>_0x4ef168['fromRange'](_0x3f43c4));_0x3bc3c7['setSelection'](_0x5d73af),_0x4c3f5d['commands']['get']('mergeTableCells')['refresh'](),_0x4c3f5d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x565640=_0xaab99['filter'](_0x5987c6=>'$graveyard'!=_0x5987c6['root']['rootName']);_0x565640['length']>0x0&&_0x3bc3c7['setSelection'](_0x565640);for(const _0x5b4bd1 of _0xaab99)_0x5b4bd1['detach']();});});for(const _0x229e91 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e8e0e=_0x4c3f5d['commands']['get'](_0x229e91);_0x5e8e0e['on']('set:isEnabled',(_0x51e0e9,_0x1520c6,_0x1af702)=>{if(_0x1af702){const _0x3d8407=_0x4c3f5d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x13a480=>_0x13a480['is']('element','tableCell'));this['_areMergableCells'](_0x5e8e0e['value'],_0x3d8407)||(_0x51e0e9['return']=!0x1,_0x51e0e9['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x27ed51=this['editor']['commands']['get']('mergeTableCells'),_0x289a75=this['editor']['plugins']['get']('TableUtils');if(!_0x27ed51['isEnabled'])return!0x1;const _0x4d71a8=_0x289a75['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1b89ae of _0x4d71a8)for(const _0x7d16d4 of _0x4d71a8)if(_0x1b89ae!=_0x7d16d4&&!this['_areMergableCells'](_0x1b89ae,_0x7d16d4))return!0x1;return!0x0;}['_areMergableCells'](_0xda88a8,_0x4ae07a){const _0x36baaa=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfd9a53=this['editor']['model']['createRangeOn'](_0xda88a8),_0x31d5b1=this['editor']['model']['createRangeOn'](_0x4ae07a),_0x303db4=new Set(),_0x148f60=new Set();for(const _0x3782b0 of _0x36baaa['getSuggestions']())if(('insertion'==_0x3782b0['type']||'deletion'==_0x3782b0['type']||'mergeTableCells'==_0x3782b0['subType'])&&_0x3782b0['isInContent']){for(const _0x187ae2 of _0x3782b0['getRanges']())_0x187ae2['containsRange'](_0xfd9a53,!0x0)&&_0x303db4['add'](_0x3782b0['type']+':'+_0x3782b0['author']['id']),_0x187ae2['containsRange'](_0x31d5b1,!0x0)&&_0x148f60['add'](_0x3782b0['type']+':'+_0x3782b0['author']['id']);}if(_0x303db4['size']!=_0x148f60['size'])return!0x1;for(const _0x21cc92 of _0x303db4)if(!_0x148f60['has'](_0x21cc92))return!0x1;return!0x0;}}class Ct extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x2d39e8=this['editor'];if(!_0x2d39e8['plugins']['has']('TableEditing'))return;const _0x3a1766=_0x2d39e8['locale'],_0x22f105=_0x2d39e8['plugins']['get']('TrackChangesEditing');_0x22f105['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22f105['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22f105['registerBlockAttribute']('headingRows'),_0x22f105['registerBlockAttribute']('headingColumns'),_0x22f105['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3a1766,'FORMAT_HEADER_ROW')),_0x22f105['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3a1766,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1079f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32e43c=this['editor']['plugins']['get']('TableUtils'),_0x249ed8=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x33e747({showActiveMarker:_0x1dd51e=!0x0,setDataAttribute:_0x232879=!0x0}={}){return(_0x480d57,_0x359bbb,_0x46b745)=>{const {type:_0x1cf67d,id:_0x7e0d4b}=_0x1079f5['_splitMarkerName'](_0x359bbb['markerName']),_0x2cde39=_0x1079f5['getSuggestion'](_0x7e0d4b),_0x25d79b=_0x2cde39['data'];if('formatBlock'!=_0x2cde39['type']||!_0x25d79b||'setTableColumnHeader'!=_0x25d79b['commandName'])return;if(_0x359bbb['item'])return void _0x480d57['stop']();if(!_0x46b745['consumable']['consume'](_0x359bbb['markerRange'],_0x480d57['name']))return;const _0x4bb48f=_0x359bbb['markerRange']['start']['nodeAfter'],_0x7c4979=_0x359bbb['markerRange']['end']['nodeBefore'],_0x217395=_0x4bb48f['parent']['parent'],{column:_0x355734}=_0x32e43c['getCellLocation'](_0x4bb48f),{column:_0x282f1a}=_0x32e43c['getCellLocation'](_0x7c4979);for(let _0x1b5b44=_0x355734;_0x1b5b44<=_0x282f1a;_0x1b5b44++){const _0x53b3b1=_0x32e43c['createTableWalker'](_0x217395,{'column':_0x1b5b44,'includeAllSlots':!0x1});for(const _0x323baa of _0x53b3b1){const _0x30dcef=_0x323baa['cell'],_0x74141b=_0x46b745['mapper']['toViewElement'](_0x30dcef);_0x46b745['writer']['addClass']('ck-suggestion-marker-'+_0x1cf67d,_0x74141b),_0x232879&&_0x46b745['writer']['setAttribute']('data-suggestion',_0x7e0d4b,_0x74141b),_0x46b745['mapper']['bindElementToMarker'](_0x74141b,_0x359bbb['markerName']),_0x1dd51e&&(_0x1079f5['activeMarkers']['includes'](_0x359bbb['markerName'])?_0x46b745['writer']['addClass']('ck-suggestion-marker--active',_0x74141b):_0x46b745['writer']['removeClass']('ck-suggestion-marker--active',_0x74141b));}}};}_0x1079f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x249ed8),_0x1079f5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x249ed8),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x33e747(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x29caa6,_0xced3a7,_0x5590c9)=>{_0x5590c9['options']['showSuggestionHighlights']&&_0x33e747({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x29caa6,_0xced3a7,_0x5590c9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb92f14,_0x283a30,_0x3dd956)=>{const {type:_0x1312c8,id:_0x1a5b71}=_0x1079f5['_splitMarkerName'](_0x283a30['markerName']),_0x143ea4=_0x1079f5['getSuggestion'](_0x1a5b71),_0x4b0453=_0x143ea4['data'];if('formatBlock'!=_0x143ea4['type']||!_0x4b0453||'setTableColumnHeader'!=_0x4b0453['commandName'])return;const _0x6bc84d=_0x3dd956['mapper']['markerNameToElements'](_0x283a30['markerName']);if(_0x6bc84d){for(const _0x207366 of _0x6bc84d)_0x3dd956['writer']['removeClass']('ck-suggestion-marker-'+_0x1312c8,_0x207366),_0x3dd956['writer']['removeClass']('ck-suggestion-marker--active',_0x207366),_0x3dd956['writer']['removeAttribute']('data-suggestion',_0x207366),_0x3dd956['mapper']['unbindElementFromMarkerName'](_0x207366,_0x283a30['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x190ea3=this['editor'],_0x11da0c=_0x190ea3['locale'];function _0x22eb8f(_0x138850){return{'type':'format','content':o(_0x11da0c,'*Format:*\x20%0',_0x138850)};}_0x190ea3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3045c8=>{if('formatBlock'!=_0x3045c8['type'])return;const {data:_0x20cb4a}=_0x3045c8;if(_0x20cb4a){if('setTableRowHeader'==_0x20cb4a['commandName']){const _0x3b929e=_0x20cb4a['commandParams'][0x0]['forceValue'];return _0x22eb8f(o(_0x11da0c,_0x3b929e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x20cb4a['commandName']){const _0x2ace03=_0x20cb4a['commandParams'][0x0]['forceValue'];return _0x22eb8f(o(_0x11da0c,_0x2ace03?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x185c8e{['afterInit'](){const _0x1aea3d=this['editor'],_0x5def27=_0x1aea3d['locale'],_0x14702f=_0x1aea3d['plugins']['get']('TrackChangesEditing');function _0x34baa9(_0x238695){return{'type':'format','content':''+o(_0x5def27,'*Set\x20table\x20type:*\x20%0',_0x238695)};}_0x1aea3d['plugins']['has']('TableLayout')&&(_0x14702f['enableCommand']('insertTableLayout'),_0x14702f['enableDefaultAttributesIntegration']('tableType'),_0x14702f['registerBlockAttribute']('tableType'),_0x14702f['descriptionFactory']['registerElementLabel'](_0x464655=>_0x464655['is']('element','table')&&'layout'===_0x464655['getAttribute']('tableType'),_0x5e5a61=>o(_0x5def27,'ELEMENT_LAYOUT_TABLE',_0x5e5a61)),_0x14702f['descriptionFactory']['registerDescriptionCallback'](_0xac8bda=>{const {data:_0x3b4024}=_0xac8bda;if(_0x3b4024&&'tableType'==_0x3b4024['key'])switch(_0x3b4024['newValue']){case'layout':return _0x34baa9(o(_0x5def27,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x34baa9(o(_0x5def27,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Be['map'](_0xa9cd85=>[_0xa9cd85,null]));class Nt extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x114940=this['editor'];if(!_0x114940['plugins']['has']('TableClipboard'))return;const _0x22e779=_0x114940['plugins']['get']('TrackChangesEditing'),_0x1b2feb=_0x114940['plugins']['get']('TableUtils'),_0x52bc0e=_0x114940['plugins']['get'](At),_0x1fd4e5=_0x114940['plugins']['get']('TableClipboard'),_0x302057=_0x114940['plugins']['get']('TableSelection'),_0xdab53b=_0x114940['plugins']['get'](_0x1ee166);_0x52bc0e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x114940['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x114940['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x10e7a0=null,_0x44dc17=!0x1;_0xdab53b['on']('contentInsertion',(_0x326bfd,_0x193656)=>{_0x44dc17='paste'===_0x193656['method'];}),_0x114940['model']['on']('insertContent',(_0x1d99e4,_0x5e5a91)=>{if(!_0x44dc17&&null===_0x302057['getSelectedTableCells']())return;const [_0x30211f,_0x135486]=_0x5e5a91,_0x25d213=_0x5e5a91[_0x5e5a91['length']-0x1];_0x25d213&&_0x25d213['forceDefaultExecution']||_0x22e779['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1be4cd,_0x186978,_0x2ec821,_0x3274ea,_0x5d8589){if(_0x186978&&!_0x186978['is']('documentSelection'))return!0x1;const _0x12c9e0=_0x5d8589['getTableIfOnlyTableInContent'](_0x1be4cd,_0x2ec821);if(!_0x12c9e0||!Ue(_0x12c9e0,void 0x0,_0x3274ea))return!0x1;const _0x301859=_0x3274ea['getSelectionAffectedTableCells'](_0x2ec821['document']['selection']);if(!_0x301859['length'])return!0x1;const _0x626bd3=_0x301859[0x0]['findAncestor']('table'),_0xd2f411=_0x3274ea['getRowIndexes'](_0x301859),_0x1d319b=_0x3274ea['getColumnIndexes'](_0x301859),_0xb6797={'startRow':_0xd2f411['first'],'endRow':_0xd2f411['last'],'startColumn':_0x1d319b['first'],'endColumn':_0x1d319b['last']};return 0x1==_0x301859['length']&&(_0xb6797['endRow']+=_0x3274ea['getRows'](_0x12c9e0)-0x1,_0xb6797['endColumn']+=_0x3274ea['getColumns'](_0x12c9e0)-0x1),Ue(_0x626bd3,_0xb6797,_0x3274ea);}(_0x30211f,_0x135486,_0x114940['model'],_0x1b2feb,_0x1fd4e5)&&(_0x1d99e4['stop'](),_0x10e7a0={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x114940['model']['change'](()=>{_0x114940['model']['insertContent'](_0x5e5a91[0x0],_0x5e5a91[0x1],_0x5e5a91[0x2],{'forceDefaultExecution':!0x0});const _0x239b11=_0x510ab3(),{rowInsertionRanges:_0x44c4cc,columnInsertionRanges:_0x15da99,insertionRanges:_0x16944c,deletionRanges:_0x8ed6f3,cells:_0x38fc31}=_0x10e7a0;_0x44c4cc['length']&&_0x22e779['markMultiRangeInsertion'](_0x44c4cc,'tablePasteRow',{'tablePasteChainId':_0x239b11}),_0x15da99['length']&&_0x22e779['markMultiRangeInsertion'](_0x15da99,'tablePasteColumn',{'tablePasteChainId':_0x239b11}),_0x16944c['length']&&(_0x22e779['markMultiRangeInsertion'](_0x16944c,'tablePaste',{'tablePasteChainId':_0x239b11,'skipNestingCheck':!0x0}),_0x16944c['forEach'](_0x16029c=>_0x16029c['detach']?.())),_0x8ed6f3['length']&&(_0x22e779['markMultiRangeDeletion'](_0x8ed6f3,'tablePaste',{'tablePasteChainId':_0x239b11,'skipNestingCheck':!0x0}),_0x8ed6f3['forEach'](_0x1750c5=>_0x1750c5['detach']?.()));const _0x5594e9=_0x22e779['markMultiRangeBlockFormat'](_0x38fc31['map'](({element:_0x58dbd4})=>_0x58dbd4),{'formatGroupId':_0x510ab3()},[],'tablePasteCell',{'tablePasteChainId':_0x239b11});if(_0x5594e9){const _0x25dd4d=_0x5594e9['getMarkers'](),_0x253e5d=[];for(const {element:_0x1aaaea,attributes:_0x40545a}of _0x38fc31){if(!_0x40545a)continue;const _0xcfeac1=_0x114940['model']['createRangeOn'](_0x1aaaea),_0x55bda4=_0x25dd4d['find'](_0x78026=>_0x78026['getRange']()['isEqual'](_0xcfeac1));_0x55bda4&&_0x253e5d['push']([_0x55bda4['name'],_0x40545a]);}_0x253e5d['length']&&_0x5594e9['setAttribute']('markerAttributes',Object['fromEntries'](_0x253e5d));}_0x10e7a0=null;}));},{'priority':_0xa6a0c5['high']+0xa}),_0xdab53b['on']('contentInsertion',()=>{_0x44dc17=!0x1;},{'priority':'lowest'}),_0x114940['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x255534,_0x4d6702)=>{const [_0x3cf427,_0x197989,,_0x441d52]=_0x4d6702;if(!_0x10e7a0)return;_0x255534['stop']();const _0x5aea5a=_0x3cf427['cell'],_0x2ebf91=_0x197989,_0x3b5423=Oe(_0x5aea5a),_0x864785=Oe(_0x2ebf91);_0x255534['return']=_0x5aea5a;let _0x4cf5cf=null,_0x163193=null;if(_0x864785||_0x3b5423){if(_0x3b5423&&!_0x864785){_0x441d52['remove'](_0x5aea5a['getChild'](0x0));for(const _0x8ac824 of Array['from'](_0x2ebf91['getChildren']()))_0x441d52['insert'](_0x8ac824,_0x5aea5a,'end');const _0x316328=_0x10e7a0['rowInsertionIndexes']['includes'](_0x3cf427['row']),_0x52ea61=_0x10e7a0['columnInsertionIndexes']['includes'](_0x3cf427['column']);_0x316328||_0x52ea61||(_0x4cf5cf=_0x4ef168['fromRange'](_0x441d52['createRangeIn'](_0x5aea5a)));}else _0x864785&&!_0x3b5423&&(_0x163193=_0x441d52['createRangeIn'](_0x5aea5a));}else{const _0x199398=_0x441d52['createElement']('tableCellSuggestion'),_0x1056de=_0x441d52['createElement']('tableCellSuggestion');_0x441d52['wrap'](_0x441d52['createRangeIn'](_0x5aea5a),_0x1056de),_0x441d52['insert'](_0x199398,_0x5aea5a,0x0);for(const _0x49a6e0 of Array['from'](_0x2ebf91['getChildren']()))_0x441d52['insert'](_0x49a6e0,_0x199398,'end');_0x4cf5cf=_0x4ef168['fromRange'](_0x441d52['createRangeOn'](_0x199398)),_0x163193=_0x4ef168['fromRange'](_0x441d52['createRangeOn'](_0x1056de));}const _0x280005=Array['from'](_0x2ebf91['getAttributes']())['filter'](([_0x16526d])=>Be['includes'](_0x16526d));_0x10e7a0['cells']['push']({'element':_0x5aea5a,'attributes':_0x280005['length']?Object['fromEntries'](_0x280005):null}),_0x4cf5cf&&_0x10e7a0['insertionRanges']['push'](_0x4cf5cf),_0x163193&&_0x10e7a0['deletionRanges']['push'](_0x163193);},{'priority':'high'}),_0x1b2feb['on']('insertColumns',(_0x541f42,_0x304864)=>{const [_0x50314e,_0x2f9294={}]=_0x304864;if(!_0x10e7a0)return;const _0x55e3d8=_0x2f9294['at']||0x0,_0x10d1ed=_0x2f9294['columns']||0x1;_0x10e7a0['columnInsertionIndexes']=new Array(_0x10d1ed)['fill'](_0x55e3d8)['map']((_0x31f3d5,_0xfc0350)=>_0x31f3d5+_0xfc0350);for(const {cell:_0x542af6}of _0x1b2feb['createTableWalker'](_0x50314e,{'startColumn':_0x55e3d8,'endColumn':_0x55e3d8+_0x10d1ed-0x1}))_0x10e7a0['columnInsertionRanges']['push'](_0x114940['model']['createRangeOn'](_0x542af6));},{'priority':'low'}),_0x1b2feb['on']('insertRows',(_0x30ef54,_0x457e30)=>{const [_0x480d8a,_0xfc1535={}]=_0x457e30;if(!_0x10e7a0)return;const _0xb02a47=_0xfc1535['at']||0x0,_0x2e52ad=_0xfc1535['rows']||0x1;_0x10e7a0['rowInsertionIndexes']=new Array(_0x2e52ad)['fill'](_0xb02a47)['map']((_0x2b97f1,_0x5af060)=>_0x2b97f1+_0x5af060);for(const {cell:_0x447bce}of _0x1b2feb['createTableWalker'](_0x480d8a,{'startRow':_0xb02a47,'endRow':_0xb02a47+_0x2e52ad-0x1}))_0x10e7a0['rowInsertionRanges']['push'](_0x114940['model']['createRangeOn'](_0x447bce));},{'priority':'low'}),_0x22e779['descriptionFactory']['registerDescriptionCallback'](_0x32a396=>{if(_0x32a396['subType']&&_0x32a396['subType']['startsWith']('tablePaste'))return _0x32a396['previous']?{}:{'type':'insertion','content':o(_0x114940['locale'],'*Replace\x20table\x20cells*')};});const _0x369f50=()=>!0x1;for(const _0x14da68 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion',_0x14da68,'join',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('deletion',_0x14da68,'join',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14da68,'join',_0x369f50);_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x369f50),_0x22e779['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3af4c8,_0xb47801,_0x472ff8)=>{const _0x3954c1=_0x3af4c8['map'](_0x5165c9=>_0x5165c9['getContainedElement']())['filter'](_0x205a16=>_0x205a16),_0x342e67=new Map(_0x3954c1['map'](_0x2037db=>[_0x2037db,null]));if(_0x10e7a0){for(const {element:_0x35e9f6,attributes:_0x180600}of _0x10e7a0['cells'])_0x180600&&_0x342e67['set'](_0x35e9f6,_0x180600);}else{if(_0x472ff8&&_0x472ff8['markerAttributes'])for(const [_0xb39c08,_0x2d29f1]of Object['entries'](_0x472ff8['markerAttributes'])){const _0x10e2c3=_0x114940['model']['markers']['get'](_0xb39c08),_0x5e0d9d=_0x10e2c3?_0x10e2c3['getRange']()['getContainedElement']():null;_0x5e0d9d&&_0x342e67['set'](_0x5e0d9d,_0x2d29f1);}}_0x114940['model']['change'](_0x5ba144=>{for(const [_0xe60b4,_0x4b135f]of _0x342e67)_0x5ba144['setAttributes']({...xe,..._0x4b135f},_0xe60b4);});});const _0x226f3e=(_0x5285b0,_0x30b711)=>{_0x22e779['_suggestionFactory']['registerCustomCallback'](_0x5285b0,'tablePaste',_0x30b711,(_0x109572,_0x22e70c,_0x5c0cce)=>{_0x114940['model']['change'](_0x46e396=>{const _0x841310=[];for(const _0x481375 of _0x109572){const _0x92b467=_0x481375['start']['nodeAfter'];_0x92b467['is']('element','tableCellSuggestion')&&_0x841310['push'](_0x92b467);}_0x22e779['_suggestionFactory']['getSuggestionCallback'](_0x5285b0,null,_0x30b711)(_0x109572,_0x22e70c,_0x5c0cce);for(const _0x156640 of _0x841310)'$graveyard'!=_0x156640['root']['rootName']&&_0x46e396['unwrap'](_0x156640);});});};_0x226f3e('insertion','accept'),_0x226f3e('insertion','discard'),_0x226f3e('deletion','accept'),_0x226f3e('deletion','discard'),_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x14a8d7=>{const _0x48b6a3=_0x14a8d7['map'](_0x3bc2fa=>_0x3bc2fa['getContainedElement']()),_0x538250=_0x48b6a3[0x0]['findAncestor']('table'),{minRow:_0x127d17,maxRow:_0x37255d}=_0x52bc0e['_getCoordsForCells'](_0x48b6a3);_0x1b2feb['removeRows'](_0x538250,{'at':_0x127d17,'rows':_0x37255d-_0x127d17+0x1});}),_0x22e779['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b9417=>{const _0x468567=_0x1b9417['map'](_0xbb1556=>_0xbb1556['getContainedElement']()),_0x3d46a1=_0x468567[0x0]['findAncestor']('table'),{minColumn:_0x7da58c,maxColumn:_0x5193f2}=_0x52bc0e['_getCoordsForCells'](_0x468567);_0x1b2feb['removeColumns'](_0x3d46a1,{'at':_0x7da58c,'columns':_0x5193f2-_0x7da58c+0x1});});const _0xc76d65=(_0x57b0c5,_0x5a27e4)=>{if(!_0x5a27e4['subType']||!_0x5a27e4['subType']['startsWith']('tablePaste'))return;const _0xe70656=_0x5a27e4['attributes']['tablePasteChainId'],_0x28ff8e=_0x22e779['getSuggestions']()['filter'](_0x257bbd=>_0x257bbd['isInContent']&&_0x257bbd['attributes']&&_0x257bbd['attributes']['tablePasteChainId']==_0xe70656);_0x28ff8e['length']&&_0x5a27e4['getAllAdjacentSuggestions']()['length']!=_0x28ff8e['length']&&_0x28ff8e['reduce']((_0x57428c,_0x243eb6)=>(_0x57428c['next']=_0x243eb6,_0x243eb6['previous']=_0x57428c,_0x243eb6));};function _0xa489ed(_0x4c79c2,_0x5e07e9=!0x0){const {id:_0x3ef5b7,authorId:_0x23d14}=_0x22e779['_splitMarkerName'](_0x4c79c2['markerName']),_0x478e0e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21c788=_0x22e779['activeMarkers']['includes'](_0x4c79c2['markerName']);return _0x21c788&&_0x478e0e['push']('ck-suggestion-marker--active'),{'classes':_0x478e0e,'attributes':{'data-suggestion':_0x3ef5b7,'data-author-id':_0x23d14},'priority':_0x21c788&&_0x5e07e9?0xbc2:0xbb8};}_0x22e779['on']('suggestionLoaded',_0xc76d65,{'priority':'high'}),_0x22e779['on']('suggestionUnloaded',_0xc76d65,{'priority':'high'}),_0x114940['model']['document']['registerPostFixer'](()=>{let _0x1d3b61=!0x1;const _0x168668=Array['from'](_0x114940['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cac1d,data:_0x81640a}of _0x168668){const {group:_0x3f1ebf,type:_0x36e932,id:_0x219d9d}=_0x22e779['_splitMarkerName'](_0x1cac1d);if('suggestion'!=_0x3f1ebf||'deletion'!=_0x36e932||_0x81640a['oldRange'])continue;if(!_0x22e779['hasSuggestion'](_0x219d9d))continue;const _0xdd4f1f=_0x22e779['getSuggestion'](_0x219d9d)['getRanges'](),_0x58a874=_0x114940['plugins']['get']('Users')['me'];for(const _0x3d4064 of _0x22e779['getSuggestions']()){if(!_0x3d4064['isInContent']||_0x3d4064['author']!=_0x58a874)continue;if('formatBlock'!=_0x3d4064['type']||'tablePasteCell'!=_0x3d4064['subType'])continue;if(_0x3d4064['getRanges']()['every'](_0x56071a=>_0xdd4f1f['some'](_0x1c3430=>_0x1c3430['containsRange'](_0x56071a,!0x0)))){for(const _0x566817 of _0x3d4064['getAllAdjacentSuggestions']())_0x566817['isInContent']&&(_0x566817['discard'](),_0x1d3b61=!0x0);}}}return _0x1d3b61;}),_0x114940['model']['document']['registerPostFixer'](_0x40e90f=>{const _0x597751=_0x114940['commands']['get']('redo');if(!_0x597751||!_0x597751['_createdBatches']['has'](_0x40e90f['batch']))return!0x1;let _0x4f17a5=!0x1;const _0x352a38=_0x114940['plugins']['get']('Users')['me'],_0x294de2=_0x114940['model']['document']['differ']['getChanges'](),_0x4b0091=Array['from'](_0x114940['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x483768,data:_0x2f7398})=>{const {group:_0x56b106,subType:_0x2bc5b7,authorId:_0x5df09c}=_0x22e779['_splitMarkerName'](_0x483768);return'suggestion'==_0x56b106&&'tablePaste'==_0x2bc5b7&&_0x5df09c==_0x352a38['id']&&!_0x2f7398['oldRange'];});for(const _0x3e9ed8 of _0x294de2){if('insert'!=_0x3e9ed8['type']||'tableCellSuggestion'!=_0x3e9ed8['name']||0x1!=_0x3e9ed8['length'])continue;const _0x53a4c1=_0x40e90f['createRange'](_0x3e9ed8['position'],_0x3e9ed8['position']['getShiftedBy'](0x1));if(!_0x4b0091['find'](({data:_0x38343b})=>_0x38343b['newRange']['isEqual'](_0x53a4c1))){for(const {name:_0x3a47c9,data:_0x16611a}of _0x4b0091)if(_0x53a4c1['containsRange'](_0x16611a['newRange'])){_0x40e90f['updateMarker'](_0x3a47c9,{'range':_0x53a4c1}),_0x4f17a5=!0x0;break;}}}return _0x4f17a5;}),_0x114940['model']['document']['registerPostFixer'](_0x242b24=>{let _0x420ea3=!0x1;const _0x3d563d=_0x114940['plugins']['get']('Users')['me'],_0x5dbbb1=_0x22e779['getSuggestions']()['filter'](_0x38ef1b=>_0x38ef1b['isInContent']&&_0x38ef1b['author']==_0x3d563d),_0x325583=new Set(),_0x3dcd65=new Set();for(const _0x373940 of _0x5dbbb1)if('tablePaste'==_0x373940['subType'])for(const _0x5a301e of _0x373940['getMarkers']()){const _0x58dfe8=_0x5a301e['getRange']()['getContainedElement']();if(_0x58dfe8){if(_0x58dfe8['is']('element','tableCellSuggestion')&&Oe(_0x58dfe8)){_0x373940['removeMarker'](_0x5a301e['name']),_0x325583['add'](_0x58dfe8),_0x420ea3=!0x0;const _0x162f06=_0x58dfe8['nextSibling'],_0x284177=_0x58dfe8['previousSibling'],_0x174ba8=_0x162f06&&_0x162f06['is']('element','tableCellSuggestion'),_0x5233fe=_0x284177&&_0x284177['is']('element','tableCellSuggestion');_0x174ba8&&!_0x325583['has'](_0x162f06)&&_0x3dcd65['add'](_0x162f06),_0x5233fe&&!_0x325583['has'](_0x284177)&&_0x3dcd65['add'](_0x284177);}else _0x58dfe8['is']('element','paragraph')&&_0x58dfe8['isEmpty']&&(_0x373940['removeMarker'](_0x5a301e['name']),_0x420ea3=!0x0);}}else{if('tablePasteCell'==_0x373940['subType']){if(!_0x373940['attributes']||!_0x373940['attributes']['tablePasteChainId'])continue;const _0x24ade0=_0x373940['attributes']['markerAttributes'];if(_0x24ade0&&Object['keys'](_0x24ade0)['length'])continue;const _0x53b318=_0x373940['attributes']['tablePasteChainId'];let _0x2dfa0d=!0x0,_0x2a572b=!0x0;for(const _0x497def of _0x5dbbb1)if(_0x497def['subType']&&_0x497def['subType']['startsWith']('tablePaste')){if(!_0x497def['attributes']['tablePasteChainId']){_0x2a572b=!0x1;break;}if(_0x497def['id']!=_0x373940['id']&&_0x497def['attributes']['tablePasteChainId']==_0x53b318){_0x2dfa0d=!0x1;break;}}_0x2a572b&&_0x2dfa0d&&(_0x373940['removeMarkers'](),_0x420ea3=!0x0);}}for(const _0x1ec591 of _0x325583)_0x242b24['remove'](_0x1ec591);for(const _0x26ba73 of _0x3dcd65)_0x242b24['unwrap'](_0x26ba73);return _0x420ea3;}),_0x114940['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x561f0d=>_0xa489ed(_0x561f0d),'converterPriority':'high'}),_0x114940['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e217d,_0x22e866)=>_0x22e866['options']['showSuggestionHighlights']?_0xa489ed(_0x1e217d,!0x1):null,'converterPriority':'high'});const _0x3cdcc4=_0x114940['editing']['view'];this['listenTo'](_0x3cdcc4['document'],'clipboardOutput',(_0x412f12,_0x39f8f1)=>{const _0x2bd66b=[];for(const _0x220be0 of _0x3cdcc4['createRangeIn'](_0x39f8f1['content'])['getItems']())_0x220be0['is']('element','suggestion-td')&&_0x2bd66b['push'](_0x220be0);_0x3cdcc4['change'](_0x375151=>{for(const _0x218cb2 of _0x2bd66b)_0x375151['move'](_0x375151['createRangeIn'](_0x218cb2),_0x375151['createPositionBefore'](_0x218cb2)),_0x375151['remove'](_0x218cb2);});});}}function Oe(_0x2b5f6d){if(_0x2b5f6d['isEmpty'])return!0x0;const _0x73eaf6=_0x2b5f6d['getChild'](0x0);return _0x73eaf6['is']('element','paragraph')&&_0x73eaf6['isEmpty'];}function Ue(_0x35af1a,_0x2fe63c={},_0x41ad0b){for(const {isAnchor:_0x32da2d,cellHeight:_0x4e28f1,cellWidth:_0x1ed948}of _0x41ad0b['createTableWalker'](_0x35af1a,{'includeAllSlots':!0x0,..._0x2fe63c}))if(!_0x32da2d||0x1!=_0x4e28f1||0x1!=_0x1ed948)return!0x1;return!0x0;}class Dt extends _0x185c8e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x244c02=this['editor']['plugins']['get']('TrackChangesEditing');_0x244c02['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x244c02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x244c02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x244c02['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x244c02['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x244c02['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x10e4b9,_0x3d42ff){const _0x1e68ad=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b3cce=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x19ee7b=_0x3d42ff['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x267dfc=_0x1b3cce['getColumnGroupElement'](_0x19ee7b);let _0x5cc8e3=_0x267dfc?_0x1b3cce['getTableColumnsWidths'](_0x267dfc):null,_0x41694c=_0x19ee7b['getAttribute']('tableWidth')||null;const _0x4ccfeb=_0x3d42ff['tableWidth']||_0x41694c,_0x2550ed=_0x3d42ff['columnWidths']||_0x5cc8e3,_0x5ebf3a=this['editor']['plugins']['get']('Users')['me'];for(const _0x12441c of _0x1e68ad['getSuggestions']()){const _0x398e12=_0x12441c['getContainedElement']();if('resizeTable'===_0x12441c['subType']&&_0x398e12===_0x19ee7b){_0x12441c['author']!==_0x5ebf3a&&_0x12441c['discard']();const _0x36e109=_0x12441c['data']['commandParams'];_0x41694c=_0x36e109[0x0]['tableWidth'],_0x5cc8e3=_0x36e109[0x0]['columnWidths'];break;}}_0x10e4b9({'table':_0x19ee7b,'tableWidth':_0x4ccfeb,'columnWidths':_0x2550ed}),_0x1e68ad['markBlockFormat'](_0x19ee7b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x41694c,'columnWidths':_0x5cc8e3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x473334){if('formatBlock'!=_0x473334['type']&&'formatInline'!=_0x473334['type'])return;const {data:_0x86db6e}=_0x473334;if(_0x86db6e&&'resizeTable'===_0x86db6e['formatGroupId']){const _0x7bbb8a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x7bbb8a)};}}}class Mt extends _0x185c8e{['afterInit'](){const _0x18190c=this['editor'];_0x18190c['plugins']['has']('Template')&&_0x18190c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x185c8e{['afterInit'](){const _0x1e72ff=this['editor'];if(!_0x1e72ff['commands']['get']('insertTableOfContents'))return;_0x1e72ff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe2d2d3=_0x1e72ff['plugins']['get']('TrackChangesEditing'),_0x3d1314=_0x1e72ff['locale'];_0xe2d2d3['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fe658=>o(_0x3d1314,'ELEMENT_TABLE_OF_CONTENTS',_0x1fe658));}}class Bt extends _0x185c8e{['afterInit'](){const _0x332eac=this['editor'];if(!_0x332eac['plugins']['has']('Title'))return;const _0x439d3c=_0x332eac['plugins']['get']('TrackChangesEditing');_0x439d3c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x332eac['locale'],'ELEMENT_TITLE')),_0x332eac['model']['document']['registerPostFixer'](_0xb1e1aa=>{let _0x2b1f52=!0x1;const _0x4829b4=Array['from'](_0x332eac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x502e30,data:_0x3a1386}of _0x4829b4){const {group:_0x31a7d1}=_0x439d3c['_splitMarkerName'](_0x502e30);if('suggestion'!==_0x31a7d1||!_0x3a1386['newRange'])continue;const _0x4870f1=_0x3a1386['newRange'],_0x199df4=_0x4870f1['end']['nodeBefore'];if(!_0x199df4||!_0x199df4['is']('element','title-content'))continue;if(!_0x4870f1['start']['isTouching'](_0x4870f1['end']))continue;const _0x55a980=_0x332eac['model']['schema']['getNearestSelectionRange'](_0x4870f1['end'],'forward');if(_0x55a980&&_0x55a980['isCollapsed']){const _0x58f083=_0xb1e1aa['createRange'](_0x4870f1['start'],_0x55a980['start']);_0x58f083['isEqual'](_0x4870f1)||(_0xb1e1aa['updateMarker'](_0x502e30,{'range':_0x58f083}),_0x2b1f52=!0x0);}_0x2b1f52||(_0xb1e1aa['removeMarker'](_0x502e30),_0x2b1f52=!0x0);}return _0x2b1f52;});}}class Tt extends _0x185c8e{['afterInit'](){const _0x4fe90c=this['editor'],_0x4f3a6b=_0x4fe90c['plugins']['get']('TrackChangesEditing');_0x4fe90c['plugins']['has']('Uploadcare')&&(_0x4f3a6b['enableCommand']('uploadcare'),_0x4fe90c['plugins']['has']('UploadcareImageEdit')&&(_0x4f3a6b['enableCommand']('uploadcareImageEdit'),_0x4f3a6b['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4f3a6b['registerBlockAttribute']('uploadcareImageId'),_0x4f3a6b['descriptionFactory']['registerDescriptionCallback'](_0x604c31=>{if('attribute'!=_0x604c31['type'])return;const {data:_0x12a37e}=_0x604c31;return _0x12a37e&&'uploadcareImageId'==_0x12a37e['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x185c8e{['afterInit'](){const _0x57af5e=this['editor'],_0x55785c=_0x57af5e['plugins']['get']('TrackChangesEditing');_0x57af5e['plugins']['has']('UndoEditing')&&(_0x55785c['enableCommand']('undo'),_0x55785c['enableCommand']('redo'));}}class Ot extends _0x185c8e{static get['requires'](){return[At];}['afterInit'](){const _0x282bd8=this['editor'];if(!_0x282bd8['plugins']['has']('TableCaptionEditing'))return;_0x282bd8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x185c8e{['tableProperties'];['tableCellProperties'];constructor(_0x4d12d3){super(_0x4d12d3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x1ba34c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4c9e8b of this['tableProperties'])_0x1ba34c['enableCommand'](_0x4c9e8b,(_0x27bd6e,_0x387e66)=>{const _0x37b5be=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4c9e8b,[_0x37b5be],this['tableProperties'],'tableProperties',_0x27bd6e,_0x387e66);});_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1ba34c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x241df9,_0x661feb)=>this['handleDiscardAction'](this['tableProperties'],_0x241df9,_0x661feb)),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5113dc of this['tableCellProperties'])_0x1ba34c['enableCommand'](_0x5113dc,(_0x336851,_0x2822b1)=>{const _0x218c2f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5113dc,_0x218c2f,this['tableCellProperties'],'tableCellProperties',_0x336851,_0x2822b1);});_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1ba34c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4822d4,_0x420ffa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4822d4,_0x420ffa)),_0x1ba34c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1ba34c['descriptionFactory']['registerDescriptionCallback'](_0x1e92d8=>this['handleSuggestionDescription'](_0x1e92d8));}['_handlePropertyChange'](_0x2659b1,_0x50e649,_0x1dc7fb,_0x5e0294,_0x56c7e7,_0xc11cbf){const _0x227613=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xc11cbf['batch'],()=>{for(const _0x56fec1 of _0x50e649){if(this['_getSuggestion'](_0x56fec1,_0x5e0294))_0x56c7e7(_0xc11cbf);else{const _0x424517={};for(const _0x218a38 of _0x1dc7fb){const _0x40d4a6=_0x56fec1['getAttribute'](_0x218a38);void 0x0!==_0x40d4a6&&(_0x424517[_0x218a38]=_0x40d4a6);}_0x56c7e7(_0xc11cbf),_0x227613['markBlockFormat'](_0x56fec1,{'commandParams':[_0x424517]},[],_0x5e0294);}}});}['handleDiscardAction'](_0x2a4454,_0x5dee30,_0x589d9a){const _0x5f305e=_0x5dee30[0x0]['start']['nodeAfter'],_0x9b7afb=_0x589d9a['commandParams'][0x0];this['editor']['model']['change'](_0x3444f0=>{for(const _0x2aefd3 of _0x2a4454)void 0x0!==_0x9b7afb[_0x2aefd3]?_0x3444f0['setAttribute'](_0x2aefd3,_0x9b7afb[_0x2aefd3],_0x5f305e):_0x3444f0['removeAttribute'](_0x2aefd3,_0x5f305e);});}['handleSuggestionDescription'](_0x560909){if(_0x560909['data'])switch(_0x560909['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'](_0x435efd,_0x483de1){const _0xacd793=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x238d70 of _0xacd793['getSuggestions']({'skipNotAttached':!0x0})){const _0x3f2114=_0x238d70['getContainedElement']();if(_0x238d70['subType']===_0x483de1&&_0x3f2114===_0x435efd)return _0x238d70;}return null;}}class Rt extends _0x185c8e{['afterInit'](){const _0x202b4b=this['editor'];if(!_0x202b4b['plugins']['has']('LineHeight'))return;const _0x19e127=_0x202b4b['plugins']['get']('TrackChangesEditing'),_0x23bbed=_0x202b4b['locale'];_0x19e127['enableDefaultAttributesIntegration']('lineHeight'),_0x19e127['registerBlockAttribute']('lineHeight'),_0x19e127['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x23bbed,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x185c8e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x7e9419,_0x29dc66,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1aa35f){super(_0x1aa35f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2ec290,_0x4f8bdb,_0x54caf7,_0x597a1a)=>{this['_model']['change'](()=>{for(const _0x451246 of[..._0x597a1a,..._0x54caf7])this['_model']['markers']['has'](_0x451246)&&_0x1aa35f['editing']['reconvertMarker'](_0x451246);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1aa35f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1aa35f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1aa35f['config']['get']('trackChanges.trackFormatChanges'),_0x1aa35f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1aa35f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x1aa35f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x120b69=this['editor'],_0x31989c=(_0x3c3451,_0xbecb71)=>{if('attribute'!=_0x3c3451)return'ck-suggestion-marker-'+_0x3c3451;const _0x31ce70=_0xbecb71['split']('|')[0x0];return this['_isBlockAttribute'](_0x31ce70)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x120b69['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x37b749=>{const {id:_0x20a352,authorId:_0x1d9bf3,type:_0x54e96f,subType:_0x431648}=this['_splitMarkerName'](_0x37b749['markerName']),_0x21d553=['ck-suggestion-marker',_0x31989c(_0x54e96f,_0x431648)];let _0x45100a=0xbb8;return this['activeMarkers']['includes'](_0x37b749['markerName'])&&(_0x21d553['push']('ck-suggestion-marker--active'),_0x45100a=0xbc2),'deletion'==_0x54e96f&&(_0x45100a+=0x5),{'classes':_0x21d553,'attributes':{'data-suggestion':_0x20a352,'data-author-id':_0x1d9bf3},'priority':_0x45100a};}}),_0x120b69['conversion']['for']('dataDowncast')['add'](_0x404e5b=>{_0x404e5b['on']('addMarker:suggestion',(_0x237153,_0xee4bc2,_0x552e45)=>{if(!_0x552e45['options']['showSuggestionHighlights'])return;const _0x1f83bb=_0xee4bc2['item'];if(!_0x1f83bb)return;const _0x3b08f9=_0x552e45['mapper']['toViewElement'](_0x1f83bb);_0x120b69['model']['schema']['isObject'](_0x1f83bb)&&_0x3b08f9&&!_0x3b08f9['getCustomProperty']('widget')&&_0x3b08f9['is']('containerElement')&&_0xdc8a31(_0x3b08f9,_0x552e45['writer']);},{'priority':'high'});}),_0x120b69['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1cf25e,_0x3bcbc9)=>{if(!_0x3bcbc9['options']['showSuggestionHighlights'])return null;const {id:_0x22515c,authorId:_0x2dae40,type:_0x493a43,subType:_0x52363a}=this['_splitMarkerName'](_0x1cf25e['markerName']);return{'classes':['ck-suggestion-marker',_0x31989c(_0x493a43,_0x52363a)],'priority':0xbb8,'attributes':{'data-suggestion':_0x22515c,'data-author-id':_0x2dae40}};}});const _0x241ec5=({showActiveMarkers:_0x51db2b=!0x0,isAttributeSuggestion:_0x43a928=!0x1}={})=>(_0x40112e,_0x566a48,_0x8ffcb4)=>{if(!_0x566a48['item'])return;const {id:_0xcb99ae,authorId:_0x7f26af}=this['_splitMarkerName'](_0x566a48['markerName']);if(_0x43a928){const _0x46dec6=this['_suggestions']['get'](_0xcb99ae),_0x4aa33b=this['_getAttributeKey'](_0x46dec6);if(!this['_isBlockAttribute'](_0x4aa33b))return;}if(_0x566a48['item']['is']('selection'))return void _0x8ffcb4['consumable']['consume'](_0x566a48['item'],_0x40112e['name']);const _0x4f95ec=_0x8ffcb4['mapper']['toViewElement'](_0x566a48['item']);if(_0x566a48['item']['is']('element')&&_0x120b69['model']['schema']['isBlock'](_0x566a48['item'])&&!_0x4f95ec['getCustomProperty']('addHighlight')){_0x8ffcb4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4f95ec),_0x8ffcb4['writer']['setAttribute']('data-suggestion',_0xcb99ae,_0x4f95ec),_0x8ffcb4['writer']['setAttribute']('data-author-id',_0x7f26af,_0x4f95ec),_0x8ffcb4['mapper']['bindElementToMarker'](_0x4f95ec,_0x566a48['markerName']),_0x51db2b&&(this['activeMarkers']['includes'](_0x566a48['markerName'])?_0x8ffcb4['writer']['addClass']('ck-suggestion-marker--active',_0x4f95ec):_0x8ffcb4['writer']['removeClass']('ck-suggestion-marker--active',_0x4f95ec));for(const _0x2cb18e of _0x120b69['model']['createRangeIn'](_0x566a48['item'])['getItems']())_0x8ffcb4['consumable']['consume'](_0x2cb18e,_0x40112e['name']);_0x8ffcb4['consumable']['consume'](_0x566a48['item'],_0x40112e['name']);}};_0x120b69['conversion']['for']('dataDowncast')['add'](_0x595b12=>{_0x595b12['on']('addMarker:suggestion:formatBlock',(_0x514594,_0x30cf74,_0x490bdf)=>{_0x490bdf['options']['showSuggestionHighlights']&&_0x241ec5({'showActiveMarkers':!0x1})(_0x514594,_0x30cf74,_0x490bdf);},{'priority':'highest'});}),_0x120b69['conversion']['for']('dataDowncast')['add'](_0xe71a6c=>{_0xe71a6c['on']('addMarker:suggestion:attribute',(_0x45516d,_0x5c0264,_0x22b486)=>{_0x22b486['options']['showSuggestionHighlights']&&_0x241ec5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x45516d,_0x5c0264,_0x22b486);},{'priority':'highest'});}),_0x120b69['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x318f8b,_0x56ee9d)=>{if(_0x56ee9d['options']['showSuggestionHighlights']){const {id:_0x565673,authorId:_0x55bb1c}=this['_splitMarkerName'](_0x318f8b);return _0x318f8b['includes'](':split')||_0x318f8b['includes'](':merge')?{'group':'suggestion','name':_0x318f8b['substr'](0xb),'attributes':{'data-suggestion':_0x565673,'data-author-id':_0x55bb1c}}:null;}return{'group':'suggestion','name':_0x318f8b['substr'](0xb)};}}),_0x120b69['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4e2f33,{writer:_0x1d4b26})=>{let _0x52dd8d='suggestion:'+_0x4e2f33['getAttribute']('suggestion-type')+':'+_0x4e2f33['getAttribute']('id');return _0x4e2f33['getAttribute']('marker-count')&&(_0x52dd8d+=':'+_0x4e2f33['getAttribute']('marker-count')),_0x1d4b26['createElement']('$marker',{'data-name':_0x52dd8d});}}),_0x120b69['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x208365=>{_0x208365['on']('addMarker:suggestion:formatBlock',_0x241ec5(),{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x2e71ac=>{_0x2e71ac['on']('addMarker:suggestion:attribute',_0x241ec5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0xfd1b71=>{_0xfd1b71['on']('removeMarker:suggestion:formatBlock',(_0x2cb9df,_0x5544f5,_0x4fabfd)=>{const _0x5c5886=_0x4fabfd['mapper']['markerNameToElements'](_0x5544f5['markerName']);if(_0x5c5886){for(const _0x2c9bff of _0x5c5886)_0x2c9bff['getCustomProperty']('addHighlight')||(_0x4fabfd['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2c9bff),_0x4fabfd['writer']['removeAttribute']('data-suggestion',_0x2c9bff),_0x4fabfd['writer']['removeAttribute']('data-author-id',_0x2c9bff),_0x4fabfd['mapper']['unbindElementFromMarkerName'](_0x2c9bff,_0x5544f5['markerName']));}},{'priority':'high'});}),_0x120b69['conversion']['for']('editingDowncast')['add'](_0x389638=>{_0x389638['on']('removeMarker:suggestion:attribute',(_0x4a4407,_0x176dcb,_0x2a9cf9)=>{const _0x1454a6=_0x2a9cf9['mapper']['markerNameToElements'](_0x176dcb['markerName']);if(!_0x1454a6)return;const {id:_0x5d9dc8}=this['_splitMarkerName'](_0x176dcb['markerName']),_0x4bd366=this['_suggestions']['get'](_0x5d9dc8),_0xe6b2e6=this['_getAttributeKey'](_0x4bd366);if(this['_isBlockAttribute'](_0xe6b2e6)){for(const _0x691100 of _0x1454a6)_0x691100['getCustomProperty']('addHighlight')||(_0x2a9cf9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x691100),_0x2a9cf9['writer']['removeAttribute']('data-suggestion',_0x691100),_0x2a9cf9['writer']['removeAttribute']('data-author-id',_0x691100),_0x2a9cf9['mapper']['unbindElementFromMarkerName'](_0x691100,_0x176dcb['markerName']));}},{'priority':'high'});}),_0x120b69['model']['document']['registerPostFixer'](_0x54daa7=>{let _0x41f806=!0x1;const _0x3621c2=Array['from'](_0x120b69['model']['document']['differ']['getChangedMarkers']()),_0x1d3244=new Set();for(const {name:_0x41fe02,data:_0x31918b}of _0x3621c2){const {group:_0x52f565,type:_0x371861,subType:_0x101710,id:_0x4fa5fa}=this['_splitMarkerName'](_0x41fe02);if('suggestion'!==_0x52f565)continue;const _0x3ebd57=this['_suggestions']['get'](_0x4fa5fa);if(null!=_0x31918b['newRange']){'formatInline'==_0x371861&&(_0x41f806=_0x41f806||Gt(_0x31918b['newRange'],_0x41fe02,_0x54daa7,_0x120b69['model']['schema']));const _0xae3152='attribute'==_0x371861&&this['_isBlockAttribute'](_0x101710['split']('|')[0x0]);if(_0x31918b['newRange']['isCollapsed']||'$graveyard'==_0x31918b['newRange']['root']['rootName']||'formatBlock'==_0x371861&&!Jt(_0x31918b['newRange'])||_0xae3152&&!Jt(_0x31918b['newRange'])||'deletion'==_0x371861&&!Kt(_0x31918b['newRange']))_0x54daa7['removeMarker'](_0x41fe02),_0x41f806=!0x0;else{if(!_0x3ebd57||!_0x3ebd57['isInContent'])continue;if(_0x31918b['newRange']&&_0x31918b['oldRange']&&_0x31918b['newRange']['isEqual'](_0x31918b['oldRange']))continue;_0x1d3244['add'](_0x3ebd57);}}}return _0x1d3244['size']>0x0&&(_0x41f806=!!this['_joinWithAdjacentSuggestions'](_0x1d3244)||_0x41f806),_0x41f806;}),_0x120b69['model']['document']['registerPostFixer'](_0x1acac0=>{let _0x50e502=!0x1;for(const _0x27f52a of _0x120b69['model']['document']['differ']['getChanges']())if('insert'==_0x27f52a['type'])for(const _0x38fbf3 of this['_suggestions']['values']()){if(_0x38fbf3['isMultiRange']||!_0x38fbf3['isInContent'])continue;const _0x1672f3='formatBlock'==_0x38fbf3['type'],_0xa0af1=this['_getAttributeKey'](_0x38fbf3),_0x66921a=_0xa0af1&&this['_isBlockAttribute'](_0xa0af1);if(!_0x1672f3&&!_0x66921a)continue;const _0x2bb50e=_0x38fbf3['getFirstRange']();if(_0x2bb50e['start']['parent']!=_0x2bb50e['end']['parent']&&!_0x2bb50e['end']['isAtEnd']){const _0x559607=_0x120b69['model']['createPositionAt'](_0x2bb50e['start']['nodeAfter'],'end'),_0x1229cb=_0x120b69['model']['createRange'](_0x2bb50e['start'],_0x559607);_0x1acac0['updateMarker'](_0x38fbf3['getFirstMarker'](),{'range':_0x1229cb}),_0x50e502=!0x0;}}return _0x50e502;}),_0x120b69['model']['document']['registerPostFixer'](_0xd4c938=>this['_processAttributeChanges'](_0xd4c938)),_0x120b69['model']['document']['registerPostFixer'](_0x367901=>!_0x367901['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x367901)),_0x120b69['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x120b69['model']['document']['on']('change:data',(_0x123f3,_0x365bc3)=>{if(!_0x365bc3['isLocal']||_0x365bc3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x520566=_0x120b69['model']['document']['differ']['getChanges']();if(0x0==_0x520566['length'])return;const _0x53cbde=[],_0x14f947=_0x520566['filter'](_0x1b791f=>'attribute'==_0x1b791f['type']),_0x4c87ef=_0x520566['filter'](_0x35ed27=>'insert'==_0x35ed27['type']&&'$text'!=_0x35ed27['name']);for(const _0xbcacaf of _0x14f947)this['_isRegisteredAttribute'](_0xbcacaf['attributeKey'])&&_0x53cbde['push']({'key':_0xbcacaf['attributeKey'],'newValue':_0xbcacaf['attributeNewValue'],'oldValue':_0xbcacaf['attributeOldValue'],'range':Ht(_0xbcacaf['range'],_0x120b69['model'])});for(const _0x429c14 of _0x4c87ef){if('rename'!=_0x429c14['action']&&'refresh'!=_0x429c14['action'])continue;const _0x5c3163=qt(_0x429c14['position']['nodeAfter'],_0x120b69['model']),_0x43c8fc=_0x429c14['before'];'rename'==_0x429c14['action']&&_0x53cbde['push']({'key':m,'newValue':_0x429c14['name'],'oldValue':_0x43c8fc['name'],'range':_0x5c3163});for(const [_0x195bd1,_0x46c890]of _0x43c8fc['attributes']){if(!this['_isRegisteredAttribute'](_0x195bd1))continue;const _0x534f4d=_0x429c14['attributes']['get'](_0x195bd1);_0x46c890!==_0x534f4d&&_0x53cbde['push']({'key':_0x195bd1,'newValue':_0x534f4d,'oldValue':_0x46c890,'range':_0x5c3163});}for(const [_0x1a3542,_0x57682d]of _0x429c14['attributes'])this['_isRegisteredAttribute'](_0x1a3542)&&(_0x43c8fc['attributes']['has'](_0x1a3542)||_0x53cbde['push']({'key':_0x1a3542,'newValue':_0x57682d,'oldValue':null,'range':_0x5c3163}));}0x0!=_0x53cbde['length']&&_0x120b69['model']['enqueueChange'](_0x365bc3,_0x4cac4=>{const _0x1c3f9f=_0x510ab3();for(const {range:_0x1f753c,key:_0x16823e,oldValue:_0x138b21,newValue:_0x40a73e}of _0x53cbde)this['markAttributeChange'](_0x1f753c,_0x16823e,_0x138b21,_0x40a73e,{'groupId':_0x1c3f9f});this['_reduceExistingSuggestions'](_0x4cac4,_0x53cbde);});},{'priority':'lowest'}),_0x120b69['model']['markers']['on']('update:suggestion',(_0x2bb908,_0x5a6fd9,_0x241155)=>{if(null==_0x241155){const {id:_0x4af19a}=this['_splitMarkerName'](_0x5a6fd9['name']),_0x22e6e2=this['_suggestions']['get'](_0x4af19a);_0x22e6e2&&_0x22e6e2['addMarkerName'](_0x5a6fd9['name']);}}),_0x120b69['model']['document']['on']('change:data',()=>{const _0xb91677=Array['from'](_0x120b69['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3b8fa2=>'suggestion'===this['_splitMarkerName'](_0x3b8fa2['name'])['group']);if(0x0===_0xb91677['length'])return;_0xb91677['sort']((_0x587219,_0x375720)=>{const _0x55b9ad=_0x587219['data']['oldRange'],_0x29f001=_0x375720['data']['oldRange'];return null===_0x55b9ad&&null===_0x29f001?0x0:null===_0x55b9ad&&null!==_0x29f001?-0x1:null!==_0x55b9ad&&null===_0x29f001?0x1:_0x55b9ad['start']['isBefore'](_0x29f001['start'])?-0x1:0x1;});const _0x88b0e8=new Set(),_0x5b70c0=new Set();for(const {name:_0x7bcc41,data:_0x430330}of _0xb91677){const {id:_0x7c1022}=this['_splitMarkerName'](_0x7bcc41);if(null===_0x430330['oldRange']){const _0x34b371=this['_handleNewSuggestionMarker'](_0x7bcc41);_0x5b70c0['add'](_0x34b371);}else{const _0x4a29a5=this['_suggestions']['get'](_0x7c1022);null!==_0x430330['newRange']||_0x4a29a5['isInContent']?(_0x88b0e8['add'](_0x4a29a5['head']),_0x5b70c0['add'](_0x4a29a5)):this['_removeSuggestion'](_0x4a29a5);}}_0x5b70c0['size']>0x0&&this['_refreshSuggestionsChain'](_0x5b70c0);for(const _0x56002b of _0x88b0e8)this['fire']('suggestionChanged',_0x56002b);}),_0x120b69['model']['on']('applyOperation',(_0x3fdc6d,_0x3660a5)=>{const _0x42f8ee=_0x3660a5[0x0];if(!this['_suggestions']['size'])return;if(!_0x42f8ee['isDocumentOperation'])return;if(_0x42f8ee['batch']['isUndo']||!_0x42f8ee['batch']['isLocal'])return;let _0x331dd3,_0x571792;switch(_0x42f8ee['type']){case'insert':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['position']),_0x571792=_0x331dd3['getShiftedBy'](_0x42f8ee['howMany']);break;case'split':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['splitPosition']),_0x571792=_0x120b69['model']['createPositionAt'](_0x42f8ee['moveTargetPosition']);break;case'move':_0x331dd3=_0x120b69['model']['createPositionAt'](_0x42f8ee['targetPosition']),_0x571792=_0x331dd3['getShiftedBy'](_0x42f8ee['howMany']);break;default:return;}const _0x213729=_0x120b69['model']['createRange'](_0x331dd3,_0x571792);_0x120b69['model']['change'](()=>{for(const {suggestion:_0x4e9924,meta:_0x13a450}of this['_findSuggestions'](_0x213729)){if(_0x4e9924['isMultiRange'])continue;if('formatInline'==_0x4e9924['type'])continue;const _0x11de70=this['_getAttributeKey'](_0x4e9924);if(_0x11de70&&this['_isBlockAttribute'](_0x11de70)&&'split'!=_0x42f8ee['type'])continue;const _0x376467=_0x4e9924['data']&&_0x4e9924['data']['multipleBlocks'];('formatBlock'!=_0x4e9924['type']||'split'==_0x42f8ee['type']&&!_0x376467)&&(_0x13a450['containsRangeInObject']||'insertion'==_0x4e9924['type']&&_0x13a450['isOwn']||_0x4e9924['getFirstRange']()['containsRange'](_0x213729)&&this['_breakSuggestionMarker'](_0x4e9924,_0x331dd3,_0x571792));}});},{'priority':'lowest'}),_0x120b69['model']['on']('deleteContent',(_0x57bdac,_0x5ef01d)=>{const _0x5eb4e5=_0x5ef01d[0x0],_0x15c62e=_0x5ef01d[0x1];if(_0x15c62e&&_0x15c62e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5eb4e5['isCollapsed'])return;const _0x5784cc=_0x120b69['model']['schema'],{start:_0x2bf675,end:_0xa8902c}=_0x5eb4e5['getFirstRange'](),_0x124f26=_0x2bf675['nodeAfter']&&_0x5784cc['isLimit'](_0x2bf675['nodeAfter'])?null:_0x5784cc['getNearestSelectionRange'](_0x2bf675,'forward'),_0x1170ec=_0xa8902c['nodeBefore']&&_0x5784cc['isLimit'](_0xa8902c['nodeBefore'])?null:_0x5784cc['getNearestSelectionRange'](_0xa8902c,'backward'),_0x34c9ae=_0x120b69['model']['createRange'](_0x124f26?_0x124f26['start']:_0x2bf675,_0x1170ec?_0x1170ec['end']:_0xa8902c);_0x120b69['model']['change'](_0x35a8f3=>{this['markDeletion'](_0x34c9ae);const _0x28f07b=_0x120b69['model']['schema']['getNearestSelectionRange'](_0x34c9ae['start']);_0x5eb4e5['is']('documentSelection')?_0x35a8f3['setSelection'](_0x28f07b):_0x5eb4e5['setTo'](_0x28f07b);}),_0x57bdac['stop']();},{'priority':_0xa6a0c5['normal']+0xa}),_0x120b69['model']['on']('insertContent',(_0x505fd7,_0x3c4ea4)=>{const _0x26e4e3=_0x3c4ea4[_0x3c4ea4['length']-0x1];_0x26e4e3&&_0x26e4e3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x120b69['model']['change'](()=>{let _0x44bc49=_0x120b69['model']['insertContent'](_0x3c4ea4[0x0],_0x3c4ea4[0x1],_0x3c4ea4[0x2],{'forceDefaultExecution':!0x0});if(!_0x44bc49)return;_0x505fd7['return']=_0x44bc49['clone']();const _0x3e7301=_0x44bc49['end']['nodeBefore'],_0x418ec4=_0x120b69['model']['schema'];_0x3e7301&&_0x418ec4['isBlock'](_0x3e7301)&&!_0x418ec4['isObject'](_0x3e7301)&&(_0x44bc49=_0x120b69['model']['createRange'](_0x44bc49['start'],_0x120b69['model']['createPositionAt'](_0x3e7301,'end'))),this['markInsertion'](_0x44bc49);}),_0x505fd7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12e70a=new D(_0x120b69,this['_suggestions']);_0x120b69['commands']['add']('acceptSuggestion',_0x12e70a),this['enableCommand']('acceptSuggestion');const _0x2842a3=new M(_0x120b69,this['_suggestions']);_0x120b69['commands']['add']('discardSuggestion',_0x2842a3),this['enableCommand']('discardSuggestion'),_0x120b69['commands']['add']('acceptAllSuggestions',new $(_0x120b69,_0x12e70a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x120b69['commands']['add']('discardAllSuggestions',new $(_0x120b69,_0x2842a3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x120b69['commands']['add']('acceptSelectedSuggestions',new B(_0x120b69,_0x12e70a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x120b69['commands']['add']('discardSelectedSuggestions',new B(_0x120b69,_0x2842a3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x14471b=_0x120b69['plugins']['get']('CommentsRepository');this['listenTo'](_0x14471b,'addComment',(_0x5679d6,{threadId:_0x37782c})=>{const _0x7cce0e=this['_suggestions']['get'](_0x37782c);_0x7cce0e&&_0x7cce0e['commentThread']&&0x1===_0x7cce0e['commentThread']['length']&&this['_updateSuggestionData'](_0x37782c,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x14471b,'removeComment',(_0x1fabaf,{threadId:_0xa47387})=>{const _0x2542fa=this['_suggestions']['get'](_0xa47387);_0x2542fa&&_0x2542fa['commentThread']&&!_0x2542fa['commentThread']['length']&&this['_updateSuggestionData'](_0xa47387,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2e5f50){const _0x59d647=_0x279d43([0x30,0x32,0x79,0x70,0x6d,0x39,0x54,0x6a,0x57,0x6e,0x47,0x72,0x66,0x52,0x59,0x4e,0x6f,0x5a,0x55,0x78,0x71,0x58,0x31,0x48,0x65,0x69,0x74,0x62,0x53,0x4a,0x75,0x4b,0x4d,0x46,0x43,0x45,0x38,0x76,0x34,0x49,0x41,0x35,0x7a,0x68,0x4c,0x61,0x56,0x64,0x6b,0x67,0x63,0x51,0x73,0x33,0x42,0x44,0x36,0x6c,0x77,0x4f,0x37,0x50]),_0x2a5a10=0x6881b87d,_0x107da4=0x6886d4fd^_0x2a5a10,_0x1e3210=window[_0x279d43([0x44,0x61,0x74,0x65])][_0x279d43([0x6e,0x6f,0x77])](),_0x4feacb=_0x2e5f50[_0x279d43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e2abd=new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x234c02=>{_0x4feacb[_0x279d43([0x6f,0x6e,0x63,0x65])](_0x279d43([0x72,0x65,0x61,0x64,0x79]),_0x234c02);}),_0x10acbb={[_0x279d43([0x6b,0x74,0x79])]:_0x279d43([0x45,0x43]),[_0x279d43([0x75,0x73,0x65])]:_0x279d43([0x73,0x69,0x67]),[_0x279d43([0x63,0x72,0x76])]:_0x279d43([0x50,0x2d,0x32,0x35,0x36]),[_0x279d43([0x78])]:_0x279d43([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]),[_0x279d43([0x79])]:_0x279d43([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]),[_0x279d43([0x61,0x6c,0x67])]:_0x279d43([0x45,0x53,0x32,0x35,0x36])},_0xfa9ea5=_0x4feacb[_0x279d43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x279d43([0x67,0x65,0x74])](_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1ee3de(){let _0x3b86bf,_0x138f02=null,_0x4a3aba=null;try{if(_0xfa9ea5==_0x279d43([0x47,0x50,0x4c]))return _0x279d43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b86bf=_0x37c1cc(),!_0x3b86bf)return _0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b86bf[_0x279d43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4a3aba=_0x4dce0f(_0x3b86bf[_0x279d43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b86bf[_0x279d43([0x6a,0x74,0x69])])),await _0x4f274e()?_0x1f2002()?_0x35a699()?_0x279d43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x28931e()?(_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x279d43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x138f02=_0x143b4b(_0x279d43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x279d43([0x74,0x72,0x69,0x61,0x6c])&&(_0x138f02=_0x143b4b(_0x279d43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x486e14()):_0x279d43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x279d43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x279d43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x35a699(){const _0xb41af6=[_0x279d43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x279d43([0x74,0x72,0x69,0x61,0x6c])][_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e3210/0x3e8:0xe10*_0x107da4;return _0x3b86bf[_0x279d43([0x65,0x78,0x70])]<_0xb41af6;}function _0x1f2002(){const _0x440b81=_0x3b86bf[_0x279d43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x440b81)return!0x1;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x2a])))return!0x0;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x54,0x43])))return!0x0;if(_0x440b81[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x52,0x54,0x43]))){if(_0x1058a5())return!0x0;if(_0x5da04c()||_0x594353())return!0x0;}return!0x1;}function _0x28931e(){const _0x16e03d=_0x3b86bf[_0x279d43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x16e03d||0x0==_0x16e03d[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e4be2}=new URL(window[_0x279d43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x16e03d[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e4be2))return!0x0;const _0x43b754=_0x5e4be2[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e]));return _0x16e03d[_0x279d43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xcbe300=>_0xcbe300[_0x279d43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x279d43([0x2a])))[_0x279d43([0x6d,0x61,0x70])](_0x4960ab=>_0x4960ab[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e])))[_0x279d43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37a47c=>_0x37a47c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x43b754[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x279d43([0x6d,0x61,0x70])](_0x140bd2=>Array(_0x43b754[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x140bd2[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x279d43([0x66,0x69,0x6c,0x6c])](_0x140bd2[0x0]===_0x279d43([0x2a])?_0x279d43([0x2a]):'')[_0x279d43([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x140bd2))[_0x279d43([0x73,0x6f,0x6d,0x65])](_0x50a921=>_0x43b754[_0x279d43([0x65,0x76,0x65,0x72,0x79])]((_0x2cfd27,_0x12bcf3)=>_0x50a921[_0x12bcf3]===_0x2cfd27||_0x50a921[_0x12bcf3]===_0x279d43([0x2a])));}function _0x486e14(){return _0x138f02&&_0x4a3aba?new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52cce4,_0x51f27a)=>{_0x138f02[_0x279d43([0x74,0x68,0x65,0x6e])](_0x52cce4,_0x51f27a),_0x4a3aba[_0x279d43([0x74,0x68,0x65,0x6e])](_0x58191e=>{_0x58191e!=_0x279d43([0x56,0x61,0x6c,0x69,0x64])&&_0x52cce4(_0x58191e);},_0x51f27a);}):_0x138f02||_0x4a3aba||_0x279d43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4dce0f(_0x1b6d58,_0x324118){return new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ccd66=>{if(_0x44caf6())return _0x3ccd66(_0x279d43([0x56,0x61,0x6c,0x69,0x64]));_0x134668(),_0x4feacb[_0x279d43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x590178=!0x1;const _0x2d7a49=_0x510ab3();function _0xbccae9(_0x265605){return!!_0x265605&&(typeof _0x265605===_0x279d43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x265605===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x265605[_0x279d43([0x74,0x68,0x65,0x6e])]===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x265605[_0x279d43([0x63,0x61,0x74,0x63,0x68])]===_0x279d43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xafa000(_0x170a01){_0x1c7b8b(_0x170a01)[_0x279d43([0x74,0x68,0x65,0x6e])](_0x151d0e=>{if(!_0x151d0e||_0x151d0e[_0x279d43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x279d43([0x6f,0x6b]))return _0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c615f(_0x4a9353(_0x2d7a49+_0x324118))!=_0x151d0e[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x279d43([0x56,0x61,0x6c,0x69,0x64]);})[_0x279d43([0x74,0x68,0x65,0x6e])](_0x53b8c0=>(_0x2eeb5b(),_0x53b8c0),()=>{const _0x50cea8=_0x2775e9();return null==_0x50cea8?(_0x2eeb5b(),_0x279d43([0x56,0x61,0x6c,0x69,0x64])):_0x279d43(_0x1e3210-_0x50cea8>(0x4c8d3c7d^_0x2a5a10)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x279d43([0x74,0x68,0x65,0x6e])](_0x3ccd66)[_0x279d43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3d33ef=0x68b756fd^_0x2a5a10;function _0x2eeb5b(){const _0x792c02=_0x279d43([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c615f(_0x4a9353(_0x1b6d58)),_0x53517b=_0x1d869c(_0x3c615f(window[_0x279d43([0x4d,0x61,0x74,0x68])][_0x279d43([0x63,0x65,0x69,0x6c])](_0x1e3210/_0x3d33ef)));window[_0x279d43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x279d43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x792c02,_0x53517b);}function _0x2775e9(){const _0x4956f6=_0x279d43([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c615f(_0x4a9353(_0x1b6d58)),_0x40b1a6=window[_0x279d43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x279d43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4956f6);return _0x40b1a6?window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d869c(_0x40b1a6),0x10)*_0x3d33ef:null;}function _0x1c7b8b(_0xbc6fcd){return new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x401aa0,_0xfe8b20)=>{_0xbc6fcd[_0x279d43([0x74,0x68,0x65,0x6e])](_0x401aa0,_0xfe8b20),window[_0x279d43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfe8b20,0x68806cbd^_0x2a5a10);});}}_0x4feacb[_0x279d43([0x6f,0x6e])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x518a64,_0x1ad887)=>{if(_0x1ad887[0x0]!=_0x1b6d58)return _0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ad887[0x1]={..._0x1ad887[0x1],[_0x279d43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d7a49};},{[_0x279d43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x279d43([0x68,0x69,0x67,0x68])}),_0x4feacb[_0x279d43([0x6f,0x6e])](_0x279d43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b6bf5=>{_0xbccae9(_0x1b6bf5[_0x279d43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x590178=!0x0,_0xafa000(_0x1b6bf5[_0x279d43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x279d43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x279d43([0x6c,0x6f,0x77])}),_0x2e2abd[_0x279d43([0x74,0x68,0x65,0x6e])](()=>{_0x590178||_0x3ccd66(_0x279d43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44caf6(){return _0x4feacb[_0x279d43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x279d43([0x76,0x69,0x65,0x77])][_0x279d43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x279d43([0x61,0x75,0x74,0x6f]);}function _0x134668(){_0x4feacb[_0x279d43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x279d43([0x76,0x69,0x65,0x77])][_0x279d43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x279d43([0x61,0x75,0x74,0x6f]);}}function _0x143b4b(_0x4ac06c){const _0x1016f1=[new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4851c8=>setTimeout(_0x4851c8,0x688886b1^_0x2a5a10)),_0x2e2abd[_0x279d43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31326c=>{let _0x40381f=0x0;_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x6f,0x6e])](_0x279d43([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2145bb,_0x4e1ddb)=>{_0x4e1ddb[0x0][_0x279d43([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40381f++,_0x40381f==(0x6881b985^_0x2a5a10)&&(_0x31326c(),_0x2145bb[_0x279d43([0x6f,0x66,0x66])]());});}))];return window[_0x279d43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x279d43([0x72,0x61,0x63,0x65])](_0x1016f1)[_0x279d43([0x74,0x68,0x65,0x6e])](()=>_0x4ac06c);}async function _0x41090e(){await _0x2e2abd,_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a83c2,_0x4feacb[_0x279d43([0x6d,0x6f,0x64,0x65,0x6c])][_0x279d43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a83c2,_0x4feacb[_0x279d43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x279d43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1058a5(){return _0x4161c7(_0x279d43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xc1c908(_0x279d43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x279d43([0x73,0x74,0x61,0x74,0x65])]==_0x279d43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5da04c(){return _0x4161c7(_0x279d43([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 _0x594353(){return _0x4161c7(_0x279d43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5c13aa(_0x177a4e){const _0x3d79f1=_0xffb4d2();_0x4feacb[_0x3d79f1]=_0x279d43([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x177a4e,_0x177a4e!=_0x279d43([0x56,0x61,0x6c,0x69,0x64])&&_0x41090e();}function _0xffb4d2(){const _0xcbff3f=window[_0x279d43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x279d43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x279d43([0x6e,0x6f,0x77])]())[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x279d43([0x2e]),'');let _0x2b01c5=_0x279d43([0x79]);for(let _0x79b6b7=0x0;_0x79b6b7<_0xcbff3f[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x79b6b7+=0x2){let _0x28c059=window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcbff3f[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x79b6b7,_0x79b6b7+0x2));_0x28c059>=_0x59d647[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28c059-=_0x59d647[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2b01c5+=_0x59d647[_0x28c059];}return _0x2b01c5;}function _0x37c1cc(){const _0x49e3f7=_0xfa9ea5[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e]));if(0x3!=_0x49e3f7[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x489a76(_0x49e3f7[0x1]);function _0x489a76(_0x550670){const _0x432410=_0x4dcba6(_0x550670);return _0x432410&&_0x5d92df()?_0x432410:null;function _0x5d92df(){const _0x41a88c=_0x432410[_0x279d43([0x6a,0x74,0x69])],_0x14a46d=window[_0x279d43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41a88c[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41a88c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c8600={..._0x432410,[_0x279d43([0x6a,0x74,0x69])]:_0x41a88c[_0x279d43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41a88c[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c8600[_0x279d43([0x76,0x63])],_0x4a9353(_0x1c8600)==_0x14a46d;}}}async function _0x4f274e(){let _0xecdea7=!0x0;try{const _0xe4a90b=_0xfa9ea5[_0x279d43([0x73,0x70,0x6c,0x69,0x74])](_0x279d43([0x2e])),[_0x45d910,_0x5282cf,_0x558548]=_0xe4a90b;return _0xc125bc(_0x45d910),await _0xb93648(_0x45d910,_0x5282cf,_0x558548),_0xecdea7;}catch{return!0x1;}function _0xc125bc(_0xced3bd){const _0x11296d=_0x4dcba6(_0xced3bd);_0x11296d&&_0x11296d[_0x279d43([0x61,0x6c,0x67])]==_0x279d43([0x45,0x53,0x32,0x35,0x36])||(_0xecdea7=!0x1);}async function _0xb93648(_0x5aee8b,_0x39869b,_0x390622){const _0x46e7f7=window[_0x279d43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x279d43([0x66,0x72,0x6f,0x6d])](_0x2f2c81(_0x390622),_0x32e6f0=>_0x32e6f0[_0x279d43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34ed58=new window[(_0x279d43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x279d43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5aee8b+_0x279d43([0x2e])+_0x39869b),_0x4a2da0=window[_0x279d43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x279d43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a2da0)return;const _0x10337e=await _0x4a2da0[_0x279d43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x279d43([0x6a,0x77,0x6b]),_0x10acbb,{[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x45,0x43,0x44,0x53,0x41]),[_0x279d43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x279d43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a2da0[_0x279d43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x45,0x43,0x44,0x53,0x41]),[_0x279d43([0x68,0x61,0x73,0x68])]:{[_0x279d43([0x6e,0x61,0x6d,0x65])]:_0x279d43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10337e,_0x46e7f7,_0x34ed58)||(_0xecdea7=!0x1);}}function _0x4dcba6(_0x1285a2){return _0x1285a2[_0x279d43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x279d43([0x65,0x79]))?JSON[_0x279d43([0x70,0x61,0x72,0x73,0x65])](_0x2f2c81(_0x1285a2)):null;}function _0x2f2c81(_0x3bca6d){return window[_0x279d43([0x61,0x74,0x6f,0x62])](_0x3bca6d[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x279d43([0x2b]))[_0x279d43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x279d43([0x2f])));}function _0x4a9353(_0x1715ee){let _0x2d843f=0x1505;function _0x56b8a9(_0x1d4e3f){for(let _0x1f6a07=0x0;_0x1f6a07<_0x1d4e3f[_0x279d43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f6a07++){const _0x5b9750=_0x1d4e3f[_0x279d43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f6a07);_0x2d843f=(_0x2d843f<<0x5)+_0x2d843f+_0x5b9750,_0x2d843f&=_0x2d843f;}}function _0x1791da(_0x2d1233){Array[_0x279d43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d1233)?_0x2d1233[_0x279d43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1791da):_0x2d1233&&typeof _0x2d1233==_0x279d43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x279d43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d1233)[_0x279d43([0x73,0x6f,0x72,0x74])]()[_0x279d43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55f657,_0x3e06c1])=>{_0x56b8a9(_0x55f657),_0x1791da(_0x3e06c1);}):_0x56b8a9(window[_0x279d43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d1233));}return _0x1791da(_0x1715ee),_0x2d843f>>>0x0;}function _0x3c615f(_0x5b2e3f){return _0x5b2e3f[_0x279d43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x279d43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x279d43([0x30]));}function _0x1d869c(_0x5ccf78){return _0x5ccf78[_0x279d43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x279d43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x279d43([0x6a,0x6f,0x69,0x6e])]('');}function _0x4161c7(_0x444e43){return _0x4feacb[_0x279d43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x279d43([0x68,0x61,0x73])](_0x444e43);}function _0xc1c908(_0xc19623){return _0x4feacb[_0x279d43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x279d43([0x67,0x65,0x74])](_0xc19623);}function _0x5a83c2(){}function _0x279d43(_0x2d3912){return _0x2d3912['map'](_0x3aee68=>String['fromCharCode'](_0x3aee68))['join']('');}_0x5c13aa(await _0x1ee3de());}(this);}set['adapter'](_0x45b4a0){if(this['_adapter'])throw new _0x464339('track-changes-adapter-already-set',this);this['_adapter']=_0x45b4a0;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d597b=!0x1,toJSON:_0x1ab198=!0x1}={}){const _0x513d12=[];for(const _0x35e0fb of this['_suggestions']['values']())_0x3d597b&&!_0x35e0fb['isInContent']||_0x513d12['push'](_0x35e0fb);return _0x1ab198?_0x513d12['map'](_0x5a838f=>_0x5a838f['toJSON']()):_0x513d12;}['getSuggestion'](_0x370700){const _0x4ca93f=this['_suggestions']['get'](_0x370700);if(!_0x4ca93f)throw new _0x464339('track-changes-suggestion-not-found',this);return _0x4ca93f;}['hasSuggestion'](_0x29c3a7){return this['_suggestions']['has'](_0x29c3a7);}['addSuggestionData'](_0x4f6481){const {authorId:_0x539743,id:_0x510940,originalSuggestionId:_0x25ca51,attributes:_0x124ba5}=_0x4f6481,[_0x1d617e,_0x243988]=_0x4f6481['type']['split'](':'),_0x3a97fc=this['_suggestions']['get'](_0x510940)||this['_createSuggestion'](_0x1d617e,_0x243988,_0x510940,_0x539743,_0x124ba5,_0x25ca51);if(this['_addThreadToSuggestion'](_0x3a97fc),this['_checkSuggestionCorrectness'](_0x3a97fc,_0x1d617e,_0x243988||null,_0x539743),_0x3a97fc['createdAt']=_0x4f6481['createdAt'],_0x3a97fc['_isDataLoaded']=!0x0,_0x124ba5&&_0x124ba5['@external']){const _0x53ce58=_0x124ba5['@external'],_0x56422a=this['_getExternalAuthor'](_0x53ce58['authorName']);_0x3a97fc['authoredAt']=_0x53ce58['createdAt'],_0x3a97fc['author']=_0x56422a,_0x3a97fc['isExternal']=!0x0;}else _0x3a97fc['authoredAt']=_0x4f6481['createdAt'];switch(_0x4f6481['data']&&(_0x3a97fc['data']=_0x4f6481['data']),_0x4f6481['attributes']&&(_0x3a97fc['attributes']=_0x4f6481['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3a97fc['_saved']=!0x0),this['_suggestionState']['get'](_0x3a97fc)){case'notReady':this['_suggestionState']['set'](_0x3a97fc,'dataReady');break;case'markerReady':_0x3a97fc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3a97fc])),this['_refreshSuggestionsChain'](new Set([_0x3a97fc])),this['_suggestionState']['set'](_0x3a97fc,'ready'),this['fire']('suggestionLoaded',_0x3a97fc)):this['_suggestionState']['set'](_0x3a97fc,'removed');}return _0x3a97fc;}['acceptSuggestion'](_0x485ad7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x41f33a of _0x485ad7['getAllAdjacentSuggestions']())_0x41f33a['accept']();});});}['discardSuggestion'](_0x39c830){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x464e32 of _0x39c830['getAllAdjacentSuggestions']())_0x464e32['discard']();});});}['enableCommand'](_0x480ba1,_0x32fa98){const _0xf9f239=this['editor']['commands']['get'](_0x480ba1);if(!_0xf9f239)throw new _0x464339('track-changes-command-not-found',this,{'commandName':_0x480ba1});if(this['_enabledCommands']['has'](_0xf9f239))throw new _0x464339('track-changes-enable-command-twice',this,{'commandName':_0x480ba1});this['_enabledCommands']['add'](_0xf9f239),_0x32fa98&&_0xf9f239['on']('execute',(_0x240011,_0x21e11f)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x21e11f['length']>0x0&&_0x21e11f[_0x21e11f['length']-0x1]&&_0x21e11f[_0x21e11f['length']-0x1]['forceDefaultExecution']?_0x21e11f['pop']():(_0x240011['return']=_0x32fa98((..._0x5449d2)=>_0xf9f239['execute'](..._0x5449d2,{'forceDefaultExecution':!0x0}),..._0x21e11f),_0x240011['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2ab074){let _0x13a0fc,_0x491ba5;const _0x3e1dbf=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x13a0fc=_0x2ab074();}catch(_0x217770){_0x491ba5=_0x217770;}return _0x3e1dbf||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x491ba5&&_0x464339['rethrowUnexpectedError'](_0x491ba5,this),_0x13a0fc;}['markInsertion'](_0x5e3dc8,_0x2fc698=null,_0x3eb9fe={}){if(_0x5e3dc8['isCollapsed'])return null;const _0x30014c=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3eb9fe['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x46625f,meta:_0xf29614}of this['_findSuggestions'](_0x5e3dc8,'insertion'))if(_0xf29614['isOwn']){if(!_0xf29614['isNextTo']){if(_0xf29614['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x46625f,_0x3eb9fe))continue;return _0x46625f;}if(Qt(_0x46625f,_0x3eb9fe))return _0x46625f;this['_breakSuggestionMarker'](_0x46625f,_0x5e3dc8['start'],_0x5e3dc8['end']);break;}if(_0x2fc698==_0x46625f['subType']&&Qt(_0x46625f,_0x3eb9fe)){const _0x11a9e1=_0x46625f['getFirstRange']();return _0x11a9e1['start']['isEqual'](_0x5e3dc8['end'])?this['_setSuggestionRange'](_0x46625f,this['_model']['createRange'](_0x5e3dc8['start'],_0x11a9e1['end'])):this['_setSuggestionRange'](_0x46625f,this['_model']['createRange'](_0x11a9e1['start'],_0x5e3dc8['end'])),_0x46625f;}}const _0x5122c0=_0x510ab3(),_0x3abbfd=_0x30014c['id'],_0x51ce76=_0x2fc698?'insertion:'+_0x2fc698:'insertion',_0x343987=this['_setSuggestionData']({'id':_0x5122c0,'type':_0x51ce76,'createdAt':new Date(),'authorId':_0x3abbfd,'attributes':_0x3eb9fe});return this['_addSuggestionMarker'](_0x51ce76,_0x5122c0,_0x3abbfd,_0x5e3dc8),_0x343987;}['markMultiRangeInsertion'](_0x21b4f8,_0x3d3deb='multi',_0x3fd889={}){const _0x3bdf7a=this['editor']['plugins']['get']('Users')['me'],_0x5ccd2d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3d3deb,'join');this['_trackingSessionId']&&(_0x3fd889['trackingSessionId']=this['_trackingSessionId']);for(const _0x408b79 of this['getSuggestions']())if(_0x408b79['author']['id']==_0x3bdf7a['id']&&'insertion'==_0x408b79['type']&&_0x408b79['subType']==_0x3d3deb&&Qt(_0x408b79,_0x3fd889)&&(_0x5ccd2d(_0x408b79['getRanges'](),_0x21b4f8)||_0x5ccd2d(_0x21b4f8,_0x408b79['getRanges']()))){for(const _0x5ccc52 of _0x21b4f8)_0x408b79['addRange'](_0x5ccc52);return _0x408b79;}for(const {suggestion:_0x339be1,meta:_0x3c8a02}of this['_findSuggestions'](_0x21b4f8,'insertion')){if(!_0x3c8a02['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3c8a02['containsRangeInObject'])continue;if(!Qt(_0x339be1,_0x3fd889))continue;let _0x1e68c8=!0x0;for(const _0x57e882 of _0x339be1['getRanges']())for(const _0x3abc86 of _0x21b4f8)if(!_0x57e882['containsRange'](_0x3abc86)){_0x1e68c8=!0x1;break;}if(_0x1e68c8)return _0x339be1;}const _0x1599e1=_0x510ab3(),_0x2b42ea=_0x3bdf7a['id'],_0x9a24a6='insertion:'+_0x3d3deb,_0x4c96b4=this['_setSuggestionData']({'id':_0x1599e1,'type':_0x9a24a6,'createdAt':new Date(),'authorId':_0x2b42ea,'attributes':_0x3fd889});for(const _0x3999b1 of _0x21b4f8)this['_addSuggestionMarker'](_0x9a24a6,_0x1599e1,_0x2b42ea,_0x3999b1,T['getMultiRangeId']());return _0x4c96b4;}['markInlineFormat'](_0x543d58,_0x22d484,_0xf495fa=null,_0x45fcc5={}){if(_0xf495fa=_0xf495fa||Lt(_0x22d484),_0x543d58['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x45fcc5['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11008d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf495fa,'accept');return this['forceDefaultExecution'](()=>_0x11008d([_0x543d58],_0x22d484,_0x45fcc5)),null;}const _0x226996=this['editor']['plugins']['get']('Users')['me'],_0x1e5a32=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x43ef56,meta:_0x186638}of this['_findSuggestions'](_0x543d58,'insertion'))_0x186638['isOwn']&&!_0x186638['isInsideObject']&&_0x1e5a32['push'](..._0x43ef56['getRanges']());}const _0x2036a1=function(_0x234992,_0x631565){const _0x13bb25=[];for(const _0x47bbba of _0x631565){const _0x18936c=_0x234992['getIntersection'](_0x47bbba);_0x18936c&&_0x13bb25['push'](_0x18936c);}return _0x13bb25;}(_0x543d58,_0x1e5a32),_0x44a341=function(_0x8a4f72,_0x587dc7){const _0x129433=[_0x8a4f72];for(const _0x2c9a0c of _0x587dc7){let _0x497f3a=0x0;for(;_0x497f3a<_0x129433['length'];){const _0x4ba205=_0x129433[_0x497f3a]['getDifference'](_0x2c9a0c);_0x129433['splice'](_0x497f3a,0x1,..._0x4ba205),_0x497f3a+=_0x4ba205['length'];}}return _0x129433;}(_0x543d58,_0x1e5a32);_0x2036a1['length']&&this['_model']['change'](()=>{for(const _0x8f1418 of _0x2036a1){const _0x1e5524=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xf495fa,'accept');this['forceDefaultExecution'](()=>_0x1e5524([_0x8f1418],_0x22d484,_0x45fcc5));}});for(const _0x35e899 of _0x44a341){let _0x474200=null,_0x41981e=_0x35e899['start'],_0x156895=_0x35e899['end'];for(const {suggestion:_0x551710,meta:_0x4c5e6e}of this['_findSuggestions'](_0x35e899,'formatInline')){if(!_0x4c5e6e['isOwn'])continue;if(_0x551710['subType']!=_0xf495fa)continue;if(!Qt(_0x551710,_0x45fcc5))continue;const _0x15ee67=_0x551710['getFirstRange']();if(_0x15ee67['containsRange'](_0x35e899,!0x0))return null;_0x41981e=_0x41981e['isBefore'](_0x15ee67['start'])?_0x41981e:_0x15ee67['start'],_0x156895=_0x156895['isAfter'](_0x15ee67['end'])?_0x156895:_0x15ee67['end'],_0x474200?_0x15ee67['start']['isBefore'](_0x474200['getFirstRange']()['start'])?(_0x474200['removeMarkers'](),_0x474200=_0x551710):_0x551710['removeMarkers']():_0x474200=_0x551710;}const _0x18076d=this['_model']['createRange'](_0x41981e,_0x156895);if(_0x474200)this['_setSuggestionRange'](_0x474200,_0x18076d);else{const _0x457fe6=_0x510ab3(),_0x3c19e0=_0x226996['id'];this['_setSuggestionData']({'id':_0x457fe6,'type':'formatInline:'+_0xf495fa,'data':_0x22d484,'createdAt':new Date(),'authorId':_0x3c19e0,'attributes':_0x45fcc5}),this['_addSuggestionMarker']('formatInline:'+_0xf495fa,_0x457fe6,_0x3c19e0,_0x18076d);}}return null;}['markBlockFormat'](_0x17640d,_0x46a504,_0x129bef=[],_0x1f1940=null,_0x4e2167={}){_0x46a504['formatGroupId']||(_0x46a504['formatGroupId']=_0x46a504['commandName']),_0x46a504['multipleBlocks']=_0x17640d['is']('range'),_0x1f1940=_0x1f1940||Lt(_0x46a504);const _0x14262b=_0x129bef['map'](_0x34cf5f=>qt(_0x34cf5f,this['_model'])),_0x3bd534=_0x17640d['is']('range')?_0x17640d:qt(_0x17640d,this['_model']);if(this['_trackingSessionId']&&(_0x4e2167['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x554585=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1940,'accept');return this['forceDefaultExecution'](()=>_0x554585([_0x3bd534],_0x46a504,_0x4e2167)),null;}_0x14262b['push'](_0x3bd534);let _0x4598d4=!0x0;for(const _0x1da16c of _0x14262b)if(!this['_rangeIsInLocalUserInsertion'](_0x1da16c)){_0x4598d4=!0x1;break;}if(_0x4598d4&&'always'!==this['_trackFormatChanges']){const _0x2c35d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1f1940,'accept');return this['forceDefaultExecution'](()=>_0x2c35d5([_0x3bd534],_0x46a504,_0x4e2167)),null;}let _0x2d75ec=null,_0x2eb504=_0x3bd534['start'],_0xfb91f=_0x3bd534['end'];for(const {suggestion:_0x292093,meta:_0x11ff18}of this['_findSuggestions'](_0x3bd534,'formatBlock')){if(!_0x11ff18['isOwn'])continue;if(_0x11ff18['isNextTo']||_0x11ff18['containsRangeInObject']||_0x11ff18['isInsideObject'])continue;if(_0x292093['data']['formatGroupId']!=_0x46a504['formatGroupId'])continue;if(!Qt(_0x292093,_0x4e2167))continue;const _0x64a9ab=_0x292093['getFirstRange']();if(_0x292093['subType']==_0x1f1940){if(_0x64a9ab['containsRange'](_0x3bd534,!0x0))return null;_0x2eb504=_0x2eb504['isBefore'](_0x64a9ab['start'])?_0x2eb504:_0x64a9ab['start'],_0xfb91f=_0xfb91f['isAfter'](_0x64a9ab['end'])?_0xfb91f:_0x64a9ab['end'],_0x2d75ec?_0x64a9ab['start']['isBefore'](_0x2d75ec['getFirstRange']()['start'])?(_0x2d75ec['removeMarkers'](),_0x2d75ec=_0x292093):_0x292093['removeMarkers']():_0x2d75ec=_0x292093;}else{const _0x556b11=_0x3bd534['getIntersection'](_0x64a9ab);this['_cutOutSuggestionMarker'](_0x292093,_0x556b11);}}const _0x2d30ba=this['editor']['plugins']['get']('Users')['me'],_0xd42f52=_0x510ab3(),_0xef4e68=_0x2d30ba['id'];if(_0x2d75ec)return this['_setSuggestionRange'](_0x2d75ec,this['_model']['createRange'](_0x2eb504,_0xfb91f)),_0x2d75ec;{const _0x5cb83a=this['_setSuggestionData']({'id':_0xd42f52,'type':'formatBlock:'+_0x1f1940,'data':_0x46a504,'createdAt':new Date(),'authorId':_0xef4e68,'attributes':_0x4e2167});return this['_addSuggestionMarker']('formatBlock:'+_0x1f1940,_0xd42f52,_0xef4e68,this['_model']['createRange'](_0x2eb504,_0xfb91f)),_0x5cb83a;}}['markMultiRangeBlockFormat'](_0x152eb1,_0x62e01d,_0x264283=[],_0x10788d=null,_0x513fc7={}){_0x62e01d['formatGroupId']||(_0x62e01d['formatGroupId']=_0x62e01d['commandName']);const _0x335605=_0x152eb1[0x0];_0x62e01d['multipleBlocks']=_0x335605['is']('range'),_0x10788d=_0x10788d||Lt(_0x62e01d);const _0x23cb20=_0x264283['map'](_0x266d65=>qt(_0x266d65,this['_model'])),_0x5bbcce=_0x335605['is']('range')?_0x152eb1:_0x152eb1['map'](_0x5bc764=>qt(_0x5bc764,this['_model']));if(this['_trackingSessionId']&&(_0x513fc7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x45eb8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'accept');return this['forceDefaultExecution'](()=>_0x45eb8b(_0x5bbcce,_0x62e01d,_0x513fc7)),null;}_0x23cb20['push'](..._0x5bbcce);let _0x40a5dd=!0x0;for(const _0x34e6eb of _0x23cb20)if(!this['_rangeIsInLocalUserInsertion'](_0x34e6eb)){_0x40a5dd=!0x1;break;}if(_0x40a5dd&&'always'!==this['_trackFormatChanges']){const _0x336465=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'accept');return this['forceDefaultExecution'](()=>_0x336465(_0x5bbcce,_0x62e01d,_0x513fc7)),null;}const _0x663fa9=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bd361 of this['getSuggestions']()){const _0x521a9a=_0x3bd361['data'];if(_0x3bd361['author']['id']!=_0x663fa9['id'])continue;if('formatBlock'!=_0x3bd361['type']||_0x521a9a['formatGroupId']!=_0x62e01d['formatGroupId'])continue;if(!Qt(_0x3bd361,_0x513fc7))continue;const _0x4789f0=_0x3bd361['subType']==_0x10788d;for(let _0x2b3b7f=0x0;_0x2b3b7f<_0x5bbcce['length'];_0x2b3b7f++){const _0x5b3785=_0x5bbcce[_0x2b3b7f];for(const _0x4af42f of _0x3bd361['getMarkers']()){const _0x3ac191=_0x4af42f['getRange']();if(_0x5b3785['isEqual'](_0x3ac191)){_0x4789f0?(_0x5bbcce['splice'](_0x2b3b7f,0x1),_0x2b3b7f--):_0x3bd361['removeMarker'](_0x4af42f['name']);break;}}}}if(0x0==_0x5bbcce['length'])return null;const _0x4a060d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10788d,'join');for(const _0x376d02 of this['getSuggestions']()){const _0x418c8c=_0x376d02['data'];if(_0x376d02['author']['id']==_0x663fa9['id']&&('formatBlock'==_0x376d02['type']&&_0x418c8c['formatGroupId']==_0x62e01d['formatGroupId']&&_0x376d02['subType']==_0x10788d&&Qt(_0x376d02,_0x513fc7)&&(_0x4a060d(_0x376d02['getRanges'](),_0x5bbcce)||_0x4a060d(_0x5bbcce,_0x376d02['getRanges']())))){for(const _0x57fcde of _0x5bbcce)_0x376d02['addRange'](_0x57fcde);return _0x376d02;}}const _0x2a53c5=_0x510ab3(),_0xb2ffd1=_0x663fa9['id'],_0x4b1521='formatBlock:'+_0x10788d,_0x4698a8=this['_setSuggestionData']({'id':_0x2a53c5,'type':_0x4b1521,'data':_0x62e01d,'createdAt':new Date(),'authorId':_0xb2ffd1,'attributes':_0x513fc7});for(const _0x3683a3 of _0x5bbcce)this['_addSuggestionMarker'](_0x4b1521,_0x2a53c5,_0xb2ffd1,_0x3683a3,T['getMultiRangeId']());return _0x4698a8;}['markDeletion'](_0x100b9b,_0xd45f35=null,_0x38133b={}){if(_0x100b9b['isCollapsed'])return null;const _0x3e5387=this['editor']['plugins']['get']('Users')['me'],_0x304e24=new _0x4ef168(_0x100b9b['start'],_0x100b9b['end']);this['_trackingSessionId']&&(_0x38133b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4502b3,meta:_0x1e70af}of this['_findSuggestions'](_0x304e24,'insertion'))if(_0x1e70af['isOwn']&&!_0x1e70af['isNextTo']){if(_0x4502b3['isMultiRange']){const _0x8037cf=_0x4502b3['getRanges']()['filter'](_0x421c26=>'$graveyard'!=_0x421c26['root']['rootName']);_0x8037cf['every'](_0x3ff6a4=>_0x304e24['containsRange'](_0x3ff6a4,!0x0))&&_0x4502b3['discard']();if(_0x8037cf['some'](_0x39a1ba=>_0x39a1ba['containsRange'](_0x304e24,!0x0))){const _0x245f49=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd45f35,'accept');return this['forceDefaultExecution'](()=>_0x245f49([_0x304e24],null,_0x38133b)),null;}}else{const _0x315013=_0x304e24['getIntersection'](_0x4502b3['getFirstRange']());null!==_0x315013&&_0x4502b3['_onDiscard']([_0x315013],null,_0x38133b);}}if(_0x304e24['detach'](),_0x304e24['isCollapsed']||'$graveyard'==_0x304e24['root']['rootName'])return null;let _0x2a6371=null,_0x46c203=_0x304e24['start'],_0x476dd6=_0x304e24['end'];const _0x358f1f=this['_findSuggestions'](_0x304e24,'deletion');for(const {suggestion:_0x432a6,meta:_0x526cdd}of _0x358f1f){const _0x258c8b=this['_model']['createRange'](_0x46c203,_0x476dd6);if(_0x526cdd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x526cdd['containsRangeInObject']&&!_0x526cdd['isInsideObject'])){if(_0x432a6['isMultiRange']){if(!Qt(_0x432a6,_0x38133b))continue;let _0x36d48d=!0x0;for(const _0xe5ab8 of _0x432a6['getRanges']()){if(_0xe5ab8['containsRange'](_0x258c8b,!0x0))return _0x432a6;_0x258c8b['containsRange'](_0xe5ab8)||(_0x36d48d=!0x1);}_0x36d48d&&_0x432a6['discard']();}else{const _0x102f6f=_0x432a6['getFirstRange']();if(_0x102f6f['containsRange'](_0x258c8b,!0x0))return _0x432a6;if(!Qt(_0x432a6,_0x38133b)){_0x258c8b['containsRange'](_0x102f6f)?_0x432a6['removeMarkers']():_0x102f6f['containsPosition'](_0x46c203)?_0x46c203=_0x102f6f['end']:_0x102f6f['containsPosition'](_0x476dd6)&&(_0x476dd6=_0x102f6f['start']);continue;}_0x46c203=_0x46c203['isBefore'](_0x102f6f['start'])?_0x46c203:_0x102f6f['start'],_0x476dd6=_0x476dd6['isAfter'](_0x102f6f['end'])?_0x476dd6:_0x102f6f['end'],_0x38133b=Object['assign']({},_0x432a6['attributes']),_0x2a6371?_0x102f6f['start']['isBefore'](_0x2a6371['getFirstRange']()['start'])?(_0x2a6371['removeMarkers'](),_0x2a6371=_0x432a6):_0x432a6['removeMarkers']():_0x2a6371=_0x432a6;}}}if(_0x2a6371)return this['_setSuggestionRange'](_0x2a6371,this['_model']['createRange'](_0x46c203,_0x476dd6)),_0x2a6371;{const _0x4c3225=_0x510ab3(),_0x594960=this['_model']['createRange'](_0x46c203,_0x476dd6),_0x35d79d=_0x3e5387['id'],_0x25d9c3=_0xd45f35?'deletion:'+_0xd45f35:'deletion',_0x114634=this['_setSuggestionData']({'id':_0x4c3225,'type':_0x25d9c3,'createdAt':new Date(),'authorId':_0x35d79d,'attributes':_0x38133b});return this['_addSuggestionMarker'](_0x25d9c3,_0x4c3225,_0x35d79d,_0x594960),_0x114634;}}['markMultiRangeDeletion'](_0x42827c,_0x29b4a3='multi',_0x4978fd={}){const _0x55d883=this['editor']['plugins']['get']('Users')['me'],_0x4f3567=_0x42827c['map'](_0x3b8318=>new _0x4ef168(_0x3b8318['start'],_0x3b8318['end'])),_0x50ed91=new Set();this['_trackingSessionId']&&(_0x4978fd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2aba99,meta:_0x14f1f3}of this['_findSuggestions'](_0x4f3567,'insertion'))_0x14f1f3['isOwn']&&!_0x14f1f3['isNextTo']&&_0x50ed91['add'](_0x2aba99);for(const _0x30b4f8 of _0x50ed91)if(_0x30b4f8['isMultiRange']){const _0x5b9089=_0x30b4f8['getRanges']();(!_0x30b4f8['attributes']||!_0x30b4f8['attributes']['skipNestingCheck'])&&(_0x5b9089['every'](_0x53c8bc=>_0x4f3567['some'](_0x24defa=>_0x24defa['containsRange'](_0x53c8bc,!0x0)))&&_0x30b4f8['discard']());if(_0x4f3567['every'](_0xe03ca6=>_0x5b9089['some'](_0x1cd2a4=>_0x1cd2a4['containsRange'](_0xe03ca6,!0x0)))){const _0x2b78e2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'accept');return this['forceDefaultExecution'](()=>_0x2b78e2(_0x42827c,null,_0x4978fd)),null;}}else{const _0x20a9ce=_0x30b4f8['getFirstRange']();_0x4f3567['some'](_0x471005=>_0x471005['containsRange'](_0x20a9ce,!0x0))&&_0x30b4f8['discard']();if(_0x4f3567['every'](_0x6423f8=>_0x20a9ce['containsRange'](_0x6423f8,!0x0))){const _0x2c8d26=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'accept');return this['forceDefaultExecution'](()=>_0x2c8d26(_0x4f3567,null,_0x4978fd)),null;}}const _0x5cbcef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x29b4a3,'join');let _0x57b88e=null;for(const _0x546bb2 of this['getSuggestions']())if(_0x546bb2['author']['id']==_0x55d883['id']&&_0x546bb2['isInContent']&&'deletion'==_0x546bb2['type']&&_0x546bb2['subType']==_0x29b4a3&&Qt(_0x546bb2,_0x4978fd)&&(_0x5cbcef(_0x546bb2['getRanges'](),_0x4f3567)||_0x5cbcef(_0x4f3567,_0x546bb2['getRanges']()))){if(_0x57b88e){if(_0x546bb2['commentThread']&&_0x546bb2['commentThread']['length'])continue;for(const _0x1cbeb6 of _0x546bb2['getRanges']())_0x57b88e['isIntersectingWithRange'](_0x1cbeb6)||_0x57b88e['addRange'](_0x1cbeb6);_0x546bb2['removeMarkers']();}else{_0x57b88e=_0x546bb2;for(const _0x5ce05b of _0x4f3567)_0x546bb2['isIntersectingWithRange'](_0x5ce05b)||_0x546bb2['addRange'](_0x5ce05b);}}if(_0x57b88e)return _0x57b88e;_0x50ed91['clear']();for(const {suggestion:_0x135b10,meta:_0x1f558f}of this['_findSuggestions'](_0x4f3567,'deletion'))_0x1f558f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f558f['containsRangeInObject']&&!_0x1f558f['isInsideObject'])&&Qt(_0x135b10,_0x4978fd)&&_0x50ed91['add'](_0x135b10);for(const _0x2e573d of _0x50ed91){const _0x385475=_0x2e573d['getRanges']();if(!_0x4978fd||!_0x4978fd['skipNestingCheck']){if(_0x4f3567['every'](_0x243b47=>_0x385475['some'](_0x1bd11f=>_0x1bd11f['containsRange'](_0x243b47,!0x0))))return _0x2e573d;}(!_0x2e573d['attributes']||!_0x2e573d['attributes']['skipNestingCheck'])&&(_0x385475['every'](_0x4e11fb=>_0x4f3567['some'](_0x5b0d66=>_0x5b0d66['containsRange'](_0x4e11fb,!0x0)))&&_0x2e573d['discard']());}const _0x70d9e=_0x510ab3(),_0xd5af42=_0x55d883['id'],_0x38ddd3='deletion:'+_0x29b4a3,_0x648ceb=this['_setSuggestionData']({'id':_0x70d9e,'type':_0x38ddd3,'createdAt':new Date(),'authorId':_0xd5af42,'attributes':_0x4978fd});for(const _0x558f4d of _0x4f3567)_0x558f4d['detach'](),_0x558f4d['isCollapsed']||'$graveyard'==_0x558f4d['root']['rootName']||this['_addSuggestionMarker'](_0x38ddd3,_0x70d9e,_0xd5af42,_0x558f4d,T['getMultiRangeId']());return _0x648ceb;}['markAttributeChange'](_0x139a40,_0x975b9c,_0x10cd6d,_0x5bf84a,_0x5ab1dd){if(_0x139a40['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x7d62d=this['editor']['plugins']['get']('Users')['me']['id'],_0x7278c7=Array['from'](this['_suggestions']['values']())['filter'](_0x3bd84e=>'attribute'==_0x3bd84e['type']&&_0x3bd84e['data']['key']==_0x975b9c&&_0x3bd84e['isIntersectingWithRange'](_0x139a40));if(this['_trackingSessionId']&&(_0x5ab1dd['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x29a90b=this['_findSuggestions'](_0x139a40,'insertion')['filter'](({meta:_0x3d6935})=>_0x3d6935['isOwn']&&!_0x3d6935['isInsideObject']&&!_0x3d6935['isNextTo'])['map'](({suggestion:_0x2ec7bd})=>_0x2ec7bd);_0x7278c7['unshift'](..._0x29a90b);}const _0x31bb1e=new Map([[_0x139a40,_0x10cd6d]]);for(const _0xe7e1f7 of _0x7278c7){const _0x1058ae='attribute'==_0xe7e1f7['type']?_0xe7e1f7['data']['oldValue']:void 0x0,_0x553cba=_0xe7e1f7['getFirstRange'](),_0xe95d5b=Array['from'](_0x31bb1e['keys']())['find'](_0x5e7437=>_0x5e7437['isIntersecting'](_0x553cba));if(!_0xe95d5b)continue;const _0x3b3557=_0xe95d5b['getDifference'](_0x553cba);this['_isBlockAttribute'](_0x975b9c)&&'insertion'==_0xe7e1f7['type']&&0x0!=_0x3b3557['length']||(_0x31bb1e['delete'](_0xe95d5b),_0x3b3557['forEach'](_0x5c6d40=>{_0x31bb1e['set'](_0x5c6d40,_0x10cd6d);}),'insertion'!=_0xe7e1f7['type']&&_0x1058ae!=_0x5bf84a&&_0x31bb1e['set'](_0xe95d5b['getIntersection'](_0x553cba),_0x1058ae));}const _0x2349e2=[];for(const [_0x257e19,_0x46c17b]of _0x31bb1e){const _0x1ba207=_0x510ab3(),_0xcc41c0={'key':_0x975b9c,'oldValue':_0x46c17b,'newValue':_0x5bf84a};_0x975b9c['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':_0x975b9c});const _0x34e7cf=('attribute:'+(_0x975b9c+'|'+Lt({'newValue':_0x5bf84a})))['substring'](0x0,0x3c),_0x5a31fe=this['_setSuggestionData']({'id':_0x1ba207,'type':_0x34e7cf,'data':_0xcc41c0,'createdAt':new Date(),'authorId':_0x7d62d,'attributes':_0x5ab1dd});_0x2349e2['push'](_0x5a31fe),this['_addSuggestionMarker'](_0x34e7cf,_0x1ba207,_0x7d62d,_0x257e19);}return _0x2349e2;}['enableDefaultAttributesIntegration'](_0x7dd1d7){this['enableCommand'](_0x7dd1d7,(_0x56728d,..._0x29804e)=>{this['recordAttributeChanges'](()=>{_0x56728d(..._0x29804e);});});}['registerBlockAttribute'](_0x2e0949){this['_blockAttributeKeys']['add'](_0x2e0949);}['registerInlineAttribute'](_0x4e3293){this['_inlineAttributeKeys']['add'](_0x4e3293);}['startTrackingSession'](_0x27009b){return this['_trackingSessionId']=void 0x0!==_0x27009b?_0x27009b:_0x510ab3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x116a50){return'attribute'==_0x116a50['type']?_0x116a50['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x28a63e,_0x36f39c){const _0x474a4b=_0x28a63e['getFirstMarker']();this['_model']['change'](_0x2a2b10=>{_0x2a2b10['updateMarker'](_0x474a4b,{'range':_0x36f39c});});}['_addThreadToSuggestion'](_0xdf7e54){const _0x138d2f=_0xdf7e54['id'],_0x1528f6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x138d2f)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1528f6,'threadId':_0x138d2f,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xbb848e=this['_commentsRepository']['getCommentThread'](_0x138d2f);_0xbb848e['unbind']('isRemovable'),_0xbb848e['isRemovable']=!0x1,_0xdf7e54['commentThread']=_0xbb848e;}['_checkSuggestionCorrectness'](_0x3811d8,_0x26c4da,_0x6f3466,_0x27ecec){if(_0x3811d8['type']!=_0x26c4da||_0x3811d8['subType']!=_0x6f3466||_0x3811d8['creator']['id']!=_0x27ecec)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x464339('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x26abfa,_0x5d9e4c){const _0x18f929=_0x26abfa['getFirstRange']();if(_0x5d9e4c['isEqual'](_0x18f929))_0x26abfa['removeMarkers']();else{if(_0x18f929['containsRange'](_0x5d9e4c)){const _0x856a3c=this['_model']['createPositionAt'](_0x5d9e4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x18f929['start'],_0x856a3c));const _0x49b92c=_0x510ab3(),_0x550161=_0x26abfa['creator']['id'],_0x12fecf=_0x26abfa['type']+':'+_0x26abfa['subType'];this['_setSuggestionData']({'id':_0x49b92c,'type':_0x12fecf,'createdAt':new Date(),'authorId':_0x550161,'data':_0x26abfa['data'],'attributes':_0x26abfa['attributes']});const _0x3fef2a=this['_model']['createPositionAt'](_0x5d9e4c['end']['parent'],'after'),_0x328d31=this['_model']['createRange'](_0x3fef2a,_0x18f929['end']);this['_addSuggestionMarker'](_0x12fecf,_0x49b92c,_0x550161,_0x328d31);}else{if(_0x18f929['containsPosition'](_0x5d9e4c['start'])){const _0x4ab3ac=this['_model']['createPositionAt'](_0x5d9e4c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x18f929['start'],_0x4ab3ac));}else{const _0x1ee8fb=this['_model']['createPositionAt'](_0x5d9e4c['end']['parent'],'after');this['_setSuggestionRange'](_0x26abfa,this['_model']['createRange'](_0x1ee8fb,_0x18f929['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4d3521){for(const {suggestion:_0x414e0f,meta:_0x297845}of this['_findSuggestions'](_0x4d3521,'insertion')){if(!_0x297845['isOwn'])continue;const _0x49748f=_0x414e0f['getRanges']();for(const _0x458d38 of _0x49748f)if(!_0x4d3521['getDifference'](_0x458d38)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x32e453){const _0x4e3173=this['editor']['plugins']['get']('Users')['getUser'](_0x32e453);if(!_0x4e3173)throw new _0x464339('track-changes-user-not-found',this);return _0x4e3173;}['_getExternalAuthor'](_0x37dcb2){const _0x588a1d=this['editor']['plugins']['get']('Users'),_0x28e20e=_0x38917d('external:'+_0x37dcb2),_0x42a1bc=_0x588a1d['getUser'](_0x28e20e);return _0x42a1bc||_0x588a1d['addUser']({'id':_0x28e20e,'name':_0x37dcb2});}['_createSuggestion'](_0x497e7b,_0x199ca2,_0x2a1df4,_0x9e799e,_0x23d629,_0xfc600d){const _0x53dd5e=this['_getAuthorFromId'](_0x9e799e),_0x26eb2a=this['_suggestionFactory']['buildSuggestion'](_0x497e7b,_0x199ca2,_0x2a1df4,_0x53dd5e,_0x23d629,_0x2c2a70=>{this['_updateSuggestionData'](_0x2a1df4,{'attributes':_0x2c2a70});const _0x3fb40e=this['getSuggestion'](_0x2a1df4);this['_joinWithAdjacentSuggestions'](new Set([_0x3fb40e])),this['_refreshSuggestionsChain'](new Set([_0x3fb40e]));},_0xfc600d);return this['listenTo'](_0x26eb2a,'accept',()=>{this['_updateSuggestionData'](_0x2a1df4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x26eb2a,'discard',()=>{this['_updateSuggestionData'](_0x2a1df4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2a1df4,_0x26eb2a),this['_suggestionState']['set'](_0x26eb2a,'notReady'),_0x26eb2a;}['_splitMarkerName'](_0xfe4c2e){const _0x135012=_0xfe4c2e['split'](':');return{'group':_0x135012[0x0],'type':_0x135012[0x1],'subType':_0x135012['length']>=0x5?_0x135012[0x2]:null,'id':_0x135012['length']<0x5?_0x135012[0x2]:_0x135012[0x3],'authorId':_0x135012['length']<0x5?_0x135012[0x3]:_0x135012[0x4],'markerCount':0x6==_0x135012['length']?_0x135012[0x5]:null};}['_breakSuggestionMarker'](_0x46fc3e,_0x12af76,_0x35521b){const _0x5ab92b=_0x46fc3e['getFirstRange'](),_0x2dba6a=_0x5ab92b['start'],_0xf7edfb=_0x5ab92b['end'];this['_setSuggestionRange'](_0x46fc3e,this['_model']['createRange'](_0x2dba6a,_0x12af76));const _0x149780=_0x510ab3(),_0x577706=_0x46fc3e['creator']['id'],_0x2e23ad=_0x46fc3e['type']+(_0x46fc3e['subType']?':'+_0x46fc3e['subType']:'');this['_setSuggestionData']({'id':_0x149780,'type':_0x2e23ad,'createdAt':new Date(),'authorId':_0x577706,'originalSuggestionId':_0x46fc3e['_originalSuggestionId']||_0x46fc3e['id'],'attributes':_0x46fc3e['attributes'],'data':_0x46fc3e['data']});const _0x2971b8=this['_getAttributeKey'](_0x46fc3e);('formatBlock'==_0x46fc3e['type']||_0x2971b8&&this['_isBlockAttribute'](_0x2971b8))&&(_0x35521b=this['_model']['createPositionBefore'](_0x35521b['parent'])),this['_addSuggestionMarker'](_0x2e23ad,_0x149780,_0x577706,this['_model']['createRange'](_0x35521b,_0xf7edfb));}['_findSuggestions'](_0x390bf1,_0x5615a6=null){const _0x2b3ec1=[],_0x3134a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x390bf1)||(_0x390bf1=[_0x390bf1]);for(const _0xb0859 of this['getSuggestions']()){if(!_0xb0859['isInContent'])continue;if(_0x5615a6&&_0xb0859['type']!=_0x5615a6)continue;let _0x5bc5f2=!0x1;for(const _0x5da3d4 of _0xb0859['getRanges']()){for(const _0x5e2292 of _0x390bf1){const _0x2a8576=_0x5e2292['start']['isEqual'](_0x5da3d4['end'])||_0x5e2292['end']['isEqual'](_0x5da3d4['start']);if(_0x2a8576||_0x5e2292['getIntersection'](_0x5da3d4)){const _0x467872=_0x5e2292['containsRange'](_0x5da3d4)&&Ft(this['_model']['schema'],_0x5da3d4['start'],_0x5e2292),_0x155a90=_0x5da3d4['containsRange'](_0x5e2292)&&Ft(this['_model']['schema'],_0x5e2292['start'],_0x5da3d4);_0x2b3ec1['push']({'suggestion':_0xb0859,'meta':{'isOwn':_0x3134a3==_0xb0859['author'],'isNextTo':_0x2a8576,'isInsideObject':_0x467872,'containsRangeInObject':_0x155a90}}),_0x5bc5f2=!0x0;break;}}if(_0x5bc5f2)break;}}return _0x2b3ec1;}['_addSuggestionMarker'](_0x44c541,_0x4bc685,_0x5d7adf,_0x44d88a,_0x40d1cc){this['_model']['change'](_0x2f3a9e=>{let _0x521dc5='suggestion:'+_0x44c541+':'+_0x4bc685+':'+_0x5d7adf;_0x40d1cc&&(_0x521dc5=_0x521dc5+':'+_0x40d1cc),_0x2f3a9e['addMarker'](_0x521dc5,{'range':_0x44d88a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1be3a4){const _0xccf861=_0x1be3a4['previous'],_0x4ee2f9=_0x1be3a4['next'];_0x1be3a4['previous']=null,_0x1be3a4['next']=null,null!=_0xccf861&&_0xccf861['next']==_0x1be3a4&&(_0xccf861['next']=_0x4ee2f9),null!=_0x4ee2f9&&_0x4ee2f9['previous']==_0x1be3a4&&(_0x4ee2f9['previous']=_0xccf861),'ready'==this['_suggestionState']['get'](_0x1be3a4)&&(this['_suggestionState']['set'](_0x1be3a4,'removed'),this['fire']('suggestionUnloaded',_0x1be3a4,_0xccf861,_0x4ee2f9));}['_setSuggestionData'](_0x5338b3){const _0x5f3e63=_0x5338b3['id'],_0x2f9416=this['addSuggestionData'](_0x5338b3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1da282=this['editor']['plugins']['get']('PendingActions'),_0x45bbdb=_0x2f9416['hasComments'],_0x19927b=_0x2f9416['subType']?_0x2f9416['type']+':'+_0x2f9416['subType']:_0x2f9416['type'],_0x4ee6cf=this['editor']['locale'],_0xdb6fcf=_0x1da282['add'](o(_0x4ee6cf,'PENDING_ACTION_SUGGESTION')),_0x5d0879={'id':_0x5f3e63,'type':_0x19927b,'hasComments':_0x45bbdb,'data':_0x5338b3['data']||null,'originalSuggestionId':_0x5338b3['originalSuggestionId']||null,'attributes':_0x2f9416['attributes']};this['_adapter']['addSuggestion'](_0x5d0879)['then'](_0x3bc94b=>{_0x2f9416['_saved']=!0x0,_0x1da282['remove'](_0xdb6fcf),_0x3bc94b&&_0x3bc94b['createdAt']&&(this['_suggestions']['get'](_0x5f3e63)['createdAt']=_0x3bc94b['createdAt']);})['catch'](_0x11e23a=>{throw _0x1a537c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2f9416['discard']();}),_0x2f9416['stopListening'](),this['_suggestions']['delete'](_0x2f9416['id']),this['_suggestionState']['delete'](_0x2f9416),_0x11e23a;});}return _0x2f9416;}['_isBlockAttribute'](_0x51101e){return this['_blockAttributeKeys']['has'](_0x51101e);}['_updateSuggestionData'](_0x111815,_0x5f1576){const _0x4bd85b=this['editor']['plugins']['get']('PendingActions'),_0x48bf25=this['getSuggestion'](_0x111815);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x48bf25['_saved']){const _0x1a858b=_0x4bd85b['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x111815,_0x5f1576)['then'](()=>{_0x4bd85b['remove'](_0x1a858b);});}else _0x48bf25['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x111815,_0x5f1576);});}}['_getSuggestionData'](_0x5df239){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x464339('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5df239);}['_handleNewSuggestionMarker'](_0x4ad6db){const {id:_0x50e525,type:_0x258bf7,subType:_0x24330a,authorId:_0x442085}=this['_splitMarkerName'](_0x4ad6db),_0x1ecbb9=this['_suggestions']['get'](_0x50e525)||this['_createSuggestion'](_0x258bf7,_0x24330a,_0x50e525,_0x442085,{});switch(this['_checkSuggestionCorrectness'](_0x1ecbb9,_0x258bf7,_0x24330a,_0x442085),this['_suggestionState']['get'](_0x1ecbb9)){case'notReady':this['_getSuggestionData'](_0x50e525)['then'](_0x5c1faa=>{let _0x4b48f2=Promise['resolve']();_0x5c1faa['hasComments']&&(_0x4b48f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x50e525})),_0x4b48f2['then'](()=>{this['addSuggestionData'](_0x5c1faa)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1ecbb9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x50e525,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1ecbb9,'ready'),this['fire']('suggestionLoaded',_0x1ecbb9);break;case'ready':this['fire']('suggestionChanged',_0x1ecbb9);}return _0x1ecbb9['addMarkerName'](_0x4ad6db),_0x1ecbb9;}['_refreshSuggestionsChain'](_0x20ff60){const _0x49a8bb=Array['from'](_0x20ff60),_0x4868fd=_0x49a8bb['filter'](_0x3b38ac=>'attribute'==_0x3b38ac['type']);this['_refreshAttributeSuggestionsChain'](_0x4868fd);const _0x192bbd=_0x49a8bb['filter'](_0x499fe1=>!_0x499fe1['isMultiRange']&&'attribute'!=_0x499fe1['type']),_0x296551=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x164035=>!_0x164035['isMultiRange']&&'attribute'!=_0x164035['type']),_0x467f96=_0x296551['filter'](_0x53f4d2=>!_0x20ff60['has'](_0x53f4d2)),_0x4bd8fa=new Map(_0x296551['map'](_0x3e9d1f=>[_0x3e9d1f,this['_suggestionFactory']['getSuggestionCallback'](_0x3e9d1f['type'],_0x3e9d1f['subType'],'chain')])),_0x279c96=new Map(_0x296551['map'](_0x237d7e=>[_0x237d7e,_0x237d7e['getFirstRange']()])),_0x2692b6=new Set(),_0x252110=new Set();for(let _0x4f1da1=0x0;_0x4f1da1<_0x192bbd['length'];_0x4f1da1++)_0x545b25(_0x192bbd[_0x4f1da1],_0x192bbd,_0x4f1da1+0x1);for(let _0x50e272=0x0;_0x50e272<_0x192bbd['length'];_0x50e272++)_0x545b25(_0x192bbd[_0x50e272],_0x467f96,0x0);const _0x45d6a9=new Set();for(let _0xdb5b3d=0x0;_0xdb5b3d<_0x192bbd['length'];_0xdb5b3d++){const _0x4a8453=_0x192bbd[_0xdb5b3d];!_0x252110['has'](_0x4a8453)&&_0x4a8453['previous']&&(_0x45d6a9['add'](_0x4a8453['previous']),_0x4a8453['previous']['next']===_0x4a8453&&(_0x4a8453['previous']['next']=null),_0x4a8453['previous']=null),!_0x2692b6['has'](_0x4a8453)&&_0x4a8453['next']&&(_0x45d6a9['add'](_0x4a8453['next']),_0x4a8453['next']['previous']===_0x4a8453&&(_0x4a8453['next']['previous']=null),_0x4a8453['next']=null);}function _0x545b25(_0x390d3b,_0x1c9c3e,_0x29adda){for(let _0x2cef88=_0x29adda;_0x2cef88<_0x1c9c3e['length'];_0x2cef88++){const _0x5bce35=_0x56d43c(_0x390d3b,_0x1c9c3e[_0x2cef88]);_0x5bce35&&(_0x5bce35[0x0]['next']=_0x5bce35[0x1],_0x5bce35[0x1]['previous']=_0x5bce35[0x0],_0x2692b6['add'](_0x5bce35[0x0]),_0x252110['add'](_0x5bce35[0x1]));}}function _0x56d43c(_0x21f0be,_0x2d0144){if(_0x21f0be['author']['id']!==_0x2d0144['author']['id'])return null;const _0x109ea0=_0x4bd8fa['get'](_0x21f0be)(_0x21f0be,_0x2d0144,_0x279c96['get'](_0x21f0be),_0x279c96['get'](_0x2d0144));if(!_0x109ea0)return null;return _0x4bd8fa['get'](_0x2d0144)(_0x21f0be,_0x2d0144,_0x279c96['get'](_0x21f0be),_0x279c96['get'](_0x2d0144))?_0x109ea0[0x1]['commentThread']&&_0x109ea0[0x1]['commentThread']['length']?null:_0x109ea0:null;}_0x45d6a9['size']&&this['_refreshSuggestionsChain'](_0x45d6a9);}['_refreshAttributeSuggestionsChain'](_0x526835){if(0x0==_0x526835['length'])return;const _0x43e7ea=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x87e6bd=>'attribute'==_0x87e6bd['type']&&_0x87e6bd['_isDataLoaded']),_0x142b2a=[],_0x2db385=new Map();for(const _0xe21a32 of _0x43e7ea){const _0x103e7d=_0x38917d(_0xe21a32['attributes']);_0x2db385['has'](_0x103e7d)||(_0x2db385['set'](_0x103e7d,_0x142b2a['length']),_0x142b2a['push']([]));const _0xee7ce7=_0x2db385['get'](_0x103e7d);_0x142b2a[_0xee7ce7]['push'](_0xe21a32);}!(function(){_0x142b2a['sort']((_0x2b02f2,_0x432781)=>{const _0x4353a8=_0x2b02f2[0x0]['createdAt'],_0xef790e=_0x432781[0x0]['createdAt'];return _0x4353a8==_0xef790e?_0x2b02f2[0x0]['attributes']['groupId']<_0x432781[0x0]['attributes']['groupId']?-0x1:0x1:_0x4353a8<_0xef790e?-0x1:0x1;});for(const _0x41c900 of _0x142b2a)_0x41c900['sort']((_0x129ac1,_0x267f0a)=>_0x129ac1['id']<_0x267f0a['id']?-0x1:0x1);}());for(let _0x4bfa8d=0x0;_0x4bfa8d<_0x142b2a['length'];_0x4bfa8d++){if(0x0==_0x142b2a[_0x4bfa8d]['length'])continue;const _0x19dcd0=[];for(let _0xcfdbdb=_0x4bfa8d+0x1;_0xcfdbdb<_0x142b2a['length'];_0xcfdbdb++)0x0!=_0x142b2a[_0xcfdbdb]['length']&&_0x9bbf8c(_0x142b2a[_0x4bfa8d],_0x142b2a[_0xcfdbdb])&&_0x19dcd0['push'](_0xcfdbdb);for(const _0xfbc3de of _0x19dcd0)_0x142b2a[_0x4bfa8d]=_0x142b2a[_0x4bfa8d]['concat'](_0x142b2a[_0xfbc3de]),_0x142b2a[_0xfbc3de]=[];}for(const _0x6dafcb of _0x142b2a)for(let _0x184d8a=0x0;_0x184d8a<_0x6dafcb['length'];_0x184d8a++){const _0x38f907=_0x6dafcb[_0x184d8a+0x1]||null;_0x6dafcb[_0x184d8a]['next']!==_0x38f907&&(_0x6dafcb[_0x184d8a]['next']=_0x38f907);}for(const _0x9a9210 of _0x142b2a)for(let _0x1a0f1d=0x0;_0x1a0f1d<_0x9a9210['length'];_0x1a0f1d++){const _0x2693e8=_0x9a9210[_0x1a0f1d-0x1]||null;_0x9a9210[_0x1a0f1d]['previous']!==_0x2693e8&&(_0x9a9210[_0x1a0f1d]['previous']=_0x2693e8);}function _0x9bbf8c(_0x3c219c,_0x535bec){if(_0x3c219c[0x0]['attributes']['groupId']!==_0x535bec[0x0]['attributes']['groupId']&&_0x3c219c[0x0]['author']!==_0x535bec[0x0]['author'])return!0x1;if(!function(_0x58dc2e,_0x519956){if(!_0x58dc2e['hasComments']&&!_0x519956['hasComments'])return!0x0;if(_0x58dc2e['hasComments']&&_0x519956['hasComments'])return!0x1;if(_0x58dc2e['hasComments']&&_0x519956['createdAt']<_0x58dc2e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x519956['hasComments']&&_0x58dc2e['createdAt']<_0x519956['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3c219c[0x0],_0x535bec[0x0]))return!0x1;const _0x11ac0f=Ut(_0x3c219c[0x0]['attributes'],['groupId','trackingSessionId']),_0x92c3d5=Ut(_0x535bec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48c112(_0x11ac0f,_0x92c3d5))return!0x1;if(_0x3c219c[0x0]['attributes']['groupId']==_0x535bec[0x0]['attributes']['groupId'])return!0x0;if(_0x3c219c[0x0]['attributes']['trackingSessionId']!==_0x535bec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3c219c['every'](_0x41ae33=>_0x535bec['some'](_0x1198b9=>_0x41ae33['getFirstRange']()['isEqual'](_0x1198b9['getFirstRange']())))&&_0x535bec['every'](_0x28bbbf=>_0x3c219c['some'](_0x22bab9=>_0x28bbbf['getFirstRange']()['isEqual'](_0x22bab9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x22a17c){const _0x1fbffd=Array['from'](_0x22a17c),_0x22efea=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3bb3b5=_0x22efea['filter'](_0x4e48bd=>!_0x22a17c['has'](_0x4e48bd)),_0x2eb999=new Map(_0x1fbffd['map'](_0x4784e9=>[_0x4784e9,this['_suggestionFactory']['getSuggestionCallback'](_0x4784e9['type'],_0x4784e9['subType'],'join')])),_0x4f4009=new Map(_0x22efea['map'](_0x4e769c=>[_0x4e769c,_0x4e769c['getRanges']()]));for(let _0x59c1cd=0x0;_0x59c1cd<_0x1fbffd['length'];_0x59c1cd++){if(_0x4231f0(this,_0x1fbffd[_0x59c1cd],_0x1fbffd,_0x59c1cd+0x1))return!0x0;}for(let _0x49fbb2=0x0;_0x49fbb2<_0x1fbffd['length'];_0x49fbb2++){if(_0x4231f0(this,_0x1fbffd[_0x49fbb2],_0x3bb3b5,0x0))return!0x0;}return!0x1;function _0x4231f0(_0x565dfb,_0x174506,_0x25c5f1,_0x3493c4){for(let _0x10acdf=_0x3493c4;_0x10acdf<_0x25c5f1['length'];_0x10acdf++){const _0x500334=_0x25c5f1[_0x10acdf];if(_0x500334['type']!==_0x174506['type']||_0x500334['author']['id']!==_0x174506['author']['id']||_0x500334['subType']!==_0x174506['subType'])continue;if(!Wt(_0x174506,_0x500334))continue;if('attribute'==_0x174506['type']&&_0x174506['data']['oldValue']!=_0x500334['data']['oldValue'])continue;if('attribute'==_0x174506['type']&&_0x565dfb['_isBlockAttribute'](_0x174506['data']['key']))continue;if('formatBlock'==_0x174506['type']){const _0x210952=_0x565dfb['editor']['model'],_0x59c72c=_0x174506['getContainedElement']();if(_0x59c72c&&(_0x210952['schema']['isObject'](_0x59c72c)||_0x210952['schema']['isLimit'](_0x59c72c)))continue;}const _0x190972=_0x2eb999['get'](_0x174506),_0x3c40d8=_0x4f4009['get'](_0x174506),_0x37d816=_0x4f4009['get'](_0x500334),_0x3d76c5=_0x174506['commentThread']&&_0x174506['commentThread']['length'],_0x156fa5=_0x500334['commentThread']&&_0x500334['commentThread']['length'];if(!_0x3d76c5&&_0x190972(_0x37d816,_0x3c40d8))return _0x565dfb['_joinSuggestions'](_0x500334,_0x174506),_0x4f4009['delete'](_0x174506),!0x0;if(!_0x156fa5&&_0x190972(_0x3c40d8,_0x37d816))return _0x565dfb['_joinSuggestions'](_0x174506,_0x500334),_0x4f4009['delete'](_0x500334),!0x0;}return!0x1;}}['_joinSuggestions'](_0x374843,_0x271e64){if(_0x374843['isMultiRange']){for(const _0x423447 of _0x271e64['getRanges']())_0x374843['addRange'](_0x423447);}else{const _0x268e57=_0x271e64['getFirstRange']()['end'];this['_setSuggestionRange'](_0x374843,this['_model']['createRange'](_0x374843['getFirstRange']()['start'],_0x268e57));}_0x271e64['removeMarkers']();}['_getMarkerAnnouncementText'](_0x29d28d,_0x1b1114,_0x3b01f7){const _0x1d6377=_0x29d28d['startsWith']('format')||_0x29d28d['startsWith']('attribute')?'FORMATTING':_0x29d28d['toUpperCase']();return o(this['editor']['locale'],_0x1b1114+'_'+_0x1d6377+'_SUGGESTION_ANNOUNCEMENT',_0x3b01f7);}['_initAriaMarkerChangeAnnouncements'](){const _0x38e40c=this['editor'];if(!_0x38e40c['ui'])return;const {ariaLiveAnnouncer:_0x52c66c}=_0x38e40c['ui'];_0x320351(this['_model'],({left:_0x4e6a2f,entered:_0x1251a4})=>{for(const _0x5f1084 of _0x4e6a2f){const {group:_0x3417cc,type:_0x5802d2}=this['_splitMarkerName'](_0x5f1084['name']);if('suggestion'===_0x3417cc){_0x52c66c['announce'](this['_getMarkerAnnouncementText'](_0x5802d2,'LEAVE'));break;}}for(const _0x45e2d0 of _0x1251a4){const {group:_0xbfb269,type:_0x493195}=this['_splitMarkerName'](_0x45e2d0['name']);if('suggestion'===_0xbfb269){_0x52c66c['announce'](this['_getMarkerAnnouncementText'](_0x493195,'ENTER',_0x48f72b(_0x101cd3)));break;}}});}['_processAttributeChanges'](_0x46cd07){if(this['_recordAttributeSuggestions'])return!0x1;const _0x46db17=this['editor'],_0x1c945a=_0x46db17['model']['document']['differ']['getChanges']();if(0x0==_0x1c945a['length'])return!0x1;const _0x253758=[],_0x2b8f27=_0x1c945a['filter'](_0x1deecd=>'attribute'==_0x1deecd['type']),_0x5c1c4d=_0x1c945a['filter'](_0x3b387e=>'insert'==_0x3b387e['type']&&'$text'!=_0x3b387e['name']),_0x2f90fc=_0x1c945a['filter'](_0x46f020=>'remove'==_0x46f020['type']&&'$text'!=_0x46f020['name']);for(const _0x242497 of _0x2b8f27)_0x253758['push']({'key':_0x242497['attributeKey'],'newValue':_0x242497['attributeNewValue'],'oldValue':_0x242497['attributeOldValue'],'range':Ht(_0x242497['range'],_0x46db17['model'])});for(const _0x3204fc of _0x5c1c4d){const _0x43182b=_0x2f90fc['find'](_0x4f49d9=>_0x4f49d9['position']['isEqual'](_0x3204fc['position']));_0x43182b&&_0x253758['push']({'key':m,'newValue':_0x3204fc['name'],'oldValue':_0x43182b['name'],'range':_0x46db17['model']['createRangeOn'](_0x3204fc['position']['nodeAfter'])});}return 0x0!=_0x253758['length']&&this['_reduceExistingSuggestions'](_0x46cd07,_0x253758);}['_processAttributeSuggestions'](_0x180702){let _0x3c4011=!0x1;const _0x588e86=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51eb20=>_0x51eb20['data']['newRange']&&_0x51eb20['name']['startsWith']('suggestion:attribute:'));for(const _0x28bb47 of _0x588e86){const {subType:_0x355ab5,id:_0x181c53}=this['_splitMarkerName'](_0x28bb47['name']),_0x5a3c9e=_0x355ab5['split']('|')[0x0];for(const _0x414e01 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x414e01['id']!=_0x181c53&&'attribute'==_0x414e01['type']&&_0x414e01['data']&&_0x414e01['data']['key']==_0x5a3c9e&&_0x414e01['getFirstRange']()['isIntersecting'](_0x28bb47['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x414e01,_0x28bb47['data']['newRange'],_0x180702),_0x3c4011=!0x0);}return _0x3c4011;}['recordAttributeChanges'](_0x1071b6){this['_recordAttributeSuggestions']=!0x0,_0x1071b6();}['_isRegisteredAttribute'](_0x19655e){const _0x4f8c72=this['_isBlockAttribute'](_0x19655e),_0x239b51=this['_inlineAttributeKeys']['has'](_0x19655e);return _0x4f8c72||_0x239b51;}['_reduceExistingSuggestions'](_0x3d7d6a,_0x3f18fe){if(0x0==_0x3f18fe['length'])return!0x1;let _0x4711ca=!0x1;for(const _0x501a9d of _0x3f18fe){const _0x1d6252=this['_findSuggestions'](_0x501a9d['range'],'attribute')['filter'](_0x467f32=>!_0x467f32['meta']['isNextTo'])['map'](_0x10f689=>_0x10f689['suggestion']),_0x4aa864=_0x38917d({'newValue':_0x501a9d['newValue']});_0x1d6252['filter'](_0x1ac65a=>{const [_0x38687c,_0x146f3b]=_0x1ac65a['subType']['split']('|');return _0x38687c==_0x501a9d['key']&&_0x146f3b!=_0x4aa864;})['forEach'](_0x53a05c=>{this['_reduceSuggestionAttributeRange'](_0x53a05c,_0x501a9d['range'],_0x3d7d6a),_0x4711ca=!0x0;});}return _0x4711ca;}['_reduceSuggestionAttributeRange'](_0x1dae53,_0x2d4c2c,_0x5e4713){const _0x1f9b83=_0x1dae53['getFirstRange']()['getDifference'](_0x2d4c2c);0x0!==_0x1f9b83['length']?0x1!==_0x1f9b83['length']?this['_breakSuggestionMarker'](_0x1dae53,_0x2d4c2c['start'],_0x2d4c2c['end']):this['_setSuggestionRange'](_0x1dae53,_0x1f9b83[0x0]):_0x5e4713['removeMarker'](_0x1dae53['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x530ddc){this['_editor']=_0x530ddc,this['_model']=_0x530ddc['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5152b8,_0x36965c,_0xcd279c,_0x5bb987,_0xe75a98,_0x151165,_0x280b5c){return new T(this['_model'],{'type':_0x5152b8,'subType':_0x36965c,'id':_0xcd279c,'originalSuggestionId':_0x280b5c,'author':_0x5bb987,'creator':_0x5bb987,'attributes':_0xe75a98,'onAttributesChange':_0x151165,'onAccept':(..._0x3f116d)=>this['getSuggestionCallback'](_0x5152b8,_0x36965c,'accept')(..._0x3f116d),'onDiscard':(..._0x4fca16)=>this['getSuggestionCallback'](_0x5152b8,_0x36965c,'discard')(..._0x4fca16)});}['registerCustomCallback'](_0x469595,_0x1c3755,_0xd47d3f,_0x2ba128){const _0x2b28a5=_0x469595+':'+_0x1c3755+':'+_0xd47d3f;this['_customCallbacks']['set'](_0x2b28a5,_0x2ba128);}['getSuggestionCallback'](_0x40263e,_0x423815,_0xe1e5b3){const _0x1ae467=_0x40263e+':'+_0x423815+':'+_0xe1e5b3;return this['_customCallbacks']['get'](_0x1ae467)||this['_defaultCallbacks']['get'](_0x40263e+':'+_0xe1e5b3);}['_registerDefaultCallbacks'](){const _0x52bec8=()=>!0x1,_0x34be90=_0x34d0cf=>{_0x34d0cf['sort']((_0x2676e6,_0x4b3604)=>_0x2676e6['start']['isBefore'](_0x4b3604['start'])?0x1:-0x1),this['_model']['change'](_0x3bab4e=>{for(const _0x26f594 of _0x34d0cf){let _0x466200;_0x466200=_0x26f594['end']['isAtEnd']&&_0x26f594['end']['parent']==_0x26f594['start']['nodeAfter']?_0x3bab4e['createSelection'](_0x26f594['start']['nodeAfter'],'on'):_0x3bab4e['createSelection'](_0x26f594),this['_model']['deleteContent'](_0x466200,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1a38b3=(_0x3a7f5a,_0x473d65)=>{_0x473d65&&this['_model']['change'](_0x55a186=>{const {commandName:_0x24018e,commandParams:_0x40a89e=[]}=_0x473d65,_0x1fbf1a=_0x3a7f5a['map'](_0x200ca2=>(Pt(_0x200ca2)&&(_0x200ca2=this['_model']['createRange'](_0x200ca2['end'])),_0x200ca2))['filter'](_0x1eecfc=>'$graveyard'!==_0x1eecfc['root']['rootName']);if(_0x1fbf1a['length']<0x1)return;const _0x42d0c5=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3ca89e=>_0x4ef168['fromRange'](_0x3ca89e));_0x55a186['setSelection'](_0x1fbf1a);for(const _0x14a304 of this['_editor']['commands']['commands']())_0x14a304['refresh']();_0x40a89e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x24018e,..._0x40a89e);const _0x3f823a=_0x42d0c5['filter'](_0x19c5f2=>'$graveyard'!=_0x19c5f2['root']['rootName']);_0x3f823a['length']>0x0&&_0x55a186['setSelection'](_0x3f823a);for(const _0x504880 of _0x42d0c5)_0x504880['detach']();});},_0xcaa92d=(_0x1d13cd,_0x57c109)=>0x1==_0x1d13cd['length']&&0x1==_0x57c109['length']&&_0x1d13cd[0x0]['end']['isEqual'](_0x57c109[0x0]['start']),_0x1896f9=(_0x4e64fb,_0x27a803,_0x94b1f8,_0x6af590)=>zt(_0x4e64fb,_0x27a803,_0x94b1f8,_0x6af590)?[_0x4e64fb,_0x27a803]:zt(_0x27a803,_0x4e64fb,_0x6af590,_0x94b1f8)?[_0x27a803,_0x4e64fb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52bec8),this['_defaultCallbacks']['set']('insertion:discard',_0x34be90),this['_defaultCallbacks']['set']('insertion:join',_0xcaa92d),this['_defaultCallbacks']['set']('insertion:chain',_0x1896f9),this['_defaultCallbacks']['set']('deletion:accept',_0x34be90),this['_defaultCallbacks']['set']('deletion:discard',_0x52bec8),this['_defaultCallbacks']['set']('deletion:join',_0xcaa92d),this['_defaultCallbacks']['set']('deletion:chain',_0x1896f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x1a38b3),this['_defaultCallbacks']['set']('formatInline:discard',_0x52bec8),this['_defaultCallbacks']['set']('formatInline:join',_0xcaa92d),this['_defaultCallbacks']['set']('formatInline:chain',_0x52bec8),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1a38b3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52bec8),this['_defaultCallbacks']['set']('formatBlock:join',_0xcaa92d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52bec8),this['_defaultCallbacks']['set']('attribute:accept',_0x52bec8),this['_defaultCallbacks']['set']('attribute:discard',(_0x300ae9,_0x57d898)=>{if(!_0x57d898)return;const _0x5d8e70=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x2466c7=>{if(_0x57d898['key']==m)for(const _0x2449d9 of _0x300ae9){const _0x164f26=_0x2449d9['start']['nodeAfter'],_0x4e112c=_0x57d898['oldValue'];_0x2466c7['rename'](_0x164f26,_0x4e112c);}else{if(_0x5d8e70['_isBlockAttribute'](_0x57d898['key'])){for(const _0x597833 of _0x300ae9)void 0x0!==_0x57d898['oldValue']?_0x2466c7['setAttribute'](_0x57d898['key'],_0x57d898['oldValue'],_0x597833['start']['nodeAfter']):_0x2466c7['removeAttribute'](_0x57d898['key'],_0x597833['start']['nodeAfter']);}else{for(const _0x133663 of _0x300ae9)_0x57d898['oldValue']?_0x2466c7['setAttribute'](_0x57d898['key'],_0x57d898['oldValue'],_0x133663):_0x2466c7['removeAttribute'](_0x57d898['key'],_0x133663);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xcaa92d);}}function Ft(_0x47de8b,_0x596920,_0x238314){for(const _0x13ee7c of _0x596920['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x13ee7c['root']==_0x13ee7c)return!0x1;if(!_0x238314['containsItem'](_0x13ee7c))return!0x1;if(_0x47de8b['isObject'](_0x13ee7c)||_0x47de8b['isLimit'](_0x13ee7c))return!0x0;}return!0x1;}function Pt(_0x5bba35){return _0x5bba35['end']['parent']==_0x5bba35['start']['nodeAfter']&&_0x5bba35['end']['isAtStart'];}function Gt(_0x27383b,_0x34d8f8,_0xcc193a,_0x4c229d){const _0x4aec21=_0x1db8bf=>!_0x1db8bf['item']['is']('$textProxy')&&!_0x4c229d['isObject'](_0x1db8bf['item']),_0x55282b=_0x27383b['start']['getLastMatchingPosition'](_0x4aec21),_0xc7c88a=_0x27383b['end']['getLastMatchingPosition'](_0x4aec21,{'direction':'backward'});return(!_0x27383b['start']['isEqual'](_0x55282b)||!_0x27383b['end']['isEqual'](_0xc7c88a))&&(_0x55282b['isBefore'](_0xc7c88a)?_0xcc193a['updateMarker'](_0x34d8f8,{'range':_0xcc193a['createRange'](_0x55282b,_0xc7c88a)}):_0xcc193a['removeMarker'](_0x34d8f8),!0x0);}function Lt(_0x1ee4fd){return _0x38917d(_0x1ee4fd);}function Jt(_0xc5d2b2){const _0x93c16=_0xc5d2b2['start']['nodeAfter'];return _0x93c16&&_0x93c16['is']('element');}function Kt(_0x19b9e8){return!Pt(_0x19b9e8)&&!function(_0x3e8a45){return _0x3e8a45['start']['parent']==_0x3e8a45['end']['nodeBefore']&&_0x3e8a45['start']['isAtEnd'];}(_0x19b9e8);}function Ht(_0x4a466b,_0x298db7){return null==_0x4a466b['end']['nodeBefore']&&_0x4a466b['end']['parent']==_0x4a466b['start']['nodeAfter']?qt(_0x4a466b['start']['nodeAfter'],_0x298db7):_0x4a466b;}function qt(_0x315d56,_0x217ea5){const _0x308ad5=_0x217ea5['schema']['isObject'](_0x315d56)||_0x217ea5['schema']['isSelectable'](_0x315d56);return _0x217ea5['createRange'](_0x217ea5['createPositionAt'](_0x315d56,'before'),_0x308ad5?_0x217ea5['createPositionAfter'](_0x315d56):_0x217ea5['createPositionAt'](_0x315d56,'end'));}function zt(_0x52a7ec,_0x1bcb51,_0x1d5ee6,_0xc437c9){return!!Wt(_0x52a7ec,_0x1bcb51)&&_0x1d5ee6['end']['isEqual'](_0xc437c9['start']);}function Wt(_0x39ffc2,_0x30c506){if(!_0x39ffc2['_isDataLoaded']||!_0x30c506['_isDataLoaded'])return!0x1;const _0x3f568d=new Set(Object['keys'](_0x39ffc2['attributes'])),_0x5ab4dd=new Set(Object['keys'](_0x30c506['attributes']));if(_0x3f568d['delete']('groupId'),_0x5ab4dd['delete']('groupId'),0x0==_0x3f568d['size']&&0x0==_0x5ab4dd['size'])return!0x0;if(_0x3f568d['size']!=_0x5ab4dd['size'])return!0x1;const _0x1b56b1={..._0x39ffc2['attributes']},_0x7d9b57={..._0x30c506['attributes']};return delete _0x1b56b1['groupId'],delete _0x7d9b57['groupId'],JSON['stringify'](_0x1b56b1)==JSON['stringify'](_0x7d9b57);}function Qt(_0x3faecd,_0x545804){const _0x1a6dbe=Xt(_0x3faecd['attributes']),_0x5cdf09=Xt(_0x545804);if(!_0x3faecd['_isDataLoaded'])return!0x1;for(const _0x710e08 of Object['keys'](_0x5cdf09))if(!_0x48c112(_0x1a6dbe[_0x710e08],_0x5cdf09[_0x710e08]))return!0x1;return!0x0;}function Xt(_0x516f77){const _0x5996a6=Object['assign']({},_0x516f77);return delete _0x5996a6['skipNestingCheck'],delete _0x5996a6['tablePasteChainId'],_0x5996a6;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4ab215(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4e7253,_0x22e373,_0x238d4b,_0x27f14a){super(),this['model']=_0x22e373,this['view']=_0x238d4b,this['commentThreadController']=_0x27f14a,this['_editor']=_0x4e7253,this['_acceptCommand']=_0x4e7253['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4e7253['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5624f5,_0x2271d1)=>_0x5624f5||_0x2271d1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x31f6f8=>_0x31f6f8&&this['_editor']['model']['canEditAt'](_0x22e373['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xfb0319=>_0xfb0319&&this['_editor']['model']['canEditAt'](_0x22e373['getRanges']())),this['_pendingAction']=null,_0x238d4b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x238d4b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x238d4b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x238d4b,'change:isDirty',()=>{_0x238d4b['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 _0x5d669b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5d669b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x51fa9e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x578cd8,_0x16962d,_0xe1db28,_0x2f10de){super(_0x578cd8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1fbb41(_0x578cd8,o(_0x578cd8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x16962d['authoredAt']),this['bind']('authoredAt')['to'](_0x16962d),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',_0x16962d,'authoredAt',this,'descriptionParts',(_0x29ea01,_0x1e1b23,_0x294892)=>{const _0x15cafe=_0x294892['map'](_0x42e3d7=>ls(_0x42e3d7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x29ea01-0x1,_0x16962d['author']['name'],_0x1e1b23?_0x2f10de['formatDateTime'](_0x1e1b23):'',new DOMParser()['parseFromString'](_0x15cafe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13b940(),this['focusTracker']=new _0x4ba80c(),this['keystrokes']=new _0xea4328(),this['focusCycler']=new _0x50f93b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xb01572=>_0xb01572['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x16962d,this['_localUser']=_0xe1db28,this['_config']=_0x2f10de,_0x2f10de['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x390368(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d5157}=this['_config'];this['commentsListView']=new _0x5d5157(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',_0xa646e9=>_0xa646e9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4c5fa5,_0xfcf386)=>_0x4c5fa5||!!_0xfcf386);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5456f4}=this['_config'],_0x947248=new _0x5456f4(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x51e4bf=_0x947248['commentInputView'];return _0x947248['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x51e4bf,'value',(_0x5e06a3,_0x4e7b6e,_0x2a4eb7)=>!!_0x2a4eb7||_0x5e06a3&&!_0x4e7b6e),_0x51e4bf['on']('submit',(_0x162cbd,_0x1be184)=>{this['fire']('addComment',_0x1be184),_0x51e4bf['editor']['setData']('');}),_0x51e4bf['on']('cancel',()=>this['focus']()),_0x51e4bf['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x947248;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x4f4d95,_0x15f547,_0x1b4bd1,_0x3c79cf){super(_0x4f4d95,_0x15f547,_0x1b4bd1,_0x3c79cf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5cb20f=>_0x5cb20f&&_0x5cb20f[0x0]?_0x5cb20f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x30716a,_0x23894b)=>{let _0x1b2e41='';for(const _0x50e407 of _0x30716a)_0x1b2e41+='<p>'+ls(_0x50e407['content'],_0x50e407['color'])+'</p>';return _0x23894b?_0x1b2e41:_0x5039b0(_0x1b2e41,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3c79cf['SuggestionView'](_0x4f4d95,_0x15f547,{'formatDateTime':_0x3c79cf['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 _0x26709c=this['bindTemplate'],_0x3c00e2=[this['suggestionView']];return this['commentsListView']&&_0x3c00e2['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3c00e2['push'](this['commentThreadInputView']),_0x3c00e2['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x26709c['if']('isActive','ck-suggestion-wrapper--active'),_0x26709c['to']('type',_0x5cef15=>'ck-suggestion-'+_0x5cef15),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':_0x26709c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3c00e2};}['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 _0x51fa9e{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x49532f,_0x1e39dc,_0x45db68){super(_0x49532f),this['_model']=_0x1e39dc,this['_config']=_0x45db68,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1e39dc),this['acceptButton']=this['_createButton'](o(_0x49532f,'Accept\x20suggestion'),_0x3bab8d,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x49532f,'Discard\x20suggestion'),_0x2bbfac,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x581262(_0x49532f,_0x1e39dc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13b940([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ba80c(),this['keystrokes']=new _0xea4328(),this['focusCycler']=new _0x50f93b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x540380=>_0x540380['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xf04cb1=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xf04cb1['innerHTML']=this['description'],this['on']('change:description',(_0x3c97c6,_0x496fb2,_0x3449d5)=>{_0xf04cb1['innerHTML']=_0x3449d5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5dc327=this['bindTemplate'],_0x29ea36=[{'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':_0x5dc327['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5dc327['to']('authoredAt',_0x525741=>this['_config']['formatDateTime'](_0x525741))}]}]},{'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']&&_0x29ea36['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':_0x29ea36}]};}['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'](_0x20d80b,_0x7e5ebc,_0x57f454,_0x3ab0dd,_0x4362d2){const _0x12a226=new _0xf2ab3a(this['locale']);return _0x12a226['set']({'label':_0x20d80b,'icon':_0x7e5ebc,'tooltip':!0x0,'tooltipPosition':_0x4362d2}),_0x12a226['extendTemplate']({'attributes':{'class':_0x57f454}}),_0x12a226['on']('execute',()=>{this['fire'](_0x3ab0dd,this['_model']['id']);}),_0x12a226;}['_setupKeyboardNavigation'](){const _0x2f19c0=this['element'];this['keystrokes']['listenTo'](_0x2f19c0);for(const _0x3d4bfe of this['focusables'])this['focusTracker']['add'](_0x3d4bfe['element']),this['keystrokes']['listenTo'](_0x3d4bfe['element']);this['keystrokes']['set']('enter',(_0x5c7b27,_0x25fa82)=>{_0x2f19c0===_0x5c7b27['target']&&(this['focusCycler']['focusFirst'](),_0x25fa82());}),this['keystrokes']['set']('esc',(_0x2d19ce,_0x139f1e)=>{_0x2f19c0!==_0x2d19ce['target']&&(this['focus'](),_0x139f1e());});}}class u extends _0x185c8e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x7e9419,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x334ab7){super(_0x334ab7),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5c615a=this['editor']['config'];_0x5c615a['define']('trackChanges.SuggestionThreadView',fe),_0x5c615a['define']('trackChanges.SuggestionView',we),_0x5c615a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5c615a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x42c9b1,_0x41d268){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x119232,_0x380cc7]of this['_handleControllerBuffer']){const _0x29f405=this['_suggestionToController']['has'](_0x119232);_0x29f405||_0x380cc7?_0x29f405&&_0x380cc7&&this['_destroyController'](_0x119232):this['_initializeController'](_0x119232);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x42c9b1,_0x41d268);}['init'](){const _0x29acdd=this['editor'],_0x431bc4=_0x29acdd['plugins']['get']('TrackChangesEditing'),_0x178055=_0x29acdd['plugins']['get']('Annotations'),_0x2c490e=_0x29acdd['plugins']['get']('EditorAnnotations'),_0x40f2b8=_0x29acdd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2c490e['addSourceCollector'](()=>{const _0x53e629=[];for(const [_0x456d41,_0x2505fc]of Array['from'](this['_suggestionToController'])){const _0x27881f=_0x456d41['getAllAdjacentSuggestions'](),_0x186b53=[];for(const _0x37d71a of _0x27881f){if(!_0x37d71a['isInContent'])continue;if(_0x37d71a['isMultiRange']){_0x186b53['push'](..._0x37d71a['getRanges']());continue;}const _0xc0c3ef=_0x37d71a['getFirstRange']();if(_0x186b53['length']>0x0){const _0x1cf5d8=_0x186b53[0x0]['getJoined'](_0xc0c3ef);if(_0x1cf5d8){_0x186b53[0x0]=_0x1cf5d8;continue;}}_0x186b53['push'](_0xc0c3ef);}_0x53e629['push']([_0x2505fc['view'],_0x186b53]);}return _0x53e629;}),this['listenTo'](_0x431bc4,'suggestionLoaded',(_0x2caf30,_0x28581a)=>{this['listenTo'](_0x28581a,'change:previous',(_0x4cae41,_0x43397e,_0x30b863,_0x5d649c)=>{_0x28581a['isInContent']&&(null==_0x30b863?(this['_updateController'](_0x5d649c['head']),this['_handleSuggestionControllerDelayed'](_0x28581a,!0x1)):(this['_updateController'](_0x30b863['head']),null==_0x5d649c&&this['_handleSuggestionControllerDelayed'](_0x28581a,!0x0)));}),null!==_0x28581a['previous']?this['_updateController'](_0x28581a['head']):this['_handleSuggestionControllerDelayed'](_0x28581a,!0x1);}),this['listenTo'](_0x431bc4,'suggestionUnloaded',(_0x173036,_0x182a65,_0x32660b)=>{this['stopListening'](_0x182a65,'change:previous'),this['_handleControllerBuffer']['delete'](_0x182a65),this['_suggestionToController']['has'](_0x182a65)&&this['_destroyController'](_0x182a65),_0x32660b&&this['_updateController'](_0x32660b['head']);}),this['listenTo'](_0x431bc4,'suggestionChanged',(_0x50f51b,_0x1e9b6b)=>{this['_updateController'](_0x1e9b6b);}),this['listenTo'](_0x178055,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x40f2b8,'addComment',(_0x3f929f,{threadId:_0x18f9e5,isFromAdapter:_0x2d20fc})=>{if(_0x2d20fc||!_0x431bc4['hasSuggestion'](_0x18f9e5))return;const _0x1b0f87=_0x431bc4['getSuggestion'](_0x18f9e5);this['_suggestionToController']['get'](_0x1b0f87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x10fcf8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x528191;for(const _0x1e41d5 in _0x10fcf8){const _0x1e1628=_0x1e41d5,_0x2fd79c=_0x10fcf8[_0x1e1628];if('trackChangesLicenseKeyValid'==_0x2fd79c||'trackChangesLicenseKeyInvalid'==_0x2fd79c||'trackChangesLicenseKeyExpired'==_0x2fd79c||'trackChangesLicenseKeyDomainLimit'==_0x2fd79c||'trackChangesLicenseKeyNotAllowed'==_0x2fd79c||'trackChangesLicenseKeyEvaluationLimit'==_0x2fd79c||'trackChangesLicenseKeyTrialLimit'==_0x2fd79c||'trackChangesLicenseKeyUsageLimit'==_0x2fd79c){delete _0x10fcf8[_0x1e1628],_0x528191=_0x2fd79c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x528191&&_0x10fcf8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x528191&&_0x10fcf8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x528191&&_0x10fcf8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x528191&&_0x10fcf8['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x358489){const _0x3e252d=this['_suggestionToController']['get'](_0x358489);if(!_0x3e252d)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x3e252d['view'])||null;}['getSuggestionForAnnotation'](_0x24ee3f){const _0x3cef9c=this['_viewToController']['get'](_0x24ee3f['innerView']);return _0x3cef9c?_0x3cef9c['model']:null;}['_refreshActiveMarkers'](){const _0x1a5ddc=this['editor']['plugins']['get']('Annotations'),_0xcfe537=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2151dd=Array['from'](_0x1a5ddc['activeAnnotations'],_0x1568b3=>_0x1568b3['innerView'])['filter'](_0x516c78=>this['_viewToController']['has'](_0x516c78)),_0x1796aa=[];for(const _0x476576 of _0x2151dd){const _0x535c94=this['_viewToController']['get'](_0x476576)['model']['getAllAdjacentSuggestions']();_0x1796aa['push'](..._0x535c94['reduce']((_0x212b56,_0xdb7239)=>[..._0x212b56,..._0xdb7239['getMarkerNames']()],[]));}_0xcfe537['activeMarkers']=_0x1796aa;}['_addUIComponentsToFactory'](){const _0x8b0c26=this['editor'],_0x3e3b88=_0x8b0c26['locale'],_0x54a503=o(_0x3e3b88,'Track\x20changes'),_0xed6a80=new _0x418873([{'type':'switchbutton','model':new _0x2a146f({'withText':!0x0,'isToggleable':!0x0,'label':_0x54a503,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x8b0c26['plugins']['has']('TrackChangesPreview')&&_0xed6a80['addMany']([{'type':'separator'},{'type':'button','model':new _0x2a146f({'withText':!0x0,'label':o(_0x3e3b88,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2cb8aa of _0xed6a80)if(ke(_0x2cb8aa)){const _0x21d19f=_0x8b0c26['commands']['get'](_0x2cb8aa['model']['commandName']);_0x2cb8aa['model']['bind']('isOn','isEnabled')['to'](_0x21d19f,'value','isEnabled');}_0x8b0c26['ui']['componentFactory']['add']('trackChanges',_0x255c99=>this['_createToolbarButton'](_0x255c99,_0xed6a80,_0x54a503)),_0x8b0c26['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1935fb=>this['_createMenuBarMenu'](_0x1935fb,_0xed6a80,_0x54a503));}['_createToolbarButton'](_0x7a011f,_0x2069ab,_0x1999b5){const _0x4ad3a5=_0x3413fc(_0x7a011f,_0x3f091f),_0x2aaf5a=this['editor']['commands']['get']('trackChanges');_0x4ad3a5['buttonView']['set']({'tooltip':_0x1999b5,'label':_0x1999b5,'icon':_0x214e3f}),_0x4ad3a5['buttonView']['bind']('isOn')['to'](_0x2aaf5a,'value'),_0x4ad3a5['buttonView']['on']('execute',()=>{_0x2aaf5a['execute'](),this['editor']['editing']['view']['focus']();}),_0x300a82(_0x4ad3a5,_0x2069ab,{'role':'menu'});const _0x16aee2=[];for(const _0x374cff of _0x2069ab)ke(_0x374cff)&&_0x16aee2['push'](this['editor']['commands']['get'](_0x374cff['model']['commandName']));const _0x135fe4=_0x4ad3a5['buttonView'];return _0x135fe4['actionView']['unbind']('isEnabled'),_0x135fe4['arrowView']['unbind']('isEnabled'),_0x135fe4['actionView']['bind']('isEnabled')['to'](_0x2aaf5a,'isEnabled'),_0x135fe4['arrowView']['bind']('isEnabled')['toMany'](_0x16aee2,'isEnabled',(..._0x8df082)=>_0x8df082['some'](_0xb77836=>_0xb77836)),_0x4ad3a5['on']('execute',_0x5954e6=>{this['editor']['execute'](_0x5954e6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4ad3a5;}['_createMenuBarMenu'](_0x30f5af,_0x39646c,_0x38e2cb){const _0x100d03=new _0x53e884(_0x30f5af),_0x58dc79=this['editor']['commands']['get']('trackChanges');_0x100d03['buttonView']['set']({'label':_0x38e2cb,'icon':_0x214e3f});const _0xaf8a71=new _0x2c5f59(_0x30f5af);for(const _0x3ec251 of _0x39646c){if('separator'==_0x3ec251['type']){_0xaf8a71['items']['add'](new _0x4ca5df(_0x30f5af));continue;}const _0x305c6f=new _0x441c3f(_0x30f5af,_0x100d03),_0x2804a0=new _0x3a5579(_0x30f5af),_0x5ab82e=_0x3ec251['model'];_0x2804a0['bind'](...Object['keys'](_0x5ab82e))['to'](_0x5ab82e),_0x2804a0['delegate']('execute')['to'](_0x100d03),_0x2804a0['on']('execute',()=>{this['editor']['execute'](_0x5ab82e['commandName']),this['editor']['editing']['view']['focus']();}),_0x305c6f['children']['add'](_0x2804a0),_0xaf8a71['items']['add'](_0x305c6f);}return _0x100d03['bind']('isEnabled')['to'](_0x58dc79,'isEnabled'),_0x100d03['panelView']['children']['add'](_0xaf8a71),_0x100d03;}['_initializeController'](_0x594bd8){const _0x2adc32=this['editor'],_0x19c040=_0x2adc32['config'],_0x437236=_0x2adc32['plugins']['get']('Annotations'),_0x599ea2=_0x2adc32['plugins']['get']('CommentsRepository'),_0x23e02a=_0x2adc32['plugins']['get']('EditorAnnotations'),_0x1a7c19=_0x2adc32['plugins']['get'](_0x7e9419)['me'],_0x15e458=_0x19c040['get']('trackChanges')['SuggestionThreadView'],_0x1cfc11=_0x19c040['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1701f7,CommentThreadInputView:_0x552978}=_0x2adc32['plugins']['get']('CommentsUI');let _0x124577,_0x2c2c8f,_0x5bf10c;this['_annotationViews']['has'](_0x594bd8['id'])?(_0x2c2c8f=this['_annotationViews']['get'](_0x594bd8['id']),_0x124577=_0x2c2c8f['mainView']):(_0x124577=new _0x15e458(_0x2adc32['locale'],_0x594bd8,_0x1a7c19,{'disableComments':this['_disableComments'],'editorConfig':{..._0x19c040['get']('comments.editorConfig'),'licenseKey':_0x19c040['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x19c040['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x19c040['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x19c040['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x25adc9(_0x19c040['get']('locale'),_0x2adc32['locale']),'CommentView':_0x19c040['get']('comments')['CommentView'],'CommentsListView':_0x1701f7,'CommentThreadInputView':_0x552978,'SuggestionView':_0x1cfc11}),_0x124577['suggestionView']['acceptButton']['on']('execute',()=>{_0x2adc32['editing']['view']['focus']();}),_0x124577['suggestionView']['discardButton']['on']('execute',()=>{_0x2adc32['editing']['view']['focus']();}),_0x2c2c8f=_0x437236['createAnnotationView'](this['editor']['locale'],_0x124577),_0x2c2c8f['bind']('isDirty')['to'](_0x124577,'isDirty'),_0x2c2c8f['bind']('length')['to'](_0x124577),_0x2c2c8f['bind']('type')['to'](_0x124577,'type',_0x5949f4=>'suggestion-'+_0x5949f4),_0x124577['on']('escape',()=>{_0x5bf10c['fire']('escape');}),this['_annotationViews']['set'](_0x594bd8['id'],_0x2c2c8f));const _0x53f948=_0x599ea2['createCommentThreadController'](_0x594bd8['commentThread'],_0x124577),_0x18f50f=new pe(_0x2adc32,_0x594bd8,_0x124577,_0x53f948),_0x4aaeba=_0x594bd8['getAllAdjacentSuggestions']()['filter'](_0x48a9d5=>_0x48a9d5['isInContent']);_0x124577['descriptionParts']=_0x2adc32['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4aaeba),this['_suggestionToController']['set'](_0x594bd8,_0x18f50f),this['_viewToController']['set'](_0x124577,_0x18f50f),_0x5bf10c=_0x437236['createAnnotation']({'view':_0x2c2c8f,'target':()=>{const _0x1f59f7=[],_0x1d54c5=_0x594bd8['getAllAdjacentSuggestions']()['filter'](_0xf0e006=>_0xf0e006['isInContent']);for(const _0x57b9ec of _0x1d54c5)_0x1f59f7['push'](..._0x57b9ec['getMarkers']());return _0x331e1e(_0x2adc32['editing'],_0x1f59f7);},'type':()=>'suggestion-'+_0x18f50f['view']['type']}),_0x599ea2['_bindAnnotationToEditors'](_0x124577,_0x5bf10c),_0x437236['add'](_0x5bf10c),_0x23e02a['registerAnnotation'](_0x5bf10c);}['_destroyController'](_0x3a0b12){const _0x286370=this['editor']['plugins']['get']('CommentsRepository'),_0x565a4c=this['editor']['plugins']['get']('Annotations'),_0x37050a=this['_suggestionToController']['get'](_0x3a0b12),_0x350b2b=_0x37050a['view'],_0x5068b2=_0x565a4c['getByInnerView'](_0x350b2b);_0x286370['_unbindEditors'](_0x350b2b),_0x5068b2&&_0x565a4c['remove'](_0x5068b2),this['_suggestionToController']['delete'](_0x3a0b12),this['_viewToController']['delete'](_0x350b2b),_0x37050a['destroy']();}['_updateController'](_0x2317ce){if(!_0x2317ce['isInContent']||!this['_suggestionToController']['has'](_0x2317ce))return;const _0x4519f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b516c=this['_suggestionToController']['get'](_0x2317ce),_0x1f4d12=_0x2317ce['getAllAdjacentSuggestions']();_0x4b516c['view']['descriptionParts']=_0x4519f5['descriptionFactory']['getDescriptions'](_0x1f4d12);}['destroy'](){for(const _0x507397 of this['_suggestionToController']['keys']())this['_destroyController'](_0x507397);for(const _0x1305ba of this['_annotationViews']['values']())_0x1305ba['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4e60bf){return'model'in _0x4e60bf;}class Fe extends _0x185c8e{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54b921){this['editor']['plugins']['get'](d)['adapter']=_0x54b921;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x599529){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x599529);}['getSuggestions']({skipNotAttached:_0x5ccfa3=!0x1,toJSON:_0x350240=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x5ccfa3,'toJSON':_0x350240});}['getSuggestion'](_0x2f9677){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2f9677);}}const p=['Pagination'];class re extends _0x185c8e{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x136bf2=this['editor'];if(_0x136bf2['config']['define']('trackChangesData.editorCreator',_0xa98bbe=>{const _0x3030a3=_0x136bf2['model']['document']['getRootNames']()['reduce']((_0x4647aa,_0x3a50ff)=>(_0x4647aa[_0x3a50ff]='',_0x4647aa),{});return _0x136bf2['constructor']['create'](_0x3030a3,_0xa98bbe);}),'function'!=typeof _0x136bf2['config']['get']('trackChangesData')['editorCreator'])throw new _0x464339('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x48192b){return P(this['editor'],!0x0,_0x48192b);}['getDataWithDiscardedSuggestions'](_0x1df884){return P(this['editor'],!0x1,_0x1df884);}}class Ge extends _0x185c8e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x206ffa){function _0x20274a(_0x53a01b){return _0x53a01b['map'](_0x203db1=>String['fromCharCode'](_0x203db1))['join']('');}super(_0x206ffa),this['result']='end',_0x206ffa[_0x20274a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20274a([0x76,0x69,0x65,0x77])][_0x20274a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20274a([0x61,0x75,0x74,0x6f]),_0x206ffa[_0x20274a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x20274a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20274a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x20274a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x20274a([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 $e(_0x55ff3a){return void 0x0!==_0x55ff3a['getRootsAttributes'];}async function P(_0x43c9aa,_0x44adf4,_0x136c35){const _0x44f8b8=_0x32f147(_0x43c9aa,p);_0x44f8b8['plugins']['push'](d,Ge),_0x44f8b8['rootsAttributes']=$e(_0x43c9aa)?_0x43c9aa['getRootsAttributes']():void 0x0;const _0x3f7687=document['createDocumentFragment'](),_0x27d437=_0x43c9aa['config']['get']('trackChangesData')['editorCreator'],_0x1a7002=await _0x27d437(_0x44f8b8,()=>function(_0x2bb36d){const _0x5b84d7=document['createElement']('div');return _0x2bb36d['appendChild'](_0x5b84d7),_0x5b84d7;}(_0x3f7687));!function(_0x5ed072,_0x26a753){const _0x531d9b=_0x5ed072['model']['document']['getRootNames']()['reduce']((_0x18563e,_0x3c048d)=>(_0x18563e[_0x3c048d]=_0x5ed072['data']['get']({'rootName':_0x3c048d}),_0x18563e),{}),_0x5dca9f=_0x5ed072['plugins']['get']('Users')['users']['map'](_0x1a4c74=>({'id':_0x1a4c74['id'],'name':_0x1a4c74['name']})),_0x1229a3=_0x5ed072['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf76fc6=_0x5ed072['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a84f4=_0x26a753['plugins']['get']('Users'),_0x5811ea=_0x26a753['plugins']['get']('TrackChangesEditing'),_0x52b955=_0x26a753['plugins']['get']('CommentsRepository');for(const _0x1d9064 of _0x52b955['getCommentThreads']())_0x1d9064['remove']();for(const _0x6d871 of _0x5dca9f)_0x3a84f4['getUser'](_0x6d871['id'])||_0x3a84f4['addUser'](_0x6d871);_0x3a84f4['me']||_0x3a84f4['useAnonymousUser']();for(const _0x56940f of _0xf76fc6)_0x52b955['addCommentThread'](_0x56940f);for(const _0x3ecaa7 of _0x1229a3)_0x5811ea['addSuggestionData'](_0x3ecaa7);_0x26a753['data']['set'](_0x531d9b);}(_0x43c9aa,_0x1a7002),_0x1a7002['execute'](_0x44adf4?'acceptAllSuggestions':'discardAllSuggestions');const _0x2753ae=$e(_0x1a7002)?_0x1a7002['getFullData'](_0x136c35):_0x1a7002['data']['get'](_0x136c35);return await _0x1a7002['destroy'](),_0x2753ae;}class Me extends _0x51fa9e{['options'];constructor(_0x1016e4,_0x3fc2d3){super(_0x1016e4),this['options']=_0x3fc2d3,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'](_0x413bb4,_0x2019fa){if(!this['element'])return;const _0x5af705=[];for(const [_0x1722af,_0x43b7c6]of _0x413bb4){const _0x499ce5=document['createElement']('div');_0x499ce5['setAttribute']('data-ck-root-name',_0x1722af),_0x499ce5['className']=_0x43b7c6['classes']+'\x20ck-track-changes-preview__root-container',_0x499ce5['innerHTML']=_0x43b7c6['content'],_0x5af705['push'](_0x499ce5);}_0x2019fa(this['element'],_0x5af705),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x5a8212{constructor(_0x4f6fc8){super(_0x4f6fc8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x36fba0=this['editor'],_0x5c349f=_0x36fba0['locale'],_0x15b0cc=_0x36fba0['plugins']['get']('Dialog');let _0x2f890c;const _0x125d0a=function(_0x1118fa){const _0x5e9802={};if('editables'in _0x1118fa['ui']['view']){for(const [_0x2b49a3,_0x607cac]of Object['entries'](_0x1118fa['ui']['view']['editables']))_0x5e9802[_0x2b49a3]=_0x607cac['element'];}else _0x5e9802[_0x1118fa['model']['document']['getRootNames']()[0x0]]=_0x1118fa['ui']['view']['editable']['element'];return _0x5e9802;}(_0x36fba0),_0x15e5cc=function(_0x4a9243){let _0x3524de=0x0;for(const _0x825946 of Object['values'](_0x4a9243))_0x3524de=Math['max'](_0x3524de,_0x825946['getBoundingClientRect']()['width']);let _0xb98727=0x0;for(const _0x1fdaac of Object['values'](_0x4a9243))_0xb98727+=_0x1fdaac['getBoundingClientRect']()['height'];const _0xe7f61e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x38f1f4=Math['min'](_0xb98727,_0xe7f61e);return{'width':_0x3524de,'height':_0x38f1f4};}(_0x125d0a);_0x15b0cc['show']({'id':'finalContentPreview','title':o(_0x5c349f,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5c349f,{'dialogRects':_0x15e5cc}),'onHide':()=>{_0x2f890c['detachFromDom']();},'onShow':()=>{_0x36fba0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x284451=>{const _0xe98a8a=this['_standarizeRootsData'](_0x284451,_0x36fba0,_0x125d0a);_0x15b0cc['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe98a8a,_0x36fba0['config']['get']('trackChanges.preview.renderFunction'));}),_0x2f890c=new _0x5a8715(_0x5c349f,[_0x15b0cc['view']]),_0x2f890c['attachToDom'](),_0x2f890c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x36fba0['once']('destroy',()=>{_0x2f890c['detachFromDom']();});const _0x1ef6ef=_0x15b0cc['view']['headerView']['class'];_0x15b0cc['view']['headerView']['class']=_0x1ef6ef?_0x1ef6ef+'\x20ck-reset_all':'ck-reset_all',_0x15b0cc['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x15b0cc['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1396ea=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x175515=_0x1396ea['previewMode'],_0x2a4f80={};if('$labels'===_0x175515){for(const _0x58ed16 of _0x1396ea['getMergeFieldsIds']())_0x2a4f80[_0x58ed16]=_0x1396ea['getLabel'](_0x58ed16)||_0x58ed16;}else{const _0x1cf9f1='$defaultValues'===_0x175515?_0x1396ea['getDefaultValues']():_0x1396ea['getDataSetValues'](_0x175515,!0x0);for(const _0x550cf9 of Object['entries'](_0x1cf9f1)){const [_0x242415,_0x376502]=_0x550cf9;_0x2a4f80[_0x242415]=null!==_0x376502?_0x376502:_0x1396ea['getLabel'](_0x242415)||_0x242415;}}return{'mergeFieldsData':_0x2a4f80};}['_standarizeRootsData'](_0x3ef7c6,_0x468335,_0x510ffe){let _0x4a8dc3;if('string'==typeof _0x3ef7c6){const _0xca2ef4=_0x468335['model']['document']['getRootNames']()[0x0];_0x4a8dc3={[_0xca2ef4]:_0x3ef7c6};}else _0x4a8dc3=_0x3ef7c6;const _0x349790=this['_fixMediaEmbeds'](_0x4a8dc3,_0x468335),_0x514467=function(_0x25d6ac,_0xee356b){for(const [_0x445a13,_0x19dbc1]of _0x25d6ac)_0x19dbc1['classes']=_0xee356b[_0x445a13]['classList']['value']['replace']('ck-focused','');return _0x25d6ac;}(this['_sortRoots'](_0x468335)['reduce']((_0x4ea8a3,_0x593346)=>(_0x4ea8a3['push']([_0x593346,{'content':_0x349790[_0x593346],'classes':''}]),_0x4ea8a3),[]),_0x510ffe);return _0x514467;}['_fixMediaEmbeds'](_0x5af4fa,_0x278819){if(!_0x278819['plugins']['has']('MediaEmbedEditing'))return _0x5af4fa;const _0x2222a1=_0x278819['plugins']['get']('MediaEmbedEditing');for(const [_0x590135,_0x10acf1]of Object['entries'](_0x5af4fa)){const _0x32ad68=document['createElement']('div');_0x32ad68['innerHTML']=_0x10acf1,(_0x32ad68['querySelectorAll']('figure.media')['forEach'](_0x2f2e6c=>{const _0x2c3004=_0x2f2e6c['querySelector']('oembed');if(_0x2c3004){const _0x1b63cd=_0x2c3004['getAttribute']('url');if(_0x1b63cd){const _0x3ed3c0=_0x2222a1['registry']['getMediaViewElement'](new _0x32df9f(_0x278819['editing']['view']['document']),_0x1b63cd,{'elementName':'','renderForEditingView':!0x0}),_0x174beb=document['createElement']('div');_0x174beb['classList']['add']('ck-media__wrapper'),_0x3ed3c0['render'](_0x174beb,_0x278819['editing']['view']['domConverter']),_0x2c3004['replaceWith'](_0x174beb);}}}),_0x5af4fa[_0x590135]=_0x32ad68['innerHTML']);}return _0x5af4fa;}['_sortRoots'](_0x183280){if(!function(_0x4c008a){return void 0x0!==_0x4c008a['getRootsAttributes'];}(_0x183280))return _0x183280['model']['document']['getRootNames']();const _0x17a5f5=[],_0x5abd15=new Map();for(const _0x35c21b of _0x183280['model']['document']['getRootNames']()){const _0x1985d2=_0x183280['editing']['view']['getDomRoot'](_0x35c21b)['getClientRects']()['item'](0x0);_0x17a5f5['push'](_0x35c21b),_0x5abd15['set'](_0x35c21b,_0x1985d2);}return _0x17a5f5['sort']((_0x2ee249,_0x306481)=>{const _0x2cdf66=_0x5abd15['get'](_0x2ee249),_0x9e93f8=_0x5abd15['get'](_0x306481);return _0x2cdf66['y']-_0x9e93f8['y']||_0x2cdf66['x']-_0x9e93f8['x'];}),_0x17a5f5;}}class He extends _0x185c8e{static get['requires'](){return[re,_0x5bfc98];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x207fee){super(_0x207fee),_0x207fee['commands']['add']('previewFinalContent',new te(this['editor'])),_0x207fee['config']['define']('trackChanges.preview.renderFunction',(_0x3374e0,_0x157626)=>{for(const _0xd955b3 of _0x157626)_0x3374e0['appendChild'](_0xd955b3);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
|